UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

16 lines (15 loc) 792 B
import { t as PLUGIN_REGISTRY_STATE } from "./runtime-state-key-Cno8k69C.js"; import { t as getActivePluginRegistryWorkspaceDirFromStateCore } from "./runtime-workspace-state-kLYmgwOl.js"; //#region src/plugins/runtime-state.ts function getPluginRegistryState() { return globalThis[PLUGIN_REGISTRY_STATE]; } /** Policy reads the process-active registry, independently of request or registration scopes. */ function getActivePluginGatewayNodePolicyRegistry() { return getPluginRegistryState()?.activeRegistry ?? null; } function getActivePluginRegistryWorkspaceDirFromState() { return getActivePluginRegistryWorkspaceDirFromStateCore(); } //#endregion export { getActivePluginRegistryWorkspaceDirFromState as n, getPluginRegistryState as r, getActivePluginGatewayNodePolicyRegistry as t };