UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

3 lines • 926 B
import{o as resolveGlobalSingleton}from"./global-singleton-DolL9xGt.mjs";import{i as getPluginExecutionFrame,t as InvocationFrame}from"./plugin-instance-invocation-na_CYyUz.mjs"; //!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}get canUseInteractiveStateReadCapacity(){return this.gatewayScope?.canUseInteractiveStateReadCapacity?.()===true}withScopes(e){return new RuntimeFrame(e,this.gatewayScope,this.generationRegistry)}});function getPluginRuntimeExecutionFrame(e=getPluginExecutionFrame()){return e instanceof PluginRuntimeExecutionFrame?e:void 0}export{getPluginRuntimeExecutionFrame as n,PluginRuntimeExecutionFrame as t};