@rivet-dev/agentos 0.2.8-rc.2 → 0.2.8-rc.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/assets/inspector-tabs-app/assets/badge-CkqYPoD9.js +1 -0
  2. package/assets/inspector-tabs-app/assets/filesystem-DbXxNt-B.js +1 -0
  3. package/assets/inspector-tabs-app/assets/{index-C50G2vhD.js → index-nTg2hrne.js} +22 -22
  4. package/assets/inspector-tabs-app/assets/{mounts-C0eJmxpt.js → mounts-BlNRslup.js} +1 -1
  5. package/assets/inspector-tabs-app/assets/{processes-CvN1MFLy.js → processes-CjHQ_o8t.js} +1 -1
  6. package/assets/inspector-tabs-app/assets/scroll-area-DE-oi7a2.js +1 -0
  7. package/assets/inspector-tabs-app/assets/{software-BjGEcqMs.js → software-2sjLheLb.js} +1 -1
  8. package/assets/inspector-tabs-app/assets/transcript-Cz9DrFWK.js +1 -0
  9. package/assets/inspector-tabs-app/assets/{useSuspenseQuery-CpwiXRj_.js → useSuspenseQuery-V0HYenB_.js} +1 -1
  10. package/assets/inspector-tabs-app/index.html +1 -1
  11. package/dist/chunk-V6TY7KAL.js +8 -0
  12. package/dist/chunk-V6TY7KAL.js.map +1 -0
  13. package/dist/client.js.map +1 -1
  14. package/dist/index.d.ts +114 -730
  15. package/dist/index.js +818 -341
  16. package/dist/index.js.map +1 -1
  17. package/dist/node.d.ts +67 -0
  18. package/dist/node.js +275 -0
  19. package/dist/node.js.map +1 -0
  20. package/package.json +21 -16
  21. package/assets/inspector-tabs-app/assets/badge-Coq9s9H6.js +0 -1
  22. package/assets/inspector-tabs-app/assets/filesystem-_yeTmDH7.js +0 -1
  23. package/assets/inspector-tabs-app/assets/scroll-area-DzL-iGyn.js +0 -1
  24. package/assets/inspector-tabs-app/assets/transcript-BKLxbOF5.js +0 -1
  25. package/assets/inspector-tabs-app/assets/useQuery-RSkOi56s.js +0 -1
