orcasynth 1.4.1 → 1.4.3

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.
Files changed (220) hide show
  1. package/dist/api/server.js +14 -5
  2. package/dist/integrations/projectFiles.js +16 -0
  3. package/dist/integrations/usage/claude.js +7 -7
  4. package/dist/integrations/usage/codex.js +5 -7
  5. package/dist/integrations/usage/index.js +2 -8
  6. package/dist/integrations/usage/walk.js +14 -0
  7. package/dist/overseer/stuckDetector.js +4 -10
  8. package/dist/shared/id.js +7 -0
  9. package/dist/shared/time.js +12 -0
  10. package/dist/store/cascade.js +24 -0
  11. package/dist/store/db.js +3 -0
  12. package/dist/store/projectStore.js +8 -6
  13. package/dist/store/schema.sql +1 -1
  14. package/dist/store/taskStore.js +2 -8
  15. package/package.json +1 -1
  16. package/web-dist/.next/BUILD_ID +1 -1
  17. package/web-dist/.next/build-manifest.json +3 -3
  18. package/web-dist/.next/server/app/_global-error.html +1 -1
  19. package/web-dist/.next/server/app/_global-error.rsc +1 -1
  20. package/web-dist/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  21. package/web-dist/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  22. package/web-dist/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  23. package/web-dist/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  24. package/web-dist/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  25. package/web-dist/.next/server/app/_not-found/page.js.nft.json +1 -1
  26. package/web-dist/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  27. package/web-dist/.next/server/app/_not-found.html +1 -1
  28. package/web-dist/.next/server/app/_not-found.rsc +11 -11
  29. package/web-dist/.next/server/app/_not-found.segments/_full.segment.rsc +11 -11
  30. package/web-dist/.next/server/app/_not-found.segments/_head.segment.rsc +4 -4
  31. package/web-dist/.next/server/app/_not-found.segments/_index.segment.rsc +6 -6
  32. package/web-dist/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
  33. package/web-dist/.next/server/app/_not-found.segments/_not-found.segment.rsc +3 -3
  34. package/web-dist/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  35. package/web-dist/.next/server/app/account/page.js.nft.json +1 -1
  36. package/web-dist/.next/server/app/account/page_client-reference-manifest.js +1 -1
  37. package/web-dist/.next/server/app/account.html +1 -1
  38. package/web-dist/.next/server/app/account.rsc +13 -13
  39. package/web-dist/.next/server/app/account.segments/_full.segment.rsc +13 -13
  40. package/web-dist/.next/server/app/account.segments/_head.segment.rsc +4 -4
  41. package/web-dist/.next/server/app/account.segments/_index.segment.rsc +6 -6
  42. package/web-dist/.next/server/app/account.segments/_tree.segment.rsc +2 -2
  43. package/web-dist/.next/server/app/account.segments/account/__PAGE__.segment.rsc +4 -4
  44. package/web-dist/.next/server/app/account.segments/account.segment.rsc +3 -3
  45. package/web-dist/.next/server/app/dash/page.js.nft.json +1 -1
  46. package/web-dist/.next/server/app/dash/page_client-reference-manifest.js +1 -1
  47. package/web-dist/.next/server/app/dash.html +1 -1
  48. package/web-dist/.next/server/app/dash.rsc +13 -13
  49. package/web-dist/.next/server/app/dash.segments/_full.segment.rsc +13 -13
  50. package/web-dist/.next/server/app/dash.segments/_head.segment.rsc +4 -4
  51. package/web-dist/.next/server/app/dash.segments/_index.segment.rsc +6 -6
  52. package/web-dist/.next/server/app/dash.segments/_tree.segment.rsc +2 -2
  53. package/web-dist/.next/server/app/dash.segments/dash/__PAGE__.segment.rsc +4 -4
  54. package/web-dist/.next/server/app/dash.segments/dash.segment.rsc +3 -3
  55. package/web-dist/.next/server/app/escalations/page.js.nft.json +1 -1
  56. package/web-dist/.next/server/app/escalations/page_client-reference-manifest.js +1 -1
  57. package/web-dist/.next/server/app/escalations.html +1 -1
  58. package/web-dist/.next/server/app/escalations.rsc +13 -13
  59. package/web-dist/.next/server/app/escalations.segments/_full.segment.rsc +13 -13
  60. package/web-dist/.next/server/app/escalations.segments/_head.segment.rsc +4 -4
  61. package/web-dist/.next/server/app/escalations.segments/_index.segment.rsc +6 -6
  62. package/web-dist/.next/server/app/escalations.segments/_tree.segment.rsc +2 -2
  63. package/web-dist/.next/server/app/escalations.segments/escalations/__PAGE__.segment.rsc +4 -4
  64. package/web-dist/.next/server/app/escalations.segments/escalations.segment.rsc +3 -3
  65. package/web-dist/.next/server/app/index.html +1 -1
  66. package/web-dist/.next/server/app/index.rsc +13 -13
  67. package/web-dist/.next/server/app/index.segments/__PAGE__.segment.rsc +4 -4
  68. package/web-dist/.next/server/app/index.segments/_full.segment.rsc +13 -13
  69. package/web-dist/.next/server/app/index.segments/_head.segment.rsc +4 -4
  70. package/web-dist/.next/server/app/index.segments/_index.segment.rsc +6 -6
  71. package/web-dist/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  72. package/web-dist/.next/server/app/kanban/page.js.nft.json +1 -1
  73. package/web-dist/.next/server/app/kanban/page_client-reference-manifest.js +1 -1
  74. package/web-dist/.next/server/app/kanban.html +1 -1
  75. package/web-dist/.next/server/app/kanban.rsc +13 -13
  76. package/web-dist/.next/server/app/kanban.segments/_full.segment.rsc +13 -13
  77. package/web-dist/.next/server/app/kanban.segments/_head.segment.rsc +4 -4
  78. package/web-dist/.next/server/app/kanban.segments/_index.segment.rsc +6 -6
  79. package/web-dist/.next/server/app/kanban.segments/_tree.segment.rsc +2 -2
  80. package/web-dist/.next/server/app/kanban.segments/kanban/__PAGE__.segment.rsc +4 -4
  81. package/web-dist/.next/server/app/kanban.segments/kanban.segment.rsc +3 -3
  82. package/web-dist/.next/server/app/onboarding/page.js.nft.json +1 -1
  83. package/web-dist/.next/server/app/onboarding/page_client-reference-manifest.js +1 -1
  84. package/web-dist/.next/server/app/onboarding.html +1 -1
  85. package/web-dist/.next/server/app/onboarding.rsc +13 -13
  86. package/web-dist/.next/server/app/onboarding.segments/_full.segment.rsc +13 -13
  87. package/web-dist/.next/server/app/onboarding.segments/_head.segment.rsc +4 -4
  88. package/web-dist/.next/server/app/onboarding.segments/_index.segment.rsc +6 -6
  89. package/web-dist/.next/server/app/onboarding.segments/_tree.segment.rsc +2 -2
  90. package/web-dist/.next/server/app/onboarding.segments/onboarding/__PAGE__.segment.rsc +4 -4
  91. package/web-dist/.next/server/app/onboarding.segments/onboarding.segment.rsc +3 -3
  92. package/web-dist/.next/server/app/page.js.nft.json +1 -1
  93. package/web-dist/.next/server/app/page_client-reference-manifest.js +1 -1
  94. package/web-dist/.next/server/app/projects/page.js.nft.json +1 -1
  95. package/web-dist/.next/server/app/projects/page_client-reference-manifest.js +1 -1
  96. package/web-dist/.next/server/app/projects.html +1 -1
  97. package/web-dist/.next/server/app/projects.rsc +13 -13
  98. package/web-dist/.next/server/app/projects.segments/_full.segment.rsc +13 -13
  99. package/web-dist/.next/server/app/projects.segments/_head.segment.rsc +4 -4
  100. package/web-dist/.next/server/app/projects.segments/_index.segment.rsc +6 -6
  101. package/web-dist/.next/server/app/projects.segments/_tree.segment.rsc +2 -2
  102. package/web-dist/.next/server/app/projects.segments/projects/__PAGE__.segment.rsc +4 -4
  103. package/web-dist/.next/server/app/projects.segments/projects.segment.rsc +3 -3
  104. package/web-dist/.next/server/app/sessions/page.js.nft.json +1 -1
  105. package/web-dist/.next/server/app/sessions/page_client-reference-manifest.js +1 -1
  106. package/web-dist/.next/server/app/sessions.html +1 -1
  107. package/web-dist/.next/server/app/sessions.rsc +13 -13
  108. package/web-dist/.next/server/app/sessions.segments/_full.segment.rsc +13 -13
  109. package/web-dist/.next/server/app/sessions.segments/_head.segment.rsc +4 -4
  110. package/web-dist/.next/server/app/sessions.segments/_index.segment.rsc +6 -6
  111. package/web-dist/.next/server/app/sessions.segments/_tree.segment.rsc +2 -2
  112. package/web-dist/.next/server/app/sessions.segments/sessions/__PAGE__.segment.rsc +4 -4
  113. package/web-dist/.next/server/app/sessions.segments/sessions.segment.rsc +3 -3
  114. package/web-dist/.next/server/app/settings/page.js.nft.json +1 -1
  115. package/web-dist/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  116. package/web-dist/.next/server/app/settings.html +1 -1
  117. package/web-dist/.next/server/app/settings.rsc +13 -13
  118. package/web-dist/.next/server/app/settings.segments/_full.segment.rsc +13 -13
  119. package/web-dist/.next/server/app/settings.segments/_head.segment.rsc +4 -4
  120. package/web-dist/.next/server/app/settings.segments/_index.segment.rsc +6 -6
  121. package/web-dist/.next/server/app/settings.segments/_tree.segment.rsc +2 -2
  122. package/web-dist/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +4 -4
  123. package/web-dist/.next/server/app/settings.segments/settings.segment.rsc +3 -3
  124. package/web-dist/.next/server/app/tasks/page.js.nft.json +1 -1
  125. package/web-dist/.next/server/app/tasks/page_client-reference-manifest.js +1 -1
  126. package/web-dist/.next/server/app/tasks.html +1 -1
  127. package/web-dist/.next/server/app/tasks.rsc +13 -13
  128. package/web-dist/.next/server/app/tasks.segments/_full.segment.rsc +13 -13
  129. package/web-dist/.next/server/app/tasks.segments/_head.segment.rsc +4 -4
  130. package/web-dist/.next/server/app/tasks.segments/_index.segment.rsc +6 -6
  131. package/web-dist/.next/server/app/tasks.segments/_tree.segment.rsc +2 -2
  132. package/web-dist/.next/server/app/tasks.segments/tasks/__PAGE__.segment.rsc +4 -4
  133. package/web-dist/.next/server/app/tasks.segments/tasks.segment.rsc +3 -3
  134. package/web-dist/.next/server/app/timeline/page.js.nft.json +1 -1
  135. package/web-dist/.next/server/app/timeline/page_client-reference-manifest.js +1 -1
  136. package/web-dist/.next/server/app/timeline.html +1 -1
  137. package/web-dist/.next/server/app/timeline.rsc +13 -13
  138. package/web-dist/.next/server/app/timeline.segments/_full.segment.rsc +13 -13
  139. package/web-dist/.next/server/app/timeline.segments/_head.segment.rsc +4 -4
  140. package/web-dist/.next/server/app/timeline.segments/_index.segment.rsc +6 -6
  141. package/web-dist/.next/server/app/timeline.segments/_tree.segment.rsc +2 -2
  142. package/web-dist/.next/server/app/timeline.segments/timeline/__PAGE__.segment.rsc +4 -4
  143. package/web-dist/.next/server/app/timeline.segments/timeline.segment.rsc +3 -3
  144. package/web-dist/.next/server/app/users/page.js.nft.json +1 -1
  145. package/web-dist/.next/server/app/users/page_client-reference-manifest.js +1 -1
  146. package/web-dist/.next/server/app/users.html +1 -1
  147. package/web-dist/.next/server/app/users.rsc +13 -13
  148. package/web-dist/.next/server/app/users.segments/_full.segment.rsc +13 -13
  149. package/web-dist/.next/server/app/users.segments/_head.segment.rsc +4 -4
  150. package/web-dist/.next/server/app/users.segments/_index.segment.rsc +6 -6
  151. package/web-dist/.next/server/app/users.segments/_tree.segment.rsc +2 -2
  152. package/web-dist/.next/server/app/users.segments/users/__PAGE__.segment.rsc +4 -4
  153. package/web-dist/.next/server/app/users.segments/users.segment.rsc +3 -3
  154. package/web-dist/.next/server/chunks/[root-of-the-server]__0bvp8h1._.js +1 -1
  155. package/web-dist/.next/server/chunks/[root-of-the-server]__1dgbigm._.js +1 -1
  156. package/web-dist/.next/server/chunks/[root-of-the-server]__1wxxtv8._.js +1 -1
  157. package/web-dist/.next/server/chunks/ssr/{[root-of-the-server]__1tooevx._.js → [root-of-the-server]__0i_7o4p._.js} +2 -2
  158. package/web-dist/.next/server/chunks/ssr/_015zf-4._.js +1 -1
  159. package/web-dist/.next/server/chunks/ssr/_04ezsju._.js +3 -0
  160. package/web-dist/.next/server/chunks/ssr/_04o_q14._.js +1 -1
  161. package/web-dist/.next/server/chunks/ssr/_057a06r._.js +1 -1
  162. package/web-dist/.next/server/chunks/ssr/_085pshu._.js +1 -1
  163. package/web-dist/.next/server/chunks/ssr/_0tc9z5_._.js +1 -1
  164. package/web-dist/.next/server/chunks/ssr/_0tzourm._.js +1 -1
  165. package/web-dist/.next/server/chunks/ssr/_12jhzvy._.js +3 -0
  166. package/web-dist/.next/server/chunks/ssr/_136wthy._.js +3 -0
  167. package/web-dist/.next/server/chunks/ssr/_193-v_i._.js +3 -0
  168. package/web-dist/.next/server/chunks/ssr/_1heytlk._.js +3 -0
  169. package/web-dist/.next/server/chunks/ssr/_1mjzb9s._.js +1 -1
  170. package/web-dist/.next/server/chunks/ssr/_1xwktd-._.js +1 -1
  171. package/web-dist/.next/server/chunks/ssr/_1zscr7t._.js +3 -0
  172. package/web-dist/.next/server/chunks/ssr/app_dash_page_tsx_12v0wx-._.js +1 -1
  173. package/web-dist/.next/server/chunks/ssr/app_kanban_page_tsx_06_8oyf._.js +1 -1
  174. package/web-dist/.next/server/chunks/ssr/app_projects_page_tsx_1w-8z74._.js +3 -3
  175. package/web-dist/.next/server/chunks/ssr/app_tasks_page_tsx_1p6mxbw._.js +1 -1
  176. package/web-dist/.next/server/chunks/ssr/app_timeline_page_tsx_0thxir0._.js +1 -1
  177. package/web-dist/.next/server/chunks/ssr/components_shell_Shell_tsx_1e5c27h._.js +1 -1
  178. package/web-dist/.next/server/middleware-build-manifest.js +3 -3
  179. package/web-dist/.next/server/pages/404.html +1 -1
  180. package/web-dist/.next/server/pages/500.html +1 -1
  181. package/web-dist/.next/static/chunks/0l1t1fcd-_jj9.js +1 -0
  182. package/web-dist/.next/static/chunks/11xbsx12drypd.js +1 -0
  183. package/web-dist/.next/static/chunks/186xbnkxm5iu3.js +1 -0
  184. package/web-dist/.next/static/chunks/1c_1_ca4-vgc7.js +1 -0
  185. package/web-dist/.next/static/chunks/{3wo9m5v__3pi2.js → 1f5f3qgbcjv4u.js} +1 -1
  186. package/web-dist/.next/static/chunks/1t-dast4rat3s.css +2 -0
  187. package/web-dist/.next/static/chunks/1wsag7zex3h4_.js +1 -0
  188. package/web-dist/.next/static/chunks/24unfsl4do--1.js +1 -0
  189. package/web-dist/.next/static/chunks/2bfjq22q8xyfs.js +1 -0
  190. package/web-dist/.next/static/chunks/2kuzf7llj_291.js +1 -0
  191. package/web-dist/.next/static/chunks/2pbhzo7fu4xcs.js +11 -0
  192. package/web-dist/.next/static/chunks/30ztbacooyerd.js +1 -0
  193. package/web-dist/.next/static/chunks/34bew8owm40fg.js +1 -0
  194. package/web-dist/.next/static/chunks/3a7pgnw_6io2v.js +1 -0
  195. package/web-dist/.next/static/chunks/3k-swqzkcvlzm.js +1 -0
  196. package/web-dist/.next/static/chunks/{0xgdqczv5tvu5.js → 3saus_snl5ri7.js} +1 -1
  197. package/web-dist/.next/server/chunks/ssr/_09x5h4x._.js +0 -3
  198. package/web-dist/.next/server/chunks/ssr/_0lctmoh._.js +0 -3
  199. package/web-dist/.next/server/chunks/ssr/_0zho8fx._.js +0 -3
  200. package/web-dist/.next/server/chunks/ssr/_1812xdn._.js +0 -3
  201. package/web-dist/.next/server/chunks/ssr/_1m2qx8p._.js +0 -3
  202. package/web-dist/.next/server/chunks/ssr/_1w24b42._.js +0 -3
  203. package/web-dist/.next/server/chunks/ssr/app_sessions_page_tsx_0r1_4_3._.js +0 -3
  204. package/web-dist/.next/static/chunks/05jfk0-07tiga.js +0 -11
  205. package/web-dist/.next/static/chunks/0x8sf96sz490-.css +0 -2
  206. package/web-dist/.next/static/chunks/201p8-_l1h8w8.js +0 -1
  207. package/web-dist/.next/static/chunks/218i8jnxp91u8.js +0 -1
  208. package/web-dist/.next/static/chunks/2_uoi0tzglv_7.js +0 -1
  209. package/web-dist/.next/static/chunks/2ki5va2_5l6d6.js +0 -1
  210. package/web-dist/.next/static/chunks/2sm_cc2r9sjzp.js +0 -1
  211. package/web-dist/.next/static/chunks/2xur1zqckjlq3.js +0 -1
  212. package/web-dist/.next/static/chunks/35babynx5l240.js +0 -1
  213. package/web-dist/.next/static/chunks/3i0jpc47nxz7y.js +0 -1
  214. package/web-dist/.next/static/chunks/3soklmhd2y9yp.js +0 -1
  215. package/web-dist/.next/static/chunks/3ssnuxdh0r51g.js +0 -1
  216. package/web-dist/.next/static/chunks/3ybvfq13cp-hb.js +0 -1
  217. package/web-dist/.next/static/chunks/3yqt3l54sr5si.js +0 -1
  218. /package/web-dist/.next/static/{qtJrbMvehxNiblgQJOzhz → -qI9ABgqZPR_Ri56jzVI5}/_buildManifest.js +0 -0
  219. /package/web-dist/.next/static/{qtJrbMvehxNiblgQJOzhz → -qI9ABgqZPR_Ri56jzVI5}/_clientMiddlewareManifest.js +0 -0
  220. /package/web-dist/.next/static/{qtJrbMvehxNiblgQJOzhz → -qI9ABgqZPR_Ri56jzVI5}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- <!DOCTYPE html><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/310vm2bl3xxpt.js"/><script src="/_next/static/chunks/17tpdgx22zl4v.js" async=""></script><script src="/_next/static/chunks/2nykiepra7i1k.js" async=""></script><script src="/_next/static/chunks/0n-zjr76qg7uq.js" async=""></script><script src="/_next/static/chunks/0paxexg6-m0de.js" async=""></script><script src="/_next/static/chunks/turbopack-2put530kkhy0n.js" async=""></script><script src="/_next/static/chunks/05-c3ty_6dwfk.js" async=""></script><script src="/_next/static/chunks/0c179dg4znere.js" async=""></script><title>500: This page couldn’t load</title><style>:root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }</style><script src="/_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;display:flex;align-items:center;justify-content:center"><div style="margin-top:-32px;max-width:325px;padding:32px 28px;text-align:left"><svg width="32" height="32" viewBox="-0.2 -1.5 32 32" fill="none" style="margin-bottom:24px"><path d="M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z" fill="var(--next-error-title)"></path></svg><h1 style="font-size:24px;font-weight:500;letter-spacing:-0.02em;line-height:32px;margin:0 0 12px 0;color:var(--next-error-title)">This page couldn’t load</h1><p style="font-size:14px;font-weight:400;line-height:21px;margin:0 0 20px 0;color:var(--next-error-message)">A server error occurred. Reload to try again.</p><form style="margin:0"><button type="submit" style="display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 12px;font-size:14px;font-weight:500;line-height:20px;border-radius:6px;cursor:pointer;color:var(--next-error-btn-text);background:var(--next-error-btn-bg);border:var(--next-error-btn-border)">Reload</button></form></div></div><!--$--><!--/$--><script src="/_next/static/chunks/310vm2bl3xxpt.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[39756,[\"/_next/static/chunks/05-c3ty_6dwfk.js\",\"/_next/static/chunks/0c179dg4znere.js\"],\"default\"]\n3:I[37457,[\"/_next/static/chunks/05-c3ty_6dwfk.js\",\"/_next/static/chunks/0c179dg4znere.js\"],\"default\"]\n4:I[97367,[\"/_next/static/chunks/05-c3ty_6dwfk.js\",\"/_next/static/chunks/0c179dg4znere.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n8:I[97367,[\"/_next/static/chunks/05-c3ty_6dwfk.js\",\"/_next/static/chunks/0c179dg4znere.js\"],\"ViewportBoundary\"]\na:I[97367,[\"/_next/static/chunks/05-c3ty_6dwfk.js\",\"/_next/static/chunks/0c179dg4znere.js\"],\"MetadataBoundary\"]\nc:I[68027,[\"/_next/static/chunks/05-c3ty_6dwfk.js\",\"/_next/static/chunks/0c179dg4znere.js\"],\"default\",1]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]}],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"title\",null,{\"children\":\"500: This page couldn’t load\"}],[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"marginTop\":\"-32px\",\"maxWidth\":\"325px\",\"padding\":\"32px 28px\",\"textAlign\":\"left\"},\"children\":[[\"$\",\"svg\",null,{\"width\":\"32\",\"height\":\"32\",\"viewBox\":\"-0.2 -1.5 32 32\",\"fill\":\"none\",\"style\":{\"marginBottom\":\"24px\"},\"children\":[\"$\",\"path\",null,{\"d\":\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\",\"fill\":\"var(--next-error-title)\"}]}],[\"$\",\"h1\",null,{\"style\":{\"fontSize\":\"24px\",\"fontWeight\":500,\"letterSpacing\":\"-0.02em\",\"lineHeight\":\"32px\",\"margin\":\"0 0 12px 0\",\"color\":\"var(--next-error-title)\"},\"children\":\"This page couldn’t load\"}],[\"$\",\"p\",null,{\"style\":{\"fontSize\":\"14px\",\"fontWeight\":400,\"lineHeight\":\"21px\",\"margin\":\"0 0 20px 0\",\"color\":\"var(--next-error-message)\"},\"children\":\"A server error occurred. Reload to try again.\"}],[\"$\",\"form\",null,{\"style\":{\"margin\":0},\"children\":[\"$\",\"button\",null,{\"type\":\"submit\",\"style\":{\"display\":\"inline-flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"height\":\"32px\",\"padding\":\"0 12px\",\"fontSize\":\"14px\",\"fontWeight\":500,\"lineHeight\":\"20px\",\"borderRadius\":\"6px\",\"cursor\":\"pointer\",\"color\":\"var(--next-error-btn-text)\",\"background\":\"var(--next-error-btn-bg)\",\"border\":\"var(--next-error-btn-border)\"},\"children\":\"Reload\"}]}]]}]}]}]]}],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,null]},null,false,\"$@7\"],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],null]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",[]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"qtJrbMvehxNiblgQJOzhz\"}\n"])</script><script>self.__next_f.push([1,"d:[]\n7:\"$Wd\"\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"6:null\nb:[]\n"])</script></body></html>
1
+ <!DOCTYPE html><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/310vm2bl3xxpt.js"/><script src="/_next/static/chunks/17tpdgx22zl4v.js" async=""></script><script src="/_next/static/chunks/2nykiepra7i1k.js" async=""></script><script src="/_next/static/chunks/0n-zjr76qg7uq.js" async=""></script><script src="/_next/static/chunks/0paxexg6-m0de.js" async=""></script><script src="/_next/static/chunks/turbopack-2put530kkhy0n.js" async=""></script><script src="/_next/static/chunks/05-c3ty_6dwfk.js" async=""></script><script src="/_next/static/chunks/0c179dg4znere.js" async=""></script><title>500: This page couldn’t load</title><style>:root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }</style><script src="/_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;display:flex;align-items:center;justify-content:center"><div style="margin-top:-32px;max-width:325px;padding:32px 28px;text-align:left"><svg width="32" height="32" viewBox="-0.2 -1.5 32 32" fill="none" style="margin-bottom:24px"><path d="M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z" fill="var(--next-error-title)"></path></svg><h1 style="font-size:24px;font-weight:500;letter-spacing:-0.02em;line-height:32px;margin:0 0 12px 0;color:var(--next-error-title)">This page couldn’t load</h1><p style="font-size:14px;font-weight:400;line-height:21px;margin:0 0 20px 0;color:var(--next-error-message)">A server error occurred. Reload to try again.</p><form style="margin:0"><button type="submit" style="display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 12px;font-size:14px;font-weight:500;line-height:20px;border-radius:6px;cursor:pointer;color:var(--next-error-btn-text);background:var(--next-error-btn-bg);border:var(--next-error-btn-border)">Reload</button></form></div></div><!--$--><!--/$--><script src="/_next/static/chunks/310vm2bl3xxpt.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[39756,[\"/_next/static/chunks/05-c3ty_6dwfk.js\",\"/_next/static/chunks/0c179dg4znere.js\"],\"default\"]\n3:I[37457,[\"/_next/static/chunks/05-c3ty_6dwfk.js\",\"/_next/static/chunks/0c179dg4znere.js\"],\"default\"]\n4:I[97367,[\"/_next/static/chunks/05-c3ty_6dwfk.js\",\"/_next/static/chunks/0c179dg4znere.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n8:I[97367,[\"/_next/static/chunks/05-c3ty_6dwfk.js\",\"/_next/static/chunks/0c179dg4znere.js\"],\"ViewportBoundary\"]\na:I[97367,[\"/_next/static/chunks/05-c3ty_6dwfk.js\",\"/_next/static/chunks/0c179dg4znere.js\"],\"MetadataBoundary\"]\nc:I[68027,[\"/_next/static/chunks/05-c3ty_6dwfk.js\",\"/_next/static/chunks/0c179dg4znere.js\"],\"default\",1]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]}],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"title\",null,{\"children\":\"500: This page couldn’t load\"}],[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"marginTop\":\"-32px\",\"maxWidth\":\"325px\",\"padding\":\"32px 28px\",\"textAlign\":\"left\"},\"children\":[[\"$\",\"svg\",null,{\"width\":\"32\",\"height\":\"32\",\"viewBox\":\"-0.2 -1.5 32 32\",\"fill\":\"none\",\"style\":{\"marginBottom\":\"24px\"},\"children\":[\"$\",\"path\",null,{\"d\":\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\",\"fill\":\"var(--next-error-title)\"}]}],[\"$\",\"h1\",null,{\"style\":{\"fontSize\":\"24px\",\"fontWeight\":500,\"letterSpacing\":\"-0.02em\",\"lineHeight\":\"32px\",\"margin\":\"0 0 12px 0\",\"color\":\"var(--next-error-title)\"},\"children\":\"This page couldn’t load\"}],[\"$\",\"p\",null,{\"style\":{\"fontSize\":\"14px\",\"fontWeight\":400,\"lineHeight\":\"21px\",\"margin\":\"0 0 20px 0\",\"color\":\"var(--next-error-message)\"},\"children\":\"A server error occurred. Reload to try again.\"}],[\"$\",\"form\",null,{\"style\":{\"margin\":0},\"children\":[\"$\",\"button\",null,{\"type\":\"submit\",\"style\":{\"display\":\"inline-flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"height\":\"32px\",\"padding\":\"0 12px\",\"fontSize\":\"14px\",\"fontWeight\":500,\"lineHeight\":\"20px\",\"borderRadius\":\"6px\",\"cursor\":\"pointer\",\"color\":\"var(--next-error-btn-text)\",\"background\":\"var(--next-error-btn-bg)\",\"border\":\"var(--next-error-btn-border)\"},\"children\":\"Reload\"}]}]]}]}]}]]}],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,null]},null,false,\"$@7\"],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],null]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",[]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"-qI9ABgqZPR_Ri56jzVI5\"}\n"])</script><script>self.__next_f.push([1,"d:[]\n7:\"$Wd\"\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"6:null\nb:[]\n"])</script></body></html>
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,20885,e=>{"use strict";var t=e.i(43476),a=e.i(71645),s=e.i(74080),l=e.i(27612);e.i(69530);var n=e.i(2942);e.s(["ActionMenu",0,function({items:e,label:r,trigger:i,align:o="right"}){let[d,c]=(0,a.useState)(!1),u=(0,a.useRef)(null),x=(0,a.useRef)(null),m=(0,a.useRef)(null),h=(0,a.useRef)(null),{t:p}=(0,n.useTranslation)(),g=r??p.common.actions,[f,b]=(0,a.useState)(null),[k,v]=(0,a.useState)(!1);(0,a.useEffect)(()=>v(!0),[]);let j=()=>{let e=x.current;if(!e)return;let t=e.getBoundingClientRect();b("right"===o?{top:t.bottom,right:window.innerWidth-t.right}:{top:t.bottom,left:t.left})},y=()=>{h.current&&(clearTimeout(h.current),h.current=null)},w=()=>{y(),h.current=setTimeout(()=>c(!1),160)},N=()=>{y(),j(),c(!0)};return(0,a.useEffect)(()=>{if(!d)return;let e=e=>{u.current?.contains(e.target)||m.current?.contains(e.target)||c(!1)},t=e=>{"Escape"===e.key&&c(!1)},a=()=>j();return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),window.addEventListener("resize",a),window.addEventListener("scroll",a,!0),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t),window.removeEventListener("resize",a),window.removeEventListener("scroll",a,!0)}},[d]),(0,a.useEffect)(()=>()=>y(),[]),(0,t.jsxs)("div",{ref:u,className:"relative",onMouseEnter:N,onMouseLeave:w,children:[(0,t.jsx)("button",{ref:x,type:"button","aria-label":g,"aria-haspopup":"menu","aria-expanded":d,title:g,onClick:()=>d?c(!1):N(),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:i??(0,t.jsx)(l.Trash2,{size:15,"aria-hidden":!0})}),k&&d&&f&&(0,s.createPortal)((0,t.jsx)("div",{ref:m,role:"menu",onMouseEnter:y,onMouseLeave:w,className:"fixed z-[61] min-w-[12rem] overflow-hidden rounded-lg border border-border bg-surface py-1.5",style:{top:f.top,left:f.left,right:f.right,boxShadow:"var(--shadow-raised)"},children:e.map(e=>{let a=e.icon,s="danger"===e.tone;return(0,t.jsxs)("button",{type:"button",role:"menuitem",onClick:()=>{c(!1),e.onSelect()},className:`flex w-full items-center gap-2.5 px-3.5 py-2.5 text-left text-sm transition-colors ${s?"text-danger hover:bg-danger hover:text-white":"text-text hover:bg-elevated"}`,style:{transitionDuration:"var(--motion-fast)"},children:[a?(0,t.jsx)(a,{size:15,"aria-hidden":!0}):null,e.label]},e.label)})}),document.body)]})}])},84375,e=>{"use strict";var t=e.i(43476);e.s(["Segmented",0,function({options:e,value:a,onChange:s}){return(0,t.jsx)("div",{role:"radiogroup",className:"flex flex-wrap gap-1.5",children:e.map(e=>{let l=e.value===a,n=e.icon;return(0,t.jsxs)("button",{type:"button",role:"radio","aria-checked":l,"aria-label":e.label,onClick:()=>s(e.value),className:`inline-flex h-9 items-center gap-1.5 rounded-md border px-3 text-xs font-medium transition-colors ${l?"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:[n?(0,t.jsx)(n,{size:13,"aria-hidden":!0}):null,e.label]},e.value)})})}])},40310,e=>{"use strict";var t=e.i(71645);e.s(["usePersistentState",0,function(e,a,s){let[l,n]=(0,t.useState)(a);return(0,t.useEffect)(()=>{try{let t=localStorage.getItem(e);if(null===t)return;("function"==typeof s?s(t):s.includes(t))&&n(t)}catch{}},[e]),[l,(0,t.useCallback)(t=>{n(t);try{localStorage.setItem(e,t)}catch{}},[e])]}])},14683,e=>{"use strict";let t=(0,e.i(75254).default)("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);e.s(["Circle",0,t],14683)},9236,e=>{"use strict";var t=e.i(43476),a=e.i(51981),s=e.i(73141);e.s(["ProjectPill",0,function({projectId:e,always:l=!1}){let{data:n}=(0,a.useProjects)();if(null==e||!n||!l&&n.length<2)return null;let r=n.find(t=>t.id===e);return r?(0,t.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:r.path,children:[(0,t.jsx)(s.ProjectIcon,{project:r,size:11}),(0,t.jsx)("span",{className:"max-w-32 truncate",children:r.slug})]}):null}])},70956,e=>{"use strict";let t=(0,e.i(75254).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"}]]);e.s(["List",0,t],70956)},97344,e=>{"use strict";var t=e.i(43476),a=e.i(71645),s=e.i(98361),l=e.i(93283),n=e.i(56474);e.i(69530);var r=e.i(2942);e.s(["LiveTail",0,function({name:e,lines:i=20,heightClass:o="max-h-80",onExpand:d}){let{t:c}=(0,r.useTranslation)(),{tail:u,isLoading:x}=(0,l.useSessionPane)(e,i),m=(0,a.useRef)(null),h=(0,a.useRef)(null),[p,g]=(0,a.useState)({scale:1,h:0});(0,a.useEffect)(()=>{let e=m.current,t=h.current;if(!e||!t)return;let a=()=>{let a=t.scrollWidth,s=t.scrollHeight,l=e.clientWidth;if(!a||!l)return;let n=Math.min(1,l/a);g({scale:n,h:Math.ceil(s*n)})};a();let s=new ResizeObserver(a);return s.observe(e),()=>s.disconnect()},[u]);let f=(0,t.jsx)("div",{ref:m,className:`${o} overflow-auto`,children:(0,t.jsx)("div",{className:"overflow-hidden",style:{height:p.h||void 0},children:(0,t.jsx)("pre",{ref:h,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:x?c.sessions.loading:u?(0,n.parseAnsi)(u).map((e,a)=>(0,t.jsx)("span",{style:e.color?{color:e.color}:void 0,children:e.text},a)):c.sessions.noOutput})})});return d?(0,t.jsxs)("div",{className:"group relative",children:[(0,t.jsx)("div",{role:"button",tabIndex:0,onClick:d,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),d())},title:c.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:f}),(0,t.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,t.jsx)(s.Maximize2,{size:12,"aria-hidden":!0})," ",c.tasks.openTerminal]})]}):(0,t.jsx)("div",{className:"rounded-md border border-border bg-bg p-3",children:f})}])},88242,75822,e=>{"use strict";var t=e.i(43476),a=e.i(51981),s=e.i(75254);let l=(0,s.default)("ArrowDownToLine",[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]]),n=(0,s.default)("ArrowUpFromLine",[["path",{d:"m18 9-6-6-6 6",key:"kcunyi"}],["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 21h14",key:"11awu3"}]]),r=(0,s.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"}]]),i=(0,s.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"}]]);e.s(["Coins",0,i],75822),e.i(69530);var o=e.i(2942),d=e.i(91392);function c({usage:e}){let{t:a}=(0,o.useTranslation)();if(!e||0===e.total)return null;let s=e.cacheRead+e.cacheWrite,x=s>0,m=null!=e.costUsd&&e.costUsd>0,h=[`${a.usage.inputTokens}: ${e.input.toLocaleString()}`,x?`${a.usage.cache}: ${s.toLocaleString()}`:null,`${a.usage.outputTokens}: ${e.output.toLocaleString()}`,null!=e.costUsd&&e.costUsd>0?`${a.usage.cost}: ${(0,d.formatCost)(e.costUsd)}`:null].filter(Boolean).join(" · ");return(0,t.jsxs)("span",{className:"inline-flex items-center gap-1 font-mono text-[11px]",title:h,children:[(0,t.jsx)(u,{icon:l,label:a.usage.input,display:(0,d.formatTokens)(e.input),className:"border-info/30 text-info"}),x?(0,t.jsx)(u,{icon:r,label:a.usage.cache,display:(0,d.formatTokens)(s),className:"border-warning/30 text-warning"}):null,(0,t.jsx)(u,{icon:n,label:a.usage.output,display:(0,d.formatTokens)(e.output),className:"border-danger/30 text-danger"}),m?(0,t.jsx)(u,{icon:i,label:a.usage.cost,display:(0,d.formatCost)(e.costUsd),className:"border-approve/30 text-approve"}):null]})}function u({icon:e,label:a,display:s,className:l}){return(0,t.jsxs)("span",{className:`inline-flex items-center gap-0.5 rounded border px-1.5 py-0.5 ${l??""}`,children:[(0,t.jsx)(e,{size:10,className:"shrink-0","aria-hidden":!0}),(0,t.jsx)("span",{className:"uppercase tracking-wide",children:a}),(0,t.jsx)("span",{children:s})]})}e.s(["TaskUsageBadge",0,function({taskId:e,live:s=!1}){let{data:l}=(0,a.useTaskUsage)(e,s);return l?(0,t.jsx)(c,{usage:l}):null}],88242)},51509,e=>{"use strict";var t=e.i(43476);e.s(["ModuleHeader",0,function({title:e,count:a,icon:s,children:l}){return(0,t.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,t.jsxs)("div",{className:"flex items-center gap-2",children:[s?(0,t.jsx)(s,{size:16,className:"shrink-0 text-text-muted","aria-hidden":!0}):null,(0,t.jsx)("h1",{className:"text-base font-semibold tracking-tight text-text",children:e}),void 0!==a?(0,t.jsx)("span",{className:"rounded-full bg-elevated px-2 py-0.5 font-mono text-[11px] text-text-muted",children:a}):null]}),l?(0,t.jsx)("div",{className:"flex flex-wrap items-center gap-2 md:ml-auto",children:l}):null]})}])},44375,e=>{"use strict";var t=e.i(43476),a=e.i(76525);e.i(69530);var s=e.i(2942);e.s(["EmptyState",0,function({title:e,description:a,icon:s,action:l}){return(0,t.jsxs)("div",{className:"flex animate-fade-up flex-col items-center justify-center gap-3 py-14 text-center",children:[s?(0,t.jsx)(s,{size:28,strokeWidth:1.25,className:"text-text-muted/40","aria-hidden":!0}):null,(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("p",{className:"text-sm uppercase tracking-wide text-text",children:e}),a&&(0,t.jsx)("p",{className:"text-xs text-text-muted",children:a})]}),l]})},"ErrorState",0,function({message:e,onRetry:l}){let{t:n}=(0,s.useTranslation)();return(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 py-12 text-center",children:[(0,t.jsx)("p",{className:"text-sm text-accent",children:e}),l&&(0,t.jsx)(a.Button,{onClick:l,children:n.common.retry})]})},"LoadingState",0,function({label:e,variant:a="list"}){let{t:l}=(0,s.useTranslation)();return e?(0,t.jsx)("div",{className:"flex items-center justify-center py-12 font-mono text-xs text-text-muted animate-pulse",children:e}):"cards"===a?(0,t.jsx)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3","aria-busy":"true","aria-label":l.common.loading,children:[0,1,2,3,4,5].map(e=>(0,t.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,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsx)("div",{className:"skeleton h-9 w-9 rounded-lg"}),(0,t.jsxs)("div",{className:"flex flex-1 flex-col gap-1.5",children:[(0,t.jsx)("div",{className:"skeleton h-3.5 w-2/3 rounded"}),(0,t.jsx)("div",{className:"skeleton h-3 w-1/3 rounded"})]})]}),(0,t.jsx)("div",{className:"skeleton h-6 w-full rounded-md"})]},e))}):"kanban"===a?(0,t.jsx)("div",{className:"flex gap-3 overflow-hidden","aria-busy":"true","aria-label":l.common.loading,children:[0,1,2,3,4].map(e=>(0,t.jsxs)("div",{className:"flex min-w-[14rem] flex-1 flex-col gap-2 rounded-lg border border-border bg-surface p-2",children:[(0,t.jsx)("div",{className:"skeleton h-3 w-20 rounded"}),[0,1,2].map(e=>(0,t.jsx)("div",{className:"skeleton h-12 w-full rounded-md"},e))]},e))}):(0,t.jsx)("div",{className:"flex flex-col gap-2.5 py-2","aria-busy":"true","aria-label":l.common.loading,children:[88,72,80,64].map((e,a)=>(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("div",{className:"skeleton h-4 w-4 rounded-md"}),(0,t.jsx)("div",{className:"skeleton h-3.5 rounded",style:{width:`${e}%`}})]},a))})}])},26178,e=>{"use strict";var t=e.i(43476);e.s(["ModuleShell",0,function({moduleId:e,children:a}){return(0,t.jsx)("section",{"data-module":e,className:"module-root flex flex-col gap-4",children:a})}])},89890,e=>{"use strict";var t=e.i(43476);let a={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"};e.s(["Badge",0,function({children:e,tone:s="default"}){return(0,t.jsx)("span",{className:`inline-flex items-center rounded-md border px-2 py-0.5 font-mono text-[11px] font-medium ${a[s]}`,children:e})}])},46040,e=>{"use strict";var t=e.i(43476),a=e.i(71645),s=e.i(74080);e.i(69530);var l=e.i(2942);let n={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"};e.s(["Modal",0,function({title:e,onClose:r,children:i,size:o="lg",icon:d,description:c}){let{t:u}=(0,l.useTranslation)(),[x,m]=(0,a.useState)(!1);return((0,a.useEffect)(()=>m(!0),[]),(0,a.useEffect)(()=>{let e=e=>{"Escape"===e.key&&r()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[r]),x)?(0,s.createPortal)((0,t.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/70 p-4",onClick:r,children:(0,t.jsxs)("div",{className:`animate-pop-in flex flex-col rounded-lg bg-surface border border-border ${n[o]}`,style:{boxShadow:"var(--shadow-raised)"},onClick:e=>e.stopPropagation(),children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 border-b border-border px-5 py-3",children:[d?(0,t.jsx)("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg border border-border bg-elevated",children:(0,t.jsx)(d,{size:18,className:"text-accent","aria-hidden":!0})}):null,(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("h2",{className:"truncate text-sm font-semibold text-text",children:e}),c?(0,t.jsx)("p",{className:"truncate text-xs text-text-muted",children:c}):null]}),(0,t.jsx)("button",{type:"button","aria-label":u.common.close,onClick:r,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,t.jsx)("div",{className:"flex min-h-0 flex-1 flex-col overflow-hidden",children:i})]})}),document.body):null},"ModalBody",0,function({children:e,gap:a=5}){return(0,t.jsx)("div",{className:`flex min-h-0 flex-1 flex-col overflow-y-auto p-5 ${4===a?"gap-4":6===a?"gap-6":"gap-5"}`,children:e})},"ModalFooter",0,function({children:e}){return(0,t.jsx)("div",{className:"flex shrink-0 items-center justify-end gap-2 border-t border-border px-5 py-3",children:e})}])},27612,e=>{"use strict";let t=(0,e.i(75254).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"}]]);e.s(["Trash2",0,t],27612)},78894,e=>{"use strict";var t=e.i(82458);e.s(["AlertTriangle",()=>t.default])},88699,e=>{"use strict";let t=(0,e.i(75254).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"}]]);e.s(["Pencil",0,t],88699)},73141,e=>{"use strict";var t=e.i(43476),a=e.i(66027),s=e.i(90272),l=e.i(40273);e.s(["ProjectIcon",0,function({project:e,size:n=16,className:r=""}){let i=e.icon??"",{data:o}=(0,a.useQuery)({queryKey:["project-icon",e.id,i],enabled:!!i,staleTime:1/0,queryFn:async()=>{let t=await l.orcaClient.projectRawBlob(e.id,i);return await new Promise((e,a)=>{let s=new FileReader;s.onload=()=>e(s.result),s.onerror=()=>a(s.error),s.readAsDataURL(t)})}});return i&&o?(0,t.jsx)("img",{src:o,alt:"","aria-hidden":!0,className:`shrink-0 rounded-sm object-cover ${r}`,style:{width:n,height:n}}):(0,t.jsx)(s.FolderGit2,{size:n,className:`shrink-0 ${r}`,"aria-hidden":!0})}])},98361,e=>{"use strict";let t=(0,e.i(75254).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"}]]);e.s(["Maximize2",0,t],98361)},63059,e=>{"use strict";let t=(0,e.i(75254).default)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["ChevronRight",0,t],63059)},94321,e=>{"use strict";var t=e.i(43476);e.s(["Field",0,function({label:e,htmlFor:a,children:s,hint:l}){return(0,t.jsxs)("label",{htmlFor:a,className:"flex flex-col gap-1.5",children:[(0,t.jsx)("span",{className:"text-xs font-medium uppercase tracking-wide text-text-muted",children:e}),s,l?(0,t.jsx)("span",{className:"text-xs text-text-muted",children:l}):null]})}])},16302,e=>{"use strict";let t=[{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"}];e.s(["EXEC_PRESETS",0,t,"allModels",0,function(e=[],a=[]){let s=new Set(e.map(e=>e.exec)),l=new Set(a);return[...t.filter(e=>!s.has(e.exec)&&!l.has(e.exec)),...e]}])},71120,e=>{"use strict";var t=e.i(43476);e.s(["Select",0,function({className:e="",children:a,...s}){let l=e.trim();return(0,t.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${l?` ${l}`:""}`,...s,children:a})}])},58524,e=>{"use strict";let t=(0,e.i(75254).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"}]]);e.s(["Link2",0,t],58524)},29618,e=>{"use strict";var t=e.i(43476),a=e.i(78894),s=e.i(46040),l=e.i(76525);e.i(69530);var n=e.i(2942);e.s(["ConfirmDialog",0,function({open:e,title:r,description:i,confirmLabel:o,onConfirm:d,onClose:c}){let{t:u}=(0,n.useTranslation)();return e?(0,t.jsxs)(s.Modal,{title:r,onClose:c,size:"sm",icon:a.AlertTriangle,children:[(0,t.jsx)(s.ModalBody,{children:i?(0,t.jsx)("p",{className:"text-sm leading-relaxed text-text-muted",children:i}):null}),(0,t.jsxs)(s.ModalFooter,{children:[(0,t.jsx)(l.Button,{variant:"ghost",onClick:c,children:u.common.cancel}),(0,t.jsx)(l.Button,{variant:"danger",onClick:d,children:o??u.common.delete})]})]}):null}])},56156,e=>{"use strict";var t=e.i(43476);e.s(["Toggle",0,function({checked:e,onChange:a,label:s,disabled:l=!1}){return(0,t.jsx)("button",{type:"button",role:"switch","aria-checked":e,"aria-label":s,disabled:l,onClick:()=>!l&&a(!e),className:`inline-flex h-5 w-9 items-center border border-border px-0.5 transition-colors ${e?"bg-accent":"bg-elevated"} ${l?"opacity-40":"cursor-pointer"}`,style:{transitionDuration:"var(--motion-fast)"},children:(0,t.jsx)("span",{className:`block h-3.5 w-3.5 transition-transform ${e?"translate-x-4 bg-bg":"translate-x-0 bg-text-muted"}`,style:{transitionDuration:"var(--motion-base)",transitionTimingFunction:"var(--ease-spring)"}})})}])},43531,e=>{"use strict";let t=(0,e.i(75254).default)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["Check",0,t],43531)},73375,89853,e=>{"use strict";var t=e.i(75254);let a=(0,t.default)("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);e.s(["ChevronLeft",0,a],73375);let s=(0,t.default)("CalendarDays",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]);e.s(["CalendarDays",0,s],89853)},42113,e=>{"use strict";let t=e=>String(e).padStart(2,"0");function a(e){return`${e.getFullYear()}-${t(e.getMonth()+1)}-${t(e.getDate())}`}function s(e){return e.scheduled_at||e.closed_at||null}function l(e){let t=new Date(e.getFullYear(),e.getMonth(),e.getDate()),a=(t.getDay()+6)%7;return t.setDate(t.getDate()-a),t}e.s(["countUnscheduled",0,function(e){return e.filter(e=>!s(e)).length},"dayKey",0,a,"monthMatrix",0,function(e){let t=l(new Date(e.getFullYear(),e.getMonth(),1)),a=[],s=new Date(t);for(let t=0;t<6;t++){let t=[];for(let e=0;e<7;e++)t.push(new Date(s)),s.setDate(s.getDate()+1);if(a.push(t),t[6].getMonth()!==e.getMonth()&&t[0].getMonth()!==e.getMonth())break}return a},"sameDay",0,function(e,t){return a(e)===a(t)},"shift",0,function(e,t,a){let s=new Date(e);return"day"===t?s.setDate(s.getDate()+a):"week"===t?s.setDate(s.getDate()+7*a):s.setMonth(s.getMonth()+a),s},"taskCalDate",0,s,"tasksByDay",0,function(e){let t=new Map;for(let l of e){let e=s(l);if(!e)continue;let n=new Date(e);if(Number.isNaN(n.getTime()))continue;let r=a(n);(t.get(r)??t.set(r,[]).get(r)).push(l)}for(let e of t.values())e.sort((e,t)=>(s(e)??"").localeCompare(s(t)??""));return t},"weekDays",0,function(e){let t=l(e);return Array.from({length:7},(e,a)=>new Date(t.getFullYear(),t.getMonth(),t.getDate()+a))}])},31278,e=>{"use strict";var t=e.i(17521);e.s(["Loader2",()=>t.default])},55626,e=>{"use strict";var t=e.i(43476),a=e.i(43531);e.s(["Checkbox",0,function({checked:e,className:s=""}){return(0,t.jsx)("span",{className:`flex h-4 w-4 shrink-0 items-center justify-center rounded-[5px] border transition-colors ${e?"border-accent bg-accent text-white":"border-border-strong bg-surface"} ${s}`,"aria-hidden":!0,children:(0,t.jsx)(a.Check,{size:11,strokeWidth:3,className:`transition-transform duration-150 ${e?"scale-100 opacity-100":"scale-50 opacity-0"}`,style:{transitionTimingFunction:"var(--ease-spring)"}})})}])},38112,e=>{"use strict";var t=e.i(43476),a=e.i(71645),s=e.i(31343),l=e.i(83086),n=e.i(63804),r=e.i(7233),i=e.i(37727),o=e.i(78894),d=e.i(88699),c=e.i(31278),u=e.i(90272),x=e.i(51981),m=e.i(4552),h=e.i(16302),p=e.i(24877),g=e.i(40273),f=e.i(46040),b=e.i(76525),k=e.i(1206),v=e.i(71120),j=e.i(55626),y=e.i(56156),w=e.i(94321),N=e.i(84375),S=e.i(56284),M=e.i(89890),C=e.i(80809),T=e.i(97344);e.i(69530);var P=e.i(2942),D=e.i(34723);function L(e){if(!e)return"";let t=new Date(e);if(Number.isNaN(t.getTime()))return"";let a=e=>String(e).padStart(2,"0");return`${t.getFullYear()}-${a(t.getMonth()+1)}-${a(t.getDate())}T${a(t.getHours())}:${a(t.getMinutes())}`}let E=e=>e?new Date(e).toISOString():null;e.s(["TaskModal",0,function({task:e,onClose:z,initialSchedule:F}){let $=!!e,{data:A}=(0,x.useConfig)(),I=(0,h.allModels)(A?.customModels,A?.hiddenPresets).filter(e=>!A?.allowedExecs||A.allowedExecs.includes(e.exec)),{toast:B}=(0,C.useToast)(),{t:R}=(0,P.useTranslation)(),_=(0,m.useCreateTask)(),H=(0,m.useUpdateTask)(),U=(0,m.useSetTaskExec)(),O=(0,m.useSpawn)(),K=(0,m.usePlanTask)(),[W,q]=(0,a.useState)("single"),{data:G}=(0,x.useProjects)(),[V,Y]=(0,a.useState)(void 0),Q=V??G?.[0]?.id,[X,J]=(0,a.useState)(e?.title??""),[Z,ee]=(0,a.useState)(e?.description??""),[et,ea]=(0,a.useState)(e?.type??"task"),[es,el]=(0,a.useState)(e?.priority??"P2"),[en,er]=(0,a.useState)(e?(0,p.taskExec)(e.labels):""),[ei,eo]=(0,a.useState)(L(e?.scheduled_at)||L(F)),[ed,ec]=(0,a.useState)(!!e?.autostart),[eu,ex]=(0,a.useState)([]),[em,eh]=(0,a.useState)(!1),ep=(0,x.useTasks)(),eg=(ep.data??[]).filter(t=>t.id!==e?.id&&"epic"!==t.type&&"closed"!==t.status&&"cancelled"!==t.status);(0,a.useEffect)(()=>{if(!e)return;let t=!0;return g.orcaClient.taskDeps(e.id).then(e=>{t&&ex(e)}).catch(()=>{}),()=>{t=!1}},[e]);let ef=(()=>{let t=E(ei);if(!t)return;let a=new Date(t).getTime();return(ep.data??[]).find(t=>t.id!==e?.id&&t.scheduled_at&&6e5>Math.abs(new Date(t.scheduled_at).getTime()-a))})(),[eb,ek]=(0,a.useState)(""),[ev,ej]=(0,a.useState)(null),[ey,ew]=(0,a.useState)(null),eN=ev??A?.defaults?.autonomy??"L3",eS=ey??A?.defaults?.maxSessions??1,[eM,eC]=(0,a.useState)(!1),[eT,eP]=(0,a.useState)(!1),[eD,eL]=(0,a.useState)(null),[eE,ez]=(0,a.useState)(null),[eF,e$]=(0,a.useState)(null),eA=(0,x.usePlanJob)(eE),[eI,eB]=(0,a.useState)(!1),[eR,e_]=(0,a.useState)([{title:"",type:"task"}]),eH=K.isPending||null!==eE,eU=_.isPending||H.isPending||O.isPending||U.isPending||eH;async function eO(){if(X.trim())try{if($)await H.mutateAsync({id:e.id,patch:{title:X.trim(),type:et,priority:es,description:Z.trim(),scheduled_at:E(ei),autostart:+!!ed,deps:eu}}),en!==(0,p.taskExec)(e.labels)&&await U.mutateAsync({id:e.id,exec:en}),B(R.tasks.updated.replace("{id}",e.id));else{let e=await _.mutateAsync({title:X.trim(),type:et,priority:es,description:Z.trim(),scheduled_at:E(ei),autostart:+!!ed,deps:eu,project_id:Q});en&&await U.mutateAsync({id:e.id,exec:en}),em&&await O.mutateAsync({taskId:e.id,exec:en||void 0}),B(em?R.tasks.createdAndLaunched.replace("{title}",e.title):R.tasks.created.replace("{title}",e.title))}z()}catch(e){B(String(e),"error")}}async function eK(){if(eb.trim()){e$(null);try{let e=await K.mutateAsync({goal:eb.trim(),exec:eT?void 0:en||void 0,autoModel:eT,autonomy:eN,maxSessions:eS,engage:eM,project_id:Q});"jobId"in e?ez(e.jobId):eq(e)}catch(e){e instanceof g.OrcaApiError&&"autopilot_key_missing"===e.code?(eB(!0),B(R.tasks.autopilotKeyMissing,"error")):B(String(e),"error")}}}async function eW(){let e=eR.map(e=>({title:e.title.trim(),type:e.type})).filter(e=>e.title);if(0===e.length)return void B(R.tasks.addAtLeastOnePhase,"error");try{let t=await K.mutateAsync({goal:eb.trim(),phases:e,exec:en||void 0,autonomy:eN,maxSessions:eS,engage:eM,project_id:Q});"jobId"in t?ez(t.jobId):eq(t)}catch(e){B(String(e),"error")}}function eq(e){eL({epicId:e.epic.id,phases:e.phases.map(e=>({title:e.title,type:e.type??"task",agent:e.labels?.find(e=>e.startsWith("agent:"))?.slice("agent:".length)})),engaged:!!e.mission}),B(R.tasks.planCreated.replace("{count}",String(e.phases.length)).replace("{m}",e.mission?R.tasks.autopilotStarted:"."))}(0,a.useEffect)(()=>{let e=eA.data;e&&eE&&("done"===e.status?(eL({epicId:e.epicId??"",phases:e.phases,engaged:eM}),B(R.tasks.planCreated.replace("{count}",String(e.phases.length)).replace("{m}",eM?R.tasks.autopilotStarted:".")),ez(null)):"failed"===e.status&&(e$(e.error??R.tasks.planFailed),B(R.tasks.planFailed,"error"),ez(null)))},[eA.data,eE]);let eG=(0,t.jsx)(w.Field,{label:R.tasks.fieldExecutor,children:(0,t.jsxs)(v.Select,{value:en,onChange:e=>er(e.target.value),children:[(0,t.jsx)("option",{value:"",children:R.tasks.defaultExecutor}),I.map(e=>(0,t.jsx)("option",{value:e.exec,children:e.label},e.exec))]})}),eV=$?R.tasks.editTitle.replace("{id}",e.id):R.tasks.newTitle,eY=$?d.Pencil:"planning"===W?l.Sparkles:n.ListChecks;return(0,t.jsx)(f.Modal,{title:eV,description:$?e.id:void 0,onClose:z,size:"xl",icon:eY,children:(0,t.jsxs)(f.ModalBody,{children:[!$&&(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)(N.Segmented,{value:W,onChange:e=>q(e),options:[{value:"single",label:R.tasks.singleTask,icon:n.ListChecks},{value:"planning",label:R.tasks.autopilotPlanning,icon:l.Sparkles}]}),(0,t.jsx)("p",{className:"text-xs text-text-muted",children:"single"===W?R.tasks.singleTaskDesc:R.tasks.autopilotPlanningDesc})]}),!$&&G&&G.length>1&&(0,t.jsx)(w.Field,{label:R.tasks.fieldProject,hint:R.tasks.fieldProjectHint,children:(0,t.jsx)("div",{className:"flex flex-wrap gap-1.5",children:G.map(e=>{let a=Q===e.id;return(0,t.jsxs)("button",{type:"button",onClick:()=>Y(e.id),title:e.path,className:`inline-flex items-center gap-1.5 rounded-md border px-2.5 py-1.5 text-xs font-medium transition-colors ${a?"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:[(0,t.jsx)(u.FolderGit2,{size:13,className:"shrink-0","aria-hidden":!0}),e.slug]},e.id)})})}),($||"single"===W)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(w.Field,{label:R.tasks.fieldTitle,children:(0,t.jsx)(k.Input,{value:X,onChange:e=>J(e.target.value),placeholder:R.tasks.titlePlaceholder,autoFocus:!0})}),(0,t.jsx)(w.Field,{label:R.tasks.fieldDetails,hint:R.tasks.detailsHint,children:(0,t.jsx)("textarea",{value:Z,onChange:e=>ee(e.target.value),placeholder:R.tasks.detailsPlaceholder,rows:4,className:"w-full rounded-md border border-border bg-surface px-3 py-2 text-sm text-text placeholder:text-text-muted focus:border-accent focus:outline-none"})}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,t.jsx)(w.Field,{label:R.tasks.fieldType,children:(0,t.jsx)(v.Select,{value:et,onChange:e=>ea(e.target.value),children:D.TASK_TYPES.map(e=>(0,t.jsx)("option",{value:e,children:(0,D.taskTypeLabel)(R,e)},e))})}),(0,t.jsx)(w.Field,{label:R.tasks.fieldPriority,children:(0,t.jsx)(v.Select,{value:es,onChange:e=>el(e.target.value),children:D.PRIORITIES.map(e=>(0,t.jsx)("option",{value:e,children:e},e))})})]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[eG,(0,t.jsx)(w.Field,{label:R.tasks.fieldSchedule,hint:R.tasks.scheduleHint,children:(0,t.jsx)(k.Input,{type:"datetime-local",value:ei,onChange:e=>eo(e.target.value)})})]}),ef&&(0,t.jsxs)("p",{className:"-mt-2 flex items-center gap-1.5 text-xs text-warning",children:[(0,t.jsx)(o.AlertTriangle,{size:13,"aria-hidden":!0}),R.tasks.scheduleConflict.replace("{title}",ef.title)]}),ei&&(0,t.jsxs)("button",{type:"button",onClick:()=>ec(e=>!e),className:"-mt-1 flex w-fit items-start gap-2 text-left text-sm text-text",children:[(0,t.jsx)(j.Checkbox,{checked:ed,className:"mt-0.5"}),(0,t.jsxs)("span",{children:[R.tasks.autostart,(0,t.jsx)("span",{className:"mt-0.5 block text-xs text-text-muted",children:R.tasks.autostartHint})]})]}),eg.length>0&&(0,t.jsx)(w.Field,{label:R.tasks.fieldDependsOn,hint:R.tasks.dependsOnHint,children:(0,t.jsx)("div",{className:"max-h-32 overflow-y-auto rounded-md border border-border bg-surface p-1",children:eg.map(e=>(0,t.jsxs)("button",{type:"button",onClick:()=>{let t;return t=e.id,ex(e=>e.includes(t)?e.filter(e=>e!==t):[...e,t])},className:"flex w-full cursor-pointer items-center gap-2 rounded px-2 py-1 text-left text-sm hover:bg-elevated",children:[(0,t.jsx)(j.Checkbox,{checked:eu.includes(e.id)}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate text-text",children:e.title}),(0,t.jsx)("span",{className:"shrink-0 font-mono text-[11px] text-text-muted",children:e.id})]},e.id))})}),!$&&(0,t.jsxs)("button",{type:"button",onClick:()=>eh(e=>!e),className:"flex w-fit items-center gap-2 text-sm text-text",children:[(0,t.jsx)(j.Checkbox,{checked:em}),R.tasks.launchImmediately]}),(0,t.jsxs)("div",{className:"flex items-center justify-end gap-2 pt-1",children:[(0,t.jsx)(b.Button,{variant:"ghost",onClick:z,children:R.common.cancel}),(0,t.jsx)(b.Button,{variant:"accent",icon:$?void 0:em?s.Play:void 0,disabled:eU||!X.trim(),onClick:eO,children:$?R.common.save:em?R.tasks.createAndLaunch:R.tasks.create})]})]}),!$&&"planning"===W&&!eD&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(w.Field,{label:R.tasks.fieldGoal,hint:R.tasks.goalHint,children:(0,t.jsx)("textarea",{value:eb,onChange:e=>ek(e.target.value),placeholder:R.tasks.goalPlaceholder,rows:4,className:"w-full rounded-md border border-border bg-surface px-3 py-2 text-sm text-text placeholder:text-text-muted focus:border-accent focus:outline-none"})}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,t.jsx)(w.Field,{label:R.tasks.fieldAutonomy,children:(0,t.jsx)(v.Select,{value:eN,onChange:e=>ej(e.target.value),children:["L0","L1","L2","L3"].map(e=>(0,t.jsx)("option",{value:e,children:e},e))})}),(0,t.jsx)(w.Field,{label:R.tasks.fieldMaxSessions,children:(0,t.jsx)(k.Input,{type:"number",min:1,value:eS,onChange:e=>ew(Number(e.target.value))})})]}),(0,t.jsx)(w.Field,{label:R.tasks.autoModelLabel,hint:R.tasks.autoModelHint,children:(0,t.jsx)(y.Toggle,{checked:eT,onChange:eP,label:R.tasks.autoModelLabel})}),!eT&&eG,(0,t.jsxs)("button",{type:"button",onClick:()=>eC(e=>!e),className:"flex w-fit items-center gap-2 text-sm text-text",children:[(0,t.jsx)(j.Checkbox,{checked:eM}),R.tasks.startAutopilot]}),eI&&(0,t.jsxs)("div",{className:"flex flex-col gap-2 rounded-md border border-border bg-elevated/40 p-3",children:[(0,t.jsx)("span",{className:"text-xs font-medium uppercase tracking-wide text-text-muted",children:R.tasks.manualPhases}),eR.map((e,a)=>(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(k.Input,{value:e.title,placeholder:R.tasks.phasePlaceholder.replace("{n}",String(a+1)),onChange:e=>e_(t=>t.map((t,s)=>s===a?{...t,title:e.target.value}:t))}),(0,t.jsx)(v.Select,{value:e.type,onChange:e=>e_(t=>t.map((t,s)=>s===a?{...t,type:e.target.value}:t)),className:"w-32",children:D.TASK_TYPES.filter(e=>"epic"!==e).map(e=>(0,t.jsx)("option",{value:e,children:(0,D.taskTypeLabel)(R,e)},e))}),(0,t.jsx)(S.IconButton,{icon:i.X,label:R.tasks.removePhase,onClick:()=>e_(e=>e.length>1?e.filter((e,t)=>t!==a):e)})]},a)),(0,t.jsxs)("button",{type:"button",onClick:()=>e_(e=>[...e,{title:"",type:"task"}]),className:"inline-flex items-center gap-1 self-start text-xs text-accent hover:underline",children:[(0,t.jsx)(r.Plus,{size:13,"aria-hidden":!0})," ",R.tasks.addPhase]})]}),eH&&(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 rounded-md border border-border bg-elevated/40 px-3 py-2.5 text-sm text-text-muted",children:[(0,t.jsx)(c.Loader2,{size:15,className:"shrink-0 animate-spin text-accent","aria-hidden":!0}),R.tasks.planning]}),eA.data?.sessionName&&(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)("span",{className:"text-xs font-medium uppercase tracking-wide text-text-muted",children:R.tasks.plannerPreview}),(0,t.jsx)(T.LiveTail,{name:eA.data.sessionName,lines:16,heightClass:"max-h-56"})]})]}),eF&&!eH&&(0,t.jsxs)("div",{className:"flex items-start gap-2 rounded-md border border-warning/40 bg-warning/10 px-3 py-2.5 text-sm text-warning",children:[(0,t.jsx)(o.AlertTriangle,{size:15,className:"mt-0.5 shrink-0","aria-hidden":!0}),(0,t.jsxs)("span",{className:"min-w-0 break-words",children:[R.tasks.planFailed,": ",eF]})]}),(0,t.jsxs)("div",{className:"flex items-center justify-end gap-2 pt-1",children:[(0,t.jsx)(b.Button,{variant:"ghost",onClick:z,children:R.common.cancel}),eI?(0,t.jsx)(b.Button,{variant:"accent",disabled:eU,onClick:eW,children:R.tasks.createPlan}):(0,t.jsx)(b.Button,{variant:"accent",icon:l.Sparkles,disabled:eU||!eb.trim(),onClick:eK,children:eH?R.tasks.planning:R.tasks.generatePlan})]})]}),eD&&(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)("p",{className:"text-sm text-text-muted",children:R.tasks.createdEpic.replace("{id}",eD.epicId).replace("{count}",String(eD.phases.length)).replace("{m}",eD.engaged?R.tasks.autopilotEngaged:".")}),(0,t.jsx)("ul",{className:"flex flex-col divide-y divide-border rounded-md border border-border",children:eD.phases.map((e,a)=>{let s=(0,D.taskTypeMeta)(e.type).icon;return(0,t.jsxs)("li",{className:"flex items-center gap-3 px-3 py-2 text-sm",children:[(0,t.jsx)("span",{className:"w-4 shrink-0 font-mono text-xs text-text-muted",children:a+1}),(0,t.jsx)(s,{size:15,className:"shrink-0 text-text-muted","aria-hidden":!0}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate text-text",children:e.title}),e.agent?(0,t.jsx)(M.Badge,{tone:"accent",children:e.agent}):null]},a)})}),(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsx)(b.Button,{variant:"accent",onClick:z,children:R.tasks.done})})]})]})})}])},22915,e=>{"use strict";let t=(0,e.i(75254).default)("Archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);e.s(["Archive",0,t],22915)},53992,e=>{"use strict";var t=e.i(43476),a=e.i(90272),s=e.i(51981);e.i(69530);var l=e.i(2942),n=e.i(73141);e.s(["ProjectFilterPills",0,function({value:e,onChange:r}){let{data:i}=(0,s.useProjects)(),{t:o}=(0,l.useTranslation)();if(!i||i.length<2)return null;let d=e=>`inline-flex items-center gap-1.5 rounded-md border px-2.5 py-1.5 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"}`;return(0,t.jsxs)("div",{role:"group","aria-label":o.tasks.filterProjectsAria,className:"flex flex-wrap items-center gap-1.5",children:[(0,t.jsxs)("button",{type:"button","aria-pressed":"all"===e,onClick:()=>r("all"),className:d("all"===e),style:{transitionDuration:"var(--motion-fast)"},children:[(0,t.jsx)(a.FolderGit2,{size:13,className:"shrink-0","aria-hidden":!0}),o.tasks.filterAllProjects]}),i.map(a=>(0,t.jsxs)("button",{type:"button","aria-pressed":e===a.id,onClick:()=>r(a.id),title:a.path,className:d(e===a.id),style:{transitionDuration:"var(--motion-fast)"},children:[(0,t.jsx)(n.ProjectIcon,{project:a,size:13}),a.slug]},a.id))]})}])},11476,e=>{"use strict";var t=e.i(40310),a=e.i(51981);let s=e=>"all"===e||/^\d+$/.test(e);e.s(["useProjectFilter",0,function(e){let l=(0,a.useProjects)(),[n,r]=(0,t.usePersistentState)(e,"all",s),i="all"===n?"all":Number(n);return{selectedProject:"all"===i||l.data&&!l.data.some(e=>e.id===i)?"all":i,setProject:e=>r("all"===e?"all":String(e))}}])}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,7835,e=>{"use strict";let s=(0,e.i(75254).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"}]]);e.s(["Radio",0,s],7835)},72520,e=>{"use strict";let s=(0,e.i(75254).default)("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);e.s(["ArrowRight",0,s],72520)},64668,23622,2817,e=>{"use strict";var s=e.i(17521);e.s(["LoaderCircle",()=>s.default],64668);let t=(0,e.i(75254).default)("Ban",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]]);e.s(["Ban",0,t],23622);var a=e.i(56474);let i=[{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"}];e.s(["sessionActivity",0,function(e){if(!e||!e.trim())return"unknown";let s=e.split("\n").map(e=>(0,a.parseAnsi)(e).map(e=>e.text).join("")).join("\n").toLowerCase();for(let e of i)if(e.re.test(s))return e.cat;return"unknown"}],2817)},51509,e=>{"use strict";var s=e.i(43476);e.s(["ModuleHeader",0,function({title:e,count:t,icon:a,children:i}){return(0,s.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,s.jsxs)("div",{className:"flex items-center gap-2",children:[a?(0,s.jsx)(a,{size:16,className:"shrink-0 text-text-muted","aria-hidden":!0}):null,(0,s.jsx)("h1",{className:"text-base font-semibold tracking-tight text-text",children:e}),void 0!==t?(0,s.jsx)("span",{className:"rounded-full bg-elevated px-2 py-0.5 font-mono text-[11px] text-text-muted",children:t}):null]}),i?(0,s.jsx)("div",{className:"flex flex-wrap items-center gap-2 md:ml-auto",children:i}):null]})}])},26178,e=>{"use strict";var s=e.i(43476);e.s(["ModuleShell",0,function({moduleId:e,children:t}){return(0,s.jsx)("section",{"data-module":e,className:"module-root flex flex-col gap-4",children:t})}])},44375,e=>{"use strict";var s=e.i(43476),t=e.i(76525);e.i(69530);var a=e.i(2942);e.s(["EmptyState",0,function({title:e,description:t,icon:a,action:i}){return(0,s.jsxs)("div",{className:"flex animate-fade-up flex-col items-center justify-center gap-3 py-14 text-center",children:[a?(0,s.jsx)(a,{size:28,strokeWidth:1.25,className:"text-text-muted/40","aria-hidden":!0}):null,(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)("p",{className:"text-sm uppercase tracking-wide text-text",children:e}),t&&(0,s.jsx)("p",{className:"text-xs text-text-muted",children:t})]}),i]})},"ErrorState",0,function({message:e,onRetry:i}){let{t:n}=(0,a.useTranslation)();return(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 py-12 text-center",children:[(0,s.jsx)("p",{className:"text-sm text-accent",children:e}),i&&(0,s.jsx)(t.Button,{onClick:i,children:n.common.retry})]})},"LoadingState",0,function({label:e,variant:t="list"}){let{t:i}=(0,a.useTranslation)();return e?(0,s.jsx)("div",{className:"flex items-center justify-center py-12 font-mono text-xs text-text-muted animate-pulse",children:e}):"cards"===t?(0,s.jsx)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3","aria-busy":"true","aria-label":i.common.loading,children:[0,1,2,3,4,5].map(e=>(0,s.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,s.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,s.jsx)("div",{className:"skeleton h-9 w-9 rounded-lg"}),(0,s.jsxs)("div",{className:"flex flex-1 flex-col gap-1.5",children:[(0,s.jsx)("div",{className:"skeleton h-3.5 w-2/3 rounded"}),(0,s.jsx)("div",{className:"skeleton h-3 w-1/3 rounded"})]})]}),(0,s.jsx)("div",{className:"skeleton h-6 w-full rounded-md"})]},e))}):"kanban"===t?(0,s.jsx)("div",{className:"flex gap-3 overflow-hidden","aria-busy":"true","aria-label":i.common.loading,children:[0,1,2,3,4].map(e=>(0,s.jsxs)("div",{className:"flex min-w-[14rem] flex-1 flex-col gap-2 rounded-lg border border-border bg-surface p-2",children:[(0,s.jsx)("div",{className:"skeleton h-3 w-20 rounded"}),[0,1,2].map(e=>(0,s.jsx)("div",{className:"skeleton h-12 w-full rounded-md"},e))]},e))}):(0,s.jsx)("div",{className:"flex flex-col gap-2.5 py-2","aria-busy":"true","aria-label":i.common.loading,children:[88,72,80,64].map((e,t)=>(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"skeleton h-4 w-4 rounded-md"}),(0,s.jsx)("div",{className:"skeleton h-3.5 rounded",style:{width:`${e}%`}})]},t))})}])},89890,e=>{"use strict";var s=e.i(43476);let t={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"};e.s(["Badge",0,function({children:e,tone:a="default"}){return(0,s.jsx)("span",{className:`inline-flex items-center rounded-md border px-2 py-0.5 font-mono text-[11px] font-medium ${t[a]}`,children:e})}])},14683,e=>{"use strict";let s=(0,e.i(75254).default)("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);e.s(["Circle",0,s],14683)},52008,e=>{"use strict";let s=(0,e.i(75254).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"}]]);e.s(["Layers",0,s],52008)},83086,e=>{"use strict";let s=(0,e.i(75254).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"}]]);e.s(["Sparkles",0,s],83086)},81646,e=>{"use strict";var s=e.i(43476),t=e.i(95468),a=e.i(73884),i=e.i(89890);e.i(69530);var n=e.i(2942);e.s(["OutcomeBadge",0,function({outcome:e}){let{t:r}=(0,n.useTranslation)();if(!e)return null;let l="fail"===e;return(0,s.jsxs)(i.Badge,{tone:l?"danger":"success",children:[l?(0,s.jsx)(a.XCircle,{size:11,className:"mr-1 inline","aria-hidden":!0}):(0,s.jsx)(t.CheckCircle2,{size:11,className:"mr-1 inline","aria-hidden":!0}),l?r.tasks.outcomeFail:r.tasks.outcomeOk]})}])},56284,e=>{"use strict";var s=e.i(43476);e.s(["IconButton",0,function({icon:e,label:t,onClick:a,variant:i="default",disabled:n=!1}){return(0,s.jsx)("button",{type:"button","aria-label":t,title:t,onClick:a,disabled:n,className:`inline-flex h-7 w-7 items-center justify-center border transition-colors ${"danger"===i?"text-danger hover:bg-danger hover:text-bg border-danger":"text-text-muted hover:bg-elevated hover:text-text border-border"} ${n?"opacity-40":""}`,style:{transitionDuration:"var(--motion-fast)"},children:(0,s.jsx)(e,{size:14,"aria-hidden":!0})})}])},10289,e=>{"use strict";let s=(0,e.i(75254).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"}]]);e.s(["Bug",0,s],10289)},34723,e=>{"use strict";var s=e.i(63804),t=e.i(10289),a=e.i(83086),i=e.i(52008);let n=(0,e.i(75254).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 r=e.i(14683);let l={task:{icon:s.ListChecks,label:"Task",tone:"default"},bug:{icon:t.Bug,label:"Bug",tone:"danger"},feature:{icon:a.Sparkles,label:"Feature",tone:"accent"},epic:{icon:i.Layers,label:"Epic",tone:"accent"},chore:{icon:n,label:"Chore",tone:"muted"}};function d(e){return l[e??"task"]??{icon:r.Circle,label:e??"Task",tone:"default"}}e.s(["PRIORITIES",0,["P0","P1","P2","P3"],"TASK_TYPES",0,["task","feature","bug","chore","epic"],"statusLabel",0,function(e,s){return({open:e.tasks.statusOpen,in_progress:e.tasks.statusInProgress,blocked:e.tasks.statusBlocked,closed:e.tasks.statusClosed,cancelled:e.tasks.statusCancelled})[s]??s},"taskTypeLabel",0,function(e,s){return({task:e.tasks.typeTask,bug:e.tasks.typeBug,feature:e.tasks.typeFeature,epic:e.tasks.typeEpic,chore:e.tasks.typeChore})[s]??d(s).label},"taskTypeMeta",0,d],34723)},81203,e=>{"use strict";let s=(0,e.i(75254).default)("Power",[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]);e.s(["Power",0,s],81203)},31343,e=>{"use strict";let s=(0,e.i(75254).default)("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);e.s(["Play",0,s],31343)},17521,e=>{"use strict";let s=(0,e.i(75254).default)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["default",0,s])},34182,74848,e=>{"use strict";let s={open:"success",in_progress:"warning",blocked:"danger",closed:"danger",cancelled:"muted"};e.s(["statusTone",0,function(e){return s[e]}],34182);var t=e.i(43476);e.s(["ProgressRibbon",0,function({phases:e,className:s=""}){return(0,t.jsx)("div",{className:`flex h-1.5 gap-0.5 overflow-hidden rounded-full ${s}`,children:0===e.length?(0,t.jsx)("div",{className:"h-full flex-1 rounded-full bg-elevated"}):e.map(e=>{let s;return(0,t.jsx)("div",{className:`h-full flex-1 rounded-full transition-colors ${"closed"===(s=e.status)?"bg-accent":"in_progress"===s?"bg-accent/60":"blocked"===s?"bg-danger":"cancelled"===s?"bg-elevated":"bg-border-strong"}`,style:{transitionDuration:"var(--motion-base)"},title:`${e.title} — ${e.status}`},e.id)})})}],74848)},64673,e=>{"use strict";var s=e.i(43476),t=e.i(24877);e.i(69530);var a=e.i(2942);let i={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}};e.s(["AgentStatusDot",0,function({signal:e,live:n=!1,size:r="md",stall:l,silenceSec:d=0}){let o,{t:c}=(0,a.useTranslation)(),x="stuck"===l?"stuck":"stalled"===l?"stalled":(0,t.liveState)(e,n),u=i[x],m="sm"===r?6:8;return o="stalled"===x?c.agent.stalled.replace("{min}",String(Math.max(1,Math.floor(d/60)))):"stuck"===x?c.agent.stuck.replace("{min}",String(Math.max(1,Math.floor(d/60)))):c.agent["idle"===x?"idle":"needs_input"===x?"needsInput":x],(0,s.jsx)("span",{className:`inline-block shrink-0 rounded-full ${u.pulse?"live-dot":""}`,style:{width:m,height:m,backgroundColor:u.color,"--live-ring":u.ring},role:"status","aria-label":o,title:o})}])},98715,e=>{"use strict";var s=e.i(24877);function t(e){let t=new Set(e.filter(e=>"epic"===e.type).map(e=>e.id)),a=new Map;for(let s of e)if(s.parent_id&&t.has(s.parent_id)){let e=a.get(s.parent_id)??[];e.push(s),a.set(s.parent_id,e)}for(let e of a.values())e.sort((e,t)=>((0,s.parseTs)(e.created_at)??0)-((0,s.parseTs)(t.created_at)??0));return a}e.s(["epicCapacity",0,function(e,t,a){let i=0;for(let a of e){let e=(0,s.taskSessionName)(a);"in_progress"===a.status&&e&&t.includes(e)&&i++}let n=Math.max(0,Number.isFinite(a)?Math.floor(a):0),r=Math.min(i,n);return{running:r,max:n,free:Math.max(0,n-r)}},"epicChildren",0,t,"epicEffectiveStatus",0,function(e,s,t=[]){return"epic"!==e.type?e.status:s.some(s=>s.epic_id===e.id&&"disengaged"!==s.state)?"in_progress":0===t.length?e.status:t.some(e=>"in_progress"===e.status)?"in_progress":t.some(e=>"blocked"===e.status)?"blocked":t.some(e=>"open"===e.status)?"open":"closed"},"epicLive",0,function(e,t,a){let i=0,n=0;for(let r of e){let e=(0,s.taskSessionName)(r);"in_progress"===r.status&&e&&t.includes(e)&&i++,e&&t.includes(e)&&a[e]?.type==="needs_input"&&n++}return{running:i,needsInput:n}},"epicProgress",0,function(e){return{done:e.filter(e=>"closed"===e.status||"cancelled"===e.status).length,total:e.length}},"phaseIds",0,function(e){let s=new Set;for(let a of t(e).values())for(let e of a)s.add(e.id);return s}])},95242,39312,e=>{"use strict";var s=e.i(75254);let t=(0,s.default)("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]]);e.s(["Pause",0,t],95242);let a=(0,s.default)("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);e.s(["Zap",0,a],39312)},67866,e=>{"use strict";var s=e.i(43476),t=e.i(60289),a=e.i(26178),i=e.i(51509);e.i(69530);var n=e.i(2942),r=e.i(22016),l=e.i(63804),d=e.i(9912),o=e.i(72520),c=e.i(7233),x=e.i(7835);let u=(0,e.i(75254).default)("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);var m=e.i(95242),p=e.i(31343),h=e.i(81203),g=e.i(39312),f=e.i(14683),b=e.i(64668),v=e.i(23622),j=e.i(83086),k=e.i(51981),y=e.i(4552),N=e.i(34182),w=e.i(89890),S=e.i(81646),M=e.i(89128),z=e.i(24877),_=e.i(45286);function T({sessions:e}){let{t}=(0,n.useTranslation)(),a=(0,k.useSessions)(),i=(0,k.useSessionSignals)(),r=(0,k.useTasks)(),l=(0,z.needsInputSessions)(e??a.data??[],i);return 0===l.length?null:(0,s.jsxs)("section",{className:"flex flex-col gap-2 rounded-lg border border-warning/50 bg-warning/[0.06] p-3",children:[(0,s.jsxs)("div",{className:"flex items-center gap-1.5 text-xs font-semibold uppercase tracking-wide text-warning",children:[(0,s.jsx)(M.TriangleAlert,{size:13,"aria-hidden":!0}),t.dashboard.needsAttentionTitle]}),(0,s.jsx)("div",{className:"flex flex-col gap-1.5",children:l.map(e=>{let t=i[e];return(0,s.jsx)(_.NeedsInputRow,{name:e,question:t?.type==="needs_input"?t.question:"",options:t?.type==="needs_input"?t.options:void 0,exec:(0,z.taskExec)((r.data??[]).find(s=>(0,z.taskSessionName)(s)===e)?.labels)},e)})})]})}var C=e.i(74848),R=e.i(64673),L=e.i(56284);function P({running:e,max:t,className:a=""}){let{t:i}=(0,n.useTranslation)(),r=Math.max(0,Math.floor(t)),l=Math.min(e,r),d=i.missions.capacityUsed.replace("{running}",String(l)).replace("{max}",String(r));return(0,s.jsxs)("span",{className:`inline-flex items-center gap-1.5 ${a}`,role:"meter","aria-valuenow":l,"aria-valuemin":0,"aria-valuemax":r,"aria-label":d,title:d,children:[r>0?(0,s.jsx)("span",{className:"flex h-1.5 gap-0.5","aria-hidden":!0,children:Array.from({length:r},(e,t)=>(0,s.jsx)("span",{className:`h-full w-2 rounded-full transition-colors ${t<l?"bg-accent":"bg-border"}`,style:{transitionDuration:"var(--motion-base)"}},t))}):null,(0,s.jsxs)("span",{className:"font-mono text-[11px] tabular-nums text-text-muted",children:[l,"/",r]})]})}var A=e.i(44375),B=e.i(80809),E=e.i(93283),I=e.i(91842),D=e.i(2817),$=e.i(98715),q=e.i(89901),O=e.i(34723);function U({name:e,task:t}){let{t:a}=(0,n.useTranslation)(),{tail:i}=(0,E.useSessionPane)(e,4),l=(0,z.taskExec)(t?.labels),d=(0,z.tailSnippet)(i)||"…",{state:o,silenceSec:c}=(0,I.useSessionStall)(e,!0),u=(0,D.sessionActivity)(i);return(0,s.jsxs)(r.default,{href:"/sessions",className:"flex items-center gap-2.5 rounded-md border border-border bg-bg px-3 py-2 transition-colors hover:border-border-strong",children:[(0,s.jsx)(R.AgentStatusDot,{live:!0,size:"sm",stall:o,silenceSec:c}),(0,s.jsx)("span",{className:"flex h-6 w-6 shrink-0 items-center justify-center rounded-md border border-border bg-elevated",children:l?(0,s.jsx)(q.ModelIcon,{name:l,size:13}):(0,s.jsx)(x.Radio,{size:12,className:"text-text-muted","aria-hidden":!0})}),(0,s.jsx)("span",{className:"shrink-0 font-mono text-xs text-text",children:e}),(0,s.jsx)("span",{className:"min-w-0 flex-1 truncate text-[11px] text-text-muted",children:d}),(0,s.jsx)(w.Badge,{tone:"error"===u?"danger":"prompted"===u?"warning":"unknown"===u?"muted":"accent",children:a.activity[u]})]})}function F({value:e,label:t,tone:a,icon:i}){return(0,s.jsxs)("span",{className:"flex items-baseline gap-1.5",children:[i?(0,s.jsx)(i,{size:12,className:"shrink-0 self-center text-text-muted","aria-hidden":!0}):null,(0,s.jsx)("span",{className:`font-mono text-xl tabular-nums ${"danger"===a?"text-danger":"accent"===a?"text-accent":"text-text"}`,children:e}),(0,s.jsx)("span",{className:"text-[11px] uppercase tracking-wide text-text-muted",children:t})]})}function H(){var e,t,a;let i,m,{t:p}=(0,n.useTranslation)(),h=(0,k.useTasks)(),j=(0,k.useSessions)(),M=(0,k.useMissions)(),_=(0,k.useSessionSignals)(),C=(0,y.usePauseMission)(),R=(0,y.useResumeMission)(),L=(0,y.useDisengage)(),{toast:E}=(0,B.useToast)(),I=(e=h.data,t=j.data,a=M.data,i=e??[],{open:(m=e=>i.filter(s=>s.status===e).length)("open"),inProgress:m("in_progress"),blocked:m("blocked"),liveSessions:(t??[]).length,activeMissions:(a??[]).filter(e=>"disengaged"!==e.state).length}),D={active:p.missions.stateActive,paused:p.missions.paused,disengaged:p.missions.stateDisengaged,stalled:p.missions.stateStalled},q=(j.data??[]).slice(0,6),H=(h.data??[]).filter(e=>"epic"!==e.type).slice(0,6),Z=(h.data??[]).filter(e=>"closed"===e.status&&"epic"!==e.type).sort((e,s)=>((0,z.parseTs)(s.closed_at)??0)-((0,z.parseTs)(e.closed_at)??0)).slice(0,6);return(0,s.jsxs)("div",{className:"flex w-full flex-col gap-5",children:[(0,s.jsx)(T,{}),(0,s.jsxs)("section",{className:"rounded-lg border border-border border-t-2 border-t-accent/40 bg-surface p-5",style:{boxShadow:"var(--shadow-card)"},children:[(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-x-5 gap-y-2",children:[(0,s.jsxs)("span",{className:"inline-flex items-center gap-1 text-[11px] font-semibold uppercase tracking-widest text-text-muted",children:[(0,s.jsx)(g.Zap,{size:12,className:"text-accent","aria-hidden":!0}),p.dashboard.now]}),(0,s.jsx)("span",{className:"h-5 w-px bg-border","aria-hidden":!0}),(0,s.jsx)(F,{value:I.inProgress,label:p.dashboard.inProgress,tone:"accent",icon:b.LoaderCircle}),(0,s.jsx)(F,{value:I.open,label:p.dashboard.open,icon:f.Circle}),(0,s.jsx)(F,{value:I.blocked,label:p.dashboard.blocked,tone:I.blocked>0?"danger":void 0,icon:v.Ban}),(0,s.jsx)(F,{value:I.liveSessions,label:p.dashboard.liveSessions,icon:x.Radio}),(0,s.jsx)(F,{value:I.activeMissions,label:p.dashboard.activeMissions,icon:d.Rocket})]}),(0,s.jsx)("div",{className:"mt-4 flex flex-col gap-2",children:q.length>0?q.map(e=>(0,s.jsx)(U,{name:e,task:(0,z.taskForSession)(h.data??[],e)},e)):(0,s.jsxs)("div",{className:"flex flex-col items-center gap-1.5 rounded-md border border-dashed border-border px-3 py-4 text-center text-xs text-text-muted",children:[(0,s.jsx)(x.Radio,{size:14,"aria-hidden":!0}),p.dashboard.nothingRunning]})}),(0,s.jsxs)("div",{className:"mt-4 flex flex-wrap items-center gap-2",children:[(0,s.jsxs)(r.default,{href:"/tasks?new=1",className:"inline-flex h-9 items-center gap-1.5 rounded-md border border-accent bg-accent px-3.5 text-sm font-medium text-white transition-opacity hover:opacity-90",children:[(0,s.jsx)(c.Plus,{size:14,"aria-hidden":!0}),p.tasks.newTask]}),(0,s.jsxs)(r.default,{href:"/tasks?new=1",className:"inline-flex h-9 items-center gap-1.5 rounded-md border border-border bg-elevated px-3.5 text-sm font-medium text-text transition-colors hover:border-border-strong",children:[(0,s.jsx)(d.Rocket,{size:14,"aria-hidden":!0}),p.missions.newMission]})]})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 gap-5 lg:grid-cols-2",children:[(0,s.jsxs)("section",{className:"flex flex-col rounded-lg border border-border bg-surface",style:{boxShadow:"var(--shadow-card)"},children:[(0,s.jsxs)("div",{className:"flex items-center justify-between border-b border-border px-4 py-3",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(l.ListChecks,{size:15,className:"text-text-muted","aria-hidden":!0}),(0,s.jsx)("h2",{className:"text-sm font-medium text-text",children:p.page.tasks})]}),(0,s.jsxs)(r.default,{href:"/tasks",className:"inline-flex items-center gap-1 text-xs font-medium text-accent transition-opacity hover:opacity-80",children:[p.dashboard.viewAll,(0,s.jsx)(o.ArrowRight,{size:12,"aria-hidden":!0})]})]}),h.isLoading?(0,s.jsx)("div",{className:"p-4",children:(0,s.jsx)(A.LoadingState,{})}):h.isError?(0,s.jsx)("div",{className:"p-4",children:(0,s.jsx)(A.ErrorState,{message:p.common.daemonUnreachable,onRetry:()=>h.refetch()})}):0===H.length?(0,s.jsx)(A.EmptyState,{title:p.tasks.empty,icon:l.ListChecks}):(0,s.jsx)("div",{className:"flex flex-col divide-y divide-border",children:H.map(e=>{let t=(0,O.taskTypeMeta)(e.type).icon;return(0,s.jsxs)(r.default,{href:"/tasks",className:"flex items-center gap-3 px-4 py-2.5 transition-colors hover:bg-elevated",children:[(0,s.jsx)(t,{size:14,className:"shrink-0 text-text-muted","aria-hidden":!0}),(0,s.jsx)("span",{className:"min-w-0 flex-1 truncate text-sm text-text",children:e.title}),(0,s.jsx)(w.Badge,{tone:(0,N.statusTone)(e.status),children:(0,O.statusLabel)(p,e.status)})]},e.id)})})]}),(0,s.jsxs)("section",{className:"flex flex-col rounded-lg border border-border bg-surface",style:{boxShadow:"var(--shadow-card)"},children:[(0,s.jsxs)("div",{className:"flex items-center justify-between border-b border-border px-4 py-3",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(d.Rocket,{size:15,className:"text-text-muted","aria-hidden":!0}),(0,s.jsx)("h2",{className:"text-sm font-medium text-text",children:p.page.missions})]}),(0,s.jsxs)(r.default,{href:"/tasks",className:"inline-flex items-center gap-1 text-xs font-medium text-accent transition-opacity hover:opacity-80",children:[p.dashboard.viewAll,(0,s.jsx)(o.ArrowRight,{size:12,"aria-hidden":!0})]})]}),M.isLoading?(0,s.jsx)("div",{className:"p-4",children:(0,s.jsx)(A.LoadingState,{})}):M.isError?(0,s.jsx)("div",{className:"p-4",children:(0,s.jsx)(A.ErrorState,{message:p.common.daemonUnreachable,onRetry:()=>M.refetch()})}):M.data&&0!==M.data.length?(0,s.jsx)("div",{className:"flex flex-col divide-y divide-border",children:M.data.map(e=>{let t,a=h.data?.find(s=>s.id===e.epic_id),i=(h.data??[]).filter(s=>s.parent_id===e.epic_id),n=i.filter(e=>"closed"===e.status||"cancelled"===e.status).length,l=i.filter(e=>"in_progress"===e.status),d=l.filter(e=>{let s=(0,z.taskSessionName)(e);return!!s&&_[s]?.type==="needs_input"}).length;return(0,s.jsxs)(r.default,{href:"/tasks",className:"flex items-center gap-3 px-4 py-2.5 transition-colors hover:bg-elevated",children:[(0,s.jsx)("span",{className:"min-w-0 flex-1 truncate text-sm text-text",children:a?.title??e.epic_id}),d>0?(0,s.jsxs)("span",{className:"flex shrink-0 items-center gap-1 text-[11px] font-medium text-warning",title:p.agent.needsInput,children:[(0,s.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-warning","aria-hidden":!0}),d]}):null,l.length>0?(0,s.jsxs)("span",{className:"flex shrink-0 items-center gap-1 text-[11px] font-medium text-success",title:p.agent.working,children:[(0,s.jsx)("span",{className:"live-dot h-1.5 w-1.5 rounded-full bg-success",style:{"--live-ring":"color-mix(in srgb, var(--color-success) 50%, transparent)"},"aria-hidden":!0}),l.length]}):null,(0,s.jsxs)("span",{className:"shrink-0 font-mono text-[11px] text-text-muted",children:[n,"/",i.length]}),"disengaged"!==e.state?(t=(0,$.epicCapacity)(i,j.data??[],e.max_sessions),(0,s.jsx)(P,{running:t.running,max:t.max})):null,(0,s.jsx)(w.Badge,{tone:"disengaged"===e.state?"muted":"accent",children:D[e.state]??e.state})]},e.id)})}):(0,s.jsx)(A.EmptyState,{title:p.missions.empty,icon:d.Rocket})]})]}),(0,s.jsx)(K,{missions:M.data??[],tasks:h.data??[],sessionNames:j.data??[],signals:_,onPause:e=>C.mutate(e,{onSuccess:()=>E(p.missions.pausedMsg),onError:e=>E(String(e),"error")}),onResume:e=>R.mutate(e,{onSuccess:()=>E(p.missions.resumed),onError:e=>E(String(e),"error")}),onDisengage:e=>L.mutate(e,{onSuccess:()=>E(p.missions.disengaged),onError:e=>E(String(e),"error")}),isLoading:M.isLoading,isError:M.isError,onRetry:()=>M.refetch()}),Z.length>0&&(0,s.jsxs)("section",{className:"flex flex-col rounded-lg border border-border bg-surface",style:{boxShadow:"var(--shadow-card)"},children:[(0,s.jsx)("div",{className:"flex items-center justify-between border-b border-border px-4 py-3",children:(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(u,{size:15,className:"text-text-muted","aria-hidden":!0}),(0,s.jsx)("h2",{className:"text-sm font-medium text-text",children:p.dashboard.recentOutcomes})]})}),(0,s.jsx)("div",{className:"flex flex-col divide-y divide-border",children:Z.map(e=>(0,s.jsxs)(r.default,{href:`/tasks?select=${encodeURIComponent(e.id)}`,className:"flex items-center gap-3 px-4 py-2.5 transition-colors hover:bg-elevated",children:[(0,s.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,s.jsx)("span",{className:"block truncate text-sm text-text",children:e.title}),(0,s.jsx)("span",{className:"block truncate text-[11px] text-text-muted",children:e.result_summary?.trim()||p.tasks.noSummary})]}),(0,s.jsx)(S.OutcomeBadge,{outcome:e.outcome})]},e.id))})]})]})}function Z({mission:e,epic:t,kids:a,sessionNames:i,signals:l,onPause:d,onResume:o,onDisengage:c}){let{t:x}=(0,n.useTranslation)(),u="paused"===e.state,g="disengaged"===e.state,f=function(e,s){for(let t of e){if("in_progress"!==t.status)continue;let e=(0,z.taskSessionName)(t);if(e&&s.includes(e))return t}return null}(a,i),b=f?(0,z.taskSessionName)(f):null,v=!!(b&&i.includes(b)),j=b?l[b]:void 0,k=(0,I.useSessionStall)(b??"",v&&!!b),y=(0,$.epicCapacity)(a,i,e.max_sessions);return(0,s.jsxs)("div",{className:"flex flex-col gap-2 px-4 py-3 transition-colors hover:bg-elevated",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(r.default,{href:"/tasks",className:"flex min-w-0 flex-1 items-center gap-2",children:(0,s.jsx)("span",{className:"min-w-0 flex-1 truncate text-sm font-semibold text-text",children:t?.title??e.epic_id})}),g||u?null:(0,s.jsx)(P,{running:y.running,max:y.max}),(0,s.jsx)(w.Badge,{tone:g?"muted":u?"warning":"accent",children:u?x.missions.statePaused:g?x.missions.stateDisengaged:x.missions.stateActive})]}),(0,s.jsx)("div",{className:"flex items-center gap-2",children:(0,s.jsx)(C.ProgressRibbon,{phases:a,className:"flex-1"})}),f?(0,s.jsxs)("div",{className:"flex items-center gap-2 text-[11px] text-text-muted",children:[(0,s.jsx)(R.AgentStatusDot,{signal:j,live:v,size:"sm",stall:k.state,silenceSec:k.silenceSec}),(0,s.jsx)("span",{className:"truncate",children:f.title})]}):(0,s.jsx)("div",{className:"text-[11px] text-text-muted",children:x.missions.noTasks}),(0,s.jsxs)("div",{className:"flex items-center gap-1",children:[g?null:u?(0,s.jsx)(L.IconButton,{icon:p.Play,label:x.missions.resume,onClick:o}):(0,s.jsx)(L.IconButton,{icon:m.Pause,label:x.missions.pause,onClick:d}),(0,s.jsx)(L.IconButton,{icon:h.Power,label:x.missions.disengage,variant:"danger",onClick:c})]})]})}function K({missions:e,tasks:t,sessionNames:a,signals:i,onPause:l,onResume:c,onDisengage:x,isLoading:u,isError:m,onRetry:p}){let{t:h}=(0,n.useTranslation)(),g=e.filter(e=>"disengaged"!==e.state);return(0,s.jsxs)("section",{className:"flex flex-col rounded-lg border border-border border-t-2 border-t-accent/40 bg-surface",style:{boxShadow:"var(--shadow-card)"},children:[(0,s.jsxs)("div",{className:"flex items-center justify-between border-b border-border px-4 py-3",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(d.Rocket,{size:15,className:"text-text-muted","aria-hidden":!0}),(0,s.jsx)("h2",{className:"text-sm font-medium text-text",children:h.dashboard.autopilotSpotlight})]}),(0,s.jsxs)(r.default,{href:"/tasks",className:"inline-flex items-center gap-1 text-xs font-medium text-accent transition-opacity hover:opacity-80",children:[h.dashboard.viewAll,(0,s.jsx)(o.ArrowRight,{size:12,"aria-hidden":!0})]})]}),(0,s.jsxs)("p",{className:"flex items-center gap-1.5 px-4 py-2 text-[11px] text-text-muted",children:[(0,s.jsx)(j.Sparkles,{size:12,className:"shrink-0 text-text-muted","aria-hidden":!0}),h.dashboard.autopilotSpotlightDesc]}),u?(0,s.jsx)("div",{className:"p-4",children:(0,s.jsx)(A.LoadingState,{})}):m?(0,s.jsx)("div",{className:"p-4",children:(0,s.jsx)(A.ErrorState,{message:h.common.daemonUnreachable,onRetry:p})}):0===g.length?(0,s.jsx)(A.EmptyState,{title:h.dashboard.noActiveMissions,icon:d.Rocket}):(0,s.jsx)("div",{className:"flex flex-col divide-y divide-border",children:g.map(e=>{let n=t.find(s=>s.id===e.epic_id),r=t.filter(s=>s.parent_id===e.epic_id);return(0,s.jsx)(Z,{mission:e,epic:n,kids:r,sessionNames:a,signals:i,onPause:()=>l(e.id),onResume:()=>c(e.id),onDisengage:()=>x(e.id)},e.id)})})]})}e.s(["default",0,function(){let{t:e}=(0,n.useTranslation)();return(0,s.jsxs)(a.ModuleShell,{moduleId:"dashboard",children:[(0,s.jsx)(i.ModuleHeader,{title:e.page.dashboard,icon:t.LayoutDashboard}),(0,s.jsx)(H,{})]})},"dynamic",0,"force-dynamic"],67866)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,98183,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var o={assign:function(){return l},searchParamsToUrlQuery:function(){return a},urlQueryToSearchParams:function(){return s}};for(var i in o)Object.defineProperty(r,i,{enumerable:!0,get:o[i]});function a(e){let t={};for(let[r,o]of e.entries()){let e=t[r];void 0===e?t[r]=o:Array.isArray(e)?e.push(o):t[r]=[e,o]}return t}function n(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function s(e){let t=new URLSearchParams;for(let[r,o]of Object.entries(e))if(Array.isArray(o))for(let e of o)t.append(r,n(e));else t.set(r,n(o));return t}function l(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,o]of r.entries())e.append(t,o)}return e}},18967,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var o={DecodeError:function(){return y},MiddlewareNotFoundError:function(){return k},MissingStaticPage:function(){return v},NormalizeError:function(){return b},PageNotFoundError:function(){return g},SP:function(){return x},ST:function(){return f},WEB_VITALS:function(){return a},execOnce:function(){return n},getDisplayName:function(){return d},getLocationOrigin:function(){return c},getURL:function(){return u},isAbsoluteUrl:function(){return l},isResSent:function(){return h},loadGetInitialProps:function(){return m},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return w}};for(var i in o)Object.defineProperty(r,i,{enumerable:!0,get:o[i]});let a=["CLS","FCP","FID","INP","LCP","TTFB"];function n(e){let t,r=!1;return(...o)=>(r||(r=!0,t=e(...o)),t)}let s=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,l=e=>s.test(e);function c(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function u(){let{href:e}=window.location,t=c();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function h(e){return e.finished||e.headersSent}function p(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function m(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await m(t.Component,t.ctx)}:{};let o=await e.getInitialProps(t);if(r&&h(r))return o;if(!o)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${o}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return o}let x="u">typeof performance,f=x&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class y extends Error{}class b extends Error{}class g extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class v extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class k extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function w(e){return JSON.stringify({message:e.message,stack:e.stack})}},33525,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return o}});let o=e=>{}},9912,e=>{"use strict";let t=(0,e.i(75254).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"}]]);e.s(["Rocket",0,t],9912)},7233,e=>{"use strict";let t=(0,e.i(75254).default)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);e.s(["Plus",0,t],7233)},82458,e=>{"use strict";let t=(0,e.i(75254).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"}]]);e.s(["default",0,t])},56474,e=>{"use strict";let t={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"};e.s(["parseAnsi",0,function(e){let r,o,i=[],a="",n=()=>{a&&(i.push({text:a.replace(/\x1b\[[0-9;?]*[ -/]*[@-ln-~]/g,"").replace(/\x1b[()][0-9A-Za-z]/g,"").replace(/\x1b[=>]/g,"").replace(/\x1b/g,""),color:r}),a="")},s=/\x1b\[([0-9;]*)m/g,l=0;for(;null!==(o=s.exec(e));){a+=e.slice(l,o.index),n(),l=s.lastIndex;let i=(o[1]||"0").split(";").map(e=>Number(e||0));for(let e=0;e<i.length;e++){let o=i[e];0===o||39===o?r=void 0:t[o]?r=t[o]:38===o&&(5===i[e+1]?(r=function(e){if(e<16)return t[e<8?30+e:90+(e-8)]??"#d4d4d4";if(e>=232){let t=8+(e-232)*10;return`rgb(${t},${t},${t})`}let r=e-16,o=Math.floor(r/36),i=Math.floor(r%36/6),a=e=>0===e?0:55+40*e;return`rgb(${a(o)},${a(i)},${a(r%6)})`}(i[e+2]??7),e+=2):2===i[e+1]&&(r=`rgb(${i[e+2]??0},${i[e+3]??0},${i[e+4]??0})`,e+=4))}}return a+=e.slice(l),n(),i.filter(e=>e.text.length>0)}])},91392,e=>{"use strict";e.s(["compactElapsed",()=>o,"formatCost",()=>a,"formatDuration",()=>r,"formatTaskTime",()=>s,"formatTokens",()=>i,"localDateTime",()=>n]);var t=e.i(24877);function r(e){let t=Math.max(0,Math.floor(e/1e3));if(t<60)return`${t}s`;let r=Math.floor(t/60);if(r<60)return`${r}m ${t%60}s`;let o=Math.floor(r/60);return`${o}h ${r%60}m`}function o(e){let t=Math.max(0,Math.floor(e/1e3));if(t<60)return`${t}s`;let r=Math.floor(t/60);if(r<60)return`${r}m`;let o=Math.floor(r/60);return o<24?`${o}h`:`${Math.floor(o/24)}d`}function i(e){return!Number.isFinite(e)||e<=0?"0":e<1e3?String(e):e<1e6?`${(e/1e3).toFixed(+(e<1e4))}k`:`${(e/1e6).toFixed(1)}M`}function a(e){return`$${e.toFixed(4)}`}function n(e,r,o=!0){let i=(0,t.parseTs)(e);return null==i?e:new Date(i).toLocaleString(r,{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",...o?{second:"2-digit"}:{}})}function s(e,r,i){if(!e)return{label:"",title:""};let a=(0,t.parseTs)(e);if(null==a)return{label:e,title:e};let s=n(e,i),l=r-a;return l<864e5?{label:o(l),title:s}:{label:new Date(a).toLocaleString(i,{day:"numeric",month:"short",hour:"2-digit",minute:"2-digit"}),title:s}}},24877,e=>{"use strict";e.s(["agentDisplayName",()=>l,"keysForOption",()=>f,"lastClosedTask",()=>y,"liveState",()=>m,"missionEpicId",()=>c,"needsInputSessions",()=>x,"parseTs",()=>u,"tailSnippet",()=>g,"taskAgentName",()=>n,"taskBlockers",()=>p,"taskElapsed",()=>h,"taskExec",()=>a,"taskForSession",()=>b,"taskSessionName",()=>s,"taskStartedMs",()=>d]);var t=e.i(56474),r=e.i(91392);let o="agent:",i="exec:";function a(e){let t=e?.find(e=>e.startsWith(i));return t?t.slice(i.length):""}function n(e){let t=e.labels?.find(e=>e.startsWith(o));return t?t.slice(o.length):null}function s(e){let t=n(e);return t?`orca-${t}`:null}function l(e){return e.replace(/^orca-/,"")||e}function c(e){return e.replace(/^m-/,"")}function u(e){if(!e)return null;let t=new Date(e.includes("T")?e:e.replace(" ","T")+(e.endsWith("Z")?"":"Z")).getTime();return Number.isNaN(t)?null:t}function d(e){let t=e.labels?.find(e=>e.startsWith("started:"));if(t){let e=Number(t.slice(8));if(Number.isFinite(e))return e}return u(e.created_at)}function h(e,t){let o=d(e);if(null==o)return null;let i="closed"===e.status||"cancelled"===e.status?u(e.closed_at)??t:t;return(0,r.compactElapsed)(i-o)}function p(e,t,r){return t.filter(t=>t.task_id===e).map(e=>r.get(e.depends_on_id)).filter(e=>!!e&&"closed"!==e.status&&"cancelled"!==e.status)}function m(e,t){return e?.type==="needs_input"?"needs_input":t||e?.type==="working"?"working":e?.type==="complete"?"complete":"idle"}function x(e,t){return e.filter(e=>t[e]?.type==="needs_input")}function f(e){return[...Array(Math.max(0,Number(e)-1)).fill("Down"),"Enter"]}function y(e){let t=e.filter(e=>"closed"===e.status);return 0===t.length?null:t.reduce((e,t)=>(u(t.closed_at)??0)>(u(e.closed_at)??0)?t:e)}function b(e,t){if(!t.startsWith("orca-"))return;let r=`${o}${t.slice(5)}`,i=e.filter(e=>(e.labels??[]).includes(r));return i.length<=1?i[0]:i.find(e=>"in_progress"===e.status)??[...i].sort((e,t)=>(u(t.created_at)??0)-(u(e.created_at)??0))[0]}function g(e){let r=e.split("\n");for(let e=r.length-1;e>=0;e--){let o=(0,t.parseAnsi)(r[e]).map(e=>e.text).join("").trim();if(o)return o}return""}},63804,e=>{"use strict";let t=(0,e.i(75254).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"}]]);e.s(["ListChecks",0,t],63804)},73884,e=>{"use strict";let t=(0,e.i(75254).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"}]]);e.s(["XCircle",0,t],73884)},93283,e=>{"use strict";var t=e.i(66027),r=e.i(40273);e.s(["useSessionPane",0,function(e,o=8,i=!0){let a=(0,t.useQuery)({queryKey:["session-pane",e,"ansi"],queryFn:()=>r.orcaClient.sessionPane(e,!0),enabled:i&&!!e,refetchInterval:2e3,refetchOnWindowFocus:!1});return{tail:(a.data?.pane??"").split("\n").slice(-o).join("\n"),isLoading:a.isLoading,isError:a.isError}}])},91842,e=>{"use strict";var t=e.i(71645),r=e.i(93283);let o={stalledSec:300,stuckSec:900};e.s(["useSessionStall",0,function(e,i,a=o){let{tail:n}=(0,r.useSessionPane)(e,8,i),[s,l]=(0,t.useState)(()=>Date.now()),c=(0,t.useRef)(Date.now());if((0,t.useEffect)(()=>{c.current=Date.now()},[n]),(0,t.useEffect)(()=>{if(!i)return;let e=setInterval(()=>l(Date.now()),1e3);return()=>clearInterval(e)},[i]),!i)return{state:"fresh",silenceSec:0};let u=Math.floor((s-c.current)/1e3);return{state:function(e,t,r=o){if(!t)return"fresh";let i=Math.max(0,e);return i>=r.stuckSec?"stuck":i>=r.stalledSec?"stalled":"fresh"}(u,!0,a),silenceSec:u}}])},95057,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var o={formatUrl:function(){return s},formatWithValidation:function(){return c},urlObjectKeys:function(){return l}};for(var i in o)Object.defineProperty(r,i,{enumerable:!0,get:o[i]});let a=e.r(90809)._(e.r(98183)),n=/https?|ftp|gopher|file/;function s(e){let{auth:t,hostname:r}=e,o=e.protocol||"",i=e.pathname||"",s=e.hash||"",l=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(c+=":"+e.port)),l&&"object"==typeof l&&(l=String(a.urlQueryToSearchParams(l)));let u=e.search||l&&`?${l}`||"";return o&&!o.endsWith(":")&&(o+=":"),e.slashes||(!o||n.test(o))&&!1!==c?(c="//"+(c||""),i&&"/"!==i[0]&&(i="/"+i)):c||(c=""),s&&"#"!==s[0]&&(s="#"+s),u&&"?"!==u[0]&&(u="?"+u),i=i.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${o}${c}${i}${u}${s}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return s(e)}},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return i}});let o=e.r(71645);function i(e,t){let r=(0,o.useRef)(null),i=(0,o.useRef)(null);return(0,o.useCallback)(o=>{if(null===o){let e=r.current;e&&(r.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(r.current=a(e,o)),t&&(i.current=a(t,o))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return a}});let o=e.r(18967),i=e.r(52817);function a(e){if(!(0,o.isAbsoluteUrl)(e))return!0;try{let t=(0,o.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,i.hasBasePath)(r.pathname)}catch(e){return!1}}},84508,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return o}});let o=e=>{}},22016,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var o={default:function(){return y},useLinkStatus:function(){return g}};for(var i in o)Object.defineProperty(r,i,{enumerable:!0,get:o[i]});let a=e.r(90809),n=e.r(43476),s=a._(e.r(71645)),l=e.r(95057),c=e.r(8372),u=e.r(18581),d=e.r(18967),h=e.r(5550);e.r(33525);let p=e.r(88540),m=e.r(91949),x=e.r(73668),f=e.r(9396);function y(t){var r,o;let i,a,y,[g,v]=(0,s.useOptimistic)(m.IDLE_LINK_STATUS),k=(0,s.useRef)(null),{href:w,as:C,children:S,prefetch:j=null,passHref:E,replace:M,shallow:P,scroll:Q,onClick:q,onMouseEnter:K,onTouchStart:R,legacyBehavior:_=!1,onNavigate:F,transitionTypes:N,ref:T,unstable_dynamicOnHover:O,...z}=t;i=S,_&&("string"==typeof i||"number"==typeof i)&&(i=(0,n.jsx)("a",{children:i}));let U=s.default.useContext(c.AppRouterContext),$=!1!==j,A=!1!==j?null===(o=j)||"auto"===o?f.FetchStrategy.PPR:f.FetchStrategy.Full:f.FetchStrategy.PPR,I="string"==typeof(r=C||w)?r:(0,l.formatUrl)(r);if(_){if(i?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});a=s.default.Children.only(i)}let Y=_?a&&"object"==typeof a&&a.ref:T,L=s.default.useCallback(e=>(null!==U&&(k.current=(0,m.mountLinkInstance)(e,I,U,A,$,v)),()=>{k.current&&((0,m.unmountLinkForCurrentNavigation)(k.current),k.current=null),(0,m.unmountPrefetchableInstance)(e)}),[$,I,U,A,v]),D={ref:(0,u.useMergedRef)(L,Y),onClick(t){_||"function"!=typeof q||q(t),_&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(t),!U||t.defaultPrevented||function(t,r,o,i,a,n,l){if("u">typeof window){let c,{nodeName:u}=t.currentTarget;if("A"===u.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,x.isLocalURL)(r)){i&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),n){let e=!1;if(n({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(99781);s.default.startTransition(()=>{d(r,i?"replace":"push",!1===a?p.ScrollBehavior.NoScroll:p.ScrollBehavior.Default,o.current,l)})}}(t,I,k,M,Q,F,N)},onMouseEnter(e){_||"function"!=typeof K||K(e),_&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),U&&$&&(0,m.onNavigationIntent)(e.currentTarget,!0===O)},onTouchStart:function(e){_||"function"!=typeof R||R(e),_&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),U&&$&&(0,m.onNavigationIntent)(e.currentTarget,!0===O)}};return(0,d.isAbsoluteUrl)(I)?D.href=I:_&&!E&&("a"!==a.type||"href"in a.props)||(D.href=(0,h.addBasePath)(I)),y=_?s.default.cloneElement(a,D):(0,n.jsx)("a",{...z,...D,children:i}),(0,n.jsx)(b.Provider,{value:g,children:y})}e.r(84508);let b=(0,s.createContext)(m.IDLE_LINK_STATUS),g=()=>(0,s.useContext)(b);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},61911,e=>{"use strict";let t=(0,e.i(75254).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"}]]);e.s(["Users",0,t],61911)},41382,e=>{"use strict";let t=(0,e.i(75254).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"}]]);e.s(["KanbanSquare",0,t],41382)},21218,e=>{"use strict";let t=(0,e.i(75254).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"}]]);e.s(["Activity",0,t],21218)},51737,e=>{"use strict";let t=(0,e.i(75254).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"}]]);e.s(["ShieldAlert",0,t],51737)},20535,e=>{"use strict";var t=e.i(84981);e.s(["SquareTerminal",()=>t.default])},45423,e=>{"use strict";let t=(0,e.i(75254).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"}]]);e.s(["Bell",0,t],45423)},1544,e=>{"use strict";var t=e.i(43476),r=e.i(71645),o=e.i(40273);let i=["#ef4444","#f59e0b","#10b981","#3b82f6","#8b5cf6","#ec4899","#14b8a6","#f97316"];e.s(["Avatar",0,function({user:e,size:a=36}){let n=e.name?.trim()||e.username,[s,l]=(0,r.useState)(null);return((0,r.useEffect)(()=>{if(!e.avatar)return void l(null);let t=!0;return o.orcaClient.avatarUrl(e.id).then(e=>{t&&l(e)}).catch(()=>{t&&l(null)}),()=>{t=!1}},[e.id,e.avatar]),e.avatar&&s)?(0,t.jsx)("img",{src:s,alt:n,className:"shrink-0 rounded-full border border-border object-cover",style:{width:a,height:a}}):(0,t.jsx)("span",{className:"inline-flex shrink-0 items-center justify-center rounded-full font-mono font-semibold text-white",style:{width:a,height:a,fontSize:.38*a,background:i[[...n].reduce((e,t)=>e+t.charCodeAt(0),0)%i.length]},"aria-label":n,children:n.trim().slice(0,2).toUpperCase()||"?"})}])},84614,e=>{"use strict";let t=(0,e.i(75254).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"}]]);e.s(["User",0,t],84614)},60289,89128,45286,e=>{"use strict";let t=(0,e.i(75254).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"}]]);e.s(["LayoutDashboard",0,t],60289);var r=e.i(43476),o=e.i(82458);e.s(["TriangleAlert",()=>o.default],89128);var o=o,i=e.i(4552),a=e.i(24877),n=e.i(89901),s=e.i(80809);e.i(69530);var l=e.i(2942);e.s(["NeedsInputRow",0,function({name:e,question:t,options:c,exec:u}){let{t:d}=(0,l.useTranslation)(),h=(0,i.useSendInput)(),{toast:p}=(0,s.useToast)(),m=!!c&&c.length>0,x=(t,r)=>h.mutate({name:e,keys:t},{onSuccess:()=>p(r),onError:e=>p(String(e),"error")});return(0,r.jsxs)("div",{className:`flex gap-2.5 rounded-md border border-border bg-bg px-3 py-2 ${m?"flex-col items-stretch":"items-center"}`,children:[(0,r.jsxs)("div",{className:"flex min-w-0 items-center gap-2.5",children:[(0,r.jsx)("span",{className:"flex h-6 w-6 shrink-0 items-center justify-center rounded-md border border-border bg-elevated",children:u?(0,r.jsx)(n.ModelIcon,{name:u,size:13}):(0,r.jsx)(o.default,{size:12,className:"text-warning","aria-hidden":!0})}),(0,r.jsx)("span",{className:"shrink-0 font-mono text-[11px] text-text",children:e}),(0,r.jsx)("span",{className:`min-w-0 flex-1 text-xs text-text-muted ${m?"":"truncate"}`,title:t,children:t}),!m&&(0,r.jsxs)("div",{className:"flex shrink-0 items-center gap-1.5",children:[(0,r.jsx)("button",{type:"button",onClick:()=>x(["Enter"],d.sessions.approved.replace("{name}",e)),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:d.sessions.allow}),(0,r.jsx)("button",{type:"button",onClick:()=>x(["Escape"],d.sessions.rejected.replace("{name}",e)),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:d.sessions.reject})]})]}),m&&(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5 pl-[34px]",children:[c.map(t=>(0,r.jsxs)("button",{type:"button",title:t.label,onClick:()=>x((0,a.keysForOption)(t.id),d.sessions.answered.replace("{name}",e).replace("{option}",t.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,r.jsxs)("span",{className:"opacity-60",children:[t.id,"."]})," ",t.label]},t.id)),(0,r.jsx)("button",{type:"button",onClick:()=>x(["Escape"],d.sessions.rejected.replace("{name}",e)),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:d.sessions.reject})]})]})}],45286)},89901,66992,e=>{"use strict";var t=e.i(43476);let r=(0,e.i(75254).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"}]]);e.s(["Cpu",0,r],66992);let o=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"]),i=[[/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"]];e.s(["ModelIcon",0,function({name:e,size:a=20,className:n=""}){let s=function(e){if(!e)return null;for(let[t,r]of i)if(t.test(e)){let e=`${r}-color`;if(o.has(e))return{slug:e,color:!0};if(o.has(r))return{slug:r,color:!1}}return null}(e);return s?(0,t.jsx)("img",{src:`/models/${s.slug}.svg`,alt:"",className:`shrink-0 object-contain ${s.color?"":"invert"} ${n}`,style:{width:a,height:a},"aria-hidden":!0}):(0,t.jsx)(r,{size:a,className:`text-text-muted ${n}`,"aria-hidden":!0})}],89901)},75254,e=>{"use strict";var t=e.i(71645);let r=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim();var o={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 i=(0,t.forwardRef)(({color:e="currentColor",size:i=24,strokeWidth:a=2,absoluteStrokeWidth:n,className:s="",children:l,iconNode:c,...u},d)=>(0,t.createElement)("svg",{ref:d,...o,width:i,height:i,stroke:e,strokeWidth:n?24*Number(a)/Number(i):a,className:r("lucide",s),...u},[...c.map(([e,r])=>(0,t.createElement)(e,r)),...Array.isArray(l)?l:[l]]));e.s(["default",0,(e,o)=>{let a=(0,t.forwardRef)(({className:a,...n},s)=>(0,t.createElement)(i,{ref:s,iconNode:o,className:r(`lucide-${e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,a),...n}));return a.displayName=`${e}`,a}],75254)},76525,e=>{"use strict";var t=e.i(43476);let r={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"};e.s(["Button",0,function({variant:e="default",icon:o,className:i="",children:a,...n}){let s=i.trim();return(0,t.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 ${r[e]}${s?` ${s}`:""}`,...n,children:[o?(0,t.jsx)(o,{size:14,"aria-hidden":!0}):null,a]})}])},14272,e=>{"use strict";var t=e.i(40143),r=e.i(88587),o=e.i(36553),i=class extends r.Removable{#e;#t;#r;#o;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#r=e.mutationCache,this.#t=[],this.state=e.state||a(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#r.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||("pending"===this.state.status?this.scheduleGc():this.#r.remove(this))}continue(){return this.#o?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:"continue"})},r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#o=(0,o.createRetryer)({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#i({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#i({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#r.canRun(this)});let i="pending"===this.state.status,a=!this.#o.canStart();try{if(i)t();else{this.#i({type:"pending",variables:e,isPaused:a}),this.#r.config.onMutate&&await this.#r.config.onMutate(e,this,r);let t=await this.options.onMutate?.(e,r);t!==this.state.context&&this.#i({type:"pending",context:t,variables:e,isPaused:a})}let o=await this.#o.start();return await this.#r.config.onSuccess?.(o,e,this.state.context,this,r),await this.options.onSuccess?.(o,e,this.state.context,r),await this.#r.config.onSettled?.(o,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(o,null,e,this.state.context,r),this.#i({type:"success",data:o}),o}catch(t){try{await this.#r.config.onError?.(t,e,this.state.context,this,r)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,r)}catch(e){Promise.reject(e)}try{await this.#r.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,r)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,r)}catch(e){Promise.reject(e)}throw this.#i({type:"error",error:t}),t}finally{this.#r.runNext(this)}}#i(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),t.notifyManager.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#r.notify({mutation:this,type:"updated",action:e})})}};function a(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}e.s(["Mutation",0,i,"getDefaultState",0,a])},95468,e=>{"use strict";let t=(0,e.i(75254).default)("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["CheckCircle2",0,t],95468)},63209,e=>{"use strict";let t=(0,e.i(75254).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"}]]);e.s(["AlertCircle",0,t],63209)},37727,e=>{"use strict";let t=(0,e.i(75254).default)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);e.s(["X",0,t],37727)},80809,e=>{"use strict";var t=e.i(43476),r=e.i(71645),o=e.i(95468),i=e.i(63209),a=e.i(37727);e.i(69530);var n=e.i(2942);let s=(0,r.createContext)(null),l=0;function c({item:e,meta:o,dismissLabel:i,onDismiss:n}){let{Icon:s,color:l,title:u}=o,[d,h]=(0,r.useState)(100),p=(0,r.useRef)(!1);return(0,r.useEffect)(()=>{let e=0,t=performance.now(),r=requestAnimationFrame(function o(i){(p.current||(e+=i-t),t=i,h(Math.max(0,100-e/4500*100)),e>=4500)?n():r=requestAnimationFrame(o)});return()=>cancelAnimationFrame(r)},[n]),(0,t.jsxs)("div",{role:"status",onMouseEnter:()=>{p.current=!0},onMouseLeave:()=>{p.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 ${l}`,animation:"toast-in 200ms var(--ease-out)"},children:[(0,t.jsx)(s,{size:20,"aria-hidden":!0,className:"mt-px shrink-0",style:{color:l}}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("div",{className:"text-sm font-semibold text-text",children:u}),(0,t.jsx)("div",{className:"mt-0.5 break-words text-sm leading-snug text-text-muted",children:e.message})]}),(0,t.jsx)("button",{type:"button","aria-label":i,onClick:n,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,t.jsx)(a.X,{size:15,"aria-hidden":!0})}),(0,t.jsx)("span",{className:"absolute bottom-0 left-0 h-0.5",style:{width:`${d}%`,backgroundColor:l,opacity:.5},"aria-hidden":!0})]})}e.s(["ToastProvider",0,function({children:e}){let{t:a}=(0,n.useTranslation)(),u={ok:{Icon:o.CheckCircle2,color:"var(--color-success)",title:a.common.success},error:{Icon:i.AlertCircle,color:"var(--color-danger)",title:a.common.error}},[d,h]=(0,r.useState)([]),p=(0,r.useCallback)(e=>h(t=>t.filter(t=>t.id!==e)),[]),m=(0,r.useCallback)((e,t="ok")=>{let r=l++;h(o=>[...o,{id:r,message:e,tone:t}])},[]),x=(0,r.useMemo)(()=>({toast:m}),[m]);return(0,t.jsxs)(s.Provider,{value:x,children:[e,(0,t.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:d.map(e=>(0,t.jsx)(c,{item:e,meta:u[e.tone],dismissLabel:a.common.dismiss,onDismiss:()=>p(e.id)},e.id))})]})},"useToast",0,function(){let e=(0,r.useContext)(s);if(!e)throw Error("useToast must be used within ToastProvider");return e}])},4552,e=>{"use strict";var t=e.i(71645),r=e.i(14272),o=e.i(40143),i=e.i(15823),a=e.i(19273),n=class extends i.Subscribable{#e;#a=void 0;#n;#s;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#l()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),(0,a.shallowEqualObjects)(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,a.hashKey)(t.mutationKey)!==(0,a.hashKey)(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#l(),this.#c(e)}getCurrentResult(){return this.#a}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#l(),this.#c()}mutate(e,t){return this.#s=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#l(){let e=this.#n?.state??(0,r.getDefaultState)();this.#a={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#c(e){o.notifyManager.batch(()=>{if(this.#s&&this.hasListeners()){let t=this.#a.variables,r=this.#a.context,o={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#s.onSuccess?.(e.data,t,r,o)}catch(e){Promise.reject(e)}try{this.#s.onSettled?.(e.data,null,t,r,o)}catch(e){Promise.reject(e)}}else if(e?.type==="error"){try{this.#s.onError?.(e.error,t,r,o)}catch(e){Promise.reject(e)}try{this.#s.onSettled?.(void 0,e.error,t,r,o)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#a)})})}},s=e.i(12598);function l(e,r){let i=(0,s.useQueryClient)(r),[l]=t.useState(()=>new n(i,e));t.useEffect(()=>{l.setOptions(e)},[l,e]);let c=t.useSyncExternalStore(t.useCallback(e=>l.subscribe(o.notifyManager.batchCalls(e)),[l]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),u=t.useCallback((e,t)=>{l.mutate(e,t).catch(a.noop)},[l]);if(c.error&&(0,a.shouldThrowError)(l.options.throwOnError,[c.error]))throw c.error;return{...c,mutate:u,mutateAsync:c.mutate}}var c=e.i(40273),u=e.i(51981);function d(e,t){e.invalidateQueries({queryKey:["project-files",t]}),e.invalidateQueries({queryKey:["project-git",t]}),e.invalidateQueries({queryKey:["project-changed",t]})}e.s(["useApproveGate",0,function(){let e=(0,s.useQueryClient)();return l({mutationFn:e=>c.orcaClient.approveGate(e),onSuccess:()=>e.invalidateQueries({queryKey:u.QUERY_KEYS.tasks})})},"useAssignProject",0,function(){let e=(0,s.useQueryClient)();return l({mutationFn:e=>e.currentlyAssigned?c.orcaClient.unassignProject(e.userId,e.projectId):c.orcaClient.assignProject(e.userId,e.projectId),onSuccess:(t,r)=>e.invalidateQueries({queryKey:["user-projects",r.userId]})})},"useChangePassword",0,function(){return l({mutationFn:e=>c.orcaClient.changePassword(e.currentPassword,e.newPassword)})},"useCleanupAll",0,function(){let e=(0,s.useQueryClient)();return l({mutationFn:()=>c.orcaClient.cleanupAll(),onSuccess:()=>e.invalidateQueries()})},"useCloseTask",0,function(){let e=(0,s.useQueryClient)();return l({mutationFn:e=>c.orcaClient.closeTask(e),onSuccess:()=>e.invalidateQueries({queryKey:u.QUERY_KEYS.tasks})})},"useCopyProjectEntry",0,function(){let e=(0,s.useQueryClient)();return l({mutationFn:e=>c.orcaClient.copyProjectEntry(e.id,e.from,e.to),onSuccess:(t,r)=>d(e,r.id)})},"useCreateProject",0,function(){let e=(0,s.useQueryClient)();return l({mutationFn:e=>c.orcaClient.createProject(e),onSuccess:()=>e.invalidateQueries({queryKey:["projects"]})})},"useCreateTask",0,function(){let e=(0,s.useQueryClient)();return l({mutationFn:e=>c.orcaClient.createTask(e),onSuccess:()=>e.invalidateQueries({queryKey:u.QUERY_KEYS.tasks})})},"useCreateUser",0,function(){let e=(0,s.useQueryClient)();return l({mutationFn:e=>c.orcaClient.createUser(e.username,e.password),onSuccess:()=>e.invalidateQueries({queryKey:["users"]})})},"useDeleteMission",0,function(){let e=(0,s.useQueryClient)();return l({mutationFn:e=>c.orcaClient.deleteMission(e),onSuccess:()=>{e.invalidateQueries({queryKey:u.QUERY_KEYS.tasks}),e.invalidateQueries({queryKey:u.QUERY_KEYS.missions}),e.invalidateQueries({queryKey:["mission"]})}})},"useDeleteProjectEntry",0,function(){let e=(0,s.useQueryClient)();return l({mutationFn:e=>c.orcaClient.deleteProjectEntry(e.id,e.path),onSuccess:(t,r)=>d(e,r.id)})},"useDeleteTask",0,function(){let e=(0,s.useQueryClient)();return l({mutationFn:e=>c.orcaClient.deleteTask(e),onSuccess:()=>e.invalidateQueries({queryKey:u.QUERY_KEYS.tasks})})},"useDeleteUser",0,function(){let e=(0,s.useQueryClient)();return l({mutationFn:e=>c.orcaClient.deleteUser(e),onSuccess:()=>e.invalidateQueries({queryKey:["users"]})})},"useDisengage",0,function(){let e=(0,s.useQueryClient)();return l({mutationFn:e=>c.orcaClient.disengageMission(e),onSuccess:()=>e.invalidateQueries({queryKey:u.QUERY_KEYS.missions})})},"useEngage",0,function(){let e=(0,s.useQueryClient)();return l({mutationFn:e=>c.orcaClient.engage(e),onSuccess:()=>e.invalidateQueries({queryKey:u.QUERY_KEYS.missions})})},"useHermesInstall",0,function(){let e=(0,s.useQueryClient)();return l({mutationFn:e=>c.orcaClient.hermesInstall(e),onSuccess:(t,r)=>{e.invalidateQueries({queryKey:r.home?["hermes-status",r.home]:["hermes-status"]})}})},"useInsertPhases",0,function(){let e=(0,s.useQueryClient)();return l({mutationFn:e=>c.orcaClient.insertPhases(e.epicId,e.body),onSuccess:(t,r)=>{e.invalidateQueries({queryKey:u.QUERY_KEYS.tasks}),e.invalidateQueries({queryKey:["mission",r.epicId]}),e.invalidateQueries({queryKey:u.QUERY_KEYS.missions})}})},"useKillSession",0,function(){let e=(0,s.useQueryClient)();return l({mutationFn:e=>c.orcaClient.killSession(e),onSuccess:()=>e.invalidateQueries({queryKey:u.QUERY_KEYS.sessions})})},"useLogin",0,function(){return l({mutationFn:e=>c.orcaClient.login(e.username,e.password)})},"useLogout",0,function(){return l({mutationFn:()=>c.orcaClient.logout()})},"useNewProjectDir",0,function(){let e=(0,s.useQueryClient)();return l({mutationFn:e=>c.orcaClient.newProjectDir(e.id,e.path),onSuccess:(t,r)=>d(e,r.id)})},"useNewProjectFile",0,function(){let e=(0,s.useQueryClient)();return l({mutationFn:e=>c.orcaClient.newProjectFile(e.id,e.path),onSuccess:(t,r)=>d(e,r.id)})},"usePauseMission",0,function(){let e=(0,s.useQueryClient)();return l({mutationFn:e=>c.orcaClient.pauseMission(e),onSuccess:()=>e.invalidateQueries({queryKey:u.QUERY_KEYS.missions})})},"usePlanTask",0,function(){let e=(0,s.useQueryClient)();return l({mutationFn:e=>c.orcaClient.planTask(e),onSuccess:()=>{e.invalidateQueries({queryKey:u.QUERY_KEYS.tasks}),e.invalidateQueries({queryKey:u.QUERY_KEYS.missions})}})},"useRemoveProject",0,function(){let e=(0,s.useQueryClient)();return l({mutationFn:e=>c.orcaClient.removeProject(e),onSuccess:()=>e.invalidateQueries({queryKey:["projects"]})})},"useRenameProjectEntry",0,function(){let e=(0,s.useQueryClient)();return l({mutationFn:e=>c.orcaClient.renameProjectEntry(e.id,e.from,e.to),onSuccess:(t,r)=>d(e,r.id)})},"useResumeMission",0,function(){let e=(0,s.useQueryClient)();return l({mutationFn:e=>c.orcaClient.resumeMission(e),onSuccess:()=>e.invalidateQueries({queryKey:u.QUERY_KEYS.missions})})},"useSendInput",0,function(){return l({mutationFn:e=>c.orcaClient.sendKeys(e.name,e.keys)})},"useSetProjectIcon",0,function(){let e=(0,s.useQueryClient)();return l({mutationFn:e=>c.orcaClient.updateProject(e.id,{icon:e.icon}),onSuccess:()=>e.invalidateQueries({queryKey:["projects"]})})},"useSetTaskExec",0,function(){let e=(0,s.useQueryClient)();return l({mutationFn:e=>c.orcaClient.setTaskExec(e.id,e.exec),onSuccess:()=>e.invalidateQueries({queryKey:u.QUERY_KEYS.tasks})})},"useSetTaskStatus",0,function(){let e=(0,s.useQueryClient)();return l({mutationFn:e=>c.orcaClient.setTaskStatus(e.id,e.status),onSuccess:()=>e.invalidateQueries({queryKey:u.QUERY_KEYS.tasks})})},"useSpawn",0,function(){let e=(0,s.useQueryClient)();return l({mutationFn:e=>c.orcaClient.spawn(e),onSuccess:()=>{e.invalidateQueries({queryKey:u.QUERY_KEYS.tasks}),e.invalidateQueries({queryKey:u.QUERY_KEYS.sessions})}})},"useUpdateConfig",0,function(){let e=(0,s.useQueryClient)();return l({mutationFn:e=>c.orcaClient.updateConfig(e),onSuccess:()=>e.invalidateQueries({queryKey:u.QUERY_KEYS.config})})},"useUpdateMe",0,function(){let e=(0,s.useQueryClient)();return l({mutationFn:e=>c.orcaClient.updateMe(e),onSuccess:()=>e.invalidateQueries({queryKey:["me"]})})},"useUpdateProject",0,function(){let e=(0,s.useQueryClient)();return l({mutationFn:e=>c.orcaClient.updateProject(e.id,{path:e.path,notes:e.notes}),onSuccess:()=>e.invalidateQueries({queryKey:["projects"]})})},"useUpdateTask",0,function(){let e=(0,s.useQueryClient)();return l({mutationFn:e=>c.orcaClient.updateTask(e.id,e.patch),onSuccess:()=>e.invalidateQueries({queryKey:u.QUERY_KEYS.tasks})})},"useUpdateUser",0,function(){let e=(0,s.useQueryClient)();return l({mutationFn:e=>c.orcaClient.updateUser(e.id,e.patch),onSuccess:()=>{e.invalidateQueries({queryKey:["users"]}),e.invalidateQueries({queryKey:["me"]})}})},"useUploadAvatar",0,function(){let e=(0,s.useQueryClient)();return l({mutationFn:e=>c.orcaClient.uploadAvatar(e),onSuccess:()=>e.invalidateQueries({queryKey:["me"]})})},"useWriteProjectFile",0,function(){let e=(0,s.useQueryClient)();return l({mutationFn:e=>c.orcaClient.writeProjectFile(e.id,e.path,e.content),onSuccess:(t,r)=>{e.invalidateQueries({queryKey:["project-file",r.id,r.path]}),e.invalidateQueries({queryKey:["project-git",r.id]})}})}],4552)},1206,e=>{"use strict";var t=e.i(43476);let r=(0,e.i(71645).forwardRef)(function({className:e="",...r},o){let i=e.trim();return(0,t.jsx)("input",{ref:o,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${i?` ${i}`:""}`,...r})});e.s(["Input",0,r])},90272,e=>{"use strict";let t=(0,e.i(75254).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"}]]);e.s(["FolderGit2",0,t],90272)},18566,(e,t,r)=>{t.exports=e.r(76562)},84981,e=>{"use strict";let t=(0,e.i(75254).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"}]]);e.s(["default",0,t])},55436,e=>{"use strict";let t=(0,e.i(75254).default)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);e.s(["Search",0,t],55436)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,31245,e=>{"use strict";let t=(0,e.i(75254).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"}]]);e.s(["Bot",0,t],31245)},3116,e=>{"use strict";let t=(0,e.i(75254).default)("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);e.s(["Clock",0,t],3116)},46387,e=>{"use strict";let t=(0,e.i(75254).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"}]]);e.s(["Columns3",0,t],46387)},52008,e=>{"use strict";let t=(0,e.i(75254).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"}]]);e.s(["Layers",0,t],52008)},81646,e=>{"use strict";var t=e.i(43476),a=e.i(95468),s=e.i(73884),r=e.i(89890);e.i(69530);var n=e.i(2942);e.s(["OutcomeBadge",0,function({outcome:e}){let{t:l}=(0,n.useTranslation)();if(!e)return null;let i="fail"===e;return(0,t.jsxs)(r.Badge,{tone:i?"danger":"success",children:[i?(0,t.jsx)(s.XCircle,{size:11,className:"mr-1 inline","aria-hidden":!0}):(0,t.jsx)(a.CheckCircle2,{size:11,className:"mr-1 inline","aria-hidden":!0}),i?l.tasks.outcomeFail:l.tasks.outcomeOk]})}])},10289,e=>{"use strict";let t=(0,e.i(75254).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"}]]);e.s(["Bug",0,t],10289)},83086,e=>{"use strict";let t=(0,e.i(75254).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"}]]);e.s(["Sparkles",0,t],83086)},34723,e=>{"use strict";var t=e.i(63804),a=e.i(10289),s=e.i(83086),r=e.i(52008);let n=(0,e.i(75254).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 l=e.i(14683);let i={task:{icon:t.ListChecks,label:"Task",tone:"default"},bug:{icon:a.Bug,label:"Bug",tone:"danger"},feature:{icon:s.Sparkles,label:"Feature",tone:"accent"},epic:{icon:r.Layers,label:"Epic",tone:"accent"},chore:{icon:n,label:"Chore",tone:"muted"}};function o(e){return i[e??"task"]??{icon:l.Circle,label:e??"Task",tone:"default"}}e.s(["PRIORITIES",0,["P0","P1","P2","P3"],"TASK_TYPES",0,["task","feature","bug","chore","epic"],"statusLabel",0,function(e,t){return({open:e.tasks.statusOpen,in_progress:e.tasks.statusInProgress,blocked:e.tasks.statusBlocked,closed:e.tasks.statusClosed,cancelled:e.tasks.statusCancelled})[t]??t},"taskTypeLabel",0,function(e,t){return({task:e.tasks.typeTask,bug:e.tasks.typeBug,feature:e.tasks.typeFeature,epic:e.tasks.typeEpic,chore:e.tasks.typeChore})[t]??o(t).label},"taskTypeMeta",0,o],34723)},56284,e=>{"use strict";var t=e.i(43476);e.s(["IconButton",0,function({icon:e,label:a,onClick:s,variant:r="default",disabled:n=!1}){return(0,t.jsx)("button",{type:"button","aria-label":a,title:a,onClick:s,disabled:n,className:`inline-flex h-7 w-7 items-center justify-center border transition-colors ${"danger"===r?"text-danger hover:bg-danger hover:text-bg border-danger":"text-text-muted hover:bg-elevated hover:text-text border-border"} ${n?"opacity-40":""}`,style:{transitionDuration:"var(--motion-fast)"},children:(0,t.jsx)(e,{size:14,"aria-hidden":!0})})}])},31343,e=>{"use strict";let t=(0,e.i(75254).default)("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);e.s(["Play",0,t],31343)},17521,e=>{"use strict";let t=(0,e.i(75254).default)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["default",0,t])},98715,e=>{"use strict";var t=e.i(24877);function a(e){let a=new Set(e.filter(e=>"epic"===e.type).map(e=>e.id)),s=new Map;for(let t of e)if(t.parent_id&&a.has(t.parent_id)){let e=s.get(t.parent_id)??[];e.push(t),s.set(t.parent_id,e)}for(let e of s.values())e.sort((e,a)=>((0,t.parseTs)(e.created_at)??0)-((0,t.parseTs)(a.created_at)??0));return s}e.s(["epicCapacity",0,function(e,a,s){let r=0;for(let s of e){let e=(0,t.taskSessionName)(s);"in_progress"===s.status&&e&&a.includes(e)&&r++}let n=Math.max(0,Number.isFinite(s)?Math.floor(s):0),l=Math.min(r,n);return{running:l,max:n,free:Math.max(0,n-l)}},"epicChildren",0,a,"epicEffectiveStatus",0,function(e,t,a=[]){return"epic"!==e.type?e.status:t.some(t=>t.epic_id===e.id&&"disengaged"!==t.state)?"in_progress":0===a.length?e.status:a.some(e=>"in_progress"===e.status)?"in_progress":a.some(e=>"blocked"===e.status)?"blocked":a.some(e=>"open"===e.status)?"open":"closed"},"epicLive",0,function(e,a,s){let r=0,n=0;for(let l of e){let e=(0,t.taskSessionName)(l);"in_progress"===l.status&&e&&a.includes(e)&&r++,e&&a.includes(e)&&s[e]?.type==="needs_input"&&n++}return{running:r,needsInput:n}},"epicProgress",0,function(e){return{done:e.filter(e=>"closed"===e.status||"cancelled"===e.status).length,total:e.length}},"phaseIds",0,function(e){let t=new Set;for(let s of a(e).values())for(let e of s)t.add(e.id);return t}])},64673,e=>{"use strict";var t=e.i(43476),a=e.i(24877);e.i(69530);var s=e.i(2942);let r={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}};e.s(["AgentStatusDot",0,function({signal:e,live:n=!1,size:l="md",stall:i,silenceSec:o=0}){let c,{t:d}=(0,s.useTranslation)(),u="stuck"===i?"stuck":"stalled"===i?"stalled":(0,a.liveState)(e,n),p=r[u],x="sm"===l?6:8;return c="stalled"===u?d.agent.stalled.replace("{min}",String(Math.max(1,Math.floor(o/60)))):"stuck"===u?d.agent.stuck.replace("{min}",String(Math.max(1,Math.floor(o/60)))):d.agent["idle"===u?"idle":"needs_input"===u?"needsInput":u],(0,t.jsx)("span",{className:`inline-block shrink-0 rounded-full ${p.pulse?"live-dot":""}`,style:{width:x,height:x,backgroundColor:p.color,"--live-ring":p.ring},role:"status","aria-label":c,title:c})}])},34182,74848,e=>{"use strict";let t={open:"success",in_progress:"warning",blocked:"danger",closed:"danger",cancelled:"muted"};e.s(["statusTone",0,function(e){return t[e]}],34182);var a=e.i(43476);e.s(["ProgressRibbon",0,function({phases:e,className:t=""}){return(0,a.jsx)("div",{className:`flex h-1.5 gap-0.5 overflow-hidden rounded-full ${t}`,children:0===e.length?(0,a.jsx)("div",{className:"h-full flex-1 rounded-full bg-elevated"}):e.map(e=>{let t;return(0,a.jsx)("div",{className:`h-full flex-1 rounded-full transition-colors ${"closed"===(t=e.status)?"bg-accent":"in_progress"===t?"bg-accent/60":"blocked"===t?"bg-danger":"cancelled"===t?"bg-elevated":"bg-border-strong"}`,style:{transitionDuration:"var(--motion-base)"},title:`${e.title} — ${e.status}`},e.id)})})}],74848)},64668,23622,2817,e=>{"use strict";var t=e.i(17521);e.s(["LoaderCircle",()=>t.default],64668);let a=(0,e.i(75254).default)("Ban",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]]);e.s(["Ban",0,a],23622);var s=e.i(56474);let r=[{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"}];e.s(["sessionActivity",0,function(e){if(!e||!e.trim())return"unknown";let t=e.split("\n").map(e=>(0,s.parseAnsi)(e).map(e=>e.text).join("")).join("\n").toLowerCase();for(let e of r)if(e.re.test(t))return e.cat;return"unknown"}],2817)},69,e=>{"use strict";var t=e.i(43476),a=e.i(71645),s=e.i(41382),r=e.i(46387),n=e.i(75254);let l=(0,n.default)("CalendarRange",[["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M17 14h-6",key:"bkmgh3"}],["path",{d:"M13 18H7",key:"bb0bb7"}],["path",{d:"M7 14h.01",key:"1qa3f1"}],["path",{d:"M17 18h.01",key:"1bdyru"}]]);var i=e.i(51981),o=e.i(24877),c=e.i(4552),d=e.i(14683),u=e.i(64668),p=e.i(23622),x=e.i(95468),m=e.i(73884),h=e.i(70956);let g=["open","in_progress","blocked","closed","cancelled"];var b=e.i(98715),k=e.i(58524),f=e.i(3116),y=e.i(89890),v=e.i(89901),j=e.i(64673);let w=(0,n.default)("Timer",[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]]);function N({task:e,showTime:a=!0,showIcon:s=!1,iconSize:r=14}){let{data:n}=(0,i.useConfig)(),l=(0,o.taskExec)(e.labels)||n?.defaults?.exec||"",c=(0,o.taskSessionName)(e)??(0,o.taskAgentName)(e)??l,d=a?(0,o.taskElapsed)(e,Date.now()):null;return c||d?(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-1.5 font-mono text-[11px] text-text-muted",children:[s?(0,t.jsx)(v.ModelIcon,{name:l,size:r}):null,c?(0,t.jsx)("span",{className:"truncate",children:c}):null,d?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"opacity-50",children:"·"}),(0,t.jsxs)("span",{className:"flex shrink-0 items-center gap-1",children:[(0,t.jsx)(w,{size:11,"aria-hidden":!0}),d]})]}):null]}):null}var S=e.i(63059),M=e.i(2817),C=e.i(93283);e.i(69530);var T=e.i(2942);function D({name:e}){let{t:a}=(0,T.useTranslation)(),{tail:s,isLoading:r}=(0,C.useSessionPane)(e,3),n=(0,o.tailSnippet)(s),l=(0,M.sessionActivity)(s);return(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-1.5",children:[(0,t.jsx)(S.ChevronRight,{size:12,className:"shrink-0 text-success","aria-hidden":!0}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-[11px] text-text-muted",children:n||(r?a.sessions.loading:a.sessions.noOutput)}),(0,t.jsx)(y.Badge,{tone:"error"===l?"danger":"prompted"===l?"warning":"unknown"===l?"muted":"accent",children:a.activity[l]})]})}function L({task:e,sessionName:a,blockers:s}){let{t:r}=(0,T.useTranslation)();if(a)return(0,t.jsx)(D,{name:a});if("closed"===e.status||"cancelled"===e.status){let a="fail"===e.outcome;return(0,t.jsxs)("p",{className:"flex min-w-0 items-center gap-1.5 text-[11px] text-text-muted",children:[a?(0,t.jsx)(m.XCircle,{size:12,className:"shrink-0 text-error","aria-hidden":!0}):(0,t.jsx)(x.CheckCircle2,{size:12,className:"shrink-0 text-success","aria-hidden":!0}),(0,t.jsx)("span",{className:"truncate",children:e.result_summary?.trim()||r.tasks.noSummary})]})}return s&&s.length>0?(0,t.jsxs)("p",{className:"flex min-w-0 items-center gap-1.5 text-[11px] text-danger",children:[(0,t.jsx)(k.Link2,{size:12,className:"shrink-0","aria-hidden":!0}),(0,t.jsx)("span",{className:"truncate",children:r.agent.waitingFor.replace("{deps}",s.map(e=>e.title).join(", "))})]}):"open"===e.status?(0,t.jsx)("p",{className:"text-[11px] text-text-muted opacity-70",children:r.agent.ready}):null}var _=e.i(81646),z=e.i(9236),P=e.i(34182),B=e.i(34723),$=e.i(91392),I=e.i(91842);function E({task:e,blocked:a,blockers:s,dragging:r,statusLabel:n,isPhase:l=!1,onSelect:c,onDragStart:d,onDragEnd:u}){let p,{t:x,locale:m}=(0,T.useTranslation)(),{data:h}=(0,i.useConfig)(),g=(0,i.useSessions)(),b=(0,o.taskSessionName)(e),w="in_progress"===e.status&&!!b&&(g.data??[]).includes(b),S=(0,i.useSessionSignal)(b??""),M=(0,I.useSessionStall)(b??"",w&&!!b),C=(0,o.taskExec)(e.labels)||h?.defaults?.exec||"",D=(0,B.taskTypeMeta)(e.type).icon,K="closed"===e.status||"cancelled"===e.status;return(0,t.jsxs)("div",{draggable:!a,onDragStart:d,onDragEnd:u,onClick:()=>c?.(e),className:`flex gap-2.5 rounded-md border bg-bg p-2.5 transition-all ${a?"cursor-pointer border-danger/40":"cursor-grab border-border hover:border-border-strong"} ${l?"ml-2 border-l-2 border-l-accent/40":""} ${r?"rotate-[1deg] opacity-50":""}`,children:[(0,t.jsx)("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-md border border-border bg-elevated",children:C?(0,t.jsx)(v.ModelIcon,{name:C,size:19}):(0,t.jsx)(D,{size:16,className:"text-text-muted","aria-hidden":!0})}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsx)("span",{className:"min-w-0 flex-1 text-sm text-text",children:e.title}),a?(0,t.jsx)("span",{className:"live-dot shrink-0 text-danger",style:{"--live-ring":"color-mix(in srgb, var(--color-error) 50%, transparent)"},title:x.kanban.blockedDeps,children:(0,t.jsx)(k.Link2,{size:13,"aria-hidden":!0})}):(0,t.jsx)("span",{className:"mt-1.5",children:(0,t.jsx)(j.AgentStatusDot,{signal:S,live:w,stall:M.state,silenceSec:M.silenceSec})})]}),(0,t.jsx)(N,{task:e}),(0,t.jsx)(L,{task:e,sessionName:w?b:null,blockers:s}),(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2 pt-0.5",children:[(0,t.jsx)("span",{className:"truncate font-mono text-[11px] text-text-muted",children:e.id}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-1.5",children:[(p=(0,$.formatTaskTime)(e.closed_at||e.created_at,Date.now(),m)).label?(0,t.jsx)("span",{title:p.title,children:(0,t.jsxs)(y.Badge,{tone:"muted",children:[(0,t.jsx)(f.Clock,{size:11,className:"mr-1 inline","aria-hidden":!0}),p.label]})}):null,K?(0,t.jsx)(_.OutcomeBadge,{outcome:e.outcome}):null,(0,t.jsx)(y.Badge,{tone:(0,P.statusTone)(e.status),children:n})]})]}),null!=e.project_id?(0,t.jsx)("div",{className:"flex",children:(0,t.jsx)(z.ProjectPill,{projectId:e.project_id})}):null]})]})}var K=e.i(27612),A=e.i(74848),O=e.i(20885),F=e.i(29618),R=e.i(80809);function q({epic:e,phases:s,expanded:r,onToggle:n,effectiveStatus:l,trueStatusLabel:o}){let{t:d}=(0,T.useTranslation)(),u=(0,i.useSessions)(),p=(0,i.useSessionSignals)(),{toast:x}=(0,R.useToast)(),m=(0,c.useDeleteMission)(),[h,g]=(0,a.useState)(!1),{done:k,total:f}=(0,b.epicProgress)(s),{running:y,needsInput:v}=(0,b.epicLive)(s,u.data??[],p),j=(0,B.taskTypeMeta)("epic").icon,w=v>0||y>0,N="in_progress"===l&&"in_progress"!==e.status,M=N&&o?d.kanban.trueStatusTooltip.replace("{status}",o):void 0;return(0,t.jsxs)("div",{role:"button",tabIndex:0,"aria-expanded":r,"aria-label":`${e.title} — ${r?d.tasks.collapsePhases:d.tasks.expandPhases}`,title:M,onClick:n,onKeyDown:e=>{"Enter"===e.key&&n()},className:"group flex cursor-pointer flex-col gap-2 rounded-md border border-accent/30 bg-accent/[0.04] p-2.5 transition-colors hover:border-accent/50",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(S.ChevronRight,{size:14,className:`shrink-0 text-text-muted transition-transform ${r?"rotate-90":""}`,"aria-hidden":!0}),(0,t.jsx)("span",{className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-md border border-border bg-elevated",children:(0,t.jsx)(j,{size:15,className:"text-accent","aria-hidden":!0})}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate text-sm font-semibold text-text",children:e.title}),N?(0,t.jsx)("span",{className:"shrink-0 rounded border border-accent/40 px-1 font-mono text-[10px] uppercase tracking-wide text-accent","aria-hidden":!0,children:o}):null,w?(0,t.jsx)("span",{className:`h-2 w-2 shrink-0 rounded-full ${w?"live-dot":""}`,style:{backgroundColor:v>0?"var(--color-warning)":y>0?"var(--color-success)":"var(--color-border-strong)","--live-ring":v>0?"color-mix(in srgb, var(--color-warning) 50%, transparent)":"color-mix(in srgb, var(--color-success) 50%, transparent)"},"aria-hidden":!0}):null,(0,t.jsx)("div",{className:"shrink-0 opacity-0 transition-opacity group-hover:opacity-100",onClick:e=>e.stopPropagation(),children:(0,t.jsx)(O.ActionMenu,{label:d.tasks.deleteMission,items:[{label:d.tasks.deleteMission,icon:K.Trash2,tone:"danger",onSelect:()=>g(!0)}]})})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 pl-6",children:[(0,t.jsx)(A.ProgressRibbon,{phases:s,className:"flex-1"}),(0,t.jsxs)("span",{className:"shrink-0 font-mono text-[11px] text-text-muted",children:[k,"/",f]})]}),null!=e.project_id?(0,t.jsx)("div",{className:"flex pl-6",children:(0,t.jsx)(z.ProjectPill,{projectId:e.project_id})}):null,h&&(0,t.jsx)("div",{onClick:e=>e.stopPropagation(),children:(0,t.jsx)(F.ConfirmDialog,{open:h,title:d.tasks.confirmDeleteMissionTitle.replace("{id}",e.id),description:d.tasks.confirmDeleteMissionDescription,confirmLabel:d.tasks.deleteMission,onClose:()=>g(!1),onConfirm:()=>{g(!1),m.mutate(e.id,{onSuccess:()=>x(d.tasks.missionDeleted.replace("{id}",e.id)),onError:e=>x(String(e),"error")})}})})]})}let H=[{status:"open",labelKey:"columnOpen",icon:d.Circle,color:"var(--color-success)"},{status:"in_progress",labelKey:"columnInProgress",icon:u.LoaderCircle,color:"var(--color-warning)"},{status:"blocked",labelKey:"columnBlocked",icon:p.Ban,color:"var(--color-error)"},{status:"closed",labelKey:"columnClosed",icon:x.CheckCircle2,color:"var(--color-error)"},{status:"cancelled",labelKey:"columnCancelled",icon:m.XCircle,color:"var(--color-cancelled)"}];function U({tasks:e,onMove:s,onSelect:r,blockedBy:n,missions:l}){let{t:i}=(0,T.useTranslation)(),o=l??[],c=(0,b.epicChildren)(e),d=(0,b.phaseIds)(e),u=e=>"epic"===e.type?(0,b.epicEffectiveStatus)(e,o,c.get(e.id)??[]):e.status,p=function(e,t=e=>e.status){let a=Object.fromEntries(g.map(e=>[e,[]]));for(let s of e)(a[t(s)]??=[]).push(s);return a}(e,u),x=new Map(e.map(e=>[e.id,e])),[m,k]=(0,a.useState)(null),[f,y]=(0,a.useState)(null),[v,j]=(0,a.useState)(new Set),w=(e,a)=>{let s=n?.get(e.id)??[];return(0,t.jsx)(E,{task:e,isPhase:a,blocked:s.length>0,blockers:s,dragging:f===e.id,statusLabel:(0,B.statusLabel)(i,e.status),onSelect:r,onDragStart:t=>{t.dataTransfer.setData("text/plain",e.id),y(e.id)},onDragEnd:()=>{y(null),k(null)}},e.id)};return(0,t.jsx)("div",{className:"flex gap-3 overflow-x-auto",children:H.map(e=>{let r=i.kanban[e.labelKey],n=m===e.status;return(0,t.jsxs)("div",{"data-testid":`column-${e.status}`,className:`flex w-[80vw] shrink-0 flex-col gap-2 rounded-lg border bg-surface p-2 transition-colors sm:w-auto sm:min-w-[14rem] sm:shrink sm:flex-1 ${n?"border-accent/60 bg-elevated/40":"border-border"}`,onDragOver:t=>{t.preventDefault(),m!==e.status&&k(e.status)},onDragLeave:t=>{t.currentTarget.contains(t.relatedTarget)||k(t=>t===e.status?null:t)},onDrop:t=>{t.preventDefault(),k(null),y(null);let a=t.dataTransfer.getData("text/plain");a&&x.get(a)?.status!==e.status&&s(a,e.status)},children:[(0,t.jsxs)("header",{className:"flex items-center justify-between px-1 font-mono uppercase tracking-widest text-text-muted",style:{fontSize:"var(--text-caption)"},children:[(0,t.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(e.icon,{size:12,style:{color:e.color},"aria-hidden":!0}),r]}),(0,t.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,t.jsx)(h.List,{size:11,className:"text-text-muted","aria-hidden":!0}),p[e.status].filter(e=>!d.has(e.id)).length]})]}),p[e.status].map(e=>{if("epic"===e.type&&c.has(e.id)){let s=c.get(e.id)??[];return(0,t.jsxs)(a.Fragment,{children:[(0,t.jsx)(q,{epic:e,phases:s,expanded:v.has(e.id),onToggle:()=>{let t;return t=e.id,j(e=>{let a=new Set(e);return a.has(t)?a.delete(t):a.add(t),a})},effectiveStatus:u(e),trueStatusLabel:(0,B.statusLabel)(i,e.status)}),v.has(e.id)?s.map(e=>w(e,!0)):null]},e.id)}return d.has(e.id)?null:w(e,!1)})]},e.status)})})}var X=e.i(73375),V=e.i(89853);let W=(0,n.default)("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]),Y=(0,n.default)("CalendarPlus",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 13V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h8",key:"3spt84"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M16 19h6",key:"xwg31i"}],["path",{d:"M19 16v6",key:"tddt3s"}]]);var Z=e.i(7233),G=e.i(84375),J=e.i(76525),Q=e.i(42113),ee=e.i(40310);let et=(e,t)=>e?new Date(e).toLocaleTimeString(t,{hour:"2-digit",minute:"2-digit"}):"";function ea({task:e,onSelect:a,locale:s,draggable:r}){let n=(0,B.taskTypeMeta)(e.type).icon;return(0,t.jsxs)("button",{type:"button",draggable:r,onDragStart:r?t=>{t.dataTransfer.setData("application/x-task",e.id),t.dataTransfer.effectAllowed="move"}:void 0,onClick:()=>a(e),className:`flex w-full items-center gap-1.5 rounded-md border border-border bg-bg px-1.5 py-1 text-left transition-colors hover:border-border-strong ${r?"cursor-grab active:cursor-grabbing":""}`,title:e.title,children:[(0,t.jsx)(n,{size:12,className:"shrink-0 text-text-muted","aria-hidden":!0}),(0,t.jsx)("span",{className:"font-mono text-tiny text-text-muted",children:et((0,Q.taskCalDate)(e),s)}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate text-[11px] text-text",children:e.title})]})}function es({tasks:e,onSelect:s,onCreateDay:r,onReschedule:n}){let i,{t:o,locale:c}=(0,T.useTranslation)(),[d,u]=(0,a.useState)(null),p=e=>n?{onDragOver:t=>{t.preventDefault();let a=(0,Q.dayKey)(e);d!==a&&u(a)},onDragLeave:t=>{t.currentTarget.contains(t.relatedTarget)||u(t=>t===(0,Q.dayKey)(e)?null:t)},onDrop:t=>{t.preventDefault(),u(null);let a=t.dataTransfer.getData("application/x-task");a&&n(a,e)}}:{},x=[o.calendar.shortMon,o.calendar.shortTue,o.calendar.shortWed,o.calendar.shortThu,o.calendar.shortFri,o.calendar.shortSat,o.calendar.shortSun],[m,h]=(0,ee.usePersistentState)("orca.calendar.range","week",["day","week","month"]),[g,b]=(0,a.useState)(()=>new Date),k=(0,Q.tasksByDay)(e),f=(0,Q.countUnscheduled)(e),v=new Date,j=e=>k.get((0,Q.dayKey)(e))??[],w="month"===m?g.toLocaleDateString(c,{month:"long",year:"numeric"}):"day"===m?g.toLocaleDateString(c,{weekday:"long",month:"short",day:"numeric"}):(i=(0,Q.weekDays)(g),`${i[0].toLocaleDateString(c,{month:"short",day:"numeric"})} – ${i[6].toLocaleDateString(c,{month:"short",day:"numeric"})}`);return(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[(0,t.jsx)(G.Segmented,{value:m,onChange:e=>h(e),options:[{value:"day",label:o.calendar.day,icon:W},{value:"week",label:o.calendar.week,icon:l},{value:"month",label:o.calendar.month,icon:V.CalendarDays}]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-sm font-medium text-text",children:w}),(0,t.jsx)(J.Button,{variant:"ghost",onClick:()=>b(new Date),children:o.calendar.today}),(0,t.jsx)("button",{type:"button","aria-label":o.calendar.previous,onClick:()=>b(e=>(0,Q.shift)(e,m,-1)),className:"flex h-8 w-8 items-center justify-center rounded-md border border-border text-text-muted transition-colors hover:text-text",children:(0,t.jsx)(X.ChevronLeft,{size:16})}),(0,t.jsx)("button",{type:"button","aria-label":o.calendar.next,onClick:()=>b(e=>(0,Q.shift)(e,m,1)),className:"flex h-8 w-8 items-center justify-center rounded-md border border-border text-text-muted transition-colors hover:text-text",children:(0,t.jsx)(S.ChevronRight,{size:16})})]})]}),"day"===m&&(0,t.jsxs)("div",{className:"flex flex-col gap-2 rounded-lg border border-border bg-surface p-3",children:[0===j(g).length?(0,t.jsx)("p",{className:"px-1 py-6 text-center text-sm text-text-muted",children:o.calendar.noTasks}):j(g).map(e=>(0,t.jsxs)("button",{type:"button",onClick:()=>s(e),className:"flex items-center gap-3 rounded-md border border-border bg-bg px-3 py-2 text-left transition-colors hover:border-border-strong",children:[(0,t.jsx)("span",{className:"font-mono text-xs text-text-muted",children:et((0,Q.taskCalDate)(e),c)}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate text-sm text-text",children:e.title}),(0,t.jsx)(y.Badge,{tone:(0,P.statusTone)(e.status),children:(0,B.statusLabel)(o,e.status)})]},e.id)),r?(0,t.jsxs)("button",{type:"button",onClick:()=>r(g),className:"flex items-center justify-center gap-1.5 rounded-md border border-dashed border-border px-3 py-2 text-sm text-text-muted transition-colors hover:border-accent hover:text-accent",children:[(0,t.jsx)(Z.Plus,{size:14,"aria-hidden":!0})," ",o.tasks.newTask]}):null]}),"week"===m&&(0,t.jsx)("div",{className:"grid grid-cols-1 gap-2 sm:grid-cols-7",children:(0,Q.weekDays)(g).map(e=>(0,t.jsxs)("div",{...p(e),className:`group flex min-h-[8rem] flex-col gap-1.5 rounded-lg border bg-surface p-2 transition-shadow ${d===(0,Q.dayKey)(e)||(0,Q.sameDay)(e,v)?"border-accent":"border-border"}`,children:[(0,t.jsxs)("div",{className:"flex items-center justify-between px-0.5",children:[(0,t.jsx)("span",{className:"text-[11px] font-medium uppercase tracking-wide text-text-muted",children:x[(e.getDay()+6)%7]}),(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[r?(0,t.jsx)("button",{type:"button",onClick:()=>r(e),"aria-label":o.tasks.newTask,className:"text-text-muted opacity-0 transition-opacity hover:text-accent group-hover:opacity-100",children:(0,t.jsx)(Z.Plus,{size:13})}):null,(0,t.jsx)("span",{className:`text-xs ${(0,Q.sameDay)(e,v)?"text-accent":"text-text-muted"}`,children:e.getDate()})]})]}),j(e).map(e=>(0,t.jsx)(ea,{task:e,onSelect:s,locale:c,draggable:!!n},e.id))]},(0,Q.dayKey)(e)))}),"month"===m&&(0,t.jsxs)("div",{className:"overflow-hidden rounded-lg border border-border",children:[(0,t.jsx)("div",{className:"grid grid-cols-7 border-b border-border bg-surface",children:x.map(e=>(0,t.jsx)("div",{className:"px-2 py-1.5 text-center text-[11px] font-medium uppercase tracking-wide text-text-muted",children:e},e))}),(0,t.jsx)("div",{className:"grid grid-cols-7",children:(0,Q.monthMatrix)(g).flat().map(e=>{let a=e.getMonth()===g.getMonth(),l=j(e);return(0,t.jsxs)("div",{...p(e),className:`group min-h-[6.5rem] border-b border-r p-1.5 transition-shadow ${d===(0,Q.dayKey)(e)?"border-accent":"border-border"} ${a?"bg-surface":"bg-bg"}`,children:[(0,t.jsxs)("div",{className:"mb-1 flex items-center justify-between",children:[r?(0,t.jsx)("button",{type:"button",onClick:()=>r(e),"aria-label":o.tasks.newTask,className:"text-text-muted opacity-0 transition-opacity hover:text-accent group-hover:opacity-100",children:(0,t.jsx)(Z.Plus,{size:12})}):(0,t.jsx)("span",{}),(0,t.jsx)("span",{className:`text-[11px] ${(0,Q.sameDay)(e,v)?"font-bold text-accent":a?"text-text-muted":"text-text-muted/40"}`,children:e.getDate()})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[l.slice(0,3).map(e=>(0,t.jsx)(ea,{task:e,onSelect:s,locale:c,draggable:!!n},e.id)),l.length>3?(0,t.jsx)("span",{className:"px-1 text-tiny text-text-muted",children:o.calendar.nMore.replace("{count}",String(l.length-3))}):null]})]},(0,Q.dayKey)(e))})})]}),f>0?(0,t.jsxs)("p",{className:"flex items-center gap-1.5 text-xs text-text-muted",children:[(0,t.jsx)(Y,{size:12,className:"shrink-0 text-text-muted","aria-hidden":!0}),o.calendar.unscheduled.replace("{count}",String(f)).replace("{s}",1===f?"":"s")]}):null]})}var er=e.i(38112),en=e.i(22915),el=e.i(31245);let ei=(0,n.default)("CalendarCheck",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]]);var eo=e.i(46040),ec=e.i(88242);function ed({task:e,onClose:a}){let{t:s,locale:r}=(0,T.useTranslation)(),{data:n}=(0,i.useConfig)(),l=(0,o.taskExec)(e.labels),c=l||n?.defaults?.exec||"",d=(0,o.taskSessionName)(e),u="fail"===e.outcome,p=e.outcome?u?m.XCircle:x.CheckCircle2:en.Archive,h=e.closed_at||e.created_at,g=(0,$.formatTaskTime)(h,Date.now(),r),b=(0,o.taskStartedMs)(e),k=(0,o.parseTs)(e.closed_at),j=null!=b&&null!=k&&k>=b?(0,$.formatDuration)(k-b):null,w=[];return(l||c)&&w.push({icon:el.Bot,label:s.tasks.resultExecutor,value:l||c,modelIcon:c}),d&&w.push({icon:el.Bot,label:s.tasks.resultAgent,value:d}),g.label&&w.push({icon:ei,label:s.tasks.resultFinished,value:g.label}),j&&w.push({icon:f.Clock,label:s.tasks.resultDuration,value:j}),(0,t.jsxs)(eo.Modal,{title:e.title,description:e.id,onClose:a,size:"md",icon:p,children:[(0,t.jsxs)(eo.ModalBody,{children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[(0,t.jsx)(y.Badge,{tone:(0,P.statusTone)(e.status),children:(0,B.statusLabel)(s,e.status)}),(0,t.jsx)(_.OutcomeBadge,{outcome:e.outcome}),l?(0,t.jsx)(y.Badge,{children:l}):null,(0,t.jsx)(ec.TaskUsageBadge,{taskId:e.id})]}),w.length>0?(0,t.jsx)("dl",{className:"grid grid-cols-2 gap-2",children:w.map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-1 rounded-md border border-border bg-elevated/40 p-2.5",children:[(0,t.jsxs)("dt",{className:"flex items-center gap-1.5 text-[11px] font-semibold uppercase tracking-wide text-text-muted",children:[(0,t.jsx)(e.icon,{size:12,"aria-hidden":!0})," ",e.label]}),(0,t.jsxs)("dd",{className:"flex min-w-0 items-center gap-1.5 text-sm text-text",children:[e.modelIcon?(0,t.jsx)(v.ModelIcon,{name:e.modelIcon,size:16}):null,(0,t.jsx)("span",{className:"min-w-0 truncate font-mono text-xs",title:g.title||e.value,children:e.value})]})]},e.label))}):null,e.description?.trim()?(0,t.jsx)(eu,{label:s.tasks.fieldDetails,children:(0,t.jsx)("p",{className:"whitespace-pre-wrap text-sm leading-relaxed text-text-muted",children:e.description})}):null,(0,t.jsx)(eu,{label:s.tasks.resultTitle,children:(0,t.jsx)("p",{className:"whitespace-pre-wrap text-sm leading-relaxed text-text-muted",children:e.result_summary?.trim()||s.tasks.noSummary})})]}),(0,t.jsx)(eo.ModalFooter,{children:(0,t.jsx)(J.Button,{variant:"accent",onClick:a,children:s.tasks.done})})]})}function eu({label:e,children:a}){return(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)("span",{className:"text-[11px] font-semibold uppercase tracking-wide text-text-muted",children:e}),a]})}var ep=e.i(51509),ex=e.i(53992),em=e.i(44375),eh=e.i(26178),eg=e.i(11476);e.s(["default",0,function(){let{selectedProject:e,setProject:n}=(0,eg.useProjectFilter)("orca.kanban.project"),d=(0,i.useTasks)("all"===e?void 0:e),u=(0,i.useAllDeps)(),p=(0,i.useMissions)(),x=(0,c.useSetTaskStatus)(),m=(0,c.useUpdateTask)(),{toast:h}=(0,R.useToast)(),{t:g}=(0,T.useTranslation)(),[b,k]=(0,ee.usePersistentState)("orca.kanban.view","board",["board","calendar"]),[f,y]=(0,a.useState)(null),[v,j]=(0,a.useState)(null),[w,N]=(0,a.useState)(null),S=e=>("closed"===e.status||"cancelled"===e.status?j:y)(e),M=new Map((d.data??[]).map(e=>[e.id,e])),C=new Map;for(let e of d.data??[]){let t=(0,o.taskBlockers)(e.id,u.data??[],M);t.length>0&&C.set(e.id,t)}return(0,t.jsxs)(eh.ModuleShell,{moduleId:"kanban",children:[(0,t.jsx)(ep.ModuleHeader,{title:g.page.kanban,count:d.data?.length,icon:s.KanbanSquare,children:(0,t.jsx)(G.Segmented,{value:b,onChange:e=>k(e),options:[{value:"board",label:g.kanban.board,icon:r.Columns3},{value:"calendar",label:g.kanban.calendar,icon:l}]})}),(0,t.jsx)(ex.ProjectFilterPills,{value:e,onChange:n}),d.isLoading?(0,t.jsx)(em.LoadingState,{variant:"board"===b?"kanban":"cards"}):d.isError?(0,t.jsx)(em.ErrorState,{message:g.common.daemonUnreachable,onRetry:()=>d.refetch()}):"board"===b?(0,t.jsx)(U,{tasks:d.data??[],blockedBy:C,missions:p.data??[],onMove:(e,t)=>x.mutate({id:e,status:t},{onError:e=>h(String(e),"error")}),onSelect:S}):(0,t.jsx)(es,{tasks:d.data??[],onSelect:S,onCreateDay:e=>{let t=new Date(e);t.setHours(9,0,0,0),N(t.toISOString())},onReschedule:(e,t)=>{let a=(d.data??[]).find(t=>t.id===e),s=a?.scheduled_at?new Date(a.scheduled_at):null,r=new Date(t);r.setHours(s?s.getHours():9,s?s.getMinutes():0,0,0),m.mutate({id:e,patch:{scheduled_at:r.toISOString()}},{onError:e=>h(String(e),"error")})}}),f&&(0,t.jsx)(er.TaskModal,{task:f,onClose:()=>y(null)}),v&&(0,t.jsx)(ed,{task:v,onClose:()=>j(null)}),w&&(0,t.jsx)(er.TaskModal,{initialSchedule:w,onClose:()=>N(null)})]})},"dynamic",0,"force-dynamic"],69)}]);