mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-07 07:20:43 +00:00
13 lines
449 B
TypeScript
13 lines
449 B
TypeScript
import { getActiveRuntimePluginRegistry } from "./active-runtime-registry.js";
|
|
import type { CliBackendPlugin } from "./cli-backend.types.js";
|
|
|
|
export type PluginCliBackendEntry = CliBackendPlugin & {
|
|
pluginId: string;
|
|
};
|
|
|
|
export function resolveRuntimeCliBackends(): PluginCliBackendEntry[] {
|
|
return (getActiveRuntimePluginRegistry()?.cliBackends ?? []).map((entry) =>
|
|
Object.assign({}, entry.backend, { pluginId: entry.pluginId }),
|
|
);
|
|
}
|