@rivet-dev/agentos 0.0.0-nathan-agentos-package-resolution.4347e69 → 0.0.0-provided-commands.1847f3b

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.
@@ -0,0 +1 @@
1
+ @import"https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap";*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:IBM Plex Sans,ui-sans-serif,system-ui,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:IBM Plex Mono,ui-monospace,SFMono-Regular,Menlo,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.static{position:static}.absolute{position:absolute}.relative{position:relative}.right-1{right:.25rem}.top-1{top:.25rem}.mb-1{margin-bottom:.25rem}.ml-auto{margin-left:auto}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.contents{display:contents}.size-2{width:.5rem;height:.5rem}.size-3{width:.75rem;height:.75rem}.size-3\.5{width:.875rem;height:.875rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.h-full{height:100%}.min-h-0{min-height:0px}.w-2\.5{width:.625rem}.w-2\/5{width:40%}.w-24{width:6rem}.w-3\/5{width:60%}.w-64{width:16rem}.w-full{width:100%}.min-w-0{min-width:0px}.max-w-\[20rem\]{max-width:20rem}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.rotate-90{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-center{justify-content:center}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-\[inherit\]{border-radius:inherit}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-none{border-style:none}.border-foreground\/\[0\.06\]{border-color:hsl(var(--foreground) / .06)}.border-transparent{border-color:transparent}.border-l-transparent{border-left-color:transparent}.bg-background\/70{background-color:hsl(var(--background) / .7)}.bg-border{background-color:hsl(var(--border))}.bg-muted{background-color:hsl(var(--muted))}.bg-muted\/30{background-color:hsl(var(--muted) / .3)}.bg-muted\/50{background-color:hsl(var(--muted) / .5)}.bg-secondary{background-color:hsl(var(--secondary))}.bg-transparent{background-color:transparent}.fill-current{fill:currentColor}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-8{padding:2rem}.p-\[1px\]{padding:1px}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-3{padding-bottom:.75rem}.pl-2{padding-left:.5rem}.pl-9{padding-left:2.25rem}.pr-7{padding-right:1.75rem}.text-left{text-align:left}.text-center{text-align:center}.align-top{vertical-align:top}.font-mono{font-family:IBM Plex Mono,ui-monospace,SFMono-Regular,Menlo,monospace}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-relaxed{line-height:1.625}.tracking-normal{letter-spacing:0em}.tracking-wide{letter-spacing:.025em}.tracking-wider{letter-spacing:.05em}.text-amber-500{--tw-text-opacity: 1;color:rgb(245 158 11 / var(--tw-text-opacity, 1))}.text-destructive{color:hsl(var(--destructive))}.text-foreground{color:hsl(var(--foreground))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity, 1))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-muted-foreground\/40{color:hsl(var(--muted-foreground) / .4)}.text-muted-foreground\/50{color:hsl(var(--muted-foreground) / .5)}.text-muted-foreground\/60{color:hsl(var(--muted-foreground) / .6)}.text-muted-foreground\/70{color:hsl(var(--muted-foreground) / .7)}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.opacity-0{opacity:0}.opacity-25{opacity:.25}.opacity-75{opacity:.75}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}:root{--radius: .5rem;--background: 240 6% 4%;--foreground: 0 0% 100%;--card: 240 7% 5%;--card-foreground: 0 0% 100%;--popover: 240 7% 5%;--popover-foreground: 0 0% 100%;--primary: 18.5 100% 50%;--primary-foreground: 0 0% 100%;--secondary: 240 5% 7%;--secondary-foreground: 0 0% 100%;--muted: 240 5% 9%;--muted-foreground: 240 5% 65%;--accent: 240 5% 9%;--accent-foreground: 0 0% 100%;--destructive: 0 72.2% 50.6%;--destructive-foreground: 0 0% 100%;--warning: 47.9 95.8% 53.1%;--border: 240 5% 14%;--input: 240 5% 14%;--ring: 18.59 100% 50%}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border))!important}html,body,#root{height:100%;margin:0}body{background:hsl(var(--background));color:hsl(var(--foreground));font-family:IBM Plex Sans,ui-sans-serif,system-ui,sans-serif;-webkit-font-smoothing:antialiased}.placeholder\:text-muted-foreground\/40::-moz-placeholder{color:hsl(var(--muted-foreground) / .4)}.placeholder\:text-muted-foreground\/40::placeholder{color:hsl(var(--muted-foreground) / .4)}.last\:border-0:last-child{border-width:0px}.hover\:bg-muted:hover{background-color:hsl(var(--muted))}.hover\:bg-muted\/50:hover{background-color:hsl(var(--muted) / .5)}.hover\:text-foreground:hover{color:hsl(var(--foreground))}.focus\:text-foreground:focus{color:hsl(var(--foreground))}.\[\&\>div\]\:\!block>div{display:block!important}
@@ -0,0 +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};
@@ -0,0 +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};
@@ -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)),_=(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),k=(e,t,r,o)=>(Ne(e,t,"write to private field"),o?o.call(e,r):t.set(e,r),r),M=(e,t,r)=>(Ne(e,t,"access private method"),r);import{S as Wt,p as ot,a as W,s as Ie,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 Y,R as Vt}from"./index-C50G2vhD.js";var L,S,we,I,re,le,G,Z,xe,ce,ue,oe,ne,q,de,R,ve,De,We,Ue,Fe,Be,$e,Ve,vt,bt,_o=(bt=class extends Wt{constructor(t,r){super();_(this,R);_(this,L);_(this,S);_(this,we);_(this,I);_(this,re);_(this,le);_(this,G);_(this,Z);_(this,xe);_(this,ce);_(this,ue);_(this,oe);_(this,ne);_(this,q);_(this,de,new Set);this.options=r,k(this,L,t),k(this,Z,null),k(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)?M(this,R,ve).call(this):this.updateResult(),M(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,M(this,R,Be).call(this),M(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");M(this,R,Ve).call(this),h(this,S).setOptions(this.options),r._defaulted&&!Ie(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)&&M(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)))&&M(this,R,De).call(this);const s=M(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))&&M(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)&&(k(this,I,o),k(this,le,this.options),k(this,re,h(this,S).state)),o}getCurrentResult(){return h(this,I)}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 M(this,R,ve).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),h(this,I)))}createResult(t,r){var P;const o=h(this,S),n=this.options,s=h(this,I),i=h(this,re),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(),j=!E&&it(t,r),C=E&&at(t,o,r,n);(j||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{k(this,xe,r.select),b=r.select(b),b=st(s==null?void 0:s.data,b,r),k(this,ce,b),k(this,Z,null)}catch(E){k(this,Z,E)}h(this,Z)&&(v=h(this,Z),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,j=N.status==="error"&&!E,C=J=>{j?J.reject(N.error):E&&J.resolve(N.data)},pe=()=>{const J=k(this,G,N.promise=ot());C(J)},$=h(this,G);switch($.status){case"pending":t.queryHash===o.queryHash&&C($);break;case"fulfilled":(j||N.data!==$.value)&&pe();break;case"rejected":(!j||N.error!==$.reason)&&pe();break}}return N}updateResult(){const t=h(this,I),r=this.createResult(h(this,S),this.options);if(k(this,re,h(this,S).state),k(this,le,this.options),h(this,re).data!==void 0&&k(this,ue,h(this,S)),Ie(r,t))return;k(this,I,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,I)).some(a=>{const c=a;return h(this,I)[c]!==t[c]&&i.has(c)})};M(this,R,vt).call(this,{listeners:o()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&M(this,R,Fe).call(this)}},L=new WeakMap,S=new WeakMap,we=new WeakMap,I=new WeakMap,re=new WeakMap,le=new WeakMap,G=new WeakMap,Z=new WeakMap,xe=new WeakMap,ce=new WeakMap,ue=new WeakMap,oe=new WeakMap,ne=new WeakMap,q=new WeakMap,de=new WeakMap,R=new WeakSet,ve=function(t){M(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(){M(this,R,Be).call(this);const t=ye(this.options.staleTime,h(this,S));if(ze.isServer()||h(this,I).isStale||!nt(t))return;const o=Ut(h(this,I).dataUpdatedAt,t)+1;k(this,oe,Ee.setTimeout(()=>{h(this,I).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){M(this,R,$e).call(this),k(this,q,t),!(ze.isServer()||W(this.options.enabled,h(this,S))===!1||!nt(h(this,q))||h(this,q)===0)&&k(this,ne,Ee.setInterval(()=>{(this.options.refetchIntervalInBackground||Ft.isFocused())&&M(this,R,ve).call(this)},h(this,q)))},Fe=function(){M(this,R,De).call(this),M(this,R,Ue).call(this,M(this,R,We).call(this))},Be=function(){h(this,oe)!==void 0&&(Ee.clearTimeout(h(this,oe)),k(this,oe,void 0))},$e=function(){h(this,ne)!==void 0&&(Ee.clearInterval(h(this,ne)),k(this,ne,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);k(this,S,t),k(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,I))}),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!Ie(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),Zt=(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))},qt=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])),Oo=(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 No(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),Zt(i,n,a),qt(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),X=e=>he(e,"length",_r),ae=e=>!!e&&!Number.isNaN(Number(e)),je=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),K=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"]),kr=e=>he(e,Tr,Nr),Mr=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},_r=e=>wr.test(e)&&!xr.test(e),Et=()=>!1,Or=e=>Sr.test(e),Nr=e=>Cr.test(e),jr=()=>{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"],j=()=>["auto",y,t],C=()=>[y,t],pe=()=>["",Q,X],$=()=>["auto",ae,y],J=()=>["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,X],blur:["none","",K,y],brightness:V(),borderColor:[e],borderRadius:["none","","full",K,y],borderSpacing:C(),borderWidth:pe(),contrast:V(),grayscale:be(),hueRotate:V(),invert:be(),gap:C(),gradientColorStops:[e],gradientColorStopPositions:[Rr,X],inset:j(),margin:j(),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:[K]}],"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:[...J(),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:j()}],"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:[K]},K]}],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",K,X]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",je]}],"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,je]}],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,X]}],"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:[...J(),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"]},kr]}],"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,X]}],"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,X]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",K,Mr]}],"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",K,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,X,je]}],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"]}}},Ir=mr(jr);function Ke(...e){return Ir(or(e))}function jo({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 Io({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 Lo({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 zo({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 Do({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 Wo(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 Uo(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 ee=(e,...t)=>["agent-os",e,...t];function Wr(e){const t=e.package,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} · ${e.kind}`,version:e.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 $r(e,t){var n;const o=((e==null?void 0:e.params)??{}).update;if((e==null?void 0:e.method)==="session/update"&&o&&typeof o=="object"){const s=o.sessionUpdate,i=((n=o.content)==null?void 0:n.text)??"";switch(s){case"user_message_chunk":return{kind:"user",seq:t,text:i};case"agent_message_chunk":return{kind:"assistant",seq:t,text:i};case"agent_thought_chunk":return{kind:"thinking",seq:t,text:i};case"tool_call":case"tool_call_update":return{kind:"tool",seq:t,tool:o.title??o.toolCallId??"tool",status:o.status};default:return{kind:"raw",seq:t,label:s??e.method,json:o}}}return{kind:"raw",seq:t,label:(e==null?void 0:e.method)??"event",json:e==null?void 0:e.params}}function Vr(e){return $r(e.event,e.seq)}const Fo={softwareQueryOptions:e=>({queryKey:ee(e,"software"),queryFn:async()=>(await Y("listSoftware",[])).map(Wr)}),processesQueryOptions:e=>({queryKey:ee(e,"processes"),queryFn:()=>Y("listProcesses",[])}),listDirQueryOptions:(e,t,r=!0)=>({queryKey:ee(e,"dir",t),enabled:r,queryFn:async()=>{const o=await Y("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:ee(e,"file",t??""),enabled:!!t,queryFn:async()=>{const r=t,[o,n]=await Promise.all([Y("readFile",[r]).then(Fr),Y("stat",[r])]);return{path:r,sizeBytes:n.size,mtimeMs:n.mtimeMs,text:Br(o)}}}),mountsQueryOptions:e=>({queryKey:ee(e,"mounts"),queryFn:()=>Y("listMounts",[])}),sessionsQueryOptions:e=>({queryKey:ee(e,"sessions"),queryFn:()=>Y("listPersistedSessions",[]),refetchInterval:1e4}),transcriptQueryOptions:(e,t)=>({queryKey:ee(e,"transcript",t??""),enabled:!!t,queryFn:async()=>(await Y("getSessionEvents",[t])).map(Vr)})};function se(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 Qr(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,Gr(n,...t)]}function Gr(...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 Hr(...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 ie(...e){return l.useCallback(Hr(...e),e)}function Yr(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(Jr(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=Kr(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?qr(i):void 0,u=ie(o,f);if(!i){if(n||n===0)throw new Error(a?oo(e):ro(e));return n}const d=Zr(s,i.props??{});return i.type!==l.Fragment&&(d.ref=o?u:f),l.cloneElement(i,d)});return t.displayName=`${e}.Slot`,t}var Xr=Symbol.for("radix.slottable"),Kr=(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 Zr(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 qr(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 Jr(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Xr}var eo=Symbol.for("react.lazy");function ft(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===eo&&"_payload"in e&&to(e._payload)}function to(e){return typeof e=="object"&&e!==null&&"then"in e}var ro=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,oo=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,Pe=Vt[" use ".trim().toString()],no=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Se=no.reduce((e,t)=>{const r=Yr(`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 so(e,t){return l.useReducer((r,o)=>t[r][o]??r,e)}var Ce=e=>{const{present:t,children:r}=e,o=io(t),n=typeof r=="function"?r({present:o.isPresent}):l.Children.only(r),s=ao(o.ref,lo(n));return typeof r=="function"||o.isPresent?l.cloneElement(n,{ref:s}):null};Ce.displayName="Presence";function io(e){const[t,r]=l.useState(),o=l.useRef(null),n=l.useRef(e),s=l.useRef("none"),i=e?"mounted":"unmounted",[a,c]=so(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 ao(...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 lo(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 te(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 co=l.createContext(void 0);function uo(e){const t=l.useContext(co);return e||t||"ltr"}function fo(e,[t,r]){return Math.min(r,Math.max(t,e))}function ho(e,t){return l.useReducer((r,o)=>t[r][o]??r,e)}var Ze="ScrollArea",[Pt]=Qr(Ze),[po,U]=Pt(Ze),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=ie(t,j=>c(j)),E=uo(n);return m.jsx(po,{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=Ze;var Tt="ScrollAreaViewport",kt=l.forwardRef((e,t)=>{const{__scopeScrollArea:r,children:o,nonce:n,...s}=e,i=U(Tt,r),a=l.useRef(null),c=ie(t,a,i.onViewportChange);return m.jsxs(m.Fragment,{children:[m.jsx(bo,{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})})]})});kt.displayName=Tt;var bo=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",Mt=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(mo,{...o,ref:t,forceMount:r}):n.type==="scroll"?m.jsx(go,{...o,ref:t,forceMount:r}):n.type==="auto"?m.jsx(_t,{...o,ref:t,forceMount:r}):n.type==="always"?m.jsx(qe,{...o,ref:t,"data-state":"visible"}):null});Mt.displayName=B;var mo=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(_t,{"data-state":s?"visible":"hidden",...o,ref:t})})}),go=l.forwardRef((e,t)=>{const{forceMount:r,...o}=e,n=U(B,e.__scopeScrollArea),s=e.orientation==="horizontal",i=_e(()=>c("SCROLL_END"),100),[a,c]=ho("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(qe,{"data-state":a==="hidden"?"hidden":"visible",...o,ref:t,onPointerEnter:se(e.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:se(e.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),_t=l.forwardRef((e,t)=>{const r=U(B,e.__scopeScrollArea),{forceMount:o,...n}=e,[s,i]=l.useState(!1),a=e.orientation==="horizontal",c=_e(()=>{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(qe,{"data-state":s?"visible":"hidden",...n,ref:t})})}),qe=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 Co(p,i.current,a,b)}return r==="horizontal"?m.jsx(vo,{...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(yo,{...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}),vo=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=ie(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":Me(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:ke(i.paddingLeft),paddingEnd:ke(i.paddingRight)}})}})}),yo=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=ie(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":Me(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:ke(i.paddingTop),paddingEnd:ke(i.paddingBottom)}})}})}),[wo,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=ie(t,P=>g(P)),x=l.useRef(null),T=l.useRef(""),z=b.viewport,O=o.content-o.viewport,D=te(u),F=te(c),H=_e(d,10);function N(P){if(x.current){const E=P.clientX-x.current.left,j=P.clientY-x.current.top;f({x:E,y:j})}}return l.useEffect(()=>{const P=E=>{const j=E.target;(v==null?void 0:v.contains(j))&&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(wo,{scope:r,scrollbar:v,hasThumb:n,onThumbChange:te(s),onThumbPointerUp:te(i),onThumbPositionChange:F,onThumbPointerDown:te(a),children:m.jsx(Se.div,{...p,ref:w,style:{position:"absolute",...p.style},onPointerDown:se(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:se(e.onPointerMove,N),onPointerUp:se(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",jt=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(xo,{ref:t,...o})})}),xo=l.forwardRef((e,t)=>{const{__scopeScrollArea:r,style:o,...n}=e,s=U(Te,r),i=Ot(Te,r),{onThumbPositionChange:a}=i,c=ie(t,d=>i.onThumbChange(d)),f=l.useRef(void 0),u=_e(()=>{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=Ro(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:se(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:se(e.onPointerUp,i.onThumbPointerUp)})});jt.displayName=Te;var Je="ScrollAreaCorner",It=l.forwardRef((e,t)=>{const r=U(Je,e.__scopeScrollArea),o=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&o?m.jsx(So,{...e,ref:t}):null});It.displayName=Je;var So=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 ke(e){return e?parseInt(e,10):0}function Lt(e,t){const r=e/t;return isNaN(r)?0:r}function Me(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 Co(e,t,r,o="ltr"){const n=Me(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=Me(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=fo(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 Ro=(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 _e(e,t){const r=te(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=te(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 Eo=At,Po=kt,Ao=It;const To=l.forwardRef(({className:e,children:t,...r},o)=>m.jsxs(Eo,{ref:o,className:Ke("relative overflow-hidden",e),...r,children:[m.jsx(Po,{className:"h-full w-full rounded-[inherit] [&>div]:!block",children:t}),m.jsx(Mt,{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(jt,{className:"relative flex-1 rounded-full bg-border"})}),m.jsx(Ao,{})]}));To.displayName="ScrollArea";export{jo as A,Lo as C,Do as F,Se as P,_o as Q,To as S,Ce as a,ie as b,se as c,Qr as d,Fo as e,Ke as f,Io as g,Wo as h,zo as i,or as j,No as k,Oo as l,$r as m,Uo as r,He as u};
@@ -0,0 +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};
@@ -0,0 +1 @@
1
+ import{r as i,u as S,j as e}from"./index-C50G2vhD.js";import{u as k}from"./useQuery-RSkOi56s.js";import{u as E}from"./useSuspenseQuery-CpwiXRj_.js";import{e as j,m as I,S as g,A as d,g as A,r as O,f as T}from"./scroll-area-DzL-iGyn.js";function a({label:t,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:t}),n?e.jsx("span",{className:"ml-auto font-mono text-xs text-muted-foreground",children:n}):null]}),o]})}function N({event:t}){switch(t.kind){case"user":case"assistant":return e.jsx(a,{label:t.kind,children:e.jsx("p",{className:"whitespace-pre-wrap text-sm",children:t.text||"—"})});case"thinking":return e.jsx(a,{label:"thinking",children:e.jsx("p",{className:"whitespace-pre-wrap text-sm italic text-muted-foreground",children:t.text||"—"})});case"tool":return e.jsx(a,{label:`tool · ${t.tool}`,meta:t.status,children:e.jsx("span",{className:"font-mono text-xs text-muted-foreground",children:t.status??""})});default:return e.jsx(a,{label:t.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(t.json,null,2)})})}}function $({actorId:t}){var h;const{data:n}=E(j.sessionsQueryOptions(t)),[o,b]=i.useState(null),r=o??((h=n[0])==null?void 0:h.sessionId)??null,{data:c=[]}=k(j.transcriptQueryOptions(t,r)),v=S().useEvent,[l,x]=i.useState([]),u=i.useRef(0),m=i.useRef(r);return m.current=r,i.useEffect(()=>{x([]),u.current=0},[r]),v("sessionEvent",s=>{const f=m.current;if(!f||s!=null&&s.sessionId&&s.sessionId!==f)return;const p=(s==null?void 0:s.event)??s;p&&x(w=>[...w,I(p,u.current++)])}),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(g,{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(s=>e.jsxs("button",{type:"button",onClick:()=>b(s.sessionId),className:T("flex w-full items-center gap-2 rounded px-2 py-2 text-left",s.sessionId===r?"bg-muted":"hover:bg-muted/50"),children:[e.jsx(A,{color:s.status==="running"?"green":"muted"}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("div",{className:"truncate font-mono text-xs",children:s.sessionId}),e.jsxs("div",{className:"text-[11px] text-muted-foreground",children:[s.agentType," · ",O(s.createdAt)]})]})]},s.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:[c.length+l.length," event",c.length+l.length===1?"":"s"]})]}),e.jsx(g,{className:"min-h-0 flex-1",children:c.length+l.length===0?e.jsx(d,{children:"This session has no events yet."}):e.jsxs(e.Fragment,{children:[c.map(s=>e.jsx(N,{event:s},`b-${s.seq}`)),l.map(s=>e.jsx(N,{event:s},`l-${s.seq}`))]})})]}):e.jsx(d,{children:"Select a session to view its transcript."})})]})}export{$ as TranscriptTabConnected};
@@ -0,0 +1 @@
1
+ import{k as r,Q as u}from"./scroll-area-DzL-iGyn.js";function a(e,s){return r(e,u)}export{a as u};
@@ -0,0 +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};
@@ -0,0 +1,13 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
6
+ <title>agentOS inspector</title>
7
+ <script type="module" crossorigin src="./assets/index-C50G2vhD.js"></script>
8
+ <link rel="stylesheet" crossorigin href="./assets/index-Dt5XhJ9h.css">
9
+ </head>
10
+ <body>
11
+ <div id="root"></div>
12
+ </body>
13
+ </html>
package/dist/index.d.ts CHANGED
@@ -37,6 +37,10 @@ interface ShellDataPayload {
37
37
  shellId: string;
38
38
  data: Uint8Array;
39
39
  }
40
+ interface ShellExitPayload {
41
+ shellId: string;
42
+ exitCode: number;
43
+ }
40
44
  interface CronEventPayload {
41
45
  event: CronEvent;
42
46
  }
@@ -48,6 +52,10 @@ interface AgentOsEvents {
48
52
  processOutput: ProcessOutputPayload;
49
53
  processExit: ProcessExitPayload;
50
54
  shellData: ShellDataPayload;
55
+ /** Shell stderr (the dedicated channel backing the TS `onStderr` option). */
56
+ shellStderr: ShellDataPayload;
57
+ /** Shell process exit (mirrors `waitShell` resolution). */
58
+ shellExit: ShellExitPayload;
51
59
  cronEvent: CronEventPayload;
52
60
  }
53
61
  /** Result from sendPrompt. */
@@ -124,7 +132,6 @@ declare const nativeAgentOsOptionsSchema: z.ZodObject<{
124
132
  }, z.core.$strict>]>>>;
125
133
  }, z.core.$strict>>;
126
134
  mounts: z.ZodOptional<z.ZodArray<z.ZodType<NativeMountConfig, unknown, z.core.$ZodTypeInternals<NativeMountConfig, unknown>>>>;
127
- moduleAccessCwd: z.ZodOptional<z.ZodString>;
128
135
  additionalInstructions: z.ZodOptional<z.ZodString>;
129
136
  permissions: z.ZodOptional<z.ZodObject<{
130
137
  fs: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
@@ -280,6 +287,10 @@ declare const nativeAgentOsOptionsSchema: z.ZodObject<{
280
287
  }, z.core.$strict>>;
281
288
  jsRuntime: z.ZodOptional<z.ZodObject<{
282
289
  v8HeapLimitMb: z.ZodOptional<z.ZodNumber>;
290
+ syncRpcWaitTimeoutMs: z.ZodOptional<z.ZodNumber>;
291
+ cpuTimeLimitMs: z.ZodOptional<z.ZodNumber>;
292
+ wallClockLimitMs: z.ZodOptional<z.ZodNumber>;
293
+ importCacheMaterializeTimeoutMs: z.ZodOptional<z.ZodNumber>;
283
294
  capturedOutputLimitBytes: z.ZodOptional<z.ZodNumber>;
284
295
  stdinBufferLimitBytes: z.ZodOptional<z.ZodNumber>;
285
296
  eventPayloadLimitBytes: z.ZodOptional<z.ZodNumber>;
@@ -288,12 +299,15 @@ declare const nativeAgentOsOptionsSchema: z.ZodObject<{
288
299
  python: z.ZodOptional<z.ZodObject<{
289
300
  outputBufferMaxBytes: z.ZodOptional<z.ZodNumber>;
290
301
  executionTimeoutMs: z.ZodOptional<z.ZodNumber>;
302
+ maxOldSpaceMb: z.ZodOptional<z.ZodNumber>;
291
303
  vfsRpcTimeoutMs: z.ZodOptional<z.ZodNumber>;
292
304
  }, z.core.$strict>>;
293
305
  wasm: z.ZodOptional<z.ZodObject<{
294
306
  maxModuleFileBytes: z.ZodOptional<z.ZodNumber>;
295
307
  capturedOutputLimitBytes: z.ZodOptional<z.ZodNumber>;
296
308
  syncReadLimitBytes: z.ZodOptional<z.ZodNumber>;
309
+ prewarmTimeoutMs: z.ZodOptional<z.ZodNumber>;
310
+ runnerHeapLimitMb: z.ZodOptional<z.ZodNumber>;
297
311
  }, z.core.$strict>>;
298
312
  }, z.core.$strict>>;
299
313
  }, z.core.$strict>;
@@ -318,7 +332,6 @@ declare const agentOsActorConfigSchema: z.ZodObject<{
318
332
  }, z.core.$strict>]>>>;
319
333
  }, z.core.$strict>>;
320
334
  mounts: z.ZodOptional<z.ZodArray<z.ZodType<NativeMountConfig, unknown, z.core.$ZodTypeInternals<NativeMountConfig, unknown>>>>;
321
- moduleAccessCwd: z.ZodOptional<z.ZodString>;
322
335
  additionalInstructions: z.ZodOptional<z.ZodString>;
323
336
  permissions: z.ZodOptional<z.ZodObject<{
324
337
  fs: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
@@ -474,6 +487,10 @@ declare const agentOsActorConfigSchema: z.ZodObject<{
474
487
  }, z.core.$strict>>;
475
488
  jsRuntime: z.ZodOptional<z.ZodObject<{
476
489
  v8HeapLimitMb: z.ZodOptional<z.ZodNumber>;
490
+ syncRpcWaitTimeoutMs: z.ZodOptional<z.ZodNumber>;
491
+ cpuTimeLimitMs: z.ZodOptional<z.ZodNumber>;
492
+ wallClockLimitMs: z.ZodOptional<z.ZodNumber>;
493
+ importCacheMaterializeTimeoutMs: z.ZodOptional<z.ZodNumber>;
477
494
  capturedOutputLimitBytes: z.ZodOptional<z.ZodNumber>;
478
495
  stdinBufferLimitBytes: z.ZodOptional<z.ZodNumber>;
479
496
  eventPayloadLimitBytes: z.ZodOptional<z.ZodNumber>;
@@ -482,12 +499,15 @@ declare const agentOsActorConfigSchema: z.ZodObject<{
482
499
  python: z.ZodOptional<z.ZodObject<{
483
500
  outputBufferMaxBytes: z.ZodOptional<z.ZodNumber>;
484
501
  executionTimeoutMs: z.ZodOptional<z.ZodNumber>;
502
+ maxOldSpaceMb: z.ZodOptional<z.ZodNumber>;
485
503
  vfsRpcTimeoutMs: z.ZodOptional<z.ZodNumber>;
486
504
  }, z.core.$strict>>;
487
505
  wasm: z.ZodOptional<z.ZodObject<{
488
506
  maxModuleFileBytes: z.ZodOptional<z.ZodNumber>;
489
507
  capturedOutputLimitBytes: z.ZodOptional<z.ZodNumber>;
490
508
  syncReadLimitBytes: z.ZodOptional<z.ZodNumber>;
509
+ prewarmTimeoutMs: z.ZodOptional<z.ZodNumber>;
510
+ runnerHeapLimitMb: z.ZodOptional<z.ZodNumber>;
491
511
  }, z.core.$strict>>;
492
512
  }, z.core.$strict>>;
493
513
  }, z.core.$strict>>;
@@ -506,7 +526,7 @@ declare const agentOsActorConfigSchema: z.ZodObject<{
506
526
  * Keep this in sync with the schema above and the Rust serde mirror at
507
527
  * `crates/agentos-actor-plugin/src/config.rs::AgentOsConfigJson`.
508
528
  */
509
- type NativeAgentOsOptions = Pick<AgentOsOptions, "software" | "defaultSoftware" | "loopbackExemptPorts" | "allowedNodeBuiltins" | "rootFilesystem" | "moduleAccessCwd" | "additionalInstructions" | "permissions" | "limits"> & {
529
+ type NativeAgentOsOptions = Pick<AgentOsOptions, "software" | "defaultSoftware" | "loopbackExemptPorts" | "allowedNodeBuiltins" | "rootFilesystem" | "additionalInstructions" | "permissions" | "limits"> & {
510
530
  mounts?: NativeMountConfig[];
511
531
  sidecar?: {
512
532
  kind: "shared";
@@ -556,6 +576,12 @@ interface DirEntry {
556
576
  interface SpawnedProcess {
557
577
  pid: number;
558
578
  }
579
+ /** Options accepted by `spawn` (mirrors `SpawnActionOptions`). */
580
+ interface SpawnActionOptions {
581
+ env?: Record<string, string>;
582
+ cwd?: string;
583
+ streamStdin?: boolean;
584
+ }
559
585
  /** Handle returned by `scheduleCron` (mirrors `ScheduledCronDto`). */
560
586
  interface ScheduledCronJob {
561
587
  id: string;
@@ -586,6 +612,19 @@ interface SignedPreviewUrl {
586
612
  token: string;
587
613
  expiresAt: number;
588
614
  }
615
+ /** Options accepted by `openShell` (mirrors `OpenShellActionOptions`). */
616
+ interface OpenShellActionOptions {
617
+ command?: string;
618
+ args?: string[];
619
+ env?: Record<string, string>;
620
+ cwd?: string;
621
+ cols?: number;
622
+ rows?: number;
623
+ }
624
+ /** Handle returned by `openShell` (mirrors `OpenShellDto`). */
625
+ interface OpenShellResult {
626
+ shellId: string;
627
+ }
589
628
  /** Per-entry result of the batch `writeFiles` / `readFiles` actions. */
590
629
  interface WriteFileResult {
591
630
  path: string;
@@ -597,6 +636,23 @@ interface ReadFileResult {
597
636
  content?: Uint8Array;
598
637
  error?: string;
599
638
  }
639
+ /** One configured mount, returned by `listMounts`. Mirrors `MountInfoDto`. */
640
+ interface MountInfo {
641
+ path: string;
642
+ /** Native mount plugin id. */
643
+ kind: "host_dir" | "s3" | "google_drive" | "sandbox_agent";
644
+ /** Provider-specific config detail (null when the plugin carries none). */
645
+ config: unknown;
646
+ readOnly: boolean;
647
+ }
648
+ /** One configured software package, returned by `listSoftware`. Mirrors `SoftwareInfoDto`. */
649
+ interface SoftwareInfo {
650
+ package: string;
651
+ /** Kebab-case `SoftwareKind` tag. */
652
+ kind: "wasm-commands" | "agent" | "tool";
653
+ version: string | null;
654
+ commands: string[];
655
+ }
600
656
  /**
601
657
  * The agentOS VM actor's action map. Keep one method per Rust `dispatch` arm.
602
658
  *
@@ -621,7 +677,7 @@ type AgentOsActions = {
621
677
  readFiles: (c: Ctx, paths: string[]) => Promise<ReadFileResult[]>;
622
678
  readdirRecursive: (c: Ctx, path: string) => Promise<DirEntry[]>;
623
679
  exec: (c: Ctx, command: string) => Promise<ExecResult>;
624
- spawn: (c: Ctx, command: string, args: string[]) => Promise<SpawnedProcess>;
680
+ spawn: (c: Ctx, command: string, args: string[], options?: SpawnActionOptions) => Promise<SpawnedProcess>;
625
681
  waitProcess: (c: Ctx, pid: number) => Promise<number>;
626
682
  killProcess: (c: Ctx, pid: number) => Promise<void>;
627
683
  stopProcess: (c: Ctx, pid: number) => Promise<void>;
@@ -631,6 +687,11 @@ type AgentOsActions = {
631
687
  getProcess: (c: Ctx, pid: number) => Promise<ProcessInfo>;
632
688
  writeProcessStdin: (c: Ctx, pid: number, data: string | Uint8Array) => Promise<void>;
633
689
  closeProcessStdin: (c: Ctx, pid: number) => Promise<void>;
690
+ openShell: (c: Ctx, options?: OpenShellActionOptions) => Promise<OpenShellResult>;
691
+ writeShell: (c: Ctx, shellId: string, data: string | Uint8Array) => Promise<void>;
692
+ resizeShell: (c: Ctx, shellId: string, cols: number, rows: number) => Promise<void>;
693
+ closeShell: (c: Ctx, shellId: string) => Promise<void>;
694
+ waitShell: (c: Ctx, shellId: string) => Promise<number>;
634
695
  vmFetch: (c: Ctx, port: number, url: string, options?: VmFetchOptions) => Promise<VmFetchResponse>;
635
696
  scheduleCron: (c: Ctx, options: SerializableCronJobOptions) => Promise<ScheduledCronJob>;
636
697
  listCronJobs: (c: Ctx) => Promise<SerializableCronJobInfo[]>;
@@ -642,10 +703,12 @@ type AgentOsActions = {
642
703
  getSessionEvents: (c: Ctx, sessionId: string) => Promise<PersistedSessionEvent[]>;
643
704
  createSignedPreviewUrl: (c: Ctx, port: number, ttlSeconds: number) => Promise<SignedPreviewUrl>;
644
705
  expireSignedPreviewUrl: (c: Ctx, token: string) => Promise<void>;
706
+ listMounts: (c: Ctx) => Promise<MountInfo[]>;
707
+ listSoftware: (c: Ctx) => Promise<SoftwareInfo[]>;
645
708
  };
646
709
 
647
710
  /**
648
- * Rust-backed `agentOs(...)` definition.
711
+ * Rust-backed `agentOS(...)` definition.
649
712
  *
650
713
  * Produces an `ActorDefinition` whose `nativeFactoryBuilder` constructs a
651
714
  * native-actor-plugin factory through `runtime.createNativePluginFactory(...)`
@@ -658,7 +721,7 @@ type AgentOsActions = {
658
721
 
659
722
  /**
660
723
  * A native `host_dir` mount of a host `node_modules` directory at
661
- * `/root/node_modules`, the serializable form `agentOs({ options: { mounts } })`
724
+ * `/root/node_modules`, the serializable form `agentOS({ options: { mounts } })`
662
725
  * accepts across the NAPI boundary.
663
726
  */
664
727
  interface NodeModulesMountConfig {
@@ -688,7 +751,7 @@ declare function nodeModulesMount(hostNodeModulesDir: string, opts?: {
688
751
  }): NodeModulesMountConfig;
689
752
  declare function buildConfigJson<TConnParams>(parsed: AgentOsActorConfig<TConnParams>): string;
690
753
  /**
691
- * Type alias for the `agentOs(...)` return type. Events are not typed at the TS
754
+ * Type alias for the `agentOS(...)` return type. Events are not typed at the TS
692
755
  * surface because the Rust plugin owns the broadcast set, but the ACTIONS are
693
756
  * typed via {@link AgentOsActions} — a TS mirror of the Rust dispatch in
694
757
  * `crates/agentos-actor-plugin/src/actions/mod.rs`. That is what gives
@@ -696,7 +759,6 @@ declare function buildConfigJson<TConnParams>(parsed: AgentOsActorConfig<TConnPa
696
759
  * returns `ExecResult`, not `unknown`). Keep the two in sync.
697
760
  */
698
761
  type AgentOsActorDefinition<TConnParams> = ActorDefinition<AgentOsActorState, TConnParams, undefined, AgentOsActorVars, undefined, DatabaseProvider<RawAccess>, Record<never, never>, Record<never, never>, AgentOsActions>;
699
- declare function agentOs<TConnParams = undefined>(config: AgentOsActorConfigInput<TConnParams>): AgentOsActorDefinition<TConnParams>;
700
762
 
701
763
  /**
702
764
  * Resolve the absolute path to the agent-os actor plugin cdylib. RivetKit
@@ -721,4 +783,4 @@ type AgentOSConfigInput<TConnParams = undefined> = AgentOsOptions & {
721
783
  };
722
784
  declare function agentOS<TConnParams = undefined>(config?: AgentOSConfigInput<TConnParams>): AgentOsActorDefinition<TConnParams>;
723
785
 
724
- export { type AgentOSActorConfigInput, type AgentOSConfigInput, type AgentOsActionContext, type AgentOsActions, type AgentOsActorConfig, type AgentOsActorConfigInput, type AgentOsActorState, type AgentOsActorVars, type AgentOsEvents, type CreateSessionOptions, type CronEventPayload, type DirEntry, type NativeAgentOsOptions, type NodeModulesMountConfig, type PermissionRequestPayload, type PersistedSessionEvent, type PersistedSessionRecord, type ProcessExitPayload, type ProcessOutputPayload, type PromptResult, type ReadFileResult, type ScheduledCronJob, type SerializableCronAction, type SerializableCronJobInfo, type SerializableCronJobOptions, type SessionEventPayload, type SessionRecord, type ShellDataPayload, type SignedPreviewUrl, type SpawnedProcess, type VmBootedPayload, type VmFetchOptions, type VmFetchResponse, type VmShutdownPayload, type WriteFileResult, agentOS, agentOs, agentOsActorConfigSchema, buildConfigJson, getPluginPath, nativeAgentOsOptionsSchema, nodeModulesMount, setup };
786
+ export { type AgentOSActorConfigInput, type AgentOSConfigInput, type AgentOsActionContext, type AgentOsActions, type AgentOsActorConfig, type AgentOsActorConfigInput, type AgentOsActorState, type AgentOsActorVars, type AgentOsEvents, type CreateSessionOptions, type CronEventPayload, type DirEntry, type NativeAgentOsOptions, type NodeModulesMountConfig, type PermissionRequestPayload, type PersistedSessionEvent, type PersistedSessionRecord, type ProcessExitPayload, type ProcessOutputPayload, type PromptResult, type ReadFileResult, type ScheduledCronJob, type SerializableCronAction, type SerializableCronJobInfo, type SerializableCronJobOptions, type SessionEventPayload, type SessionRecord, type ShellDataPayload, type SignedPreviewUrl, type SpawnedProcess, type VmBootedPayload, type VmFetchOptions, type VmFetchResponse, type VmShutdownPayload, type WriteFileResult, agentOS, agentOsActorConfigSchema, buildConfigJson, getPluginPath, nativeAgentOsOptionsSchema, nodeModulesMount, setup };