refactor(outbound): remove tool payload facade

This commit is contained in:
Vincent Koc
2026-06-18 09:49:19 +08:00
parent 4a596d9bc8
commit a22a1edc8f
5 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ import { buildOutboundSessionContext } from "../../infra/outbound/session-contex
import { mirrorDeliveredSourceReplyToTranscript } from "../../infra/outbound/source-reply-mirror.js";
import { maybeResolveIdLikeTarget } from "../../infra/outbound/target-resolver.js";
import { resolveOutboundTarget } from "../../infra/outbound/targets.js";
import { extractToolPayload } from "../../infra/outbound/tool-payload.js";
import { extractToolPayload } from "../../plugin-sdk/tool-payload.js";
import { getAgentScopedMediaLocalRoots } from "../../media/local-roots.js";
import { normalizePollInput } from "../../polls.js";
import {
@@ -15,7 +15,7 @@ import { createTestRegistry } from "../../test-utils/channel-plugins.js";
import { withEnvAsync } from "../../test-utils/env.js";
import { GATEWAY_CLIENT_MODES, GATEWAY_CLIENT_NAMES } from "../../utils/message-channel.js";
import { runMessageAction } from "./message-action-runner.js";
import { extractToolPayload } from "./tool-payload.js";
import { extractToolPayload } from "../../plugin-sdk/tool-payload.js";
type ChannelActionHandler = NonNullable<NonNullable<ChannelPlugin["actions"]>["handleAction"]>;
+1 -1
View File
@@ -89,7 +89,7 @@ import { executePollAction, executeSendAction } from "./outbound-send-service.js
import { ensureOutboundSessionEntry, resolveOutboundSessionRoute } from "./outbound-session.js";
import { normalizeTargetForProvider } from "./target-normalization.js";
import { resolveChannelTarget, type ResolvedMessagingTarget } from "./target-resolver.js";
import { extractToolPayload } from "./tool-payload.js";
import { extractToolPayload } from "../../plugin-sdk/tool-payload.js";
export type MessageActionRunnerGateway = {
url?: string;
+1 -1
View File
@@ -21,7 +21,7 @@ import { collectActionMediaSourceHints } from "./message-action-params.js";
import type { MessagePollResult, MessageSendResult } from "./message.js";
import { sendMessage, sendPoll } from "./message.js";
import type { OutboundMirror } from "./mirror.js";
import { extractToolPayload } from "./tool-payload.js";
import { extractToolPayload } from "../../plugin-sdk/tool-payload.js";
/** Gateway connection settings forwarded to outbound send helpers. */
export type OutboundGatewayContext = {
-2
View File
@@ -1,2 +0,0 @@
// Infra facade for plugin SDK tool payload extraction.
export { extractToolPayload } from "../../plugin-sdk/tool-payload.js";