refactor(outbound): remove tool payload facade · openclaw/openclaw@a22a1ed
vincentkoc
·
2026-06-18
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -42,7 +42,7 @@ import { buildOutboundSessionContext } from "../../infra/outbound/session-contex
|
42 | 42 | import { mirrorDeliveredSourceReplyToTranscript } from "../../infra/outbound/source-reply-mirror.js"; |
43 | 43 | import { maybeResolveIdLikeTarget } from "../../infra/outbound/target-resolver.js"; |
44 | 44 | import { resolveOutboundTarget } from "../../infra/outbound/targets.js"; |
45 | | -import { extractToolPayload } from "../../infra/outbound/tool-payload.js"; |
| 45 | +import { extractToolPayload } from "../../plugin-sdk/tool-payload.js"; |
46 | 46 | import { getAgentScopedMediaLocalRoots } from "../../media/local-roots.js"; |
47 | 47 | import { normalizePollInput } from "../../polls.js"; |
48 | 48 | import { |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -15,7 +15,7 @@ import { createTestRegistry } from "../../test-utils/channel-plugins.js";
|
15 | 15 | import { withEnvAsync } from "../../test-utils/env.js"; |
16 | 16 | import { GATEWAY_CLIENT_MODES, GATEWAY_CLIENT_NAMES } from "../../utils/message-channel.js"; |
17 | 17 | import { runMessageAction } from "./message-action-runner.js"; |
18 | | -import { extractToolPayload } from "./tool-payload.js"; |
| 18 | +import { extractToolPayload } from "../../plugin-sdk/tool-payload.js"; |
19 | 19 | |
20 | 20 | type ChannelActionHandler = NonNullable<NonNullable<ChannelPlugin["actions"]>["handleAction"]>; |
21 | 21 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -89,7 +89,7 @@ import { executePollAction, executeSendAction } from "./outbound-send-service.js
|
89 | 89 | import { ensureOutboundSessionEntry, resolveOutboundSessionRoute } from "./outbound-session.js"; |
90 | 90 | import { normalizeTargetForProvider } from "./target-normalization.js"; |
91 | 91 | import { resolveChannelTarget, type ResolvedMessagingTarget } from "./target-resolver.js"; |
92 | | -import { extractToolPayload } from "./tool-payload.js"; |
| 92 | +import { extractToolPayload } from "../../plugin-sdk/tool-payload.js"; |
93 | 93 | |
94 | 94 | export type MessageActionRunnerGateway = { |
95 | 95 | url?: string; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -21,7 +21,7 @@ import { collectActionMediaSourceHints } from "./message-action-params.js";
|
21 | 21 | import type { MessagePollResult, MessageSendResult } from "./message.js"; |
22 | 22 | import { sendMessage, sendPoll } from "./message.js"; |
23 | 23 | import type { OutboundMirror } from "./mirror.js"; |
24 | | -import { extractToolPayload } from "./tool-payload.js"; |
| 24 | +import { extractToolPayload } from "../../plugin-sdk/tool-payload.js"; |
25 | 25 | |
26 | 26 | /** Gateway connection settings forwarded to outbound send helpers. */ |
27 | 27 | export type OutboundGatewayContext = { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。