refactor: trim channel registry exports

This commit is contained in:
Peter Steinberger
2026-05-02 01:39:36 +01:00
parent 557436822e
commit b0899f34f6
2 changed files with 5 additions and 12 deletions

View File

@@ -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.

View File

@@ -1,4 +1,4 @@
export type RunStateStatusPatch = {
type RunStateStatusPatch = {
busy?: boolean;
activeRuns?: number;
lastRunActivityAt?: number | null;