PageSourceSearch

https://onequext.com/assets/AdminAgentRuns-D55O59hg.js

js onequext.com collected 2026-10-03 19:52:11 UTC 3,042 bytes, 1 lines download raw bytes

1import{ag as n,r as c,j as e,e as l,aj as x,a8 as d}from"./index-DWFhj9Zq.js";import{i as p,j as u,A as h}from"./AdminLayout-DiaH2eXh.js";import{B as f}from"./badge-DFZTKsAx.js";import{C as j,a as g}from"./card-YlcXEDE1.js";import{C as N}from"./circle-check-big-C-6dnUIv.js";import{C as v}from"./circle-x-DIzrs87m.js";import"./hq-sidebar-gradient.png.asset-CNsDmNo0.js";import"./sheet-BbDJWRoo.js";import"./index-CKyFg96D.js";import"./index-C4x7pZBE.js";import"./Combination-I95EJuRQ.js";import"./users-D8f9Pe-N.js";import"./image-C6ff1eLe.js";import"./log-out-Coz57yrg.js";import"./layout-dashboard-BvUAKFZC.js";import"./file-text-WN9sslry.js";import"./book-open-Cb_Z_zqi.js";import"./swords-CcMnFne3.js";import"./clipboard-list-BHMiKcov.js";function P(){const{id:a}=n(),{data:t}=p(a),{data:r,isLoading:m}=u(a),[i,o]=c.useState(null);return e.jsxs(h,{children:[e.jsxs("div",{className:"mb-6",children:[e.jsxs(l,{to:`/admin/agents/${a}`,className:"text-sm text-muted-foreground hover:text-foreground flex items-center gap-1 mb-2",children:[e.jsx(x,{className:"h-3.5 w-3.5"})," Back to ",(t==null?void 0:t.name)||"Agent"]}),e.jsxs("h1",{className:"text-2xl font-semibold text-foreground",children:["Run History — ",t==null?void 0:t.name]})]}),m?e.jsx("div",{className:"flex justify-center py-12",children:e.jsx(d,{className:"h-6 w-6 animate-spin"})}):!r||r.length===0?e.jsx("p",{className:"text-muted-foreground",children:"No runs recorded yet."}):e.jsx("div",{className:"space-y-2",children:r.map(s=>e.jsx(j,{className:"cursor-pointer hover:shadow-sm transition-shadow",onClick:()=>o(i===s.id?null:s.id),children:e.jsxs(g,{className:"p-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[s.status==="completed"?e.jsx(N,{className:"h-4 w-4 text-green-500"}):s.status==="failed"?e.jsx(v,{className:"h-4 w-4 text-destructive"}):e.jsx(d,{className:"h-4 w-4 animate-spin text-muted-foreground"}),e.jsx("span",{className:"text-sm",children:new Date(s.started_at).toLocaleString()}),s.completed_at&&e.jsxs("span",{className:"text-xs text-muted-foreground",children:["(",Math.round((new Date(s.completed_at).getTime()-new Date(s.started_at).getTime())/1e3),"s)"]})]}),e.jsx(f,{variant:s.status==="completed"?"default":s.status==="failed"?"destructive":"secondary",children:s.status})]}),i===s.id&&e.jsxs("div",{className:"mt-3 space-y-2 text-sm",children:[s.error_message&&e.jsx("div",{className:"p-2 rounded bg-destructive/10 text-destructive",children:s.error_message}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-muted-foreground mb-1",children:"Input:"}),e.jsx("pre",{className:"bg-muted p-2 rounded text-xs overflow-x-auto",children:JSON.stringify(s.input,null,2)})]}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-muted-foreground mb-1",children:"Output:"}),e.jsx("pre",{className:"bg-muted p-2 rounded text-xs overflow-x-auto",children:JSON.stringify(s.output,null,2)})]})]})]})},s.id))})]})}export{P as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.