






















@@ -3,9 +3,9 @@ import {
33resolveInboundDebounceMs,
44} from "openclaw/plugin-sdk/channel-inbound-debounce";
55import { hasControlCommand } from "openclaw/plugin-sdk/command-detection";
6-import { createNonExitingTypedRuntimeEnv } from "openclaw/plugin-sdk/testing";
6+import { createNonExitingRuntimeEnv } from "openclaw/plugin-sdk/testing";
77import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
8-import type { ClawdbotConfig, PluginRuntime, RuntimeEnv } from "../runtime-api.js";
8+import type { ClawdbotConfig, PluginRuntime } from "../runtime-api.js";
99import { parseFeishuMessageEvent, type FeishuMessageEvent } from "./bot.js";
1010import * as dedup from "./dedup.js";
1111import {
@@ -175,7 +175,7 @@ async function setupDebounceMonitor(params?: {
175175await monitorSingleAccount({
176176cfg: buildDebounceConfig(),
177177account: buildDebounceAccount(),
178-runtime: createNonExitingTypedRuntimeEnv<RuntimeEnv>(),
178+runtime: createNonExitingRuntimeEnv(),
179179botOpenIdSource: {
180180kind: "prefetched",
181181botOpenId: params?.botOpenId ?? "ou_bot",
@@ -457,7 +457,7 @@ describe("monitorSingleAccount lifecycle", () => {
457457await monitorSingleAccount({
458458cfg: buildDebounceConfig(),
459459account: buildDebounceAccount(),
460-runtime: createNonExitingTypedRuntimeEnv<RuntimeEnv>(),
460+runtime: createNonExitingRuntimeEnv(),
461461botOpenIdSource: {
462462kind: "prefetched",
463463botOpenId: "ou_bot",
@@ -482,7 +482,7 @@ describe("monitorSingleAccount lifecycle", () => {
482482monitorSingleAccount({
483483cfg: buildDebounceConfig(),
484484account: buildDebounceAccount(),
485-runtime: createNonExitingTypedRuntimeEnv<RuntimeEnv>(),
485+runtime: createNonExitingRuntimeEnv(),
486486botOpenIdSource: {
487487kind: "prefetched",
488488botOpenId: "ou_bot",
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。