@spacebar_ai/moldclaw-core 2026.3.14 → 2026.3.16
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/README.md +108 -3
- package/dist/account-id-plS5L20e.d.ts +1 -0
- package/dist/accounts-BAYVGC2k.js +109 -0
- package/dist/accounts-DrjRgReV.d.ts +103 -0
- package/dist/acp-cli-at_UYEOS.js +2088 -0
- package/dist/acpx-Chy1GQ_k.d.ts +5 -0
- package/dist/actions.runtime-C0F7dMfO.js +114 -0
- package/dist/actions.runtime-caI2LG9o.js +128 -0
- package/dist/agent-media-payload-CkpAqaOh.d.ts +16 -0
- package/dist/agents-B98yPGc5.js +853 -0
- package/dist/agents-BrLr08L3.js +217 -0
- package/dist/allow-from-BIwT4dl7.d.ts +42 -0
- package/dist/allow-list-CHt7yvAf.js +81 -0
- package/dist/allowlist-CxQo2wQc.js +142 -0
- package/dist/allowlist-resolution-B7ib7gye.d.ts +17 -0
- package/dist/api-Co7TNHbL.js +6953 -0
- package/dist/api-cEQ_ql_8.js +112 -0
- package/dist/audit-AnKnnlaZ.js +787 -0
- package/dist/audit-channel.collect.runtime-CAk1DFQ3.js +600 -0
- package/dist/audit-channel.runtime-5phdZp_m.js +116 -0
- package/dist/audit-extra.async-B8ZXFxic.js +813 -0
- package/dist/audit-hdKa3D-u.js +54 -0
- package/dist/audit-membership-runtime-CJV5XvGU.js +157 -0
- package/dist/audit.deep.runtime-DNMcRQrp.js +24 -0
- package/dist/audit.nondeep.runtime-DhNDL6yM.js +831 -0
- package/dist/audit.runtime-Bx7uWEh8.js +113 -0
- package/dist/auth-choice-C37W9MA7.js +268 -0
- package/dist/auth-choice-CNppOY_V.js +117 -0
- package/dist/auth-choice-XYFnp6fI.js +502 -0
- package/dist/auth-choice-options-D6oZY4Xo.js +123 -0
- package/dist/auth-choice-prompt-BhRqchJx.js +110 -0
- package/dist/auth-choice-prompt-C1xv0N08.js +36 -0
- package/dist/auth-choice.plugin-providers.runtime-DhLEtbmR.js +114 -0
- package/dist/auth-profiles-9zZdaXJK.js +127756 -0
- package/dist/auth-profiles.runtime-HONFDgiu.js +111 -0
- package/dist/bluebubbles-BY8JhO4y.js +64 -0
- package/dist/bluebubbles-CQjEnzK_.d.ts +6 -0
- package/dist/bluebubbles-RmcKgkBa.d.ts +45 -0
- package/dist/boolean-param-F1sMwnPu.d.ts +5 -0
- package/dist/bot-BGh-ATV7.d.ts +478 -0
- package/dist/brave-CljenznH.js +24 -0
- package/dist/browser-cli-CX8i0wf0.js +1492 -0
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.d.ts +6 -0
- package/dist/bundled/boot-md/handler.js +26 -26
- package/dist/bundled/bootstrap-extra-files/handler.d.ts +6 -0
- package/dist/bundled/command-logger/handler.d.ts +9 -0
- package/dist/bundled/session-memory/handler.d.ts +9 -0
- package/dist/bundled/session-memory/handler.js +27 -27
- package/dist/call-Bc257L16.js +37 -0
- package/dist/call-DYFR7oGy.js +639 -0
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/channel-Bd-igGEW.js +803 -0
- package/dist/channel-BgRMb6bZ.js +575 -0
- package/dist/channel-BtcLrU6J.js +1598 -0
- package/dist/channel-Bwf6m_hD.js +538 -0
- package/dist/channel-C7-kgDBd.js +562 -0
- package/dist/channel-CEXOAxIc.js +949 -0
- package/dist/channel-CpZ3p9MJ.js +226 -0
- package/dist/channel-CqBlN6A2.js +619 -0
- package/dist/channel-DKhfHW4U.js +352 -0
- package/dist/channel-DS3t_KdJ2.js +316 -0
- package/dist/channel-DY24FA1v.js +4681 -0
- package/dist/channel-DYFGmImJ.js +542 -0
- package/dist/channel-DcyIqX5p.js +207 -0
- package/dist/channel-J-2XcAli.js +214 -0
- package/dist/channel-N616f4gZ.js +306 -0
- package/dist/channel-NY7aU2Gj.js +397 -0
- package/dist/channel-PNI8BOmm.js +1321 -0
- package/dist/channel-UcXepDJs.js +943 -0
- package/dist/channel-account-context-CL3hEq1j.js +103 -0
- package/dist/channel-config-schema-Q2nzcCCR.d.ts +1 -0
- package/dist/channel-jA_jodJo.js +920 -0
- package/dist/channel-options-CtgU5qkG.js +50 -0
- package/dist/channel-policy-7wXDp6d3.d.ts +1 -0
- package/dist/channel-rGI8uig4.js +497 -0
- package/dist/channel-summary-DGJZXo0r.js +106 -0
- package/dist/channel.runtime--WZvlNJM.js +413 -0
- package/dist/channel.runtime-B0ct42DL.js +122 -0
- package/dist/channel.runtime-BEZUZrYB.js +177 -0
- package/dist/channel.runtime-BMuWmsIC.js +166 -0
- package/dist/channel.runtime-BtvHP0po.js +4006 -0
- package/dist/channel.runtime-Cwf993pX.js +194 -0
- package/dist/channel.runtime-Cy4lEpTX.js +174 -0
- package/dist/channel.runtime-DAz6axda.js +865 -0
- package/dist/channel.runtime-DdQ2mOVh.js +236 -0
- package/dist/channel.runtime-Dy3HPgOU.js +399 -0
- package/dist/channel.runtime-iqfC25k7.js +213 -0
- package/dist/channel.setup-B4VYMZlQ.js +9 -0
- package/dist/channel.setup-BohGbCbI.js +57 -0
- package/dist/channel.setup-Bq2AQqqc.js +6 -0
- package/dist/channel.setup-BxiSfLp1.js +8 -0
- package/dist/channel.setup-DOUS6fjO.js +8 -0
- package/dist/channel.setup-DXhdYU3g.js +9 -0
- package/dist/channel.setup-N51CgfNy.js +11 -0
- package/dist/channels/plugins/actions/discord.d.ts +3 -0
- package/dist/channels/plugins/actions/discord.js +26 -26
- package/dist/channels/plugins/actions/signal.d.ts +2 -0
- package/dist/channels/plugins/actions/signal.js +26 -26
- package/dist/channels/plugins/actions/telegram.d.ts +3 -0
- package/dist/channels/plugins/actions/telegram.js +26 -26
- package/dist/channels/plugins/agent-tools/whatsapp-login.d.ts +4 -0
- package/dist/channels/plugins/agent-tools/whatsapp-login.js +26 -26
- package/dist/channels-CueeFf0q.js +404 -0
- package/dist/channels-PheAd73E.js +1113 -0
- package/dist/channels-cli-CXzVF84v.js +286 -0
- package/dist/channels-status-issues-BjWBQHhU.js +16 -0
- package/dist/chat-type-BlSN0vo4.d.ts +5 -0
- package/dist/clawbot-cli-BBehDXW1.js +113 -0
- package/dist/cli/daemon-cli.d.ts +58 -0
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/cli-CIm7d5Id.js +149 -0
- package/dist/command-format-pq3tS8t2.d.ts +4 -0
- package/dist/command-registry-CDkp__KH.js +13 -0
- package/dist/command-registry-DSEkUBW1.js +212 -0
- package/dist/command-secret-gateway-CqP_o0n8.js +106 -0
- package/dist/compact.runtime-Qm_csEtG.js +111 -0
- package/dist/completion-cli-Ch1sgSLQ.js +445 -0
- package/dist/completion-cli-vF067Tso.js +16 -0
- package/dist/config-B2W1zTP1.js +44 -0
- package/dist/config-CMhKplgO.js +938 -0
- package/dist/config-DchtRsvs.js +30 -0
- package/dist/config-cli-C41d88_c.js +428 -0
- package/dist/config-guard-B_vjkXCQ.js +117 -0
- package/dist/config-schema-pPBCF4hz.js +31 -0
- package/dist/config-validation-6om9cBUx.js +262 -0
- package/dist/config-value-Dl3XEpA6.js +132 -0
- package/dist/configure-BxzvDSzu.js +1100 -0
- package/dist/configure-CLMLoWAn.js +238 -0
- package/dist/control-ui-shared-E8Nz6uKZ.js +29 -0
- package/dist/core-Cd3fMFKq.d.ts +87 -0
- package/dist/credentials-yYt6VWCq.js +268 -0
- package/dist/cron-cli-CA3lV3kh.js +634 -0
- package/dist/daemon-cli-BtQuIXEk.js +339 -0
- package/dist/daemon-install-BWKGzgMm.js +175 -0
- package/dist/deliver-CgMNmfTy.js +106 -0
- package/dist/deliver-runtime-Bn1KWoiQ.js +106 -0
- package/dist/devices-cli-D601npiL.js +340 -0
- package/dist/diagnostic-CkiYEGqt.js +310 -0
- package/dist/diffs-B5tZ8Coj.d.ts +1 -0
- package/dist/directory-cli-skEV8MT7.js +306 -0
- package/dist/directory-config-helpers-B-tiBKIv.d.ts +38 -0
- package/dist/directory-runtime-BEJ2fCIR.d.ts +1 -0
- package/dist/directory.static-CnyzoWbV.js +44 -0
- package/dist/discord-B_gbzPti.js +109 -0
- package/dist/discovery-CqI-e_Mv.js +48 -0
- package/dist/dm-policy-shared-nybkS1uP.d.ts +95 -0
- package/dist/dns-cli-Cjes3Ruw.js +216 -0
- package/dist/docs-cli-C3g3Gi_d.js +173 -0
- package/dist/doctor-completion-TvgV4SZH.js +90 -0
- package/dist/doctor-config-flow-0w9Ux7V8.js +107 -0
- package/dist/doctor-config-flow-DLzr8W7Y.js +2437 -0
- package/dist/enable-VYzv8b2z.js +24 -0
- package/dist/entry.d.ts +7 -0
- package/dist/entry.js +1 -1
- package/dist/env-overrides-DYVIkuvN.js +434 -0
- package/dist/env-overrides.runtime-6kijpIuu.js +17 -0
- package/dist/exec-approvals-cli-D_lkTG-l.js +419 -0
- package/dist/exec-sVmouhA9.d.ts +39 -0
- package/dist/extensions/acpx/index.d.ts +11 -0
- package/dist/extensions/acpx/index.js +1 -1
- package/dist/extensions/amazon-bedrock/index.d.ts +11 -0
- package/dist/extensions/anthropic/index.d.ts +11 -0
- package/dist/extensions/anthropic/index.js +26 -26
- package/dist/extensions/bluebubbles/index.d.ts +11 -0
- package/dist/extensions/bluebubbles/index.js +30 -30
- package/dist/extensions/bluebubbles/setup-entry.d.ts +59 -0
- package/dist/extensions/bluebubbles/setup-entry.js +30 -30
- package/dist/extensions/brave/index.d.ts +11 -0
- package/dist/extensions/brave/index.js +2 -2
- package/dist/extensions/byteplus/index.d.ts +11 -0
- package/dist/extensions/byteplus/index.js +26 -26
- package/dist/extensions/cloudflare-ai-gateway/index.d.ts +11 -0
- package/dist/extensions/cloudflare-ai-gateway/index.js +27 -27
- package/dist/extensions/copilot-proxy/index.d.ts +11 -0
- package/dist/extensions/device-pair/index.d.ts +12 -0
- package/dist/extensions/diagnostics-otel/index.d.ts +11 -0
- package/dist/extensions/diffs/index.d.ts +11 -0
- package/dist/extensions/discord/index.d.ts +11 -0
- package/dist/extensions/discord/index.js +31 -31
- package/dist/extensions/discord/setup-entry.d.ts +7 -0
- package/dist/extensions/discord/setup-entry.js +29 -29
- package/dist/extensions/elevenlabs/index.d.ts +11 -0
- package/dist/extensions/elevenlabs/index.js +26 -26
- package/dist/extensions/feishu/index.d.ts +229 -0
- package/dist/extensions/feishu/index.js +31 -31
- package/dist/extensions/feishu/setup-entry.d.ts +9 -0
- package/dist/extensions/feishu/setup-entry.js +28 -28
- package/dist/extensions/firecrawl/index.d.ts +11 -0
- package/dist/extensions/firecrawl/index.js +26 -26
- package/dist/extensions/github-copilot/index.d.ts +11 -0
- package/dist/extensions/github-copilot/index.js +27 -27
- package/dist/extensions/google/index.d.ts +11 -0
- package/dist/extensions/google/index.js +26 -26
- package/dist/extensions/googlechat/index.d.ts +11 -0
- package/dist/extensions/googlechat/index.js +30 -30
- package/dist/extensions/googlechat/setup-entry.d.ts +19 -0
- package/dist/extensions/googlechat/setup-entry.js +30 -30
- package/dist/extensions/huggingface/index.d.ts +11 -0
- package/dist/extensions/huggingface/index.js +26 -26
- package/dist/extensions/imessage/index.d.ts +11 -0
- package/dist/extensions/imessage/index.js +30 -30
- package/dist/extensions/imessage/setup-entry.d.ts +7 -0
- package/dist/extensions/imessage/setup-entry.js +30 -30
- package/dist/extensions/irc/index.d.ts +11 -0
- package/dist/extensions/irc/index.js +29 -29
- package/dist/extensions/irc/setup-entry.d.ts +8 -0
- package/dist/extensions/irc/setup-entry.js +29 -29
- package/dist/extensions/kakao-talkchannel/index.d.ts +19 -0
- package/dist/extensions/kakao-talkchannel/index.js +1762 -0
- package/dist/extensions/kakao-talkchannel/moldclaw.plugin.json +111 -0
- package/dist/extensions/kakao-talkchannel/package.json +12 -0
- package/dist/extensions/kilocode/index.d.ts +11 -0
- package/dist/extensions/kilocode/index.js +26 -26
- package/dist/extensions/kimi-coding/index.d.ts +11 -0
- package/dist/extensions/kimi-coding/index.js +26 -26
- package/dist/extensions/line/index.d.ts +11 -0
- package/dist/extensions/line/index.js +28 -28
- package/dist/extensions/line/setup-entry.d.ts +7 -0
- package/dist/extensions/line/setup-entry.js +28 -28
- package/dist/extensions/llm-task/index.d.ts +11 -0
- package/dist/extensions/llm-task/index.js +28 -28
- package/dist/extensions/lobster/index.d.ts +11 -0
- package/dist/extensions/matrix/index.d.ts +11 -0
- package/dist/extensions/matrix/index.js +31 -31
- package/dist/extensions/matrix/setup-entry.d.ts +20 -0
- package/dist/extensions/matrix/setup-entry.js +31 -31
- package/dist/extensions/mattermost/index.d.ts +11 -0
- package/dist/extensions/mattermost/index.js +28 -28
- package/dist/extensions/mattermost/setup-entry.d.ts +88 -0
- package/dist/extensions/mattermost/setup-entry.js +28 -28
- package/dist/extensions/memory-core/index.d.ts +11 -0
- package/dist/extensions/memory-lancedb/index.d.ts +25 -0
- package/dist/extensions/microsoft/index.d.ts +11 -0
- package/dist/extensions/microsoft/index.js +26 -26
- package/dist/extensions/minimax/index.d.ts +11 -0
- package/dist/extensions/minimax/index.js +26 -26
- package/dist/extensions/mistral/index.d.ts +11 -0
- package/dist/extensions/mistral/index.js +26 -26
- package/dist/extensions/modelstudio/index.d.ts +11 -0
- package/dist/extensions/modelstudio/index.js +26 -26
- package/dist/extensions/moonshot/index.d.ts +11 -0
- package/dist/extensions/moonshot/index.js +26 -26
- package/dist/extensions/msteams/index.d.ts +11 -0
- package/dist/extensions/msteams/index.js +31 -31
- package/dist/extensions/msteams/setup-entry.d.ts +11 -0
- package/dist/extensions/msteams/setup-entry.js +31 -31
- package/dist/extensions/nextcloud-talk/index.d.ts +11 -0
- package/dist/extensions/nextcloud-talk/index.js +28 -28
- package/dist/extensions/nextcloud-talk/setup-entry.d.ts +60 -0
- package/dist/extensions/nextcloud-talk/setup-entry.js +28 -28
- package/dist/extensions/nostr/index.d.ts +11 -0
- package/dist/extensions/nostr/index.js +28 -28
- package/dist/extensions/nostr/setup-entry.d.ts +49 -0
- package/dist/extensions/nostr/setup-entry.js +28 -28
- package/dist/extensions/nvidia/index.d.ts +11 -0
- package/dist/extensions/ollama/index.d.ts +11 -0
- package/dist/extensions/open-prose/index.d.ts +11 -0
- package/dist/extensions/openai/index.d.ts +11 -0
- package/dist/extensions/openai/index.js +26 -26
- package/dist/extensions/opencode/index.d.ts +11 -0
- package/dist/extensions/opencode/index.js +26 -26
- package/dist/extensions/opencode-go/index.d.ts +11 -0
- package/dist/extensions/opencode-go/index.js +26 -26
- package/dist/extensions/openrouter/index.d.ts +11 -0
- package/dist/extensions/openrouter/index.js +26 -26
- package/dist/extensions/openshell/index.d.ts +11 -0
- package/dist/extensions/openshell/index.js +26 -26
- package/dist/extensions/perplexity/index.d.ts +11 -0
- package/dist/extensions/perplexity/index.js +2 -2
- package/dist/extensions/phone-control/index.d.ts +12 -0
- package/dist/extensions/qianfan/index.d.ts +11 -0
- package/dist/extensions/qianfan/index.js +26 -26
- package/dist/extensions/qwen-portal-auth/index.d.ts +12 -0
- package/dist/extensions/qwen-portal-auth/index.js +26 -26
- package/dist/extensions/sglang/index.d.ts +11 -0
- package/dist/extensions/sglang/index.js +26 -26
- package/dist/extensions/signal/index.d.ts +11 -0
- package/dist/extensions/signal/index.js +29 -29
- package/dist/extensions/signal/setup-entry.d.ts +7 -0
- package/dist/extensions/signal/setup-entry.js +29 -29
- package/dist/extensions/slack/index.d.ts +11 -0
- package/dist/extensions/slack/index.js +30 -30
- package/dist/extensions/slack/setup-entry.d.ts +7 -0
- package/dist/extensions/slack/setup-entry.js +29 -29
- package/dist/extensions/synology-chat/index.d.ts +11 -0
- package/dist/extensions/synology-chat/index.js +28 -28
- package/dist/extensions/synology-chat/setup-entry.d.ts +138 -0
- package/dist/extensions/synology-chat/setup-entry.js +28 -28
- package/dist/extensions/synthetic/index.d.ts +11 -0
- package/dist/extensions/synthetic/index.js +26 -26
- package/dist/extensions/talk-voice/index.d.ts +12 -0
- package/dist/extensions/talk-voice/index.js +26 -26
- package/dist/extensions/telegram/index.d.ts +11 -0
- package/dist/extensions/telegram/index.js +29 -29
- package/dist/extensions/telegram/setup-entry.d.ts +7 -0
- package/dist/extensions/telegram/setup-entry.js +28 -28
- package/dist/extensions/thread-ownership/index.d.ts +12 -0
- package/dist/extensions/tlon/index.d.ts +11 -0
- package/dist/extensions/tlon/index.js +28 -28
- package/dist/extensions/tlon/setup-entry.d.ts +7 -0
- package/dist/extensions/tlon/setup-entry.js +28 -28
- package/dist/extensions/together/index.d.ts +11 -0
- package/dist/extensions/together/index.js +26 -26
- package/dist/extensions/twitch/index.d.ts +39 -0
- package/dist/extensions/twitch/index.js +28 -28
- package/dist/extensions/venice/index.d.ts +11 -0
- package/dist/extensions/venice/index.js +26 -26
- package/dist/extensions/vercel-ai-gateway/index.d.ts +11 -0
- package/dist/extensions/vercel-ai-gateway/index.js +26 -26
- package/dist/extensions/vllm/index.d.ts +11 -0
- package/dist/extensions/vllm/index.js +26 -26
- package/dist/extensions/voice-call/index.d.ts +11 -0
- package/dist/extensions/voice-call/index.js +26 -26
- package/dist/extensions/volcengine/index.d.ts +11 -0
- package/dist/extensions/volcengine/index.js +26 -26
- package/dist/extensions/whatsapp/index.d.ts +11 -0
- package/dist/extensions/whatsapp/index.js +29 -29
- package/dist/extensions/whatsapp/setup-entry.d.ts +7 -0
- package/dist/extensions/whatsapp/setup-entry.js +29 -29
- package/dist/extensions/xai/index.d.ts +11 -0
- package/dist/extensions/xai/index.js +26 -26
- package/dist/extensions/xiaomi/index.d.ts +11 -0
- package/dist/extensions/xiaomi/index.js +26 -26
- package/dist/extensions/zai/index.d.ts +11 -0
- package/dist/extensions/zai/index.js +26 -26
- package/dist/extensions/zalo/index.d.ts +11 -0
- package/dist/extensions/zalo/index.js +30 -30
- package/dist/extensions/zalo/setup-entry.d.ts +34 -0
- package/dist/extensions/zalo/setup-entry.js +30 -30
- package/dist/extensions/zalouser/index.d.ts +11 -0
- package/dist/extensions/zalouser/index.js +31 -31
- package/dist/extensions/zalouser/setup-entry.d.ts +42 -0
- package/dist/extensions/zalouser/setup-entry.js +31 -31
- package/dist/feishu-DCKEC3ao.d.ts +36 -0
- package/dist/gateway-cli-DN1Ii6J-.js +26432 -0
- package/dist/gateway-install-token-CJYFJBaC.js +163 -0
- package/dist/gateway-rpc-CroQg9MB.js +26 -0
- package/dist/gateway-runtime-D9FRZqKP.js +69 -0
- package/dist/googlechat-CBCkerAy.js +307 -0
- package/dist/googlechat-CSUNieHX.d.ts +12 -0
- package/dist/group-access-rSvkIglb.d.ts +61 -0
- package/dist/health-B6WwLJp4.js +570 -0
- package/dist/health-CAlJydXv.js +108 -0
- package/dist/history-BwNxb0sJ.d.ts +75 -0
- package/dist/hooks-BYlfU3Nf.d.ts +6 -0
- package/dist/hooks-cli-DuKmdo_H.js +995 -0
- package/dist/http-registry-DX_LVtuK.d.ts +20 -0
- package/dist/image-generation-DKkdRpve.d.ts +9 -0
- package/dist/imessage-7abjbe2Q.js +31 -0
- package/dist/imessage-DOH1yaDE.js +110 -0
- package/dist/inbound-envelope-CmvweL6U.d.ts +78 -0
- package/dist/inbound-reply-dispatch-BvnKTOec.js +71 -0
- package/dist/inbound-reply-dispatch-C7LjHRZN.d.ts +72 -0
- package/dist/index-DTQqfqj9.d.ts +1 -0
- package/dist/index.d.ts +27 -0
- package/dist/index.js +2 -2
- package/dist/infra/warning-filter.d.ts +10 -0
- package/dist/install-target-tXRD7VkM.js +574 -0
- package/dist/installs-C8fz8sm3.js +532 -0
- package/dist/io-C6XifaT4.js +9737 -0
- package/dist/io-C8awRnSW.js +28 -0
- package/dist/ipv4-d88_Jn2p.js +82 -0
- package/dist/irc-DpR6FXjN.js +672 -0
- package/dist/json-store-Sr_kk-II.d.ts +14 -0
- package/dist/keyed-async-queue-BA3BKukE.d.ts +19 -0
- package/dist/library-DOwowAGN.js +107 -0
- package/dist/lifecycle-core-BHHBoRTY.js +382 -0
- package/dist/line/accounts.d.ts +3 -0
- package/dist/line/send.d.ts +2 -0
- package/dist/line/send.js +4 -4
- package/dist/line/template-messages.d.ts +2 -0
- package/dist/line-8rsNbJCP.js +530 -0
- package/dist/line-D_cvIf6B.d.ts +75 -0
- package/dist/links-BOnvOj1z.d.ts +7 -0
- package/dist/llm-slug-generator-D9HjWtJT.js +67 -0
- package/dist/llm-slug-generator.d.ts +12 -0
- package/dist/llm-slug-generator.js +27 -27
- package/dist/logging-BhqLWxTD.js +13 -0
- package/dist/logging-DfaiL4OX.js +29 -0
- package/dist/login-qr-COBYR52w.js +233 -0
- package/dist/login-qr-xK4QIpPc.js +107 -0
- package/dist/logs-cli-RSSTw8L_.js +254 -0
- package/dist/manager-runtime-DL6JoSj9.js +106 -0
- package/dist/manager.runtime-Cbyhg1vB.js +710 -0
- package/dist/markdown-to-line-BTlEkOls.d.ts +91 -0
- package/dist/matrix-DX-jaB88.js +1490 -0
- package/dist/matrix-H6Yyj1QZ.d.ts +68 -0
- package/dist/matrix-J8s45tRw.js +1269 -0
- package/dist/mattermost-D75n6bRI.d.ts +6 -0
- package/dist/mcp-cli-CLc3_yCO.js +86 -0
- package/dist/media-understanding.runtime-BI0Lljbl.js +111 -0
- package/dist/memory-cli-CTp2cYrf.js +106 -0
- package/dist/method-scopes-Du8ODGFW.js +2586 -0
- package/dist/model-auth-markers-DEDakSUW.d.ts +20 -0
- package/dist/model-picker-CDBs7LJF.js +390 -0
- package/dist/model-picker-CRix4Wwv.js +107 -0
- package/dist/model-picker.runtime-CITyy3Rn.js +120 -0
- package/dist/model-suppression.runtime-Ce7D6QUT.js +111 -0
- package/dist/models-BK1eanuP.js +113 -0
- package/dist/models-X4Czy3uE.js +2514 -0
- package/dist/models-cli-C79Ulviy.js +304 -0
- package/dist/models-config-DALlu3S9.js +106 -0
- package/dist/models-config.providers.discovery-CSJ1STM1.d.ts +18 -0
- package/dist/monitor-B45a_RpX.js +3468 -0
- package/dist/monitor-C8KbJ-i0.js +767 -0
- package/dist/monitor-CIhrvegZ.js +3076 -0
- package/dist/monitor-CQut7klP.js +6823 -0
- package/dist/monitor-DZb5IJle.js +777 -0
- package/dist/monitor-DaFkdD27.js +108 -0
- package/dist/monitor-Do9Tp2Ii.js +110 -0
- package/dist/monitor-shared-CMK9cDOb.js +444 -0
- package/dist/msteams-A6H_wv5F.js +852 -0
- package/dist/net-DpMJgN-o.d.ts +19 -0
- package/dist/nextcloud-talk-f1pZ5Bge.d.ts +1 -0
- package/dist/node-cli-BXnmsjzL.js +2498 -0
- package/dist/node-resolve-CupmrA0Y.js +835 -0
- package/dist/nodes-cli-DZVrah_8.js +1375 -0
- package/dist/nostr-DMV534Ks.d.ts +7 -0
- package/dist/nostr-SAk3tjtR.js +8744 -0
- package/dist/npm-resolution-Dr9wssCY.js +60 -0
- package/dist/oauth-utils-DnyXdWU9.d.ts +10 -0
- package/dist/onboard-BE5pmb1g.js +589 -0
- package/dist/onboard-channels-3hNVY0E7.js +1241 -0
- package/dist/onboard-channels-vaO3nWLL.js +200 -0
- package/dist/onboard-custom-CI5uFyWH.js +571 -0
- package/dist/onboard-custom-eIvRswgv.js +109 -0
- package/dist/onboard-helpers-ChMWfUnl.js +335 -0
- package/dist/onboard-helpers-DRFi9oaD.js +108 -0
- package/dist/onboard-remote-BTspTgA4.js +112 -0
- package/dist/onboard-remote-so38yXlX.js +181 -0
- package/dist/onboard-search-DS0tZS24.js +297 -0
- package/dist/onboard-skills-B9DxCCiU.js +133 -0
- package/dist/onboard-skills-so0a_BJV.js +112 -0
- package/dist/outbound-media-BiJscGlR.js +11 -0
- package/dist/outbound-media-DJF-TuJu.d.ts +11 -0
- package/dist/pairing-access-CuiJP9xN.d.ts +21 -0
- package/dist/pairing-cli-DN0u1Cez.js +212 -0
- package/dist/parse-finite-number-B3FJTjyQ.d.ts +5 -0
- package/dist/perplexity-Bw1u3CAF.js +24 -0
- package/dist/persistent-dedupe-DR5Ka6BX.d.ts +26 -0
- package/dist/pi-model-discovery-runtime-iwKNCaYu.js +106 -0
- package/dist/pi-tools.before-tool-call.runtime-BM_N-JZe.js +380 -0
- package/dist/plugin-install--KVul05Z.js +184 -0
- package/dist/plugin-install-DVpPsLkS.js +112 -0
- package/dist/plugin-install-plan-Dwc6-coz.js +49 -0
- package/dist/plugin-registry-XRswugE9.js +108 -0
- package/dist/plugin-registry-jozQafRo.js +49 -0
- package/dist/plugin-sdk/account-resolution.js +26 -26
- package/dist/plugin-sdk/acp-runtime.js +26 -26
- package/dist/plugin-sdk/acpx.js +1 -1
- package/dist/plugin-sdk/agent-runtime.js +26 -26
- package/dist/plugin-sdk/bluebubbles.js +29 -29
- package/dist/plugin-sdk/channel-config-helpers.js +26 -26
- package/dist/plugin-sdk/channel-config-schema.js +2 -2
- package/dist/plugin-sdk/channel-policy.js +26 -26
- package/dist/plugin-sdk/channel-runtime.js +26 -26
- package/dist/plugin-sdk/compat.js +27 -27
- package/dist/plugin-sdk/config-runtime.js +28 -28
- package/dist/plugin-sdk/conversation-runtime.js +26 -26
- package/dist/plugin-sdk/discord.js +26 -26
- package/dist/plugin-sdk/feishu.js +27 -27
- package/dist/plugin-sdk/gateway-runtime.js +8 -8
- package/dist/plugin-sdk/googlechat.js +29 -29
- package/dist/plugin-sdk/image-generation-runtime.js +26 -26
- package/dist/plugin-sdk/image-generation.js +26 -26
- package/dist/plugin-sdk/imessage.js +27 -27
- package/dist/plugin-sdk/index.js +26 -26
- package/dist/plugin-sdk/infra-runtime.js +26 -26
- package/dist/plugin-sdk/irc.js +29 -29
- package/dist/plugin-sdk/line.js +27 -27
- package/dist/plugin-sdk/llm-task.js +26 -26
- package/dist/plugin-sdk/matrix.js +29 -29
- package/dist/plugin-sdk/mattermost.js +28 -28
- package/dist/plugin-sdk/media-runtime.js +26 -26
- package/dist/plugin-sdk/media-understanding-runtime.js +26 -26
- package/dist/plugin-sdk/media-understanding.js +26 -26
- package/dist/plugin-sdk/msteams.js +30 -30
- package/dist/plugin-sdk/nextcloud-talk.js +28 -28
- package/dist/plugin-sdk/nostr.js +27 -27
- package/dist/plugin-sdk/plugin-runtime.js +26 -26
- package/dist/plugin-sdk/provider-auth.js +28 -28
- package/dist/plugin-sdk/provider-setup.js +27 -27
- package/dist/plugin-sdk/provider-web-search.js +1 -1
- package/dist/plugin-sdk/qwen-portal-auth.js +26 -26
- package/dist/plugin-sdk/reply-history.js +26 -26
- package/dist/plugin-sdk/reply-runtime.js +26 -26
- package/dist/plugin-sdk/sandbox.js +26 -26
- package/dist/plugin-sdk/security-runtime.js +26 -26
- package/dist/plugin-sdk/self-hosted-provider-setup.js +27 -27
- package/dist/plugin-sdk/setup.js +27 -27
- package/dist/plugin-sdk/signal.js +26 -26
- package/dist/plugin-sdk/slack.js +26 -26
- package/dist/plugin-sdk/speech-runtime.js +26 -26
- package/dist/plugin-sdk/speech.js +26 -26
- package/dist/plugin-sdk/src/channels/plugins/setup-wizard-helpers.d.ts +3 -0
- package/dist/plugin-sdk/src/config/config-lock.d.ts +38 -0
- package/dist/plugin-sdk/src/config/config.d.ts +1 -1
- package/dist/plugin-sdk/src/config/io.d.ts +39 -0
- package/dist/plugin-sdk/src/config/types.gateway.d.ts +12 -0
- package/dist/plugin-sdk/src/config/types.secrets.d.ts +10 -0
- package/dist/plugin-sdk/src/config/zod-schema.d.ts +2 -0
- package/dist/plugin-sdk/src/gateway/credential-planner.d.ts +3 -1
- package/dist/plugin-sdk/src/secrets/provider-env-vars.d.ts +61 -0
- package/dist/plugin-sdk/src/secrets/sec1-placeholder.d.ts +181 -0
- package/dist/plugin-sdk/src/secrets/sec1-utils.d.ts +57 -0
- package/dist/plugin-sdk/synology-chat.js +27 -27
- package/dist/plugin-sdk/telegram.js +26 -26
- package/dist/plugin-sdk/text-runtime.js +4 -4
- package/dist/plugin-sdk/tlon.js +27 -27
- package/dist/plugin-sdk/twitch.js +26 -26
- package/dist/plugin-sdk/voice-call.js +26 -26
- package/dist/plugin-sdk/whatsapp.js +26 -26
- package/dist/plugin-sdk/zalo.js +30 -30
- package/dist/plugin-sdk/zalouser.js +29 -29
- package/dist/plugins/runtime/index.d.ts +22 -0
- package/dist/plugins/runtime/index.js +26 -26
- package/dist/plugins-C4PiDdjc.js +106 -0
- package/dist/plugins-cli-zhmliYNU.js +912 -0
- package/dist/policy-CcSolumc.js +143 -0
- package/dist/preflight-audio.runtime-BAbfqqzW.js +111 -0
- package/dist/probe-Bgt5c-cr.js +129 -0
- package/dist/probe-CPk5iGcg.js +47 -0
- package/dist/probe-DR4KRKXz.js +19 -0
- package/dist/probe-DnoCyJ_m.js +1793 -0
- package/dist/probe-VsLtK3vQ.js +6328 -0
- package/dist/probe-auth-BnsKrQt7.js +38 -0
- package/dist/probe-auth-DYdUG8l1.js +48 -0
- package/dist/program-8enYYBsc.js +247 -0
- package/dist/prompt-select-styled-DxBcUasv.js +2673 -0
- package/dist/provider-api-key-auth.runtime-DsLZyt6h.js +116 -0
- package/dist/provider-auth-choice-30EvRxqc.js +126 -0
- package/dist/provider-auth-choice-preference-DMr1WmRg.js +189 -0
- package/dist/provider-auth-choice.runtime-CI98BgQF.js +118 -0
- package/dist/provider-auth-guidance-WKDIi_wk.js +34 -0
- package/dist/provider-auth-result-Cs8wguSI.d.ts +18 -0
- package/dist/provider-models-EOys_Nvi.d.ts +867 -0
- package/dist/provider-ollama-setup-D89zlm9C.d.ts +32 -0
- package/dist/provider-onboard-BzOpgCLu.d.ts +40 -0
- package/dist/provider-runtime.runtime-Cm4as2KG.js +106 -0
- package/dist/provider-self-hosted-setup-Bmv_AQmw.d.ts +61 -0
- package/dist/provider-self-hosted-setup-CJwFVVB4.js +182 -0
- package/dist/provider-usage-CVNyLLDb.js +106 -0
- package/dist/provider-usage.types-CdTymHNu.d.ts +16 -0
- package/dist/provider-web-search-BJhXD5dH.js +2392 -0
- package/dist/provider-wizard-DMMYXjlW.js +152 -0
- package/dist/push-apns-BnWTdTEk.js +1038 -0
- package/dist/pw-ai-CtK_7Cy2.js +1866 -0
- package/dist/qr-cli-CA-BF0--.js +108 -0
- package/dist/qr-cli-D18HiUkh.js +369 -0
- package/dist/reactions-Df7XG8Uh.js +281 -0
- package/dist/read-only-account-inspect.discord.runtime-B-FP0mwb.js +111 -0
- package/dist/read-only-account-inspect.slack.runtime-DkWZ2ccW.js +111 -0
- package/dist/read-only-account-inspect.telegram.runtime-BnlTkn_e.js +111 -0
- package/dist/redact-snapshot-DVdstBvO.js +2661 -0
- package/dist/ref-contract-RPkB754Q.js +53 -0
- package/dist/register.agent-DVAxXQKW.js +434 -0
- package/dist/register.backup-CUuL5KUZ.js +624 -0
- package/dist/register.configure-bC0UEwfU.js +247 -0
- package/dist/register.maintenance-iIqvl_eT.js +569 -0
- package/dist/register.message-CEDd4z07.js +704 -0
- package/dist/register.onboard-Cejfnysy.js +187 -0
- package/dist/register.setup-DU7uHdYt.js +207 -0
- package/dist/register.status-health-sessions-BWphMXNR.js +493 -0
- package/dist/register.subclis-DnIweTEG.js +315 -0
- package/dist/register.subclis-gJX_Pbub.js +12 -0
- package/dist/registry-Dgwc-7eS.js +1183 -0
- package/dist/replies-D9PEZ8yn.js +110 -0
- package/dist/reply-history-lHgoC4l3.d.ts +1 -0
- package/dist/reply-payload-Bd2HuR4g.d.ts +46 -0
- package/dist/request-url-BcSJaiiu.d.ts +5 -0
- package/dist/resolve-BbsCHGLY.js +660 -0
- package/dist/resolve-channels-BtrGC95o.js +262 -0
- package/dist/resolve-channels-C1SthO1N.js +226 -0
- package/dist/resolve-users-CgSxHrU0.js +143 -0
- package/dist/routes-BZtqNrBf.js +7097 -0
- package/dist/rpc-D3KMxG4J.js +67 -0
- package/dist/run-command-C8b3dCZV.d.ts +16 -0
- package/dist/run-main-BlWJVotF.js +423 -0
- package/dist/runtime-RWGbO5Qy.d.ts +26 -0
- package/dist/runtime-discord-ops.runtime-DUXIYvQr.js +9073 -0
- package/dist/runtime-slack-ops.runtime-n1yFfyp1.js +4551 -0
- package/dist/runtime-telegram-ops.runtime-PZUWchjT.js +128 -0
- package/dist/runtime-whatsapp-login.runtime-xsuNyvGz.js +109 -0
- package/dist/runtime-whatsapp-outbound.runtime-5EfEyCsO.js +112 -0
- package/dist/sandbox-cli-Dw1nWNmQ.js +530 -0
- package/dist/search-manager-BJoRxOaf.js +15 -0
- package/dist/search-manager-DxkQvUrW.js +386 -0
- package/dist/secret-input-schema-Cp_La9qv.d.ts +19 -0
- package/dist/secrets-cli-BPyV2gSq.js +2065 -0
- package/dist/security-cli-EK4sSRfG.js +570 -0
- package/dist/send-B01Gvh9m.js +629 -0
- package/dist/send-B4L4wRJO.js +100 -0
- package/dist/send-BDcGrXt0.js +1025 -0
- package/dist/send-BRRtHxyR.js +283 -0
- package/dist/send-DU6dmMXW.js +631 -0
- package/dist/server-CWw5GFEg.js +106 -0
- package/dist/server-node-events-92cDVswC.js +501 -0
- package/dist/session-key-DbkfhOjM.d.ts +46 -0
- package/dist/sessions-B052uHA3.js +218 -0
- package/dist/sessions-Cef4dZNP.js +107 -0
- package/dist/setup-BlQPyDPy.js +387 -0
- package/dist/setup-DcSZ_pTn.d.ts +37 -0
- package/dist/setup-core-B9mdZYnU.js +166 -0
- package/dist/setup-core-Cj0sLkpP.js +47 -0
- package/dist/setup-core-CkZbebOv.js +143 -0
- package/dist/setup-core-MRNjnrJl.js +205 -0
- package/dist/setup-surface-3ZY0JtWE.js +490 -0
- package/dist/setup-wizard-helpers-Dwzb9Dcz.d.ts +203 -0
- package/dist/setup.finalize-B5ETm3Ui.js +517 -0
- package/dist/setup.gateway-config-C8hdtlbw.js +338 -0
- package/dist/setup.secret-input-BZSIeiqy.js +25 -0
- package/dist/shared--9_eQ_lc.js +75 -0
- package/dist/shared-CxkH3H0U.js +102 -0
- package/dist/shared-DTNL0hA9.js +298 -0
- package/dist/shared-HSP1OV-Q.js +96 -0
- package/dist/shared-UIjWb_3B.js +182 -0
- package/dist/signal-CTI6bSmB.js +109 -0
- package/dist/skills-4-r1mfJM.js +853 -0
- package/dist/skills-RNm54CBO.js +19 -0
- package/dist/skills-cli-te7dSs5p.js +291 -0
- package/dist/skills-install-Del-Ogv8.js +763 -0
- package/dist/skills-status-BZpoMXrR.js +169 -0
- package/dist/skills-status-Dq61Sz8U.js +20 -0
- package/dist/slack-oc-viUtl.js +109 -0
- package/dist/slash-commands.runtime-NdkD2LZV.js +123 -0
- package/dist/slash-dispatch.runtime-DQgeaF3J.js +136 -0
- package/dist/slash-skill-commands.runtime-DmOl2DnL.js +111 -0
- package/dist/src-0wtt7seR.js +1696 -0
- package/dist/status-5oR_gqv_.js +121 -0
- package/dist/status-BO8LY0hC.js +1599 -0
- package/dist/status-D_oHA9yO.js +126 -0
- package/dist/status-IrMacJRj.js +606 -0
- package/dist/status-Prdeg53E.js +43 -0
- package/dist/status-json-Da0hR-1Z.js +286 -0
- package/dist/status.link-channel-BgUJEZAz.js +138 -0
- package/dist/status.scan.deps.runtime-D9vHTxOW.js +121 -0
- package/dist/status.scan.runtime-D-EdD5CW.js +114 -0
- package/dist/status.summary--i6xduWH.js +592 -0
- package/dist/status.summary.runtime-BqMXjaBc.js +113 -0
- package/dist/subagent-orphan-recovery-DiRJcFQc.js +302 -0
- package/dist/subagent-registry-runtime-B66EYEYm.js +106 -0
- package/dist/synology-chat-BemXqdzG.js +297 -0
- package/dist/system-cli-CSuiia4-.js +92 -0
- package/dist/telegram/audit.d.ts +2 -0
- package/dist/telegram/audit.js +1 -1
- package/dist/telegram/token.d.ts +2 -0
- package/dist/telegram/token.js +26 -26
- package/dist/telegram-DLFcRv5a.js +109 -0
- package/dist/testing-DZrulv-n.d.ts +1755 -0
- package/dist/text-chunking-BaYBIUoR.d.ts +79 -0
- package/dist/text-chunking-C8kmbNfa.js +84 -0
- package/dist/thinking-D8aqmr3o.d.ts +13 -0
- package/dist/tlon-Bpr4f3yF.js +433 -0
- package/dist/tool-send-BHKm5ztm.d.ts +9 -0
- package/dist/tui-BY3QRgC1.js +3834 -0
- package/dist/tui-cli-CCfZOlV0.js +132 -0
- package/dist/types-CKx5nDZB.d.ts +45 -0
- package/dist/types-DBhDdMQd.d.ts +22670 -0
- package/dist/types.base-B_TkkSS8.d.ts +188 -0
- package/dist/types.secrets-Bojc4omL.js +92 -0
- package/dist/ui-1UpZZyI3.js +31 -0
- package/dist/update-BR4JvFpV.js +1036 -0
- package/dist/update-cli-BZv44lFq.js +1498 -0
- package/dist/update-offset-store-DGdBotIW.js +107 -0
- package/dist/update-runner-D34sooPe.js +1496 -0
- package/dist/vllm-defaults-BCGSJ7K0.d.ts +13 -0
- package/dist/wait-BU9vJv22.d.ts +4 -0
- package/dist/web-CXpU2D41.js +107 -0
- package/dist/web-shared-B4sL45ah.d.ts +45 -0
- package/dist/webhook-memory-guards-B7oLVseG.d.ts +43 -0
- package/dist/webhook-request-guards-CqIH7equ.d.ts +76 -0
- package/dist/webhook-targets-CAAGATtk.js +181 -0
- package/dist/webhook-targets-oQ0jd4r0.d.ts +106 -0
- package/dist/webhooks-cli-B46t2VT5.js +349 -0
- package/dist/whatsapp-Dniwd4Rv.js +109 -0
- package/dist/whatsapp-actions-fL46PsNs.js +162 -0
- package/dist/windows-spawn-DGeE98SH.d.ts +43 -0
- package/dist/workspace-dirs-d3Ms_ryk.js +2002 -0
- package/dist/zalo-Csulx0XK.d.ts +9 -0
- package/dist/zalo-gh0yAWmS.js +415 -0
- package/dist/zalouser-CuxRvztM.js +30911 -0
- package/dist/zod-schema.agent-runtime-B4MkB-_3.d.ts +10 -0
- package/dist/zod-schema.core-D5reNip6.js +541 -0
- package/dist/zod-schema.core-DN3RhEUG.d.ts +173 -0
- package/docs/SEC1.md +523 -0
- package/docs/SEC1_IMPLEMENTATION/CHANNELS_REPORT.md +173 -0
- package/docs/SEC1_IMPLEMENTATION/CORE_UTIL_REPORT.md +139 -0
- package/docs/SEC1_IMPLEMENTATION/DOCS_REPORT.md +134 -0
- package/docs/SEC1_IMPLEMENTATION/ENV_MAP_DRAFT.md +148 -0
- package/docs/SEC1_IMPLEMENTATION/INTEGRATION_REPORT.md +170 -0
- package/docs/SEC1_IMPLEMENTATION/PROVIDERS_REPORT.md +291 -0
- package/docs/SEC1_IMPLEMENTATION/QA_REPORT.md +249 -0
- package/docs/SEC1_IMPLEMENTATION/RECURSIVE_QA/wave1-channels.md +317 -0
- package/docs/SEC1_IMPLEMENTATION/RECURSIVE_QA/wave1-docs.md +212 -0
- package/docs/SEC1_IMPLEMENTATION/RECURSIVE_QA/wave1-security.md +368 -0
- package/docs/SEC1_IMPLEMENTATION/RECURSIVE_QA/wave2-critic-consolidated.md +195 -0
- package/docs/SEC1_IMPLEMENTATION/RECURSIVE_QA/wave3-fix-report.md +105 -0
- package/docs/SEC1_IMPLEMENTATION/STRATEGY.md +451 -0
- package/docs/SEC1_IMPLEMENTATION/TEST_REPORT.md +156 -0
- package/docs/pipeline-sdk/CLI_SPEC.md +609 -0
- package/docs/pipeline-sdk/PIPELINE_SDK_DESIGN.md +1372 -0
- package/extensions/kakao-talkchannel/MIGRATION_ARCH_ANALYSIS.md +455 -0
- package/extensions/kakao-talkchannel/MIGRATION_CODE_ANALYSIS.md +383 -0
- package/extensions/kakao-talkchannel/MIGRATION_STRATEGY.md +115 -0
- package/extensions/kakao-talkchannel/README.md +50 -0
- package/extensions/kakao-talkchannel/index.ts +20 -0
- package/extensions/kakao-talkchannel/moldclaw.plugin.json +98 -0
- package/extensions/kakao-talkchannel/package.json +12 -0
- package/extensions/kakao-talkchannel/src/adapters/config.ts +132 -0
- package/extensions/kakao-talkchannel/src/adapters/gateway.ts +974 -0
- package/extensions/kakao-talkchannel/src/adapters/outbound.ts +52 -0
- package/extensions/kakao-talkchannel/src/adapters/pairing.ts +35 -0
- package/extensions/kakao-talkchannel/src/adapters/security.ts +57 -0
- package/extensions/kakao-talkchannel/src/adapters/setup.ts +105 -0
- package/extensions/kakao-talkchannel/src/adapters/status.ts +117 -0
- package/extensions/kakao-talkchannel/src/channel.ts +58 -0
- package/extensions/kakao-talkchannel/src/commands/card.ts +413 -0
- package/extensions/kakao-talkchannel/src/config/schema.ts +129 -0
- package/extensions/kakao-talkchannel/src/kakao/callback.ts +133 -0
- package/extensions/kakao-talkchannel/src/kakao/limits.ts +129 -0
- package/extensions/kakao-talkchannel/src/kakao/payload.ts +138 -0
- package/extensions/kakao-talkchannel/src/kakao/response.ts +373 -0
- package/extensions/kakao-talkchannel/src/relay/client.ts +146 -0
- package/extensions/kakao-talkchannel/src/relay/session.ts +137 -0
- package/extensions/kakao-talkchannel/src/relay/sse.ts +258 -0
- package/extensions/kakao-talkchannel/src/relay/stream.ts +149 -0
- package/extensions/kakao-talkchannel/src/runtime.ts +21 -0
- package/extensions/kakao-talkchannel/src/types.ts +447 -0
- package/extensions/kakao-talkchannel/src/version.ts +3 -0
- package/extensions/kakao-talkchannel/tsconfig.json +19 -0
- package/package.json +23 -8
- package/skills/meshy/SKILL.md +69 -0
- package/skills/meshy/scripts/__pycache__/check_status.cpython-312.pyc +0 -0
- package/skills/meshy/scripts/__pycache__/image_to_3d.cpython-312.pyc +0 -0
- package/skills/meshy/scripts/__pycache__/text_to_3d.cpython-312.pyc +0 -0
- package/skills/meshy/scripts/check_status.py +147 -0
- package/skills/meshy/scripts/image_to_3d.py +229 -0
- package/skills/meshy/scripts/text_to_3d.py +214 -0
- package/skills/nano-banana-pro/scripts/generate_image.py +1 -1
- package/skills/openai-whisper-api/scripts/transcribe.sh +0 -0
- package/skills/tavily-search/SKILL.md +61 -0
- package/skills/tavily-search/scripts/__pycache__/search.cpython-312.pyc +0 -0
- package/skills/tavily-search/scripts/search.py +238 -0
- package/skills/video-frames/scripts/frame.sh +0 -0
- package/LICENSE +0 -21
- package/dist/accounts-UcSvD34O.js +0 -109
- package/dist/acp-cli-BPb8PgHP.js +0 -2088
- package/dist/actions.runtime-BL5QRooG.js +0 -114
- package/dist/actions.runtime-DSdfSo40.js +0 -128
- package/dist/agents-CHeX_5-H.js +0 -217
- package/dist/agents-DQRL9XKP.js +0 -853
- package/dist/allow-list-Boi79v-U.js +0 -81
- package/dist/allowlist-B2eBBeMF.js +0 -142
- package/dist/api-CFAtRSYL.js +0 -6953
- package/dist/api-D5JNJj8n.js +0 -112
- package/dist/audit-BM0GsdzV.js +0 -787
- package/dist/audit-BqRK9OSj.js +0 -54
- package/dist/audit-channel.collect.runtime-BPvDB8aq.js +0 -600
- package/dist/audit-channel.runtime-D3fzHiAo.js +0 -116
- package/dist/audit-extra.async-NveNIzX0.js +0 -813
- package/dist/audit-membership-runtime-mu470WFO.js +0 -157
- package/dist/audit.deep.runtime-RdxvW8Tj.js +0 -24
- package/dist/audit.nondeep.runtime-DDu8vA9Z.js +0 -831
- package/dist/audit.runtime-Y8C9W7s9.js +0 -113
- package/dist/auth-choice-C1CIxRsi.js +0 -268
- package/dist/auth-choice-CTvqWiDI.js +0 -117
- package/dist/auth-choice-Ddzko1B8.js +0 -502
- package/dist/auth-choice-options-BIAmAiCe.js +0 -123
- package/dist/auth-choice-prompt-B815kArz.js +0 -110
- package/dist/auth-choice-prompt-CGhTNCJx.js +0 -36
- package/dist/auth-choice.plugin-providers.runtime-AvAZ6S5W.js +0 -114
- package/dist/auth-profiles-BJcHzwPy.js +0 -127650
- package/dist/auth-profiles.runtime-CieFilK5.js +0 -111
- package/dist/bluebubbles-F8FGE9cH.js +0 -64
- package/dist/brave-BG5Yopn8.js +0 -24
- package/dist/browser-cli-Co7PJGZF.js +0 -1492
- package/dist/call-CoaQYq7c.js +0 -639
- package/dist/call-D3eu5Jjh.js +0 -37
- package/dist/channel-BftWD6yu.js +0 -1321
- package/dist/channel-Bub9U5Xg.js +0 -214
- package/dist/channel-C0oDs7TO.js +0 -4681
- package/dist/channel-C8CnEdkZ.js +0 -352
- package/dist/channel-CI-RC-xf.js +0 -497
- package/dist/channel-CY-hZCOJ.js +0 -397
- package/dist/channel-CbtGJB2x.js +0 -943
- package/dist/channel-CcfK3wP8.js +0 -803
- package/dist/channel-DBoDIeVj.js +0 -619
- package/dist/channel-DEq6Ecs-.js +0 -920
- package/dist/channel-DH4dhW1n.js +0 -226
- package/dist/channel-DQ_wdKg_.js +0 -575
- package/dist/channel-DT6qD1Ic.js +0 -207
- package/dist/channel-DZNAyxwr.js +0 -542
- package/dist/channel-DtakwAEe.js +0 -538
- package/dist/channel-DuYgH6p1.js +0 -562
- package/dist/channel-Hn-AN-d52.js +0 -316
- package/dist/channel-_R4hbD5h.js +0 -1598
- package/dist/channel-account-context-DXq8dlvI.js +0 -103
- package/dist/channel-kQmEVn3I.js +0 -306
- package/dist/channel-options-DHfxaklg.js +0 -50
- package/dist/channel-summary-DUpnoYhI.js +0 -106
- package/dist/channel-t-JxCWk6.js +0 -949
- package/dist/channel.runtime--GYriaXU.js +0 -213
- package/dist/channel.runtime-BJtn3GOH.js +0 -174
- package/dist/channel.runtime-BV7t_oNz.js +0 -166
- package/dist/channel.runtime-Bi8a3n9S.js +0 -865
- package/dist/channel.runtime-BjsYF0NN.js +0 -122
- package/dist/channel.runtime-BnI6YtmI.js +0 -413
- package/dist/channel.runtime-CQOftcCd.js +0 -194
- package/dist/channel.runtime-CuIAcPjZ.js +0 -4006
- package/dist/channel.runtime-DH1Q1G4k.js +0 -399
- package/dist/channel.runtime-DYYUPKxr.js +0 -236
- package/dist/channel.runtime-U5Gszsr5.js +0 -177
- package/dist/channel.setup-BQFHmgki.js +0 -9
- package/dist/channel.setup-BVoDwklu.js +0 -8
- package/dist/channel.setup-Bf73HsXr.js +0 -57
- package/dist/channel.setup-CblD4flM.js +0 -11
- package/dist/channel.setup-DgxlrPgz.js +0 -6
- package/dist/channel.setup-GLIAEVKL.js +0 -8
- package/dist/channel.setup-YTy5R1sz.js +0 -9
- package/dist/channels-CTL8iR9J.js +0 -404
- package/dist/channels-DBGvnjHY.js +0 -1113
- package/dist/channels-cli-BmVO5-sq.js +0 -286
- package/dist/channels-status-issues-kDtsWzA-.js +0 -16
- package/dist/clawbot-cli-DtcMJHqX.js +0 -113
- package/dist/cli-BNGECGVY.js +0 -149
- package/dist/command-registry-1SDrWgER.js +0 -13
- package/dist/command-registry-DNorYU4w.js +0 -212
- package/dist/command-secret-gateway-DqDZparO.js +0 -106
- package/dist/compact.runtime-C1ZN8UGb.js +0 -111
- package/dist/completion-cli-Q_Jt5Foc.js +0 -16
- package/dist/completion-cli-QkTXhuJh.js +0 -445
- package/dist/config-BbxrRaLf.js +0 -938
- package/dist/config-CkD8DJ7L.js +0 -44
- package/dist/config-cli-BoPrlYTp.js +0 -428
- package/dist/config-guard-CEhCvr_u.js +0 -117
- package/dist/config-schema-GQ6uWjXe.js +0 -31
- package/dist/config-validation-woE2_LpC.js +0 -262
- package/dist/config-value-Dh8m-CFf.js +0 -132
- package/dist/config-y4i5g7s4.js +0 -30
- package/dist/configure-DGRzwdFN.js +0 -1100
- package/dist/configure-S4AHE3k_.js +0 -238
- package/dist/control-ui-shared-kLBp4YlS.js +0 -29
- package/dist/credentials-D5uBf_C5.js +0 -265
- package/dist/cron-cli-lGupeVCW.js +0 -634
- package/dist/daemon-cli-Cs_edi0I.js +0 -339
- package/dist/daemon-install-DIFpP_qv.js +0 -175
- package/dist/deliver-DYa_DFZU.js +0 -106
- package/dist/deliver-runtime-DCW_o2Ot.js +0 -106
- package/dist/devices-cli-YsGOW2-w.js +0 -340
- package/dist/diagnostic-vMghIesG.js +0 -310
- package/dist/directory-cli-DtjMQjU5.js +0 -306
- package/dist/directory.static-DBZGvsdF.js +0 -44
- package/dist/discord-DYCu19HT.js +0 -109
- package/dist/discovery-DZYAoDF_.js +0 -48
- package/dist/dns-cli-DqW4pNgW.js +0 -216
- package/dist/docs-cli-Bu9TBlDU.js +0 -173
- package/dist/doctor-completion-B5hcQD5c.js +0 -90
- package/dist/doctor-config-flow-BBB2ZKfT.js +0 -107
- package/dist/doctor-config-flow-DDBYUS9f.js +0 -2437
- package/dist/enable-Tmsp8QuB.js +0 -24
- package/dist/env-overrides-BHxqjYZG.js +0 -434
- package/dist/env-overrides.runtime-Cz98bf-l.js +0 -17
- package/dist/exec-approvals-cli-wO5cYfMa.js +0 -419
- package/dist/gateway-cli-CFvDGhB9.js +0 -26429
- package/dist/gateway-install-token-CskJfo_N.js +0 -163
- package/dist/gateway-rpc-srYfBID9.js +0 -26
- package/dist/gateway-runtime-C76hUmUV.js +0 -69
- package/dist/googlechat-Cha5utST.js +0 -307
- package/dist/health-DDQYYsJy.js +0 -108
- package/dist/health-DXZykGaX.js +0 -570
- package/dist/hooks-cli-DfkurPYP.js +0 -995
- package/dist/imessage-B26k39pl.js +0 -110
- package/dist/imessage-Bp1_6cws.js +0 -31
- package/dist/inbound-reply-dispatch-DoIJLztA.js +0 -71
- package/dist/install-target-BjOuS4I8.js +0 -574
- package/dist/installs-Cz4k0W1Y.js +0 -532
- package/dist/io-B0OKifLZ.js +0 -28
- package/dist/io-DcoxdH6t.js +0 -9570
- package/dist/ipv4-CTQQ4_IW.js +0 -82
- package/dist/irc-B8vBDigm.js +0 -672
- package/dist/library-VCM_cQY4.js +0 -107
- package/dist/lifecycle-core-Ctz36PdQ.js +0 -382
- package/dist/line-B_uTLrdI.js +0 -530
- package/dist/llm-slug-generator-YWg0g2pj.js +0 -67
- package/dist/logging-S-5LPdfQ.js +0 -13
- package/dist/logging-ueBMCGMR.js +0 -29
- package/dist/login-qr-pcACm2Ng.js +0 -107
- package/dist/login-qr-pv-kxMfF.js +0 -233
- package/dist/logs-cli-RgADgSMO.js +0 -254
- package/dist/manager-runtime-BhTkoKmb.js +0 -106
- package/dist/manager.runtime-BjHzikoK.js +0 -710
- package/dist/matrix-C4EEu2Qp.js +0 -1490
- package/dist/matrix-Dfzcc5nV.js +0 -1269
- package/dist/mcp-cli-CJmOm9Oj.js +0 -86
- package/dist/media-understanding.runtime-DCETFCw_.js +0 -111
- package/dist/memory-cli-DFqd6tYx.js +0 -106
- package/dist/method-scopes-D-Q9dvbj.js +0 -2586
- package/dist/model-picker-Z-CUcuMr.js +0 -390
- package/dist/model-picker-v5mUsZ4J.js +0 -107
- package/dist/model-picker.runtime-A_z0dHfS.js +0 -120
- package/dist/model-suppression.runtime-QVWVJRr-.js +0 -111
- package/dist/models-Bbj0xV4F.js +0 -2514
- package/dist/models-D-OIjZqU.js +0 -113
- package/dist/models-cli-Bpn-5i4h.js +0 -304
- package/dist/models-config-Cwa5cJbC.js +0 -106
- package/dist/monitor-BchfCAaU.js +0 -6823
- package/dist/monitor-BydV44SP.js +0 -3076
- package/dist/monitor-CT8axwfm.js +0 -767
- package/dist/monitor-CZGWNOvn.js +0 -777
- package/dist/monitor-DN62r69g.js +0 -3468
- package/dist/monitor-DZ0fzJku.js +0 -110
- package/dist/monitor-DvNjzWFu.js +0 -108
- package/dist/monitor-shared-B-DBSlkQ.js +0 -444
- package/dist/msteams-Bf-wk2Rp.js +0 -852
- package/dist/node-cli-kH16TQI7.js +0 -2498
- package/dist/node-resolve-DfOpQmxm.js +0 -835
- package/dist/nodes-cli-CkAMXW5u.js +0 -1375
- package/dist/nostr-B8UGHclZ.js +0 -8744
- package/dist/npm-resolution-DmjlifII.js +0 -60
- package/dist/onboard-C883nfyw.js +0 -589
- package/dist/onboard-channels-Dc-BxN7p.js +0 -200
- package/dist/onboard-channels-j5EENtum.js +0 -1241
- package/dist/onboard-custom-0atne0C5.js +0 -571
- package/dist/onboard-custom-CWMqwjJx.js +0 -109
- package/dist/onboard-helpers-D3wWfH8F.js +0 -335
- package/dist/onboard-helpers-DZmRCe8l.js +0 -108
- package/dist/onboard-remote-Cn6kW-p0.js +0 -112
- package/dist/onboard-remote-Cx4w5VAk.js +0 -181
- package/dist/onboard-search-Ck9HRh2M.js +0 -297
- package/dist/onboard-skills-BtqrGioT.js +0 -133
- package/dist/onboard-skills-Dnw19Os8.js +0 -112
- package/dist/outbound-media-C5Nv4o18.js +0 -11
- package/dist/pairing-cli-Cwy9QZ_4.js +0 -212
- package/dist/perplexity-Brhpb45X.js +0 -24
- package/dist/pi-model-discovery-runtime-DIOdo6D8.js +0 -106
- package/dist/pi-tools.before-tool-call.runtime-CFM4gsDF.js +0 -380
- package/dist/plugin-install-BOV00hia.js +0 -112
- package/dist/plugin-install-Bak8fUBv.js +0 -184
- package/dist/plugin-install-plan-bKkEefRf.js +0 -49
- package/dist/plugin-registry-DxAXQUlZ.js +0 -108
- package/dist/plugin-registry-n0p3phem.js +0 -49
- package/dist/plugins-Ca3RK8Fi.js +0 -106
- package/dist/plugins-cli-BnC51H2R.js +0 -912
- package/dist/policy-BJv97w9e.js +0 -143
- package/dist/preflight-audio.runtime-BrFcf-6_.js +0 -111
- package/dist/probe-063xvvZc.js +0 -19
- package/dist/probe-BJEb2wGv.js +0 -1793
- package/dist/probe-CJQlxgsl.js +0 -47
- package/dist/probe-Caa2HznF.js +0 -6328
- package/dist/probe-CfL4tnJ6.js +0 -129
- package/dist/probe-auth-DN2Ec83-.js +0 -38
- package/dist/probe-auth-D_UKzu4m.js +0 -48
- package/dist/program-BOMdC7MC.js +0 -247
- package/dist/prompt-select-styled-DDnCfM3j.js +0 -2673
- package/dist/provider-api-key-auth.runtime-DUns3fwX.js +0 -116
- package/dist/provider-auth-choice-B_j1ctT2.js +0 -126
- package/dist/provider-auth-choice-preference-BaOBZ_Xn.js +0 -189
- package/dist/provider-auth-choice.runtime-DOako_zV.js +0 -118
- package/dist/provider-auth-guidance-CrjxnoNZ.js +0 -34
- package/dist/provider-runtime.runtime-BkOkgmTw.js +0 -106
- package/dist/provider-self-hosted-setup-BFDU6dRa.js +0 -182
- package/dist/provider-usage-CaDE0mqq.js +0 -106
- package/dist/provider-web-search-BR7etTjJ.js +0 -2392
- package/dist/provider-wizard-DCPdKUvb.js +0 -152
- package/dist/push-apns-B_OZjm4v.js +0 -1038
- package/dist/pw-ai-dG60P0hQ.js +0 -1866
- package/dist/qr-cli-DWfiw79I.js +0 -369
- package/dist/qr-cli-DwuKtyZQ.js +0 -108
- package/dist/reactions-CIGAPBn8.js +0 -281
- package/dist/read-only-account-inspect.discord.runtime-D54mnq8l.js +0 -111
- package/dist/read-only-account-inspect.slack.runtime-Bxs9ObMC.js +0 -111
- package/dist/read-only-account-inspect.telegram.runtime-UoVuf_Yo.js +0 -111
- package/dist/redact-snapshot-DZ3Vq-SC.js +0 -2657
- package/dist/ref-contract-D96lSYLs.js +0 -53
- package/dist/register.agent-2KmeahEL.js +0 -434
- package/dist/register.backup-ECBnWVR7.js +0 -624
- package/dist/register.configure-Doz1daCp.js +0 -247
- package/dist/register.maintenance-C33cV-WM.js +0 -569
- package/dist/register.message-CnL0NiF6.js +0 -704
- package/dist/register.onboard-BrYGZeQA.js +0 -187
- package/dist/register.setup-Bx6gEg6X.js +0 -207
- package/dist/register.status-health-sessions-FLb0CUOO.js +0 -493
- package/dist/register.subclis-BuqgaeIf.js +0 -12
- package/dist/register.subclis-DwdgfdnT.js +0 -315
- package/dist/registry-xhgvU89y.js +0 -1107
- package/dist/replies-hB2aipLu.js +0 -110
- package/dist/resolve-3ErMOltL.js +0 -660
- package/dist/resolve-channels-BV8GXuPe.js +0 -226
- package/dist/resolve-channels-CTY_XRIP.js +0 -262
- package/dist/resolve-users-DQ4Ne4Zc.js +0 -143
- package/dist/routes-BNDsNO_e.js +0 -7097
- package/dist/rpc-BLGTBWXq.js +0 -67
- package/dist/run-main-COAE4GlI.js +0 -423
- package/dist/runtime-discord-ops.runtime-Dxg-nlgd.js +0 -9073
- package/dist/runtime-slack-ops.runtime-Di474LJr.js +0 -4551
- package/dist/runtime-telegram-ops.runtime-Da8vgf3O.js +0 -128
- package/dist/runtime-whatsapp-login.runtime-DcouP4iF.js +0 -109
- package/dist/runtime-whatsapp-outbound.runtime-CYamaEJX.js +0 -112
- package/dist/sandbox-cli-U5ZTxhxL.js +0 -530
- package/dist/search-manager-CfizyEMk.js +0 -386
- package/dist/search-manager-DaF2QP4s.js +0 -15
- package/dist/secrets-cli-C0gytFip.js +0 -2065
- package/dist/security-cli-C74EuLUO.js +0 -570
- package/dist/send-BTLVBf_E.js +0 -631
- package/dist/send-BlWWCEZE.js +0 -1025
- package/dist/send-CfypD1B_.js +0 -100
- package/dist/send-Cm9v3uhF.js +0 -283
- package/dist/send-g2odQuYI.js +0 -629
- package/dist/server-C8b5QJ2s.js +0 -106
- package/dist/server-node-events-xqQe5xiu.js +0 -501
- package/dist/sessions-CSSzvgPQ.js +0 -107
- package/dist/sessions-z0GIvdKa.js +0 -218
- package/dist/setup-D9XTmlF8.js +0 -387
- package/dist/setup-core-BDrLOwYO.js +0 -143
- package/dist/setup-core-CM7cY7_i.js +0 -166
- package/dist/setup-core-CnmgANY-.js +0 -205
- package/dist/setup-core-DgcjCKmG.js +0 -47
- package/dist/setup-surface-DzRrVKYj.js +0 -490
- package/dist/setup.finalize-UaPu_adv.js +0 -517
- package/dist/setup.gateway-config-Djc1ceEh.js +0 -338
- package/dist/setup.secret-input-BkczghbR.js +0 -25
- package/dist/shared-BHizGoNk.js +0 -298
- package/dist/shared-CUfYhQkP.js +0 -96
- package/dist/shared-DYYqr9EC.js +0 -75
- package/dist/shared-DthOxMRQ.js +0 -182
- package/dist/shared-On_A5_hW.js +0 -102
- package/dist/signal-D6px9PGZ.js +0 -109
- package/dist/skills-B4h1k-SP.js +0 -853
- package/dist/skills-Bto10BGB.js +0 -19
- package/dist/skills-cli-CXGR3Y5j.js +0 -291
- package/dist/skills-install-B1AlkK8C.js +0 -763
- package/dist/skills-status-BsmJ_iSg.js +0 -20
- package/dist/skills-status-DGdxY3OI.js +0 -169
- package/dist/slack-B7vWFmxP.js +0 -109
- package/dist/slash-commands.runtime-DXdAT84n.js +0 -123
- package/dist/slash-dispatch.runtime-CNf2-9Aj.js +0 -136
- package/dist/slash-skill-commands.runtime-CBjffHRX.js +0 -111
- package/dist/src-Cp7P7T08.js +0 -1696
- package/dist/status-158fWh4A.js +0 -43
- package/dist/status-BJIVLJnb.js +0 -1599
- package/dist/status-BQiBI6N9.js +0 -126
- package/dist/status-CZipXGUu.js +0 -121
- package/dist/status-ZZIVFLI-.js +0 -606
- package/dist/status-json-BNUy5Mem.js +0 -286
- package/dist/status.link-channel-B694y1Xu.js +0 -138
- package/dist/status.scan.deps.runtime-BcoKEzQD.js +0 -121
- package/dist/status.scan.runtime-CqScDt-p.js +0 -114
- package/dist/status.summary-AMek7qvI.js +0 -592
- package/dist/status.summary.runtime-XgkcQ_kr.js +0 -113
- package/dist/subagent-orphan-recovery-CrCYTmFC.js +0 -302
- package/dist/subagent-registry-runtime-Cg-YvLx3.js +0 -106
- package/dist/synology-chat-0G85jIqQ.js +0 -297
- package/dist/system-cli-kZtSxKNm.js +0 -92
- package/dist/telegram-DV0Wy89w.js +0 -109
- package/dist/text-chunking-C2J2Oeul.js +0 -84
- package/dist/tlon-DmK1NUVP.js +0 -433
- package/dist/tui-D3bNPLG7.js +0 -3834
- package/dist/tui-cli-DtMp9k_s.js +0 -132
- package/dist/types.secrets-DuSPmmWB.js +0 -80
- package/dist/ui-CeGztSEL.js +0 -31
- package/dist/update-De7VudzP.js +0 -1036
- package/dist/update-cli-BH8Pb-So.js +0 -1498
- package/dist/update-offset-store-syELkdEW.js +0 -107
- package/dist/update-runner-Cq-Q40T9.js +0 -1496
- package/dist/web-CjMtvfSq.js +0 -107
- package/dist/webhook-targets-_jTR0Bb_.js +0 -181
- package/dist/webhooks-cli-DQ6u2Qau.js +0 -349
- package/dist/whatsapp-CyLk16SZ.js +0 -109
- package/dist/whatsapp-actions-Dzr2Wzqw.js +0 -162
- package/dist/workspace-dirs-L1_QQ9mB.js +0 -2002
- package/dist/zalo-CrehfXvK.js +0 -415
- package/dist/zalouser-D1QD-O-I.js +0 -30911
- package/dist/zod-schema.core-CWxzqcUs.js +0 -541
|
@@ -0,0 +1,1755 @@
|
|
|
1
|
+
import { Static } from "@sinclair/typebox";
|
|
2
|
+
|
|
3
|
+
//#region node_modules/.pnpm/@vitest+pretty-format@4.1.0/node_modules/@vitest/pretty-format/dist/index.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/
|
|
10
|
+
interface Colors {
|
|
11
|
+
comment: {
|
|
12
|
+
close: string;
|
|
13
|
+
open: string;
|
|
14
|
+
};
|
|
15
|
+
content: {
|
|
16
|
+
close: string;
|
|
17
|
+
open: string;
|
|
18
|
+
};
|
|
19
|
+
prop: {
|
|
20
|
+
close: string;
|
|
21
|
+
open: string;
|
|
22
|
+
};
|
|
23
|
+
tag: {
|
|
24
|
+
close: string;
|
|
25
|
+
open: string;
|
|
26
|
+
};
|
|
27
|
+
value: {
|
|
28
|
+
close: string;
|
|
29
|
+
open: string;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
type Indent = (arg0: string) => string;
|
|
33
|
+
type Refs = Array<unknown>;
|
|
34
|
+
type Print = (arg0: unknown) => string;
|
|
35
|
+
/**
|
|
36
|
+
* compare function used when sorting object keys, `null` can be used to skip over sorting.
|
|
37
|
+
*/
|
|
38
|
+
type CompareKeys = ((a: string, b: string) => number) | null | undefined;
|
|
39
|
+
interface PrettyFormatOptions {
|
|
40
|
+
callToJSON?: boolean;
|
|
41
|
+
escapeRegex?: boolean;
|
|
42
|
+
escapeString?: boolean;
|
|
43
|
+
highlight?: boolean;
|
|
44
|
+
indent?: number;
|
|
45
|
+
maxDepth?: number;
|
|
46
|
+
maxWidth?: number;
|
|
47
|
+
min?: boolean;
|
|
48
|
+
printBasicPrototype?: boolean;
|
|
49
|
+
printFunctionName?: boolean;
|
|
50
|
+
printShadowRoot?: boolean;
|
|
51
|
+
compareKeys?: CompareKeys;
|
|
52
|
+
plugins?: Plugins;
|
|
53
|
+
}
|
|
54
|
+
type OptionsReceived = PrettyFormatOptions;
|
|
55
|
+
interface Config {
|
|
56
|
+
callToJSON: boolean;
|
|
57
|
+
compareKeys: CompareKeys;
|
|
58
|
+
colors: Colors;
|
|
59
|
+
escapeRegex: boolean;
|
|
60
|
+
escapeString: boolean;
|
|
61
|
+
indent: string;
|
|
62
|
+
maxDepth: number;
|
|
63
|
+
maxWidth: number;
|
|
64
|
+
min: boolean;
|
|
65
|
+
plugins: Plugins;
|
|
66
|
+
printBasicPrototype: boolean;
|
|
67
|
+
printFunctionName: boolean;
|
|
68
|
+
printShadowRoot: boolean;
|
|
69
|
+
spacingInner: string;
|
|
70
|
+
spacingOuter: string;
|
|
71
|
+
}
|
|
72
|
+
type Printer = (val: unknown, config: Config, indentation: string, depth: number, refs: Refs, hasCalledToJSON?: boolean) => string;
|
|
73
|
+
type Test$1 = (arg0: any) => boolean;
|
|
74
|
+
interface NewPlugin {
|
|
75
|
+
serialize: (val: any, config: Config, indentation: string, depth: number, refs: Refs, printer: Printer) => string;
|
|
76
|
+
test: Test$1;
|
|
77
|
+
}
|
|
78
|
+
interface PluginOptions {
|
|
79
|
+
edgeSpacing: string;
|
|
80
|
+
min: boolean;
|
|
81
|
+
spacing: string;
|
|
82
|
+
}
|
|
83
|
+
interface OldPlugin {
|
|
84
|
+
print: (val: unknown, print: Print, indent: Indent, options: PluginOptions, colors: Colors) => string;
|
|
85
|
+
test: Test$1;
|
|
86
|
+
}
|
|
87
|
+
type Plugin = NewPlugin | OldPlugin;
|
|
88
|
+
type Plugins = Array<Plugin>;
|
|
89
|
+
/**
|
|
90
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
91
|
+
*
|
|
92
|
+
* This source code is licensed under the MIT license found in the
|
|
93
|
+
* LICENSE file in the root directory of this source tree.
|
|
94
|
+
*/
|
|
95
|
+
//#endregion
|
|
96
|
+
//#region node_modules/.pnpm/@vitest+utils@4.1.0/node_modules/@vitest/utils/dist/display.d.ts
|
|
97
|
+
interface StringifyOptions extends PrettyFormatOptions {
|
|
98
|
+
maxLength?: number;
|
|
99
|
+
filterNode?: string | ((node: any) => boolean);
|
|
100
|
+
}
|
|
101
|
+
declare function stringify(object: unknown, maxDepth?: number, {
|
|
102
|
+
maxLength,
|
|
103
|
+
filterNode,
|
|
104
|
+
...options
|
|
105
|
+
}?: StringifyOptions): string;
|
|
106
|
+
//#endregion
|
|
107
|
+
//#region node_modules/.pnpm/@vitest+utils@4.1.0/node_modules/@vitest/utils/dist/types.d.ts
|
|
108
|
+
interface ParsedStack$1 {
|
|
109
|
+
method: string;
|
|
110
|
+
file: string;
|
|
111
|
+
line: number;
|
|
112
|
+
column: number;
|
|
113
|
+
}
|
|
114
|
+
//#endregion
|
|
115
|
+
//#region node_modules/.pnpm/@vitest+utils@4.1.0/node_modules/@vitest/utils/dist/types.d-BCElaP-c.d.ts
|
|
116
|
+
/**
|
|
117
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
118
|
+
*
|
|
119
|
+
* This source code is licensed under the MIT license found in the
|
|
120
|
+
* LICENSE file in the root directory of this source tree.
|
|
121
|
+
*/
|
|
122
|
+
type DiffOptionsColor = (arg: string) => string;
|
|
123
|
+
interface DiffOptions {
|
|
124
|
+
aAnnotation?: string;
|
|
125
|
+
aColor?: DiffOptionsColor;
|
|
126
|
+
aIndicator?: string;
|
|
127
|
+
bAnnotation?: string;
|
|
128
|
+
bColor?: DiffOptionsColor;
|
|
129
|
+
bIndicator?: string;
|
|
130
|
+
changeColor?: DiffOptionsColor;
|
|
131
|
+
changeLineTrailingSpaceColor?: DiffOptionsColor;
|
|
132
|
+
commonColor?: DiffOptionsColor;
|
|
133
|
+
commonIndicator?: string;
|
|
134
|
+
commonLineTrailingSpaceColor?: DiffOptionsColor;
|
|
135
|
+
contextLines?: number;
|
|
136
|
+
emptyFirstOrLastLinePlaceholder?: string;
|
|
137
|
+
expand?: boolean;
|
|
138
|
+
includeChangeCounts?: boolean;
|
|
139
|
+
omitAnnotationLines?: boolean;
|
|
140
|
+
patchColor?: DiffOptionsColor;
|
|
141
|
+
printBasicPrototype?: boolean;
|
|
142
|
+
maxDepth?: number;
|
|
143
|
+
compareKeys?: CompareKeys;
|
|
144
|
+
truncateThreshold?: number;
|
|
145
|
+
truncateAnnotation?: string;
|
|
146
|
+
truncateAnnotationColor?: DiffOptionsColor;
|
|
147
|
+
}
|
|
148
|
+
//#endregion
|
|
149
|
+
//#region node_modules/.pnpm/@vitest+utils@4.1.0/node_modules/@vitest/utils/dist/diff.d.ts
|
|
150
|
+
/**
|
|
151
|
+
* @param a Expected value
|
|
152
|
+
* @param b Received value
|
|
153
|
+
* @param options Diff options
|
|
154
|
+
* @returns {string | null} a string diff
|
|
155
|
+
*/
|
|
156
|
+
declare function diff(a: any, b: any, options?: DiffOptions): string | undefined;
|
|
157
|
+
declare function printDiffOrStringify(received: unknown, expected: unknown, options?: DiffOptions): string | undefined;
|
|
158
|
+
//#endregion
|
|
159
|
+
//#region node_modules/.pnpm/@vitest+snapshot@4.1.0/node_modules/@vitest/snapshot/dist/environment.d-DOJxxZV9.d.ts
|
|
160
|
+
interface SnapshotEnvironment {
|
|
161
|
+
getVersion: () => string;
|
|
162
|
+
getHeader: () => string;
|
|
163
|
+
resolvePath: (filepath: string) => Promise<string>;
|
|
164
|
+
resolveRawPath: (testPath: string, rawPath: string) => Promise<string>;
|
|
165
|
+
saveSnapshotFile: (filepath: string, snapshot: string) => Promise<void>;
|
|
166
|
+
readSnapshotFile: (filepath: string) => Promise<string | null>;
|
|
167
|
+
removeSnapshotFile: (filepath: string) => Promise<void>;
|
|
168
|
+
processStackTrace?: (stack: ParsedStack$1) => ParsedStack$1;
|
|
169
|
+
}
|
|
170
|
+
//#endregion
|
|
171
|
+
//#region node_modules/.pnpm/@vitest+snapshot@4.1.0/node_modules/@vitest/snapshot/dist/rawSnapshot.d-U2kJUxDr.d.ts
|
|
172
|
+
type SnapshotUpdateState = "all" | "new" | "none";
|
|
173
|
+
interface SnapshotStateOptions {
|
|
174
|
+
updateSnapshot: SnapshotUpdateState;
|
|
175
|
+
snapshotEnvironment: SnapshotEnvironment;
|
|
176
|
+
expand?: boolean;
|
|
177
|
+
snapshotFormat?: OptionsReceived;
|
|
178
|
+
resolveSnapshotPath?: (path: string, extension: string, context?: any) => string;
|
|
179
|
+
}
|
|
180
|
+
interface SnapshotMatchOptions {
|
|
181
|
+
testId: string;
|
|
182
|
+
testName: string;
|
|
183
|
+
received: unknown;
|
|
184
|
+
key?: string;
|
|
185
|
+
inlineSnapshot?: string;
|
|
186
|
+
isInline: boolean;
|
|
187
|
+
error?: Error;
|
|
188
|
+
rawSnapshot?: RawSnapshotInfo;
|
|
189
|
+
}
|
|
190
|
+
interface SnapshotResult {
|
|
191
|
+
filepath: string;
|
|
192
|
+
added: number;
|
|
193
|
+
fileDeleted: boolean;
|
|
194
|
+
matched: number;
|
|
195
|
+
unchecked: number;
|
|
196
|
+
uncheckedKeys: Array<string>;
|
|
197
|
+
unmatched: number;
|
|
198
|
+
updated: number;
|
|
199
|
+
}
|
|
200
|
+
interface RawSnapshotInfo {
|
|
201
|
+
file: string;
|
|
202
|
+
readonly?: boolean;
|
|
203
|
+
content?: string;
|
|
204
|
+
}
|
|
205
|
+
//#endregion
|
|
206
|
+
//#region node_modules/.pnpm/@vitest+snapshot@4.1.0/node_modules/@vitest/snapshot/dist/index.d.ts
|
|
207
|
+
/**
|
|
208
|
+
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
|
209
|
+
*
|
|
210
|
+
* This source code is licensed under the MIT license found in the
|
|
211
|
+
* LICENSE file in the root directory of this source tree.
|
|
212
|
+
*/
|
|
213
|
+
declare class DefaultMap<K, V> extends Map<K, V> {
|
|
214
|
+
private defaultFn;
|
|
215
|
+
constructor(defaultFn: (key: K) => V, entries?: Iterable<readonly [K, V]>);
|
|
216
|
+
get(key: K): V;
|
|
217
|
+
}
|
|
218
|
+
declare class CounterMap<K> extends DefaultMap<K, number> {
|
|
219
|
+
constructor();
|
|
220
|
+
_total: number | undefined;
|
|
221
|
+
valueOf(): number;
|
|
222
|
+
increment(key: K): void;
|
|
223
|
+
total(): number;
|
|
224
|
+
}
|
|
225
|
+
interface SnapshotReturnOptions {
|
|
226
|
+
actual: string;
|
|
227
|
+
count: number;
|
|
228
|
+
expected?: string;
|
|
229
|
+
key: string;
|
|
230
|
+
pass: boolean;
|
|
231
|
+
}
|
|
232
|
+
interface SaveStatus {
|
|
233
|
+
deleted: boolean;
|
|
234
|
+
saved: boolean;
|
|
235
|
+
}
|
|
236
|
+
declare class SnapshotState {
|
|
237
|
+
testFilePath: string;
|
|
238
|
+
snapshotPath: string;
|
|
239
|
+
private _counters;
|
|
240
|
+
private _dirty;
|
|
241
|
+
private _updateSnapshot;
|
|
242
|
+
private _snapshotData;
|
|
243
|
+
private _initialData;
|
|
244
|
+
private _inlineSnapshots;
|
|
245
|
+
private _inlineSnapshotStacks;
|
|
246
|
+
private _testIdToKeys;
|
|
247
|
+
private _rawSnapshots;
|
|
248
|
+
private _uncheckedKeys;
|
|
249
|
+
private _snapshotFormat;
|
|
250
|
+
private _environment;
|
|
251
|
+
private _fileExists;
|
|
252
|
+
expand: boolean;
|
|
253
|
+
private _added;
|
|
254
|
+
private _matched;
|
|
255
|
+
private _unmatched;
|
|
256
|
+
private _updated;
|
|
257
|
+
get added(): CounterMap<string>;
|
|
258
|
+
set added(value: number);
|
|
259
|
+
get matched(): CounterMap<string>;
|
|
260
|
+
set matched(value: number);
|
|
261
|
+
get unmatched(): CounterMap<string>;
|
|
262
|
+
set unmatched(value: number);
|
|
263
|
+
get updated(): CounterMap<string>;
|
|
264
|
+
set updated(value: number);
|
|
265
|
+
private constructor();
|
|
266
|
+
static create(testFilePath: string, options: SnapshotStateOptions): Promise<SnapshotState>;
|
|
267
|
+
get environment(): SnapshotEnvironment;
|
|
268
|
+
markSnapshotsAsCheckedForTest(testName: string): void;
|
|
269
|
+
clearTest(testId: string): void;
|
|
270
|
+
protected _inferInlineSnapshotStack(stacks: ParsedStack$1[]): ParsedStack$1 | null;
|
|
271
|
+
private _addSnapshot;
|
|
272
|
+
save(): Promise<SaveStatus>;
|
|
273
|
+
getUncheckedCount(): number;
|
|
274
|
+
getUncheckedKeys(): Array<string>;
|
|
275
|
+
removeUncheckedKeys(): void;
|
|
276
|
+
match({
|
|
277
|
+
testId,
|
|
278
|
+
testName,
|
|
279
|
+
received,
|
|
280
|
+
key,
|
|
281
|
+
inlineSnapshot,
|
|
282
|
+
isInline,
|
|
283
|
+
error,
|
|
284
|
+
rawSnapshot
|
|
285
|
+
}: SnapshotMatchOptions): SnapshotReturnOptions;
|
|
286
|
+
pack(): Promise<SnapshotResult>;
|
|
287
|
+
}
|
|
288
|
+
//#endregion
|
|
289
|
+
//#region node_modules/.pnpm/vitest@4.1.0_@opentelemetry+api@1.9.0_@types+node@25.5.0_@vitest+browser-playwright@4.1_695714f6844b24120687f5aa00a01637/node_modules/vitest/dist/chunks/rpc.d.BFMWpdph.d.ts
|
|
290
|
+
interface UserConsoleLog {
|
|
291
|
+
content: string;
|
|
292
|
+
origin?: string;
|
|
293
|
+
browser?: boolean;
|
|
294
|
+
type: "stdout" | "stderr";
|
|
295
|
+
taskId?: string;
|
|
296
|
+
time: number;
|
|
297
|
+
size: number;
|
|
298
|
+
}
|
|
299
|
+
//#endregion
|
|
300
|
+
//#region node_modules/.pnpm/@vitest+utils@1.6.1/node_modules/@vitest/utils/dist/types.d.ts
|
|
301
|
+
type Awaitable<T> = T | PromiseLike<T>;
|
|
302
|
+
interface ParsedStack {
|
|
303
|
+
method: string;
|
|
304
|
+
file: string;
|
|
305
|
+
line: number;
|
|
306
|
+
column: number;
|
|
307
|
+
}
|
|
308
|
+
interface ErrorWithDiff extends Error {
|
|
309
|
+
name: string;
|
|
310
|
+
nameStr?: string;
|
|
311
|
+
stack?: string;
|
|
312
|
+
stackStr?: string;
|
|
313
|
+
stacks?: ParsedStack[];
|
|
314
|
+
showDiff?: boolean;
|
|
315
|
+
actual?: any;
|
|
316
|
+
expected?: any;
|
|
317
|
+
operator?: string;
|
|
318
|
+
type?: string;
|
|
319
|
+
frame?: string;
|
|
320
|
+
diff?: string;
|
|
321
|
+
codeFrame?: string;
|
|
322
|
+
}
|
|
323
|
+
//#endregion
|
|
324
|
+
//#region node_modules/.pnpm/@vitest+runner@1.6.1/node_modules/@vitest/runner/dist/tasks-K5XERDtv.d.ts
|
|
325
|
+
type RunMode = 'run' | 'skip' | 'only' | 'todo';
|
|
326
|
+
type TaskState = RunMode | 'pass' | 'fail';
|
|
327
|
+
interface TaskBase {
|
|
328
|
+
id: string;
|
|
329
|
+
name: string;
|
|
330
|
+
mode: RunMode;
|
|
331
|
+
meta: TaskMeta;
|
|
332
|
+
each?: boolean;
|
|
333
|
+
concurrent?: boolean;
|
|
334
|
+
shuffle?: boolean;
|
|
335
|
+
suite?: Suite;
|
|
336
|
+
file?: File;
|
|
337
|
+
result?: TaskResult$1;
|
|
338
|
+
retry?: number;
|
|
339
|
+
repeats?: number;
|
|
340
|
+
location?: {
|
|
341
|
+
line: number;
|
|
342
|
+
column: number;
|
|
343
|
+
};
|
|
344
|
+
}
|
|
345
|
+
interface TaskPopulated extends TaskBase {
|
|
346
|
+
suite: Suite;
|
|
347
|
+
pending?: boolean;
|
|
348
|
+
result?: TaskResult$1;
|
|
349
|
+
fails?: boolean;
|
|
350
|
+
onFailed?: OnTestFailedHandler[];
|
|
351
|
+
onFinished?: OnTestFinishedHandler[];
|
|
352
|
+
/**
|
|
353
|
+
* Store promises (from async expects) to wait for them before finishing the test
|
|
354
|
+
*/
|
|
355
|
+
promises?: Promise<any>[];
|
|
356
|
+
}
|
|
357
|
+
interface TaskMeta {}
|
|
358
|
+
interface TaskResult$1 {
|
|
359
|
+
state: TaskState;
|
|
360
|
+
duration?: number;
|
|
361
|
+
startTime?: number;
|
|
362
|
+
heap?: number;
|
|
363
|
+
errors?: ErrorWithDiff[];
|
|
364
|
+
htmlError?: string;
|
|
365
|
+
hooks?: Partial<Record<keyof SuiteHooks, TaskState>>;
|
|
366
|
+
retryCount?: number;
|
|
367
|
+
repeatCount?: number;
|
|
368
|
+
}
|
|
369
|
+
interface Suite extends TaskBase {
|
|
370
|
+
type: 'suite';
|
|
371
|
+
tasks: Task[];
|
|
372
|
+
filepath?: string;
|
|
373
|
+
projectName: string;
|
|
374
|
+
}
|
|
375
|
+
interface File extends Suite {
|
|
376
|
+
filepath: string;
|
|
377
|
+
collectDuration?: number;
|
|
378
|
+
setupDuration?: number;
|
|
379
|
+
}
|
|
380
|
+
interface Test<ExtraContext = {}> extends TaskPopulated {
|
|
381
|
+
type: 'test';
|
|
382
|
+
context: TaskContext<Test> & ExtraContext & TestContext;
|
|
383
|
+
}
|
|
384
|
+
interface Custom<ExtraContext = {}> extends TaskPopulated {
|
|
385
|
+
type: 'custom';
|
|
386
|
+
context: TaskContext<Custom> & ExtraContext & TestContext;
|
|
387
|
+
}
|
|
388
|
+
type Task = Test | Suite | Custom | File;
|
|
389
|
+
type HookListener<T extends any[], Return = void> = (...args: T) => Awaitable<Return>;
|
|
390
|
+
type HookCleanupCallback = (() => Awaitable<unknown>) | void;
|
|
391
|
+
interface SuiteHooks<ExtraContext = {}> {
|
|
392
|
+
beforeAll: HookListener<[Readonly<Suite | File>], HookCleanupCallback>[];
|
|
393
|
+
afterAll: HookListener<[Readonly<Suite | File>]>[];
|
|
394
|
+
beforeEach: HookListener<[ExtendedContext<Test | Custom> & ExtraContext, Readonly<Suite>], HookCleanupCallback>[];
|
|
395
|
+
afterEach: HookListener<[ExtendedContext<Test | Custom> & ExtraContext, Readonly<Suite>]>[];
|
|
396
|
+
}
|
|
397
|
+
interface TestContext {}
|
|
398
|
+
interface TaskContext<Task extends Custom | Test = Custom | Test> {
|
|
399
|
+
/**
|
|
400
|
+
* Metadata of the current test
|
|
401
|
+
*/
|
|
402
|
+
task: Readonly<Task>;
|
|
403
|
+
/**
|
|
404
|
+
* Extract hooks on test failed
|
|
405
|
+
*/
|
|
406
|
+
onTestFailed: (fn: OnTestFailedHandler) => void;
|
|
407
|
+
/**
|
|
408
|
+
* Extract hooks on test failed
|
|
409
|
+
*/
|
|
410
|
+
onTestFinished: (fn: OnTestFinishedHandler) => void;
|
|
411
|
+
/**
|
|
412
|
+
* Mark tests as skipped. All execution after this call will be skipped.
|
|
413
|
+
*/
|
|
414
|
+
skip: () => void;
|
|
415
|
+
}
|
|
416
|
+
type ExtendedContext<T extends Custom | Test> = TaskContext<T> & TestContext;
|
|
417
|
+
type OnTestFailedHandler = (result: TaskResult$1) => Awaitable<void>;
|
|
418
|
+
type OnTestFinishedHandler = (result: TaskResult$1) => Awaitable<void>;
|
|
419
|
+
//#endregion
|
|
420
|
+
//#region node_modules/.pnpm/@vitest+spy@4.1.0/node_modules/@vitest/spy/dist/index.d.ts
|
|
421
|
+
interface MockResultReturn<T> {
|
|
422
|
+
type: "return";
|
|
423
|
+
/**
|
|
424
|
+
* The value that was returned from the function. If function returned a Promise, then this will be a resolved value.
|
|
425
|
+
*/
|
|
426
|
+
value: T;
|
|
427
|
+
}
|
|
428
|
+
interface MockResultIncomplete {
|
|
429
|
+
type: "incomplete";
|
|
430
|
+
value: undefined;
|
|
431
|
+
}
|
|
432
|
+
interface MockResultThrow {
|
|
433
|
+
type: "throw";
|
|
434
|
+
/**
|
|
435
|
+
* An error that was thrown during function execution.
|
|
436
|
+
*/
|
|
437
|
+
value: any;
|
|
438
|
+
}
|
|
439
|
+
interface MockSettledResultIncomplete {
|
|
440
|
+
type: "incomplete";
|
|
441
|
+
value: undefined;
|
|
442
|
+
}
|
|
443
|
+
interface MockSettledResultFulfilled<T> {
|
|
444
|
+
type: "fulfilled";
|
|
445
|
+
value: T;
|
|
446
|
+
}
|
|
447
|
+
interface MockSettledResultRejected {
|
|
448
|
+
type: "rejected";
|
|
449
|
+
value: any;
|
|
450
|
+
}
|
|
451
|
+
type MockResult<T> = MockResultReturn<T> | MockResultThrow | MockResultIncomplete;
|
|
452
|
+
type MockSettledResult<T> = MockSettledResultFulfilled<T> | MockSettledResultRejected | MockSettledResultIncomplete;
|
|
453
|
+
type MockParameters<T extends Procedure | Constructable> = T extends Constructable ? ConstructorParameters<T> : T extends Procedure ? Parameters<T> : never;
|
|
454
|
+
type MockReturnType<T extends Procedure | Constructable> = T extends Constructable ? InstanceType<T> : T extends Procedure ? ReturnType<T> : never;
|
|
455
|
+
type MockProcedureContext<T extends Procedure | Constructable> = T extends Constructable ? InstanceType<T> : ThisParameterType<T>;
|
|
456
|
+
interface MockContext<T extends Procedure | Constructable = Procedure> {
|
|
457
|
+
/**
|
|
458
|
+
* This is an array containing all arguments for each call. One item of the array is the arguments of that call.
|
|
459
|
+
*
|
|
460
|
+
* @see https://vitest.dev/api/mock#mock-calls
|
|
461
|
+
* @example
|
|
462
|
+
* const fn = vi.fn()
|
|
463
|
+
*
|
|
464
|
+
* fn('arg1', 'arg2')
|
|
465
|
+
* fn('arg3')
|
|
466
|
+
*
|
|
467
|
+
* fn.mock.calls === [
|
|
468
|
+
* ['arg1', 'arg2'], // first call
|
|
469
|
+
* ['arg3'], // second call
|
|
470
|
+
* ]
|
|
471
|
+
*/
|
|
472
|
+
calls: MockParameters<T>[];
|
|
473
|
+
/**
|
|
474
|
+
* This is an array containing all instances that were instantiated when mock was called with a `new` keyword. Note that this is an actual context (`this`) of the function, not a return value.
|
|
475
|
+
* @see https://vitest.dev/api/mock#mock-instances
|
|
476
|
+
*/
|
|
477
|
+
instances: MockProcedureContext<T>[];
|
|
478
|
+
/**
|
|
479
|
+
* An array of `this` values that were used during each call to the mock function.
|
|
480
|
+
* @see https://vitest.dev/api/mock#mock-contexts
|
|
481
|
+
*/
|
|
482
|
+
contexts: MockProcedureContext<T>[];
|
|
483
|
+
/**
|
|
484
|
+
* The order of mock's execution. This returns an array of numbers which are shared between all defined mocks.
|
|
485
|
+
*
|
|
486
|
+
* @see https://vitest.dev/api/mock#mock-invocationcallorder
|
|
487
|
+
* @example
|
|
488
|
+
* const fn1 = vi.fn()
|
|
489
|
+
* const fn2 = vi.fn()
|
|
490
|
+
*
|
|
491
|
+
* fn1()
|
|
492
|
+
* fn2()
|
|
493
|
+
* fn1()
|
|
494
|
+
*
|
|
495
|
+
* fn1.mock.invocationCallOrder === [1, 3]
|
|
496
|
+
* fn2.mock.invocationCallOrder === [2]
|
|
497
|
+
*/
|
|
498
|
+
invocationCallOrder: number[];
|
|
499
|
+
/**
|
|
500
|
+
* This is an array containing all values that were `returned` from the function.
|
|
501
|
+
*
|
|
502
|
+
* The `value` property contains the returned value or thrown error. If the function returned a `Promise`, then `result` will always be `'return'` even if the promise was rejected.
|
|
503
|
+
*
|
|
504
|
+
* @see https://vitest.dev/api/mock#mock-results
|
|
505
|
+
* @example
|
|
506
|
+
* const fn = vi.fn()
|
|
507
|
+
* .mockReturnValueOnce('result')
|
|
508
|
+
* .mockImplementationOnce(() => { throw new Error('thrown error') })
|
|
509
|
+
*
|
|
510
|
+
* const result = fn()
|
|
511
|
+
*
|
|
512
|
+
* try {
|
|
513
|
+
* fn()
|
|
514
|
+
* }
|
|
515
|
+
* catch {}
|
|
516
|
+
*
|
|
517
|
+
* fn.mock.results === [
|
|
518
|
+
* {
|
|
519
|
+
* type: 'return',
|
|
520
|
+
* value: 'result',
|
|
521
|
+
* },
|
|
522
|
+
* {
|
|
523
|
+
* type: 'throw',
|
|
524
|
+
* value: Error,
|
|
525
|
+
* },
|
|
526
|
+
* ]
|
|
527
|
+
*/
|
|
528
|
+
results: MockResult<MockReturnType<T>>[];
|
|
529
|
+
/**
|
|
530
|
+
* An array containing all values that were `resolved` or `rejected` from the function.
|
|
531
|
+
*
|
|
532
|
+
* This array will be empty if the function was never resolved or rejected.
|
|
533
|
+
*
|
|
534
|
+
* @see https://vitest.dev/api/mock#mock-settledresults
|
|
535
|
+
* @example
|
|
536
|
+
* const fn = vi.fn().mockResolvedValueOnce('result')
|
|
537
|
+
*
|
|
538
|
+
* const result = fn()
|
|
539
|
+
*
|
|
540
|
+
* fn.mock.settledResults === [
|
|
541
|
+
* {
|
|
542
|
+
* type: 'incomplete',
|
|
543
|
+
* value: undefined,
|
|
544
|
+
* }
|
|
545
|
+
* ]
|
|
546
|
+
* fn.mock.results === [
|
|
547
|
+
* {
|
|
548
|
+
* type: 'return',
|
|
549
|
+
* value: Promise<'result'>,
|
|
550
|
+
* },
|
|
551
|
+
* ]
|
|
552
|
+
*
|
|
553
|
+
* await result
|
|
554
|
+
*
|
|
555
|
+
* fn.mock.settledResults === [
|
|
556
|
+
* {
|
|
557
|
+
* type: 'fulfilled',
|
|
558
|
+
* value: 'result',
|
|
559
|
+
* },
|
|
560
|
+
* ]
|
|
561
|
+
*/
|
|
562
|
+
settledResults: MockSettledResult<Awaited<MockReturnType<T>>>[];
|
|
563
|
+
/**
|
|
564
|
+
* This contains the arguments of the last call. If spy wasn't called, will return `undefined`.
|
|
565
|
+
* @see https://vitest.dev/api/mock#mock-lastcall
|
|
566
|
+
*/
|
|
567
|
+
lastCall: MockParameters<T> | undefined;
|
|
568
|
+
}
|
|
569
|
+
type Procedure = (...args: any[]) => any;
|
|
570
|
+
type NormalizedProcedure<T extends Procedure | Constructable> = T extends Constructable ? ({
|
|
571
|
+
new (...args: ConstructorParameters<T>): InstanceType<T>;
|
|
572
|
+
}) | ({
|
|
573
|
+
(this: InstanceType<T>, ...args: ConstructorParameters<T>): void;
|
|
574
|
+
}) : T extends Procedure ? (...args: Parameters<T>) => ReturnType<T> : never;
|
|
575
|
+
interface MockInstance<T extends Procedure | Constructable = Procedure> extends Disposable {
|
|
576
|
+
/**
|
|
577
|
+
* Use it to return the name assigned to the mock with the `.mockName(name)` method. By default, it will return `vi.fn()`.
|
|
578
|
+
* @see https://vitest.dev/api/mock#getmockname
|
|
579
|
+
*/
|
|
580
|
+
getMockName(): string;
|
|
581
|
+
/**
|
|
582
|
+
* Sets the internal mock name. This is useful for identifying the mock when an assertion fails.
|
|
583
|
+
* @see https://vitest.dev/api/mock#mockname
|
|
584
|
+
*/
|
|
585
|
+
mockName(name: string): this;
|
|
586
|
+
/**
|
|
587
|
+
* Current context of the mock. It stores information about all invocation calls, instances, and results.
|
|
588
|
+
*/
|
|
589
|
+
mock: MockContext<T>;
|
|
590
|
+
/**
|
|
591
|
+
* Clears all information about every call. After calling it, all properties on `.mock` will return to their initial state. This method does not reset implementations. It is useful for cleaning up mocks between different assertions.
|
|
592
|
+
*
|
|
593
|
+
* To automatically call this method before each test, enable the [`clearMocks`](https://vitest.dev/config/clearmocks) setting in the configuration.
|
|
594
|
+
* @see https://vitest.dev/api/mock#mockclear
|
|
595
|
+
*/
|
|
596
|
+
mockClear(): this;
|
|
597
|
+
/**
|
|
598
|
+
* Does what `mockClear` does and resets inner implementation to the original function. This also resets all "once" implementations.
|
|
599
|
+
*
|
|
600
|
+
* Note that resetting a mock from `vi.fn()` will set implementation to an empty function that returns `undefined`.
|
|
601
|
+
* Resetting a mock from `vi.fn(impl)` will set implementation to `impl`. It is useful for completely resetting a mock to its default state.
|
|
602
|
+
*
|
|
603
|
+
* To automatically call this method before each test, enable the [`mockReset`](https://vitest.dev/config/mockreset) setting in the configuration.
|
|
604
|
+
* @see https://vitest.dev/api/mock#mockreset
|
|
605
|
+
*/
|
|
606
|
+
mockReset(): this;
|
|
607
|
+
/**
|
|
608
|
+
* Does what `mockReset` does and restores original descriptors of spied-on objects.
|
|
609
|
+
* @see https://vitest.dev/api/mock#mockrestore
|
|
610
|
+
*/
|
|
611
|
+
mockRestore(): void;
|
|
612
|
+
/**
|
|
613
|
+
* Returns current permanent mock implementation if there is one.
|
|
614
|
+
*
|
|
615
|
+
* If mock was created with `vi.fn`, it will consider passed down method as a mock implementation.
|
|
616
|
+
*
|
|
617
|
+
* If mock was created with `vi.spyOn`, it will return `undefined` unless a custom implementation was provided.
|
|
618
|
+
*/
|
|
619
|
+
getMockImplementation(): NormalizedProcedure<T> | undefined;
|
|
620
|
+
/**
|
|
621
|
+
* Accepts a function to be used as the mock implementation. TypeScript expects the arguments and return type to match those of the original function.
|
|
622
|
+
* @see https://vitest.dev/api/mock#mockimplementation
|
|
623
|
+
* @example
|
|
624
|
+
* const increment = vi.fn().mockImplementation(count => count + 1);
|
|
625
|
+
* expect(increment(3)).toBe(4);
|
|
626
|
+
*/
|
|
627
|
+
mockImplementation(fn: NormalizedProcedure<T>): this;
|
|
628
|
+
/**
|
|
629
|
+
* Accepts a function to be used as the mock implementation. TypeScript expects the arguments and return type to match those of the original function. This method can be chained to produce different results for multiple function calls.
|
|
630
|
+
*
|
|
631
|
+
* When the mocked function runs out of implementations, it will invoke the default implementation set with `vi.fn(() => defaultValue)` or `.mockImplementation(() => defaultValue)` if they were called.
|
|
632
|
+
* @see https://vitest.dev/api/mock#mockimplementationonce
|
|
633
|
+
* @example
|
|
634
|
+
* const fn = vi.fn(count => count).mockImplementationOnce(count => count + 1);
|
|
635
|
+
* expect(fn(3)).toBe(4);
|
|
636
|
+
* expect(fn(3)).toBe(3);
|
|
637
|
+
*/
|
|
638
|
+
mockImplementationOnce(fn: NormalizedProcedure<T>): this;
|
|
639
|
+
/**
|
|
640
|
+
* Overrides the original mock implementation temporarily while the callback is being executed.
|
|
641
|
+
*
|
|
642
|
+
* Note that this method takes precedence over the [`mockImplementationOnce`](https://vitest.dev/api/mock#mockimplementationonce).
|
|
643
|
+
* @see https://vitest.dev/api/mock#withimplementation
|
|
644
|
+
* @example
|
|
645
|
+
* const myMockFn = vi.fn(() => 'original')
|
|
646
|
+
*
|
|
647
|
+
* myMockFn.withImplementation(() => 'temp', () => {
|
|
648
|
+
* myMockFn() // 'temp'
|
|
649
|
+
* })
|
|
650
|
+
*
|
|
651
|
+
* myMockFn() // 'original'
|
|
652
|
+
*/
|
|
653
|
+
withImplementation(fn: NormalizedProcedure<T>, cb: () => Promise<unknown>): Promise<this>;
|
|
654
|
+
withImplementation(fn: NormalizedProcedure<T>, cb: () => unknown): this;
|
|
655
|
+
/**
|
|
656
|
+
* Use this if you need to return the `this` context from the method without invoking the actual implementation.
|
|
657
|
+
* @see https://vitest.dev/api/mock#mockreturnthis
|
|
658
|
+
*/
|
|
659
|
+
mockReturnThis(): this;
|
|
660
|
+
/**
|
|
661
|
+
* Accepts a value that will be returned whenever the mock function is called. TypeScript will only accept values that match the return type of the original function.
|
|
662
|
+
* @see https://vitest.dev/api/mock#mockreturnvalue
|
|
663
|
+
* @example
|
|
664
|
+
* const mock = vi.fn()
|
|
665
|
+
* mock.mockReturnValue(42)
|
|
666
|
+
* mock() // 42
|
|
667
|
+
* mock.mockReturnValue(43)
|
|
668
|
+
* mock() // 43
|
|
669
|
+
*/
|
|
670
|
+
mockReturnValue(value: MockReturnType<T>): this;
|
|
671
|
+
/**
|
|
672
|
+
* Accepts a value that will be returned whenever the mock function is called. TypeScript will only accept values that match the return type of the original function.
|
|
673
|
+
*
|
|
674
|
+
* When the mocked function runs out of implementations, it will invoke the default implementation set with `vi.fn(() => defaultValue)` or `.mockImplementation(() => defaultValue)` if they were called.
|
|
675
|
+
* @example
|
|
676
|
+
* const myMockFn = vi
|
|
677
|
+
* .fn()
|
|
678
|
+
* .mockReturnValue('default')
|
|
679
|
+
* .mockReturnValueOnce('first call')
|
|
680
|
+
* .mockReturnValueOnce('second call')
|
|
681
|
+
*
|
|
682
|
+
* // 'first call', 'second call', 'default'
|
|
683
|
+
* console.log(myMockFn(), myMockFn(), myMockFn())
|
|
684
|
+
*/
|
|
685
|
+
mockReturnValueOnce(value: MockReturnType<T>): this;
|
|
686
|
+
/**
|
|
687
|
+
* Accepts a value that will be thrown whenever the mock function is called.
|
|
688
|
+
* @see https://vitest.dev/api/mock#mockthrow
|
|
689
|
+
* @example
|
|
690
|
+
* const myMockFn = vi.fn().mockThrow(new Error('error'))
|
|
691
|
+
* myMockFn() // throws 'error'
|
|
692
|
+
*/
|
|
693
|
+
mockThrow(value: unknown): this;
|
|
694
|
+
/**
|
|
695
|
+
* Accepts a value that will be thrown during the next function call. If chained, every consecutive call will throw the specified value.
|
|
696
|
+
* @example
|
|
697
|
+
* const myMockFn = vi
|
|
698
|
+
* .fn()
|
|
699
|
+
* .mockReturnValue('default')
|
|
700
|
+
* .mockThrowOnce(new Error('first call error'))
|
|
701
|
+
* .mockThrowOnce('second call error')
|
|
702
|
+
*
|
|
703
|
+
* expect(() => myMockFn()).toThrowError('first call error')
|
|
704
|
+
* expect(() => myMockFn()).toThrowError('second call error')
|
|
705
|
+
* expect(myMockFn()).toEqual('default')
|
|
706
|
+
*/
|
|
707
|
+
mockThrowOnce(value: unknown): this;
|
|
708
|
+
/**
|
|
709
|
+
* Accepts a value that will be resolved when the async function is called. TypeScript will only accept values that match the return type of the original function.
|
|
710
|
+
* @example
|
|
711
|
+
* const asyncMock = vi.fn().mockResolvedValue(42)
|
|
712
|
+
* asyncMock() // Promise<42>
|
|
713
|
+
*/
|
|
714
|
+
mockResolvedValue(value: Awaited<MockReturnType<T>>): this;
|
|
715
|
+
/**
|
|
716
|
+
* Accepts a value that will be resolved during the next function call. TypeScript will only accept values that match the return type of the original function. If chained, each consecutive call will resolve the specified value.
|
|
717
|
+
* @example
|
|
718
|
+
* const myMockFn = vi
|
|
719
|
+
* .fn()
|
|
720
|
+
* .mockResolvedValue('default')
|
|
721
|
+
* .mockResolvedValueOnce('first call')
|
|
722
|
+
* .mockResolvedValueOnce('second call')
|
|
723
|
+
*
|
|
724
|
+
* // Promise<'first call'>, Promise<'second call'>, Promise<'default'>
|
|
725
|
+
* console.log(myMockFn(), myMockFn(), myMockFn())
|
|
726
|
+
*/
|
|
727
|
+
mockResolvedValueOnce(value: Awaited<MockReturnType<T>>): this;
|
|
728
|
+
/**
|
|
729
|
+
* Accepts an error that will be rejected when async function is called.
|
|
730
|
+
* @example
|
|
731
|
+
* const asyncMock = vi.fn().mockRejectedValue(new Error('Async error'))
|
|
732
|
+
* await asyncMock() // throws Error<'Async error'>
|
|
733
|
+
*/
|
|
734
|
+
mockRejectedValue(error: unknown): this;
|
|
735
|
+
/**
|
|
736
|
+
* Accepts a value that will be rejected during the next function call. If chained, each consecutive call will reject the specified value.
|
|
737
|
+
* @example
|
|
738
|
+
* const asyncMock = vi
|
|
739
|
+
* .fn()
|
|
740
|
+
* .mockResolvedValueOnce('first call')
|
|
741
|
+
* .mockRejectedValueOnce(new Error('Async error'))
|
|
742
|
+
*
|
|
743
|
+
* await asyncMock() // first call
|
|
744
|
+
* await asyncMock() // throws Error<'Async error'>
|
|
745
|
+
*/
|
|
746
|
+
mockRejectedValueOnce(error: unknown): this;
|
|
747
|
+
}
|
|
748
|
+
type Mock<T extends Procedure | Constructable = Procedure> = MockInstance<T> & (T extends Constructable ? (T extends Procedure ? {
|
|
749
|
+
new (...args: ConstructorParameters<T>): InstanceType<T>;
|
|
750
|
+
(...args: Parameters<T>): ReturnType<T>;
|
|
751
|
+
} : {
|
|
752
|
+
new (...args: ConstructorParameters<T>): InstanceType<T>;
|
|
753
|
+
}) : {
|
|
754
|
+
new (...args: MockParameters<T>): MockReturnType<T>;
|
|
755
|
+
(...args: MockParameters<T>): MockReturnType<T>;
|
|
756
|
+
}) & { [P in keyof T]: T[P] };
|
|
757
|
+
interface Constructable {
|
|
758
|
+
new (...args: any[]): any;
|
|
759
|
+
}
|
|
760
|
+
//#endregion
|
|
761
|
+
//#region node_modules/.pnpm/tinyrainbow@3.1.0/node_modules/tinyrainbow/dist/index.d.ts
|
|
762
|
+
interface Formatter {
|
|
763
|
+
(input?: unknown): string;
|
|
764
|
+
open: string;
|
|
765
|
+
close: string;
|
|
766
|
+
}
|
|
767
|
+
//#endregion
|
|
768
|
+
//#region node_modules/.pnpm/@vitest+expect@4.1.0/node_modules/@vitest/expect/dist/index.d.ts
|
|
769
|
+
interface AsymmetricMatcherInterface {
|
|
770
|
+
asymmetricMatch: (other: unknown, customTesters?: Array<Tester>) => boolean;
|
|
771
|
+
toString: () => string;
|
|
772
|
+
getExpectedType?: () => string;
|
|
773
|
+
toAsymmetricMatcher?: () => string;
|
|
774
|
+
}
|
|
775
|
+
declare abstract class AsymmetricMatcher<T, State extends MatcherState = MatcherState> implements AsymmetricMatcherInterface {
|
|
776
|
+
protected sample: T;
|
|
777
|
+
protected inverse: boolean;
|
|
778
|
+
$$typeof: symbol;
|
|
779
|
+
constructor(sample: T, inverse?: boolean);
|
|
780
|
+
protected getMatcherContext(expect?: Chai.ExpectStatic): State;
|
|
781
|
+
abstract asymmetricMatch(other: unknown, customTesters?: Array<Tester>): boolean;
|
|
782
|
+
abstract toString(): string;
|
|
783
|
+
getExpectedType?(): string;
|
|
784
|
+
toAsymmetricMatcher?(): string;
|
|
785
|
+
}
|
|
786
|
+
declare function matcherHint(matcherName: string, received?: string, expected?: string, options?: MatcherHintOptions): string;
|
|
787
|
+
declare function printReceived(object: unknown): string;
|
|
788
|
+
declare function printExpected(value: unknown): string;
|
|
789
|
+
declare function getMatcherUtils(): {
|
|
790
|
+
EXPECTED_COLOR: Formatter;
|
|
791
|
+
RECEIVED_COLOR: Formatter;
|
|
792
|
+
INVERTED_COLOR: Formatter;
|
|
793
|
+
BOLD_WEIGHT: Formatter;
|
|
794
|
+
DIM_COLOR: Formatter;
|
|
795
|
+
diff: typeof diff;
|
|
796
|
+
matcherHint: typeof matcherHint;
|
|
797
|
+
printReceived: typeof printReceived;
|
|
798
|
+
printExpected: typeof printExpected;
|
|
799
|
+
printDiffOrStringify: typeof printDiffOrStringify;
|
|
800
|
+
printWithType: typeof printWithType;
|
|
801
|
+
};
|
|
802
|
+
declare function printWithType<T>(name: string, value: T, print: (value: T) => string): string;
|
|
803
|
+
type Tester = (this: TesterContext, a: any, b: any, customTesters: Array<Tester>) => boolean | undefined;
|
|
804
|
+
interface TesterContext {
|
|
805
|
+
equals: (a: unknown, b: unknown, customTesters?: Array<Tester>, strictCheck?: boolean) => boolean;
|
|
806
|
+
}
|
|
807
|
+
interface MatcherHintOptions {
|
|
808
|
+
comment?: string;
|
|
809
|
+
expectedColor?: Formatter;
|
|
810
|
+
isDirectExpectCall?: boolean;
|
|
811
|
+
isNot?: boolean;
|
|
812
|
+
promise?: string;
|
|
813
|
+
receivedColor?: Formatter;
|
|
814
|
+
secondArgument?: string;
|
|
815
|
+
secondArgumentColor?: Formatter;
|
|
816
|
+
}
|
|
817
|
+
interface MatcherState {
|
|
818
|
+
customTesters: Array<Tester>;
|
|
819
|
+
assertionCalls: number;
|
|
820
|
+
currentTestName?: string;
|
|
821
|
+
/**
|
|
822
|
+
* @deprecated exists only in types
|
|
823
|
+
*/
|
|
824
|
+
dontThrow?: () => void;
|
|
825
|
+
/**
|
|
826
|
+
* @deprecated exists only in types
|
|
827
|
+
*/
|
|
828
|
+
error?: Error;
|
|
829
|
+
equals: (a: unknown, b: unknown, customTesters?: Array<Tester>, strictCheck?: boolean) => boolean;
|
|
830
|
+
/**
|
|
831
|
+
* @deprecated exists only in types
|
|
832
|
+
*/
|
|
833
|
+
expand?: boolean;
|
|
834
|
+
expectedAssertionsNumber?: number | null;
|
|
835
|
+
expectedAssertionsNumberErrorGen?: (() => Error) | null;
|
|
836
|
+
isExpectingAssertions?: boolean;
|
|
837
|
+
isExpectingAssertionsError?: Error | null;
|
|
838
|
+
isNot: boolean;
|
|
839
|
+
promise: string;
|
|
840
|
+
/**
|
|
841
|
+
* @deprecated exists only in types
|
|
842
|
+
*/
|
|
843
|
+
suppressedErrors: Array<Error>;
|
|
844
|
+
testPath?: string;
|
|
845
|
+
utils: ReturnType<typeof getMatcherUtils> & {
|
|
846
|
+
diff: typeof diff;
|
|
847
|
+
stringify: typeof stringify;
|
|
848
|
+
iterableEquality: Tester;
|
|
849
|
+
subsetEquality: Tester;
|
|
850
|
+
};
|
|
851
|
+
soft?: boolean;
|
|
852
|
+
poll?: boolean;
|
|
853
|
+
task?: Readonly<Test>;
|
|
854
|
+
}
|
|
855
|
+
interface SyncExpectationResult {
|
|
856
|
+
pass: boolean;
|
|
857
|
+
message: () => string;
|
|
858
|
+
actual?: any;
|
|
859
|
+
expected?: any;
|
|
860
|
+
}
|
|
861
|
+
type AsyncExpectationResult = Promise<SyncExpectationResult>;
|
|
862
|
+
type ExpectationResult = SyncExpectationResult | AsyncExpectationResult;
|
|
863
|
+
interface RawMatcherFn<T extends MatcherState = MatcherState, E extends Array<any> = Array<any>> {
|
|
864
|
+
(this: T, received: any, ...expected: E): ExpectationResult;
|
|
865
|
+
}
|
|
866
|
+
interface Matchers<T = any> {}
|
|
867
|
+
type MatchersObject<T extends MatcherState = MatcherState> = Record<string, RawMatcherFn<T>> & ThisType<T> & { [K in keyof Matchers<T>]?: RawMatcherFn<T, Parameters<Matchers<T>[K]>> };
|
|
868
|
+
interface ExpectStatic extends Chai.ExpectStatic, Matchers, AsymmetricMatchersContaining {
|
|
869
|
+
<T>(actual: T, message?: string): Assertion$1<T>;
|
|
870
|
+
extend: (expects: MatchersObject) => void;
|
|
871
|
+
anything: () => any;
|
|
872
|
+
any: (constructor: unknown) => any;
|
|
873
|
+
getState: () => MatcherState;
|
|
874
|
+
setState: (state: Partial<MatcherState>) => void;
|
|
875
|
+
not: AsymmetricMatchersContaining;
|
|
876
|
+
}
|
|
877
|
+
interface CustomMatcher {
|
|
878
|
+
/**
|
|
879
|
+
* Checks that a value satisfies a custom matcher function.
|
|
880
|
+
*
|
|
881
|
+
* @param matcher - A function returning a boolean based on the custom condition
|
|
882
|
+
* @param message - Optional custom error message on failure
|
|
883
|
+
*
|
|
884
|
+
* @example
|
|
885
|
+
* expect(age).toSatisfy(val => val >= 18, 'Age must be at least 18');
|
|
886
|
+
* expect(age).toEqual(expect.toSatisfy(val => val >= 18, 'Age must be at least 18'));
|
|
887
|
+
*/
|
|
888
|
+
toSatisfy: (matcher: (value: any) => boolean, message?: string) => any;
|
|
889
|
+
/**
|
|
890
|
+
* Matches if the received value is one of the values in the expected array or set.
|
|
891
|
+
*
|
|
892
|
+
* @example
|
|
893
|
+
* expect(1).toBeOneOf([1, 2, 3])
|
|
894
|
+
* expect('foo').toBeOneOf([expect.any(String)])
|
|
895
|
+
* expect({ a: 1 }).toEqual({ a: expect.toBeOneOf(['1', '2', '3']) })
|
|
896
|
+
*/
|
|
897
|
+
toBeOneOf: <T>(sample: Array<T> | Set<T>) => any;
|
|
898
|
+
}
|
|
899
|
+
interface AsymmetricMatchersContaining extends CustomMatcher {
|
|
900
|
+
/**
|
|
901
|
+
* Matches if the received string contains the expected substring.
|
|
902
|
+
*
|
|
903
|
+
* @example
|
|
904
|
+
* expect('I have an apple').toEqual(expect.stringContaining('apple'));
|
|
905
|
+
* expect({ a: 'test string' }).toEqual({ a: expect.stringContaining('test') });
|
|
906
|
+
*/
|
|
907
|
+
stringContaining: (expected: string) => any;
|
|
908
|
+
/**
|
|
909
|
+
* Matches if the received object contains all properties of the expected object.
|
|
910
|
+
*
|
|
911
|
+
* @example
|
|
912
|
+
* expect({ a: '1', b: 2 }).toEqual(expect.objectContaining({ a: '1' }))
|
|
913
|
+
*/
|
|
914
|
+
objectContaining: <T = any>(expected: DeeplyAllowMatchers<T>) => any;
|
|
915
|
+
/**
|
|
916
|
+
* Matches if the received array contains all elements in the expected array.
|
|
917
|
+
*
|
|
918
|
+
* @example
|
|
919
|
+
* expect(['a', 'b', 'c']).toEqual(expect.arrayContaining(['b', 'a']));
|
|
920
|
+
*/
|
|
921
|
+
arrayContaining: <T = unknown>(expected: Array<DeeplyAllowMatchers<T>>) => any;
|
|
922
|
+
/**
|
|
923
|
+
* Matches if the received string or regex matches the expected pattern.
|
|
924
|
+
*
|
|
925
|
+
* @example
|
|
926
|
+
* expect('hello world').toEqual(expect.stringMatching(/^hello/));
|
|
927
|
+
* expect('hello world').toEqual(expect.stringMatching('hello'));
|
|
928
|
+
*/
|
|
929
|
+
stringMatching: (expected: string | RegExp) => any;
|
|
930
|
+
/**
|
|
931
|
+
* Matches if the received number is within a certain precision of the expected number.
|
|
932
|
+
*
|
|
933
|
+
* @example
|
|
934
|
+
* expect(10.45).toEqual(expect.closeTo(10.5, 1));
|
|
935
|
+
* expect(5.11).toEqual(expect.closeTo(5.12)); // with default precision
|
|
936
|
+
*/
|
|
937
|
+
closeTo: (expected: number, precision?: number) => any;
|
|
938
|
+
/**
|
|
939
|
+
* Matches if the received value validates against a Standard Schema.
|
|
940
|
+
*
|
|
941
|
+
* @param schema - A Standard Schema V1 compatible schema object
|
|
942
|
+
*
|
|
943
|
+
* @example
|
|
944
|
+
* expect(user).toEqual(expect.schemaMatching(z.object({ name: z.string() })))
|
|
945
|
+
* expect(['hello', 'world']).toEqual([expect.schemaMatching(z.string()), expect.schemaMatching(z.string())])
|
|
946
|
+
*/
|
|
947
|
+
schemaMatching: (schema: unknown) => any;
|
|
948
|
+
}
|
|
949
|
+
type WithAsymmetricMatcher<T> = T | AsymmetricMatcher<unknown>;
|
|
950
|
+
type DeeplyAllowMatchers<T> = T extends Array<infer Element> ? WithAsymmetricMatcher<T> | DeeplyAllowMatchers<Element>[] : T extends object ? WithAsymmetricMatcher<T> | { [K in keyof T]: DeeplyAllowMatchers<T[K]> } : WithAsymmetricMatcher<T>;
|
|
951
|
+
interface JestAssertion<T = any> extends jest.Matchers<void, T>, CustomMatcher {
|
|
952
|
+
/**
|
|
953
|
+
* Used when you want to check that two objects have the same value.
|
|
954
|
+
* This matcher recursively checks the equality of all fields, rather than checking for object identity.
|
|
955
|
+
*
|
|
956
|
+
* @example
|
|
957
|
+
* expect(user).toEqual({ name: 'Alice', age: 30 });
|
|
958
|
+
*/
|
|
959
|
+
toEqual: <E>(expected: E) => void;
|
|
960
|
+
/**
|
|
961
|
+
* Use to test that objects have the same types as well as structure.
|
|
962
|
+
*
|
|
963
|
+
* @example
|
|
964
|
+
* expect(user).toStrictEqual({ name: 'Alice', age: 30 });
|
|
965
|
+
*/
|
|
966
|
+
toStrictEqual: <E>(expected: E) => void;
|
|
967
|
+
/**
|
|
968
|
+
* Checks that a value is what you expect. It calls `Object.is` to compare values.
|
|
969
|
+
* Don't use `toBe` with floating-point numbers.
|
|
970
|
+
*
|
|
971
|
+
* @example
|
|
972
|
+
* expect(result).toBe(42);
|
|
973
|
+
* expect(status).toBe(true);
|
|
974
|
+
*/
|
|
975
|
+
toBe: <E>(expected: E) => void;
|
|
976
|
+
/**
|
|
977
|
+
* Check that a string matches a regular expression.
|
|
978
|
+
*
|
|
979
|
+
* @example
|
|
980
|
+
* expect(message).toMatch(/hello/);
|
|
981
|
+
* expect(greeting).toMatch('world');
|
|
982
|
+
*/
|
|
983
|
+
toMatch: (expected: string | RegExp) => void;
|
|
984
|
+
/**
|
|
985
|
+
* Used to check that a JavaScript object matches a subset of the properties of an object
|
|
986
|
+
*
|
|
987
|
+
* @example
|
|
988
|
+
* expect(user).toMatchObject({
|
|
989
|
+
* name: 'Alice',
|
|
990
|
+
* address: { city: 'Wonderland' }
|
|
991
|
+
* });
|
|
992
|
+
*/
|
|
993
|
+
toMatchObject: <E extends object | any[]>(expected: E) => void;
|
|
994
|
+
/**
|
|
995
|
+
* Used when you want to check that an item is in a list.
|
|
996
|
+
* For testing the items in the list, this uses `===`, a strict equality check.
|
|
997
|
+
*
|
|
998
|
+
* @example
|
|
999
|
+
* expect(items).toContain('apple');
|
|
1000
|
+
* expect(numbers).toContain(5);
|
|
1001
|
+
*/
|
|
1002
|
+
toContain: <E>(item: E) => void;
|
|
1003
|
+
/**
|
|
1004
|
+
* Used when you want to check that an item is in a list.
|
|
1005
|
+
* For testing the items in the list, this matcher recursively checks the
|
|
1006
|
+
* equality of all fields, rather than checking for object identity.
|
|
1007
|
+
*
|
|
1008
|
+
* @example
|
|
1009
|
+
* expect(items).toContainEqual({ name: 'apple', quantity: 1 });
|
|
1010
|
+
*/
|
|
1011
|
+
toContainEqual: <E>(item: E) => void;
|
|
1012
|
+
/**
|
|
1013
|
+
* Use when you don't care what a value is, you just want to ensure a value
|
|
1014
|
+
* is true in a boolean context. In JavaScript, there are six falsy values:
|
|
1015
|
+
* `false`, `0`, `''`, `null`, `undefined`, and `NaN`. Everything else is truthy.
|
|
1016
|
+
*
|
|
1017
|
+
* @example
|
|
1018
|
+
* expect(user.isActive).toBeTruthy();
|
|
1019
|
+
*/
|
|
1020
|
+
toBeTruthy: () => void;
|
|
1021
|
+
/**
|
|
1022
|
+
* When you don't care what a value is, you just want to
|
|
1023
|
+
* ensure a value is false in a boolean context.
|
|
1024
|
+
*
|
|
1025
|
+
* @example
|
|
1026
|
+
* expect(user.isActive).toBeFalsy();
|
|
1027
|
+
*/
|
|
1028
|
+
toBeFalsy: () => void;
|
|
1029
|
+
/**
|
|
1030
|
+
* For comparing floating point numbers.
|
|
1031
|
+
*
|
|
1032
|
+
* @example
|
|
1033
|
+
* expect(score).toBeGreaterThan(10);
|
|
1034
|
+
*/
|
|
1035
|
+
toBeGreaterThan: (num: number | bigint) => void;
|
|
1036
|
+
/**
|
|
1037
|
+
* For comparing floating point numbers.
|
|
1038
|
+
*
|
|
1039
|
+
* @example
|
|
1040
|
+
* expect(score).toBeGreaterThanOrEqual(10);
|
|
1041
|
+
*/
|
|
1042
|
+
toBeGreaterThanOrEqual: (num: number | bigint) => void;
|
|
1043
|
+
/**
|
|
1044
|
+
* For comparing floating point numbers.
|
|
1045
|
+
*
|
|
1046
|
+
* @example
|
|
1047
|
+
* expect(score).toBeLessThan(10);
|
|
1048
|
+
*/
|
|
1049
|
+
toBeLessThan: (num: number | bigint) => void;
|
|
1050
|
+
/**
|
|
1051
|
+
* For comparing floating point numbers.
|
|
1052
|
+
*
|
|
1053
|
+
* @example
|
|
1054
|
+
* expect(score).toBeLessThanOrEqual(10);
|
|
1055
|
+
*/
|
|
1056
|
+
toBeLessThanOrEqual: (num: number | bigint) => void;
|
|
1057
|
+
/**
|
|
1058
|
+
* Used to check that a variable is NaN.
|
|
1059
|
+
*
|
|
1060
|
+
* @example
|
|
1061
|
+
* expect(value).toBeNaN();
|
|
1062
|
+
*/
|
|
1063
|
+
toBeNaN: () => void;
|
|
1064
|
+
/**
|
|
1065
|
+
* Used to check that a variable is undefined.
|
|
1066
|
+
*
|
|
1067
|
+
* @example
|
|
1068
|
+
* expect(value).toBeUndefined();
|
|
1069
|
+
*/
|
|
1070
|
+
toBeUndefined: () => void;
|
|
1071
|
+
/**
|
|
1072
|
+
* This is the same as `.toBe(null)` but the error messages are a bit nicer.
|
|
1073
|
+
* So use `.toBeNull()` when you want to check that something is null.
|
|
1074
|
+
*
|
|
1075
|
+
* @example
|
|
1076
|
+
* expect(value).toBeNull();
|
|
1077
|
+
*/
|
|
1078
|
+
toBeNull: () => void;
|
|
1079
|
+
/**
|
|
1080
|
+
* Used to check that a variable is nullable (null or undefined).
|
|
1081
|
+
*
|
|
1082
|
+
* @example
|
|
1083
|
+
* expect(value).toBeNullable();
|
|
1084
|
+
*/
|
|
1085
|
+
toBeNullable: () => void;
|
|
1086
|
+
/**
|
|
1087
|
+
* Ensure that a variable is not undefined.
|
|
1088
|
+
*
|
|
1089
|
+
* @example
|
|
1090
|
+
* expect(value).toBeDefined();
|
|
1091
|
+
*/
|
|
1092
|
+
toBeDefined: () => void;
|
|
1093
|
+
/**
|
|
1094
|
+
* Ensure that an object is an instance of a class.
|
|
1095
|
+
* This matcher uses `instanceof` underneath.
|
|
1096
|
+
*
|
|
1097
|
+
* @example
|
|
1098
|
+
* expect(new Date()).toBeInstanceOf(Date);
|
|
1099
|
+
*/
|
|
1100
|
+
toBeInstanceOf: <E>(expected: E) => void;
|
|
1101
|
+
/**
|
|
1102
|
+
* Used to check that an object has a `.length` property
|
|
1103
|
+
* and it is set to a certain numeric value.
|
|
1104
|
+
*
|
|
1105
|
+
* @example
|
|
1106
|
+
* expect([1, 2, 3]).toHaveLength(3);
|
|
1107
|
+
* expect('hello').toHaveLength(5);
|
|
1108
|
+
*/
|
|
1109
|
+
toHaveLength: (length: number) => void;
|
|
1110
|
+
/**
|
|
1111
|
+
* Use to check if a property at the specified path exists on an object.
|
|
1112
|
+
* For checking deeply nested properties, you may use dot notation or an array containing
|
|
1113
|
+
* the path segments for deep references.
|
|
1114
|
+
*
|
|
1115
|
+
* Optionally, you can provide a value to check if it matches the value present at the path
|
|
1116
|
+
* on the target object. This matcher uses 'deep equality' (like `toEqual()`) and recursively checks
|
|
1117
|
+
* the equality of all fields.
|
|
1118
|
+
*
|
|
1119
|
+
* @example
|
|
1120
|
+
* expect(user).toHaveProperty('address.city', 'New York');
|
|
1121
|
+
* expect(config).toHaveProperty(['settings', 'theme'], 'dark');
|
|
1122
|
+
*/
|
|
1123
|
+
toHaveProperty: <E>(property: string | (string | number)[], value?: E) => void;
|
|
1124
|
+
/**
|
|
1125
|
+
* Using exact equality with floating point numbers is a bad idea.
|
|
1126
|
+
* Rounding means that intuitive things fail.
|
|
1127
|
+
* The default for `numDigits` is 2.
|
|
1128
|
+
*
|
|
1129
|
+
* @example
|
|
1130
|
+
* expect(price).toBeCloseTo(9.99, 2);
|
|
1131
|
+
*/
|
|
1132
|
+
toBeCloseTo: (number: number, numDigits?: number) => void;
|
|
1133
|
+
/**
|
|
1134
|
+
* Ensures that a mock function is called an exact number of times.
|
|
1135
|
+
*
|
|
1136
|
+
* Also under the alias `expect.toBeCalledTimes`.
|
|
1137
|
+
*
|
|
1138
|
+
* @example
|
|
1139
|
+
* expect(mockFunc).toHaveBeenCalledTimes(2);
|
|
1140
|
+
*/
|
|
1141
|
+
toHaveBeenCalledTimes: (times: number) => void;
|
|
1142
|
+
/**
|
|
1143
|
+
* Ensures that a mock function is called an exact number of times.
|
|
1144
|
+
*
|
|
1145
|
+
* Alias for `expect.toHaveBeenCalledTimes`.
|
|
1146
|
+
*
|
|
1147
|
+
* @example
|
|
1148
|
+
* expect(mockFunc).toBeCalledTimes(2);
|
|
1149
|
+
* @deprecated Use `toHaveBeenCalledTimes` instead
|
|
1150
|
+
*/
|
|
1151
|
+
toBeCalledTimes: (times: number) => void;
|
|
1152
|
+
/**
|
|
1153
|
+
* Ensures that a mock function is called.
|
|
1154
|
+
*
|
|
1155
|
+
* Also under the alias `expect.toBeCalled`.
|
|
1156
|
+
*
|
|
1157
|
+
* @example
|
|
1158
|
+
* expect(mockFunc).toHaveBeenCalled();
|
|
1159
|
+
*/
|
|
1160
|
+
toHaveBeenCalled: () => void;
|
|
1161
|
+
/**
|
|
1162
|
+
* Ensures that a mock function is called.
|
|
1163
|
+
*
|
|
1164
|
+
* Alias for `expect.toHaveBeenCalled`.
|
|
1165
|
+
*
|
|
1166
|
+
* @example
|
|
1167
|
+
* expect(mockFunc).toBeCalled();
|
|
1168
|
+
* @deprecated Use `toHaveBeenCalled` instead
|
|
1169
|
+
*/
|
|
1170
|
+
toBeCalled: () => void;
|
|
1171
|
+
/**
|
|
1172
|
+
* Ensure that a mock function is called with specific arguments.
|
|
1173
|
+
*
|
|
1174
|
+
* Also under the alias `expect.toBeCalledWith`.
|
|
1175
|
+
*
|
|
1176
|
+
* @example
|
|
1177
|
+
* expect(mockFunc).toHaveBeenCalledWith('arg1', 42);
|
|
1178
|
+
*/
|
|
1179
|
+
toHaveBeenCalledWith: <E extends any[]>(...args: E) => void;
|
|
1180
|
+
/**
|
|
1181
|
+
* Ensure that a mock function is called with specific arguments.
|
|
1182
|
+
*
|
|
1183
|
+
* Alias for `expect.toHaveBeenCalledWith`.
|
|
1184
|
+
*
|
|
1185
|
+
* @example
|
|
1186
|
+
* expect(mockFunc).toBeCalledWith('arg1', 42);
|
|
1187
|
+
* @deprecated Use `toHaveBeenCalledWith` instead
|
|
1188
|
+
*/
|
|
1189
|
+
toBeCalledWith: <E extends any[]>(...args: E) => void;
|
|
1190
|
+
/**
|
|
1191
|
+
* Ensure that a mock function is called with specific arguments on an Nth call.
|
|
1192
|
+
*
|
|
1193
|
+
* Also under the alias `expect.nthCalledWith`.
|
|
1194
|
+
*
|
|
1195
|
+
* @example
|
|
1196
|
+
* expect(mockFunc).toHaveBeenNthCalledWith(2, 'secondArg');
|
|
1197
|
+
*/
|
|
1198
|
+
toHaveBeenNthCalledWith: <E extends any[]>(n: number, ...args: E) => void;
|
|
1199
|
+
/**
|
|
1200
|
+
* If you have a mock function, you can use `.toHaveBeenLastCalledWith`
|
|
1201
|
+
* to test what arguments it was last called with.
|
|
1202
|
+
*
|
|
1203
|
+
* Also under the alias `expect.lastCalledWith`.
|
|
1204
|
+
*
|
|
1205
|
+
* @example
|
|
1206
|
+
* expect(mockFunc).toHaveBeenLastCalledWith('lastArg');
|
|
1207
|
+
*/
|
|
1208
|
+
toHaveBeenLastCalledWith: <E extends any[]>(...args: E) => void;
|
|
1209
|
+
/**
|
|
1210
|
+
* Used to test that a function throws when it is called.
|
|
1211
|
+
*
|
|
1212
|
+
* Also under the alias `expect.toThrowError`.
|
|
1213
|
+
*
|
|
1214
|
+
* @example
|
|
1215
|
+
* expect(() => functionWithError()).toThrow('Error message');
|
|
1216
|
+
* expect(() => parseJSON('invalid')).toThrow(SyntaxError);
|
|
1217
|
+
* expect(() => { throw 42 }).toThrow(42);
|
|
1218
|
+
*/
|
|
1219
|
+
toThrow: (expected?: any) => void;
|
|
1220
|
+
/**
|
|
1221
|
+
* Used to test that a function throws when it is called.
|
|
1222
|
+
*
|
|
1223
|
+
* Alias for `expect.toThrow`.
|
|
1224
|
+
*
|
|
1225
|
+
* @example
|
|
1226
|
+
* expect(() => functionWithError()).toThrowError('Error message');
|
|
1227
|
+
* expect(() => parseJSON('invalid')).toThrowError(SyntaxError);
|
|
1228
|
+
* expect(() => { throw 42 }).toThrowError(42);
|
|
1229
|
+
* @deprecated Use `toThrow` instead
|
|
1230
|
+
*/
|
|
1231
|
+
toThrowError: (expected?: any) => void;
|
|
1232
|
+
/**
|
|
1233
|
+
* Use to test that the mock function successfully returned (i.e., did not throw an error) at least one time
|
|
1234
|
+
*
|
|
1235
|
+
* Alias for `expect.toHaveReturned`.
|
|
1236
|
+
*
|
|
1237
|
+
* @example
|
|
1238
|
+
* expect(mockFunc).toReturn();
|
|
1239
|
+
* @deprecated Use `toHaveReturned` instead
|
|
1240
|
+
*/
|
|
1241
|
+
toReturn: () => void;
|
|
1242
|
+
/**
|
|
1243
|
+
* Use to test that the mock function successfully returned (i.e., did not throw an error) at least one time
|
|
1244
|
+
*
|
|
1245
|
+
* Also under the alias `expect.toReturn`.
|
|
1246
|
+
*
|
|
1247
|
+
* @example
|
|
1248
|
+
* expect(mockFunc).toHaveReturned();
|
|
1249
|
+
*/
|
|
1250
|
+
toHaveReturned: () => void;
|
|
1251
|
+
/**
|
|
1252
|
+
* Use to ensure that a mock function returned successfully (i.e., did not throw an error) an exact number of times.
|
|
1253
|
+
* Any calls to the mock function that throw an error are not counted toward the number of times the function returned.
|
|
1254
|
+
*
|
|
1255
|
+
* Alias for `expect.toHaveReturnedTimes`.
|
|
1256
|
+
*
|
|
1257
|
+
* @example
|
|
1258
|
+
* expect(mockFunc).toReturnTimes(3);
|
|
1259
|
+
* @deprecated Use `toHaveReturnedTimes` instead
|
|
1260
|
+
*/
|
|
1261
|
+
toReturnTimes: (times: number) => void;
|
|
1262
|
+
/**
|
|
1263
|
+
* Use to ensure that a mock function returned successfully (i.e., did not throw an error) an exact number of times.
|
|
1264
|
+
* Any calls to the mock function that throw an error are not counted toward the number of times the function returned.
|
|
1265
|
+
*
|
|
1266
|
+
* Also under the alias `expect.toReturnTimes`.
|
|
1267
|
+
*
|
|
1268
|
+
* @example
|
|
1269
|
+
* expect(mockFunc).toHaveReturnedTimes(3);
|
|
1270
|
+
*/
|
|
1271
|
+
toHaveReturnedTimes: (times: number) => void;
|
|
1272
|
+
/**
|
|
1273
|
+
* Use to ensure that a mock function returned a specific value.
|
|
1274
|
+
*
|
|
1275
|
+
* Alias for `expect.toHaveReturnedWith`.
|
|
1276
|
+
*
|
|
1277
|
+
* @example
|
|
1278
|
+
* expect(mockFunc).toReturnWith('returnValue');
|
|
1279
|
+
* @deprecated Use `toHaveReturnedWith` instead
|
|
1280
|
+
*/
|
|
1281
|
+
toReturnWith: <E>(value: E) => void;
|
|
1282
|
+
/**
|
|
1283
|
+
* Use to ensure that a mock function returned a specific value.
|
|
1284
|
+
*
|
|
1285
|
+
* Also under the alias `expect.toReturnWith`.
|
|
1286
|
+
*
|
|
1287
|
+
* @example
|
|
1288
|
+
* expect(mockFunc).toHaveReturnedWith('returnValue');
|
|
1289
|
+
*/
|
|
1290
|
+
toHaveReturnedWith: <E>(value: E) => void;
|
|
1291
|
+
/**
|
|
1292
|
+
* Use to test the specific value that a mock function last returned.
|
|
1293
|
+
* If the last call to the mock function threw an error, then this matcher will fail
|
|
1294
|
+
* no matter what value you provided as the expected return value.
|
|
1295
|
+
*
|
|
1296
|
+
* Also under the alias `expect.lastReturnedWith`.
|
|
1297
|
+
*
|
|
1298
|
+
* @example
|
|
1299
|
+
* expect(mockFunc).toHaveLastReturnedWith('lastValue');
|
|
1300
|
+
*/
|
|
1301
|
+
toHaveLastReturnedWith: <E>(value: E) => void;
|
|
1302
|
+
/**
|
|
1303
|
+
* Use to test the specific value that a mock function returned for the nth call.
|
|
1304
|
+
* If the nth call to the mock function threw an error, then this matcher will fail
|
|
1305
|
+
* no matter what value you provided as the expected return value.
|
|
1306
|
+
*
|
|
1307
|
+
* Also under the alias `expect.nthReturnedWith`.
|
|
1308
|
+
*
|
|
1309
|
+
* @example
|
|
1310
|
+
* expect(mockFunc).toHaveNthReturnedWith(2, 'nthValue');
|
|
1311
|
+
*/
|
|
1312
|
+
toHaveNthReturnedWith: <E>(nthCall: number, value: E) => void;
|
|
1313
|
+
}
|
|
1314
|
+
type VitestAssertion<A, T> = { [K in keyof A]: A[K] extends Chai.Assertion ? Assertion$1<T> : A[K] extends ((...args: any[]) => any) ? A[K] : VitestAssertion<A[K], T> } & ((type: string, message?: string) => Assertion$1);
|
|
1315
|
+
type Promisify<O> = { [K in keyof O]: O[K] extends ((...args: infer A) => infer R) ? Promisify<O[K]> & ((...args: A) => Promise<R>) : O[K] };
|
|
1316
|
+
type PromisifyAssertion<T> = Promisify<Assertion$1<T>>;
|
|
1317
|
+
interface Assertion$1<T = any> extends VitestAssertion<Chai.Assertion, T>, JestAssertion<T>, ChaiMockAssertion, Matchers<T> {
|
|
1318
|
+
/**
|
|
1319
|
+
* Ensures a value is of a specific type.
|
|
1320
|
+
*
|
|
1321
|
+
* @example
|
|
1322
|
+
* expect(value).toBeTypeOf('string');
|
|
1323
|
+
* expect(number).toBeTypeOf('number');
|
|
1324
|
+
*/
|
|
1325
|
+
toBeTypeOf: (expected: "bigint" | "boolean" | "function" | "number" | "object" | "string" | "symbol" | "undefined") => void;
|
|
1326
|
+
/**
|
|
1327
|
+
* Asserts that a mock function was called exactly once.
|
|
1328
|
+
*
|
|
1329
|
+
* @example
|
|
1330
|
+
* expect(mockFunc).toHaveBeenCalledOnce();
|
|
1331
|
+
*/
|
|
1332
|
+
toHaveBeenCalledOnce: () => void;
|
|
1333
|
+
/**
|
|
1334
|
+
* Ensure that a mock function is called with specific arguments and called
|
|
1335
|
+
* exactly once.
|
|
1336
|
+
*
|
|
1337
|
+
* @example
|
|
1338
|
+
* expect(mockFunc).toHaveBeenCalledExactlyOnceWith('arg1', 42);
|
|
1339
|
+
*/
|
|
1340
|
+
toHaveBeenCalledExactlyOnceWith: <E extends any[]>(...args: E) => void;
|
|
1341
|
+
/**
|
|
1342
|
+
* This assertion checks if a `Mock` was called before another `Mock`.
|
|
1343
|
+
* @param mock - A mock function created by `vi.spyOn` or `vi.fn`
|
|
1344
|
+
* @param failIfNoFirstInvocation - Fail if the first mock was never called
|
|
1345
|
+
* @example
|
|
1346
|
+
* const mock1 = vi.fn()
|
|
1347
|
+
* const mock2 = vi.fn()
|
|
1348
|
+
*
|
|
1349
|
+
* mock1()
|
|
1350
|
+
* mock2()
|
|
1351
|
+
* mock1()
|
|
1352
|
+
*
|
|
1353
|
+
* expect(mock1).toHaveBeenCalledBefore(mock2)
|
|
1354
|
+
*/
|
|
1355
|
+
toHaveBeenCalledBefore: (mock: MockInstance, failIfNoFirstInvocation?: boolean) => void;
|
|
1356
|
+
/**
|
|
1357
|
+
* This assertion checks if a `Mock` was called after another `Mock`.
|
|
1358
|
+
* @param mock - A mock function created by `vi.spyOn` or `vi.fn`
|
|
1359
|
+
* @param failIfNoFirstInvocation - Fail if the first mock was never called
|
|
1360
|
+
* @example
|
|
1361
|
+
* const mock1 = vi.fn()
|
|
1362
|
+
* const mock2 = vi.fn()
|
|
1363
|
+
*
|
|
1364
|
+
* mock2()
|
|
1365
|
+
* mock1()
|
|
1366
|
+
* mock2()
|
|
1367
|
+
*
|
|
1368
|
+
* expect(mock1).toHaveBeenCalledAfter(mock2)
|
|
1369
|
+
*/
|
|
1370
|
+
toHaveBeenCalledAfter: (mock: MockInstance, failIfNoFirstInvocation?: boolean) => void;
|
|
1371
|
+
/**
|
|
1372
|
+
* Checks that a promise resolves successfully at least once.
|
|
1373
|
+
*
|
|
1374
|
+
* @example
|
|
1375
|
+
* await expect(promise).toHaveResolved();
|
|
1376
|
+
*/
|
|
1377
|
+
toHaveResolved: () => void;
|
|
1378
|
+
/**
|
|
1379
|
+
* Checks that a promise resolves to a specific value.
|
|
1380
|
+
*
|
|
1381
|
+
* @example
|
|
1382
|
+
* await expect(promise).toHaveResolvedWith('success');
|
|
1383
|
+
*/
|
|
1384
|
+
toHaveResolvedWith: <E>(value: E) => void;
|
|
1385
|
+
/**
|
|
1386
|
+
* Ensures a promise resolves a specific number of times.
|
|
1387
|
+
*
|
|
1388
|
+
* @example
|
|
1389
|
+
* expect(mockAsyncFunc).toHaveResolvedTimes(3);
|
|
1390
|
+
*/
|
|
1391
|
+
toHaveResolvedTimes: (times: number) => void;
|
|
1392
|
+
/**
|
|
1393
|
+
* Asserts that the last resolved value of a promise matches an expected value.
|
|
1394
|
+
*
|
|
1395
|
+
* @example
|
|
1396
|
+
* await expect(mockAsyncFunc).toHaveLastResolvedWith('finalResult');
|
|
1397
|
+
*/
|
|
1398
|
+
toHaveLastResolvedWith: <E>(value: E) => void;
|
|
1399
|
+
/**
|
|
1400
|
+
* Ensures a specific value was returned by a promise on the nth resolution.
|
|
1401
|
+
*
|
|
1402
|
+
* @example
|
|
1403
|
+
* await expect(mockAsyncFunc).toHaveNthResolvedWith(2, 'secondResult');
|
|
1404
|
+
*/
|
|
1405
|
+
toHaveNthResolvedWith: <E>(nthCall: number, value: E) => void;
|
|
1406
|
+
/**
|
|
1407
|
+
* Verifies that a promise resolves.
|
|
1408
|
+
*
|
|
1409
|
+
* @example
|
|
1410
|
+
* await expect(someAsyncFunc).resolves.toBe(42);
|
|
1411
|
+
*/
|
|
1412
|
+
resolves: PromisifyAssertion<T>;
|
|
1413
|
+
/**
|
|
1414
|
+
* Verifies that a promise rejects.
|
|
1415
|
+
*
|
|
1416
|
+
* @example
|
|
1417
|
+
* await expect(someAsyncFunc).rejects.toThrow('error');
|
|
1418
|
+
*/
|
|
1419
|
+
rejects: PromisifyAssertion<T>;
|
|
1420
|
+
}
|
|
1421
|
+
/**
|
|
1422
|
+
* Chai-style assertions for spy/mock testing.
|
|
1423
|
+
* These provide sinon-chai compatible assertion names that delegate to Jest-style implementations.
|
|
1424
|
+
*/
|
|
1425
|
+
interface ChaiMockAssertion {
|
|
1426
|
+
/**
|
|
1427
|
+
* Checks that a spy was called at least once.
|
|
1428
|
+
* Chai-style equivalent of `toHaveBeenCalled`.
|
|
1429
|
+
*
|
|
1430
|
+
* @example
|
|
1431
|
+
* expect(spy).to.have.been.called
|
|
1432
|
+
*/
|
|
1433
|
+
readonly called: Assertion$1;
|
|
1434
|
+
/**
|
|
1435
|
+
* Checks that a spy was called a specific number of times.
|
|
1436
|
+
* Chai-style equivalent of `toHaveBeenCalledTimes`.
|
|
1437
|
+
*
|
|
1438
|
+
* @example
|
|
1439
|
+
* expect(spy).to.have.callCount(3)
|
|
1440
|
+
*/
|
|
1441
|
+
callCount: (count: number) => void;
|
|
1442
|
+
/**
|
|
1443
|
+
* Checks that a spy was called with specific arguments at least once.
|
|
1444
|
+
* Chai-style equivalent of `toHaveBeenCalledWith`.
|
|
1445
|
+
*
|
|
1446
|
+
* @example
|
|
1447
|
+
* expect(spy).to.have.been.calledWith('arg1', 'arg2')
|
|
1448
|
+
*/
|
|
1449
|
+
calledWith: <E extends any[]>(...args: E) => void;
|
|
1450
|
+
/**
|
|
1451
|
+
* Checks that a spy was called exactly once.
|
|
1452
|
+
* Chai-style equivalent of `toHaveBeenCalledOnce`.
|
|
1453
|
+
*
|
|
1454
|
+
* @example
|
|
1455
|
+
* expect(spy).to.have.been.calledOnce
|
|
1456
|
+
*/
|
|
1457
|
+
readonly calledOnce: Assertion$1;
|
|
1458
|
+
/**
|
|
1459
|
+
* Checks that a spy was called exactly once with specific arguments.
|
|
1460
|
+
* Chai-style equivalent of `toHaveBeenCalledExactlyOnceWith`.
|
|
1461
|
+
*
|
|
1462
|
+
* @example
|
|
1463
|
+
* expect(spy).to.have.been.calledOnceWith('arg1', 'arg2')
|
|
1464
|
+
*/
|
|
1465
|
+
calledOnceWith: <E extends any[]>(...args: E) => void;
|
|
1466
|
+
/**
|
|
1467
|
+
* Checks that the last call to a spy was made with specific arguments.
|
|
1468
|
+
* Chai-style equivalent of `toHaveBeenLastCalledWith`.
|
|
1469
|
+
*
|
|
1470
|
+
* @example
|
|
1471
|
+
* expect(spy).to.have.been.lastCalledWith('arg1', 'arg2')
|
|
1472
|
+
*/
|
|
1473
|
+
lastCalledWith: <E extends any[]>(...args: E) => void;
|
|
1474
|
+
/**
|
|
1475
|
+
* Checks that the nth call to a spy was made with specific arguments.
|
|
1476
|
+
* Chai-style equivalent of `toHaveBeenNthCalledWith`.
|
|
1477
|
+
*
|
|
1478
|
+
* @example
|
|
1479
|
+
* expect(spy).to.have.been.nthCalledWith(2, 'arg1', 'arg2')
|
|
1480
|
+
*/
|
|
1481
|
+
nthCalledWith: <E extends any[]>(n: number, ...args: E) => void;
|
|
1482
|
+
/**
|
|
1483
|
+
* Checks that a spy returned successfully at least once.
|
|
1484
|
+
* Chai-style equivalent of `toHaveReturned`.
|
|
1485
|
+
*
|
|
1486
|
+
* @example
|
|
1487
|
+
* expect(spy).to.have.returned
|
|
1488
|
+
*/
|
|
1489
|
+
readonly returned: Assertion$1;
|
|
1490
|
+
/**
|
|
1491
|
+
* Checks that a spy returned a specific value at least once.
|
|
1492
|
+
* Chai-style equivalent of `toHaveReturnedWith`.
|
|
1493
|
+
*
|
|
1494
|
+
* @example
|
|
1495
|
+
* expect(spy).to.have.returnedWith('value')
|
|
1496
|
+
*/
|
|
1497
|
+
returnedWith: <E>(value: E) => void;
|
|
1498
|
+
/**
|
|
1499
|
+
* Checks that a spy returned successfully a specific number of times.
|
|
1500
|
+
* Chai-style equivalent of `toHaveReturnedTimes`.
|
|
1501
|
+
*
|
|
1502
|
+
* @example
|
|
1503
|
+
* expect(spy).to.have.returnedTimes(3)
|
|
1504
|
+
*/
|
|
1505
|
+
returnedTimes: (count: number) => void;
|
|
1506
|
+
/**
|
|
1507
|
+
* Checks that the last return value of a spy matches the expected value.
|
|
1508
|
+
* Chai-style equivalent of `toHaveLastReturnedWith`.
|
|
1509
|
+
*
|
|
1510
|
+
* @example
|
|
1511
|
+
* expect(spy).to.have.lastReturnedWith('value')
|
|
1512
|
+
*/
|
|
1513
|
+
lastReturnedWith: <E>(value: E) => void;
|
|
1514
|
+
/**
|
|
1515
|
+
* Checks that the nth return value of a spy matches the expected value.
|
|
1516
|
+
* Chai-style equivalent of `toHaveNthReturnedWith`.
|
|
1517
|
+
*
|
|
1518
|
+
* @example
|
|
1519
|
+
* expect(spy).to.have.nthReturnedWith(2, 'value')
|
|
1520
|
+
*/
|
|
1521
|
+
nthReturnedWith: <E>(n: number, value: E) => void;
|
|
1522
|
+
/**
|
|
1523
|
+
* Checks that a spy was called before another spy.
|
|
1524
|
+
* Chai-style equivalent of `toHaveBeenCalledBefore`.
|
|
1525
|
+
*
|
|
1526
|
+
* @example
|
|
1527
|
+
* expect(spy1).to.have.been.calledBefore(spy2)
|
|
1528
|
+
*/
|
|
1529
|
+
calledBefore: (mock: MockInstance, failIfNoFirstInvocation?: boolean) => void;
|
|
1530
|
+
/**
|
|
1531
|
+
* Checks that a spy was called after another spy.
|
|
1532
|
+
* Chai-style equivalent of `toHaveBeenCalledAfter`.
|
|
1533
|
+
*
|
|
1534
|
+
* @example
|
|
1535
|
+
* expect(spy1).to.have.been.calledAfter(spy2)
|
|
1536
|
+
*/
|
|
1537
|
+
calledAfter: (mock: MockInstance, failIfNoFirstInvocation?: boolean) => void;
|
|
1538
|
+
/**
|
|
1539
|
+
* Checks that a spy was called exactly twice.
|
|
1540
|
+
* Chai-style equivalent of `toHaveBeenCalledTimes(2)`.
|
|
1541
|
+
*
|
|
1542
|
+
* @example
|
|
1543
|
+
* expect(spy).to.have.been.calledTwice
|
|
1544
|
+
*/
|
|
1545
|
+
readonly calledTwice: Assertion$1;
|
|
1546
|
+
/**
|
|
1547
|
+
* Checks that a spy was called exactly three times.
|
|
1548
|
+
* Chai-style equivalent of `toHaveBeenCalledTimes(3)`.
|
|
1549
|
+
*
|
|
1550
|
+
* @example
|
|
1551
|
+
* expect(spy).to.have.been.calledThrice
|
|
1552
|
+
*/
|
|
1553
|
+
readonly calledThrice: Assertion$1;
|
|
1554
|
+
}
|
|
1555
|
+
declare global {
|
|
1556
|
+
namespace jest {
|
|
1557
|
+
interface Matchers<R, T = {}> {}
|
|
1558
|
+
}
|
|
1559
|
+
}
|
|
1560
|
+
//#endregion
|
|
1561
|
+
//#region node_modules/.pnpm/tinybench@2.9.0/node_modules/tinybench/dist/index.d.cts
|
|
1562
|
+
/**
|
|
1563
|
+
* the benchmark task result object
|
|
1564
|
+
*/
|
|
1565
|
+
type TaskResult = {
|
|
1566
|
+
error?: unknown;
|
|
1567
|
+
/**
|
|
1568
|
+
* The amount of time in milliseconds to run the benchmark task (cycle).
|
|
1569
|
+
*/
|
|
1570
|
+
totalTime: number;
|
|
1571
|
+
/**
|
|
1572
|
+
* the minimum value in the samples
|
|
1573
|
+
*/
|
|
1574
|
+
min: number;
|
|
1575
|
+
/**
|
|
1576
|
+
* the maximum value in the samples
|
|
1577
|
+
*/
|
|
1578
|
+
max: number;
|
|
1579
|
+
/**
|
|
1580
|
+
* the number of operations per second
|
|
1581
|
+
*/
|
|
1582
|
+
hz: number;
|
|
1583
|
+
/**
|
|
1584
|
+
* how long each operation takes (ms)
|
|
1585
|
+
*/
|
|
1586
|
+
period: number;
|
|
1587
|
+
/**
|
|
1588
|
+
* task samples of each task iteration time (ms)
|
|
1589
|
+
*/
|
|
1590
|
+
samples: number[];
|
|
1591
|
+
/**
|
|
1592
|
+
* samples mean/average (estimate of the population mean)
|
|
1593
|
+
*/
|
|
1594
|
+
mean: number;
|
|
1595
|
+
/**
|
|
1596
|
+
* samples variance (estimate of the population variance)
|
|
1597
|
+
*/
|
|
1598
|
+
variance: number;
|
|
1599
|
+
/**
|
|
1600
|
+
* samples standard deviation (estimate of the population standard deviation)
|
|
1601
|
+
*/
|
|
1602
|
+
sd: number;
|
|
1603
|
+
/**
|
|
1604
|
+
* standard error of the mean (a.k.a. the standard deviation of the sampling distribution of the sample mean)
|
|
1605
|
+
*/
|
|
1606
|
+
sem: number;
|
|
1607
|
+
/**
|
|
1608
|
+
* degrees of freedom
|
|
1609
|
+
*/
|
|
1610
|
+
df: number;
|
|
1611
|
+
/**
|
|
1612
|
+
* critical value of the samples
|
|
1613
|
+
*/
|
|
1614
|
+
critical: number;
|
|
1615
|
+
/**
|
|
1616
|
+
* margin of error
|
|
1617
|
+
*/
|
|
1618
|
+
moe: number;
|
|
1619
|
+
/**
|
|
1620
|
+
* relative margin of error
|
|
1621
|
+
*/
|
|
1622
|
+
rme: number;
|
|
1623
|
+
/**
|
|
1624
|
+
* p75 percentile
|
|
1625
|
+
*/
|
|
1626
|
+
p75: number;
|
|
1627
|
+
/**
|
|
1628
|
+
* p99 percentile
|
|
1629
|
+
*/
|
|
1630
|
+
p99: number;
|
|
1631
|
+
/**
|
|
1632
|
+
* p995 percentile
|
|
1633
|
+
*/
|
|
1634
|
+
p995: number;
|
|
1635
|
+
/**
|
|
1636
|
+
* p999 percentile
|
|
1637
|
+
*/
|
|
1638
|
+
p999: number;
|
|
1639
|
+
};
|
|
1640
|
+
/**
|
|
1641
|
+
* Both the `Task` and `Bench` objects extend the `EventTarget` object,
|
|
1642
|
+
* so you can attach a listeners to different types of events
|
|
1643
|
+
* to each class instance using the universal `addEventListener` and
|
|
1644
|
+
* `removeEventListener`
|
|
1645
|
+
*/
|
|
1646
|
+
/**
|
|
1647
|
+
* Bench events
|
|
1648
|
+
*/
|
|
1649
|
+
//#endregion
|
|
1650
|
+
//#region node_modules/.pnpm/vitest@4.1.0_@opentelemetry+api@1.9.0_@types+node@25.5.0_@vitest+browser-playwright@4.1_695714f6844b24120687f5aa00a01637/node_modules/vitest/dist/chunks/benchmark.d.DAaHLpsq.d.ts
|
|
1651
|
+
interface BenchmarkResult extends TaskResult {
|
|
1652
|
+
name: string;
|
|
1653
|
+
rank: number;
|
|
1654
|
+
sampleCount: number;
|
|
1655
|
+
median: number;
|
|
1656
|
+
}
|
|
1657
|
+
//#endregion
|
|
1658
|
+
//#region node_modules/.pnpm/vitest@4.1.0_@opentelemetry+api@1.9.0_@types+node@25.5.0_@vitest+browser-playwright@4.1_695714f6844b24120687f5aa00a01637/node_modules/vitest/dist/chunks/global.d.x-ILCfAE.d.ts
|
|
1659
|
+
interface SnapshotMatcher<T> {
|
|
1660
|
+
<U extends { [P in keyof T]: any }>(snapshot: Partial<U>, hint?: string): void;
|
|
1661
|
+
(hint?: string): void;
|
|
1662
|
+
}
|
|
1663
|
+
interface InlineSnapshotMatcher<T> {
|
|
1664
|
+
<U extends { [P in keyof T]: any }>(properties: Partial<U>, snapshot?: string, hint?: string): void;
|
|
1665
|
+
(hint?: string): void;
|
|
1666
|
+
}
|
|
1667
|
+
declare module "@vitest/expect" {
|
|
1668
|
+
interface MatcherState {
|
|
1669
|
+
environment: string;
|
|
1670
|
+
snapshotState: SnapshotState;
|
|
1671
|
+
}
|
|
1672
|
+
interface ExpectPollOptions {
|
|
1673
|
+
interval?: number;
|
|
1674
|
+
timeout?: number;
|
|
1675
|
+
message?: string;
|
|
1676
|
+
}
|
|
1677
|
+
interface ExpectStatic {
|
|
1678
|
+
assert: Chai.AssertStatic;
|
|
1679
|
+
unreachable: (message?: string) => never;
|
|
1680
|
+
soft: <T>(actual: T, message?: string) => Assertion<T>;
|
|
1681
|
+
poll: <T>(actual: () => T, options?: ExpectPollOptions) => PromisifyAssertion<Awaited<T>>;
|
|
1682
|
+
addEqualityTesters: (testers: Array<Tester>) => void;
|
|
1683
|
+
assertions: (expected: number) => void;
|
|
1684
|
+
hasAssertions: () => void;
|
|
1685
|
+
addSnapshotSerializer: (plugin: Plugin) => void;
|
|
1686
|
+
}
|
|
1687
|
+
interface Assertion<T> {
|
|
1688
|
+
matchSnapshot: SnapshotMatcher<T>;
|
|
1689
|
+
toMatchSnapshot: SnapshotMatcher<T>;
|
|
1690
|
+
toMatchInlineSnapshot: InlineSnapshotMatcher<T>;
|
|
1691
|
+
/**
|
|
1692
|
+
* Checks that an error thrown by a function matches a previously recorded snapshot.
|
|
1693
|
+
*
|
|
1694
|
+
* @param hint - Optional custom error message.
|
|
1695
|
+
*
|
|
1696
|
+
* @example
|
|
1697
|
+
* expect(functionWithError).toThrowErrorMatchingSnapshot();
|
|
1698
|
+
*/
|
|
1699
|
+
toThrowErrorMatchingSnapshot: (hint?: string) => void;
|
|
1700
|
+
/**
|
|
1701
|
+
* Checks that an error thrown by a function matches an inline snapshot within the test file.
|
|
1702
|
+
* Useful for keeping snapshots close to the test code.
|
|
1703
|
+
*
|
|
1704
|
+
* @param snapshot - Optional inline snapshot string to match.
|
|
1705
|
+
* @param hint - Optional custom error message.
|
|
1706
|
+
*
|
|
1707
|
+
* @example
|
|
1708
|
+
* const throwError = () => { throw new Error('Error occurred') };
|
|
1709
|
+
* expect(throwError).toThrowErrorMatchingInlineSnapshot(`"Error occurred"`);
|
|
1710
|
+
*/
|
|
1711
|
+
toThrowErrorMatchingInlineSnapshot: (snapshot?: string, hint?: string) => void;
|
|
1712
|
+
/**
|
|
1713
|
+
* Compares the received value to a snapshot saved in a specified file.
|
|
1714
|
+
* Useful for cases where snapshot content is large or needs to be shared across tests.
|
|
1715
|
+
*
|
|
1716
|
+
* @param filepath - Path to the snapshot file.
|
|
1717
|
+
* @param hint - Optional custom error message.
|
|
1718
|
+
*
|
|
1719
|
+
* @example
|
|
1720
|
+
* await expect(largeData).toMatchFileSnapshot('path/to/snapshot.json');
|
|
1721
|
+
*/
|
|
1722
|
+
toMatchFileSnapshot: (filepath: string, hint?: string) => Promise<void>;
|
|
1723
|
+
}
|
|
1724
|
+
}
|
|
1725
|
+
declare module "@vitest/runner" {
|
|
1726
|
+
interface TestContext {
|
|
1727
|
+
/**
|
|
1728
|
+
* `expect` instance bound to the current test.
|
|
1729
|
+
*
|
|
1730
|
+
* This API is useful for running snapshot tests concurrently because global expect cannot track them.
|
|
1731
|
+
*/
|
|
1732
|
+
readonly expect: ExpectStatic;
|
|
1733
|
+
/** @internal */
|
|
1734
|
+
_local: boolean;
|
|
1735
|
+
}
|
|
1736
|
+
interface TaskMeta {
|
|
1737
|
+
typecheck?: boolean;
|
|
1738
|
+
benchmark?: boolean;
|
|
1739
|
+
}
|
|
1740
|
+
interface File {
|
|
1741
|
+
prepareDuration?: number;
|
|
1742
|
+
environmentLoad?: number;
|
|
1743
|
+
}
|
|
1744
|
+
interface TaskBase {
|
|
1745
|
+
logs?: UserConsoleLog[];
|
|
1746
|
+
}
|
|
1747
|
+
interface TaskResult {
|
|
1748
|
+
benchmark?: BenchmarkResult;
|
|
1749
|
+
}
|
|
1750
|
+
}
|
|
1751
|
+
//#endregion
|
|
1752
|
+
//#region src/test-utils/vitest-mock-fn.d.ts
|
|
1753
|
+
type MockFn<T extends (...args: any[]) => any = (...args: any[]) => any> = Mock<T>;
|
|
1754
|
+
//#endregion
|
|
1755
|
+
export { type MockFn as t };
|