orcasynth 1.4.3 → 1.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/advisor/mcpConfig.js +26 -0
- package/dist/advisor/service.js +74 -0
- package/dist/api/server.js +71 -1
- package/dist/cli/commands.js +26 -0
- package/dist/cli/index.js +9 -2
- package/dist/daemon/bootstrap.js +14 -1
- package/dist/mcp/server.js +34 -0
- package/dist/mcp/tools.js +17 -0
- package/dist/overseer/sessionInfo.js +7 -1
- package/dist/prompts/advisor.md +13 -0
- package/dist/shared/apiClient.js +23 -0
- package/dist/store/db.js +4 -0
- package/dist/store/schema.sql +3 -1
- package/dist/store/userStore.js +26 -1
- package/dist/tmux/driver.js +8 -0
- package/dist/tmux/fakeDriver.js +9 -0
- package/package.json +4 -2
- package/prompts/advisor.md +13 -0
- package/web-dist/.next/BUILD_ID +1 -1
- package/web-dist/.next/build-manifest.json +3 -3
- package/web-dist/.next/server/app/_global-error.html +1 -1
- package/web-dist/.next/server/app/_global-error.rsc +1 -1
- package/web-dist/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/web-dist/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/web-dist/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/web-dist/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/web-dist/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/web-dist/.next/server/app/_not-found/page/react-loadable-manifest.json +10 -1
- package/web-dist/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/web-dist/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/web-dist/.next/server/app/_not-found.html +1 -1
- package/web-dist/.next/server/app/_not-found.rsc +11 -11
- package/web-dist/.next/server/app/_not-found.segments/_full.segment.rsc +11 -11
- package/web-dist/.next/server/app/_not-found.segments/_head.segment.rsc +4 -4
- package/web-dist/.next/server/app/_not-found.segments/_index.segment.rsc +6 -6
- package/web-dist/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
- package/web-dist/.next/server/app/_not-found.segments/_not-found.segment.rsc +3 -3
- package/web-dist/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/web-dist/.next/server/app/account/page/react-loadable-manifest.json +10 -1
- package/web-dist/.next/server/app/account/page.js.nft.json +1 -1
- package/web-dist/.next/server/app/account/page_client-reference-manifest.js +1 -1
- package/web-dist/.next/server/app/account.html +1 -1
- package/web-dist/.next/server/app/account.rsc +13 -13
- package/web-dist/.next/server/app/account.segments/_full.segment.rsc +13 -13
- package/web-dist/.next/server/app/account.segments/_head.segment.rsc +4 -4
- package/web-dist/.next/server/app/account.segments/_index.segment.rsc +6 -6
- package/web-dist/.next/server/app/account.segments/_tree.segment.rsc +2 -2
- package/web-dist/.next/server/app/account.segments/account/__PAGE__.segment.rsc +4 -4
- package/web-dist/.next/server/app/account.segments/account.segment.rsc +3 -3
- package/web-dist/.next/server/app/dash/page/react-loadable-manifest.json +10 -1
- package/web-dist/.next/server/app/dash/page.js.nft.json +1 -1
- package/web-dist/.next/server/app/dash/page_client-reference-manifest.js +1 -1
- package/web-dist/.next/server/app/dash.html +1 -1
- package/web-dist/.next/server/app/dash.rsc +13 -13
- package/web-dist/.next/server/app/dash.segments/_full.segment.rsc +13 -13
- package/web-dist/.next/server/app/dash.segments/_head.segment.rsc +4 -4
- package/web-dist/.next/server/app/dash.segments/_index.segment.rsc +6 -6
- package/web-dist/.next/server/app/dash.segments/_tree.segment.rsc +2 -2
- package/web-dist/.next/server/app/dash.segments/dash/__PAGE__.segment.rsc +4 -4
- package/web-dist/.next/server/app/dash.segments/dash.segment.rsc +3 -3
- package/web-dist/.next/server/app/escalations/page/react-loadable-manifest.json +10 -1
- package/web-dist/.next/server/app/escalations/page.js.nft.json +1 -1
- package/web-dist/.next/server/app/escalations/page_client-reference-manifest.js +1 -1
- package/web-dist/.next/server/app/escalations.html +1 -1
- package/web-dist/.next/server/app/escalations.rsc +13 -13
- package/web-dist/.next/server/app/escalations.segments/_full.segment.rsc +13 -13
- package/web-dist/.next/server/app/escalations.segments/_head.segment.rsc +4 -4
- package/web-dist/.next/server/app/escalations.segments/_index.segment.rsc +6 -6
- package/web-dist/.next/server/app/escalations.segments/_tree.segment.rsc +2 -2
- package/web-dist/.next/server/app/escalations.segments/escalations/__PAGE__.segment.rsc +4 -4
- package/web-dist/.next/server/app/escalations.segments/escalations.segment.rsc +3 -3
- package/web-dist/.next/server/app/index.html +1 -1
- package/web-dist/.next/server/app/index.rsc +13 -13
- package/web-dist/.next/server/app/index.segments/__PAGE__.segment.rsc +4 -4
- package/web-dist/.next/server/app/index.segments/_full.segment.rsc +13 -13
- package/web-dist/.next/server/app/index.segments/_head.segment.rsc +4 -4
- package/web-dist/.next/server/app/index.segments/_index.segment.rsc +6 -6
- package/web-dist/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/web-dist/.next/server/app/kanban/page/react-loadable-manifest.json +10 -1
- package/web-dist/.next/server/app/kanban/page.js.nft.json +1 -1
- package/web-dist/.next/server/app/kanban/page_client-reference-manifest.js +1 -1
- package/web-dist/.next/server/app/kanban.html +1 -1
- package/web-dist/.next/server/app/kanban.rsc +13 -13
- package/web-dist/.next/server/app/kanban.segments/_full.segment.rsc +13 -13
- package/web-dist/.next/server/app/kanban.segments/_head.segment.rsc +4 -4
- package/web-dist/.next/server/app/kanban.segments/_index.segment.rsc +6 -6
- package/web-dist/.next/server/app/kanban.segments/_tree.segment.rsc +2 -2
- package/web-dist/.next/server/app/kanban.segments/kanban/__PAGE__.segment.rsc +4 -4
- package/web-dist/.next/server/app/kanban.segments/kanban.segment.rsc +3 -3
- package/web-dist/.next/server/app/onboarding/page/react-loadable-manifest.json +10 -1
- package/web-dist/.next/server/app/onboarding/page.js.nft.json +1 -1
- package/web-dist/.next/server/app/onboarding/page_client-reference-manifest.js +1 -1
- package/web-dist/.next/server/app/onboarding.html +1 -1
- package/web-dist/.next/server/app/onboarding.rsc +13 -13
- package/web-dist/.next/server/app/onboarding.segments/_full.segment.rsc +13 -13
- package/web-dist/.next/server/app/onboarding.segments/_head.segment.rsc +4 -4
- package/web-dist/.next/server/app/onboarding.segments/_index.segment.rsc +6 -6
- package/web-dist/.next/server/app/onboarding.segments/_tree.segment.rsc +2 -2
- package/web-dist/.next/server/app/onboarding.segments/onboarding/__PAGE__.segment.rsc +4 -4
- package/web-dist/.next/server/app/onboarding.segments/onboarding.segment.rsc +3 -3
- package/web-dist/.next/server/app/page/react-loadable-manifest.json +10 -1
- package/web-dist/.next/server/app/page.js.nft.json +1 -1
- package/web-dist/.next/server/app/page_client-reference-manifest.js +1 -1
- package/web-dist/.next/server/app/projects/page/react-loadable-manifest.json +8 -0
- package/web-dist/.next/server/app/projects/page.js.nft.json +1 -1
- package/web-dist/.next/server/app/projects/page_client-reference-manifest.js +1 -1
- package/web-dist/.next/server/app/projects.html +1 -1
- package/web-dist/.next/server/app/projects.rsc +13 -13
- package/web-dist/.next/server/app/projects.segments/_full.segment.rsc +13 -13
- package/web-dist/.next/server/app/projects.segments/_head.segment.rsc +4 -4
- package/web-dist/.next/server/app/projects.segments/_index.segment.rsc +6 -6
- package/web-dist/.next/server/app/projects.segments/_tree.segment.rsc +2 -2
- package/web-dist/.next/server/app/projects.segments/projects/__PAGE__.segment.rsc +4 -4
- package/web-dist/.next/server/app/projects.segments/projects.segment.rsc +3 -3
- package/web-dist/.next/server/app/sessions/page/react-loadable-manifest.json +10 -1
- package/web-dist/.next/server/app/sessions/page.js.nft.json +1 -1
- package/web-dist/.next/server/app/sessions/page_client-reference-manifest.js +1 -1
- package/web-dist/.next/server/app/sessions.html +1 -1
- package/web-dist/.next/server/app/sessions.rsc +13 -13
- package/web-dist/.next/server/app/sessions.segments/_full.segment.rsc +13 -13
- package/web-dist/.next/server/app/sessions.segments/_head.segment.rsc +4 -4
- package/web-dist/.next/server/app/sessions.segments/_index.segment.rsc +6 -6
- package/web-dist/.next/server/app/sessions.segments/_tree.segment.rsc +2 -2
- package/web-dist/.next/server/app/sessions.segments/sessions/__PAGE__.segment.rsc +4 -4
- package/web-dist/.next/server/app/sessions.segments/sessions.segment.rsc +3 -3
- package/web-dist/.next/server/app/settings/page/react-loadable-manifest.json +10 -1
- package/web-dist/.next/server/app/settings/page.js.nft.json +1 -1
- package/web-dist/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/web-dist/.next/server/app/settings.html +1 -1
- package/web-dist/.next/server/app/settings.rsc +13 -13
- package/web-dist/.next/server/app/settings.segments/_full.segment.rsc +13 -13
- package/web-dist/.next/server/app/settings.segments/_head.segment.rsc +4 -4
- package/web-dist/.next/server/app/settings.segments/_index.segment.rsc +6 -6
- package/web-dist/.next/server/app/settings.segments/_tree.segment.rsc +2 -2
- package/web-dist/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +4 -4
- package/web-dist/.next/server/app/settings.segments/settings.segment.rsc +3 -3
- package/web-dist/.next/server/app/tasks/page/react-loadable-manifest.json +10 -1
- package/web-dist/.next/server/app/tasks/page.js.nft.json +1 -1
- package/web-dist/.next/server/app/tasks/page_client-reference-manifest.js +1 -1
- package/web-dist/.next/server/app/tasks.html +1 -1
- package/web-dist/.next/server/app/tasks.rsc +13 -13
- package/web-dist/.next/server/app/tasks.segments/_full.segment.rsc +13 -13
- package/web-dist/.next/server/app/tasks.segments/_head.segment.rsc +4 -4
- package/web-dist/.next/server/app/tasks.segments/_index.segment.rsc +6 -6
- package/web-dist/.next/server/app/tasks.segments/_tree.segment.rsc +2 -2
- package/web-dist/.next/server/app/tasks.segments/tasks/__PAGE__.segment.rsc +4 -4
- package/web-dist/.next/server/app/tasks.segments/tasks.segment.rsc +3 -3
- package/web-dist/.next/server/app/timeline/page/react-loadable-manifest.json +10 -1
- package/web-dist/.next/server/app/timeline/page.js.nft.json +1 -1
- package/web-dist/.next/server/app/timeline/page_client-reference-manifest.js +1 -1
- package/web-dist/.next/server/app/timeline.html +1 -1
- package/web-dist/.next/server/app/timeline.rsc +13 -13
- package/web-dist/.next/server/app/timeline.segments/_full.segment.rsc +13 -13
- package/web-dist/.next/server/app/timeline.segments/_head.segment.rsc +4 -4
- package/web-dist/.next/server/app/timeline.segments/_index.segment.rsc +6 -6
- package/web-dist/.next/server/app/timeline.segments/_tree.segment.rsc +2 -2
- package/web-dist/.next/server/app/timeline.segments/timeline/__PAGE__.segment.rsc +4 -4
- package/web-dist/.next/server/app/timeline.segments/timeline.segment.rsc +3 -3
- package/web-dist/.next/server/app/users/page/react-loadable-manifest.json +10 -1
- package/web-dist/.next/server/app/users/page.js.nft.json +1 -1
- package/web-dist/.next/server/app/users/page_client-reference-manifest.js +1 -1
- package/web-dist/.next/server/app/users.html +1 -1
- package/web-dist/.next/server/app/users.rsc +13 -13
- package/web-dist/.next/server/app/users.segments/_full.segment.rsc +13 -13
- package/web-dist/.next/server/app/users.segments/_head.segment.rsc +4 -4
- package/web-dist/.next/server/app/users.segments/_index.segment.rsc +6 -6
- package/web-dist/.next/server/app/users.segments/_tree.segment.rsc +2 -2
- package/web-dist/.next/server/app/users.segments/users/__PAGE__.segment.rsc +4 -4
- package/web-dist/.next/server/app/users.segments/users.segment.rsc +3 -3
- package/web-dist/.next/server/chunks/ssr/[root-of-the-server]__0yfatub._.js +3 -0
- package/web-dist/.next/server/chunks/ssr/_01rh28z._.js +3 -0
- package/web-dist/.next/server/chunks/ssr/_057a06r._.js +1 -1
- package/web-dist/.next/server/chunks/ssr/_081ml1k._.js +3 -0
- package/web-dist/.next/server/chunks/ssr/_0afhsmf._.js +3 -0
- package/web-dist/.next/server/chunks/ssr/{_1zscr7t._.js → _0m2j9hu._.js} +2 -2
- package/web-dist/.next/server/chunks/ssr/_0tzourm._.js +1 -1
- package/web-dist/.next/server/chunks/ssr/_0ysqykx._.js +3 -0
- package/web-dist/.next/server/chunks/ssr/_10ak-sh._.js +3 -0
- package/web-dist/.next/server/chunks/ssr/_13rgpyg._.js +3 -0
- package/web-dist/.next/server/chunks/ssr/_1fp8enw._.js +3 -0
- package/web-dist/.next/server/chunks/ssr/_1std18n._.js +3 -0
- package/web-dist/.next/server/chunks/ssr/_1zd7t3t._.js +3 -0
- package/web-dist/.next/server/chunks/ssr/app_tasks_page_tsx_1p6mxbw._.js +1 -1
- package/web-dist/.next/server/chunks/ssr/components_shell_Shell_tsx_1e5c27h._.js +1 -1
- package/web-dist/.next/server/chunks/ssr/{node_modules_0h91jdk._.js → node_modules_next_dist_client_components_0bew68i._.js} +2 -2
- package/web-dist/.next/server/middleware-build-manifest.js +3 -3
- package/web-dist/.next/server/pages/404.html +1 -1
- package/web-dist/.next/server/pages/500.html +1 -1
- package/web-dist/.next/static/chunks/09gkeu3bc4xo0.js +1 -0
- package/web-dist/.next/static/chunks/0c6iuw5yay1w0.js +1 -0
- package/web-dist/.next/static/chunks/0ccjus_sicyov.js +1 -0
- package/web-dist/.next/static/chunks/0gor0_p3jg67f.js +1 -0
- package/web-dist/.next/static/chunks/0kd16q0244sp5.js +1 -0
- package/web-dist/.next/static/chunks/0x0pwu4mealh1.js +1 -0
- package/web-dist/.next/static/chunks/0yg3wh0jczxoa.js +1 -0
- package/web-dist/.next/static/chunks/0zms_--zk-t3b.js +1 -0
- package/web-dist/.next/static/chunks/{18zkogw4aykzc.js → 14mmxdnhdicgy.js} +1 -1
- package/web-dist/.next/static/chunks/1bgv4d9v71ij7.js +1 -0
- package/web-dist/.next/static/chunks/1j2hh1hlkxrip.js +1 -0
- package/web-dist/.next/static/chunks/2c16uuyhfnhr9.js +1 -0
- package/web-dist/.next/static/chunks/2g_lldfaqo8bq.js +1 -0
- package/web-dist/.next/static/chunks/{3saus_snl5ri7.js → 2gak7jay2im1l.js} +1 -1
- package/web-dist/.next/static/chunks/2z02etl-1qi3g.js +1 -0
- package/web-dist/.next/static/chunks/2zutw3iy49kee.js +1 -0
- package/web-dist/.next/static/chunks/33tqcj2ra3wol.js +1 -0
- package/web-dist/.next/static/chunks/34b41uiwytome.css +2 -0
- package/web-dist/.next/static/chunks/3uf01y_a4cq8y.js +1 -0
- package/web-dist/.next/server/chunks/ssr/[root-of-the-server]__0i_7o4p._.js +0 -3
- package/web-dist/.next/server/chunks/ssr/_085pshu._.js +0 -3
- package/web-dist/.next/server/chunks/ssr/_0j9ppt0._.js +0 -3
- package/web-dist/.next/server/chunks/ssr/_0tc9z5_._.js +0 -3
- package/web-dist/.next/server/chunks/ssr/_12jhzvy._.js +0 -3
- package/web-dist/.next/server/chunks/ssr/_136wthy._.js +0 -3
- package/web-dist/.next/server/chunks/ssr/_193-v_i._.js +0 -3
- package/web-dist/.next/server/chunks/ssr/_1heytlk._.js +0 -3
- package/web-dist/.next/server/chunks/ssr/_1kom56q._.js +0 -3
- package/web-dist/.next/server/chunks/ssr/_1mjzb9s._.js +0 -3
- package/web-dist/.next/static/chunks/0l1t1fcd-_jj9.js +0 -1
- package/web-dist/.next/static/chunks/186xbnkxm5iu3.js +0 -1
- package/web-dist/.next/static/chunks/1c_1_ca4-vgc7.js +0 -1
- package/web-dist/.next/static/chunks/1f5f3qgbcjv4u.js +0 -1
- package/web-dist/.next/static/chunks/1t-dast4rat3s.css +0 -2
- package/web-dist/.next/static/chunks/1wsag7zex3h4_.js +0 -1
- package/web-dist/.next/static/chunks/24unfsl4do--1.js +0 -1
- package/web-dist/.next/static/chunks/2bfjq22q8xyfs.js +0 -1
- package/web-dist/.next/static/chunks/2kuzf7llj_291.js +0 -1
- package/web-dist/.next/static/chunks/34bew8owm40fg.js +0 -1
- package/web-dist/.next/static/chunks/3a7pgnw_6io2v.js +0 -1
- package/web-dist/.next/static/chunks/3fqd824e6lt4z.js +0 -1
- package/web-dist/.next/static/chunks/3k-swqzkcvlzm.js +0 -1
- package/web-dist/.next/static/chunks/3vmuunta80huz.js +0 -1
- /package/web-dist/.next/static/{-qI9ABgqZPR_Ri56jzVI5 → HlF0dnC8pX1yTkvUuW9jW}/_buildManifest.js +0 -0
- /package/web-dist/.next/static/{-qI9ABgqZPR_Ri56jzVI5 → HlF0dnC8pX1yTkvUuW9jW}/_clientMiddlewareManifest.js +0 -0
- /package/web-dist/.next/static/{-qI9ABgqZPR_Ri56jzVI5 → HlF0dnC8pX1yTkvUuW9jW}/_ssgManifest.js +0 -0
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
1:"$Sreact.fragment"
|
|
2
|
-
2:I[22833,["/_next/static/chunks/
|
|
3
|
-
3:I[39756,["/_next/static/chunks/
|
|
4
|
-
4:I[98168,["/_next/static/chunks/
|
|
5
|
-
5:I[37457,["/_next/static/chunks/
|
|
6
|
-
6:I[47257,["/_next/static/chunks/
|
|
7
|
-
7:I[34965,["/_next/static/chunks/
|
|
8
|
-
a:I[97367,["/_next/static/chunks/
|
|
2
|
+
2:I[22833,["/_next/static/chunks/0kd16q0244sp5.js","/_next/static/chunks/33tqcj2ra3wol.js","/_next/static/chunks/0yg3wh0jczxoa.js","/_next/static/chunks/0c179dg4znere.js","/_next/static/chunks/2gak7jay2im1l.js"],"Shell"]
|
|
3
|
+
3:I[39756,["/_next/static/chunks/0kd16q0244sp5.js","/_next/static/chunks/33tqcj2ra3wol.js","/_next/static/chunks/0yg3wh0jczxoa.js","/_next/static/chunks/0c179dg4znere.js","/_next/static/chunks/2gak7jay2im1l.js"],"default"]
|
|
4
|
+
4:I[98168,["/_next/static/chunks/0kd16q0244sp5.js","/_next/static/chunks/33tqcj2ra3wol.js","/_next/static/chunks/0yg3wh0jczxoa.js","/_next/static/chunks/0c179dg4znere.js","/_next/static/chunks/2gak7jay2im1l.js","/_next/static/chunks/013bf3uuupmww.js"],"default"]
|
|
5
|
+
5:I[37457,["/_next/static/chunks/0kd16q0244sp5.js","/_next/static/chunks/33tqcj2ra3wol.js","/_next/static/chunks/0yg3wh0jczxoa.js","/_next/static/chunks/0c179dg4znere.js","/_next/static/chunks/2gak7jay2im1l.js"],"default"]
|
|
6
|
+
6:I[47257,["/_next/static/chunks/0kd16q0244sp5.js","/_next/static/chunks/33tqcj2ra3wol.js","/_next/static/chunks/0yg3wh0jczxoa.js","/_next/static/chunks/0c179dg4znere.js","/_next/static/chunks/2gak7jay2im1l.js"],"ClientPageRoot"]
|
|
7
|
+
7:I[34965,["/_next/static/chunks/0kd16q0244sp5.js","/_next/static/chunks/33tqcj2ra3wol.js","/_next/static/chunks/0yg3wh0jczxoa.js","/_next/static/chunks/0c179dg4znere.js","/_next/static/chunks/2gak7jay2im1l.js","/_next/static/chunks/09gkeu3bc4xo0.js"],"default"]
|
|
8
|
+
a:I[97367,["/_next/static/chunks/0kd16q0244sp5.js","/_next/static/chunks/33tqcj2ra3wol.js","/_next/static/chunks/0yg3wh0jczxoa.js","/_next/static/chunks/0c179dg4znere.js","/_next/static/chunks/2gak7jay2im1l.js"],"OutletBoundary"]
|
|
9
9
|
b:"$Sreact.suspense"
|
|
10
|
-
e:I[97367,["/_next/static/chunks/
|
|
11
|
-
10:I[97367,["/_next/static/chunks/
|
|
12
|
-
12:I[68027,["/_next/static/chunks/
|
|
13
|
-
:HL["/_next/static/chunks/
|
|
10
|
+
e:I[97367,["/_next/static/chunks/0kd16q0244sp5.js","/_next/static/chunks/33tqcj2ra3wol.js","/_next/static/chunks/0yg3wh0jczxoa.js","/_next/static/chunks/0c179dg4znere.js","/_next/static/chunks/2gak7jay2im1l.js"],"ViewportBoundary"]
|
|
11
|
+
10:I[97367,["/_next/static/chunks/0kd16q0244sp5.js","/_next/static/chunks/33tqcj2ra3wol.js","/_next/static/chunks/0yg3wh0jczxoa.js","/_next/static/chunks/0c179dg4znere.js","/_next/static/chunks/2gak7jay2im1l.js"],"MetadataBoundary"]
|
|
12
|
+
12:I[68027,["/_next/static/chunks/0kd16q0244sp5.js","/_next/static/chunks/33tqcj2ra3wol.js","/_next/static/chunks/0yg3wh0jczxoa.js","/_next/static/chunks/0c179dg4znere.js","/_next/static/chunks/2gak7jay2im1l.js"],"default",1]
|
|
13
|
+
:HL["/_next/static/chunks/34b41uiwytome.css","style"]
|
|
14
14
|
:HL["/_next/static/media/GeistMono_Variable.p.3ms9vq719j3f8.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
|
|
15
|
-
0:{"P":null,"c":["","users"],"q":"","i":false,"f":[[["",{"children":["users",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",16],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/
|
|
15
|
+
0:{"P":null,"c":["","users"],"q":"","i":false,"f":[[["",{"children":["users",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",16],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/34b41uiwytome.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/0kd16q0244sp5.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/33tqcj2ra3wol.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/_next/static/chunks/0yg3wh0jczxoa.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/_next/static/chunks/0c179dg4znere.js","async":true,"nonce":"$undefined"}],["$","script","script-4",{"src":"/_next/static/chunks/2gak7jay2im1l.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","className":"geistmono_157ca88a-module__iaM1Ya__variable","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$L2",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{"children":["$","$L5",null,{}]}],"templateStyles":[],"templateScripts":[["$","script","script-0",{"src":"/_next/static/chunks/013bf3uuupmww.js","async":true}]],"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,["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[["$","$L6",null,{"Component":"$7","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@8","$@9"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/09gkeu3bc4xo0.js","async":true,"nonce":"$undefined"}]],["$","$La",null,{"children":["$","$b",null,{"name":"Next.MetadataOutlet","children":"$@c"}]}]]}],{},null,false,null]},null,false,"$@d"]},null,false,null],["$","$1","h",{"children":[null,["$","$Le",null,{"children":"$Lf"}],["$","div",null,{"hidden":true,"children":["$","$L10",null,{"children":["$","$b",null,{"name":"Next.Metadata","children":"$L11"}]}]}],null]}],false]],"m":"$undefined","G":["$12",[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/34b41uiwytome.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]]],"S":true,"h":null,"s":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"HlF0dnC8pX1yTkvUuW9jW"}
|
|
16
16
|
13:[]
|
|
17
17
|
d:"$W13"
|
|
18
18
|
8:{}
|
|
19
19
|
9:"$0:f:0:1:1:children:1:children:0:props:children:0:props:serverProvidedParams:params"
|
|
20
20
|
f:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
|
21
|
-
14:I[27201,["/_next/static/chunks/
|
|
21
|
+
14:I[27201,["/_next/static/chunks/0kd16q0244sp5.js","/_next/static/chunks/33tqcj2ra3wol.js","/_next/static/chunks/0yg3wh0jczxoa.js","/_next/static/chunks/0c179dg4znere.js","/_next/static/chunks/2gak7jay2im1l.js"],"IconMark"]
|
|
22
22
|
c:null
|
|
23
23
|
11:[["$","title","0",{"children":"Orca"}],["$","link","1",{"rel":"icon","href":"/icon.png?icon.0gfvm0_kk3zds.png","sizes":"256x256","type":"image/png"}],["$","$L14","2",{}]]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
1:"$Sreact.fragment"
|
|
2
|
-
2:I[97367,["/_next/static/chunks/
|
|
3
|
-
3:I[97367,["/_next/static/chunks/
|
|
2
|
+
2:I[97367,["/_next/static/chunks/0kd16q0244sp5.js","/_next/static/chunks/33tqcj2ra3wol.js","/_next/static/chunks/0yg3wh0jczxoa.js","/_next/static/chunks/0c179dg4znere.js","/_next/static/chunks/2gak7jay2im1l.js"],"ViewportBoundary"]
|
|
3
|
+
3:I[97367,["/_next/static/chunks/0kd16q0244sp5.js","/_next/static/chunks/33tqcj2ra3wol.js","/_next/static/chunks/0yg3wh0jczxoa.js","/_next/static/chunks/0c179dg4znere.js","/_next/static/chunks/2gak7jay2im1l.js"],"MetadataBoundary"]
|
|
4
4
|
4:"$Sreact.suspense"
|
|
5
|
-
5:I[27201,["/_next/static/chunks/
|
|
6
|
-
0:{"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":"Orca"}],["$","link","1",{"rel":"icon","href":"/icon.png?icon.0gfvm0_kk3zds.png","sizes":"256x256","type":"image/png"}],["$","$L5","2",{}]]}]}]}],null]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"
|
|
5
|
+
5:I[27201,["/_next/static/chunks/0kd16q0244sp5.js","/_next/static/chunks/33tqcj2ra3wol.js","/_next/static/chunks/0yg3wh0jczxoa.js","/_next/static/chunks/0c179dg4znere.js","/_next/static/chunks/2gak7jay2im1l.js"],"IconMark"]
|
|
6
|
+
0:{"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":"Orca"}],["$","link","1",{"rel":"icon","href":"/icon.png?icon.0gfvm0_kk3zds.png","sizes":"256x256","type":"image/png"}],["$","$L5","2",{}]]}]}]}],null]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"HlF0dnC8pX1yTkvUuW9jW"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
1:"$Sreact.fragment"
|
|
2
|
-
2:I[22833,["/_next/static/chunks/
|
|
3
|
-
3:I[39756,["/_next/static/chunks/
|
|
4
|
-
4:I[98168,["/_next/static/chunks/
|
|
5
|
-
5:I[37457,["/_next/static/chunks/
|
|
6
|
-
:HL["/_next/static/chunks/
|
|
7
|
-
0:{"rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/
|
|
2
|
+
2:I[22833,["/_next/static/chunks/0kd16q0244sp5.js","/_next/static/chunks/33tqcj2ra3wol.js","/_next/static/chunks/0yg3wh0jczxoa.js","/_next/static/chunks/0c179dg4znere.js","/_next/static/chunks/2gak7jay2im1l.js"],"Shell"]
|
|
3
|
+
3:I[39756,["/_next/static/chunks/0kd16q0244sp5.js","/_next/static/chunks/33tqcj2ra3wol.js","/_next/static/chunks/0yg3wh0jczxoa.js","/_next/static/chunks/0c179dg4znere.js","/_next/static/chunks/2gak7jay2im1l.js"],"default"]
|
|
4
|
+
4:I[98168,["/_next/static/chunks/0kd16q0244sp5.js","/_next/static/chunks/33tqcj2ra3wol.js","/_next/static/chunks/0yg3wh0jczxoa.js","/_next/static/chunks/0c179dg4znere.js","/_next/static/chunks/2gak7jay2im1l.js","/_next/static/chunks/013bf3uuupmww.js"],"default"]
|
|
5
|
+
5:I[37457,["/_next/static/chunks/0kd16q0244sp5.js","/_next/static/chunks/33tqcj2ra3wol.js","/_next/static/chunks/0yg3wh0jczxoa.js","/_next/static/chunks/0c179dg4znere.js","/_next/static/chunks/2gak7jay2im1l.js"],"default"]
|
|
6
|
+
:HL["/_next/static/chunks/34b41uiwytome.css","style"]
|
|
7
|
+
0:{"rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/34b41uiwytome.css","precedence":"next"}],["$","script","script-0",{"src":"/_next/static/chunks/0kd16q0244sp5.js","async":true}],["$","script","script-1",{"src":"/_next/static/chunks/33tqcj2ra3wol.js","async":true}],["$","script","script-2",{"src":"/_next/static/chunks/0yg3wh0jczxoa.js","async":true}],["$","script","script-3",{"src":"/_next/static/chunks/0c179dg4znere.js","async":true}],["$","script","script-4",{"src":"/_next/static/chunks/2gak7jay2im1l.js","async":true}]],["$","html",null,{"lang":"en","className":"geistmono_157ca88a-module__iaM1Ya__variable","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$L2",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","template":["$","$L4",null,{"children":["$","$L5",null,{}]}],"templateStyles":[],"templateScripts":[["$","script","script-0",{"src":"/_next/static/chunks/013bf3uuupmww.js","async":true}]],"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."}]}]]}]}]],[]]}]}]}]}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"HlF0dnC8pX1yTkvUuW9jW"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
:HL["/_next/static/chunks/
|
|
1
|
+
:HL["/_next/static/chunks/34b41uiwytome.css","style"]
|
|
2
2
|
:HL["/_next/static/media/GeistMono_Variable.p.3ms9vq719j3f8.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
|
|
3
|
-
0:{"tree":{"name":"","param":null,"prefetchHints":16,"slots":{"children":{"name":"users","param":null,"prefetchHints":0,"slots":{"children":{"name":"__PAGE__","param":null,"prefetchHints":0,"slots":null}}}}},"staleTime":300,"buildId":"
|
|
3
|
+
0:{"tree":{"name":"","param":null,"prefetchHints":16,"slots":{"children":{"name":"users","param":null,"prefetchHints":0,"slots":{"children":{"name":"__PAGE__","param":null,"prefetchHints":0,"slots":null}}}}},"staleTime":300,"buildId":"HlF0dnC8pX1yTkvUuW9jW"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
1:"$Sreact.fragment"
|
|
2
|
-
2:I[47257,["/_next/static/chunks/
|
|
3
|
-
3:I[34965,["/_next/static/chunks/
|
|
4
|
-
6:I[97367,["/_next/static/chunks/
|
|
2
|
+
2:I[47257,["/_next/static/chunks/0kd16q0244sp5.js","/_next/static/chunks/33tqcj2ra3wol.js","/_next/static/chunks/0yg3wh0jczxoa.js","/_next/static/chunks/0c179dg4znere.js","/_next/static/chunks/2gak7jay2im1l.js"],"ClientPageRoot"]
|
|
3
|
+
3:I[34965,["/_next/static/chunks/0kd16q0244sp5.js","/_next/static/chunks/33tqcj2ra3wol.js","/_next/static/chunks/0yg3wh0jczxoa.js","/_next/static/chunks/0c179dg4znere.js","/_next/static/chunks/2gak7jay2im1l.js","/_next/static/chunks/09gkeu3bc4xo0.js"],"default"]
|
|
4
|
+
6:I[97367,["/_next/static/chunks/0kd16q0244sp5.js","/_next/static/chunks/33tqcj2ra3wol.js","/_next/static/chunks/0yg3wh0jczxoa.js","/_next/static/chunks/0c179dg4znere.js","/_next/static/chunks/2gak7jay2im1l.js"],"OutletBoundary"]
|
|
5
5
|
7:"$Sreact.suspense"
|
|
6
|
-
0:{"rsc":["$","$1","c",{"children":[["$","$L2",null,{"Component":"$3","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@4","$@5"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/
|
|
6
|
+
0:{"rsc":["$","$1","c",{"children":[["$","$L2",null,{"Component":"$3","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@4","$@5"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/09gkeu3bc4xo0.js","async":true}]],["$","$L6",null,{"children":["$","$7",null,{"name":"Next.MetadataOutlet","children":"$@8"}]}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"HlF0dnC8pX1yTkvUuW9jW"}
|
|
7
7
|
4:{}
|
|
8
8
|
5:"$0:rsc:props:children:0:props:serverProvidedParams:params"
|
|
9
9
|
8:null
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
1:"$Sreact.fragment"
|
|
2
|
-
2:I[39756,["/_next/static/chunks/
|
|
3
|
-
3:I[37457,["/_next/static/chunks/
|
|
2
|
+
2:I[39756,["/_next/static/chunks/0kd16q0244sp5.js","/_next/static/chunks/33tqcj2ra3wol.js","/_next/static/chunks/0yg3wh0jczxoa.js","/_next/static/chunks/0c179dg4znere.js","/_next/static/chunks/2gak7jay2im1l.js"],"default"]
|
|
3
|
+
3:I[37457,["/_next/static/chunks/0kd16q0244sp5.js","/_next/static/chunks/33tqcj2ra3wol.js","/_next/static/chunks/0yg3wh0jczxoa.js","/_next/static/chunks/0c179dg4znere.js","/_next/static/chunks/2gak7jay2im1l.js"],"default"]
|
|
4
4
|
4:[]
|
|
5
|
-
0:{"rsc":["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","template":["$","$L3",null,{}]}]]}],"isPartial":false,"staleTime":300,"varyParams":"$W4","buildId":"
|
|
5
|
+
0:{"rsc":["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","template":["$","$L3",null,{}]}]]}],"isPartial":false,"staleTime":300,"varyParams":"$W4","buildId":"HlF0dnC8pX1yTkvUuW9jW"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[18622,(a,b,c)=>{b.exports=a.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},20635,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/action-async-storage.external.js",()=>require("next/dist/server/app-render/action-async-storage.external.js"))},24725,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},43285,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/dynamic-access-async-storage.external.js",()=>require("next/dist/server/app-render/dynamic-access-async-storage.external.js"))},9270,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored.contexts.AppRouterContext},36313,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored.contexts.HooksClientContext},18341,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored.contexts.ServerInsertedHtml},42602,(a,b,c)=>{"use strict";b.exports=a.r(18622)},87924,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored["react-ssr"].ReactJsxRuntime},72131,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored["react-ssr"].React},35112,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored["react-ssr"].ReactDOM},38783,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored["react-ssr"].ReactServerDOMTurbopackClient},15618,a=>{"use strict";let b=(0,a.i(70106).default)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);a.s(["Plus",0,b],15618)},83604,a=>{"use strict";let b=(0,a.i(70106).default)("TriangleAlert",[["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"}]]);a.s(["default",0,b])},71858,a=>{"use strict";let b={30:"#3a3a3a",31:"#ef4444",32:"#22c55e",33:"#eab308",34:"#3b82f6",35:"#a855f7",36:"#06b6d4",37:"#d4d4d4",90:"#6b7280",91:"#f87171",92:"#4ade80",93:"#facc15",94:"#60a5fa",95:"#c084fc",96:"#22d3ee",97:"#f5f5f5"};a.s(["parseAnsi",0,function(a){let c,d,e=[],f="",g=()=>{f&&(e.push({text:f.replace(/\x1b\[[0-9;?]*[ -/]*[@-ln-~]/g,"").replace(/\x1b[()][0-9A-Za-z]/g,"").replace(/\x1b[=>]/g,"").replace(/\x1b/g,""),color:c}),f="")},h=/\x1b\[([0-9;]*)m/g,i=0;for(;null!==(d=h.exec(a));){f+=a.slice(i,d.index),g(),i=h.lastIndex;let e=(d[1]||"0").split(";").map(a=>Number(a||0));for(let a=0;a<e.length;a++){let d=e[a];0===d||39===d?c=void 0:b[d]?c=b[d]:38===d&&(5===e[a+1]?(c=function(a){if(a<16)return b[a<8?30+a:90+(a-8)]??"#d4d4d4";if(a>=232){let b=8+(a-232)*10;return`rgb(${b},${b},${b})`}let c=a-16,d=Math.floor(c/36),e=Math.floor(c%36/6),f=a=>0===a?0:55+40*a;return`rgb(${f(d)},${f(e)},${f(c%6)})`}(e[a+2]??7),a+=2):2===e[a+1]&&(c=`rgb(${e[a+2]??0},${e[a+3]??0},${e[a+4]??0})`,a+=4))}}return f+=a.slice(i),g(),e.filter(a=>a.text.length>0)}])},81926,a=>{"use strict";a.s(["compactElapsed",()=>d,"formatCost",()=>f,"formatDuration",()=>c,"formatTaskTime",()=>h,"formatTokens",()=>e,"localDateTime",()=>g]);var b=a.i(81415);function c(a){let b=Math.max(0,Math.floor(a/1e3));if(b<60)return`${b}s`;let c=Math.floor(b/60);if(c<60)return`${c}m ${b%60}s`;let d=Math.floor(c/60);return`${d}h ${c%60}m`}function d(a){let b=Math.max(0,Math.floor(a/1e3));if(b<60)return`${b}s`;let c=Math.floor(b/60);if(c<60)return`${c}m`;let d=Math.floor(c/60);return d<24?`${d}h`:`${Math.floor(d/24)}d`}function e(a){return!Number.isFinite(a)||a<=0?"0":a<1e3?String(a):a<1e6?`${(a/1e3).toFixed(+(a<1e4))}k`:`${(a/1e6).toFixed(1)}M`}function f(a){return`$${a.toFixed(4)}`}function g(a,c,d=!0){let e=(0,b.parseTs)(a);return null==e?a:new Date(e).toLocaleString(c,{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",...d?{second:"2-digit"}:{}})}function h(a,c,e){if(!a)return{label:"",title:""};let f=(0,b.parseTs)(a);if(null==f)return{label:a,title:a};let h=g(a,e),i=c-f;return i<864e5?{label:d(i),title:h}:{label:new Date(f).toLocaleString(e,{day:"numeric",month:"short",hour:"2-digit",minute:"2-digit"}),title:h}}},81415,a=>{"use strict";a.s(["agentDisplayName",()=>i,"keysForOption",()=>q,"lastClosedTask",()=>r,"liveState",()=>o,"missionEpicId",()=>j,"needsInputSessions",()=>p,"parseTs",()=>k,"tailSnippet",()=>t,"taskAgentName",()=>g,"taskBlockers",()=>n,"taskElapsed",()=>m,"taskExec",()=>f,"taskForSession",()=>s,"taskSessionName",()=>h,"taskStartedMs",()=>l]);var b=a.i(71858),c=a.i(81926);let d="agent:",e="exec:";function f(a){let b=a?.find(a=>a.startsWith(e));return b?b.slice(e.length):""}function g(a){let b=a.labels?.find(a=>a.startsWith(d));return b?b.slice(d.length):null}function h(a){let b=g(a);return b?`orca-${b}`:null}function i(a){return a.replace(/^orca-/,"")||a}function j(a){return a.replace(/^m-/,"")}function k(a){if(!a)return null;let b=new Date(a.includes("T")?a:a.replace(" ","T")+(a.endsWith("Z")?"":"Z")).getTime();return Number.isNaN(b)?null:b}function l(a){let b=a.labels?.find(a=>a.startsWith("started:"));if(b){let a=Number(b.slice(8));if(Number.isFinite(a))return a}return k(a.created_at)}function m(a,b){let d=l(a);if(null==d)return null;let e="closed"===a.status||"cancelled"===a.status?k(a.closed_at)??b:b;return(0,c.compactElapsed)(e-d)}function n(a,b,c){return b.filter(b=>b.task_id===a).map(a=>c.get(a.depends_on_id)).filter(a=>!!a&&"closed"!==a.status&&"cancelled"!==a.status)}function o(a,b){return a?.type==="needs_input"?"needs_input":b||a?.type==="working"?"working":a?.type==="complete"?"complete":"idle"}function p(a,b){return a.filter(a=>b[a]?.type==="needs_input")}function q(a){return[...Array(Math.max(0,Number(a)-1)).fill("Down"),"Enter"]}function r(a){let b=a.filter(a=>"closed"===a.status);return 0===b.length?null:b.reduce((a,b)=>(k(b.closed_at)??0)>(k(a.closed_at)??0)?b:a)}function s(a,b){if(!b.startsWith("orca-"))return;let c=`${d}${b.slice(5)}`,e=a.filter(a=>(a.labels??[]).includes(c));return e.length<=1?e[0]:e.find(a=>"in_progress"===a.status)??[...e].sort((a,b)=>(k(b.created_at)??0)-(k(a.created_at)??0))[0]}function t(a){let c=a.split("\n");for(let a=c.length-1;a>=0;a--){let d=(0,b.parseAnsi)(c[a]).map(a=>a.text).join("").trim();if(d)return d}return""}},55023,a=>{"use strict";let b=(0,a.i(70106).default)("ListChecks",[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);a.s(["ListChecks",0,b],55023)},62722,a=>{"use strict";let b=(0,a.i(70106).default)("CircleX",[["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"}]]);a.s(["XCircle",0,b],62722)},8435,a=>{"use strict";var b=a.i(33217),c=a.i(82717);a.s(["useSessionPane",0,function(a,d=8,e=!0){let f=(0,b.useQuery)({queryKey:["session-pane",a,"ansi"],queryFn:()=>c.orcaClient.sessionPane(a,!0),enabled:e&&!!a,refetchInterval:2e3,refetchOnWindowFocus:!1});return{tail:(f.data?.pane??"").split("\n").slice(-d).join("\n"),isLoading:f.isLoading,isError:f.isError}}])},3470,a=>{"use strict";var b=a.i(72131),c=a.i(8435);let d={stalledSec:300,stuckSec:900};a.s(["useSessionStall",0,function(a,e,f=d){let{tail:g}=(0,c.useSessionPane)(a,8,e),[h,i]=(0,b.useState)(()=>Date.now()),j=(0,b.useRef)(Date.now());if((0,b.useEffect)(()=>{j.current=Date.now()},[g]),(0,b.useEffect)(()=>{if(!e)return;let a=setInterval(()=>i(Date.now()),1e3);return()=>clearInterval(a)},[e]),!e)return{state:"fresh",silenceSec:0};let k=Math.floor((h-j.current)/1e3);return{state:function(a,b,c=d){if(!b)return"fresh";let e=Math.max(0,a);return e>=c.stuckSec?"stuck":e>=c.stalledSec?"stalled":"fresh"}(k,!0,f),silenceSec:k}}])},70106,12466,a=>{"use strict";var b=a.i(72131);let c=(...a)=>a.filter((a,b,c)=>!!a&&""!==a.trim()&&c.indexOf(a)===b).join(" ").trim();var d={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 e=(0,b.forwardRef)(({color:a="currentColor",size:e=24,strokeWidth:f=2,absoluteStrokeWidth:g,className:h="",children:i,iconNode:j,...k},l)=>(0,b.createElement)("svg",{ref:l,...d,width:e,height:e,stroke:a,strokeWidth:g?24*Number(f)/Number(e):f,className:c("lucide",h),...k},[...j.map(([a,c])=>(0,b.createElement)(a,c)),...Array.isArray(i)?i:[i]]));a.s(["default",0,(a,d)=>{let f=(0,b.forwardRef)(({className:f,...g},h)=>(0,b.createElement)(e,{ref:h,iconNode:d,className:c(`lucide-${a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,f),...g}));return f.displayName=`${a}`,f}],70106);var f=a.i(87924);let g={default:"bg-elevated border-border text-text hover:border-border-strong hover:bg-elevated/80",accent:"bg-accent border-accent text-white hover:opacity-90",ghost:"bg-transparent border-transparent text-text-muted hover:bg-elevated hover:text-text",danger:"bg-danger border-danger text-white hover:opacity-90"};a.s(["Button",0,function({variant:a="default",icon:b,className:c="",children:d,...e}){let h=c.trim();return(0,f.jsxs)("button",{className:`inline-flex h-9 items-center justify-center gap-2 border px-3.5 text-sm font-medium rounded-md transition-[color,background-color,border-color,transform] duration-150 active:scale-[0.97] disabled:opacity-40 disabled:cursor-not-allowed disabled:active:scale-100 ${g[a]}${h?` ${h}`:""}`,...e,children:[b?(0,f.jsx)(b,{size:14,"aria-hidden":!0}):null,d]})}],12466)},18180,a=>{"use strict";var b=a.i(87924);let c=(0,a.i(72131).forwardRef)(function({className:a="",...c},d){let e=a.trim();return(0,b.jsx)("input",{ref:d,className:`h-9 w-full rounded-md border border-border bg-surface px-3 text-sm text-text placeholder:text-text-muted transition-colors focus:border-accent focus:outline-none disabled:opacity-40 disabled:cursor-not-allowed${e?` ${e}`:""}`,...c})});a.s(["Input",0,c])},7947,94392,a=>{"use strict";var b=a.i(87924);let c=(0,a.i(70106).default)("Cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);a.s(["Cpu",0,c],94392);let d=new Set(["ace-text","ace","adobe-color","adobe-text","adobe","adobefirefly-color","adobefirefly-text","adobefirefly","agentvoice-color","agentvoice-text","agentvoice","agui-text","agui","ai2-color","ai2-text","ai2","ai21-brand-color","ai21-brand","ai21-text","ai21","ai302-color","ai302-text","ai302","ai360-color","ai360-text","ai360","aihubmix-color","aihubmix-text","aihubmix","aimass-color","aimass-text","aimass","aionlabs-color","aionlabs-text","aionlabs","airjelly-color","airjelly-text","airjelly","aistudio-text","aistudio","akashchat-color","akashchat-text","akashchat","alephalpha-text","alephalpha","alibaba-brand-color","alibaba-brand","alibaba-color","alibaba-text-cn","alibaba-text","alibaba","alibabacloud-color","alibabacloud-text-cn","alibabacloud-text","alibabacloud","amp-color","amp-text","amp","antgroup-brand-color","antgroup-brand","antgroup-color","antgroup-text-cn","antgroup-text","antgroup","anthropic-text","anthropic","antigravity-color","antigravity-text","antigravity","anyscale-color","anyscale-text","anyscale","apertis-color","apertis-text","apertis","apple-text","apple","arcee-color","arcee-text","arcee","askverdict-color","askverdict-text","askverdict","assemblyai-color","assemblyai-text","assemblyai","atlascloud-text","atlascloud","automatic-color","automatic-text","automatic","aws-brand-color","aws-brand","aws-color","aws-text","aws","aya-color","aya-text","aya","azure-color","azure-text","azure","azureai-color","azureai-text","azureai","baai-text","baai","baichuan-color","baichuan-text","baichuan","baidu-brand-color","baidu-brand","baidu-color","baidu-text-cn","baidu-text","baidu","baiducloud-color","baiducloud-text","baiducloud","bailian-color","bailian-text","bailian","baseten-text","baseten","bedrock-color","bedrock-text","bedrock","bfl-text","bfl","bilibili-color","bilibili-text","bilibili","bilibiliindex-text","bilibiliindex","bing-color","bing-text","bing","briaai-color","briaai-text","briaai","burncloud-color","burncloud-text","burncloud","bytedance-brand-color","bytedance-brand","bytedance-color","bytedance-text-cn","bytedance-text","bytedance","capcut-text","capcut","centml-brand-color","centml-brand","centml-color","centml-text","centml","cerebras-brand-color","cerebras-brand","cerebras-color","cerebras-text","cerebras","chatglm-color","chatglm-text","chatglm","cherrystudio-color","cherrystudio-text","cherrystudio","civitai-color","civitai-text-color","civitai-text","civitai","claude-color","claude-text","claude","claudecode-color","claudecode-text","claudecode","cline-text","cline","clipdrop-text","clipdrop","cloudflare-color","cloudflare-text","cloudflare","codebuddy-color","codebuddy-text","codebuddy","codeflicker-color","codeflicker-text","codeflicker","codegeex-color","codegeex-text","codegeex","codex-color","codex-text","codex","cogvideo-color","cogvideo-text","cogvideo","cogview-color","cogview-text","cogview","cohere-color","cohere-text","cohere","colab-color","colab-text","colab","cometapi-color","cometapi-text","cometapi","comfyui-color","comfyui-text","comfyui","commanda-color","commanda-text","commanda","copilot-color","copilot-text","copilot","copilotkit-color","copilotkit-text","copilotkit","coqui-color","coqui-text","coqui","coze-text","coze","crewai-brand-color","crewai-brand","crewai-color","crewai-text","crewai","crusoe-color","crusoe-text","crusoe","cursor-text","cursor","cybercut-text","cybercut","dalle-color","dalle-text","dalle","dbrx-brand-color","dbrx-brand","dbrx-color","dbrx-text","dbrx","deepai-text","deepai","deepcogito-color","deepcogito-text","deepcogito","deepinfra-color","deepinfra-text","deepinfra","deepl-color","deepl-text","deepl","deepmind-color","deepmind-text","deepmind","deepseek-color","deepseek-text","deepseek","devin-color","devin-text","devin","dify-color","dify-text","dify","doc2x-color","doc2x-text","doc2x","docsearch-color","docsearch-text","docsearch","dolphin-text","dolphin","doubao-color","doubao-text","doubao","dreammachine-text","dreammachine","elevenlabs-text","elevenlabs","elevenx-text","elevenx","essentialai-color","essentialai-text","essentialai","exa-color","exa-text","exa","fal-color","fal-text","fal","fastgpt-color","fastgpt-text","fastgpt","featherless-color","featherless-text","featherless","figma-color","figma-text","figma","fireworks-color","fireworks-text","fireworks","fishaudio-text","fishaudio","flora-text","flora","flowith-text","flowith","flux-text","flux","friendli-text","friendli","gemini-color","gemini-text","gemini","geminicli-color","geminicli-text","geminicli","gemma-color","gemma-text","gemma","giteeai-text","giteeai","github-text","github","githubcopilot-text","githubcopilot","glama-text","glama","glif-text","glif","glmv-color","glmv-text","glmv","google-brand-color","google-brand","google-color","google","googlecloud-brand-color","googlecloud-brand","googlecloud-color","googlecloud","goose-text","goose","gradio-color","gradio-text","gradio","greptile-color","greptile-text","greptile","grok-text","grok","groq-text","groq","hailuo-color","hailuo-text","hailuo","haiper-text","haiper","hedra-text","hedra","hermesagent-text","hermesagent","higress-color","higress-text","higress","huawei-color","huawei-text-cn","huawei-text","huawei","huaweicloud-color","huaweicloud-text-cn","huaweicloud-text","huaweicloud","huggingface-color","huggingface-text","huggingface","hunyuan-color","hunyuan-text","hunyuan","hyperbolic-color","hyperbolic-text","hyperbolic","ibm-text","ibm","ideogram-text","ideogram","iflytekcloud-color","iflytekcloud-text","iflytekcloud","inception-text","inception","inference-text","inference","infermatic-color","infermatic-text","infermatic","infinigence-color","infinigence-text-cn","infinigence-text","infinigence","inflection-text","inflection","internlm-color","internlm-text","internlm","jimeng-color","jimeng-text","jimeng","jina-text","jina","junie-color","junie-text","junie","kilocode-text","kilocode","kimi-color","kimi-text","kimi","kiro-color","kiro-text","kiro","kling-color","kling-text","kling","kluster-color","kluster-text","kluster","kolors-color","kolors-text","kolors","krea-text","krea","kwaikat-text-color","kwaikat-text","kwaikat","kwaipilot-color","kwaipilot-text","kwaipilot","lambda-text","lambda","langchain-color","langchain-text","langchain","langfuse-color","langfuse-text","langfuse","langgraph-color","langgraph-text","langgraph","langsmith-color","langsmith-text","langsmith","leptonai-color","leptonai-text","leptonai","lg-color","lg-text","lg","lightricks-text","lightricks","liquid-text","liquid","livekit-color","livekit-text","livekit","llamaindex-color","llamaindex-text","llamaindex","llava-color","llava-text","llava","llmapi-color","llmapi-text","llmapi","lmstudio-text","lmstudio","lobehub-color","lobehub-text","lobehub","longcat-color","longcat-text","longcat","lovable-color","lovable-text","lovable","lovart-text","lovart","luma-color","luma-text","luma","magic-text","magic","make-color","make-text","make","manus-text","manus","mastra-text","mastra","mcp-text","mcp","mcpso-color","mcpso-text","mcpso","menlo-color","menlo-text","menlo","meshy-color","meshy-text","meshy","meta-brand-color","meta-brand","meta-color","meta-text","meta","metaai-color","metaai-text","metaai","metagpt-text","metagpt","microsoft-color","microsoft-text","microsoft","midjourney-text","midjourney","minimax-color","minimax-text","minimax","mistral-color","mistral-text","mistral","modelscope-color","modelscope-text","modelscope","monica-color","monica-text","monica","moonshot-text","moonshot","morph-color","morph-text","morph","moxt-color","moxt-text","moxt","myshell-color","myshell-text","myshell","n8n-color","n8n-text","n8n","nanobanana-color","nanobanana-text","nanobanana","nebius-text","nebius","newapi-color","newapi-text","newapi","notebooklm-text","notebooklm","notion-text","notion","nousresearch-text","nousresearch","nova-color","nova-text","nova","novelai-text","novelai","novita-color","novita-text","novita","nplcloud-color","nplcloud-text","nplcloud","nvidia-color","nvidia-text","nvidia","obsidian-color","obsidian-text","obsidian","ollama-text","ollama","openai-text","openai","openchat-color","openchat-text","openchat","openclaw-color","openclaw-text","openclaw","opencode-text","opencode","openhands-color","openhands-text","openhands","openhuman-text","openhuman","openrouter-text","openrouter","openwebui-text","openwebui","palm-color","palm-text","palm","parasail-text","parasail","perplexity-color","perplexity-text","perplexity","phidata-color","phidata-text","phidata","phind-text","phind","pika-text","pika","pixverse-color","pixverse-text","pixverse","player2-color","player2-text","player2","poe-color","poe-text","poe","pollinations-text","pollinations","ppio-color","ppio-text-cn","ppio-text","ppio","prunaai-color","prunaai-text","prunaai","pydanticai-color","pydanticai-text","pydanticai","qingyan-color","qingyan-text","qingyan","qiniu-color","qiniu-text","qiniu","qoder-color","qoder-text","qoder","qwen-color","qwen-text","qwen","railway-text","railway","recraft-text","recraft","relace-text","relace","replicate-brand","replicate-text","replicate","replit-color","replit-text","replit","reve-text","reve","roocode-text","roocode","rsshub-color","rsshub-text","rsshub","runway-text","runway","rwkv-color","rwkv-text","rwkv","sambanova-color","sambanova-text","sambanova","search1api-color","search1api-text","search1api","searchapi-text","searchapi","sensenova-brand-color","sensenova-brand","sensenova-color","sensenova-text","sensenova","siliconcloud-color","siliconcloud-text","siliconcloud","sillytavern-color","sillytavern-text","sillytavern","skywork-color","skywork-text","skywork","slock-text","slock","smithery-color","smithery-text","smithery","snowflake-color","snowflake-text","snowflake","sophnet-color","sophnet-text","sophnet","sora-color","sora-text","sora","spark-color","spark-text","spark","speedai-color","speedai-text","speedai","stability-brand-color","stability-brand","stability-color","stability-text","stability","statecloud-color","statecloud-text","statecloud","stepfun-color","stepfun-text","stepfun","straico-color","straico-text","straico","streamlake-color","streamlake-text","streamlake","submodel-color","submodel-text","submodel","suno-text","suno","sync-text","sync","targon-color","targon-text","targon","tavily-color","tavily-text","tavily","tencent-brand-color","tencent-brand","tencent-color","tencent-text-cn","tencent-text","tencent","tencentcloud-color","tencentcloud-text","tencentcloud","tiangong-color","tiangong-text","tiangong","tii-color","tii-text","tii","together-brand-color","together-brand","together-color","together-text","together","topazlabs-text","topazlabs","trae-color","trae-text","trae","tripo-color","tripo-text","tripo","turix-text","turix","udio-color","udio-text","udio","unstructured-color","unstructured-text","unstructured","upstage-color","upstage-text","upstage","v0","vectorizerai-text","vectorizerai","venice-color","venice-text","venice","vercel-text","vercel","vertexai-color","vertexai-text","vertexai","vidu-color","vidu-text","vidu","viggle-text","viggle","vllm-color","vllm-text","vllm","volcengine-color","volcengine-text","volcengine","voyage-color","voyage-text","voyage","wenxin-color","wenxin-text","wenxin","windsurf-text","windsurf","workersai-color","workersai-text","workersai","worldrouter-text","worldrouter","xai-text","xai","xiaomimimo-text","xiaomimimo","xinference-color","xinference-text","xinference","xpay-color","xpay-text","xpay","xuanyuan-color","xuanyuan-text","xuanyuan","yandex-text","yandex","yi-color","yi-text","yi","youmind-text","youmind","yuanbao-color","yuanbao-text","yuanbao","zai-text","zai","zapier-color","zapier-text","zapier","zeabur-color","zeabur-text","zeabur","zencoder-color","zencoder-text","zencoder","zenmux-text","zenmux","zeroone-color","zeroone-text","zeroone","zhipu-color","zhipu-text","zhipu"]),e=[[/deepseek/i,"deepseek"],[/claude[\s_-]?code|claudecode/i,"claudecode"],[/claude|anthropic|sonnet|opus|haiku/i,"claude"],[/codex/i,"codex"],[/gpt|openai|chatgpt|\bo[1-4]\b/i,"openai"],[/kimi|\bk2\b/i,"kimi"],[/moonshot/i,"moonshot"],[/minimax/i,"minimax"],[/qwen|qwq/i,"qwen"],[/gemini/i,"gemini"],[/mistral|mixtral|codestral|magistral|devstral/i,"mistral"],[/grok/i,"grok"],[/\bxai\b/i,"xai"],[/glm|chatglm|zhipu/i,"zhipu"],[/llama|meta[\s_-]?ai|\bmeta\b/i,"metaai"],[/ollama/i,"ollama"]];a.s(["ModelIcon",0,function({name:a,size:f=20,className:g=""}){let h=function(a){if(!a)return null;for(let[b,c]of e)if(b.test(a)){let a=`${c}-color`;if(d.has(a))return{slug:a,color:!0};if(d.has(c))return{slug:c,color:!1}}return null}(a);return h?(0,b.jsx)("img",{src:`/models/${h.slug}.svg`,alt:"",className:`shrink-0 object-contain ${h.color?"":"invert"} ${g}`,style:{width:f,height:f},"aria-hidden":!0}):(0,b.jsx)(c,{size:f,className:`text-text-muted ${g}`,"aria-hidden":!0})}],7947)},68522,a=>{"use strict";let b=[{label:"GLM 5.2",exec:"ollama-cloud/glm-5.2"},{label:"GPT 5.5",exec:"codex:gpt-5.5"},{label:"Claude Sonnet 4.5",exec:"sonnet"},{label:"Claude Opus 4.8",exec:"opus"},{label:"DeepSeek V4 Pro",exec:"ollama-cloud/deepseek-v4-pro"},{label:"Kimi k2.7 Code",exec:"ollama/kimi-k2.7-code"},{label:"MiniMax M3",exec:"ollama-cloud/minimax-m3"},{label:"DeepSeek v4 Flash",exec:"ollama-cloud/deepseek-v4-flash"},{label:"MiniMax M2.7",exec:"ollama-cloud/minimax-m2.7"},{label:"GLM 5.1",exec:"ollama-cloud/glm-5.1"},{label:"QWEN 3.5",exec:"ollama-cloud/qwen3.5"}];a.s(["EXEC_PRESETS",0,b,"allModels",0,function(a=[],c=[]){let d=new Set(a.map(a=>a.exec)),e=new Set(c);return[...b.filter(a=>!d.has(a.exec)&&!e.has(a.exec)),...a]}])},82434,a=>{"use strict";let b=(0,a.i(70106).default)("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"}]]);a.s(["Bot",0,b],82434)},60246,a=>{"use strict";let b=(0,a.i(70106).default)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);a.s(["Users",0,b],60246)},61296,a=>{"use strict";let b=(0,a.i(70106).default)("SquareKanban",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 7v7",key:"1x2jlm"}],["path",{d:"M12 7v4",key:"xawao1"}],["path",{d:"M16 7v9",key:"1hp2iy"}]]);a.s(["KanbanSquare",0,b],61296)},90669,a=>{"use strict";let b=(0,a.i(70106).default)("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);a.s(["Activity",0,b],90669)},87532,48124,a=>{"use strict";var b=a.i(70106);let c=(0,b.default)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);a.s(["Search",0,c],87532);let d=(0,b.default)("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);a.s(["Square",0,d],48124)},82478,a=>{"use strict";let b=(0,a.i(70106).default)("Rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]);a.s(["Rocket",0,b],82478)},87654,a=>{"use strict";let b=(0,a.i(70106).default)("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);a.s(["RotateCcw",0,b],87654)},66384,a=>{"use strict";let b=(0,a.i(70106).default)("ShieldAlert",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]);a.s(["ShieldAlert",0,b],66384)},14800,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(82717);let e=["#ef4444","#f59e0b","#10b981","#3b82f6","#8b5cf6","#ec4899","#14b8a6","#f97316"];a.s(["Avatar",0,function({user:a,size:f=36}){let g=a.name?.trim()||a.username,[h,i]=(0,c.useState)(null);return((0,c.useEffect)(()=>{if(!a.avatar)return void i(null);let b=!0;return d.orcaClient.avatarUrl(a.id).then(a=>{b&&i(a)}).catch(()=>{b&&i(null)}),()=>{b=!1}},[a.id,a.avatar]),a.avatar&&h)?(0,b.jsx)("img",{src:h,alt:g,className:"shrink-0 rounded-full border border-border object-cover",style:{width:f,height:f}}):(0,b.jsx)("span",{className:"inline-flex shrink-0 items-center justify-center rounded-full font-mono font-semibold text-white",style:{width:f,height:f,fontSize:.38*f,background:e[[...g].reduce((a,b)=>a+b.charCodeAt(0),0)%e.length]},"aria-label":g,children:g.trim().slice(0,2).toUpperCase()||"?"})}])},46842,a=>{"use strict";let b=(0,a.i(70106).default)("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);a.s(["User",0,b],46842)},30617,18685,99323,a=>{"use strict";let b=(0,a.i(70106).default)("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);a.s(["LayoutDashboard",0,b],30617);var c=a.i(87924),d=a.i(83604);a.s(["TriangleAlert",()=>d.default],18685);var d=d,e=a.i(18517),f=a.i(81415),g=a.i(7947),h=a.i(89697);a.i(28130);var i=a.i(29457);a.s(["NeedsInputRow",0,function({name:a,question:b,options:j,exec:k}){let{t:l}=(0,i.useTranslation)(),m=(0,e.useSendInput)(),{toast:n}=(0,h.useToast)(),o=!!j&&j.length>0,p=(b,c)=>m.mutate({name:a,keys:b},{onSuccess:()=>n(c),onError:a=>n(String(a),"error")});return(0,c.jsxs)("div",{className:`flex gap-2.5 rounded-md border border-border bg-bg px-3 py-2 ${o?"flex-col items-stretch":"items-center"}`,children:[(0,c.jsxs)("div",{className:"flex min-w-0 items-center gap-2.5",children:[(0,c.jsx)("span",{className:"flex h-6 w-6 shrink-0 items-center justify-center rounded-md border border-border bg-elevated",children:k?(0,c.jsx)(g.ModelIcon,{name:k,size:13}):(0,c.jsx)(d.default,{size:12,className:"text-warning","aria-hidden":!0})}),(0,c.jsx)("span",{className:"shrink-0 font-mono text-[11px] text-text",children:a}),(0,c.jsx)("span",{className:`min-w-0 flex-1 text-xs text-text-muted ${o?"":"truncate"}`,title:b,children:b}),!o&&(0,c.jsxs)("div",{className:"flex shrink-0 items-center gap-1.5",children:[(0,c.jsx)("button",{type:"button",onClick:()=>p(["Enter"],l.sessions.approved.replace("{name}",a)),className:"rounded-md border border-approve/50 bg-approve/10 px-2.5 py-1 text-xs font-medium text-approve transition-colors hover:bg-approve hover:text-white active:scale-95",children:l.sessions.allow}),(0,c.jsx)("button",{type:"button",onClick:()=>p(["Escape"],l.sessions.rejected.replace("{name}",a)),className:"rounded-md border border-danger/50 bg-danger/10 px-2.5 py-1 text-xs font-medium text-danger transition-colors hover:bg-danger hover:text-white active:scale-95",children:l.sessions.reject})]})]}),o&&(0,c.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5 pl-[34px]",children:[j.map(b=>(0,c.jsxs)("button",{type:"button",title:b.label,onClick:()=>p((0,f.keysForOption)(b.id),l.sessions.answered.replace("{name}",a).replace("{option}",b.label)),className:"max-w-full truncate rounded-md border border-accent/50 bg-accent/10 px-2.5 py-1 text-xs font-medium text-accent transition-colors hover:bg-accent hover:text-white active:scale-95",children:[(0,c.jsxs)("span",{className:"opacity-60",children:[b.id,"."]})," ",b.label]},b.id)),(0,c.jsx)("button",{type:"button",onClick:()=>p(["Escape"],l.sessions.rejected.replace("{name}",a)),className:"rounded-md border border-danger/50 bg-danger/10 px-2.5 py-1 text-xs font-medium text-danger transition-colors hover:bg-danger hover:text-white active:scale-95",children:l.sessions.reject})]})]})}],99323)},46058,(a,b,c)=>{"use strict";function d(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,c=new WeakMap;return(d=function(a){return a?c:b})(a)}c._=function(a,b){if(!b&&a&&a.__esModule)return a;if(null===a||"object"!=typeof a&&"function"!=typeof a)return{default:a};var c=d(b);if(c&&c.has(a))return c.get(a);var e={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in a)if("default"!==g&&Object.prototype.hasOwnProperty.call(a,g)){var h=f?Object.getOwnPropertyDescriptor(a,g):null;h&&(h.get||h.set)?Object.defineProperty(e,g,h):e[g]=a[g]}return e.default=a,c&&c.set(a,e),e}},39118,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={DEFAULT_SEGMENT_KEY:function(){return l},NOT_FOUND_SEGMENT_KEY:function(){return m},PAGE_SEGMENT_KEY:function(){return k},addSearchParamsIfPageSegment:function(){return i},computeSelectedLayoutSegment:function(){return j},getSegmentValue:function(){return f},getSelectedLayoutSegmentPath:function(){return function a(b,c,d=!0,e=[]){let g;if(d)g=b[1][c];else{let a=b[1];g=a.children??Object.values(a)[0]}if(!g)return e;let h=f(g[0]);return!h||h.startsWith(k)?e:(e.push(h),a(g,c,!1,e))}},isGroupSegment:function(){return g},isParallelRouteSegment:function(){return h}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});function f(a){return Array.isArray(a)?a[1]:a}function g(a){return"("===a[0]&&a.endsWith(")")}function h(a){return a.startsWith("@")&&"@children"!==a}function i(a,b){if(a.includes(k)){let a=JSON.stringify(b);return"{}"!==a?k+"?"+a:k}return a}function j(a,b){if(!a||0===a.length)return null;let c="children"===b?a[0]:a[a.length-1];return c===l?null:c}let k="__PAGE__",l="__DEFAULT__",m="/_not-found"},88644,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"InvariantError",{enumerable:!0,get:function(){return d}});class d extends Error{constructor(a,b){super(`Invariant: ${a.endsWith(".")?a:a+"."} This is a bug in Next.js.`,b),this.name="InvariantError"}}},54427,(a,b,c)=>{"use strict";function d(){let a,b,c=new Promise((c,d)=>{a=c,b=d});return{resolve:a,reject:b,promise:c}}Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"createPromiseWithResolvers",{enumerable:!0,get:function(){return d}})},41997,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={BailoutToCSRError:function(){return g},isBailoutToCSRError:function(){return h}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f="BAILOUT_TO_CLIENT_SIDE_RENDERING";class g extends Error{constructor(a){super(`Bail out to client-side rendering: ${a}`),this.reason=a,this.digest=f}}function h(a){return"object"==typeof a&&null!==a&&"digest"in a&&a.digest===f}},34531,a=>{"use strict";let b=(0,a.i(70106).default)("FolderGit2",[["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["path",{d:"M18 19c-2.8 0-5-2.2-5-5v8",key:"pkpw2h"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]]);a.s(["FolderGit2",0,b],34531)},68063,(a,b,c)=>{"use strict";let d;Object.defineProperty(c,"__esModule",{value:!0});var e={getAssetToken:function(){return i},getAssetTokenQuery:function(){return j},getDeploymentId:function(){return g},getDeploymentIdQuery:function(){return h}};for(var f in e)Object.defineProperty(c,f,{enumerable:!0,get:e[f]});function g(){return d}function h(a=!1){return d?`${a?"&":"?"}dpl=${d}`:""}function i(){return!1}function j(a=!1){return""}d=void 0},33354,(a,b,c)=>{"use strict";c._=function(a){return a&&a.__esModule?a:{default:a}}},32245,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"BailoutToCSR",{enumerable:!0,get:function(){return e}});let d=a.r(41997);function e({reason:a,children:b}){throw Object.defineProperty(new d.BailoutToCSRError(a),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0})}},7773,(a,b,c)=>{"use strict";function d(a){return a.split("/").map(a=>encodeURIComponent(a)).join("/")}Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"encodeURIPath",{enumerable:!0,get:function(){return d}})},97458,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"PreloadChunks",{enumerable:!0,get:function(){return i}});let d=a.r(87924),e=a.r(35112),f=a.r(56704),g=a.r(7773),h=a.r(68063);function i({moduleIds:a}){let b=f.workAsyncStorage.getStore();if(void 0===b)return null;let c=[];if(b.reactLoadableManifest&&a){let d=b.reactLoadableManifest;for(let b of a){if(!d[b])continue;let a=d[b].files;c.push(...a)}}if(0===c.length)return null;let j=(0,h.getAssetTokenQuery)();return(0,d.jsx)(d.Fragment,{children:c.map(a=>{let c=`${b.assetPrefix}/_next/${(0,g.encodeURIPath)(a)}${j}`;return a.endsWith(".css")?(0,d.jsx)("link",{precedence:"dynamic",href:c,rel:"stylesheet",as:"style",nonce:b.nonce},a):((0,e.preload)(c,{as:"script",fetchPriority:"low",nonce:b.nonce}),null)})})}},69853,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"default",{enumerable:!0,get:function(){return j}});let d=a.r(87924),e=a.r(72131),f=a.r(32245),g=a.r(97458);function h(a){return{default:a&&"default"in a?a.default:a}}let i={loader:()=>Promise.resolve(h(()=>null)),loading:null,ssr:!0},j=function(a){let b={...i,...a},c=(0,e.lazy)(()=>b.loader().then(h)),j=b.loading;function k(a){let h=j?(0,d.jsx)(j,{isLoading:!0,pastDelay:!0,error:null}):null,i=!b.ssr||!!b.loading,k=i?e.Suspense:e.Fragment,l=b.ssr?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(g.PreloadChunks,{moduleIds:b.modules}),(0,d.jsx)(c,{...a})]}):(0,d.jsx)(f.BailoutToCSR,{reason:"next/dynamic",children:(0,d.jsx)(c,{...a})});return(0,d.jsx)(k,{...i?{fallback:h}:{},children:l})}return k.displayName="LoadableComponent",k}},19721,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"default",{enumerable:!0,get:function(){return e}});let d=a.r(33354)._(a.r(69853));function e(a,b){let c={};"function"==typeof a&&(c.loader=a);let e={...c,...b};return(0,d.default)({...e,modules:e.loadableGenerated?.modules})}("function"==typeof c.default||"object"==typeof c.default&&null!==c.default)&&void 0===c.default.__esModule&&(Object.defineProperty(c.default,"__esModule",{value:!0}),Object.assign(c.default,c),b.exports=c.default)},48677,a=>{"use strict";let b=(0,a.i(70106).default)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]]);a.s(["default",0,b])},15115,a=>{"use strict";var b=a.i(48677);a.s(["SquareTerminal",()=>b.default])},23312,a=>{"use strict";let b=(0,a.i(70106).default)("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);a.s(["Bell",0,b],23312)}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__0yfatub._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[97222,a=>{"use strict";var b=a.i(87924);a.s(["ModuleHeader",0,function({title:a,count:c,icon:d,children:e}){return(0,b.jsxs)("div",{className:"z-20 -mx-4 -mt-4 mb-5 flex flex-col gap-2 border-b border-border bg-bg px-4 py-3 md:sticky md:top-0 md:flex-row md:flex-wrap md:items-center md:gap-x-3",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[d?(0,b.jsx)(d,{size:16,className:"shrink-0 text-text-muted","aria-hidden":!0}):null,(0,b.jsx)("h1",{className:"text-base font-semibold tracking-tight text-text",children:a}),void 0!==c?(0,b.jsx)("span",{className:"rounded-full bg-elevated px-2 py-0.5 font-mono text-[11px] text-text-muted",children:c}):null]}),e?(0,b.jsx)("div",{className:"flex flex-wrap items-center gap-2 md:ml-auto",children:e}):null]})}])},70777,a=>{"use strict";var b=a.i(87924);a.s(["ModuleShell",0,function({moduleId:a,children:c}){return(0,b.jsx)("section",{"data-module":a,className:"module-root flex flex-col gap-4",children:c})}])},9173,a=>{"use strict";var b=a.i(87924),c=a.i(12466);a.i(28130);var d=a.i(29457);a.s(["EmptyState",0,function({title:a,description:c,icon:d,action:e}){return(0,b.jsxs)("div",{className:"flex animate-fade-up flex-col items-center justify-center gap-3 py-14 text-center",children:[d?(0,b.jsx)(d,{size:28,strokeWidth:1.25,className:"text-text-muted/40","aria-hidden":!0}):null,(0,b.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,b.jsx)("p",{className:"text-sm uppercase tracking-wide text-text",children:a}),c&&(0,b.jsx)("p",{className:"text-xs text-text-muted",children:c})]}),e]})},"ErrorState",0,function({message:a,onRetry:e}){let{t:f}=(0,d.useTranslation)();return(0,b.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 py-12 text-center",children:[(0,b.jsx)("p",{className:"text-sm text-accent",children:a}),e&&(0,b.jsx)(c.Button,{onClick:e,children:f.common.retry})]})},"LoadingState",0,function({label:a,variant:c="list"}){let{t:e}=(0,d.useTranslation)();return a?(0,b.jsx)("div",{className:"flex items-center justify-center py-12 font-mono text-xs text-text-muted animate-pulse",children:a}):"cards"===c?(0,b.jsx)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3","aria-busy":"true","aria-label":e.common.loading,children:[0,1,2,3,4,5].map(a=>(0,b.jsxs)("div",{className:"flex flex-col gap-2.5 rounded-lg border border-border bg-surface p-3",style:{boxShadow:"var(--shadow-card)"},children:[(0,b.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,b.jsx)("div",{className:"skeleton h-9 w-9 rounded-lg"}),(0,b.jsxs)("div",{className:"flex flex-1 flex-col gap-1.5",children:[(0,b.jsx)("div",{className:"skeleton h-3.5 w-2/3 rounded"}),(0,b.jsx)("div",{className:"skeleton h-3 w-1/3 rounded"})]})]}),(0,b.jsx)("div",{className:"skeleton h-6 w-full rounded-md"})]},a))}):"kanban"===c?(0,b.jsx)("div",{className:"flex gap-3 overflow-hidden","aria-busy":"true","aria-label":e.common.loading,children:[0,1,2,3,4].map(a=>(0,b.jsxs)("div",{className:"flex min-w-[14rem] flex-1 flex-col gap-2 rounded-lg border border-border bg-surface p-2",children:[(0,b.jsx)("div",{className:"skeleton h-3 w-20 rounded"}),[0,1,2].map(a=>(0,b.jsx)("div",{className:"skeleton h-12 w-full rounded-md"},a))]},a))}):(0,b.jsx)("div",{className:"flex flex-col gap-2.5 py-2","aria-busy":"true","aria-label":e.common.loading,children:[88,72,80,64].map((a,c)=>(0,b.jsxs)("div",{className:"flex items-center gap-3",children:[(0,b.jsx)("div",{className:"skeleton h-4 w-4 rounded-md"}),(0,b.jsx)("div",{className:"skeleton h-3.5 rounded",style:{width:`${a}%`}})]},c))})}])},34048,a=>{"use strict";var b=a.i(87924);let c={default:"border-border bg-elevated text-text-muted",accent:"border-accent/40 bg-accent/10 text-accent",muted:"border-border bg-elevated text-text-muted",danger:"border-danger/40 bg-danger/10 text-danger",success:"border-success/40 bg-success/10 text-success",warning:"border-warning/40 bg-warning/10 text-warning"};a.s(["Badge",0,function({children:a,tone:d="default"}){return(0,b.jsx)("span",{className:`inline-flex items-center rounded-md border px-2 py-0.5 font-mono text-[11px] font-medium ${c[d]}`,children:a})}])},88736,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(35112);a.i(28130);var e=a.i(29457);let f={lg:"h-[88vh] w-[92vw]",xl:"max-h-[90vh] w-full max-w-2xl",md:"max-h-[88vh] w-full max-w-lg",sm:"max-h-[80vh] w-full max-w-md"};a.s(["Modal",0,function({title:a,onClose:g,children:h,size:i="lg",icon:j,description:k}){let{t:l}=(0,e.useTranslation)(),[m,n]=(0,c.useState)(!1);return((0,c.useEffect)(()=>n(!0),[]),(0,c.useEffect)(()=>{let a=a=>{"Escape"===a.key&&g()};return window.addEventListener("keydown",a),()=>window.removeEventListener("keydown",a)},[g]),m)?(0,d.createPortal)((0,b.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/70 p-4",onClick:g,children:(0,b.jsxs)("div",{className:`animate-pop-in flex flex-col rounded-lg bg-surface border border-border ${f[i]}`,style:{boxShadow:"var(--shadow-raised)"},onClick:a=>a.stopPropagation(),children:[(0,b.jsxs)("div",{className:"flex items-center gap-3 border-b border-border px-5 py-3",children:[j?(0,b.jsx)("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg border border-border bg-elevated",children:(0,b.jsx)(j,{size:18,className:"text-accent","aria-hidden":!0})}):null,(0,b.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,b.jsx)("h2",{className:"truncate text-sm font-semibold text-text",children:a}),k?(0,b.jsx)("p",{className:"truncate text-xs text-text-muted",children:k}):null]}),(0,b.jsx)("button",{type:"button","aria-label":l.common.close,onClick:g,className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-md text-text-muted transition-colors hover:bg-elevated hover:text-text",children:"×"})]}),(0,b.jsx)("div",{className:"flex min-h-0 flex-1 flex-col overflow-hidden",children:h})]})}),document.body):null},"ModalBody",0,function({children:a,gap:c=5}){return(0,b.jsx)("div",{className:`flex min-h-0 flex-1 flex-col overflow-y-auto p-5 ${4===c?"gap-4":6===c?"gap-6":"gap-5"}`,children:a})},"ModalFooter",0,function({children:a}){return(0,b.jsx)("div",{className:"flex shrink-0 items-center justify-end gap-2 border-t border-border px-5 py-3",children:a})}])},81560,a=>{"use strict";let b=(0,a.i(70106).default)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);a.s(["Trash2",0,b],81560)},6555,a=>{"use strict";var b=a.i(87924),c=a.i(33217),d=a.i(34531),e=a.i(82717);a.s(["ProjectIcon",0,function({project:a,size:f=16,className:g=""}){let h=a.icon??"",{data:i}=(0,c.useQuery)({queryKey:["project-icon",a.id,h],enabled:!!h,staleTime:1/0,queryFn:async()=>{let b=await e.orcaClient.projectRawBlob(a.id,h);return await new Promise((a,c)=>{let d=new FileReader;d.onload=()=>a(d.result),d.onerror=()=>c(d.error),d.readAsDataURL(b)})}});return h&&i?(0,b.jsx)("img",{src:i,alt:"","aria-hidden":!0,className:`shrink-0 rounded-sm object-cover ${g}`,style:{width:f,height:f}}):(0,b.jsx)(d.FolderGit2,{size:f,className:`shrink-0 ${g}`,"aria-hidden":!0})}])},34044,a=>{"use strict";let b=(0,a.i(70106).default)("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);a.s(["Maximize2",0,b],34044)},49134,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(35112),e=a.i(81560);a.i(28130);var f=a.i(29457);a.s(["ActionMenu",0,function({items:a,label:g,trigger:h,align:i="right"}){let[j,k]=(0,c.useState)(!1),l=(0,c.useRef)(null),m=(0,c.useRef)(null),n=(0,c.useRef)(null),o=(0,c.useRef)(null),{t:p}=(0,f.useTranslation)(),q=g??p.common.actions,[r,s]=(0,c.useState)(null),[t,u]=(0,c.useState)(!1);(0,c.useEffect)(()=>u(!0),[]);let v=()=>{let a=m.current;if(!a)return;let b=a.getBoundingClientRect();s("right"===i?{top:b.bottom,right:window.innerWidth-b.right}:{top:b.bottom,left:b.left})},w=()=>{o.current&&(clearTimeout(o.current),o.current=null)},x=()=>{w(),o.current=setTimeout(()=>k(!1),160)},y=()=>{w(),v(),k(!0)};return(0,c.useEffect)(()=>{if(!j)return;let a=a=>{l.current?.contains(a.target)||n.current?.contains(a.target)||k(!1)},b=a=>{"Escape"===a.key&&k(!1)},c=()=>v();return document.addEventListener("mousedown",a),document.addEventListener("keydown",b),window.addEventListener("resize",c),window.addEventListener("scroll",c,!0),()=>{document.removeEventListener("mousedown",a),document.removeEventListener("keydown",b),window.removeEventListener("resize",c),window.removeEventListener("scroll",c,!0)}},[j]),(0,c.useEffect)(()=>()=>w(),[]),(0,b.jsxs)("div",{ref:l,className:"relative",onMouseEnter:y,onMouseLeave:x,children:[(0,b.jsx)("button",{ref:m,type:"button","aria-label":q,"aria-haspopup":"menu","aria-expanded":j,title:q,onClick:()=>j?k(!1):y(),className:"inline-flex h-8 w-8 items-center justify-center rounded-md border border-danger/60 text-danger transition-colors hover:bg-danger hover:text-white",style:{transitionDuration:"var(--motion-fast)"},children:h??(0,b.jsx)(e.Trash2,{size:15,"aria-hidden":!0})}),t&&j&&r&&(0,d.createPortal)((0,b.jsx)("div",{ref:n,role:"menu",onMouseEnter:w,onMouseLeave:x,className:"fixed z-[61] min-w-[12rem] overflow-hidden rounded-lg border border-border bg-surface py-1.5",style:{top:r.top,left:r.left,right:r.right,boxShadow:"var(--shadow-raised)"},children:a.map(a=>{let c=a.icon,d="danger"===a.tone;return(0,b.jsxs)("button",{type:"button",role:"menuitem",onClick:()=>{k(!1),a.onSelect()},className:`flex w-full items-center gap-2.5 px-3.5 py-2.5 text-left text-sm transition-colors ${d?"text-danger hover:bg-danger hover:text-white":"text-text hover:bg-elevated"}`,style:{transitionDuration:"var(--motion-fast)"},children:[c?(0,b.jsx)(c,{size:15,"aria-hidden":!0}):null,a.label]},a.label)})}),document.body)]})}])},83549,a=>{"use strict";var b=a.i(87924);a.s(["Segmented",0,function({options:a,value:c,onChange:d}){return(0,b.jsx)("div",{role:"radiogroup",className:"flex flex-wrap gap-1.5",children:a.map(a=>{let e=a.value===c,f=a.icon;return(0,b.jsxs)("button",{type:"button",role:"radio","aria-checked":e,"aria-label":a.label,onClick:()=>d(a.value),className:`inline-flex h-9 items-center gap-1.5 rounded-md border px-3 text-xs font-medium transition-colors ${e?"border-accent/50 bg-accent/15 text-accent":"border-border bg-elevated text-text-muted hover:border-border-strong hover:text-text"}`,style:{transitionDuration:"var(--motion-fast)"},children:[f?(0,b.jsx)(f,{size:13,"aria-hidden":!0}):null,a.label]},a.value)})})}])},92058,a=>{"use strict";var b=a.i(72131);a.s(["usePersistentState",0,function(a,c,d){let[e,f]=(0,b.useState)(c);return(0,b.useEffect)(()=>{try{let b=localStorage.getItem(a);if(null===b)return;("function"==typeof d?d(b):d.includes(b))&&f(b)}catch{}},[a]),[e,(0,b.useCallback)(b=>{f(b);try{localStorage.setItem(a,b)}catch{}},[a])]}])},65151,a=>{"use strict";let b=(0,a.i(70106).default)("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);a.s(["Circle",0,b],65151)},32824,a=>{"use strict";var b=a.i(87924),c=a.i(76645),d=a.i(6555);a.s(["ProjectPill",0,function({projectId:a,always:e=!1}){let{data:f}=(0,c.useProjects)();if(null==a||!f||!e&&f.length<2)return null;let g=f.find(b=>b.id===a);return g?(0,b.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-md border border-border bg-elevated px-1.5 py-0.5 font-mono text-[11px] text-text-muted",title:g.path,children:[(0,b.jsx)(d.ProjectIcon,{project:g,size:11}),(0,b.jsx)("span",{className:"max-w-32 truncate",children:g.slug})]}):null}])},67329,a=>{"use strict";let b=(0,a.i(70106).default)("List",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]);a.s(["List",0,b],67329)},90854,72089,a=>{"use strict";var b=a.i(87924),c=a.i(76645),d=a.i(70106);let e=(0,d.default)("ArrowDownToLine",[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]]),f=(0,d.default)("ArrowUpFromLine",[["path",{d:"m18 9-6-6-6 6",key:"kcunyi"}],["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 21h14",key:"11awu3"}]]),g=(0,d.default)("DatabaseZap",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 15 21.84",key:"14ibmq"}],["path",{d:"M21 5V8",key:"1marbg"}],["path",{d:"M21 12L18 17H22L19 22",key:"zafso"}],["path",{d:"M3 12A9 3 0 0 0 14.59 14.87",key:"1y4wr8"}]]),h=(0,d.default)("Coins",[["circle",{cx:"8",cy:"8",r:"6",key:"3yglwk"}],["path",{d:"M18.09 10.37A6 6 0 1 1 10.34 18",key:"t5s6rm"}],["path",{d:"M7 6h1v4",key:"1obek4"}],["path",{d:"m16.71 13.88.7.71-2.82 2.82",key:"1rbuyh"}]]);a.s(["Coins",0,h],72089),a.i(28130);var i=a.i(29457),j=a.i(81926);function k({usage:a}){let{t:c}=(0,i.useTranslation)();if(!a||0===a.total)return null;let d=a.cacheRead+a.cacheWrite,m=d>0,n=null!=a.costUsd&&a.costUsd>0,o=[`${c.usage.inputTokens}: ${a.input.toLocaleString()}`,m?`${c.usage.cache}: ${d.toLocaleString()}`:null,`${c.usage.outputTokens}: ${a.output.toLocaleString()}`,null!=a.costUsd&&a.costUsd>0?`${c.usage.cost}: ${(0,j.formatCost)(a.costUsd)}`:null].filter(Boolean).join(" · ");return(0,b.jsxs)("span",{className:"inline-flex items-center gap-1 font-mono text-[11px]",title:o,children:[(0,b.jsx)(l,{icon:e,label:c.usage.input,display:(0,j.formatTokens)(a.input),className:"border-info/30 text-info"}),m?(0,b.jsx)(l,{icon:g,label:c.usage.cache,display:(0,j.formatTokens)(d),className:"border-warning/30 text-warning"}):null,(0,b.jsx)(l,{icon:f,label:c.usage.output,display:(0,j.formatTokens)(a.output),className:"border-danger/30 text-danger"}),n?(0,b.jsx)(l,{icon:h,label:c.usage.cost,display:(0,j.formatCost)(a.costUsd),className:"border-approve/30 text-approve"}):null]})}function l({icon:a,label:c,display:d,className:e}){return(0,b.jsxs)("span",{className:`inline-flex items-center gap-0.5 rounded border px-1.5 py-0.5 ${e??""}`,children:[(0,b.jsx)(a,{size:10,className:"shrink-0","aria-hidden":!0}),(0,b.jsx)("span",{className:"uppercase tracking-wide",children:c}),(0,b.jsx)("span",{children:d})]})}a.s(["TaskUsageBadge",0,function({taskId:a,live:d=!1}){let{data:e}=(0,c.useTaskUsage)(a,d);return e?(0,b.jsx)(k,{usage:e}):null}],90854)},91589,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(34044),e=a.i(8435),f=a.i(71858);a.i(28130);var g=a.i(29457);a.s(["LiveTail",0,function({name:a,lines:h=20,heightClass:i="max-h-80",onExpand:j}){let{t:k}=(0,g.useTranslation)(),{tail:l,isLoading:m}=(0,e.useSessionPane)(a,h),n=(0,c.useRef)(null),o=(0,c.useRef)(null),[p,q]=(0,c.useState)({scale:1,h:0});(0,c.useEffect)(()=>{let a=n.current,b=o.current;if(!a||!b)return;let c=()=>{let c=b.scrollWidth,d=b.scrollHeight,e=a.clientWidth;if(!c||!e)return;let f=Math.min(1,e/c);q({scale:f,h:Math.ceil(d*f)})};c();let d=new ResizeObserver(c);return d.observe(a),()=>d.disconnect()},[l]);let r=(0,b.jsx)("div",{ref:n,className:`${i} overflow-auto`,children:(0,b.jsx)("div",{className:"overflow-hidden",style:{height:p.h||void 0},children:(0,b.jsx)("pre",{ref:o,style:{transform:p.scale<1?`scale(${p.scale})`:void 0,transformOrigin:"top left"},className:"w-max whitespace-pre font-mono text-xs leading-relaxed text-text-muted",children:m?k.sessions.loading:l?(0,f.parseAnsi)(l).map((a,c)=>(0,b.jsx)("span",{style:a.color?{color:a.color}:void 0,children:a.text},c)):k.sessions.noOutput})})});return j?(0,b.jsxs)("div",{className:"group relative",children:[(0,b.jsx)("div",{role:"button",tabIndex:0,onClick:j,onKeyDown:a=>{("Enter"===a.key||" "===a.key)&&(a.preventDefault(),j())},title:k.tasks.openTerminal,className:"block w-full cursor-pointer rounded-md border border-border bg-bg p-3 transition-colors hover:border-accent/60 focus:border-accent focus:outline-none",children:r}),(0,b.jsxs)("span",{className:"pointer-events-none absolute right-2 top-2 flex items-center gap-1 rounded-md border border-border bg-surface/90 px-2 py-1 text-[11px] text-text-muted opacity-0 backdrop-blur transition-opacity group-hover:opacity-100",children:[(0,b.jsx)(d.Maximize2,{size:12,"aria-hidden":!0})," ",k.tasks.openTerminal]})]}):(0,b.jsx)("div",{className:"rounded-md border border-border bg-bg p-3",children:r})}])}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=_01rh28z._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[12794,a=>{"use strict";var b=a.i(18544),c=a.i(85659),d=a.i(21778),e=class extends c.Removable{#a;#b;#c;#d;constructor(a){super(),this.#a=a.client,this.mutationId=a.mutationId,this.#c=a.mutationCache,this.#b=[],this.state=a.state||f(),this.setOptions(a.options),this.scheduleGc()}setOptions(a){this.options=a,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(a){this.#b.includes(a)||(this.#b.push(a),this.clearGcTimeout(),this.#c.notify({type:"observerAdded",mutation:this,observer:a}))}removeObserver(a){this.#b=this.#b.filter(b=>b!==a),this.scheduleGc(),this.#c.notify({type:"observerRemoved",mutation:this,observer:a})}optionalRemove(){this.#b.length||("pending"===this.state.status?this.scheduleGc():this.#c.remove(this))}continue(){return this.#d?.continue()??this.execute(this.state.variables)}async execute(a){let b=()=>{this.#e({type:"continue"})},c={client:this.#a,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#d=(0,d.createRetryer)({fn:()=>this.options.mutationFn?this.options.mutationFn(a,c):Promise.reject(Error("No mutationFn found")),onFail:(a,b)=>{this.#e({type:"failed",failureCount:a,error:b})},onPause:()=>{this.#e({type:"pause"})},onContinue:b,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#c.canRun(this)});let e="pending"===this.state.status,f=!this.#d.canStart();try{if(e)b();else{this.#e({type:"pending",variables:a,isPaused:f}),this.#c.config.onMutate&&await this.#c.config.onMutate(a,this,c);let b=await this.options.onMutate?.(a,c);b!==this.state.context&&this.#e({type:"pending",context:b,variables:a,isPaused:f})}let d=await this.#d.start();return await this.#c.config.onSuccess?.(d,a,this.state.context,this,c),await this.options.onSuccess?.(d,a,this.state.context,c),await this.#c.config.onSettled?.(d,null,this.state.variables,this.state.context,this,c),await this.options.onSettled?.(d,null,a,this.state.context,c),this.#e({type:"success",data:d}),d}catch(b){try{await this.#c.config.onError?.(b,a,this.state.context,this,c)}catch(a){Promise.reject(a)}try{await this.options.onError?.(b,a,this.state.context,c)}catch(a){Promise.reject(a)}try{await this.#c.config.onSettled?.(void 0,b,this.state.variables,this.state.context,this,c)}catch(a){Promise.reject(a)}try{await this.options.onSettled?.(void 0,b,a,this.state.context,c)}catch(a){Promise.reject(a)}throw this.#e({type:"error",error:b}),b}finally{this.#c.runNext(this)}}#e(a){this.state=(b=>{switch(a.type){case"failed":return{...b,failureCount:a.failureCount,failureReason:a.error};case"pause":return{...b,isPaused:!0};case"continue":return{...b,isPaused:!1};case"pending":return{...b,context:a.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:a.isPaused,status:"pending",variables:a.variables,submittedAt:Date.now()};case"success":return{...b,data:a.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...b,data:void 0,error:a.error,failureCount:b.failureCount+1,failureReason:a.error,isPaused:!1,status:"error"}}})(this.state),b.notifyManager.batch(()=>{this.#b.forEach(b=>{b.onMutationUpdate(a)}),this.#c.notify({mutation:this,type:"updated",action:a})})}};function f(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}a.s(["Mutation",0,e,"getDefaultState",0,f])},67453,a=>{"use strict";let b=(0,a.i(70106).default)("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);a.s(["CheckCircle2",0,b],67453)},92e3,a=>{"use strict";let b=(0,a.i(70106).default)("CircleAlert",[["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"}]]);a.s(["AlertCircle",0,b],92e3)},33508,a=>{"use strict";let b=(0,a.i(70106).default)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);a.s(["X",0,b],33508)},89697,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(67453),e=a.i(92e3),f=a.i(33508);a.i(28130);var g=a.i(29457);let h=(0,c.createContext)(null),i=0;function j({item:a,meta:d,dismissLabel:e,onDismiss:g}){let{Icon:h,color:i,title:k}=d,[l,m]=(0,c.useState)(100),n=(0,c.useRef)(!1);return(0,c.useEffect)(()=>{let a=0,b=performance.now(),c=requestAnimationFrame(function d(e){(n.current||(a+=e-b),b=e,m(Math.max(0,100-a/4500*100)),a>=4500)?g():c=requestAnimationFrame(d)});return()=>cancelAnimationFrame(c)},[g]),(0,b.jsxs)("div",{role:"status",onMouseEnter:()=>{n.current=!0},onMouseLeave:()=>{n.current=!1},className:"pointer-events-auto relative flex items-start gap-3 overflow-hidden rounded-lg border border-border bg-surface py-3 pl-4 pr-3",style:{boxShadow:"var(--shadow-raised)",borderLeft:`3px solid ${i}`,animation:"toast-in 200ms var(--ease-out)"},children:[(0,b.jsx)(h,{size:20,"aria-hidden":!0,className:"mt-px shrink-0",style:{color:i}}),(0,b.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,b.jsx)("div",{className:"text-sm font-semibold text-text",children:k}),(0,b.jsx)("div",{className:"mt-0.5 break-words text-sm leading-snug text-text-muted",children:a.message})]}),(0,b.jsx)("button",{type:"button","aria-label":e,onClick:g,className:"-mr-1 -mt-1 flex h-7 w-7 shrink-0 items-center justify-center rounded-md text-text-muted transition-colors hover:bg-elevated hover:text-text",children:(0,b.jsx)(f.X,{size:15,"aria-hidden":!0})}),(0,b.jsx)("span",{className:"absolute bottom-0 left-0 h-0.5",style:{width:`${l}%`,backgroundColor:i,opacity:.5},"aria-hidden":!0})]})}a.s(["ToastProvider",0,function({children:a}){let{t:f}=(0,g.useTranslation)(),k={ok:{Icon:d.CheckCircle2,color:"var(--color-success)",title:f.common.success},error:{Icon:e.AlertCircle,color:"var(--color-danger)",title:f.common.error}},[l,m]=(0,c.useState)([]),n=(0,c.useCallback)(a=>m(b=>b.filter(b=>b.id!==a)),[]),o=(0,c.useCallback)((a,b="ok")=>{let c=i++;m(d=>[...d,{id:c,message:a,tone:b}])},[]),p=(0,c.useMemo)(()=>({toast:o}),[o]);return(0,b.jsxs)(h.Provider,{value:p,children:[a,(0,b.jsx)("div",{className:"pointer-events-none fixed bottom-5 right-5 z-50 flex w-[22rem] max-w-[calc(100vw-2.5rem)] flex-col gap-2.5",children:l.map(a=>(0,b.jsx)(j,{item:a,meta:k[a.tone],dismissLabel:f.common.dismiss,onDismiss:()=>n(a.id)},a.id))})]})},"useToast",0,function(){let a=(0,c.useContext)(h);if(!a)throw Error("useToast must be used within ToastProvider");return a}])},18517,a=>{"use strict";var b=a.i(72131),c=a.i(12794),d=a.i(18544),e=a.i(33791),f=a.i(42871),g=class extends e.Subscribable{#a;#f=void 0;#g;#h;constructor(a,b){super(),this.#a=a,this.setOptions(b),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(a){let b=this.options;this.options=this.#a.defaultMutationOptions(a),(0,f.shallowEqualObjects)(this.options,b)||this.#a.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#g,observer:this}),b?.mutationKey&&this.options.mutationKey&&(0,f.hashKey)(b.mutationKey)!==(0,f.hashKey)(this.options.mutationKey)?this.reset():this.#g?.state.status==="pending"&&this.#g.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#g?.removeObserver(this)}onMutationUpdate(a){this.#i(),this.#j(a)}getCurrentResult(){return this.#f}reset(){this.#g?.removeObserver(this),this.#g=void 0,this.#i(),this.#j()}mutate(a,b){return this.#h=b,this.#g?.removeObserver(this),this.#g=this.#a.getMutationCache().build(this.#a,this.options),this.#g.addObserver(this),this.#g.execute(a)}#i(){let a=this.#g?.state??(0,c.getDefaultState)();this.#f={...a,isPending:"pending"===a.status,isSuccess:"success"===a.status,isError:"error"===a.status,isIdle:"idle"===a.status,mutate:this.mutate,reset:this.reset}}#j(a){d.notifyManager.batch(()=>{if(this.#h&&this.hasListeners()){let b=this.#f.variables,c=this.#f.context,d={client:this.#a,meta:this.options.meta,mutationKey:this.options.mutationKey};if(a?.type==="success"){try{this.#h.onSuccess?.(a.data,b,c,d)}catch(a){Promise.reject(a)}try{this.#h.onSettled?.(a.data,null,b,c,d)}catch(a){Promise.reject(a)}}else if(a?.type==="error"){try{this.#h.onError?.(a.error,b,c,d)}catch(a){Promise.reject(a)}try{this.#h.onSettled?.(void 0,a.error,b,c,d)}catch(a){Promise.reject(a)}}}this.listeners.forEach(a=>{a(this.#f)})})}},h=a.i(37927);function i(a,c){let e=(0,h.useQueryClient)(c),[i]=b.useState(()=>new g(e,a));b.useEffect(()=>{i.setOptions(a)},[i,a]);let j=b.useSyncExternalStore(b.useCallback(a=>i.subscribe(d.notifyManager.batchCalls(a)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),k=b.useCallback((a,b)=>{i.mutate(a,b).catch(f.noop)},[i]);if(j.error&&(0,f.shouldThrowError)(i.options.throwOnError,[j.error]))throw j.error;return{...j,mutate:k,mutateAsync:j.mutate}}var j=a.i(82717),k=a.i(76645);function l(a,b){a.invalidateQueries({queryKey:["project-files",b]}),a.invalidateQueries({queryKey:["project-git",b]}),a.invalidateQueries({queryKey:["project-changed",b]})}a.s(["useApproveGate",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.approveGate(a),onSuccess:()=>a.invalidateQueries({queryKey:k.QUERY_KEYS.tasks})})},"useAssignProject",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>a.currentlyAssigned?j.orcaClient.unassignProject(a.userId,a.projectId):j.orcaClient.assignProject(a.userId,a.projectId),onSuccess:(b,c)=>a.invalidateQueries({queryKey:["user-projects",c.userId]})})},"useChangePassword",0,function(){return i({mutationFn:a=>j.orcaClient.changePassword(a.currentPassword,a.newPassword)})},"useCleanupAll",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:()=>j.orcaClient.cleanupAll(),onSuccess:()=>a.invalidateQueries()})},"useCloseTask",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.closeTask(a),onSuccess:()=>a.invalidateQueries({queryKey:k.QUERY_KEYS.tasks})})},"useCopyProjectEntry",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.copyProjectEntry(a.id,a.from,a.to),onSuccess:(b,c)=>l(a,c.id)})},"useCreateProject",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.createProject(a),onSuccess:()=>a.invalidateQueries({queryKey:["projects"]})})},"useCreateTask",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.createTask(a),onSuccess:()=>a.invalidateQueries({queryKey:k.QUERY_KEYS.tasks})})},"useCreateUser",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.createUser(a.username,a.password),onSuccess:()=>a.invalidateQueries({queryKey:["users"]})})},"useDeleteMission",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.deleteMission(a),onSuccess:()=>{a.invalidateQueries({queryKey:k.QUERY_KEYS.tasks}),a.invalidateQueries({queryKey:k.QUERY_KEYS.missions}),a.invalidateQueries({queryKey:["mission"]})}})},"useDeleteProjectEntry",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.deleteProjectEntry(a.id,a.path),onSuccess:(b,c)=>l(a,c.id)})},"useDeleteTask",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.deleteTask(a),onSuccess:()=>a.invalidateQueries({queryKey:k.QUERY_KEYS.tasks})})},"useDeleteUser",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.deleteUser(a),onSuccess:()=>a.invalidateQueries({queryKey:["users"]})})},"useDisengage",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.disengageMission(a),onSuccess:()=>a.invalidateQueries({queryKey:k.QUERY_KEYS.missions})})},"useEngage",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.engage(a),onSuccess:()=>a.invalidateQueries({queryKey:k.QUERY_KEYS.missions})})},"useHermesInstall",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.hermesInstall(a),onSuccess:(b,c)=>{a.invalidateQueries({queryKey:c.home?["hermes-status",c.home]:["hermes-status"]})}})},"useInsertPhases",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.insertPhases(a.epicId,a.body),onSuccess:(b,c)=>{a.invalidateQueries({queryKey:k.QUERY_KEYS.tasks}),a.invalidateQueries({queryKey:["mission",c.epicId]}),a.invalidateQueries({queryKey:k.QUERY_KEYS.missions})}})},"useKillSession",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.killSession(a),onSuccess:()=>a.invalidateQueries({queryKey:k.QUERY_KEYS.sessions})})},"useLogin",0,function(){return i({mutationFn:a=>j.orcaClient.login(a.username,a.password)})},"useLogout",0,function(){return i({mutationFn:()=>j.orcaClient.logout()})},"useNewProjectDir",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.newProjectDir(a.id,a.path),onSuccess:(b,c)=>l(a,c.id)})},"useNewProjectFile",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.newProjectFile(a.id,a.path),onSuccess:(b,c)=>l(a,c.id)})},"usePauseMission",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.pauseMission(a),onSuccess:()=>a.invalidateQueries({queryKey:k.QUERY_KEYS.missions})})},"usePlanTask",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.planTask(a),onSuccess:()=>{a.invalidateQueries({queryKey:k.QUERY_KEYS.tasks}),a.invalidateQueries({queryKey:k.QUERY_KEYS.missions})}})},"useRemoveProject",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.removeProject(a),onSuccess:()=>a.invalidateQueries({queryKey:["projects"]})})},"useRenameProjectEntry",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.renameProjectEntry(a.id,a.from,a.to),onSuccess:(b,c)=>l(a,c.id)})},"useResumeMission",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.resumeMission(a),onSuccess:()=>a.invalidateQueries({queryKey:k.QUERY_KEYS.missions})})},"useSendInput",0,function(){return i({mutationFn:a=>j.orcaClient.sendKeys(a.name,a.keys)})},"useSetProjectIcon",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.updateProject(a.id,{icon:a.icon}),onSuccess:()=>a.invalidateQueries({queryKey:["projects"]})})},"useSetTaskExec",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.setTaskExec(a.id,a.exec),onSuccess:()=>a.invalidateQueries({queryKey:k.QUERY_KEYS.tasks})})},"useSetTaskStatus",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.setTaskStatus(a.id,a.status),onSuccess:()=>a.invalidateQueries({queryKey:k.QUERY_KEYS.tasks})})},"useSpawn",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.spawn(a),onSuccess:()=>{a.invalidateQueries({queryKey:k.QUERY_KEYS.tasks}),a.invalidateQueries({queryKey:k.QUERY_KEYS.sessions})}})},"useUpdateConfig",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.updateConfig(a),onSuccess:()=>a.invalidateQueries({queryKey:k.QUERY_KEYS.config})})},"useUpdateMe",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.updateMe(a),onSuccess:()=>a.invalidateQueries({queryKey:["me"]})})},"useUpdateProject",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.updateProject(a.id,{path:a.path,notes:a.notes}),onSuccess:()=>a.invalidateQueries({queryKey:["projects"]})})},"useUpdateTask",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.updateTask(a.id,a.patch),onSuccess:()=>a.invalidateQueries({queryKey:k.QUERY_KEYS.tasks})})},"useUpdateUser",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.updateUser(a.id,a.patch),onSuccess:()=>{a.invalidateQueries({queryKey:["users"]}),a.invalidateQueries({queryKey:["me"]})}})},"useUploadAvatar",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.uploadAvatar(a),onSuccess:()=>a.invalidateQueries({queryKey:["me"]})})},"useWriteProjectFile",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.writeProjectFile(a.id,a.path,a.content),onSuccess:(b,c)=>{a.invalidateQueries({queryKey:["project-file",c.id,c.path]}),a.invalidateQueries({queryKey:["project-git",c.id]})}})}],18517)}];
|
|
1
|
+
module.exports=[12794,a=>{"use strict";var b=a.i(18544),c=a.i(85659),d=a.i(21778),e=class extends c.Removable{#a;#b;#c;#d;constructor(a){super(),this.#a=a.client,this.mutationId=a.mutationId,this.#c=a.mutationCache,this.#b=[],this.state=a.state||f(),this.setOptions(a.options),this.scheduleGc()}setOptions(a){this.options=a,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(a){this.#b.includes(a)||(this.#b.push(a),this.clearGcTimeout(),this.#c.notify({type:"observerAdded",mutation:this,observer:a}))}removeObserver(a){this.#b=this.#b.filter(b=>b!==a),this.scheduleGc(),this.#c.notify({type:"observerRemoved",mutation:this,observer:a})}optionalRemove(){this.#b.length||("pending"===this.state.status?this.scheduleGc():this.#c.remove(this))}continue(){return this.#d?.continue()??this.execute(this.state.variables)}async execute(a){let b=()=>{this.#e({type:"continue"})},c={client:this.#a,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#d=(0,d.createRetryer)({fn:()=>this.options.mutationFn?this.options.mutationFn(a,c):Promise.reject(Error("No mutationFn found")),onFail:(a,b)=>{this.#e({type:"failed",failureCount:a,error:b})},onPause:()=>{this.#e({type:"pause"})},onContinue:b,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#c.canRun(this)});let e="pending"===this.state.status,f=!this.#d.canStart();try{if(e)b();else{this.#e({type:"pending",variables:a,isPaused:f}),this.#c.config.onMutate&&await this.#c.config.onMutate(a,this,c);let b=await this.options.onMutate?.(a,c);b!==this.state.context&&this.#e({type:"pending",context:b,variables:a,isPaused:f})}let d=await this.#d.start();return await this.#c.config.onSuccess?.(d,a,this.state.context,this,c),await this.options.onSuccess?.(d,a,this.state.context,c),await this.#c.config.onSettled?.(d,null,this.state.variables,this.state.context,this,c),await this.options.onSettled?.(d,null,a,this.state.context,c),this.#e({type:"success",data:d}),d}catch(b){try{await this.#c.config.onError?.(b,a,this.state.context,this,c)}catch(a){Promise.reject(a)}try{await this.options.onError?.(b,a,this.state.context,c)}catch(a){Promise.reject(a)}try{await this.#c.config.onSettled?.(void 0,b,this.state.variables,this.state.context,this,c)}catch(a){Promise.reject(a)}try{await this.options.onSettled?.(void 0,b,a,this.state.context,c)}catch(a){Promise.reject(a)}throw this.#e({type:"error",error:b}),b}finally{this.#c.runNext(this)}}#e(a){this.state=(b=>{switch(a.type){case"failed":return{...b,failureCount:a.failureCount,failureReason:a.error};case"pause":return{...b,isPaused:!0};case"continue":return{...b,isPaused:!1};case"pending":return{...b,context:a.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:a.isPaused,status:"pending",variables:a.variables,submittedAt:Date.now()};case"success":return{...b,data:a.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...b,data:void 0,error:a.error,failureCount:b.failureCount+1,failureReason:a.error,isPaused:!1,status:"error"}}})(this.state),b.notifyManager.batch(()=>{this.#b.forEach(b=>{b.onMutationUpdate(a)}),this.#c.notify({mutation:this,type:"updated",action:a})})}};function f(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}a.s(["Mutation",0,e,"getDefaultState",0,f])},67453,a=>{"use strict";let b=(0,a.i(70106).default)("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);a.s(["CheckCircle2",0,b],67453)},92e3,a=>{"use strict";let b=(0,a.i(70106).default)("CircleAlert",[["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"}]]);a.s(["AlertCircle",0,b],92e3)},33508,a=>{"use strict";let b=(0,a.i(70106).default)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);a.s(["X",0,b],33508)},89697,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(67453),e=a.i(92e3),f=a.i(33508);a.i(28130);var g=a.i(29457);let h=(0,c.createContext)(null),i=0;function j({item:a,meta:d,dismissLabel:e,onDismiss:g}){let{Icon:h,color:i,title:k}=d,[l,m]=(0,c.useState)(100),n=(0,c.useRef)(!1);return(0,c.useEffect)(()=>{let a=0,b=performance.now(),c=requestAnimationFrame(function d(e){(n.current||(a+=e-b),b=e,m(Math.max(0,100-a/4500*100)),a>=4500)?g():c=requestAnimationFrame(d)});return()=>cancelAnimationFrame(c)},[g]),(0,b.jsxs)("div",{role:"status",onMouseEnter:()=>{n.current=!0},onMouseLeave:()=>{n.current=!1},className:"pointer-events-auto relative flex items-start gap-3 overflow-hidden rounded-lg border border-border bg-surface py-3 pl-4 pr-3",style:{boxShadow:"var(--shadow-raised)",borderLeft:`3px solid ${i}`,animation:"toast-in 200ms var(--ease-out)"},children:[(0,b.jsx)(h,{size:20,"aria-hidden":!0,className:"mt-px shrink-0",style:{color:i}}),(0,b.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,b.jsx)("div",{className:"text-sm font-semibold text-text",children:k}),(0,b.jsx)("div",{className:"mt-0.5 break-words text-sm leading-snug text-text-muted",children:a.message})]}),(0,b.jsx)("button",{type:"button","aria-label":e,onClick:g,className:"-mr-1 -mt-1 flex h-7 w-7 shrink-0 items-center justify-center rounded-md text-text-muted transition-colors hover:bg-elevated hover:text-text",children:(0,b.jsx)(f.X,{size:15,"aria-hidden":!0})}),(0,b.jsx)("span",{className:"absolute bottom-0 left-0 h-0.5",style:{width:`${l}%`,backgroundColor:i,opacity:.5},"aria-hidden":!0})]})}a.s(["ToastProvider",0,function({children:a}){let{t:f}=(0,g.useTranslation)(),k={ok:{Icon:d.CheckCircle2,color:"var(--color-success)",title:f.common.success},error:{Icon:e.AlertCircle,color:"var(--color-danger)",title:f.common.error}},[l,m]=(0,c.useState)([]),n=(0,c.useCallback)(a=>m(b=>b.filter(b=>b.id!==a)),[]),o=(0,c.useCallback)((a,b="ok")=>{let c=i++;m(d=>[...d,{id:c,message:a,tone:b}])},[]),p=(0,c.useMemo)(()=>({toast:o}),[o]);return(0,b.jsxs)(h.Provider,{value:p,children:[a,(0,b.jsx)("div",{className:"pointer-events-none fixed bottom-5 right-5 z-50 flex w-[22rem] max-w-[calc(100vw-2.5rem)] flex-col gap-2.5",children:l.map(a=>(0,b.jsx)(j,{item:a,meta:k[a.tone],dismissLabel:f.common.dismiss,onDismiss:()=>n(a.id)},a.id))})]})},"useToast",0,function(){let a=(0,c.useContext)(h);if(!a)throw Error("useToast must be used within ToastProvider");return a}])},18517,a=>{"use strict";var b=a.i(72131),c=a.i(12794),d=a.i(18544),e=a.i(33791),f=a.i(42871),g=class extends e.Subscribable{#a;#f=void 0;#g;#h;constructor(a,b){super(),this.#a=a,this.setOptions(b),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(a){let b=this.options;this.options=this.#a.defaultMutationOptions(a),(0,f.shallowEqualObjects)(this.options,b)||this.#a.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#g,observer:this}),b?.mutationKey&&this.options.mutationKey&&(0,f.hashKey)(b.mutationKey)!==(0,f.hashKey)(this.options.mutationKey)?this.reset():this.#g?.state.status==="pending"&&this.#g.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#g?.removeObserver(this)}onMutationUpdate(a){this.#i(),this.#j(a)}getCurrentResult(){return this.#f}reset(){this.#g?.removeObserver(this),this.#g=void 0,this.#i(),this.#j()}mutate(a,b){return this.#h=b,this.#g?.removeObserver(this),this.#g=this.#a.getMutationCache().build(this.#a,this.options),this.#g.addObserver(this),this.#g.execute(a)}#i(){let a=this.#g?.state??(0,c.getDefaultState)();this.#f={...a,isPending:"pending"===a.status,isSuccess:"success"===a.status,isError:"error"===a.status,isIdle:"idle"===a.status,mutate:this.mutate,reset:this.reset}}#j(a){d.notifyManager.batch(()=>{if(this.#h&&this.hasListeners()){let b=this.#f.variables,c=this.#f.context,d={client:this.#a,meta:this.options.meta,mutationKey:this.options.mutationKey};if(a?.type==="success"){try{this.#h.onSuccess?.(a.data,b,c,d)}catch(a){Promise.reject(a)}try{this.#h.onSettled?.(a.data,null,b,c,d)}catch(a){Promise.reject(a)}}else if(a?.type==="error"){try{this.#h.onError?.(a.error,b,c,d)}catch(a){Promise.reject(a)}try{this.#h.onSettled?.(void 0,a.error,b,c,d)}catch(a){Promise.reject(a)}}}this.listeners.forEach(a=>{a(this.#f)})})}},h=a.i(37927);function i(a,c){let e=(0,h.useQueryClient)(c),[i]=b.useState(()=>new g(e,a));b.useEffect(()=>{i.setOptions(a)},[i,a]);let j=b.useSyncExternalStore(b.useCallback(a=>i.subscribe(d.notifyManager.batchCalls(a)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),k=b.useCallback((a,b)=>{i.mutate(a,b).catch(f.noop)},[i]);if(j.error&&(0,f.shouldThrowError)(i.options.throwOnError,[j.error]))throw j.error;return{...j,mutate:k,mutateAsync:j.mutate}}var j=a.i(82717),k=a.i(76645);function l(a,b){a.invalidateQueries({queryKey:["project-files",b]}),a.invalidateQueries({queryKey:["project-git",b]}),a.invalidateQueries({queryKey:["project-changed",b]})}a.s(["useAdvisorStart",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.advisorStart(a),onSuccess:()=>{a.invalidateQueries({queryKey:k.QUERY_KEYS.advisorStatus}),a.invalidateQueries({queryKey:k.QUERY_KEYS.sessions})}})},"useAdvisorStop",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:()=>j.orcaClient.advisorStop(),onSuccess:()=>{a.invalidateQueries({queryKey:k.QUERY_KEYS.advisorStatus}),a.invalidateQueries({queryKey:k.QUERY_KEYS.sessions})}})},"useApproveGate",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.approveGate(a),onSuccess:()=>a.invalidateQueries({queryKey:k.QUERY_KEYS.tasks})})},"useAssignProject",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>a.currentlyAssigned?j.orcaClient.unassignProject(a.userId,a.projectId):j.orcaClient.assignProject(a.userId,a.projectId),onSuccess:(b,c)=>a.invalidateQueries({queryKey:["user-projects",c.userId]})})},"useChangePassword",0,function(){return i({mutationFn:a=>j.orcaClient.changePassword(a.currentPassword,a.newPassword)})},"useCleanupAll",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:()=>j.orcaClient.cleanupAll(),onSuccess:()=>a.invalidateQueries()})},"useCloseTask",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.closeTask(a),onSuccess:()=>a.invalidateQueries({queryKey:k.QUERY_KEYS.tasks})})},"useCopyProjectEntry",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.copyProjectEntry(a.id,a.from,a.to),onSuccess:(b,c)=>l(a,c.id)})},"useCreateProject",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.createProject(a),onSuccess:()=>a.invalidateQueries({queryKey:["projects"]})})},"useCreateTask",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.createTask(a),onSuccess:()=>a.invalidateQueries({queryKey:k.QUERY_KEYS.tasks})})},"useCreateUser",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.createUser(a.username,a.password),onSuccess:()=>a.invalidateQueries({queryKey:["users"]})})},"useDeleteMission",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.deleteMission(a),onSuccess:()=>{a.invalidateQueries({queryKey:k.QUERY_KEYS.tasks}),a.invalidateQueries({queryKey:k.QUERY_KEYS.missions}),a.invalidateQueries({queryKey:["mission"]})}})},"useDeleteProjectEntry",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.deleteProjectEntry(a.id,a.path),onSuccess:(b,c)=>l(a,c.id)})},"useDeleteTask",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.deleteTask(a),onSuccess:()=>a.invalidateQueries({queryKey:k.QUERY_KEYS.tasks})})},"useDeleteUser",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.deleteUser(a),onSuccess:()=>a.invalidateQueries({queryKey:["users"]})})},"useDisengage",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.disengageMission(a),onSuccess:()=>a.invalidateQueries({queryKey:k.QUERY_KEYS.missions})})},"useEngage",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.engage(a),onSuccess:()=>a.invalidateQueries({queryKey:k.QUERY_KEYS.missions})})},"useHermesInstall",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.hermesInstall(a),onSuccess:(b,c)=>{a.invalidateQueries({queryKey:c.home?["hermes-status",c.home]:["hermes-status"]})}})},"useInsertPhases",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.insertPhases(a.epicId,a.body),onSuccess:(b,c)=>{a.invalidateQueries({queryKey:k.QUERY_KEYS.tasks}),a.invalidateQueries({queryKey:["mission",c.epicId]}),a.invalidateQueries({queryKey:k.QUERY_KEYS.missions})}})},"useKillSession",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.killSession(a),onSuccess:()=>a.invalidateQueries({queryKey:k.QUERY_KEYS.sessions})})},"useLogin",0,function(){return i({mutationFn:a=>j.orcaClient.login(a.username,a.password)})},"useLogout",0,function(){return i({mutationFn:()=>j.orcaClient.logout()})},"useNewProjectDir",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.newProjectDir(a.id,a.path),onSuccess:(b,c)=>l(a,c.id)})},"useNewProjectFile",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.newProjectFile(a.id,a.path),onSuccess:(b,c)=>l(a,c.id)})},"usePauseMission",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.pauseMission(a),onSuccess:()=>a.invalidateQueries({queryKey:k.QUERY_KEYS.missions})})},"usePlanTask",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.planTask(a),onSuccess:()=>{a.invalidateQueries({queryKey:k.QUERY_KEYS.tasks}),a.invalidateQueries({queryKey:k.QUERY_KEYS.missions})}})},"useRemoveProject",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.removeProject(a),onSuccess:()=>a.invalidateQueries({queryKey:["projects"]})})},"useRenameProjectEntry",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.renameProjectEntry(a.id,a.from,a.to),onSuccess:(b,c)=>l(a,c.id)})},"useResumeMission",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.resumeMission(a),onSuccess:()=>a.invalidateQueries({queryKey:k.QUERY_KEYS.missions})})},"useSendInput",0,function(){return i({mutationFn:a=>j.orcaClient.sendKeys(a.name,a.keys)})},"useSetProjectIcon",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.updateProject(a.id,{icon:a.icon}),onSuccess:()=>a.invalidateQueries({queryKey:["projects"]})})},"useSetTaskExec",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.setTaskExec(a.id,a.exec),onSuccess:()=>a.invalidateQueries({queryKey:k.QUERY_KEYS.tasks})})},"useSetTaskStatus",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.setTaskStatus(a.id,a.status),onSuccess:()=>a.invalidateQueries({queryKey:k.QUERY_KEYS.tasks})})},"useSpawn",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.spawn(a),onSuccess:()=>{a.invalidateQueries({queryKey:k.QUERY_KEYS.tasks}),a.invalidateQueries({queryKey:k.QUERY_KEYS.sessions})}})},"useUpdateConfig",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.updateConfig(a),onSuccess:()=>a.invalidateQueries({queryKey:k.QUERY_KEYS.config})})},"useUpdateMe",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.updateMe(a),onSuccess:()=>a.invalidateQueries({queryKey:["me"]})})},"useUpdateProject",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.updateProject(a.id,{path:a.path,notes:a.notes}),onSuccess:()=>a.invalidateQueries({queryKey:["projects"]})})},"useUpdateTask",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.updateTask(a.id,a.patch),onSuccess:()=>a.invalidateQueries({queryKey:k.QUERY_KEYS.tasks})})},"useUpdateUser",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.updateUser(a.id,a.patch),onSuccess:()=>{a.invalidateQueries({queryKey:["users"]}),a.invalidateQueries({queryKey:["me"]})}})},"useUploadAvatar",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.uploadAvatar(a),onSuccess:()=>a.invalidateQueries({queryKey:["me"]})})},"useWriteProjectFile",0,function(){let a=(0,h.useQueryClient)();return i({mutationFn:a=>j.orcaClient.writeProjectFile(a.id,a.path,a.content),onSuccess:(b,c)=>{a.invalidateQueries({queryKey:["project-file",c.id,c.path]}),a.invalidateQueries({queryKey:["project-git",c.id]})}})}],18517)}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=_057a06r._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[71727,a=>{"use strict";let b=(0,a.i(70106).default)("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);a.s(["Radio",0,b],71727)},70777,a=>{"use strict";var b=a.i(87924);a.s(["ModuleShell",0,function({moduleId:a,children:c}){return(0,b.jsx)("section",{"data-module":a,className:"module-root flex flex-col gap-4",children:c})}])},9173,a=>{"use strict";var b=a.i(87924),c=a.i(12466);a.i(28130);var d=a.i(29457);a.s(["EmptyState",0,function({title:a,description:c,icon:d,action:e}){return(0,b.jsxs)("div",{className:"flex animate-fade-up flex-col items-center justify-center gap-3 py-14 text-center",children:[d?(0,b.jsx)(d,{size:28,strokeWidth:1.25,className:"text-text-muted/40","aria-hidden":!0}):null,(0,b.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,b.jsx)("p",{className:"text-sm uppercase tracking-wide text-text",children:a}),c&&(0,b.jsx)("p",{className:"text-xs text-text-muted",children:c})]}),e]})},"ErrorState",0,function({message:a,onRetry:e}){let{t:f}=(0,d.useTranslation)();return(0,b.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 py-12 text-center",children:[(0,b.jsx)("p",{className:"text-sm text-accent",children:a}),e&&(0,b.jsx)(c.Button,{onClick:e,children:f.common.retry})]})},"LoadingState",0,function({label:a,variant:c="list"}){let{t:e}=(0,d.useTranslation)();return a?(0,b.jsx)("div",{className:"flex items-center justify-center py-12 font-mono text-xs text-text-muted animate-pulse",children:a}):"cards"===c?(0,b.jsx)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3","aria-busy":"true","aria-label":e.common.loading,children:[0,1,2,3,4,5].map(a=>(0,b.jsxs)("div",{className:"flex flex-col gap-2.5 rounded-lg border border-border bg-surface p-3",style:{boxShadow:"var(--shadow-card)"},children:[(0,b.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,b.jsx)("div",{className:"skeleton h-9 w-9 rounded-lg"}),(0,b.jsxs)("div",{className:"flex flex-1 flex-col gap-1.5",children:[(0,b.jsx)("div",{className:"skeleton h-3.5 w-2/3 rounded"}),(0,b.jsx)("div",{className:"skeleton h-3 w-1/3 rounded"})]})]}),(0,b.jsx)("div",{className:"skeleton h-6 w-full rounded-md"})]},a))}):"kanban"===c?(0,b.jsx)("div",{className:"flex gap-3 overflow-hidden","aria-busy":"true","aria-label":e.common.loading,children:[0,1,2,3,4].map(a=>(0,b.jsxs)("div",{className:"flex min-w-[14rem] flex-1 flex-col gap-2 rounded-lg border border-border bg-surface p-2",children:[(0,b.jsx)("div",{className:"skeleton h-3 w-20 rounded"}),[0,1,2].map(a=>(0,b.jsx)("div",{className:"skeleton h-12 w-full rounded-md"},a))]},a))}):(0,b.jsx)("div",{className:"flex flex-col gap-2.5 py-2","aria-busy":"true","aria-label":e.common.loading,children:[88,72,80,64].map((a,c)=>(0,b.jsxs)("div",{className:"flex items-center gap-3",children:[(0,b.jsx)("div",{className:"skeleton h-4 w-4 rounded-md"}),(0,b.jsx)("div",{className:"skeleton h-3.5 rounded",style:{width:`${a}%`}})]},c))})}])},34048,a=>{"use strict";var b=a.i(87924);let c={default:"border-border bg-elevated text-text-muted",accent:"border-accent/40 bg-accent/10 text-accent",muted:"border-border bg-elevated text-text-muted",danger:"border-danger/40 bg-danger/10 text-danger",success:"border-success/40 bg-success/10 text-success",warning:"border-warning/40 bg-warning/10 text-warning"};a.s(["Badge",0,function({children:a,tone:d="default"}){return(0,b.jsx)("span",{className:`inline-flex items-center rounded-md border px-2 py-0.5 font-mono text-[11px] font-medium ${c[d]}`,children:a})}])},53876,a=>{"use strict";var b=a.i(87924);a.s(["Field",0,function({label:a,htmlFor:c,children:d,hint:e}){return(0,b.jsxs)("label",{htmlFor:c,className:"flex flex-col gap-1.5",children:[(0,b.jsx)("span",{className:"text-xs font-medium uppercase tracking-wide text-text-muted",children:a}),d,e?(0,b.jsx)("span",{className:"text-xs text-text-muted",children:e}):null]})}])},83549,a=>{"use strict";var b=a.i(87924);a.s(["Segmented",0,function({options:a,value:c,onChange:d}){return(0,b.jsx)("div",{role:"radiogroup",className:"flex flex-wrap gap-1.5",children:a.map(a=>{let e=a.value===c,f=a.icon;return(0,b.jsxs)("button",{type:"button",role:"radio","aria-checked":e,"aria-label":a.label,onClick:()=>d(a.value),className:`inline-flex h-9 items-center gap-1.5 rounded-md border px-3 text-xs font-medium transition-colors ${e?"border-accent/50 bg-accent/15 text-accent":"border-border bg-elevated text-text-muted hover:border-border-strong hover:text-text"}`,style:{transitionDuration:"var(--motion-fast)"},children:[f?(0,b.jsx)(f,{size:13,"aria-hidden":!0}):null,a.label]},a.value)})})}])},56993,a=>{"use strict";var b=a.i(87924);a.s(["Select",0,function({className:a="",children:c,...d}){let e=a.trim();return(0,b.jsx)("select",{className:`h-9 w-full rounded-md border border-border bg-surface px-3 text-sm text-text transition-colors focus:border-accent focus:outline-none disabled:opacity-40 disabled:cursor-not-allowed${e?` ${e}`:""}`,...d,children:c})}])},32860,a=>{"use strict";let b=(0,a.i(70106).default)("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);a.s(["ArrowRight",0,b],32860)},17371,a=>{"use strict";let b=(0,a.i(70106).default)("UserPlus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]);a.s(["UserPlus",0,b],17371)},80386,a=>{"use strict";let b=(0,a.i(70106).default)("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);a.s(["Terminal",0,b],80386)},14548,a=>{"use strict";let b=(0,a.i(70106).default)("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);a.s(["Save",0,b],14548)},77156,a=>{"use strict";let b=(0,a.i(70106).default)("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"}]]);a.s(["Eye",0,b],77156)},96883,62232,a=>{"use strict";var b=a.i(87924);let c=[{id:"claude-code",label:"Claude Code",color:"#d97757",binHint:"claude",argsHint:"--permission-mode acceptEdits",icon:"/providers/anthropic.png"},{id:"opencode",label:"OpenCode",color:"#7c8cff",binHint:"opencode",argsHint:"--pure",icon:"/providers/opencode.png"},{id:"codex",label:"Codex",color:"#ededed",binHint:"codex",argsHint:"--full-auto",icon:"/providers/openai.svg"}],d=a=>c.find(b=>b.id===a);a.s(["PROVIDERS",0,c,"ProviderLogo",0,function({meta:a,alt:c,size:d=36}){return(0,b.jsx)("span",{className:"inline-flex shrink-0 items-center justify-center overflow-hidden rounded-lg border border-border bg-elevated",style:{width:d,height:d},children:(0,b.jsx)("img",{src:a.icon,alt:c??a.label,width:.62*d,height:.62*d,style:{objectFit:"contain"}})})},"ProviderTag",0,function({id:a}){let c=d(a);return c?(0,b.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-md border border-border bg-elevated/60 px-2 py-1 text-[11px] text-text-muted",children:[(0,b.jsx)("img",{src:c.icon,alt:"",width:13,height:13,style:{objectFit:"contain"},"aria-hidden":!0}),c.label]}):null},"providerMeta",0,d],96883);var e=a.i(72131),f=a.i(76645),g=a.i(18517);a.s(["useHermesForm",0,function(){let[a,b]=(0,e.useState)(""),[c,d]=(0,e.useState)(""),[h,i]=(0,e.useState)(""),j=(0,f.useHermesStatus)(a),k=(0,g.useHermesInstall)();return(0,e.useEffect)(()=>{d(window.location.origin)},[]),{home:a,setHome:b,url:c,setUrl:d,token:h,setToken:i,status:j,install:k}}],62232)}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=_081ml1k._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[41710,a=>{"use strict";let b=(0,a.i(70106).default)("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);a.s(["Clock",0,b],41710)},33441,a=>{"use strict";let b=(0,a.i(70106).default)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);a.s(["Check",0,b],33441)},56993,a=>{"use strict";var b=a.i(87924);a.s(["Select",0,function({className:a="",children:c,...d}){let e=a.trim();return(0,b.jsx)("select",{className:`h-9 w-full rounded-md border border-border bg-surface px-3 text-sm text-text transition-colors focus:border-accent focus:outline-none disabled:opacity-40 disabled:cursor-not-allowed${e?` ${e}`:""}`,...d,children:c})}])},69922,a=>{"use strict";let b=(0,a.i(70106).default)("Link2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);a.s(["Link2",0,b],69922)},57581,a=>{"use strict";var b=a.i(87924),c=a.i(73570),d=a.i(88736),e=a.i(12466);a.i(28130);var f=a.i(29457);a.s(["ConfirmDialog",0,function({open:a,title:g,description:h,confirmLabel:i,onConfirm:j,onClose:k}){let{t:l}=(0,f.useTranslation)();return a?(0,b.jsxs)(d.Modal,{title:g,onClose:k,size:"sm",icon:c.AlertTriangle,children:[(0,b.jsx)(d.ModalBody,{children:h?(0,b.jsx)("p",{className:"text-sm leading-relaxed text-text-muted",children:h}):null}),(0,b.jsxs)(d.ModalFooter,{children:[(0,b.jsx)(e.Button,{variant:"ghost",onClick:k,children:l.common.cancel}),(0,b.jsx)(e.Button,{variant:"danger",onClick:j,children:i??l.common.delete})]})]}):null}])},47084,a=>{"use strict";var b=a.i(87924);a.s(["Toggle",0,function({checked:a,onChange:c,label:d,disabled:e=!1}){return(0,b.jsx)("button",{type:"button",role:"switch","aria-checked":a,"aria-label":d,disabled:e,onClick:()=>!e&&c(!a),className:`inline-flex h-5 w-9 items-center border border-border px-0.5 transition-colors ${a?"bg-accent":"bg-elevated"} ${e?"opacity-40":"cursor-pointer"}`,style:{transitionDuration:"var(--motion-fast)"},children:(0,b.jsx)("span",{className:`block h-3.5 w-3.5 transition-transform ${a?"translate-x-4 bg-bg":"translate-x-0 bg-text-muted"}`,style:{transitionDuration:"var(--motion-base)",transitionTimingFunction:"var(--ease-spring)"}})})}])},53876,a=>{"use strict";var b=a.i(87924);a.s(["Field",0,function({label:a,htmlFor:c,children:d,hint:e}){return(0,b.jsxs)("label",{htmlFor:c,className:"flex flex-col gap-1.5",children:[(0,b.jsx)("span",{className:"text-xs font-medium uppercase tracking-wide text-text-muted",children:a}),d,e?(0,b.jsx)("span",{className:"text-xs text-text-muted",children:e}):null]})}])},97222,a=>{"use strict";var b=a.i(87924);a.s(["ModuleHeader",0,function({title:a,count:c,icon:d,children:e}){return(0,b.jsxs)("div",{className:"z-20 -mx-4 -mt-4 mb-5 flex flex-col gap-2 border-b border-border bg-bg px-4 py-3 md:sticky md:top-0 md:flex-row md:flex-wrap md:items-center md:gap-x-3",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[d?(0,b.jsx)(d,{size:16,className:"shrink-0 text-text-muted","aria-hidden":!0}):null,(0,b.jsx)("h1",{className:"text-base font-semibold tracking-tight text-text",children:a}),void 0!==c?(0,b.jsx)("span",{className:"rounded-full bg-elevated px-2 py-0.5 font-mono text-[11px] text-text-muted",children:c}):null]}),e?(0,b.jsx)("div",{className:"flex flex-wrap items-center gap-2 md:ml-auto",children:e}):null]})}])},9173,a=>{"use strict";var b=a.i(87924),c=a.i(12466);a.i(28130);var d=a.i(29457);a.s(["EmptyState",0,function({title:a,description:c,icon:d,action:e}){return(0,b.jsxs)("div",{className:"flex animate-fade-up flex-col items-center justify-center gap-3 py-14 text-center",children:[d?(0,b.jsx)(d,{size:28,strokeWidth:1.25,className:"text-text-muted/40","aria-hidden":!0}):null,(0,b.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,b.jsx)("p",{className:"text-sm uppercase tracking-wide text-text",children:a}),c&&(0,b.jsx)("p",{className:"text-xs text-text-muted",children:c})]}),e]})},"ErrorState",0,function({message:a,onRetry:e}){let{t:f}=(0,d.useTranslation)();return(0,b.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 py-12 text-center",children:[(0,b.jsx)("p",{className:"text-sm text-accent",children:a}),e&&(0,b.jsx)(c.Button,{onClick:e,children:f.common.retry})]})},"LoadingState",0,function({label:a,variant:c="list"}){let{t:e}=(0,d.useTranslation)();return a?(0,b.jsx)("div",{className:"flex items-center justify-center py-12 font-mono text-xs text-text-muted animate-pulse",children:a}):"cards"===c?(0,b.jsx)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3","aria-busy":"true","aria-label":e.common.loading,children:[0,1,2,3,4,5].map(a=>(0,b.jsxs)("div",{className:"flex flex-col gap-2.5 rounded-lg border border-border bg-surface p-3",style:{boxShadow:"var(--shadow-card)"},children:[(0,b.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,b.jsx)("div",{className:"skeleton h-9 w-9 rounded-lg"}),(0,b.jsxs)("div",{className:"flex flex-1 flex-col gap-1.5",children:[(0,b.jsx)("div",{className:"skeleton h-3.5 w-2/3 rounded"}),(0,b.jsx)("div",{className:"skeleton h-3 w-1/3 rounded"})]})]}),(0,b.jsx)("div",{className:"skeleton h-6 w-full rounded-md"})]},a))}):"kanban"===c?(0,b.jsx)("div",{className:"flex gap-3 overflow-hidden","aria-busy":"true","aria-label":e.common.loading,children:[0,1,2,3,4].map(a=>(0,b.jsxs)("div",{className:"flex min-w-[14rem] flex-1 flex-col gap-2 rounded-lg border border-border bg-surface p-2",children:[(0,b.jsx)("div",{className:"skeleton h-3 w-20 rounded"}),[0,1,2].map(a=>(0,b.jsx)("div",{className:"skeleton h-12 w-full rounded-md"},a))]},a))}):(0,b.jsx)("div",{className:"flex flex-col gap-2.5 py-2","aria-busy":"true","aria-label":e.common.loading,children:[88,72,80,64].map((a,c)=>(0,b.jsxs)("div",{className:"flex items-center gap-3",children:[(0,b.jsx)("div",{className:"skeleton h-4 w-4 rounded-md"}),(0,b.jsx)("div",{className:"skeleton h-3.5 rounded",style:{width:`${a}%`}})]},c))})}])},70777,a=>{"use strict";var b=a.i(87924);a.s(["ModuleShell",0,function({moduleId:a,children:c}){return(0,b.jsx)("section",{"data-module":a,className:"module-root flex flex-col gap-4",children:c})}])},34048,a=>{"use strict";var b=a.i(87924);let c={default:"border-border bg-elevated text-text-muted",accent:"border-accent/40 bg-accent/10 text-accent",muted:"border-border bg-elevated text-text-muted",danger:"border-danger/40 bg-danger/10 text-danger",success:"border-success/40 bg-success/10 text-success",warning:"border-warning/40 bg-warning/10 text-warning"};a.s(["Badge",0,function({children:a,tone:d="default"}){return(0,b.jsx)("span",{className:`inline-flex items-center rounded-md border px-2 py-0.5 font-mono text-[11px] font-medium ${c[d]}`,children:a})}])},88736,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(35112);a.i(28130);var e=a.i(29457);let f={lg:"h-[88vh] w-[92vw]",xl:"max-h-[90vh] w-full max-w-2xl",md:"max-h-[88vh] w-full max-w-lg",sm:"max-h-[80vh] w-full max-w-md"};a.s(["Modal",0,function({title:a,onClose:g,children:h,size:i="lg",icon:j,description:k}){let{t:l}=(0,e.useTranslation)(),[m,n]=(0,c.useState)(!1);return((0,c.useEffect)(()=>n(!0),[]),(0,c.useEffect)(()=>{let a=a=>{"Escape"===a.key&&g()};return window.addEventListener("keydown",a),()=>window.removeEventListener("keydown",a)},[g]),m)?(0,d.createPortal)((0,b.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/70 p-4",onClick:g,children:(0,b.jsxs)("div",{className:`animate-pop-in flex flex-col rounded-lg bg-surface border border-border ${f[i]}`,style:{boxShadow:"var(--shadow-raised)"},onClick:a=>a.stopPropagation(),children:[(0,b.jsxs)("div",{className:"flex items-center gap-3 border-b border-border px-5 py-3",children:[j?(0,b.jsx)("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg border border-border bg-elevated",children:(0,b.jsx)(j,{size:18,className:"text-accent","aria-hidden":!0})}):null,(0,b.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,b.jsx)("h2",{className:"truncate text-sm font-semibold text-text",children:a}),k?(0,b.jsx)("p",{className:"truncate text-xs text-text-muted",children:k}):null]}),(0,b.jsx)("button",{type:"button","aria-label":l.common.close,onClick:g,className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-md text-text-muted transition-colors hover:bg-elevated hover:text-text",children:"×"})]}),(0,b.jsx)("div",{className:"flex min-h-0 flex-1 flex-col overflow-hidden",children:h})]})}),document.body):null},"ModalBody",0,function({children:a,gap:c=5}){return(0,b.jsx)("div",{className:`flex min-h-0 flex-1 flex-col overflow-y-auto p-5 ${4===c?"gap-4":6===c?"gap-6":"gap-5"}`,children:a})},"ModalFooter",0,function({children:a}){return(0,b.jsx)("div",{className:"flex shrink-0 items-center justify-end gap-2 border-t border-border px-5 py-3",children:a})}])},81560,a=>{"use strict";let b=(0,a.i(70106).default)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);a.s(["Trash2",0,b],81560)},73570,a=>{"use strict";var b=a.i(83604);a.s(["AlertTriangle",()=>b.default])},99464,a=>{"use strict";let b=(0,a.i(70106).default)("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);a.s(["Pencil",0,b],99464)},6555,a=>{"use strict";var b=a.i(87924),c=a.i(33217),d=a.i(34531),e=a.i(82717);a.s(["ProjectIcon",0,function({project:a,size:f=16,className:g=""}){let h=a.icon??"",{data:i}=(0,c.useQuery)({queryKey:["project-icon",a.id,h],enabled:!!h,staleTime:1/0,queryFn:async()=>{let b=await e.orcaClient.projectRawBlob(a.id,h);return await new Promise((a,c)=>{let d=new FileReader;d.onload=()=>a(d.result),d.onerror=()=>c(d.error),d.readAsDataURL(b)})}});return h&&i?(0,b.jsx)("img",{src:i,alt:"","aria-hidden":!0,className:`shrink-0 rounded-sm object-cover ${g}`,style:{width:f,height:f}}):(0,b.jsx)(d.FolderGit2,{size:f,className:`shrink-0 ${g}`,"aria-hidden":!0})}])},34044,a=>{"use strict";let b=(0,a.i(70106).default)("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);a.s(["Maximize2",0,b],34044)},50522,a=>{"use strict";let b=(0,a.i(70106).default)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);a.s(["ChevronRight",0,b],50522)},49134,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(35112),e=a.i(81560);a.i(28130);var f=a.i(29457);a.s(["ActionMenu",0,function({items:a,label:g,trigger:h,align:i="right"}){let[j,k]=(0,c.useState)(!1),l=(0,c.useRef)(null),m=(0,c.useRef)(null),n=(0,c.useRef)(null),o=(0,c.useRef)(null),{t:p}=(0,f.useTranslation)(),q=g??p.common.actions,[r,s]=(0,c.useState)(null),[t,u]=(0,c.useState)(!1);(0,c.useEffect)(()=>u(!0),[]);let v=()=>{let a=m.current;if(!a)return;let b=a.getBoundingClientRect();s("right"===i?{top:b.bottom,right:window.innerWidth-b.right}:{top:b.bottom,left:b.left})},w=()=>{o.current&&(clearTimeout(o.current),o.current=null)},x=()=>{w(),o.current=setTimeout(()=>k(!1),160)},y=()=>{w(),v(),k(!0)};return(0,c.useEffect)(()=>{if(!j)return;let a=a=>{l.current?.contains(a.target)||n.current?.contains(a.target)||k(!1)},b=a=>{"Escape"===a.key&&k(!1)},c=()=>v();return document.addEventListener("mousedown",a),document.addEventListener("keydown",b),window.addEventListener("resize",c),window.addEventListener("scroll",c,!0),()=>{document.removeEventListener("mousedown",a),document.removeEventListener("keydown",b),window.removeEventListener("resize",c),window.removeEventListener("scroll",c,!0)}},[j]),(0,c.useEffect)(()=>()=>w(),[]),(0,b.jsxs)("div",{ref:l,className:"relative",onMouseEnter:y,onMouseLeave:x,children:[(0,b.jsx)("button",{ref:m,type:"button","aria-label":q,"aria-haspopup":"menu","aria-expanded":j,title:q,onClick:()=>j?k(!1):y(),className:"inline-flex h-8 w-8 items-center justify-center rounded-md border border-danger/60 text-danger transition-colors hover:bg-danger hover:text-white",style:{transitionDuration:"var(--motion-fast)"},children:h??(0,b.jsx)(e.Trash2,{size:15,"aria-hidden":!0})}),t&&j&&r&&(0,d.createPortal)((0,b.jsx)("div",{ref:n,role:"menu",onMouseEnter:w,onMouseLeave:x,className:"fixed z-[61] min-w-[12rem] overflow-hidden rounded-lg border border-border bg-surface py-1.5",style:{top:r.top,left:r.left,right:r.right,boxShadow:"var(--shadow-raised)"},children:a.map(a=>{let c=a.icon,d="danger"===a.tone;return(0,b.jsxs)("button",{type:"button",role:"menuitem",onClick:()=>{k(!1),a.onSelect()},className:`flex w-full items-center gap-2.5 px-3.5 py-2.5 text-left text-sm transition-colors ${d?"text-danger hover:bg-danger hover:text-white":"text-text hover:bg-elevated"}`,style:{transitionDuration:"var(--motion-fast)"},children:[c?(0,b.jsx)(c,{size:15,"aria-hidden":!0}):null,a.label]},a.label)})}),document.body)]})}])},83549,a=>{"use strict";var b=a.i(87924);a.s(["Segmented",0,function({options:a,value:c,onChange:d}){return(0,b.jsx)("div",{role:"radiogroup",className:"flex flex-wrap gap-1.5",children:a.map(a=>{let e=a.value===c,f=a.icon;return(0,b.jsxs)("button",{type:"button",role:"radio","aria-checked":e,"aria-label":a.label,onClick:()=>d(a.value),className:`inline-flex h-9 items-center gap-1.5 rounded-md border px-3 text-xs font-medium transition-colors ${e?"border-accent/50 bg-accent/15 text-accent":"border-border bg-elevated text-text-muted hover:border-border-strong hover:text-text"}`,style:{transitionDuration:"var(--motion-fast)"},children:[f?(0,b.jsx)(f,{size:13,"aria-hidden":!0}):null,a.label]},a.value)})})}])},92058,a=>{"use strict";var b=a.i(72131);a.s(["usePersistentState",0,function(a,c,d){let[e,f]=(0,b.useState)(c);return(0,b.useEffect)(()=>{try{let b=localStorage.getItem(a);if(null===b)return;("function"==typeof d?d(b):d.includes(b))&&f(b)}catch{}},[a]),[e,(0,b.useCallback)(b=>{f(b);try{localStorage.setItem(a,b)}catch{}},[a])]}])},65151,a=>{"use strict";let b=(0,a.i(70106).default)("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);a.s(["Circle",0,b],65151)},32824,a=>{"use strict";var b=a.i(87924),c=a.i(76645),d=a.i(6555);a.s(["ProjectPill",0,function({projectId:a,always:e=!1}){let{data:f}=(0,c.useProjects)();if(null==a||!f||!e&&f.length<2)return null;let g=f.find(b=>b.id===a);return g?(0,b.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-md border border-border bg-elevated px-1.5 py-0.5 font-mono text-[11px] text-text-muted",title:g.path,children:[(0,b.jsx)(d.ProjectIcon,{project:g,size:11}),(0,b.jsx)("span",{className:"max-w-32 truncate",children:g.slug})]}):null}])},67329,a=>{"use strict";let b=(0,a.i(70106).default)("List",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]);a.s(["List",0,b],67329)},91589,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(34044),e=a.i(8435),f=a.i(71858);a.i(28130);var g=a.i(29457);a.s(["LiveTail",0,function({name:a,lines:h=20,heightClass:i="max-h-80",onExpand:j}){let{t:k}=(0,g.useTranslation)(),{tail:l,isLoading:m}=(0,e.useSessionPane)(a,h),n=(0,c.useRef)(null),o=(0,c.useRef)(null),[p,q]=(0,c.useState)({scale:1,h:0});(0,c.useEffect)(()=>{let a=n.current,b=o.current;if(!a||!b)return;let c=()=>{let c=b.scrollWidth,d=b.scrollHeight,e=a.clientWidth;if(!c||!e)return;let f=Math.min(1,e/c);q({scale:f,h:Math.ceil(d*f)})};c();let d=new ResizeObserver(c);return d.observe(a),()=>d.disconnect()},[l]);let r=(0,b.jsx)("div",{ref:n,className:`${i} overflow-auto`,children:(0,b.jsx)("div",{className:"overflow-hidden",style:{height:p.h||void 0},children:(0,b.jsx)("pre",{ref:o,style:{transform:p.scale<1?`scale(${p.scale})`:void 0,transformOrigin:"top left"},className:"w-max whitespace-pre font-mono text-xs leading-relaxed text-text-muted",children:m?k.sessions.loading:l?(0,f.parseAnsi)(l).map((a,c)=>(0,b.jsx)("span",{style:a.color?{color:a.color}:void 0,children:a.text},c)):k.sessions.noOutput})})});return j?(0,b.jsxs)("div",{className:"group relative",children:[(0,b.jsx)("div",{role:"button",tabIndex:0,onClick:j,onKeyDown:a=>{("Enter"===a.key||" "===a.key)&&(a.preventDefault(),j())},title:k.tasks.openTerminal,className:"block w-full cursor-pointer rounded-md border border-border bg-bg p-3 transition-colors hover:border-accent/60 focus:border-accent focus:outline-none",children:r}),(0,b.jsxs)("span",{className:"pointer-events-none absolute right-2 top-2 flex items-center gap-1 rounded-md border border-border bg-surface/90 px-2 py-1 text-[11px] text-text-muted opacity-0 backdrop-blur transition-opacity group-hover:opacity-100",children:[(0,b.jsx)(d.Maximize2,{size:12,"aria-hidden":!0})," ",k.tasks.openTerminal]})]}):(0,b.jsx)("div",{className:"rounded-md border border-border bg-bg p-3",children:r})}])},90854,72089,a=>{"use strict";var b=a.i(87924),c=a.i(76645),d=a.i(70106);let e=(0,d.default)("ArrowDownToLine",[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]]),f=(0,d.default)("ArrowUpFromLine",[["path",{d:"m18 9-6-6-6 6",key:"kcunyi"}],["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 21h14",key:"11awu3"}]]),g=(0,d.default)("DatabaseZap",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 15 21.84",key:"14ibmq"}],["path",{d:"M21 5V8",key:"1marbg"}],["path",{d:"M21 12L18 17H22L19 22",key:"zafso"}],["path",{d:"M3 12A9 3 0 0 0 14.59 14.87",key:"1y4wr8"}]]),h=(0,d.default)("Coins",[["circle",{cx:"8",cy:"8",r:"6",key:"3yglwk"}],["path",{d:"M18.09 10.37A6 6 0 1 1 10.34 18",key:"t5s6rm"}],["path",{d:"M7 6h1v4",key:"1obek4"}],["path",{d:"m16.71 13.88.7.71-2.82 2.82",key:"1rbuyh"}]]);a.s(["Coins",0,h],72089),a.i(28130);var i=a.i(29457),j=a.i(81926);function k({usage:a}){let{t:c}=(0,i.useTranslation)();if(!a||0===a.total)return null;let d=a.cacheRead+a.cacheWrite,m=d>0,n=null!=a.costUsd&&a.costUsd>0,o=[`${c.usage.inputTokens}: ${a.input.toLocaleString()}`,m?`${c.usage.cache}: ${d.toLocaleString()}`:null,`${c.usage.outputTokens}: ${a.output.toLocaleString()}`,null!=a.costUsd&&a.costUsd>0?`${c.usage.cost}: ${(0,j.formatCost)(a.costUsd)}`:null].filter(Boolean).join(" · ");return(0,b.jsxs)("span",{className:"inline-flex items-center gap-1 font-mono text-[11px]",title:o,children:[(0,b.jsx)(l,{icon:e,label:c.usage.input,display:(0,j.formatTokens)(a.input),className:"border-info/30 text-info"}),m?(0,b.jsx)(l,{icon:g,label:c.usage.cache,display:(0,j.formatTokens)(d),className:"border-warning/30 text-warning"}):null,(0,b.jsx)(l,{icon:f,label:c.usage.output,display:(0,j.formatTokens)(a.output),className:"border-danger/30 text-danger"}),n?(0,b.jsx)(l,{icon:h,label:c.usage.cost,display:(0,j.formatCost)(a.costUsd),className:"border-approve/30 text-approve"}):null]})}function l({icon:a,label:c,display:d,className:e}){return(0,b.jsxs)("span",{className:`inline-flex items-center gap-0.5 rounded border px-1.5 py-0.5 ${e??""}`,children:[(0,b.jsx)(a,{size:10,className:"shrink-0","aria-hidden":!0}),(0,b.jsx)("span",{className:"uppercase tracking-wide",children:c}),(0,b.jsx)("span",{children:d})]})}a.s(["TaskUsageBadge",0,function({taskId:a,live:d=!1}){let{data:e}=(0,c.useTaskUsage)(a,d);return e?(0,b.jsx)(k,{usage:e}):null}],90854)},28886,a=>{"use strict";let b=(0,a.i(70106).default)("Columns3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);a.s(["Columns3",0,b],28886)},17545,a=>{"use strict";let b=(0,a.i(70106).default)("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);a.s(["Layers",0,b],17545)},29930,a=>{"use strict";var b=a.i(87924),c=a.i(67453),d=a.i(62722),e=a.i(34048);a.i(28130);var f=a.i(29457);a.s(["OutcomeBadge",0,function({outcome:a}){let{t:g}=(0,f.useTranslation)();if(!a)return null;let h="fail"===a;return(0,b.jsxs)(e.Badge,{tone:h?"danger":"success",children:[h?(0,b.jsx)(d.XCircle,{size:11,className:"mr-1 inline","aria-hidden":!0}):(0,b.jsx)(c.CheckCircle2,{size:11,className:"mr-1 inline","aria-hidden":!0}),h?g.tasks.outcomeFail:g.tasks.outcomeOk]})}])},99806,a=>{"use strict";let b=(0,a.i(70106).default)("Bug",[["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M9 7.13v-1a3.003 3.003 0 1 1 6 0v1",key:"d7y7pr"}],["path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6",key:"xs1cw7"}],["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M6.53 9C4.6 8.8 3 7.1 3 5",key:"32zzws"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M3 21c0-2.1 1.7-3.9 3.8-4",key:"4p0ekp"}],["path",{d:"M20.97 5c0 2.1-1.6 3.8-3.5 4",key:"18gb23"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M17.2 17c2.1.1 3.8 1.9 3.8 4",key:"k3fwyw"}]]);a.s(["Bug",0,b],99806)},8406,a=>{"use strict";let b=(0,a.i(70106).default)("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);a.s(["Sparkles",0,b],8406)},35360,a=>{"use strict";var b=a.i(55023),c=a.i(99806),d=a.i(8406),e=a.i(17545);let f=(0,a.i(70106).default)("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);var g=a.i(65151);let h={task:{icon:b.ListChecks,label:"Task",tone:"default"},bug:{icon:c.Bug,label:"Bug",tone:"danger"},feature:{icon:d.Sparkles,label:"Feature",tone:"accent"},epic:{icon:e.Layers,label:"Epic",tone:"accent"},chore:{icon:f,label:"Chore",tone:"muted"}};function i(a){return h[a??"task"]??{icon:g.Circle,label:a??"Task",tone:"default"}}a.s(["PRIORITIES",0,["P0","P1","P2","P3"],"TASK_TYPES",0,["task","feature","bug","chore","epic"],"statusLabel",0,function(a,b){return({open:a.tasks.statusOpen,in_progress:a.tasks.statusInProgress,blocked:a.tasks.statusBlocked,closed:a.tasks.statusClosed,cancelled:a.tasks.statusCancelled})[b]??b},"taskTypeLabel",0,function(a,b){return({task:a.tasks.typeTask,bug:a.tasks.typeBug,feature:a.tasks.typeFeature,epic:a.tasks.typeEpic,chore:a.tasks.typeChore})[b]??i(b).label},"taskTypeMeta",0,i],35360)},80789,a=>{"use strict";var b=a.i(87924);a.s(["IconButton",0,function({icon:a,label:c,onClick:d,variant:e="default",disabled:f=!1}){return(0,b.jsx)("button",{type:"button","aria-label":c,title:c,onClick:d,disabled:f,className:`inline-flex h-7 w-7 items-center justify-center border transition-colors ${"danger"===e?"text-danger hover:bg-danger hover:text-bg border-danger":"text-text-muted hover:bg-elevated hover:text-text border-border"} ${f?"opacity-40":""}`,style:{transitionDuration:"var(--motion-fast)"},children:(0,b.jsx)(a,{size:14,"aria-hidden":!0})})}])},5641,a=>{"use strict";let b=(0,a.i(70106).default)("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);a.s(["Play",0,b],5641)},4650,a=>{"use strict";let b=(0,a.i(70106).default)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);a.s(["default",0,b])},31423,a=>{"use strict";var b=a.i(81415);function c(a){let c=new Set(a.filter(a=>"epic"===a.type).map(a=>a.id)),d=new Map;for(let b of a)if(b.parent_id&&c.has(b.parent_id)){let a=d.get(b.parent_id)??[];a.push(b),d.set(b.parent_id,a)}for(let a of d.values())a.sort((a,c)=>((0,b.parseTs)(a.created_at)??0)-((0,b.parseTs)(c.created_at)??0));return d}a.s(["epicCapacity",0,function(a,c,d){let e=0;for(let d of a){let a=(0,b.taskSessionName)(d);"in_progress"===d.status&&a&&c.includes(a)&&e++}let f=Math.max(0,Number.isFinite(d)?Math.floor(d):0),g=Math.min(e,f);return{running:g,max:f,free:Math.max(0,f-g)}},"epicChildren",0,c,"epicEffectiveStatus",0,function(a,b,c=[]){return"epic"!==a.type?a.status:b.some(b=>b.epic_id===a.id&&"disengaged"!==b.state)?"in_progress":0===c.length?a.status:c.some(a=>"in_progress"===a.status)?"in_progress":c.some(a=>"blocked"===a.status)?"blocked":c.some(a=>"open"===a.status)?"open":"closed"},"epicLive",0,function(a,c,d){let e=0,f=0;for(let g of a){let a=(0,b.taskSessionName)(g);"in_progress"===g.status&&a&&c.includes(a)&&e++,a&&c.includes(a)&&d[a]?.type==="needs_input"&&f++}return{running:e,needsInput:f}},"epicProgress",0,function(a){return{done:a.filter(a=>"closed"===a.status||"cancelled"===a.status).length,total:a.length}},"phaseIds",0,function(a){let b=new Set;for(let d of c(a).values())for(let a of d)b.add(a.id);return b}])},47034,a=>{"use strict";var b=a.i(87924),c=a.i(81415);a.i(28130);var d=a.i(29457);let e={working:{color:"var(--color-success)",ring:"color-mix(in srgb, var(--color-success) 50%, transparent)",pulse:!0},needs_input:{color:"var(--color-warning)",ring:"color-mix(in srgb, var(--color-warning) 50%, transparent)",pulse:!0},stalled:{color:"var(--color-warning)",ring:"color-mix(in srgb, var(--color-warning) 50%, transparent)",pulse:!1},stuck:{color:"var(--color-danger)",ring:"color-mix(in srgb, var(--color-danger) 50%, transparent)",pulse:!0},complete:{color:"var(--color-text-muted)",ring:"transparent",pulse:!1},idle:{color:"var(--color-border-strong)",ring:"transparent",pulse:!1}};a.s(["AgentStatusDot",0,function({signal:a,live:f=!1,size:g="md",stall:h,silenceSec:i=0}){let j,{t:k}=(0,d.useTranslation)(),l="stuck"===h?"stuck":"stalled"===h?"stalled":(0,c.liveState)(a,f),m=e[l],n="sm"===g?6:8;return j="stalled"===l?k.agent.stalled.replace("{min}",String(Math.max(1,Math.floor(i/60)))):"stuck"===l?k.agent.stuck.replace("{min}",String(Math.max(1,Math.floor(i/60)))):k.agent["idle"===l?"idle":"needs_input"===l?"needsInput":l],(0,b.jsx)("span",{className:`inline-block shrink-0 rounded-full ${m.pulse?"live-dot":""}`,style:{width:n,height:n,backgroundColor:m.color,"--live-ring":m.ring},role:"status","aria-label":j,title:j})}])},30322,58530,a=>{"use strict";let b={open:"success",in_progress:"warning",blocked:"danger",closed:"danger",cancelled:"muted"};a.s(["statusTone",0,function(a){return b[a]}],30322);var c=a.i(87924);a.s(["ProgressRibbon",0,function({phases:a,className:b=""}){return(0,c.jsx)("div",{className:`flex h-1.5 gap-0.5 overflow-hidden rounded-full ${b}`,children:0===a.length?(0,c.jsx)("div",{className:"h-full flex-1 rounded-full bg-elevated"}):a.map(a=>{let b;return(0,c.jsx)("div",{className:`h-full flex-1 rounded-full transition-colors ${"closed"===(b=a.status)?"bg-accent":"in_progress"===b?"bg-accent/60":"blocked"===b?"bg-danger":"cancelled"===b?"bg-elevated":"bg-border-strong"}`,style:{transitionDuration:"var(--motion-base)"},title:`${a.title} — ${a.status}`},a.id)})})}],58530)},37956,56468,5556,a=>{"use strict";var b=a.i(4650);a.s(["LoaderCircle",()=>b.default],37956);let c=(0,a.i(70106).default)("Ban",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]]);a.s(["Ban",0,c],56468);var d=a.i(71858);let e=[{re:/\b(failed|failure|panic|traceback|uncaught|cannot find module|command not found|enoent)\b/,cat:"error"},{re:/\b(do you want to|allow|approve|yes\/no|y\/n|press enter|press \[?enter\]? to continue)\b/,cat:"prompted"},{re:/\b(npm (install|ci|i|add)|yarn add|pnpm (add|install)|pip install|cargo (add|install)|apt[- ]get install|brew install)\b/,cat:"installing"},{re:/\b(vitest|jest|pytest|cargo test|go test|npm (run )?test|mocha|playwright|✓|✗|[0-9]+ passing|[0-9]+ failing)\b/,cat:"testing"},{re:/\b(npm run build|next build|tsc|cargo build|make\b|go build|webpack|vite build|compil|building)\b/,cat:"building"},{re:/\b(edit|patch|wrote|updated?|created|apply|insert|delete|refactor|\.tsx?|\.jsx?|\.py|\.go|\.rs)\b/,cat:"editing"},{re:/\b(thinking|reasoning|analyz|planning|consider|let me|i'll|i will|let's)\b/,cat:"thinking"}];a.s(["sessionActivity",0,function(a){if(!a||!a.trim())return"unknown";let b=a.split("\n").map(a=>(0,d.parseAnsi)(a).map(a=>a.text).join("")).join("\n").toLowerCase();for(let a of e)if(a.re.test(b))return a.cat;return"unknown"}],5556)}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=_0afhsmf._.js.map
|