UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

19 lines (18 loc) 825 B
import { r as getPluginRegistryState } from "./runtime-state-Ccxn1fO9.js"; import { a as getPluginRuntimeGatewayRequestScope } from "./gateway-request-scope-BCMYlsDI.js"; //#region src/plugins/plugin-command-registry.ts function resolveSelectedPluginCommandRegistry() { const state = getPluginRegistryState(); return state?.registrationContext?.registry ?? getPluginRuntimeGatewayRequestScope()?.pluginRegistry ?? state?.activeRegistry ?? null; } function listRegisteredPluginCommands(registry) { return registry.commands.map((entry) => ({ ...entry.command, pluginId: entry.pluginId, pluginName: entry.pluginName, pluginRoot: entry.rootDir, trustedOwnerStatusExposure: entry.trustedOwnerStatusExposure })); } //#endregion export { resolveSelectedPluginCommandRegistry as n, listRegisteredPluginCommands as t };