refactor: trim internal extension seams

This commit is contained in:
Peter Steinberger
2026-05-01 14:21:46 +01:00
parent a4f590a096
commit d7ea6d9f8c
4 changed files with 3 additions and 14 deletions

View File

@@ -1 +1 @@
export { CONFIG_DIR, escapeRegExp, resolveUserPath, shortenHomePath } from "./sdk-config.js";
export { CONFIG_DIR, escapeRegExp, resolveUserPath } from "./sdk-config.js";

View File

@@ -7,10 +7,7 @@ import {
createDiscordMessagingActionContext,
type DiscordMessagingActionOptions,
} from "./runtime.messaging.shared.js";
export {
discordMessagingActionRuntime,
resolveDiscordReactionTargetChannelId,
} from "./runtime.messaging.runtime.js";
export { discordMessagingActionRuntime } from "./runtime.messaging.runtime.js";
export async function handleDiscordMessagingAction(
action: string,

View File

@@ -1,5 +1,5 @@
import { createPluginRuntimeStore } from "openclaw/plugin-sdk/runtime-store";
export type { TelegramChannelRuntime, TelegramRuntime } from "./runtime.types.js";
export type { TelegramRuntime } from "./runtime.types.js";
import type { TelegramRuntime } from "./runtime.types.js";
const {

View File

@@ -20,7 +20,6 @@ import { getPrimaryIdentityId, getSelfIdentity, getSenderIdentity } from "../../
import {
resolveWhatsAppCommandAuthorized,
resolveWhatsAppInboundPolicy,
type ResolvedWhatsAppInboundPolicy,
} from "../../inbound-policy.js";
import { newConnectionId } from "../../reconnect.js";
import { formatError } from "../../session.js";
@@ -530,10 +529,3 @@ export async function processMessage(params: {
});
return didSendReply;
}
export const __testing = {
resolveWhatsAppCommandAuthorized,
resolveWhatsAppInboundPolicy: (
params: Parameters<typeof resolveWhatsAppInboundPolicy>[0],
): ResolvedWhatsAppInboundPolicy => resolveWhatsAppInboundPolicy(params),
};