perf: narrow telegram reply imports

This commit is contained in:
Peter Steinberger
2026-04-24 09:31:38 +01:00
parent a79c40a789
commit d85dc46e37
7 changed files with 8 additions and 7 deletions

View File

@@ -2,7 +2,7 @@ import { describe, expect, it, vi } from "vitest";
const generateConversationLabel = vi.hoisted(() => vi.fn());
vi.mock("openclaw/plugin-sdk/reply-runtime", () => ({
vi.mock("openclaw/plugin-sdk/reply-dispatch-runtime", () => ({
generateConversationLabel,
}));

View File

@@ -1,5 +1,5 @@
import type { OpenClawConfig } from "openclaw/plugin-sdk/config-runtime";
import { generateConversationLabel } from "openclaw/plugin-sdk/reply-runtime";
import { generateConversationLabel } from "openclaw/plugin-sdk/reply-dispatch-runtime";
export {
AUTO_TOPIC_LABEL_DEFAULT_PROMPT,
resolveAutoTopicLabelConfig,

View File

@@ -5,7 +5,7 @@ export {
resolveStorePath,
} from "openclaw/plugin-sdk/config-runtime";
export { getAgentScopedMediaLocalRoots } from "openclaw/plugin-sdk/media-runtime";
export { resolveChunkMode } from "openclaw/plugin-sdk/reply-runtime";
export { resolveChunkMode } from "openclaw/plugin-sdk/reply-dispatch-runtime";
export {
generateTelegramTopicLabel as generateTopicLabel,
resolveAutoTopicLabelConfig,

View File

@@ -17,8 +17,8 @@ import {
projectOutboundPayloadPlanForDelivery,
} from "openclaw/plugin-sdk/outbound-runtime";
import { getGlobalHookRunner } from "openclaw/plugin-sdk/plugin-runtime";
import type { ReplyPayload } from "openclaw/plugin-sdk/reply-runtime";
import { chunkMarkdownTextWithMode, type ChunkMode } from "openclaw/plugin-sdk/reply-runtime";
import { chunkMarkdownTextWithMode, type ChunkMode } from "openclaw/plugin-sdk/reply-chunking";
import type { ReplyPayload } from "openclaw/plugin-sdk/reply-payload";
import type { RuntimeEnv } from "openclaw/plugin-sdk/runtime-env";
import { danger, logVerbose } from "openclaw/plugin-sdk/runtime-env";
import { createSubsystemLogger } from "openclaw/plugin-sdk/runtime-env";