mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 07:30:43 +00:00
refactor: trim internal extension seams
This commit is contained in:
@@ -1 +1 @@
|
||||
export { CONFIG_DIR, escapeRegExp, resolveUserPath, shortenHomePath } from "./sdk-config.js";
|
||||
export { CONFIG_DIR, escapeRegExp, resolveUserPath } from "./sdk-config.js";
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user