perf(plugin-sdk): add narrow outbound send deps entry · openclaw/openclaw@8a731c1
steipete
·
2026-04-26
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -262,6 +262,7 @@ releases.
|
262 | 262 | | `plugin-sdk/inbound-reply-dispatch` | Inbound reply helpers | Shared record-and-dispatch helpers | |
263 | 263 | | `plugin-sdk/messaging-targets` | Messaging target parsing | Target parsing/matching helpers | |
264 | 264 | | `plugin-sdk/outbound-media` | Outbound media helpers | Shared outbound media loading | |
| 265 | +| `plugin-sdk/outbound-send-deps` | Outbound send dependency helpers | Lightweight `resolveOutboundSendDep` lookup without importing the full outbound runtime | |
265 | 266 | | `plugin-sdk/outbound-runtime` | Outbound runtime helpers | Outbound delivery, identity/send delegate, session, formatting, and payload planning helpers | |
266 | 267 | | `plugin-sdk/thread-bindings-runtime` | Thread-binding helpers | Thread-binding lifecycle and adapter helpers | |
267 | 268 | | `plugin-sdk/agent-media-payload` | Legacy media payload helpers | Agent media payload builder for legacy field layouts | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -50,6 +50,7 @@ For the plugin authoring guide, see [Plugin SDK overview](/plugins/sdk-overview)
|
50 | 50 | | `plugin-sdk/inbound-reply-dispatch` | Shared inbound record-and-dispatch helpers | |
51 | 51 | | `plugin-sdk/messaging-targets` | Target parsing/matching helpers | |
52 | 52 | | `plugin-sdk/outbound-media` | Shared outbound media loading helpers | |
| 53 | +| `plugin-sdk/outbound-send-deps` | Lightweight outbound send dependency lookup for channel adapters | |
53 | 54 | | `plugin-sdk/outbound-runtime` | Outbound delivery, identity, send delegate, session, formatting, and payload planning helpers | |
54 | 55 | | `plugin-sdk/poll-runtime` | Narrow poll normalization helpers | |
55 | 56 | | `plugin-sdk/thread-bindings-runtime` | Thread-binding lifecycle and adapter helpers | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -3,10 +3,8 @@ import {
|
3 | 3 | createAttachedChannelResultAdapter, |
4 | 4 | } from "openclaw/plugin-sdk/channel-send-result"; |
5 | 5 | import type { OpenClawConfig } from "openclaw/plugin-sdk/config-runtime"; |
6 | | -import { |
7 | | -resolveOutboundSendDep, |
8 | | -type OutboundIdentity, |
9 | | -} from "openclaw/plugin-sdk/outbound-runtime"; |
| 6 | +import type { OutboundIdentity } from "openclaw/plugin-sdk/outbound-runtime"; |
| 7 | +import { resolveOutboundSendDep } from "openclaw/plugin-sdk/outbound-send-deps"; |
10 | 8 | import { |
11 | 9 | normalizeOptionalString, |
12 | 10 | normalizeOptionalStringifiedId, |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2,7 +2,7 @@ import {
|
2 | 2 | installChannelOutboundPayloadContractSuite, |
3 | 3 | primeChannelOutboundSendMock, |
4 | 4 | type OutboundPayloadHarnessParams, |
5 | | -} from "openclaw/plugin-sdk/testing"; |
| 5 | +} from "openclaw/plugin-sdk/channel-contract-testing"; |
6 | 6 | import { describe, vi } from "vitest"; |
7 | 7 | import { discordOutbound } from "./outbound-adapter.js"; |
8 | 8 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import type { OpenClawConfig, ReplyToMode } from "openclaw/plugin-sdk/config-runtime"; |
| 2 | +import { createReplyToFanout, type ReplyToResolution } from "openclaw/plugin-sdk/outbound-runtime"; |
2 | 3 | import { |
3 | | -createReplyToFanout, |
4 | 4 | resolveOutboundSendDep, |
5 | | -type ReplyToResolution, |
6 | 5 | type OutboundSendDeps, |
7 | | -} from "openclaw/plugin-sdk/outbound-runtime"; |
| 6 | +} from "openclaw/plugin-sdk/outbound-send-deps"; |
8 | 7 | import { normalizeOptionalStringifiedId } from "openclaw/plugin-sdk/text-runtime"; |
9 | 8 | import { withDiscordDeliveryRetry } from "./delivery-retry.js"; |
10 | 9 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | | -import { resolveOutboundSendDep } from "openclaw/plugin-sdk/outbound-runtime"; |
| 1 | +import { resolveOutboundSendDep } from "openclaw/plugin-sdk/outbound-send-deps"; |
2 | 2 | import type { ResolvedIMessageAccount } from "./accounts.js"; |
3 | 3 | import { PAIRING_APPROVED_MESSAGE, resolveChannelMediaMaxBytes } from "./channel-api.js"; |
4 | 4 | import type { ChannelPlugin } from "./channel-api.js"; |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import type { ChannelOutboundAdapter } from "openclaw/plugin-sdk/channel-contract"; |
2 | 2 | import type { ChannelPlugin } from "openclaw/plugin-sdk/core"; |
3 | | -import { resolveOutboundSendDep } from "openclaw/plugin-sdk/outbound-runtime"; |
| 3 | +import { resolveOutboundSendDep } from "openclaw/plugin-sdk/outbound-send-deps"; |
4 | 4 | import { collectStatusIssuesFromLastError } from "openclaw/plugin-sdk/status-helpers"; |
5 | 5 | import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/text-runtime"; |
6 | 6 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -87,7 +87,7 @@ export {
|
87 | 87 | resolveThreadBindingIdleTimeoutMsForChannel, |
88 | 88 | resolveThreadBindingMaxAgeMsForChannel, |
89 | 89 | } from "openclaw/plugin-sdk/conversation-runtime"; |
90 | | -export { resolveOutboundSendDep } from "openclaw/plugin-sdk/outbound-runtime"; |
| 90 | +export { resolveOutboundSendDep } from "openclaw/plugin-sdk/outbound-send-deps"; |
91 | 91 | export { resolveAgentIdFromSessionKey } from "openclaw/plugin-sdk/routing"; |
92 | 92 | export { chunkTextForOutbound } from "openclaw/plugin-sdk/text-chunking"; |
93 | 93 | export { createChannelReplyPipeline } from "openclaw/plugin-sdk/channel-reply-pipeline"; |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import { createAttachedChannelResultAdapter } from "openclaw/plugin-sdk/channel-send-result"; |
2 | | -import { resolveOutboundSendDep } from "openclaw/plugin-sdk/outbound-runtime"; |
| 2 | +import { resolveOutboundSendDep } from "openclaw/plugin-sdk/outbound-send-deps"; |
3 | 3 | import { chunkTextForOutbound, type ChannelOutboundAdapter } from "../runtime-api.js"; |
4 | 4 | import { createMSTeamsPollStoreFs } from "./polls.js"; |
5 | 5 | import { sendMessageMSTeams, sendPollMSTeams } from "./send.js"; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -9,7 +9,7 @@ import {
|
9 | 9 | import { PAIRING_APPROVED_MESSAGE } from "openclaw/plugin-sdk/channel-status"; |
10 | 10 | import { resolveMarkdownTableMode } from "openclaw/plugin-sdk/config-runtime"; |
11 | 11 | import { resolveChannelMediaMaxBytes } from "openclaw/plugin-sdk/media-runtime"; |
12 | | -import { resolveOutboundSendDep } from "openclaw/plugin-sdk/outbound-runtime"; |
| 12 | +import { resolveOutboundSendDep } from "openclaw/plugin-sdk/outbound-send-deps"; |
13 | 13 | import { chunkText, resolveTextChunkLimit } from "openclaw/plugin-sdk/reply-chunking"; |
14 | 14 | import { buildOutboundBaseSessionKey, type RoutePeer } from "openclaw/plugin-sdk/routing"; |
15 | 15 | import { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。