@rivet-dev/agentos 0.0.0-feat-on-limit-warning.62a2bc2 → 0.0.0-glibc.928bc3a
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.
- package/assets/inspector-tabs-app/assets/badge-Coq9s9H6.js +1 -0
- package/assets/inspector-tabs-app/assets/filesystem-_yeTmDH7.js +1 -0
- package/assets/inspector-tabs-app/assets/index-C50G2vhD.js +125 -0
- package/assets/inspector-tabs-app/assets/index-Dt5XhJ9h.css +1 -0
- package/assets/inspector-tabs-app/assets/mounts-C0eJmxpt.js +1 -0
- package/assets/inspector-tabs-app/assets/processes-CvN1MFLy.js +1 -0
- package/assets/inspector-tabs-app/assets/scroll-area-DzL-iGyn.js +1 -0
- package/assets/inspector-tabs-app/assets/software-BjGEcqMs.js +1 -0
- package/assets/inspector-tabs-app/assets/transcript-BKLxbOF5.js +1 -0
- package/assets/inspector-tabs-app/assets/useQuery-RSkOi56s.js +1 -0
- package/assets/inspector-tabs-app/assets/useSuspenseQuery-CpwiXRj_.js +1 -0
- package/assets/inspector-tabs-app/index.html +13 -0
- package/dist/index.d.ts +252 -25
- package/dist/index.js +121 -86
- package/dist/index.js.map +1 -1
- package/package.json +29 -11
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j}from"./index-C50G2vhD.js";import{j as N,f as C}from"./scroll-area-DzL-iGyn.js";const m=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,f=N,g=(e,a)=>n=>{var s;if((a==null?void 0:a.variants)==null)return f(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:u,defaultVariants:i}=a,y=Object.keys(u).map(t=>{const r=n==null?void 0:n[t],o=i==null?void 0:i[t];if(r===null)return null;const l=m(r)||m(o);return u[t][l]}),c=n&&Object.entries(n).reduce((t,r)=>{let[o,l]=r;return l===void 0||(t[o]=l),t},{}),x=a==null||(s=a.compoundVariants)===null||s===void 0?void 0:s.reduce((t,r)=>{let{class:o,className:l,...V}=r;return Object.entries(V).every(b=>{let[v,d]=b;return Array.isArray(d)?d.includes({...i,...c}[v]):{...i,...c}[v]===d})?[...t,o,l]:t},[]);return f(e,y,x,n==null?void 0:n.class,n==null?void 0:n.className)},k=g("inline-flex items-center tracking-normal rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors whitespace-nowrap max-w-full overflow-hidden truncate",{variants:{variant:{secondary:"border-transparent bg-secondary text-secondary-foreground",outline:"text-foreground"}},defaultVariants:{variant:"secondary"}});function h({className:e,variant:a,...n}){return j.jsx("div",{className:C(k({variant:a}),e),...n})}export{h as B};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as f,j as t}from"./index-C50G2vhD.js";import{u as j}from"./useQuery-RSkOi56s.js";import{e as N,S as b,A as c,C as w,f as p,F as S,h as g,r as k}from"./scroll-area-DzL-iGyn.js";function y({actorId:n,entry:e,depth:r,selectedPath:i,onSelect:o}){const[x,h]=f.useState(!1),d=e.path===i,a=e.dir&&!e.virtual,u=j(N.listDirQueryOptions(n,e.path,a&&x));return t.jsxs("div",{children:[t.jsxs("div",{className:"flex items-center gap-1",style:{paddingLeft:`${r*12}px`},children:[t.jsx("button",{type:"button",onClick:()=>a&&h(s=>!s),className:p("flex size-5 items-center justify-center rounded text-muted-foreground hover:bg-muted/50",!a&&"pointer-events-none opacity-0"),disabled:!a,children:t.jsx(w,{className:p("size-3 transition-transform",x&&"rotate-90")})}),t.jsxs("button",{type:"button",onClick:()=>a?h(s=>!s):e.dir?void 0:o(e),className:p("flex min-w-0 flex-1 items-center gap-2 rounded px-2 py-1 text-left text-sm",d?"bg-muted text-foreground":"hover:bg-muted/50"),children:[t.jsx(S,{dir:e.dir,className:"size-3.5 shrink-0 text-muted-foreground"}),t.jsx("span",{className:"flex-1 truncate",children:e.name}),!e.dir&&e.size!=null?t.jsx("span",{className:"shrink-0 text-[10px] tabular-nums text-muted-foreground/60",children:g(e.size)}):null]})]}),a&&x?u.isLoading?t.jsx("div",{className:"py-1 text-xs text-muted-foreground",style:{paddingLeft:`${(r+1)*12+28}px`},children:"loading…"}):(u.data??[]).map(s=>t.jsx(y,{actorId:n,entry:s,depth:r+1,selectedPath:i,onSelect:o},s.path)):null]})}function C({actorId:n,path:e}){const{data:r,error:i,isFetching:o}=j(N.fileContentQueryOptions(n,e));return e?i?t.jsxs(c,{children:["Failed to read ",e,": ",i.message]}):!r||o?t.jsxs(c,{children:["Loading ",e,"…"]}):t.jsxs("div",{className:"flex h-full flex-col",children:[t.jsxs("div",{className:"flex items-center gap-3 border-b px-4 py-3",children:[t.jsx("span",{className:"truncate font-mono text-sm",children:r.path}),t.jsx("span",{className:"ml-auto shrink-0 text-xs text-muted-foreground",children:g(r.sizeBytes)}),t.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:k(r.mtimeMs)})]}),t.jsx(b,{className:"min-h-0 flex-1",children:r.text===null?t.jsxs("div",{className:"flex h-full items-center justify-center p-8 text-center text-sm text-muted-foreground",children:["Binary file (",g(r.sizeBytes),") — preview unavailable."]}):t.jsx("pre",{className:"whitespace-pre-wrap break-words p-4 font-mono text-xs leading-relaxed",children:r.text})})]}):t.jsx(c,{children:"Select a file to view its contents."})}function v(n){let e=n.trim();return e===""?"/":(e.startsWith("/")||(e=`/${e}`),e=e.replace(/\/+/g,"/"),e.length>1&&e.endsWith("/")&&(e=e.slice(0,-1)),e)}function L({actorId:n}){const[e,r]=f.useState("/"),[i,o]=f.useState("/"),[x,h]=f.useState(null),d=j(N.listDirQueryOptions(n,e)),a=d.data===null,u=d.data??[];return f.useEffect(()=>{const s=setTimeout(()=>{const l=v(i);r(m=>l!==m?l:m)},500);return()=>clearTimeout(s)},[i]),t.jsxs("div",{className:"flex h-full min-h-0",children:[t.jsxs("div",{className:"flex h-full w-2/5 flex-col border-r",children:[t.jsx("div",{className:"border-b px-3 py-1.5",children:t.jsx("input",{value:i,onChange:s=>o(s.target.value),onKeyDown:s=>{if(s.key==="Enter"){const l=v(i);o(l),r(m=>l!==m?l:m)}},spellCheck:!1,autoComplete:"off","aria-label":"Root directory",placeholder:"/",className:"w-full bg-transparent font-mono text-xs text-muted-foreground outline-none placeholder:text-muted-foreground/40 focus:text-foreground"})}),t.jsx(b,{className:"min-h-0 flex-1 p-2",children:d.isLoading?t.jsxs(c,{children:["Loading ",e,"…"]}):d.error?t.jsxs(c,{children:["Failed to list ",e,": ",d.error.message]}):a?t.jsxs(c,{children:["Not a directory, or does not exist: ",e]}):u.length===0?t.jsx(c,{children:"Empty directory."}):u.map(s=>t.jsx(y,{actorId:n,entry:s,depth:0,selectedPath:x,onSelect:l=>h(l.path)},s.path))})]}),t.jsx("div",{className:"min-h-0 w-3/5",children:t.jsx(C,{actorId:n,path:x})})]})}export{L as FilesystemTabConnected};
|