diff --git a/extensions/feishu/src/monitor-state-runtime-api.ts b/extensions/feishu/src/monitor-state-runtime-api.ts new file mode 100644 index 00000000000..f427758f175 --- /dev/null +++ b/extensions/feishu/src/monitor-state-runtime-api.ts @@ -0,0 +1,7 @@ +export type { RuntimeEnv } from "openclaw/plugin-sdk/runtime"; +export { + createFixedWindowRateLimiter, + createWebhookAnomalyTracker, + WEBHOOK_ANOMALY_COUNTER_DEFAULTS, + WEBHOOK_RATE_LIMIT_DEFAULTS, +} from "openclaw/plugin-sdk/webhook-ingress"; diff --git a/extensions/feishu/src/monitor.state.ts b/extensions/feishu/src/monitor.state.ts index 4e55109e66a..b506f7f9ebe 100644 --- a/extensions/feishu/src/monitor.state.ts +++ b/extensions/feishu/src/monitor.state.ts @@ -6,7 +6,7 @@ import { type RuntimeEnv, WEBHOOK_ANOMALY_COUNTER_DEFAULTS as WEBHOOK_ANOMALY_COUNTER_DEFAULTS_FROM_SDK, WEBHOOK_RATE_LIMIT_DEFAULTS as WEBHOOK_RATE_LIMIT_DEFAULTS_FROM_SDK, -} from "../runtime-api.js"; +} from "./monitor-state-runtime-api.js"; export const wsClients = new Map(); export const httpServers = new Map();