openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
3 lines • 536 B
JavaScript
import{o as resolveGlobalSingleton}from"./global-singleton-DolL9xGt.mjs";import{AsyncLocalStorage}from"node:async_hooks";
//!src/infra/gateway-service-installation-context.ts
const installations=resolveGlobalSingleton(Symbol.for(`openclaw.gatewayServiceInstallation`),()=>new AsyncLocalStorage);function withGatewayServiceInstallation(e,t){return installations.run(e,t)}function getGatewayServiceInstallation(){return installations.getStore()?.installation}export{withGatewayServiceInstallation as n,getGatewayServiceInstallation as t};