@qqbrowser/openclaw-qbot 0.0.139 → 0.0.142
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account-lookup-CW-_CL7y.js +1 -0
- package/dist/acp-cli-BaslDuk6.js +1 -0
- package/dist/acp-cli-f5-uI85a.js +1 -0
- package/dist/active-listener-Cce5tcPa.js +1 -0
- package/dist/active-listener-D8VOdVx3.js +1 -0
- package/dist/active-listener-DeKRt_UV.js +1 -0
- package/dist/active-listener-Dle9QX40.js +1 -0
- package/dist/agent-scope-DAWJwFfl.js +1 -0
- package/dist/agent-scope-DXZc3eNT.js +1 -0
- package/dist/agents-Bpp_F5In.js +1 -0
- package/dist/agents.config-B6LRG9eP.js +1 -0
- package/dist/agents.config-DfIJAGcd.js +1 -0
- package/dist/allow-from-B6dI7oz8.js +1 -0
- package/dist/allow-from-DEeVIPKS.js +1 -0
- package/dist/api-BeG0ObSq.js +1 -0
- package/dist/api-Dx8x1KTs.js +1 -0
- package/dist/api-key-rotation-BRt-vnRV.js +1 -0
- package/dist/api-key-rotation-CCH1wYVU.js +1 -0
- package/dist/api-key-rotation-D0QU-kQ9.js +1 -0
- package/dist/api-key-rotation-Di6QgXx7.js +1 -0
- package/dist/arg-split-BOqSMBuf.js +1 -0
- package/dist/arg-split-DE5RqDHq.js +1 -0
- package/dist/audio-preflight-B5o7P9qi.js +1 -0
- package/dist/audio-preflight-CxD7VCHW.js +1 -0
- package/dist/audio-preflight-DKSCBKRb.js +1 -0
- package/dist/audio-preflight-Dpk8-Bmk.js +1 -0
- package/dist/audio-transcription-runner-Bd1OZC6K.js +1 -0
- package/dist/audio-transcription-runner-D4Bp6MM7.js +1 -0
- package/dist/audio-transcription-runner-DPwmBYQj.js +1 -0
- package/dist/audio-transcription-runner-DSr6OIz1.js +1 -0
- package/dist/audit-C7RP7G_g.js +1 -0
- package/dist/audit-jkdcAUep.js +1 -0
- package/dist/audit-membership-runtime-BpRsMj5-.js +1 -0
- package/dist/audit-membership-runtime-BsfLZNBj.js +1 -0
- package/dist/audit-membership-runtime-DRHirRmx.js +1 -0
- package/dist/audit-membership-runtime-g0dEWJTp.js +1 -0
- package/dist/audit-membership-runtime-kdyToskD.js +1 -0
- package/dist/auth-choice-B7LSoXZ_.js +1 -0
- package/dist/auth-choice-CxMH4c-u.js +1 -0
- package/dist/auth-choice-DvTApGhx.js +1 -0
- package/dist/auth-choice-EQdNd7jO.js +1 -0
- package/dist/auth-choice-options-B3WQyS7I.js +1 -0
- package/dist/auth-choice-options-Dw14noox.js +1 -0
- package/dist/auth-choice-prompt-uegl56cf.js +1 -0
- package/dist/auth-choice-prompt-xYj13czb.js +1 -0
- package/dist/auth-choice.apply-helpers-B7S-PcH_.js +1 -0
- package/dist/auth-choice.apply-helpers-gaL-oSft.js +1 -0
- package/dist/auth-profiles-T8DuH3ax.js +1 -0
- package/dist/auth-token-9OTF1FmL.js +1 -0
- package/dist/auth-token-kGltuM6S.js +1 -0
- package/dist/banner-9u45RL26.js +1 -0
- package/dist/bonjour-discovery-CFZXPega.js +1 -0
- package/dist/bonjour-discovery-CjivQOxi.js +1 -0
- package/dist/boolean-Ch3DfXPy.js +1 -0
- package/dist/boolean-D15s2V33.js +1 -0
- package/dist/boolean-DypnRoRK.js +1 -0
- package/dist/brew-COcDl8CB.js +1 -0
- package/dist/brew-DDPm_HfE.js +1 -0
- package/dist/browser-cli-DQHE2iPY.js +1 -0
- package/dist/browser-cli-Dt0ds-an.js +1 -0
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +1 -0
- package/dist/bundled/bootstrap-extra-files/handler.js +1 -0
- package/dist/bundled/command-logger/handler.js +1 -0
- package/dist/bundled/session-memory/handler.js +1 -0
- package/dist/call-B8Fb4_oh.js +1 -0
- package/dist/call-CqoMqP5b.js +1 -0
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/canvas-host/a2ui/a2ui.bundle.js +1705 -2
- package/dist/channel-account-context-BMPAMZEv.js +1 -0
- package/dist/channel-account-context-DAcarnqW.js +1 -0
- package/dist/channel-activity-B04WbrrK.js +1 -0
- package/dist/channel-activity-BBrgoad1.js +1 -0
- package/dist/channel-activity-CgbOWaay.js +1 -0
- package/dist/channel-activity-YIMhOAUo.js +1 -0
- package/dist/channel-activity-YjYNzCpJ.js +1 -0
- package/dist/channel-options-CEIzjOno.js +1 -0
- package/dist/channel-options-D2syI791.js +1 -0
- package/dist/channel-selection-BBeE1TmB.js +1 -0
- package/dist/channel-selection-CbNtbAEf.js +1 -0
- package/dist/channel-web-BrElpZAc.js +1 -0
- package/dist/channel-web-CxHbET4B.js +1 -0
- package/dist/channels/plugins/actions/discord.js +1 -0
- package/dist/channels/plugins/actions/signal.js +1 -0
- package/dist/channels/plugins/actions/telegram.js +1 -0
- package/dist/channels/plugins/agent-tools/whatsapp-login.js +1 -0
- package/dist/channels-cli-BmAJuuRs.js +1 -0
- package/dist/channels-cli-Dgosczr6.js +1 -0
- package/dist/channels-status-issues-8eFrGKyf.js +1 -0
- package/dist/channels-status-issues-PRgOT90w.js +1 -0
- package/dist/chat-envelope-Bznn2SoS.js +1 -0
- package/dist/chat-envelope-HVpKusFc.js +1 -0
- package/dist/clack-prompter-DBPdGdqp.js +1 -0
- package/dist/clack-prompter-Dq0aY6iM.js +1 -0
- package/dist/clawbot-cli-CgS7TkEx.js +1 -0
- package/dist/clawbot-cli-DZ2K0OTk.js +1 -0
- package/dist/cleanup-utils-BWm70DoD.js +1 -0
- package/dist/cleanup-utils-D-RhEX6F.js +1 -0
- package/dist/cli-BcnoCo4z.js +1 -0
- package/dist/cli-D8T2tphD.js +1 -0
- package/dist/cli-utils-BY7dLMFy.js +1 -0
- package/dist/cli-utils-BleB1eys.js +1 -0
- package/dist/clipboard-Bk8cviBt.js +1 -0
- package/dist/clipboard-CKT_VIkG.js +1 -0
- package/dist/cmd-argv-BBT5l8AV.js +1 -0
- package/dist/cmd-argv-Bh-KpaZ0.js +1 -0
- package/dist/command-format-BbDT1tlm.js +1 -0
- package/dist/command-format-CLxIPuLR.js +1 -0
- package/dist/command-options-BpOUDl2S.js +1 -0
- package/dist/command-options-Bq5nQxz6.js +1 -0
- package/dist/command-poll-backoff-BZLHYB2k.js +1 -0
- package/dist/command-poll-backoff-Cww_r-24.js +1 -0
- package/dist/command-poll-backoff-Df6cOQrX.js +1 -0
- package/dist/command-poll-backoff-endAPdwn.js +1 -0
- package/dist/command-registry-CfuXCRwV.js +1 -0
- package/dist/command-secret-targets-BVN3kiT9.js +1 -0
- package/dist/command-secret-targets-BlN-J_fA.js +1 -0
- package/dist/commands-CGpM84iR.js +1 -0
- package/dist/commands-Dy7duWlt.js +1 -0
- package/dist/commands-registry-B1x54ukc.js +1 -0
- package/dist/commands-registry-Cpl4QnG4.js +1 -0
- package/dist/commands-registry-D40KqYOm.js +1 -0
- package/dist/commands-registry-SeddSmFK.js +1 -0
- package/dist/compact-Dg66DXx_.js +1 -0
- package/dist/completion-cli-BZi4nuQb.js +1 -0
- package/dist/completion-cli-C40TWdsv.js +1 -0
- package/dist/config-BqW5S1xL.js +1 -0
- package/dist/config-D12ZLKqh.js +1 -0
- package/dist/config-cli-1ojSLwAj.js +1 -0
- package/dist/config-cli-CBte2b1h.js +1 -0
- package/dist/config-guard-BTNXbWoO.js +1 -0
- package/dist/config-guard-sYYx9zEF.js +1 -0
- package/dist/config-validation-C1La_IZU.js +1 -0
- package/dist/config-validation-DviYxW8Y.js +1 -0
- package/dist/configure-DJrNDEpR.js +1 -0
- package/dist/configure-kod4tmZa.js +1 -0
- package/dist/connection-auth-B_Uk6Vk8.js +1 -0
- package/dist/connection-auth-C8iru0UB.js +1 -0
- package/dist/context-window-guard-7crlatf9.js +1 -0
- package/dist/context-window-guard-CPChk363.js +1 -0
- package/dist/control-ui-assets-BIa0GGDg.js +1 -0
- package/dist/control-ui-assets-CTHGGgaX.js +1 -0
- package/dist/cron-cli-Dha16Lo-.js +1 -0
- package/dist/cron-cli-QHS2pKZ_.js +1 -0
- package/dist/daemon-cli-BuXTzSnU.js +1 -0
- package/dist/daemon-cli-DOTKuS7d.js +1 -0
- package/dist/daemon-cli.js +1 -0
- package/dist/daemon-install-C30rBssi.js +1 -0
- package/dist/daemon-install-HrqlOCrc.js +1 -0
- package/dist/daemon-install-plan.shared-CfA37Ut_.js +1 -0
- package/dist/daemon-install-plan.shared-Dx3DBXCG.js +1 -0
- package/dist/daemon-runtime-DHiDbRuC.js +1 -0
- package/dist/daemon-runtime-VcpeBRJV.js +1 -0
- package/dist/dangerous-name-matching-BOmvAibz.js +1 -0
- package/dist/dangerous-name-matching-DtllRqBD.js +1 -0
- package/dist/dangerous-tools-CFRYQJ6V.js +1 -0
- package/dist/dangerous-tools-oYCu5wfC.js +1 -0
- package/dist/deliver-56mQkDw3.js +1 -0
- package/dist/deliver-BFQ4Zx9z.js +1 -0
- package/dist/deliver-BHuhHfkH.js +1 -0
- package/dist/deliver-ClBkV2eD.js +1 -0
- package/dist/delivery-queue-CKbauSFq.js +1 -0
- package/dist/delivery-queue-nkPJu0fY.js +1 -0
- package/dist/device-pairing-CTFpaTrD.js +1 -0
- package/dist/device-pairing-QTK0dod3.js +1 -0
- package/dist/devices-cli-Ckxd0k0I.js +1 -0
- package/dist/devices-cli-Db36mBHq.js +1 -0
- package/dist/diagnostic-BrE4lMIf.js +1 -0
- package/dist/diagnostic-CDxNevIQ.js +1 -0
- package/dist/diagnostic-DOzHPnht.js +1 -0
- package/dist/diagnostic-DQq4Bwrs.js +1 -0
- package/dist/diagnostics-BgbeL9KE.js +1 -0
- package/dist/diagnostics-Cdctg9K_.js +1 -0
- package/dist/directory-cli-DDTaUkjW.js +1 -0
- package/dist/directory-cli-_gTFSHMW.js +1 -0
- package/dist/dns-cli--4PwtR2Y.js +1 -0
- package/dist/dns-cli-C4DwKquN.js +1 -0
- package/dist/docs-cli-Cdw9Iz9a.js +1 -0
- package/dist/docs-cli-ClD2UyX1.js +1 -0
- package/dist/doctor-completion-BJ6steqx.js +1 -0
- package/dist/doctor-completion-DMJhfrtC.js +1 -0
- package/dist/doctor-config-flow-D4F3mz4h.js +1 -0
- package/dist/doctor-config-flow-DnOyVZhQ.js +1 -0
- package/dist/enable-BhD84GhD.js +1 -0
- package/dist/enable-Ccf9wSM8.js +1 -0
- package/dist/entry-status-CCwwKO43.js +1 -0
- package/dist/entry-status-CoXkbJcX.js +1 -0
- package/dist/entry.js +1 -0
- package/dist/env-D7wNuBx1.js +1 -0
- package/dist/env-overrides-DHtB4kK3.js +1 -0
- package/dist/env-overrides-DXJbFrwI.js +1 -0
- package/dist/errors-6SQWM9dj.js +1 -0
- package/dist/errors-Bunti32V.js +1 -0
- package/dist/exec-B3eleY5O.js +1 -0
- package/dist/exec-DHqLtFYt.js +1 -0
- package/dist/exec-approvals-BXO9Cezj.js +1 -0
- package/dist/exec-approvals-BpBNEy6i.js +1 -0
- package/dist/exec-approvals-allowlist-CE3nYh0K.js +1 -0
- package/dist/exec-approvals-allowlist-D8mN7nxV.js +1 -0
- package/dist/exec-approvals-cli-CUcuN63y.js +1 -0
- package/dist/exec-approvals-cli-CxUGD08t.js +1 -0
- package/dist/exec-safe-bin-runtime-policy-Dt0GchLp.js +1 -0
- package/dist/exec-safe-bin-runtime-policy-dcCS_Adf.js +1 -0
- package/dist/fetch-B9tORjG8.js +1 -0
- package/dist/fetch-BJT3BrkJ.js +1 -0
- package/dist/fetch-B_wRifvZ.js +1 -0
- package/dist/fetch-Bn0mWg6a.js +1 -0
- package/dist/fetch-CQaNr5J1.js +1 -0
- package/dist/fetch-Ce-scEU-.js +1 -0
- package/dist/fetch-D0rZDHKO.js +1 -0
- package/dist/fetch-DHo17YmK.js +1 -0
- package/dist/fetch-Dh-apy46.js +1 -0
- package/dist/fetch-Dikjvc5M.js +1 -0
- package/dist/fetch-DsjPfQlp.js +1 -0
- package/dist/fetch-_g8lZ8K8.js +1 -0
- package/dist/fetch-guard-BrTtJw7h.js +1 -0
- package/dist/fetch-guard-D10s0raB.js +1 -0
- package/dist/fetch-guard-DPdY0NXR.js +1 -0
- package/dist/fetch-guard-cu7DGSRF.js +1 -0
- package/dist/fetch-hy0JKSsm.js +1 -0
- package/dist/fetch-timeout-CdYxWG9w.js +1 -0
- package/dist/fetch-timeout-Cj8_oAls.js +1 -0
- package/dist/fetch-timeout-DoOI_izT.js +1 -0
- package/dist/fetch-timeout-u8g99Ax0.js +1 -0
- package/dist/format-Bn1bwJKX.js +1 -0
- package/dist/format-Ce7I7s-k.js +1 -0
- package/dist/format-duration-C8AzNqKh.js +1 -0
- package/dist/format-duration-D5AMtmHa.js +1 -0
- package/dist/format-relative-B9pSIdGe.js +1 -0
- package/dist/format-relative-DkMjYy7z.js +1 -0
- package/dist/frontmatter-BkZkwkVO.js +1 -0
- package/dist/frontmatter-C7mzDNxd.js +1 -0
- package/dist/frontmatter-CzpfPBFl.js +1 -0
- package/dist/gateway-cli-CKu0FA7D.js +1 -0
- package/dist/gateway-cli-C_s9eMlC.js +1 -0
- package/dist/gateway-install-token-BCnuZeh1.js +1 -0
- package/dist/gateway-install-token-DiDvDPJQ.js +1 -0
- package/dist/gateway-rpc-iFvDyHYd.js +1 -0
- package/dist/gateway-rpc-tEEvY0kH.js +1 -0
- package/dist/github-copilot-token-C79yeDKS.js +1 -0
- package/dist/github-copilot-token-DGYAlOmV.js +1 -0
- package/dist/github-copilot-token-DePP-lIf.js +1 -0
- package/dist/github-copilot-token-wm6mbypz.js +1 -0
- package/dist/gmail-setup-utils-CYOH3zzx.js +1 -0
- package/dist/gmail-setup-utils-S-MyEGuj.js +1 -0
- package/dist/group-access-BHKVOhrj.js +1 -0
- package/dist/group-access-D2DOYMfr.js +1 -0
- package/dist/health-BgOggK9k.js +1 -0
- package/dist/health-PaRHFItm.js +1 -0
- package/dist/health-format-B1nj3Wfn.js +1 -0
- package/dist/health-format-VBr6LEpt.js +1 -0
- package/dist/heartbeat-visibility-BQ_esv2m.js +1 -0
- package/dist/heartbeat-visibility-q74UdY8O.js +1 -0
- package/dist/help-format-B4aEI7V9.js +1 -0
- package/dist/help-format-BRbF_INg.js +1 -0
- package/dist/helpers-COz1ghcB.js +1 -0
- package/dist/helpers-Cp8gcO6u.js +1 -0
- package/dist/hooks-cli-BzyzTNBx.js +1 -0
- package/dist/hooks-cli-CsBrScq0.js +1 -0
- package/dist/hooks-status-BHt-Xvh4.js +1 -0
- package/dist/hooks-status-CRJ4J0ZW.js +1 -0
- package/dist/image-BkWwI54C.js +1 -0
- package/dist/image-CcVQg-YN.js +1 -0
- package/dist/image-Cm1RUBqD.js +1 -0
- package/dist/image-DsoO5VP5.js +1 -0
- package/dist/index.js +1 -0
- package/dist/inspect-BKV-I1UE.js +1 -0
- package/dist/inspect-z59cgmYc.js +1 -0
- package/dist/install-safe-path-C6kc_8NW.js +1 -0
- package/dist/install-safe-path-iesxijn2.js +1 -0
- package/dist/installs-BNeI_oML.js +1 -0
- package/dist/installs-C1xQLuby.js +1 -0
- package/dist/ipv4-BOuNtoGn.js +1 -0
- package/dist/ipv4-CWdaEiVH.js +1 -0
- package/dist/ir-BF0M2kGp.js +1 -0
- package/dist/ir-D8Hh84ab.js +1 -0
- package/dist/ir-DBWscfBd.js +1 -0
- package/dist/ir-Dk7OQ4bA.js +1 -0
- package/dist/is-main-DG5ueqhF.js +1 -0
- package/dist/issue-format-BT7cQEt3.js +1 -0
- package/dist/issue-format-C_lNzrKa.js +1 -0
- package/dist/kill-tree-B3g7HrAO.js +1 -0
- package/dist/lifecycle-core-D9KNCvxY.js +1 -0
- package/dist/lifecycle-core-LM5UUUB1.js +1 -0
- package/dist/line/accounts.js +1 -0
- package/dist/line/send.js +1 -0
- package/dist/line/template-messages.js +1 -0
- package/dist/links-CBnmRP9D.js +1 -0
- package/dist/links-CySwdMcF.js +1 -0
- package/dist/llm-slug-generator.js +1 -0
- package/dist/load-options-BsOW74dp.js +1 -0
- package/dist/load-options-C7dLuybp.js +1 -0
- package/dist/load-options-DV4j6Aqb.js +1 -0
- package/dist/load-options-Dwt0CeEg.js +1 -0
- package/dist/local-roots-6waH0SZ0.js +1 -0
- package/dist/logger-5W0OocJW.js +1 -0
- package/dist/logger-Bl8URnrW.js +1 -0
- package/dist/logger-DwWqfo66.js +1 -0
- package/dist/logger-kQAOe3qp.js +1 -0
- package/dist/logging-Dqe9dxSX.js +1 -0
- package/dist/logging-tYw1NbJd.js +1 -0
- package/dist/login-BOlqRyr0.js +1 -0
- package/dist/login-CkWesqf_.js +1 -0
- package/dist/login-Do_NA1Je.js +1 -0
- package/dist/login-op9S8yqv.js +1 -0
- package/dist/login-qr-B6rxvoTS.js +1 -0
- package/dist/login-qr-BGH9zmhw.js +1 -0
- package/dist/login-qr-CiENvgog.js +1 -0
- package/dist/login-qr-DsV-lxFd.js +1 -0
- package/dist/login-qr-QcDMg23y.js +1 -0
- package/dist/logs-cli-B4eUg_87.js +1 -0
- package/dist/logs-cli-BA3Aso8a.js +1 -0
- package/dist/manager-4Y9fRgdw.js +1 -0
- package/dist/manager-C2YW7Hkq.js +1 -0
- package/dist/manager-Dtd_loL8.js +1 -0
- package/dist/manager-M1GKhLUC.js +1 -0
- package/dist/memory-cli-XaxtBQm1.js +1 -0
- package/dist/memory-cli-jhzJ3as7.js +1 -0
- package/dist/model-catalog-C1kpjR75.js +1 -0
- package/dist/model-catalog-COVzoZD9.js +1 -0
- package/dist/model-param-b-B0r2cPDw.js +1 -0
- package/dist/model-param-b-BqIr5rY5.js +1 -0
- package/dist/model-picker-D3ZSpr0i.js +1 -0
- package/dist/model-picker-bZNuI66U.js +1 -0
- package/dist/model-selection-B5JsBS9D.js +1 -0
- package/dist/model-selection-BlC_rXAN.js +1 -0
- package/dist/model-selection-vfhBuN9O.js +1 -0
- package/dist/models-C_Vg3Cty.js +1 -0
- package/dist/models-cli-CDZliTXq.js +1 -0
- package/dist/models-cli-bGr8jwAb.js +1 -0
- package/dist/models-config-CdMhNxKV.js +1 -0
- package/dist/models-config-_htt7eY5.js +1 -0
- package/dist/mutable-allowlist-detectors-C4rNVag8.js +1 -0
- package/dist/mutable-allowlist-detectors-CL0qe54J.js +1 -0
- package/dist/node-cli-5lYbDZ70.js +1 -0
- package/dist/node-cli-Br04Qmqo.js +1 -0
- package/dist/node-command-policy-CejeQemH.js +1 -0
- package/dist/node-command-policy-CqXhdnHh.js +1 -0
- package/dist/node-commands-8GBOiktk.js +1 -0
- package/dist/node-commands-DdkziOTx.js +1 -0
- package/dist/node-resolve-B3BJbmQX.js +1 -0
- package/dist/node-resolve-DLZf3-1V.js +1 -0
- package/dist/node-service-BRfrNp8l.js +1 -0
- package/dist/node-service-C0bl7jcZ.js +1 -0
- package/dist/node-shell-DyOfwHrh.js +1 -0
- package/dist/nodes-cli-8By8--bW.js +1 -0
- package/dist/nodes-cli-zq41EwJN.js +1 -0
- package/dist/nodes-screen-DECgxo6A.js +1 -0
- package/dist/note-D4GAwgha.js +1 -0
- package/dist/note-Dp-d_utk.js +1 -0
- package/dist/npm-pack-install-B23L-AtF.js +1 -0
- package/dist/npm-pack-install-C0te3Oap.js +1 -0
- package/dist/npm-resolution-BnJGLwhi.js +1 -0
- package/dist/npm-resolution-DWPloph4.js +1 -0
- package/dist/oauth-env-DAamJ1oz.js +1 -0
- package/dist/oauth-env-DSLBTWb1.js +1 -0
- package/dist/oauth-tls-preflight-BSBRDIfC.js +1 -0
- package/dist/oauth-tls-preflight-ByNjbUR5.js +1 -0
- package/dist/ollama-setup-BMEKWyIE.js +1 -0
- package/dist/ollama-setup-DlwS6Gl-.js +1 -0
- package/dist/onboard-B0BNCQaO.js +1 -0
- package/dist/onboard-CjVhdaiR.js +1 -0
- package/dist/onboard-channels-BMIOddLN.js +1 -0
- package/dist/onboard-channels-CZK_7xMR.js +1 -0
- package/dist/onboard-config-B7U20YRw.js +1 -0
- package/dist/onboard-config-DS9dUv8M.js +1 -0
- package/dist/onboard-custom-B03SlEHB.js +1 -0
- package/dist/onboard-custom-Bl0y8c-g.js +1 -0
- package/dist/onboard-helpers-PGl5bVPE.js +1 -0
- package/dist/onboard-helpers-zwybUJWu.js +1 -0
- package/dist/onboard-hooks-CERzXObm.js +1 -0
- package/dist/onboard-hooks-gQ3sxBNi.js +1 -0
- package/dist/onboard-provider-auth-flags-CqbipO7D.js +1 -0
- package/dist/onboard-provider-auth-flags-Dvwzdz37.js +1 -0
- package/dist/onboard-remote-BOpIRdDu.js +1 -0
- package/dist/onboard-remote-DPU-H_2O.js +1 -0
- package/dist/onboard-search-f2tJD4hg.js +1 -0
- package/dist/onboard-search-fslKKhyg.js +1 -0
- package/dist/onboard-skills-BMAJs6ly.js +1 -0
- package/dist/onboard-skills-CMSQc2Mm.js +1 -0
- package/dist/onboarding-B6ixWwgp.js +1 -0
- package/dist/onboarding-ouEqUuUr.js +1 -0
- package/dist/onboarding.finalize-Bgat5Npc.js +1 -0
- package/dist/onboarding.finalize-DsMVlTcH.js +1 -0
- package/dist/onboarding.gateway-config-BtLDJWJ2.js +1 -0
- package/dist/onboarding.gateway-config-y3pqsL9i.js +1 -0
- package/dist/onboarding.secret-input-BsBgh8Tc.js +1 -0
- package/dist/onboarding.secret-input-kO5OzYC7.js +1 -0
- package/dist/openai-codex-model-default-DuE2_wN7.js +1 -0
- package/dist/openai-codex-model-default-yVfRw-Mm.js +1 -0
- package/dist/openai-model-default-Bl8MHPb6.js +1 -0
- package/dist/openai-model-default-DJObMvLJ.js +1 -0
- package/dist/openclaw-exec-env-BWbOu_YC.js +1 -0
- package/dist/openclaw-root-CnsBf6ZU.js +1 -0
- package/dist/openclaw-root-D_0Q6--h.js +1 -0
- package/dist/outbound-BOSIEiEY.js +1 -0
- package/dist/outbound-BtUeDLjU.js +1 -0
- package/dist/outbound-Bx2Z2aYK.js +1 -0
- package/dist/outbound-Bz8bbrMI.js +1 -0
- package/dist/outbound-attachment-B7wMxwj6.js +1 -0
- package/dist/outbound-attachment-BgAe99RM.js +1 -0
- package/dist/outbound-attachment-Dds8xirj.js +1 -0
- package/dist/outbound-attachment-DqEKghQp.js +1 -0
- package/dist/pairing-cli-Bya9M-I_.js +1 -0
- package/dist/pairing-cli-D2JEhufv.js +1 -0
- package/dist/pairing-labels-BUU_-70B.js +1 -0
- package/dist/pairing-labels-D-kzQEL2.js +1 -0
- package/dist/pairing-store-BH-FTYkn.js +1 -0
- package/dist/pairing-store-Cg2UxreQ.js +1 -0
- package/dist/pairing-token-BjYBuREl.js +1 -0
- package/dist/pairing-token-DAR7V7FJ.js +1 -0
- package/dist/parse-duration-XTjMKl8s.js +1 -0
- package/dist/parse-finite-number-DqzUM-_s.js +1 -0
- package/dist/parse-finite-number-dBmDLLKL.js +1 -0
- package/dist/parse-log-line-CsYLg7Qu.js +1 -0
- package/dist/parse-log-line-NV-cipB_.js +1 -0
- package/dist/parse-port-Bv1Y9Wk5.js +1 -0
- package/dist/parse-port-JVwkxcZ8.js +1 -0
- package/dist/parse-timeout-DWSGfCkQ.js +1 -0
- package/dist/parse-timeout-Dx4QnVzo.js +1 -0
- package/dist/path-alias-guards-kY_ZbWs-.js +1 -0
- package/dist/path-alias-guards-mvyLCPlN.js +1 -0
- package/dist/path-env-BPd1Yd-i.js +1 -0
- package/dist/path-env-emdAQejM.js +1 -0
- package/dist/path-safety-BukYK8Kd.js +1 -0
- package/dist/path-safety-DaaMJFdt.js +1 -0
- package/dist/paths-B4IRk3wi.js +1 -0
- package/dist/paths-BfjJY2VL.js +1 -0
- package/dist/paths-BjD3T_xq.js +1 -0
- package/dist/paths-BpQOWYiT.js +1 -0
- package/dist/paths-CChBdtE8.js +1 -0
- package/dist/paths-CrCoPIVK.js +1 -0
- package/dist/paths-piJASC5k.js +1 -0
- package/dist/paths-yLEk_25I.js +1 -0
- package/dist/pi-embedded-BZSn84Bh.js +1 -0
- package/dist/pi-embedded-Dsz7p3MF.js +1 -0
- package/dist/pi-model-discovery-BbD1YJNx.js +1 -0
- package/dist/pi-model-discovery-CpjYoBQf.js +1 -0
- package/dist/pi-model-discovery-DeQdHV8O.js +1 -0
- package/dist/pi-model-discovery-Dps1PPWz.js +1 -0
- package/dist/pi-tools.before-tool-call.runtime-DseAq0gm.js +1 -0
- package/dist/pi-tools.before-tool-call.runtime-KKGILAuK.js +1 -0
- package/dist/pi-tools.before-tool-call.runtime-Pck2WdIO.js +1 -0
- package/dist/pi-tools.before-tool-call.runtime-ZzMJQ1BP.js +1 -0
- package/dist/pi-tools.policy-D40r0HmD.js +1 -0
- package/dist/plugin-auto-enable-DpVL6-ES.js +1 -0
- package/dist/plugin-auto-enable-NzmNh4oU.js +1 -0
- package/dist/plugin-install-plan-BobX0y9S.js +1 -0
- package/dist/plugin-install-plan-NvDGp0d8.js +1 -0
- package/dist/plugin-registry-C6dY-Et7.js +1 -0
- package/dist/plugin-registry-CIBiHZH1.js +1 -0
- package/dist/plugin-sdk/account-id.cjs +1 -0
- package/dist/plugin-sdk/account-id.js +1 -0
- package/dist/plugin-sdk/acpx.cjs +1 -0
- package/dist/plugin-sdk/acpx.js +1 -0
- package/dist/plugin-sdk/active-listener-BApFQlQn.js +1 -0
- package/dist/plugin-sdk/active-listener-BETopzG5.cjs +1 -0
- package/dist/plugin-sdk/active-listener-BEcmvyxh.cjs +1 -0
- package/dist/plugin-sdk/active-listener-BZPPbsNy.cjs +1 -0
- package/dist/plugin-sdk/active-listener-B_Mxemq7.cjs +1 -0
- package/dist/plugin-sdk/active-listener-BgW_qfd3.js +1 -0
- package/dist/plugin-sdk/active-listener-Coet66pF.cjs +1 -0
- package/dist/plugin-sdk/active-listener-CvML9qVF.js +1 -0
- package/dist/plugin-sdk/active-listener-DuO6KMXJ.js +1 -0
- package/dist/plugin-sdk/active-listener-DymzfmOG.cjs +1 -0
- package/dist/plugin-sdk/active-listener-ILBdBHMv.js +1 -0
- package/dist/plugin-sdk/active-listener-gRRIfN1q.js +1 -0
- package/dist/plugin-sdk/api-key-rotation-Bj1A9Slo.cjs +1 -0
- package/dist/plugin-sdk/api-key-rotation-CFPNzksf.cjs +1 -0
- package/dist/plugin-sdk/api-key-rotation-CXY0AyM1.js +1 -0
- package/dist/plugin-sdk/api-key-rotation-ClIwV8yq.js +1 -0
- package/dist/plugin-sdk/api-key-rotation-D5Nr1xl3.js +1 -0
- package/dist/plugin-sdk/api-key-rotation-DDCwA0KM.cjs +1 -0
- package/dist/plugin-sdk/api-key-rotation-DHMvXm70.cjs +1 -0
- package/dist/plugin-sdk/api-key-rotation-DaFFZfk5.js +1 -0
- package/dist/plugin-sdk/api-key-rotation-DcREl_0x.js +1 -0
- package/dist/plugin-sdk/api-key-rotation-X-5Fb7av.cjs +1 -0
- package/dist/plugin-sdk/api-key-rotation-_VfXYfHS.js +1 -0
- package/dist/plugin-sdk/api-key-rotation-wFUVOOfM.cjs +1 -0
- package/dist/plugin-sdk/audio-preflight-B1MP5_bc.cjs +1 -0
- package/dist/plugin-sdk/audio-preflight-BETx142T.cjs +1 -0
- package/dist/plugin-sdk/audio-preflight-BGRLhCLc.cjs +1 -0
- package/dist/plugin-sdk/audio-preflight-BNICfOY5.cjs +1 -0
- package/dist/plugin-sdk/audio-preflight-BV3Cav8M.js +1 -0
- package/dist/plugin-sdk/audio-preflight-BmO72Cqr.cjs +1 -0
- package/dist/plugin-sdk/audio-preflight-BpE8wFQc.js +1 -0
- package/dist/plugin-sdk/audio-preflight-CTAafaiH.js +1 -0
- package/dist/plugin-sdk/audio-preflight-D82aewIt.js +1 -0
- package/dist/plugin-sdk/audio-preflight-DmzxEaq3.cjs +1 -0
- package/dist/plugin-sdk/audio-preflight-DrSIYRnD.js +1 -0
- package/dist/plugin-sdk/audio-preflight-SZZoA2Ff.js +1 -0
- package/dist/plugin-sdk/audio-transcription-runner-B54MyF1_.js +1 -0
- package/dist/plugin-sdk/audio-transcription-runner-BIqM5H5q.js +1 -0
- package/dist/plugin-sdk/audio-transcription-runner-BLAxZL-U.js +1 -0
- package/dist/plugin-sdk/audio-transcription-runner-BVmaaA2k.js +1 -0
- package/dist/plugin-sdk/audio-transcription-runner-BdY-TMcc.js +1 -0
- package/dist/plugin-sdk/audio-transcription-runner-By3lSLub.cjs +1 -0
- package/dist/plugin-sdk/audio-transcription-runner-CH5CoZrF.cjs +1 -0
- package/dist/plugin-sdk/audio-transcription-runner-CMsp7bhn.cjs +1 -0
- package/dist/plugin-sdk/audio-transcription-runner-ClGibmMi.cjs +1 -0
- package/dist/plugin-sdk/audio-transcription-runner-QfEC19vE.cjs +1 -0
- package/dist/plugin-sdk/audio-transcription-runner-g7L0m-Z5.cjs +1 -0
- package/dist/plugin-sdk/audio-transcription-runner-pVTD93vq.js +1 -0
- package/dist/plugin-sdk/audit-membership-runtime-7LqcvqFo.js +1 -0
- package/dist/plugin-sdk/audit-membership-runtime-BQFUzFc0.cjs +1 -0
- package/dist/plugin-sdk/audit-membership-runtime-BYtdDX9G.cjs +1 -0
- package/dist/plugin-sdk/audit-membership-runtime-BzEtBUX6.cjs +1 -0
- package/dist/plugin-sdk/audit-membership-runtime-CBUmGrl4.js +1 -0
- package/dist/plugin-sdk/audit-membership-runtime-ChlVgt2y.js +1 -0
- package/dist/plugin-sdk/audit-membership-runtime-DLRX7LR0.js +1 -0
- package/dist/plugin-sdk/audit-membership-runtime-DbJW5X3L.cjs +1 -0
- package/dist/plugin-sdk/audit-membership-runtime-Du9LAxDa.cjs +1 -0
- package/dist/plugin-sdk/audit-membership-runtime-DylNnj1m.js +1 -0
- package/dist/plugin-sdk/audit-membership-runtime-voi5sPwF.js +1 -0
- package/dist/plugin-sdk/audit-membership-runtime-yWYvSpgZ.cjs +1 -0
- package/dist/plugin-sdk/bluebubbles.cjs +1 -0
- package/dist/plugin-sdk/bluebubbles.js +1 -0
- package/dist/plugin-sdk/channel-activity-BGK-Bj2_.cjs +1 -0
- package/dist/plugin-sdk/channel-activity-BRHvpV0C.js +1 -0
- package/dist/plugin-sdk/channel-activity-CKfWFchu.js +1 -0
- package/dist/plugin-sdk/channel-activity-CLUi31fX.cjs +1 -0
- package/dist/plugin-sdk/channel-activity-CVOp-PL4.cjs +1 -0
- package/dist/plugin-sdk/channel-activity-CgXnZ0GC.cjs +1 -0
- package/dist/plugin-sdk/channel-activity-CmYpOPAn.js +1 -0
- package/dist/plugin-sdk/channel-activity-CwaMf9qT.cjs +1 -0
- package/dist/plugin-sdk/channel-activity-D5D5tBWf.cjs +1 -0
- package/dist/plugin-sdk/channel-activity-D7tpmatp.js +1 -0
- package/dist/plugin-sdk/channel-activity-DpxSOlXF.js +1 -0
- package/dist/plugin-sdk/channel-activity-spvDzlTl.js +1 -0
- package/dist/plugin-sdk/channel-web-4ZQVqsrt.js +1 -0
- package/dist/plugin-sdk/channel-web-9zn1Itpg.cjs +1 -0
- package/dist/plugin-sdk/channel-web-BrB00HKH.js +1 -0
- package/dist/plugin-sdk/channel-web-DN5La-Ol.cjs +1 -0
- package/dist/plugin-sdk/command-poll-backoff-4910Mpwp.js +1 -0
- package/dist/plugin-sdk/command-poll-backoff-BLJZzV5W.cjs +1 -0
- package/dist/plugin-sdk/command-poll-backoff-CUNcN0dv.cjs +1 -0
- package/dist/plugin-sdk/command-poll-backoff-Cww_r-24.js +1 -0
- package/dist/plugin-sdk/command-poll-backoff-D0lJhquZ.js +1 -0
- package/dist/plugin-sdk/command-poll-backoff-Glwt3wHa.cjs +1 -0
- package/dist/plugin-sdk/commands-registry-5lStNoKW.cjs +1 -0
- package/dist/plugin-sdk/commands-registry-C8wnXqNa.cjs +1 -0
- package/dist/plugin-sdk/commands-registry-Cnr6PvIw.js +1 -0
- package/dist/plugin-sdk/commands-registry-CtYCWfuM.cjs +1 -0
- package/dist/plugin-sdk/commands-registry-D2gv242l.js +1 -0
- package/dist/plugin-sdk/commands-registry-DI2vPscP.js +1 -0
- package/dist/plugin-sdk/commands-registry-DcBvmwSU.js +1 -0
- package/dist/plugin-sdk/commands-registry-DkUhCIDk.cjs +1 -0
- package/dist/plugin-sdk/commands-registry-DsMbmie-.cjs +1 -0
- package/dist/plugin-sdk/commands-registry-MCsWR5Vf.js +1 -0
- package/dist/plugin-sdk/commands-registry-SHZVq_qf.cjs +1 -0
- package/dist/plugin-sdk/commands-registry-kRjFifgj.js +1 -0
- package/dist/plugin-sdk/common-B4iFXuoZ.cjs +1 -0
- package/dist/plugin-sdk/common-B6fDMl_i.js +1 -0
- package/dist/plugin-sdk/compat.cjs +1 -0
- package/dist/plugin-sdk/compat.js +1 -0
- package/dist/plugin-sdk/config-ByA2hluR.js +1 -0
- package/dist/plugin-sdk/config-rBz8C_Hi.cjs +1 -0
- package/dist/plugin-sdk/copilot-proxy.cjs +1 -0
- package/dist/plugin-sdk/copilot-proxy.js +1 -0
- package/dist/plugin-sdk/core.cjs +1 -0
- package/dist/plugin-sdk/core.js +1 -0
- package/dist/plugin-sdk/deliver-B0fB4hAV.js +1 -0
- package/dist/plugin-sdk/deliver-BOLmjIJ3.js +1 -0
- package/dist/plugin-sdk/deliver-BrfVwkYz.cjs +1 -0
- package/dist/plugin-sdk/deliver-C-tChWTI.cjs +1 -0
- package/dist/plugin-sdk/deliver-CjQPkWS-.cjs +1 -0
- package/dist/plugin-sdk/deliver-D1P0FNTu.js +1 -0
- package/dist/plugin-sdk/deliver-DCrO9mvv.cjs +1 -0
- package/dist/plugin-sdk/deliver-DQLekoj2.cjs +1 -0
- package/dist/plugin-sdk/deliver-DkfCVM78.js +1 -0
- package/dist/plugin-sdk/deliver-Dkh3lqXR.js +1 -0
- package/dist/plugin-sdk/deliver-DsFtXFyr.cjs +1 -0
- package/dist/plugin-sdk/deliver-vYe_sYOL.js +1 -0
- package/dist/plugin-sdk/device-pair.cjs +1 -0
- package/dist/plugin-sdk/device-pair.js +1 -0
- package/dist/plugin-sdk/diagnostic-8iX73nz_.cjs +1 -0
- package/dist/plugin-sdk/diagnostic-CLUtpxAp.js +1 -0
- package/dist/plugin-sdk/diagnostic-CVS4k9hh.cjs +1 -0
- package/dist/plugin-sdk/diagnostic-CkePwN5F.js +1 -0
- package/dist/plugin-sdk/diagnostic-Cu1PGj0E.cjs +1 -0
- package/dist/plugin-sdk/diagnostic-D0oCfBju.cjs +1 -0
- package/dist/plugin-sdk/diagnostic-D7A9cQYf.cjs +1 -0
- package/dist/plugin-sdk/diagnostic-DGLX0zXU.js +1 -0
- package/dist/plugin-sdk/diagnostic-DXscFT8t.cjs +1 -0
- package/dist/plugin-sdk/diagnostic-Efe4b81B.js +1 -0
- package/dist/plugin-sdk/diagnostic-EqHqw9xo.js +1 -0
- package/dist/plugin-sdk/diagnostic-vsjHZ_fY.js +1 -0
- package/dist/plugin-sdk/diagnostics-otel.cjs +1 -0
- package/dist/plugin-sdk/diagnostics-otel.js +1 -0
- package/dist/plugin-sdk/diffs.cjs +1 -0
- package/dist/plugin-sdk/diffs.js +1 -0
- package/dist/plugin-sdk/discord.cjs +1 -0
- package/dist/plugin-sdk/discord.js +1 -0
- package/dist/plugin-sdk/dispatch-5v3v8zzA.js +1 -0
- package/dist/plugin-sdk/dispatch-B6UbZCpL.cjs +1 -0
- package/dist/plugin-sdk/dispatch-BYlcmJ9u.js +1 -0
- package/dist/plugin-sdk/dispatch-C2YTqGlf.js +1 -0
- package/dist/plugin-sdk/dispatch-CNy3g9ma.cjs +1 -0
- package/dist/plugin-sdk/dispatch-DCSwqteL.js +1 -0
- package/dist/plugin-sdk/dispatch-DHbSBeFJ.js +1 -0
- package/dist/plugin-sdk/dispatch-DK5ub8qa.cjs +1 -0
- package/dist/plugin-sdk/dispatch-SWyfAZT0.cjs +1 -0
- package/dist/plugin-sdk/dispatch-mR2vLkGa.cjs +1 -0
- package/dist/plugin-sdk/feishu.cjs +1 -0
- package/dist/plugin-sdk/feishu.js +1 -0
- package/dist/plugin-sdk/fetch-7Iq9POda.js +1 -0
- package/dist/plugin-sdk/fetch-B1GR6-u4.js +1 -0
- package/dist/plugin-sdk/fetch-B27H-XCf.js +1 -0
- package/dist/plugin-sdk/fetch-BMYDLRWo.js +1 -0
- package/dist/plugin-sdk/fetch-BN9y3kTg.cjs +1 -0
- package/dist/plugin-sdk/fetch-BVEVk5YF.js +1 -0
- package/dist/plugin-sdk/fetch-BY6lVRlY.cjs +1 -0
- package/dist/plugin-sdk/fetch-Bi8krAaT.cjs +1 -0
- package/dist/plugin-sdk/fetch-BjXhwqrE.cjs +1 -0
- package/dist/plugin-sdk/fetch-BtZY623f.js +1 -0
- package/dist/plugin-sdk/fetch-C-HRWp5R.js +1 -0
- package/dist/plugin-sdk/fetch-C3LEMysf.js +1 -0
- package/dist/plugin-sdk/fetch-CCLWsYaQ.js +1 -0
- package/dist/plugin-sdk/fetch-CZewCAvu.cjs +1 -0
- package/dist/plugin-sdk/fetch-ClKErpni.cjs +1 -0
- package/dist/plugin-sdk/fetch-DBRI0sKI.js +1 -0
- package/dist/plugin-sdk/fetch-DQxuOB8o.cjs +1 -0
- package/dist/plugin-sdk/fetch-DUMEaqum.cjs +1 -0
- package/dist/plugin-sdk/fetch-DpwR_cJU.cjs +1 -0
- package/dist/plugin-sdk/fetch-J0IzopiJ.js +1 -0
- package/dist/plugin-sdk/fetch-guard-8I7EHbDM.cjs +1 -0
- package/dist/plugin-sdk/fetch-guard-CIJUkBIL.cjs +1 -0
- package/dist/plugin-sdk/fetch-guard-CY03i4gu.js +1 -0
- package/dist/plugin-sdk/fetch-guard-Cz-cgYmR.cjs +1 -0
- package/dist/plugin-sdk/fetch-guard-DB85MORy.cjs +1 -0
- package/dist/plugin-sdk/fetch-guard-DE9BslxX.js +1 -0
- package/dist/plugin-sdk/fetch-guard-DLNzldn9.cjs +1 -0
- package/dist/plugin-sdk/fetch-guard-DSvAbvSx.js +1 -0
- package/dist/plugin-sdk/fetch-guard-DXe8oqEE.js +1 -0
- package/dist/plugin-sdk/fetch-guard-DY9jpsXo.cjs +1 -0
- package/dist/plugin-sdk/fetch-guard-DbOZYxyN.js +1 -0
- package/dist/plugin-sdk/fetch-guard-_fifU0fX.js +1 -0
- package/dist/plugin-sdk/fetch-lw-aF17e.cjs +1 -0
- package/dist/plugin-sdk/fetch-timeout-6oZsqWxA.js +1 -0
- package/dist/plugin-sdk/fetch-timeout-BygUD0rd.cjs +1 -0
- package/dist/plugin-sdk/fetch-timeout-CLw1U7VS.js +1 -0
- package/dist/plugin-sdk/fetch-timeout-CX1w-9p4.cjs +1 -0
- package/dist/plugin-sdk/fetch-timeout-Coc9xyC3.cjs +1 -0
- package/dist/plugin-sdk/fetch-timeout-Cz6GuU_c.js +1 -0
- package/dist/plugin-sdk/fetch-timeout-DC8T2JCr.js +1 -0
- package/dist/plugin-sdk/fetch-timeout-DFDmks9T.cjs +1 -0
- package/dist/plugin-sdk/fetch-timeout-DkYpp08Q.js +1 -0
- package/dist/plugin-sdk/github-copilot-token-BHdMLLqf.cjs +1 -0
- package/dist/plugin-sdk/github-copilot-token-Bt4PduRB.js +1 -0
- package/dist/plugin-sdk/github-copilot-token-C1O2cBqk.cjs +1 -0
- package/dist/plugin-sdk/github-copilot-token-C1hiDugd.js +1 -0
- package/dist/plugin-sdk/github-copilot-token-C8j8_NjX.js +1 -0
- package/dist/plugin-sdk/github-copilot-token-CCrgp2py.cjs +1 -0
- package/dist/plugin-sdk/github-copilot-token-DoHgkI2r.cjs +1 -0
- package/dist/plugin-sdk/github-copilot-token-N8vnLZPw.js +1 -0
- package/dist/plugin-sdk/github-copilot-token-TMkfxxD2.cjs +1 -0
- package/dist/plugin-sdk/github-copilot-token-vKAKX6iE.js +1 -0
- package/dist/plugin-sdk/github-copilot-token-ylX_gawo.js +1 -0
- package/dist/plugin-sdk/github-copilot-token-zskwAEpd.cjs +1 -0
- package/dist/plugin-sdk/google-gemini-cli-auth.cjs +1 -0
- package/dist/plugin-sdk/google-gemini-cli-auth.js +1 -0
- package/dist/plugin-sdk/googlechat.cjs +1 -0
- package/dist/plugin-sdk/googlechat.js +1 -0
- package/dist/plugin-sdk/image-B6HEHWlJ.js +1 -0
- package/dist/plugin-sdk/image-Bte8cr4F.js +1 -0
- package/dist/plugin-sdk/image-BxafJgQ6.cjs +1 -0
- package/dist/plugin-sdk/image-CDI5SqeR.js +1 -0
- package/dist/plugin-sdk/image-CTgwucug.cjs +1 -0
- package/dist/plugin-sdk/image-CWnsS03L.js +1 -0
- package/dist/plugin-sdk/image-CoksjGBL.cjs +1 -0
- package/dist/plugin-sdk/image-CuOIoxl2.cjs +1 -0
- package/dist/plugin-sdk/image-DJyEMzkq.cjs +1 -0
- package/dist/plugin-sdk/image-DegWnAZU.cjs +1 -0
- package/dist/plugin-sdk/image-TCSQZpr6.js +1 -0
- package/dist/plugin-sdk/image-aG-5S1vd.js +1 -0
- package/dist/plugin-sdk/imessage.cjs +1 -0
- package/dist/plugin-sdk/imessage.js +1 -0
- package/dist/plugin-sdk/index.cjs +1 -0
- package/dist/plugin-sdk/index.js +1 -0
- package/dist/plugin-sdk/ir-8rDh7div.js +1 -0
- package/dist/plugin-sdk/ir-Bh6lKGdS.js +1 -0
- package/dist/plugin-sdk/ir-C3VNqnc2.cjs +1 -0
- package/dist/plugin-sdk/ir-CZOtKajq.cjs +1 -0
- package/dist/plugin-sdk/ir-CveCWs8q.cjs +1 -0
- package/dist/plugin-sdk/ir-DAxY-7c1.cjs +1 -0
- package/dist/plugin-sdk/ir-DSuLr2UE.cjs +1 -0
- package/dist/plugin-sdk/ir-DanxCjD-.cjs +1 -0
- package/dist/plugin-sdk/ir-Dgc6qZMX.js +1 -0
- package/dist/plugin-sdk/ir-OBi5zaEW.js +1 -0
- package/dist/plugin-sdk/ir-hQ6EW92h.js +1 -0
- package/dist/plugin-sdk/ir-ynWQeZD9.js +1 -0
- package/dist/plugin-sdk/irc.cjs +1 -0
- package/dist/plugin-sdk/irc.js +1 -0
- package/dist/plugin-sdk/keyed-async-queue.cjs +1 -0
- package/dist/plugin-sdk/keyed-async-queue.js +1 -0
- package/dist/plugin-sdk/line.cjs +1 -0
- package/dist/plugin-sdk/line.js +1 -0
- package/dist/plugin-sdk/llm-task.cjs +1 -0
- package/dist/plugin-sdk/llm-task.js +1 -0
- package/dist/plugin-sdk/load-options-B9Ss5YOO.js +1 -0
- package/dist/plugin-sdk/load-options-BOfn6Zgo.cjs +1 -0
- package/dist/plugin-sdk/load-options-BXvm8HVv.js +1 -0
- package/dist/plugin-sdk/load-options-Bb7u8yZz.cjs +1 -0
- package/dist/plugin-sdk/load-options-BcSg1ODN.js +1 -0
- package/dist/plugin-sdk/load-options-NqnXJ-Nh.cjs +1 -0
- package/dist/plugin-sdk/lobster.cjs +1 -0
- package/dist/plugin-sdk/lobster.js +1 -0
- package/dist/plugin-sdk/local-roots-5udQUs81.js +1 -0
- package/dist/plugin-sdk/local-roots-BmhNPIJm.cjs +1 -0
- package/dist/plugin-sdk/local-roots-C5UoE741.cjs +1 -0
- package/dist/plugin-sdk/local-roots-Ca8KoAAp.js +1 -0
- package/dist/plugin-sdk/local-roots-CeAYfmPb.cjs +1 -0
- package/dist/plugin-sdk/local-roots-Cu7YCpql.cjs +1 -0
- package/dist/plugin-sdk/local-roots-D0yN794S.js +1 -0
- package/dist/plugin-sdk/local-roots-D4i3H0UG.cjs +1 -0
- package/dist/plugin-sdk/local-roots-DGe-SRNu.js +1 -0
- package/dist/plugin-sdk/local-roots-bWA2msT0.js +1 -0
- package/dist/plugin-sdk/local-roots-tee85Q-1.js +1 -0
- package/dist/plugin-sdk/local-roots-wTkpE7go.cjs +1 -0
- package/dist/plugin-sdk/logger-6O6OsYBL.cjs +1 -0
- package/dist/plugin-sdk/logger-BlddiV_d.cjs +1 -0
- package/dist/plugin-sdk/logger-Bm93ZKOk.cjs +1 -0
- package/dist/plugin-sdk/logger-BtrWb0dj.js +1 -0
- package/dist/plugin-sdk/logger-C210xuWx.js +1 -0
- package/dist/plugin-sdk/logger-DJGHvDbX.js +1 -0
- package/dist/plugin-sdk/logger-DPlqYkRm.cjs +1 -0
- package/dist/plugin-sdk/logger-DUYnS-W3.cjs +1 -0
- package/dist/plugin-sdk/logger-DwWqfo66.js +1 -0
- package/dist/plugin-sdk/logger-vBDTZWl3.js +1 -0
- package/dist/plugin-sdk/login-B5IwNcl4.cjs +1 -0
- package/dist/plugin-sdk/login-BIbt7ZL_.js +1 -0
- package/dist/plugin-sdk/login-CxnDKwXC.js +1 -0
- package/dist/plugin-sdk/login-D5iTWowo.cjs +1 -0
- package/dist/plugin-sdk/login-DHE1rzB1.js +1 -0
- package/dist/plugin-sdk/login-DIPBcPQc.cjs +1 -0
- package/dist/plugin-sdk/login-DtDOozuU.js +1 -0
- package/dist/plugin-sdk/login-UrWNtI80.cjs +1 -0
- package/dist/plugin-sdk/login-VviMkBU2.js +1 -0
- package/dist/plugin-sdk/login-jQwwt6C-.js +1 -0
- package/dist/plugin-sdk/login-mGjCzJzb.cjs +1 -0
- package/dist/plugin-sdk/login-pZnnpj38.cjs +1 -0
- package/dist/plugin-sdk/login-qr-BexuTIDJ.cjs +1 -0
- package/dist/plugin-sdk/login-qr-C366Qlh-.cjs +1 -0
- package/dist/plugin-sdk/login-qr-CQY4ty0o.js +1 -0
- package/dist/plugin-sdk/login-qr-CSabEb-n.cjs +1 -0
- package/dist/plugin-sdk/login-qr-CUgNKijx.js +1 -0
- package/dist/plugin-sdk/login-qr-C_LEw1Bi.js +1 -0
- package/dist/plugin-sdk/login-qr-CcPvldsG.js +1 -0
- package/dist/plugin-sdk/login-qr-CnNGKwDR.cjs +1 -0
- package/dist/plugin-sdk/login-qr-DQm50pXk.js +1 -0
- package/dist/plugin-sdk/login-qr-DayvAWkx.js +1 -0
- package/dist/plugin-sdk/login-qr-eodIsL9V.cjs +1 -0
- package/dist/plugin-sdk/login-qr-yIJE7MmY.cjs +1 -0
- package/dist/plugin-sdk/manager-932XljTT.js +1 -0
- package/dist/plugin-sdk/manager-CGHd5p2T.js +1 -0
- package/dist/plugin-sdk/manager-CbGA_JDa.js +1 -0
- package/dist/plugin-sdk/manager-CdD7HaGW.cjs +1 -0
- package/dist/plugin-sdk/manager-CmAH_a7A.cjs +1 -0
- package/dist/plugin-sdk/manager-DIS4ywpb.cjs +1 -0
- package/dist/plugin-sdk/manager-DQ2C-2IU.cjs +1 -0
- package/dist/plugin-sdk/manager-DdvFnsT7.cjs +1 -0
- package/dist/plugin-sdk/manager-DfdDglld.js +1 -0
- package/dist/plugin-sdk/manager-MR9stU_p.js +1 -0
- package/dist/plugin-sdk/manager-WwW37IUu.js +1 -0
- package/dist/plugin-sdk/manager-gE9187gu.cjs +1 -0
- package/dist/plugin-sdk/matrix.cjs +1 -0
- package/dist/plugin-sdk/matrix.js +1 -0
- package/dist/plugin-sdk/mattermost.cjs +1 -0
- package/dist/plugin-sdk/mattermost.js +1 -0
- package/dist/plugin-sdk/memory-core.cjs +1 -0
- package/dist/plugin-sdk/memory-core.js +1 -0
- package/dist/plugin-sdk/minimax-portal-auth.cjs +1 -0
- package/dist/plugin-sdk/minimax-portal-auth.js +1 -0
- package/dist/plugin-sdk/model-auth-BpS4IWDi.cjs +1 -0
- package/dist/plugin-sdk/model-auth-BwajGuoF.cjs +1 -0
- package/dist/plugin-sdk/model-auth-C1YL9HcW.js +1 -0
- package/dist/plugin-sdk/model-auth-Cc-8H6Cu.js +1 -0
- package/dist/plugin-sdk/model-auth-Cw3fuhm_.js +1 -0
- package/dist/plugin-sdk/model-auth-CycDtQl-.js +1 -0
- package/dist/plugin-sdk/model-auth-D-7xiXhK.cjs +1 -0
- package/dist/plugin-sdk/model-auth-TFUxaK0f.cjs +1 -0
- package/dist/plugin-sdk/model-selection-BADTZM9n.cjs +1 -0
- package/dist/plugin-sdk/model-selection-DUAudCtL.js +1 -0
- package/dist/plugin-sdk/msteams.cjs +1 -0
- package/dist/plugin-sdk/msteams.js +1 -0
- package/dist/plugin-sdk/nextcloud-talk.cjs +1 -0
- package/dist/plugin-sdk/nextcloud-talk.js +1 -0
- package/dist/plugin-sdk/nostr.cjs +1 -0
- package/dist/plugin-sdk/nostr.js +1 -0
- package/dist/plugin-sdk/outbound-2Lo6mZEY.js +1 -0
- package/dist/plugin-sdk/outbound-9XFlZzaF.cjs +1 -0
- package/dist/plugin-sdk/outbound-BlWsUmjQ.js +1 -0
- package/dist/plugin-sdk/outbound-Bs2rUcWZ.cjs +1 -0
- package/dist/plugin-sdk/outbound-C18nEOFP.js +1 -0
- package/dist/plugin-sdk/outbound-CW3o4Eng.cjs +1 -0
- package/dist/plugin-sdk/outbound-CzsdW5sy.js +1 -0
- package/dist/plugin-sdk/outbound-DcP22VOo.cjs +1 -0
- package/dist/plugin-sdk/outbound-QhOJAEO8.cjs +1 -0
- package/dist/plugin-sdk/outbound-attachment-1pf06Oiu.cjs +1 -0
- package/dist/plugin-sdk/outbound-attachment-B8-ZVX2i.cjs +1 -0
- package/dist/plugin-sdk/outbound-attachment-BDwI_tn0.cjs +1 -0
- package/dist/plugin-sdk/outbound-attachment-BXhbJils.js +1 -0
- package/dist/plugin-sdk/outbound-attachment-Bgf1pCh8.js +1 -0
- package/dist/plugin-sdk/outbound-attachment-COgf85S8.cjs +1 -0
- package/dist/plugin-sdk/outbound-attachment-CfN9OvMC.js +1 -0
- package/dist/plugin-sdk/outbound-attachment-CftilZWd.js +1 -0
- package/dist/plugin-sdk/outbound-attachment-Cujprd6T.cjs +1 -0
- package/dist/plugin-sdk/outbound-attachment-CvSHb9ci.js +1 -0
- package/dist/plugin-sdk/outbound-attachment-DQYtdTUw.js +1 -0
- package/dist/plugin-sdk/outbound-attachment-FqWC0WJx.cjs +1 -0
- package/dist/plugin-sdk/outbound-dTvIiFIZ.js +1 -0
- package/dist/plugin-sdk/outbound-fZ1WJGfe.cjs +1 -0
- package/dist/plugin-sdk/outbound-oHoWYWxf.js +1 -0
- package/dist/plugin-sdk/paths-BPlgbwrb.cjs +1 -0
- package/dist/plugin-sdk/paths-Bcdg3ma0.cjs +1 -0
- package/dist/plugin-sdk/paths-BpQOWYiT.js +1 -0
- package/dist/plugin-sdk/paths-BvlJvmRS.cjs +1 -0
- package/dist/plugin-sdk/paths-CIcxeNL-.cjs +1 -0
- package/dist/plugin-sdk/paths-CXgWvWAM.js +1 -0
- package/dist/plugin-sdk/paths-Chp3zwtq.cjs +1 -0
- package/dist/plugin-sdk/paths-CnHSNSeR.js +1 -0
- package/dist/plugin-sdk/paths-Cqca1YmF.cjs +1 -0
- package/dist/plugin-sdk/paths-CtrEseGU.js +1 -0
- package/dist/plugin-sdk/paths-D55o_j8-.js +1 -0
- package/dist/plugin-sdk/paths-D90l3h_o.cjs +1 -0
- package/dist/plugin-sdk/paths-DaRoqzBQ.js +1 -0
- package/dist/plugin-sdk/paths-Dd7r1qlB.cjs +1 -0
- package/dist/plugin-sdk/paths-DhSjTRMz.js +1 -0
- package/dist/plugin-sdk/paths-Do0djuaj.js +1 -0
- package/dist/plugin-sdk/paths-J4JUiRsa.js +1 -0
- package/dist/plugin-sdk/paths-cBAF6Bj0.js +1 -0
- package/dist/plugin-sdk/paths-piJASC5k.js +1 -0
- package/dist/plugin-sdk/paths-rO4ehkyU.js +1 -0
- package/dist/plugin-sdk/pi-model-discovery-B9boErNZ.cjs +1 -0
- package/dist/plugin-sdk/pi-model-discovery-BJ8wTgFH.cjs +1 -0
- package/dist/plugin-sdk/pi-model-discovery-Bb2vCP6M.js +1 -0
- package/dist/plugin-sdk/pi-model-discovery-Bor7jHYd.js +1 -0
- package/dist/plugin-sdk/pi-model-discovery-BrTw1qE2.cjs +1 -0
- package/dist/plugin-sdk/pi-model-discovery-BuEMyAsU.js +1 -0
- package/dist/plugin-sdk/pi-model-discovery-CV9NTjC4.js +1 -0
- package/dist/plugin-sdk/pi-model-discovery-D5tLf04u.js +1 -0
- package/dist/plugin-sdk/pi-model-discovery-D5xlUS2J.cjs +1 -0
- package/dist/plugin-sdk/pi-model-discovery-DGoPUzBj.cjs +1 -0
- package/dist/plugin-sdk/pi-model-discovery-DMrqvV1O.cjs +1 -0
- package/dist/plugin-sdk/pi-model-discovery-DoY7qnlI.cjs +1 -0
- package/dist/plugin-sdk/pi-model-discovery-Dqq9Vm8o.js +1 -0
- package/dist/plugin-sdk/pi-model-discovery-zCuISPPq.js +1 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-4238P8NF.js +1 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-BEoqzgFe.cjs +1 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-BGPjibRD.js +1 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-BJ_amISU.cjs +1 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-BX2r_qPT.cjs +1 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-CGLHFxSr.js +1 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-CsNn_Lv8.js +1 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-CsiKBTHg.cjs +1 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-CuXQQk4F.cjs +1 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-DNatrz-3.cjs +1 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-PApjB0tY.js +1 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-xsXDBYNq.js +1 -0
- package/dist/plugin-sdk/polls-BuaJuIpV.cjs +1 -0
- package/dist/plugin-sdk/polls-CBAGZuJ6.js +1 -0
- package/dist/plugin-sdk/polls-CSKMbBIS.js +1 -0
- package/dist/plugin-sdk/polls-D0wY0FvT.cjs +1 -0
- package/dist/plugin-sdk/polls-PGxiE05J.js +1 -0
- package/dist/plugin-sdk/polls-yWqSCEP0.cjs +1 -0
- package/dist/plugin-sdk/proxy-env-B765haXA.js +1 -0
- package/dist/plugin-sdk/proxy-env-Bcl14j2_.cjs +1 -0
- package/dist/plugin-sdk/proxy-env-BlrHtJWH.js +1 -0
- package/dist/plugin-sdk/proxy-env-D48qBPAr.cjs +1 -0
- package/dist/plugin-sdk/proxy-env-DGzNnnJh.js +1 -0
- package/dist/plugin-sdk/proxy-env-DQoJjkWE.cjs +1 -0
- package/dist/plugin-sdk/proxy-env-DWw9TnOj.cjs +1 -0
- package/dist/plugin-sdk/proxy-env-MEjSyzTr.js +1 -0
- package/dist/plugin-sdk/proxy-env-a590sPAz.cjs +1 -0
- package/dist/plugin-sdk/proxy-env-k93igu7v.cjs +1 -0
- package/dist/plugin-sdk/proxy-env-m9eG3uZN.js +1 -0
- package/dist/plugin-sdk/proxy-env-t6hcaFqC.js +1 -0
- package/dist/plugin-sdk/proxy-fetch-B9aXJVe-.js +1 -0
- package/dist/plugin-sdk/proxy-fetch-BaA3JYgW.cjs +1 -0
- package/dist/plugin-sdk/proxy-fetch-BwXFVsHE.cjs +1 -0
- package/dist/plugin-sdk/proxy-fetch-BzcKzknk.cjs +1 -0
- package/dist/plugin-sdk/proxy-fetch-CYVChsKE.js +1 -0
- package/dist/plugin-sdk/proxy-fetch-ClOb2LUH.js +1 -0
- package/dist/plugin-sdk/proxy-fetch-DH7VIiBH.cjs +1 -0
- package/dist/plugin-sdk/proxy-fetch-DPOhfrou.cjs +1 -0
- package/dist/plugin-sdk/proxy-fetch-DXt2R_Z5.js +1 -0
- package/dist/plugin-sdk/proxy-fetch-Del551nu.js +1 -0
- package/dist/plugin-sdk/proxy-fetch-YCVHz7Rl.js +1 -0
- package/dist/plugin-sdk/proxy-fetch-qbrYAz8k.cjs +1 -0
- package/dist/plugin-sdk/pw-ai-B0_rvdfF.js +1 -0
- package/dist/plugin-sdk/pw-ai-BqdrA15F.js +1 -0
- package/dist/plugin-sdk/pw-ai-CDzxu5B3.js +1 -0
- package/dist/plugin-sdk/pw-ai-CJIogpwF.cjs +1 -0
- package/dist/plugin-sdk/pw-ai-CL_gU5PJ.cjs +1 -0
- package/dist/plugin-sdk/pw-ai-Ca4aZTaG.cjs +1 -0
- package/dist/plugin-sdk/pw-ai-CrfYxLI8.cjs +1 -0
- package/dist/plugin-sdk/pw-ai-DCiFlwP8.js +1 -0
- package/dist/plugin-sdk/pw-ai-DSqXNmNZ.js +1 -0
- package/dist/plugin-sdk/pw-ai-Dh55xTz1.cjs +1 -0
- package/dist/plugin-sdk/pw-ai-DxAvipyK.cjs +1 -0
- package/dist/plugin-sdk/pw-ai-U9nPHH-0.js +1 -0
- package/dist/plugin-sdk/qmd-manager-B3xNbdye.cjs +1 -0
- package/dist/plugin-sdk/qmd-manager-BMyDNBPi.js +1 -0
- package/dist/plugin-sdk/qmd-manager-BZhiv_zq.cjs +1 -0
- package/dist/plugin-sdk/qmd-manager-C3uVDbhW.js +1 -0
- package/dist/plugin-sdk/qmd-manager-CW46NrS-.cjs +1 -0
- package/dist/plugin-sdk/qmd-manager-C_e04BNg.js +1 -0
- package/dist/plugin-sdk/qmd-manager-CczVoslK.cjs +1 -0
- package/dist/plugin-sdk/qmd-manager-CzLKqPmR.js +1 -0
- package/dist/plugin-sdk/qmd-manager-DFh8b5N-.cjs +1 -0
- package/dist/plugin-sdk/qmd-manager-DXLfZZMI.js +1 -0
- package/dist/plugin-sdk/qmd-manager-FL9fAfNo.cjs +1 -0
- package/dist/plugin-sdk/qmd-manager-fWxbGqzk.js +1 -0
- package/dist/plugin-sdk/query-expansion-0zYzKrrd.cjs +1 -0
- package/dist/plugin-sdk/query-expansion-BYSjmpkV.cjs +1 -0
- package/dist/plugin-sdk/query-expansion-CAboqtWr.js +1 -0
- package/dist/plugin-sdk/query-expansion-C_DnhmUy.js +1 -0
- package/dist/plugin-sdk/query-expansion-Cb2vnF6y.js +1 -0
- package/dist/plugin-sdk/query-expansion-DCeqywxh.cjs +1 -0
- package/dist/plugin-sdk/query-expansion-DF4LMxRQ.js +1 -0
- package/dist/plugin-sdk/query-expansion-DKJkqmNM.cjs +1 -0
- package/dist/plugin-sdk/query-expansion-DO2CFW4z.cjs +1 -0
- package/dist/plugin-sdk/query-expansion-DyCDaZbL.js +1 -0
- package/dist/plugin-sdk/query-expansion-cpXCyoDy.cjs +1 -0
- package/dist/plugin-sdk/query-expansion-r_iXkNzt.js +1 -0
- package/dist/plugin-sdk/qwen-portal-auth.cjs +1 -0
- package/dist/plugin-sdk/qwen-portal-auth.js +1 -0
- package/dist/plugin-sdk/render-6fCdtAr6.cjs +1 -0
- package/dist/plugin-sdk/render-CBsnn-2A.js +1 -0
- package/dist/plugin-sdk/render-CzHaQB0d.cjs +1 -0
- package/dist/plugin-sdk/render-DGmfCIRG.js +1 -0
- package/dist/plugin-sdk/render-DhTJXP1U.js +1 -0
- package/dist/plugin-sdk/render-Djx15dPh.js +1 -0
- package/dist/plugin-sdk/render-DxBO2Blp.cjs +1 -0
- package/dist/plugin-sdk/render-g5VlmgpF.cjs +1 -0
- package/dist/plugin-sdk/reply-0zCEbT4w.cjs +1 -0
- package/dist/plugin-sdk/reply-D-f2bbXy.js +1 -0
- package/dist/plugin-sdk/resolve-outbound-target-CrQGbaua.js +1 -0
- package/dist/plugin-sdk/resolve-outbound-target-H7Q9HcfW.js +1 -0
- package/dist/plugin-sdk/resolve-outbound-target-MS6Xpp17.cjs +1 -0
- package/dist/plugin-sdk/resolve-outbound-target-cDxjy3TL.cjs +1 -0
- package/dist/plugin-sdk/send-3VNTSIhr.js +1 -0
- package/dist/plugin-sdk/send-61GHLNYP.cjs +1 -0
- package/dist/plugin-sdk/send-6q4owAw0.js +1 -0
- package/dist/plugin-sdk/send-A2s5sPTd.js +1 -0
- package/dist/plugin-sdk/send-B2qa7CSk.js +1 -0
- package/dist/plugin-sdk/send-B3aEYvqG.cjs +1 -0
- package/dist/plugin-sdk/send-BAoqP09M.cjs +1 -0
- package/dist/plugin-sdk/send-BNBJ4CF8.js +1 -0
- package/dist/plugin-sdk/send-BTE2rI1E.js +1 -0
- package/dist/plugin-sdk/send-BlWuQHYB.js +1 -0
- package/dist/plugin-sdk/send-Bnvt7ZUE.cjs +1 -0
- package/dist/plugin-sdk/send-Bq6Mqs9G.cjs +1 -0
- package/dist/plugin-sdk/send-Bq787fi_.js +1 -0
- package/dist/plugin-sdk/send-BrAHLYBR.js +1 -0
- package/dist/plugin-sdk/send-Bt2eFBk2.js +1 -0
- package/dist/plugin-sdk/send-C4ZFbUux.js +1 -0
- package/dist/plugin-sdk/send-C4cyMW4S.cjs +1 -0
- package/dist/plugin-sdk/send-C8f5H4XV.cjs +1 -0
- package/dist/plugin-sdk/send-CDwTrbgT.cjs +1 -0
- package/dist/plugin-sdk/send-CEfs0Fsr.js +1 -0
- package/dist/plugin-sdk/send-CFuJjCNB.cjs +1 -0
- package/dist/plugin-sdk/send-CJGLeSJ8.cjs +1 -0
- package/dist/plugin-sdk/send-CL0W7jLW.js +1 -0
- package/dist/plugin-sdk/send-CLl490Gb.cjs +1 -0
- package/dist/plugin-sdk/send-CQtITZ7k.cjs +1 -0
- package/dist/plugin-sdk/send-CSGh_GVr.cjs +1 -0
- package/dist/plugin-sdk/send-CicLiXB4.js +1 -0
- package/dist/plugin-sdk/send-Cm7bEwx-.cjs +1 -0
- package/dist/plugin-sdk/send-CmO9z2-b.js +1 -0
- package/dist/plugin-sdk/send-Co_Wy2kT.cjs +1 -0
- package/dist/plugin-sdk/send-Cox_iyYB.cjs +1 -0
- package/dist/plugin-sdk/send-CuX4LcJ3.cjs +1 -0
- package/dist/plugin-sdk/send-CxMiTtxI.cjs +1 -0
- package/dist/plugin-sdk/send-CyyzWwDr.js +1 -0
- package/dist/plugin-sdk/send-D-HZnehy.cjs +1 -0
- package/dist/plugin-sdk/send-D-qD7BCb.js +1 -0
- package/dist/plugin-sdk/send-D3imkSlz.cjs +1 -0
- package/dist/plugin-sdk/send-D5UwpCoU.cjs +1 -0
- package/dist/plugin-sdk/send-D75OGJco.js +1 -0
- package/dist/plugin-sdk/send-DB4i1kUy.cjs +1 -0
- package/dist/plugin-sdk/send-DBjzdBda.cjs +1 -0
- package/dist/plugin-sdk/send-DPgRTM8s.js +1 -0
- package/dist/plugin-sdk/send-DPpBLiL4.js +1 -0
- package/dist/plugin-sdk/send-DV_afQnj.cjs +1 -0
- package/dist/plugin-sdk/send-DWuChr46.js +1 -0
- package/dist/plugin-sdk/send-DZ4szmEa.cjs +1 -0
- package/dist/plugin-sdk/send-DZr98eqE.cjs +1 -0
- package/dist/plugin-sdk/send-D_1K0zmx.cjs +1 -0
- package/dist/plugin-sdk/send-DaLB9Lca.js +1 -0
- package/dist/plugin-sdk/send-De4qiprb.js +1 -0
- package/dist/plugin-sdk/send-DeU-T5ps.js +1 -0
- package/dist/plugin-sdk/send-DtjJM0LO.js +1 -0
- package/dist/plugin-sdk/send-DvDCmTQf.js +1 -0
- package/dist/plugin-sdk/send-EvcsiFBC.cjs +1 -0
- package/dist/plugin-sdk/send-GuISe9C82.js +1 -0
- package/dist/plugin-sdk/send-IoGcE0w2.js +1 -0
- package/dist/plugin-sdk/send-JVdUTsN1.cjs +1 -0
- package/dist/plugin-sdk/send-NpNVFRmY.js +1 -0
- package/dist/plugin-sdk/send-XMOZsJcs.js +1 -0
- package/dist/plugin-sdk/send-h--iKoQE.cjs +1 -0
- package/dist/plugin-sdk/session-8BcB905y.cjs +1 -0
- package/dist/plugin-sdk/session-B2oURX5K.js +1 -0
- package/dist/plugin-sdk/session-BJhNqIOi.js +1 -0
- package/dist/plugin-sdk/session-BRgGsw96.cjs +1 -0
- package/dist/plugin-sdk/session-Be_7rXAz.js +1 -0
- package/dist/plugin-sdk/session-C66IXbE-.js +1 -0
- package/dist/plugin-sdk/session-CCYDbcyV.js +1 -0
- package/dist/plugin-sdk/session-CHu3C2m0.cjs +1 -0
- package/dist/plugin-sdk/session-DUlmK2IL.cjs +1 -0
- package/dist/plugin-sdk/session-DxTRZTnu.js +1 -0
- package/dist/plugin-sdk/session-DzhI0nj-.cjs +1 -0
- package/dist/plugin-sdk/session-WRCBgAzG.cjs +1 -0
- package/dist/plugin-sdk/sessions-DxXXAfdI.js +1 -0
- package/dist/plugin-sdk/sessions-Dz5JUL8j.cjs +1 -0
- package/dist/plugin-sdk/signal.cjs +1 -0
- package/dist/plugin-sdk/signal.js +1 -0
- package/dist/plugin-sdk/skill-commands-B4wI8ETo.cjs +1 -0
- package/dist/plugin-sdk/skill-commands-BoTeA376.cjs +1 -0
- package/dist/plugin-sdk/skill-commands-BwrYJu7Z.js +1 -0
- package/dist/plugin-sdk/skill-commands-BzkMuA58.cjs +1 -0
- package/dist/plugin-sdk/skill-commands-CIAf9cWN.cjs +1 -0
- package/dist/plugin-sdk/skill-commands-CKc7JO_c.cjs +1 -0
- package/dist/plugin-sdk/skill-commands-Cvb6oXym.js +1 -0
- package/dist/plugin-sdk/skill-commands-DWDtyCtB.js +1 -0
- package/dist/plugin-sdk/skill-commands-Hmuw0PPK.js +1 -0
- package/dist/plugin-sdk/skill-commands-KyN0FGaC.cjs +1 -0
- package/dist/plugin-sdk/skill-commands-KzwEqk5p.js +1 -0
- package/dist/plugin-sdk/skill-commands-Ny38ZFIC.js +1 -0
- package/dist/plugin-sdk/slack.cjs +1 -0
- package/dist/plugin-sdk/slack.js +1 -0
- package/dist/plugin-sdk/synology-chat.cjs +1 -0
- package/dist/plugin-sdk/synology-chat.js +1 -0
- package/dist/plugin-sdk/tables-BIDWwpX8.js +1 -0
- package/dist/plugin-sdk/tables-Bk8lHaPx.cjs +1 -0
- package/dist/plugin-sdk/tables-BlNIkMV8.js +1 -0
- package/dist/plugin-sdk/tables-Bp0a2WRP.cjs +1 -0
- package/dist/plugin-sdk/tables-BtVUf77b.cjs +1 -0
- package/dist/plugin-sdk/tables-C4j5Bar_.js +1 -0
- package/dist/plugin-sdk/tables-CZGtYzDC.cjs +1 -0
- package/dist/plugin-sdk/tables-CnrHab5d.cjs +1 -0
- package/dist/plugin-sdk/tables-DtslIPYw.js +1 -0
- package/dist/plugin-sdk/tables-NrdtIJGp.cjs +1 -0
- package/dist/plugin-sdk/tables-XYb3T-vE.js +1 -0
- package/dist/plugin-sdk/tables-lbv-0tl3.js +1 -0
- package/dist/plugin-sdk/target-errors-9cdJA1L2.cjs +1 -0
- package/dist/plugin-sdk/target-errors-BEkhKWCq.cjs +1 -0
- package/dist/plugin-sdk/target-errors-BZRN-lPd.js +1 -0
- package/dist/plugin-sdk/target-errors-BrwqillR.cjs +1 -0
- package/dist/plugin-sdk/target-errors-Buo5pfom.js +1 -0
- package/dist/plugin-sdk/target-errors-CFzzcffg.js +1 -0
- package/dist/plugin-sdk/target-errors-DFmK5loi.js +1 -0
- package/dist/plugin-sdk/target-errors-DXqwykNX.js +1 -0
- package/dist/plugin-sdk/target-errors-Dd6CopYF.cjs +1 -0
- package/dist/plugin-sdk/target-errors-DeNJ10ks.cjs +1 -0
- package/dist/plugin-sdk/targets-BSc11Uk8.cjs +1 -0
- package/dist/plugin-sdk/targets-BSkiizml.js +1 -0
- package/dist/plugin-sdk/targets-CBI0xqve.cjs +1 -0
- package/dist/plugin-sdk/targets-CL5fYQi7.js +1 -0
- package/dist/plugin-sdk/targets-CUZWrFrm.cjs +1 -0
- package/dist/plugin-sdk/targets-CVEYTFPQ.js +1 -0
- package/dist/plugin-sdk/targets-Co2R6K14.cjs +1 -0
- package/dist/plugin-sdk/targets-CrkJkzil.js +1 -0
- package/dist/plugin-sdk/targets-D-m7SV9x.cjs +1 -0
- package/dist/plugin-sdk/targets-D8HTxbo4.js +1 -0
- package/dist/plugin-sdk/targets-DcGNB9nk.cjs +1 -0
- package/dist/plugin-sdk/targets-Dn9gDiEw.js +1 -0
- package/dist/plugin-sdk/targets-X28mff4s.cjs +1 -0
- package/dist/plugin-sdk/targets-uycXZ8vQ.js +1 -0
- package/dist/plugin-sdk/telegram.cjs +1 -0
- package/dist/plugin-sdk/telegram.js +1 -0
- package/dist/plugin-sdk/test-utils.cjs +1 -0
- package/dist/plugin-sdk/test-utils.js +1 -0
- package/dist/plugin-sdk/tlon.cjs +1 -0
- package/dist/plugin-sdk/tlon.js +1 -0
- package/dist/plugin-sdk/tokens-AAdZjj0M.js +1 -0
- package/dist/plugin-sdk/tokens-B20KNIDD.js +1 -0
- package/dist/plugin-sdk/tokens-B8ys7Q2e.js +1 -0
- package/dist/plugin-sdk/tokens-BPc1fcZ3.js +1 -0
- package/dist/plugin-sdk/tokens-BqABmXSe.js +1 -0
- package/dist/plugin-sdk/tokens-CXsPDJTr.cjs +1 -0
- package/dist/plugin-sdk/tokens-CnB4dJmp.cjs +1 -0
- package/dist/plugin-sdk/tokens-CytSl1X8.cjs +1 -0
- package/dist/plugin-sdk/tokens-DgPZk2Uu.js +1 -0
- package/dist/plugin-sdk/tokens-Dq2wDF3_.cjs +1 -0
- package/dist/plugin-sdk/tokens-DtrljGtQ.cjs +1 -0
- package/dist/plugin-sdk/tokens-g5KWvWhD.cjs +1 -0
- package/dist/plugin-sdk/twitch.cjs +1 -0
- package/dist/plugin-sdk/twitch.js +1 -0
- package/dist/plugin-sdk/utils-BJtJR72k.js +1 -0
- package/dist/plugin-sdk/utils-PPIvU9qw.cjs +1 -0
- package/dist/plugin-sdk/voice-call.cjs +1 -0
- package/dist/plugin-sdk/voice-call.js +1 -0
- package/dist/plugin-sdk/web-B-QDcVRv.cjs +1 -0
- package/dist/plugin-sdk/web-B2PwjHsu.cjs +1 -0
- package/dist/plugin-sdk/web-BdnQzLgF.js +1 -0
- package/dist/plugin-sdk/web-C9T7tf6w.js +1 -0
- package/dist/plugin-sdk/web-CODD4ksc.cjs +1 -0
- package/dist/plugin-sdk/web-CkdCvvR-.js +1 -0
- package/dist/plugin-sdk/web-_tj8xNZE.js +1 -0
- package/dist/plugin-sdk/web-pcTha_l7.cjs +1 -0
- package/dist/plugin-sdk/weixin.cjs +1 -0
- package/dist/plugin-sdk/weixin.js +1 -0
- package/dist/plugin-sdk/whatsapp-actions-Bhz2j1uz.cjs +1 -0
- package/dist/plugin-sdk/whatsapp-actions-Bm2UyRYg.cjs +1 -0
- package/dist/plugin-sdk/whatsapp-actions-Bolz0jl5.js +1 -0
- package/dist/plugin-sdk/whatsapp-actions-CJ3LDpaG.js +1 -0
- package/dist/plugin-sdk/whatsapp-actions-CL1Gmkb0.js +1 -0
- package/dist/plugin-sdk/whatsapp-actions-D-bZRT7s.js +1 -0
- package/dist/plugin-sdk/whatsapp-actions-DSGTTE8M.cjs +1 -0
- package/dist/plugin-sdk/whatsapp-actions-DjQxgMpW.cjs +1 -0
- package/dist/plugin-sdk/whatsapp-actions-DrPBBi5t.cjs +1 -0
- package/dist/plugin-sdk/whatsapp-actions-DtK657CZ.cjs +1 -0
- package/dist/plugin-sdk/whatsapp-actions-Xwev51_N.js +1 -0
- package/dist/plugin-sdk/whatsapp-actions-m7vLtNAA.js +1 -0
- package/dist/plugin-sdk/whatsapp.cjs +1 -0
- package/dist/plugin-sdk/whatsapp.js +1 -0
- package/dist/plugin-sdk/zalo.cjs +1 -0
- package/dist/plugin-sdk/zalo.js +1 -0
- package/dist/plugin-sdk/zalouser.cjs +1 -0
- package/dist/plugin-sdk/zalouser.js +1 -0
- package/dist/plugins-CYLrFT4h.js +1 -0
- package/dist/plugins-DNlgeTTc.js +1 -0
- package/dist/plugins-cli-BbjMbzJU.js +1 -0
- package/dist/plugins-cli-BiVMAr5T.js +1 -0
- package/dist/polls-BIVz6a4F.js +1 -0
- package/dist/polls-Bh5wc9-6.js +1 -0
- package/dist/polls-C_XSFz3d.js +1 -0
- package/dist/polls-DKJOFSzJ.js +1 -0
- package/dist/ports-B0XdGTfS.js +1 -0
- package/dist/ports-BR0PLRtq.js +1 -0
- package/dist/probe-auth-BMA0yM94.js +1 -0
- package/dist/probe-auth-VI96zmTK.js +1 -0
- package/dist/profile-utils-CWmra1aY.js +1 -0
- package/dist/program-BrAZTwFr.js +1 -0
- package/dist/program-context-B9ydtPje.js +1 -0
- package/dist/program-context-CH9p6anW.js +1 -0
- package/dist/progress-LNttnI-y.js +1 -0
- package/dist/progress-d1m2sqR1.js +1 -0
- package/dist/prompt-select-styled-BeJNbzSa.js +1 -0
- package/dist/prompt-select-styled-DIOWLjl0.js +1 -0
- package/dist/prompt-style-BThRSQJR.js +1 -0
- package/dist/prompt-style-CXKekIBY.js +1 -0
- package/dist/prompts-CMzglboN.js +1 -0
- package/dist/prompts-wv-lfVrJ.js +1 -0
- package/dist/provider-auth-helpers-1lU43eTW.js +1 -0
- package/dist/provider-auth-helpers-pBVCjBj9.js +1 -0
- package/dist/provider-env-vars-D8p6Ohpj.js +1 -0
- package/dist/provider-env-vars-Dt0Q29Su.js +1 -0
- package/dist/proxy-env-BNhTHkd_.js +1 -0
- package/dist/proxy-env-DcmW_urA.js +1 -0
- package/dist/proxy-env-DrC3TIGh.js +1 -0
- package/dist/proxy-env-FJr5nlvs.js +1 -0
- package/dist/proxy-fetch-BADsUK4d.js +1 -0
- package/dist/proxy-fetch-BZ9O8Dvj.js +1 -0
- package/dist/proxy-fetch-DnjU1fEB.js +1 -0
- package/dist/proxy-fetch-gWETR3cl.js +1 -0
- package/dist/push-apns-BGUOmD5M.js +1 -0
- package/dist/push-apns-B_a2MBJ4.js +1 -0
- package/dist/pw-ai-C-Ffkwai.js +1 -0
- package/dist/pw-ai-CV1H1Vrs.js +1 -0
- package/dist/pw-ai-D_MB1lrR.js +1 -0
- package/dist/pw-ai-_l9lVice.js +1 -0
- package/dist/qmd-manager-C_e04BNg.js +1 -0
- package/dist/qmd-manager-DSQ_mDCl.js +1 -0
- package/dist/qmd-manager-DcBYbt_V.js +1 -0
- package/dist/qmd-manager-NLI0R6kp.js +1 -0
- package/dist/qr-cli-3aG6CB6K.js +1 -0
- package/dist/qr-cli-fiJxD5M4.js +1 -0
- package/dist/query-expansion-0OxEb1Io.js +1 -0
- package/dist/query-expansion-BUUx_oWg.js +1 -0
- package/dist/query-expansion-r_iXkNzt.js +1 -0
- package/dist/reaction-level-DVPHL14p.js +1 -0
- package/dist/reaction-message-id-BEEe7X3D.js +1 -0
- package/dist/read-only-account-inspect-DBwAwB3_.js +1 -0
- package/dist/redact-3_CiXMY6.js +1 -0
- package/dist/redact-CnRxK70G.js +1 -0
- package/dist/register.agent-CX78s_X9.js +1 -0
- package/dist/register.agent-DLDKQENq.js +1 -0
- package/dist/register.backup-DkFoTcuT.js +1 -0
- package/dist/register.backup-PzF5rmeU.js +1 -0
- package/dist/register.configure-BA5u9hT3.js +1 -0
- package/dist/register.configure-BhPtf3Qo.js +1 -0
- package/dist/register.maintenance-BhsBepKS.js +1 -0
- package/dist/register.maintenance-r_MzNK3-.js +1 -0
- package/dist/register.message-CTF--Z2a.js +1 -0
- package/dist/register.message-jcZ875be.js +1 -0
- package/dist/register.onboard-C3yL50_c.js +1 -0
- package/dist/register.onboard-CNwnStUk.js +1 -0
- package/dist/register.setup-BRJMzgfU.js +1 -0
- package/dist/register.setup-BvsS-zgm.js +1 -0
- package/dist/register.status-health-sessions-DVc__2pc.js +1 -0
- package/dist/register.status-health-sessions-Dqmkw820.js +1 -0
- package/dist/register.subclis-D-24j83X.js +1 -0
- package/dist/registry-BptzrW8D.js +1 -0
- package/dist/registry-hFAtCSWG.js +1 -0
- package/dist/render-BXEUPIHe.js +1 -0
- package/dist/render-CBsnn-2A.js +1 -0
- package/dist/render-D8OWO2hT.js +1 -0
- package/dist/render-DrrPmnMI.js +1 -0
- package/dist/reply-l-Y47HP4.js +1 -0
- package/dist/restart-CHXEHdSC.js +1 -0
- package/dist/rpc-B3ReBNXG.js +1 -0
- package/dist/rpc-DumDLalJ.js +1 -0
- package/dist/run-main-B_YBE_TN.js +1 -0
- package/dist/runtime-BC5Ep2pJ.js +1 -0
- package/dist/runtime-Dlg2-Omq.js +1 -0
- package/dist/runtime-guard-DFYBaYZS.js +1 -0
- package/dist/runtime-guard-DX2Ie4ri.js +1 -0
- package/dist/runtime-status-CqFBmdRd.js +1 -0
- package/dist/runtime-status-DszMjvJK.js +1 -0
- package/dist/runtime-web-tools-D8fms06-.js +1 -0
- package/dist/runtime-web-tools-bz76ZaRc.js +1 -0
- package/dist/sandbox-cli-BDorUBm-.js +1 -0
- package/dist/sandbox-cli-Bq40R5Vs.js +1 -0
- package/dist/scan-paths-C13EseXp.js +1 -0
- package/dist/scan-paths-CWtvWW40.js +1 -0
- package/dist/search-manager-Bp9x20r6.js +1 -0
- package/dist/secret-file-C7JffiM_.js +1 -0
- package/dist/secret-file-D60EFEOe.js +1 -0
- package/dist/secret-file-DuWm26jS.js +1 -0
- package/dist/secrets-cli-Bo6PC32U.js +1 -0
- package/dist/secrets-cli-CoXJv3Jp.js +1 -0
- package/dist/secure-random-D7JQgiK-.js +1 -0
- package/dist/security-cli-CgZL2KKh.js +1 -0
- package/dist/security-cli-DVOfhwAP.js +1 -0
- package/dist/send-B7sHR38c2.js +1 -0
- package/dist/send-Bx2Qr7VH.js +1 -0
- package/dist/send-C-AP01PR.js +1 -0
- package/dist/send-C1CJ-GHU.js +1 -0
- package/dist/send-C48Y9SAq.js +1 -0
- package/dist/send-CVplsJpw.js +1 -0
- package/dist/send-CW81y5Wz.js +1 -0
- package/dist/send-CYgHok1p.js +1 -0
- package/dist/send-Cgd_VJHR.js +1 -0
- package/dist/send-Chz0YMoJ.js +1 -0
- package/dist/send-D9hVVn7p2.js +1 -0
- package/dist/send-DKrzj_Ts.js +1 -0
- package/dist/send-DRLSCwCk.js +1 -0
- package/dist/send-DavpkzhH.js +1 -0
- package/dist/send-DbeEC2a3.js +1 -0
- package/dist/send-DkiKKUkt.js +1 -0
- package/dist/send-DlfVd5mL.js +1 -0
- package/dist/send-JYgM9Sm-2.js +1 -0
- package/dist/send-hZFDcGLM.js +1 -0
- package/dist/send-vthbs31u.js +1 -0
- package/dist/server-DpyBukwA.js +1 -0
- package/dist/server-IgiSKzXH.js +1 -0
- package/dist/server-node-events-CFSY_-4t.js +1 -0
- package/dist/server-node-events-ZFwmPwQ-.js +1 -0
- package/dist/service-BtB9epJk.js +1 -0
- package/dist/service-DZ9EbS15.js +1 -0
- package/dist/session-C9TDmUS7.js +1 -0
- package/dist/session-CUUGjiV3.js +1 -0
- package/dist/session-DA-i5xQ-.js +1 -0
- package/dist/session-bk3gFwO4.js +1 -0
- package/dist/session-cost-usage-BgqKixv0.js +1 -0
- package/dist/session-cost-usage-CHtVgnE8.js +1 -0
- package/dist/session-key-C7F_iqYg.js +1 -0
- package/dist/session-key-D3P0tf5P.js +1 -0
- package/dist/session-utils-8acNlxwP.js +1 -0
- package/dist/sessions-BsxT0V2m.js +1 -0
- package/dist/shared-9x5sqYRb.js +1 -0
- package/dist/shared-BKWhOp64.js +1 -0
- package/dist/shared-GesXrZzd.js +1 -0
- package/dist/skill-commands-BWW6mc6t.js +1 -0
- package/dist/skill-commands-CSF6wVPU.js +1 -0
- package/dist/skill-commands-Db232ZRp.js +1 -0
- package/dist/skill-commands-HJHHZqt6.js +1 -0
- package/dist/skill-scanner-CUUF3Fvo.js +1 -0
- package/dist/skill-scanner-CkxXNioD.js +1 -0
- package/dist/skills-CKTicUKS.js +1 -0
- package/dist/skills-DHbOKEGc.js +1 -0
- package/dist/skills-cli-9Ls94z5H.js +1 -0
- package/dist/skills-cli-BY7OhJzj.js +1 -0
- package/dist/skills-install-CIdGCXSy.js +1 -0
- package/dist/skills-install-DIdiVt9Y.js +1 -0
- package/dist/skills-status-BWIugRCz.js +1 -0
- package/dist/skills-status-DswSl5aD.js +1 -0
- package/dist/sqlite-CILF3z9U.js +1 -0
- package/dist/stagger-DmFYysrJ.js +1 -0
- package/dist/stagger-DxzgG2jd.js +1 -0
- package/dist/status-C-9fSiMn.js +1 -0
- package/dist/status-CeBGmSAz.js +1 -0
- package/dist/status-DYqPF0rB.js +1 -0
- package/dist/status-JIPeVrsc.js +1 -0
- package/dist/status.update-B_8Gumuc.js +1 -0
- package/dist/status.update-DoSzHu2F.js +1 -0
- package/dist/string-normalization-BrUPaXaM.js +1 -0
- package/dist/string-normalization-DJT5zuUF.js +1 -0
- package/dist/subsystem-BLbY429l.js +1 -0
- package/dist/subsystem-Bc2XrjUz.js +1 -0
- package/dist/subsystem-C5XF2Fy5.js +1 -0
- package/dist/system-cli-CeZfoVPN.js +1 -0
- package/dist/system-cli-DZkTYB9d.js +1 -0
- package/dist/system-run-command-BKfMiqQM.js +1 -0
- package/dist/system-run-command-DEWnZE0r.js +1 -0
- package/dist/systemd-D7odsu4K.js +1 -0
- package/dist/systemd-DbevZh65.js +1 -0
- package/dist/systemd-hints-C0DKDl35.js +1 -0
- package/dist/systemd-hints-lXpMy-kY.js +1 -0
- package/dist/systemd-linger-C2MJD6KG.js +1 -0
- package/dist/systemd-linger-cWKbFNpu.js +1 -0
- package/dist/table-CR7TFMew.js +1 -0
- package/dist/table-CY440fI1.js +1 -0
- package/dist/tables-Brc2lNcB.js +1 -0
- package/dist/tables-CrXdLc_6.js +1 -0
- package/dist/tables-Oieq7UbT.js +1 -0
- package/dist/tables-btcG3yFT.js +1 -0
- package/dist/target-errors-CRlevJJ5.js +1 -0
- package/dist/target-errors-CgWAJOam.js +1 -0
- package/dist/target-errors-CpKXh2RS.js +1 -0
- package/dist/target-errors-a35Md15n.js +1 -0
- package/dist/targets-4EaxWBal.js +1 -0
- package/dist/targets-BJTo7bqu.js +1 -0
- package/dist/targets-BYVMrXDf.js +1 -0
- package/dist/targets-Bq6rS6-Z.js +1 -0
- package/dist/targets-CL5fYQi7.js +1 -0
- package/dist/targets-fozeWOOg.js +1 -0
- package/dist/targets-m_41k_Mv.js +1 -0
- package/dist/telegram/audit.js +1 -0
- package/dist/text-format-CvrvBBre.js +1 -0
- package/dist/text-format-DEWK6oCT.js +1 -0
- package/dist/token-DnTmiyJu.js +1 -0
- package/dist/tokens-B2fq-rL6.js +1 -0
- package/dist/tokens-CL2fSjGl.js +1 -0
- package/dist/tokens-DRM8vzJx.js +1 -0
- package/dist/tokens-XGbQGn67.js +1 -0
- package/dist/tool-display-DJDtttQg.js +1 -0
- package/dist/tool-display-DjuSUUbH.js +1 -0
- package/dist/tui-B506apla.js +1 -0
- package/dist/tui-CJUkUxHb.js +1 -0
- package/dist/tui-cli-BEdGHmhc.js +1 -0
- package/dist/tui-cli-Cq_eXDAV.js +1 -0
- package/dist/types.secrets-C-5U96pc.js +1 -0
- package/dist/types.secrets-D4tbc3Wq.js +1 -0
- package/dist/update-BGrxUIyz.js +1 -0
- package/dist/update-CwTy5DPl.js +1 -0
- package/dist/update-cli-BwBMOeP0.js +1 -0
- package/dist/update-cli-YrBbmw4f.js +1 -0
- package/dist/update-runner-BvtyRBD2.js +1 -0
- package/dist/update-runner-DYamgo1V.js +1 -0
- package/dist/usage-format-BWD8FJFL.js +1 -0
- package/dist/usage-format-yPwal8Iz.js +1 -0
- package/dist/utils-CGdo13HV.js +1 -0
- package/dist/utils-D3t-vPka.js +1 -0
- package/dist/utils-R-mFyVJi.js +1 -0
- package/dist/utils-UGOV_184.js +1 -0
- package/dist/version-q3SkUw2K.js +1 -0
- package/dist/warning-filter.js +1 -0
- package/dist/web-Cq3xWCaD.js +1 -0
- package/dist/web-DwcxsgH0.js +1 -0
- package/dist/webhooks-cli-CIeyainW.js +1 -0
- package/dist/webhooks-cli-DSNAve_D.js +1 -0
- package/dist/whatsapp-actions-B6gt1KeB.js +1 -0
- package/dist/whatsapp-actions-DACoH7qd.js +1 -0
- package/dist/whatsapp-actions-iQhIeMya.js +1 -0
- package/dist/whatsapp-actions-tmjID75a.js +1 -0
- package/dist/widearea-dns-BDx7vkV2.js +1 -0
- package/dist/widearea-dns-BFjqKXu_.js +1 -0
- package/dist/windows-spawn-7oINn5ao.js +1 -0
- package/dist/windows-spawn-AB7ItGAE.js +1 -0
- package/dist/with-timeout-WveKxvFV.js +1 -0
- package/dist/with-timeout-c1CzdShT.js +1 -0
- package/dist/workspace-B0ZQeHXg.js +1 -0
- package/dist/workspace-C45T1Cxg.js +1 -0
- package/dist/workspace-dirs-A8Vib9_B.js +1 -0
- package/dist/workspace-dirs-BhF1Dzxt.js +1 -0
- package/dist/workspace-xNEpaJvu.js +1 -0
- package/dist/wsl-DHxB2Ew_.js +1 -0
- package/dist/wsl-Ok7GaSJ6.js +1 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/package.json +2 -2
- package/node_modules/@aws-sdk/token-providers/package.json +1 -1
- package/node_modules/@grammyjs/types/package.json +1 -1
- package/node_modules/@line/bot-sdk/dist/channel-access-token/api/channelAccessTokenClient.js +49 -3
- package/node_modules/@line/bot-sdk/dist/cjs/channel-access-token/api/channelAccessTokenClient.js +49 -3
- package/node_modules/@line/bot-sdk/dist/cjs/client.js +636 -0
- package/node_modules/@line/bot-sdk/dist/cjs/endpoints.js +7 -0
- package/node_modules/@line/bot-sdk/dist/cjs/exceptions.js +15 -1
- package/node_modules/@line/bot-sdk/dist/cjs/http-axios.js +2 -6
- package/node_modules/@line/bot-sdk/dist/cjs/http-fetch.js +5 -13
- package/node_modules/@line/bot-sdk/dist/cjs/index.js +3 -1
- package/node_modules/@line/bot-sdk/dist/cjs/insight/api/insightClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/liff/api/liffClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/line-bot-client.factory.generated.js +66 -0
- package/node_modules/@line/bot-sdk/dist/cjs/line-bot-client.generated.js +1999 -0
- package/node_modules/@line/bot-sdk/dist/cjs/line-bot-client.js +61 -0
- package/node_modules/@line/bot-sdk/dist/cjs/manage-audience/api/manageAudienceBlobClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/manage-audience/api/manageAudienceClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/api/messagingApiBlobClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/api/messagingApiClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/module/api/lineModuleClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/module-attach/api/lineModuleAttachClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/shop/api/shopClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/cjs/utils.js +10 -0
- package/node_modules/@line/bot-sdk/dist/cjs/version.js +1 -1
- package/node_modules/@line/bot-sdk/dist/client.js +636 -0
- package/node_modules/@line/bot-sdk/dist/endpoints.js +7 -0
- package/node_modules/@line/bot-sdk/dist/exceptions.js +15 -1
- package/node_modules/@line/bot-sdk/dist/http-axios.js +2 -6
- package/node_modules/@line/bot-sdk/dist/http-fetch.js +5 -13
- package/node_modules/@line/bot-sdk/dist/index.js +1 -0
- package/node_modules/@line/bot-sdk/dist/insight/api/insightClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/liff/api/liffClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/line-bot-client.factory.generated.js +63 -0
- package/node_modules/@line/bot-sdk/dist/line-bot-client.generated.js +1995 -0
- package/node_modules/@line/bot-sdk/dist/line-bot-client.js +58 -0
- package/node_modules/@line/bot-sdk/dist/manage-audience/api/manageAudienceBlobClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/manage-audience/api/manageAudienceClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/messaging-api/api/messagingApiBlobClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/messaging-api/api/messagingApiClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/module/api/lineModuleClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/module-attach/api/lineModuleAttachClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/shop/api/shopClient.js +3 -0
- package/node_modules/@line/bot-sdk/dist/utils.js +9 -0
- package/node_modules/@line/bot-sdk/dist/version.js +1 -1
- package/node_modules/@line/bot-sdk/package.json +10 -7
- package/node_modules/@mariozechner/clipboard-linux-x64-gnu/clipboard.linux-x64-gnu.node +0 -0
- package/node_modules/@mariozechner/clipboard-linux-x64-gnu/package.json +25 -0
- package/node_modules/@mariozechner/clipboard-linux-x64-musl/clipboard.linux-x64-musl.node +0 -0
- package/node_modules/@mariozechner/clipboard-linux-x64-musl/package.json +25 -0
- package/node_modules/@slack/bolt/dist/App.js +22 -30
- package/node_modules/@slack/bolt/dist/Assistant.js +21 -37
- package/node_modules/@slack/bolt/dist/CustomFunction.js +1 -43
- package/node_modules/@slack/bolt/dist/context/create-function-complete.js +23 -0
- package/node_modules/@slack/bolt/dist/context/create-function-fail.js +23 -0
- package/node_modules/@slack/bolt/dist/context/create-respond.js +11 -0
- package/node_modules/@slack/bolt/dist/context/create-say-stream.js +16 -0
- package/node_modules/@slack/bolt/dist/context/create-say.js +17 -0
- package/node_modules/@slack/bolt/dist/context/create-set-status.js +21 -0
- package/node_modules/@slack/bolt/dist/context/index.js +16 -0
- package/node_modules/@slack/bolt/dist/helpers.js +79 -3
- package/node_modules/@slack/bolt/dist/index.js +10 -8
- package/node_modules/@slack/bolt/dist/receivers/SocketModeReceiver.js +5 -1
- package/node_modules/@slack/bolt/dist/types/events/index.js +0 -4
- package/node_modules/@slack/bolt/package.json +7 -7
- package/node_modules/@smithy/config-resolver/package.json +10 -11
- package/node_modules/@smithy/core/dist-cjs/getSmithyContext.js +6 -0
- package/node_modules/@smithy/core/dist-cjs/index.js +1 -1
- package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/getHttpAuthSchemeEndpointRuleSetPlugin.js +21 -0
- package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/getHttpAuthSchemePlugin.js +21 -0
- package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js +46 -0
- package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/index.js +6 -0
- package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/resolveAuthOptions.js +24 -0
- package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/getHttpSigningMiddleware.js +19 -0
- package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/httpSigningMiddleware.js +27 -0
- package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/index.js +5 -0
- package/node_modules/@smithy/core/dist-cjs/normalizeProvider.js +10 -0
- package/node_modules/@smithy/core/dist-cjs/pagination/createPaginator.js +44 -0
- package/node_modules/@smithy/core/dist-cjs/request-builder/requestBuilder.js +5 -0
- package/node_modules/@smithy/core/dist-cjs/setFeature.js +14 -0
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/DefaultIdentityProviderConfig.js +17 -0
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/httpApiKeyAuth.js +38 -0
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/httpBearerAuth.js +15 -0
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/index.js +6 -0
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/noAuth.js +9 -0
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/index.js +6 -0
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/memoizeIdentityProvider.js +61 -0
- package/node_modules/@smithy/core/package.json +15 -16
- package/node_modules/@smithy/credential-provider-imds/package.json +9 -10
- package/node_modules/@smithy/eventstream-codec/dist-cjs/index.js +13 -0
- package/node_modules/@smithy/eventstream-codec/package.json +6 -7
- package/node_modules/@smithy/eventstream-serde-browser/package.json +7 -8
- package/node_modules/@smithy/eventstream-serde-config-resolver/package.json +7 -8
- package/node_modules/@smithy/eventstream-serde-node/package.json +7 -8
- package/node_modules/@smithy/eventstream-serde-universal/package.json +9 -10
- package/node_modules/@smithy/fetch-http-handler/package.json +12 -13
- package/node_modules/@smithy/hash-node/package.json +6 -7
- package/node_modules/@smithy/invalid-dependency/package.json +6 -7
- package/node_modules/@smithy/middleware-content-length/package.json +7 -8
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +2 -2
- package/node_modules/@smithy/middleware-endpoint/package.json +13 -14
- package/node_modules/@smithy/middleware-retry/dist-cjs/index.js +70 -29
- package/node_modules/@smithy/middleware-retry/dist-es/index.js +5 -4
- package/node_modules/@smithy/middleware-retry/dist-es/longPollMiddleware.js +15 -0
- package/node_modules/@smithy/middleware-retry/dist-es/parseRetryAfterHeader.js +49 -0
- package/node_modules/@smithy/middleware-retry/dist-es/{StandardRetryStrategy.js → retry-pre-sra-deprecated/StandardRetryStrategy.js} +1 -1
- package/node_modules/@smithy/middleware-retry/dist-es/retryMiddleware.js +13 -20
- package/node_modules/@smithy/middleware-retry/package.json +16 -16
- package/node_modules/@smithy/middleware-serde/package.json +10 -11
- package/node_modules/@smithy/middleware-stack/package.json +7 -8
- package/node_modules/@smithy/node-config-provider/package.json +8 -9
- package/node_modules/@smithy/node-http-handler/package.json +10 -11
- package/node_modules/@smithy/property-provider/package.json +6 -7
- package/node_modules/@smithy/protocol-http/package.json +6 -7
- package/node_modules/@smithy/querystring-builder/package.json +6 -7
- package/node_modules/@smithy/querystring-parser/package.json +6 -7
- package/node_modules/@smithy/service-error-classification/package.json +6 -7
- package/node_modules/@smithy/shared-ini-file-loader/package.json +7 -8
- package/node_modules/@smithy/signature-v4/dist-cjs/index.js +13 -0
- package/node_modules/@smithy/signature-v4/package.json +9 -10
- package/node_modules/@smithy/smithy-client/dist-cjs/index.js +1 -1
- package/node_modules/@smithy/smithy-client/package.json +14 -15
- package/node_modules/@smithy/types/package.json +7 -8
- package/node_modules/@smithy/url-parser/package.json +7 -8
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +8 -9
- package/node_modules/@smithy/util-defaults-mode-node/package.json +11 -12
- package/node_modules/@smithy/util-endpoints/package.json +9 -10
- package/node_modules/@smithy/util-middleware/package.json +6 -7
- package/node_modules/@smithy/util-retry/dist-cjs/index.js +123 -76
- package/node_modules/@smithy/util-retry/dist-es/AdaptiveRetryStrategy.js +7 -4
- package/node_modules/@smithy/util-retry/dist-es/ConfiguredRetryStrategy.js +2 -2
- package/node_modules/@smithy/util-retry/dist-es/DefaultRateLimiter.js +24 -25
- package/node_modules/@smithy/util-retry/dist-es/DefaultRetryBackoffStrategy.js +14 -0
- package/node_modules/@smithy/util-retry/dist-es/DefaultRetryToken.js +25 -0
- package/node_modules/@smithy/util-retry/dist-es/StandardRetryStrategy.js +39 -26
- package/node_modules/@smithy/util-retry/dist-es/index.js +1 -0
- package/node_modules/@smithy/util-retry/dist-es/retries-2026-config.js +18 -0
- package/node_modules/@smithy/util-retry/package.json +10 -11
- package/node_modules/@smithy/util-stream/package.json +12 -13
- package/node_modules/@snazzah/davey-linux-x64-gnu/davey.linux-x64-gnu.node +0 -0
- package/node_modules/@snazzah/davey-linux-x64-gnu/package.json +43 -0
- package/node_modules/@snazzah/davey-linux-x64-musl/davey.linux-x64-musl.node +0 -0
- package/node_modules/@snazzah/davey-linux-x64-musl/package.json +43 -0
- package/node_modules/dotenv/lib/main.js +1 -1
- package/node_modules/dotenv/package.json +1 -1
- package/node_modules/dotenv/skills/dotenv/SKILL.md +32 -52
- package/node_modules/dotenv/skills/dotenvx/SKILL.md +57 -273
- package/node_modules/grammy/out/bot.js +1 -0
- package/node_modules/grammy/out/context.js +35 -0
- package/node_modules/grammy/out/convenience/keyboard.js +30 -2
- package/node_modules/grammy/out/core/api.js +34 -0
- package/node_modules/grammy/out/filter.js +6 -2
- package/node_modules/grammy/out/web.mjs +58 -10
- package/node_modules/grammy/package.json +2 -2
- package/node_modules/lru-cache/dist/commonjs/diagnostics-channel.js +12 -0
- package/node_modules/lru-cache/dist/commonjs/index.js +227 -130
- package/node_modules/lru-cache/dist/commonjs/index.min.js +1 -1
- package/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.d.mts.map +1 -0
- package/node_modules/lru-cache/dist/esm/diagnostics-channel.js +17 -0
- package/node_modules/lru-cache/dist/esm/index.js +227 -130
- package/node_modules/lru-cache/dist/esm/index.min.js +1 -1
- package/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.d.mts.map +1 -0
- package/node_modules/lru-cache/dist/esm/node/diagnostics-channel.js +8 -0
- package/node_modules/lru-cache/dist/esm/node/index.js +1688 -0
- package/node_modules/lru-cache/dist/esm/node/index.min.js +2 -0
- package/node_modules/lru-cache/package.json +29 -9
- package/node_modules/netmask/dist/netmask.js +58 -0
- package/node_modules/netmask/dist/netmask4.js +189 -0
- package/node_modules/netmask/dist/netmask6.js +187 -0
- package/node_modules/netmask/package.json +15 -6
- package/node_modules/path-expression-matcher/lib/pem.cjs +1 -1
- package/node_modules/path-expression-matcher/lib/pem.d.cts +93 -0
- package/node_modules/path-expression-matcher/lib/pem.min.js +1 -1
- package/node_modules/path-expression-matcher/package.json +1 -1
- package/node_modules/path-expression-matcher/src/ExpressionSet.js +189 -0
- package/node_modules/path-expression-matcher/src/Matcher.js +50 -20
- package/node_modules/path-expression-matcher/src/index.js +3 -2
- package/node_modules/strnum/package.json +1 -1
- package/package.json +1 -1
- package/preset-config.json +12 -0
- package/node_modules/@smithy/util-retry/dist-es/defaultRetryBackoffStrategy.js +0 -14
- package/node_modules/@smithy/util-retry/dist-es/defaultRetryToken.js +0 -11
- package/node_modules/netmask/CREDITS.md +0 -30
- package/node_modules/netmask/lib/netmask.coffee +0 -167
- package/node_modules/netmask/lib/netmask.js +0 -208
- package/node_modules/strnum/.github/SECURITY.md +0 -5
- package/node_modules/strnum/.vscode/launch.json +0 -25
- package/node_modules/strnum/algo.stflow +0 -84
- package/skills/sherpa-onnx-tts/bin/sherpa-onnx-tts +0 -178
- /package/node_modules/@smithy/middleware-retry/dist-es/{AdaptiveRetryStrategy.js → retry-pre-sra-deprecated/AdaptiveRetryStrategy.js} +0 -0
- /package/node_modules/@smithy/middleware-retry/dist-es/{defaultRetryQuota.js → retry-pre-sra-deprecated/defaultRetryQuota.js} +0 -0
- /package/node_modules/@smithy/middleware-retry/dist-es/{delayDecider.js → retry-pre-sra-deprecated/delayDecider.js} +0 -0
- /package/node_modules/@smithy/middleware-retry/dist-es/{retryDecider.js → retry-pre-sra-deprecated/retryDecider.js} +0 -0
- /package/node_modules/@smithy/middleware-retry/dist-es/{types.js → retry-pre-sra-deprecated/types.js} +0 -0
|
@@ -0,0 +1,1688 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module LRUCache
|
|
3
|
+
*/
|
|
4
|
+
import { metrics, tracing } from './diagnostics-channel.js';
|
|
5
|
+
const hasSubscribers = () => metrics.hasSubscribers || tracing.hasSubscribers;
|
|
6
|
+
const defaultPerf = (typeof performance === 'object' &&
|
|
7
|
+
performance &&
|
|
8
|
+
typeof performance.now === 'function') ?
|
|
9
|
+
performance
|
|
10
|
+
: Date;
|
|
11
|
+
const warned = new Set();
|
|
12
|
+
/* c8 ignore start */
|
|
13
|
+
const PROCESS = (typeof process === 'object' && !!process ?
|
|
14
|
+
process
|
|
15
|
+
: {});
|
|
16
|
+
/* c8 ignore stop */
|
|
17
|
+
const emitWarning = (msg, type, code, fn) => {
|
|
18
|
+
if (typeof PROCESS.emitWarning === 'function') {
|
|
19
|
+
PROCESS.emitWarning(msg, type, code, fn);
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
//oxlint-disable-next-line no-console
|
|
23
|
+
console.error(`[${code}] ${type}: ${msg}`);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
const shouldWarn = (code) => !warned.has(code);
|
|
27
|
+
const TYPE = Symbol('type');
|
|
28
|
+
const isPosInt = (n) => !!n && n === Math.floor(n) && n > 0 && isFinite(n);
|
|
29
|
+
// This is a little bit ridiculous, tbh.
|
|
30
|
+
// The maximum array length is 2^32-1 or thereabouts on most JS impls.
|
|
31
|
+
// And well before that point, you're caching the entire world, I mean,
|
|
32
|
+
// that's ~32GB of just integers for the next/prev links, plus whatever
|
|
33
|
+
// else to hold that many keys and values. Just filling the memory with
|
|
34
|
+
// zeroes at init time is brutal when you get that big.
|
|
35
|
+
// But why not be complete?
|
|
36
|
+
// Maybe in the future, these limits will have expanded.
|
|
37
|
+
/* c8 ignore start */
|
|
38
|
+
const getUintArray = (max) => !isPosInt(max) ? null
|
|
39
|
+
: max <= Math.pow(2, 8) ? Uint8Array
|
|
40
|
+
: max <= Math.pow(2, 16) ? Uint16Array
|
|
41
|
+
: max <= Math.pow(2, 32) ? Uint32Array
|
|
42
|
+
: max <= Number.MAX_SAFE_INTEGER ? ZeroArray
|
|
43
|
+
: null;
|
|
44
|
+
/* c8 ignore stop */
|
|
45
|
+
class ZeroArray extends Array {
|
|
46
|
+
constructor(size) {
|
|
47
|
+
super(size);
|
|
48
|
+
this.fill(0);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
class Stack {
|
|
52
|
+
heap;
|
|
53
|
+
length;
|
|
54
|
+
// private constructor
|
|
55
|
+
static #constructing = false;
|
|
56
|
+
static create(max) {
|
|
57
|
+
const HeapCls = getUintArray(max);
|
|
58
|
+
if (!HeapCls)
|
|
59
|
+
return [];
|
|
60
|
+
Stack.#constructing = true;
|
|
61
|
+
const s = new Stack(max, HeapCls);
|
|
62
|
+
Stack.#constructing = false;
|
|
63
|
+
return s;
|
|
64
|
+
}
|
|
65
|
+
constructor(max, HeapCls) {
|
|
66
|
+
/* c8 ignore start */
|
|
67
|
+
if (!Stack.#constructing) {
|
|
68
|
+
throw new TypeError('instantiate Stack using Stack.create(n)');
|
|
69
|
+
}
|
|
70
|
+
/* c8 ignore stop */
|
|
71
|
+
this.heap = new HeapCls(max);
|
|
72
|
+
this.length = 0;
|
|
73
|
+
}
|
|
74
|
+
push(n) {
|
|
75
|
+
this.heap[this.length++] = n;
|
|
76
|
+
}
|
|
77
|
+
pop() {
|
|
78
|
+
return this.heap[--this.length];
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Default export, the thing you're using this module to get.
|
|
83
|
+
*
|
|
84
|
+
* The `K` and `V` types define the key and value types, respectively. The
|
|
85
|
+
* optional `FC` type defines the type of the `context` object passed to
|
|
86
|
+
* `cache.fetch()` and `cache.memo()`.
|
|
87
|
+
*
|
|
88
|
+
* Keys and values **must not** be `null` or `undefined`.
|
|
89
|
+
*
|
|
90
|
+
* All properties from the options object (with the exception of `max`,
|
|
91
|
+
* `maxSize`, `fetchMethod`, `memoMethod`, `dispose` and `disposeAfter`) are
|
|
92
|
+
* added as normal public members. (The listed options are read-only getters.)
|
|
93
|
+
*
|
|
94
|
+
* Changing any of these will alter the defaults for subsequent method calls.
|
|
95
|
+
*/
|
|
96
|
+
export class LRUCache {
|
|
97
|
+
// options that cannot be changed without disaster
|
|
98
|
+
#max;
|
|
99
|
+
#maxSize;
|
|
100
|
+
#dispose;
|
|
101
|
+
#onInsert;
|
|
102
|
+
#disposeAfter;
|
|
103
|
+
#fetchMethod;
|
|
104
|
+
#memoMethod;
|
|
105
|
+
#perf;
|
|
106
|
+
/**
|
|
107
|
+
* {@link LRUCache.OptionsBase.perf}
|
|
108
|
+
*/
|
|
109
|
+
get perf() {
|
|
110
|
+
return this.#perf;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* {@link LRUCache.OptionsBase.ttl}
|
|
114
|
+
*/
|
|
115
|
+
ttl;
|
|
116
|
+
/**
|
|
117
|
+
* {@link LRUCache.OptionsBase.ttlResolution}
|
|
118
|
+
*/
|
|
119
|
+
ttlResolution;
|
|
120
|
+
/**
|
|
121
|
+
* {@link LRUCache.OptionsBase.ttlAutopurge}
|
|
122
|
+
*/
|
|
123
|
+
ttlAutopurge;
|
|
124
|
+
/**
|
|
125
|
+
* {@link LRUCache.OptionsBase.updateAgeOnGet}
|
|
126
|
+
*/
|
|
127
|
+
updateAgeOnGet;
|
|
128
|
+
/**
|
|
129
|
+
* {@link LRUCache.OptionsBase.updateAgeOnHas}
|
|
130
|
+
*/
|
|
131
|
+
updateAgeOnHas;
|
|
132
|
+
/**
|
|
133
|
+
* {@link LRUCache.OptionsBase.allowStale}
|
|
134
|
+
*/
|
|
135
|
+
allowStale;
|
|
136
|
+
/**
|
|
137
|
+
* {@link LRUCache.OptionsBase.noDisposeOnSet}
|
|
138
|
+
*/
|
|
139
|
+
noDisposeOnSet;
|
|
140
|
+
/**
|
|
141
|
+
* {@link LRUCache.OptionsBase.noUpdateTTL}
|
|
142
|
+
*/
|
|
143
|
+
noUpdateTTL;
|
|
144
|
+
/**
|
|
145
|
+
* {@link LRUCache.OptionsBase.maxEntrySize}
|
|
146
|
+
*/
|
|
147
|
+
maxEntrySize;
|
|
148
|
+
/**
|
|
149
|
+
* {@link LRUCache.OptionsBase.sizeCalculation}
|
|
150
|
+
*/
|
|
151
|
+
sizeCalculation;
|
|
152
|
+
/**
|
|
153
|
+
* {@link LRUCache.OptionsBase.noDeleteOnFetchRejection}
|
|
154
|
+
*/
|
|
155
|
+
noDeleteOnFetchRejection;
|
|
156
|
+
/**
|
|
157
|
+
* {@link LRUCache.OptionsBase.noDeleteOnStaleGet}
|
|
158
|
+
*/
|
|
159
|
+
noDeleteOnStaleGet;
|
|
160
|
+
/**
|
|
161
|
+
* {@link LRUCache.OptionsBase.allowStaleOnFetchAbort}
|
|
162
|
+
*/
|
|
163
|
+
allowStaleOnFetchAbort;
|
|
164
|
+
/**
|
|
165
|
+
* {@link LRUCache.OptionsBase.allowStaleOnFetchRejection}
|
|
166
|
+
*/
|
|
167
|
+
allowStaleOnFetchRejection;
|
|
168
|
+
/**
|
|
169
|
+
* {@link LRUCache.OptionsBase.ignoreFetchAbort}
|
|
170
|
+
*/
|
|
171
|
+
ignoreFetchAbort;
|
|
172
|
+
// computed properties
|
|
173
|
+
#size;
|
|
174
|
+
#calculatedSize;
|
|
175
|
+
#keyMap;
|
|
176
|
+
#keyList;
|
|
177
|
+
#valList;
|
|
178
|
+
#next;
|
|
179
|
+
#prev;
|
|
180
|
+
#head;
|
|
181
|
+
#tail;
|
|
182
|
+
#free;
|
|
183
|
+
#disposed;
|
|
184
|
+
#sizes;
|
|
185
|
+
#starts;
|
|
186
|
+
#ttls;
|
|
187
|
+
#autopurgeTimers;
|
|
188
|
+
#hasDispose;
|
|
189
|
+
#hasFetchMethod;
|
|
190
|
+
#hasDisposeAfter;
|
|
191
|
+
#hasOnInsert;
|
|
192
|
+
/**
|
|
193
|
+
* Do not call this method unless you need to inspect the
|
|
194
|
+
* inner workings of the cache. If anything returned by this
|
|
195
|
+
* object is modified in any way, strange breakage may occur.
|
|
196
|
+
*
|
|
197
|
+
* These fields are private for a reason!
|
|
198
|
+
*
|
|
199
|
+
* @internal
|
|
200
|
+
*/
|
|
201
|
+
static unsafeExposeInternals(c) {
|
|
202
|
+
return {
|
|
203
|
+
// properties
|
|
204
|
+
starts: c.#starts,
|
|
205
|
+
ttls: c.#ttls,
|
|
206
|
+
autopurgeTimers: c.#autopurgeTimers,
|
|
207
|
+
sizes: c.#sizes,
|
|
208
|
+
keyMap: c.#keyMap,
|
|
209
|
+
keyList: c.#keyList,
|
|
210
|
+
valList: c.#valList,
|
|
211
|
+
next: c.#next,
|
|
212
|
+
prev: c.#prev,
|
|
213
|
+
get head() {
|
|
214
|
+
return c.#head;
|
|
215
|
+
},
|
|
216
|
+
get tail() {
|
|
217
|
+
return c.#tail;
|
|
218
|
+
},
|
|
219
|
+
free: c.#free,
|
|
220
|
+
// methods
|
|
221
|
+
isBackgroundFetch: (p) => c.#isBackgroundFetch(p),
|
|
222
|
+
backgroundFetch: (k, index, options, context) => c.#backgroundFetch(k, index, options, context),
|
|
223
|
+
moveToTail: (index) => c.#moveToTail(index),
|
|
224
|
+
indexes: (options) => c.#indexes(options),
|
|
225
|
+
rindexes: (options) => c.#rindexes(options),
|
|
226
|
+
isStale: (index) => c.#isStale(index),
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
// Protected read-only members
|
|
230
|
+
/**
|
|
231
|
+
* {@link LRUCache.OptionsBase.max} (read-only)
|
|
232
|
+
*/
|
|
233
|
+
get max() {
|
|
234
|
+
return this.#max;
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* {@link LRUCache.OptionsBase.maxSize} (read-only)
|
|
238
|
+
*/
|
|
239
|
+
get maxSize() {
|
|
240
|
+
return this.#maxSize;
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* The total computed size of items in the cache (read-only)
|
|
244
|
+
*/
|
|
245
|
+
get calculatedSize() {
|
|
246
|
+
return this.#calculatedSize;
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* The number of items stored in the cache (read-only)
|
|
250
|
+
*/
|
|
251
|
+
get size() {
|
|
252
|
+
return this.#size;
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* {@link LRUCache.OptionsBase.fetchMethod} (read-only)
|
|
256
|
+
*/
|
|
257
|
+
get fetchMethod() {
|
|
258
|
+
return this.#fetchMethod;
|
|
259
|
+
}
|
|
260
|
+
get memoMethod() {
|
|
261
|
+
return this.#memoMethod;
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* {@link LRUCache.OptionsBase.dispose} (read-only)
|
|
265
|
+
*/
|
|
266
|
+
get dispose() {
|
|
267
|
+
return this.#dispose;
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* {@link LRUCache.OptionsBase.onInsert} (read-only)
|
|
271
|
+
*/
|
|
272
|
+
get onInsert() {
|
|
273
|
+
return this.#onInsert;
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* {@link LRUCache.OptionsBase.disposeAfter} (read-only)
|
|
277
|
+
*/
|
|
278
|
+
get disposeAfter() {
|
|
279
|
+
return this.#disposeAfter;
|
|
280
|
+
}
|
|
281
|
+
constructor(options) {
|
|
282
|
+
const { max = 0, ttl, ttlResolution = 1, ttlAutopurge, updateAgeOnGet, updateAgeOnHas, allowStale, dispose, onInsert, disposeAfter, noDisposeOnSet, noUpdateTTL, maxSize = 0, maxEntrySize = 0, sizeCalculation, fetchMethod, memoMethod, noDeleteOnFetchRejection, noDeleteOnStaleGet, allowStaleOnFetchRejection, allowStaleOnFetchAbort, ignoreFetchAbort, perf, } = options;
|
|
283
|
+
if (perf !== undefined) {
|
|
284
|
+
if (typeof perf?.now !== 'function') {
|
|
285
|
+
throw new TypeError('perf option must have a now() method if specified');
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
this.#perf = perf ?? defaultPerf;
|
|
289
|
+
if (max !== 0 && !isPosInt(max)) {
|
|
290
|
+
throw new TypeError('max option must be a nonnegative integer');
|
|
291
|
+
}
|
|
292
|
+
const UintArray = max ? getUintArray(max) : Array;
|
|
293
|
+
if (!UintArray) {
|
|
294
|
+
throw new Error('invalid max value: ' + max);
|
|
295
|
+
}
|
|
296
|
+
this.#max = max;
|
|
297
|
+
this.#maxSize = maxSize;
|
|
298
|
+
this.maxEntrySize = maxEntrySize || this.#maxSize;
|
|
299
|
+
this.sizeCalculation = sizeCalculation;
|
|
300
|
+
if (this.sizeCalculation) {
|
|
301
|
+
if (!this.#maxSize && !this.maxEntrySize) {
|
|
302
|
+
throw new TypeError('cannot set sizeCalculation without setting maxSize or maxEntrySize');
|
|
303
|
+
}
|
|
304
|
+
if (typeof this.sizeCalculation !== 'function') {
|
|
305
|
+
throw new TypeError('sizeCalculation set to non-function');
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
if (memoMethod !== undefined && typeof memoMethod !== 'function') {
|
|
309
|
+
throw new TypeError('memoMethod must be a function if defined');
|
|
310
|
+
}
|
|
311
|
+
this.#memoMethod = memoMethod;
|
|
312
|
+
if (fetchMethod !== undefined && typeof fetchMethod !== 'function') {
|
|
313
|
+
throw new TypeError('fetchMethod must be a function if specified');
|
|
314
|
+
}
|
|
315
|
+
this.#fetchMethod = fetchMethod;
|
|
316
|
+
this.#hasFetchMethod = !!fetchMethod;
|
|
317
|
+
this.#keyMap = new Map();
|
|
318
|
+
this.#keyList = Array.from({ length: max }).fill(undefined);
|
|
319
|
+
this.#valList = Array.from({ length: max }).fill(undefined);
|
|
320
|
+
this.#next = new UintArray(max);
|
|
321
|
+
this.#prev = new UintArray(max);
|
|
322
|
+
this.#head = 0;
|
|
323
|
+
this.#tail = 0;
|
|
324
|
+
this.#free = Stack.create(max);
|
|
325
|
+
this.#size = 0;
|
|
326
|
+
this.#calculatedSize = 0;
|
|
327
|
+
if (typeof dispose === 'function') {
|
|
328
|
+
this.#dispose = dispose;
|
|
329
|
+
}
|
|
330
|
+
if (typeof onInsert === 'function') {
|
|
331
|
+
this.#onInsert = onInsert;
|
|
332
|
+
}
|
|
333
|
+
if (typeof disposeAfter === 'function') {
|
|
334
|
+
this.#disposeAfter = disposeAfter;
|
|
335
|
+
this.#disposed = [];
|
|
336
|
+
}
|
|
337
|
+
else {
|
|
338
|
+
this.#disposeAfter = undefined;
|
|
339
|
+
this.#disposed = undefined;
|
|
340
|
+
}
|
|
341
|
+
this.#hasDispose = !!this.#dispose;
|
|
342
|
+
this.#hasOnInsert = !!this.#onInsert;
|
|
343
|
+
this.#hasDisposeAfter = !!this.#disposeAfter;
|
|
344
|
+
this.noDisposeOnSet = !!noDisposeOnSet;
|
|
345
|
+
this.noUpdateTTL = !!noUpdateTTL;
|
|
346
|
+
this.noDeleteOnFetchRejection = !!noDeleteOnFetchRejection;
|
|
347
|
+
this.allowStaleOnFetchRejection = !!allowStaleOnFetchRejection;
|
|
348
|
+
this.allowStaleOnFetchAbort = !!allowStaleOnFetchAbort;
|
|
349
|
+
this.ignoreFetchAbort = !!ignoreFetchAbort;
|
|
350
|
+
// NB: maxEntrySize is set to maxSize if it's set
|
|
351
|
+
if (this.maxEntrySize !== 0) {
|
|
352
|
+
if (this.#maxSize !== 0) {
|
|
353
|
+
if (!isPosInt(this.#maxSize)) {
|
|
354
|
+
throw new TypeError('maxSize must be a positive integer if specified');
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
if (!isPosInt(this.maxEntrySize)) {
|
|
358
|
+
throw new TypeError('maxEntrySize must be a positive integer if specified');
|
|
359
|
+
}
|
|
360
|
+
this.#initializeSizeTracking();
|
|
361
|
+
}
|
|
362
|
+
this.allowStale = !!allowStale;
|
|
363
|
+
this.noDeleteOnStaleGet = !!noDeleteOnStaleGet;
|
|
364
|
+
this.updateAgeOnGet = !!updateAgeOnGet;
|
|
365
|
+
this.updateAgeOnHas = !!updateAgeOnHas;
|
|
366
|
+
this.ttlResolution =
|
|
367
|
+
isPosInt(ttlResolution) || ttlResolution === 0 ? ttlResolution : 1;
|
|
368
|
+
this.ttlAutopurge = !!ttlAutopurge;
|
|
369
|
+
this.ttl = ttl || 0;
|
|
370
|
+
if (this.ttl) {
|
|
371
|
+
if (!isPosInt(this.ttl)) {
|
|
372
|
+
throw new TypeError('ttl must be a positive integer if specified');
|
|
373
|
+
}
|
|
374
|
+
this.#initializeTTLTracking();
|
|
375
|
+
}
|
|
376
|
+
// do not allow completely unbounded caches
|
|
377
|
+
if (this.#max === 0 && this.ttl === 0 && this.#maxSize === 0) {
|
|
378
|
+
throw new TypeError('At least one of max, maxSize, or ttl is required');
|
|
379
|
+
}
|
|
380
|
+
if (!this.ttlAutopurge && !this.#max && !this.#maxSize) {
|
|
381
|
+
const code = 'LRU_CACHE_UNBOUNDED';
|
|
382
|
+
if (shouldWarn(code)) {
|
|
383
|
+
warned.add(code);
|
|
384
|
+
const msg = 'TTL caching without ttlAutopurge, max, or maxSize can ' +
|
|
385
|
+
'result in unbounded memory consumption.';
|
|
386
|
+
emitWarning(msg, 'UnboundedCacheWarning', code, LRUCache);
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
/**
|
|
391
|
+
* Return the number of ms left in the item's TTL. If item is not in cache,
|
|
392
|
+
* returns `0`. Returns `Infinity` if item is in cache without a defined TTL.
|
|
393
|
+
*/
|
|
394
|
+
getRemainingTTL(key) {
|
|
395
|
+
return this.#keyMap.has(key) ? Infinity : 0;
|
|
396
|
+
}
|
|
397
|
+
#initializeTTLTracking() {
|
|
398
|
+
const ttls = new ZeroArray(this.#max);
|
|
399
|
+
const starts = new ZeroArray(this.#max);
|
|
400
|
+
this.#ttls = ttls;
|
|
401
|
+
this.#starts = starts;
|
|
402
|
+
const purgeTimers = this.ttlAutopurge ?
|
|
403
|
+
Array.from({
|
|
404
|
+
length: this.#max,
|
|
405
|
+
})
|
|
406
|
+
: undefined;
|
|
407
|
+
this.#autopurgeTimers = purgeTimers;
|
|
408
|
+
this.#setItemTTL = (index, ttl, start = this.#perf.now()) => {
|
|
409
|
+
starts[index] = ttl !== 0 ? start : 0;
|
|
410
|
+
ttls[index] = ttl;
|
|
411
|
+
setPurgetTimer(index, ttl);
|
|
412
|
+
};
|
|
413
|
+
this.#updateItemAge = index => {
|
|
414
|
+
starts[index] = ttls[index] !== 0 ? this.#perf.now() : 0;
|
|
415
|
+
setPurgetTimer(index, ttls[index]);
|
|
416
|
+
};
|
|
417
|
+
// clear out the purge timer if we're setting TTL to 0, and
|
|
418
|
+
// previously had a ttl purge timer running, so it doesn't
|
|
419
|
+
// fire unnecessarily. Don't need to do this if we're not doing
|
|
420
|
+
// autopurge.
|
|
421
|
+
const setPurgetTimer = !this.ttlAutopurge ?
|
|
422
|
+
() => { }
|
|
423
|
+
: (index, ttl) => {
|
|
424
|
+
if (purgeTimers?.[index]) {
|
|
425
|
+
clearTimeout(purgeTimers[index]);
|
|
426
|
+
purgeTimers[index] = undefined;
|
|
427
|
+
}
|
|
428
|
+
if (ttl && ttl !== 0 && purgeTimers) {
|
|
429
|
+
const t = setTimeout(() => {
|
|
430
|
+
if (this.#isStale(index)) {
|
|
431
|
+
this.#delete(this.#keyList[index], 'expire');
|
|
432
|
+
}
|
|
433
|
+
}, ttl + 1);
|
|
434
|
+
// unref() not supported on all platforms
|
|
435
|
+
/* c8 ignore start */
|
|
436
|
+
if (t.unref) {
|
|
437
|
+
t.unref();
|
|
438
|
+
}
|
|
439
|
+
/* c8 ignore stop */
|
|
440
|
+
purgeTimers[index] = t;
|
|
441
|
+
}
|
|
442
|
+
};
|
|
443
|
+
this.#statusTTL = (status, index) => {
|
|
444
|
+
if (ttls[index]) {
|
|
445
|
+
const ttl = ttls[index];
|
|
446
|
+
const start = starts[index];
|
|
447
|
+
/* c8 ignore start */
|
|
448
|
+
if (!ttl || !start) {
|
|
449
|
+
return;
|
|
450
|
+
}
|
|
451
|
+
/* c8 ignore stop */
|
|
452
|
+
status.ttl = ttl;
|
|
453
|
+
status.start = start;
|
|
454
|
+
status.now = cachedNow || getNow();
|
|
455
|
+
const age = status.now - start;
|
|
456
|
+
status.remainingTTL = ttl - age;
|
|
457
|
+
}
|
|
458
|
+
};
|
|
459
|
+
// debounce calls to perf.now() to 1s so we're not hitting
|
|
460
|
+
// that costly call repeatedly.
|
|
461
|
+
let cachedNow = 0;
|
|
462
|
+
const getNow = () => {
|
|
463
|
+
const n = this.#perf.now();
|
|
464
|
+
if (this.ttlResolution > 0) {
|
|
465
|
+
cachedNow = n;
|
|
466
|
+
const t = setTimeout(() => (cachedNow = 0), this.ttlResolution);
|
|
467
|
+
// not available on all platforms
|
|
468
|
+
/* c8 ignore start */
|
|
469
|
+
if (t.unref) {
|
|
470
|
+
t.unref();
|
|
471
|
+
}
|
|
472
|
+
/* c8 ignore stop */
|
|
473
|
+
}
|
|
474
|
+
return n;
|
|
475
|
+
};
|
|
476
|
+
this.getRemainingTTL = key => {
|
|
477
|
+
const index = this.#keyMap.get(key);
|
|
478
|
+
if (index === undefined) {
|
|
479
|
+
return 0;
|
|
480
|
+
}
|
|
481
|
+
const ttl = ttls[index];
|
|
482
|
+
const start = starts[index];
|
|
483
|
+
if (!ttl || !start) {
|
|
484
|
+
return Infinity;
|
|
485
|
+
}
|
|
486
|
+
const age = (cachedNow || getNow()) - start;
|
|
487
|
+
return ttl - age;
|
|
488
|
+
};
|
|
489
|
+
this.#isStale = index => {
|
|
490
|
+
const s = starts[index];
|
|
491
|
+
const t = ttls[index];
|
|
492
|
+
return !!t && !!s && (cachedNow || getNow()) - s > t;
|
|
493
|
+
};
|
|
494
|
+
}
|
|
495
|
+
// conditionally set private methods related to TTL
|
|
496
|
+
#updateItemAge = () => { };
|
|
497
|
+
#statusTTL = () => { };
|
|
498
|
+
#setItemTTL = () => { };
|
|
499
|
+
/* c8 ignore stop */
|
|
500
|
+
#isStale = () => false;
|
|
501
|
+
#initializeSizeTracking() {
|
|
502
|
+
const sizes = new ZeroArray(this.#max);
|
|
503
|
+
this.#calculatedSize = 0;
|
|
504
|
+
this.#sizes = sizes;
|
|
505
|
+
this.#removeItemSize = index => {
|
|
506
|
+
this.#calculatedSize -= sizes[index];
|
|
507
|
+
sizes[index] = 0;
|
|
508
|
+
};
|
|
509
|
+
this.#requireSize = (k, v, size, sizeCalculation) => {
|
|
510
|
+
// provisionally accept background fetches.
|
|
511
|
+
// actual value size will be checked when they return.
|
|
512
|
+
if (this.#isBackgroundFetch(v)) {
|
|
513
|
+
return 0;
|
|
514
|
+
}
|
|
515
|
+
if (!isPosInt(size)) {
|
|
516
|
+
if (sizeCalculation) {
|
|
517
|
+
if (typeof sizeCalculation !== 'function') {
|
|
518
|
+
throw new TypeError('sizeCalculation must be a function');
|
|
519
|
+
}
|
|
520
|
+
size = sizeCalculation(v, k);
|
|
521
|
+
if (!isPosInt(size)) {
|
|
522
|
+
throw new TypeError('sizeCalculation return invalid (expect positive integer)');
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
else {
|
|
526
|
+
throw new TypeError('invalid size value (must be positive integer). ' +
|
|
527
|
+
'When maxSize or maxEntrySize is used, sizeCalculation ' +
|
|
528
|
+
'or size must be set.');
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
return size;
|
|
532
|
+
};
|
|
533
|
+
this.#addItemSize = (index, size, status) => {
|
|
534
|
+
sizes[index] = size;
|
|
535
|
+
if (this.#maxSize) {
|
|
536
|
+
const maxSize = this.#maxSize - sizes[index];
|
|
537
|
+
while (this.#calculatedSize > maxSize) {
|
|
538
|
+
this.#evict(true);
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
this.#calculatedSize += sizes[index];
|
|
542
|
+
if (status) {
|
|
543
|
+
status.entrySize = size;
|
|
544
|
+
status.totalCalculatedSize = this.#calculatedSize;
|
|
545
|
+
}
|
|
546
|
+
};
|
|
547
|
+
}
|
|
548
|
+
#removeItemSize = _i => { };
|
|
549
|
+
#addItemSize = (_i, _s, _st) => { };
|
|
550
|
+
#requireSize = (_k, _v, size, sizeCalculation) => {
|
|
551
|
+
if (size || sizeCalculation) {
|
|
552
|
+
throw new TypeError('cannot set size without setting maxSize or maxEntrySize on cache');
|
|
553
|
+
}
|
|
554
|
+
return 0;
|
|
555
|
+
};
|
|
556
|
+
*#indexes({ allowStale = this.allowStale } = {}) {
|
|
557
|
+
if (this.#size) {
|
|
558
|
+
for (let i = this.#tail; this.#isValidIndex(i);) {
|
|
559
|
+
if (allowStale || !this.#isStale(i)) {
|
|
560
|
+
yield i;
|
|
561
|
+
}
|
|
562
|
+
if (i === this.#head) {
|
|
563
|
+
break;
|
|
564
|
+
}
|
|
565
|
+
else {
|
|
566
|
+
i = this.#prev[i];
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
*#rindexes({ allowStale = this.allowStale } = {}) {
|
|
572
|
+
if (this.#size) {
|
|
573
|
+
for (let i = this.#head; this.#isValidIndex(i);) {
|
|
574
|
+
if (allowStale || !this.#isStale(i)) {
|
|
575
|
+
yield i;
|
|
576
|
+
}
|
|
577
|
+
if (i === this.#tail) {
|
|
578
|
+
break;
|
|
579
|
+
}
|
|
580
|
+
else {
|
|
581
|
+
i = this.#next[i];
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
#isValidIndex(index) {
|
|
587
|
+
return (index !== undefined &&
|
|
588
|
+
this.#keyMap.get(this.#keyList[index]) === index);
|
|
589
|
+
}
|
|
590
|
+
/**
|
|
591
|
+
* Return a generator yielding `[key, value]` pairs,
|
|
592
|
+
* in order from most recently used to least recently used.
|
|
593
|
+
*/
|
|
594
|
+
*entries() {
|
|
595
|
+
for (const i of this.#indexes()) {
|
|
596
|
+
if (this.#valList[i] !== undefined &&
|
|
597
|
+
this.#keyList[i] !== undefined &&
|
|
598
|
+
!this.#isBackgroundFetch(this.#valList[i])) {
|
|
599
|
+
yield [this.#keyList[i], this.#valList[i]];
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
/**
|
|
604
|
+
* Inverse order version of {@link LRUCache.entries}
|
|
605
|
+
*
|
|
606
|
+
* Return a generator yielding `[key, value]` pairs,
|
|
607
|
+
* in order from least recently used to most recently used.
|
|
608
|
+
*/
|
|
609
|
+
*rentries() {
|
|
610
|
+
for (const i of this.#rindexes()) {
|
|
611
|
+
if (this.#valList[i] !== undefined &&
|
|
612
|
+
this.#keyList[i] !== undefined &&
|
|
613
|
+
!this.#isBackgroundFetch(this.#valList[i])) {
|
|
614
|
+
yield [this.#keyList[i], this.#valList[i]];
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
/**
|
|
619
|
+
* Return a generator yielding the keys in the cache,
|
|
620
|
+
* in order from most recently used to least recently used.
|
|
621
|
+
*/
|
|
622
|
+
*keys() {
|
|
623
|
+
for (const i of this.#indexes()) {
|
|
624
|
+
const k = this.#keyList[i];
|
|
625
|
+
if (k !== undefined && !this.#isBackgroundFetch(this.#valList[i])) {
|
|
626
|
+
yield k;
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
/**
|
|
631
|
+
* Inverse order version of {@link LRUCache.keys}
|
|
632
|
+
*
|
|
633
|
+
* Return a generator yielding the keys in the cache,
|
|
634
|
+
* in order from least recently used to most recently used.
|
|
635
|
+
*/
|
|
636
|
+
*rkeys() {
|
|
637
|
+
for (const i of this.#rindexes()) {
|
|
638
|
+
const k = this.#keyList[i];
|
|
639
|
+
if (k !== undefined && !this.#isBackgroundFetch(this.#valList[i])) {
|
|
640
|
+
yield k;
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
/**
|
|
645
|
+
* Return a generator yielding the values in the cache,
|
|
646
|
+
* in order from most recently used to least recently used.
|
|
647
|
+
*/
|
|
648
|
+
*values() {
|
|
649
|
+
for (const i of this.#indexes()) {
|
|
650
|
+
const v = this.#valList[i];
|
|
651
|
+
if (v !== undefined && !this.#isBackgroundFetch(this.#valList[i])) {
|
|
652
|
+
yield this.#valList[i];
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
/**
|
|
657
|
+
* Inverse order version of {@link LRUCache.values}
|
|
658
|
+
*
|
|
659
|
+
* Return a generator yielding the values in the cache,
|
|
660
|
+
* in order from least recently used to most recently used.
|
|
661
|
+
*/
|
|
662
|
+
*rvalues() {
|
|
663
|
+
for (const i of this.#rindexes()) {
|
|
664
|
+
const v = this.#valList[i];
|
|
665
|
+
if (v !== undefined && !this.#isBackgroundFetch(this.#valList[i])) {
|
|
666
|
+
yield this.#valList[i];
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
/**
|
|
671
|
+
* Iterating over the cache itself yields the same results as
|
|
672
|
+
* {@link LRUCache.entries}
|
|
673
|
+
*/
|
|
674
|
+
[Symbol.iterator]() {
|
|
675
|
+
return this.entries();
|
|
676
|
+
}
|
|
677
|
+
/**
|
|
678
|
+
* A String value that is used in the creation of the default string
|
|
679
|
+
* description of an object. Called by the built-in method
|
|
680
|
+
* `Object.prototype.toString`.
|
|
681
|
+
*/
|
|
682
|
+
[Symbol.toStringTag] = 'LRUCache';
|
|
683
|
+
/**
|
|
684
|
+
* Find a value for which the supplied fn method returns a truthy value,
|
|
685
|
+
* similar to `Array.find()`. fn is called as `fn(value, key, cache)`.
|
|
686
|
+
*/
|
|
687
|
+
find(fn, getOptions = {}) {
|
|
688
|
+
for (const i of this.#indexes()) {
|
|
689
|
+
const v = this.#valList[i];
|
|
690
|
+
const value = this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v;
|
|
691
|
+
if (value === undefined)
|
|
692
|
+
continue;
|
|
693
|
+
if (fn(value, this.#keyList[i], this)) {
|
|
694
|
+
return this.#get(this.#keyList[i], getOptions);
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
/**
|
|
699
|
+
* Call the supplied function on each item in the cache, in order from most
|
|
700
|
+
* recently used to least recently used.
|
|
701
|
+
*
|
|
702
|
+
* `fn` is called as `fn(value, key, cache)`.
|
|
703
|
+
*
|
|
704
|
+
* If `thisp` is provided, function will be called in the `this`-context of
|
|
705
|
+
* the provided object, or the cache if no `thisp` object is provided.
|
|
706
|
+
*
|
|
707
|
+
* Does not update age or recenty of use, or iterate over stale values.
|
|
708
|
+
*/
|
|
709
|
+
forEach(fn, thisp = this) {
|
|
710
|
+
for (const i of this.#indexes()) {
|
|
711
|
+
const v = this.#valList[i];
|
|
712
|
+
const value = this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v;
|
|
713
|
+
if (value === undefined)
|
|
714
|
+
continue;
|
|
715
|
+
fn.call(thisp, value, this.#keyList[i], this);
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
/**
|
|
719
|
+
* The same as {@link LRUCache.forEach} but items are iterated over in
|
|
720
|
+
* reverse order. (ie, less recently used items are iterated over first.)
|
|
721
|
+
*/
|
|
722
|
+
rforEach(fn, thisp = this) {
|
|
723
|
+
for (const i of this.#rindexes()) {
|
|
724
|
+
const v = this.#valList[i];
|
|
725
|
+
const value = this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v;
|
|
726
|
+
if (value === undefined)
|
|
727
|
+
continue;
|
|
728
|
+
fn.call(thisp, value, this.#keyList[i], this);
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
/**
|
|
732
|
+
* Delete any stale entries. Returns true if anything was removed,
|
|
733
|
+
* false otherwise.
|
|
734
|
+
*/
|
|
735
|
+
purgeStale() {
|
|
736
|
+
let deleted = false;
|
|
737
|
+
for (const i of this.#rindexes({ allowStale: true })) {
|
|
738
|
+
if (this.#isStale(i)) {
|
|
739
|
+
this.#delete(this.#keyList[i], 'expire');
|
|
740
|
+
deleted = true;
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
return deleted;
|
|
744
|
+
}
|
|
745
|
+
/**
|
|
746
|
+
* Get the extended info about a given entry, to get its value, size, and
|
|
747
|
+
* TTL info simultaneously. Returns `undefined` if the key is not present.
|
|
748
|
+
*
|
|
749
|
+
* Unlike {@link LRUCache#dump}, which is designed to be portable and survive
|
|
750
|
+
* serialization, the `start` value is always the current timestamp, and the
|
|
751
|
+
* `ttl` is a calculated remaining time to live (negative if expired).
|
|
752
|
+
*
|
|
753
|
+
* Always returns stale values, if their info is found in the cache, so be
|
|
754
|
+
* sure to check for expirations (ie, a negative {@link LRUCache.Entry#ttl})
|
|
755
|
+
* if relevant.
|
|
756
|
+
*/
|
|
757
|
+
info(key) {
|
|
758
|
+
const i = this.#keyMap.get(key);
|
|
759
|
+
if (i === undefined)
|
|
760
|
+
return undefined;
|
|
761
|
+
const v = this.#valList[i];
|
|
762
|
+
/* c8 ignore start - this isn't tested for the info function,
|
|
763
|
+
* but it's the same logic as found in other places. */
|
|
764
|
+
const value = this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v;
|
|
765
|
+
if (value === undefined)
|
|
766
|
+
return undefined;
|
|
767
|
+
/* c8 ignore stop */
|
|
768
|
+
const entry = { value };
|
|
769
|
+
if (this.#ttls && this.#starts) {
|
|
770
|
+
const ttl = this.#ttls[i];
|
|
771
|
+
const start = this.#starts[i];
|
|
772
|
+
if (ttl && start) {
|
|
773
|
+
const remain = ttl - (this.#perf.now() - start);
|
|
774
|
+
entry.ttl = remain;
|
|
775
|
+
entry.start = Date.now();
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
if (this.#sizes) {
|
|
779
|
+
entry.size = this.#sizes[i];
|
|
780
|
+
}
|
|
781
|
+
return entry;
|
|
782
|
+
}
|
|
783
|
+
/**
|
|
784
|
+
* Return an array of [key, {@link LRUCache.Entry}] tuples which can be
|
|
785
|
+
* passed to {@link LRUCache#load}.
|
|
786
|
+
*
|
|
787
|
+
* The `start` fields are calculated relative to a portable `Date.now()`
|
|
788
|
+
* timestamp, even if `performance.now()` is available.
|
|
789
|
+
*
|
|
790
|
+
* Stale entries are always included in the `dump`, even if
|
|
791
|
+
* {@link LRUCache.OptionsBase.allowStale} is false.
|
|
792
|
+
*
|
|
793
|
+
* Note: this returns an actual array, not a generator, so it can be more
|
|
794
|
+
* easily passed around.
|
|
795
|
+
*/
|
|
796
|
+
dump() {
|
|
797
|
+
const arr = [];
|
|
798
|
+
for (const i of this.#indexes({ allowStale: true })) {
|
|
799
|
+
const key = this.#keyList[i];
|
|
800
|
+
const v = this.#valList[i];
|
|
801
|
+
const value = this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v;
|
|
802
|
+
if (value === undefined || key === undefined)
|
|
803
|
+
continue;
|
|
804
|
+
const entry = { value };
|
|
805
|
+
if (this.#ttls && this.#starts) {
|
|
806
|
+
entry.ttl = this.#ttls[i];
|
|
807
|
+
// always dump the start relative to a portable timestamp
|
|
808
|
+
// it's ok for this to be a bit slow, it's a rare operation.
|
|
809
|
+
const age = this.#perf.now() - this.#starts[i];
|
|
810
|
+
entry.start = Math.floor(Date.now() - age);
|
|
811
|
+
}
|
|
812
|
+
if (this.#sizes) {
|
|
813
|
+
entry.size = this.#sizes[i];
|
|
814
|
+
}
|
|
815
|
+
arr.unshift([key, entry]);
|
|
816
|
+
}
|
|
817
|
+
return arr;
|
|
818
|
+
}
|
|
819
|
+
/**
|
|
820
|
+
* Reset the cache and load in the items in entries in the order listed.
|
|
821
|
+
*
|
|
822
|
+
* The shape of the resulting cache may be different if the same options are
|
|
823
|
+
* not used in both caches.
|
|
824
|
+
*
|
|
825
|
+
* The `start` fields are assumed to be calculated relative to a portable
|
|
826
|
+
* `Date.now()` timestamp, even if `performance.now()` is available.
|
|
827
|
+
*/
|
|
828
|
+
load(arr) {
|
|
829
|
+
this.clear();
|
|
830
|
+
for (const [key, entry] of arr) {
|
|
831
|
+
if (entry.start) {
|
|
832
|
+
// entry.start is a portable timestamp, but we may be using
|
|
833
|
+
// node's performance.now(), so calculate the offset, so that
|
|
834
|
+
// we get the intended remaining TTL, no matter how long it's
|
|
835
|
+
// been on ice.
|
|
836
|
+
//
|
|
837
|
+
// it's ok for this to be a bit slow, it's a rare operation.
|
|
838
|
+
const age = Date.now() - entry.start;
|
|
839
|
+
entry.start = this.#perf.now() - age;
|
|
840
|
+
}
|
|
841
|
+
this.#set(key, entry.value, entry);
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
/**
|
|
845
|
+
* Add a value to the cache.
|
|
846
|
+
*
|
|
847
|
+
* Note: if `undefined` is specified as a value, this is an alias for
|
|
848
|
+
* {@link LRUCache#delete}
|
|
849
|
+
*
|
|
850
|
+
* Fields on the {@link LRUCache.SetOptions} options param will override
|
|
851
|
+
* their corresponding values in the constructor options for the scope
|
|
852
|
+
* of this single `set()` operation.
|
|
853
|
+
*
|
|
854
|
+
* If `start` is provided, then that will set the effective start
|
|
855
|
+
* time for the TTL calculation. Note that this must be a previous
|
|
856
|
+
* value of `performance.now()` if supported, or a previous value of
|
|
857
|
+
* `Date.now()` if not.
|
|
858
|
+
*
|
|
859
|
+
* Options object may also include `size`, which will prevent
|
|
860
|
+
* calling the `sizeCalculation` function and just use the specified
|
|
861
|
+
* number if it is a positive integer, and `noDisposeOnSet` which
|
|
862
|
+
* will prevent calling a `dispose` function in the case of
|
|
863
|
+
* overwrites.
|
|
864
|
+
*
|
|
865
|
+
* If the `size` (or return value of `sizeCalculation`) for a given
|
|
866
|
+
* entry is greater than `maxEntrySize`, then the item will not be
|
|
867
|
+
* added to the cache.
|
|
868
|
+
*
|
|
869
|
+
* Will update the recency of the entry.
|
|
870
|
+
*
|
|
871
|
+
* If the value is `undefined`, then this is an alias for
|
|
872
|
+
* `cache.delete(key)`. `undefined` is never stored in the cache.
|
|
873
|
+
*/
|
|
874
|
+
set(k, v, setOptions = {}) {
|
|
875
|
+
const { status = metrics.hasSubscribers ? {} : undefined } = setOptions;
|
|
876
|
+
setOptions.status = status;
|
|
877
|
+
if (status) {
|
|
878
|
+
status.op = 'set';
|
|
879
|
+
status.key = k;
|
|
880
|
+
if (v !== undefined)
|
|
881
|
+
status.value = v;
|
|
882
|
+
}
|
|
883
|
+
const result = this.#set(k, v, setOptions);
|
|
884
|
+
if (status && metrics.hasSubscribers) {
|
|
885
|
+
metrics.publish(status);
|
|
886
|
+
}
|
|
887
|
+
return result;
|
|
888
|
+
}
|
|
889
|
+
#set(k, v, setOptions = {}) {
|
|
890
|
+
const { ttl = this.ttl, start, noDisposeOnSet = this.noDisposeOnSet, sizeCalculation = this.sizeCalculation, status, } = setOptions;
|
|
891
|
+
if (v === undefined) {
|
|
892
|
+
if (status)
|
|
893
|
+
status.set = 'deleted';
|
|
894
|
+
this.delete(k);
|
|
895
|
+
return this;
|
|
896
|
+
}
|
|
897
|
+
let { noUpdateTTL = this.noUpdateTTL } = setOptions;
|
|
898
|
+
if (status && !this.#isBackgroundFetch(v))
|
|
899
|
+
status.value = v;
|
|
900
|
+
const size = this.#requireSize(k, v, setOptions.size || 0, sizeCalculation, status);
|
|
901
|
+
// if the item doesn't fit, don't do anything
|
|
902
|
+
// NB: maxEntrySize set to maxSize by default
|
|
903
|
+
if (this.maxEntrySize && size > this.maxEntrySize) {
|
|
904
|
+
// have to delete, in case something is there already.
|
|
905
|
+
this.#delete(k, 'set');
|
|
906
|
+
if (status) {
|
|
907
|
+
status.set = 'miss';
|
|
908
|
+
status.maxEntrySizeExceeded = true;
|
|
909
|
+
}
|
|
910
|
+
return this;
|
|
911
|
+
}
|
|
912
|
+
let index = this.#size === 0 ? undefined : this.#keyMap.get(k);
|
|
913
|
+
if (index === undefined) {
|
|
914
|
+
// addition
|
|
915
|
+
index = (this.#size === 0 ? this.#tail
|
|
916
|
+
: this.#free.length !== 0 ? this.#free.pop()
|
|
917
|
+
: this.#size === this.#max ? this.#evict(false)
|
|
918
|
+
: this.#size);
|
|
919
|
+
this.#keyList[index] = k;
|
|
920
|
+
this.#valList[index] = v;
|
|
921
|
+
this.#keyMap.set(k, index);
|
|
922
|
+
this.#next[this.#tail] = index;
|
|
923
|
+
this.#prev[index] = this.#tail;
|
|
924
|
+
this.#tail = index;
|
|
925
|
+
this.#size++;
|
|
926
|
+
this.#addItemSize(index, size, status);
|
|
927
|
+
if (status)
|
|
928
|
+
status.set = 'add';
|
|
929
|
+
noUpdateTTL = false;
|
|
930
|
+
if (this.#hasOnInsert) {
|
|
931
|
+
this.#onInsert?.(v, k, 'add');
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
else {
|
|
935
|
+
// update
|
|
936
|
+
this.#moveToTail(index);
|
|
937
|
+
const oldVal = this.#valList[index];
|
|
938
|
+
if (v !== oldVal) {
|
|
939
|
+
if (this.#hasFetchMethod && this.#isBackgroundFetch(oldVal)) {
|
|
940
|
+
oldVal.__abortController.abort(new Error('replaced'));
|
|
941
|
+
const { __staleWhileFetching: s } = oldVal;
|
|
942
|
+
if (s !== undefined && !noDisposeOnSet) {
|
|
943
|
+
if (this.#hasDispose) {
|
|
944
|
+
this.#dispose?.(s, k, 'set');
|
|
945
|
+
}
|
|
946
|
+
if (this.#hasDisposeAfter) {
|
|
947
|
+
this.#disposed?.push([s, k, 'set']);
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
else if (!noDisposeOnSet) {
|
|
952
|
+
if (this.#hasDispose) {
|
|
953
|
+
this.#dispose?.(oldVal, k, 'set');
|
|
954
|
+
}
|
|
955
|
+
if (this.#hasDisposeAfter) {
|
|
956
|
+
this.#disposed?.push([oldVal, k, 'set']);
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
this.#removeItemSize(index);
|
|
960
|
+
this.#addItemSize(index, size, status);
|
|
961
|
+
this.#valList[index] = v;
|
|
962
|
+
if (status) {
|
|
963
|
+
status.set = 'replace';
|
|
964
|
+
const oldValue = oldVal && this.#isBackgroundFetch(oldVal) ?
|
|
965
|
+
oldVal.__staleWhileFetching
|
|
966
|
+
: oldVal;
|
|
967
|
+
if (oldValue !== undefined)
|
|
968
|
+
status.oldValue = oldValue;
|
|
969
|
+
}
|
|
970
|
+
}
|
|
971
|
+
else if (status) {
|
|
972
|
+
status.set = 'update';
|
|
973
|
+
}
|
|
974
|
+
if (this.#hasOnInsert) {
|
|
975
|
+
this.onInsert?.(v, k, v === oldVal ? 'update' : 'replace');
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
if (ttl !== 0 && !this.#ttls) {
|
|
979
|
+
this.#initializeTTLTracking();
|
|
980
|
+
}
|
|
981
|
+
if (this.#ttls) {
|
|
982
|
+
if (!noUpdateTTL) {
|
|
983
|
+
this.#setItemTTL(index, ttl, start);
|
|
984
|
+
}
|
|
985
|
+
if (status)
|
|
986
|
+
this.#statusTTL(status, index);
|
|
987
|
+
}
|
|
988
|
+
if (!noDisposeOnSet && this.#hasDisposeAfter && this.#disposed) {
|
|
989
|
+
const dt = this.#disposed;
|
|
990
|
+
let task;
|
|
991
|
+
while ((task = dt?.shift())) {
|
|
992
|
+
this.#disposeAfter?.(...task);
|
|
993
|
+
}
|
|
994
|
+
}
|
|
995
|
+
return this;
|
|
996
|
+
}
|
|
997
|
+
/**
|
|
998
|
+
* Evict the least recently used item, returning its value or
|
|
999
|
+
* `undefined` if cache is empty.
|
|
1000
|
+
*/
|
|
1001
|
+
pop() {
|
|
1002
|
+
try {
|
|
1003
|
+
while (this.#size) {
|
|
1004
|
+
const val = this.#valList[this.#head];
|
|
1005
|
+
this.#evict(true);
|
|
1006
|
+
if (this.#isBackgroundFetch(val)) {
|
|
1007
|
+
if (val.__staleWhileFetching) {
|
|
1008
|
+
return val.__staleWhileFetching;
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
else if (val !== undefined) {
|
|
1012
|
+
return val;
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
finally {
|
|
1017
|
+
if (this.#hasDisposeAfter && this.#disposed) {
|
|
1018
|
+
const dt = this.#disposed;
|
|
1019
|
+
let task;
|
|
1020
|
+
while ((task = dt?.shift())) {
|
|
1021
|
+
this.#disposeAfter?.(...task);
|
|
1022
|
+
}
|
|
1023
|
+
}
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
1026
|
+
#evict(free) {
|
|
1027
|
+
const head = this.#head;
|
|
1028
|
+
const k = this.#keyList[head];
|
|
1029
|
+
const v = this.#valList[head];
|
|
1030
|
+
if (this.#hasFetchMethod && this.#isBackgroundFetch(v)) {
|
|
1031
|
+
v.__abortController.abort(new Error('evicted'));
|
|
1032
|
+
}
|
|
1033
|
+
else if (this.#hasDispose || this.#hasDisposeAfter) {
|
|
1034
|
+
if (this.#hasDispose) {
|
|
1035
|
+
this.#dispose?.(v, k, 'evict');
|
|
1036
|
+
}
|
|
1037
|
+
if (this.#hasDisposeAfter) {
|
|
1038
|
+
this.#disposed?.push([v, k, 'evict']);
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
this.#removeItemSize(head);
|
|
1042
|
+
if (this.#autopurgeTimers?.[head]) {
|
|
1043
|
+
clearTimeout(this.#autopurgeTimers[head]);
|
|
1044
|
+
this.#autopurgeTimers[head] = undefined;
|
|
1045
|
+
}
|
|
1046
|
+
// if we aren't about to use the index, then null these out
|
|
1047
|
+
if (free) {
|
|
1048
|
+
this.#keyList[head] = undefined;
|
|
1049
|
+
this.#valList[head] = undefined;
|
|
1050
|
+
this.#free.push(head);
|
|
1051
|
+
}
|
|
1052
|
+
if (this.#size === 1) {
|
|
1053
|
+
this.#head = this.#tail = 0;
|
|
1054
|
+
this.#free.length = 0;
|
|
1055
|
+
}
|
|
1056
|
+
else {
|
|
1057
|
+
this.#head = this.#next[head];
|
|
1058
|
+
}
|
|
1059
|
+
this.#keyMap.delete(k);
|
|
1060
|
+
this.#size--;
|
|
1061
|
+
return head;
|
|
1062
|
+
}
|
|
1063
|
+
/**
|
|
1064
|
+
* Check if a key is in the cache, without updating the recency of use.
|
|
1065
|
+
* Will return false if the item is stale, even though it is technically
|
|
1066
|
+
* in the cache.
|
|
1067
|
+
*
|
|
1068
|
+
* Check if a key is in the cache, without updating the recency of
|
|
1069
|
+
* use. Age is updated if {@link LRUCache.OptionsBase.updateAgeOnHas} is set
|
|
1070
|
+
* to `true` in either the options or the constructor.
|
|
1071
|
+
*
|
|
1072
|
+
* Will return `false` if the item is stale, even though it is technically in
|
|
1073
|
+
* the cache. The difference can be determined (if it matters) by using a
|
|
1074
|
+
* `status` argument, and inspecting the `has` field.
|
|
1075
|
+
*
|
|
1076
|
+
* Will not update item age unless
|
|
1077
|
+
* {@link LRUCache.OptionsBase.updateAgeOnHas} is set.
|
|
1078
|
+
*/
|
|
1079
|
+
has(k, hasOptions = {}) {
|
|
1080
|
+
const { status = metrics.hasSubscribers ? {} : undefined } = hasOptions;
|
|
1081
|
+
hasOptions.status = status;
|
|
1082
|
+
if (status) {
|
|
1083
|
+
status.op = 'has';
|
|
1084
|
+
status.key = k;
|
|
1085
|
+
}
|
|
1086
|
+
const result = this.#has(k, hasOptions);
|
|
1087
|
+
if (metrics.hasSubscribers)
|
|
1088
|
+
metrics.publish(status);
|
|
1089
|
+
return result;
|
|
1090
|
+
}
|
|
1091
|
+
#has(k, hasOptions = {}) {
|
|
1092
|
+
const { updateAgeOnHas = this.updateAgeOnHas, status } = hasOptions;
|
|
1093
|
+
const index = this.#keyMap.get(k);
|
|
1094
|
+
if (index !== undefined) {
|
|
1095
|
+
const v = this.#valList[index];
|
|
1096
|
+
if (this.#isBackgroundFetch(v) &&
|
|
1097
|
+
v.__staleWhileFetching === undefined) {
|
|
1098
|
+
return false;
|
|
1099
|
+
}
|
|
1100
|
+
if (!this.#isStale(index)) {
|
|
1101
|
+
if (updateAgeOnHas) {
|
|
1102
|
+
this.#updateItemAge(index);
|
|
1103
|
+
}
|
|
1104
|
+
if (status) {
|
|
1105
|
+
status.has = 'hit';
|
|
1106
|
+
this.#statusTTL(status, index);
|
|
1107
|
+
}
|
|
1108
|
+
return true;
|
|
1109
|
+
}
|
|
1110
|
+
else if (status) {
|
|
1111
|
+
status.has = 'stale';
|
|
1112
|
+
this.#statusTTL(status, index);
|
|
1113
|
+
}
|
|
1114
|
+
}
|
|
1115
|
+
else if (status) {
|
|
1116
|
+
status.has = 'miss';
|
|
1117
|
+
}
|
|
1118
|
+
return false;
|
|
1119
|
+
}
|
|
1120
|
+
/**
|
|
1121
|
+
* Like {@link LRUCache#get} but doesn't update recency or delete stale
|
|
1122
|
+
* items.
|
|
1123
|
+
*
|
|
1124
|
+
* Returns `undefined` if the item is stale, unless
|
|
1125
|
+
* {@link LRUCache.OptionsBase.allowStale} is set.
|
|
1126
|
+
*/
|
|
1127
|
+
peek(k, peekOptions = {}) {
|
|
1128
|
+
const { status = hasSubscribers() ? {} : undefined } = peekOptions;
|
|
1129
|
+
if (status) {
|
|
1130
|
+
status.op = 'peek';
|
|
1131
|
+
status.key = k;
|
|
1132
|
+
}
|
|
1133
|
+
peekOptions.status = status;
|
|
1134
|
+
const result = this.#peek(k, peekOptions);
|
|
1135
|
+
if (metrics.hasSubscribers) {
|
|
1136
|
+
metrics.publish(status);
|
|
1137
|
+
}
|
|
1138
|
+
return result;
|
|
1139
|
+
}
|
|
1140
|
+
#peek(k, peekOptions) {
|
|
1141
|
+
const { status, allowStale = this.allowStale } = peekOptions;
|
|
1142
|
+
const index = this.#keyMap.get(k);
|
|
1143
|
+
if (index === undefined || (!allowStale && this.#isStale(index))) {
|
|
1144
|
+
if (status)
|
|
1145
|
+
status.peek = index === undefined ? 'miss' : 'stale';
|
|
1146
|
+
return undefined;
|
|
1147
|
+
}
|
|
1148
|
+
const v = this.#valList[index];
|
|
1149
|
+
const val = this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v;
|
|
1150
|
+
if (status) {
|
|
1151
|
+
if (val !== undefined) {
|
|
1152
|
+
status.peek = 'hit';
|
|
1153
|
+
status.value = val;
|
|
1154
|
+
}
|
|
1155
|
+
else {
|
|
1156
|
+
status.peek = 'miss';
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
return val;
|
|
1160
|
+
}
|
|
1161
|
+
#backgroundFetch(k, index, options, context) {
|
|
1162
|
+
const v = index === undefined ? undefined : this.#valList[index];
|
|
1163
|
+
if (this.#isBackgroundFetch(v)) {
|
|
1164
|
+
return v;
|
|
1165
|
+
}
|
|
1166
|
+
const ac = new AbortController();
|
|
1167
|
+
const { signal } = options;
|
|
1168
|
+
// when/if our AC signals, then stop listening to theirs.
|
|
1169
|
+
signal?.addEventListener('abort', () => ac.abort(signal.reason), {
|
|
1170
|
+
signal: ac.signal,
|
|
1171
|
+
});
|
|
1172
|
+
const fetchOpts = {
|
|
1173
|
+
signal: ac.signal,
|
|
1174
|
+
options,
|
|
1175
|
+
context,
|
|
1176
|
+
};
|
|
1177
|
+
const cb = (v, updateCache = false) => {
|
|
1178
|
+
const { aborted } = ac.signal;
|
|
1179
|
+
const ignoreAbort = options.ignoreFetchAbort && v !== undefined;
|
|
1180
|
+
const proceed = options.ignoreFetchAbort ||
|
|
1181
|
+
!!(options.allowStaleOnFetchAbort && v !== undefined);
|
|
1182
|
+
if (options.status) {
|
|
1183
|
+
if (aborted && !updateCache) {
|
|
1184
|
+
options.status.fetchAborted = true;
|
|
1185
|
+
options.status.fetchError = ac.signal.reason;
|
|
1186
|
+
if (ignoreAbort)
|
|
1187
|
+
options.status.fetchAbortIgnored = true;
|
|
1188
|
+
}
|
|
1189
|
+
else {
|
|
1190
|
+
options.status.fetchResolved = true;
|
|
1191
|
+
}
|
|
1192
|
+
}
|
|
1193
|
+
if (aborted && !ignoreAbort && !updateCache) {
|
|
1194
|
+
return fetchFail(ac.signal.reason, proceed);
|
|
1195
|
+
}
|
|
1196
|
+
// either we didn't abort, and are still here, or we did, and ignored
|
|
1197
|
+
const bf = p;
|
|
1198
|
+
// if nothing else has been written there but we're set to update the
|
|
1199
|
+
// cache and ignore the abort, or if it's still pending on this specific
|
|
1200
|
+
// background request, then write it to the cache.
|
|
1201
|
+
const vl = this.#valList[index];
|
|
1202
|
+
if (vl === p || (vl === undefined && ignoreAbort && updateCache)) {
|
|
1203
|
+
if (v === undefined) {
|
|
1204
|
+
if (bf.__staleWhileFetching !== undefined) {
|
|
1205
|
+
this.#valList[index] = bf.__staleWhileFetching;
|
|
1206
|
+
}
|
|
1207
|
+
else {
|
|
1208
|
+
this.#delete(k, 'fetch');
|
|
1209
|
+
}
|
|
1210
|
+
}
|
|
1211
|
+
else {
|
|
1212
|
+
if (options.status)
|
|
1213
|
+
options.status.fetchUpdated = true;
|
|
1214
|
+
this.#set(k, v, fetchOpts.options);
|
|
1215
|
+
}
|
|
1216
|
+
}
|
|
1217
|
+
return v;
|
|
1218
|
+
};
|
|
1219
|
+
const eb = (er) => {
|
|
1220
|
+
if (options.status) {
|
|
1221
|
+
options.status.fetchRejected = true;
|
|
1222
|
+
options.status.fetchError = er;
|
|
1223
|
+
}
|
|
1224
|
+
// do not pass go, do not collect $200
|
|
1225
|
+
return fetchFail(er, false);
|
|
1226
|
+
};
|
|
1227
|
+
const fetchFail = (er, proceed) => {
|
|
1228
|
+
const { aborted } = ac.signal;
|
|
1229
|
+
const allowStaleAborted = aborted && options.allowStaleOnFetchAbort;
|
|
1230
|
+
const allowStale = allowStaleAborted || options.allowStaleOnFetchRejection;
|
|
1231
|
+
const noDelete = allowStale || options.noDeleteOnFetchRejection;
|
|
1232
|
+
const bf = p;
|
|
1233
|
+
if (this.#valList[index] === p) {
|
|
1234
|
+
// if we allow stale on fetch rejections, then we need to ensure that
|
|
1235
|
+
// the stale value is not removed from the cache when the fetch fails.
|
|
1236
|
+
const del = !noDelete || (!proceed && bf.__staleWhileFetching === undefined);
|
|
1237
|
+
if (del) {
|
|
1238
|
+
this.#delete(k, 'fetch');
|
|
1239
|
+
}
|
|
1240
|
+
else if (!allowStaleAborted) {
|
|
1241
|
+
// still replace the *promise* with the stale value,
|
|
1242
|
+
// since we are done with the promise at this point.
|
|
1243
|
+
// leave it untouched if we're still waiting for an
|
|
1244
|
+
// aborted background fetch that hasn't yet returned.
|
|
1245
|
+
this.#valList[index] = bf.__staleWhileFetching;
|
|
1246
|
+
}
|
|
1247
|
+
}
|
|
1248
|
+
if (allowStale) {
|
|
1249
|
+
if (options.status && bf.__staleWhileFetching !== undefined) {
|
|
1250
|
+
options.status.returnedStale = true;
|
|
1251
|
+
}
|
|
1252
|
+
return bf.__staleWhileFetching;
|
|
1253
|
+
}
|
|
1254
|
+
else if (bf.__returned === bf) {
|
|
1255
|
+
throw er;
|
|
1256
|
+
}
|
|
1257
|
+
};
|
|
1258
|
+
const pcall = (res, rej) => {
|
|
1259
|
+
const fmp = this.#fetchMethod?.(k, v, fetchOpts);
|
|
1260
|
+
if (fmp && fmp instanceof Promise) {
|
|
1261
|
+
fmp.then(v => res(v === undefined ? undefined : v), rej);
|
|
1262
|
+
}
|
|
1263
|
+
// ignored, we go until we finish, regardless.
|
|
1264
|
+
// defer check until we are actually aborting,
|
|
1265
|
+
// so fetchMethod can override.
|
|
1266
|
+
ac.signal.addEventListener('abort', () => {
|
|
1267
|
+
if (!options.ignoreFetchAbort || options.allowStaleOnFetchAbort) {
|
|
1268
|
+
res(undefined);
|
|
1269
|
+
// when it eventually resolves, update the cache.
|
|
1270
|
+
if (options.allowStaleOnFetchAbort) {
|
|
1271
|
+
res = v => cb(v, true);
|
|
1272
|
+
}
|
|
1273
|
+
}
|
|
1274
|
+
});
|
|
1275
|
+
};
|
|
1276
|
+
if (options.status)
|
|
1277
|
+
options.status.fetchDispatched = true;
|
|
1278
|
+
const p = new Promise(pcall).then(cb, eb);
|
|
1279
|
+
const bf = Object.assign(p, {
|
|
1280
|
+
__abortController: ac,
|
|
1281
|
+
__staleWhileFetching: v,
|
|
1282
|
+
__returned: undefined,
|
|
1283
|
+
});
|
|
1284
|
+
if (index === undefined) {
|
|
1285
|
+
// internal, don't expose status.
|
|
1286
|
+
this.#set(k, bf, { ...fetchOpts.options, status: undefined });
|
|
1287
|
+
index = this.#keyMap.get(k);
|
|
1288
|
+
}
|
|
1289
|
+
else {
|
|
1290
|
+
this.#valList[index] = bf;
|
|
1291
|
+
}
|
|
1292
|
+
return bf;
|
|
1293
|
+
}
|
|
1294
|
+
#isBackgroundFetch(p) {
|
|
1295
|
+
if (!this.#hasFetchMethod)
|
|
1296
|
+
return false;
|
|
1297
|
+
const b = p;
|
|
1298
|
+
return (!!b &&
|
|
1299
|
+
b instanceof Promise &&
|
|
1300
|
+
b.hasOwnProperty('__staleWhileFetching') &&
|
|
1301
|
+
b.__abortController instanceof AbortController);
|
|
1302
|
+
}
|
|
1303
|
+
fetch(k, fetchOptions = {}) {
|
|
1304
|
+
const ths = tracing.hasSubscribers;
|
|
1305
|
+
const { status = hasSubscribers() ? {} : undefined } = fetchOptions;
|
|
1306
|
+
fetchOptions.status = status;
|
|
1307
|
+
if (status && fetchOptions.context) {
|
|
1308
|
+
status.context = fetchOptions.context;
|
|
1309
|
+
}
|
|
1310
|
+
const p = this.#fetch(k, fetchOptions);
|
|
1311
|
+
if (status && hasSubscribers()) {
|
|
1312
|
+
if (ths) {
|
|
1313
|
+
status.trace = true;
|
|
1314
|
+
tracing.tracePromise(() => p, status).catch(() => { });
|
|
1315
|
+
}
|
|
1316
|
+
}
|
|
1317
|
+
return p;
|
|
1318
|
+
}
|
|
1319
|
+
async #fetch(k, fetchOptions = {}) {
|
|
1320
|
+
const {
|
|
1321
|
+
// get options
|
|
1322
|
+
allowStale = this.allowStale, updateAgeOnGet = this.updateAgeOnGet, noDeleteOnStaleGet = this.noDeleteOnStaleGet,
|
|
1323
|
+
// set options
|
|
1324
|
+
ttl = this.ttl, noDisposeOnSet = this.noDisposeOnSet, size = 0, sizeCalculation = this.sizeCalculation, noUpdateTTL = this.noUpdateTTL,
|
|
1325
|
+
// fetch exclusive options
|
|
1326
|
+
noDeleteOnFetchRejection = this.noDeleteOnFetchRejection, allowStaleOnFetchRejection = this.allowStaleOnFetchRejection, ignoreFetchAbort = this.ignoreFetchAbort, allowStaleOnFetchAbort = this.allowStaleOnFetchAbort, context, forceRefresh = false, status, signal, } = fetchOptions;
|
|
1327
|
+
if (status) {
|
|
1328
|
+
status.op = 'fetch';
|
|
1329
|
+
status.key = k;
|
|
1330
|
+
if (forceRefresh)
|
|
1331
|
+
status.forceRefresh = true;
|
|
1332
|
+
}
|
|
1333
|
+
if (!this.#hasFetchMethod) {
|
|
1334
|
+
if (status)
|
|
1335
|
+
status.fetch = 'get';
|
|
1336
|
+
return this.#get(k, {
|
|
1337
|
+
allowStale,
|
|
1338
|
+
updateAgeOnGet,
|
|
1339
|
+
noDeleteOnStaleGet,
|
|
1340
|
+
status,
|
|
1341
|
+
});
|
|
1342
|
+
}
|
|
1343
|
+
const options = {
|
|
1344
|
+
allowStale,
|
|
1345
|
+
updateAgeOnGet,
|
|
1346
|
+
noDeleteOnStaleGet,
|
|
1347
|
+
ttl,
|
|
1348
|
+
noDisposeOnSet,
|
|
1349
|
+
size,
|
|
1350
|
+
sizeCalculation,
|
|
1351
|
+
noUpdateTTL,
|
|
1352
|
+
noDeleteOnFetchRejection,
|
|
1353
|
+
allowStaleOnFetchRejection,
|
|
1354
|
+
allowStaleOnFetchAbort,
|
|
1355
|
+
ignoreFetchAbort,
|
|
1356
|
+
status,
|
|
1357
|
+
signal,
|
|
1358
|
+
};
|
|
1359
|
+
let index = this.#keyMap.get(k);
|
|
1360
|
+
if (index === undefined) {
|
|
1361
|
+
if (status)
|
|
1362
|
+
status.fetch = 'miss';
|
|
1363
|
+
const p = this.#backgroundFetch(k, index, options, context);
|
|
1364
|
+
return (p.__returned = p);
|
|
1365
|
+
}
|
|
1366
|
+
else {
|
|
1367
|
+
// in cache, maybe already fetching
|
|
1368
|
+
const v = this.#valList[index];
|
|
1369
|
+
if (this.#isBackgroundFetch(v)) {
|
|
1370
|
+
const stale = allowStale && v.__staleWhileFetching !== undefined;
|
|
1371
|
+
if (status) {
|
|
1372
|
+
status.fetch = 'inflight';
|
|
1373
|
+
if (stale)
|
|
1374
|
+
status.returnedStale = true;
|
|
1375
|
+
}
|
|
1376
|
+
return stale ? v.__staleWhileFetching : (v.__returned = v);
|
|
1377
|
+
}
|
|
1378
|
+
// if we force a refresh, that means do NOT serve the cached value,
|
|
1379
|
+
// unless we are already in the process of refreshing the cache.
|
|
1380
|
+
const isStale = this.#isStale(index);
|
|
1381
|
+
if (!forceRefresh && !isStale) {
|
|
1382
|
+
if (status)
|
|
1383
|
+
status.fetch = 'hit';
|
|
1384
|
+
this.#moveToTail(index);
|
|
1385
|
+
if (updateAgeOnGet) {
|
|
1386
|
+
this.#updateItemAge(index);
|
|
1387
|
+
}
|
|
1388
|
+
if (status)
|
|
1389
|
+
this.#statusTTL(status, index);
|
|
1390
|
+
return v;
|
|
1391
|
+
}
|
|
1392
|
+
// ok, it is stale or a forced refresh, and not already fetching.
|
|
1393
|
+
// refresh the cache.
|
|
1394
|
+
const p = this.#backgroundFetch(k, index, options, context);
|
|
1395
|
+
const hasStale = p.__staleWhileFetching !== undefined;
|
|
1396
|
+
const staleVal = hasStale && allowStale;
|
|
1397
|
+
if (status) {
|
|
1398
|
+
status.fetch = isStale ? 'stale' : 'refresh';
|
|
1399
|
+
if (staleVal && isStale)
|
|
1400
|
+
status.returnedStale = true;
|
|
1401
|
+
}
|
|
1402
|
+
return staleVal ? p.__staleWhileFetching : (p.__returned = p);
|
|
1403
|
+
}
|
|
1404
|
+
}
|
|
1405
|
+
forceFetch(k, fetchOptions = {}) {
|
|
1406
|
+
const ths = tracing.hasSubscribers;
|
|
1407
|
+
const { status = hasSubscribers() ? {} : undefined } = fetchOptions;
|
|
1408
|
+
fetchOptions.status = status;
|
|
1409
|
+
if (status && fetchOptions.context) {
|
|
1410
|
+
status.context = fetchOptions.context;
|
|
1411
|
+
}
|
|
1412
|
+
const p = this.#forceFetch(k, fetchOptions);
|
|
1413
|
+
if (status && hasSubscribers()) {
|
|
1414
|
+
if (ths) {
|
|
1415
|
+
status.trace = true;
|
|
1416
|
+
tracing.tracePromise(() => p, status).catch(() => { });
|
|
1417
|
+
}
|
|
1418
|
+
}
|
|
1419
|
+
return p;
|
|
1420
|
+
}
|
|
1421
|
+
async #forceFetch(k, fetchOptions = {}) {
|
|
1422
|
+
const v = await this.#fetch(k, fetchOptions);
|
|
1423
|
+
if (v === undefined)
|
|
1424
|
+
throw new Error('fetch() returned undefined');
|
|
1425
|
+
return v;
|
|
1426
|
+
}
|
|
1427
|
+
memo(k, memoOptions = {}) {
|
|
1428
|
+
const { status = metrics.hasSubscribers ? {} : undefined } = memoOptions;
|
|
1429
|
+
memoOptions.status = status;
|
|
1430
|
+
if (status) {
|
|
1431
|
+
status.op = 'memo';
|
|
1432
|
+
status.key = k;
|
|
1433
|
+
if (memoOptions.context) {
|
|
1434
|
+
status.context = memoOptions.context;
|
|
1435
|
+
}
|
|
1436
|
+
}
|
|
1437
|
+
const result = this.#memo(k, memoOptions);
|
|
1438
|
+
if (status)
|
|
1439
|
+
status.value = result;
|
|
1440
|
+
if (metrics.hasSubscribers)
|
|
1441
|
+
metrics.publish(status);
|
|
1442
|
+
return result;
|
|
1443
|
+
}
|
|
1444
|
+
#memo(k, memoOptions = {}) {
|
|
1445
|
+
const memoMethod = this.#memoMethod;
|
|
1446
|
+
if (!memoMethod) {
|
|
1447
|
+
throw new Error('no memoMethod provided to constructor');
|
|
1448
|
+
}
|
|
1449
|
+
const { context, status, forceRefresh, ...options } = memoOptions;
|
|
1450
|
+
if (status && forceRefresh)
|
|
1451
|
+
status.forceRefresh = true;
|
|
1452
|
+
const v = this.#get(k, options);
|
|
1453
|
+
const refresh = forceRefresh || v === undefined;
|
|
1454
|
+
if (status) {
|
|
1455
|
+
status.memo = refresh ? 'miss' : 'hit';
|
|
1456
|
+
if (!refresh)
|
|
1457
|
+
status.value = v;
|
|
1458
|
+
}
|
|
1459
|
+
if (!refresh)
|
|
1460
|
+
return v;
|
|
1461
|
+
const vv = memoMethod(k, v, {
|
|
1462
|
+
options,
|
|
1463
|
+
context,
|
|
1464
|
+
});
|
|
1465
|
+
if (status)
|
|
1466
|
+
status.value = vv;
|
|
1467
|
+
this.#set(k, vv, options);
|
|
1468
|
+
return vv;
|
|
1469
|
+
}
|
|
1470
|
+
/**
|
|
1471
|
+
* Return a value from the cache. Will update the recency of the cache
|
|
1472
|
+
* entry found.
|
|
1473
|
+
*
|
|
1474
|
+
* If the key is not found, get() will return `undefined`.
|
|
1475
|
+
*/
|
|
1476
|
+
get(k, getOptions = {}) {
|
|
1477
|
+
const { status = metrics.hasSubscribers ? {} : undefined } = getOptions;
|
|
1478
|
+
getOptions.status = status;
|
|
1479
|
+
if (status) {
|
|
1480
|
+
status.op = 'get';
|
|
1481
|
+
status.key = k;
|
|
1482
|
+
}
|
|
1483
|
+
const result = this.#get(k, getOptions);
|
|
1484
|
+
if (status) {
|
|
1485
|
+
if (result !== undefined)
|
|
1486
|
+
status.value = result;
|
|
1487
|
+
if (metrics.hasSubscribers)
|
|
1488
|
+
metrics.publish(status);
|
|
1489
|
+
}
|
|
1490
|
+
return result;
|
|
1491
|
+
}
|
|
1492
|
+
#get(k, getOptions = {}) {
|
|
1493
|
+
const { allowStale = this.allowStale, updateAgeOnGet = this.updateAgeOnGet, noDeleteOnStaleGet = this.noDeleteOnStaleGet, status, } = getOptions;
|
|
1494
|
+
const index = this.#keyMap.get(k);
|
|
1495
|
+
if (index === undefined) {
|
|
1496
|
+
if (status)
|
|
1497
|
+
status.get = 'miss';
|
|
1498
|
+
return undefined;
|
|
1499
|
+
}
|
|
1500
|
+
const value = this.#valList[index];
|
|
1501
|
+
const fetching = this.#isBackgroundFetch(value);
|
|
1502
|
+
if (status)
|
|
1503
|
+
this.#statusTTL(status, index);
|
|
1504
|
+
if (this.#isStale(index)) {
|
|
1505
|
+
// delete only if not an in-flight background fetch
|
|
1506
|
+
if (!fetching) {
|
|
1507
|
+
if (!noDeleteOnStaleGet) {
|
|
1508
|
+
this.#delete(k, 'expire');
|
|
1509
|
+
}
|
|
1510
|
+
if (status)
|
|
1511
|
+
status.get = 'stale';
|
|
1512
|
+
if (allowStale) {
|
|
1513
|
+
if (status)
|
|
1514
|
+
status.returnedStale = true;
|
|
1515
|
+
return value;
|
|
1516
|
+
}
|
|
1517
|
+
return undefined;
|
|
1518
|
+
}
|
|
1519
|
+
if (status)
|
|
1520
|
+
status.get = 'stale-fetching';
|
|
1521
|
+
if (allowStale && value.__staleWhileFetching !== undefined) {
|
|
1522
|
+
if (status)
|
|
1523
|
+
status.returnedStale = true;
|
|
1524
|
+
return value.__staleWhileFetching;
|
|
1525
|
+
}
|
|
1526
|
+
return undefined;
|
|
1527
|
+
}
|
|
1528
|
+
// not stale
|
|
1529
|
+
if (status)
|
|
1530
|
+
status.get = fetching ? 'fetching' : 'hit';
|
|
1531
|
+
// if we're currently fetching it, we don't actually have it yet
|
|
1532
|
+
// it's not stale, which means this isn't a staleWhileRefetching.
|
|
1533
|
+
// If it's not stale, and fetching, AND has a __staleWhileFetching
|
|
1534
|
+
// value, then that means the user fetched with {forceRefresh:true},
|
|
1535
|
+
// so it's safe to return that value.
|
|
1536
|
+
this.#moveToTail(index);
|
|
1537
|
+
if (updateAgeOnGet) {
|
|
1538
|
+
this.#updateItemAge(index);
|
|
1539
|
+
}
|
|
1540
|
+
return fetching ? value.__staleWhileFetching : value;
|
|
1541
|
+
}
|
|
1542
|
+
#connect(p, n) {
|
|
1543
|
+
this.#prev[n] = p;
|
|
1544
|
+
this.#next[p] = n;
|
|
1545
|
+
}
|
|
1546
|
+
#moveToTail(index) {
|
|
1547
|
+
// if tail already, nothing to do
|
|
1548
|
+
// if head, move head to next[index]
|
|
1549
|
+
// else
|
|
1550
|
+
// move next[prev[index]] to next[index] (head has no prev)
|
|
1551
|
+
// move prev[next[index]] to prev[index]
|
|
1552
|
+
// prev[index] = tail
|
|
1553
|
+
// next[tail] = index
|
|
1554
|
+
// tail = index
|
|
1555
|
+
if (index !== this.#tail) {
|
|
1556
|
+
if (index === this.#head) {
|
|
1557
|
+
this.#head = this.#next[index];
|
|
1558
|
+
}
|
|
1559
|
+
else {
|
|
1560
|
+
this.#connect(this.#prev[index], this.#next[index]);
|
|
1561
|
+
}
|
|
1562
|
+
this.#connect(this.#tail, index);
|
|
1563
|
+
this.#tail = index;
|
|
1564
|
+
}
|
|
1565
|
+
}
|
|
1566
|
+
/**
|
|
1567
|
+
* Deletes a key out of the cache.
|
|
1568
|
+
*
|
|
1569
|
+
* Returns true if the key was deleted, false otherwise.
|
|
1570
|
+
*/
|
|
1571
|
+
delete(k) {
|
|
1572
|
+
return this.#delete(k, 'delete');
|
|
1573
|
+
}
|
|
1574
|
+
#delete(k, reason) {
|
|
1575
|
+
if (metrics.hasSubscribers) {
|
|
1576
|
+
metrics.publish({
|
|
1577
|
+
op: 'delete',
|
|
1578
|
+
delete: reason,
|
|
1579
|
+
key: k,
|
|
1580
|
+
});
|
|
1581
|
+
}
|
|
1582
|
+
let deleted = false;
|
|
1583
|
+
if (this.#size !== 0) {
|
|
1584
|
+
const index = this.#keyMap.get(k);
|
|
1585
|
+
if (index !== undefined) {
|
|
1586
|
+
if (this.#autopurgeTimers?.[index]) {
|
|
1587
|
+
clearTimeout(this.#autopurgeTimers?.[index]);
|
|
1588
|
+
this.#autopurgeTimers[index] = undefined;
|
|
1589
|
+
}
|
|
1590
|
+
deleted = true;
|
|
1591
|
+
if (this.#size === 1) {
|
|
1592
|
+
this.#clear(reason);
|
|
1593
|
+
}
|
|
1594
|
+
else {
|
|
1595
|
+
this.#removeItemSize(index);
|
|
1596
|
+
const v = this.#valList[index];
|
|
1597
|
+
if (this.#isBackgroundFetch(v)) {
|
|
1598
|
+
v.__abortController.abort(new Error('deleted'));
|
|
1599
|
+
}
|
|
1600
|
+
else if (this.#hasDispose || this.#hasDisposeAfter) {
|
|
1601
|
+
if (this.#hasDispose) {
|
|
1602
|
+
this.#dispose?.(v, k, reason);
|
|
1603
|
+
}
|
|
1604
|
+
if (this.#hasDisposeAfter) {
|
|
1605
|
+
this.#disposed?.push([v, k, reason]);
|
|
1606
|
+
}
|
|
1607
|
+
}
|
|
1608
|
+
this.#keyMap.delete(k);
|
|
1609
|
+
this.#keyList[index] = undefined;
|
|
1610
|
+
this.#valList[index] = undefined;
|
|
1611
|
+
if (index === this.#tail) {
|
|
1612
|
+
this.#tail = this.#prev[index];
|
|
1613
|
+
}
|
|
1614
|
+
else if (index === this.#head) {
|
|
1615
|
+
this.#head = this.#next[index];
|
|
1616
|
+
}
|
|
1617
|
+
else {
|
|
1618
|
+
const pi = this.#prev[index];
|
|
1619
|
+
this.#next[pi] = this.#next[index];
|
|
1620
|
+
const ni = this.#next[index];
|
|
1621
|
+
this.#prev[ni] = this.#prev[index];
|
|
1622
|
+
}
|
|
1623
|
+
this.#size--;
|
|
1624
|
+
this.#free.push(index);
|
|
1625
|
+
}
|
|
1626
|
+
}
|
|
1627
|
+
}
|
|
1628
|
+
if (this.#hasDisposeAfter && this.#disposed?.length) {
|
|
1629
|
+
const dt = this.#disposed;
|
|
1630
|
+
let task;
|
|
1631
|
+
while ((task = dt?.shift())) {
|
|
1632
|
+
this.#disposeAfter?.(...task);
|
|
1633
|
+
}
|
|
1634
|
+
}
|
|
1635
|
+
return deleted;
|
|
1636
|
+
}
|
|
1637
|
+
/**
|
|
1638
|
+
* Clear the cache entirely, throwing away all values.
|
|
1639
|
+
*/
|
|
1640
|
+
clear() {
|
|
1641
|
+
return this.#clear('delete');
|
|
1642
|
+
}
|
|
1643
|
+
#clear(reason) {
|
|
1644
|
+
for (const index of this.#rindexes({ allowStale: true })) {
|
|
1645
|
+
const v = this.#valList[index];
|
|
1646
|
+
if (this.#isBackgroundFetch(v)) {
|
|
1647
|
+
v.__abortController.abort(new Error('deleted'));
|
|
1648
|
+
}
|
|
1649
|
+
else {
|
|
1650
|
+
const k = this.#keyList[index];
|
|
1651
|
+
if (this.#hasDispose) {
|
|
1652
|
+
this.#dispose?.(v, k, reason);
|
|
1653
|
+
}
|
|
1654
|
+
if (this.#hasDisposeAfter) {
|
|
1655
|
+
this.#disposed?.push([v, k, reason]);
|
|
1656
|
+
}
|
|
1657
|
+
}
|
|
1658
|
+
}
|
|
1659
|
+
this.#keyMap.clear();
|
|
1660
|
+
this.#valList.fill(undefined);
|
|
1661
|
+
this.#keyList.fill(undefined);
|
|
1662
|
+
if (this.#ttls && this.#starts) {
|
|
1663
|
+
this.#ttls.fill(0);
|
|
1664
|
+
this.#starts.fill(0);
|
|
1665
|
+
for (const t of this.#autopurgeTimers ?? []) {
|
|
1666
|
+
if (t !== undefined)
|
|
1667
|
+
clearTimeout(t);
|
|
1668
|
+
}
|
|
1669
|
+
this.#autopurgeTimers?.fill(undefined);
|
|
1670
|
+
}
|
|
1671
|
+
if (this.#sizes) {
|
|
1672
|
+
this.#sizes.fill(0);
|
|
1673
|
+
}
|
|
1674
|
+
this.#head = 0;
|
|
1675
|
+
this.#tail = 0;
|
|
1676
|
+
this.#free.length = 0;
|
|
1677
|
+
this.#calculatedSize = 0;
|
|
1678
|
+
this.#size = 0;
|
|
1679
|
+
if (this.#hasDisposeAfter && this.#disposed) {
|
|
1680
|
+
const dt = this.#disposed;
|
|
1681
|
+
let task;
|
|
1682
|
+
while ((task = dt?.shift())) {
|
|
1683
|
+
this.#disposeAfter?.(...task);
|
|
1684
|
+
}
|
|
1685
|
+
}
|
|
1686
|
+
}
|
|
1687
|
+
}
|
|
1688
|
+
//# sourceMappingURL=index.js.map
|