refactor(mattermost): narrow channel runtime imports

This commit is contained in:
Vincent Koc 2026-04-04 12:09:54 +09:00
parent e750c10577
commit 20937422ca
2 changed files with 16 additions and 8 deletions

View File

@ -0,0 +1,8 @@
export { createAccountStatusSink } from "openclaw/plugin-sdk/channel-lifecycle";
export type { ChannelPlugin } from "openclaw/plugin-sdk/core";
export { DEFAULT_ACCOUNT_ID } from "openclaw/plugin-sdk/core";
export {
resolveAllowlistProviderRuntimeGroupPolicy,
resolveDefaultGroupPolicy,
} from "openclaw/plugin-sdk/config-runtime";
export { chunkTextForOutbound } from "openclaw/plugin-sdk/text-chunking";

View File

@ -21,6 +21,14 @@ import {
createDefaultChannelRuntimeState,
} from "openclaw/plugin-sdk/status-helpers";
import { mattermostApprovalAuth } from "./approval-auth.js";
import {
chunkTextForOutbound,
createAccountStatusSink,
DEFAULT_ACCOUNT_ID,
resolveAllowlistProviderRuntimeGroupPolicy,
resolveDefaultGroupPolicy,
type ChannelPlugin,
} from "./channel-api.js";
import { MattermostChannelConfigSchema } from "./config-surface.js";
import { collectMattermostMutableAllowlistWarnings } from "./doctor.js";
import { resolveMattermostGroupRequireMention } from "./group-mentions.js";
@ -42,14 +50,6 @@ import { sendMessageMattermost } from "./mattermost/send.js";
import { collectMattermostSlashCallbackPaths } from "./mattermost/slash-commands.js";
import { resolveMattermostOpaqueTarget } from "./mattermost/target-resolution.js";
import { looksLikeMattermostTargetId, normalizeMattermostMessagingTarget } from "./normalize.js";
import {
chunkTextForOutbound,
createAccountStatusSink,
DEFAULT_ACCOUNT_ID,
resolveAllowlistProviderRuntimeGroupPolicy,
resolveDefaultGroupPolicy,
type ChannelPlugin,
} from "./runtime-api.js";
import { getMattermostRuntime } from "./runtime.js";
import { resolveMattermostOutboundSessionRoute } from "./session-route.js";
import { mattermostSetupAdapter } from "./setup-core.js";