diff --git a/extensions/matrix/src/matrix/monitor/runtime-api.ts b/extensions/matrix/src/matrix/monitor/runtime-api.ts index 978cdd69b2f..401d60c20b5 100644 --- a/extensions/matrix/src/matrix/monitor/runtime-api.ts +++ b/extensions/matrix/src/matrix/monitor/runtime-api.ts @@ -15,8 +15,10 @@ export { patchAllowlistUsersInConfigEntries, summarizeMapping, } from "openclaw/plugin-sdk/allow-from"; -export { createReplyPrefixOptions } from "openclaw/plugin-sdk/channel-reply-pipeline"; -export { createTypingCallbacks } from "openclaw/plugin-sdk/channel-reply-pipeline"; +export { + createReplyPrefixOptions, + createTypingCallbacks, +} from "openclaw/plugin-sdk/channel-reply-options-runtime"; export { formatLocationText, toLocationContext } from "openclaw/plugin-sdk/channel-location"; export { getAgentScopedMediaLocalRoots } from "openclaw/plugin-sdk/agent-media-payload"; export { logInboundDrop, logTypingFailure } from "openclaw/plugin-sdk/channel-logging"; diff --git a/package.json b/package.json index e65e8d5f938..ac3e51ec72f 100644 --- a/package.json +++ b/package.json @@ -212,6 +212,10 @@ "types": "./dist/plugin-sdk/channel-reply-pipeline.d.ts", "default": "./dist/plugin-sdk/channel-reply-pipeline.js" }, + "./plugin-sdk/channel-reply-options-runtime": { + "types": "./dist/plugin-sdk/channel-reply-options-runtime.d.ts", + "default": "./dist/plugin-sdk/channel-reply-options-runtime.js" + }, "./plugin-sdk/channel-runtime": { "types": "./dist/plugin-sdk/channel-runtime.d.ts", "default": "./dist/plugin-sdk/channel-runtime.js" diff --git a/scripts/lib/plugin-sdk-entrypoints.json b/scripts/lib/plugin-sdk-entrypoints.json index 20b16ae7326..e2f2378acc7 100644 --- a/scripts/lib/plugin-sdk-entrypoints.json +++ b/scripts/lib/plugin-sdk-entrypoints.json @@ -39,6 +39,7 @@ "inbound-reply-dispatch", "inbound-envelope", "channel-reply-pipeline", + "channel-reply-options-runtime", "channel-runtime", "interactive-runtime", "outbound-media", diff --git a/src/plugin-sdk/channel-reply-options-runtime.ts b/src/plugin-sdk/channel-reply-options-runtime.ts new file mode 100644 index 00000000000..7a2f69ebecf --- /dev/null +++ b/src/plugin-sdk/channel-reply-options-runtime.ts @@ -0,0 +1,4 @@ +// Narrow reply helper surface for channel handlers that do not need the full +// reply pipeline factory. +export { createReplyPrefixOptions } from "../channels/reply-prefix.js"; +export { createTypingCallbacks } from "../channels/typing.js";