





















@@ -1,3 +1,22 @@
1+import { createChannelPairingController } from "openclaw/plugin-sdk/channel-pairing";
2+import {
3+readStoreAllowFromForDmPolicy,
4+resolveEffectiveAllowFromLists,
5+} from "openclaw/plugin-sdk/channel-policy";
6+import { resolveControlCommandGate } from "openclaw/plugin-sdk/command-auth";
7+import {
8+GROUP_POLICY_BLOCKED_LABEL,
9+isDangerousNameMatchingEnabled,
10+resolveAllowlistProviderRuntimeGroupPolicy,
11+resolveDefaultGroupPolicy,
12+warnMissingProviderGroupPolicyFallbackOnce,
13+type OpenClawConfig,
14+} from "openclaw/plugin-sdk/config-runtime";
15+import {
16+deliverFormattedTextWithAttachments,
17+type OutboundReplyPayload,
18+} from "openclaw/plugin-sdk/reply-payload";
19+import type { RuntimeEnv } from "openclaw/plugin-sdk/runtime";
120import {
221normalizeLowercaseStringOrEmpty,
322normalizeOptionalString,
@@ -11,23 +30,6 @@ import {
1130resolveIrcGroupSenderAllowed,
1231resolveIrcRequireMention,
1332} from "./policy.js";
14-import {
15-GROUP_POLICY_BLOCKED_LABEL,
16-createChannelPairingController,
17-deliverFormattedTextWithAttachments,
18-dispatchInboundReplyWithBase,
19-logInboundDrop,
20-isDangerousNameMatchingEnabled,
21-readStoreAllowFromForDmPolicy,
22-resolveControlCommandGate,
23-resolveAllowlistProviderRuntimeGroupPolicy,
24-resolveDefaultGroupPolicy,
25-resolveEffectiveAllowFromLists,
26-warnMissingProviderGroupPolicyFallbackOnce,
27-type OutboundReplyPayload,
28-type OpenClawConfig,
29-type RuntimeEnv,
30-} from "./runtime-api.js";
3133import { getIrcRuntime } from "./runtime.js";
3234import { sendMessageIrc } from "./send.js";
3335import type { CoreConfig, IrcInboundMessage } from "./types.js";
@@ -239,6 +241,7 @@ export async function handleIrcInbound(params: {
239241}
240242241243if (message.isGroup && commandGate.shouldBlock) {
244+const { logInboundDrop } = await import("openclaw/plugin-sdk/channel-inbound");
242245logInboundDrop({
243246log: (line) => runtime.log?.(line),
244247channel: CHANNEL_ID,
@@ -332,6 +335,8 @@ export async function handleIrcInbound(params: {
332335CommandAuthorized: commandAuthorized,
333336});
334337338+const { dispatchInboundReplyWithBase } =
339+await import("openclaw/plugin-sdk/inbound-reply-dispatch");
335340await dispatchInboundReplyWithBase({
336341cfg: config as OpenClawConfig,
337342channel: CHANNEL_ID,
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。