UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

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