refactor: trim internal extension seams · openclaw/openclaw@d7ea6d9
steipete
·
2026-05-01
·
via Recent Commits to openclaw:main
File tree
whatsapp/src/auto-reply/monitor
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | | -export { CONFIG_DIR, escapeRegExp, resolveUserPath, shortenHomePath } from "./sdk-config.js"; |
| 1 | +export { CONFIG_DIR, escapeRegExp, resolveUserPath } from "./sdk-config.js"; |
| Original file line number | Diff line number | Diff line change |
|---|
@@ -7,10 +7,7 @@ import {
|
7 | 7 | createDiscordMessagingActionContext, |
8 | 8 | type DiscordMessagingActionOptions, |
9 | 9 | } from "./runtime.messaging.shared.js"; |
10 | | -export { |
11 | | -discordMessagingActionRuntime, |
12 | | -resolveDiscordReactionTargetChannelId, |
13 | | -} from "./runtime.messaging.runtime.js"; |
| 10 | +export { discordMessagingActionRuntime } from "./runtime.messaging.runtime.js"; |
14 | 11 | |
15 | 12 | export async function handleDiscordMessagingAction( |
16 | 13 | action: string, |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import { createPluginRuntimeStore } from "openclaw/plugin-sdk/runtime-store"; |
2 | | -export type { TelegramChannelRuntime, TelegramRuntime } from "./runtime.types.js"; |
| 2 | +export type { TelegramRuntime } from "./runtime.types.js"; |
3 | 3 | import type { TelegramRuntime } from "./runtime.types.js"; |
4 | 4 | |
5 | 5 | const { |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -20,7 +20,6 @@ import { getPrimaryIdentityId, getSelfIdentity, getSenderIdentity } from "../../
|
20 | 20 | import { |
21 | 21 | resolveWhatsAppCommandAuthorized, |
22 | 22 | resolveWhatsAppInboundPolicy, |
23 | | -type ResolvedWhatsAppInboundPolicy, |
24 | 23 | } from "../../inbound-policy.js"; |
25 | 24 | import { newConnectionId } from "../../reconnect.js"; |
26 | 25 | import { formatError } from "../../session.js"; |
@@ -530,10 +529,3 @@ export async function processMessage(params: {
|
530 | 529 | }); |
531 | 530 | return didSendReply; |
532 | 531 | } |
533 | | - |
534 | | -export const __testing = { |
535 | | - resolveWhatsAppCommandAuthorized, |
536 | | -resolveWhatsAppInboundPolicy: ( |
537 | | -params: Parameters<typeof resolveWhatsAppInboundPolicy>[0], |
538 | | -): ResolvedWhatsAppInboundPolicy => resolveWhatsAppInboundPolicy(params), |
539 | | -}; |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。