Skip to content

Commit 14d6b76

Browse files
committed
build: remove ineffective dynamic import shims
1 parent efaa4dc commit 14d6b76

File tree

13 files changed

+131
-13
lines changed

13 files changed

+131
-13
lines changed
Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
1-
export { transcribeFirstAudio } from "openclaw/plugin-sdk/media-runtime";
1+
import { transcribeFirstAudio as transcribeFirstAudioImpl } from "openclaw/plugin-sdk/media-runtime";
2+
3+
type TranscribeFirstAudio = typeof import("openclaw/plugin-sdk/media-runtime").transcribeFirstAudio;
4+
5+
export async function transcribeFirstAudio(
6+
...args: Parameters<TranscribeFirstAudio>
7+
): ReturnType<TranscribeFirstAudio> {
8+
return await transcribeFirstAudioImpl(...args);
9+
}
Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
1-
export { handleSlackMessageAction } from "openclaw/plugin-sdk/slack";
1+
import { handleSlackMessageAction as handleSlackMessageActionImpl } from "openclaw/plugin-sdk/slack";
2+
3+
type HandleSlackMessageAction = typeof import("openclaw/plugin-sdk/slack").handleSlackMessageAction;
4+
5+
export async function handleSlackMessageAction(
6+
...args: Parameters<HandleSlackMessageAction>
7+
): ReturnType<HandleSlackMessageAction> {
8+
return await handleSlackMessageActionImpl(...args);
9+
}
Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,20 @@
1-
export { describeImageWithModel, transcribeFirstAudio } from "openclaw/plugin-sdk/media-runtime";
1+
import {
2+
describeImageWithModel as describeImageWithModelImpl,
3+
transcribeFirstAudio as transcribeFirstAudioImpl,
4+
} from "openclaw/plugin-sdk/media-runtime";
5+
6+
type DescribeImageWithModel =
7+
typeof import("openclaw/plugin-sdk/media-runtime").describeImageWithModel;
8+
type TranscribeFirstAudio = typeof import("openclaw/plugin-sdk/media-runtime").transcribeFirstAudio;
9+
10+
export async function describeImageWithModel(
11+
...args: Parameters<DescribeImageWithModel>
12+
): ReturnType<DescribeImageWithModel> {
13+
return await describeImageWithModelImpl(...args);
14+
}
15+
16+
export async function transcribeFirstAudio(
17+
...args: Parameters<TranscribeFirstAudio>
18+
): ReturnType<TranscribeFirstAudio> {
19+
return await transcribeFirstAudioImpl(...args);
20+
}

extensions/whatsapp/src/channel.runtime.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,12 @@ export {
99
export { loginWeb } from "./login.js";
1010
export { startWebLoginWithQr, waitForWebLogin } from "./login-qr.js";
1111
export { whatsappSetupWizard } from "./setup-surface.js";
12-
export { monitorWebChannel } from "openclaw/plugin-sdk/whatsapp";
12+
import { monitorWebChannel as monitorWebChannelImpl } from "openclaw/plugin-sdk/whatsapp";
13+
14+
type MonitorWebChannel = typeof import("openclaw/plugin-sdk/whatsapp").monitorWebChannel;
15+
16+
export async function monitorWebChannel(
17+
...args: Parameters<MonitorWebChannel>
18+
): ReturnType<MonitorWebChannel> {
19+
return await monitorWebChannelImpl(...args);
20+
}
Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
1-
export { inspectDiscordAccount } from "../plugin-sdk/discord.js";
1+
import { inspectDiscordAccount as inspectDiscordAccountImpl } from "../plugin-sdk/discord.js";
2+
23
export type { InspectedDiscordAccount } from "../plugin-sdk/discord.js";
4+
5+
type InspectDiscordAccount = typeof import("../plugin-sdk/discord.js").inspectDiscordAccount;
6+
7+
export function inspectDiscordAccount(
8+
...args: Parameters<InspectDiscordAccount>
9+
): ReturnType<InspectDiscordAccount> {
10+
return inspectDiscordAccountImpl(...args);
11+
}
Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
1-
export { inspectSlackAccount } from "../plugin-sdk/slack.js";
1+
import { inspectSlackAccount as inspectSlackAccountImpl } from "../plugin-sdk/slack.js";
2+
23
export type { InspectedSlackAccount } from "../plugin-sdk/slack.js";
4+
5+
type InspectSlackAccount = typeof import("../plugin-sdk/slack.js").inspectSlackAccount;
6+
7+
export function inspectSlackAccount(
8+
...args: Parameters<InspectSlackAccount>
9+
): ReturnType<InspectSlackAccount> {
10+
return inspectSlackAccountImpl(...args);
11+
}
Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
1-
export { inspectTelegramAccount } from "../plugin-sdk/telegram.js";
1+
import { inspectTelegramAccount as inspectTelegramAccountImpl } from "../plugin-sdk/telegram.js";
2+
23
export type { InspectedTelegramAccount } from "../plugin-sdk/telegram.js";
4+
5+
type InspectTelegramAccount = typeof import("../plugin-sdk/telegram.js").inspectTelegramAccount;
6+
7+
export function inspectTelegramAccount(
8+
...args: Parameters<InspectTelegramAccount>
9+
): ReturnType<InspectTelegramAccount> {
10+
return inspectTelegramAccountImpl(...args);
11+
}

src/cli/send-runtime/discord.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
1-
export { sendMessageDiscord } from "../../plugin-sdk/discord.js";
1+
import { sendMessageDiscord as sendMessageDiscordImpl } from "../../plugin-sdk/discord.js";
2+
3+
type SendMessageDiscord = typeof import("../../plugin-sdk/discord.js").sendMessageDiscord;
4+
5+
export async function sendMessageDiscord(
6+
...args: Parameters<SendMessageDiscord>
7+
): ReturnType<SendMessageDiscord> {
8+
return await sendMessageDiscordImpl(...args);
9+
}

src/cli/send-runtime/imessage.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
1-
export { sendMessageIMessage } from "../../plugin-sdk/imessage.js";
1+
import { sendMessageIMessage as sendMessageIMessageImpl } from "../../plugin-sdk/imessage.js";
2+
3+
type SendMessageIMessage = typeof import("../../plugin-sdk/imessage.js").sendMessageIMessage;
4+
5+
export async function sendMessageIMessage(
6+
...args: Parameters<SendMessageIMessage>
7+
): ReturnType<SendMessageIMessage> {
8+
return await sendMessageIMessageImpl(...args);
9+
}

src/cli/send-runtime/signal.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
1-
export { sendMessageSignal } from "../../plugin-sdk/signal.js";
1+
import { sendMessageSignal as sendMessageSignalImpl } from "../../plugin-sdk/signal.js";
2+
3+
type SendMessageSignal = typeof import("../../plugin-sdk/signal.js").sendMessageSignal;
4+
5+
export async function sendMessageSignal(
6+
...args: Parameters<SendMessageSignal>
7+
): ReturnType<SendMessageSignal> {
8+
return await sendMessageSignalImpl(...args);
9+
}

0 commit comments

Comments
 (0)