@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,2 +1 @@
|
|
|
1
1
|
import"./paths-CXgWvWAM.js";import{E as e,I as t,L as n,M as r,V as i}from"./utils-BJtJR72k.js";import"./paths-rO4ehkyU.js";import{Bs as a,Fs as o,Js as s,Wi as c,Ws as l}from"./model-auth-Cp2GSJwZ.js";import"./proxy-env-m9eG3uZN.js";import"./github-copilot-token-C8j8_NjX.js";import{i as u,n as d,r as f,t as p}from"./session-BfWC0c92.js";import{randomUUID as m}from"node:crypto";import{DisconnectReason as h}from"@whiskeysockets/baileys";import g from"qrcode-terminal/vendor/QRCode/index.js";import _ from"qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js";import{deflateSync as v}from"node:zlib";const y=(()=>{let e=new Uint32Array(256);for(let t=0;t<256;t+=1){let n=t;for(let e=0;e<8;e+=1)n=n&1?3988292384^n>>>1:n>>>1;e[t]=n>>>0}return e})();function b(e){let t=4294967295;for(let n=0;n<e.length;n+=1)t=y[(t^e[n])&255]^t>>>8;return(t^4294967295)>>>0}function x(e,t){let n=Buffer.from(e,`ascii`),r=Buffer.alloc(4);r.writeUInt32BE(t.length,0);let i=b(Buffer.concat([n,t])),a=Buffer.alloc(4);return a.writeUInt32BE(i,0),Buffer.concat([r,n,t,a])}function S(e,t,n,r,i,a,o,s=255){if(t<0||n<0||t>=r)return;let c=(n*r+t)*4;c<0||c+3>=e.length||(e[c]=i,e[c+1]=a,e[c+2]=o,e[c+3]=s)}function C(e,t,n){let r=t*4,i=Buffer.alloc((r+1)*n);for(let t=0;t<n;t+=1){let n=t*(r+1);i[n]=0,e.copy(i,n+1,t*r,t*r+r)}let a=v(i),o=Buffer.from([137,80,78,71,13,10,26,10]),s=Buffer.alloc(13);return s.writeUInt32BE(t,0),s.writeUInt32BE(n,4),s[8]=8,s[9]=6,s[10]=0,s[11]=0,s[12]=0,Buffer.concat([o,x(`IHDR`,s),x(`IDAT`,a),x(`IEND`,Buffer.alloc(0))])}const w=g,T=_;function E(e){let t=new w(-1,T.L);return t.addData(e),t.make(),t}async function D(e,t={}){let{scale:n=6,marginModules:r=4}=t,i=E(e),a=i.getModuleCount(),o=(a+r*2)*n,s=Buffer.alloc(o*o*4,255);for(let e=0;e<a;e+=1)for(let t=0;t<a;t+=1){if(!i.isDark(e,t))continue;let a=(t+r)*n,c=(e+r)*n;for(let e=0;e<n;e+=1){let t=c+e;for(let e=0;e<n;e+=1)S(s,a+e,t,o,0,0,0,255)}}return C(s,o,o).toString(`base64`)}const O=new Map;function k(e){try{e.ws?.close()}catch{}}async function A(t,n){let r=O.get(t);r&&(k(r.sock),O.delete(t)),n&&e(n)}function j(e){return Date.now()-e.startedAt<18e4}function M(e,t){t.waitPromise=u(t.sock).then(()=>{let n=O.get(e);n?.id===t.id&&(n.connected=!0)}).catch(n=>{let r=O.get(e);r?.id===t.id&&(r.error=d(n),r.errorStatus=f(n))})}async function N(e,t){if(e.restartAttempted)return!1;e.restartAttempted=!0,t.log(n(`WhatsApp asked for a restart after pairing (code 515); retrying connection once…`)),k(e.sock);try{return e.sock=await p(!1,e.verbose,{authDir:e.authDir}),e.connected=!1,e.error=void 0,e.errorStatus=void 0,M(e.accountId,e),!0}catch(t){return e.error=d(t),e.errorStatus=f(t),!1}}async function P(e={}){let t=e.runtime??r,i=o({cfg:c(),accountId:e.accountId}),a=await s(i.authDir),u=l(i.authDir);if(a&&!e.force)return{message:`WhatsApp is already linked (${u.e164??u.jid??`unknown`}). Say “relink” if you want a fresh QR.`};let d=O.get(i.accountId);if(d&&j(d)&&d.qrDataUrl)return{qrDataUrl:d.qrDataUrl,message:`QR already active. Scan it in WhatsApp → Linked Devices.`};await A(i.accountId);let f=null,h=null,g=new Promise((e,t)=>{f=e,h=t}),_=setTimeout(()=>{h?.(Error(`Timed out waiting for WhatsApp QR`))},Math.max(e.timeoutMs??3e4,5e3)),v,y=null;try{v=await p(!1,!!e.verbose,{authDir:i.authDir,onQr:e=>{if(y)return;y=e;let r=O.get(i.accountId);r&&!r.qr&&(r.qr=e),clearTimeout(_),t.log(n(`WhatsApp QR received.`)),f?.(e)}})}catch(e){return clearTimeout(_),await A(i.accountId),{message:`Failed to start WhatsApp login: ${String(e)}`}}let b={accountId:i.accountId,authDir:i.authDir,isLegacyAuthDir:i.isLegacyAuthDir,id:m(),sock:v,startedAt:Date.now(),connected:!1,waitPromise:Promise.resolve(),restartAttempted:!1,verbose:!!e.verbose};O.set(i.accountId,b),y&&!b.qr&&(b.qr=y),M(i.accountId,b);let x;try{x=await g}catch(e){return clearTimeout(_),await A(i.accountId),{message:`Failed to get QR: ${String(e)}`}}return b.qrDataUrl=`data:image/png;base64,${await D(x)}`,{qrDataUrl:b.qrDataUrl,message:`Scan this QR in WhatsApp → Linked Devices.`}}async function F(e={}){let n=e.runtime??r,s=o({cfg:c(),accountId:e.accountId}),l=O.get(s.accountId);if(!l)return{connected:!1,message:`No active WhatsApp login in progress.`};let u=l;if(!j(u))return await A(s.accountId),{connected:!1,message:`The login QR expired. Ask me to generate a new one.`};let d=Math.max(e.timeoutMs??12e4,1e3),f=Date.now()+d;for(;;){let e=f-Date.now();if(e<=0)return{connected:!1,message:`Still waiting for the QR scan. Let me know when you’ve scanned it.`};let r=new Promise(t=>setTimeout(()=>t(`timeout`),e));if(await Promise.race([u.waitPromise.then(()=>`done`),r])===`timeout`)return{connected:!1,message:`Still waiting for the QR scan. Let me know when you’ve scanned it.`};if(u.error){if(u.errorStatus===h.loggedOut){await a({authDir:u.authDir,isLegacyAuthDir:u.isLegacyAuthDir,runtime:n});let e=`WhatsApp reported the session is logged out. Cleared cached web session; please scan a new QR.`;return await A(s.accountId,e),n.log(t(e)),{connected:!1,message:e}}if(u.errorStatus===515&&await N(u,n)&&j(u))continue;let e=`WhatsApp login failed: ${u.error}`;return await A(s.accountId,e),n.log(t(e)),{connected:!1,message:e}}if(u.connected){let e=`✅ Linked! WhatsApp is ready.`;return n.log(i(e)),await A(s.accountId),{connected:!0,message:e}}return{connected:!1,message:`Login ended without a connection.`}}}export{P as startWebLoginWithQr,F as waitForWebLogin};
|
|
2
|
-
//# sourceMappingURL=login-qr-gQsVZ8en.js.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
const e=require(`./paths-Bcdg3ma0.cjs`);require(`./paths-CIcxeNL-.cjs`);const t=require(`./utils-PPIvU9qw.cjs`),n=require(`./model-auth-sjKLUCCz.cjs`);require(`./proxy-env-D48qBPAr.cjs`),require(`./github-copilot-token-C1O2cBqk.cjs`);const r=require(`./session-C20nSfk5.cjs`);let i=require(`node:crypto`),a=require(`@whiskeysockets/baileys`),o=require(`qrcode-terminal/vendor/QRCode/index.js`);o=e.p(o);let s=require(`qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js`);s=e.p(s);let c=require(`node:zlib`);const l=(()=>{let e=new Uint32Array(256);for(let t=0;t<256;t+=1){let n=t;for(let e=0;e<8;e+=1)n=n&1?3988292384^n>>>1:n>>>1;e[t]=n>>>0}return e})();function u(e){let t=4294967295;for(let n=0;n<e.length;n+=1)t=l[(t^e[n])&255]^t>>>8;return(t^4294967295)>>>0}function d(e,t){let n=Buffer.from(e,`ascii`),r=Buffer.alloc(4);r.writeUInt32BE(t.length,0);let i=u(Buffer.concat([n,t])),a=Buffer.alloc(4);return a.writeUInt32BE(i,0),Buffer.concat([r,n,t,a])}function f(e,t,n,r,i,a,o,s=255){if(t<0||n<0||t>=r)return;let c=(n*r+t)*4;c<0||c+3>=e.length||(e[c]=i,e[c+1]=a,e[c+2]=o,e[c+3]=s)}function p(e,t,n){let r=t*4,i=Buffer.alloc((r+1)*n);for(let t=0;t<n;t+=1){let n=t*(r+1);i[n]=0,e.copy(i,n+1,t*r,t*r+r)}let a=(0,c.deflateSync)(i),o=Buffer.from([137,80,78,71,13,10,26,10]),s=Buffer.alloc(13);return s.writeUInt32BE(t,0),s.writeUInt32BE(n,4),s[8]=8,s[9]=6,s[10]=0,s[11]=0,s[12]=0,Buffer.concat([o,d(`IHDR`,s),d(`IDAT`,a),d(`IEND`,Buffer.alloc(0))])}const m=o.default,h=s.default;function g(e){let t=new m(-1,h.L);return t.addData(e),t.make(),t}async function _(e,t={}){let{scale:n=6,marginModules:r=4}=t,i=g(e),a=i.getModuleCount(),o=(a+r*2)*n,s=Buffer.alloc(o*o*4,255);for(let e=0;e<a;e+=1)for(let t=0;t<a;t+=1){if(!i.isDark(e,t))continue;let a=(t+r)*n,c=(e+r)*n;for(let e=0;e<n;e+=1){let t=c+e;for(let e=0;e<n;e+=1)f(s,a+e,t,o,0,0,0,255)}}return p(s,o,o).toString(`base64`)}const v=new Map;function y(e){try{e.ws?.close()}catch{}}async function b(e,n){let r=v.get(e);r&&(y(r.sock),v.delete(e)),n&&t.E(n)}function x(e){return Date.now()-e.startedAt<18e4}function S(e,t){t.waitPromise=r.i(t.sock).then(()=>{let n=v.get(e);n?.id===t.id&&(n.connected=!0)}).catch(n=>{let i=v.get(e);i?.id===t.id&&(i.error=r.n(n),i.errorStatus=r.r(n))})}async function C(e,n){if(e.restartAttempted)return!1;e.restartAttempted=!0,n.log(t.L(`WhatsApp asked for a restart after pairing (code 515); retrying connection once…`)),y(e.sock);try{return e.sock=await r.t(!1,e.verbose,{authDir:e.authDir}),e.connected=!1,e.error=void 0,e.errorStatus=void 0,S(e.accountId,e),!0}catch(t){return e.error=r.n(t),e.errorStatus=r.r(t),!1}}async function w(e={}){let a=e.runtime??t.M,o=n.zs({cfg:n.Gi(),accountId:e.accountId}),s=await n.Qs(o.authDir),c=n.Js(o.authDir);if(s&&!e.force)return{message:`WhatsApp is already linked (${c.e164??c.jid??`unknown`}). Say “relink” if you want a fresh QR.`};let l=v.get(o.accountId);if(l&&x(l)&&l.qrDataUrl)return{qrDataUrl:l.qrDataUrl,message:`QR already active. Scan it in WhatsApp → Linked Devices.`};await b(o.accountId);let u=null,d=null,f=new Promise((e,t)=>{u=e,d=t}),p=setTimeout(()=>{d?.(Error(`Timed out waiting for WhatsApp QR`))},Math.max(e.timeoutMs??3e4,5e3)),m,h=null;try{m=await r.t(!1,!!e.verbose,{authDir:o.authDir,onQr:e=>{if(h)return;h=e;let n=v.get(o.accountId);n&&!n.qr&&(n.qr=e),clearTimeout(p),a.log(t.L(`WhatsApp QR received.`)),u?.(e)}})}catch(e){return clearTimeout(p),await b(o.accountId),{message:`Failed to start WhatsApp login: ${String(e)}`}}let g={accountId:o.accountId,authDir:o.authDir,isLegacyAuthDir:o.isLegacyAuthDir,id:(0,i.randomUUID)(),sock:m,startedAt:Date.now(),connected:!1,waitPromise:Promise.resolve(),restartAttempted:!1,verbose:!!e.verbose};v.set(o.accountId,g),h&&!g.qr&&(g.qr=h),S(o.accountId,g);let y;try{y=await f}catch(e){return clearTimeout(p),await b(o.accountId),{message:`Failed to get QR: ${String(e)}`}}return g.qrDataUrl=`data:image/png;base64,${await _(y)}`,{qrDataUrl:g.qrDataUrl,message:`Scan this QR in WhatsApp → Linked Devices.`}}async function T(e={}){let r=e.runtime??t.M,i=n.zs({cfg:n.Gi(),accountId:e.accountId}),o=v.get(i.accountId);if(!o)return{connected:!1,message:`No active WhatsApp login in progress.`};let s=o;if(!x(s))return await b(i.accountId),{connected:!1,message:`The login QR expired. Ask me to generate a new one.`};let c=Math.max(e.timeoutMs??12e4,1e3),l=Date.now()+c;for(;;){let e=l-Date.now();if(e<=0)return{connected:!1,message:`Still waiting for the QR scan. Let me know when you’ve scanned it.`};let o=new Promise(t=>setTimeout(()=>t(`timeout`),e));if(await Promise.race([s.waitPromise.then(()=>`done`),o])===`timeout`)return{connected:!1,message:`Still waiting for the QR scan. Let me know when you’ve scanned it.`};if(s.error){if(s.errorStatus===a.DisconnectReason.loggedOut){await n.Ws({authDir:s.authDir,isLegacyAuthDir:s.isLegacyAuthDir,runtime:r});let e=`WhatsApp reported the session is logged out. Cleared cached web session; please scan a new QR.`;return await b(i.accountId,e),r.log(t.I(e)),{connected:!1,message:e}}if(s.errorStatus===515&&await C(s,r)&&x(s))continue;let e=`WhatsApp login failed: ${s.error}`;return await b(i.accountId,e),r.log(t.I(e)),{connected:!1,message:e}}if(s.connected){let e=`✅ Linked! WhatsApp is ready.`;return r.log(t.V(e)),await b(i.accountId),{connected:!0,message:e}}return{connected:!1,message:`Login ended without a connection.`}}}exports.startWebLoginWithQr=w,exports.waitForWebLogin=T;
|
|
2
|
-
//# sourceMappingURL=login-qr-xkqmSKC8.cjs.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
import{Rl as e,Va as t,qa as n,r}from"./config-Cx3SFBFW.js";import{I as i,L as a,V as o,l as s,r as c}from"./logger-BtrWb0dj.js";import{i as l,n as u,t as d}from"./session-aOZKTEyZ.js";import{DisconnectReason as f}from"@whiskeysockets/baileys";async function p(p,m,h=s,g){let _=m??l,v=t({cfg:r(),accountId:g}),y=await d(!0,p,{authDir:v.authDir});c(`Waiting for WhatsApp connection...`,h);try{await _(y),console.log(o(`✅ Linked! Credentials saved for future sends.`))}catch(t){let r=t?.error?.output?.statusCode??t?.output?.statusCode;if(r===515){console.log(a(`WhatsApp asked for a restart after pairing (code 515); creds are saved. Restarting connection once…`));try{y.ws?.close()}catch{}let e=await d(!1,p,{authDir:v.authDir});try{await _(e),console.log(o(`✅ Linked after restart; web session ready.`));return}finally{setTimeout(()=>e.ws?.close(),500)}}if(r===f.loggedOut)throw await n({authDir:v.authDir,isLegacyAuthDir:v.isLegacyAuthDir,runtime:h}),console.error(i(`WhatsApp reported the session is logged out. Cleared cached web session; please rerun ${e(`openclaw channels login`)} and scan the QR again.`)),Error(`Session logged out; cache cleared. Re-run login.`,{cause:t});let s=u(t);throw console.error(i(`WhatsApp Web connection ended before fully opening. ${s}`)),Error(s,{cause:t})}finally{setTimeout(()=>{try{y.ws?.close()}catch{}},500)}}export{p as t};
|
|
2
|
-
//# sourceMappingURL=login-x9vN5UnR.js.map
|
|
@@ -68,4 +68,3 @@ const e=require(`./paths-Bcdg3ma0.cjs`),t=require(`./paths-Dd7r1qlB.cjs`),n=requ
|
|
|
68
68
|
WHERE model = ?${e.sourceFilter.sql}`).all(e.providerModel,...e.sourceFilter.params).map(e=>({id:e.id,path:e.path,startLine:e.start_line,endLine:e.end_line,text:e.text,embedding:s.g(e.embedding),source:e.source}))}async function on(e){if(e.limit<=0)return[];let t=e.buildFtsQuery(e.query);if(!t)return[];let n=e.providerModel?` AND model = ?`:``,i=e.providerModel?[e.providerModel]:[];return e.db.prepare(`SELECT id, path, source, start_line, end_line, text,\n bm25(${e.ftsTable}) AS rank\n FROM ${e.ftsTable}\n WHERE ${e.ftsTable} MATCH ?${n}${e.sourceFilter.sql}\n ORDER BY rank ASC\n LIMIT ?`).all(t,...i,...e.sourceFilter.params,e.limit).map(t=>{let n=e.bm25RankToScore(t.rank);return{id:t.id,path:t.path,startLine:t.start_line,endLine:t.end_line,score:n,textScore:n,snippet:r.E(t.text,e.snippetMaxChars),source:t.source}})}const Z=r.O(`memory`),Q=new Map,$=new Map;async function sn(){let e=Array.from($.values());e.length>0&&await Promise.allSettled(e);let t=Array.from(Q.values());Q.clear();for(let e of t)try{await e.close()}catch(e){Z.warn(`failed to close memory index manager: ${String(e)}`)}}var cn=class e extends tn{static async get(n){let{cfg:r,agentId:i}=n,a=g(r,i);if(!a)return null;let o=t.W(r,i),s=`${i}:${o}:${JSON.stringify(a)}`,c=Q.get(s);if(c)return c;let l=$.get(s);if(l)return l;let u=(async()=>{let c=await Be({config:r,agentDir:t.V(r,i),provider:a.provider,remote:a.remote,model:a.model,outputDimensionality:a.outputDimensionality,fallback:a.fallback,local:a.local}),l=Q.get(s);if(l)return l;let u=new e({cacheKey:s,cfg:r,agentId:i,workspaceDir:o,settings:a,providerResult:c,purpose:n.purpose});return Q.set(s,u),u})();$.set(s,u);try{return await u}finally{$.get(s)===u&&$.delete(s)}}constructor(e){super(),this.batchFailureCount=0,this.batchFailureLock=Promise.resolve(),this.vectorReady=null,this.watcher=null,this.watchTimer=null,this.sessionWatchTimer=null,this.sessionUnsubscribe=null,this.intervalTimer=null,this.closed=!1,this.dirty=!1,this.sessionsDirty=!1,this.sessionsDirtyFiles=new Set,this.sessionPendingFiles=new Set,this.sessionDeltas=new Map,this.sessionWarm=new Set,this.syncing=null,this.readonlyRecoveryAttempts=0,this.readonlyRecoverySuccesses=0,this.readonlyRecoveryFailures=0,this.cacheKey=e.cacheKey,this.cfg=e.cfg,this.agentId=e.agentId,this.workspaceDir=e.workspaceDir,this.settings=e.settings,this.provider=e.providerResult.provider,this.requestedProvider=e.providerResult.requestedProvider,this.fallbackFrom=e.providerResult.fallbackFrom,this.fallbackReason=e.providerResult.fallbackReason,this.providerUnavailableReason=e.providerResult.providerUnavailableReason,this.openAi=e.providerResult.openAi,this.gemini=e.providerResult.gemini,this.voyage=e.providerResult.voyage,this.mistral=e.providerResult.mistral,this.ollama=e.providerResult.ollama,this.sources=new Set(e.settings.sources),this.db=this.openDatabase(),this.providerKey=this.computeProviderKey(),this.cache={enabled:e.settings.cache.enabled,maxEntries:e.settings.cache.maxEntries},this.fts={enabled:e.settings.query.hybrid.enabled,available:!1},this.ensureSchema(),this.vector={enabled:e.settings.store.vector.enabled,available:null,extensionPath:e.settings.store.vector.extensionPath};let t=this.readMeta();t?.vectorDims&&(this.vector.dims=t.vectorDims),this.ensureWatcher(),this.ensureSessionListener(),this.ensureIntervalSync();let n=e.purpose===`status`;this.dirty=this.sources.has(`memory`)&&(n?!t:!0),this.batch=this.resolveBatchConfig()}async warmSession(e){if(!this.settings.sync.onSessionStart)return;let t=e?.trim()||``;t&&this.sessionWarm.has(t)||(this.sync({reason:`session-start`}).catch(e=>{Z.warn(`memory sync failed (session-start): ${String(e)}`)}),t&&this.sessionWarm.add(t))}async search(e,t){this.warmSession(t?.sessionKey),this.settings.sync.onSearch&&(this.dirty||this.sessionsDirty)&&this.sync({reason:`search`}).catch(e=>{Z.warn(`memory sync failed (search): ${String(e)}`)});let n=e.trim();if(!n)return[];let r=t?.minScore??this.settings.query.minScore,i=t?.maxResults??this.settings.query.maxResults,a=this.settings.query.hybrid,o=Math.min(200,Math.max(1,Math.floor(i*a.candidateMultiplier)));if(!this.provider){if(!this.fts.enabled||!this.fts.available)return Z.warn(`memory search: no provider and FTS unavailable`),[];let e=s.t(n),t=e.length>0?e:[n],a=await Promise.all(t.map(e=>this.searchKeyword(e,o).catch(()=>[]))),c=new Map;for(let e of a)for(let t of e){let e=c.get(t.id);(!e||t.score>e.score)&&c.set(t.id,t)}return[...c.values()].toSorted((e,t)=>t.score-e.score).filter(e=>e.score>=r).slice(0,i)}let c=a.enabled&&this.fts.enabled&&this.fts.available?await this.searchKeyword(n,o).catch(()=>[]):[],l=await this.embedQueryWithTimeout(n),u=l.some(e=>e!==0)?await this.searchVector(l,o).catch(()=>[]):[];if(!a.enabled||!this.fts.enabled||!this.fts.available)return u.filter(e=>e.score>=r).slice(0,i);let d=await this.mergeHybridResults({vector:u,keyword:c,vectorWeight:a.vectorWeight,textWeight:a.textWeight,mmr:a.mmr,temporalDecay:a.temporalDecay}),f=d.filter(e=>e.score>=r);if(f.length>0||c.length===0)return f.slice(0,i);let p=Math.min(r,a.textWeight),m=new Set(c.map(e=>`${e.source}:${e.path}:${e.startLine}:${e.endLine}`));return d.filter(e=>m.has(`${e.source}:${e.path}:${e.startLine}:${e.endLine}`)&&e.score>=p).slice(0,i)}async searchVector(e,t){return this.provider?(await rn({db:this.db,vectorTable:`chunks_vec`,providerModel:this.provider.model,queryVec:e,limit:t,snippetMaxChars:700,ensureVectorReady:async e=>await this.ensureVectorReady(e),sourceFilterVec:this.buildSourceFilter(`c`),sourceFilterChunks:this.buildSourceFilter()})).map(e=>e):[]}buildFtsQuery(e){return it(e)}async searchKeyword(e,t){if(!this.fts.enabled||!this.fts.available)return[];let n=this.buildSourceFilter(),r=this.provider?.model;return(await on({db:this.db,ftsTable:`chunks_fts`,providerModel:r,query:e,limit:t,snippetMaxChars:700,sourceFilter:n,buildFtsQuery:e=>this.buildFtsQuery(e),bm25RankToScore:at})).map(e=>e)}mergeHybridResults(e){return ot({vector:e.vector.map(e=>({id:e.id,path:e.path,startLine:e.startLine,endLine:e.endLine,source:e.source,snippet:e.snippet,vectorScore:e.score})),keyword:e.keyword.map(e=>({id:e.id,path:e.path,startLine:e.startLine,endLine:e.endLine,source:e.source,snippet:e.snippet,textScore:e.textScore})),vectorWeight:e.vectorWeight,textWeight:e.textWeight,mmr:e.mmr,temporalDecay:e.temporalDecay,workspaceDir:this.workspaceDir}).then(e=>e.map(e=>e))}async sync(e){if(!this.closed)return this.syncing?this.syncing:(this.syncing=this.runSyncWithReadonlyRecovery(e).finally(()=>{this.syncing=null}),this.syncing??Promise.resolve())}isReadonlyDbError(e){let t=/attempt to write a readonly database|database is read-only|SQLITE_READONLY/i,n=new Set,r=e=>{if(typeof e!=`string`)return;let t=e.trim();t&&n.add(t)};if(r(e instanceof Error?e.message:String(e)),e&&typeof e==`object`){let t=e;if(r(t.message),r(t.code),r(t.name),t.cause&&typeof t.cause==`object`){let e=t.cause;r(e.message),r(e.code),r(e.name)}}return[...n].some(e=>t.test(e))}extractErrorReason(e){if(e instanceof Error&&e.message.trim())return e.message;if(e&&typeof e==`object`){let t=e;if(typeof t.message==`string`&&t.message.trim())return t.message;if(typeof t.code==`string`&&t.code.trim())return t.code}return String(e)}async runSyncWithReadonlyRecovery(e){try{await this.runSync(e);return}catch(t){if(!this.isReadonlyDbError(t)||this.closed)throw t;let n=this.extractErrorReason(t);this.readonlyRecoveryAttempts+=1,this.readonlyRecoveryLastError=n,Z.warn(`memory sync readonly handle detected; reopening sqlite connection`,{reason:n});try{this.db.close()}catch{}this.db=this.openDatabase(),this.vectorReady=null,this.vector.available=null,this.vector.loadError=void 0,this.ensureSchema();let r=this.readMeta();this.vector.dims=r?.vectorDims;try{await this.runSync(e),this.readonlyRecoverySuccesses+=1}catch(e){throw this.readonlyRecoveryFailures+=1,e}}}async readFile(e){let t=e.relPath.trim();if(!t)throw Error(`path required`);let n=c.default.isAbsolute(t)?c.default.resolve(t):c.default.resolve(this.workspaceDir,t),r=c.default.relative(this.workspaceDir,n).replace(/\\/g,`/`),i=r.length>0&&!r.startsWith(`..`)&&!c.default.isAbsolute(r)&&s.p(r),a=!1;if(!i&&this.settings.extraPaths.length>0){let e=s.h(this.workspaceDir,this.settings.extraPaths);for(let t of e)try{let e=await d.default.lstat(t);if(e.isSymbolicLink())continue;if(e.isDirectory()){if(n===t||n.startsWith(`${t}${c.default.sep}`)){a=!0;break}continue}if(e.isFile()&&n===t&&n.endsWith(`.md`)){a=!0;break}}catch{}}if(!i&&!a||!n.endsWith(`.md`))throw Error(`path required`);if((await s.w(n)).missing)return{text:``,path:r};let o;try{o=await d.default.readFile(n,`utf-8`)}catch(e){if(s.C(e))return{text:``,path:r};throw e}if(!e.from&&!e.lines)return{text:o,path:r};let l=o.split(`
|
|
69
69
|
`),u=Math.max(1,e.from??1),f=Math.max(1,e.lines??l.length);return{text:l.slice(u-1,u-1+f).join(`
|
|
70
70
|
`),path:r}}status(){let e=this.buildSourceFilter(),t=this.db.prepare(`SELECT COUNT(*) as c FROM files WHERE 1=1${e.sql}`).get(...e.params),n=this.db.prepare(`SELECT COUNT(*) as c FROM chunks WHERE 1=1${e.sql}`).get(...e.params),r=(()=>{let t=Array.from(this.sources);if(t.length===0)return[];let n=new Map;for(let e of t)n.set(e,{files:0,chunks:0});let r=this.db.prepare(`SELECT source, COUNT(*) as c FROM files WHERE 1=1${e.sql} GROUP BY source`).all(...e.params);for(let e of r){let t=n.get(e.source)??{files:0,chunks:0};t.files=e.c??0,n.set(e.source,t)}let i=this.db.prepare(`SELECT source, COUNT(*) as c FROM chunks WHERE 1=1${e.sql} GROUP BY source`).all(...e.params);for(let e of i){let t=n.get(e.source)??{files:0,chunks:0};t.chunks=e.c??0,n.set(e.source,t)}return t.map(e=>Object.assign({source:e},n.get(e)))})(),i=this.provider?`hybrid`:`fts-only`,a=this.provider?{provider:this.provider.id,model:this.provider.model}:{provider:`none`,model:void 0};return{backend:`builtin`,files:t?.c??0,chunks:n?.c??0,dirty:this.dirty||this.sessionsDirty,workspaceDir:this.workspaceDir,dbPath:this.settings.store.path,provider:a.provider,model:a.model,requestedProvider:this.requestedProvider,sources:Array.from(this.sources),extraPaths:this.settings.extraPaths,sourceCounts:r,cache:this.cache.enabled?{enabled:!0,entries:this.db.prepare(`SELECT COUNT(*) as c FROM embedding_cache`).get()?.c??0,maxEntries:this.cache.maxEntries}:{enabled:!1,maxEntries:this.cache.maxEntries},fts:{enabled:this.fts.enabled,available:this.fts.available,error:this.fts.loadError},fallback:this.fallbackReason?{from:this.fallbackFrom??`local`,reason:this.fallbackReason}:void 0,vector:{enabled:this.vector.enabled,available:this.vector.available??void 0,extensionPath:this.vector.extensionPath,loadError:this.vector.loadError,dims:this.vector.dims},batch:{enabled:this.batch.enabled,failures:this.batchFailureCount,limit:2,wait:this.batch.wait,concurrency:this.batch.concurrency,pollIntervalMs:this.batch.pollIntervalMs,timeoutMs:this.batch.timeoutMs,lastError:this.batchFailureLastError,lastProvider:this.batchFailureLastProvider},custom:{searchMode:i,providerUnavailableReason:this.providerUnavailableReason,readonlyRecovery:{attempts:this.readonlyRecoveryAttempts,successes:this.readonlyRecoverySuccesses,failures:this.readonlyRecoveryFailures,lastError:this.readonlyRecoveryLastError}}}}async probeVectorAvailability(){return!this.provider||!this.vector.enabled?!1:this.ensureVectorReady()}async probeEmbeddingAvailability(){if(!this.provider)return{ok:!1,error:this.providerUnavailableReason??`No embedding provider available (FTS-only mode)`};try{return await this.embedBatchWithRetry([`ping`]),{ok:!0}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async close(){if(this.closed)return;this.closed=!0;let e=this.syncing;if(this.watchTimer&&=(clearTimeout(this.watchTimer),null),this.sessionWatchTimer&&=(clearTimeout(this.sessionWatchTimer),null),this.intervalTimer&&=(clearInterval(this.intervalTimer),null),this.watcher&&=(await this.watcher.close(),null),this.sessionUnsubscribe&&=(this.sessionUnsubscribe(),null),e)try{await e}catch{}this.db.close(),Q.delete(this.cacheKey)}};Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return sn}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return cn}});
|
|
71
|
-
//# sourceMappingURL=manager-B38IH03I.cjs.map
|
|
@@ -68,4 +68,3 @@ const e=require(`./paths-Bcdg3ma0.cjs`),t=require(`./paths-CIcxeNL-.cjs`),n=requ
|
|
|
68
68
|
WHERE model = ?${e.sourceFilter.sql}`).all(e.providerModel,...e.sourceFilter.params).map(e=>({id:e.id,path:e.path,startLine:e.start_line,endLine:e.end_line,text:e.text,embedding:s.g(e.embedding),source:e.source}))}async function on(e){if(e.limit<=0)return[];let t=e.buildFtsQuery(e.query);if(!t)return[];let r=e.providerModel?` AND model = ?`:``,i=e.providerModel?[e.providerModel]:[];return e.db.prepare(`SELECT id, path, source, start_line, end_line, text,\n bm25(${e.ftsTable}) AS rank\n FROM ${e.ftsTable}\n WHERE ${e.ftsTable} MATCH ?${r}${e.sourceFilter.sql}\n ORDER BY rank ASC\n LIMIT ?`).all(t,...i,...e.sourceFilter.params,e.limit).map(t=>{let r=e.bm25RankToScore(t.rank);return{id:t.id,path:t.path,startLine:t.start_line,endLine:t.end_line,score:r,textScore:r,snippet:n.S(t.text,e.snippetMaxChars),source:t.source}})}const Z=n.O(`memory`),Q=new Map,$=new Map;async function sn(){let e=Array.from($.values());e.length>0&&await Promise.allSettled(e);let t=Array.from(Q.values());Q.clear();for(let e of t)try{await e.close()}catch(e){Z.warn(`failed to close memory index manager: ${String(e)}`)}}var cn=class e extends tn{static async get(n){let{cfg:r,agentId:i}=n,a=g(r,i);if(!a)return null;let o=t.N(r,i),s=`${i}:${o}:${JSON.stringify(a)}`,c=Q.get(s);if(c)return c;let l=$.get(s);if(l)return l;let u=(async()=>{let c=await Be({config:r,agentDir:t.A(r,i),provider:a.provider,remote:a.remote,model:a.model,outputDimensionality:a.outputDimensionality,fallback:a.fallback,local:a.local}),l=Q.get(s);if(l)return l;let u=new e({cacheKey:s,cfg:r,agentId:i,workspaceDir:o,settings:a,providerResult:c,purpose:n.purpose});return Q.set(s,u),u})();$.set(s,u);try{return await u}finally{$.get(s)===u&&$.delete(s)}}constructor(e){super(),this.batchFailureCount=0,this.batchFailureLock=Promise.resolve(),this.vectorReady=null,this.watcher=null,this.watchTimer=null,this.sessionWatchTimer=null,this.sessionUnsubscribe=null,this.intervalTimer=null,this.closed=!1,this.dirty=!1,this.sessionsDirty=!1,this.sessionsDirtyFiles=new Set,this.sessionPendingFiles=new Set,this.sessionDeltas=new Map,this.sessionWarm=new Set,this.syncing=null,this.readonlyRecoveryAttempts=0,this.readonlyRecoverySuccesses=0,this.readonlyRecoveryFailures=0,this.cacheKey=e.cacheKey,this.cfg=e.cfg,this.agentId=e.agentId,this.workspaceDir=e.workspaceDir,this.settings=e.settings,this.provider=e.providerResult.provider,this.requestedProvider=e.providerResult.requestedProvider,this.fallbackFrom=e.providerResult.fallbackFrom,this.fallbackReason=e.providerResult.fallbackReason,this.providerUnavailableReason=e.providerResult.providerUnavailableReason,this.openAi=e.providerResult.openAi,this.gemini=e.providerResult.gemini,this.voyage=e.providerResult.voyage,this.mistral=e.providerResult.mistral,this.ollama=e.providerResult.ollama,this.sources=new Set(e.settings.sources),this.db=this.openDatabase(),this.providerKey=this.computeProviderKey(),this.cache={enabled:e.settings.cache.enabled,maxEntries:e.settings.cache.maxEntries},this.fts={enabled:e.settings.query.hybrid.enabled,available:!1},this.ensureSchema(),this.vector={enabled:e.settings.store.vector.enabled,available:null,extensionPath:e.settings.store.vector.extensionPath};let t=this.readMeta();t?.vectorDims&&(this.vector.dims=t.vectorDims),this.ensureWatcher(),this.ensureSessionListener(),this.ensureIntervalSync();let n=e.purpose===`status`;this.dirty=this.sources.has(`memory`)&&(n?!t:!0),this.batch=this.resolveBatchConfig()}async warmSession(e){if(!this.settings.sync.onSessionStart)return;let t=e?.trim()||``;t&&this.sessionWarm.has(t)||(this.sync({reason:`session-start`}).catch(e=>{Z.warn(`memory sync failed (session-start): ${String(e)}`)}),t&&this.sessionWarm.add(t))}async search(e,t){this.warmSession(t?.sessionKey),this.settings.sync.onSearch&&(this.dirty||this.sessionsDirty)&&this.sync({reason:`search`}).catch(e=>{Z.warn(`memory sync failed (search): ${String(e)}`)});let n=e.trim();if(!n)return[];let r=t?.minScore??this.settings.query.minScore,i=t?.maxResults??this.settings.query.maxResults,a=this.settings.query.hybrid,o=Math.min(200,Math.max(1,Math.floor(i*a.candidateMultiplier)));if(!this.provider){if(!this.fts.enabled||!this.fts.available)return Z.warn(`memory search: no provider and FTS unavailable`),[];let e=s.t(n),t=e.length>0?e:[n],a=await Promise.all(t.map(e=>this.searchKeyword(e,o).catch(()=>[]))),c=new Map;for(let e of a)for(let t of e){let e=c.get(t.id);(!e||t.score>e.score)&&c.set(t.id,t)}return[...c.values()].toSorted((e,t)=>t.score-e.score).filter(e=>e.score>=r).slice(0,i)}let c=a.enabled&&this.fts.enabled&&this.fts.available?await this.searchKeyword(n,o).catch(()=>[]):[],l=await this.embedQueryWithTimeout(n),u=l.some(e=>e!==0)?await this.searchVector(l,o).catch(()=>[]):[];if(!a.enabled||!this.fts.enabled||!this.fts.available)return u.filter(e=>e.score>=r).slice(0,i);let d=await this.mergeHybridResults({vector:u,keyword:c,vectorWeight:a.vectorWeight,textWeight:a.textWeight,mmr:a.mmr,temporalDecay:a.temporalDecay}),f=d.filter(e=>e.score>=r);if(f.length>0||c.length===0)return f.slice(0,i);let p=Math.min(r,a.textWeight),m=new Set(c.map(e=>`${e.source}:${e.path}:${e.startLine}:${e.endLine}`));return d.filter(e=>m.has(`${e.source}:${e.path}:${e.startLine}:${e.endLine}`)&&e.score>=p).slice(0,i)}async searchVector(e,t){return this.provider?(await rn({db:this.db,vectorTable:`chunks_vec`,providerModel:this.provider.model,queryVec:e,limit:t,snippetMaxChars:700,ensureVectorReady:async e=>await this.ensureVectorReady(e),sourceFilterVec:this.buildSourceFilter(`c`),sourceFilterChunks:this.buildSourceFilter()})).map(e=>e):[]}buildFtsQuery(e){return it(e)}async searchKeyword(e,t){if(!this.fts.enabled||!this.fts.available)return[];let n=this.buildSourceFilter(),r=this.provider?.model;return(await on({db:this.db,ftsTable:`chunks_fts`,providerModel:r,query:e,limit:t,snippetMaxChars:700,sourceFilter:n,buildFtsQuery:e=>this.buildFtsQuery(e),bm25RankToScore:at})).map(e=>e)}mergeHybridResults(e){return ot({vector:e.vector.map(e=>({id:e.id,path:e.path,startLine:e.startLine,endLine:e.endLine,source:e.source,snippet:e.snippet,vectorScore:e.score})),keyword:e.keyword.map(e=>({id:e.id,path:e.path,startLine:e.startLine,endLine:e.endLine,source:e.source,snippet:e.snippet,textScore:e.textScore})),vectorWeight:e.vectorWeight,textWeight:e.textWeight,mmr:e.mmr,temporalDecay:e.temporalDecay,workspaceDir:this.workspaceDir}).then(e=>e.map(e=>e))}async sync(e){if(!this.closed)return this.syncing?this.syncing:(this.syncing=this.runSyncWithReadonlyRecovery(e).finally(()=>{this.syncing=null}),this.syncing??Promise.resolve())}isReadonlyDbError(e){let t=/attempt to write a readonly database|database is read-only|SQLITE_READONLY/i,n=new Set,r=e=>{if(typeof e!=`string`)return;let t=e.trim();t&&n.add(t)};if(r(e instanceof Error?e.message:String(e)),e&&typeof e==`object`){let t=e;if(r(t.message),r(t.code),r(t.name),t.cause&&typeof t.cause==`object`){let e=t.cause;r(e.message),r(e.code),r(e.name)}}return[...n].some(e=>t.test(e))}extractErrorReason(e){if(e instanceof Error&&e.message.trim())return e.message;if(e&&typeof e==`object`){let t=e;if(typeof t.message==`string`&&t.message.trim())return t.message;if(typeof t.code==`string`&&t.code.trim())return t.code}return String(e)}async runSyncWithReadonlyRecovery(e){try{await this.runSync(e);return}catch(t){if(!this.isReadonlyDbError(t)||this.closed)throw t;let n=this.extractErrorReason(t);this.readonlyRecoveryAttempts+=1,this.readonlyRecoveryLastError=n,Z.warn(`memory sync readonly handle detected; reopening sqlite connection`,{reason:n});try{this.db.close()}catch{}this.db=this.openDatabase(),this.vectorReady=null,this.vector.available=null,this.vector.loadError=void 0,this.ensureSchema();let r=this.readMeta();this.vector.dims=r?.vectorDims;try{await this.runSync(e),this.readonlyRecoverySuccesses+=1}catch(e){throw this.readonlyRecoveryFailures+=1,e}}}async readFile(e){let t=e.relPath.trim();if(!t)throw Error(`path required`);let n=l.default.isAbsolute(t)?l.default.resolve(t):l.default.resolve(this.workspaceDir,t),r=l.default.relative(this.workspaceDir,n).replace(/\\/g,`/`),i=r.length>0&&!r.startsWith(`..`)&&!l.default.isAbsolute(r)&&s.p(r),a=!1;if(!i&&this.settings.extraPaths.length>0){let e=s.h(this.workspaceDir,this.settings.extraPaths);for(let t of e)try{let e=await c.default.lstat(t);if(e.isSymbolicLink())continue;if(e.isDirectory()){if(n===t||n.startsWith(`${t}${l.default.sep}`)){a=!0;break}continue}if(e.isFile()&&n===t&&n.endsWith(`.md`)){a=!0;break}}catch{}}if(!i&&!a||!n.endsWith(`.md`))throw Error(`path required`);if((await s.w(n)).missing)return{text:``,path:r};let o;try{o=await c.default.readFile(n,`utf-8`)}catch(e){if(s.C(e))return{text:``,path:r};throw e}if(!e.from&&!e.lines)return{text:o,path:r};let u=o.split(`
|
|
69
69
|
`),d=Math.max(1,e.from??1),f=Math.max(1,e.lines??u.length);return{text:u.slice(d-1,d-1+f).join(`
|
|
70
70
|
`),path:r}}status(){let e=this.buildSourceFilter(),t=this.db.prepare(`SELECT COUNT(*) as c FROM files WHERE 1=1${e.sql}`).get(...e.params),n=this.db.prepare(`SELECT COUNT(*) as c FROM chunks WHERE 1=1${e.sql}`).get(...e.params),r=(()=>{let t=Array.from(this.sources);if(t.length===0)return[];let n=new Map;for(let e of t)n.set(e,{files:0,chunks:0});let r=this.db.prepare(`SELECT source, COUNT(*) as c FROM files WHERE 1=1${e.sql} GROUP BY source`).all(...e.params);for(let e of r){let t=n.get(e.source)??{files:0,chunks:0};t.files=e.c??0,n.set(e.source,t)}let i=this.db.prepare(`SELECT source, COUNT(*) as c FROM chunks WHERE 1=1${e.sql} GROUP BY source`).all(...e.params);for(let e of i){let t=n.get(e.source)??{files:0,chunks:0};t.chunks=e.c??0,n.set(e.source,t)}return t.map(e=>Object.assign({source:e},n.get(e)))})(),i=this.provider?`hybrid`:`fts-only`,a=this.provider?{provider:this.provider.id,model:this.provider.model}:{provider:`none`,model:void 0};return{backend:`builtin`,files:t?.c??0,chunks:n?.c??0,dirty:this.dirty||this.sessionsDirty,workspaceDir:this.workspaceDir,dbPath:this.settings.store.path,provider:a.provider,model:a.model,requestedProvider:this.requestedProvider,sources:Array.from(this.sources),extraPaths:this.settings.extraPaths,sourceCounts:r,cache:this.cache.enabled?{enabled:!0,entries:this.db.prepare(`SELECT COUNT(*) as c FROM embedding_cache`).get()?.c??0,maxEntries:this.cache.maxEntries}:{enabled:!1,maxEntries:this.cache.maxEntries},fts:{enabled:this.fts.enabled,available:this.fts.available,error:this.fts.loadError},fallback:this.fallbackReason?{from:this.fallbackFrom??`local`,reason:this.fallbackReason}:void 0,vector:{enabled:this.vector.enabled,available:this.vector.available??void 0,extensionPath:this.vector.extensionPath,loadError:this.vector.loadError,dims:this.vector.dims},batch:{enabled:this.batch.enabled,failures:this.batchFailureCount,limit:2,wait:this.batch.wait,concurrency:this.batch.concurrency,pollIntervalMs:this.batch.pollIntervalMs,timeoutMs:this.batch.timeoutMs,lastError:this.batchFailureLastError,lastProvider:this.batchFailureLastProvider},custom:{searchMode:i,providerUnavailableReason:this.providerUnavailableReason,readonlyRecovery:{attempts:this.readonlyRecoveryAttempts,successes:this.readonlyRecoverySuccesses,failures:this.readonlyRecoveryFailures,lastError:this.readonlyRecoveryLastError}}}}async probeVectorAvailability(){return!this.provider||!this.vector.enabled?!1:this.ensureVectorReady()}async probeEmbeddingAvailability(){if(!this.provider)return{ok:!1,error:this.providerUnavailableReason??`No embedding provider available (FTS-only mode)`};try{return await this.embedBatchWithRetry([`ping`]),{ok:!0}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async close(){if(this.closed)return;this.closed=!0;let e=this.syncing;if(this.watchTimer&&=(clearTimeout(this.watchTimer),null),this.sessionWatchTimer&&=(clearTimeout(this.sessionWatchTimer),null),this.intervalTimer&&=(clearInterval(this.intervalTimer),null),this.watcher&&=(await this.watcher.close(),null),this.sessionUnsubscribe&&=(this.sessionUnsubscribe(),null),e)try{await e}catch{}this.db.close(),Q.delete(this.cacheKey)}};Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return sn}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return cn}});
|
|
71
|
-
//# sourceMappingURL=manager-BZVFXygg.cjs.map
|
|
@@ -68,4 +68,3 @@ const e=require(`./paths-BvlJvmRS.cjs`),t=require(`./paths-BPlgbwrb.cjs`),n=requ
|
|
|
68
68
|
WHERE model = ?${e.sourceFilter.sql}`).all(e.providerModel,...e.sourceFilter.params).map(e=>({id:e.id,path:e.path,startLine:e.start_line,endLine:e.end_line,text:e.text,embedding:s.g(e.embedding),source:e.source}))}async function on(e){if(e.limit<=0)return[];let t=e.buildFtsQuery(e.query);if(!t)return[];let n=e.providerModel?` AND model = ?`:``,i=e.providerModel?[e.providerModel]:[];return e.db.prepare(`SELECT id, path, source, start_line, end_line, text,\n bm25(${e.ftsTable}) AS rank\n FROM ${e.ftsTable}\n WHERE ${e.ftsTable} MATCH ?${n}${e.sourceFilter.sql}\n ORDER BY rank ASC\n LIMIT ?`).all(t,...i,...e.sourceFilter.params,e.limit).map(t=>{let n=e.bm25RankToScore(t.rank);return{id:t.id,path:t.path,startLine:t.start_line,endLine:t.end_line,score:n,textScore:n,snippet:r.P(t.text,e.snippetMaxChars),source:t.source}})}const Z=r.a(`memory`),Q=new Map,$=new Map;async function sn(){let e=Array.from($.values());e.length>0&&await Promise.allSettled(e);let t=Array.from(Q.values());Q.clear();for(let e of t)try{await e.close()}catch(e){Z.warn(`failed to close memory index manager: ${String(e)}`)}}var cn=class e extends tn{static async get(n){let{cfg:r,agentId:i}=n,a=g(r,i);if(!a)return null;let o=t.J(r,i),s=`${i}:${o}:${JSON.stringify(a)}`,c=Q.get(s);if(c)return c;let l=$.get(s);if(l)return l;let u=(async()=>{let c=await Be({config:r,agentDir:t.G(r,i),provider:a.provider,remote:a.remote,model:a.model,outputDimensionality:a.outputDimensionality,fallback:a.fallback,local:a.local}),l=Q.get(s);if(l)return l;let u=new e({cacheKey:s,cfg:r,agentId:i,workspaceDir:o,settings:a,providerResult:c,purpose:n.purpose});return Q.set(s,u),u})();$.set(s,u);try{return await u}finally{$.get(s)===u&&$.delete(s)}}constructor(e){super(),this.batchFailureCount=0,this.batchFailureLock=Promise.resolve(),this.vectorReady=null,this.watcher=null,this.watchTimer=null,this.sessionWatchTimer=null,this.sessionUnsubscribe=null,this.intervalTimer=null,this.closed=!1,this.dirty=!1,this.sessionsDirty=!1,this.sessionsDirtyFiles=new Set,this.sessionPendingFiles=new Set,this.sessionDeltas=new Map,this.sessionWarm=new Set,this.syncing=null,this.readonlyRecoveryAttempts=0,this.readonlyRecoverySuccesses=0,this.readonlyRecoveryFailures=0,this.cacheKey=e.cacheKey,this.cfg=e.cfg,this.agentId=e.agentId,this.workspaceDir=e.workspaceDir,this.settings=e.settings,this.provider=e.providerResult.provider,this.requestedProvider=e.providerResult.requestedProvider,this.fallbackFrom=e.providerResult.fallbackFrom,this.fallbackReason=e.providerResult.fallbackReason,this.providerUnavailableReason=e.providerResult.providerUnavailableReason,this.openAi=e.providerResult.openAi,this.gemini=e.providerResult.gemini,this.voyage=e.providerResult.voyage,this.mistral=e.providerResult.mistral,this.ollama=e.providerResult.ollama,this.sources=new Set(e.settings.sources),this.db=this.openDatabase(),this.providerKey=this.computeProviderKey(),this.cache={enabled:e.settings.cache.enabled,maxEntries:e.settings.cache.maxEntries},this.fts={enabled:e.settings.query.hybrid.enabled,available:!1},this.ensureSchema(),this.vector={enabled:e.settings.store.vector.enabled,available:null,extensionPath:e.settings.store.vector.extensionPath};let t=this.readMeta();t?.vectorDims&&(this.vector.dims=t.vectorDims),this.ensureWatcher(),this.ensureSessionListener(),this.ensureIntervalSync();let n=e.purpose===`status`;this.dirty=this.sources.has(`memory`)&&(n?!t:!0),this.batch=this.resolveBatchConfig()}async warmSession(e){if(!this.settings.sync.onSessionStart)return;let t=e?.trim()||``;t&&this.sessionWarm.has(t)||(this.sync({reason:`session-start`}).catch(e=>{Z.warn(`memory sync failed (session-start): ${String(e)}`)}),t&&this.sessionWarm.add(t))}async search(e,t){this.warmSession(t?.sessionKey),this.settings.sync.onSearch&&(this.dirty||this.sessionsDirty)&&this.sync({reason:`search`}).catch(e=>{Z.warn(`memory sync failed (search): ${String(e)}`)});let n=e.trim();if(!n)return[];let r=t?.minScore??this.settings.query.minScore,i=t?.maxResults??this.settings.query.maxResults,a=this.settings.query.hybrid,o=Math.min(200,Math.max(1,Math.floor(i*a.candidateMultiplier)));if(!this.provider){if(!this.fts.enabled||!this.fts.available)return Z.warn(`memory search: no provider and FTS unavailable`),[];let e=s.t(n),t=e.length>0?e:[n],a=await Promise.all(t.map(e=>this.searchKeyword(e,o).catch(()=>[]))),c=new Map;for(let e of a)for(let t of e){let e=c.get(t.id);(!e||t.score>e.score)&&c.set(t.id,t)}return[...c.values()].toSorted((e,t)=>t.score-e.score).filter(e=>e.score>=r).slice(0,i)}let c=a.enabled&&this.fts.enabled&&this.fts.available?await this.searchKeyword(n,o).catch(()=>[]):[],l=await this.embedQueryWithTimeout(n),u=l.some(e=>e!==0)?await this.searchVector(l,o).catch(()=>[]):[];if(!a.enabled||!this.fts.enabled||!this.fts.available)return u.filter(e=>e.score>=r).slice(0,i);let d=await this.mergeHybridResults({vector:u,keyword:c,vectorWeight:a.vectorWeight,textWeight:a.textWeight,mmr:a.mmr,temporalDecay:a.temporalDecay}),f=d.filter(e=>e.score>=r);if(f.length>0||c.length===0)return f.slice(0,i);let p=Math.min(r,a.textWeight),m=new Set(c.map(e=>`${e.source}:${e.path}:${e.startLine}:${e.endLine}`));return d.filter(e=>m.has(`${e.source}:${e.path}:${e.startLine}:${e.endLine}`)&&e.score>=p).slice(0,i)}async searchVector(e,t){return this.provider?(await rn({db:this.db,vectorTable:`chunks_vec`,providerModel:this.provider.model,queryVec:e,limit:t,snippetMaxChars:700,ensureVectorReady:async e=>await this.ensureVectorReady(e),sourceFilterVec:this.buildSourceFilter(`c`),sourceFilterChunks:this.buildSourceFilter()})).map(e=>e):[]}buildFtsQuery(e){return it(e)}async searchKeyword(e,t){if(!this.fts.enabled||!this.fts.available)return[];let n=this.buildSourceFilter(),r=this.provider?.model;return(await on({db:this.db,ftsTable:`chunks_fts`,providerModel:r,query:e,limit:t,snippetMaxChars:700,sourceFilter:n,buildFtsQuery:e=>this.buildFtsQuery(e),bm25RankToScore:at})).map(e=>e)}mergeHybridResults(e){return ot({vector:e.vector.map(e=>({id:e.id,path:e.path,startLine:e.startLine,endLine:e.endLine,source:e.source,snippet:e.snippet,vectorScore:e.score})),keyword:e.keyword.map(e=>({id:e.id,path:e.path,startLine:e.startLine,endLine:e.endLine,source:e.source,snippet:e.snippet,textScore:e.textScore})),vectorWeight:e.vectorWeight,textWeight:e.textWeight,mmr:e.mmr,temporalDecay:e.temporalDecay,workspaceDir:this.workspaceDir}).then(e=>e.map(e=>e))}async sync(e){if(!this.closed)return this.syncing?this.syncing:(this.syncing=this.runSyncWithReadonlyRecovery(e).finally(()=>{this.syncing=null}),this.syncing??Promise.resolve())}isReadonlyDbError(e){let t=/attempt to write a readonly database|database is read-only|SQLITE_READONLY/i,n=new Set,r=e=>{if(typeof e!=`string`)return;let t=e.trim();t&&n.add(t)};if(r(e instanceof Error?e.message:String(e)),e&&typeof e==`object`){let t=e;if(r(t.message),r(t.code),r(t.name),t.cause&&typeof t.cause==`object`){let e=t.cause;r(e.message),r(e.code),r(e.name)}}return[...n].some(e=>t.test(e))}extractErrorReason(e){if(e instanceof Error&&e.message.trim())return e.message;if(e&&typeof e==`object`){let t=e;if(typeof t.message==`string`&&t.message.trim())return t.message;if(typeof t.code==`string`&&t.code.trim())return t.code}return String(e)}async runSyncWithReadonlyRecovery(e){try{await this.runSync(e);return}catch(t){if(!this.isReadonlyDbError(t)||this.closed)throw t;let n=this.extractErrorReason(t);this.readonlyRecoveryAttempts+=1,this.readonlyRecoveryLastError=n,Z.warn(`memory sync readonly handle detected; reopening sqlite connection`,{reason:n});try{this.db.close()}catch{}this.db=this.openDatabase(),this.vectorReady=null,this.vector.available=null,this.vector.loadError=void 0,this.ensureSchema();let r=this.readMeta();this.vector.dims=r?.vectorDims;try{await this.runSync(e),this.readonlyRecoverySuccesses+=1}catch(e){throw this.readonlyRecoveryFailures+=1,e}}}async readFile(e){let t=e.relPath.trim();if(!t)throw Error(`path required`);let n=l.default.isAbsolute(t)?l.default.resolve(t):l.default.resolve(this.workspaceDir,t),r=l.default.relative(this.workspaceDir,n).replace(/\\/g,`/`),i=r.length>0&&!r.startsWith(`..`)&&!l.default.isAbsolute(r)&&s.p(r),a=!1;if(!i&&this.settings.extraPaths.length>0){let e=s.h(this.workspaceDir,this.settings.extraPaths);for(let t of e)try{let e=await d.default.lstat(t);if(e.isSymbolicLink())continue;if(e.isDirectory()){if(n===t||n.startsWith(`${t}${l.default.sep}`)){a=!0;break}continue}if(e.isFile()&&n===t&&n.endsWith(`.md`)){a=!0;break}}catch{}}if(!i&&!a||!n.endsWith(`.md`))throw Error(`path required`);if((await s.w(n)).missing)return{text:``,path:r};let o;try{o=await d.default.readFile(n,`utf-8`)}catch(e){if(s.C(e))return{text:``,path:r};throw e}if(!e.from&&!e.lines)return{text:o,path:r};let c=o.split(`
|
|
69
69
|
`),u=Math.max(1,e.from??1),f=Math.max(1,e.lines??c.length);return{text:c.slice(u-1,u-1+f).join(`
|
|
70
70
|
`),path:r}}status(){let e=this.buildSourceFilter(),t=this.db.prepare(`SELECT COUNT(*) as c FROM files WHERE 1=1${e.sql}`).get(...e.params),n=this.db.prepare(`SELECT COUNT(*) as c FROM chunks WHERE 1=1${e.sql}`).get(...e.params),r=(()=>{let t=Array.from(this.sources);if(t.length===0)return[];let n=new Map;for(let e of t)n.set(e,{files:0,chunks:0});let r=this.db.prepare(`SELECT source, COUNT(*) as c FROM files WHERE 1=1${e.sql} GROUP BY source`).all(...e.params);for(let e of r){let t=n.get(e.source)??{files:0,chunks:0};t.files=e.c??0,n.set(e.source,t)}let i=this.db.prepare(`SELECT source, COUNT(*) as c FROM chunks WHERE 1=1${e.sql} GROUP BY source`).all(...e.params);for(let e of i){let t=n.get(e.source)??{files:0,chunks:0};t.chunks=e.c??0,n.set(e.source,t)}return t.map(e=>Object.assign({source:e},n.get(e)))})(),i=this.provider?`hybrid`:`fts-only`,a=this.provider?{provider:this.provider.id,model:this.provider.model}:{provider:`none`,model:void 0};return{backend:`builtin`,files:t?.c??0,chunks:n?.c??0,dirty:this.dirty||this.sessionsDirty,workspaceDir:this.workspaceDir,dbPath:this.settings.store.path,provider:a.provider,model:a.model,requestedProvider:this.requestedProvider,sources:Array.from(this.sources),extraPaths:this.settings.extraPaths,sourceCounts:r,cache:this.cache.enabled?{enabled:!0,entries:this.db.prepare(`SELECT COUNT(*) as c FROM embedding_cache`).get()?.c??0,maxEntries:this.cache.maxEntries}:{enabled:!1,maxEntries:this.cache.maxEntries},fts:{enabled:this.fts.enabled,available:this.fts.available,error:this.fts.loadError},fallback:this.fallbackReason?{from:this.fallbackFrom??`local`,reason:this.fallbackReason}:void 0,vector:{enabled:this.vector.enabled,available:this.vector.available??void 0,extensionPath:this.vector.extensionPath,loadError:this.vector.loadError,dims:this.vector.dims},batch:{enabled:this.batch.enabled,failures:this.batchFailureCount,limit:2,wait:this.batch.wait,concurrency:this.batch.concurrency,pollIntervalMs:this.batch.pollIntervalMs,timeoutMs:this.batch.timeoutMs,lastError:this.batchFailureLastError,lastProvider:this.batchFailureLastProvider},custom:{searchMode:i,providerUnavailableReason:this.providerUnavailableReason,readonlyRecovery:{attempts:this.readonlyRecoveryAttempts,successes:this.readonlyRecoverySuccesses,failures:this.readonlyRecoveryFailures,lastError:this.readonlyRecoveryLastError}}}}async probeVectorAvailability(){return!this.provider||!this.vector.enabled?!1:this.ensureVectorReady()}async probeEmbeddingAvailability(){if(!this.provider)return{ok:!1,error:this.providerUnavailableReason??`No embedding provider available (FTS-only mode)`};try{return await this.embedBatchWithRetry([`ping`]),{ok:!0}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async close(){if(this.closed)return;this.closed=!0;let e=this.syncing;if(this.watchTimer&&=(clearTimeout(this.watchTimer),null),this.sessionWatchTimer&&=(clearTimeout(this.sessionWatchTimer),null),this.intervalTimer&&=(clearInterval(this.intervalTimer),null),this.watcher&&=(await this.watcher.close(),null),this.sessionUnsubscribe&&=(this.sessionUnsubscribe(),null),e)try{await e}catch{}this.db.close(),Q.delete(this.cacheKey)}};Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return sn}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return cn}});
|
|
71
|
-
//# sourceMappingURL=manager-BuNveORY.cjs.map
|
|
@@ -68,4 +68,3 @@ const e=require(`./paths-Bcdg3ma0.cjs`),t=require(`./paths-Cqca1YmF.cjs`),n=requ
|
|
|
68
68
|
WHERE model = ?${e.sourceFilter.sql}`).all(e.providerModel,...e.sourceFilter.params).map(e=>({id:e.id,path:e.path,startLine:e.start_line,endLine:e.end_line,text:e.text,embedding:s.g(e.embedding),source:e.source}))}async function on(e){if(e.limit<=0)return[];let t=e.buildFtsQuery(e.query);if(!t)return[];let n=e.providerModel?` AND model = ?`:``,i=e.providerModel?[e.providerModel]:[];return e.db.prepare(`SELECT id, path, source, start_line, end_line, text,\n bm25(${e.ftsTable}) AS rank\n FROM ${e.ftsTable}\n WHERE ${e.ftsTable} MATCH ?${n}${e.sourceFilter.sql}\n ORDER BY rank ASC\n LIMIT ?`).all(t,...i,...e.sourceFilter.params,e.limit).map(t=>{let n=e.bm25RankToScore(t.rank);return{id:t.id,path:t.path,startLine:t.start_line,endLine:t.end_line,score:n,textScore:n,snippet:r.E(t.text,e.snippetMaxChars),source:t.source}})}const Z=r.O(`memory`),Q=new Map,$=new Map;async function sn(){let e=Array.from($.values());e.length>0&&await Promise.allSettled(e);let t=Array.from(Q.values());Q.clear();for(let e of t)try{await e.close()}catch(e){Z.warn(`failed to close memory index manager: ${String(e)}`)}}var cn=class e extends tn{static async get(n){let{cfg:r,agentId:i}=n,a=g(r,i);if(!a)return null;let o=t.W(r,i),s=`${i}:${o}:${JSON.stringify(a)}`,c=Q.get(s);if(c)return c;let l=$.get(s);if(l)return l;let u=(async()=>{let c=await Be({config:r,agentDir:t.V(r,i),provider:a.provider,remote:a.remote,model:a.model,outputDimensionality:a.outputDimensionality,fallback:a.fallback,local:a.local}),l=Q.get(s);if(l)return l;let u=new e({cacheKey:s,cfg:r,agentId:i,workspaceDir:o,settings:a,providerResult:c,purpose:n.purpose});return Q.set(s,u),u})();$.set(s,u);try{return await u}finally{$.get(s)===u&&$.delete(s)}}constructor(e){super(),this.batchFailureCount=0,this.batchFailureLock=Promise.resolve(),this.vectorReady=null,this.watcher=null,this.watchTimer=null,this.sessionWatchTimer=null,this.sessionUnsubscribe=null,this.intervalTimer=null,this.closed=!1,this.dirty=!1,this.sessionsDirty=!1,this.sessionsDirtyFiles=new Set,this.sessionPendingFiles=new Set,this.sessionDeltas=new Map,this.sessionWarm=new Set,this.syncing=null,this.readonlyRecoveryAttempts=0,this.readonlyRecoverySuccesses=0,this.readonlyRecoveryFailures=0,this.cacheKey=e.cacheKey,this.cfg=e.cfg,this.agentId=e.agentId,this.workspaceDir=e.workspaceDir,this.settings=e.settings,this.provider=e.providerResult.provider,this.requestedProvider=e.providerResult.requestedProvider,this.fallbackFrom=e.providerResult.fallbackFrom,this.fallbackReason=e.providerResult.fallbackReason,this.providerUnavailableReason=e.providerResult.providerUnavailableReason,this.openAi=e.providerResult.openAi,this.gemini=e.providerResult.gemini,this.voyage=e.providerResult.voyage,this.mistral=e.providerResult.mistral,this.ollama=e.providerResult.ollama,this.sources=new Set(e.settings.sources),this.db=this.openDatabase(),this.providerKey=this.computeProviderKey(),this.cache={enabled:e.settings.cache.enabled,maxEntries:e.settings.cache.maxEntries},this.fts={enabled:e.settings.query.hybrid.enabled,available:!1},this.ensureSchema(),this.vector={enabled:e.settings.store.vector.enabled,available:null,extensionPath:e.settings.store.vector.extensionPath};let t=this.readMeta();t?.vectorDims&&(this.vector.dims=t.vectorDims),this.ensureWatcher(),this.ensureSessionListener(),this.ensureIntervalSync();let n=e.purpose===`status`;this.dirty=this.sources.has(`memory`)&&(n?!t:!0),this.batch=this.resolveBatchConfig()}async warmSession(e){if(!this.settings.sync.onSessionStart)return;let t=e?.trim()||``;t&&this.sessionWarm.has(t)||(this.sync({reason:`session-start`}).catch(e=>{Z.warn(`memory sync failed (session-start): ${String(e)}`)}),t&&this.sessionWarm.add(t))}async search(e,t){this.warmSession(t?.sessionKey),this.settings.sync.onSearch&&(this.dirty||this.sessionsDirty)&&this.sync({reason:`search`}).catch(e=>{Z.warn(`memory sync failed (search): ${String(e)}`)});let n=e.trim();if(!n)return[];let r=t?.minScore??this.settings.query.minScore,i=t?.maxResults??this.settings.query.maxResults,a=this.settings.query.hybrid,o=Math.min(200,Math.max(1,Math.floor(i*a.candidateMultiplier)));if(!this.provider){if(!this.fts.enabled||!this.fts.available)return Z.warn(`memory search: no provider and FTS unavailable`),[];let e=s.t(n),t=e.length>0?e:[n],a=await Promise.all(t.map(e=>this.searchKeyword(e,o).catch(()=>[]))),c=new Map;for(let e of a)for(let t of e){let e=c.get(t.id);(!e||t.score>e.score)&&c.set(t.id,t)}return[...c.values()].toSorted((e,t)=>t.score-e.score).filter(e=>e.score>=r).slice(0,i)}let c=a.enabled&&this.fts.enabled&&this.fts.available?await this.searchKeyword(n,o).catch(()=>[]):[],l=await this.embedQueryWithTimeout(n),u=l.some(e=>e!==0)?await this.searchVector(l,o).catch(()=>[]):[];if(!a.enabled||!this.fts.enabled||!this.fts.available)return u.filter(e=>e.score>=r).slice(0,i);let d=await this.mergeHybridResults({vector:u,keyword:c,vectorWeight:a.vectorWeight,textWeight:a.textWeight,mmr:a.mmr,temporalDecay:a.temporalDecay}),f=d.filter(e=>e.score>=r);if(f.length>0||c.length===0)return f.slice(0,i);let p=Math.min(r,a.textWeight),m=new Set(c.map(e=>`${e.source}:${e.path}:${e.startLine}:${e.endLine}`));return d.filter(e=>m.has(`${e.source}:${e.path}:${e.startLine}:${e.endLine}`)&&e.score>=p).slice(0,i)}async searchVector(e,t){return this.provider?(await rn({db:this.db,vectorTable:`chunks_vec`,providerModel:this.provider.model,queryVec:e,limit:t,snippetMaxChars:700,ensureVectorReady:async e=>await this.ensureVectorReady(e),sourceFilterVec:this.buildSourceFilter(`c`),sourceFilterChunks:this.buildSourceFilter()})).map(e=>e):[]}buildFtsQuery(e){return it(e)}async searchKeyword(e,t){if(!this.fts.enabled||!this.fts.available)return[];let n=this.buildSourceFilter(),r=this.provider?.model;return(await on({db:this.db,ftsTable:`chunks_fts`,providerModel:r,query:e,limit:t,snippetMaxChars:700,sourceFilter:n,buildFtsQuery:e=>this.buildFtsQuery(e),bm25RankToScore:at})).map(e=>e)}mergeHybridResults(e){return ot({vector:e.vector.map(e=>({id:e.id,path:e.path,startLine:e.startLine,endLine:e.endLine,source:e.source,snippet:e.snippet,vectorScore:e.score})),keyword:e.keyword.map(e=>({id:e.id,path:e.path,startLine:e.startLine,endLine:e.endLine,source:e.source,snippet:e.snippet,textScore:e.textScore})),vectorWeight:e.vectorWeight,textWeight:e.textWeight,mmr:e.mmr,temporalDecay:e.temporalDecay,workspaceDir:this.workspaceDir}).then(e=>e.map(e=>e))}async sync(e){if(!this.closed)return this.syncing?this.syncing:(this.syncing=this.runSyncWithReadonlyRecovery(e).finally(()=>{this.syncing=null}),this.syncing??Promise.resolve())}isReadonlyDbError(e){let t=/attempt to write a readonly database|database is read-only|SQLITE_READONLY/i,n=new Set,r=e=>{if(typeof e!=`string`)return;let t=e.trim();t&&n.add(t)};if(r(e instanceof Error?e.message:String(e)),e&&typeof e==`object`){let t=e;if(r(t.message),r(t.code),r(t.name),t.cause&&typeof t.cause==`object`){let e=t.cause;r(e.message),r(e.code),r(e.name)}}return[...n].some(e=>t.test(e))}extractErrorReason(e){if(e instanceof Error&&e.message.trim())return e.message;if(e&&typeof e==`object`){let t=e;if(typeof t.message==`string`&&t.message.trim())return t.message;if(typeof t.code==`string`&&t.code.trim())return t.code}return String(e)}async runSyncWithReadonlyRecovery(e){try{await this.runSync(e);return}catch(t){if(!this.isReadonlyDbError(t)||this.closed)throw t;let n=this.extractErrorReason(t);this.readonlyRecoveryAttempts+=1,this.readonlyRecoveryLastError=n,Z.warn(`memory sync readonly handle detected; reopening sqlite connection`,{reason:n});try{this.db.close()}catch{}this.db=this.openDatabase(),this.vectorReady=null,this.vector.available=null,this.vector.loadError=void 0,this.ensureSchema();let r=this.readMeta();this.vector.dims=r?.vectorDims;try{await this.runSync(e),this.readonlyRecoverySuccesses+=1}catch(e){throw this.readonlyRecoveryFailures+=1,e}}}async readFile(e){let t=e.relPath.trim();if(!t)throw Error(`path required`);let n=c.default.isAbsolute(t)?c.default.resolve(t):c.default.resolve(this.workspaceDir,t),r=c.default.relative(this.workspaceDir,n).replace(/\\/g,`/`),i=r.length>0&&!r.startsWith(`..`)&&!c.default.isAbsolute(r)&&s.p(r),a=!1;if(!i&&this.settings.extraPaths.length>0){let e=s.h(this.workspaceDir,this.settings.extraPaths);for(let t of e)try{let e=await d.default.lstat(t);if(e.isSymbolicLink())continue;if(e.isDirectory()){if(n===t||n.startsWith(`${t}${c.default.sep}`)){a=!0;break}continue}if(e.isFile()&&n===t&&n.endsWith(`.md`)){a=!0;break}}catch{}}if(!i&&!a||!n.endsWith(`.md`))throw Error(`path required`);if((await s.w(n)).missing)return{text:``,path:r};let o;try{o=await d.default.readFile(n,`utf-8`)}catch(e){if(s.C(e))return{text:``,path:r};throw e}if(!e.from&&!e.lines)return{text:o,path:r};let l=o.split(`
|
|
69
69
|
`),u=Math.max(1,e.from??1),f=Math.max(1,e.lines??l.length);return{text:l.slice(u-1,u-1+f).join(`
|
|
70
70
|
`),path:r}}status(){let e=this.buildSourceFilter(),t=this.db.prepare(`SELECT COUNT(*) as c FROM files WHERE 1=1${e.sql}`).get(...e.params),n=this.db.prepare(`SELECT COUNT(*) as c FROM chunks WHERE 1=1${e.sql}`).get(...e.params),r=(()=>{let t=Array.from(this.sources);if(t.length===0)return[];let n=new Map;for(let e of t)n.set(e,{files:0,chunks:0});let r=this.db.prepare(`SELECT source, COUNT(*) as c FROM files WHERE 1=1${e.sql} GROUP BY source`).all(...e.params);for(let e of r){let t=n.get(e.source)??{files:0,chunks:0};t.files=e.c??0,n.set(e.source,t)}let i=this.db.prepare(`SELECT source, COUNT(*) as c FROM chunks WHERE 1=1${e.sql} GROUP BY source`).all(...e.params);for(let e of i){let t=n.get(e.source)??{files:0,chunks:0};t.chunks=e.c??0,n.set(e.source,t)}return t.map(e=>Object.assign({source:e},n.get(e)))})(),i=this.provider?`hybrid`:`fts-only`,a=this.provider?{provider:this.provider.id,model:this.provider.model}:{provider:`none`,model:void 0};return{backend:`builtin`,files:t?.c??0,chunks:n?.c??0,dirty:this.dirty||this.sessionsDirty,workspaceDir:this.workspaceDir,dbPath:this.settings.store.path,provider:a.provider,model:a.model,requestedProvider:this.requestedProvider,sources:Array.from(this.sources),extraPaths:this.settings.extraPaths,sourceCounts:r,cache:this.cache.enabled?{enabled:!0,entries:this.db.prepare(`SELECT COUNT(*) as c FROM embedding_cache`).get()?.c??0,maxEntries:this.cache.maxEntries}:{enabled:!1,maxEntries:this.cache.maxEntries},fts:{enabled:this.fts.enabled,available:this.fts.available,error:this.fts.loadError},fallback:this.fallbackReason?{from:this.fallbackFrom??`local`,reason:this.fallbackReason}:void 0,vector:{enabled:this.vector.enabled,available:this.vector.available??void 0,extensionPath:this.vector.extensionPath,loadError:this.vector.loadError,dims:this.vector.dims},batch:{enabled:this.batch.enabled,failures:this.batchFailureCount,limit:2,wait:this.batch.wait,concurrency:this.batch.concurrency,pollIntervalMs:this.batch.pollIntervalMs,timeoutMs:this.batch.timeoutMs,lastError:this.batchFailureLastError,lastProvider:this.batchFailureLastProvider},custom:{searchMode:i,providerUnavailableReason:this.providerUnavailableReason,readonlyRecovery:{attempts:this.readonlyRecoveryAttempts,successes:this.readonlyRecoverySuccesses,failures:this.readonlyRecoveryFailures,lastError:this.readonlyRecoveryLastError}}}}async probeVectorAvailability(){return!this.provider||!this.vector.enabled?!1:this.ensureVectorReady()}async probeEmbeddingAvailability(){if(!this.provider)return{ok:!1,error:this.providerUnavailableReason??`No embedding provider available (FTS-only mode)`};try{return await this.embedBatchWithRetry([`ping`]),{ok:!0}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async close(){if(this.closed)return;this.closed=!0;let e=this.syncing;if(this.watchTimer&&=(clearTimeout(this.watchTimer),null),this.sessionWatchTimer&&=(clearTimeout(this.sessionWatchTimer),null),this.intervalTimer&&=(clearInterval(this.intervalTimer),null),this.watcher&&=(await this.watcher.close(),null),this.sessionUnsubscribe&&=(this.sessionUnsubscribe(),null),e)try{await e}catch{}this.db.close(),Q.delete(this.cacheKey)}};Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return sn}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return cn}});
|
|
71
|
-
//# sourceMappingURL=manager-C4FEmxjq.cjs.map
|
|
@@ -68,4 +68,3 @@ import{B as e,V as t,W as n,o as r}from"./paths-D55o_j8-.js";import{Dt as i,Fs a
|
|
|
68
68
|
WHERE model = ?${e.sourceFilter.sql}`).all(e.providerModel,...e.sourceFilter.params).map(e=>({id:e.id,path:e.path,startLine:e.start_line,endLine:e.end_line,text:e.text,embedding:fe(e.embedding),source:e.source}))}async function Zn(e){if(e.limit<=0)return[];let t=e.buildFtsQuery(e.query);if(!t)return[];let n=e.providerModel?` AND model = ?`:``,r=e.providerModel?[e.providerModel]:[];return e.db.prepare(`SELECT id, path, source, start_line, end_line, text,\n bm25(${e.ftsTable}) AS rank\n FROM ${e.ftsTable}\n WHERE ${e.ftsTable} MATCH ?${n}${e.sourceFilter.sql}\n ORDER BY rank ASC\n LIMIT ?`).all(t,...r,...e.sourceFilter.params,e.limit).map(t=>{let n=e.bm25RankToScore(t.rank);return{id:t.id,path:t.path,startLine:t.start_line,endLine:t.end_line,score:n,textScore:n,snippet:p(t.text,e.snippetMaxChars),source:t.source}})}const Z=m(`memory`),Q=new Map,$=new Map;async function Qn(){let e=Array.from($.values());e.length>0&&await Promise.allSettled(e);let t=Array.from(Q.values());Q.clear();for(let e of t)try{await e.close()}catch(e){Z.warn(`failed to close memory index manager: ${String(e)}`)}}var $n=class e extends qn{static async get(r){let{cfg:i,agentId:a}=r,o=Re(i,a);if(!o)return null;let s=n(i,a),c=`${a}:${s}:${JSON.stringify(o)}`,l=Q.get(c);if(l)return l;let u=$.get(c);if(u)return u;let d=(async()=>{let n=await kt({config:i,agentDir:t(i,a),provider:o.provider,remote:o.remote,model:o.model,outputDimensionality:o.outputDimensionality,fallback:o.fallback,local:o.local}),l=Q.get(c);if(l)return l;let u=new e({cacheKey:c,cfg:i,agentId:a,workspaceDir:s,settings:o,providerResult:n,purpose:r.purpose});return Q.set(c,u),u})();$.set(c,d);try{return await d}finally{$.get(c)===d&&$.delete(c)}}constructor(e){super(),this.batchFailureCount=0,this.batchFailureLock=Promise.resolve(),this.vectorReady=null,this.watcher=null,this.watchTimer=null,this.sessionWatchTimer=null,this.sessionUnsubscribe=null,this.intervalTimer=null,this.closed=!1,this.dirty=!1,this.sessionsDirty=!1,this.sessionsDirtyFiles=new Set,this.sessionPendingFiles=new Set,this.sessionDeltas=new Map,this.sessionWarm=new Set,this.syncing=null,this.readonlyRecoveryAttempts=0,this.readonlyRecoverySuccesses=0,this.readonlyRecoveryFailures=0,this.cacheKey=e.cacheKey,this.cfg=e.cfg,this.agentId=e.agentId,this.workspaceDir=e.workspaceDir,this.settings=e.settings,this.provider=e.providerResult.provider,this.requestedProvider=e.providerResult.requestedProvider,this.fallbackFrom=e.providerResult.fallbackFrom,this.fallbackReason=e.providerResult.fallbackReason,this.providerUnavailableReason=e.providerResult.providerUnavailableReason,this.openAi=e.providerResult.openAi,this.gemini=e.providerResult.gemini,this.voyage=e.providerResult.voyage,this.mistral=e.providerResult.mistral,this.ollama=e.providerResult.ollama,this.sources=new Set(e.settings.sources),this.db=this.openDatabase(),this.providerKey=this.computeProviderKey(),this.cache={enabled:e.settings.cache.enabled,maxEntries:e.settings.cache.maxEntries},this.fts={enabled:e.settings.query.hybrid.enabled,available:!1},this.ensureSchema(),this.vector={enabled:e.settings.store.vector.enabled,available:null,extensionPath:e.settings.store.vector.extensionPath};let t=this.readMeta();t?.vectorDims&&(this.vector.dims=t.vectorDims),this.ensureWatcher(),this.ensureSessionListener(),this.ensureIntervalSync();let n=e.purpose===`status`;this.dirty=this.sources.has(`memory`)&&(n?!t:!0),this.batch=this.resolveBatchConfig()}async warmSession(e){if(!this.settings.sync.onSessionStart)return;let t=e?.trim()||``;t&&this.sessionWarm.has(t)||(this.sync({reason:`session-start`}).catch(e=>{Z.warn(`memory sync failed (session-start): ${String(e)}`)}),t&&this.sessionWarm.add(t))}async search(e,t){this.warmSession(t?.sessionKey),this.settings.sync.onSearch&&(this.dirty||this.sessionsDirty)&&this.sync({reason:`search`}).catch(e=>{Z.warn(`memory sync failed (search): ${String(e)}`)});let n=e.trim();if(!n)return[];let r=t?.minScore??this.settings.query.minScore,i=t?.maxResults??this.settings.query.maxResults,a=this.settings.query.hybrid,o=Math.min(200,Math.max(1,Math.floor(i*a.candidateMultiplier)));if(!this.provider){if(!this.fts.enabled||!this.fts.available)return Z.warn(`memory search: no provider and FTS unavailable`),[];let e=xe(n),t=e.length>0?e:[n],a=await Promise.all(t.map(e=>this.searchKeyword(e,o).catch(()=>[]))),s=new Map;for(let e of a)for(let t of e){let e=s.get(t.id);(!e||t.score>e.score)&&s.set(t.id,t)}return[...s.values()].toSorted((e,t)=>t.score-e.score).filter(e=>e.score>=r).slice(0,i)}let s=a.enabled&&this.fts.enabled&&this.fts.available?await this.searchKeyword(n,o).catch(()=>[]):[],c=await this.embedQueryWithTimeout(n),l=c.some(e=>e!==0)?await this.searchVector(c,o).catch(()=>[]):[];if(!a.enabled||!this.fts.enabled||!this.fts.available)return l.filter(e=>e.score>=r).slice(0,i);let u=await this.mergeHybridResults({vector:l,keyword:s,vectorWeight:a.vectorWeight,textWeight:a.textWeight,mmr:a.mmr,temporalDecay:a.temporalDecay}),d=u.filter(e=>e.score>=r);if(d.length>0||s.length===0)return d.slice(0,i);let f=Math.min(r,a.textWeight),p=new Set(s.map(e=>`${e.source}:${e.path}:${e.startLine}:${e.endLine}`));return u.filter(e=>p.has(`${e.source}:${e.path}:${e.startLine}:${e.endLine}`)&&e.score>=f).slice(0,i)}async searchVector(e,t){return this.provider?(await Yn({db:this.db,vectorTable:`chunks_vec`,providerModel:this.provider.model,queryVec:e,limit:t,snippetMaxChars:700,ensureVectorReady:async e=>await this.ensureVectorReady(e),sourceFilterVec:this.buildSourceFilter(`c`),sourceFilterChunks:this.buildSourceFilter()})).map(e=>e):[]}buildFtsQuery(e){return qt(e)}async searchKeyword(e,t){if(!this.fts.enabled||!this.fts.available)return[];let n=this.buildSourceFilter(),r=this.provider?.model;return(await Zn({db:this.db,ftsTable:`chunks_fts`,providerModel:r,query:e,limit:t,snippetMaxChars:700,sourceFilter:n,buildFtsQuery:e=>this.buildFtsQuery(e),bm25RankToScore:Jt})).map(e=>e)}mergeHybridResults(e){return Yt({vector:e.vector.map(e=>({id:e.id,path:e.path,startLine:e.startLine,endLine:e.endLine,source:e.source,snippet:e.snippet,vectorScore:e.score})),keyword:e.keyword.map(e=>({id:e.id,path:e.path,startLine:e.startLine,endLine:e.endLine,source:e.source,snippet:e.snippet,textScore:e.textScore})),vectorWeight:e.vectorWeight,textWeight:e.textWeight,mmr:e.mmr,temporalDecay:e.temporalDecay,workspaceDir:this.workspaceDir}).then(e=>e.map(e=>e))}async sync(e){if(!this.closed)return this.syncing?this.syncing:(this.syncing=this.runSyncWithReadonlyRecovery(e).finally(()=>{this.syncing=null}),this.syncing??Promise.resolve())}isReadonlyDbError(e){let t=/attempt to write a readonly database|database is read-only|SQLITE_READONLY/i,n=new Set,r=e=>{if(typeof e!=`string`)return;let t=e.trim();t&&n.add(t)};if(r(e instanceof Error?e.message:String(e)),e&&typeof e==`object`){let t=e;if(r(t.message),r(t.code),r(t.name),t.cause&&typeof t.cause==`object`){let e=t.cause;r(e.message),r(e.code),r(e.name)}}return[...n].some(e=>t.test(e))}extractErrorReason(e){if(e instanceof Error&&e.message.trim())return e.message;if(e&&typeof e==`object`){let t=e;if(typeof t.message==`string`&&t.message.trim())return t.message;if(typeof t.code==`string`&&t.code.trim())return t.code}return String(e)}async runSyncWithReadonlyRecovery(e){try{await this.runSync(e);return}catch(t){if(!this.isReadonlyDbError(t)||this.closed)throw t;let n=this.extractErrorReason(t);this.readonlyRecoveryAttempts+=1,this.readonlyRecoveryLastError=n,Z.warn(`memory sync readonly handle detected; reopening sqlite connection`,{reason:n});try{this.db.close()}catch{}this.db=this.openDatabase(),this.vectorReady=null,this.vector.available=null,this.vector.loadError=void 0,this.ensureSchema();let r=this.readMeta();this.vector.dims=r?.vectorDims;try{await this.runSync(e),this.readonlyRecoverySuccesses+=1}catch(e){throw this.readonlyRecoveryFailures+=1,e}}}async readFile(e){let t=e.relPath.trim();if(!t)throw Error(`path required`);let n=O.isAbsolute(t)?O.resolve(t):O.resolve(this.workspaceDir,t),r=O.relative(this.workspaceDir,n).replace(/\\/g,`/`),i=r.length>0&&!r.startsWith(`..`)&&!O.isAbsolute(r)&&ve(r),a=!1;if(!i&&this.settings.extraPaths.length>0){let e=T(this.workspaceDir,this.settings.extraPaths);for(let t of e)try{let e=await k.lstat(t);if(e.isSymbolicLink())continue;if(e.isDirectory()){if(n===t||n.startsWith(`${t}${O.sep}`)){a=!0;break}continue}if(e.isFile()&&n===t&&n.endsWith(`.md`)){a=!0;break}}catch{}}if(!i&&!a||!n.endsWith(`.md`))throw Error(`path required`);if((await Ce(n)).missing)return{text:``,path:r};let o;try{o=await k.readFile(n,`utf-8`)}catch(e){if(v(e))return{text:``,path:r};throw e}if(!e.from&&!e.lines)return{text:o,path:r};let s=o.split(`
|
|
69
69
|
`),c=Math.max(1,e.from??1),l=Math.max(1,e.lines??s.length);return{text:s.slice(c-1,c-1+l).join(`
|
|
70
70
|
`),path:r}}status(){let e=this.buildSourceFilter(),t=this.db.prepare(`SELECT COUNT(*) as c FROM files WHERE 1=1${e.sql}`).get(...e.params),n=this.db.prepare(`SELECT COUNT(*) as c FROM chunks WHERE 1=1${e.sql}`).get(...e.params),r=(()=>{let t=Array.from(this.sources);if(t.length===0)return[];let n=new Map;for(let e of t)n.set(e,{files:0,chunks:0});let r=this.db.prepare(`SELECT source, COUNT(*) as c FROM files WHERE 1=1${e.sql} GROUP BY source`).all(...e.params);for(let e of r){let t=n.get(e.source)??{files:0,chunks:0};t.files=e.c??0,n.set(e.source,t)}let i=this.db.prepare(`SELECT source, COUNT(*) as c FROM chunks WHERE 1=1${e.sql} GROUP BY source`).all(...e.params);for(let e of i){let t=n.get(e.source)??{files:0,chunks:0};t.chunks=e.c??0,n.set(e.source,t)}return t.map(e=>Object.assign({source:e},n.get(e)))})(),i=this.provider?`hybrid`:`fts-only`,a=this.provider?{provider:this.provider.id,model:this.provider.model}:{provider:`none`,model:void 0};return{backend:`builtin`,files:t?.c??0,chunks:n?.c??0,dirty:this.dirty||this.sessionsDirty,workspaceDir:this.workspaceDir,dbPath:this.settings.store.path,provider:a.provider,model:a.model,requestedProvider:this.requestedProvider,sources:Array.from(this.sources),extraPaths:this.settings.extraPaths,sourceCounts:r,cache:this.cache.enabled?{enabled:!0,entries:this.db.prepare(`SELECT COUNT(*) as c FROM embedding_cache`).get()?.c??0,maxEntries:this.cache.maxEntries}:{enabled:!1,maxEntries:this.cache.maxEntries},fts:{enabled:this.fts.enabled,available:this.fts.available,error:this.fts.loadError},fallback:this.fallbackReason?{from:this.fallbackFrom??`local`,reason:this.fallbackReason}:void 0,vector:{enabled:this.vector.enabled,available:this.vector.available??void 0,extensionPath:this.vector.extensionPath,loadError:this.vector.loadError,dims:this.vector.dims},batch:{enabled:this.batch.enabled,failures:this.batchFailureCount,limit:2,wait:this.batch.wait,concurrency:this.batch.concurrency,pollIntervalMs:this.batch.pollIntervalMs,timeoutMs:this.batch.timeoutMs,lastError:this.batchFailureLastError,lastProvider:this.batchFailureLastProvider},custom:{searchMode:i,providerUnavailableReason:this.providerUnavailableReason,readonlyRecovery:{attempts:this.readonlyRecoveryAttempts,successes:this.readonlyRecoverySuccesses,failures:this.readonlyRecoveryFailures,lastError:this.readonlyRecoveryLastError}}}}async probeVectorAvailability(){return!this.provider||!this.vector.enabled?!1:this.ensureVectorReady()}async probeEmbeddingAvailability(){if(!this.provider)return{ok:!1,error:this.providerUnavailableReason??`No embedding provider available (FTS-only mode)`};try{return await this.embedBatchWithRetry([`ping`]),{ok:!0}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async close(){if(this.closed)return;this.closed=!0;let e=this.syncing;if(this.watchTimer&&=(clearTimeout(this.watchTimer),null),this.sessionWatchTimer&&=(clearTimeout(this.sessionWatchTimer),null),this.intervalTimer&&=(clearInterval(this.intervalTimer),null),this.watcher&&=(await this.watcher.close(),null),this.sessionUnsubscribe&&=(this.sessionUnsubscribe(),null),e)try{await e}catch{}this.db.close(),Q.delete(this.cacheKey)}};export{Qn as n,Re as r,$n as t};
|
|
71
|
-
//# sourceMappingURL=manager-CHnzSMNG.js.map
|
|
@@ -68,4 +68,3 @@ import{A as e,N as t,k as n,o as r}from"./paths-CXgWvWAM.js";import{O as i,S as
|
|
|
68
68
|
WHERE model = ?${e.sourceFilter.sql}`).all(e.providerModel,...e.sourceFilter.params).map(e=>({id:e.id,path:e.path,startLine:e.start_line,endLine:e.end_line,text:e.text,embedding:pe(e.embedding),source:e.source}))}async function Zn(e){if(e.limit<=0)return[];let t=e.buildFtsQuery(e.query);if(!t)return[];let n=e.providerModel?` AND model = ?`:``,r=e.providerModel?[e.providerModel]:[];return e.db.prepare(`SELECT id, path, source, start_line, end_line, text,\n bm25(${e.ftsTable}) AS rank\n FROM ${e.ftsTable}\n WHERE ${e.ftsTable} MATCH ?${n}${e.sourceFilter.sql}\n ORDER BY rank ASC\n LIMIT ?`).all(t,...r,...e.sourceFilter.params,e.limit).map(t=>{let n=e.bm25RankToScore(t.rank);return{id:t.id,path:t.path,startLine:t.start_line,endLine:t.end_line,score:n,textScore:n,snippet:a(t.text,e.snippetMaxChars),source:t.source}})}const Z=i(`memory`),Q=new Map,$=new Map;async function Qn(){let e=Array.from($.values());e.length>0&&await Promise.allSettled(e);let t=Array.from(Q.values());Q.clear();for(let e of t)try{await e.close()}catch(e){Z.warn(`failed to close memory index manager: ${String(e)}`)}}var $n=class n extends qn{static async get(r){let{cfg:i,agentId:a}=r,o=ze(i,a);if(!o)return null;let s=t(i,a),c=`${a}:${s}:${JSON.stringify(o)}`,l=Q.get(c);if(l)return l;let u=$.get(c);if(u)return u;let d=(async()=>{let t=await At({config:i,agentDir:e(i,a),provider:o.provider,remote:o.remote,model:o.model,outputDimensionality:o.outputDimensionality,fallback:o.fallback,local:o.local}),l=Q.get(c);if(l)return l;let u=new n({cacheKey:c,cfg:i,agentId:a,workspaceDir:s,settings:o,providerResult:t,purpose:r.purpose});return Q.set(c,u),u})();$.set(c,d);try{return await d}finally{$.get(c)===d&&$.delete(c)}}constructor(e){super(),this.batchFailureCount=0,this.batchFailureLock=Promise.resolve(),this.vectorReady=null,this.watcher=null,this.watchTimer=null,this.sessionWatchTimer=null,this.sessionUnsubscribe=null,this.intervalTimer=null,this.closed=!1,this.dirty=!1,this.sessionsDirty=!1,this.sessionsDirtyFiles=new Set,this.sessionPendingFiles=new Set,this.sessionDeltas=new Map,this.sessionWarm=new Set,this.syncing=null,this.readonlyRecoveryAttempts=0,this.readonlyRecoverySuccesses=0,this.readonlyRecoveryFailures=0,this.cacheKey=e.cacheKey,this.cfg=e.cfg,this.agentId=e.agentId,this.workspaceDir=e.workspaceDir,this.settings=e.settings,this.provider=e.providerResult.provider,this.requestedProvider=e.providerResult.requestedProvider,this.fallbackFrom=e.providerResult.fallbackFrom,this.fallbackReason=e.providerResult.fallbackReason,this.providerUnavailableReason=e.providerResult.providerUnavailableReason,this.openAi=e.providerResult.openAi,this.gemini=e.providerResult.gemini,this.voyage=e.providerResult.voyage,this.mistral=e.providerResult.mistral,this.ollama=e.providerResult.ollama,this.sources=new Set(e.settings.sources),this.db=this.openDatabase(),this.providerKey=this.computeProviderKey(),this.cache={enabled:e.settings.cache.enabled,maxEntries:e.settings.cache.maxEntries},this.fts={enabled:e.settings.query.hybrid.enabled,available:!1},this.ensureSchema(),this.vector={enabled:e.settings.store.vector.enabled,available:null,extensionPath:e.settings.store.vector.extensionPath};let t=this.readMeta();t?.vectorDims&&(this.vector.dims=t.vectorDims),this.ensureWatcher(),this.ensureSessionListener(),this.ensureIntervalSync();let n=e.purpose===`status`;this.dirty=this.sources.has(`memory`)&&(n?!t:!0),this.batch=this.resolveBatchConfig()}async warmSession(e){if(!this.settings.sync.onSessionStart)return;let t=e?.trim()||``;t&&this.sessionWarm.has(t)||(this.sync({reason:`session-start`}).catch(e=>{Z.warn(`memory sync failed (session-start): ${String(e)}`)}),t&&this.sessionWarm.add(t))}async search(e,t){this.warmSession(t?.sessionKey),this.settings.sync.onSearch&&(this.dirty||this.sessionsDirty)&&this.sync({reason:`search`}).catch(e=>{Z.warn(`memory sync failed (search): ${String(e)}`)});let n=e.trim();if(!n)return[];let r=t?.minScore??this.settings.query.minScore,i=t?.maxResults??this.settings.query.maxResults,a=this.settings.query.hybrid,o=Math.min(200,Math.max(1,Math.floor(i*a.candidateMultiplier)));if(!this.provider){if(!this.fts.enabled||!this.fts.available)return Z.warn(`memory search: no provider and FTS unavailable`),[];let e=Se(n),t=e.length>0?e:[n],a=await Promise.all(t.map(e=>this.searchKeyword(e,o).catch(()=>[]))),s=new Map;for(let e of a)for(let t of e){let e=s.get(t.id);(!e||t.score>e.score)&&s.set(t.id,t)}return[...s.values()].toSorted((e,t)=>t.score-e.score).filter(e=>e.score>=r).slice(0,i)}let s=a.enabled&&this.fts.enabled&&this.fts.available?await this.searchKeyword(n,o).catch(()=>[]):[],c=await this.embedQueryWithTimeout(n),l=c.some(e=>e!==0)?await this.searchVector(c,o).catch(()=>[]):[];if(!a.enabled||!this.fts.enabled||!this.fts.available)return l.filter(e=>e.score>=r).slice(0,i);let u=await this.mergeHybridResults({vector:l,keyword:s,vectorWeight:a.vectorWeight,textWeight:a.textWeight,mmr:a.mmr,temporalDecay:a.temporalDecay}),d=u.filter(e=>e.score>=r);if(d.length>0||s.length===0)return d.slice(0,i);let f=Math.min(r,a.textWeight),p=new Set(s.map(e=>`${e.source}:${e.path}:${e.startLine}:${e.endLine}`));return u.filter(e=>p.has(`${e.source}:${e.path}:${e.startLine}:${e.endLine}`)&&e.score>=f).slice(0,i)}async searchVector(e,t){return this.provider?(await Yn({db:this.db,vectorTable:`chunks_vec`,providerModel:this.provider.model,queryVec:e,limit:t,snippetMaxChars:700,ensureVectorReady:async e=>await this.ensureVectorReady(e),sourceFilterVec:this.buildSourceFilter(`c`),sourceFilterChunks:this.buildSourceFilter()})).map(e=>e):[]}buildFtsQuery(e){return Jt(e)}async searchKeyword(e,t){if(!this.fts.enabled||!this.fts.available)return[];let n=this.buildSourceFilter(),r=this.provider?.model;return(await Zn({db:this.db,ftsTable:`chunks_fts`,providerModel:r,query:e,limit:t,snippetMaxChars:700,sourceFilter:n,buildFtsQuery:e=>this.buildFtsQuery(e),bm25RankToScore:Yt})).map(e=>e)}mergeHybridResults(e){return Xt({vector:e.vector.map(e=>({id:e.id,path:e.path,startLine:e.startLine,endLine:e.endLine,source:e.source,snippet:e.snippet,vectorScore:e.score})),keyword:e.keyword.map(e=>({id:e.id,path:e.path,startLine:e.startLine,endLine:e.endLine,source:e.source,snippet:e.snippet,textScore:e.textScore})),vectorWeight:e.vectorWeight,textWeight:e.textWeight,mmr:e.mmr,temporalDecay:e.temporalDecay,workspaceDir:this.workspaceDir}).then(e=>e.map(e=>e))}async sync(e){if(!this.closed)return this.syncing?this.syncing:(this.syncing=this.runSyncWithReadonlyRecovery(e).finally(()=>{this.syncing=null}),this.syncing??Promise.resolve())}isReadonlyDbError(e){let t=/attempt to write a readonly database|database is read-only|SQLITE_READONLY/i,n=new Set,r=e=>{if(typeof e!=`string`)return;let t=e.trim();t&&n.add(t)};if(r(e instanceof Error?e.message:String(e)),e&&typeof e==`object`){let t=e;if(r(t.message),r(t.code),r(t.name),t.cause&&typeof t.cause==`object`){let e=t.cause;r(e.message),r(e.code),r(e.name)}}return[...n].some(e=>t.test(e))}extractErrorReason(e){if(e instanceof Error&&e.message.trim())return e.message;if(e&&typeof e==`object`){let t=e;if(typeof t.message==`string`&&t.message.trim())return t.message;if(typeof t.code==`string`&&t.code.trim())return t.code}return String(e)}async runSyncWithReadonlyRecovery(e){try{await this.runSync(e);return}catch(t){if(!this.isReadonlyDbError(t)||this.closed)throw t;let n=this.extractErrorReason(t);this.readonlyRecoveryAttempts+=1,this.readonlyRecoveryLastError=n,Z.warn(`memory sync readonly handle detected; reopening sqlite connection`,{reason:n});try{this.db.close()}catch{}this.db=this.openDatabase(),this.vectorReady=null,this.vector.available=null,this.vector.loadError=void 0,this.ensureSchema();let r=this.readMeta();this.vector.dims=r?.vectorDims;try{await this.runSync(e),this.readonlyRecoverySuccesses+=1}catch(e){throw this.readonlyRecoveryFailures+=1,e}}}async readFile(e){let t=e.relPath.trim();if(!t)throw Error(`path required`);let n=O.isAbsolute(t)?O.resolve(t):O.resolve(this.workspaceDir,t),r=O.relative(this.workspaceDir,n).replace(/\\/g,`/`),i=r.length>0&&!r.startsWith(`..`)&&!O.isAbsolute(r)&&ye(r),a=!1;if(!i&&this.settings.extraPaths.length>0){let e=w(this.workspaceDir,this.settings.extraPaths);for(let t of e)try{let e=await D.lstat(t);if(e.isSymbolicLink())continue;if(e.isDirectory()){if(n===t||n.startsWith(`${t}${O.sep}`)){a=!0;break}continue}if(e.isFile()&&n===t&&n.endsWith(`.md`)){a=!0;break}}catch{}}if(!i&&!a||!n.endsWith(`.md`))throw Error(`path required`);if((await we(n)).missing)return{text:``,path:r};let o;try{o=await D.readFile(n,`utf-8`)}catch(e){if(_(e))return{text:``,path:r};throw e}if(!e.from&&!e.lines)return{text:o,path:r};let s=o.split(`
|
|
69
69
|
`),c=Math.max(1,e.from??1),l=Math.max(1,e.lines??s.length);return{text:s.slice(c-1,c-1+l).join(`
|
|
70
70
|
`),path:r}}status(){let e=this.buildSourceFilter(),t=this.db.prepare(`SELECT COUNT(*) as c FROM files WHERE 1=1${e.sql}`).get(...e.params),n=this.db.prepare(`SELECT COUNT(*) as c FROM chunks WHERE 1=1${e.sql}`).get(...e.params),r=(()=>{let t=Array.from(this.sources);if(t.length===0)return[];let n=new Map;for(let e of t)n.set(e,{files:0,chunks:0});let r=this.db.prepare(`SELECT source, COUNT(*) as c FROM files WHERE 1=1${e.sql} GROUP BY source`).all(...e.params);for(let e of r){let t=n.get(e.source)??{files:0,chunks:0};t.files=e.c??0,n.set(e.source,t)}let i=this.db.prepare(`SELECT source, COUNT(*) as c FROM chunks WHERE 1=1${e.sql} GROUP BY source`).all(...e.params);for(let e of i){let t=n.get(e.source)??{files:0,chunks:0};t.chunks=e.c??0,n.set(e.source,t)}return t.map(e=>Object.assign({source:e},n.get(e)))})(),i=this.provider?`hybrid`:`fts-only`,a=this.provider?{provider:this.provider.id,model:this.provider.model}:{provider:`none`,model:void 0};return{backend:`builtin`,files:t?.c??0,chunks:n?.c??0,dirty:this.dirty||this.sessionsDirty,workspaceDir:this.workspaceDir,dbPath:this.settings.store.path,provider:a.provider,model:a.model,requestedProvider:this.requestedProvider,sources:Array.from(this.sources),extraPaths:this.settings.extraPaths,sourceCounts:r,cache:this.cache.enabled?{enabled:!0,entries:this.db.prepare(`SELECT COUNT(*) as c FROM embedding_cache`).get()?.c??0,maxEntries:this.cache.maxEntries}:{enabled:!1,maxEntries:this.cache.maxEntries},fts:{enabled:this.fts.enabled,available:this.fts.available,error:this.fts.loadError},fallback:this.fallbackReason?{from:this.fallbackFrom??`local`,reason:this.fallbackReason}:void 0,vector:{enabled:this.vector.enabled,available:this.vector.available??void 0,extensionPath:this.vector.extensionPath,loadError:this.vector.loadError,dims:this.vector.dims},batch:{enabled:this.batch.enabled,failures:this.batchFailureCount,limit:2,wait:this.batch.wait,concurrency:this.batch.concurrency,pollIntervalMs:this.batch.pollIntervalMs,timeoutMs:this.batch.timeoutMs,lastError:this.batchFailureLastError,lastProvider:this.batchFailureLastProvider},custom:{searchMode:i,providerUnavailableReason:this.providerUnavailableReason,readonlyRecovery:{attempts:this.readonlyRecoveryAttempts,successes:this.readonlyRecoverySuccesses,failures:this.readonlyRecoveryFailures,lastError:this.readonlyRecoveryLastError}}}}async probeVectorAvailability(){return!this.provider||!this.vector.enabled?!1:this.ensureVectorReady()}async probeEmbeddingAvailability(){if(!this.provider)return{ok:!1,error:this.providerUnavailableReason??`No embedding provider available (FTS-only mode)`};try{return await this.embedBatchWithRetry([`ping`]),{ok:!0}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async close(){if(this.closed)return;this.closed=!0;let e=this.syncing;if(this.watchTimer&&=(clearTimeout(this.watchTimer),null),this.sessionWatchTimer&&=(clearTimeout(this.sessionWatchTimer),null),this.intervalTimer&&=(clearInterval(this.intervalTimer),null),this.watcher&&=(await this.watcher.close(),null),this.sessionUnsubscribe&&=(this.sessionUnsubscribe(),null),e)try{await e}catch{}this.db.close(),Q.delete(this.cacheKey)}};export{Qn as n,ze as r,$n as t};
|
|
71
|
-
//# sourceMappingURL=manager-CN4wiVFz.js.map
|
|
@@ -68,4 +68,3 @@ import{G as e,J as t,W as n,o as r}from"./paths-J4JUiRsa.js";import{Er as i,Gt a
|
|
|
68
68
|
WHERE model = ?${e.sourceFilter.sql}`).all(e.providerModel,...e.sourceFilter.params).map(e=>({id:e.id,path:e.path,startLine:e.start_line,endLine:e.end_line,text:e.text,embedding:ue(e.embedding),source:e.source}))}async function Zn(e){if(e.limit<=0)return[];let t=e.buildFtsQuery(e.query);if(!t)return[];let n=e.providerModel?` AND model = ?`:``,r=e.providerModel?[e.providerModel]:[];return e.db.prepare(`SELECT id, path, source, start_line, end_line, text,\n bm25(${e.ftsTable}) AS rank\n FROM ${e.ftsTable}\n WHERE ${e.ftsTable} MATCH ?${n}${e.sourceFilter.sql}\n ORDER BY rank ASC\n LIMIT ?`).all(t,...r,...e.sourceFilter.params,e.limit).map(t=>{let n=e.bm25RankToScore(t.rank);return{id:t.id,path:t.path,startLine:t.start_line,endLine:t.end_line,score:n,textScore:n,snippet:h(t.text,e.snippetMaxChars),source:t.source}})}const Z=g(`memory`),Q=new Map,$=new Map;async function Qn(){let e=Array.from($.values());e.length>0&&await Promise.allSettled(e);let t=Array.from(Q.values());Q.clear();for(let e of t)try{await e.close()}catch(e){Z.warn(`failed to close memory index manager: ${String(e)}`)}}var $n=class n extends qn{static async get(r){let{cfg:i,agentId:a}=r,o=Le(i,a);if(!o)return null;let s=t(i,a),c=`${a}:${s}:${JSON.stringify(o)}`,l=Q.get(c);if(l)return l;let u=$.get(c);if(u)return u;let d=(async()=>{let t=await Ot({config:i,agentDir:e(i,a),provider:o.provider,remote:o.remote,model:o.model,outputDimensionality:o.outputDimensionality,fallback:o.fallback,local:o.local}),l=Q.get(c);if(l)return l;let u=new n({cacheKey:c,cfg:i,agentId:a,workspaceDir:s,settings:o,providerResult:t,purpose:r.purpose});return Q.set(c,u),u})();$.set(c,d);try{return await d}finally{$.get(c)===d&&$.delete(c)}}constructor(e){super(),this.batchFailureCount=0,this.batchFailureLock=Promise.resolve(),this.vectorReady=null,this.watcher=null,this.watchTimer=null,this.sessionWatchTimer=null,this.sessionUnsubscribe=null,this.intervalTimer=null,this.closed=!1,this.dirty=!1,this.sessionsDirty=!1,this.sessionsDirtyFiles=new Set,this.sessionPendingFiles=new Set,this.sessionDeltas=new Map,this.sessionWarm=new Set,this.syncing=null,this.readonlyRecoveryAttempts=0,this.readonlyRecoverySuccesses=0,this.readonlyRecoveryFailures=0,this.cacheKey=e.cacheKey,this.cfg=e.cfg,this.agentId=e.agentId,this.workspaceDir=e.workspaceDir,this.settings=e.settings,this.provider=e.providerResult.provider,this.requestedProvider=e.providerResult.requestedProvider,this.fallbackFrom=e.providerResult.fallbackFrom,this.fallbackReason=e.providerResult.fallbackReason,this.providerUnavailableReason=e.providerResult.providerUnavailableReason,this.openAi=e.providerResult.openAi,this.gemini=e.providerResult.gemini,this.voyage=e.providerResult.voyage,this.mistral=e.providerResult.mistral,this.ollama=e.providerResult.ollama,this.sources=new Set(e.settings.sources),this.db=this.openDatabase(),this.providerKey=this.computeProviderKey(),this.cache={enabled:e.settings.cache.enabled,maxEntries:e.settings.cache.maxEntries},this.fts={enabled:e.settings.query.hybrid.enabled,available:!1},this.ensureSchema(),this.vector={enabled:e.settings.store.vector.enabled,available:null,extensionPath:e.settings.store.vector.extensionPath};let t=this.readMeta();t?.vectorDims&&(this.vector.dims=t.vectorDims),this.ensureWatcher(),this.ensureSessionListener(),this.ensureIntervalSync();let n=e.purpose===`status`;this.dirty=this.sources.has(`memory`)&&(n?!t:!0),this.batch=this.resolveBatchConfig()}async warmSession(e){if(!this.settings.sync.onSessionStart)return;let t=e?.trim()||``;t&&this.sessionWarm.has(t)||(this.sync({reason:`session-start`}).catch(e=>{Z.warn(`memory sync failed (session-start): ${String(e)}`)}),t&&this.sessionWarm.add(t))}async search(e,t){this.warmSession(t?.sessionKey),this.settings.sync.onSearch&&(this.dirty||this.sessionsDirty)&&this.sync({reason:`search`}).catch(e=>{Z.warn(`memory sync failed (search): ${String(e)}`)});let n=e.trim();if(!n)return[];let r=t?.minScore??this.settings.query.minScore,i=t?.maxResults??this.settings.query.maxResults,a=this.settings.query.hybrid,o=Math.min(200,Math.max(1,Math.floor(i*a.candidateMultiplier)));if(!this.provider){if(!this.fts.enabled||!this.fts.available)return Z.warn(`memory search: no provider and FTS unavailable`),[];let e=ye(n),t=e.length>0?e:[n],a=await Promise.all(t.map(e=>this.searchKeyword(e,o).catch(()=>[]))),s=new Map;for(let e of a)for(let t of e){let e=s.get(t.id);(!e||t.score>e.score)&&s.set(t.id,t)}return[...s.values()].toSorted((e,t)=>t.score-e.score).filter(e=>e.score>=r).slice(0,i)}let s=a.enabled&&this.fts.enabled&&this.fts.available?await this.searchKeyword(n,o).catch(()=>[]):[],c=await this.embedQueryWithTimeout(n),l=c.some(e=>e!==0)?await this.searchVector(c,o).catch(()=>[]):[];if(!a.enabled||!this.fts.enabled||!this.fts.available)return l.filter(e=>e.score>=r).slice(0,i);let u=await this.mergeHybridResults({vector:l,keyword:s,vectorWeight:a.vectorWeight,textWeight:a.textWeight,mmr:a.mmr,temporalDecay:a.temporalDecay}),d=u.filter(e=>e.score>=r);if(d.length>0||s.length===0)return d.slice(0,i);let f=Math.min(r,a.textWeight),p=new Set(s.map(e=>`${e.source}:${e.path}:${e.startLine}:${e.endLine}`));return u.filter(e=>p.has(`${e.source}:${e.path}:${e.startLine}:${e.endLine}`)&&e.score>=f).slice(0,i)}async searchVector(e,t){return this.provider?(await Yn({db:this.db,vectorTable:`chunks_vec`,providerModel:this.provider.model,queryVec:e,limit:t,snippetMaxChars:700,ensureVectorReady:async e=>await this.ensureVectorReady(e),sourceFilterVec:this.buildSourceFilter(`c`),sourceFilterChunks:this.buildSourceFilter()})).map(e=>e):[]}buildFtsQuery(e){return Kt(e)}async searchKeyword(e,t){if(!this.fts.enabled||!this.fts.available)return[];let n=this.buildSourceFilter(),r=this.provider?.model;return(await Zn({db:this.db,ftsTable:`chunks_fts`,providerModel:r,query:e,limit:t,snippetMaxChars:700,sourceFilter:n,buildFtsQuery:e=>this.buildFtsQuery(e),bm25RankToScore:qt})).map(e=>e)}mergeHybridResults(e){return Jt({vector:e.vector.map(e=>({id:e.id,path:e.path,startLine:e.startLine,endLine:e.endLine,source:e.source,snippet:e.snippet,vectorScore:e.score})),keyword:e.keyword.map(e=>({id:e.id,path:e.path,startLine:e.startLine,endLine:e.endLine,source:e.source,snippet:e.snippet,textScore:e.textScore})),vectorWeight:e.vectorWeight,textWeight:e.textWeight,mmr:e.mmr,temporalDecay:e.temporalDecay,workspaceDir:this.workspaceDir}).then(e=>e.map(e=>e))}async sync(e){if(!this.closed)return this.syncing?this.syncing:(this.syncing=this.runSyncWithReadonlyRecovery(e).finally(()=>{this.syncing=null}),this.syncing??Promise.resolve())}isReadonlyDbError(e){let t=/attempt to write a readonly database|database is read-only|SQLITE_READONLY/i,n=new Set,r=e=>{if(typeof e!=`string`)return;let t=e.trim();t&&n.add(t)};if(r(e instanceof Error?e.message:String(e)),e&&typeof e==`object`){let t=e;if(r(t.message),r(t.code),r(t.name),t.cause&&typeof t.cause==`object`){let e=t.cause;r(e.message),r(e.code),r(e.name)}}return[...n].some(e=>t.test(e))}extractErrorReason(e){if(e instanceof Error&&e.message.trim())return e.message;if(e&&typeof e==`object`){let t=e;if(typeof t.message==`string`&&t.message.trim())return t.message;if(typeof t.code==`string`&&t.code.trim())return t.code}return String(e)}async runSyncWithReadonlyRecovery(e){try{await this.runSync(e);return}catch(t){if(!this.isReadonlyDbError(t)||this.closed)throw t;let n=this.extractErrorReason(t);this.readonlyRecoveryAttempts+=1,this.readonlyRecoveryLastError=n,Z.warn(`memory sync readonly handle detected; reopening sqlite connection`,{reason:n});try{this.db.close()}catch{}this.db=this.openDatabase(),this.vectorReady=null,this.vector.available=null,this.vector.loadError=void 0,this.ensureSchema();let r=this.readMeta();this.vector.dims=r?.vectorDims;try{await this.runSync(e),this.readonlyRecoverySuccesses+=1}catch(e){throw this.readonlyRecoveryFailures+=1,e}}}async readFile(e){let t=e.relPath.trim();if(!t)throw Error(`path required`);let n=k.isAbsolute(t)?k.resolve(t):k.resolve(this.workspaceDir,t),r=k.relative(this.workspaceDir,n).replace(/\\/g,`/`),i=r.length>0&&!r.startsWith(`..`)&&!k.isAbsolute(r)&&ge(r),a=!1;if(!i&&this.settings.extraPaths.length>0){let e=D(this.workspaceDir,this.settings.extraPaths);for(let t of e)try{let e=await A.lstat(t);if(e.isSymbolicLink())continue;if(e.isDirectory()){if(n===t||n.startsWith(`${t}${k.sep}`)){a=!0;break}continue}if(e.isFile()&&n===t&&n.endsWith(`.md`)){a=!0;break}}catch{}}if(!i&&!a||!n.endsWith(`.md`))throw Error(`path required`);if((await xe(n)).missing)return{text:``,path:r};let o;try{o=await A.readFile(n,`utf-8`)}catch(e){if(b(e))return{text:``,path:r};throw e}if(!e.from&&!e.lines)return{text:o,path:r};let s=o.split(`
|
|
69
69
|
`),c=Math.max(1,e.from??1),l=Math.max(1,e.lines??s.length);return{text:s.slice(c-1,c-1+l).join(`
|
|
70
70
|
`),path:r}}status(){let e=this.buildSourceFilter(),t=this.db.prepare(`SELECT COUNT(*) as c FROM files WHERE 1=1${e.sql}`).get(...e.params),n=this.db.prepare(`SELECT COUNT(*) as c FROM chunks WHERE 1=1${e.sql}`).get(...e.params),r=(()=>{let t=Array.from(this.sources);if(t.length===0)return[];let n=new Map;for(let e of t)n.set(e,{files:0,chunks:0});let r=this.db.prepare(`SELECT source, COUNT(*) as c FROM files WHERE 1=1${e.sql} GROUP BY source`).all(...e.params);for(let e of r){let t=n.get(e.source)??{files:0,chunks:0};t.files=e.c??0,n.set(e.source,t)}let i=this.db.prepare(`SELECT source, COUNT(*) as c FROM chunks WHERE 1=1${e.sql} GROUP BY source`).all(...e.params);for(let e of i){let t=n.get(e.source)??{files:0,chunks:0};t.chunks=e.c??0,n.set(e.source,t)}return t.map(e=>Object.assign({source:e},n.get(e)))})(),i=this.provider?`hybrid`:`fts-only`,a=this.provider?{provider:this.provider.id,model:this.provider.model}:{provider:`none`,model:void 0};return{backend:`builtin`,files:t?.c??0,chunks:n?.c??0,dirty:this.dirty||this.sessionsDirty,workspaceDir:this.workspaceDir,dbPath:this.settings.store.path,provider:a.provider,model:a.model,requestedProvider:this.requestedProvider,sources:Array.from(this.sources),extraPaths:this.settings.extraPaths,sourceCounts:r,cache:this.cache.enabled?{enabled:!0,entries:this.db.prepare(`SELECT COUNT(*) as c FROM embedding_cache`).get()?.c??0,maxEntries:this.cache.maxEntries}:{enabled:!1,maxEntries:this.cache.maxEntries},fts:{enabled:this.fts.enabled,available:this.fts.available,error:this.fts.loadError},fallback:this.fallbackReason?{from:this.fallbackFrom??`local`,reason:this.fallbackReason}:void 0,vector:{enabled:this.vector.enabled,available:this.vector.available??void 0,extensionPath:this.vector.extensionPath,loadError:this.vector.loadError,dims:this.vector.dims},batch:{enabled:this.batch.enabled,failures:this.batchFailureCount,limit:2,wait:this.batch.wait,concurrency:this.batch.concurrency,pollIntervalMs:this.batch.pollIntervalMs,timeoutMs:this.batch.timeoutMs,lastError:this.batchFailureLastError,lastProvider:this.batchFailureLastProvider},custom:{searchMode:i,providerUnavailableReason:this.providerUnavailableReason,readonlyRecovery:{attempts:this.readonlyRecoveryAttempts,successes:this.readonlyRecoverySuccesses,failures:this.readonlyRecoveryFailures,lastError:this.readonlyRecoveryLastError}}}}async probeVectorAvailability(){return!this.provider||!this.vector.enabled?!1:this.ensureVectorReady()}async probeEmbeddingAvailability(){if(!this.provider)return{ok:!1,error:this.providerUnavailableReason??`No embedding provider available (FTS-only mode)`};try{return await this.embedBatchWithRetry([`ping`]),{ok:!0}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async close(){if(this.closed)return;this.closed=!0;let e=this.syncing;if(this.watchTimer&&=(clearTimeout(this.watchTimer),null),this.sessionWatchTimer&&=(clearTimeout(this.sessionWatchTimer),null),this.intervalTimer&&=(clearInterval(this.intervalTimer),null),this.watcher&&=(await this.watcher.close(),null),this.sessionUnsubscribe&&=(this.sessionUnsubscribe(),null),e)try{await e}catch{}this.db.close(),Q.delete(this.cacheKey)}};export{Qn as n,Le as r,$n as t};
|
|
71
|
-
//# sourceMappingURL=manager-D9RwKYCX.js.map
|
|
@@ -68,4 +68,3 @@ const e=require(`./paths-BvlJvmRS.cjs`),t=require(`./paths-Chp3zwtq.cjs`),n=requ
|
|
|
68
68
|
WHERE model = ?${e.sourceFilter.sql}`).all(e.providerModel,...e.sourceFilter.params).map(e=>({id:e.id,path:e.path,startLine:e.start_line,endLine:e.end_line,text:e.text,embedding:s.g(e.embedding),source:e.source}))}async function on(e){if(e.limit<=0)return[];let t=e.buildFtsQuery(e.query);if(!t)return[];let r=e.providerModel?` AND model = ?`:``,i=e.providerModel?[e.providerModel]:[];return e.db.prepare(`SELECT id, path, source, start_line, end_line, text,\n bm25(${e.ftsTable}) AS rank\n FROM ${e.ftsTable}\n WHERE ${e.ftsTable} MATCH ?${r}${e.sourceFilter.sql}\n ORDER BY rank ASC\n LIMIT ?`).all(t,...i,...e.sourceFilter.params,e.limit).map(t=>{let r=e.bm25RankToScore(t.rank);return{id:t.id,path:t.path,startLine:t.start_line,endLine:t.end_line,score:r,textScore:r,snippet:n.E(t.text,e.snippetMaxChars),source:t.source}})}const Z=n.O(`memory`),Q=new Map,$=new Map;async function sn(){let e=Array.from($.values());e.length>0&&await Promise.allSettled(e);let t=Array.from(Q.values());Q.clear();for(let e of t)try{await e.close()}catch(e){Z.warn(`failed to close memory index manager: ${String(e)}`)}}var cn=class e extends tn{static async get(n){let{cfg:r,agentId:i}=n,a=g(r,i);if(!a)return null;let o=t.W(r,i),s=`${i}:${o}:${JSON.stringify(a)}`,c=Q.get(s);if(c)return c;let l=$.get(s);if(l)return l;let u=(async()=>{let c=await Be({config:r,agentDir:t.V(r,i),provider:a.provider,remote:a.remote,model:a.model,outputDimensionality:a.outputDimensionality,fallback:a.fallback,local:a.local}),l=Q.get(s);if(l)return l;let u=new e({cacheKey:s,cfg:r,agentId:i,workspaceDir:o,settings:a,providerResult:c,purpose:n.purpose});return Q.set(s,u),u})();$.set(s,u);try{return await u}finally{$.get(s)===u&&$.delete(s)}}constructor(e){super(),this.batchFailureCount=0,this.batchFailureLock=Promise.resolve(),this.vectorReady=null,this.watcher=null,this.watchTimer=null,this.sessionWatchTimer=null,this.sessionUnsubscribe=null,this.intervalTimer=null,this.closed=!1,this.dirty=!1,this.sessionsDirty=!1,this.sessionsDirtyFiles=new Set,this.sessionPendingFiles=new Set,this.sessionDeltas=new Map,this.sessionWarm=new Set,this.syncing=null,this.readonlyRecoveryAttempts=0,this.readonlyRecoverySuccesses=0,this.readonlyRecoveryFailures=0,this.cacheKey=e.cacheKey,this.cfg=e.cfg,this.agentId=e.agentId,this.workspaceDir=e.workspaceDir,this.settings=e.settings,this.provider=e.providerResult.provider,this.requestedProvider=e.providerResult.requestedProvider,this.fallbackFrom=e.providerResult.fallbackFrom,this.fallbackReason=e.providerResult.fallbackReason,this.providerUnavailableReason=e.providerResult.providerUnavailableReason,this.openAi=e.providerResult.openAi,this.gemini=e.providerResult.gemini,this.voyage=e.providerResult.voyage,this.mistral=e.providerResult.mistral,this.ollama=e.providerResult.ollama,this.sources=new Set(e.settings.sources),this.db=this.openDatabase(),this.providerKey=this.computeProviderKey(),this.cache={enabled:e.settings.cache.enabled,maxEntries:e.settings.cache.maxEntries},this.fts={enabled:e.settings.query.hybrid.enabled,available:!1},this.ensureSchema(),this.vector={enabled:e.settings.store.vector.enabled,available:null,extensionPath:e.settings.store.vector.extensionPath};let t=this.readMeta();t?.vectorDims&&(this.vector.dims=t.vectorDims),this.ensureWatcher(),this.ensureSessionListener(),this.ensureIntervalSync();let n=e.purpose===`status`;this.dirty=this.sources.has(`memory`)&&(n?!t:!0),this.batch=this.resolveBatchConfig()}async warmSession(e){if(!this.settings.sync.onSessionStart)return;let t=e?.trim()||``;t&&this.sessionWarm.has(t)||(this.sync({reason:`session-start`}).catch(e=>{Z.warn(`memory sync failed (session-start): ${String(e)}`)}),t&&this.sessionWarm.add(t))}async search(e,t){this.warmSession(t?.sessionKey),this.settings.sync.onSearch&&(this.dirty||this.sessionsDirty)&&this.sync({reason:`search`}).catch(e=>{Z.warn(`memory sync failed (search): ${String(e)}`)});let n=e.trim();if(!n)return[];let r=t?.minScore??this.settings.query.minScore,i=t?.maxResults??this.settings.query.maxResults,a=this.settings.query.hybrid,o=Math.min(200,Math.max(1,Math.floor(i*a.candidateMultiplier)));if(!this.provider){if(!this.fts.enabled||!this.fts.available)return Z.warn(`memory search: no provider and FTS unavailable`),[];let e=s.t(n),t=e.length>0?e:[n],a=await Promise.all(t.map(e=>this.searchKeyword(e,o).catch(()=>[]))),c=new Map;for(let e of a)for(let t of e){let e=c.get(t.id);(!e||t.score>e.score)&&c.set(t.id,t)}return[...c.values()].toSorted((e,t)=>t.score-e.score).filter(e=>e.score>=r).slice(0,i)}let c=a.enabled&&this.fts.enabled&&this.fts.available?await this.searchKeyword(n,o).catch(()=>[]):[],l=await this.embedQueryWithTimeout(n),u=l.some(e=>e!==0)?await this.searchVector(l,o).catch(()=>[]):[];if(!a.enabled||!this.fts.enabled||!this.fts.available)return u.filter(e=>e.score>=r).slice(0,i);let d=await this.mergeHybridResults({vector:u,keyword:c,vectorWeight:a.vectorWeight,textWeight:a.textWeight,mmr:a.mmr,temporalDecay:a.temporalDecay}),f=d.filter(e=>e.score>=r);if(f.length>0||c.length===0)return f.slice(0,i);let p=Math.min(r,a.textWeight),m=new Set(c.map(e=>`${e.source}:${e.path}:${e.startLine}:${e.endLine}`));return d.filter(e=>m.has(`${e.source}:${e.path}:${e.startLine}:${e.endLine}`)&&e.score>=p).slice(0,i)}async searchVector(e,t){return this.provider?(await rn({db:this.db,vectorTable:`chunks_vec`,providerModel:this.provider.model,queryVec:e,limit:t,snippetMaxChars:700,ensureVectorReady:async e=>await this.ensureVectorReady(e),sourceFilterVec:this.buildSourceFilter(`c`),sourceFilterChunks:this.buildSourceFilter()})).map(e=>e):[]}buildFtsQuery(e){return it(e)}async searchKeyword(e,t){if(!this.fts.enabled||!this.fts.available)return[];let n=this.buildSourceFilter(),r=this.provider?.model;return(await on({db:this.db,ftsTable:`chunks_fts`,providerModel:r,query:e,limit:t,snippetMaxChars:700,sourceFilter:n,buildFtsQuery:e=>this.buildFtsQuery(e),bm25RankToScore:at})).map(e=>e)}mergeHybridResults(e){return ot({vector:e.vector.map(e=>({id:e.id,path:e.path,startLine:e.startLine,endLine:e.endLine,source:e.source,snippet:e.snippet,vectorScore:e.score})),keyword:e.keyword.map(e=>({id:e.id,path:e.path,startLine:e.startLine,endLine:e.endLine,source:e.source,snippet:e.snippet,textScore:e.textScore})),vectorWeight:e.vectorWeight,textWeight:e.textWeight,mmr:e.mmr,temporalDecay:e.temporalDecay,workspaceDir:this.workspaceDir}).then(e=>e.map(e=>e))}async sync(e){if(!this.closed)return this.syncing?this.syncing:(this.syncing=this.runSyncWithReadonlyRecovery(e).finally(()=>{this.syncing=null}),this.syncing??Promise.resolve())}isReadonlyDbError(e){let t=/attempt to write a readonly database|database is read-only|SQLITE_READONLY/i,n=new Set,r=e=>{if(typeof e!=`string`)return;let t=e.trim();t&&n.add(t)};if(r(e instanceof Error?e.message:String(e)),e&&typeof e==`object`){let t=e;if(r(t.message),r(t.code),r(t.name),t.cause&&typeof t.cause==`object`){let e=t.cause;r(e.message),r(e.code),r(e.name)}}return[...n].some(e=>t.test(e))}extractErrorReason(e){if(e instanceof Error&&e.message.trim())return e.message;if(e&&typeof e==`object`){let t=e;if(typeof t.message==`string`&&t.message.trim())return t.message;if(typeof t.code==`string`&&t.code.trim())return t.code}return String(e)}async runSyncWithReadonlyRecovery(e){try{await this.runSync(e);return}catch(t){if(!this.isReadonlyDbError(t)||this.closed)throw t;let n=this.extractErrorReason(t);this.readonlyRecoveryAttempts+=1,this.readonlyRecoveryLastError=n,Z.warn(`memory sync readonly handle detected; reopening sqlite connection`,{reason:n});try{this.db.close()}catch{}this.db=this.openDatabase(),this.vectorReady=null,this.vector.available=null,this.vector.loadError=void 0,this.ensureSchema();let r=this.readMeta();this.vector.dims=r?.vectorDims;try{await this.runSync(e),this.readonlyRecoverySuccesses+=1}catch(e){throw this.readonlyRecoveryFailures+=1,e}}}async readFile(e){let t=e.relPath.trim();if(!t)throw Error(`path required`);let n=l.default.isAbsolute(t)?l.default.resolve(t):l.default.resolve(this.workspaceDir,t),r=l.default.relative(this.workspaceDir,n).replace(/\\/g,`/`),i=r.length>0&&!r.startsWith(`..`)&&!l.default.isAbsolute(r)&&s.p(r),a=!1;if(!i&&this.settings.extraPaths.length>0){let e=s.h(this.workspaceDir,this.settings.extraPaths);for(let t of e)try{let e=await d.default.lstat(t);if(e.isSymbolicLink())continue;if(e.isDirectory()){if(n===t||n.startsWith(`${t}${l.default.sep}`)){a=!0;break}continue}if(e.isFile()&&n===t&&n.endsWith(`.md`)){a=!0;break}}catch{}}if(!i&&!a||!n.endsWith(`.md`))throw Error(`path required`);if((await s.w(n)).missing)return{text:``,path:r};let o;try{o=await d.default.readFile(n,`utf-8`)}catch(e){if(s.C(e))return{text:``,path:r};throw e}if(!e.from&&!e.lines)return{text:o,path:r};let c=o.split(`
|
|
69
69
|
`),u=Math.max(1,e.from??1),f=Math.max(1,e.lines??c.length);return{text:c.slice(u-1,u-1+f).join(`
|
|
70
70
|
`),path:r}}status(){let e=this.buildSourceFilter(),t=this.db.prepare(`SELECT COUNT(*) as c FROM files WHERE 1=1${e.sql}`).get(...e.params),n=this.db.prepare(`SELECT COUNT(*) as c FROM chunks WHERE 1=1${e.sql}`).get(...e.params),r=(()=>{let t=Array.from(this.sources);if(t.length===0)return[];let n=new Map;for(let e of t)n.set(e,{files:0,chunks:0});let r=this.db.prepare(`SELECT source, COUNT(*) as c FROM files WHERE 1=1${e.sql} GROUP BY source`).all(...e.params);for(let e of r){let t=n.get(e.source)??{files:0,chunks:0};t.files=e.c??0,n.set(e.source,t)}let i=this.db.prepare(`SELECT source, COUNT(*) as c FROM chunks WHERE 1=1${e.sql} GROUP BY source`).all(...e.params);for(let e of i){let t=n.get(e.source)??{files:0,chunks:0};t.chunks=e.c??0,n.set(e.source,t)}return t.map(e=>Object.assign({source:e},n.get(e)))})(),i=this.provider?`hybrid`:`fts-only`,a=this.provider?{provider:this.provider.id,model:this.provider.model}:{provider:`none`,model:void 0};return{backend:`builtin`,files:t?.c??0,chunks:n?.c??0,dirty:this.dirty||this.sessionsDirty,workspaceDir:this.workspaceDir,dbPath:this.settings.store.path,provider:a.provider,model:a.model,requestedProvider:this.requestedProvider,sources:Array.from(this.sources),extraPaths:this.settings.extraPaths,sourceCounts:r,cache:this.cache.enabled?{enabled:!0,entries:this.db.prepare(`SELECT COUNT(*) as c FROM embedding_cache`).get()?.c??0,maxEntries:this.cache.maxEntries}:{enabled:!1,maxEntries:this.cache.maxEntries},fts:{enabled:this.fts.enabled,available:this.fts.available,error:this.fts.loadError},fallback:this.fallbackReason?{from:this.fallbackFrom??`local`,reason:this.fallbackReason}:void 0,vector:{enabled:this.vector.enabled,available:this.vector.available??void 0,extensionPath:this.vector.extensionPath,loadError:this.vector.loadError,dims:this.vector.dims},batch:{enabled:this.batch.enabled,failures:this.batchFailureCount,limit:2,wait:this.batch.wait,concurrency:this.batch.concurrency,pollIntervalMs:this.batch.pollIntervalMs,timeoutMs:this.batch.timeoutMs,lastError:this.batchFailureLastError,lastProvider:this.batchFailureLastProvider},custom:{searchMode:i,providerUnavailableReason:this.providerUnavailableReason,readonlyRecovery:{attempts:this.readonlyRecoveryAttempts,successes:this.readonlyRecoverySuccesses,failures:this.readonlyRecoveryFailures,lastError:this.readonlyRecoveryLastError}}}}async probeVectorAvailability(){return!this.provider||!this.vector.enabled?!1:this.ensureVectorReady()}async probeEmbeddingAvailability(){if(!this.provider)return{ok:!1,error:this.providerUnavailableReason??`No embedding provider available (FTS-only mode)`};try{return await this.embedBatchWithRetry([`ping`]),{ok:!0}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async close(){if(this.closed)return;this.closed=!0;let e=this.syncing;if(this.watchTimer&&=(clearTimeout(this.watchTimer),null),this.sessionWatchTimer&&=(clearTimeout(this.sessionWatchTimer),null),this.intervalTimer&&=(clearInterval(this.intervalTimer),null),this.watcher&&=(await this.watcher.close(),null),this.sessionUnsubscribe&&=(this.sessionUnsubscribe(),null),e)try{await e}catch{}this.db.close(),Q.delete(this.cacheKey)}};Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return sn}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return cn}});
|
|
71
|
-
//# sourceMappingURL=manager-DAmjm61U.cjs.map
|
|
@@ -68,4 +68,3 @@ import{B as e,V as t,W as n,o as r}from"./paths-Do0djuaj.js";import{As as i,Dt a
|
|
|
68
68
|
WHERE model = ?${e.sourceFilter.sql}`).all(e.providerModel,...e.sourceFilter.params).map(e=>({id:e.id,path:e.path,startLine:e.start_line,endLine:e.end_line,text:e.text,embedding:fe(e.embedding),source:e.source}))}async function Zn(e){if(e.limit<=0)return[];let t=e.buildFtsQuery(e.query);if(!t)return[];let n=e.providerModel?` AND model = ?`:``,r=e.providerModel?[e.providerModel]:[];return e.db.prepare(`SELECT id, path, source, start_line, end_line, text,\n bm25(${e.ftsTable}) AS rank\n FROM ${e.ftsTable}\n WHERE ${e.ftsTable} MATCH ?${n}${e.sourceFilter.sql}\n ORDER BY rank ASC\n LIMIT ?`).all(t,...r,...e.sourceFilter.params,e.limit).map(t=>{let n=e.bm25RankToScore(t.rank);return{id:t.id,path:t.path,startLine:t.start_line,endLine:t.end_line,score:n,textScore:n,snippet:p(t.text,e.snippetMaxChars),source:t.source}})}const Z=m(`memory`),Q=new Map,$=new Map;async function Qn(){let e=Array.from($.values());e.length>0&&await Promise.allSettled(e);let t=Array.from(Q.values());Q.clear();for(let e of t)try{await e.close()}catch(e){Z.warn(`failed to close memory index manager: ${String(e)}`)}}var $n=class e extends qn{static async get(r){let{cfg:i,agentId:a}=r,o=Re(i,a);if(!o)return null;let s=n(i,a),c=`${a}:${s}:${JSON.stringify(o)}`,l=Q.get(c);if(l)return l;let u=$.get(c);if(u)return u;let d=(async()=>{let n=await kt({config:i,agentDir:t(i,a),provider:o.provider,remote:o.remote,model:o.model,outputDimensionality:o.outputDimensionality,fallback:o.fallback,local:o.local}),l=Q.get(c);if(l)return l;let u=new e({cacheKey:c,cfg:i,agentId:a,workspaceDir:s,settings:o,providerResult:n,purpose:r.purpose});return Q.set(c,u),u})();$.set(c,d);try{return await d}finally{$.get(c)===d&&$.delete(c)}}constructor(e){super(),this.batchFailureCount=0,this.batchFailureLock=Promise.resolve(),this.vectorReady=null,this.watcher=null,this.watchTimer=null,this.sessionWatchTimer=null,this.sessionUnsubscribe=null,this.intervalTimer=null,this.closed=!1,this.dirty=!1,this.sessionsDirty=!1,this.sessionsDirtyFiles=new Set,this.sessionPendingFiles=new Set,this.sessionDeltas=new Map,this.sessionWarm=new Set,this.syncing=null,this.readonlyRecoveryAttempts=0,this.readonlyRecoverySuccesses=0,this.readonlyRecoveryFailures=0,this.cacheKey=e.cacheKey,this.cfg=e.cfg,this.agentId=e.agentId,this.workspaceDir=e.workspaceDir,this.settings=e.settings,this.provider=e.providerResult.provider,this.requestedProvider=e.providerResult.requestedProvider,this.fallbackFrom=e.providerResult.fallbackFrom,this.fallbackReason=e.providerResult.fallbackReason,this.providerUnavailableReason=e.providerResult.providerUnavailableReason,this.openAi=e.providerResult.openAi,this.gemini=e.providerResult.gemini,this.voyage=e.providerResult.voyage,this.mistral=e.providerResult.mistral,this.ollama=e.providerResult.ollama,this.sources=new Set(e.settings.sources),this.db=this.openDatabase(),this.providerKey=this.computeProviderKey(),this.cache={enabled:e.settings.cache.enabled,maxEntries:e.settings.cache.maxEntries},this.fts={enabled:e.settings.query.hybrid.enabled,available:!1},this.ensureSchema(),this.vector={enabled:e.settings.store.vector.enabled,available:null,extensionPath:e.settings.store.vector.extensionPath};let t=this.readMeta();t?.vectorDims&&(this.vector.dims=t.vectorDims),this.ensureWatcher(),this.ensureSessionListener(),this.ensureIntervalSync();let n=e.purpose===`status`;this.dirty=this.sources.has(`memory`)&&(n?!t:!0),this.batch=this.resolveBatchConfig()}async warmSession(e){if(!this.settings.sync.onSessionStart)return;let t=e?.trim()||``;t&&this.sessionWarm.has(t)||(this.sync({reason:`session-start`}).catch(e=>{Z.warn(`memory sync failed (session-start): ${String(e)}`)}),t&&this.sessionWarm.add(t))}async search(e,t){this.warmSession(t?.sessionKey),this.settings.sync.onSearch&&(this.dirty||this.sessionsDirty)&&this.sync({reason:`search`}).catch(e=>{Z.warn(`memory sync failed (search): ${String(e)}`)});let n=e.trim();if(!n)return[];let r=t?.minScore??this.settings.query.minScore,i=t?.maxResults??this.settings.query.maxResults,a=this.settings.query.hybrid,o=Math.min(200,Math.max(1,Math.floor(i*a.candidateMultiplier)));if(!this.provider){if(!this.fts.enabled||!this.fts.available)return Z.warn(`memory search: no provider and FTS unavailable`),[];let e=xe(n),t=e.length>0?e:[n],a=await Promise.all(t.map(e=>this.searchKeyword(e,o).catch(()=>[]))),s=new Map;for(let e of a)for(let t of e){let e=s.get(t.id);(!e||t.score>e.score)&&s.set(t.id,t)}return[...s.values()].toSorted((e,t)=>t.score-e.score).filter(e=>e.score>=r).slice(0,i)}let s=a.enabled&&this.fts.enabled&&this.fts.available?await this.searchKeyword(n,o).catch(()=>[]):[],c=await this.embedQueryWithTimeout(n),l=c.some(e=>e!==0)?await this.searchVector(c,o).catch(()=>[]):[];if(!a.enabled||!this.fts.enabled||!this.fts.available)return l.filter(e=>e.score>=r).slice(0,i);let u=await this.mergeHybridResults({vector:l,keyword:s,vectorWeight:a.vectorWeight,textWeight:a.textWeight,mmr:a.mmr,temporalDecay:a.temporalDecay}),d=u.filter(e=>e.score>=r);if(d.length>0||s.length===0)return d.slice(0,i);let f=Math.min(r,a.textWeight),p=new Set(s.map(e=>`${e.source}:${e.path}:${e.startLine}:${e.endLine}`));return u.filter(e=>p.has(`${e.source}:${e.path}:${e.startLine}:${e.endLine}`)&&e.score>=f).slice(0,i)}async searchVector(e,t){return this.provider?(await Yn({db:this.db,vectorTable:`chunks_vec`,providerModel:this.provider.model,queryVec:e,limit:t,snippetMaxChars:700,ensureVectorReady:async e=>await this.ensureVectorReady(e),sourceFilterVec:this.buildSourceFilter(`c`),sourceFilterChunks:this.buildSourceFilter()})).map(e=>e):[]}buildFtsQuery(e){return qt(e)}async searchKeyword(e,t){if(!this.fts.enabled||!this.fts.available)return[];let n=this.buildSourceFilter(),r=this.provider?.model;return(await Zn({db:this.db,ftsTable:`chunks_fts`,providerModel:r,query:e,limit:t,snippetMaxChars:700,sourceFilter:n,buildFtsQuery:e=>this.buildFtsQuery(e),bm25RankToScore:Jt})).map(e=>e)}mergeHybridResults(e){return Yt({vector:e.vector.map(e=>({id:e.id,path:e.path,startLine:e.startLine,endLine:e.endLine,source:e.source,snippet:e.snippet,vectorScore:e.score})),keyword:e.keyword.map(e=>({id:e.id,path:e.path,startLine:e.startLine,endLine:e.endLine,source:e.source,snippet:e.snippet,textScore:e.textScore})),vectorWeight:e.vectorWeight,textWeight:e.textWeight,mmr:e.mmr,temporalDecay:e.temporalDecay,workspaceDir:this.workspaceDir}).then(e=>e.map(e=>e))}async sync(e){if(!this.closed)return this.syncing?this.syncing:(this.syncing=this.runSyncWithReadonlyRecovery(e).finally(()=>{this.syncing=null}),this.syncing??Promise.resolve())}isReadonlyDbError(e){let t=/attempt to write a readonly database|database is read-only|SQLITE_READONLY/i,n=new Set,r=e=>{if(typeof e!=`string`)return;let t=e.trim();t&&n.add(t)};if(r(e instanceof Error?e.message:String(e)),e&&typeof e==`object`){let t=e;if(r(t.message),r(t.code),r(t.name),t.cause&&typeof t.cause==`object`){let e=t.cause;r(e.message),r(e.code),r(e.name)}}return[...n].some(e=>t.test(e))}extractErrorReason(e){if(e instanceof Error&&e.message.trim())return e.message;if(e&&typeof e==`object`){let t=e;if(typeof t.message==`string`&&t.message.trim())return t.message;if(typeof t.code==`string`&&t.code.trim())return t.code}return String(e)}async runSyncWithReadonlyRecovery(e){try{await this.runSync(e);return}catch(t){if(!this.isReadonlyDbError(t)||this.closed)throw t;let n=this.extractErrorReason(t);this.readonlyRecoveryAttempts+=1,this.readonlyRecoveryLastError=n,Z.warn(`memory sync readonly handle detected; reopening sqlite connection`,{reason:n});try{this.db.close()}catch{}this.db=this.openDatabase(),this.vectorReady=null,this.vector.available=null,this.vector.loadError=void 0,this.ensureSchema();let r=this.readMeta();this.vector.dims=r?.vectorDims;try{await this.runSync(e),this.readonlyRecoverySuccesses+=1}catch(e){throw this.readonlyRecoveryFailures+=1,e}}}async readFile(e){let t=e.relPath.trim();if(!t)throw Error(`path required`);let n=O.isAbsolute(t)?O.resolve(t):O.resolve(this.workspaceDir,t),r=O.relative(this.workspaceDir,n).replace(/\\/g,`/`),i=r.length>0&&!r.startsWith(`..`)&&!O.isAbsolute(r)&&ve(r),a=!1;if(!i&&this.settings.extraPaths.length>0){let e=T(this.workspaceDir,this.settings.extraPaths);for(let t of e)try{let e=await k.lstat(t);if(e.isSymbolicLink())continue;if(e.isDirectory()){if(n===t||n.startsWith(`${t}${O.sep}`)){a=!0;break}continue}if(e.isFile()&&n===t&&n.endsWith(`.md`)){a=!0;break}}catch{}}if(!i&&!a||!n.endsWith(`.md`))throw Error(`path required`);if((await Ce(n)).missing)return{text:``,path:r};let o;try{o=await k.readFile(n,`utf-8`)}catch(e){if(v(e))return{text:``,path:r};throw e}if(!e.from&&!e.lines)return{text:o,path:r};let s=o.split(`
|
|
69
69
|
`),c=Math.max(1,e.from??1),l=Math.max(1,e.lines??s.length);return{text:s.slice(c-1,c-1+l).join(`
|
|
70
70
|
`),path:r}}status(){let e=this.buildSourceFilter(),t=this.db.prepare(`SELECT COUNT(*) as c FROM files WHERE 1=1${e.sql}`).get(...e.params),n=this.db.prepare(`SELECT COUNT(*) as c FROM chunks WHERE 1=1${e.sql}`).get(...e.params),r=(()=>{let t=Array.from(this.sources);if(t.length===0)return[];let n=new Map;for(let e of t)n.set(e,{files:0,chunks:0});let r=this.db.prepare(`SELECT source, COUNT(*) as c FROM files WHERE 1=1${e.sql} GROUP BY source`).all(...e.params);for(let e of r){let t=n.get(e.source)??{files:0,chunks:0};t.files=e.c??0,n.set(e.source,t)}let i=this.db.prepare(`SELECT source, COUNT(*) as c FROM chunks WHERE 1=1${e.sql} GROUP BY source`).all(...e.params);for(let e of i){let t=n.get(e.source)??{files:0,chunks:0};t.chunks=e.c??0,n.set(e.source,t)}return t.map(e=>Object.assign({source:e},n.get(e)))})(),i=this.provider?`hybrid`:`fts-only`,a=this.provider?{provider:this.provider.id,model:this.provider.model}:{provider:`none`,model:void 0};return{backend:`builtin`,files:t?.c??0,chunks:n?.c??0,dirty:this.dirty||this.sessionsDirty,workspaceDir:this.workspaceDir,dbPath:this.settings.store.path,provider:a.provider,model:a.model,requestedProvider:this.requestedProvider,sources:Array.from(this.sources),extraPaths:this.settings.extraPaths,sourceCounts:r,cache:this.cache.enabled?{enabled:!0,entries:this.db.prepare(`SELECT COUNT(*) as c FROM embedding_cache`).get()?.c??0,maxEntries:this.cache.maxEntries}:{enabled:!1,maxEntries:this.cache.maxEntries},fts:{enabled:this.fts.enabled,available:this.fts.available,error:this.fts.loadError},fallback:this.fallbackReason?{from:this.fallbackFrom??`local`,reason:this.fallbackReason}:void 0,vector:{enabled:this.vector.enabled,available:this.vector.available??void 0,extensionPath:this.vector.extensionPath,loadError:this.vector.loadError,dims:this.vector.dims},batch:{enabled:this.batch.enabled,failures:this.batchFailureCount,limit:2,wait:this.batch.wait,concurrency:this.batch.concurrency,pollIntervalMs:this.batch.pollIntervalMs,timeoutMs:this.batch.timeoutMs,lastError:this.batchFailureLastError,lastProvider:this.batchFailureLastProvider},custom:{searchMode:i,providerUnavailableReason:this.providerUnavailableReason,readonlyRecovery:{attempts:this.readonlyRecoveryAttempts,successes:this.readonlyRecoverySuccesses,failures:this.readonlyRecoveryFailures,lastError:this.readonlyRecoveryLastError}}}}async probeVectorAvailability(){return!this.provider||!this.vector.enabled?!1:this.ensureVectorReady()}async probeEmbeddingAvailability(){if(!this.provider)return{ok:!1,error:this.providerUnavailableReason??`No embedding provider available (FTS-only mode)`};try{return await this.embedBatchWithRetry([`ping`]),{ok:!0}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async close(){if(this.closed)return;this.closed=!0;let e=this.syncing;if(this.watchTimer&&=(clearTimeout(this.watchTimer),null),this.sessionWatchTimer&&=(clearTimeout(this.sessionWatchTimer),null),this.intervalTimer&&=(clearInterval(this.intervalTimer),null),this.watcher&&=(await this.watcher.close(),null),this.sessionUnsubscribe&&=(this.sessionUnsubscribe(),null),e)try{await e}catch{}this.db.close(),Q.delete(this.cacheKey)}};export{Qn as n,Re as r,$n as t};
|
|
71
|
-
//# sourceMappingURL=manager-DJSpJkev.js.map
|
|
@@ -68,4 +68,3 @@ import{B as e,V as t,W as n,o as r}from"./paths-piJASC5k.js";import{c as i}from"
|
|
|
68
68
|
WHERE model = ?${e.sourceFilter.sql}`).all(e.providerModel,...e.sourceFilter.params).map(e=>({id:e.id,path:e.path,startLine:e.start_line,endLine:e.end_line,text:e.text,embedding:pe(e.embedding),source:e.source}))}async function Zn(e){if(e.limit<=0)return[];let t=e.buildFtsQuery(e.query);if(!t)return[];let n=e.providerModel?` AND model = ?`:``,r=e.providerModel?[e.providerModel]:[];return e.db.prepare(`SELECT id, path, source, start_line, end_line, text,\n bm25(${e.ftsTable}) AS rank\n FROM ${e.ftsTable}\n WHERE ${e.ftsTable} MATCH ?${n}${e.sourceFilter.sql}\n ORDER BY rank ASC\n LIMIT ?`).all(t,...r,...e.sourceFilter.params,e.limit).map(t=>{let n=e.bm25RankToScore(t.rank);return{id:t.id,path:t.path,startLine:t.start_line,endLine:t.end_line,score:n,textScore:n,snippet:a(t.text,e.snippetMaxChars),source:t.source}})}const Z=o(`memory`),Q=new Map,$=new Map;async function Qn(){let e=Array.from($.values());e.length>0&&await Promise.allSettled(e);let t=Array.from(Q.values());Q.clear();for(let e of t)try{await e.close()}catch(e){Z.warn(`failed to close memory index manager: ${String(e)}`)}}var $n=class e extends qn{static async get(r){let{cfg:i,agentId:a}=r,o=ze(i,a);if(!o)return null;let s=n(i,a),c=`${a}:${s}:${JSON.stringify(o)}`,l=Q.get(c);if(l)return l;let u=$.get(c);if(u)return u;let d=(async()=>{let n=await At({config:i,agentDir:t(i,a),provider:o.provider,remote:o.remote,model:o.model,outputDimensionality:o.outputDimensionality,fallback:o.fallback,local:o.local}),l=Q.get(c);if(l)return l;let u=new e({cacheKey:c,cfg:i,agentId:a,workspaceDir:s,settings:o,providerResult:n,purpose:r.purpose});return Q.set(c,u),u})();$.set(c,d);try{return await d}finally{$.get(c)===d&&$.delete(c)}}constructor(e){super(),this.batchFailureCount=0,this.batchFailureLock=Promise.resolve(),this.vectorReady=null,this.watcher=null,this.watchTimer=null,this.sessionWatchTimer=null,this.sessionUnsubscribe=null,this.intervalTimer=null,this.closed=!1,this.dirty=!1,this.sessionsDirty=!1,this.sessionsDirtyFiles=new Set,this.sessionPendingFiles=new Set,this.sessionDeltas=new Map,this.sessionWarm=new Set,this.syncing=null,this.readonlyRecoveryAttempts=0,this.readonlyRecoverySuccesses=0,this.readonlyRecoveryFailures=0,this.cacheKey=e.cacheKey,this.cfg=e.cfg,this.agentId=e.agentId,this.workspaceDir=e.workspaceDir,this.settings=e.settings,this.provider=e.providerResult.provider,this.requestedProvider=e.providerResult.requestedProvider,this.fallbackFrom=e.providerResult.fallbackFrom,this.fallbackReason=e.providerResult.fallbackReason,this.providerUnavailableReason=e.providerResult.providerUnavailableReason,this.openAi=e.providerResult.openAi,this.gemini=e.providerResult.gemini,this.voyage=e.providerResult.voyage,this.mistral=e.providerResult.mistral,this.ollama=e.providerResult.ollama,this.sources=new Set(e.settings.sources),this.db=this.openDatabase(),this.providerKey=this.computeProviderKey(),this.cache={enabled:e.settings.cache.enabled,maxEntries:e.settings.cache.maxEntries},this.fts={enabled:e.settings.query.hybrid.enabled,available:!1},this.ensureSchema(),this.vector={enabled:e.settings.store.vector.enabled,available:null,extensionPath:e.settings.store.vector.extensionPath};let t=this.readMeta();t?.vectorDims&&(this.vector.dims=t.vectorDims),this.ensureWatcher(),this.ensureSessionListener(),this.ensureIntervalSync();let n=e.purpose===`status`;this.dirty=this.sources.has(`memory`)&&(n?!t:!0),this.batch=this.resolveBatchConfig()}async warmSession(e){if(!this.settings.sync.onSessionStart)return;let t=e?.trim()||``;t&&this.sessionWarm.has(t)||(this.sync({reason:`session-start`}).catch(e=>{Z.warn(`memory sync failed (session-start): ${String(e)}`)}),t&&this.sessionWarm.add(t))}async search(e,t){this.warmSession(t?.sessionKey),this.settings.sync.onSearch&&(this.dirty||this.sessionsDirty)&&this.sync({reason:`search`}).catch(e=>{Z.warn(`memory sync failed (search): ${String(e)}`)});let n=e.trim();if(!n)return[];let r=t?.minScore??this.settings.query.minScore,i=t?.maxResults??this.settings.query.maxResults,a=this.settings.query.hybrid,o=Math.min(200,Math.max(1,Math.floor(i*a.candidateMultiplier)));if(!this.provider){if(!this.fts.enabled||!this.fts.available)return Z.warn(`memory search: no provider and FTS unavailable`),[];let e=Se(n),t=e.length>0?e:[n],a=await Promise.all(t.map(e=>this.searchKeyword(e,o).catch(()=>[]))),s=new Map;for(let e of a)for(let t of e){let e=s.get(t.id);(!e||t.score>e.score)&&s.set(t.id,t)}return[...s.values()].toSorted((e,t)=>t.score-e.score).filter(e=>e.score>=r).slice(0,i)}let s=a.enabled&&this.fts.enabled&&this.fts.available?await this.searchKeyword(n,o).catch(()=>[]):[],c=await this.embedQueryWithTimeout(n),l=c.some(e=>e!==0)?await this.searchVector(c,o).catch(()=>[]):[];if(!a.enabled||!this.fts.enabled||!this.fts.available)return l.filter(e=>e.score>=r).slice(0,i);let u=await this.mergeHybridResults({vector:l,keyword:s,vectorWeight:a.vectorWeight,textWeight:a.textWeight,mmr:a.mmr,temporalDecay:a.temporalDecay}),d=u.filter(e=>e.score>=r);if(d.length>0||s.length===0)return d.slice(0,i);let f=Math.min(r,a.textWeight),p=new Set(s.map(e=>`${e.source}:${e.path}:${e.startLine}:${e.endLine}`));return u.filter(e=>p.has(`${e.source}:${e.path}:${e.startLine}:${e.endLine}`)&&e.score>=f).slice(0,i)}async searchVector(e,t){return this.provider?(await Yn({db:this.db,vectorTable:`chunks_vec`,providerModel:this.provider.model,queryVec:e,limit:t,snippetMaxChars:700,ensureVectorReady:async e=>await this.ensureVectorReady(e),sourceFilterVec:this.buildSourceFilter(`c`),sourceFilterChunks:this.buildSourceFilter()})).map(e=>e):[]}buildFtsQuery(e){return Jt(e)}async searchKeyword(e,t){if(!this.fts.enabled||!this.fts.available)return[];let n=this.buildSourceFilter(),r=this.provider?.model;return(await Zn({db:this.db,ftsTable:`chunks_fts`,providerModel:r,query:e,limit:t,snippetMaxChars:700,sourceFilter:n,buildFtsQuery:e=>this.buildFtsQuery(e),bm25RankToScore:Yt})).map(e=>e)}mergeHybridResults(e){return Xt({vector:e.vector.map(e=>({id:e.id,path:e.path,startLine:e.startLine,endLine:e.endLine,source:e.source,snippet:e.snippet,vectorScore:e.score})),keyword:e.keyword.map(e=>({id:e.id,path:e.path,startLine:e.startLine,endLine:e.endLine,source:e.source,snippet:e.snippet,textScore:e.textScore})),vectorWeight:e.vectorWeight,textWeight:e.textWeight,mmr:e.mmr,temporalDecay:e.temporalDecay,workspaceDir:this.workspaceDir}).then(e=>e.map(e=>e))}async sync(e){if(!this.closed)return this.syncing?this.syncing:(this.syncing=this.runSyncWithReadonlyRecovery(e).finally(()=>{this.syncing=null}),this.syncing??Promise.resolve())}isReadonlyDbError(e){let t=/attempt to write a readonly database|database is read-only|SQLITE_READONLY/i,n=new Set,r=e=>{if(typeof e!=`string`)return;let t=e.trim();t&&n.add(t)};if(r(e instanceof Error?e.message:String(e)),e&&typeof e==`object`){let t=e;if(r(t.message),r(t.code),r(t.name),t.cause&&typeof t.cause==`object`){let e=t.cause;r(e.message),r(e.code),r(e.name)}}return[...n].some(e=>t.test(e))}extractErrorReason(e){if(e instanceof Error&&e.message.trim())return e.message;if(e&&typeof e==`object`){let t=e;if(typeof t.message==`string`&&t.message.trim())return t.message;if(typeof t.code==`string`&&t.code.trim())return t.code}return String(e)}async runSyncWithReadonlyRecovery(e){try{await this.runSync(e);return}catch(t){if(!this.isReadonlyDbError(t)||this.closed)throw t;let n=this.extractErrorReason(t);this.readonlyRecoveryAttempts+=1,this.readonlyRecoveryLastError=n,Z.warn(`memory sync readonly handle detected; reopening sqlite connection`,{reason:n});try{this.db.close()}catch{}this.db=this.openDatabase(),this.vectorReady=null,this.vector.available=null,this.vector.loadError=void 0,this.ensureSchema();let r=this.readMeta();this.vector.dims=r?.vectorDims;try{await this.runSync(e),this.readonlyRecoverySuccesses+=1}catch(e){throw this.readonlyRecoveryFailures+=1,e}}}async readFile(e){let t=e.relPath.trim();if(!t)throw Error(`path required`);let n=D.isAbsolute(t)?D.resolve(t):D.resolve(this.workspaceDir,t),r=D.relative(this.workspaceDir,n).replace(/\\/g,`/`),i=r.length>0&&!r.startsWith(`..`)&&!D.isAbsolute(r)&&ye(r),a=!1;if(!i&&this.settings.extraPaths.length>0){let e=w(this.workspaceDir,this.settings.extraPaths);for(let t of e)try{let e=await O.lstat(t);if(e.isSymbolicLink())continue;if(e.isDirectory()){if(n===t||n.startsWith(`${t}${D.sep}`)){a=!0;break}continue}if(e.isFile()&&n===t&&n.endsWith(`.md`)){a=!0;break}}catch{}}if(!i&&!a||!n.endsWith(`.md`))throw Error(`path required`);if((await we(n)).missing)return{text:``,path:r};let o;try{o=await O.readFile(n,`utf-8`)}catch(e){if(_(e))return{text:``,path:r};throw e}if(!e.from&&!e.lines)return{text:o,path:r};let s=o.split(`
|
|
69
69
|
`),c=Math.max(1,e.from??1),l=Math.max(1,e.lines??s.length);return{text:s.slice(c-1,c-1+l).join(`
|
|
70
70
|
`),path:r}}status(){let e=this.buildSourceFilter(),t=this.db.prepare(`SELECT COUNT(*) as c FROM files WHERE 1=1${e.sql}`).get(...e.params),n=this.db.prepare(`SELECT COUNT(*) as c FROM chunks WHERE 1=1${e.sql}`).get(...e.params),r=(()=>{let t=Array.from(this.sources);if(t.length===0)return[];let n=new Map;for(let e of t)n.set(e,{files:0,chunks:0});let r=this.db.prepare(`SELECT source, COUNT(*) as c FROM files WHERE 1=1${e.sql} GROUP BY source`).all(...e.params);for(let e of r){let t=n.get(e.source)??{files:0,chunks:0};t.files=e.c??0,n.set(e.source,t)}let i=this.db.prepare(`SELECT source, COUNT(*) as c FROM chunks WHERE 1=1${e.sql} GROUP BY source`).all(...e.params);for(let e of i){let t=n.get(e.source)??{files:0,chunks:0};t.chunks=e.c??0,n.set(e.source,t)}return t.map(e=>Object.assign({source:e},n.get(e)))})(),i=this.provider?`hybrid`:`fts-only`,a=this.provider?{provider:this.provider.id,model:this.provider.model}:{provider:`none`,model:void 0};return{backend:`builtin`,files:t?.c??0,chunks:n?.c??0,dirty:this.dirty||this.sessionsDirty,workspaceDir:this.workspaceDir,dbPath:this.settings.store.path,provider:a.provider,model:a.model,requestedProvider:this.requestedProvider,sources:Array.from(this.sources),extraPaths:this.settings.extraPaths,sourceCounts:r,cache:this.cache.enabled?{enabled:!0,entries:this.db.prepare(`SELECT COUNT(*) as c FROM embedding_cache`).get()?.c??0,maxEntries:this.cache.maxEntries}:{enabled:!1,maxEntries:this.cache.maxEntries},fts:{enabled:this.fts.enabled,available:this.fts.available,error:this.fts.loadError},fallback:this.fallbackReason?{from:this.fallbackFrom??`local`,reason:this.fallbackReason}:void 0,vector:{enabled:this.vector.enabled,available:this.vector.available??void 0,extensionPath:this.vector.extensionPath,loadError:this.vector.loadError,dims:this.vector.dims},batch:{enabled:this.batch.enabled,failures:this.batchFailureCount,limit:2,wait:this.batch.wait,concurrency:this.batch.concurrency,pollIntervalMs:this.batch.pollIntervalMs,timeoutMs:this.batch.timeoutMs,lastError:this.batchFailureLastError,lastProvider:this.batchFailureLastProvider},custom:{searchMode:i,providerUnavailableReason:this.providerUnavailableReason,readonlyRecovery:{attempts:this.readonlyRecoveryAttempts,successes:this.readonlyRecoverySuccesses,failures:this.readonlyRecoveryFailures,lastError:this.readonlyRecoveryLastError}}}}async probeVectorAvailability(){return!this.provider||!this.vector.enabled?!1:this.ensureVectorReady()}async probeEmbeddingAvailability(){if(!this.provider)return{ok:!1,error:this.providerUnavailableReason??`No embedding provider available (FTS-only mode)`};try{return await this.embedBatchWithRetry([`ping`]),{ok:!0}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async close(){if(this.closed)return;this.closed=!0;let e=this.syncing;if(this.watchTimer&&=(clearTimeout(this.watchTimer),null),this.sessionWatchTimer&&=(clearTimeout(this.sessionWatchTimer),null),this.intervalTimer&&=(clearInterval(this.intervalTimer),null),this.watcher&&=(await this.watcher.close(),null),this.sessionUnsubscribe&&=(this.sessionUnsubscribe(),null),e)try{await e}catch{}this.db.close(),Q.delete(this.cacheKey)}};export{Qn as n,ze as r,$n as t};
|
|
71
|
-
//# sourceMappingURL=manager-EO7deQzm.js.map
|
|
@@ -68,4 +68,3 @@ const e=require(`./paths-Bcdg3ma0.cjs`),t=require(`./paths-D90l3h_o.cjs`),n=requ
|
|
|
68
68
|
WHERE model = ?${e.sourceFilter.sql}`).all(e.providerModel,...e.sourceFilter.params).map(e=>({id:e.id,path:e.path,startLine:e.start_line,endLine:e.end_line,text:e.text,embedding:s.g(e.embedding),source:e.source}))}async function on(e){if(e.limit<=0)return[];let t=e.buildFtsQuery(e.query);if(!t)return[];let n=e.providerModel?` AND model = ?`:``,i=e.providerModel?[e.providerModel]:[];return e.db.prepare(`SELECT id, path, source, start_line, end_line, text,\n bm25(${e.ftsTable}) AS rank\n FROM ${e.ftsTable}\n WHERE ${e.ftsTable} MATCH ?${n}${e.sourceFilter.sql}\n ORDER BY rank ASC\n LIMIT ?`).all(t,...i,...e.sourceFilter.params,e.limit).map(t=>{let n=e.bm25RankToScore(t.rank);return{id:t.id,path:t.path,startLine:t.start_line,endLine:t.end_line,score:n,textScore:n,snippet:r.E(t.text,e.snippetMaxChars),source:t.source}})}const Z=r.O(`memory`),Q=new Map,$=new Map;async function sn(){let e=Array.from($.values());e.length>0&&await Promise.allSettled(e);let t=Array.from(Q.values());Q.clear();for(let e of t)try{await e.close()}catch(e){Z.warn(`failed to close memory index manager: ${String(e)}`)}}var cn=class e extends tn{static async get(n){let{cfg:r,agentId:i}=n,a=g(r,i);if(!a)return null;let o=t.W(r,i),s=`${i}:${o}:${JSON.stringify(a)}`,c=Q.get(s);if(c)return c;let l=$.get(s);if(l)return l;let u=(async()=>{let c=await Be({config:r,agentDir:t.V(r,i),provider:a.provider,remote:a.remote,model:a.model,outputDimensionality:a.outputDimensionality,fallback:a.fallback,local:a.local}),l=Q.get(s);if(l)return l;let u=new e({cacheKey:s,cfg:r,agentId:i,workspaceDir:o,settings:a,providerResult:c,purpose:n.purpose});return Q.set(s,u),u})();$.set(s,u);try{return await u}finally{$.get(s)===u&&$.delete(s)}}constructor(e){super(),this.batchFailureCount=0,this.batchFailureLock=Promise.resolve(),this.vectorReady=null,this.watcher=null,this.watchTimer=null,this.sessionWatchTimer=null,this.sessionUnsubscribe=null,this.intervalTimer=null,this.closed=!1,this.dirty=!1,this.sessionsDirty=!1,this.sessionsDirtyFiles=new Set,this.sessionPendingFiles=new Set,this.sessionDeltas=new Map,this.sessionWarm=new Set,this.syncing=null,this.readonlyRecoveryAttempts=0,this.readonlyRecoverySuccesses=0,this.readonlyRecoveryFailures=0,this.cacheKey=e.cacheKey,this.cfg=e.cfg,this.agentId=e.agentId,this.workspaceDir=e.workspaceDir,this.settings=e.settings,this.provider=e.providerResult.provider,this.requestedProvider=e.providerResult.requestedProvider,this.fallbackFrom=e.providerResult.fallbackFrom,this.fallbackReason=e.providerResult.fallbackReason,this.providerUnavailableReason=e.providerResult.providerUnavailableReason,this.openAi=e.providerResult.openAi,this.gemini=e.providerResult.gemini,this.voyage=e.providerResult.voyage,this.mistral=e.providerResult.mistral,this.ollama=e.providerResult.ollama,this.sources=new Set(e.settings.sources),this.db=this.openDatabase(),this.providerKey=this.computeProviderKey(),this.cache={enabled:e.settings.cache.enabled,maxEntries:e.settings.cache.maxEntries},this.fts={enabled:e.settings.query.hybrid.enabled,available:!1},this.ensureSchema(),this.vector={enabled:e.settings.store.vector.enabled,available:null,extensionPath:e.settings.store.vector.extensionPath};let t=this.readMeta();t?.vectorDims&&(this.vector.dims=t.vectorDims),this.ensureWatcher(),this.ensureSessionListener(),this.ensureIntervalSync();let n=e.purpose===`status`;this.dirty=this.sources.has(`memory`)&&(n?!t:!0),this.batch=this.resolveBatchConfig()}async warmSession(e){if(!this.settings.sync.onSessionStart)return;let t=e?.trim()||``;t&&this.sessionWarm.has(t)||(this.sync({reason:`session-start`}).catch(e=>{Z.warn(`memory sync failed (session-start): ${String(e)}`)}),t&&this.sessionWarm.add(t))}async search(e,t){this.warmSession(t?.sessionKey),this.settings.sync.onSearch&&(this.dirty||this.sessionsDirty)&&this.sync({reason:`search`}).catch(e=>{Z.warn(`memory sync failed (search): ${String(e)}`)});let n=e.trim();if(!n)return[];let r=t?.minScore??this.settings.query.minScore,i=t?.maxResults??this.settings.query.maxResults,a=this.settings.query.hybrid,o=Math.min(200,Math.max(1,Math.floor(i*a.candidateMultiplier)));if(!this.provider){if(!this.fts.enabled||!this.fts.available)return Z.warn(`memory search: no provider and FTS unavailable`),[];let e=s.t(n),t=e.length>0?e:[n],a=await Promise.all(t.map(e=>this.searchKeyword(e,o).catch(()=>[]))),c=new Map;for(let e of a)for(let t of e){let e=c.get(t.id);(!e||t.score>e.score)&&c.set(t.id,t)}return[...c.values()].toSorted((e,t)=>t.score-e.score).filter(e=>e.score>=r).slice(0,i)}let c=a.enabled&&this.fts.enabled&&this.fts.available?await this.searchKeyword(n,o).catch(()=>[]):[],l=await this.embedQueryWithTimeout(n),u=l.some(e=>e!==0)?await this.searchVector(l,o).catch(()=>[]):[];if(!a.enabled||!this.fts.enabled||!this.fts.available)return u.filter(e=>e.score>=r).slice(0,i);let d=await this.mergeHybridResults({vector:u,keyword:c,vectorWeight:a.vectorWeight,textWeight:a.textWeight,mmr:a.mmr,temporalDecay:a.temporalDecay}),f=d.filter(e=>e.score>=r);if(f.length>0||c.length===0)return f.slice(0,i);let p=Math.min(r,a.textWeight),m=new Set(c.map(e=>`${e.source}:${e.path}:${e.startLine}:${e.endLine}`));return d.filter(e=>m.has(`${e.source}:${e.path}:${e.startLine}:${e.endLine}`)&&e.score>=p).slice(0,i)}async searchVector(e,t){return this.provider?(await rn({db:this.db,vectorTable:`chunks_vec`,providerModel:this.provider.model,queryVec:e,limit:t,snippetMaxChars:700,ensureVectorReady:async e=>await this.ensureVectorReady(e),sourceFilterVec:this.buildSourceFilter(`c`),sourceFilterChunks:this.buildSourceFilter()})).map(e=>e):[]}buildFtsQuery(e){return it(e)}async searchKeyword(e,t){if(!this.fts.enabled||!this.fts.available)return[];let n=this.buildSourceFilter(),r=this.provider?.model;return(await on({db:this.db,ftsTable:`chunks_fts`,providerModel:r,query:e,limit:t,snippetMaxChars:700,sourceFilter:n,buildFtsQuery:e=>this.buildFtsQuery(e),bm25RankToScore:at})).map(e=>e)}mergeHybridResults(e){return ot({vector:e.vector.map(e=>({id:e.id,path:e.path,startLine:e.startLine,endLine:e.endLine,source:e.source,snippet:e.snippet,vectorScore:e.score})),keyword:e.keyword.map(e=>({id:e.id,path:e.path,startLine:e.startLine,endLine:e.endLine,source:e.source,snippet:e.snippet,textScore:e.textScore})),vectorWeight:e.vectorWeight,textWeight:e.textWeight,mmr:e.mmr,temporalDecay:e.temporalDecay,workspaceDir:this.workspaceDir}).then(e=>e.map(e=>e))}async sync(e){if(!this.closed)return this.syncing?this.syncing:(this.syncing=this.runSyncWithReadonlyRecovery(e).finally(()=>{this.syncing=null}),this.syncing??Promise.resolve())}isReadonlyDbError(e){let t=/attempt to write a readonly database|database is read-only|SQLITE_READONLY/i,n=new Set,r=e=>{if(typeof e!=`string`)return;let t=e.trim();t&&n.add(t)};if(r(e instanceof Error?e.message:String(e)),e&&typeof e==`object`){let t=e;if(r(t.message),r(t.code),r(t.name),t.cause&&typeof t.cause==`object`){let e=t.cause;r(e.message),r(e.code),r(e.name)}}return[...n].some(e=>t.test(e))}extractErrorReason(e){if(e instanceof Error&&e.message.trim())return e.message;if(e&&typeof e==`object`){let t=e;if(typeof t.message==`string`&&t.message.trim())return t.message;if(typeof t.code==`string`&&t.code.trim())return t.code}return String(e)}async runSyncWithReadonlyRecovery(e){try{await this.runSync(e);return}catch(t){if(!this.isReadonlyDbError(t)||this.closed)throw t;let n=this.extractErrorReason(t);this.readonlyRecoveryAttempts+=1,this.readonlyRecoveryLastError=n,Z.warn(`memory sync readonly handle detected; reopening sqlite connection`,{reason:n});try{this.db.close()}catch{}this.db=this.openDatabase(),this.vectorReady=null,this.vector.available=null,this.vector.loadError=void 0,this.ensureSchema();let r=this.readMeta();this.vector.dims=r?.vectorDims;try{await this.runSync(e),this.readonlyRecoverySuccesses+=1}catch(e){throw this.readonlyRecoveryFailures+=1,e}}}async readFile(e){let t=e.relPath.trim();if(!t)throw Error(`path required`);let n=c.default.isAbsolute(t)?c.default.resolve(t):c.default.resolve(this.workspaceDir,t),r=c.default.relative(this.workspaceDir,n).replace(/\\/g,`/`),i=r.length>0&&!r.startsWith(`..`)&&!c.default.isAbsolute(r)&&s.p(r),a=!1;if(!i&&this.settings.extraPaths.length>0){let e=s.h(this.workspaceDir,this.settings.extraPaths);for(let t of e)try{let e=await d.default.lstat(t);if(e.isSymbolicLink())continue;if(e.isDirectory()){if(n===t||n.startsWith(`${t}${c.default.sep}`)){a=!0;break}continue}if(e.isFile()&&n===t&&n.endsWith(`.md`)){a=!0;break}}catch{}}if(!i&&!a||!n.endsWith(`.md`))throw Error(`path required`);if((await s.w(n)).missing)return{text:``,path:r};let o;try{o=await d.default.readFile(n,`utf-8`)}catch(e){if(s.C(e))return{text:``,path:r};throw e}if(!e.from&&!e.lines)return{text:o,path:r};let l=o.split(`
|
|
69
69
|
`),u=Math.max(1,e.from??1),f=Math.max(1,e.lines??l.length);return{text:l.slice(u-1,u-1+f).join(`
|
|
70
70
|
`),path:r}}status(){let e=this.buildSourceFilter(),t=this.db.prepare(`SELECT COUNT(*) as c FROM files WHERE 1=1${e.sql}`).get(...e.params),n=this.db.prepare(`SELECT COUNT(*) as c FROM chunks WHERE 1=1${e.sql}`).get(...e.params),r=(()=>{let t=Array.from(this.sources);if(t.length===0)return[];let n=new Map;for(let e of t)n.set(e,{files:0,chunks:0});let r=this.db.prepare(`SELECT source, COUNT(*) as c FROM files WHERE 1=1${e.sql} GROUP BY source`).all(...e.params);for(let e of r){let t=n.get(e.source)??{files:0,chunks:0};t.files=e.c??0,n.set(e.source,t)}let i=this.db.prepare(`SELECT source, COUNT(*) as c FROM chunks WHERE 1=1${e.sql} GROUP BY source`).all(...e.params);for(let e of i){let t=n.get(e.source)??{files:0,chunks:0};t.chunks=e.c??0,n.set(e.source,t)}return t.map(e=>Object.assign({source:e},n.get(e)))})(),i=this.provider?`hybrid`:`fts-only`,a=this.provider?{provider:this.provider.id,model:this.provider.model}:{provider:`none`,model:void 0};return{backend:`builtin`,files:t?.c??0,chunks:n?.c??0,dirty:this.dirty||this.sessionsDirty,workspaceDir:this.workspaceDir,dbPath:this.settings.store.path,provider:a.provider,model:a.model,requestedProvider:this.requestedProvider,sources:Array.from(this.sources),extraPaths:this.settings.extraPaths,sourceCounts:r,cache:this.cache.enabled?{enabled:!0,entries:this.db.prepare(`SELECT COUNT(*) as c FROM embedding_cache`).get()?.c??0,maxEntries:this.cache.maxEntries}:{enabled:!1,maxEntries:this.cache.maxEntries},fts:{enabled:this.fts.enabled,available:this.fts.available,error:this.fts.loadError},fallback:this.fallbackReason?{from:this.fallbackFrom??`local`,reason:this.fallbackReason}:void 0,vector:{enabled:this.vector.enabled,available:this.vector.available??void 0,extensionPath:this.vector.extensionPath,loadError:this.vector.loadError,dims:this.vector.dims},batch:{enabled:this.batch.enabled,failures:this.batchFailureCount,limit:2,wait:this.batch.wait,concurrency:this.batch.concurrency,pollIntervalMs:this.batch.pollIntervalMs,timeoutMs:this.batch.timeoutMs,lastError:this.batchFailureLastError,lastProvider:this.batchFailureLastProvider},custom:{searchMode:i,providerUnavailableReason:this.providerUnavailableReason,readonlyRecovery:{attempts:this.readonlyRecoveryAttempts,successes:this.readonlyRecoverySuccesses,failures:this.readonlyRecoveryFailures,lastError:this.readonlyRecoveryLastError}}}}async probeVectorAvailability(){return!this.provider||!this.vector.enabled?!1:this.ensureVectorReady()}async probeEmbeddingAvailability(){if(!this.provider)return{ok:!1,error:this.providerUnavailableReason??`No embedding provider available (FTS-only mode)`};try{return await this.embedBatchWithRetry([`ping`]),{ok:!0}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async close(){if(this.closed)return;this.closed=!0;let e=this.syncing;if(this.watchTimer&&=(clearTimeout(this.watchTimer),null),this.sessionWatchTimer&&=(clearTimeout(this.sessionWatchTimer),null),this.intervalTimer&&=(clearInterval(this.intervalTimer),null),this.watcher&&=(await this.watcher.close(),null),this.sessionUnsubscribe&&=(this.sessionUnsubscribe(),null),e)try{await e}catch{}this.db.close(),Q.delete(this.cacheKey)}};Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return sn}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return cn}});
|
|
71
|
-
//# sourceMappingURL=manager-vyHAgafh.cjs.map
|
|
@@ -68,4 +68,3 @@ import{B as e,V as t,W as n,o as r}from"./paths-cBAF6Bj0.js";import{Ci as i,Sn a
|
|
|
68
68
|
WHERE model = ?${e.sourceFilter.sql}`).all(e.providerModel,...e.sourceFilter.params).map(e=>({id:e.id,path:e.path,startLine:e.start_line,endLine:e.end_line,text:e.text,embedding:fe(e.embedding),source:e.source}))}async function Zn(e){if(e.limit<=0)return[];let t=e.buildFtsQuery(e.query);if(!t)return[];let n=e.providerModel?` AND model = ?`:``,r=e.providerModel?[e.providerModel]:[];return e.db.prepare(`SELECT id, path, source, start_line, end_line, text,\n bm25(${e.ftsTable}) AS rank\n FROM ${e.ftsTable}\n WHERE ${e.ftsTable} MATCH ?${n}${e.sourceFilter.sql}\n ORDER BY rank ASC\n LIMIT ?`).all(t,...r,...e.sourceFilter.params,e.limit).map(t=>{let n=e.bm25RankToScore(t.rank);return{id:t.id,path:t.path,startLine:t.start_line,endLine:t.end_line,score:n,textScore:n,snippet:p(t.text,e.snippetMaxChars),source:t.source}})}const Z=m(`memory`),Q=new Map,$=new Map;async function Qn(){let e=Array.from($.values());e.length>0&&await Promise.allSettled(e);let t=Array.from(Q.values());Q.clear();for(let e of t)try{await e.close()}catch(e){Z.warn(`failed to close memory index manager: ${String(e)}`)}}var $n=class e extends qn{static async get(r){let{cfg:i,agentId:a}=r,o=Re(i,a);if(!o)return null;let s=n(i,a),c=`${a}:${s}:${JSON.stringify(o)}`,l=Q.get(c);if(l)return l;let u=$.get(c);if(u)return u;let d=(async()=>{let n=await kt({config:i,agentDir:t(i,a),provider:o.provider,remote:o.remote,model:o.model,outputDimensionality:o.outputDimensionality,fallback:o.fallback,local:o.local}),l=Q.get(c);if(l)return l;let u=new e({cacheKey:c,cfg:i,agentId:a,workspaceDir:s,settings:o,providerResult:n,purpose:r.purpose});return Q.set(c,u),u})();$.set(c,d);try{return await d}finally{$.get(c)===d&&$.delete(c)}}constructor(e){super(),this.batchFailureCount=0,this.batchFailureLock=Promise.resolve(),this.vectorReady=null,this.watcher=null,this.watchTimer=null,this.sessionWatchTimer=null,this.sessionUnsubscribe=null,this.intervalTimer=null,this.closed=!1,this.dirty=!1,this.sessionsDirty=!1,this.sessionsDirtyFiles=new Set,this.sessionPendingFiles=new Set,this.sessionDeltas=new Map,this.sessionWarm=new Set,this.syncing=null,this.readonlyRecoveryAttempts=0,this.readonlyRecoverySuccesses=0,this.readonlyRecoveryFailures=0,this.cacheKey=e.cacheKey,this.cfg=e.cfg,this.agentId=e.agentId,this.workspaceDir=e.workspaceDir,this.settings=e.settings,this.provider=e.providerResult.provider,this.requestedProvider=e.providerResult.requestedProvider,this.fallbackFrom=e.providerResult.fallbackFrom,this.fallbackReason=e.providerResult.fallbackReason,this.providerUnavailableReason=e.providerResult.providerUnavailableReason,this.openAi=e.providerResult.openAi,this.gemini=e.providerResult.gemini,this.voyage=e.providerResult.voyage,this.mistral=e.providerResult.mistral,this.ollama=e.providerResult.ollama,this.sources=new Set(e.settings.sources),this.db=this.openDatabase(),this.providerKey=this.computeProviderKey(),this.cache={enabled:e.settings.cache.enabled,maxEntries:e.settings.cache.maxEntries},this.fts={enabled:e.settings.query.hybrid.enabled,available:!1},this.ensureSchema(),this.vector={enabled:e.settings.store.vector.enabled,available:null,extensionPath:e.settings.store.vector.extensionPath};let t=this.readMeta();t?.vectorDims&&(this.vector.dims=t.vectorDims),this.ensureWatcher(),this.ensureSessionListener(),this.ensureIntervalSync();let n=e.purpose===`status`;this.dirty=this.sources.has(`memory`)&&(n?!t:!0),this.batch=this.resolveBatchConfig()}async warmSession(e){if(!this.settings.sync.onSessionStart)return;let t=e?.trim()||``;t&&this.sessionWarm.has(t)||(this.sync({reason:`session-start`}).catch(e=>{Z.warn(`memory sync failed (session-start): ${String(e)}`)}),t&&this.sessionWarm.add(t))}async search(e,t){this.warmSession(t?.sessionKey),this.settings.sync.onSearch&&(this.dirty||this.sessionsDirty)&&this.sync({reason:`search`}).catch(e=>{Z.warn(`memory sync failed (search): ${String(e)}`)});let n=e.trim();if(!n)return[];let r=t?.minScore??this.settings.query.minScore,i=t?.maxResults??this.settings.query.maxResults,a=this.settings.query.hybrid,o=Math.min(200,Math.max(1,Math.floor(i*a.candidateMultiplier)));if(!this.provider){if(!this.fts.enabled||!this.fts.available)return Z.warn(`memory search: no provider and FTS unavailable`),[];let e=xe(n),t=e.length>0?e:[n],a=await Promise.all(t.map(e=>this.searchKeyword(e,o).catch(()=>[]))),s=new Map;for(let e of a)for(let t of e){let e=s.get(t.id);(!e||t.score>e.score)&&s.set(t.id,t)}return[...s.values()].toSorted((e,t)=>t.score-e.score).filter(e=>e.score>=r).slice(0,i)}let s=a.enabled&&this.fts.enabled&&this.fts.available?await this.searchKeyword(n,o).catch(()=>[]):[],c=await this.embedQueryWithTimeout(n),l=c.some(e=>e!==0)?await this.searchVector(c,o).catch(()=>[]):[];if(!a.enabled||!this.fts.enabled||!this.fts.available)return l.filter(e=>e.score>=r).slice(0,i);let u=await this.mergeHybridResults({vector:l,keyword:s,vectorWeight:a.vectorWeight,textWeight:a.textWeight,mmr:a.mmr,temporalDecay:a.temporalDecay}),d=u.filter(e=>e.score>=r);if(d.length>0||s.length===0)return d.slice(0,i);let f=Math.min(r,a.textWeight),p=new Set(s.map(e=>`${e.source}:${e.path}:${e.startLine}:${e.endLine}`));return u.filter(e=>p.has(`${e.source}:${e.path}:${e.startLine}:${e.endLine}`)&&e.score>=f).slice(0,i)}async searchVector(e,t){return this.provider?(await Yn({db:this.db,vectorTable:`chunks_vec`,providerModel:this.provider.model,queryVec:e,limit:t,snippetMaxChars:700,ensureVectorReady:async e=>await this.ensureVectorReady(e),sourceFilterVec:this.buildSourceFilter(`c`),sourceFilterChunks:this.buildSourceFilter()})).map(e=>e):[]}buildFtsQuery(e){return qt(e)}async searchKeyword(e,t){if(!this.fts.enabled||!this.fts.available)return[];let n=this.buildSourceFilter(),r=this.provider?.model;return(await Zn({db:this.db,ftsTable:`chunks_fts`,providerModel:r,query:e,limit:t,snippetMaxChars:700,sourceFilter:n,buildFtsQuery:e=>this.buildFtsQuery(e),bm25RankToScore:Jt})).map(e=>e)}mergeHybridResults(e){return Yt({vector:e.vector.map(e=>({id:e.id,path:e.path,startLine:e.startLine,endLine:e.endLine,source:e.source,snippet:e.snippet,vectorScore:e.score})),keyword:e.keyword.map(e=>({id:e.id,path:e.path,startLine:e.startLine,endLine:e.endLine,source:e.source,snippet:e.snippet,textScore:e.textScore})),vectorWeight:e.vectorWeight,textWeight:e.textWeight,mmr:e.mmr,temporalDecay:e.temporalDecay,workspaceDir:this.workspaceDir}).then(e=>e.map(e=>e))}async sync(e){if(!this.closed)return this.syncing?this.syncing:(this.syncing=this.runSyncWithReadonlyRecovery(e).finally(()=>{this.syncing=null}),this.syncing??Promise.resolve())}isReadonlyDbError(e){let t=/attempt to write a readonly database|database is read-only|SQLITE_READONLY/i,n=new Set,r=e=>{if(typeof e!=`string`)return;let t=e.trim();t&&n.add(t)};if(r(e instanceof Error?e.message:String(e)),e&&typeof e==`object`){let t=e;if(r(t.message),r(t.code),r(t.name),t.cause&&typeof t.cause==`object`){let e=t.cause;r(e.message),r(e.code),r(e.name)}}return[...n].some(e=>t.test(e))}extractErrorReason(e){if(e instanceof Error&&e.message.trim())return e.message;if(e&&typeof e==`object`){let t=e;if(typeof t.message==`string`&&t.message.trim())return t.message;if(typeof t.code==`string`&&t.code.trim())return t.code}return String(e)}async runSyncWithReadonlyRecovery(e){try{await this.runSync(e);return}catch(t){if(!this.isReadonlyDbError(t)||this.closed)throw t;let n=this.extractErrorReason(t);this.readonlyRecoveryAttempts+=1,this.readonlyRecoveryLastError=n,Z.warn(`memory sync readonly handle detected; reopening sqlite connection`,{reason:n});try{this.db.close()}catch{}this.db=this.openDatabase(),this.vectorReady=null,this.vector.available=null,this.vector.loadError=void 0,this.ensureSchema();let r=this.readMeta();this.vector.dims=r?.vectorDims;try{await this.runSync(e),this.readonlyRecoverySuccesses+=1}catch(e){throw this.readonlyRecoveryFailures+=1,e}}}async readFile(e){let t=e.relPath.trim();if(!t)throw Error(`path required`);let n=O.isAbsolute(t)?O.resolve(t):O.resolve(this.workspaceDir,t),r=O.relative(this.workspaceDir,n).replace(/\\/g,`/`),i=r.length>0&&!r.startsWith(`..`)&&!O.isAbsolute(r)&&ve(r),a=!1;if(!i&&this.settings.extraPaths.length>0){let e=T(this.workspaceDir,this.settings.extraPaths);for(let t of e)try{let e=await k.lstat(t);if(e.isSymbolicLink())continue;if(e.isDirectory()){if(n===t||n.startsWith(`${t}${O.sep}`)){a=!0;break}continue}if(e.isFile()&&n===t&&n.endsWith(`.md`)){a=!0;break}}catch{}}if(!i&&!a||!n.endsWith(`.md`))throw Error(`path required`);if((await Ce(n)).missing)return{text:``,path:r};let o;try{o=await k.readFile(n,`utf-8`)}catch(e){if(v(e))return{text:``,path:r};throw e}if(!e.from&&!e.lines)return{text:o,path:r};let s=o.split(`
|
|
69
69
|
`),c=Math.max(1,e.from??1),l=Math.max(1,e.lines??s.length);return{text:s.slice(c-1,c-1+l).join(`
|
|
70
70
|
`),path:r}}status(){let e=this.buildSourceFilter(),t=this.db.prepare(`SELECT COUNT(*) as c FROM files WHERE 1=1${e.sql}`).get(...e.params),n=this.db.prepare(`SELECT COUNT(*) as c FROM chunks WHERE 1=1${e.sql}`).get(...e.params),r=(()=>{let t=Array.from(this.sources);if(t.length===0)return[];let n=new Map;for(let e of t)n.set(e,{files:0,chunks:0});let r=this.db.prepare(`SELECT source, COUNT(*) as c FROM files WHERE 1=1${e.sql} GROUP BY source`).all(...e.params);for(let e of r){let t=n.get(e.source)??{files:0,chunks:0};t.files=e.c??0,n.set(e.source,t)}let i=this.db.prepare(`SELECT source, COUNT(*) as c FROM chunks WHERE 1=1${e.sql} GROUP BY source`).all(...e.params);for(let e of i){let t=n.get(e.source)??{files:0,chunks:0};t.chunks=e.c??0,n.set(e.source,t)}return t.map(e=>Object.assign({source:e},n.get(e)))})(),i=this.provider?`hybrid`:`fts-only`,a=this.provider?{provider:this.provider.id,model:this.provider.model}:{provider:`none`,model:void 0};return{backend:`builtin`,files:t?.c??0,chunks:n?.c??0,dirty:this.dirty||this.sessionsDirty,workspaceDir:this.workspaceDir,dbPath:this.settings.store.path,provider:a.provider,model:a.model,requestedProvider:this.requestedProvider,sources:Array.from(this.sources),extraPaths:this.settings.extraPaths,sourceCounts:r,cache:this.cache.enabled?{enabled:!0,entries:this.db.prepare(`SELECT COUNT(*) as c FROM embedding_cache`).get()?.c??0,maxEntries:this.cache.maxEntries}:{enabled:!1,maxEntries:this.cache.maxEntries},fts:{enabled:this.fts.enabled,available:this.fts.available,error:this.fts.loadError},fallback:this.fallbackReason?{from:this.fallbackFrom??`local`,reason:this.fallbackReason}:void 0,vector:{enabled:this.vector.enabled,available:this.vector.available??void 0,extensionPath:this.vector.extensionPath,loadError:this.vector.loadError,dims:this.vector.dims},batch:{enabled:this.batch.enabled,failures:this.batchFailureCount,limit:2,wait:this.batch.wait,concurrency:this.batch.concurrency,pollIntervalMs:this.batch.pollIntervalMs,timeoutMs:this.batch.timeoutMs,lastError:this.batchFailureLastError,lastProvider:this.batchFailureLastProvider},custom:{searchMode:i,providerUnavailableReason:this.providerUnavailableReason,readonlyRecovery:{attempts:this.readonlyRecoveryAttempts,successes:this.readonlyRecoverySuccesses,failures:this.readonlyRecoveryFailures,lastError:this.readonlyRecoveryLastError}}}}async probeVectorAvailability(){return!this.provider||!this.vector.enabled?!1:this.ensureVectorReady()}async probeEmbeddingAvailability(){if(!this.provider)return{ok:!1,error:this.providerUnavailableReason??`No embedding provider available (FTS-only mode)`};try{return await this.embedBatchWithRetry([`ping`]),{ok:!0}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async close(){if(this.closed)return;this.closed=!0;let e=this.syncing;if(this.watchTimer&&=(clearTimeout(this.watchTimer),null),this.sessionWatchTimer&&=(clearTimeout(this.sessionWatchTimer),null),this.intervalTimer&&=(clearInterval(this.intervalTimer),null),this.watcher&&=(await this.watcher.close(),null),this.sessionUnsubscribe&&=(this.sessionUnsubscribe(),null),e)try{await e}catch{}this.db.close(),Q.delete(this.cacheKey)}};export{Qn as n,Re as r,$n as t};
|
|
71
|
-
//# sourceMappingURL=manager-zyDhj7B-.js.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`./paths-Bcdg3ma0.cjs`);const e=require(`./paths-CIcxeNL-.cjs`);require(`./utils-PPIvU9qw.cjs`);const t=require(`./model-auth-sjKLUCCz.cjs`),n=require(`./target-errors-QGzfLvuU.cjs`),r=require(`./dispatch-_tJF5hSh.cjs`),i=require(`./send-CGMqeSaY.cjs`),a=require(`./send-DmxxJFZd.cjs`);require(`./proxy-env-D48qBPAr.cjs`),require(`./github-copilot-token-C1O2cBqk.cjs`),require(`./send-BJmf3HVn.cjs`);const o=require(`./fetch-guard-CVnIQ0nI.cjs`);require(`./deliver-Cm8yUsWK.cjs`),require(`./diagnostic-DMpxa640.cjs`),require(`./pi-model-discovery-DUbDLlc7.cjs`),require(`./audio-transcription-runner-BZLASCWO.cjs`),require(`./image-BPUmI-kx.cjs`),require(`./api-key-rotation-CrVpqlS6.cjs`),require(`./local-roots-GqNj3vMl.cjs`),require(`./proxy-fetch-BwXFVsHE.cjs`),require(`./tokens-CnB4dJmp.cjs`),require(`./commands-registry-wA0CkHGk.cjs`),require(`./fetch-CZewCAvu.cjs`),require(`./ir-BiiaNbB9.cjs`),require(`./render-g5VlmgpF.cjs`),require(`./channel-activity-DymcGybX.cjs`),require(`./tables-BltHUi44.cjs`),require(`./send-BkjnUdWv.cjs`),require(`./fetch-BN9y3kTg.cjs`),require(`./skill-commands-LCW6nWWC.cjs`),require(`./outbound-attachment-Dbja7LQF.cjs`),require(`./send-BbudHjUi.cjs`),require(`./query-expansion-cpXCyoDy.cjs`),require(`./manager-BZVFXygg.cjs`);let s=require(`node:util`),c=require(`zod`);const l=c.z.union([c.z.string(),c.z.number()]);c.z.array(l).optional();function u(e){let t=e;return typeof t.toJSONSchema==`function`?{schema:t.toJSONSchema({target:`draft-07`,unrepresentable:`any`})}:{schema:{type:`object`,additionalProperties:!0}}}const d={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`]},f=[`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`],p=[...new Set(Object.values(d).flatMap(e=>e))];[...new Set([...p,...f])];function m(e){return e instanceof Error&&typeof e.message==`string`&&e.message.trim()?e.message:String(e)}function h(e){return d[e]?.find(e=>e.trim().length>0)}function g(e){return`/providers/${t.Hi(e)}/apiKey`}async function _(e){let n=e.preferredEnvVar??h(e.provider)??``,r=g(e.provider),i=`env`;for(;;){let a=await e.prompter.select({message:e.copy?.sourceMessage??`Where is this API key stored?`,initialValue:i,options:[{value:`env`,label:`Environment variable`,hint:`Reference a variable from your runtime environment`},{value:`provider`,label:`Configured secret provider`,hint:`Use a configured file or exec secret provider`}]})===`provider`?`provider`:`env`;if(i=a,a===`env`){let r=await e.prompter.text({message:e.copy?.envVarMessage??`Environment variable name`,initialValue:n||void 0,placeholder:e.copy?.envVarPlaceholder??`OPENAI_API_KEY`,validate:n=>{let r=n.trim();if(!t.Ms(r))return e.copy?.envVarFormatError??`Use an env var name like "OPENAI_API_KEY" (uppercase letters, numbers, underscores).`;if(!process.env[r]?.trim())return e.copy?.envVarMissingError?.(r)??`Environment variable "${r}" is missing or empty in this session.`}}),i=String(r??``).trim(),a=i&&t.Ms(i)?i:n;if(!a)throw Error(`No valid environment variable name provided for provider "${e.provider}".`);let o={source:`env`,provider:t.Ds(e.config,`env`,{preferFirstProviderForSource:!0}),id:a},s=await t.Fi(o,{config:e.config,env:process.env});return await e.prompter.note(e.copy?.envValidatedMessage?.(a)??`Validated environment variable ${a}. OpenClaw will store a reference, not the key value.`,`Reference validated`),{ref:o,resolvedValue:s}}let o=Object.entries(e.config.secrets?.providers??{}).filter(([,e])=>e?.source===`file`||e?.source===`exec`);if(o.length===0){await e.prompter.note(e.copy?.noProvidersMessage??`No file/exec secret providers are configured yet. Add one under secrets.providers, or select Environment variable.`,`No providers configured`);continue}let s=t.Ds(e.config,`file`,{preferFirstProviderForSource:!0}),c=await e.prompter.select({message:`Select secret provider`,initialValue:o.find(([e])=>e===s)?.[0]??o[0]?.[0],options:o.map(([e,t])=>({value:e,label:e,hint:t?.source===`exec`?`Exec provider`:`File provider`}))}),l=e.config.secrets?.providers?.[c];if(!l||l.source!==`file`&&l.source!==`exec`){await e.prompter.note(`Provider "${c}" is not a file/exec provider.`,`Invalid provider`);continue}let u=l.source===`file`?`Secret id (JSON pointer for json mode, or 'value' for singleValue mode)`:`Secret id for the exec provider`,d=l.source===`file`?l.mode===`singleValue`?`value`:r:`${e.provider}/apiKey`,f=await e.prompter.text({message:u,initialValue:d,placeholder:l.source===`file`?`/providers/openai/apiKey`:`openai/api-key`,validate:e=>{let n=e.trim();if(!n)return`Secret id cannot be empty.`;if(l.source===`file`&&l.mode!==`singleValue`&&!t.Es(n))return`Use an absolute JSON pointer like "/providers/openai/apiKey".`;if(l.source===`file`&&l.mode===`singleValue`&&n!==`value`)return`singleValue mode expects id "value".`;if(l.source===`exec`&&!t.Ts(n))return t.ws()}}),p=String(f??``).trim()||d,h={source:l.source,provider:c,id:p};try{let n=await t.Fi(h,{config:e.config,env:process.env});return await e.prompter.note(e.copy?.providerValidatedMessage?.(c,p,l.source)??`Validated ${l.source} reference ${c}:${p}. OpenClaw will store a reference, not the key value.`,`Reference validated`),{ref:h,resolvedValue:n}}catch(t){await e.prompter.note([`Could not validate provider reference ${c}:${p}.`,m(t),`Check your provider configuration and try again.`].join(`
|
|
2
2
|
`),`Reference check failed`)}}}async function v(e){return e.explicitMode?e.explicitMode:typeof e.prompter.select==`function`&&await e.prompter.select({message:e.copy?.modeMessage??`How do you want to provide this API key?`,initialValue:`plaintext`,options:[{value:`plaintext`,label:e.copy?.plaintextLabel??`Paste API key now`,hint:e.copy?.plaintextHint??`Stores the key directly in OpenClaw config`},{value:`ref`,label:e.copy?.refLabel??`Use external secret provider`,hint:e.copy?.refHint??`Stores a reference to env or configured external secret providers`}]})===`ref`?`ref`:`plaintext`}function y(e,t){let n=e.channels?.[t];return!!(n?.accounts&&Object.keys(n.accounts).length>0)}function b(e){return e.alwaysUseAccounts||e.accountId!==`default`?!0:y(e.cfg,e.channelKey)}function x(t){let n=t.name?.trim();if(!n)return t.cfg;let r=e.Ot(t.accountId),i=t.cfg.channels?.[t.channelKey],a=typeof i==`object`&&i?i:void 0;if(!b({cfg:t.cfg,channelKey:t.channelKey,accountId:r,alwaysUseAccounts:t.alwaysUseAccounts})&&r===`default`){let e=a??{};return{...t.cfg,channels:{...t.cfg.channels,[t.channelKey]:{...e,name:n}}}}let o=a?.accounts??{},s=o[r]??{},c=r===`default`?(({name:e,...t})=>t)(a??{}):a??{};return{...t.cfg,channels:{...t.cfg.channels,[t.channelKey]:{...c,accounts:{...o,[r]:{...s,name:n}}}}}}function S(e){let t=(e??[]).map(e=>String(e).trim()).filter(Boolean);return t.includes(`*`)||t.push(`*`),t}function C(e,t){let n=[...e??[],...t].map(e=>String(e).trim()).filter(Boolean);return[...new Set(n)]}function w(e){return e.split(/[\n,;]+/g).map(e=>e.trim()).filter(Boolean)}function T(e){let t=e.cfg.channels?.[e.channel]??{};return{...e.cfg,channels:{...e.cfg.channels,[e.channel]:{...t,...e.enabled?{enabled:!0}:{},groupPolicy:e.groupPolicy}}}}function E(e){return{accountConfigured:e.accountConfigured,hasConfigToken:e.hasConfigToken,canUseEnv:e.allowEnv&&!!e.envValue?.trim()&&!e.hasConfigToken}}async function D(e){let t=async()=>String(await e.prompter.text({message:e.inputPrompt,validate:e=>e?.trim()?void 0:`Required`})).trim();return e.canUseEnv?await e.prompter.confirm({message:e.envPrompt,initialValue:!0})?{useEnv:!0,token:null}:{useEnv:!1,token:await t()}:e.hasConfigToken&&e.accountConfigured&&await e.prompter.confirm({message:e.keepPrompt,initialValue:!0})?{useEnv:!1,token:null}:{useEnv:!1,token:await t()}}async function O(e){if(await v({prompter:e.prompter,explicitMode:e.secretInputMode,copy:{modeMessage:`How do you want to provide this ${e.credentialLabel}?`,plaintextLabel:`Enter ${e.credentialLabel}`,plaintextHint:`Stores the credential directly in OpenClaw config`,refLabel:`Use external secret provider`,refHint:`Stores a reference to env or configured external secret providers`}})===`plaintext`){let t=await D({prompter:e.prompter,accountConfigured:e.accountConfigured,canUseEnv:e.canUseEnv,hasConfigToken:e.hasConfigToken,envPrompt:e.envPrompt,keepPrompt:e.keepPrompt,inputPrompt:e.inputPrompt});return t.useEnv?{action:`use-env`}:t.token?{action:`set`,value:t.token,resolvedValue:t.token}:{action:`keep`}}if(e.hasConfigToken&&e.accountConfigured&&await e.prompter.confirm({message:e.keepPrompt,initialValue:!0}))return{action:`keep`};let t=await _({provider:e.providerHint,config:e.cfg,prompter:e.prompter,preferredEnvVar:e.preferredEnvVar,copy:{sourceMessage:`Where is this ${e.credentialLabel} stored?`,envVarPlaceholder:e.preferredEnvVar??`OPENCLAW_SECRET`,envVarFormatError:`Use an env var name like "OPENCLAW_SECRET" (uppercase letters, numbers, underscores).`,noProvidersMessage:`No file/exec secret providers are configured yet. Add one under secrets.providers, or select Environment variable.`}});return{action:`set`,value:t.ref,resolvedValue:t.resolvedValue}}function k(e){return w(String(e??``))}function A(e){return e.map(e=>e.trim()).filter(Boolean).join(`, `)}async function j(e){let t=[{value:`allowlist`,label:`Allowlist (recommended)`}];e.allowOpen!==!1&&t.push({value:`open`,label:`Open (allow all channels)`}),e.allowDisabled!==!1&&t.push({value:`disabled`,label:`Disabled (block all channels)`});let n=e.currentPolicy??`allowlist`;return await e.prompter.select({message:`${e.label} access`,options:t,initialValue:n})}async function M(e){let t=e.currentEntries&&e.currentEntries.length>0?A(e.currentEntries):void 0;return k(await e.prompter.text({message:`${e.label} allowlist (comma-separated)`,placeholder:e.placeholder,initialValue:t}))}async function N(e){let t=(e.currentEntries??[]).length>0,n=e.defaultPrompt??!t;if(!await e.prompter.confirm({message:e.updatePrompt?`Update ${e.label} access?`:`Configure ${e.label} access?`,initialValue:n}))return null;let r=await j({prompter:e.prompter,label:e.label,currentPolicy:e.currentPolicy,allowOpen:e.allowOpen,allowDisabled:e.allowDisabled});return r===`allowlist`?{policy:r,entries:await M({prompter:e.prompter,label:e.label,currentEntries:e.currentEntries,placeholder:e.placeholder})}:{policy:r,entries:[]}}function P(){let e=c.z.string().regex(t.Cs,`Secret reference provider must match /^[a-z][a-z0-9_-]{0,63}$/ (example: "default").`);return c.z.union([c.z.string(),c.z.discriminatedUnion(`source`,[c.z.object({source:c.z.literal(`env`),provider:e,id:c.z.string().regex(t.ks,`Env secret reference id must match /^[A-Z][A-Z0-9_]{0,127}$/ (example: "OPENAI_API_KEY").`)}),c.z.object({source:c.z.literal(`file`),provider:e,id:c.z.string().refine(t.Es,`File secret reference id must be an absolute JSON pointer (example: "/providers/openai/apiKey"), or "value" for singleValue mode.`)}),c.z.object({source:c.z.literal(`exec`),provider:e,id:c.z.string().refine(t.Ts,t.ws())})])])}function F(e){return{success:!1,error:{issues:[{path:[],message:e}]}}}function I(){return{safeParse(e){return e===void 0?{success:!0,data:void 0}:!e||typeof e!=`object`||Array.isArray(e)?F(`expected config object`):Object.keys(e).length>0?F(`config must be empty`):{success:!0,data:e}},jsonSchema:{type:`object`,additionalProperties:!1,properties:{}}}}function L(t){let n=e.Ot(t.accountId);return{accountId:n,readAllowFromStore:()=>t.core.channel.pairing.readAllowFromStore({channel:t.channel,accountId:n}),readStoreForDmPolicy:(n,r)=>t.core.channel.pairing.readAllowFromStore({channel:n,accountId:e.Ot(r)}),upsertPairingRequest:e=>t.core.channel.pairing.upsertPairingRequest({channel:t.channel,accountId:n,...e})}}function R(e){if(!(e.resolved.length===0&&e.unresolved.length===0))return[e.resolved.length>0?`Resolved: ${e.resolved.join(`, `)}`:void 0,e.unresolved.length>0?`Unresolved (kept as typed): ${e.unresolved.join(`, `)}`:void 0].filter(Boolean).join(`
|
|
3
3
|
`)}async function z(e){let[n]=e.argv;if(!n)return{code:1,stdout:``,stderr:`command is required`};try{let n=await t._c(e.argv,{timeoutMs:e.timeoutMs,cwd:e.cwd,env:e.env}),r=n.termination===`timeout`||n.termination===`no-output-timeout`;return{code:n.code??1,stdout:n.stdout,stderr:r?n.stderr||`command timed out after ${e.timeoutMs}ms`:n.stderr}}catch(e){return{code:1,stdout:``,stderr:e instanceof Error?e.message:String(e)}}}async function B(e){return await r.t({dispatcher:e.dispatcher,onSettled:e.onSettled,run:()=>r.n({ctx:e.ctxPayload,cfg:e.cfg,dispatcher:e.dispatcher,replyOptions:e.replyOptions})})}function V(e){return{log:(...t)=>{e.logger.info((0,s.format)(...t))},error:(...t)=>{e.logger.error((0,s.format)(...t))},exit:t=>{throw e.exitError?.(t)??Error(`exit ${t}`)}}}function H(e){return e.runtime??V(e)}function U(e){return{configured:e.configured??!1,running:e.running??!1,lastStartAt:e.lastStartAt??null,lastStopAt:e.lastStopAt??null,lastError:e.lastError??null}}function W(e,t){return{...U(e),...t??{},probe:e.probe,lastProbeAt:e.lastProbeAt??null}}function G(e,t){return t.flatMap(t=>{let n=typeof t.lastError==`string`?t.lastError.trim():``;return n?[{channel:e,accountId:t.accountId,kind:`runtime`,message:`Channel error: ${n}`}]:[]})}exports.DEFAULT_ACCOUNT_ID=e.Dt,exports.GROUP_POLICY_BLOCKED_LABEL=a.At,exports.MarkdownConfigSchema=t.bs,exports.PAIRING_APPROVED_MESSAGE=`✅ OpenClaw access approved. Send a message to start chatting.`,exports.ToolPolicySchema=t.la,exports.addWildcardAllowFrom=S,exports.applyAccountNameToChannelSection=x,exports.buildChannelConfigSchema=u,exports.buildChannelKeyCandidates=a.It,exports.buildProbeChannelStatusSummary=W,exports.buildSecretInputSchema=P,exports.buildSingleChannelSecretPromptState=E,exports.collectStatusIssuesFromLastError=G,exports.compileAllowlist=r.rt,exports.createAccountListHelpers=t.tc,exports.createActionGate=n.o,exports.createLoggerBackedRuntime=V,exports.createReplyPrefixOptions=r.Y,exports.createScopedPairingAccess=L,exports.createTypingCallbacks=r.J,exports.deleteAccountFromConfigSection=t.sc,exports.dispatchReplyFromConfigWithSettledDispatcher=B,exports.emptyPluginConfigSchema=I,exports.evaluateGroupRouteAccessForPolicy=a.Dt,exports.fetchWithSsrFGuard=o.t,exports.formatAllowlistMatchMeta=r.it,exports.formatDocsLink=r.H,exports.formatLocationText=i.ct,exports.formatPairingApproveHint=t.ic,exports.formatResolvedUnresolvedNote=R,exports.hasConfiguredSecretInput=t.js,exports.issuePairingChallenge=r.q,exports.jsonResult=n.l,exports.logInboundDrop=r.Q,exports.logTypingFailure=r.$,exports.mergeAllowFromEntries=C,exports.mergeAllowlist=r.tt,exports.normalizeAccountId=e.Ot,exports.normalizeResolvedSecretInputString=t.Ns,exports.normalizeSecretInputString=t.Ps,exports.normalizeStringEntries=e.ft,exports.promptChannelAccessConfig=N,exports.promptSingleChannelSecretInput=O,exports.readNumberParam=n.d,exports.readReactionParams=n.f,exports.readStoreAllowFromForDmPolicy=r.U,exports.readStringParam=n.h,exports.resolveAllowlistCandidates=r.at,exports.resolveAllowlistMatchByCandidates=r.ot,exports.resolveAllowlistProviderRuntimeGroupPolicy=a.jt,exports.resolveChannelEntryMatch=a.Rt,exports.resolveControlCommandGate=r.et,exports.resolveDefaultGroupPolicy=a.Mt,exports.resolveDmGroupAccessWithLists=r.G,exports.resolveInboundSessionEnvelopeContext=r.l,exports.resolveRuntimeEnv=H,exports.resolveSenderScopedGroupPolicy=a.kt,exports.runPluginCommandWithTimeout=z,exports.setAccountEnabledInConfigSection=t.cc,exports.setTopLevelChannelGroupPolicy=T,exports.summarizeMapping=r.nt,exports.toLocationContext=i.lt,exports.warnMissingProviderGroupPolicyFallbackOnce=a.Pt;
|
|
4
|
-
//# sourceMappingURL=matrix.cjs.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import{Dt as e,Ot as t,ft as n}from"./paths-CXgWvWAM.js";import"./utils-BJtJR72k.js";import"./paths-rO4ehkyU.js";import{As as r,Cs as i,Ds as a,Os as o,Pi as s,Ss as c,Ts as l,Vi as u,Zs as d,bs as f,ca as p,ec as m,gs as h,ic as g,ks as _,pc as v,rc as ee,xs as y,ys as te}from"./model-auth-Cp2GSJwZ.js";import{d as ne,f as re,h as ie,l as ae,o as oe}from"./target-errors-BFOTHcjO.js";import{$ as b,G as x,H as S,J as C,Q as w,U as T,Y as E,at as D,et as O,it as k,l as A,n as j,nt as M,ot as N,q as P,rt as F,t as I,tt as L}from"./dispatch-DYRrW05S.js";import{ct as R,lt as z}from"./send-CMeGMLko.js";import{At as B,Dt as V,It as H,Mt as U,Pt as W,Rt as G,jt as K,kt as q}from"./send-B-GqqrNy.js";import"./proxy-env-m9eG3uZN.js";import"./github-copilot-token-C8j8_NjX.js";import"./send-_ZGBA2sz.js";import{t as se}from"./fetch-guard-Dm1nAvhl.js";import"./deliver-DRintVMn.js";import"./diagnostic-DbRdunVt.js";import"./pi-model-discovery-BsdlRK-w.js";import"./audio-transcription-runner-DZRGn6-f.js";import"./image-CNMuTe0Z.js";import"./api-key-rotation-BcDAQISn.js";import"./local-roots-DU8RuiRi.js";import"./proxy-fetch-YCVHz7Rl.js";import"./tokens-DgPZk2Uu.js";import"./commands-registry-CZcNTwNs.js";import"./fetch-B1GR6-u4.js";import"./ir-c1MS26Ci.js";import"./render-Djx15dPh.js";import"./channel-activity-BCsNxxNa.js";import"./tables-aSJP6Sef.js";import"./send-vtYROJNd.js";import"./fetch-J0IzopiJ.js";import"./skill-commands-D83BLBEG.js";import"./outbound-attachment-CLUVyl5e.js";import"./send-DIjQ2vB4.js";import"./query-expansion-Cb2vnF6y.js";import"./manager-CN4wiVFz.js";import{format as J}from"node:util";import{z as Y}from"zod";const ce=Y.union([Y.string(),Y.number()]);Y.array(ce).optional();function le(e){let t=e;return typeof t.toJSONSchema==`function`?{schema:t.toJSONSchema({target:`draft-07`,unrepresentable:`any`})}:{schema:{type:`object`,additionalProperties:!0}}}const X={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`]},ue=[`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`],de=[...new Set(Object.values(X).flatMap(e=>e))];[...new Set([...de,...ue])];function fe(e){return e instanceof Error&&typeof e.message==`string`&&e.message.trim()?e.message:String(e)}function pe(e){return X[e]?.find(e=>e.trim().length>0)}function me(e){return`/providers/${u(e)}/apiKey`}async function he(e){let t=e.preferredEnvVar??pe(e.provider)??``,n=me(e.provider),r=`env`;for(;;){let a=await e.prompter.select({message:e.copy?.sourceMessage??`Where is this API key stored?`,initialValue:r,options:[{value:`env`,label:`Environment variable`,hint:`Reference a variable from your runtime environment`},{value:`provider`,label:`Configured secret provider`,hint:`Use a configured file or exec secret provider`}]})===`provider`?`provider`:`env`;if(r=a,a===`env`){let n=await e.prompter.text({message:e.copy?.envVarMessage??`Environment variable name`,initialValue:t||void 0,placeholder:e.copy?.envVarPlaceholder??`OPENAI_API_KEY`,validate:t=>{let n=t.trim();if(!o(n))return e.copy?.envVarFormatError??`Use an env var name like "OPENAI_API_KEY" (uppercase letters, numbers, underscores).`;if(!process.env[n]?.trim())return e.copy?.envVarMissingError?.(n)??`Environment variable "${n}" is missing or empty in this session.`}}),r=String(n??``).trim(),a=r&&o(r)?r:t;if(!a)throw Error(`No valid environment variable name provided for provider "${e.provider}".`);let c={source:`env`,provider:i(e.config,`env`,{preferFirstProviderForSource:!0}),id:a},l=await s(c,{config:e.config,env:process.env});return await e.prompter.note(e.copy?.envValidatedMessage?.(a)??`Validated environment variable ${a}. OpenClaw will store a reference, not the key value.`,`Reference validated`),{ref:c,resolvedValue:l}}let l=Object.entries(e.config.secrets?.providers??{}).filter(([,e])=>e?.source===`file`||e?.source===`exec`);if(l.length===0){await e.prompter.note(e.copy?.noProvidersMessage??`No file/exec secret providers are configured yet. Add one under secrets.providers, or select Environment variable.`,`No providers configured`);continue}let u=i(e.config,`file`,{preferFirstProviderForSource:!0}),d=await e.prompter.select({message:`Select secret provider`,initialValue:l.find(([e])=>e===u)?.[0]??l[0]?.[0],options:l.map(([e,t])=>({value:e,label:e,hint:t?.source===`exec`?`Exec provider`:`File provider`}))}),p=e.config.secrets?.providers?.[d];if(!p||p.source!==`file`&&p.source!==`exec`){await e.prompter.note(`Provider "${d}" is not a file/exec provider.`,`Invalid provider`);continue}let m=p.source===`file`?`Secret id (JSON pointer for json mode, or 'value' for singleValue mode)`:`Secret id for the exec provider`,h=p.source===`file`?p.mode===`singleValue`?`value`:n:`${e.provider}/apiKey`,g=await e.prompter.text({message:m,initialValue:h,placeholder:p.source===`file`?`/providers/openai/apiKey`:`openai/api-key`,validate:e=>{let t=e.trim();if(!t)return`Secret id cannot be empty.`;if(p.source===`file`&&p.mode!==`singleValue`&&!c(t))return`Use an absolute JSON pointer like "/providers/openai/apiKey".`;if(p.source===`file`&&p.mode===`singleValue`&&t!==`value`)return`singleValue mode expects id "value".`;if(p.source===`exec`&&!y(t))return f()}}),_=String(g??``).trim()||h,v={source:p.source,provider:d,id:_};try{let t=await s(v,{config:e.config,env:process.env});return await e.prompter.note(e.copy?.providerValidatedMessage?.(d,_,p.source)??`Validated ${p.source} reference ${d}:${_}. OpenClaw will store a reference, not the key value.`,`Reference validated`),{ref:v,resolvedValue:t}}catch(t){await e.prompter.note([`Could not validate provider reference ${d}:${_}.`,fe(t),`Check your provider configuration and try again.`].join(`
|
|
2
2
|
`),`Reference check failed`)}}}async function ge(e){return e.explicitMode?e.explicitMode:typeof e.prompter.select==`function`&&await e.prompter.select({message:e.copy?.modeMessage??`How do you want to provide this API key?`,initialValue:`plaintext`,options:[{value:`plaintext`,label:e.copy?.plaintextLabel??`Paste API key now`,hint:e.copy?.plaintextHint??`Stores the key directly in OpenClaw config`},{value:`ref`,label:e.copy?.refLabel??`Use external secret provider`,hint:e.copy?.refHint??`Stores a reference to env or configured external secret providers`}]})===`ref`?`ref`:`plaintext`}function _e(e,t){let n=e.channels?.[t];return!!(n?.accounts&&Object.keys(n.accounts).length>0)}function ve(e){return e.alwaysUseAccounts||e.accountId!==`default`?!0:_e(e.cfg,e.channelKey)}function ye(e){let n=e.name?.trim();if(!n)return e.cfg;let r=t(e.accountId),i=e.cfg.channels?.[e.channelKey],a=typeof i==`object`&&i?i:void 0;if(!ve({cfg:e.cfg,channelKey:e.channelKey,accountId:r,alwaysUseAccounts:e.alwaysUseAccounts})&&r===`default`){let t=a??{};return{...e.cfg,channels:{...e.cfg.channels,[e.channelKey]:{...t,name:n}}}}let o=a?.accounts??{},s=o[r]??{},c=r===`default`?(({name:e,...t})=>t)(a??{}):a??{};return{...e.cfg,channels:{...e.cfg.channels,[e.channelKey]:{...c,accounts:{...o,[r]:{...s,name:n}}}}}}function be(e){let t=(e??[]).map(e=>String(e).trim()).filter(Boolean);return t.includes(`*`)||t.push(`*`),t}function xe(e,t){let n=[...e??[],...t].map(e=>String(e).trim()).filter(Boolean);return[...new Set(n)]}function Se(e){return e.split(/[\n,;]+/g).map(e=>e.trim()).filter(Boolean)}function Ce(e){let t=e.cfg.channels?.[e.channel]??{};return{...e.cfg,channels:{...e.cfg.channels,[e.channel]:{...t,...e.enabled?{enabled:!0}:{},groupPolicy:e.groupPolicy}}}}function we(e){return{accountConfigured:e.accountConfigured,hasConfigToken:e.hasConfigToken,canUseEnv:e.allowEnv&&!!e.envValue?.trim()&&!e.hasConfigToken}}async function Te(e){let t=async()=>String(await e.prompter.text({message:e.inputPrompt,validate:e=>e?.trim()?void 0:`Required`})).trim();return e.canUseEnv?await e.prompter.confirm({message:e.envPrompt,initialValue:!0})?{useEnv:!0,token:null}:{useEnv:!1,token:await t()}:e.hasConfigToken&&e.accountConfigured&&await e.prompter.confirm({message:e.keepPrompt,initialValue:!0})?{useEnv:!1,token:null}:{useEnv:!1,token:await t()}}async function Ee(e){if(await ge({prompter:e.prompter,explicitMode:e.secretInputMode,copy:{modeMessage:`How do you want to provide this ${e.credentialLabel}?`,plaintextLabel:`Enter ${e.credentialLabel}`,plaintextHint:`Stores the credential directly in OpenClaw config`,refLabel:`Use external secret provider`,refHint:`Stores a reference to env or configured external secret providers`}})===`plaintext`){let t=await Te({prompter:e.prompter,accountConfigured:e.accountConfigured,canUseEnv:e.canUseEnv,hasConfigToken:e.hasConfigToken,envPrompt:e.envPrompt,keepPrompt:e.keepPrompt,inputPrompt:e.inputPrompt});return t.useEnv?{action:`use-env`}:t.token?{action:`set`,value:t.token,resolvedValue:t.token}:{action:`keep`}}if(e.hasConfigToken&&e.accountConfigured&&await e.prompter.confirm({message:e.keepPrompt,initialValue:!0}))return{action:`keep`};let t=await he({provider:e.providerHint,config:e.cfg,prompter:e.prompter,preferredEnvVar:e.preferredEnvVar,copy:{sourceMessage:`Where is this ${e.credentialLabel} stored?`,envVarPlaceholder:e.preferredEnvVar??`OPENCLAW_SECRET`,envVarFormatError:`Use an env var name like "OPENCLAW_SECRET" (uppercase letters, numbers, underscores).`,noProvidersMessage:`No file/exec secret providers are configured yet. Add one under secrets.providers, or select Environment variable.`}});return{action:`set`,value:t.ref,resolvedValue:t.resolvedValue}}function De(e){return Se(String(e??``))}function Oe(e){return e.map(e=>e.trim()).filter(Boolean).join(`, `)}async function ke(e){let t=[{value:`allowlist`,label:`Allowlist (recommended)`}];e.allowOpen!==!1&&t.push({value:`open`,label:`Open (allow all channels)`}),e.allowDisabled!==!1&&t.push({value:`disabled`,label:`Disabled (block all channels)`});let n=e.currentPolicy??`allowlist`;return await e.prompter.select({message:`${e.label} access`,options:t,initialValue:n})}async function Ae(e){let t=e.currentEntries&&e.currentEntries.length>0?Oe(e.currentEntries):void 0;return De(await e.prompter.text({message:`${e.label} allowlist (comma-separated)`,placeholder:e.placeholder,initialValue:t}))}async function je(e){let t=(e.currentEntries??[]).length>0,n=e.defaultPrompt??!t;if(!await e.prompter.confirm({message:e.updatePrompt?`Update ${e.label} access?`:`Configure ${e.label} access?`,initialValue:n}))return null;let r=await ke({prompter:e.prompter,label:e.label,currentPolicy:e.currentPolicy,allowOpen:e.allowOpen,allowDisabled:e.allowDisabled});return r===`allowlist`?{policy:r,entries:await Ae({prompter:e.prompter,label:e.label,currentEntries:e.currentEntries,placeholder:e.placeholder})}:{policy:r,entries:[]}}const Me=`✅ OpenClaw access approved. Send a message to start chatting.`;function Ne(){let e=Y.string().regex(te,`Secret reference provider must match /^[a-z][a-z0-9_-]{0,63}$/ (example: "default").`);return Y.union([Y.string(),Y.discriminatedUnion(`source`,[Y.object({source:Y.literal(`env`),provider:e,id:Y.string().regex(l,`Env secret reference id must match /^[A-Z][A-Z0-9_]{0,127}$/ (example: "OPENAI_API_KEY").`)}),Y.object({source:Y.literal(`file`),provider:e,id:Y.string().refine(c,`File secret reference id must be an absolute JSON pointer (example: "/providers/openai/apiKey"), or "value" for singleValue mode.`)}),Y.object({source:Y.literal(`exec`),provider:e,id:Y.string().refine(y,f())})])])}function Z(e){return{success:!1,error:{issues:[{path:[],message:e}]}}}function Pe(){return{safeParse(e){return e===void 0?{success:!0,data:void 0}:!e||typeof e!=`object`||Array.isArray(e)?Z(`expected config object`):Object.keys(e).length>0?Z(`config must be empty`):{success:!0,data:e}},jsonSchema:{type:`object`,additionalProperties:!1,properties:{}}}}function Fe(e){let n=t(e.accountId);return{accountId:n,readAllowFromStore:()=>e.core.channel.pairing.readAllowFromStore({channel:e.channel,accountId:n}),readStoreForDmPolicy:(n,r)=>e.core.channel.pairing.readAllowFromStore({channel:n,accountId:t(r)}),upsertPairingRequest:t=>e.core.channel.pairing.upsertPairingRequest({channel:e.channel,accountId:n,...t})}}function Q(e){if(!(e.resolved.length===0&&e.unresolved.length===0))return[e.resolved.length>0?`Resolved: ${e.resolved.join(`, `)}`:void 0,e.unresolved.length>0?`Unresolved (kept as typed): ${e.unresolved.join(`, `)}`:void 0].filter(Boolean).join(`
|
|
3
3
|
`)}async function Ie(e){let[t]=e.argv;if(!t)return{code:1,stdout:``,stderr:`command is required`};try{let t=await v(e.argv,{timeoutMs:e.timeoutMs,cwd:e.cwd,env:e.env}),n=t.termination===`timeout`||t.termination===`no-output-timeout`;return{code:t.code??1,stdout:t.stdout,stderr:n?t.stderr||`command timed out after ${e.timeoutMs}ms`:t.stderr}}catch(e){return{code:1,stdout:``,stderr:e instanceof Error?e.message:String(e)}}}async function Le(e){return await I({dispatcher:e.dispatcher,onSettled:e.onSettled,run:()=>j({ctx:e.ctxPayload,cfg:e.cfg,dispatcher:e.dispatcher,replyOptions:e.replyOptions})})}function $(e){return{log:(...t)=>{e.logger.info(J(...t))},error:(...t)=>{e.logger.error(J(...t))},exit:t=>{throw e.exitError?.(t)??Error(`exit ${t}`)}}}function Re(e){return e.runtime??$(e)}function ze(e){return{configured:e.configured??!1,running:e.running??!1,lastStartAt:e.lastStartAt??null,lastStopAt:e.lastStopAt??null,lastError:e.lastError??null}}function Be(e,t){return{...ze(e),...t??{},probe:e.probe,lastProbeAt:e.lastProbeAt??null}}function Ve(e,t){return t.flatMap(t=>{let n=typeof t.lastError==`string`?t.lastError.trim():``;return n?[{channel:e,accountId:t.accountId,kind:`runtime`,message:`Channel error: ${n}`}]:[]})}export{e as DEFAULT_ACCOUNT_ID,B as GROUP_POLICY_BLOCKED_LABEL,h as MarkdownConfigSchema,Me as PAIRING_APPROVED_MESSAGE,p as ToolPolicySchema,be as addWildcardAllowFrom,ye as applyAccountNameToChannelSection,le as buildChannelConfigSchema,H as buildChannelKeyCandidates,Be as buildProbeChannelStatusSummary,Ne as buildSecretInputSchema,we as buildSingleChannelSecretPromptState,Ve as collectStatusIssuesFromLastError,F as compileAllowlist,d as createAccountListHelpers,oe as createActionGate,$ as createLoggerBackedRuntime,E as createReplyPrefixOptions,Fe as createScopedPairingAccess,C as createTypingCallbacks,ee as deleteAccountFromConfigSection,Le as dispatchReplyFromConfigWithSettledDispatcher,Pe as emptyPluginConfigSchema,V as evaluateGroupRouteAccessForPolicy,se as fetchWithSsrFGuard,k as formatAllowlistMatchMeta,S as formatDocsLink,R as formatLocationText,m as formatPairingApproveHint,Q as formatResolvedUnresolvedNote,a as hasConfiguredSecretInput,P as issuePairingChallenge,ae as jsonResult,w as logInboundDrop,b as logTypingFailure,xe as mergeAllowFromEntries,L as mergeAllowlist,t as normalizeAccountId,_ as normalizeResolvedSecretInputString,r as normalizeSecretInputString,n as normalizeStringEntries,je as promptChannelAccessConfig,Ee as promptSingleChannelSecretInput,ne as readNumberParam,re as readReactionParams,T as readStoreAllowFromForDmPolicy,ie as readStringParam,D as resolveAllowlistCandidates,N as resolveAllowlistMatchByCandidates,K as resolveAllowlistProviderRuntimeGroupPolicy,G as resolveChannelEntryMatch,O as resolveControlCommandGate,U as resolveDefaultGroupPolicy,x as resolveDmGroupAccessWithLists,A as resolveInboundSessionEnvelopeContext,Re as resolveRuntimeEnv,q as resolveSenderScopedGroupPolicy,Ie as runPluginCommandWithTimeout,g as setAccountEnabledInConfigSection,Ce as setTopLevelChannelGroupPolicy,M as summarizeMapping,z as toLocationContext,W as warnMissingProviderGroupPolicyFallbackOnce};
|
|
4
|
-
//# sourceMappingURL=matrix.js.map
|