refactor(irc): narrow channel runtime imports

This commit is contained in:
Vincent Koc
2026-04-04 12:08:09 +09:00
parent c4bae0f7bf
commit 6349e6aa3e
2 changed files with 15 additions and 9 deletions

View File

@@ -0,0 +1,6 @@
export { createAccountStatusSink } from "openclaw/plugin-sdk/channel-lifecycle";
export { PAIRING_APPROVED_MESSAGE } from "openclaw/plugin-sdk/channel-status";
export { buildBaseChannelStatusSummary } from "openclaw/plugin-sdk/status-helpers";
export type { ChannelPlugin } from "openclaw/plugin-sdk/core";
export { DEFAULT_ACCOUNT_ID, getChatChannelMeta } from "openclaw/plugin-sdk/core";
export { chunkTextForOutbound } from "openclaw/plugin-sdk/text-chunking";

View File

@@ -27,6 +27,15 @@ import {
resolveIrcAccount,
type ResolvedIrcAccount,
} from "./accounts.js";
import {
buildBaseChannelStatusSummary,
createAccountStatusSink,
chunkTextForOutbound,
DEFAULT_ACCOUNT_ID,
getChatChannelMeta,
PAIRING_APPROVED_MESSAGE,
type ChannelPlugin,
} from "./channel-api.js";
import { IrcChannelConfigSchema } from "./config-schema.js";
import { collectIrcMutableAllowlistWarnings } from "./doctor.js";
import { monitorIrcProvider } from "./monitor.js";
@@ -38,15 +47,6 @@ import {
} from "./normalize.js";
import { resolveIrcGroupMatch, resolveIrcRequireMention } from "./policy.js";
import { probeIrc } from "./probe.js";
import {
buildBaseChannelStatusSummary,
createAccountStatusSink,
chunkTextForOutbound,
DEFAULT_ACCOUNT_ID,
getChatChannelMeta,
PAIRING_APPROVED_MESSAGE,
type ChannelPlugin,
} from "./runtime-api.js";
import { getIrcRuntime } from "./runtime.js";
import { sendMessageIrc } from "./send.js";
import { ircSetupAdapter } from "./setup-core.js";