openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
1 lines • 3.31 kB
JavaScript
import{n as e}from"./rolldown-runtime-CNOWq4Kh.js";import{dj as t,mj as n,pj as r}from"./control-ui-boot-shared-DFTSUQQ0.js";import{C as i,O as a,U as o,d as s,f as c,g as l,j as u,l as d,u as f,x as p}from"./solid-runtime-C416s-HC.js";import{n as m,t as h}from"./en-debug-B2KGEt5m.js";function g(){return(g=e((()=>{})))()}async function _(e,t){return e.request(`diagnostics.lanes`,{},{signal:t})}async function v(e,t,n){let r=t?e.request(`models.list`,{agentId:t.trim(),view:`default`},{signal:n}):Promise.resolve({models:[]}),i=_(e,n),[a,o,s,c,l]=await Promise.all([e.request(`status`,{},{signal:n}),e.request(`health`,{},{signal:n}),r,e.request(`last-heartbeat`,{},{signal:n}),i]);return{status:a,health:o,models:s.models,heartbeat:c,...l}}function y(){return(y=e((()=>{})))()}function b(e){return[u(i,{get each(){return e.lanes},keyed:e=>e.lane,children:t=>{let r=()=>t().concurrencyScope===`session`,i=()=>r()?(t().saturatedLaneCount??0)>0:t().activeCount>=t().maxConcurrent;var o=S(),f=o.firstChild,p=f.firstChild,m=f.nextSibling,h=m.firstChild,g=m.nextSibling,_=g.firstChild,v=g.nextSibling,y=v.firstChild;return s(f,()=>t().lane,p),s(m,(()=>{var e=c(()=>!!r());return()=>e()?n(`debug.lanes.activePerSession`,{active:String(t().activeCount),limit:String(t().maxConcurrent)}):`${t().activeCount}/${t().maxConcurrent}`})(),h),s(g,()=>t().queuedCount,_),s(o,u(a,{get when(){return!e.compact},get children(){var e=x(),r=e.firstChild;return s(e,(()=>{var e=c(()=>!!t().group);return()=>e()?`${t().group} · ${t().groupActive??0}/${t().groupBudget??0}`:``})(),r),d(()=>n(`debug.lanes.group`),t=>{l(e,`data-label`,t)}),e}}),v),s(v,()=>t().blockedBy??`—`,y),d(()=>({e:!!i(),t:t().queuedCount>0,a:n(`debug.lanes.lane`),o:n(`debug.lanes.active`),i:n(`debug.lanes.queued`),n:n(`debug.lanes.blocked`)}),({e,t,a:n,o:r,i,n:a},s)=>{e!==s?.e&&o.classList.toggle(`command-lane-row--saturated`,e),t!==s?.t&&o.classList.toggle(`command-lane-row--queued`,t),n!==s?.a&&l(f,`data-label`,n),r!==s?.o&&l(m,`data-label`,r),i!==s?.i&&l(g,`data-label`,i),a!==s?.n&&l(v,`data-label`,a)}),o}}),u(a,{get when(){return e.dynamic},children:t=>(()=>{var r=w(),i=r.firstChild,o=i.firstChild,c=i.nextSibling,f=c.firstChild,p=c.nextSibling,m=p.firstChild,h=p.nextSibling;return s(i,()=>n(`debug.lanes.sessionLanes`,{count:String(t().laneCount)}),o),s(c,()=>t().activeCount,f),s(p,()=>t().queuedCount,m),s(r,u(a,{get when(){return!e.compact},get children(){var e=C();return d(()=>n(`debug.lanes.group`),t=>{l(e,`data-label`,t)}),e}}),h),d(()=>({e:t().queuedCount>0,t:n(`debug.lanes.lane`),a:n(`debug.lanes.active`),o:n(`debug.lanes.queued`),i:n(`debug.lanes.blocked`)}),({e,t,a:n,o:a,i:o},s)=>{e!==s?.e&&r.classList.toggle(`command-lane-row--queued`,e),t!==s?.t&&l(i,`data-label`,t),n!==s?.a&&l(c,`data-label`,n),a!==s?.o&&l(p,`data-label`,a),o!==s?.i&&l(h,`data-label`,o)}),r})()})]}var x,S,C,w;function T(){return(T=e((()=>{f(),o(),h(),t(),x=p(`<td> `),S=p(`<tr class=command-lane-row><td class="mono command-lane-row__name"> </td><td class=mono> </td><td class=mono> </td><td class=mono> `),C=p(`<td>`),w=p(`<tr class="command-lane-row command-lane-row--dynamic"><td class="mono command-lane-row__name"> </td><td class=mono> </td><td class=mono> </td><td class=mono>— `),r(m)})))()}export{v as a,_ as i,T as n,g as o,y as r,b as t};