agent-scope 0.5.0 → 0.5.2
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/README.md +10 -5
- package/dist/cli.js +1 -1
- package/dist/public/404/index.html +1 -1
- package/dist/public/404.html +1 -1
- package/dist/public/__next.__PAGE__.txt +2 -2
- package/dist/public/__next._full.txt +3 -3
- package/dist/public/__next._head.txt +1 -1
- package/dist/public/__next._index.txt +2 -2
- package/dist/public/__next._tree.txt +2 -2
- package/dist/public/_next/static/chunks/bfa1988f6340e536.css +2 -0
- package/dist/public/_next/static/chunks/d9f65f2b51efa168.js +2 -0
- package/dist/public/_not-found/__next._full.txt +2 -2
- package/dist/public/_not-found/__next._head.txt +1 -1
- package/dist/public/_not-found/__next._index.txt +2 -2
- package/dist/public/_not-found/__next._not-found.__PAGE__.txt +1 -1
- package/dist/public/_not-found/__next._not-found.txt +1 -1
- package/dist/public/_not-found/__next._tree.txt +2 -2
- package/dist/public/_not-found/index.html +1 -1
- package/dist/public/_not-found/index.txt +2 -2
- package/dist/public/index.html +1 -1
- package/dist/public/index.txt +3 -3
- package/dist/server/routes/live.d.ts +9 -0
- package/dist/server/routes/live.d.ts.map +1 -0
- package/dist/server/routes/live.js +53 -0
- package/dist/server/routes/live.js.map +1 -0
- package/dist/server/routes/observability.d.ts +6 -0
- package/dist/server/routes/observability.d.ts.map +1 -0
- package/dist/server/routes/observability.js +18 -0
- package/dist/server/routes/observability.js.map +1 -0
- package/dist/server/routes/plan.d.ts +7 -0
- package/dist/server/routes/plan.d.ts.map +1 -0
- package/dist/server/routes/plan.js +134 -0
- package/dist/server/routes/plan.js.map +1 -0
- package/dist/server/server.d.ts.map +1 -1
- package/dist/server/server.js +14 -268
- package/dist/server/server.js.map +1 -1
- package/package.json +1 -1
- package/dist/public/_next/static/chunks/9d942f371db80ae5.css +0 -2
- package/dist/public/_next/static/chunks/ac8ad6bf034ff528.js +0 -2
- /package/dist/public/_next/static/{u4-iykRCgYzYIvXiFEi6J → UOQywBBR87e2cRZshQP60}/_buildManifest.js +0 -0
- /package/dist/public/_next/static/{u4-iykRCgYzYIvXiFEi6J → UOQywBBR87e2cRZshQP60}/_clientMiddlewareManifest.json +0 -0
- /package/dist/public/_next/static/{u4-iykRCgYzYIvXiFEi6J → UOQywBBR87e2cRZshQP60}/_ssgManifest.js +0 -0
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ See what your AI agent is actually doing.
|
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/agent-scope)
|
|
6
6
|
[](https://opensource.org/licenses/MIT)
|
|
7
|
-
[](https://github.com/yunusemrgrl/agent-scope/actions/workflows/ci.yml)
|
|
8
8
|
|
|
9
9
|
---
|
|
10
10
|
|
|
@@ -15,7 +15,7 @@ You tell Claude Code to refactor your auth system. It says "on it." You wait. Te
|
|
|
15
15
|
agent-scope fixes that. One command, zero config. It reads Claude Code's own task files and gives you a live Kanban board.
|
|
16
16
|
|
|
17
17
|
```bash
|
|
18
|
-
npx agent-scope start
|
|
18
|
+
npx -y agent-scope@latest start
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
That's it. Open `localhost:4317`. Watch your agent work.
|
|
@@ -54,11 +54,12 @@ Live mode is the default. Plan mode adds dependencies, acceptance criteria, and
|
|
|
54
54
|
## Install
|
|
55
55
|
|
|
56
56
|
```bash
|
|
57
|
-
#
|
|
58
|
-
npx agent-scope start
|
|
57
|
+
# Zero-install, always latest
|
|
58
|
+
npx -y agent-scope@latest start
|
|
59
59
|
|
|
60
60
|
# Or install globally
|
|
61
61
|
npm i -g agent-scope
|
|
62
|
+
agent-scope start
|
|
62
63
|
```
|
|
63
64
|
|
|
64
65
|
### Plan mode
|
|
@@ -125,7 +126,7 @@ Append-only JSONL:
|
|
|
125
126
|
{"task_id":"S1-T3","status":"BLOCKED","reason":"API key missing","timestamp":"2026-02-16T14:35:00Z","agent":"claude"}
|
|
126
127
|
```
|
|
127
128
|
|
|
128
|
-
##
|
|
129
|
+
## Observability Features
|
|
129
130
|
|
|
130
131
|
### Quality Gates
|
|
131
132
|
|
|
@@ -197,6 +198,10 @@ npm run dev # Dev server with watch
|
|
|
197
198
|
|
|
198
199
|
TypeScript, Fastify, chokidar, SSE, Next.js, Tailwind, Vitest.
|
|
199
200
|
|
|
201
|
+
## Contributing
|
|
202
|
+
|
|
203
|
+
PRs welcome. Open an issue first for anything beyond small fixes. See [CHANGELOG.md](CHANGELOG.md) for release history.
|
|
204
|
+
|
|
200
205
|
## License
|
|
201
206
|
|
|
202
207
|
MIT
|
package/dist/cli.js
CHANGED
|
@@ -8,7 +8,7 @@ const program = new Command();
|
|
|
8
8
|
program
|
|
9
9
|
.name('agent-scope')
|
|
10
10
|
.description('Deterministic, local, passive execution observer for AI agent workflows')
|
|
11
|
-
.version('0.5.
|
|
11
|
+
.version('0.5.2');
|
|
12
12
|
program
|
|
13
13
|
.command('init')
|
|
14
14
|
.description('Initialize agent-scope in current directory')
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><!--
|
|
1
|
+
<!DOCTYPE html><!--UOQywBBR87e2cRZshQP60--><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/chunks/bfa1988f6340e536.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/66f59f4487e89157.js"/><script src="/_next/static/chunks/4611ba49fa18f0e2.js" async=""></script><script src="/_next/static/chunks/d1f8ac52f80f9493.js" async=""></script><script src="/_next/static/chunks/turbopack-87039ecabc6befeb.js" async=""></script><script src="/_next/static/chunks/64ee9622541d967c.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/a6dad97d9634a72d.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><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/66f59f4487e89157.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[57043,[\"/_next/static/chunks/64ee9622541d967c.js\"],\"default\"]\n3:I[27657,[\"/_next/static/chunks/64ee9622541d967c.js\"],\"default\"]\n4:I[56978,[\"/_next/static/chunks/64ee9622541d967c.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n7:I[56978,[\"/_next/static/chunks/64ee9622541d967c.js\"],\"ViewportBoundary\"]\n9:I[56978,[\"/_next/static/chunks/64ee9622541d967c.js\"],\"MetadataBoundary\"]\nb:I[30687,[\"/_next/static/chunks/64ee9622541d967c.js\"],\"default\"]\n:HL[\"/_next/static/chunks/bfa1988f6340e536.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"UOQywBBR87e2cRZshQP60\",\"c\":[\"\",\"_not-found\",\"\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/bfa1988f6340e536.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/64ee9622541d967c.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"className\":\"dark\",\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",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.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:notFound:0:1:props:style\",\"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\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$L7\",null,{\"children\":\"$L8\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L9\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$La\"}]}]}],null]}],false]],\"m\":\"$undefined\",\"G\":[\"$b\",\"$undefined\"],\"S\":true}\n"])</script><script>self.__next_f.push([1,"8:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"6:null\na:[[\"$\",\"title\",\"0\",{\"children\":\"agent-scope\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Execution observer for AI agent workflows\"}]]\n"])</script></body></html>
|
package/dist/public/404.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><!--
|
|
1
|
+
<!DOCTYPE html><!--UOQywBBR87e2cRZshQP60--><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/chunks/bfa1988f6340e536.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/66f59f4487e89157.js"/><script src="/_next/static/chunks/4611ba49fa18f0e2.js" async=""></script><script src="/_next/static/chunks/d1f8ac52f80f9493.js" async=""></script><script src="/_next/static/chunks/turbopack-87039ecabc6befeb.js" async=""></script><script src="/_next/static/chunks/64ee9622541d967c.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/a6dad97d9634a72d.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><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/66f59f4487e89157.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[57043,[\"/_next/static/chunks/64ee9622541d967c.js\"],\"default\"]\n3:I[27657,[\"/_next/static/chunks/64ee9622541d967c.js\"],\"default\"]\n4:I[56978,[\"/_next/static/chunks/64ee9622541d967c.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n7:I[56978,[\"/_next/static/chunks/64ee9622541d967c.js\"],\"ViewportBoundary\"]\n9:I[56978,[\"/_next/static/chunks/64ee9622541d967c.js\"],\"MetadataBoundary\"]\nb:I[30687,[\"/_next/static/chunks/64ee9622541d967c.js\"],\"default\"]\n:HL[\"/_next/static/chunks/bfa1988f6340e536.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"UOQywBBR87e2cRZshQP60\",\"c\":[\"\",\"_not-found\",\"\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/bfa1988f6340e536.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/64ee9622541d967c.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"className\":\"dark\",\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",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.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:notFound:0:1:props:style\",\"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\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$L7\",null,{\"children\":\"$L8\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L9\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$La\"}]}]}],null]}],false]],\"m\":\"$undefined\",\"G\":[\"$b\",\"$undefined\"],\"S\":true}\n"])</script><script>self.__next_f.push([1,"8:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"6:null\na:[[\"$\",\"title\",\"0\",{\"children\":\"agent-scope\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Execution observer for AI agent workflows\"}]]\n"])</script></body></html>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
1:"$Sreact.fragment"
|
|
2
2
|
2:I[16339,["/_next/static/chunks/64ee9622541d967c.js"],"ClientPageRoot"]
|
|
3
|
-
3:I[23733,["/_next/static/chunks/
|
|
3
|
+
3:I[23733,["/_next/static/chunks/d9f65f2b51efa168.js"],"default"]
|
|
4
4
|
6:I[56978,["/_next/static/chunks/64ee9622541d967c.js"],"OutletBoundary"]
|
|
5
5
|
7:"$Sreact.suspense"
|
|
6
|
-
0:{"buildId":"
|
|
6
|
+
0:{"buildId":"UOQywBBR87e2cRZshQP60","rsc":["$","$1","c",{"children":[["$","$L2",null,{"Component":"$3","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@4","$@5"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/d9f65f2b51efa168.js","async":true}]],["$","$L6",null,{"children":["$","$7",null,{"name":"Next.MetadataOutlet","children":"$@8"}]}]]}],"loading":null,"isPartial":false}
|
|
7
7
|
4:{}
|
|
8
8
|
5:"$0:rsc:props:children:0:props:serverProvidedParams:params"
|
|
9
9
|
8:null
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
2:I[57043,["/_next/static/chunks/64ee9622541d967c.js"],"default"]
|
|
3
3
|
3:I[27657,["/_next/static/chunks/64ee9622541d967c.js"],"default"]
|
|
4
4
|
4:I[16339,["/_next/static/chunks/64ee9622541d967c.js"],"ClientPageRoot"]
|
|
5
|
-
5:I[23733,["/_next/static/chunks/
|
|
5
|
+
5:I[23733,["/_next/static/chunks/d9f65f2b51efa168.js"],"default"]
|
|
6
6
|
8:I[56978,["/_next/static/chunks/64ee9622541d967c.js"],"OutletBoundary"]
|
|
7
7
|
9:"$Sreact.suspense"
|
|
8
8
|
b:I[56978,["/_next/static/chunks/64ee9622541d967c.js"],"ViewportBoundary"]
|
|
9
9
|
d:I[56978,["/_next/static/chunks/64ee9622541d967c.js"],"MetadataBoundary"]
|
|
10
10
|
f:I[30687,["/_next/static/chunks/64ee9622541d967c.js"],"default"]
|
|
11
|
-
:HL["/_next/static/chunks/
|
|
12
|
-
0:{"P":null,"b":"
|
|
11
|
+
:HL["/_next/static/chunks/bfa1988f6340e536.css","style"]
|
|
12
|
+
0:{"P":null,"b":"UOQywBBR87e2cRZshQP60","c":["",""],"q":"","i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/bfa1988f6340e536.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","className":"dark","children":["$","body",null,{"children":["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",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."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]]}],{"children":[["$","$1","c",{"children":[["$","$L4",null,{"Component":"$5","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@6","$@7"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/d9f65f2b51efa168.js","async":true,"nonce":"$undefined"}]],["$","$L8",null,{"children":["$","$9",null,{"name":"Next.MetadataOutlet","children":"$@a"}]}]]}],{},null,false,false]},null,false,false],["$","$1","h",{"children":[null,["$","$Lb",null,{"children":"$Lc"}],["$","div",null,{"hidden":true,"children":["$","$Ld",null,{"children":["$","$9",null,{"name":"Next.Metadata","children":"$Le"}]}]}],null]}],false]],"m":"$undefined","G":["$f",[]],"S":true}
|
|
13
13
|
6:{}
|
|
14
14
|
7:"$0:f:0:1:1:children:0:props:children:0:props:serverProvidedParams:params"
|
|
15
15
|
c:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
2:I[56978,["/_next/static/chunks/64ee9622541d967c.js"],"ViewportBoundary"]
|
|
3
3
|
3:I[56978,["/_next/static/chunks/64ee9622541d967c.js"],"MetadataBoundary"]
|
|
4
4
|
4:"$Sreact.suspense"
|
|
5
|
-
0:{"buildId":"
|
|
5
|
+
0:{"buildId":"UOQywBBR87e2cRZshQP60","rsc":["$","$1","h",{"children":[null,["$","$L2",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]}],["$","div",null,{"hidden":true,"children":["$","$L3",null,{"children":["$","$4",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"agent-scope"}],["$","meta","1",{"name":"description","content":"Execution observer for AI agent workflows"}]]}]}]}],null]}],"loading":null,"isPartial":false}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
1:"$Sreact.fragment"
|
|
2
2
|
2:I[57043,["/_next/static/chunks/64ee9622541d967c.js"],"default"]
|
|
3
3
|
3:I[27657,["/_next/static/chunks/64ee9622541d967c.js"],"default"]
|
|
4
|
-
:HL["/_next/static/chunks/
|
|
5
|
-
0:{"buildId":"
|
|
4
|
+
:HL["/_next/static/chunks/bfa1988f6340e536.css","style"]
|
|
5
|
+
0:{"buildId":"UOQywBBR87e2cRZshQP60","rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/bfa1988f6340e536.css","precedence":"next"}]],["$","html",null,{"lang":"en","className":"dark","children":["$","body",null,{"children":["$","$L2",null,{"parallelRouterKey":"children","template":["$","$L3",null,{}],"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."}]}]]}]}]],[]]}]}]}]]}],"loading":null,"isPartial":false}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
:HL["/_next/static/chunks/
|
|
2
|
-
0:{"buildId":"
|
|
1
|
+
:HL["/_next/static/chunks/bfa1988f6340e536.css","style"]
|
|
2
|
+
0:{"buildId":"UOQywBBR87e2cRZshQP60","tree":{"name":"","paramType":null,"paramKey":"","hasRuntimePrefetch":false,"slots":{"children":{"name":"__PAGE__","paramType":null,"paramKey":"__PAGE__","hasRuntimePrefetch":false,"slots":null,"isRootLayout":false}},"isRootLayout":true},"staleTime":300}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
@import "https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap";
|
|
2
|
+
*,:before,:after,::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:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border:0 solid #e5e7eb}:before,:after{--tw-content:""}html,:host{-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}body{line-height:inherit;margin:0}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;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-feature-settings:normal;font-variation-settings:normal;font-family:JetBrains Mono,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-feature-settings:inherit;font-variation-settings:inherit;font-family: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:#0000;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder{opacity:1;color:#9ca3af}textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}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:#0000001a;--input:transparent;--input-background:#f3f3f5;--ring:#b0b0b0;--radius:.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{color:var(--foreground);background:var(--background);font-feature-settings:"rlig" 1,"calt" 1;font-family:JetBrains Mono,monospace}.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}.mb-6{margin-bottom:1.5rem}.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}.mt-8{margin-top:2rem}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.size-16{width:4rem;height:4rem}.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-0{width:0}.w-1\/2{width:50%}.w-2\.5{width:.625rem}.w-48{width:12rem}.w-72{width:18rem}.w-\[220px\]{width:220px}.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-2xl{max-width:42rem}.max-w-4xl{max-width:56rem}.max-w-\[120px\]{max-width:120px}.flex-1{flex:1}.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{opacity:0;transform:scale(2)}}.animate-ping{animation:1s cubic-bezier(0,0,.2,1) infinite ping}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:2s cubic-bezier(.4,0,.6,1) infinite pulse}.touch-none{touch-action:none}.select-none{-webkit-user-select:none;user-select:none}.list-inside{list-style-position:inside}.list-decimal{list-style-type:decimal}.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-0\.5{gap:.125rem}.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{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.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-0{border-width:0}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-r-0{border-right-width:0}.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:#0000}.border-l-transparent{border-left-color:#0000}.border-t-transparent{border-top-color:#0000}.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-2{background-color:var(--chart-2)}.bg-chart-3{background-color:var(--chart-3)}.bg-chart-5{background-color:var(--chart-5)}.bg-muted{background-color:var(--muted)}.bg-sidebar{background-color:var(--sidebar)}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.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-3{padding-top:.75rem;padding-bottom:.75rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-3{padding-bottom:.75rem}.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)}.text-primary{color:var(--primary)}.placeholder-muted-foreground::placeholder{color:var(--muted-foreground)}.opacity-75{opacity:.75}.shadow-sm{--tw-shadow:0 1px 2px 0 #0000000d;--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-offset:2px;outline:2px solid #0000}.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\,box-shadow\]{transition-property:color,box-shadow;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-property:all;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-300{transition-duration:.3s}::-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:#0000}50%{border-color:var(--muted-foreground)}}.typing-cursor{border-right:2px solid var(--muted-foreground);animation:.8s step-end infinite blink-caret}.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)}.hover\:underline:hover{text-decoration-line:underline}.focus\:border-ring:focus{border-color:var(--ring)}.focus\:outline-none:focus{outline-offset:2px;outline:2px solid #0000}.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}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,23733,e=>{"use strict";var t=e.i(27493),r=e.i(4);let s=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim(),a=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let o=(0,r.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:o,className:l="",children:i,iconNode:d,...c},u)=>(0,r.createElement)("svg",{ref:u,...n,width:t,height:t,stroke:e,strokeWidth:o?24*Number(a)/Number(t):a,className:s("lucide",l),...!i&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(c)&&{"aria-hidden":"true"},...c},[...d.map(([e,t])=>(0,r.createElement)(e,t)),...Array.isArray(i)?i:[i]])),l=(e,t)=>{let n=(0,r.forwardRef)(({className:n,...l},i)=>(0,r.createElement)(o,{ref:i,iconNode:t,className:s(`lucide-${a(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,n),...l}));return n.displayName=a(e),n},i=l("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),d=l("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]),c=l("radio",[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]),u=l("clipboard-list",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]),m=l("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]),x=l("git-branch",[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]]),p=l("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]),h=l("panel-left-close",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]]),f=l("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),g=l("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),b=l("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]),v=l("arrow-down",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]),j=l("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]),y=l("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);function w(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function k(...e){return t=>{let r=!1,s=e.map(e=>{let s=w(e,t);return r||"function"!=typeof s||(r=!0),s});if(r)return()=>{for(let t=0;t<s.length;t++){let r=s[t];"function"==typeof r?r():w(e[t],null)}}}}function N(...e){return r.useCallback(k(...e),e)}e.i(9854);var C=Symbol("radix.slottable");function S(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===C}var z=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,s)=>{var a,n;let o,l,i,d=(n=a=`Primitive.${s}`,(o=r.forwardRef((e,t)=>{let{children:s,...a}=e;if(r.isValidElement(s)){var n;let e,o,l=(n=s,(o=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?n.ref:(o=(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?n.props.ref:n.props.ref||n.ref),i=function(e,t){let r={...t};for(let s in t){let a=e[s],n=t[s];/^on[A-Z]/.test(s)?a&&n?r[s]=(...e)=>{let t=n(...e);return a(...e),t}:a&&(r[s]=a):"style"===s?r[s]={...a,...n}:"className"===s&&(r[s]=[a,n].filter(Boolean).join(" "))}return{...e,...r}}(a,s.props);return s.type!==r.Fragment&&(i.ref=t?k(t,l):l),r.cloneElement(s,i)}return r.Children.count(s)>1?r.Children.only(null):null})).displayName=`${n}.SlotClone`,l=o,(i=r.forwardRef((e,s)=>{let{children:a,...n}=e,o=r.Children.toArray(a),i=o.find(S);if(i){let e=i.props.children,a=o.map(t=>t!==i?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,t.jsx)(l,{...n,ref:s,children:r.isValidElement(e)?r.cloneElement(e,void 0,a):null})}return(0,t.jsx)(l,{...n,ref:s,children:a})})).displayName=`${a}.Slot`,i),c=r.forwardRef((e,r)=>{let{asChild:a,...n}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,t.jsx)(a?d:s,{...n,ref:r})});return c.displayName=`Primitive.${s}`,{...e,[s]:c}},{}),E=globalThis?.document?r.useLayoutEffect:()=>{},T=e=>{var t;let s,a,{present:n,children:o}=e,l=function(e){var t,s;let[a,n]=r.useState(),o=r.useRef(null),l=r.useRef(e),i=r.useRef("none"),[d,c]=(t=e?"mounted":"unmounted",s={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>s[e][t]??e,t));return r.useEffect(()=>{let e=M(o.current);i.current="mounted"===d?e:"none"},[d]),E(()=>{let t=o.current,r=l.current;if(r!==e){let s=i.current,a=M(t);e?c("MOUNT"):"none"===a||t?.display==="none"?c("UNMOUNT"):r&&s!==a?c("ANIMATION_OUT"):c("UNMOUNT"),l.current=e}},[e,c]),E(()=>{if(a){let e,t=a.ownerDocument.defaultView??window,r=r=>{let s=M(o.current).includes(CSS.escape(r.animationName));if(r.target===a&&s&&(c("ANIMATION_END"),!l.current)){let r=a.style.animationFillMode;a.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===a.style.animationFillMode&&(a.style.animationFillMode=r)})}},s=e=>{e.target===a&&(i.current=M(o.current))};return a.addEventListener("animationstart",s),a.addEventListener("animationcancel",r),a.addEventListener("animationend",r),()=>{t.clearTimeout(e),a.removeEventListener("animationstart",s),a.removeEventListener("animationcancel",r),a.removeEventListener("animationend",r)}}c("ANIMATION_END")},[a,c]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:r.useCallback(e=>{o.current=e?getComputedStyle(e):null,n(e)},[])}}(n),i="function"==typeof o?o({present:l.isPresent}):r.Children.only(o),d=N(l.ref,(t=i,(a=(s=Object.getOwnPropertyDescriptor(t.props,"ref")?.get)&&"isReactWarning"in s&&s.isReactWarning)?t.ref:(a=(s=Object.getOwnPropertyDescriptor(t,"ref")?.get)&&"isReactWarning"in s&&s.isReactWarning)?t.props.ref:t.props.ref||t.ref));return"function"==typeof o||l.isPresent?r.cloneElement(i,{ref:d}):null};function M(e){return e?.animationName||"none"}function R(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}T.displayName="Presence";var L=r.createContext(void 0);function $(e,t,{checkForDefaultPrevented:r=!0}={}){return function(s){if(e?.(s),!1===r||!s.defaultPrevented)return t?.(s)}}"u">typeof window&&window.document&&window.document.createElement;var A="ScrollArea",[O,D]=function(e,s=[]){let a=[],n=()=>{let t=a.map(e=>r.createContext(e));return function(s){let a=s?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...s,[e]:a}}),[s,a])}};return n.scopeName=e,[function(s,n){let o=r.createContext(n),l=a.length;a=[...a,n];let i=s=>{let{scope:a,children:n,...i}=s,d=a?.[e]?.[l]||o,c=r.useMemo(()=>i,Object.values(i));return(0,t.jsx)(d.Provider,{value:c,children:n})};return i.displayName=s+"Provider",[i,function(t,a){let i=a?.[e]?.[l]||o,d=r.useContext(i);if(d)return d;if(void 0!==n)return n;throw Error(`\`${t}\` must be used within \`${s}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let s=()=>{let s=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let a=s.reduce((t,{useScope:r,scopeName:s})=>{let a=r(e)[`__scope${s}`];return{...t,...a}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return s.scopeName=t.scopeName,s}(n,...s)]}(A),[P,_]=O(A),I=r.forwardRef((e,s)=>{let a,{__scopeScrollArea:n,type:o="hover",dir:l,scrollHideDelay:i=600,...d}=e,[c,u]=r.useState(null),[m,x]=r.useState(null),[p,h]=r.useState(null),[f,g]=r.useState(null),[b,v]=r.useState(null),[j,y]=r.useState(0),[w,k]=r.useState(0),[C,S]=r.useState(!1),[E,T]=r.useState(!1),M=N(s,e=>u(e)),R=(a=r.useContext(L),l||a||"ltr");return(0,t.jsx)(P,{scope:n,type:o,dir:R,scrollHideDelay:i,scrollArea:c,viewport:m,onViewportChange:x,content:p,onContentChange:h,scrollbarX:f,onScrollbarXChange:g,scrollbarXEnabled:C,onScrollbarXEnabledChange:S,scrollbarY:b,onScrollbarYChange:v,scrollbarYEnabled:E,onScrollbarYEnabledChange:T,onCornerWidthChange:y,onCornerHeightChange:k,children:(0,t.jsx)(z.div,{dir:R,...d,ref:M,style:{position:"relative","--radix-scroll-area-corner-width":j+"px","--radix-scroll-area-corner-height":w+"px",...e.style}})})});I.displayName=A;var U="ScrollAreaViewport",W=r.forwardRef((e,s)=>{let{__scopeScrollArea:a,children:n,nonce:o,...l}=e,i=_(U,a),d=N(s,r.useRef(null),i.onViewportChange);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),(0,t.jsx)(z.div,{"data-radix-scroll-area-viewport":"",...l,ref:d,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...e.style},children:(0,t.jsx)("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"},children:n})})]})});W.displayName=U;var F="ScrollAreaScrollbar",H=r.forwardRef((e,s)=>{let{forceMount:a,...n}=e,o=_(F,e.__scopeScrollArea),{onScrollbarXEnabledChange:l,onScrollbarYEnabledChange:i}=o,d="horizontal"===e.orientation;return r.useEffect(()=>(d?l(!0):i(!0),()=>{d?l(!1):i(!1)}),[d,l,i]),"hover"===o.type?(0,t.jsx)(q,{...n,ref:s,forceMount:a}):"scroll"===o.type?(0,t.jsx)(B,{...n,ref:s,forceMount:a}):"auto"===o.type?(0,t.jsx)(V,{...n,ref:s,forceMount:a}):"always"===o.type?(0,t.jsx)(G,{...n,ref:s}):null});H.displayName=F;var q=r.forwardRef((e,s)=>{let{forceMount:a,...n}=e,o=_(F,e.__scopeScrollArea),[l,i]=r.useState(!1);return r.useEffect(()=>{let e=o.scrollArea,t=0;if(e){let r=()=>{window.clearTimeout(t),i(!0)},s=()=>{t=window.setTimeout(()=>i(!1),o.scrollHideDelay)};return e.addEventListener("pointerenter",r),e.addEventListener("pointerleave",s),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",r),e.removeEventListener("pointerleave",s)}}},[o.scrollArea,o.scrollHideDelay]),(0,t.jsx)(T,{present:a||l,children:(0,t.jsx)(V,{"data-state":l?"visible":"hidden",...n,ref:s})})}),B=r.forwardRef((e,s)=>{var a;let{forceMount:n,...o}=e,l=_(F,e.__scopeScrollArea),i="horizontal"===e.orientation,d=eu(()=>u("SCROLL_END"),100),[c,u]=(a={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},r.useReducer((e,t)=>a[e][t]??e,"hidden"));return r.useEffect(()=>{if("idle"===c){let e=window.setTimeout(()=>u("HIDE"),l.scrollHideDelay);return()=>window.clearTimeout(e)}},[c,l.scrollHideDelay,u]),r.useEffect(()=>{let e=l.viewport,t=i?"scrollLeft":"scrollTop";if(e){let r=e[t],s=()=>{let s=e[t];r!==s&&(u("SCROLL"),d()),r=s};return e.addEventListener("scroll",s),()=>e.removeEventListener("scroll",s)}},[l.viewport,i,u,d]),(0,t.jsx)(T,{present:n||"hidden"!==c,children:(0,t.jsx)(G,{"data-state":"hidden"===c?"hidden":"visible",...o,ref:s,onPointerEnter:$(e.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:$(e.onPointerLeave,()=>u("POINTER_LEAVE"))})})}),V=r.forwardRef((e,s)=>{let a=_(F,e.__scopeScrollArea),{forceMount:n,...o}=e,[l,i]=r.useState(!1),d="horizontal"===e.orientation,c=eu(()=>{if(a.viewport){let e=a.viewport.offsetWidth<a.viewport.scrollWidth,t=a.viewport.offsetHeight<a.viewport.scrollHeight;i(d?e:t)}},10);return em(a.viewport,c),em(a.content,c),(0,t.jsx)(T,{present:n||l,children:(0,t.jsx)(G,{"data-state":l?"visible":"hidden",...o,ref:s})})}),G=r.forwardRef((e,s)=>{let{orientation:a="vertical",...n}=e,o=_(F,e.__scopeScrollArea),l=r.useRef(null),i=r.useRef(0),[d,c]=r.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=eo(d.viewport,d.content),m={...n,sizes:d,onSizesChange:c,hasThumb:!!(u>0&&u<1),onThumbChange:e=>l.current=e,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:e=>i.current=e};function x(e,t){return function(e,t,r,s="ltr"){let a=el(r),n=t||a/2,o=r.scrollbar.paddingStart+n,l=r.scrollbar.size-r.scrollbar.paddingEnd-(a-n),i=r.content-r.viewport;return ed([o,l],"ltr"===s?[0,i]:[-1*i,0])(e)}(e,i.current,d,t)}return"horizontal"===a?(0,t.jsx)(Y,{...m,ref:s,onThumbPositionChange:()=>{if(o.viewport&&l.current){let e=ei(o.viewport.scrollLeft,d,o.dir);l.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{o.viewport&&(o.viewport.scrollLeft=e)},onDragScroll:e=>{o.viewport&&(o.viewport.scrollLeft=x(e,o.dir))}}):"vertical"===a?(0,t.jsx)(X,{...m,ref:s,onThumbPositionChange:()=>{if(o.viewport&&l.current){let e=ei(o.viewport.scrollTop,d);l.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{o.viewport&&(o.viewport.scrollTop=e)},onDragScroll:e=>{o.viewport&&(o.viewport.scrollTop=x(e))}}):null}),Y=r.forwardRef((e,s)=>{let{sizes:a,onSizesChange:n,...o}=e,l=_(F,e.__scopeScrollArea),[i,d]=r.useState(),c=r.useRef(null),u=N(s,c,l.onScrollbarXChange);return r.useEffect(()=>{c.current&&d(getComputedStyle(c.current))},[c]),(0,t.jsx)(J,{"data-orientation":"horizontal",...o,ref:u,sizes:a,style:{bottom:0,left:"rtl"===l.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===l.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":el(a)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,r)=>{if(l.viewport){var s,a;let n=l.viewport.scrollLeft+t.deltaX;e.onWheelScroll(n),s=n,a=r,s>0&&s<a&&t.preventDefault()}},onResize:()=>{c.current&&l.viewport&&i&&n({content:l.viewport.scrollWidth,viewport:l.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:en(i.paddingLeft),paddingEnd:en(i.paddingRight)}})}})}),X=r.forwardRef((e,s)=>{let{sizes:a,onSizesChange:n,...o}=e,l=_(F,e.__scopeScrollArea),[i,d]=r.useState(),c=r.useRef(null),u=N(s,c,l.onScrollbarYChange);return r.useEffect(()=>{c.current&&d(getComputedStyle(c.current))},[c]),(0,t.jsx)(J,{"data-orientation":"vertical",...o,ref:u,sizes:a,style:{top:0,right:"ltr"===l.dir?0:void 0,left:"rtl"===l.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":el(a)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,r)=>{if(l.viewport){var s,a;let n=l.viewport.scrollTop+t.deltaY;e.onWheelScroll(n),s=n,a=r,s>0&&s<a&&t.preventDefault()}},onResize:()=>{c.current&&l.viewport&&i&&n({content:l.viewport.scrollHeight,viewport:l.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:en(i.paddingTop),paddingEnd:en(i.paddingBottom)}})}})}),[K,Q]=O(F),J=r.forwardRef((e,s)=>{let{__scopeScrollArea:a,sizes:n,hasThumb:o,onThumbChange:l,onThumbPointerUp:i,onThumbPointerDown:d,onThumbPositionChange:c,onDragScroll:u,onWheelScroll:m,onResize:x,...p}=e,h=_(F,a),[f,g]=r.useState(null),b=N(s,e=>g(e)),v=r.useRef(null),j=r.useRef(""),y=h.viewport,w=n.content-n.viewport,k=R(m),C=R(c),S=eu(x,10);function E(e){v.current&&u({x:e.clientX-v.current.left,y:e.clientY-v.current.top})}return r.useEffect(()=>{let e=e=>{let t=e.target;f?.contains(t)&&k(e,w)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[y,f,w,k]),r.useEffect(C,[n,C]),em(f,S),em(h.content,S),(0,t.jsx)(K,{scope:a,scrollbar:f,hasThumb:o,onThumbChange:R(l),onThumbPointerUp:R(i),onThumbPositionChange:C,onThumbPointerDown:R(d),children:(0,t.jsx)(z.div,{...p,ref:b,style:{position:"absolute",...p.style},onPointerDown:$(e.onPointerDown,e=>{0===e.button&&(e.target.setPointerCapture(e.pointerId),v.current=f.getBoundingClientRect(),j.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",h.viewport&&(h.viewport.style.scrollBehavior="auto"),E(e))}),onPointerMove:$(e.onPointerMove,E),onPointerUp:$(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=j.current,h.viewport&&(h.viewport.style.scrollBehavior=""),v.current=null})})})}),Z="ScrollAreaThumb",ee=r.forwardRef((e,r)=>{let{forceMount:s,...a}=e,n=Q(Z,e.__scopeScrollArea);return(0,t.jsx)(T,{present:s||n.hasThumb,children:(0,t.jsx)(et,{ref:r,...a})})}),et=r.forwardRef((e,s)=>{let{__scopeScrollArea:a,style:n,...o}=e,l=_(Z,a),i=Q(Z,a),{onThumbPositionChange:d}=i,c=N(s,e=>i.onThumbChange(e)),u=r.useRef(void 0),m=eu(()=>{u.current&&(u.current(),u.current=void 0)},100);return r.useEffect(()=>{let e=l.viewport;if(e){let t=()=>{m(),u.current||(u.current=ec(e,d),d())};return d(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[l.viewport,m,d]),(0,t.jsx)(z.div,{"data-state":i.hasThumb?"visible":"hidden",...o,ref:c,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:$(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),r=e.clientX-t.left,s=e.clientY-t.top;i.onThumbPointerDown({x:r,y:s})}),onPointerUp:$(e.onPointerUp,i.onThumbPointerUp)})});ee.displayName=Z;var er="ScrollAreaCorner",es=r.forwardRef((e,r)=>{let s=_(er,e.__scopeScrollArea),a=!!(s.scrollbarX&&s.scrollbarY);return"scroll"!==s.type&&a?(0,t.jsx)(ea,{...e,ref:r}):null});es.displayName=er;var ea=r.forwardRef((e,s)=>{let{__scopeScrollArea:a,...n}=e,o=_(er,a),[l,i]=r.useState(0),[d,c]=r.useState(0),u=!!(l&&d);return em(o.scrollbarX,()=>{let e=o.scrollbarX?.offsetHeight||0;o.onCornerHeightChange(e),c(e)}),em(o.scrollbarY,()=>{let e=o.scrollbarY?.offsetWidth||0;o.onCornerWidthChange(e),i(e)}),u?(0,t.jsx)(z.div,{...n,ref:s,style:{width:l,height:d,position:"absolute",right:"ltr"===o.dir?0:void 0,left:"rtl"===o.dir?0:void 0,bottom:0,...e.style}}):null});function en(e){return e?parseInt(e,10):0}function eo(e,t){let r=e/t;return isNaN(r)?0:r}function el(e){let t=eo(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd;return Math.max((e.scrollbar.size-r)*t,18)}function ei(e,t,r="ltr"){let s=el(t),a=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,n=t.scrollbar.size-a,o=t.content-t.viewport,l=function(e,[t,r]){return Math.min(r,Math.max(t,e))}(e,"ltr"===r?[0,o]:[-1*o,0]);return ed([0,o],[0,n-s])(l)}function ed(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let s=(t[1]-t[0])/(e[1]-e[0]);return t[0]+s*(r-e[0])}}var ec=(e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},s=0;return!function a(){let n={left:e.scrollLeft,top:e.scrollTop},o=r.left!==n.left,l=r.top!==n.top;(o||l)&&t(),r=n,s=window.requestAnimationFrame(a)}(),()=>window.cancelAnimationFrame(s)};function eu(e,t){let s=R(e),a=r.useRef(0);return r.useEffect(()=>()=>window.clearTimeout(a.current),[]),r.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(s,t)},[s,t])}function em(e,t){let r=R(t);E(()=>{let t=0;if(e){let s=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(r)});return s.observe(e),()=>{window.cancelAnimationFrame(t),s.unobserve(e)}}},[e,r])}let ex=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),ep=[],eh=(e,t,r)=>{if(0==e.length-t)return r.classGroupId;let s=e[t],a=r.nextPart.get(s);if(a){let r=eh(e,t+1,a);if(r)return r}let n=r.validators;if(null===n)return;let o=0===t?e.join("-"):e.slice(t).join("-"),l=n.length;for(let e=0;e<l;e++){let t=n[e];if(t.validator(o))return t.classGroupId}},ef=(e,t)=>{let r=ex();for(let s in e)eg(e[s],r,s,t);return r},eg=(e,t,r,s)=>{let a=e.length;for(let n=0;n<a;n++)eb(e[n],t,r,s)},eb=(e,t,r,s)=>{"string"==typeof e?ev(e,t,r):"function"==typeof e?ej(e,t,r,s):ey(e,t,r,s)},ev=(e,t,r)=>{(""===e?t:ew(t,e)).classGroupId=r},ej=(e,t,r,s)=>{ek(e)?eg(e(s),t,r,s):(null===t.validators&&(t.validators=[]),t.validators.push({classGroupId:r,validator:e}))},ey=(e,t,r,s)=>{let a=Object.entries(e),n=a.length;for(let e=0;e<n;e++){let[n,o]=a[e];eg(o,ew(t,n),r,s)}},ew=(e,t)=>{let r=e,s=t.split("-"),a=s.length;for(let e=0;e<a;e++){let t=s[e],a=r.nextPart.get(t);a||(a=ex(),r.nextPart.set(t,a)),r=a}return r},ek=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,eN=[],eC=(e,t,r,s,a)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:s,isExternal:a}),eS=/\s+/,ez=e=>{let t;if("string"==typeof e)return e;let r="";for(let s=0;s<e.length;s++)e[s]&&(t=ez(e[s]))&&(r&&(r+=" "),r+=t);return r},eE=[],eT=e=>{let t=t=>t[e]||eE;return t.isThemeGetter=!0,t},eM=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,eR=/^\((?:(\w[\w-]*):)?(.+)\)$/i,eL=/^\d+\/\d+$/,e$=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,eA=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,eO=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,eD=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,eP=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,e_=e=>eL.test(e),eI=e=>!!e&&!Number.isNaN(Number(e)),eU=e=>!!e&&Number.isInteger(Number(e)),eW=e=>e.endsWith("%")&&eI(e.slice(0,-1)),eF=e=>e$.test(e),eH=()=>!0,eq=e=>eA.test(e)&&!eO.test(e),eB=()=>!1,eV=e=>eD.test(e),eG=e=>eP.test(e),eY=e=>!eK(e)&&!e4(e),eX=e=>tr(e,to,eB),eK=e=>eM.test(e),eQ=e=>tr(e,tl,eq),eJ=e=>tr(e,ti,eI),eZ=e=>tr(e,tc,eH),e0=e=>tr(e,td,eB),e1=e=>tr(e,ta,eB),e2=e=>tr(e,tn,eG),e3=e=>tr(e,tu,eV),e4=e=>eR.test(e),e5=e=>ts(e,tl),e6=e=>ts(e,td),e7=e=>ts(e,ta),e8=e=>ts(e,to),e9=e=>ts(e,tn),te=e=>ts(e,tu,!0),tt=e=>ts(e,tc,!0),tr=(e,t,r)=>{let s=eM.exec(e);return!!s&&(s[1]?t(s[1]):r(s[2]))},ts=(e,t,r=!1)=>{let s=eR.exec(e);return!!s&&(s[1]?t(s[1]):r)},ta=e=>"position"===e||"percentage"===e,tn=e=>"image"===e||"url"===e,to=e=>"length"===e||"size"===e||"bg-size"===e,tl=e=>"length"===e,ti=e=>"number"===e,td=e=>"family-name"===e,tc=e=>"number"===e||"weight"===e,tu=e=>"shadow"===e,tm=((e,...t)=>{let r,s,a,n,o=e=>{let t=s(e);if(t)return t;let n=((e,t)=>{let{parseClassName:r,getClassGroupId:s,getConflictingClassGroupIds:a,sortModifiers:n}=t,o=[],l=e.trim().split(eS),i="";for(let e=l.length-1;e>=0;e-=1){let t=l[e],{isExternal:d,modifiers:c,hasImportantModifier:u,baseClassName:m,maybePostfixModifierPosition:x}=r(t);if(d){i=t+(i.length>0?" "+i:i);continue}let p=!!x,h=s(p?m.substring(0,x):m);if(!h){if(!p||!(h=s(m))){i=t+(i.length>0?" "+i:i);continue}p=!1}let f=0===c.length?"":1===c.length?c[0]:n(c).join(":"),g=u?f+"!":f,b=g+h;if(o.indexOf(b)>-1)continue;o.push(b);let v=a(h,p);for(let e=0;e<v.length;++e){let t=v[e];o.push(g+t)}i=t+(i.length>0?" "+i:i)}return i})(e,r);return a(e,n),n};return n=l=>{var i;let d;return s=(r={cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,r=Object.create(null),s=Object.create(null),a=(a,n)=>{r[a]=n,++t>e&&(t=0,s=r,r=Object.create(null))};return{get(e){let t=r[e];return void 0!==t?t:void 0!==(t=s[e])?(a(e,t),t):void 0},set(e,t){e in r?r[e]=t:a(e,t)}}})((i=t.reduce((e,t)=>t(e),e())).cacheSize),parseClassName:(e=>{let{prefix:t,experimentalParseClassName:r}=e,s=e=>{let t,r=[],s=0,a=0,n=0,o=e.length;for(let l=0;l<o;l++){let o=e[l];if(0===s&&0===a){if(":"===o){r.push(e.slice(n,l)),n=l+1;continue}if("/"===o){t=l;continue}}"["===o?s++:"]"===o?s--:"("===o?a++:")"===o&&a--}let l=0===r.length?e:e.slice(n),i=l,d=!1;return l.endsWith("!")?(i=l.slice(0,-1),d=!0):l.startsWith("!")&&(i=l.slice(1),d=!0),eC(r,d,i,t&&t>n?t-n:void 0)};if(t){let e=t+":",r=s;s=t=>t.startsWith(e)?r(t.slice(e.length)):eC(eN,!1,t,void 0,!0)}if(r){let e=s;s=t=>r({className:t,parseClassName:e})}return s})(i),sortModifiers:(d=new Map,i.orderSensitiveModifiers.forEach((e,t)=>{d.set(e,1e6+t)}),e=>{let t=[],r=[];for(let s=0;s<e.length;s++){let a=e[s],n="["===a[0],o=d.has(a);n||o?(r.length>0&&(r.sort(),t.push(...r),r=[]),t.push(a)):r.push(a)}return r.length>0&&(r.sort(),t.push(...r)),t}),...(e=>{let t=(e=>{let{theme:t,classGroups:r}=e;return ef(r,t)})(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]")){var r;let t,s,a;return -1===(r=e).slice(1,-1).indexOf(":")?void 0:(s=(t=r.slice(1,-1)).indexOf(":"),(a=t.slice(0,s))?"arbitrary.."+a:void 0)}let s=e.split("-"),a=+(""===s[0]&&s.length>1);return eh(s,a,t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=s[e],a=r[e];if(t){if(a){let e=Array(a.length+t.length);for(let t=0;t<a.length;t++)e[t]=a[t];for(let r=0;r<t.length;r++)e[a.length+r]=t[r];return e}return t}return a||ep}return r[e]||ep}}})(i)}).cache.get,a=r.cache.set,n=o,o(l)},(...e)=>n(((...e)=>{let t,r,s=0,a="";for(;s<e.length;)(t=e[s++])&&(r=ez(t))&&(a&&(a+=" "),a+=r);return a})(...e))})(()=>{let e=eT("color"),t=eT("font"),r=eT("text"),s=eT("font-weight"),a=eT("tracking"),n=eT("leading"),o=eT("breakpoint"),l=eT("container"),i=eT("spacing"),d=eT("radius"),c=eT("shadow"),u=eT("inset-shadow"),m=eT("text-shadow"),x=eT("drop-shadow"),p=eT("blur"),h=eT("perspective"),f=eT("aspect"),g=eT("ease"),b=eT("animate"),v=()=>["auto","avoid","all","avoid-page","page","left","right","column"],j=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],y=()=>[...j(),e4,eK],w=()=>["auto","hidden","clip","visible","scroll"],k=()=>["auto","contain","none"],N=()=>[e4,eK,i],C=()=>[e_,"full","auto",...N()],S=()=>[eU,"none","subgrid",e4,eK],z=()=>["auto",{span:["full",eU,e4,eK]},eU,e4,eK],E=()=>[eU,"auto",e4,eK],T=()=>["auto","min","max","fr",e4,eK],M=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],R=()=>["start","end","center","stretch","center-safe","end-safe"],L=()=>["auto",...N()],$=()=>[e_,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...N()],A=()=>[e,e4,eK],O=()=>[...j(),e7,e1,{position:[e4,eK]}],D=()=>["no-repeat",{repeat:["","x","y","space","round"]}],P=()=>["auto","cover","contain",e8,eX,{size:[e4,eK]}],_=()=>[eW,e5,eQ],I=()=>["","none","full",d,e4,eK],U=()=>["",eI,e5,eQ],W=()=>["solid","dashed","dotted","double"],F=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],H=()=>[eI,eW,e7,e1],q=()=>["","none",p,e4,eK],B=()=>["none",eI,e4,eK],V=()=>["none",eI,e4,eK],G=()=>[eI,e4,eK],Y=()=>[e_,"full",...N()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[eF],breakpoint:[eF],color:[eH],container:[eF],"drop-shadow":[eF],ease:["in","out","in-out"],font:[eY],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[eF],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[eF],shadow:[eF],spacing:["px",eI],text:[eF],"text-shadow":[eF],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",e_,eK,e4,f]}],container:["container"],columns:[{columns:[eI,eK,e4,l]}],"break-after":[{"break-after":v()}],"break-before":[{"break-before":v()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:y()}],overflow:[{overflow:w()}],"overflow-x":[{"overflow-x":w()}],"overflow-y":[{"overflow-y":w()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:C()}],"inset-x":[{"inset-x":C()}],"inset-y":[{"inset-y":C()}],start:[{start:C()}],end:[{end:C()}],top:[{top:C()}],right:[{right:C()}],bottom:[{bottom:C()}],left:[{left:C()}],visibility:["visible","invisible","collapse"],z:[{z:[eU,"auto",e4,eK]}],basis:[{basis:[e_,"full","auto",l,...N()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[eI,e_,"auto","initial","none",eK]}],grow:[{grow:["",eI,e4,eK]}],shrink:[{shrink:["",eI,e4,eK]}],order:[{order:[eU,"first","last","none",e4,eK]}],"grid-cols":[{"grid-cols":S()}],"col-start-end":[{col:z()}],"col-start":[{"col-start":E()}],"col-end":[{"col-end":E()}],"grid-rows":[{"grid-rows":S()}],"row-start-end":[{row:z()}],"row-start":[{"row-start":E()}],"row-end":[{"row-end":E()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":T()}],"auto-rows":[{"auto-rows":T()}],gap:[{gap:N()}],"gap-x":[{"gap-x":N()}],"gap-y":[{"gap-y":N()}],"justify-content":[{justify:[...M(),"normal"]}],"justify-items":[{"justify-items":[...R(),"normal"]}],"justify-self":[{"justify-self":["auto",...R()]}],"align-content":[{content:["normal",...M()]}],"align-items":[{items:[...R(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...R(),{baseline:["","last"]}]}],"place-content":[{"place-content":M()}],"place-items":[{"place-items":[...R(),"baseline"]}],"place-self":[{"place-self":["auto",...R()]}],p:[{p:N()}],px:[{px:N()}],py:[{py:N()}],ps:[{ps:N()}],pe:[{pe:N()}],pt:[{pt:N()}],pr:[{pr:N()}],pb:[{pb:N()}],pl:[{pl:N()}],m:[{m:L()}],mx:[{mx:L()}],my:[{my:L()}],ms:[{ms:L()}],me:[{me:L()}],mt:[{mt:L()}],mr:[{mr:L()}],mb:[{mb:L()}],ml:[{ml:L()}],"space-x":[{"space-x":N()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":N()}],"space-y-reverse":["space-y-reverse"],size:[{size:$()}],w:[{w:[l,"screen",...$()]}],"min-w":[{"min-w":[l,"screen","none",...$()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[o]},...$()]}],h:[{h:["screen","lh",...$()]}],"min-h":[{"min-h":["screen","lh","none",...$()]}],"max-h":[{"max-h":["screen","lh",...$()]}],"font-size":[{text:["base",r,e5,eQ]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,tt,eZ]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",eW,eK]}],"font-family":[{font:[e6,e0,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,e4,eK]}],"line-clamp":[{"line-clamp":[eI,"none",e4,eJ]}],leading:[{leading:[n,...N()]}],"list-image":[{"list-image":["none",e4,eK]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",e4,eK]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:[eI,"from-font","auto",e4,eQ]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[eI,"auto",e4,eK]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",e4,eK]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",e4,eK]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:O()}],"bg-repeat":[{bg:D()}],"bg-size":[{bg:P()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},eU,e4,eK],radial:["",e4,eK],conic:[eU,e4,eK]},e9,e2]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:_()}],"gradient-via-pos":[{via:_()}],"gradient-to-pos":[{to:_()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:I()}],"rounded-s":[{"rounded-s":I()}],"rounded-e":[{"rounded-e":I()}],"rounded-t":[{"rounded-t":I()}],"rounded-r":[{"rounded-r":I()}],"rounded-b":[{"rounded-b":I()}],"rounded-l":[{"rounded-l":I()}],"rounded-ss":[{"rounded-ss":I()}],"rounded-se":[{"rounded-se":I()}],"rounded-ee":[{"rounded-ee":I()}],"rounded-es":[{"rounded-es":I()}],"rounded-tl":[{"rounded-tl":I()}],"rounded-tr":[{"rounded-tr":I()}],"rounded-br":[{"rounded-br":I()}],"rounded-bl":[{"rounded-bl":I()}],"border-w":[{border:U()}],"border-w-x":[{"border-x":U()}],"border-w-y":[{"border-y":U()}],"border-w-s":[{"border-s":U()}],"border-w-e":[{"border-e":U()}],"border-w-t":[{"border-t":U()}],"border-w-r":[{"border-r":U()}],"border-w-b":[{"border-b":U()}],"border-w-l":[{"border-l":U()}],"divide-x":[{"divide-x":U()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":U()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...W(),"hidden","none"]}],"divide-style":[{divide:[...W(),"hidden","none"]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:[...W(),"none","hidden"]}],"outline-offset":[{"outline-offset":[eI,e4,eK]}],"outline-w":[{outline:["",eI,e5,eQ]}],"outline-color":[{outline:A()}],shadow:[{shadow:["","none",c,te,e3]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":["none",u,te,e3]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[eI,eQ]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":U()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":["none",m,te,e3]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[eI,e4,eK]}],"mix-blend":[{"mix-blend":[...F(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":F()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[eI]}],"mask-image-linear-from-pos":[{"mask-linear-from":H()}],"mask-image-linear-to-pos":[{"mask-linear-to":H()}],"mask-image-linear-from-color":[{"mask-linear-from":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"mask-image-t-from-pos":[{"mask-t-from":H()}],"mask-image-t-to-pos":[{"mask-t-to":H()}],"mask-image-t-from-color":[{"mask-t-from":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"mask-image-r-from-pos":[{"mask-r-from":H()}],"mask-image-r-to-pos":[{"mask-r-to":H()}],"mask-image-r-from-color":[{"mask-r-from":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"mask-image-b-from-pos":[{"mask-b-from":H()}],"mask-image-b-to-pos":[{"mask-b-to":H()}],"mask-image-b-from-color":[{"mask-b-from":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"mask-image-l-from-pos":[{"mask-l-from":H()}],"mask-image-l-to-pos":[{"mask-l-to":H()}],"mask-image-l-from-color":[{"mask-l-from":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"mask-image-x-from-pos":[{"mask-x-from":H()}],"mask-image-x-to-pos":[{"mask-x-to":H()}],"mask-image-x-from-color":[{"mask-x-from":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"mask-image-y-from-pos":[{"mask-y-from":H()}],"mask-image-y-to-pos":[{"mask-y-to":H()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[e4,eK]}],"mask-image-radial-from-pos":[{"mask-radial-from":H()}],"mask-image-radial-to-pos":[{"mask-radial-to":H()}],"mask-image-radial-from-color":[{"mask-radial-from":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":j()}],"mask-image-conic-pos":[{"mask-conic":[eI]}],"mask-image-conic-from-pos":[{"mask-conic-from":H()}],"mask-image-conic-to-pos":[{"mask-conic-to":H()}],"mask-image-conic-from-color":[{"mask-conic-from":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:O()}],"mask-repeat":[{mask:D()}],"mask-size":[{mask:P()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",e4,eK]}],filter:[{filter:["","none",e4,eK]}],blur:[{blur:q()}],brightness:[{brightness:[eI,e4,eK]}],contrast:[{contrast:[eI,e4,eK]}],"drop-shadow":[{"drop-shadow":["","none",x,te,e3]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:["",eI,e4,eK]}],"hue-rotate":[{"hue-rotate":[eI,e4,eK]}],invert:[{invert:["",eI,e4,eK]}],saturate:[{saturate:[eI,e4,eK]}],sepia:[{sepia:["",eI,e4,eK]}],"backdrop-filter":[{"backdrop-filter":["","none",e4,eK]}],"backdrop-blur":[{"backdrop-blur":q()}],"backdrop-brightness":[{"backdrop-brightness":[eI,e4,eK]}],"backdrop-contrast":[{"backdrop-contrast":[eI,e4,eK]}],"backdrop-grayscale":[{"backdrop-grayscale":["",eI,e4,eK]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[eI,e4,eK]}],"backdrop-invert":[{"backdrop-invert":["",eI,e4,eK]}],"backdrop-opacity":[{"backdrop-opacity":[eI,e4,eK]}],"backdrop-saturate":[{"backdrop-saturate":[eI,e4,eK]}],"backdrop-sepia":[{"backdrop-sepia":["",eI,e4,eK]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":N()}],"border-spacing-x":[{"border-spacing-x":N()}],"border-spacing-y":[{"border-spacing-y":N()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",e4,eK]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[eI,"initial",e4,eK]}],ease:[{ease:["linear","initial",g,e4,eK]}],delay:[{delay:[eI,e4,eK]}],animate:[{animate:["none",b,e4,eK]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,e4,eK]}],"perspective-origin":[{"perspective-origin":y()}],rotate:[{rotate:B()}],"rotate-x":[{"rotate-x":B()}],"rotate-y":[{"rotate-y":B()}],"rotate-z":[{"rotate-z":B()}],scale:[{scale:V()}],"scale-x":[{"scale-x":V()}],"scale-y":[{"scale-y":V()}],"scale-z":[{"scale-z":V()}],"scale-3d":["scale-3d"],skew:[{skew:G()}],"skew-x":[{"skew-x":G()}],"skew-y":[{"skew-y":G()}],transform:[{transform:[e4,eK,"","none","gpu","cpu"]}],"transform-origin":[{origin:y()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Y()}],"translate-x":[{"translate-x":Y()}],"translate-y":[{"translate-y":Y()}],"translate-z":[{"translate-z":Y()}],"translate-none":["translate-none"],accent:[{accent:A()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:A()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",e4,eK]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",e4,eK]}],fill:[{fill:["none",...A()]}],"stroke-w":[{stroke:[eI,e5,eQ,eJ]}],stroke:[{stroke:["none",...A()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function tx(...e){return tm(function(){for(var e,t,r=0,s="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=function e(t){var r,s,a="";if("string"==typeof t||"number"==typeof t)a+=t;else if("object"==typeof t)if(Array.isArray(t)){var n=t.length;for(r=0;r<n;r++)t[r]&&(s=e(t[r]))&&(a&&(a+=" "),a+=s)}else for(s in t)t[s]&&(a&&(a+=" "),a+=s);return a}(e))&&(s&&(s+=" "),s+=t);return s}(e))}function tp({className:e,children:r,...s}){return(0,t.jsxs)(I,{"data-slot":"scroll-area",className:tx("relative overflow-hidden",e),...s,children:[(0,t.jsx)(W,{"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:r}),(0,t.jsx)(th,{}),(0,t.jsx)(es,{})]})}function th({className:e,orientation:r="vertical",...s}){return(0,t.jsx)(H,{"data-slot":"scroll-area-scrollbar",orientation:r,className:tx("flex touch-none p-px transition-colors select-none","vertical"===r&&"h-full w-2.5 border-l border-l-transparent","horizontal"===r&&"h-2.5 flex-col border-t border-t-transparent",e),...s,children:(0,t.jsx)(ee,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}function tf({lines:e}){let[s,a]=(0,r.useState)(0),[n,o]=(0,r.useState)(0),[l,i]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{let t=e[s];if(!l&&n<t.length){let e=setTimeout(()=>o(e=>e+1),40+30*Math.random());return()=>clearTimeout(e)}if(!l&&n===t.length){let e=setTimeout(()=>i(!0),2e3);return()=>clearTimeout(e)}if(l&&n>0){let e=setTimeout(()=>o(e=>e-1),20);return()=>clearTimeout(e)}l&&0===n&&(i(!1),a(t=>(t+1)%e.length))},[n,l,s,e]),(0,t.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[(0,t.jsx)("div",{className:"text-muted-foreground/30 text-4xl font-bold select-none",children:">_"}),(0,t.jsx)("div",{className:"h-8 flex items-center",children:(0,t.jsx)("span",{className:"text-sm text-muted-foreground/60 typing-cursor pr-1",children:e[s].slice(0,n)})})]})}function tg({wt:e}){var s;let[a,n]=(0,r.useState)(!1);return(0,t.jsxs)("div",{className:"rounded-lg border border-border bg-card overflow-hidden",children:[(0,t.jsxs)("button",{onClick:()=>n(e=>!e),className:"w-full text-left px-4 py-3 flex items-center gap-3 hover:bg-accent/40 transition-colors",children:[a?(0,t.jsx)(g,{className:"size-3.5 text-muted-foreground shrink-0"}):(0,t.jsx)(f,{className:"size-3.5 text-muted-foreground shrink-0"}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-sm font-medium text-foreground truncate",children:(s=e.path).split("/").filter(Boolean).pop()??s}),e.dirty&&(0,t.jsx)("span",{title:"Dirty — has uncommitted changes",children:(0,t.jsx)(j,{className:"size-3 text-chart-3 shrink-0"})}),!e.dirty&&(0,t.jsx)("span",{title:"Clean",children:(0,t.jsx)(y,{className:"size-3 text-chart-2 shrink-0"})})]}),(0,t.jsx)("div",{className:"text-[10px] text-muted-foreground/60 font-mono truncate mt-0.5",children:e.path})]}),(0,t.jsxs)("div",{className:"flex items-center gap-1.5 text-xs text-muted-foreground shrink-0",children:[(0,t.jsx)(x,{className:"size-3"}),(0,t.jsx)("span",{className:"font-mono max-w-[120px] truncate",children:e.branch})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 text-[10px] shrink-0",children:[e.aheadCount>0&&(0,t.jsxs)("span",{className:"flex items-center gap-0.5 text-chart-2",children:[(0,t.jsx)(b,{className:"size-2.5"}),e.aheadCount]}),e.behindCount>0&&(0,t.jsxs)("span",{className:"flex items-center gap-0.5 text-chart-5",children:[(0,t.jsx)(v,{className:"size-2.5"}),e.behindCount]}),0===e.aheadCount&&0===e.behindCount&&(0,t.jsx)("span",{className:"text-muted-foreground/40",children:"synced"})]}),(e.associatedTasks?.length??0)>0&&(0,t.jsxs)("span",{className:"text-[10px] bg-chart-4/20 text-chart-4 px-1.5 py-0.5 rounded shrink-0",children:[e.associatedTasks.length," task",1!==e.associatedTasks.length?"s":""]})]}),a&&(0,t.jsxs)("div",{className:"border-t border-border px-4 py-3 space-y-2 bg-sidebar/30",children:[e.head&&(0,t.jsxs)("div",{className:"text-[10px] text-muted-foreground/60 font-mono",children:["HEAD: ",e.head.slice(0,12)]}),(e.associatedTasks?.length??0)>0?(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("div",{className:"text-[10px] font-semibold text-muted-foreground uppercase mb-1",children:"Associated Tasks"}),e.associatedTasks.map((e,r)=>(0,t.jsxs)("div",{className:"flex items-center gap-2 text-xs p-2 rounded bg-card border border-border",children:[(0,t.jsxs)("span",{className:"font-mono text-muted-foreground shrink-0",children:["#",e.taskId]}),(0,t.jsx)("span",{className:"text-foreground truncate",children:e.taskSubject}),(0,t.jsx)("span",{className:"text-[10px] text-muted-foreground/40 font-mono shrink-0 ml-auto",children:e.sessionId.slice(0,8)})]},`${e.sessionId}-${e.taskId}-${r}`))]}):(0,t.jsx)("div",{className:"text-xs text-muted-foreground/40 py-2",children:"No tasks associated with this worktree"})]})]})}function tb(){let[e,s]=(0,r.useState)([]),[a,n]=(0,r.useState)(!0),[o,l]=(0,r.useState)(null),i=(0,r.useRef)(null),c=async()=>{try{let e=await fetch("/worktrees");if(!e.ok)return;let t=await e.json();s(t.worktrees??[]),l(new Date)}catch{}finally{n(!1)}};return(0,r.useEffect)(()=>(c(),i.current=setInterval(c,3e4),()=>{i.current&&clearInterval(i.current)}),[]),(0,t.jsxs)("div",{className:"flex-1 flex flex-col overflow-hidden",children:[(0,t.jsxs)("div",{className:"bg-sidebar border-b border-sidebar-border px-4 py-2 flex items-center justify-between shrink-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(x,{className:"size-4 text-muted-foreground"}),(0,t.jsx)("span",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wide",children:"Worktrees"}),e.length>0&&(0,t.jsx)("span",{className:"text-xs text-muted-foreground/60 bg-muted px-1.5 py-0.5 rounded",children:e.length})]}),(0,t.jsx)("button",{onClick:c,className:"p-1 rounded hover:bg-sidebar-accent transition-colors",title:"Refresh worktrees",children:(0,t.jsx)(d,{className:"size-3.5 text-muted-foreground"})})]}),a?(0,t.jsx)("div",{className:"flex-1 flex items-center justify-center text-muted-foreground/40 text-xs",children:"Loading..."}):0===e.length?(0,t.jsx)("div",{className:"flex-1 flex items-center justify-center p-8",children:(0,t.jsx)(tf,{lines:["No git worktrees detected","git worktree add ../my-project-feat feature/xyz","Run agents in parallel across branches","Each worktree gets its own task list here"]})}):(0,t.jsxs)(tp,{className:"flex-1",children:[(0,t.jsx)("div",{className:"p-4 space-y-3",children:e.map(e=>(0,t.jsx)(tg,{wt:e},e.path))}),o&&(0,t.jsxs)("div",{className:"px-4 pb-3 text-[10px] text-muted-foreground/40 text-center",children:["Last refresh: ",o.toLocaleTimeString()]})]})]})}let tv=l("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),tj=l("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),ty=l("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);function tw(e){switch(e){case"critical":return"text-chart-5";case"warn":return"text-chart-3";default:return"text-chart-2"}}function tk({level:e}){let r=`size-3.5 ${tw(e)}`;return"critical"===e?(0,t.jsx)(j,{className:r}):"warn"===e?(0,t.jsx)(ty,{className:r}):(0,t.jsx)(y,{className:r})}function tN(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(0)}K`:String(e)}function tC({health:e}){if(!e)return(0,t.jsx)("span",{className:"text-[10px] text-muted-foreground/40",children:"ctx –"});let{percentage:r,warningLevel:s}=e;return(0,t.jsxs)("span",{className:`inline-flex items-center gap-1 text-[10px] font-mono ${tw(s)}`,title:`Context: ${r}% used (${s})
|
|
2
|
+
Tokens: ${tN(e.tokensUsed)}${e.maxTokens?` / ${tN(e.maxTokens)}`:""}`,children:[(0,t.jsx)(tk,{level:s}),r,"%"]})}function tS({health:e}){if(!e)return(0,t.jsxs)("div",{className:"flex items-center gap-2 text-xs text-muted-foreground/40",children:[(0,t.jsx)("div",{className:"flex-1 bg-muted rounded-full h-1.5"}),(0,t.jsx)("span",{className:"font-mono shrink-0",children:"–"})]});let{percentage:r,warningLevel:s,tokensUsed:a,maxTokens:n}=e,o=function(e){switch(e){case"critical":return"bg-chart-5";case"warn":return"bg-chart-3";default:return"bg-chart-2"}}(s);return(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"flex-1 bg-muted rounded-full h-1.5 overflow-hidden",title:`${r}% context used`,children:(0,t.jsx)("div",{className:`${o} h-1.5 rounded-full transition-all`,style:{width:`${Math.min(100,r)}%`}})}),(0,t.jsxs)("div",{className:`flex items-center gap-1 text-[10px] font-mono shrink-0 ${tw(s)}`,children:[(0,t.jsx)(tk,{level:s}),(0,t.jsxs)("span",{children:[r,"%"]})]})]}),"safe"!==s&&(0,t.jsxs)("div",{className:`flex items-center gap-1 text-[10px] px-1.5 py-0.5 rounded ${"critical"===s?"bg-chart-5/10 text-chart-5":"bg-chart-3/10 text-chart-3"}`,children:[(0,t.jsx)(tk,{level:s}),(0,t.jsxs)("span",{children:["critical"===s?"Context critical":"Context warn",n?` \xb7 ${tN(a)} / ${tN(n)}`:""]})]})]})}function tz(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"}}function tE({searchQuery:e,sidebarCollapsed:s,mounted:a}){let n,{sessions:o,selectedSession:l,setSelectedSession:i}=function(){let[e,t]=(0,r.useState)([]),[s,a]=(0,r.useState)(null),[n,o]=(0,r.useState)(!1),l=(0,r.useRef)(null);(0,r.useEffect)(()=>{l.current=s?.id??null},[s]);let i=(0,r.useCallback)(async()=>{try{let e=await fetch("/sessions");if(!e.ok)return;let r=await e.json();t(r.sessions);let s=l.current;if(!s&&r.sessions.length>0)a(r.sessions[0]);else if(s){let e=r.sessions.find(e=>e.id===s);e&&a(e)}}catch{}},[]);return(0,r.useEffect)(()=>{i();let e=new EventSource("/events/");return e.onopen=()=>o(!0),e.onmessage=e=>{try{let t=JSON.parse(e.data);"sessions"===t.type&&i()}catch{}},e.onerror=()=>o(!1),()=>{e.close(),o(!1)}},[i]),{sessions:e,selectedSession:s,setSelectedSession:a,connected:n}}(),[d,c]=(0,r.useState)(null),[u,m]=(0,r.useState)(!1),x=o.filter(e=>null!=e.contextHealth),p=x.length>0?{percentage:n=Math.max(...x.map(e=>e.contextHealth.percentage)),warningLevel:n>=75?"critical":n>=65?"warn":"safe"}:null;if(0===o.length)return(0,t.jsx)("div",{className:"flex-1 flex items-center justify-center",children:(0,t.jsx)(tf,{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 h=(l?.tasks||[]).filter(t=>t.subject.toLowerCase().includes(e.toLowerCase())||t.description.toLowerCase().includes(e.toLowerCase())||t.id.toLowerCase().includes(e.toLowerCase())),f=h.filter(e=>"pending"===e.status),g=h.filter(e=>"in_progress"===e.status),b=h.filter(e=>"completed"===e.status),v=e=>e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(0)}K`:String(e),j=e=>e.inputTokens+e.outputTokens+e.cacheCreationTokens+e.cacheReadTokens;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:`bg-sidebar border-r border-sidebar-border flex flex-col overflow-hidden ${a?"transition-all duration-300":""} ${s?"w-0 border-r-0":"w-[220px]"}`,children:[(0,t.jsx)("div",{className:"p-3 border-b border-sidebar-border",children:(0,t.jsx)("span",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wide",children:"Sessions"})}),(0,t.jsx)(tp,{className:"flex-1",children:(0,t.jsx)("div",{className:"p-2 space-y-1",children:o.map(e=>(0,t.jsxs)("button",{onClick:()=>{i(e),c(null)},className:`w-full text-left p-2.5 rounded-lg transition-colors ${l?.id===e.id?"bg-accent border border-ring":"hover:bg-accent/50 border border-transparent"}`,children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[e.tasks.some(e=>"in_progress"===e.status)&&(0,t.jsxs)("span",{className:"relative flex size-2",children:[(0,t.jsx)("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-chart-2 opacity-75"}),(0,t.jsx)("span",{className:"relative inline-flex rounded-full size-2 bg-chart-2"})]}),(0,t.jsx)("span",{className:"text-xs font-medium text-foreground truncate",children:e.projectName||e.id.slice(0,8)})]}),e.projectName&&(0,t.jsx)("div",{className:"text-[10px] text-muted-foreground/60 font-mono truncate mb-1",children:e.id.slice(0,8)}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"flex-1 bg-muted rounded-full h-1.5",children:(0,t.jsx)("div",{className:"bg-chart-2 h-1.5 rounded-full transition-all",style:{width:`${0===e.tasks.length?0:Math.round(e.tasks.filter(e=>"completed"===e.status).length/e.tasks.length*100)}%`}})}),(0,t.jsxs)("span",{className:"text-[10px] text-muted-foreground shrink-0",children:[e.tasks.filter(e=>"completed"===e.status).length,"/",e.tasks.length]})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between text-[10px] text-muted-foreground/60 mt-1",children:[(0,t.jsx)("span",{children:(e=>{let t=Math.floor((Date.now()-new Date(e).getTime())/6e4);if(t<1)return"just now";if(t<60)return`${t}m ago`;let r=Math.floor(t/60);return r<24?`${r}h ago`:`${Math.floor(r/24)}d ago`})(e.updatedAt)}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[e.tokenUsage&&(0,t.jsxs)("span",{title:`In: ${v(e.tokenUsage.inputTokens)} | Out: ${v(e.tokenUsage.outputTokens)} | Cache: ${v(e.tokenUsage.cacheReadTokens)}`,children:[v(j(e.tokenUsage))," tok"]}),(0,t.jsx)(tC,{health:e.contextHealth})]})]})]},e.id))})})]}),(0,t.jsxs)("div",{className:"flex-1 flex flex-col overflow-hidden",children:[p&&"safe"!==p.warningLevel&&(0,t.jsxs)("div",{className:`px-4 py-1.5 flex items-center gap-2 text-xs border-b shrink-0 ${"critical"===p.warningLevel?"bg-chart-5/10 border-chart-5/20 text-chart-5":"bg-chart-3/10 border-chart-3/20 text-chart-3"}`,children:[(0,t.jsx)(tC,{health:{...p,tokensUsed:0}}),(0,t.jsxs)("span",{children:["Highest context across ",x.length," session",1!==x.length?"s":"",":"," ",p.percentage,"% (",p.warningLevel,")"]})]}),l?(0,t.jsxs)("div",{className:"flex-1 flex flex-col overflow-hidden",children:[l.tokenUsage&&(0,t.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,t.jsx)("span",{className:"text-muted-foreground font-medium",children:"Tokens:"}),(0,t.jsxs)("span",{className:"text-foreground",children:[(0,t.jsx)("span",{className:"text-muted-foreground",children:"In "}),v(l.tokenUsage.inputTokens)]}),(0,t.jsxs)("span",{className:"text-foreground",children:[(0,t.jsx)("span",{className:"text-muted-foreground",children:"Out "}),v(l.tokenUsage.outputTokens)]}),(0,t.jsxs)("span",{className:"text-foreground",children:[(0,t.jsx)("span",{className:"text-muted-foreground",children:"Cache Write "}),v(l.tokenUsage.cacheCreationTokens)]}),(0,t.jsxs)("span",{className:"text-foreground",children:[(0,t.jsx)("span",{className:"text-muted-foreground",children:"Cache Read "}),v(l.tokenUsage.cacheReadTokens)]}),(0,t.jsxs)("span",{className:"text-muted-foreground/60",children:["Total:"," ",v(j(l.tokenUsage))]}),l.contextHealth&&(0,t.jsx)("div",{className:"ml-auto w-48",children:(0,t.jsx)(tS,{health:l.contextHealth})})]}),(0,t.jsxs)("div",{className:"flex-1 flex overflow-hidden",children:[(0,t.jsxs)("div",{className:"flex-1 flex gap-4 p-4 overflow-x-auto",children:[(0,t.jsx)(tT,{title:"Pending",count:f.length,tasks:f,statusColor:"chart-1",selectedTask:d,setSelectedTask:c}),(0,t.jsx)(tT,{title:"In Progress",count:g.length,tasks:g,statusColor:"chart-4",selectedTask:d,setSelectedTask:c}),(0,t.jsx)(tT,{title:"Completed",count:b.length,tasks:b,statusColor:"chart-2",selectedTask:d,setSelectedTask:c})]}),d&&(0,t.jsxs)("div",{className:"w-[350px] bg-sidebar border-l border-border flex flex-col shrink-0",children:[(0,t.jsxs)("div",{className:"p-4 border-b border-border flex items-center justify-between",children:[(0,t.jsx)("span",{className:`text-xs px-2 py-0.5 rounded font-semibold ${tz(d.status)}`,children:function(e){switch(e){case"pending":return"PENDING";case"in_progress":return"IN PROGRESS";case"completed":return"COMPLETED";default:return e}}(d.status)}),(0,t.jsx)("button",{onClick:()=>c(null),className:"text-muted-foreground hover:text-foreground text-sm",children:"×"})]}),(0,t.jsx)(tp,{className:"flex-1",children:(0,t.jsxs)("div",{className:"p-4 space-y-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"text-sm font-semibold text-foreground mb-1",children:d.subject}),"in_progress"===d.status&&d.activeForm&&(0,t.jsx)("p",{className:"text-xs text-chart-4 italic",children:d.activeForm})]}),d.description&&(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:"text-xs font-semibold text-muted-foreground uppercase mb-1",children:"Description"}),(0,t.jsx)("p",{className:"text-xs text-foreground/80 leading-relaxed whitespace-pre-wrap",children:d.description})]}),d.blockedBy.length>0&&(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:"text-xs font-semibold text-muted-foreground uppercase mb-1",children:"Blocked By"}),(0,t.jsx)("div",{className:"flex flex-wrap gap-1",children:d.blockedBy.map(e=>(0,t.jsxs)("span",{className:"text-xs bg-chart-3/20 text-chart-3 px-2 py-0.5 rounded",children:["Task #",e]},e))})]}),d.blocks.length>0&&(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:"text-xs font-semibold text-muted-foreground uppercase mb-1",children:"Blocks"}),(0,t.jsx)("div",{className:"flex flex-wrap gap-1",children:d.blocks.map(e=>(0,t.jsxs)("span",{className:"text-xs bg-muted text-muted-foreground px-2 py-0.5 rounded",children:["Task #",e]},e))})]}),(0,t.jsx)("div",{className:"pt-2 border-t border-border",children:(0,t.jsx)("button",{onClick:()=>{var e;return e=d.id,void(navigator.clipboard.writeText(e),m(!0),setTimeout(()=>m(!1),2e3))},className:"flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground transition-colors",children:u?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(tj,{className:"size-3 text-chart-2"}),(0,t.jsx)("span",{className:"text-chart-2",children:"Copied"})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(tv,{className:"size-3"}),(0,t.jsxs)("span",{children:["Copy ID: ",d.id]})]})})})]})})]})]})]}):(0,t.jsx)("div",{className:"flex-1 flex items-center justify-center",children:(0,t.jsx)("div",{className:"text-center",children:(0,t.jsx)("p",{className:"text-muted-foreground",children:"Select a session from the sidebar"})})})]})]})}function tT({title:e,count:r,tasks:s,statusColor:a,selectedTask:n,setSelectedTask:o}){return(0,t.jsxs)("div",{className:"flex-1 min-w-[250px] flex flex-col",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-3 px-1",children:[(0,t.jsx)("div",{className:`size-2 rounded-full bg-${a}`}),(0,t.jsx)("span",{className:"text-xs font-semibold text-muted-foreground uppercase",children:e}),(0,t.jsx)("span",{className:"text-xs text-muted-foreground/60 bg-muted px-1.5 py-0.5 rounded",children:r})]}),(0,t.jsx)(tp,{className:"flex-1",children:(0,t.jsx)("div",{className:"space-y-2 pr-1",children:s.map(e=>(0,t.jsxs)("button",{onClick:()=>o(e),className:`w-full text-left p-3 rounded-lg border transition-colors ${n?.id===e.id?"bg-accent border-ring":"bg-card border-border hover:bg-accent/50"}`,children:[(0,t.jsx)("div",{className:"flex items-center justify-between mb-1",children:(0,t.jsxs)("span",{className:"text-[10px] text-muted-foreground font-mono",children:["#",e.id]})}),(0,t.jsx)("p",{className:"text-sm text-foreground line-clamp-2 mb-1",children:e.subject}),"in_progress"===e.status&&e.activeForm&&(0,t.jsx)("p",{className:"text-xs text-chart-4 italic truncate",children:e.activeForm}),e.blockedBy.length>0&&(0,t.jsx)("div",{className:"flex items-center gap-1 mt-1.5",children:(0,t.jsxs)("span",{className:"text-[10px] text-chart-3",children:["Blocked by #",e.blockedBy[0],e.blockedBy.length>1?` +${e.blockedBy.length-1}`:""]})})]},e.id))})})]})}let tM=l("brain",[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]]),tR=l("wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]]),tL=l("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),t$=l("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),tA=l("bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]),tO=l("git-commit-horizontal",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]]),tD=l("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]),tP=l("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);function t_({label:e,passed:r}){return(0,t.jsxs)("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded text-[10px] font-semibold ${r?"bg-chart-2/15 text-chart-2":"bg-chart-5/15 text-chart-5"}`,children:[r?(0,t.jsx)(y,{className:"size-2.5"}):(0,t.jsx)(tD,{className:"size-2.5"}),e]})}function tI({events:e}){return 0===e.length?(0,t.jsx)("div",{className:"py-8",children:(0,t.jsx)(tf,{lines:["No quality checks logged yet",'Add "quality": {"lint": true} to meta',"Track lint, typecheck, and test results","Results appear here per task"]})}):(0,t.jsx)("div",{className:"space-y-2",children:e.map((e,r)=>{let s=e.checks,a=Object.values(s).every(Boolean),n=Object.values(s).some(e=>!1===e);return(0,t.jsx)("div",{className:`p-3 rounded-lg border transition-colors ${n?"bg-chart-5/5 border-chart-5/20":a?"bg-chart-2/5 border-chart-2/20":"bg-card border-border"}`,children:(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)("div",{className:"mt-0.5 shrink-0",children:n?(0,t.jsx)(tD,{className:"size-3.5 text-chart-5"}):(0,t.jsx)(y,{className:"size-3.5 text-chart-2"})}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-1.5",children:[(0,t.jsx)(tP,{className:"size-3 text-muted-foreground shrink-0"}),(0,t.jsx)("span",{className:"text-xs font-mono text-foreground truncate",children:e.file}),e.taskId&&(0,t.jsxs)("span",{className:"text-[10px] text-muted-foreground/60 shrink-0",children:["(",e.taskId,")"]})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-1.5 mb-1.5",children:[void 0!==s.lint&&(0,t.jsx)(t_,{label:"lint",passed:s.lint}),void 0!==s.typecheck&&(0,t.jsx)(t_,{label:"typecheck",passed:s.typecheck}),void 0!==s.test&&(0,t.jsx)(t_,{label:"test",passed:s.test})]}),(0,t.jsxs)("div",{className:"flex items-center gap-1 text-[10px] text-muted-foreground/50",children:[(0,t.jsx)(t$,{className:"size-2.5"}),(0,t.jsxs)("span",{children:[function(e){try{return new Date(e).toLocaleDateString([],{month:"short",day:"numeric"})}catch{return""}}(e.timestamp)," ",function(e){try{return new Date(e).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}catch{return e}}(e.timestamp)]})]})]})]})},`${e.timestamp}-${r}`)})})}function tU({searchQuery:e,sidebarCollapsed:s,mounted:a}){let{data:n}=function(){let[e,t]=(0,r.useState)(null),s=(0,r.useCallback)(async()=>{try{let e=await fetch("/snapshot");if(!e.ok)return;let r=await e.json();t(r)}catch{}},[]);return(0,r.useEffect)(()=>{s();let e=new EventSource("/events/");return e.onmessage=e=>{try{let t=JSON.parse(e.data);"plan"===t.type&&s()}catch{}},()=>e.close()},[s]),{data:e,refresh:s}}(),[o,l]=(0,r.useState)(null),[i,d]=(0,r.useState)(new Set),[c,u]=(0,r.useState)([]),[m,x]=(0,r.useState)(!1);if((0,r.useEffect)(()=>{n?.snapshot&&d(e=>e.size>0?e:new Set(Object.keys(n.snapshot.slices)))},[n]),(0,r.useEffect)(()=>{o?fetch(`/quality-timeline?taskId=${encodeURIComponent(o.id)}`).then(e=>e.ok?e.json():{events:[]}).then(e=>u(e.events??[])).catch(()=>u([])):u([])},[o?.id]),!n||!n.snapshot)return(0,t.jsx)("div",{className:"flex-1 p-8",children:(0,t.jsx)("div",{className:"max-w-4xl mx-auto",children:(0,t.jsxs)("div",{className:"bg-destructive/10 border border-destructive rounded-lg p-6",children:[(0,t.jsx)("h2",{className:"text-xl font-bold text-destructive-foreground mb-4",children:n?.queueErrors?.length?"Queue Parse Errors":"Plan Mode Not Available"}),(0,t.jsx)("div",{className:"space-y-2",children:n?.queueErrors?.map((e,r)=>(0,t.jsx)("div",{className:"text-destructive-foreground text-sm",children:e},r))||(0,t.jsx)("div",{className:"text-muted-foreground text-sm",children:'Run "agent-scope init" to set up Plan mode'})})]})})});let p=n.snapshot,h=p.tasks.filter(t=>t.description.toLowerCase().includes(e.toLowerCase())||t.id.toLowerCase().includes(e.toLowerCase())).reduce((e,t)=>(e[t.slice]||(e[t.slice]=[]),e[t.slice].push(t),e),{}),b=e=>p.tasks.filter(t=>t.dependsOn.includes(e)),v=p.tasks.reduce((e,t)=>{if(t.lastEvent){let r=t.lastEvent.agent;e[r]||(e[r]={done:0,failed:0,totalDuration:0,taskCount:0}),e[r].taskCount++,"DONE"===t.lastEvent.status&&e[r].done++,"FAILED"===t.lastEvent.status&&e[r].failed++;let s=t.lastEvent.meta?.duration;"number"==typeof s&&(e[r].totalDuration+=s)}return e},{});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:`bg-sidebar border-r border-sidebar-border flex flex-col overflow-hidden ${a?"transition-all duration-300":""} ${s?"w-0 min-w-0 border-r-0":"w-72 min-w-[280px]"}`,children:(0,t.jsx)(tp,{className:"flex-1",children:(0,t.jsx)("div",{className:"p-3 space-y-3",children:Object.entries(h).map(([e,r])=>(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("button",{onClick:()=>{d(t=>{let r=new Set(t);return r.has(e)?r.delete(e):r.add(e),r})},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,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[i.has(e)?(0,t.jsx)(g,{className:"size-3.5"}):(0,t.jsx)(f,{className:"size-3.5"}),(0,t.jsxs)("span",{children:[e," • ",r.length," tasks"]})]}),(0,t.jsxs)("span",{className:"text-muted-foreground/60",children:[r.filter(e=>"DONE"===e.status).length,"/",r.length]})]}),i.has(e)&&r.map(e=>(0,t.jsxs)("button",{onClick:()=>l(e),className:`w-full text-left p-3 rounded-lg border transition-colors ${o?.id===e.id?"bg-accent border-ring":"bg-card border-border hover:bg-accent/50"}`,children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-1.5",children:[(0,t.jsx)("span",{className:"text-sm font-mono text-foreground",children:e.id}),(0,t.jsx)("span",{className:`text-xs px-2 py-0.5 rounded font-semibold ${tz(e.status)}`,children:e.status})]}),(0,t.jsx)("div",{className:"text-sm text-muted-foreground line-clamp-2",children:e.description}),(0,t.jsxs)("div",{className:"flex items-center gap-2 mt-1",children:[(0,t.jsx)("span",{className:"text-xs text-muted-foreground/60",children:e.area}),"string"==typeof e.lastEvent?.meta?.commit&&(0,t.jsxs)("span",{className:"flex items-center gap-1 text-[10px] text-chart-4/70 font-mono",children:[(0,t.jsx)(tO,{className:"size-2.5"}),String(e.lastEvent.meta.commit).slice(0,7)]})]})]},e.id))]},e))})})}),(0,t.jsx)("div",{className:"flex-1 flex flex-col overflow-hidden",children:o?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"bg-sidebar border-b border-border p-6",children:[(0,t.jsx)("h2",{className:"text-2xl font-semibold text-foreground mb-3",children:o.description}),(0,t.jsxs)("div",{className:"flex items-center gap-4 text-sm text-muted-foreground",children:[(0,t.jsxs)("span",{children:["Task: ",o.id]}),(0,t.jsx)("span",{children:"•"}),(0,t.jsxs)("span",{children:["Area: ",o.area]}),(0,t.jsx)("span",{children:"•"}),(0,t.jsx)("span",{className:`px-2 py-1 rounded text-xs font-semibold ${tz(o.status)}`,children:o.status}),(0,t.jsx)("div",{className:"flex-1"}),(0,t.jsx)("button",{onClick:()=>{var e;return e=o.id,void(navigator.clipboard.writeText(e),x(!0),setTimeout(()=>x(!1),2e3))},className:"flex items-center gap-1.5 px-3 py-1.5 rounded hover:bg-accent transition-colors",children:m?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(tj,{className:"size-3.5 text-chart-2"}),(0,t.jsx)("span",{className:"text-chart-2",children:"Copied"})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(tv,{className:"size-3.5"}),(0,t.jsx)("span",{children:"Copy ID"})]})})]})]}),(0,t.jsxs)("div",{className:"flex-1 flex overflow-hidden",children:[(0,t.jsxs)("div",{className:"w-1/2 border-r border-border flex flex-col",children:[(0,t.jsx)("div",{className:"bg-sidebar border-b border-border px-4 py-2",children:(0,t.jsx)("h3",{className:"text-sm font-semibold text-foreground uppercase tracking-wide",children:"Task Details"})}),(0,t.jsx)(tp,{className:"flex-1",children:(0,t.jsxs)("div",{className:"p-6 space-y-6",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:"text-xs font-semibold text-muted-foreground uppercase mb-2",children:"Acceptance Criteria"}),(0,t.jsx)("p",{className:"text-sm text-foreground/80 leading-relaxed",children:o.acceptanceCriteria})]}),o.dependsOn.length>0&&(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:"text-xs font-semibold text-muted-foreground uppercase mb-2",children:"Dependencies"}),(0,t.jsx)("div",{className:"space-y-2",children:o.dependsOn.map(e=>{let r=p.tasks.find(t=>t.id===e);return(0,t.jsx)("button",{onClick:()=>r&&l(r),className:"w-full text-left p-3 rounded-lg bg-card border border-border hover:bg-accent/50 transition-colors",children:(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"text-sm font-mono text-foreground",children:e}),r&&(0,t.jsx)("span",{className:`text-xs px-2 py-0.5 rounded font-semibold ${tz(r.status)}`,children:r.status})]})},e)})})]}),b(o.id).length>0&&(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:"text-xs font-semibold text-muted-foreground uppercase mb-2",children:"Blocks These Tasks"}),(0,t.jsx)("div",{className:"space-y-2",children:b(o.id).map(e=>(0,t.jsx)("button",{onClick:()=>l(e),className:"w-full text-left p-3 rounded-lg bg-card border border-border hover:bg-accent/50 transition-colors",children:(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"text-sm font-mono text-foreground",children:e.id}),(0,t.jsx)("span",{className:`text-xs px-2 py-0.5 rounded font-semibold ${tz(e.status)}`,children:e.status})]})},e.id))})]}),o.lastEvent&&(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:"text-xs font-semibold text-muted-foreground uppercase mb-2",children:"Execution"}),(0,t.jsxs)("div",{className:"bg-card rounded-lg p-4 space-y-3 text-sm border border-border",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-foreground font-mono",children:o.lastEvent.agent}),(0,t.jsx)("span",{className:`px-2 py-0.5 rounded text-xs font-semibold ${tz(o.lastEvent.status)}`,children:o.lastEvent.status})]}),(0,t.jsx)("span",{className:"text-muted-foreground text-xs",children:new Date(o.lastEvent.timestamp).toLocaleString()})]}),o.lastEvent.reason&&(0,t.jsx)("div",{className:"text-xs text-chart-3 bg-chart-3/10 p-2 rounded",children:o.lastEvent.reason}),o.lastEvent.meta?.duration!=null&&(0,t.jsxs)("div",{className:"flex items-center gap-4 text-xs text-muted-foreground",children:[(0,t.jsxs)("span",{className:"flex items-center gap-1",children:[(0,t.jsx)(t$,{className:"size-3"}),String(o.lastEvent.meta.duration),"s"]}),null!=o.lastEvent.meta.stepCount&&(0,t.jsxs)("span",{children:[String(o.lastEvent.meta.stepCount)," ","steps"]})]}),"string"==typeof o.lastEvent.meta?.commit&&(0,t.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 bg-background rounded-md",children:[(0,t.jsx)(tO,{className:"size-3.5 text-chart-4 shrink-0"}),(0,t.jsx)("code",{className:"text-xs text-chart-4 font-mono",children:String(o.lastEvent.meta.commit).slice(0,7)}),(0,t.jsx)("span",{className:"text-xs text-muted-foreground truncate",children:String(o.lastEvent.meta.commitMsg||"")})]}),Array.isArray(o.lastEvent.meta?.steps)&&(0,t.jsx)("div",{className:"mt-2 pt-3 border-t border-border space-y-1",children:o.lastEvent.meta.steps.map((e,r)=>(0,t.jsxs)("div",{className:"flex items-start gap-2 py-1.5 px-2 rounded hover:bg-background/50",children:[(0,t.jsxs)("div",{className:"mt-0.5",children:["thought"===e.type&&(0,t.jsx)(tM,{className:"size-3.5 text-chart-4"}),"tool_call"===e.type&&(0,t.jsx)(tR,{className:"size-3.5 text-chart-1"}),"observation"===e.type&&(0,t.jsx)(tL,{className:"size-3.5 text-chart-2"}),"error"===e.type&&(0,t.jsx)(j,{className:"size-3.5 text-chart-5"})]}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsx)("span",{className:"text-xs font-medium text-foreground truncate",children:e.name}),(0,t.jsxs)("span",{className:"text-[10px] text-muted-foreground/60 shrink-0",children:[e.duration,"ms"]})]}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground/80 truncate",children:e.summary})]})]},r))}),o.lastEvent.meta&&!Array.isArray(o.lastEvent.meta.steps)&&(0,t.jsx)("div",{className:"mt-2 pt-3 border-t border-border",children:(0,t.jsx)("pre",{className:"text-xs text-muted-foreground bg-background p-2 rounded overflow-auto",children:JSON.stringify(o.lastEvent.meta,null,2)})})]})]})]})})]}),(0,t.jsxs)("div",{className:"w-1/2 flex flex-col",children:[(0,t.jsx)("div",{className:"bg-sidebar border-b border-border px-4 py-2",children:(0,t.jsx)("h3",{className:"text-sm font-semibold text-foreground uppercase tracking-wide",children:"Overview"})}),(0,t.jsx)(tp,{className:"flex-1",children:(0,t.jsxs)("div",{className:"p-6 space-y-6",children:[(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,t.jsxs)("div",{className:"bg-card border border-border rounded-lg p-4",children:[(0,t.jsx)("div",{className:"text-2xl font-bold text-foreground",children:p.summary.total}),(0,t.jsx)("div",{className:"text-xs text-muted-foreground mt-1",children:"Total Tasks"})]}),(0,t.jsxs)("div",{className:"bg-card border border-chart-2/30 rounded-lg p-4",children:[(0,t.jsx)("div",{className:"text-2xl font-bold text-chart-2",children:p.summary.done}),(0,t.jsx)("div",{className:"text-xs text-muted-foreground mt-1",children:"Done"})]}),(0,t.jsxs)("div",{className:"bg-card border border-chart-5/30 rounded-lg p-4",children:[(0,t.jsx)("div",{className:"text-2xl font-bold text-chart-5",children:p.summary.failed}),(0,t.jsx)("div",{className:"text-xs text-muted-foreground mt-1",children:"Failed"})]}),(0,t.jsxs)("div",{className:"bg-card border border-chart-3/30 rounded-lg p-4",children:[(0,t.jsx)("div",{className:"text-2xl font-bold text-chart-3",children:p.summary.blocked}),(0,t.jsx)("div",{className:"text-xs text-muted-foreground mt-1",children:"Blocked"})]}),(0,t.jsxs)("div",{className:"bg-card border border-chart-1/30 rounded-lg p-4",children:[(0,t.jsx)("div",{className:"text-2xl font-bold text-chart-1",children:p.summary.ready}),(0,t.jsx)("div",{className:"text-xs text-muted-foreground mt-1",children:"Ready"})]}),(0,t.jsxs)("div",{className:"bg-card border border-border rounded-lg p-4",children:[(0,t.jsxs)("div",{className:"text-2xl font-bold text-foreground",children:[Math.round(100*p.summary.successRate),"%"]}),(0,t.jsx)("div",{className:"text-xs text-muted-foreground mt-1",children:"Success Rate"})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:"text-xs font-semibold text-muted-foreground uppercase mb-3",children:"Slice Progress"}),(0,t.jsx)("div",{className:"space-y-3",children:Object.entries(p.slices).map(([e,r])=>(0,t.jsxs)("div",{className:"bg-card border border-border rounded-lg p-4",children:[(0,t.jsxs)("div",{className:"flex justify-between mb-2",children:[(0,t.jsx)("span",{className:"font-semibold text-foreground",children:e}),(0,t.jsxs)("span",{className:"text-muted-foreground text-sm",children:[r.done,"/",r.total," (",r.progress,"%)"]})]}),(0,t.jsx)("div",{className:"w-full bg-muted rounded-full h-2",children:(0,t.jsx)("div",{className:"bg-chart-2 h-2 rounded-full transition-all",style:{width:`${r.progress}%`}})}),(0,t.jsxs)("div",{className:"flex gap-4 mt-3 text-xs",children:[(0,t.jsxs)("span",{className:"text-chart-2",children:["Done: ",r.done]}),(0,t.jsxs)("span",{className:"text-chart-5",children:["Failed: ",r.failed]}),(0,t.jsxs)("span",{className:"text-chart-3",children:["Blocked: ",r.blocked]}),(0,t.jsxs)("span",{className:"text-chart-1",children:["Ready: ",r.ready]})]})]},e))})]}),c.length>0&&(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:"text-xs font-semibold text-muted-foreground uppercase mb-3",children:"Quality Checks"}),(0,t.jsx)(tI,{events:c})]}),Object.keys(v).length>0&&(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:"text-xs font-semibold text-muted-foreground uppercase mb-3",children:"Agent Activity"}),(0,t.jsx)("div",{className:"space-y-2",children:Object.entries(v).map(([e,r])=>(0,t.jsxs)("div",{className:"bg-card border border-border rounded-lg p-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(tA,{className:"size-4 text-chart-4"}),(0,t.jsx)("span",{className:"font-mono text-sm text-foreground",children:e})]}),(0,t.jsxs)("span",{className:"text-xs text-muted-foreground",children:[r.taskCount," tasks"]})]}),(0,t.jsxs)("div",{className:"flex gap-3 text-xs",children:[(0,t.jsxs)("span",{className:"text-chart-2",children:[r.done," done"]}),r.failed>0&&(0,t.jsxs)("span",{className:"text-chart-5",children:[r.failed," failed"]}),r.totalDuration>0&&(0,t.jsxs)("span",{className:"text-muted-foreground flex items-center gap-1",children:[(0,t.jsx)(t$,{className:"size-3"}),r.totalDuration.toFixed(1),"s total"]})]})]},e))})]})]})})]})]})]}):(0,t.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,t.jsx)(tf,{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 tW(){let[e,s]=(0,r.useState)(!1),[a,n]=(0,r.useState)(!0);return((0,r.useEffect)(()=>{fetch("/claude-insights").then(e=>{if(e.ok){let t=e.headers.get("content-type");t&&t.includes("application/json")&&s(!0)}else s(!0)}).catch(()=>s(!0)).finally(()=>n(!1))},[]),a)?(0,t.jsx)("div",{className:"flex-1 flex items-center justify-center",children:(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)(m,{className:"size-16 mx-auto mb-4 text-muted-foreground animate-pulse"}),(0,t.jsx)("p",{className:"text-muted-foreground",children:"Loading insights..."})]})}):(0,t.jsxs)("div",{className:"flex-1 flex flex-col overflow-hidden",children:[(0,t.jsxs)("div",{className:"px-4 py-2 border-b border-border bg-sidebar/30 flex items-center justify-between shrink-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(tM,{className:"size-4 text-primary"}),(0,t.jsx)("span",{className:"text-sm font-medium",children:"Claude Code Insights"}),(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:"Usage analytics from /insight command"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsxs)("button",{onClick:()=>window.location.reload(),className:"text-xs text-muted-foreground hover:text-foreground transition-colors flex items-center gap-1",title:"Refresh insights",children:[(0,t.jsx)(d,{className:"size-3"}),"Refresh"]}),(0,t.jsx)("a",{href:"/claude-insights",target:"_blank",className:"text-xs text-muted-foreground hover:text-foreground transition-colors",children:"Open in new tab →"})]})]}),e?(0,t.jsx)("div",{className:"flex-1 flex items-center justify-center p-8",children:(0,t.jsxs)("div",{className:"max-w-2xl",children:[(0,t.jsx)(m,{className:"size-16 mx-auto mb-6 text-muted-foreground"}),(0,t.jsx)(tf,{lines:["Unlock deep insights into your Claude Code usage...","Discover what's working, what's slowing you down...","See your most-used tools, friction points, and wins...","Get personalized CLAUDE.md suggestions...","Learn about features you haven't tried yet...","Open Claude Code and run: /insight"]}),(0,t.jsxs)("div",{className:"mt-8 bg-muted/50 border border-border rounded-lg p-6",children:[(0,t.jsxs)("h3",{className:"text-sm font-semibold mb-3 flex items-center gap-2",children:[(0,t.jsx)(tM,{className:"size-4"}),"How to generate your insights:"]}),(0,t.jsxs)("ol",{className:"text-sm text-muted-foreground space-y-2 list-decimal list-inside",children:[(0,t.jsx)("li",{children:"Open your terminal with an active Claude Code session"}),(0,t.jsxs)("li",{children:["Type"," ",(0,t.jsx)("code",{className:"bg-background px-2 py-0.5 rounded text-xs font-mono text-foreground",children:"/insight"})," ","and press Enter"]}),(0,t.jsx)("li",{children:"Wait 10-30 seconds while Claude analyzes your usage patterns"}),(0,t.jsxs)("li",{children:["Click"," ",(0,t.jsxs)("button",{onClick:()=>window.location.reload(),className:"inline-flex items-center gap-1 text-primary hover:underline",children:[(0,t.jsx)(d,{className:"size-3"}),"Refresh"]})," ","to see your report"]})]})]})]})}):(0,t.jsx)("iframe",{src:"/claude-insights",className:"flex-1 w-full border-0",sandbox:"allow-scripts allow-same-origin",title:"Claude Code Insights Report"})]})}function tF(){let[e,s]=(0,r.useState)("live"),[a,n]=(0,r.useState)({live:!1,plan:!1}),[o,l]=(0,r.useState)(!0),[f,g]=(0,r.useState)(null),[b,v]=(0,r.useState)(""),[j,y]=(0,r.useState)(!1),[w,k]=(0,r.useState)(!1);return((0,r.useEffect)(()=>{k(!0)},[]),(0,r.useEffect)(()=>{fetch("/health").then(e=>e.json()).then(e=>{n(e.modes),e.modes.live?s("live"):e.modes.plan&&s("plan"),l(!1)}).catch(()=>{g("Failed to connect to server"),l(!1)})},[]),o)?(0,t.jsx)("div",{className:"h-screen bg-background flex items-center justify-center",children:(0,t.jsx)("div",{className:"text-muted-foreground",children:"Loading..."})}):f?(0,t.jsx)("div",{className:"h-screen bg-background flex items-center justify-center",children:(0,t.jsxs)("div",{className:"text-destructive-foreground",children:["Error: ",f]})}):(0,t.jsxs)("div",{className:"h-screen bg-background flex flex-col overflow-hidden",children:[(0,t.jsxs)("div",{className:"bg-sidebar border-b border-sidebar-border px-4 py-2 flex items-center justify-between shrink-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsx)("button",{onClick:()=>y(!j),className:"p-1.5 rounded hover:bg-sidebar-accent transition-colors",title:j?"Expand sidebar":"Collapse sidebar",children:j?(0,t.jsx)(p,{className:"size-4"}):(0,t.jsx)(h,{className:"size-4"})}),(0,t.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,t.jsx)("h1",{className:"text-lg font-semibold text-foreground",children:"agent-scope"}),(0,t.jsx)("span",{className:"text-xs text-muted-foreground bg-muted px-2 py-0.5 rounded",children:"v0.5.2"})]}),(0,t.jsx)("div",{className:"flex items-center bg-muted rounded-lg p-0.5",children:[{id:"live",icon:c,label:"Live",show:a.live},{id:"plan",icon:u,label:"Plan",show:a.plan},{id:"insights",icon:m,label:"Insights",show:a.live||a.plan},{id:"worktrees",icon:x,label:"Worktrees",show:a.live||a.plan}].filter(e=>e.show).map(({id:r,icon:a,label:n})=>(0,t.jsxs)("button",{onClick:()=>s(r),className:`flex items-center gap-1.5 px-3 py-1 rounded text-xs font-medium transition-colors ${e===r?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"}`,children:[(0,t.jsx)(a,{className:"size-3"}),n]},r))})]}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(i,{className:"absolute left-3 top-1/2 -translate-y-1/2 size-3.5 text-muted-foreground"}),(0,t.jsx)("input",{type:"text",placeholder:"Filter...",value:b,onChange:e=>v(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,t.jsx)("button",{className:"p-1.5 rounded hover:bg-sidebar-accent transition-colors",onClick:()=>window.location.reload(),children:(0,t.jsx)(d,{className:"size-3.5 text-muted-foreground"})})]})]}),(0,t.jsx)("div",{className:"flex-1 flex overflow-hidden",children:"live"===e?(0,t.jsx)(tE,{searchQuery:b,sidebarCollapsed:j,mounted:w}):"plan"===e?(0,t.jsx)(tU,{searchQuery:b,sidebarCollapsed:j,mounted:w}):"worktrees"===e?(0,t.jsx)(tb,{}):(0,t.jsx)(tW,{})})]})}e.s(["default",()=>tF],23733)}]);
|