mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 21:20:43 +00:00
perf: narrow telegram reply imports
This commit is contained in:
@@ -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,
|
||||
}));
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user