mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 13:10:43 +00:00
chore: remove dead registry aliases
This commit is contained in:
@@ -1 +0,0 @@
|
||||
export { resolveStaticAllowlistModelKey as resolveAllowlistModelKey } from "./model-ref-shared.js";
|
||||
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user