diff --git a/extensions/discord/src/monitor/message-handler.process.test.ts b/extensions/discord/src/monitor/message-handler.process.test.ts index 7b5e4c09ff0..21544d22cb1 100644 --- a/extensions/discord/src/monitor/message-handler.process.test.ts +++ b/extensions/discord/src/monitor/message-handler.process.test.ts @@ -5,9 +5,9 @@ import { type ChannelBotLoopProtectionFacts, } from "openclaw/plugin-sdk/channel-inbound"; import type { ReplyPayload } from "openclaw/plugin-sdk/reply-dispatch-runtime"; +import { setReplyPayloadMetadata } from "openclaw/plugin-sdk/reply-payload-testing"; import * as runtimeEnvModule from "openclaw/plugin-sdk/runtime-env"; import { beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; -import { setReplyPayloadMetadata } from "../../../../src/auto-reply/reply-payload.js"; import type { DiscordMessagePreflightContext } from "./message-handler.preflight.js"; const sendMocks = vi.hoisted(() => ({ diff --git a/package.json b/package.json index 5bfe8839320..a75850fdab4 100644 --- a/package.json +++ b/package.json @@ -51,6 +51,8 @@ "!dist/plugin-sdk/provider-http-test-mocks.d.ts", "!dist/plugin-sdk/provider-test-contracts.js", "!dist/plugin-sdk/provider-test-contracts.d.ts", + "!dist/plugin-sdk/reply-payload-testing.js", + "!dist/plugin-sdk/reply-payload-testing.d.ts", "!dist/plugin-sdk/test-env.js", "!dist/plugin-sdk/test-env.d.ts", "!dist/plugin-sdk/test-fixtures.js", diff --git a/scripts/lib/plugin-sdk-entrypoints.json b/scripts/lib/plugin-sdk-entrypoints.json index 258b53d9d5d..05782291993 100644 --- a/scripts/lib/plugin-sdk-entrypoints.json +++ b/scripts/lib/plugin-sdk-entrypoints.json @@ -46,6 +46,7 @@ "reply-reference", "reply-chunking", "reply-payload", + "reply-payload-testing", "agent-media-payload", "inbound-reply-dispatch", "inbound-envelope", diff --git a/scripts/lib/plugin-sdk-private-local-only-subpaths.json b/scripts/lib/plugin-sdk-private-local-only-subpaths.json index 048479c76bf..82f65e719aa 100644 --- a/scripts/lib/plugin-sdk-private-local-only-subpaths.json +++ b/scripts/lib/plugin-sdk-private-local-only-subpaths.json @@ -13,6 +13,7 @@ "qa-channel-protocol", "qa-lab", "qa-runtime", + "reply-payload-testing", "ssrf-runtime-internal", "test-env", "test-fixtures", diff --git a/src/plugin-sdk/reply-payload-testing.ts b/src/plugin-sdk/reply-payload-testing.ts new file mode 100644 index 00000000000..854b079dd18 --- /dev/null +++ b/src/plugin-sdk/reply-payload-testing.ts @@ -0,0 +1 @@ +export { setReplyPayloadMetadata } from "../auto-reply/reply-payload.js";