agent-scope 0.3.0 → 0.4.0
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/dist/cli.js +0 -0
- package/dist/public/404/index.html +1 -1
- package/dist/public/404.html +1 -1
- package/dist/public/_next/static/chunks/app/page-a23aeddad1c9219d.js +1 -0
- package/dist/public/_next/static/css/e8cdacecda7e3044.css +5 -0
- package/dist/public/index.html +1 -1
- package/dist/public/index.txt +2 -2
- package/package.json +1 -1
- package/dist/public/_next/static/chunks/app/page-525816f75fc4208f.js +0 -1
- package/dist/public/_next/static/css/9056dd3cc8c03e80.css +0 -5
- /package/dist/public/_next/static/{K7T78-L0ry_e7hJ3Vq9AC → efnniGzlp_oXwEMyLjbwF}/_buildManifest.js +0 -0
- /package/dist/public/_next/static/{K7T78-L0ry_e7hJ3Vq9AC → efnniGzlp_oXwEMyLjbwF}/_ssgManifest.js +0 -0
package/dist/cli.js
CHANGED
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="en" class="dark"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/css/
|
|
1
|
+
<!DOCTYPE html><html lang="en" class="dark"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/css/e8cdacecda7e3044.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-8658fdbc42bfbbae.js"/><script src="/_next/static/chunks/fd9d1056-9e191f0896c1d560.js" async=""></script><script src="/_next/static/chunks/117-c710cb30aa7ed4f8.js" async=""></script><script src="/_next/static/chunks/main-app-feb0e3b0cc6fb4c7.js" async=""></script><meta name="robots" content="noindex"/><title>404: This page could not be found.</title><title>agent-scope</title><meta name="description" content="Execution observer for AI agent workflows"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><script src="/_next/static/chunks/webpack-8658fdbc42bfbbae.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:HL[\"/_next/static/css/e8cdacecda7e3044.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"2:I[2846,[],\"\"]\n4:I[4707,[],\"\"]\n5:I[6423,[],\"\"]\nb:I[1060,[],\"\"]\n6:{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"}\n7:{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"}\n8:{\"display\":\"inline-block\"}\n9:{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0}\nc:[]\n"])</script><script>self.__next_f.push([1,"0:[\"$\",\"$L2\",null,{\"buildId\":\"efnniGzlp_oXwEMyLjbwF\",\"assetPrefix\":\"\",\"urlParts\":[\"\",\"_not-found\",\"\"],\"initialTree\":[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],\"initialSeedData\":[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{},[[\"$L3\",[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],null],null],null]},[null,[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"/_not-found\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\"}]],null]},[[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/e8cdacecda7e3044.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"className\":\"dark\",\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$6\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$7\",\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":\"$8\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$9\",\"children\":\"This page could not be found.\"}]}]]}]}]],\"notFoundStyles\":[]}]}]}]],null],null],\"couldBeIntercepted\":false,\"initialHead\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],\"$La\"],\"globalErrorComponent\":\"$b\",\"missingSlots\":\"$Wc\"}]\n"])</script><script>self.__next_f.push([1,"a:[[\"$\",\"meta\",\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"1\",{\"charSet\":\"utf-8\"}],[\"$\",\"title\",\"2\",{\"children\":\"agent-scope\"}],[\"$\",\"meta\",\"3\",{\"name\":\"description\",\"content\":\"Execution observer for AI agent workflows\"}]]\n3:null\n"])</script></body></html>
|
package/dist/public/404.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="en" class="dark"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/css/
|
|
1
|
+
<!DOCTYPE html><html lang="en" class="dark"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/css/e8cdacecda7e3044.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-8658fdbc42bfbbae.js"/><script src="/_next/static/chunks/fd9d1056-9e191f0896c1d560.js" async=""></script><script src="/_next/static/chunks/117-c710cb30aa7ed4f8.js" async=""></script><script src="/_next/static/chunks/main-app-feb0e3b0cc6fb4c7.js" async=""></script><meta name="robots" content="noindex"/><title>404: This page could not be found.</title><title>agent-scope</title><meta name="description" content="Execution observer for AI agent workflows"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><script src="/_next/static/chunks/webpack-8658fdbc42bfbbae.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:HL[\"/_next/static/css/e8cdacecda7e3044.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"2:I[2846,[],\"\"]\n4:I[4707,[],\"\"]\n5:I[6423,[],\"\"]\nb:I[1060,[],\"\"]\n6:{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"}\n7:{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"}\n8:{\"display\":\"inline-block\"}\n9:{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0}\nc:[]\n"])</script><script>self.__next_f.push([1,"0:[\"$\",\"$L2\",null,{\"buildId\":\"efnniGzlp_oXwEMyLjbwF\",\"assetPrefix\":\"\",\"urlParts\":[\"\",\"_not-found\",\"\"],\"initialTree\":[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],\"initialSeedData\":[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{},[[\"$L3\",[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],null],null],null]},[null,[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"/_not-found\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\"}]],null]},[[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/e8cdacecda7e3044.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"className\":\"dark\",\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$6\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$7\",\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":\"$8\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$9\",\"children\":\"This page could not be found.\"}]}]]}]}]],\"notFoundStyles\":[]}]}]}]],null],null],\"couldBeIntercepted\":false,\"initialHead\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],\"$La\"],\"globalErrorComponent\":\"$b\",\"missingSlots\":\"$Wc\"}]\n"])</script><script>self.__next_f.push([1,"a:[[\"$\",\"meta\",\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"1\",{\"charSet\":\"utf-8\"}],[\"$\",\"title\",\"2\",{\"children\":\"agent-scope\"}],[\"$\",\"meta\",\"3\",{\"name\":\"description\",\"content\":\"Execution observer for AI agent workflows\"}]]\n3:null\n"])</script></body></html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{315:function(e,s,t){Promise.resolve().then(t.bind(t,8205))},8205:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return C}});var r=t(7437),a=t(2265),n=t(5287),l=t(3044),d=t(3247),c=t(2431),o=t(401),i=t(8867),x=t(875),u=t(407),m=t(3136),h=t(1723),f=t(4972),p=t(9525),g=t(2208),b=t(9322),j=t(2222),v=t(4967),N=t(1994),k=t(3335);function y(){for(var e=arguments.length,s=Array(e),t=0;t<e;t++)s[t]=arguments[t];return(0,k.m6)((0,N.W)(s))}function w(e){let{className:s,children:t,...a}=e;return(0,r.jsxs)(v.fC,{"data-slot":"scroll-area",className:y("relative overflow-hidden",s),...a,children:[(0,r.jsx)(v.l_,{"data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1 !overflow-y-auto [&>div]:!block",children:t}),(0,r.jsx)(S,{}),(0,r.jsx)(v.Ns,{})]})}function S(e){let{className:s,orientation:t="vertical",...a}=e;return(0,r.jsx)(v.gb,{"data-slot":"scroll-area-scrollbar",orientation:t,className:y("flex touch-none p-px transition-colors select-none","vertical"===t&&"h-full w-2.5 border-l border-l-transparent","horizontal"===t&&"h-2.5 flex-col border-t border-t-transparent",s),...a,children:(0,r.jsx)(v.q4,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}function E(e){let{lines:s}=e,[t,n]=(0,a.useState)(0),[l,d]=(0,a.useState)(0),[c,o]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let e=s[t];if(!c&&l<e.length){let e=setTimeout(()=>d(e=>e+1),40+30*Math.random());return()=>clearTimeout(e)}if(!c&&l===e.length){let e=setTimeout(()=>o(!0),2e3);return()=>clearTimeout(e)}if(c&&l>0){let e=setTimeout(()=>d(e=>e-1),20);return()=>clearTimeout(e)}c&&0===l&&(o(!1),n(e=>(e+1)%s.length))},[l,c,t,s]),(0,r.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[(0,r.jsx)("div",{className:"text-muted-foreground/30 text-4xl font-bold select-none",children:">_"}),(0,r.jsx)("div",{className:"h-8 flex items-center",children:(0,r.jsx)("span",{className:"text-sm text-muted-foreground/60 typing-cursor pr-1",children:s[t].slice(0,l)})})]})}function C(){let[e,s]=(0,a.useState)("live"),[t,o]=(0,a.useState)({live:!1,plan:!1}),[i,x]=(0,a.useState)([]),[u,m]=(0,a.useState)(null),[h,f]=(0,a.useState)(null),[p,g]=(0,a.useState)(null),[b,j]=(0,a.useState)(null),[v,N]=(0,a.useState)(new Set),[k,y]=(0,a.useState)(!0),[w,S]=(0,a.useState)(null),[E,C]=(0,a.useState)(""),[D,F]=(0,a.useState)(!1),L=(0,a.useRef)(null);(0,a.useEffect)(()=>{fetch("/health").then(e=>e.json()).then(e=>{o(e.modes),e.modes.live?s("live"):e.modes.plan&&s("plan"),y(!1)}).catch(()=>{S("Failed to connect to server"),y(!1)})},[]);let O=(0,a.useRef)(null);(0,a.useEffect)(()=>{var e;O.current=null!==(e=null==u?void 0:u.id)&&void 0!==e?e:null},[u]);let Z=(0,a.useCallback)(async()=>{try{let e=await fetch("/sessions");if(!e.ok)throw Error("Failed to fetch sessions");let s=await e.json();x(s.sessions);let t=O.current;if(!t&&s.sessions.length>0)m(s.sessions[0]);else if(t){let e=s.sessions.find(e=>e.id===t);e&&m(e)}}catch(e){S(e instanceof Error?e.message:"Unknown error")}},[]),A=(0,a.useCallback)(async()=>{try{let e=await fetch("/snapshot");if(!e.ok)throw Error("Failed to fetch snapshot");let s=await e.json();g(s),s.snapshot&&N(e=>e.size>0?e:new Set(Object.keys(s.snapshot.slices)))}catch(e){S(e instanceof Error?e.message:"Unknown error")}},[]);(0,a.useEffect)(()=>{!k&&("live"===e&&t.live&&Z(),"plan"===e&&t.plan&&A())},[e,k,t]);let R=(0,a.useRef)(Z),_=(0,a.useRef)(A),I=(0,a.useRef)(e);(0,a.useEffect)(()=>{R.current=Z},[Z]),(0,a.useEffect)(()=>{_.current=A},[A]),(0,a.useEffect)(()=>{I.current=e},[e]),(0,a.useEffect)(()=>{if(k)return;let e=new EventSource("/events/");return L.current=e,e.onopen=()=>{console.log("[SSE] Connection opened")},e.onmessage=e=>{try{let s=JSON.parse(e.data);console.log("[SSE] Event received:",s),"sessions"===s.type&&"live"===I.current&&(console.log("[SSE] Calling fetchSessions()..."),R.current()),"plan"===s.type&&"plan"===I.current&&(console.log("[SSE] Calling fetchSnapshot()..."),_.current())}catch(e){console.error("[SSE] Parse error:",e)}},e.onerror=s=>{console.error("[SSE] Connection error:",s),console.log("[SSE] EventSource readyState:",e.readyState)},()=>{e.close(),L.current=null}},[k]);let U=e=>{navigator.clipboard.writeText(e),F(!0),setTimeout(()=>F(!1),2e3)},B=e=>{switch(e){case"DONE":case"completed":return"bg-chart-2/20 text-chart-2";case"FAILED":return"bg-chart-5/20 text-chart-5";case"BLOCKED":return"bg-chart-3/20 text-chart-3";case"READY":case"pending":return"bg-chart-1/20 text-chart-1";case"in_progress":return"bg-chart-4/20 text-chart-4";default:return"bg-muted text-muted-foreground"}};return k?(0,r.jsx)("div",{className:"h-screen bg-background flex items-center justify-center",children:(0,r.jsx)("div",{className:"text-muted-foreground",children:"Loading..."})}):!w||i.length||p?(0,r.jsxs)("div",{className:"h-screen bg-background flex flex-col overflow-hidden",children:[(0,r.jsxs)("div",{className:"bg-sidebar border-b border-sidebar-border px-4 py-2 flex items-center justify-between shrink-0",children:[(0,r.jsxs)("div",{className:"flex items-center gap-4",children:[(0,r.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,r.jsx)("h1",{className:"text-lg font-semibold text-foreground",children:"agent-scope"}),(0,r.jsx)("span",{className:"text-xs text-muted-foreground bg-muted px-2 py-0.5 rounded",children:"v0.2"})]}),(0,r.jsxs)("div",{className:"flex items-center bg-muted rounded-lg p-0.5",children:[t.live&&(0,r.jsxs)("button",{onClick:()=>s("live"),className:"flex items-center gap-1.5 px-3 py-1 rounded text-xs font-medium transition-colors ".concat("live"===e?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"),children:[(0,r.jsx)(n.Z,{className:"size-3"}),"Live"]}),t.plan&&(0,r.jsxs)("button",{onClick:()=>s("plan"),className:"flex items-center gap-1.5 px-3 py-1 rounded text-xs font-medium transition-colors ".concat("plan"===e?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"),children:[(0,r.jsx)(l.Z,{className:"size-3"}),"Plan"]})]})]}),(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(d.Z,{className:"absolute left-3 top-1/2 -translate-y-1/2 size-3.5 text-muted-foreground"}),(0,r.jsx)("input",{type:"text",placeholder:"Filter...",value:E,onChange:e=>C(e.target.value),className:"bg-background border border-border rounded-lg pl-8 pr-3 py-1.5 text-xs text-foreground placeholder-muted-foreground focus:outline-none focus:border-ring w-48"})]}),(0,r.jsx)("button",{onClick:()=>"live"===e?Z():A(),className:"p-1.5 rounded hover:bg-sidebar-accent transition-colors",children:(0,r.jsx)(c.Z,{className:"size-3.5 text-muted-foreground"})})]})]}),(0,r.jsx)("div",{className:"flex-1 flex overflow-hidden",children:"live"===e?(0,r.jsx)(T,{sessions:i,selectedSession:u,setSelectedSession:m,selectedTask:h,setSelectedTask:f,searchQuery:E,getStatusColor:B,getStatusDotColor:e=>{switch(e){case"DONE":case"completed":return"bg-chart-2";case"FAILED":return"bg-chart-5";case"BLOCKED":return"bg-chart-3";case"READY":case"pending":return"bg-chart-1";case"in_progress":return"bg-chart-4";default:return"bg-muted-foreground"}},getStatusLabel:e=>{switch(e){case"pending":return"PENDING";case"in_progress":return"IN PROGRESS";case"completed":return"COMPLETED";default:return e}},handleCopyTaskId:U,copiedTaskId:D}):(0,r.jsx)(z,{data:p,selectedTask:b,setSelectedTask:j,expandedSlices:v,toggleSlice:e=>{N(s=>{let t=new Set(s);return t.has(e)?t.delete(e):t.add(e),t})},searchQuery:E,getStatusColor:B,handleCopyTaskId:U,copiedTaskId:D})})]}):(0,r.jsx)("div",{className:"h-screen bg-background flex items-center justify-center",children:(0,r.jsxs)("div",{className:"text-destructive-foreground",children:["Error: ",w]})})}function T(e){let{sessions:s,selectedSession:t,setSelectedSession:a,selectedTask:n,setSelectedTask:l,searchQuery:d,getStatusColor:c,getStatusDotColor:x,getStatusLabel:u,handleCopyTaskId:m,copiedTaskId:h}=e;if(0===s.length)return(0,r.jsx)("div",{className:"flex-1 flex items-center justify-center",children:(0,r.jsx)(E,{lines:["Start a Claude Code session to see tasks here","npx agent-scope start → launch dashboard","Agent uses TodoWrite to track progress","Sessions appear here in real-time"]})});let f=((null==t?void 0:t.tasks)||[]).filter(e=>e.subject.toLowerCase().includes(d.toLowerCase())||e.description.toLowerCase().includes(d.toLowerCase())||e.id.toLowerCase().includes(d.toLowerCase())),p=f.filter(e=>"pending"===e.status),g=f.filter(e=>"in_progress"===e.status),b=f.filter(e=>"completed"===e.status),j=e=>e.tasks.some(e=>"in_progress"===e.status),v=e=>0===e.tasks.length?0:Math.round(e.tasks.filter(e=>"completed"===e.status).length/e.tasks.length*100),N=e=>e>=1e6?"".concat((e/1e6).toFixed(1),"M"):e>=1e3?"".concat((e/1e3).toFixed(0),"K"):String(e),k=e=>e.inputTokens+e.outputTokens+e.cacheCreationTokens+e.cacheReadTokens,y=e=>{let s=Math.floor((Date.now()-new Date(e).getTime())/6e4);if(s<1)return"just now";if(s<60)return"".concat(s,"m ago");let t=Math.floor(s/60);return t<24?"".concat(t,"h ago"):"".concat(Math.floor(t/24),"d ago")};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"w-[220px] bg-sidebar border-r border-sidebar-border flex flex-col",children:[(0,r.jsx)("div",{className:"p-3 border-b border-sidebar-border",children:(0,r.jsx)("span",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wide",children:"Sessions"})}),(0,r.jsx)(w,{className:"flex-1",children:(0,r.jsx)("div",{className:"p-2 space-y-1",children:s.map(e=>(0,r.jsxs)("button",{onClick:()=>{a(e),l(null)},className:"w-full text-left p-2.5 rounded-lg transition-colors ".concat((null==t?void 0:t.id)===e.id?"bg-accent border border-ring":"hover:bg-accent/50 border border-transparent"),children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[j(e)&&(0,r.jsxs)("span",{className:"relative flex size-2",children:[(0,r.jsx)("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-chart-2 opacity-75"}),(0,r.jsx)("span",{className:"relative inline-flex rounded-full size-2 bg-chart-2"})]}),(0,r.jsx)("span",{className:"text-xs font-medium text-foreground truncate",children:e.projectName||e.id.slice(0,8)})]}),e.projectName&&(0,r.jsx)("div",{className:"text-[10px] text-muted-foreground/60 font-mono truncate mb-1",children:e.id.slice(0,8)}),(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("div",{className:"flex-1 bg-muted rounded-full h-1.5",children:(0,r.jsx)("div",{className:"bg-chart-2 h-1.5 rounded-full transition-all",style:{width:"".concat(v(e),"%")}})}),(0,r.jsxs)("span",{className:"text-[10px] text-muted-foreground shrink-0",children:[e.tasks.filter(e=>"completed"===e.status).length,"/",e.tasks.length]})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between text-[10px] text-muted-foreground/60 mt-1",children:[(0,r.jsx)("span",{children:y(e.updatedAt)}),e.tokenUsage&&(0,r.jsxs)("span",{title:"In: ".concat(N(e.tokenUsage.inputTokens)," | Out: ").concat(N(e.tokenUsage.outputTokens)," | Cache: ").concat(N(e.tokenUsage.cacheReadTokens)),children:[N(k(e.tokenUsage))," tok"]})]})]},e.id))})})]}),(0,r.jsx)("div",{className:"flex-1 flex flex-col overflow-hidden",children:t?(0,r.jsxs)("div",{className:"flex-1 flex flex-col overflow-hidden",children:[t.tokenUsage&&(0,r.jsxs)("div",{className:"bg-sidebar border-b border-sidebar-border px-4 py-2 flex items-center gap-6 text-xs shrink-0",children:[(0,r.jsx)("span",{className:"text-muted-foreground font-medium",children:"Tokens:"}),(0,r.jsxs)("span",{className:"text-foreground",children:[(0,r.jsx)("span",{className:"text-muted-foreground",children:"In "}),N(t.tokenUsage.inputTokens)]}),(0,r.jsxs)("span",{className:"text-foreground",children:[(0,r.jsx)("span",{className:"text-muted-foreground",children:"Out "}),N(t.tokenUsage.outputTokens)]}),(0,r.jsxs)("span",{className:"text-foreground",children:[(0,r.jsx)("span",{className:"text-muted-foreground",children:"Cache Write "}),N(t.tokenUsage.cacheCreationTokens)]}),(0,r.jsxs)("span",{className:"text-foreground",children:[(0,r.jsx)("span",{className:"text-muted-foreground",children:"Cache Read "}),N(t.tokenUsage.cacheReadTokens)]}),(0,r.jsxs)("span",{className:"text-muted-foreground/60 ml-auto",children:["Total: ",N(k(t.tokenUsage))]})]}),(0,r.jsxs)("div",{className:"flex-1 flex overflow-hidden",children:[(0,r.jsxs)("div",{className:"flex-1 flex gap-4 p-4 overflow-x-auto",children:[(0,r.jsx)(D,{title:"Pending",count:p.length,tasks:p,statusColor:"chart-1",selectedTask:n,setSelectedTask:l,getStatusColor:c,getStatusLabel:u}),(0,r.jsx)(D,{title:"In Progress",count:g.length,tasks:g,statusColor:"chart-4",selectedTask:n,setSelectedTask:l,getStatusColor:c,getStatusLabel:u}),(0,r.jsx)(D,{title:"Completed",count:b.length,tasks:b,statusColor:"chart-2",selectedTask:n,setSelectedTask:l,getStatusColor:c,getStatusLabel:u})]}),n&&(0,r.jsxs)("div",{className:"w-[350px] bg-sidebar border-l border-border flex flex-col shrink-0",children:[(0,r.jsxs)("div",{className:"p-4 border-b border-border flex items-center justify-between",children:[(0,r.jsx)("span",{className:"text-xs px-2 py-0.5 rounded font-semibold ".concat(c(n.status)),children:u(n.status)}),(0,r.jsx)("button",{onClick:()=>l(null),className:"text-muted-foreground hover:text-foreground text-sm",children:"\xd7"})]}),(0,r.jsx)(w,{className:"flex-1",children:(0,r.jsxs)("div",{className:"p-4 space-y-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"text-sm font-semibold text-foreground mb-1",children:n.subject}),"in_progress"===n.status&&n.activeForm&&(0,r.jsx)("p",{className:"text-xs text-chart-4 italic",children:n.activeForm})]}),n.description&&(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"text-xs font-semibold text-muted-foreground uppercase mb-1",children:"Description"}),(0,r.jsx)("p",{className:"text-xs text-foreground/80 leading-relaxed whitespace-pre-wrap",children:n.description})]}),n.blockedBy.length>0&&(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"text-xs font-semibold text-muted-foreground uppercase mb-1",children:"Blocked By"}),(0,r.jsx)("div",{className:"flex flex-wrap gap-1",children:n.blockedBy.map(e=>(0,r.jsxs)("span",{className:"text-xs bg-chart-3/20 text-chart-3 px-2 py-0.5 rounded",children:["Task #",e]},e))})]}),n.blocks.length>0&&(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"text-xs font-semibold text-muted-foreground uppercase mb-1",children:"Blocks"}),(0,r.jsx)("div",{className:"flex flex-wrap gap-1",children:n.blocks.map(e=>(0,r.jsxs)("span",{className:"text-xs bg-muted text-muted-foreground px-2 py-0.5 rounded",children:["Task #",e]},e))})]}),(0,r.jsx)("div",{className:"pt-2 border-t border-border",children:(0,r.jsx)("button",{onClick:()=>m(n.id),className:"flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground transition-colors",children:h?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.Z,{className:"size-3 text-chart-2"}),(0,r.jsx)("span",{className:"text-chart-2",children:"Copied"})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.Z,{className:"size-3"}),(0,r.jsxs)("span",{children:["Copy ID: ",n.id]})]})})})]})})]})]})]}):(0,r.jsx)("div",{className:"flex-1 flex items-center justify-center",children:(0,r.jsx)("div",{className:"text-center",children:(0,r.jsx)("p",{className:"text-muted-foreground",children:"Select a session from the sidebar"})})})})]})}function D(e){let{title:s,count:t,tasks:a,statusColor:n,selectedTask:l,setSelectedTask:d,getStatusColor:c,getStatusLabel:o}=e;return(0,r.jsxs)("div",{className:"flex-1 min-w-[250px] flex flex-col",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 mb-3 px-1",children:[(0,r.jsx)("div",{className:"size-2 rounded-full bg-".concat(n)}),(0,r.jsx)("span",{className:"text-xs font-semibold text-muted-foreground uppercase",children:s}),(0,r.jsx)("span",{className:"text-xs text-muted-foreground/60 bg-muted px-1.5 py-0.5 rounded",children:t})]}),(0,r.jsx)(w,{className:"flex-1",children:(0,r.jsxs)("div",{className:"space-y-2 pr-1",children:[a.map(e=>(0,r.jsxs)("button",{onClick:()=>d(e),className:"w-full text-left p-3 rounded-lg border transition-colors ".concat((null==l?void 0:l.id)===e.id?"bg-accent border-ring":"bg-card border-border hover:bg-accent/50"),children:[(0,r.jsx)("div",{className:"flex items-center justify-between mb-1",children:(0,r.jsxs)("span",{className:"text-[10px] text-muted-foreground font-mono",children:["#",e.id]})}),(0,r.jsx)("p",{className:"text-sm text-foreground line-clamp-2 mb-1",children:e.subject}),"in_progress"===e.status&&e.activeForm&&(0,r.jsx)("p",{className:"text-xs text-chart-4 italic truncate",children:e.activeForm}),e.blockedBy.length>0&&(0,r.jsx)("div",{className:"flex items-center gap-1 mt-1.5",children:(0,r.jsx)("span",{className:"text-[10px] bg-chart-3/20 text-chart-3 px-1.5 py-0.5 rounded",children:"Blocked"})})]},e.id)),0===a.length&&(0,r.jsx)("div",{className:"text-center py-8 text-muted-foreground/40 text-xs",children:"No tasks"})]})})]})}function z(e){var s,t,a,n,l;let{data:d,selectedTask:c,setSelectedTask:v,expandedSlices:N,toggleSlice:k,searchQuery:y,getStatusColor:S,handleCopyTaskId:C,copiedTaskId:T}=e;if(!d||!d.snapshot)return(0,r.jsx)("div",{className:"flex-1 p-8",children:(0,r.jsx)("div",{className:"max-w-4xl mx-auto",children:(0,r.jsxs)("div",{className:"bg-destructive/10 border border-destructive rounded-lg p-6",children:[(0,r.jsx)("h2",{className:"text-xl font-bold text-destructive-foreground mb-4",children:(null==d?void 0:null===(n=d.queueErrors)||void 0===n?void 0:n.length)?"Queue Parse Errors":"Plan Mode Not Available"}),(0,r.jsx)("div",{className:"space-y-2",children:(null==d?void 0:null===(l=d.queueErrors)||void 0===l?void 0:l.map((e,s)=>(0,r.jsx)("div",{className:"text-destructive-foreground text-sm",children:e},s)))||(0,r.jsx)("div",{className:"text-muted-foreground text-sm",children:'Run "agent-scope init" to set up Plan mode'})})]})})});let D=d.snapshot,z=D.tasks.filter(e=>e.description.toLowerCase().includes(y.toLowerCase())||e.id.toLowerCase().includes(y.toLowerCase())).reduce((e,s)=>(e[s.slice]||(e[s.slice]=[]),e[s.slice].push(s),e),{}),F=e=>D.tasks.filter(s=>s.dependsOn.includes(e)),L=D.tasks.reduce((e,s)=>{if(s.lastEvent){var t;let r=s.lastEvent.agent;e[r]||(e[r]={done:0,failed:0,totalDuration:0,taskCount:0}),e[r].taskCount++,"DONE"===s.lastEvent.status&&e[r].done++,"FAILED"===s.lastEvent.status&&e[r].failed++;let a=null===(t=s.lastEvent.meta)||void 0===t?void 0:t.duration;"number"==typeof a&&(e[r].totalDuration+=a)}return e},{});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"w-[25%] min-w-[280px] bg-sidebar border-r border-sidebar-border flex flex-col",children:(0,r.jsx)(w,{className:"flex-1",children:(0,r.jsx)("div",{className:"p-3 space-y-3",children:Object.entries(z).map(e=>{let[s,t]=e;return(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsxs)("button",{onClick:()=>k(s),className:"w-full flex items-center justify-between px-2 py-1.5 bg-muted rounded text-xs font-semibold text-muted-foreground hover:bg-muted/80 transition-colors",children:[(0,r.jsxs)("div",{className:"flex items-center gap-1.5",children:[N.has(s)?(0,r.jsx)(x.Z,{className:"size-3.5"}):(0,r.jsx)(u.Z,{className:"size-3.5"}),(0,r.jsxs)("span",{children:[s," • ",t.length," tasks"]})]}),(0,r.jsxs)("span",{className:"text-muted-foreground/60",children:[t.filter(e=>"DONE"===e.status).length,"/",t.length]})]}),N.has(s)&&t.map(e=>{var s,t;return(0,r.jsxs)("button",{onClick:()=>v(e),className:"w-full text-left p-3 rounded-lg border transition-colors ".concat((null==c?void 0:c.id)===e.id?"bg-accent border-ring":"bg-card border-border hover:bg-accent/50"),children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-1.5",children:[(0,r.jsx)("span",{className:"text-sm font-mono text-foreground",children:e.id}),(0,r.jsx)("span",{className:"text-xs px-2 py-0.5 rounded font-semibold ".concat(S(e.status)),children:e.status})]}),(0,r.jsx)("div",{className:"text-sm text-muted-foreground line-clamp-2",children:e.description}),(0,r.jsxs)("div",{className:"flex items-center gap-2 mt-1",children:[(0,r.jsx)("span",{className:"text-xs text-muted-foreground/60",children:e.area}),"string"==typeof(null===(t=e.lastEvent)||void 0===t?void 0:null===(s=t.meta)||void 0===s?void 0:s.commit)&&(0,r.jsxs)("span",{className:"flex items-center gap-1 text-[10px] text-chart-4/70 font-mono",children:[(0,r.jsx)(m.Z,{className:"size-2.5"}),String(e.lastEvent.meta.commit).slice(0,7)]})]})]},e.id)})]},s)})})})}),(0,r.jsx)("div",{className:"flex-1 flex flex-col overflow-hidden",children:c?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"bg-sidebar border-b border-border p-6",children:[(0,r.jsx)("h2",{className:"text-2xl font-semibold text-foreground mb-3",children:c.description}),(0,r.jsxs)("div",{className:"flex items-center gap-4 text-sm text-muted-foreground",children:[(0,r.jsxs)("span",{children:["Task: ",c.id]}),(0,r.jsx)("span",{children:"•"}),(0,r.jsxs)("span",{children:["Area: ",c.area]}),(0,r.jsx)("span",{children:"•"}),(0,r.jsx)("span",{className:"px-2 py-1 rounded text-xs font-semibold ".concat(S(c.status)),children:c.status}),(0,r.jsx)("div",{className:"flex-1"}),(0,r.jsx)("button",{onClick:()=>C(c.id),className:"flex items-center gap-1.5 px-3 py-1.5 rounded hover:bg-accent transition-colors",children:T?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.Z,{className:"size-3.5 text-chart-2"}),(0,r.jsx)("span",{className:"text-chart-2",children:"Copied"})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.Z,{className:"size-3.5"}),(0,r.jsx)("span",{children:"Copy ID"})]})})]})]}),(0,r.jsxs)("div",{className:"flex-1 flex overflow-hidden",children:[(0,r.jsxs)("div",{className:"w-1/2 border-r border-border flex flex-col",children:[(0,r.jsx)("div",{className:"bg-sidebar border-b border-border px-4 py-2",children:(0,r.jsx)("h3",{className:"text-sm font-semibold text-foreground uppercase tracking-wide",children:"Task Details"})}),(0,r.jsx)(w,{className:"flex-1",children:(0,r.jsxs)("div",{className:"p-6 space-y-6",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"text-xs font-semibold text-muted-foreground uppercase mb-2",children:"Acceptance Criteria"}),(0,r.jsx)("p",{className:"text-sm text-foreground/80 leading-relaxed",children:c.acceptanceCriteria})]}),c.dependsOn.length>0&&(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"text-xs font-semibold text-muted-foreground uppercase mb-2",children:"Dependencies"}),(0,r.jsx)("div",{className:"space-y-2",children:c.dependsOn.map(e=>{let s=D.tasks.find(s=>s.id===e);return(0,r.jsx)("button",{onClick:()=>s&&v(s),className:"w-full text-left p-3 rounded-lg bg-card border border-border hover:bg-accent/50 transition-colors",children:(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("span",{className:"text-sm font-mono text-foreground",children:e}),s&&(0,r.jsx)("span",{className:"text-xs px-2 py-0.5 rounded font-semibold ".concat(S(s.status)),children:s.status})]})},e)})})]}),F(c.id).length>0&&(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"text-xs font-semibold text-muted-foreground uppercase mb-2",children:"Blocks These Tasks"}),(0,r.jsx)("div",{className:"space-y-2",children:F(c.id).map(e=>(0,r.jsx)("button",{onClick:()=>v(e),className:"w-full text-left p-3 rounded-lg bg-card border border-border hover:bg-accent/50 transition-colors",children:(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("span",{className:"text-sm font-mono text-foreground",children:e.id}),(0,r.jsx)("span",{className:"text-xs px-2 py-0.5 rounded font-semibold ".concat(S(e.status)),children:e.status})]})},e.id))})]}),c.lastEvent&&(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"text-xs font-semibold text-muted-foreground uppercase mb-2",children:"Execution"}),(0,r.jsxs)("div",{className:"bg-card rounded-lg p-4 space-y-3 text-sm border border-border",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("span",{className:"text-foreground font-mono",children:c.lastEvent.agent}),(0,r.jsx)("span",{className:"px-2 py-0.5 rounded text-xs font-semibold ".concat(S(c.lastEvent.status)),children:c.lastEvent.status})]}),(0,r.jsx)("span",{className:"text-muted-foreground text-xs",children:new Date(c.lastEvent.timestamp).toLocaleString()})]}),c.lastEvent.reason&&(0,r.jsx)("div",{className:"text-xs text-chart-3 bg-chart-3/10 p-2 rounded",children:c.lastEvent.reason}),(null===(s=c.lastEvent.meta)||void 0===s?void 0:s.duration)!=null&&(0,r.jsxs)("div",{className:"flex items-center gap-4 text-xs text-muted-foreground",children:[(0,r.jsxs)("span",{className:"flex items-center gap-1",children:[(0,r.jsx)(h.Z,{className:"size-3"}),String(c.lastEvent.meta.duration),"s"]}),null!=c.lastEvent.meta.stepCount&&(0,r.jsxs)("span",{children:[String(c.lastEvent.meta.stepCount)," steps"]})]}),"string"==typeof(null===(t=c.lastEvent.meta)||void 0===t?void 0:t.commit)&&(0,r.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 bg-background rounded-md",children:[(0,r.jsx)(m.Z,{className:"size-3.5 text-chart-4 shrink-0"}),(0,r.jsx)("code",{className:"text-xs text-chart-4 font-mono",children:String(c.lastEvent.meta.commit).slice(0,7)}),(0,r.jsx)("span",{className:"text-xs text-muted-foreground truncate",children:String(c.lastEvent.meta.commitMsg||"")})]}),Array.isArray(null===(a=c.lastEvent.meta)||void 0===a?void 0:a.steps)&&(0,r.jsx)("div",{className:"mt-2 pt-3 border-t border-border space-y-1",children:c.lastEvent.meta.steps.map((e,s)=>(0,r.jsxs)("div",{className:"flex items-start gap-2 py-1.5 px-2 rounded hover:bg-background/50",children:[(0,r.jsxs)("div",{className:"mt-0.5",children:["thought"===e.type&&(0,r.jsx)(f.Z,{className:"size-3.5 text-chart-4"}),"tool_call"===e.type&&(0,r.jsx)(p.Z,{className:"size-3.5 text-chart-1"}),"observation"===e.type&&(0,r.jsx)(g.Z,{className:"size-3.5 text-chart-2"}),"error"===e.type&&(0,r.jsx)(b.Z,{className:"size-3.5 text-chart-5"})]}),(0,r.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,r.jsx)("span",{className:"text-xs font-medium text-foreground truncate",children:e.name}),(0,r.jsxs)("span",{className:"text-[10px] text-muted-foreground/60 shrink-0",children:[e.duration,"ms"]})]}),(0,r.jsx)("p",{className:"text-xs text-muted-foreground/80 truncate",children:e.summary})]})]},s))}),c.lastEvent.meta&&!Array.isArray(c.lastEvent.meta.steps)&&(0,r.jsx)("div",{className:"mt-2 pt-3 border-t border-border",children:(0,r.jsx)("pre",{className:"text-xs text-muted-foreground bg-background p-2 rounded overflow-auto",children:JSON.stringify(c.lastEvent.meta,null,2)})})]})]})]})})]}),(0,r.jsxs)("div",{className:"w-1/2 flex flex-col",children:[(0,r.jsx)("div",{className:"bg-sidebar border-b border-border px-4 py-2",children:(0,r.jsx)("h3",{className:"text-sm font-semibold text-foreground uppercase tracking-wide",children:"Overview"})}),(0,r.jsx)(w,{className:"flex-1",children:(0,r.jsxs)("div",{className:"p-6 space-y-6",children:[(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,r.jsxs)("div",{className:"bg-card border border-border rounded-lg p-4",children:[(0,r.jsx)("div",{className:"text-2xl font-bold text-foreground",children:D.summary.total}),(0,r.jsx)("div",{className:"text-xs text-muted-foreground mt-1",children:"Total Tasks"})]}),(0,r.jsxs)("div",{className:"bg-card border border-chart-2/30 rounded-lg p-4",children:[(0,r.jsx)("div",{className:"text-2xl font-bold text-chart-2",children:D.summary.done}),(0,r.jsx)("div",{className:"text-xs text-muted-foreground mt-1",children:"Done"})]}),(0,r.jsxs)("div",{className:"bg-card border border-chart-5/30 rounded-lg p-4",children:[(0,r.jsx)("div",{className:"text-2xl font-bold text-chart-5",children:D.summary.failed}),(0,r.jsx)("div",{className:"text-xs text-muted-foreground mt-1",children:"Failed"})]}),(0,r.jsxs)("div",{className:"bg-card border border-chart-3/30 rounded-lg p-4",children:[(0,r.jsx)("div",{className:"text-2xl font-bold text-chart-3",children:D.summary.blocked}),(0,r.jsx)("div",{className:"text-xs text-muted-foreground mt-1",children:"Blocked"})]}),(0,r.jsxs)("div",{className:"bg-card border border-chart-1/30 rounded-lg p-4",children:[(0,r.jsx)("div",{className:"text-2xl font-bold text-chart-1",children:D.summary.ready}),(0,r.jsx)("div",{className:"text-xs text-muted-foreground mt-1",children:"Ready"})]}),(0,r.jsxs)("div",{className:"bg-card border border-border rounded-lg p-4",children:[(0,r.jsxs)("div",{className:"text-2xl font-bold text-foreground",children:[Math.round(100*D.summary.successRate),"%"]}),(0,r.jsx)("div",{className:"text-xs text-muted-foreground mt-1",children:"Success Rate"})]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"text-xs font-semibold text-muted-foreground uppercase mb-3",children:"Slice Progress"}),(0,r.jsx)("div",{className:"space-y-3",children:Object.entries(D.slices).map(e=>{let[s,t]=e;return(0,r.jsxs)("div",{className:"bg-card border border-border rounded-lg p-4",children:[(0,r.jsxs)("div",{className:"flex justify-between mb-2",children:[(0,r.jsx)("span",{className:"font-semibold text-foreground",children:s}),(0,r.jsxs)("span",{className:"text-muted-foreground text-sm",children:[t.done,"/",t.total," (",t.progress,"%)"]})]}),(0,r.jsx)("div",{className:"w-full bg-muted rounded-full h-2",children:(0,r.jsx)("div",{className:"bg-chart-2 h-2 rounded-full transition-all",style:{width:"".concat(t.progress,"%")}})}),(0,r.jsxs)("div",{className:"flex gap-4 mt-3 text-xs",children:[(0,r.jsxs)("span",{className:"text-chart-2",children:["Done: ",t.done]}),(0,r.jsxs)("span",{className:"text-chart-5",children:["Failed: ",t.failed]}),(0,r.jsxs)("span",{className:"text-chart-3",children:["Blocked: ",t.blocked]}),(0,r.jsxs)("span",{className:"text-chart-1",children:["Ready: ",t.ready]})]})]},s)})})]}),Object.keys(L).length>0&&(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"text-xs font-semibold text-muted-foreground uppercase mb-3",children:"Agent Activity"}),(0,r.jsx)("div",{className:"space-y-2",children:Object.entries(L).map(e=>{let[s,t]=e;return(0,r.jsxs)("div",{className:"bg-card border border-border rounded-lg p-4",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(j.Z,{className:"size-4 text-chart-4"}),(0,r.jsx)("span",{className:"font-mono text-sm text-foreground",children:s})]}),(0,r.jsxs)("span",{className:"text-xs text-muted-foreground",children:[t.taskCount," tasks"]})]}),(0,r.jsxs)("div",{className:"flex gap-3 text-xs",children:[(0,r.jsxs)("span",{className:"text-chart-2",children:[t.done," done"]}),t.failed>0&&(0,r.jsxs)("span",{className:"text-chart-5",children:[t.failed," failed"]}),t.totalDuration>0&&(0,r.jsxs)("span",{className:"text-muted-foreground flex items-center gap-1",children:[(0,r.jsx)(h.Z,{className:"size-3"}),t.totalDuration.toFixed(1),"s total"]})]})]},s)})})]})]})})]})]})]}):(0,r.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,r.jsx)(E,{lines:["Select a task from the sidebar to view details","agent-scope init → create .agent-scope/","Define tasks in queue.md with dependencies","Agent logs progress to execution.log","Watch your workflow unfold in real-time"]})})})]})}}},function(e){e.O(0,[46,971,117,744],function(){return e(e.s=315)}),_N_E=e.O()}]);
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap");*,:after,:before{--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:rgba(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:rgba(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: }
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com
|
|
5
|
+
*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;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,pre,samp{font-family:JetBrains Mono,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,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{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}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}:root{--font-size:16px;--background:#fff;--foreground:#0a0a0a;--card:#fff;--card-foreground:#0a0a0a;--popover:#fff;--popover-foreground:#0a0a0a;--primary:#030213;--primary-foreground:#fff;--secondary:#f0f0f3;--secondary-foreground:#030213;--muted:#ececf0;--muted-foreground:#717182;--accent:#e9ebef;--accent-foreground:#030213;--destructive:#d4183d;--destructive-foreground:#fff;--border:rgba(0,0,0,.1);--input:transparent;--input-background:#f3f3f5;--ring:#b0b0b0;--radius:0.625rem;--chart-1:#e06030;--chart-2:#2aa08a;--chart-3:#3a6080;--chart-4:#d0a030;--chart-5:#c09030;--sidebar:#f8f8f8;--sidebar-foreground:#0a0a0a;--sidebar-primary:#030213;--sidebar-primary-foreground:#f8f8f8;--sidebar-accent:#f0f0f0;--sidebar-accent-foreground:#1a1a1a;--sidebar-border:#e0e0e0;--sidebar-ring:#b0b0b0}.dark{--background:#1a1a1a;--foreground:#f5f5f5;--card:#1a1a1a;--card-foreground:#f5f5f5;--popover:#1a1a1a;--popover-foreground:#f5f5f5;--primary:#f5f5f5;--primary-foreground:#1a1a1a;--secondary:#2a2a2a;--secondary-foreground:#f5f5f5;--muted:#2a2a2a;--muted-foreground:#a0a0a0;--accent:#2a2a2a;--accent-foreground:#f5f5f5;--destructive:#7f1d1d;--destructive-foreground:#ef4444;--border:#2a2a2a;--input:#2a2a2a;--ring:#555;--chart-1:#3b82f6;--chart-2:#22c55e;--chart-3:#f59e0b;--chart-4:#a855f7;--chart-5:#ef4444;--sidebar:#1e1e1e;--sidebar-foreground:#f5f5f5;--sidebar-primary:#3b82f6;--sidebar-primary-foreground:#f5f5f5;--sidebar-accent:#2a2a2a;--sidebar-accent-foreground:#f5f5f5;--sidebar-border:#2a2a2a;--sidebar-ring:#555}*{border-color:var(--border)}html{font-size:var(--font-size)}body{font-family:JetBrains Mono,monospace;color:var(--foreground);background:var(--background);font-feature-settings:"rlig" 1,"calt" 1}.absolute{position:absolute}.relative{position:relative}.left-3{left:.75rem}.top-1\/2{top:50%}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.ml-auto{margin-left:auto}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.size-2{width:.5rem;height:.5rem}.size-2\.5{width:.625rem;height:.625rem}.size-3{width:.75rem;height:.75rem}.size-3\.5{width:.875rem;height:.875rem}.size-4{width:1rem;height:1rem}.size-full{width:100%;height:100%}.h-1\.5{height:.375rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-8{height:2rem}.h-full{height:100%}.h-screen{height:100vh}.w-1\/2{width:50%}.w-2\.5{width:.625rem}.w-48{width:12rem}.w-\[220px\]{width:220px}.w-\[25\%\]{width:25%}.w-\[350px\]{width:350px}.w-full{width:100%}.min-w-0{min-width:0}.min-w-\[250px\]{min-width:250px}.min-w-\[280px\]{min-width:280px}.max-w-4xl{max-width:56rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.-translate-y-1\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes ping{75%,to{transform:scale(2);opacity:0}}.animate-ping{animation:ping 1s cubic-bezier(0,0,.2,1) infinite}.touch-none{touch-action:none}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.\!overflow-y-auto{overflow-y:auto!important}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.rounded{border-radius:.25rem}.rounded-\[inherit\]{border-radius:inherit}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-border{border-color:var(--border)}.border-destructive{border-color:var(--destructive)}.border-ring{border-color:var(--ring)}.border-sidebar-border{border-color:var(--sidebar-border)}.border-transparent{border-color:transparent}.border-l-transparent{border-left-color:transparent}.border-t-transparent{border-top-color:transparent}.bg-accent{background-color:var(--accent)}.bg-background{background-color:var(--background)}.bg-border{background-color:var(--border)}.bg-card{background-color:var(--card)}.bg-chart-1{background-color:var(--chart-1)}.bg-chart-2{background-color:var(--chart-2)}.bg-chart-3{background-color:var(--chart-3)}.bg-chart-4{background-color:var(--chart-4)}.bg-chart-5{background-color:var(--chart-5)}.bg-muted{background-color:var(--muted)}.bg-muted-foreground{background-color:var(--muted-foreground)}.bg-sidebar{background-color:var(--sidebar)}.p-0\.5{padding:.125rem}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-2\.5{padding:.625rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.p-px{padding:1px}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.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-8{padding-top:2rem;padding-bottom:2rem}.pl-8{padding-left:2rem}.pr-1{padding-right:.25rem}.pr-3{padding-right:.75rem}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.text-left{text-align:left}.text-center{text-align:center}.font-mono{font-family:JetBrains Mono,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-\[10px\]{font-size:10px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-relaxed{line-height:1.625}.tracking-wide{letter-spacing:.025em}.text-chart-1{color:var(--chart-1)}.text-chart-2{color:var(--chart-2)}.text-chart-3{color:var(--chart-3)}.text-chart-4{color:var(--chart-4)}.text-chart-5{color:var(--chart-5)}.text-destructive-foreground{color:var(--destructive-foreground)}.text-foreground{color:var(--foreground)}.text-muted-foreground{color:var(--muted-foreground)}.placeholder-muted-foreground::-moz-placeholder{color:var(--muted-foreground)}.placeholder-muted-foreground::placeholder{color:var(--muted-foreground)}.opacity-75{opacity:.75}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.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)}.transition-\[color\2c box-shadow\]{transition-property:color,box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.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}::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-track{background:var(--sidebar)}::-webkit-scrollbar-thumb{background:var(--border);border-radius:5px}::-webkit-scrollbar-thumb:hover{background:var(--muted-foreground)}@keyframes blink-caret{0%,to{border-color:transparent}50%{border-color:var(--muted-foreground)}}.typing-cursor{border-right:2px solid var(--muted-foreground);animation:blink-caret .8s step-end infinite}.hover\:bg-accent:hover{background-color:var(--accent)}.hover\:bg-sidebar-accent:hover{background-color:var(--sidebar-accent)}.hover\:text-foreground:hover{color:var(--foreground)}.focus\:border-ring:focus{border-color:var(--ring)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus-visible\:outline-1:focus-visible{outline-width:1px}.focus-visible\:ring-\[3px\]:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.\[\&\>div\]\:\!block>div{display:block!important}
|
package/dist/public/index.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="en" class="dark"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/css/
|
|
1
|
+
<!DOCTYPE html><html lang="en" class="dark"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/css/e8cdacecda7e3044.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-8658fdbc42bfbbae.js"/><script src="/_next/static/chunks/fd9d1056-9e191f0896c1d560.js" async=""></script><script src="/_next/static/chunks/117-c710cb30aa7ed4f8.js" async=""></script><script src="/_next/static/chunks/main-app-feb0e3b0cc6fb4c7.js" async=""></script><script src="/_next/static/chunks/46-3b308c2fb194eb7d.js" async=""></script><script src="/_next/static/chunks/app/page-a23aeddad1c9219d.js" async=""></script><title>agent-scope</title><meta name="description" content="Execution observer for AI agent workflows"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body><div class="h-screen bg-background flex items-center justify-center"><div class="text-muted-foreground">Loading...</div></div><script src="/_next/static/chunks/webpack-8658fdbc42bfbbae.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:HL[\"/_next/static/css/e8cdacecda7e3044.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"2:I[2846,[],\"\"]\n4:I[9107,[],\"ClientPageRoot\"]\n5:I[8205,[\"46\",\"static/chunks/46-3b308c2fb194eb7d.js\",\"931\",\"static/chunks/app/page-a23aeddad1c9219d.js\"],\"default\",1]\n6:I[4707,[],\"\"]\n7:I[6423,[],\"\"]\n9:I[1060,[],\"\"]\na:[]\n0:[\"$\",\"$L2\",null,{\"buildId\":\"efnniGzlp_oXwEMyLjbwF\",\"assetPrefix\":\"\",\"urlParts\":[\"\",\"\"],\"initialTree\":[\"\",{\"children\":[\"__PAGE__\",{}]},\"$undefined\",\"$undefined\",true],\"initialSeedData\":[\"\",{\"children\":[\"__PAGE__\",{},[[\"$L3\",[\"$\",\"$L4\",null,{\"props\":{\"params\":{},\"searchParams\":{}},\"Component\":\"$5\"}],null],null],null]},[[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/e8cdacecda7e3044.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"className\":\"dark\",\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"$L6\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L7\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"ch"])</script><script>self.__next_f.push([1,"ildren\":\"This page could not be found.\"}]}]]}]}]],\"notFoundStyles\":[]}]}]}]],null],null],\"couldBeIntercepted\":false,\"initialHead\":[null,\"$L8\"],\"globalErrorComponent\":\"$9\",\"missingSlots\":\"$Wa\"}]\n"])</script><script>self.__next_f.push([1,"8:[[\"$\",\"meta\",\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"1\",{\"charSet\":\"utf-8\"}],[\"$\",\"title\",\"2\",{\"children\":\"agent-scope\"}],[\"$\",\"meta\",\"3\",{\"name\":\"description\",\"content\":\"Execution observer for AI agent workflows\"}]]\n3:null\n"])</script></body></html>
|
package/dist/public/index.txt
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
2:I[9107,[],"ClientPageRoot"]
|
|
2
|
-
3:I[8205,["46","static/chunks/46-3b308c2fb194eb7d.js","931","static/chunks/app/page-
|
|
2
|
+
3:I[8205,["46","static/chunks/46-3b308c2fb194eb7d.js","931","static/chunks/app/page-a23aeddad1c9219d.js"],"default",1]
|
|
3
3
|
4:I[4707,[],""]
|
|
4
4
|
5:I[6423,[],""]
|
|
5
|
-
0:["
|
|
5
|
+
0:["efnniGzlp_oXwEMyLjbwF",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}],null],null],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/e8cdacecda7e3044.css","precedence":"next","crossOrigin":"$undefined"}]],["$","html",null,{"lang":"en","className":"dark","children":["$","body",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[]}]}]}]],null],null],["$L6",null]]]]
|
|
6
6
|
6:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"agent-scope"}],["$","meta","3",{"name":"description","content":"Execution observer for AI agent workflows"}]]
|
|
7
7
|
1:null
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{315:function(e,s,t){Promise.resolve().then(t.bind(t,8205))},8205:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return C}});var r=t(7437),a=t(2265),l=t(5287),n=t(3044),d=t(3247),c=t(2431),o=t(2222),i=t(401),x=t(8867),m=t(875),u=t(407),h=t(3136),f=t(1723),p=t(4972),g=t(9525),b=t(2208),j=t(9322),v=t(4967),N=t(1994),y=t(3335);function k(){for(var e=arguments.length,s=Array(e),t=0;t<e;t++)s[t]=arguments[t];return(0,y.m6)((0,N.W)(s))}function w(e){let{className:s,children:t,...a}=e;return(0,r.jsxs)(v.fC,{"data-slot":"scroll-area",className:k("relative overflow-hidden",s),...a,children:[(0,r.jsx)(v.l_,{"data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1 !overflow-y-auto [&>div]:!block",children:t}),(0,r.jsx)(E,{}),(0,r.jsx)(v.Ns,{})]})}function E(e){let{className:s,orientation:t="vertical",...a}=e;return(0,r.jsx)(v.gb,{"data-slot":"scroll-area-scrollbar",orientation:t,className:k("flex touch-none p-px transition-colors select-none","vertical"===t&&"h-full w-2.5 border-l border-l-transparent","horizontal"===t&&"h-2.5 flex-col border-t border-t-transparent",s),...a,children:(0,r.jsx)(v.q4,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}function C(){let[e,s]=(0,a.useState)("live"),[t,o]=(0,a.useState)({live:!1,plan:!1}),[i,x]=(0,a.useState)([]),[m,u]=(0,a.useState)(null),[h,f]=(0,a.useState)(null),[p,g]=(0,a.useState)(null),[b,j]=(0,a.useState)(null),[v,N]=(0,a.useState)(new Set),[y,k]=(0,a.useState)(!0),[w,E]=(0,a.useState)(null),[C,D]=(0,a.useState)(""),[z,L]=(0,a.useState)(!1),F=(0,a.useRef)(null);(0,a.useEffect)(()=>{fetch("/health").then(e=>e.json()).then(e=>{o(e.modes),e.modes.live?s("live"):e.modes.plan&&s("plan"),k(!1)}).catch(()=>{E("Failed to connect to server"),k(!1)})},[]);let O=(0,a.useCallback)(async()=>{try{let e=await fetch("/sessions");if(!e.ok)throw Error("Failed to fetch sessions");let s=await e.json();if(x(s.sessions),!m&&s.sessions.length>0&&u(s.sessions[0]),m){let e=s.sessions.find(e=>e.id===m.id);e&&u(e)}}catch(e){E(e instanceof Error?e.message:"Unknown error")}},[m]),Z=(0,a.useCallback)(async()=>{try{let e=await fetch("/snapshot");if(!e.ok)throw Error("Failed to fetch snapshot");let s=await e.json();g(s)}catch(e){E(e instanceof Error?e.message:"Unknown error")}},[]);(0,a.useEffect)(()=>{!y&&("live"===e&&t.live&&O(),"plan"===e&&t.plan&&Z())},[e,y,t]),(0,a.useEffect)(()=>{if(y)return;let s=new EventSource("/events");return F.current=s,s.onmessage=s=>{try{let t=JSON.parse(s.data);"sessions"===t.type&&"live"===e&&O(),"plan"===t.type&&"plan"===e&&Z()}catch(e){}},s.onerror=()=>{},()=>{s.close(),F.current=null}},[y,e,O,Z]);let A=e=>{navigator.clipboard.writeText(e),L(!0),setTimeout(()=>L(!1),2e3)},_=e=>{switch(e){case"DONE":case"completed":return"bg-chart-2/20 text-chart-2";case"FAILED":return"bg-chart-5/20 text-chart-5";case"BLOCKED":return"bg-chart-3/20 text-chart-3";case"READY":case"pending":return"bg-chart-1/20 text-chart-1";case"in_progress":return"bg-chart-4/20 text-chart-4";default:return"bg-muted text-muted-foreground"}};return y?(0,r.jsx)("div",{className:"h-screen bg-background flex items-center justify-center",children:(0,r.jsx)("div",{className:"text-muted-foreground",children:"Loading..."})}):!w||i.length||p?(0,r.jsxs)("div",{className:"h-screen bg-background flex flex-col overflow-hidden",children:[(0,r.jsxs)("div",{className:"bg-sidebar border-b border-sidebar-border px-4 py-2 flex items-center justify-between shrink-0",children:[(0,r.jsxs)("div",{className:"flex items-center gap-4",children:[(0,r.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,r.jsx)("h1",{className:"text-lg font-semibold text-foreground",children:"agent-scope"}),(0,r.jsx)("span",{className:"text-xs text-muted-foreground bg-muted px-2 py-0.5 rounded",children:"v0.2"})]}),(0,r.jsxs)("div",{className:"flex items-center bg-muted rounded-lg p-0.5",children:[t.live&&(0,r.jsxs)("button",{onClick:()=>s("live"),className:"flex items-center gap-1.5 px-3 py-1 rounded text-xs font-medium transition-colors ".concat("live"===e?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"),children:[(0,r.jsx)(l.Z,{className:"size-3"}),"Live"]}),t.plan&&(0,r.jsxs)("button",{onClick:()=>s("plan"),className:"flex items-center gap-1.5 px-3 py-1 rounded text-xs font-medium transition-colors ".concat("plan"===e?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"),children:[(0,r.jsx)(n.Z,{className:"size-3"}),"Plan"]})]})]}),(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(d.Z,{className:"absolute left-3 top-1/2 -translate-y-1/2 size-3.5 text-muted-foreground"}),(0,r.jsx)("input",{type:"text",placeholder:"Filter...",value:C,onChange:e=>D(e.target.value),className:"bg-background border border-border rounded-lg pl-8 pr-3 py-1.5 text-xs text-foreground placeholder-muted-foreground focus:outline-none focus:border-ring w-48"})]}),(0,r.jsx)("button",{onClick:()=>"live"===e?O():Z(),className:"p-1.5 rounded hover:bg-sidebar-accent transition-colors",children:(0,r.jsx)(c.Z,{className:"size-3.5 text-muted-foreground"})})]})]}),(0,r.jsx)("div",{className:"flex-1 flex overflow-hidden",children:"live"===e?(0,r.jsx)(S,{sessions:i,selectedSession:m,setSelectedSession:u,selectedTask:h,setSelectedTask:f,searchQuery:C,getStatusColor:_,getStatusDotColor:e=>{switch(e){case"DONE":case"completed":return"bg-chart-2";case"FAILED":return"bg-chart-5";case"BLOCKED":return"bg-chart-3";case"READY":case"pending":return"bg-chart-1";case"in_progress":return"bg-chart-4";default:return"bg-muted-foreground"}},getStatusLabel:e=>{switch(e){case"pending":return"PENDING";case"in_progress":return"IN PROGRESS";case"completed":return"COMPLETED";default:return e}},handleCopyTaskId:A,copiedTaskId:z}):(0,r.jsx)(T,{data:p,selectedTask:b,setSelectedTask:j,expandedSlices:v,toggleSlice:e=>{N(s=>{let t=new Set(s);return t.has(e)?t.delete(e):t.add(e),t})},searchQuery:C,getStatusColor:_,handleCopyTaskId:A,copiedTaskId:z})})]}):(0,r.jsx)("div",{className:"h-screen bg-background flex items-center justify-center",children:(0,r.jsxs)("div",{className:"text-destructive-foreground",children:["Error: ",w]})})}function S(e){let{sessions:s,selectedSession:t,setSelectedSession:a,selectedTask:l,setSelectedTask:n,searchQuery:d,getStatusColor:c,getStatusDotColor:m,getStatusLabel:u,handleCopyTaskId:h,copiedTaskId:f}=e;if(0===s.length)return(0,r.jsx)("div",{className:"flex-1 flex items-center justify-center",children:(0,r.jsxs)("div",{className:"text-center",children:[(0,r.jsx)(o.Z,{className:"size-12 text-muted-foreground/30 mx-auto mb-4"}),(0,r.jsx)("p",{className:"text-muted-foreground text-lg mb-2",children:"No sessions found"}),(0,r.jsx)("p",{className:"text-muted-foreground/60 text-sm",children:"Start a Claude Code session to see tasks here"})]})});let p=((null==t?void 0:t.tasks)||[]).filter(e=>e.subject.toLowerCase().includes(d.toLowerCase())||e.description.toLowerCase().includes(d.toLowerCase())||e.id.toLowerCase().includes(d.toLowerCase())),g=p.filter(e=>"pending"===e.status),b=p.filter(e=>"in_progress"===e.status),j=p.filter(e=>"completed"===e.status),v=e=>e.tasks.some(e=>"in_progress"===e.status),N=e=>0===e.tasks.length?0:Math.round(e.tasks.filter(e=>"completed"===e.status).length/e.tasks.length*100),y=e=>{let s=Math.floor((Date.now()-new Date(e).getTime())/6e4);if(s<1)return"just now";if(s<60)return"".concat(s,"m ago");let t=Math.floor(s/60);return t<24?"".concat(t,"h ago"):"".concat(Math.floor(t/24),"d ago")};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"w-[220px] bg-sidebar border-r border-sidebar-border flex flex-col",children:[(0,r.jsx)("div",{className:"p-3 border-b border-sidebar-border",children:(0,r.jsx)("span",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wide",children:"Sessions"})}),(0,r.jsx)(w,{className:"flex-1",children:(0,r.jsx)("div",{className:"p-2 space-y-1",children:s.map(e=>(0,r.jsxs)("button",{onClick:()=>{a(e),n(null)},className:"w-full text-left p-2.5 rounded-lg transition-colors ".concat((null==t?void 0:t.id)===e.id?"bg-accent border border-ring":"hover:bg-accent/50 border border-transparent"),children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[v(e)&&(0,r.jsxs)("span",{className:"relative flex size-2",children:[(0,r.jsx)("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-chart-2 opacity-75"}),(0,r.jsx)("span",{className:"relative inline-flex rounded-full size-2 bg-chart-2"})]}),(0,r.jsx)("span",{className:"text-xs font-mono text-foreground truncate",children:e.id.slice(0,8)})]}),(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("div",{className:"flex-1 bg-muted rounded-full h-1.5",children:(0,r.jsx)("div",{className:"bg-chart-2 h-1.5 rounded-full transition-all",style:{width:"".concat(N(e),"%")}})}),(0,r.jsxs)("span",{className:"text-[10px] text-muted-foreground shrink-0",children:[e.tasks.filter(e=>"completed"===e.status).length,"/",e.tasks.length]})]}),(0,r.jsx)("div",{className:"text-[10px] text-muted-foreground/60 mt-1",children:y(e.updatedAt)})]},e.id))})})]}),(0,r.jsx)("div",{className:"flex-1 flex flex-col overflow-hidden",children:t?(0,r.jsxs)("div",{className:"flex-1 flex overflow-hidden",children:[(0,r.jsxs)("div",{className:"flex-1 flex gap-4 p-4 overflow-x-auto",children:[(0,r.jsx)(D,{title:"Pending",count:g.length,tasks:g,statusColor:"chart-1",selectedTask:l,setSelectedTask:n,getStatusColor:c,getStatusLabel:u}),(0,r.jsx)(D,{title:"In Progress",count:b.length,tasks:b,statusColor:"chart-4",selectedTask:l,setSelectedTask:n,getStatusColor:c,getStatusLabel:u}),(0,r.jsx)(D,{title:"Completed",count:j.length,tasks:j,statusColor:"chart-2",selectedTask:l,setSelectedTask:n,getStatusColor:c,getStatusLabel:u})]}),l&&(0,r.jsxs)("div",{className:"w-[350px] bg-sidebar border-l border-border flex flex-col shrink-0",children:[(0,r.jsxs)("div",{className:"p-4 border-b border-border flex items-center justify-between",children:[(0,r.jsx)("span",{className:"text-xs px-2 py-0.5 rounded font-semibold ".concat(c(l.status)),children:u(l.status)}),(0,r.jsx)("button",{onClick:()=>n(null),className:"text-muted-foreground hover:text-foreground text-sm",children:"\xd7"})]}),(0,r.jsx)(w,{className:"flex-1",children:(0,r.jsxs)("div",{className:"p-4 space-y-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"text-sm font-semibold text-foreground mb-1",children:l.subject}),"in_progress"===l.status&&l.activeForm&&(0,r.jsx)("p",{className:"text-xs text-chart-4 italic",children:l.activeForm})]}),l.description&&(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"text-xs font-semibold text-muted-foreground uppercase mb-1",children:"Description"}),(0,r.jsx)("p",{className:"text-xs text-foreground/80 leading-relaxed whitespace-pre-wrap",children:l.description})]}),l.blockedBy.length>0&&(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"text-xs font-semibold text-muted-foreground uppercase mb-1",children:"Blocked By"}),(0,r.jsx)("div",{className:"flex flex-wrap gap-1",children:l.blockedBy.map(e=>(0,r.jsxs)("span",{className:"text-xs bg-chart-3/20 text-chart-3 px-2 py-0.5 rounded",children:["Task #",e]},e))})]}),l.blocks.length>0&&(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"text-xs font-semibold text-muted-foreground uppercase mb-1",children:"Blocks"}),(0,r.jsx)("div",{className:"flex flex-wrap gap-1",children:l.blocks.map(e=>(0,r.jsxs)("span",{className:"text-xs bg-muted text-muted-foreground px-2 py-0.5 rounded",children:["Task #",e]},e))})]}),(0,r.jsx)("div",{className:"pt-2 border-t border-border",children:(0,r.jsx)("button",{onClick:()=>h(l.id),className:"flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground transition-colors",children:f?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.Z,{className:"size-3 text-chart-2"}),(0,r.jsx)("span",{className:"text-chart-2",children:"Copied"})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x.Z,{className:"size-3"}),(0,r.jsxs)("span",{children:["Copy ID: ",l.id]})]})})})]})})]})]}):(0,r.jsx)("div",{className:"flex-1 flex items-center justify-center",children:(0,r.jsx)("div",{className:"text-center",children:(0,r.jsx)("p",{className:"text-muted-foreground",children:"Select a session from the sidebar"})})})})]})}function D(e){let{title:s,count:t,tasks:a,statusColor:l,selectedTask:n,setSelectedTask:d,getStatusColor:c,getStatusLabel:o}=e;return(0,r.jsxs)("div",{className:"flex-1 min-w-[250px] flex flex-col",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 mb-3 px-1",children:[(0,r.jsx)("div",{className:"size-2 rounded-full bg-".concat(l)}),(0,r.jsx)("span",{className:"text-xs font-semibold text-muted-foreground uppercase",children:s}),(0,r.jsx)("span",{className:"text-xs text-muted-foreground/60 bg-muted px-1.5 py-0.5 rounded",children:t})]}),(0,r.jsx)(w,{className:"flex-1",children:(0,r.jsxs)("div",{className:"space-y-2 pr-1",children:[a.map(e=>(0,r.jsxs)("button",{onClick:()=>d(e),className:"w-full text-left p-3 rounded-lg border transition-colors ".concat((null==n?void 0:n.id)===e.id?"bg-accent border-ring":"bg-card border-border hover:bg-accent/50"),children:[(0,r.jsx)("div",{className:"flex items-center justify-between mb-1",children:(0,r.jsxs)("span",{className:"text-[10px] text-muted-foreground font-mono",children:["#",e.id]})}),(0,r.jsx)("p",{className:"text-sm text-foreground line-clamp-2 mb-1",children:e.subject}),"in_progress"===e.status&&e.activeForm&&(0,r.jsx)("p",{className:"text-xs text-chart-4 italic truncate",children:e.activeForm}),e.blockedBy.length>0&&(0,r.jsx)("div",{className:"flex items-center gap-1 mt-1.5",children:(0,r.jsx)("span",{className:"text-[10px] bg-chart-3/20 text-chart-3 px-1.5 py-0.5 rounded",children:"Blocked"})})]},e.id)),0===a.length&&(0,r.jsx)("div",{className:"text-center py-8 text-muted-foreground/40 text-xs",children:"No tasks"})]})})]})}function T(e){var s,t,a,l,n;let{data:d,selectedTask:c,setSelectedTask:v,expandedSlices:N,toggleSlice:y,searchQuery:k,getStatusColor:E,handleCopyTaskId:C,copiedTaskId:S}=e;if(!d||!d.snapshot)return(0,r.jsx)("div",{className:"flex-1 p-8",children:(0,r.jsx)("div",{className:"max-w-4xl mx-auto",children:(0,r.jsxs)("div",{className:"bg-destructive/10 border border-destructive rounded-lg p-6",children:[(0,r.jsx)("h2",{className:"text-xl font-bold text-destructive-foreground mb-4",children:(null==d?void 0:null===(l=d.queueErrors)||void 0===l?void 0:l.length)?"Queue Parse Errors":"Plan Mode Not Available"}),(0,r.jsx)("div",{className:"space-y-2",children:(null==d?void 0:null===(n=d.queueErrors)||void 0===n?void 0:n.map((e,s)=>(0,r.jsx)("div",{className:"text-destructive-foreground text-sm",children:e},s)))||(0,r.jsx)("div",{className:"text-muted-foreground text-sm",children:'Run "agent-scope init" to set up Plan mode'})})]})})});let D=d.snapshot,T=D.tasks.filter(e=>e.description.toLowerCase().includes(k.toLowerCase())||e.id.toLowerCase().includes(k.toLowerCase())).reduce((e,s)=>(e[s.slice]||(e[s.slice]=[]),e[s.slice].push(s),e),{}),z=e=>D.tasks.filter(s=>s.dependsOn.includes(e)),L=D.tasks.reduce((e,s)=>{if(s.lastEvent){var t;let r=s.lastEvent.agent;e[r]||(e[r]={done:0,failed:0,totalDuration:0,taskCount:0}),e[r].taskCount++,"DONE"===s.lastEvent.status&&e[r].done++,"FAILED"===s.lastEvent.status&&e[r].failed++;let a=null===(t=s.lastEvent.meta)||void 0===t?void 0:t.duration;"number"==typeof a&&(e[r].totalDuration+=a)}return e},{});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"w-[25%] min-w-[280px] bg-sidebar border-r border-sidebar-border flex flex-col",children:(0,r.jsx)(w,{className:"flex-1",children:(0,r.jsx)("div",{className:"p-3 space-y-3",children:Object.entries(T).map(e=>{let[s,t]=e;return(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsxs)("button",{onClick:()=>y(s),className:"w-full flex items-center justify-between px-2 py-1.5 bg-muted rounded text-xs font-semibold text-muted-foreground hover:bg-muted/80 transition-colors",children:[(0,r.jsxs)("div",{className:"flex items-center gap-1.5",children:[N.has(s)?(0,r.jsx)(m.Z,{className:"size-3.5"}):(0,r.jsx)(u.Z,{className:"size-3.5"}),(0,r.jsxs)("span",{children:[s," • ",t.length," tasks"]})]}),(0,r.jsxs)("span",{className:"text-muted-foreground/60",children:[t.filter(e=>"DONE"===e.status).length,"/",t.length]})]}),N.has(s)&&t.map(e=>{var s,t;return(0,r.jsxs)("button",{onClick:()=>v(e),className:"w-full text-left p-3 rounded-lg border transition-colors ".concat((null==c?void 0:c.id)===e.id?"bg-accent border-ring":"bg-card border-border hover:bg-accent/50"),children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-1.5",children:[(0,r.jsx)("span",{className:"text-sm font-mono text-foreground",children:e.id}),(0,r.jsx)("span",{className:"text-xs px-2 py-0.5 rounded font-semibold ".concat(E(e.status)),children:e.status})]}),(0,r.jsx)("div",{className:"text-sm text-muted-foreground line-clamp-2",children:e.description}),(0,r.jsxs)("div",{className:"flex items-center gap-2 mt-1",children:[(0,r.jsx)("span",{className:"text-xs text-muted-foreground/60",children:e.area}),"string"==typeof(null===(t=e.lastEvent)||void 0===t?void 0:null===(s=t.meta)||void 0===s?void 0:s.commit)&&(0,r.jsxs)("span",{className:"flex items-center gap-1 text-[10px] text-chart-4/70 font-mono",children:[(0,r.jsx)(h.Z,{className:"size-2.5"}),String(e.lastEvent.meta.commit).slice(0,7)]})]})]},e.id)})]},s)})})})}),(0,r.jsx)("div",{className:"flex-1 flex flex-col overflow-hidden",children:c?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"bg-sidebar border-b border-border p-6",children:[(0,r.jsx)("h2",{className:"text-2xl font-semibold text-foreground mb-3",children:c.description}),(0,r.jsxs)("div",{className:"flex items-center gap-4 text-sm text-muted-foreground",children:[(0,r.jsxs)("span",{children:["Task: ",c.id]}),(0,r.jsx)("span",{children:"•"}),(0,r.jsxs)("span",{children:["Area: ",c.area]}),(0,r.jsx)("span",{children:"•"}),(0,r.jsx)("span",{className:"px-2 py-1 rounded text-xs font-semibold ".concat(E(c.status)),children:c.status}),(0,r.jsx)("div",{className:"flex-1"}),(0,r.jsx)("button",{onClick:()=>C(c.id),className:"flex items-center gap-1.5 px-3 py-1.5 rounded hover:bg-accent transition-colors",children:S?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.Z,{className:"size-3.5 text-chart-2"}),(0,r.jsx)("span",{className:"text-chart-2",children:"Copied"})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x.Z,{className:"size-3.5"}),(0,r.jsx)("span",{children:"Copy ID"})]})})]})]}),(0,r.jsxs)("div",{className:"flex-1 flex overflow-hidden",children:[(0,r.jsxs)("div",{className:"w-1/2 border-r border-border flex flex-col",children:[(0,r.jsx)("div",{className:"bg-sidebar border-b border-border px-4 py-2",children:(0,r.jsx)("h3",{className:"text-sm font-semibold text-foreground uppercase tracking-wide",children:"Task Details"})}),(0,r.jsx)(w,{className:"flex-1",children:(0,r.jsxs)("div",{className:"p-6 space-y-6",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"text-xs font-semibold text-muted-foreground uppercase mb-2",children:"Acceptance Criteria"}),(0,r.jsx)("p",{className:"text-sm text-foreground/80 leading-relaxed",children:c.acceptanceCriteria})]}),c.dependsOn.length>0&&(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"text-xs font-semibold text-muted-foreground uppercase mb-2",children:"Dependencies"}),(0,r.jsx)("div",{className:"space-y-2",children:c.dependsOn.map(e=>{let s=D.tasks.find(s=>s.id===e);return(0,r.jsx)("button",{onClick:()=>s&&v(s),className:"w-full text-left p-3 rounded-lg bg-card border border-border hover:bg-accent/50 transition-colors",children:(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("span",{className:"text-sm font-mono text-foreground",children:e}),s&&(0,r.jsx)("span",{className:"text-xs px-2 py-0.5 rounded font-semibold ".concat(E(s.status)),children:s.status})]})},e)})})]}),z(c.id).length>0&&(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"text-xs font-semibold text-muted-foreground uppercase mb-2",children:"Blocks These Tasks"}),(0,r.jsx)("div",{className:"space-y-2",children:z(c.id).map(e=>(0,r.jsx)("button",{onClick:()=>v(e),className:"w-full text-left p-3 rounded-lg bg-card border border-border hover:bg-accent/50 transition-colors",children:(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("span",{className:"text-sm font-mono text-foreground",children:e.id}),(0,r.jsx)("span",{className:"text-xs px-2 py-0.5 rounded font-semibold ".concat(E(e.status)),children:e.status})]})},e.id))})]}),c.lastEvent&&(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"text-xs font-semibold text-muted-foreground uppercase mb-2",children:"Execution"}),(0,r.jsxs)("div",{className:"bg-card rounded-lg p-4 space-y-3 text-sm border border-border",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("span",{className:"text-foreground font-mono",children:c.lastEvent.agent}),(0,r.jsx)("span",{className:"px-2 py-0.5 rounded text-xs font-semibold ".concat(E(c.lastEvent.status)),children:c.lastEvent.status})]}),(0,r.jsx)("span",{className:"text-muted-foreground text-xs",children:new Date(c.lastEvent.timestamp).toLocaleString()})]}),c.lastEvent.reason&&(0,r.jsx)("div",{className:"text-xs text-chart-3 bg-chart-3/10 p-2 rounded",children:c.lastEvent.reason}),(null===(s=c.lastEvent.meta)||void 0===s?void 0:s.duration)!=null&&(0,r.jsxs)("div",{className:"flex items-center gap-4 text-xs text-muted-foreground",children:[(0,r.jsxs)("span",{className:"flex items-center gap-1",children:[(0,r.jsx)(f.Z,{className:"size-3"}),String(c.lastEvent.meta.duration),"s"]}),null!=c.lastEvent.meta.stepCount&&(0,r.jsxs)("span",{children:[String(c.lastEvent.meta.stepCount)," steps"]})]}),"string"==typeof(null===(t=c.lastEvent.meta)||void 0===t?void 0:t.commit)&&(0,r.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 bg-background rounded-md",children:[(0,r.jsx)(h.Z,{className:"size-3.5 text-chart-4 shrink-0"}),(0,r.jsx)("code",{className:"text-xs text-chart-4 font-mono",children:String(c.lastEvent.meta.commit).slice(0,7)}),(0,r.jsx)("span",{className:"text-xs text-muted-foreground truncate",children:String(c.lastEvent.meta.commitMsg||"")})]}),Array.isArray(null===(a=c.lastEvent.meta)||void 0===a?void 0:a.steps)&&(0,r.jsx)("div",{className:"mt-2 pt-3 border-t border-border space-y-1",children:c.lastEvent.meta.steps.map((e,s)=>(0,r.jsxs)("div",{className:"flex items-start gap-2 py-1.5 px-2 rounded hover:bg-background/50",children:[(0,r.jsxs)("div",{className:"mt-0.5",children:["thought"===e.type&&(0,r.jsx)(p.Z,{className:"size-3.5 text-chart-4"}),"tool_call"===e.type&&(0,r.jsx)(g.Z,{className:"size-3.5 text-chart-1"}),"observation"===e.type&&(0,r.jsx)(b.Z,{className:"size-3.5 text-chart-2"}),"error"===e.type&&(0,r.jsx)(j.Z,{className:"size-3.5 text-chart-5"})]}),(0,r.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,r.jsx)("span",{className:"text-xs font-medium text-foreground truncate",children:e.name}),(0,r.jsxs)("span",{className:"text-[10px] text-muted-foreground/60 shrink-0",children:[e.duration,"ms"]})]}),(0,r.jsx)("p",{className:"text-xs text-muted-foreground/80 truncate",children:e.summary})]})]},s))}),c.lastEvent.meta&&!Array.isArray(c.lastEvent.meta.steps)&&(0,r.jsx)("div",{className:"mt-2 pt-3 border-t border-border",children:(0,r.jsx)("pre",{className:"text-xs text-muted-foreground bg-background p-2 rounded overflow-auto",children:JSON.stringify(c.lastEvent.meta,null,2)})})]})]})]})})]}),(0,r.jsxs)("div",{className:"w-1/2 flex flex-col",children:[(0,r.jsx)("div",{className:"bg-sidebar border-b border-border px-4 py-2",children:(0,r.jsx)("h3",{className:"text-sm font-semibold text-foreground uppercase tracking-wide",children:"Overview"})}),(0,r.jsx)(w,{className:"flex-1",children:(0,r.jsxs)("div",{className:"p-6 space-y-6",children:[(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,r.jsxs)("div",{className:"bg-card border border-border rounded-lg p-4",children:[(0,r.jsx)("div",{className:"text-2xl font-bold text-foreground",children:D.summary.total}),(0,r.jsx)("div",{className:"text-xs text-muted-foreground mt-1",children:"Total Tasks"})]}),(0,r.jsxs)("div",{className:"bg-card border border-chart-2/30 rounded-lg p-4",children:[(0,r.jsx)("div",{className:"text-2xl font-bold text-chart-2",children:D.summary.done}),(0,r.jsx)("div",{className:"text-xs text-muted-foreground mt-1",children:"Done"})]}),(0,r.jsxs)("div",{className:"bg-card border border-chart-5/30 rounded-lg p-4",children:[(0,r.jsx)("div",{className:"text-2xl font-bold text-chart-5",children:D.summary.failed}),(0,r.jsx)("div",{className:"text-xs text-muted-foreground mt-1",children:"Failed"})]}),(0,r.jsxs)("div",{className:"bg-card border border-chart-3/30 rounded-lg p-4",children:[(0,r.jsx)("div",{className:"text-2xl font-bold text-chart-3",children:D.summary.blocked}),(0,r.jsx)("div",{className:"text-xs text-muted-foreground mt-1",children:"Blocked"})]}),(0,r.jsxs)("div",{className:"bg-card border border-chart-1/30 rounded-lg p-4",children:[(0,r.jsx)("div",{className:"text-2xl font-bold text-chart-1",children:D.summary.ready}),(0,r.jsx)("div",{className:"text-xs text-muted-foreground mt-1",children:"Ready"})]}),(0,r.jsxs)("div",{className:"bg-card border border-border rounded-lg p-4",children:[(0,r.jsxs)("div",{className:"text-2xl font-bold text-foreground",children:[Math.round(100*D.summary.successRate),"%"]}),(0,r.jsx)("div",{className:"text-xs text-muted-foreground mt-1",children:"Success Rate"})]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"text-xs font-semibold text-muted-foreground uppercase mb-3",children:"Slice Progress"}),(0,r.jsx)("div",{className:"space-y-3",children:Object.entries(D.slices).map(e=>{let[s,t]=e;return(0,r.jsxs)("div",{className:"bg-card border border-border rounded-lg p-4",children:[(0,r.jsxs)("div",{className:"flex justify-between mb-2",children:[(0,r.jsx)("span",{className:"font-semibold text-foreground",children:s}),(0,r.jsxs)("span",{className:"text-muted-foreground text-sm",children:[t.done,"/",t.total," (",t.progress,"%)"]})]}),(0,r.jsx)("div",{className:"w-full bg-muted rounded-full h-2",children:(0,r.jsx)("div",{className:"bg-chart-2 h-2 rounded-full transition-all",style:{width:"".concat(t.progress,"%")}})}),(0,r.jsxs)("div",{className:"flex gap-4 mt-3 text-xs",children:[(0,r.jsxs)("span",{className:"text-chart-2",children:["Done: ",t.done]}),(0,r.jsxs)("span",{className:"text-chart-5",children:["Failed: ",t.failed]}),(0,r.jsxs)("span",{className:"text-chart-3",children:["Blocked: ",t.blocked]}),(0,r.jsxs)("span",{className:"text-chart-1",children:["Ready: ",t.ready]})]})]},s)})})]}),Object.keys(L).length>0&&(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"text-xs font-semibold text-muted-foreground uppercase mb-3",children:"Agent Activity"}),(0,r.jsx)("div",{className:"space-y-2",children:Object.entries(L).map(e=>{let[s,t]=e;return(0,r.jsxs)("div",{className:"bg-card border border-border rounded-lg p-4",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(o.Z,{className:"size-4 text-chart-4"}),(0,r.jsx)("span",{className:"font-mono text-sm text-foreground",children:s})]}),(0,r.jsxs)("span",{className:"text-xs text-muted-foreground",children:[t.taskCount," tasks"]})]}),(0,r.jsxs)("div",{className:"flex gap-3 text-xs",children:[(0,r.jsxs)("span",{className:"text-chart-2",children:[t.done," done"]}),t.failed>0&&(0,r.jsxs)("span",{className:"text-chart-5",children:[t.failed," failed"]}),t.totalDuration>0&&(0,r.jsxs)("span",{className:"text-muted-foreground flex items-center gap-1",children:[(0,r.jsx)(f.Z,{className:"size-3"}),t.totalDuration.toFixed(1),"s total"]})]})]},s)})})]})]})})]})]})]}):(0,r.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,r.jsxs)("div",{className:"text-center",children:[(0,r.jsx)("p",{className:"text-muted-foreground text-lg mb-2",children:"No task selected"}),(0,r.jsx)("p",{className:"text-muted-foreground/60 text-sm",children:"Select a task from the sidebar to view details"})]})})})]})}}},function(e){e.O(0,[46,971,117,744],function(){return e(e.s=315)}),_N_E=e.O()}]);
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap");*,:after,:before{--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:rgba(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:rgba(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: }
|
|
2
|
-
|
|
3
|
-
/*
|
|
4
|
-
! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com
|
|
5
|
-
*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;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,pre,samp{font-family:JetBrains Mono,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,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{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}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}:root{--font-size:16px;--background:#fff;--foreground:#0a0a0a;--card:#fff;--card-foreground:#0a0a0a;--popover:#fff;--popover-foreground:#0a0a0a;--primary:#030213;--primary-foreground:#fff;--secondary:#f0f0f3;--secondary-foreground:#030213;--muted:#ececf0;--muted-foreground:#717182;--accent:#e9ebef;--accent-foreground:#030213;--destructive:#d4183d;--destructive-foreground:#fff;--border:rgba(0,0,0,.1);--input:transparent;--input-background:#f3f3f5;--ring:#b0b0b0;--radius:0.625rem;--chart-1:#e06030;--chart-2:#2aa08a;--chart-3:#3a6080;--chart-4:#d0a030;--chart-5:#c09030;--sidebar:#f8f8f8;--sidebar-foreground:#0a0a0a;--sidebar-primary:#030213;--sidebar-primary-foreground:#f8f8f8;--sidebar-accent:#f0f0f0;--sidebar-accent-foreground:#1a1a1a;--sidebar-border:#e0e0e0;--sidebar-ring:#b0b0b0}.dark{--background:#1a1a1a;--foreground:#f5f5f5;--card:#1a1a1a;--card-foreground:#f5f5f5;--popover:#1a1a1a;--popover-foreground:#f5f5f5;--primary:#f5f5f5;--primary-foreground:#1a1a1a;--secondary:#2a2a2a;--secondary-foreground:#f5f5f5;--muted:#2a2a2a;--muted-foreground:#a0a0a0;--accent:#2a2a2a;--accent-foreground:#f5f5f5;--destructive:#7f1d1d;--destructive-foreground:#ef4444;--border:#2a2a2a;--input:#2a2a2a;--ring:#555;--chart-1:#3b82f6;--chart-2:#22c55e;--chart-3:#f59e0b;--chart-4:#a855f7;--chart-5:#ef4444;--sidebar:#1e1e1e;--sidebar-foreground:#f5f5f5;--sidebar-primary:#3b82f6;--sidebar-primary-foreground:#f5f5f5;--sidebar-accent:#2a2a2a;--sidebar-accent-foreground:#f5f5f5;--sidebar-border:#2a2a2a;--sidebar-ring:#555}*{border-color:var(--border)}html{font-size:var(--font-size)}body{font-family:JetBrains Mono,monospace;color:var(--foreground);background:var(--background);font-feature-settings:"rlig" 1,"calt" 1}.absolute{position:absolute}.relative{position:relative}.left-3{left:.75rem}.top-1\/2{top:50%}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.size-12{width:3rem;height:3rem}.size-2{width:.5rem;height:.5rem}.size-2\.5{width:.625rem;height:.625rem}.size-3{width:.75rem;height:.75rem}.size-3\.5{width:.875rem;height:.875rem}.size-4{width:1rem;height:1rem}.size-full{width:100%;height:100%}.h-1\.5{height:.375rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-full{height:100%}.h-screen{height:100vh}.w-1\/2{width:50%}.w-2\.5{width:.625rem}.w-48{width:12rem}.w-\[220px\]{width:220px}.w-\[25\%\]{width:25%}.w-\[350px\]{width:350px}.w-full{width:100%}.min-w-0{min-width:0}.min-w-\[250px\]{min-width:250px}.min-w-\[280px\]{min-width:280px}.max-w-4xl{max-width:56rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.-translate-y-1\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes ping{75%,to{transform:scale(2);opacity:0}}.animate-ping{animation:ping 1s cubic-bezier(0,0,.2,1) infinite}.touch-none{touch-action:none}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.\!overflow-y-auto{overflow-y:auto!important}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.rounded{border-radius:.25rem}.rounded-\[inherit\]{border-radius:inherit}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-border{border-color:var(--border)}.border-destructive{border-color:var(--destructive)}.border-ring{border-color:var(--ring)}.border-sidebar-border{border-color:var(--sidebar-border)}.border-transparent{border-color:transparent}.border-l-transparent{border-left-color:transparent}.border-t-transparent{border-top-color:transparent}.bg-accent{background-color:var(--accent)}.bg-background{background-color:var(--background)}.bg-border{background-color:var(--border)}.bg-card{background-color:var(--card)}.bg-chart-1{background-color:var(--chart-1)}.bg-chart-2{background-color:var(--chart-2)}.bg-chart-3{background-color:var(--chart-3)}.bg-chart-4{background-color:var(--chart-4)}.bg-chart-5{background-color:var(--chart-5)}.bg-muted{background-color:var(--muted)}.bg-muted-foreground{background-color:var(--muted-foreground)}.bg-sidebar{background-color:var(--sidebar)}.p-0\.5{padding:.125rem}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-2\.5{padding:.625rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.p-px{padding:1px}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.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-8{padding-top:2rem;padding-bottom:2rem}.pl-8{padding-left:2rem}.pr-1{padding-right:.25rem}.pr-3{padding-right:.75rem}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.text-left{text-align:left}.text-center{text-align:center}.font-mono{font-family:JetBrains Mono,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\[10px\]{font-size:10px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-relaxed{line-height:1.625}.tracking-wide{letter-spacing:.025em}.text-chart-1{color:var(--chart-1)}.text-chart-2{color:var(--chart-2)}.text-chart-3{color:var(--chart-3)}.text-chart-4{color:var(--chart-4)}.text-chart-5{color:var(--chart-5)}.text-destructive-foreground{color:var(--destructive-foreground)}.text-foreground{color:var(--foreground)}.text-muted-foreground{color:var(--muted-foreground)}.placeholder-muted-foreground::-moz-placeholder{color:var(--muted-foreground)}.placeholder-muted-foreground::placeholder{color:var(--muted-foreground)}.opacity-75{opacity:.75}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.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)}.transition-\[color\2c box-shadow\]{transition-property:color,box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.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}::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-track{background:var(--sidebar)}::-webkit-scrollbar-thumb{background:var(--border);border-radius:5px}::-webkit-scrollbar-thumb:hover{background:var(--muted-foreground)}.hover\:bg-accent:hover{background-color:var(--accent)}.hover\:bg-sidebar-accent:hover{background-color:var(--sidebar-accent)}.hover\:text-foreground:hover{color:var(--foreground)}.focus\:border-ring:focus{border-color:var(--ring)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus-visible\:outline-1:focus-visible{outline-width:1px}.focus-visible\:ring-\[3px\]:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.\[\&\>div\]\:\!block>div{display:block!important}
|
/package/dist/public/_next/static/{K7T78-L0ry_e7hJ3Vq9AC → efnniGzlp_oXwEMyLjbwF}/_buildManifest.js
RENAMED
|
File without changes
|
/package/dist/public/_next/static/{K7T78-L0ry_e7hJ3Vq9AC → efnniGzlp_oXwEMyLjbwF}/_ssgManifest.js
RENAMED
|
File without changes
|