From c3138e372cd19726d62270db76d6356d18be0a04 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Fri, 24 Apr 2026 06:41:42 +0100 Subject: [PATCH] chore: remove dead registry aliases --- src/agents/model-allowlist-ref.ts | 1 - src/channels/plugins/registry-read.ts | 25 ------------------------- 2 files changed, 26 deletions(-) delete mode 100644 src/agents/model-allowlist-ref.ts delete mode 100644 src/channels/plugins/registry-read.ts diff --git a/src/agents/model-allowlist-ref.ts b/src/agents/model-allowlist-ref.ts deleted file mode 100644 index 5c7755990c5..00000000000 --- a/src/agents/model-allowlist-ref.ts +++ /dev/null @@ -1 +0,0 @@ -export { resolveStaticAllowlistModelKey as resolveAllowlistModelKey } from "./model-ref-shared.js"; diff --git a/src/channels/plugins/registry-read.ts b/src/channels/plugins/registry-read.ts deleted file mode 100644 index 20587895f7c..00000000000 --- a/src/channels/plugins/registry-read.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { normalizeOptionalString } from "../../shared/string-coerce.js"; -import { getBundledChannelPlugin } from "./bundled.js"; -import { getLoadedChannelPluginById, listLoadedChannelPlugins } from "./registry-loaded.js"; -import type { ChannelPlugin } from "./types.plugin.js"; -import type { ChannelId } from "./types.public.js"; - -export function listChannelPluginsForRead(): ChannelPlugin[] { - return listLoadedChannelPlugins() as ChannelPlugin[]; -} - -export function getLoadedChannelPluginForRead(id: ChannelId): ChannelPlugin | undefined { - const resolvedId = normalizeOptionalString(id) ?? ""; - if (!resolvedId) { - return undefined; - } - return getLoadedChannelPluginById(resolvedId) as ChannelPlugin | undefined; -} - -export function getChannelPluginForRead(id: ChannelId): ChannelPlugin | undefined { - const resolvedId = normalizeOptionalString(id) ?? ""; - if (!resolvedId) { - return undefined; - } - return getLoadedChannelPluginForRead(resolvedId) ?? getBundledChannelPlugin(resolvedId); -}