UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

2 lines • 2.31 kB
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./native-conversation-bridge-D4C1IFZp.js","./control-ui-core-CBJ5efDh.js","./lit-runtime-IOnANfcZ.js","./gateway-runtime-C77LeWZN.js","./session-snapshot-database-BBKeXATO.js","./config-runtime-BecGLziM.js","./control-ui-core-DI-Q_yCI.css","./native-device-settings-D8lWgSwa.js","./native-notifications-CLvo2Hqg.js","./native-gateway-health.runtime-GyDqqyGU.js"])))=>i.map(i=>d[i]); import{n as e}from"./rolldown-runtime-8BhlS34s.js";import{Xa as t,qa as n}from"./control-ui-core-DtLivg_r.js";import{ma as r,pa as i}from"./ui-CmSP4d14.js";async function a(e,n,r){let a=window,o=e.gateway,s=a.webkit?.messageHandlers,c={conversation:null,deviceSettings:null,notifications:null},l=(e,t)=>{if(!n.signal.aborted)return c[e]=t(),r(c),()=>c[e]?.dispose()},u=[];t()?.surface===`conversation`&&u.push(async()=>{let{createNativeConversationBridge:t}=await i(async()=>{let{createNativeConversationBridge:e}=await import(`./native-conversation-bridge-D4C1IFZp.js`);return{createNativeConversationBridge:e}},__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url);return l(`conversation`,()=>t(e))}),typeof s?.openclawDeviceSettings?.postMessage==`function`&&u.push(async()=>{let{createNativeDeviceSettingsCapability:e}=await i(async()=>{let{createNativeDeviceSettingsCapability:e}=await import(`./native-device-settings-D8lWgSwa.js`);return{createNativeDeviceSettingsCapability:e}},__vite__mapDeps([7,1,2,3,4,5,6]),import.meta.url);return l(`deviceSettings`,e)}),typeof s?.openclawNotifications?.postMessage==`function`&&u.push(async()=>{let{createNativeNotificationsCapability:e}=await i(async()=>{let{createNativeNotificationsCapability:e}=await import(`./native-notifications-CLvo2Hqg.js`);return{createNativeNotificationsCapability:e}},__vite__mapDeps([8,1,2,3,4,6]),import.meta.url);return l(`notifications`,e)}),typeof s?.openclawGateways?.postMessage==`function`&&u.push(async()=>{let{startNativeGatewayHealthReporting:e}=await i(async()=>{let{startNativeGatewayHealthReporting:e}=await import(`./native-gateway-health.runtime-GyDqqyGU.js`);return{startNativeGatewayHealthReporting:e}},__vite__mapDeps([9]),import.meta.url);if(!n.signal.aborted)return e(o)}),await n.run(u)}function o(){return(o=e((()=>{n(),r()})))()}o();export{a as startNativeCapabilities};