diff --git a/extensions/lobster/src/test-helpers.ts b/extensions/lobster/src/test-helpers.ts index 035dacd1d34..52db2fad942 100644 --- a/extensions/lobster/src/test-helpers.ts +++ b/extensions/lobster/src/test-helpers.ts @@ -1,6 +1,6 @@ type PathEnvKey = "PATH" | "Path" | "PATHEXT" | "Pathext"; -export { createWindowsCmdShimFixture } from "../../../src/test-helpers/windows-cmd-shim.js"; +export { createWindowsCmdShimFixture } from "openclaw/plugin-sdk/testing"; const PATH_ENV_KEYS = ["PATH", "Path", "PATHEXT", "Pathext"] as const; diff --git a/extensions/shared/resolve-target-test-helpers.ts b/extensions/shared/resolve-target-test-helpers.ts index ddfadea2921..29a0bc68a88 100644 --- a/extensions/shared/resolve-target-test-helpers.ts +++ b/extensions/shared/resolve-target-test-helpers.ts @@ -1 +1 @@ -export { installCommonResolveTargetErrorCases } from "../../src/test-helpers/resolve-target-error-cases.js"; +export { installCommonResolveTargetErrorCases } from "openclaw/plugin-sdk/testing"; diff --git a/extensions/shared/windows-cmd-shim-test-fixtures.ts b/extensions/shared/windows-cmd-shim-test-fixtures.ts index 53e58042b42..ccaa146100e 100644 --- a/extensions/shared/windows-cmd-shim-test-fixtures.ts +++ b/extensions/shared/windows-cmd-shim-test-fixtures.ts @@ -1 +1 @@ -export { createWindowsCmdShimFixture } from "../../src/test-helpers/windows-cmd-shim.js"; +export { createWindowsCmdShimFixture } from "openclaw/plugin-sdk/testing"; 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 5682f08be5e..c6b11f5d2da 100644 --- a/extensions/telegram/src/bot.create-telegram-bot.test-harness.ts +++ b/extensions/telegram/src/bot.create-telegram-bot.test-harness.ts @@ -1,11 +1,14 @@ +import { resolveDefaultModelForAgent } from "openclaw/plugin-sdk/agent-runtime"; import type { OpenClawConfig } from "openclaw/plugin-sdk/config-runtime"; +import { + createReplyDispatcher, + resetInboundDedupe, + type GetReplyOptions, + type MsgContext, + type ReplyPayload, +} from "openclaw/plugin-sdk/reply-runtime"; import type { MockFn } from "openclaw/plugin-sdk/testing"; import { beforeEach, vi } from "vitest"; -import { resolveDefaultModelForAgent } from "../../../src/agents/model-selection.js"; -import { resetInboundDedupe } from "../../../src/auto-reply/reply/inbound-dedupe.js"; -import { createReplyDispatcher } from "../../../src/auto-reply/reply/reply-dispatcher.js"; -import type { MsgContext } from "../../../src/auto-reply/templating.js"; -import type { GetReplyOptions, ReplyPayload } from "../../../src/auto-reply/types.js"; import type { TelegramBotDeps } from "./bot-deps.js"; type AnyMock = ReturnType;