perf: narrow telegram reply imports · openclaw/openclaw@d85dc46
steipete
·
2026-04-24
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -270,7 +270,7 @@ releases.
|
270 | 270 | | `plugin-sdk/webhook-ingress` | Webhook request helpers | Webhook target utilities | |
271 | 271 | | `plugin-sdk/webhook-request-guards` | Webhook body guard helpers | Request body read/limit helpers | |
272 | 272 | | `plugin-sdk/reply-runtime` | Shared reply runtime | Inbound dispatch, heartbeat, reply planner, chunking | |
273 | | -| `plugin-sdk/reply-dispatch-runtime` | Narrow reply dispatch helpers | Finalize + provider dispatch helpers | |
| 273 | +| `plugin-sdk/reply-dispatch-runtime` | Narrow reply dispatch helpers | Finalize, provider dispatch, and conversation-label helpers | |
274 | 274 | | `plugin-sdk/reply-history` | Reply-history helpers | `buildHistoryContext`, `buildPendingHistoryContextFromMap`, `recordPendingHistoryEntry`, `clearHistoryEntriesIfEnabled` | |
275 | 275 | | `plugin-sdk/reply-reference` | Reply reference planning | `createReplyReferencePlanner` | |
276 | 276 | | `plugin-sdk/reply-chunking` | Reply chunk helpers | Text/markdown chunking helpers | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -158,7 +158,7 @@ For the plugin authoring guide, see [Plugin SDK overview](/plugins/sdk-overview)
|
158 | 158 | | `plugin-sdk/text-autolink-runtime` | File-reference autolink detection without the broad text-runtime barrel | |
159 | 159 | | `plugin-sdk/approval-runtime` | Exec/plugin approval helpers, approval-capability builders, auth/profile helpers, native routing/runtime helpers | |
160 | 160 | | `plugin-sdk/reply-runtime` | Shared inbound/reply runtime helpers, chunking, dispatch, heartbeat, reply planner | |
161 | | -| `plugin-sdk/reply-dispatch-runtime` | Narrow reply dispatch/finalize helpers | |
| 161 | +| `plugin-sdk/reply-dispatch-runtime` | Narrow reply dispatch/finalize and conversation-label helpers | |
162 | 162 | | `plugin-sdk/reply-history` | Shared short-window reply-history helpers such as `buildHistoryContext`, `recordPendingHistoryEntry`, and `clearHistoryEntriesIfEnabled` | |
163 | 163 | | `plugin-sdk/reply-reference` | `createReplyReferencePlanner` | |
164 | 164 | | `plugin-sdk/reply-chunking` | Narrow text/markdown chunking helpers | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2,7 +2,7 @@ import { describe, expect, it, vi } from "vitest";
|
2 | 2 | |
3 | 3 | const generateConversationLabel = vi.hoisted(() => vi.fn()); |
4 | 4 | |
5 | | -vi.mock("openclaw/plugin-sdk/reply-runtime", () => ({ |
| 5 | +vi.mock("openclaw/plugin-sdk/reply-dispatch-runtime", () => ({ |
6 | 6 | generateConversationLabel, |
7 | 7 | })); |
8 | 8 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import type { OpenClawConfig } from "openclaw/plugin-sdk/config-runtime"; |
2 | | -import { generateConversationLabel } from "openclaw/plugin-sdk/reply-runtime"; |
| 2 | +import { generateConversationLabel } from "openclaw/plugin-sdk/reply-dispatch-runtime"; |
3 | 3 | export { |
4 | 4 | AUTO_TOPIC_LABEL_DEFAULT_PROMPT, |
5 | 5 | resolveAutoTopicLabelConfig, |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -5,7 +5,7 @@ export {
|
5 | 5 | resolveStorePath, |
6 | 6 | } from "openclaw/plugin-sdk/config-runtime"; |
7 | 7 | export { getAgentScopedMediaLocalRoots } from "openclaw/plugin-sdk/media-runtime"; |
8 | | -export { resolveChunkMode } from "openclaw/plugin-sdk/reply-runtime"; |
| 8 | +export { resolveChunkMode } from "openclaw/plugin-sdk/reply-dispatch-runtime"; |
9 | 9 | export { |
10 | 10 | generateTelegramTopicLabel as generateTopicLabel, |
11 | 11 | resolveAutoTopicLabelConfig, |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -17,8 +17,8 @@ import {
|
17 | 17 | projectOutboundPayloadPlanForDelivery, |
18 | 18 | } from "openclaw/plugin-sdk/outbound-runtime"; |
19 | 19 | import { getGlobalHookRunner } from "openclaw/plugin-sdk/plugin-runtime"; |
20 | | -import type { ReplyPayload } from "openclaw/plugin-sdk/reply-runtime"; |
21 | | -import { chunkMarkdownTextWithMode, type ChunkMode } from "openclaw/plugin-sdk/reply-runtime"; |
| 20 | +import { chunkMarkdownTextWithMode, type ChunkMode } from "openclaw/plugin-sdk/reply-chunking"; |
| 21 | +import type { ReplyPayload } from "openclaw/plugin-sdk/reply-payload"; |
22 | 22 | import type { RuntimeEnv } from "openclaw/plugin-sdk/runtime-env"; |
23 | 23 | import { danger, logVerbose } from "openclaw/plugin-sdk/runtime-env"; |
24 | 24 | import { createSubsystemLogger } from "openclaw/plugin-sdk/runtime-env"; |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | export { resolveChunkMode } from "../auto-reply/chunk.js"; |
| 2 | +export { generateConversationLabel } from "../auto-reply/reply/conversation-label-generator.js"; |
2 | 3 | export { finalizeInboundContext } from "../auto-reply/reply/inbound-context.js"; |
3 | 4 | import type { |
4 | 5 | DispatchReplyWithBufferedBlockDispatcher, |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。