diff --git a/extensions/discord/src/monitor.tool-result.test-harness.ts b/extensions/discord/src/monitor.tool-result.test-harness.ts index a74555324fa..d14f10b5f5d 100644 --- a/extensions/discord/src/monitor.tool-result.test-harness.ts +++ b/extensions/discord/src/monitor.tool-result.test-harness.ts @@ -1,5 +1,5 @@ +import type { MockFn } from "openclaw/plugin-sdk/testing"; import { vi } from "vitest"; -import type { MockFn } from "../../../src/test-utils/vitest-mock-fn.js"; export const sendMock: MockFn = vi.fn(); export const reactMock: MockFn = vi.fn(); diff --git a/extensions/discord/src/send.test-harness.ts b/extensions/discord/src/send.test-harness.ts index f3c5ae36842..c0069f99770 100644 --- a/extensions/discord/src/send.test-harness.ts +++ b/extensions/discord/src/send.test-harness.ts @@ -1,5 +1,5 @@ +import type { MockFn } from "openclaw/plugin-sdk/testing"; import { vi } from "vitest"; -import type { MockFn } from "../../../src/test-utils/vitest-mock-fn.js"; type DiscordWebMediaMockFactoryResult = { loadWebMedia: MockFn; diff --git a/extensions/line/api.ts b/extensions/line/api.ts index 128edfd7cf0..d398b092839 100644 --- a/extensions/line/api.ts +++ b/extensions/line/api.ts @@ -6,11 +6,8 @@ export type { } from "openclaw/plugin-sdk/core"; export { clearAccountEntryFields } from "openclaw/plugin-sdk/core"; export { buildChannelConfigSchema } from "openclaw/plugin-sdk/channel-config-schema"; +export type { ChannelAccountSnapshot, ChannelGatewayContext } from "openclaw/plugin-sdk/line"; export type { ReplyPayload } from "openclaw/plugin-sdk/reply-runtime"; -export type { - ChannelAccountSnapshot, - ChannelGatewayContext, -} from "../../src/channels/plugins/types.js"; export type { ChannelStatusIssue } from "openclaw/plugin-sdk/channel-contract"; export { buildComputedAccountStatusSnapshot, diff --git a/extensions/line/runtime-api.ts b/extensions/line/runtime-api.ts index 92d76f1afc3..d44f5b5f2da 100644 --- a/extensions/line/runtime-api.ts +++ b/extensions/line/runtime-api.ts @@ -9,11 +9,8 @@ export type { } from "openclaw/plugin-sdk/core"; export { clearAccountEntryFields } from "openclaw/plugin-sdk/core"; export { buildChannelConfigSchema } from "openclaw/plugin-sdk/channel-config-schema"; +export type { ChannelAccountSnapshot, ChannelGatewayContext } from "openclaw/plugin-sdk/line"; export type { ReplyPayload } from "openclaw/plugin-sdk/reply-runtime"; -export type { - ChannelAccountSnapshot, - ChannelGatewayContext, -} from "../../src/channels/plugins/types.js"; export type { ChannelStatusIssue } from "openclaw/plugin-sdk/channel-contract"; export type { ChannelSetupDmPolicy, ChannelSetupWizard } from "openclaw/plugin-sdk/setup"; export { diff --git a/extensions/signal/src/monitor.tool-result.test-harness.ts b/extensions/signal/src/monitor.tool-result.test-harness.ts index 67683b9e3b0..d2330bd69b7 100644 --- a/extensions/signal/src/monitor.tool-result.test-harness.ts +++ b/extensions/signal/src/monitor.tool-result.test-harness.ts @@ -1,5 +1,5 @@ +import type { MockFn } from "openclaw/plugin-sdk/testing"; import { beforeEach, vi } from "vitest"; -import type { MockFn } from "../../../src/test-utils/vitest-mock-fn.js"; import type { SignalDaemonExitEvent, SignalDaemonHandle } from "./daemon.js"; type SignalToolResultTestMocks = { diff --git a/extensions/telegram/src/bot.create-telegram-bot.test-harness.ts b/extensions/telegram/src/bot.create-telegram-bot.test-harness.ts index dd68dc66700..c6b11f5d2da 100644 --- a/extensions/telegram/src/bot.create-telegram-bot.test-harness.ts +++ b/extensions/telegram/src/bot.create-telegram-bot.test-harness.ts @@ -7,8 +7,8 @@ import { type MsgContext, type ReplyPayload, } from "openclaw/plugin-sdk/reply-runtime"; +import type { MockFn } from "openclaw/plugin-sdk/testing"; import { beforeEach, vi } from "vitest"; -import type { MockFn } from "../../../src/test-utils/vitest-mock-fn.js"; import type { TelegramBotDeps } from "./bot-deps.js"; type AnyMock = ReturnType; diff --git a/extensions/telegram/src/send.test-harness.ts b/extensions/telegram/src/send.test-harness.ts index 466123e05eb..25b04af4479 100644 --- a/extensions/telegram/src/send.test-harness.ts +++ b/extensions/telegram/src/send.test-harness.ts @@ -5,8 +5,8 @@ import { kindFromMime, normalizePollInput, } from "openclaw/plugin-sdk/media-runtime"; +import type { MockFn } from "openclaw/plugin-sdk/testing"; import { beforeEach, vi } from "vitest"; -import type { MockFn } from "../../../src/test-utils/vitest-mock-fn.js"; const { botApi, botCtorSpy } = vi.hoisted(() => ({ botApi: { diff --git a/extensions/telegram/src/target-writeback.test-shared.ts b/extensions/telegram/src/target-writeback.test-shared.ts index e82535c17b9..ceb91dadacb 100644 --- a/extensions/telegram/src/target-writeback.test-shared.ts +++ b/extensions/telegram/src/target-writeback.test-shared.ts @@ -1,5 +1,5 @@ +import type { OpenClawConfig } from "openclaw/plugin-sdk/testing"; import { beforeEach, describe, expect, it, vi } from "vitest"; -import type { OpenClawConfig } from "../../../src/config/config.js"; export const readConfigFileSnapshotForWrite = vi.fn(); export const writeConfigFile = vi.fn();