UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

1 lines • 749 B
import{n as e}from"./rolldown-runtime-CNOWq4Kh.js";import{B as t,P as n,U as r,ht as i}from"./solid-runtime-C416s-HC.js";import{n as a,t as o}from"./gateway-page-binding-BCVXe657.js";function s(e){let[r,a]=t(0,{ownedWrite:!0}),s=new o(()=>a(e=>e+1),e),c=!1;return n(e.getGateway,e=>{c?s.refresh(e??null):(c=!0,s.connect(e??null))}),i(()=>s.dispose()),{get gateway(){return r(),s.gateway},get snapshot(){return r(),s.snapshot},get client(){return r(),s.client},get connected(){return r(),s.connected},get epoch(){return r(),s.epoch},readEpoch:()=>s.epoch,capture:()=>s.capture(),isCurrent:e=>s.isCurrent(e),invalidate:()=>s.invalidate(),isRouteDataCurrent:e=>s.isRouteDataCurrent(e)}}function c(){return(c=e((()=>{r(),a()})))()}export{s as n,c as t};