mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 06:30:42 +00:00
refactor: trim channel registry exports
This commit is contained in:
@@ -3,18 +3,11 @@ import {
|
||||
normalizeOptionalLowercaseString,
|
||||
normalizeOptionalString,
|
||||
} from "../shared/string-coerce.js";
|
||||
import {
|
||||
CHANNEL_IDS,
|
||||
CHAT_CHANNEL_ALIASES,
|
||||
CHAT_CHANNEL_ORDER,
|
||||
listChatChannelAliases,
|
||||
normalizeChatChannelId,
|
||||
type ChatChannelId,
|
||||
} from "./ids.js";
|
||||
import { CHAT_CHANNEL_ORDER, normalizeChatChannelId, type ChatChannelId } from "./ids.js";
|
||||
import type { ChannelId } from "./plugins/channel-id.types.js";
|
||||
import type { ChannelMeta } from "./plugins/types.core.js";
|
||||
export { getChatChannelMeta, listChatChannels } from "./chat-meta.js";
|
||||
export { CHANNEL_IDS, CHAT_CHANNEL_ORDER } from "./ids.js";
|
||||
export { getChatChannelMeta } from "./chat-meta.js";
|
||||
export { CHAT_CHANNEL_ORDER } from "./ids.js";
|
||||
export type { ChatChannelId } from "./ids.js";
|
||||
|
||||
type RegisteredChannelPluginEntry = {
|
||||
@@ -57,7 +50,7 @@ function findRegisteredChannelPluginEntryById(
|
||||
(entry) => normalizeOptionalLowercaseString(entry.plugin.id) === normalizedId,
|
||||
);
|
||||
}
|
||||
export { CHAT_CHANNEL_ALIASES, listChatChannelAliases, normalizeChatChannelId };
|
||||
export { normalizeChatChannelId };
|
||||
|
||||
// Channel docking: prefer this helper in shared code. Importing from
|
||||
// `src/channels/plugins/*` can eagerly load channel implementations.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export type RunStateStatusPatch = {
|
||||
type RunStateStatusPatch = {
|
||||
busy?: boolean;
|
||||
activeRuns?: number;
|
||||
lastRunActivityAt?: number | null;
|
||||
|
||||
Reference in New Issue
Block a user