From c6b8109bd819d1de2d70baa4b19c5ca16c4dcf7d Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Fri, 3 Apr 2026 16:29:40 +0100 Subject: [PATCH] fix(ci): use sdk seams in whatsapp test harnesses --- extensions/whatsapp/src/auto-reply.test-harness.ts | 4 ++-- extensions/whatsapp/src/pairing-security.test-harness.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/extensions/whatsapp/src/auto-reply.test-harness.ts b/extensions/whatsapp/src/auto-reply.test-harness.ts index f314615d8a2..4f864b1f0cb 100644 --- a/extensions/whatsapp/src/auto-reply.test-harness.ts +++ b/extensions/whatsapp/src/auto-reply.test-harness.ts @@ -2,9 +2,9 @@ import "./test-helpers.js"; import fs from "node:fs/promises"; import os from "node:os"; import path from "node:path"; +import { resetInboundDedupe } from "openclaw/plugin-sdk/reply-runtime"; +import { resetLogger, setLoggerOverride } from "openclaw/plugin-sdk/runtime-env"; import { afterAll, afterEach, beforeAll, beforeEach, vi } from "vitest"; -import { resetInboundDedupe } from "../../../src/auto-reply/reply/inbound-dedupe.js"; -import { resetLogger, setLoggerOverride } from "../../../src/logging/logger.js"; import type { WebInboundMessage, WebListenerCloseReason } from "./inbound.js"; import { resetBaileysMocks as _resetBaileysMocks, diff --git a/extensions/whatsapp/src/pairing-security.test-harness.ts b/extensions/whatsapp/src/pairing-security.test-harness.ts index 8aa9cbcb2a1..ba5d271aef7 100644 --- a/extensions/whatsapp/src/pairing-security.test-harness.ts +++ b/extensions/whatsapp/src/pairing-security.test-harness.ts @@ -3,8 +3,8 @@ import { resolveOpenProviderRuntimeGroupPolicy, warnMissingProviderGroupPolicyFallbackOnce, } from "openclaw/plugin-sdk/runtime-group-policy"; +import { resolveDmGroupAccessWithLists } from "openclaw/plugin-sdk/security-runtime"; import { vi } from "vitest"; -import { resolveDmGroupAccessWithLists } from "../../../src/security/dm-policy-shared.js"; export type AsyncMock = { (...args: TArgs): Promise;