UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

18 lines (17 loc) • 1.19 kB
import { a as runWithPluginExecutionFrame, r as getPluginExecutionFrame } from "./plugin-instance-invocation-CH4zOUb4.mjs"; import { n as getPluginRuntimeExecutionFrame, t as PluginRuntimeExecutionFrame } from "./execution-frame-BTyPTOtk.mjs"; //#region src/plugins/runtime/generation-state.ts function withPluginRuntimeGenerationRegistryScope(registry, run) { const current = getPluginExecutionFrame(); return runWithPluginExecutionFrame(new PluginRuntimeExecutionFrame(current ?? {}, getPluginRuntimeExecutionFrame(current)?.gatewayScope, registry), run); } /** Exact registry owned by the prepared generation, including empty selections. */ function getPluginRuntimeGenerationRegistry() { return getPluginRuntimeExecutionFrame()?.generationRegistry; } function runOutsidePluginRuntimeGenerationRegistryScope(run) { const current = getPluginExecutionFrame(); return runWithPluginExecutionFrame(new PluginRuntimeExecutionFrame(current ?? {}, getPluginRuntimeExecutionFrame(current)?.gatewayScope, void 0), run); } //#endregion export { runOutsidePluginRuntimeGenerationRegistryScope as n, withPluginRuntimeGenerationRegistryScope as r, getPluginRuntimeGenerationRegistry as t };