diff --git a/extensions/discord/src/monitor/preflight-audio.runtime.ts b/extensions/discord/src/monitor/preflight-audio.runtime.ts index 5232d2ccb54..7e7f111d104 100644 --- a/extensions/discord/src/monitor/preflight-audio.runtime.ts +++ b/extensions/discord/src/monitor/preflight-audio.runtime.ts @@ -1 +1,9 @@ -export { transcribeFirstAudio } from "openclaw/plugin-sdk/media-runtime"; +import { transcribeFirstAudio as transcribeFirstAudioImpl } from "openclaw/plugin-sdk/media-runtime"; + +type TranscribeFirstAudio = typeof import("openclaw/plugin-sdk/media-runtime").transcribeFirstAudio; + +export async function transcribeFirstAudio( + ...args: Parameters +): ReturnType { + return await transcribeFirstAudioImpl(...args); +} diff --git a/extensions/slack/src/message-action-dispatch.ts b/extensions/slack/src/message-action-dispatch.ts index a589d28fed7..fc04c122ac7 100644 --- a/extensions/slack/src/message-action-dispatch.ts +++ b/extensions/slack/src/message-action-dispatch.ts @@ -1 +1,9 @@ -export { handleSlackMessageAction } from "openclaw/plugin-sdk/slack"; +import { handleSlackMessageAction as handleSlackMessageActionImpl } from "openclaw/plugin-sdk/slack"; + +type HandleSlackMessageAction = typeof import("openclaw/plugin-sdk/slack").handleSlackMessageAction; + +export async function handleSlackMessageAction( + ...args: Parameters +): ReturnType { + return await handleSlackMessageActionImpl(...args); +} diff --git a/extensions/telegram/src/media-understanding.runtime.ts b/extensions/telegram/src/media-understanding.runtime.ts index 3d20203caa8..3048178f06d 100644 --- a/extensions/telegram/src/media-understanding.runtime.ts +++ b/extensions/telegram/src/media-understanding.runtime.ts @@ -1 +1,20 @@ -export { describeImageWithModel, transcribeFirstAudio } from "openclaw/plugin-sdk/media-runtime"; +import { + describeImageWithModel as describeImageWithModelImpl, + transcribeFirstAudio as transcribeFirstAudioImpl, +} from "openclaw/plugin-sdk/media-runtime"; + +type DescribeImageWithModel = + typeof import("openclaw/plugin-sdk/media-runtime").describeImageWithModel; +type TranscribeFirstAudio = typeof import("openclaw/plugin-sdk/media-runtime").transcribeFirstAudio; + +export async function describeImageWithModel( + ...args: Parameters +): ReturnType { + return await describeImageWithModelImpl(...args); +} + +export async function transcribeFirstAudio( + ...args: Parameters +): ReturnType { + return await transcribeFirstAudioImpl(...args); +} diff --git a/extensions/whatsapp/src/channel.runtime.ts b/extensions/whatsapp/src/channel.runtime.ts index 1273da7bbd0..dbe5965a25d 100644 --- a/extensions/whatsapp/src/channel.runtime.ts +++ b/extensions/whatsapp/src/channel.runtime.ts @@ -9,4 +9,12 @@ export { export { loginWeb } from "./login.js"; export { startWebLoginWithQr, waitForWebLogin } from "./login-qr.js"; export { whatsappSetupWizard } from "./setup-surface.js"; -export { monitorWebChannel } from "openclaw/plugin-sdk/whatsapp"; +import { monitorWebChannel as monitorWebChannelImpl } from "openclaw/plugin-sdk/whatsapp"; + +type MonitorWebChannel = typeof import("openclaw/plugin-sdk/whatsapp").monitorWebChannel; + +export async function monitorWebChannel( + ...args: Parameters +): ReturnType { + return await monitorWebChannelImpl(...args); +} diff --git a/src/channels/read-only-account-inspect.discord.runtime.ts b/src/channels/read-only-account-inspect.discord.runtime.ts index 9d2ac6ef427..28db6fd4c1e 100644 --- a/src/channels/read-only-account-inspect.discord.runtime.ts +++ b/src/channels/read-only-account-inspect.discord.runtime.ts @@ -1,2 +1,11 @@ -export { inspectDiscordAccount } from "../plugin-sdk/discord.js"; +import { inspectDiscordAccount as inspectDiscordAccountImpl } from "../plugin-sdk/discord.js"; + export type { InspectedDiscordAccount } from "../plugin-sdk/discord.js"; + +type InspectDiscordAccount = typeof import("../plugin-sdk/discord.js").inspectDiscordAccount; + +export function inspectDiscordAccount( + ...args: Parameters +): ReturnType { + return inspectDiscordAccountImpl(...args); +} diff --git a/src/channels/read-only-account-inspect.slack.runtime.ts b/src/channels/read-only-account-inspect.slack.runtime.ts index a7526e2ea95..f2a9260b63e 100644 --- a/src/channels/read-only-account-inspect.slack.runtime.ts +++ b/src/channels/read-only-account-inspect.slack.runtime.ts @@ -1,2 +1,11 @@ -export { inspectSlackAccount } from "../plugin-sdk/slack.js"; +import { inspectSlackAccount as inspectSlackAccountImpl } from "../plugin-sdk/slack.js"; + export type { InspectedSlackAccount } from "../plugin-sdk/slack.js"; + +type InspectSlackAccount = typeof import("../plugin-sdk/slack.js").inspectSlackAccount; + +export function inspectSlackAccount( + ...args: Parameters +): ReturnType { + return inspectSlackAccountImpl(...args); +} diff --git a/src/channels/read-only-account-inspect.telegram.runtime.ts b/src/channels/read-only-account-inspect.telegram.runtime.ts index 0ab48f2c241..01c492dfffd 100644 --- a/src/channels/read-only-account-inspect.telegram.runtime.ts +++ b/src/channels/read-only-account-inspect.telegram.runtime.ts @@ -1,2 +1,11 @@ -export { inspectTelegramAccount } from "../plugin-sdk/telegram.js"; +import { inspectTelegramAccount as inspectTelegramAccountImpl } from "../plugin-sdk/telegram.js"; + export type { InspectedTelegramAccount } from "../plugin-sdk/telegram.js"; + +type InspectTelegramAccount = typeof import("../plugin-sdk/telegram.js").inspectTelegramAccount; + +export function inspectTelegramAccount( + ...args: Parameters +): ReturnType { + return inspectTelegramAccountImpl(...args); +} diff --git a/src/cli/send-runtime/discord.ts b/src/cli/send-runtime/discord.ts index 9ec4cf97247..13e8293085b 100644 --- a/src/cli/send-runtime/discord.ts +++ b/src/cli/send-runtime/discord.ts @@ -1 +1,9 @@ -export { sendMessageDiscord } from "../../plugin-sdk/discord.js"; +import { sendMessageDiscord as sendMessageDiscordImpl } from "../../plugin-sdk/discord.js"; + +type SendMessageDiscord = typeof import("../../plugin-sdk/discord.js").sendMessageDiscord; + +export async function sendMessageDiscord( + ...args: Parameters +): ReturnType { + return await sendMessageDiscordImpl(...args); +} diff --git a/src/cli/send-runtime/imessage.ts b/src/cli/send-runtime/imessage.ts index 3208aa24e00..eb5263a8b53 100644 --- a/src/cli/send-runtime/imessage.ts +++ b/src/cli/send-runtime/imessage.ts @@ -1 +1,9 @@ -export { sendMessageIMessage } from "../../plugin-sdk/imessage.js"; +import { sendMessageIMessage as sendMessageIMessageImpl } from "../../plugin-sdk/imessage.js"; + +type SendMessageIMessage = typeof import("../../plugin-sdk/imessage.js").sendMessageIMessage; + +export async function sendMessageIMessage( + ...args: Parameters +): ReturnType { + return await sendMessageIMessageImpl(...args); +} diff --git a/src/cli/send-runtime/signal.ts b/src/cli/send-runtime/signal.ts index 19a366168c8..a1e72eb1200 100644 --- a/src/cli/send-runtime/signal.ts +++ b/src/cli/send-runtime/signal.ts @@ -1 +1,9 @@ -export { sendMessageSignal } from "../../plugin-sdk/signal.js"; +import { sendMessageSignal as sendMessageSignalImpl } from "../../plugin-sdk/signal.js"; + +type SendMessageSignal = typeof import("../../plugin-sdk/signal.js").sendMessageSignal; + +export async function sendMessageSignal( + ...args: Parameters +): ReturnType { + return await sendMessageSignalImpl(...args); +} diff --git a/src/cli/send-runtime/slack.ts b/src/cli/send-runtime/slack.ts index 1f108ac0fdc..3bef60a98c2 100644 --- a/src/cli/send-runtime/slack.ts +++ b/src/cli/send-runtime/slack.ts @@ -1 +1,9 @@ -export { sendMessageSlack } from "../../plugin-sdk/slack.js"; +import { sendMessageSlack as sendMessageSlackImpl } from "../../plugin-sdk/slack.js"; + +type SendMessageSlack = typeof import("../../plugin-sdk/slack.js").sendMessageSlack; + +export async function sendMessageSlack( + ...args: Parameters +): ReturnType { + return await sendMessageSlackImpl(...args); +} diff --git a/src/cli/send-runtime/telegram.ts b/src/cli/send-runtime/telegram.ts index c0037ec1f0a..3c384baa853 100644 --- a/src/cli/send-runtime/telegram.ts +++ b/src/cli/send-runtime/telegram.ts @@ -1 +1,9 @@ -export { sendMessageTelegram } from "../../plugin-sdk/telegram.js"; +import { sendMessageTelegram as sendMessageTelegramImpl } from "../../plugin-sdk/telegram.js"; + +type SendMessageTelegram = typeof import("../../plugin-sdk/telegram.js").sendMessageTelegram; + +export async function sendMessageTelegram( + ...args: Parameters +): ReturnType { + return await sendMessageTelegramImpl(...args); +} diff --git a/src/cli/send-runtime/whatsapp.ts b/src/cli/send-runtime/whatsapp.ts index 00ec2f1ba09..f8b33db58c1 100644 --- a/src/cli/send-runtime/whatsapp.ts +++ b/src/cli/send-runtime/whatsapp.ts @@ -1 +1,9 @@ -export { sendMessageWhatsApp } from "../../plugin-sdk/whatsapp.js"; +import { sendMessageWhatsApp as sendMessageWhatsAppImpl } from "../../plugin-sdk/whatsapp.js"; + +type SendMessageWhatsApp = typeof import("../../plugin-sdk/whatsapp.js").sendMessageWhatsApp; + +export async function sendMessageWhatsApp( + ...args: Parameters +): ReturnType { + return await sendMessageWhatsAppImpl(...args); +}