import{n as e}from"./rolldown-runtime-DkW27tQK.js";import{J as t,W as n}from"./lit-runtime-BEtFSUCp.js";import{Ht as r,Lt as i,Rt as a,qt as o}from"./control-ui-core-Br5DB0Zj.js";import{n as s,t as c}from"./capacity-meter-CmKC-EhZ.js";function l(e){let n=e.workerSlots;if(n){let t=e.unavailable?null:n.total-n.available,r=t===null?o(`capacityMeter.unavailable`):o(`capacityMeter.workerSlots`,{used:String(t),total:String(n.total)}),i=e.unavailable?`stale`:n.available===0?`warn`:`accent`;return{label:r,title:t===null?void 0:r,meter:s({mode:`discrete`,total:n.total,used:t,tone:i,label:r})}}if(!(e.capabilities?.some(e=>e===`codex.exec-server`||e===`codex.exec-server.stdio.v1`)||e.commands?.includes(`codex.exec-server.stdio.v1`)))return;let r=o(`capacityMeter.execHost`);return{label:r,title:r,meter:t`<span class="capacity-meter-exec" role="img" aria-label=${r}>
      <span aria-hidden="true">${i.terminal}</span>${r}
    </span>`}}function u(){return(u=e((()=>{n(),r(),c(),a()})))()}export{l as n,u as t};
//# sourceMappingURL=worker-capacity-AlsLTAW4.js.map