mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-13 10:11:20 +00:00
15 lines
450 B
TypeScript
15 lines
450 B
TypeScript
import { listBundledChannelPlugins } from "../../../src/channels/plugins/bundled.js";
|
|
import type { ChannelPlugin } from "../../../src/channels/plugins/types.js";
|
|
|
|
type PluginContractEntry = {
|
|
id: string;
|
|
plugin: Pick<ChannelPlugin, "id" | "meta" | "capabilities" | "config">;
|
|
};
|
|
|
|
export function getPluginContractRegistry(): PluginContractEntry[] {
|
|
return listBundledChannelPlugins().map((plugin) => ({
|
|
id: plugin.id,
|
|
plugin,
|
|
}));
|
|
}
|