perf(whatsapp): narrow reply chunking imports

This commit is contained in:
Vincent Koc 2026-03-31 22:24:11 +09:00
parent e7e383b7cf
commit 5b7443d175
3 changed files with 5 additions and 3 deletions

View File

@ -1,10 +1,10 @@
import type { MarkdownTableMode } from "openclaw/plugin-sdk/config-runtime";
import { chunkMarkdownTextWithMode, type ChunkMode } from "openclaw/plugin-sdk/reply-chunking";
import type { ReplyPayload } from "openclaw/plugin-sdk/reply-chunking";
import {
resolveOutboundMediaUrls,
sendMediaWithLeadingCaption,
} from "openclaw/plugin-sdk/reply-payload";
import { chunkMarkdownTextWithMode, type ChunkMode } from "openclaw/plugin-sdk/reply-runtime";
import type { ReplyPayload } from "openclaw/plugin-sdk/reply-runtime";
import { logVerbose, shouldLogVerbose } from "openclaw/plugin-sdk/runtime-env";
import { convertMarkdownTables } from "openclaw/plugin-sdk/text-runtime";
import { markdownToWhatsApp } from "openclaw/plugin-sdk/text-runtime";

View File

@ -3,4 +3,6 @@ export {
resolveChunkMode,
resolveTextChunkLimit,
} from "../auto-reply/chunk.js";
export type { ChunkMode } from "../auto-reply/chunk.js";
export { isSilentReplyText } from "../auto-reply/tokens.js";
export type { ReplyPayload } from "../auto-reply/types.js";

View File

@ -88,7 +88,7 @@
"durationMs": 2300
},
"extensions/whatsapp/src/auto-reply/deliver-reply.test.ts": {
"durationMs": 12400
"durationMs": 10260
},
"extensions/slack/src/monitor/events/reactions.test.ts": {
"durationMs": 2200