UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

3 lines • 986 B
import{o as resolveGlobalSingleton}from"./global-singleton-DolL9xGt.mjs"; //!src/plugins/runtime/gateway-context-binding-owner.ts const{gatewayContextBindingOwnerKey,GatewayContextBindingOwner}=resolveGlobalSingleton(Symbol.for(`openclaw.gatewayContextBindingOwner`),()=>{class BindingOwner{#e;constructor(e){this.#e=e;Object.setPrototypeOf(this,null)}static read(e,t){return typeof e===`object`&&e!==null&&#e in e&&e.#e===t?e:void 0}}return{gatewayContextBindingOwnerKey:Symbol(`gatewayContextBindingOwner`),GatewayContextBindingOwner:BindingOwner}});function getGatewayContextBindingSlot(e){const t=Object.getOwnPropertyDescriptor(e,gatewayContextBindingOwnerKey)?.value;return GatewayContextBindingOwner.read(t,e)}function prepareGatewayContextBindingOwner(e){if(!getGatewayContextBindingSlot(e))Object.defineProperty(e,gatewayContextBindingOwnerKey,{value:new GatewayContextBindingOwner(e)});return e}export{prepareGatewayContextBindingOwner as n,getGatewayContextBindingSlot as t};