UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

22 lines (21 loc) • 915 B
import { a as resolveGlobalSingleton } from "./global-singleton-D7yf05nR.mjs"; import { i as getPluginExecutionFrame, t as InvocationFrame } from "./plugin-instance-invocation-Bq_toGDw.mjs"; //#region src/plugins/runtime/execution-frame.ts const PluginRuntimeExecutionFrame = resolveGlobalSingleton(Symbol.for("openclaw.pluginRuntimeExecutionFrame"), () => class RuntimeFrame extends InvocationFrame { constructor(e, t, n, r = e.invocation) { super(e, r); this.gatewayScope = t; this.generationRegistry = n; } get runtimePluginId() { return this.gatewayScope?.pluginId; } withScopes(e) { return new RuntimeFrame(e, this.gatewayScope, this.generationRegistry); } }); function getPluginRuntimeExecutionFrame(e = getPluginExecutionFrame()) { return e instanceof PluginRuntimeExecutionFrame ? e : void 0; } //#endregion export { getPluginRuntimeExecutionFrame as n, PluginRuntimeExecutionFrame as t };