@@ -1 +1 @@
1
- import{j as e}from"./index-C50G2vhD.js";import{u as r}from"./useSuspenseQuery-CpwiXRj_.js";import{A as n,S as a,i as o,e as l}from"./scroll-area-DzL-iGyn.js";import{B as d}from"./badge-Coq9s9H6.js";const c=s=>typeof s>"u"||s===null||Object.keys(s).length===0;function i({mounts:s}){return e.jsx("div",{className:"flex h-full flex-col",children:s.length===0?e.jsx(n,{children:"No mounts configured on this actor."}):e.jsx(a,{className:"min-h-0 flex-1",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{className:"text-[11px] uppercase tracking-wide text-muted-foreground",children:e.jsxs("tr",{className:"border-b",children:[e.jsx("th",{className:"px-3 py-2 text-left font-medium",children:"Path"}),e.jsx("th",{className:"px-3 py-2 text-left font-medium",children:"Kind"}),e.jsx("th",{className:"px-3 py-2 text-left font-medium",children:"Access"}),e.jsx("th",{className:"px-3 py-2 text-left font-medium",children:"Config"})]})}),e.jsx("tbody",{children:s.map(t=>e.jsxs("tr",{className:"border-b border-foreground/[0.06] align-top hover:bg-muted/50",children:[e.jsx("td",{className:"px-3 py-2 font-mono text-xs",children:t.path}),e.jsx("td",{className:"px-3 py-2",children:e.jsx(d,{variant:"secondary",className:"font-mono",children:t.kind})}),e.jsx("td",{className:"px-3 py-2 text-xs text-muted-foreground",children:t.readOnly?"read-only":"read-write"}),e.jsx("td",{className:"px-3 py-2",children:c(t.config)?e.jsx("span",{className:"text-muted-foreground/60",children:"—"}):e.jsxs("div",{className:"group relative max-w-[20rem]",children:[e.jsx("code",{className:"block overflow-x-auto whitespace-nowrap rounded bg-muted/30 py-1.5 pl-2 pr-7 font-mono text-xs text-muted-foreground",children:JSON.stringify(t.config)}),e.jsx(o,{value:JSON.stringify(t.config,null,2),className:"absolute right-1 top-1 bg-background/70 backdrop-blur-sm"})]})})]},t.path))})]})})})}function f({actorId:s}){const{data:t}=r(l.mountsQueryOptions(s));return e.jsx(i,{mounts:t})}export{i as MountsTab,f as MountsTabConnected};
1
+ import{j as e}from"./index-nTg2hrne.js";import{u as r}from"./useSuspenseQuery-V0HYenB_.js";import{A as n,S as a,j as o,e as l}from"./scroll-area-DE-oi7a2.js";import{B as d}from"./badge-CkqYPoD9.js";const c=s=>typeof s>"u"||s===null||Object.keys(s).length===0;function i({mounts:s}){return e.jsx("div",{className:"flex h-full flex-col",children:s.length===0?e.jsx(n,{children:"No mounts configured on this actor."}):e.jsx(a,{className:"min-h-0 flex-1",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{className:"text-[11px] uppercase tracking-wide text-muted-foreground",children:e.jsxs("tr",{className:"border-b",children:[e.jsx("th",{className:"px-3 py-2 text-left font-medium",children:"Path"}),e.jsx("th",{className:"px-3 py-2 text-left font-medium",children:"Kind"}),e.jsx("th",{className:"px-3 py-2 text-left font-medium",children:"Access"}),e.jsx("th",{className:"px-3 py-2 text-left font-medium",children:"Config"})]})}),e.jsx("tbody",{children:s.map(t=>e.jsxs("tr",{className:"border-b border-foreground/[0.06] align-top hover:bg-muted/50",children:[e.jsx("td",{className:"px-3 py-2 font-mono text-xs",children:t.path}),e.jsx("td",{className:"px-3 py-2",children:e.jsx(d,{variant:"secondary",className:"font-mono",children:t.kind})}),e.jsx("td",{className:"px-3 py-2 text-xs text-muted-foreground",children:t.readOnly?"read-only":"read-write"}),e.jsx("td",{className:"px-3 py-2",children:c(t.config)?e.jsx("span",{className:"text-muted-foreground/60",children:"—"}):e.jsxs("div",{className:"group relative max-w-[20rem]",children:[e.jsx("code",{className:"block overflow-x-auto whitespace-nowrap rounded bg-muted/30 py-1.5 pl-2 pr-7 font-mono text-xs text-muted-foreground",children:JSON.stringify(t.config)}),e.jsx(o,{value:JSON.stringify(t.config,null,2),className:"absolute right-1 top-1 bg-background/70 backdrop-blur-sm"})]})})]},t.path))})]})})})}function f({actorId:s}){const{data:t}=r(l.mountsQueryOptions(s));return e.jsx(i,{mounts:t})}export{i as MountsTab,f as MountsTabConnected};
@@ -1 +1 @@
1
- import{r as c,j as e}from"./index-C50G2vhD.js";import{u as x}from"./useSuspenseQuery-CpwiXRj_.js";import{e as m,A as i,S as l,g as u}from"./scroll-area-DzL-iGyn.js";function o(s){return s?new Date(s).toLocaleTimeString():"—"}function f({p:s}){const n=[["pid",String(s.pid)],["command",s.command],["args",s.args.join(" ")||"—"],["status",s.running?"running":"exited"],["exit code",s.exitCode==null?"—":String(s.exitCode)],["started",o(s.startedAt)]];return e.jsxs("div",{className:"flex h-full flex-col",children:[e.jsxs("div",{className:"flex items-center gap-2 border-b px-4 py-3",children:[e.jsxs("span",{className:"font-mono text-sm",children:["pid ",s.pid]}),e.jsx("span",{className:"truncate font-mono text-xs text-muted-foreground",children:s.command})]}),e.jsx(l,{className:"min-h-0 flex-1",children:e.jsx("dl",{className:"px-4 py-2 text-xs",children:n.map(([d,a])=>e.jsxs("div",{className:"flex gap-3 border-b border-foreground/[0.06] py-2 last:border-0",children:[e.jsx("dt",{className:"w-24 shrink-0 text-muted-foreground",children:d}),e.jsx("dd",{className:"min-w-0 flex-1 break-words font-mono",children:a})]},d))})})]})}function g({actorId:s}){const{data:n}=x(m.processesQueryOptions(s)),[d,a]=c.useState(),r=n.find(t=>t.pid===d)??n[0];return e.jsx("div",{className:"flex h-full flex-col",children:n.length===0?e.jsx(i,{children:"No processes running."}):e.jsxs("div",{className:"flex min-h-0 flex-1",children:[e.jsx(l,{className:"min-h-0 w-3/5 border-r",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{className:"text-[11px] uppercase tracking-wide text-muted-foreground",children:e.jsxs("tr",{className:"border-b",children:[e.jsx("th",{className:"px-3 py-2 text-left font-medium",children:"PID"}),e.jsx("th",{className:"px-3 py-2 text-left font-medium",children:"Command"}),e.jsx("th",{className:"px-3 py-2 text-left font-medium",children:"Started"}),e.jsx("th",{className:"px-3 py-2 text-left font-medium",children:"Status"})]})}),e.jsx("tbody",{children:n.map(t=>e.jsxs("tr",{onClick:()=>a(t.pid),className:`cursor-pointer border-b border-foreground/[0.06] hover:bg-muted/50 ${(r==null?void 0:r.pid)===t.pid?"bg-muted/50":""}`,children:[e.jsx("td",{className:"px-3 py-2 font-mono",children:t.pid}),e.jsxs("td",{className:"px-3 py-2 font-mono text-xs",children:[t.command," ",t.args.join(" ")]}),e.jsx("td",{className:"px-3 py-2 font-mono text-xs text-muted-foreground",children:o(t.startedAt)}),e.jsx("td",{className:"px-3 py-2",children:e.jsxs("span",{className:"inline-flex items-center gap-1.5 text-xs",children:[e.jsx(u,{color:t.running?"green":"red"}),t.running?"running":"exited"]})})]},t.pid))})]})}),e.jsx("div",{className:"min-h-0 w-2/5",children:r?e.jsx(f,{p:r}):e.jsx(i,{children:"Select a process."})})]})})}export{g as ProcessesTabConnected};
1
+ import{r as c,j as e}from"./index-nTg2hrne.js";import{u as x}from"./useSuspenseQuery-V0HYenB_.js";import{e as m,A as i,S as l,g as u}from"./scroll-area-DE-oi7a2.js";function o(s){return s?new Date(s).toLocaleTimeString():"—"}function f({p:s}){const n=[["pid",String(s.pid)],["command",s.command],["args",s.args.join(" ")||"—"],["status",s.running?"running":"exited"],["exit code",s.exitCode==null?"—":String(s.exitCode)],["started",o(s.startedAt)]];return e.jsxs("div",{className:"flex h-full flex-col",children:[e.jsxs("div",{className:"flex items-center gap-2 border-b px-4 py-3",children:[e.jsxs("span",{className:"font-mono text-sm",children:["pid ",s.pid]}),e.jsx("span",{className:"truncate font-mono text-xs text-muted-foreground",children:s.command})]}),e.jsx(l,{className:"min-h-0 flex-1",children:e.jsx("dl",{className:"px-4 py-2 text-xs",children:n.map(([d,a])=>e.jsxs("div",{className:"flex gap-3 border-b border-foreground/[0.06] py-2 last:border-0",children:[e.jsx("dt",{className:"w-24 shrink-0 text-muted-foreground",children:d}),e.jsx("dd",{className:"min-w-0 flex-1 break-words font-mono",children:a})]},d))})})]})}function g({actorId:s}){const{data:n}=x(m.processesQueryOptions(s)),[d,a]=c.useState(),r=n.find(t=>t.pid===d)??n[0];return e.jsx("div",{className:"flex h-full flex-col",children:n.length===0?e.jsx(i,{children:"No processes running."}):e.jsxs("div",{className:"flex min-h-0 flex-1",children:[e.jsx(l,{className:"min-h-0 w-3/5 border-r",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{className:"text-[11px] uppercase tracking-wide text-muted-foreground",children:e.jsxs("tr",{className:"border-b",children:[e.jsx("th",{className:"px-3 py-2 text-left font-medium",children:"PID"}),e.jsx("th",{className:"px-3 py-2 text-left font-medium",children:"Command"}),e.jsx("th",{className:"px-3 py-2 text-left font-medium",children:"Started"}),e.jsx("th",{className:"px-3 py-2 text-left font-medium",children:"Status"})]})}),e.jsx("tbody",{children:n.map(t=>e.jsxs("tr",{onClick:()=>a(t.pid),className:`cursor-pointer border-b border-foreground/[0.06] hover:bg-muted/50 ${(r==null?void 0:r.pid)===t.pid?"bg-muted/50":""}`,children:[e.jsx("td",{className:"px-3 py-2 font-mono",children:t.pid}),e.jsxs("td",{className:"px-3 py-2 font-mono text-xs",children:[t.command," ",t.args.join(" ")]}),e.jsx("td",{className:"px-3 py-2 font-mono text-xs text-muted-foreground",children:o(t.startedAt)}),e.jsx("td",{className:"px-3 py-2",children:e.jsxs("span",{className:"inline-flex items-center gap-1.5 text-xs",children:[e.jsx(u,{color:t.running?"green":"red"}),t.running?"running":"exited"]})})]},t.pid))})]})}),e.jsx("div",{className:"min-h-0 w-2/5",children:r?e.jsx(f,{p:r}):e.jsx(i,{children:"Select a process."})})]})})}export{g as ProcessesTabConnected};
@@ -0,0 +1 @@
1
+ var rt=e=>{throw TypeError(e)};var Ne=(e,t,r)=>t.has(e)||rt("Cannot "+r);var h=(e,t,r)=>(Ne(e,t,"read from private field"),r?r.call(e):t.get(e)),M=(e,t,r)=>t.has(e)?rt("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),_=(e,t,r,o)=>(Ne(e,t,"write to private field"),o?o.call(e,r):t.set(e,r),r),k=(e,t,r)=>(Ne(e,t,"access private method"),r);import{S as Wt,p as ot,a as W,s as je,b as ye,n as Le,e as ze,i as nt,t as Ut,c as Ee,f as Ft,d as Bt,g as st,h as mt,r as l,k as gt,l as $t,j as m,m as J,R as Vt}from"./index-nTg2hrne.js";var L,S,we,j,te,le,G,K,xe,ce,ue,re,oe,q,de,R,ve,De,We,Ue,Fe,Be,$e,Ve,vt,bt,_o=(bt=class extends Wt{constructor(t,r){super();M(this,R);M(this,L);M(this,S);M(this,we);M(this,j);M(this,te);M(this,le);M(this,G);M(this,K);M(this,xe);M(this,ce);M(this,ue);M(this,re);M(this,oe);M(this,q);M(this,de,new Set);this.options=r,_(this,L,t),_(this,K,null),_(this,G,ot()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(h(this,S).addObserver(this),it(h(this,S),this.options)?k(this,R,ve).call(this):this.updateResult(),k(this,R,Fe).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Qe(h(this,S),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Qe(h(this,S),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,k(this,R,Be).call(this),k(this,R,$e).call(this),h(this,S).removeObserver(this)}setOptions(t){const r=this.options,o=h(this,S);if(this.options=h(this,L).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof W(this.options.enabled,h(this,S))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");k(this,R,Ve).call(this),h(this,S).setOptions(this.options),r._defaulted&&!je(this.options,r)&&h(this,L).getQueryCache().notify({type:"observerOptionsUpdated",query:h(this,S),observer:this});const n=this.hasListeners();n&&at(h(this,S),o,this.options,r)&&k(this,R,ve).call(this),this.updateResult(),n&&(h(this,S)!==o||W(this.options.enabled,h(this,S))!==W(r.enabled,h(this,S))||ye(this.options.staleTime,h(this,S))!==ye(r.staleTime,h(this,S)))&&k(this,R,De).call(this);const s=k(this,R,We).call(this);n&&(h(this,S)!==o||W(this.options.enabled,h(this,S))!==W(r.enabled,h(this,S))||s!==h(this,q))&&k(this,R,Ue).call(this,s)}getOptimisticResult(t){const r=h(this,L).getQueryCache().build(h(this,L),t),o=this.createResult(r,t);return Gt(this,o)&&(_(this,j,o),_(this,le,this.options),_(this,te,h(this,S).state)),o}getCurrentResult(){return h(this,j)}trackResult(t,r){return new Proxy(t,{get:(o,n)=>(this.trackProp(n),r==null||r(n),n==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&h(this,G).status==="pending"&&h(this,G).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(o,n))})}trackProp(t){h(this,de).add(t)}getCurrentQuery(){return h(this,S)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=h(this,L).defaultQueryOptions(t),o=h(this,L).getQueryCache().build(h(this,L),r);return o.fetch().then(()=>this.createResult(o,r))}fetch(t){return k(this,R,ve).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),h(this,j)))}createResult(t,r){var P;const o=h(this,S),n=this.options,s=h(this,j),i=h(this,te),a=h(this,le),f=t!==o?t.state:h(this,we),{state:u}=t;let d={...u},p=!1,b;if(r._optimisticResults){const E=this.hasListeners(),I=!E&&it(t,r),C=E&&at(t,o,r,n);(I||C)&&(d={...d,...Bt(u.data,t.options)}),r._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:v,errorUpdatedAt:g,status:w}=d;b=d.data;let x=!1;if(r.placeholderData!==void 0&&b===void 0&&w==="pending"){let E;s!=null&&s.isPlaceholderData&&r.placeholderData===(a==null?void 0:a.placeholderData)?(E=s.data,x=!0):E=typeof r.placeholderData=="function"?r.placeholderData((P=h(this,ue))==null?void 0:P.state.data,h(this,ue)):r.placeholderData,E!==void 0&&(w="success",b=st(s==null?void 0:s.data,E,r),p=!0)}if(r.select&&b!==void 0&&!x)if(s&&b===(i==null?void 0:i.data)&&r.select===h(this,xe))b=h(this,ce);else try{_(this,xe,r.select),b=r.select(b),b=st(s==null?void 0:s.data,b,r),_(this,ce,b),_(this,K,null)}catch(E){_(this,K,E)}h(this,K)&&(v=h(this,K),b=h(this,ce),g=Date.now(),w="error");const T=d.fetchStatus==="fetching",z=w==="pending",O=w==="error",D=z&&T,F=b!==void 0,N={status:w,fetchStatus:d.fetchStatus,isPending:z,isSuccess:w==="success",isError:O,isInitialLoading:D,isLoading:D,data:b,dataUpdatedAt:d.dataUpdatedAt,error:v,errorUpdatedAt:g,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:d.dataUpdateCount>f.dataUpdateCount||d.errorUpdateCount>f.errorUpdateCount,isFetching:T,isRefetching:T&&!z,isLoadingError:O&&!F,isPaused:d.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:O&&F,isStale:Ye(t,r),refetch:this.refetch,promise:h(this,G),isEnabled:W(r.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const E=N.data!==void 0,I=N.status==="error"&&!E,C=Z=>{I?Z.reject(N.error):E&&Z.resolve(N.data)},pe=()=>{const Z=_(this,G,N.promise=ot());C(Z)},$=h(this,G);switch($.status){case"pending":t.queryHash===o.queryHash&&C($);break;case"fulfilled":(I||N.data!==$.value)&&pe();break;case"rejected":(!I||N.error!==$.reason)&&pe();break}}return N}updateResult(){const t=h(this,j),r=this.createResult(h(this,S),this.options);if(_(this,te,h(this,S).state),_(this,le,this.options),h(this,te).data!==void 0&&_(this,ue,h(this,S)),je(r,t))return;_(this,j,r);const o=()=>{if(!t)return!0;const{notifyOnChangeProps:n}=this.options,s=typeof n=="function"?n():n;if(s==="all"||!s&&!h(this,de).size)return!0;const i=new Set(s??h(this,de));return this.options.throwOnError&&i.add("error"),Object.keys(h(this,j)).some(a=>{const c=a;return h(this,j)[c]!==t[c]&&i.has(c)})};k(this,R,vt).call(this,{listeners:o()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&k(this,R,Fe).call(this)}},L=new WeakMap,S=new WeakMap,we=new WeakMap,j=new WeakMap,te=new WeakMap,le=new WeakMap,G=new WeakMap,K=new WeakMap,xe=new WeakMap,ce=new WeakMap,ue=new WeakMap,re=new WeakMap,oe=new WeakMap,q=new WeakMap,de=new WeakMap,R=new WeakSet,ve=function(t){k(this,R,Ve).call(this);let r=h(this,S).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(Le)),r},De=function(){k(this,R,Be).call(this);const t=ye(this.options.staleTime,h(this,S));if(ze.isServer()||h(this,j).isStale||!nt(t))return;const o=Ut(h(this,j).dataUpdatedAt,t)+1;_(this,re,Ee.setTimeout(()=>{h(this,j).isStale||this.updateResult()},o))},We=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(h(this,S)):this.options.refetchInterval)??!1},Ue=function(t){k(this,R,$e).call(this),_(this,q,t),!(ze.isServer()||W(this.options.enabled,h(this,S))===!1||!nt(h(this,q))||h(this,q)===0)&&_(this,oe,Ee.setInterval(()=>{(this.options.refetchIntervalInBackground||Ft.isFocused())&&k(this,R,ve).call(this)},h(this,q)))},Fe=function(){k(this,R,De).call(this),k(this,R,Ue).call(this,k(this,R,We).call(this))},Be=function(){h(this,re)!==void 0&&(Ee.clearTimeout(h(this,re)),_(this,re,void 0))},$e=function(){h(this,oe)!==void 0&&(Ee.clearInterval(h(this,oe)),_(this,oe,void 0))},Ve=function(){const t=h(this,L).getQueryCache().build(h(this,L),this.options);if(t===h(this,S))return;const r=h(this,S);_(this,S,t),_(this,we,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},vt=function(t){mt.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(h(this,j))}),h(this,L).getQueryCache().notify({query:h(this,S),type:"observerResultsUpdated"})})},bt);function Qt(e,t){return W(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&W(t.retryOnMount,e)===!1)}function it(e,t){return Qt(e,t)||e.state.data!==void 0&&Qe(e,t,t.refetchOnMount)}function Qe(e,t,r){if(W(t.enabled,e)!==!1&&ye(t.staleTime,e)!=="static"){const o=typeof r=="function"?r(e):r;return o==="always"||o!==!1&&Ye(e,t)}return!1}function at(e,t,r,o){return(e!==t||W(o.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&Ye(e,r)}function Ye(e,t){return W(t.enabled,e)!==!1&&e.isStaleByTime(ye(t.staleTime,e))}function Gt(e,t){return!je(e.getCurrentResult(),t)}var yt=l.createContext(!1),Ht=()=>l.useContext(yt);yt.Provider;function Yt(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Xt=l.createContext(Yt()),Kt=()=>l.useContext(Xt),qt=(e,t,r)=>{const o=r!=null&&r.state.error&&typeof e.throwOnError=="function"?gt(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||o)&&(t.isReset()||(e.retryOnMount=!1))},Zt=e=>{l.useEffect(()=>{e.clearReset()},[e])},Jt=({result:e,errorResetBoundary:t,throwOnError:r,query:o,suspense:n})=>e.isError&&!t.isReset()&&!e.isFetching&&o&&(n&&e.data===void 0||gt(r,[e.error,o])),ko=(e,t)=>t.state.data===void 0,er=e=>{if(e.suspense){const r=n=>n==="static"?n:Math.max(n??1e3,1e3),o=e.staleTime;e.staleTime=typeof o=="function"?(...n)=>r(o(...n)):r(o),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},tr=(e,t)=>e.isLoading&&e.isFetching&&!t,rr=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,lt=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function Mo(e,t,r){var b,v,g,w;const o=Ht(),n=Kt(),s=$t(),i=s.defaultQueryOptions(e);(v=(b=s.getDefaultOptions().queries)==null?void 0:b._experimental_beforeQuery)==null||v.call(b,i);const a=s.getQueryCache().get(i.queryHash),c=e.subscribed!==!1;i._optimisticResults=o?"isRestoring":c?"optimistic":void 0,er(i),qt(i,n,a),Zt(n);const f=!s.getQueryCache().get(i.queryHash),[u]=l.useState(()=>new t(s,i)),d=u.getOptimisticResult(i),p=!o&&c;if(l.useSyncExternalStore(l.useCallback(x=>{const T=p?u.subscribe(mt.batchCalls(x)):Le;return u.updateResult(),T},[u,p]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),l.useEffect(()=>{u.setOptions(i)},[i,u]),rr(i,d))throw lt(i,u,n);if(Jt({result:d,errorResetBoundary:n,throwOnError:i.throwOnError,query:a,suspense:i.suspense}))throw d.error;if((w=(g=s.getDefaultOptions().queries)==null?void 0:g._experimental_afterQuery)==null||w.call(g,i,d),i.experimental_prefetchInRender&&!ze.isServer()&&tr(d,o)){const x=f?lt(i,u,n):a==null?void 0:a.promise;x==null||x.catch(Le).finally(()=>{u.updateResult()})}return i.notifyOnChangeProps?d:u.trackResult(d)}function wt(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=wt(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function or(){for(var e,t,r=0,o="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=wt(e))&&(o&&(o+=" "),o+=t);return o}const Xe="-",nr=e=>{const t=ir(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{const a=i.split(Xe);return a[0]===""&&a.length!==1&&a.shift(),xt(a,t)||sr(i)},getConflictingClassGroupIds:(i,a)=>{const c=r[i]||[];return a&&o[i]?[...c,...o[i]]:c}}},xt=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const r=e[0],o=t.nextPart.get(r),n=o?xt(e.slice(1),o):void 0;if(n)return n;if(t.validators.length===0)return;const s=e.join(Xe);return(i=t.validators.find(({validator:a})=>a(s)))==null?void 0:i.classGroupId},ct=/^\[(.+)\]$/,sr=e=>{if(ct.test(e)){const t=ct.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},ir=e=>{const{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return lr(Object.entries(e.classGroups),r).forEach(([s,i])=>{Ge(i,o,s,t)}),o},Ge=(e,t,r,o)=>{e.forEach(n=>{if(typeof n=="string"){const s=n===""?t:ut(t,n);s.classGroupId=r;return}if(typeof n=="function"){if(ar(n)){Ge(n(o),t,r,o);return}t.validators.push({validator:n,classGroupId:r});return}Object.entries(n).forEach(([s,i])=>{Ge(i,ut(t,s),r,o)})})},ut=(e,t)=>{let r=e;return t.split(Xe).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},ar=e=>e.isThemeGetter,lr=(e,t)=>t?e.map(([r,o])=>{const n=o.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,a])=>[t+i,a])):s);return[r,n]}):e,cr=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map;const n=(s,i)=>{r.set(s,i),t++,t>e&&(t=0,o=r,r=new Map)};return{get(s){let i=r.get(s);if(i!==void 0)return i;if((i=o.get(s))!==void 0)return n(s,i),i},set(s,i){r.has(s)?r.set(s,i):n(s,i)}}},St="!",ur=e=>{const{separator:t,experimentalParseClassName:r}=e,o=t.length===1,n=t[0],s=t.length,i=a=>{const c=[];let f=0,u=0,d;for(let w=0;w<a.length;w++){let x=a[w];if(f===0){if(x===n&&(o||a.slice(w,w+s)===t)){c.push(a.slice(u,w)),u=w+s;continue}if(x==="/"){d=w;continue}}x==="["?f++:x==="]"&&f--}const p=c.length===0?a:a.substring(u),b=p.startsWith(St),v=b?p.substring(1):p,g=d&&d>u?d-u:void 0;return{modifiers:c,hasImportantModifier:b,baseClassName:v,maybePostfixModifierPosition:g}};return r?a=>r({className:a,parseClassName:i}):i},dr=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(o=>{o[0]==="["?(t.push(...r.sort(),o),r=[]):r.push(o)}),t.push(...r.sort()),t},fr=e=>({cache:cr(e.cacheSize),parseClassName:ur(e),...nr(e)}),hr=/\s+/,pr=(e,t)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:n}=t,s=[],i=e.trim().split(hr);let a="";for(let c=i.length-1;c>=0;c-=1){const f=i[c],{modifiers:u,hasImportantModifier:d,baseClassName:p,maybePostfixModifierPosition:b}=r(f);let v=!!b,g=o(v?p.substring(0,b):p);if(!g){if(!v){a=f+(a.length>0?" "+a:a);continue}if(g=o(p),!g){a=f+(a.length>0?" "+a:a);continue}v=!1}const w=dr(u).join(":"),x=d?w+St:w,T=x+g;if(s.includes(T))continue;s.push(T);const z=n(g,v);for(let O=0;O<z.length;++O){const D=z[O];s.push(x+D)}a=f+(a.length>0?" "+a:a)}return a};function br(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Ct(t))&&(o&&(o+=" "),o+=r);return o}const Ct=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=Ct(e[o]))&&(r&&(r+=" "),r+=t);return r};function mr(e,...t){let r,o,n,s=i;function i(c){const f=t.reduce((u,d)=>d(u),e());return r=fr(f),o=r.cache.get,n=r.cache.set,s=a,a(c)}function a(c){const f=o(c);if(f)return f;const u=pr(c,r);return n(c,u),u}return function(){return s(br.apply(null,arguments))}}const A=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Rt=/^\[(?:([a-z-]+):)?(.+)\]$/i,gr=/^\d+\/\d+$/,vr=new Set(["px","full","screen"]),yr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,wr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,xr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Sr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Cr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Q=e=>ae(e)||vr.has(e)||gr.test(e),Y=e=>he(e,"length",Mr),ae=e=>!!e&&!Number.isNaN(Number(e)),Ie=e=>he(e,"number",ae),me=e=>!!e&&Number.isInteger(Number(e)),Rr=e=>e.endsWith("%")&&ae(e.slice(0,-1)),y=e=>Rt.test(e),X=e=>yr.test(e),Er=new Set(["length","size","percentage"]),Pr=e=>he(e,Er,Et),Ar=e=>he(e,"position",Et),Tr=new Set(["image","url"]),_r=e=>he(e,Tr,Nr),kr=e=>he(e,"",Or),ge=()=>!0,he=(e,t,r)=>{const o=Rt.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},Mr=e=>wr.test(e)&&!xr.test(e),Et=()=>!1,Or=e=>Sr.test(e),Nr=e=>Cr.test(e),Ir=()=>{const e=A("colors"),t=A("spacing"),r=A("blur"),o=A("brightness"),n=A("borderColor"),s=A("borderRadius"),i=A("borderSpacing"),a=A("borderWidth"),c=A("contrast"),f=A("grayscale"),u=A("hueRotate"),d=A("invert"),p=A("gap"),b=A("gradientColorStops"),v=A("gradientColorStopPositions"),g=A("inset"),w=A("margin"),x=A("opacity"),T=A("padding"),z=A("saturate"),O=A("scale"),D=A("sepia"),F=A("skew"),H=A("space"),N=A("translate"),P=()=>["auto","contain","none"],E=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto",y,t],C=()=>[y,t],pe=()=>["",Q,Y],$=()=>["auto",ae,y],Z=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Re=()=>["solid","dashed","dotted","double","none"],et=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Oe=()=>["start","end","center","between","around","evenly","stretch"],be=()=>["","0",y],tt=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>[ae,y];return{cacheSize:500,separator:":",theme:{colors:[ge],spacing:[Q,Y],blur:["none","",X,y],brightness:V(),borderColor:[e],borderRadius:["none","","full",X,y],borderSpacing:C(),borderWidth:pe(),contrast:V(),grayscale:be(),hueRotate:V(),invert:be(),gap:C(),gradientColorStops:[e],gradientColorStopPositions:[Rr,Y],inset:I(),margin:I(),opacity:V(),padding:C(),saturate:V(),scale:V(),sepia:be(),skew:V(),space:C(),translate:C()},classGroups:{aspect:[{aspect:["auto","square","video",y]}],container:["container"],columns:[{columns:[X]}],"break-after":[{"break-after":tt()}],"break-before":[{"break-before":tt()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Z(),y]}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",me,y]}],basis:[{basis:I()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",y]}],grow:[{grow:be()}],shrink:[{shrink:be()}],order:[{order:["first","last","none",me,y]}],"grid-cols":[{"grid-cols":[ge]}],"col-start-end":[{col:["auto",{span:["full",me,y]},y]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[ge]}],"row-start-end":[{row:["auto",{span:[me,y]},y]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",y]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",y]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...Oe()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Oe(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Oe(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[T]}],px:[{px:[T]}],py:[{py:[T]}],ps:[{ps:[T]}],pe:[{pe:[T]}],pt:[{pt:[T]}],pr:[{pr:[T]}],pb:[{pb:[T]}],pl:[{pl:[T]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[H]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[H]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",y,t]}],"min-w":[{"min-w":[y,t,"min","max","fit"]}],"max-w":[{"max-w":[y,t,"none","full","min","max","fit","prose",{screen:[X]},X]}],h:[{h:[y,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[y,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[y,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[y,t,"auto","min","max","fit"]}],"font-size":[{text:["base",X,Y]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ie]}],"font-family":[{font:[ge]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",y]}],"line-clamp":[{"line-clamp":["none",ae,Ie]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Q,y]}],"list-image":[{"list-image":["none",y]}],"list-style-type":[{list:["none","disc","decimal",y]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Re(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Q,Y]}],"underline-offset":[{"underline-offset":["auto",Q,y]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",y]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",y]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Z(),Ar]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Pr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},_r]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[b]}],"gradient-via":[{via:[b]}],"gradient-to":[{to:[b]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...Re(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:Re()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...Re()]}],"outline-offset":[{"outline-offset":[Q,y]}],"outline-w":[{outline:[Q,Y]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:pe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[Q,Y]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",X,kr]}],"shadow-color":[{shadow:[ge]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...et(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":et()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",X,y]}],grayscale:[{grayscale:[f]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[z]}],sepia:[{sepia:[D]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[f]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[z]}],"backdrop-sepia":[{"backdrop-sepia":[D]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",y]}],duration:[{duration:V()}],ease:[{ease:["linear","in","out","in-out",y]}],delay:[{delay:V()}],animate:[{animate:["none","spin","ping","pulse","bounce",y]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[O]}],"scale-x":[{"scale-x":[O]}],"scale-y":[{"scale-y":[O]}],rotate:[{rotate:[me,y]}],"translate-x":[{"translate-x":[N]}],"translate-y":[{"translate-y":[N]}],"skew-x":[{"skew-x":[F]}],"skew-y":[{"skew-y":[F]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",y]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",y]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",y]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Q,Y,Ie]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},jr=mr(Ir);function Ke(...e){return jr(or(e))}function Oo({children:e}){return m.jsx("div",{className:"flex h-full flex-1 items-center justify-center p-8 text-center text-sm text-muted-foreground",children:e})}const Lr={green:"text-green-500",amber:"text-amber-500",red:"text-red-500",muted:"text-muted-foreground/50"};function No({color:e,className:t}){return m.jsx("svg",{viewBox:"0 0 8 8",className:Ke("size-2 shrink-0 fill-current",Lr[e],t),"aria-hidden":"true",children:m.jsx("circle",{cx:"4",cy:"4",r:"4"})})}function Io({className:e}){return m.jsx("svg",{className:e,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:m.jsx("path",{d:"M6 4l4 4-4 4"})})}function zr({className:e}){return m.jsxs("svg",{className:e,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[m.jsx("rect",{x:"5.5",y:"5.5",width:"8",height:"8",rx:"1.5"}),m.jsx("path",{d:"M10.5 5.5V4A1.5 1.5 0 0 0 9 2.5H4A1.5 1.5 0 0 0 2.5 4v5A1.5 1.5 0 0 0 4 10.5h1.5"})]})}function Dr({className:e}){return m.jsx("svg",{className:e,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:m.jsx("path",{d:"M3 8.5l3.5 3.5L13 4.5"})})}function jo({value:e,className:t}){const[r,o]=l.useState(!1);return m.jsx("button",{type:"button","aria-label":r?"Copied":"Copy",title:r?"Copied":"Copy",onClick:n=>{var s;n.stopPropagation(),(s=navigator.clipboard)==null||s.writeText(e).then(()=>{o(!0),setTimeout(()=>o(!1),1200)}).catch(()=>{})},className:Ke("inline-flex size-5 items-center justify-center rounded text-muted-foreground/40 transition-colors hover:bg-muted hover:text-foreground",r&&"text-green-500",t),children:r?m.jsx(Dr,{className:"size-3"}):m.jsx(zr,{className:"size-3.5"})})}function Lo({dir:e,className:t}){return m.jsx("svg",{className:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:e?m.jsx("path",{d:"M1.5 4.5A1 1 0 0 1 2.5 3.5h3l1.5 1.5h5.5a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1h-10a1 1 0 0 1-1-1z"}):m.jsxs(m.Fragment,{children:[m.jsx("path",{d:"M4 1.5h5l3 3v9a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-11a1 1 0 0 1 1-1z"}),m.jsx("path",{d:"M9 1.5v3h3"})]})})}function zo(e){if(e==null)return"—";if(e<1024)return`${e} B`;const t=["KiB","MiB","GiB","TiB"];let r=e/1024,o=0;for(;r>=1024&&o<t.length-1;)r/=1024,o+=1;return`${(r>=100?r.toFixed(0):r.toFixed(1)).replace(/\.0$/,"")} ${t[o]}`}function Do(e){if(e==null)return"—";const t=Date.now()-e;if(t<0)return"just now";const r=Math.floor(t/1e3);if(r<60)return`${r}s ago`;const o=Math.floor(r/60);if(o<60)return`${o}m ago`;const n=Math.floor(o/60);return n<24?`${n}h ago`:`${Math.floor(n/24)}d ago`}const ie=(e,...t)=>["agent-os",e,...t];function Wr(e){const t=e.packageName,r=t.lastIndexOf("@");let o;r>0?o=t.slice(r).split("/").slice(0,2).join("/"):o=t.split("/").filter(Boolean).pop()??t;const n=t.startsWith("@rivet-dev/")||t.startsWith("@agentos-software/")?"rivet-dev":"user";return{name:o,version:"—",source:n,binaries:e.commands??[]}}function Ur(e,t){return e==="/"?`/${t}`:`${e}/${t}`}function Fr(e){if(e instanceof Uint8Array)return e;if(Array.isArray(e)&&e[0]==="$Uint8Array"&&typeof e[1]=="string"){const t=atob(e[1]),r=new Uint8Array(t.length);for(let o=0;o<t.length;o++)r[o]=t.charCodeAt(o);return r}if(Array.isArray(e))return Uint8Array.from(e);if(typeof e=="string")try{const t=atob(e),r=new Uint8Array(t.length);for(let o=0;o<t.length;o++)r[o]=t.charCodeAt(o);return r}catch{return new TextEncoder().encode(e)}return new Uint8Array}function Br(e){return e.subarray(0,8192).includes(0)?null:new TextDecoder("utf-8",{fatal:!1}).decode(e)}function Wo(e){const t=(e.type==="user_message_chunk"||e.type==="agent_message_chunk"||e.type==="agent_thought_chunk")&&e.content.type==="text"?e.content.text:"";switch(e.type){case"user_message_chunk":return{kind:"user",text:t};case"agent_message_chunk":return{kind:"assistant",text:t};case"agent_thought_chunk":return{kind:"thinking",text:t};case"tool_call":case"tool_call_update":return{kind:"tool",tool:e.title??e.toolCallId??"tool",status:e.status??void 0};default:return{kind:"raw",label:e.type,json:e}}}const Uo={softwareQueryOptions:e=>({queryKey:ie(e,"software"),queryFn:async()=>(await J("listSoftware",[])).map(Wr)}),processesQueryOptions:e=>({queryKey:ie(e,"processes"),queryFn:()=>J("listProcesses",[])}),listDirQueryOptions:(e,t,r=!0)=>({queryKey:ie(e,"dir",t),enabled:r,queryFn:async()=>{const o=await J("readdirEntries",[t],{timeoutMs:1e4});return o===null?null:o.filter(s=>s.name!=="."&&s.name!=="..").map(s=>{const i=Ur(t,s.name);return{name:s.name,path:i,dir:s.isDirectory}}).sort((s,i)=>Number(i.dir)-Number(s.dir)||s.name.localeCompare(i.name))}}),fileContentQueryOptions:(e,t)=>({queryKey:ie(e,"file",t??""),enabled:!!t,queryFn:async()=>{const r=t,[o,n]=await Promise.all([J("readFile",[r]).then(Fr),J("stat",[r])]);return{path:r,sizeBytes:n.size,mtimeMs:n.mtimeMs,text:Br(o)}}}),mountsQueryOptions:e=>({queryKey:ie(e,"mounts"),queryFn:()=>J("listMounts",[])}),sessionsQueryOptions:e=>({queryKey:ie(e,"sessions"),queryFn:()=>J("listSessions",[]),refetchInterval:1e4})};function ne(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e==null||e(n),r===!1||!n.defaultPrevented)return t==null?void 0:t(n)}}function $r(e,t=[]){let r=[];function o(s,i){const a=l.createContext(i);a.displayName=s+"Context";const c=r.length;r=[...r,i];const f=d=>{var x;const{scope:p,children:b,...v}=d,g=((x=p==null?void 0:p[e])==null?void 0:x[c])||a,w=l.useMemo(()=>v,Object.values(v));return m.jsx(g.Provider,{value:w,children:b})};f.displayName=s+"Provider";function u(d,p){var g;const b=((g=p==null?void 0:p[e])==null?void 0:g[c])||a,v=l.useContext(b);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[f,u]}const n=()=>{const s=r.map(i=>l.createContext(i));return function(a){const c=(a==null?void 0:a[e])||s;return l.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return n.scopeName=e,[o,Vr(n,...t)]}function Vr(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const o=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(s){const i=o.reduce((a,{useScope:c,scopeName:f})=>{const d=c(s)[`__scope${f}`];return{...a,...d}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}var He=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{};function dt(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Qr(...e){return t=>{let r=!1;const o=e.map(n=>{const s=dt(n,t);return!r&&typeof s=="function"&&(r=!0),s});if(r)return()=>{for(let n=0;n<o.length;n++){const s=o[n];typeof s=="function"?s():dt(e[n],null)}}}}function se(...e){return l.useCallback(Qr(...e),e)}function Gr(e){const t=l.forwardRef((r,o)=>{let{children:n,...s}=r,i=null,a=!1;const c=[];ft(n)&&typeof Pe=="function"&&(n=Pe(n._payload)),l.Children.forEach(n,p=>{var b;if(qr(p)){a=!0;const v=p;let g="child"in v.props?v.props.child:v.props.children;ft(g)&&typeof Pe=="function"&&(g=Pe(g._payload)),i=Yr(v,g),c.push((b=i==null?void 0:i.props)==null?void 0:b.children)}else c.push(p)}),i?i=l.cloneElement(i,void 0,c):!a&&l.Children.count(n)===1&&l.isValidElement(n)&&(i=n);const f=i?Kr(i):void 0,u=se(o,f);if(!i){if(n||n===0)throw new Error(a?to(e):eo(e));return n}const d=Xr(s,i.props??{});return i.type!==l.Fragment&&(d.ref=o?u:f),l.cloneElement(i,d)});return t.displayName=`${e}.Slot`,t}var Hr=Symbol.for("radix.slottable"),Yr=(e,t)=>{if("child"in e.props){const r=e.props.child;return l.isValidElement(r)?l.cloneElement(r,void 0,e.props.children(r.props.children)):null}return l.isValidElement(t)?t:null};function Xr(e,t){const r={...t};for(const o in t){const n=e[o],s=t[o];/^on[A-Z]/.test(o)?n&&s?r[o]=(...a)=>{const c=s(...a);return n(...a),c}:n&&(r[o]=n):o==="style"?r[o]={...n,...s}:o==="className"&&(r[o]=[n,s].filter(Boolean).join(" "))}return{...e,...r}}function Kr(e){var o,n;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(n=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function qr(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Hr}var Zr=Symbol.for("react.lazy");function ft(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Zr&&"_payload"in e&&Jr(e._payload)}function Jr(e){return typeof e=="object"&&e!==null&&"then"in e}var eo=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,to=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,Pe=Vt[" use ".trim().toString()],ro=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Se=ro.reduce((e,t)=>{const r=Gr(`Primitive.${t}`),o=l.forwardRef((n,s)=>{const{asChild:i,...a}=n,c=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(c,{...a,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function oo(e,t){return l.useReducer((r,o)=>t[r][o]??r,e)}var Ce=e=>{const{present:t,children:r}=e,o=no(t),n=typeof r=="function"?r({present:o.isPresent}):l.Children.only(r),s=so(o.ref,io(n));return typeof r=="function"||o.isPresent?l.cloneElement(n,{ref:s}):null};Ce.displayName="Presence";function no(e){const[t,r]=l.useState(),o=l.useRef(null),n=l.useRef(e),s=l.useRef("none"),i=e?"mounted":"unmounted",[a,c]=oo(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const f=Ae(o.current);s.current=a==="mounted"?f:"none"},[a]),He(()=>{const f=o.current,u=n.current;if(u!==e){const p=s.current,b=Ae(f);e?c("MOUNT"):b==="none"||(f==null?void 0:f.display)==="none"?c("UNMOUNT"):c(u&&p!==b?"ANIMATION_OUT":"UNMOUNT"),n.current=e}},[e,c]),He(()=>{if(t){let f;const u=t.ownerDocument.defaultView??window,d=b=>{const g=Ae(o.current).includes(CSS.escape(b.animationName));if(b.target===t&&g&&(c("ANIMATION_END"),!n.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",f=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},p=b=>{b.target===t&&(s.current=Ae(o.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(f),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:l.useCallback(f=>{o.current=f?getComputedStyle(f):null,r(f)},[])}}function ht(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function so(...e){const t=l.useRef(e);return t.current=e,l.useCallback(r=>{const o=t.current;let n=!1;const s=o.map(i=>{const a=ht(i,r);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let i=0;i<s.length;i++){const a=s[i];typeof a=="function"?a():ht(o[i],null)}}},[])}function Ae(e){return(e==null?void 0:e.animationName)||"none"}function io(e){var o,n;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(n=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function ee(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...r)=>{var o;return(o=t.current)==null?void 0:o.call(t,...r)},[])}var ao=l.createContext(void 0);function lo(e){const t=l.useContext(ao);return e||t||"ltr"}function co(e,[t,r]){return Math.min(r,Math.max(t,e))}function uo(e,t){return l.useReducer((r,o)=>t[r][o]??r,e)}var qe="ScrollArea",[Pt]=$r(qe),[fo,U]=Pt(qe),At=l.forwardRef((e,t)=>{const{__scopeScrollArea:r,type:o="hover",dir:n,scrollHideDelay:s=600,...i}=e,[a,c]=l.useState(null),[f,u]=l.useState(null),[d,p]=l.useState(null),[b,v]=l.useState(null),[g,w]=l.useState(null),[x,T]=l.useState(0),[z,O]=l.useState(0),[D,F]=l.useState(!1),[H,N]=l.useState(!1),P=se(t,I=>c(I)),E=lo(n);return m.jsx(fo,{scope:r,type:o,dir:E,scrollHideDelay:s,scrollArea:a,viewport:f,onViewportChange:u,content:d,onContentChange:p,scrollbarX:b,onScrollbarXChange:v,scrollbarXEnabled:D,onScrollbarXEnabledChange:F,scrollbarY:g,onScrollbarYChange:w,scrollbarYEnabled:H,onScrollbarYEnabledChange:N,onCornerWidthChange:T,onCornerHeightChange:O,children:m.jsx(Se.div,{dir:E,...i,ref:P,style:{position:"relative","--radix-scroll-area-corner-width":x+"px","--radix-scroll-area-corner-height":z+"px",...e.style}})})});At.displayName=qe;var Tt="ScrollAreaViewport",_t=l.forwardRef((e,t)=>{const{__scopeScrollArea:r,children:o,nonce:n,...s}=e,i=U(Tt,r),a=l.useRef(null),c=se(t,a,i.onViewportChange);return m.jsxs(m.Fragment,{children:[m.jsx(ho,{nonce:n}),m.jsx(Se.div,{"data-radix-scroll-area-viewport":"",...s,ref:c,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...e.style},children:m.jsx("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"},children:o})})]})});_t.displayName=Tt;var ho=l.memo(({nonce:e})=>m.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:e}),(e,t)=>e.nonce===t.nonce),B="ScrollAreaScrollbar",kt=l.forwardRef((e,t)=>{const{forceMount:r,...o}=e,n=U(B,e.__scopeScrollArea),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:i}=n,a=e.orientation==="horizontal";return l.useEffect(()=>(a?s(!0):i(!0),()=>{a?s(!1):i(!1)}),[a,s,i]),n.type==="hover"?m.jsx(po,{...o,ref:t,forceMount:r}):n.type==="scroll"?m.jsx(bo,{...o,ref:t,forceMount:r}):n.type==="auto"?m.jsx(Mt,{...o,ref:t,forceMount:r}):n.type==="always"?m.jsx(Ze,{...o,ref:t,"data-state":"visible"}):null});kt.displayName=B;var po=l.forwardRef((e,t)=>{const{forceMount:r,...o}=e,n=U(B,e.__scopeScrollArea),[s,i]=l.useState(!1);return l.useEffect(()=>{const a=n.scrollArea;let c=0;if(a){const f=()=>{window.clearTimeout(c),i(!0)},u=()=>{c=window.setTimeout(()=>i(!1),n.scrollHideDelay)};return a.addEventListener("pointerenter",f),a.addEventListener("pointerleave",u),()=>{window.clearTimeout(c),a.removeEventListener("pointerenter",f),a.removeEventListener("pointerleave",u)}}},[n.scrollArea,n.scrollHideDelay]),m.jsx(Ce,{present:r||s,children:m.jsx(Mt,{"data-state":s?"visible":"hidden",...o,ref:t})})}),bo=l.forwardRef((e,t)=>{const{forceMount:r,...o}=e,n=U(B,e.__scopeScrollArea),s=e.orientation==="horizontal",i=Me(()=>c("SCROLL_END"),100),[a,c]=uo("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return l.useEffect(()=>{if(a==="idle"){const f=window.setTimeout(()=>c("HIDE"),n.scrollHideDelay);return()=>window.clearTimeout(f)}},[a,n.scrollHideDelay,c]),l.useEffect(()=>{const f=n.viewport,u=s?"scrollLeft":"scrollTop";if(f){let d=f[u];const p=()=>{const b=f[u];d!==b&&(c("SCROLL"),i()),d=b};return f.addEventListener("scroll",p),()=>f.removeEventListener("scroll",p)}},[n.viewport,s,c,i]),m.jsx(Ce,{present:r||a!=="hidden",children:m.jsx(Ze,{"data-state":a==="hidden"?"hidden":"visible",...o,ref:t,onPointerEnter:ne(e.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:ne(e.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),Mt=l.forwardRef((e,t)=>{const r=U(B,e.__scopeScrollArea),{forceMount:o,...n}=e,[s,i]=l.useState(!1),a=e.orientation==="horizontal",c=Me(()=>{if(r.viewport){const f=r.viewport.offsetWidth<r.viewport.scrollWidth,u=r.viewport.offsetHeight<r.viewport.scrollHeight;i(a?f:u)}},10);return fe(r.viewport,c),fe(r.content,c),m.jsx(Ce,{present:o||s,children:m.jsx(Ze,{"data-state":s?"visible":"hidden",...n,ref:t})})}),Ze=l.forwardRef((e,t)=>{const{orientation:r="vertical",...o}=e,n=U(B,e.__scopeScrollArea),s=l.useRef(null),i=l.useRef(0),[a,c]=l.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),f=Lt(a.viewport,a.content),u={...o,sizes:a,onSizesChange:c,hasThumb:f>0&&f<1,onThumbChange:p=>s.current=p,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:p=>i.current=p};function d(p,b){return xo(p,i.current,a,b)}return r==="horizontal"?m.jsx(mo,{...u,ref:t,onThumbPositionChange:()=>{if(n.viewport&&s.current){const p=n.viewport.scrollLeft,b=pt(p,a,n.dir);s.current.style.transform=`translate3d(${b}px, 0, 0)`}},onWheelScroll:p=>{n.viewport&&(n.viewport.scrollLeft=p)},onDragScroll:p=>{n.viewport&&(n.viewport.scrollLeft=d(p,n.dir))}}):r==="vertical"?m.jsx(go,{...u,ref:t,onThumbPositionChange:()=>{if(n.viewport&&s.current){const p=n.viewport.scrollTop,b=pt(p,a);s.current.style.transform=`translate3d(0, ${b}px, 0)`}},onWheelScroll:p=>{n.viewport&&(n.viewport.scrollTop=p)},onDragScroll:p=>{n.viewport&&(n.viewport.scrollTop=d(p))}}):null}),mo=l.forwardRef((e,t)=>{const{sizes:r,onSizesChange:o,...n}=e,s=U(B,e.__scopeScrollArea),[i,a]=l.useState(),c=l.useRef(null),f=se(t,c,s.onScrollbarXChange);return l.useEffect(()=>{c.current&&a(getComputedStyle(c.current))},[c]),m.jsx(Nt,{"data-orientation":"horizontal",...n,ref:f,sizes:r,style:{bottom:0,left:s.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:s.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":ke(r)+"px",...e.style},onThumbPointerDown:u=>e.onThumbPointerDown(u.x),onDragScroll:u=>e.onDragScroll(u.x),onWheelScroll:(u,d)=>{if(s.viewport){const p=s.viewport.scrollLeft+u.deltaX;e.onWheelScroll(p),Dt(p,d)&&u.preventDefault()}},onResize:()=>{c.current&&s.viewport&&i&&o({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:_e(i.paddingLeft),paddingEnd:_e(i.paddingRight)}})}})}),go=l.forwardRef((e,t)=>{const{sizes:r,onSizesChange:o,...n}=e,s=U(B,e.__scopeScrollArea),[i,a]=l.useState(),c=l.useRef(null),f=se(t,c,s.onScrollbarYChange);return l.useEffect(()=>{c.current&&a(getComputedStyle(c.current))},[c]),m.jsx(Nt,{"data-orientation":"vertical",...n,ref:f,sizes:r,style:{top:0,right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":ke(r)+"px",...e.style},onThumbPointerDown:u=>e.onThumbPointerDown(u.y),onDragScroll:u=>e.onDragScroll(u.y),onWheelScroll:(u,d)=>{if(s.viewport){const p=s.viewport.scrollTop+u.deltaY;e.onWheelScroll(p),Dt(p,d)&&u.preventDefault()}},onResize:()=>{c.current&&s.viewport&&i&&o({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:_e(i.paddingTop),paddingEnd:_e(i.paddingBottom)}})}})}),[vo,Ot]=Pt(B),Nt=l.forwardRef((e,t)=>{const{__scopeScrollArea:r,sizes:o,hasThumb:n,onThumbChange:s,onThumbPointerUp:i,onThumbPointerDown:a,onThumbPositionChange:c,onDragScroll:f,onWheelScroll:u,onResize:d,...p}=e,b=U(B,r),[v,g]=l.useState(null),w=se(t,P=>g(P)),x=l.useRef(null),T=l.useRef(""),z=b.viewport,O=o.content-o.viewport,D=ee(u),F=ee(c),H=Me(d,10);function N(P){if(x.current){const E=P.clientX-x.current.left,I=P.clientY-x.current.top;f({x:E,y:I})}}return l.useEffect(()=>{const P=E=>{const I=E.target;(v==null?void 0:v.contains(I))&&D(E,O)};return document.addEventListener("wheel",P,{passive:!1}),()=>document.removeEventListener("wheel",P,{passive:!1})},[z,v,O,D]),l.useEffect(F,[o,F]),fe(v,H),fe(b.content,H),m.jsx(vo,{scope:r,scrollbar:v,hasThumb:n,onThumbChange:ee(s),onThumbPointerUp:ee(i),onThumbPositionChange:F,onThumbPointerDown:ee(a),children:m.jsx(Se.div,{...p,ref:w,style:{position:"absolute",...p.style},onPointerDown:ne(e.onPointerDown,P=>{P.button===0&&(P.target.setPointerCapture(P.pointerId),x.current=v.getBoundingClientRect(),T.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",b.viewport&&(b.viewport.style.scrollBehavior="auto"),N(P))}),onPointerMove:ne(e.onPointerMove,N),onPointerUp:ne(e.onPointerUp,P=>{const E=P.target;E.hasPointerCapture(P.pointerId)&&E.releasePointerCapture(P.pointerId),document.body.style.webkitUserSelect=T.current,b.viewport&&(b.viewport.style.scrollBehavior=""),x.current=null})})})}),Te="ScrollAreaThumb",It=l.forwardRef((e,t)=>{const{forceMount:r,...o}=e,n=Ot(Te,e.__scopeScrollArea);return m.jsx(Ce,{present:r||n.hasThumb,children:m.jsx(yo,{ref:t,...o})})}),yo=l.forwardRef((e,t)=>{const{__scopeScrollArea:r,style:o,...n}=e,s=U(Te,r),i=Ot(Te,r),{onThumbPositionChange:a}=i,c=se(t,d=>i.onThumbChange(d)),f=l.useRef(void 0),u=Me(()=>{f.current&&(f.current(),f.current=void 0)},100);return l.useEffect(()=>{const d=s.viewport;if(d){const p=()=>{if(u(),!f.current){const b=So(d,a);f.current=b,a()}};return a(),d.addEventListener("scroll",p),()=>d.removeEventListener("scroll",p)}},[s.viewport,u,a]),m.jsx(Se.div,{"data-state":i.hasThumb?"visible":"hidden",...n,ref:c,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...o},onPointerDownCapture:ne(e.onPointerDownCapture,d=>{const b=d.target.getBoundingClientRect(),v=d.clientX-b.left,g=d.clientY-b.top;i.onThumbPointerDown({x:v,y:g})}),onPointerUp:ne(e.onPointerUp,i.onThumbPointerUp)})});It.displayName=Te;var Je="ScrollAreaCorner",jt=l.forwardRef((e,t)=>{const r=U(Je,e.__scopeScrollArea),o=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&o?m.jsx(wo,{...e,ref:t}):null});jt.displayName=Je;var wo=l.forwardRef((e,t)=>{const{__scopeScrollArea:r,...o}=e,n=U(Je,r),[s,i]=l.useState(0),[a,c]=l.useState(0),f=!!(s&&a);return fe(n.scrollbarX,()=>{var d;const u=((d=n.scrollbarX)==null?void 0:d.offsetHeight)||0;n.onCornerHeightChange(u),c(u)}),fe(n.scrollbarY,()=>{var d;const u=((d=n.scrollbarY)==null?void 0:d.offsetWidth)||0;n.onCornerWidthChange(u),i(u)}),f?m.jsx(Se.div,{...o,ref:t,style:{width:s,height:a,position:"absolute",right:n.dir==="ltr"?0:void 0,left:n.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function _e(e){return e?parseInt(e,10):0}function Lt(e,t){const r=e/t;return isNaN(r)?0:r}function ke(e){const t=Lt(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,o=(e.scrollbar.size-r)*t;return Math.max(o,18)}function xo(e,t,r,o="ltr"){const n=ke(r),s=n/2,i=t||s,a=n-i,c=r.scrollbar.paddingStart+i,f=r.scrollbar.size-r.scrollbar.paddingEnd-a,u=r.content-r.viewport,d=o==="ltr"?[0,u]:[u*-1,0];return zt([c,f],d)(e)}function pt(e,t,r="ltr"){const o=ke(t),n=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,s=t.scrollbar.size-n,i=t.content-t.viewport,a=s-o,c=r==="ltr"?[0,i]:[i*-1,0],f=co(e,c);return zt([0,i],[0,a])(f)}function zt(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const o=(t[1]-t[0])/(e[1]-e[0]);return t[0]+o*(r-e[0])}}function Dt(e,t){return e>0&&e<t}var So=(e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},o=0;return function n(){const s={left:e.scrollLeft,top:e.scrollTop},i=r.left!==s.left,a=r.top!==s.top;(i||a)&&t(),r=s,o=window.requestAnimationFrame(n)}(),()=>window.cancelAnimationFrame(o)};function Me(e,t){const r=ee(e),o=l.useRef(0);return l.useEffect(()=>()=>window.clearTimeout(o.current),[]),l.useCallback(()=>{window.clearTimeout(o.current),o.current=window.setTimeout(r,t)},[r,t])}function fe(e,t){const r=ee(t);He(()=>{let o=0;if(e){const n=new ResizeObserver(()=>{cancelAnimationFrame(o),o=window.requestAnimationFrame(r)});return n.observe(e),()=>{window.cancelAnimationFrame(o),n.unobserve(e)}}},[e,r])}var Co=At,Ro=_t,Eo=jt;const Po=l.forwardRef(({className:e,children:t,...r},o)=>m.jsxs(Co,{ref:o,className:Ke("relative overflow-hidden",e),...r,children:[m.jsx(Ro,{className:"h-full w-full rounded-[inherit] [&>div]:!block",children:t}),m.jsx(kt,{orientation:"vertical",className:"flex h-full w-2.5 touch-none select-none border-l border-l-transparent p-[1px] transition-colors",children:m.jsx(It,{className:"relative flex-1 rounded-full bg-border"})}),m.jsx(Eo,{})]}));Po.displayName="ScrollArea";export{Oo as A,Io as C,Lo as F,Se as P,_o as Q,Po as S,Ce as a,se as b,ne as c,$r as d,Uo as e,Ke as f,No as g,Mo as h,zo as i,jo as j,or as k,ko as l,Wo as m,Do as r,He as u};
@@ -1 +1 @@
1
- import{r,R as P,j as o}from"./index-C50G2vhD.js";import{u as T}from"./useSuspenseQuery-CpwiXRj_.js";import{u as C,P as R,c as $,a as D,b as k,d as B,A as M,S as F,e as L,C as G,f as Q}from"./scroll-area-DzL-iGyn.js";import{B as U}from"./badge-Coq9s9H6.js";var q=P[" useInsertionEffect ".trim().toString()]||C;function z({prop:e,defaultProp:t,onChange:a=()=>{},caller:s}){const[n,l,i]=H({defaultProp:t,onChange:a}),c=e!==void 0,m=c?e:n;{const d=r.useRef(e!==void 0);r.useEffect(()=>{const f=d.current;f!==c&&console.warn(`${s} is changing from ${f?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=c},[c,s])}const p=r.useCallback(d=>{var f;if(c){const x=J(d)?d(e):d;x!==e&&((f=i.current)==null||f.call(i,x))}else l(d)},[c,e,l,i]);return[m,p]}function H({defaultProp:e,onChange:t}){const[a,s]=r.useState(e),n=r.useRef(a),l=r.useRef(t);return q(()=>{l.current=t},[t]),r.useEffect(()=>{var i;n.current!==a&&((i=l.current)==null||i.call(l,a),n.current=a)},[a,n]),[a,s,l]}function J(e){return typeof e=="function"}var K=P[" useId ".trim().toString()]||(()=>{}),V=0;function W(e){const[t,a]=r.useState(K());return C(()=>{a(s=>s??String(V++))},[e]),e||(t?`radix-${t}`:"")}var v="Collapsible",[X]=B(v),[Y,N]=X(v),O=r.forwardRef((e,t)=>{const{__scopeCollapsible:a,open:s,defaultOpen:n,disabled:l,onOpenChange:i,...c}=e,[m,p]=z({prop:s,defaultProp:n??!1,onChange:i,caller:v});return o.jsx(Y,{scope:a,disabled:l,contentId:W(),open:m,onOpenToggle:r.useCallback(()=>p(d=>!d),[p]),children:o.jsx(R.div,{"data-state":y(m),"data-disabled":l?"":void 0,...c,ref:t})})});O.displayName=v;var I="CollapsibleTrigger",A=r.forwardRef((e,t)=>{const{__scopeCollapsible:a,...s}=e,n=N(I,a);return o.jsx(R.button,{type:"button","aria-controls":n.open?n.contentId:void 0,"aria-expanded":n.open||!1,"data-state":y(n.open),"data-disabled":n.disabled?"":void 0,disabled:n.disabled,...s,ref:t,onClick:$(e.onClick,n.onOpenToggle)})});A.displayName=I;var j="CollapsibleContent",_=r.forwardRef((e,t)=>{const{forceMount:a,...s}=e,n=N(j,e.__scopeCollapsible);return o.jsx(D,{present:a||n.open,children:({present:l})=>o.jsx(Z,{...s,ref:t,present:l})})});_.displayName=j;var Z=r.forwardRef((e,t)=>{const{__scopeCollapsible:a,present:s,children:n,...l}=e,i=N(j,a),[c,m]=r.useState(s),p=r.useRef(null),d=k(t,p),f=r.useRef(0),x=f.current,g=r.useRef(0),w=g.current,b=i.open||c,S=r.useRef(b),h=r.useRef(void 0);return r.useEffect(()=>{const u=requestAnimationFrame(()=>S.current=!1);return()=>cancelAnimationFrame(u)},[]),C(()=>{const u=p.current;if(u){h.current=h.current||{transitionDuration:u.style.transitionDuration,animationName:u.style.animationName},u.style.transitionDuration="0s",u.style.animationName="none";const E=u.getBoundingClientRect();f.current=E.height,g.current=E.width,S.current||(u.style.transitionDuration=h.current.transitionDuration,u.style.animationName=h.current.animationName),m(s)}},[i.open,s]),o.jsx(R.div,{"data-state":y(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!b,...l,ref:d,style:{"--radix-collapsible-content-height":x?`${x}px`:void 0,"--radix-collapsible-content-width":w?`${w}px`:void 0,...e.style},children:b&&n})});function y(e){return e?"open":"closed"}var ee=O;const te=ee,ne=A,oe=_;function se({bundle:e}){const[t,a]=r.useState(!1),s=e.binaries.length>0;return o.jsxs(te,{open:t,onOpenChange:a,className:"border-none",children:[o.jsxs(ne,{className:"flex w-full items-center gap-2 px-4 py-3 text-left transition-colors hover:bg-muted/50",disabled:!s,children:[o.jsx(G,{className:Q("size-3 shrink-0 text-muted-foreground transition-transform",t&&"rotate-90",!s&&"opacity-0")}),o.jsx("span",{className:"flex-1 truncate font-mono text-sm",children:e.name}),s?o.jsxs("span",{className:"text-[11px] tabular-nums text-muted-foreground/70",children:[e.binaries.length," cmd",e.binaries.length===1?"":"s"]}):null,o.jsx("span",{className:"text-xs tabular-nums text-muted-foreground",children:e.version}),o.jsx(U,{variant:e.source==="user"?"outline":"secondary",children:e.source})]}),s?o.jsx(oe,{children:o.jsx("div",{className:"flex flex-wrap gap-1.5 px-4 pb-3 pl-9",children:e.binaries.map(n=>o.jsx("span",{className:"rounded bg-muted px-1.5 py-0.5 font-mono text-xs text-muted-foreground",children:n},n))})}):null]})}function re({software:e}){return o.jsx("div",{className:"flex h-full flex-col",children:e.length===0?o.jsx(M,{children:"No software bundles installed."}):o.jsx(F,{className:"min-h-0 flex-1",children:o.jsx("div",{className:"divide-y",children:e.map(t=>o.jsx(se,{bundle:t},t.name))})})})}function de({actorId:e}){const{data:t}=T(L.softwareQueryOptions(e));return o.jsx(re,{software:t})}export{re as SoftwareTab,de as SoftwareTabConnected};
1
+ import{r,R as P,j as o}from"./index-nTg2hrne.js";import{u as T}from"./useSuspenseQuery-V0HYenB_.js";import{u as C,P as R,c as $,a as D,b as k,d as B,A as M,S as F,e as L,C as G,f as Q}from"./scroll-area-DE-oi7a2.js";import{B as U}from"./badge-CkqYPoD9.js";var q=P[" useInsertionEffect ".trim().toString()]||C;function z({prop:e,defaultProp:t,onChange:a=()=>{},caller:s}){const[n,l,i]=H({defaultProp:t,onChange:a}),c=e!==void 0,m=c?e:n;{const d=r.useRef(e!==void 0);r.useEffect(()=>{const f=d.current;f!==c&&console.warn(`${s} is changing from ${f?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=c},[c,s])}const p=r.useCallback(d=>{var f;if(c){const x=J(d)?d(e):d;x!==e&&((f=i.current)==null||f.call(i,x))}else l(d)},[c,e,l,i]);return[m,p]}function H({defaultProp:e,onChange:t}){const[a,s]=r.useState(e),n=r.useRef(a),l=r.useRef(t);return q(()=>{l.current=t},[t]),r.useEffect(()=>{var i;n.current!==a&&((i=l.current)==null||i.call(l,a),n.current=a)},[a,n]),[a,s,l]}function J(e){return typeof e=="function"}var K=P[" useId ".trim().toString()]||(()=>{}),V=0;function W(e){const[t,a]=r.useState(K());return C(()=>{a(s=>s??String(V++))},[e]),e||(t?`radix-${t}`:"")}var v="Collapsible",[X]=B(v),[Y,N]=X(v),O=r.forwardRef((e,t)=>{const{__scopeCollapsible:a,open:s,defaultOpen:n,disabled:l,onOpenChange:i,...c}=e,[m,p]=z({prop:s,defaultProp:n??!1,onChange:i,caller:v});return o.jsx(Y,{scope:a,disabled:l,contentId:W(),open:m,onOpenToggle:r.useCallback(()=>p(d=>!d),[p]),children:o.jsx(R.div,{"data-state":y(m),"data-disabled":l?"":void 0,...c,ref:t})})});O.displayName=v;var I="CollapsibleTrigger",A=r.forwardRef((e,t)=>{const{__scopeCollapsible:a,...s}=e,n=N(I,a);return o.jsx(R.button,{type:"button","aria-controls":n.open?n.contentId:void 0,"aria-expanded":n.open||!1,"data-state":y(n.open),"data-disabled":n.disabled?"":void 0,disabled:n.disabled,...s,ref:t,onClick:$(e.onClick,n.onOpenToggle)})});A.displayName=I;var j="CollapsibleContent",_=r.forwardRef((e,t)=>{const{forceMount:a,...s}=e,n=N(j,e.__scopeCollapsible);return o.jsx(D,{present:a||n.open,children:({present:l})=>o.jsx(Z,{...s,ref:t,present:l})})});_.displayName=j;var Z=r.forwardRef((e,t)=>{const{__scopeCollapsible:a,present:s,children:n,...l}=e,i=N(j,a),[c,m]=r.useState(s),p=r.useRef(null),d=k(t,p),f=r.useRef(0),x=f.current,g=r.useRef(0),w=g.current,b=i.open||c,S=r.useRef(b),h=r.useRef(void 0);return r.useEffect(()=>{const u=requestAnimationFrame(()=>S.current=!1);return()=>cancelAnimationFrame(u)},[]),C(()=>{const u=p.current;if(u){h.current=h.current||{transitionDuration:u.style.transitionDuration,animationName:u.style.animationName},u.style.transitionDuration="0s",u.style.animationName="none";const E=u.getBoundingClientRect();f.current=E.height,g.current=E.width,S.current||(u.style.transitionDuration=h.current.transitionDuration,u.style.animationName=h.current.animationName),m(s)}},[i.open,s]),o.jsx(R.div,{"data-state":y(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!b,...l,ref:d,style:{"--radix-collapsible-content-height":x?`${x}px`:void 0,"--radix-collapsible-content-width":w?`${w}px`:void 0,...e.style},children:b&&n})});function y(e){return e?"open":"closed"}var ee=O;const te=ee,ne=A,oe=_;function se({bundle:e}){const[t,a]=r.useState(!1),s=e.binaries.length>0;return o.jsxs(te,{open:t,onOpenChange:a,className:"border-none",children:[o.jsxs(ne,{className:"flex w-full items-center gap-2 px-4 py-3 text-left transition-colors hover:bg-muted/50",disabled:!s,children:[o.jsx(G,{className:Q("size-3 shrink-0 text-muted-foreground transition-transform",t&&"rotate-90",!s&&"opacity-0")}),o.jsx("span",{className:"flex-1 truncate font-mono text-sm",children:e.name}),s?o.jsxs("span",{className:"text-[11px] tabular-nums text-muted-foreground/70",children:[e.binaries.length," cmd",e.binaries.length===1?"":"s"]}):null,o.jsx("span",{className:"text-xs tabular-nums text-muted-foreground",children:e.version}),o.jsx(U,{variant:e.source==="user"?"outline":"secondary",children:e.source})]}),s?o.jsx(oe,{children:o.jsx("div",{className:"flex flex-wrap gap-1.5 px-4 pb-3 pl-9",children:e.binaries.map(n=>o.jsx("span",{className:"rounded bg-muted px-1.5 py-0.5 font-mono text-xs text-muted-foreground",children:n},n))})}):null]})}function re({software:e}){return o.jsx("div",{className:"flex h-full flex-col",children:e.length===0?o.jsx(M,{children:"No software bundles installed."}):o.jsx(F,{className:"min-h-0 flex-1",children:o.jsx("div",{className:"divide-y",children:e.map(t=>o.jsx(se,{bundle:t},t.name))})})})}function de({actorId:e}){const{data:t}=T(L.softwareQueryOptions(e));return o.jsx(re,{software:t})}export{re as SoftwareTab,de as SoftwareTabConnected};
@@ -0,0 +1 @@
1
+ import{r as i,u as g,j as e}from"./index-nTg2hrne.js";import{u as N}from"./useSuspenseQuery-V0HYenB_.js";import{e as b,m as v,S as h,A as d,g as w,f as S}from"./scroll-area-DE-oi7a2.js";function c({label:s,meta:n,children:o}){return e.jsxs("div",{className:"border-b px-4 py-3",children:[e.jsxs("div",{className:"mb-1 flex items-center gap-2",children:[e.jsx("span",{className:"text-[11px] font-medium uppercase tracking-wider text-muted-foreground",children:s}),n?e.jsx("span",{className:"ml-auto font-mono text-xs text-muted-foreground",children:n}):null]}),o]})}function y({event:s}){switch(s.kind){case"user":case"assistant":return e.jsx(c,{label:s.kind,children:e.jsx("p",{className:"whitespace-pre-wrap text-sm",children:s.text||"—"})});case"thinking":return e.jsx(c,{label:"thinking",children:e.jsx("p",{className:"whitespace-pre-wrap text-sm italic text-muted-foreground",children:s.text||"—"})});case"tool":return e.jsx(c,{label:`tool · ${s.tool}`,meta:s.status,children:e.jsx("span",{className:"font-mono text-xs text-muted-foreground",children:s.status??""})});default:return e.jsx(c,{label:s.label,children:e.jsx("pre",{className:"whitespace-pre-wrap break-words rounded bg-muted/50 p-2 font-mono text-[11px] leading-relaxed text-muted-foreground",children:JSON.stringify(s.json,null,2)})})}}function O({actorId:s}){var u;const{data:n}=N(b.sessionsQueryOptions(s)),[o,p]=i.useState(null),r=o??((u=n[0])==null?void 0:u.sessionId)??null,f=g().useEvent,[l,x]=i.useState([]),m=i.useRef(r);return m.current=r,i.useEffect(()=>{x([])},[r]),f("sessionEvent",t=>{const a=m.current;a&&t.sessionId===a&&x(j=>[...j,v(t)])}),e.jsxs("div",{className:"flex h-full min-h-0",children:[e.jsxs("div",{className:"flex h-full w-64 shrink-0 flex-col border-r",children:[e.jsxs("div",{className:"border-b px-3 py-2.5",children:[e.jsx("div",{className:"text-sm font-semibold",children:"Sessions"}),e.jsxs("div",{className:"text-[11px] uppercase tracking-wider text-muted-foreground",children:[n.length," session",n.length===1?"":"s"]})]}),e.jsx(h,{className:"min-h-0 flex-1",children:n.length===0?e.jsx(d,{children:"No sessions yet."}):e.jsx("div",{className:"p-1.5",children:n.map(t=>e.jsxs("button",{type:"button",onClick:()=>p(t.sessionId),className:S("flex w-full items-center gap-2 rounded px-2 py-2 text-left",t.sessionId===r?"bg-muted":"hover:bg-muted/50"),children:[e.jsx(w,{color:"green"}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("div",{className:"truncate font-mono text-xs",children:t.sessionId}),e.jsx("div",{className:"text-[11px] text-muted-foreground",children:t.agentType})]})]},t.sessionId))})})]}),e.jsx("div",{className:"flex min-h-0 flex-1 flex-col",children:r?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"border-b px-4 py-3",children:[e.jsx("div",{className:"font-mono text-sm",children:r}),e.jsxs("div",{className:"text-xs text-muted-foreground",children:[l.length," event",l.length===1?"":"s"]})]}),e.jsx(h,{className:"min-h-0 flex-1",children:l.length===0?e.jsx(d,{children:"Events appear here while this tab is connected."}):l.map((t,a)=>e.jsx(y,{event:t},a))})]}):e.jsx(d,{children:"Select a session to view its transcript."})})]})}export{O as TranscriptTabConnected};
@@ -1 +1 @@
1
- import{k as r,Q as u,l as s}from"./scroll-area-DzL-iGyn.js";function t(e,a){return r({...e,enabled:!0,suspense:!0,throwOnError:s,placeholderData:void 0},u)}export{t as u};
1
+ import{h as r,Q as u,l as s}from"./scroll-area-DE-oi7a2.js";function t(e,a){return r({...e,enabled:!0,suspense:!0,throwOnError:s,placeholderData:void 0},u)}export{t as u};
@@ -4,7 +4,7 @@
4
4
  <meta charset="utf-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1" />
