refactor(plugin-sdk): extract shared channel prelude exports

This commit is contained in:
Peter Steinberger
2026-03-07 16:48:02 +00:00
parent 969b9029c0
commit 08aae60dc9
5 changed files with 25 additions and 84 deletions

View File

@@ -1,25 +1,5 @@
export type { ChannelPlugin } from "../channels/plugins/types.plugin.js";
export type { ResolvedIMessageAccount } from "../imessage/accounts.js";
export type { PluginRuntime } from "../plugins/runtime/types.js";
export type { OpenClawPluginApi } from "../plugins/types.js";
export { emptyPluginConfigSchema } from "../plugins/config-schema.js";
export { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "../routing/session-key.js";
export {
applyAccountNameToChannelSection,
migrateBaseNameToDefaultAccount,
} from "../channels/plugins/setup-helpers.js";
export { buildChannelConfigSchema } from "../channels/plugins/config-schema.js";
export {
deleteAccountFromConfigSection,
setAccountEnabledInConfigSection,
} from "../channels/plugins/config-helpers.js";
export { formatPairingApproveHint } from "../channels/plugins/helpers.js";
export { PAIRING_APPROVED_MESSAGE } from "../channels/plugins/pairing-message.js";
export { getChatChannelMeta } from "../channels/registry.js";
export * from "./channel-plugin-common.js";
export {
listIMessageAccountIds,
resolveDefaultIMessageAccountId,