From b0899f34f66df49797af496b0c54e69b6757de8f Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 2 May 2026 01:39:36 +0100 Subject: [PATCH] refactor: trim channel registry exports --- src/channels/registry.ts | 15 ++++----------- src/channels/run-state-machine.ts | 2 +- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/src/channels/registry.ts b/src/channels/registry.ts index 838cd289d7c..d225e8be7f5 100644 --- a/src/channels/registry.ts +++ b/src/channels/registry.ts @@ -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. diff --git a/src/channels/run-state-machine.ts b/src/channels/run-state-machine.ts index 84cf7135ce8..0398de2bfdb 100644 --- a/src/channels/run-state-machine.ts +++ b/src/channels/run-state-machine.ts @@ -1,4 +1,4 @@ -export type RunStateStatusPatch = { +type RunStateStatusPatch = { busy?: boolean; activeRuns?: number; lastRunActivityAt?: number | null;