6
6
  <title>agentOS inspector</title>
7
- <script type="module" crossorigin src="./assets/index-C50G2vhD.js"></script>
7
+ <script type="module" crossorigin src="./assets/index-nTg2hrne.js"></script>
8
8
  <link rel="stylesheet" crossorigin href="./assets/index-Dt5XhJ9h.css">
9
9
  </head>
10
10
  <body>
@@ -0,0 +1,8 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
+
5
+ export {
6
+ __publicField
7
+ };
8
+ //# sourceMappingURL=chunk-V6TY7KAL.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/client.ts"],"sourcesContent":["/**\n * `@rivet-dev/agentos/client` — Agent OS client surface.\n *\n * Re-exports RivetKit's client entry (`createClient`, `ActorHandle`,\n * `ActorConn`, etc.). This is deliberately kept OFF the root module so that\n * server/Node actor code that imports `@rivet-dev/agentos` never transitively\n * pulls in the browser/client bundle.\n *\n * The browser export condition is preserved through to `rivetkit/client`\n * (which is external here), so consumers resolving this subpath in a browser\n * environment still get RivetKit's browser client build.\n */\n\nexport * from \"rivetkit/client\";\n"],"mappings":";AAaA,cAAc;","names":[]}
1
+ {"version":3,"sources":["../src/client.ts"],"sourcesContent":["/**\n * Convenience re-export of the unmodified `rivetkit/client` entrypoint.\n *\n * This subpath exists so AgentOS applications only need a direct dependency on\n * `@rivet-dev/agentos`. It must never wrap, proxy, decorate, specialize, or add\n * behavior to RivetKit clients, accessors, handles, connections, actions, or\n * events.\n */\nexport * from \"rivetkit/client\";\n"],"mappings":";AAQA,cAAc;","names":[]}