mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-30 19:32:27 +00:00
14 lines
396 B
TypeScript
14 lines
396 B
TypeScript
import { getActivePluginRegistry } from "./runtime.js";
|
|
import type { CliBackendPlugin } from "./types.js";
|
|
|
|
export type PluginCliBackendEntry = CliBackendPlugin & {
|
|
pluginId: string;
|
|
};
|
|
|
|
export function resolveRuntimeCliBackends(): PluginCliBackendEntry[] {
|
|
return (getActivePluginRegistry()?.cliBackends ?? []).map((entry) => ({
|
|
...entry.backend,
|
|
pluginId: entry.pluginId,
|
|
}));
|
|
}
|