@chorus-aidlc/chorus 0.12.0 → 0.12.1

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 (263) hide show
  1. package/.next/standalone/.next/BUILD_ID +1 -1
  2. package/.next/standalone/.next/app-build-manifest.json +364 -363
  3. package/.next/standalone/.next/app-path-routes-manifest.json +43 -43
  4. package/.next/standalone/.next/build-manifest.json +5 -5
  5. package/.next/standalone/.next/prerender-manifest.json +43 -43
  6. package/.next/standalone/.next/react-loadable-manifest.json +3 -3
  7. package/.next/standalone/.next/server/app/(dashboard)/project-groups/[uuid]/page.js +1 -1
  8. package/.next/standalone/.next/server/app/(dashboard)/project-groups/[uuid]/page.js.nft.json +1 -1
  9. package/.next/standalone/.next/server/app/(dashboard)/project-groups/[uuid]/page_client-reference-manifest.js +1 -1
  10. package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/activity/page.js +2 -2
  11. package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/activity/page.js.nft.json +1 -1
  12. package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/activity/page_client-reference-manifest.js +1 -1
  13. package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/dashboard/[ideaUuid]/page.js +2 -2
  14. package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/dashboard/[ideaUuid]/page.js.nft.json +1 -1
  15. package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/dashboard/[ideaUuid]/page_client-reference-manifest.js +1 -1
  16. package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/dashboard/page.js +2 -2
  17. package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/dashboard/page.js.nft.json +1 -1
  18. package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/dashboard/page_client-reference-manifest.js +1 -1
  19. package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/documents/[documentUuid]/page.js +2 -2
  20. package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/documents/[documentUuid]/page.js.nft.json +1 -1
  21. package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/documents/[documentUuid]/page_client-reference-manifest.js +1 -1
  22. package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/documents/page.js +2 -2
  23. package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/documents/page.js.nft.json +1 -1
  24. package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/documents/page_client-reference-manifest.js +1 -1
  25. package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/proposals/[proposalUuid]/page.js +2 -2
  26. package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/proposals/[proposalUuid]/page.js.nft.json +1 -1
  27. package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/proposals/[proposalUuid]/page_client-reference-manifest.js +1 -1
  28. package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/proposals/new/page.js +2 -2
  29. package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/proposals/new/page.js.nft.json +1 -1
  30. package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/proposals/new/page_client-reference-manifest.js +1 -1
  31. package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/proposals/page.js +2 -2
  32. package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/proposals/page.js.nft.json +1 -1
  33. package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/proposals/page_client-reference-manifest.js +1 -1
  34. package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/tasks/[taskUuid]/page.js +1 -1
  35. package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/tasks/[taskUuid]/page.js.nft.json +1 -1
  36. package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/tasks/[taskUuid]/page_client-reference-manifest.js +1 -1
  37. package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/tasks/page.js +1 -1
  38. package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/tasks/page.js.nft.json +1 -1
  39. package/.next/standalone/.next/server/app/(dashboard)/projects/[uuid]/tasks/page_client-reference-manifest.js +1 -1
  40. package/.next/standalone/.next/server/app/(dashboard)/projects/page.js +1 -1
  41. package/.next/standalone/.next/server/app/(dashboard)/projects/page.js.nft.json +1 -1
  42. package/.next/standalone/.next/server/app/(dashboard)/projects/page_client-reference-manifest.js +1 -1
  43. package/.next/standalone/.next/server/app/(dashboard)/settings/page.js +2 -2
  44. package/.next/standalone/.next/server/app/(dashboard)/settings/page.js.nft.json +1 -1
  45. package/.next/standalone/.next/server/app/(dashboard)/settings/page_client-reference-manifest.js +1 -1
  46. package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  47. package/.next/standalone/.next/server/app/_not-found.html +1 -1
  48. package/.next/standalone/.next/server/app/_not-found.rsc +1 -1
  49. package/.next/standalone/.next/server/app/admin/companies/[uuid]/page_client-reference-manifest.js +1 -1
  50. package/.next/standalone/.next/server/app/admin/companies/new/page_client-reference-manifest.js +1 -1
  51. package/.next/standalone/.next/server/app/admin/companies/new.html +1 -1
  52. package/.next/standalone/.next/server/app/admin/companies/new.rsc +1 -1
  53. package/.next/standalone/.next/server/app/admin/companies/page_client-reference-manifest.js +1 -1
  54. package/.next/standalone/.next/server/app/admin/companies.html +1 -1
  55. package/.next/standalone/.next/server/app/admin/companies.rsc +1 -1
  56. package/.next/standalone/.next/server/app/admin/page_client-reference-manifest.js +1 -1
  57. package/.next/standalone/.next/server/app/admin.html +1 -1
  58. package/.next/standalone/.next/server/app/admin.rsc +1 -1
  59. package/.next/standalone/.next/server/app/api/admin/companies/[uuid]/route_client-reference-manifest.js +1 -1
  60. package/.next/standalone/.next/server/app/api/admin/companies/route_client-reference-manifest.js +1 -1
  61. package/.next/standalone/.next/server/app/api/admin/login/route_client-reference-manifest.js +1 -1
  62. package/.next/standalone/.next/server/app/api/admin/session/route_client-reference-manifest.js +1 -1
  63. package/.next/standalone/.next/server/app/api/agent-connections/route_client-reference-manifest.js +1 -1
  64. package/.next/standalone/.next/server/app/api/agents/[uuid]/route_client-reference-manifest.js +1 -1
  65. package/.next/standalone/.next/server/app/api/agents/[uuid]/sessions/route_client-reference-manifest.js +1 -1
  66. package/.next/standalone/.next/server/app/api/agents/route_client-reference-manifest.js +1 -1
  67. package/.next/standalone/.next/server/app/api/api-keys/[uuid]/route_client-reference-manifest.js +1 -1
  68. package/.next/standalone/.next/server/app/api/api-keys/route_client-reference-manifest.js +1 -1
  69. package/.next/standalone/.next/server/app/api/auth/callback/route_client-reference-manifest.js +1 -1
  70. package/.next/standalone/.next/server/app/api/auth/check-default/route_client-reference-manifest.js +1 -1
  71. package/.next/standalone/.next/server/app/api/auth/company-oidc/route_client-reference-manifest.js +1 -1
  72. package/.next/standalone/.next/server/app/api/auth/default-login/route_client-reference-manifest.js +1 -1
  73. package/.next/standalone/.next/server/app/api/auth/identify/route_client-reference-manifest.js +1 -1
  74. package/.next/standalone/.next/server/app/api/auth/logout/route_client-reference-manifest.js +1 -1
  75. package/.next/standalone/.next/server/app/api/auth/me/route_client-reference-manifest.js +1 -1
  76. package/.next/standalone/.next/server/app/api/auth/refresh/route_client-reference-manifest.js +1 -1
  77. package/.next/standalone/.next/server/app/api/auth/session/route_client-reference-manifest.js +1 -1
  78. package/.next/standalone/.next/server/app/api/auth/sync-token/route_client-reference-manifest.js +1 -1
  79. package/.next/standalone/.next/server/app/api/comments/route_client-reference-manifest.js +1 -1
  80. package/.next/standalone/.next/server/app/api/daemon/control/route_client-reference-manifest.js +1 -1
  81. package/.next/standalone/.next/server/app/api/daemon/execution-state/route_client-reference-manifest.js +1 -1
  82. package/.next/standalone/.next/server/app/api/daemon/executions/route_client-reference-manifest.js +1 -1
  83. package/.next/standalone/.next/server/app/api/daemon/pending-turns/route_client-reference-manifest.js +1 -1
  84. package/.next/standalone/.next/server/app/api/daemon/report-interrupt/route_client-reference-manifest.js +1 -1
  85. package/.next/standalone/.next/server/app/api/daemon/resume/route_client-reference-manifest.js +1 -1
  86. package/.next/standalone/.next/server/app/api/daemon/transcript/route_client-reference-manifest.js +1 -1
  87. package/.next/standalone/.next/server/app/api/daemon/turn-advance/route_client-reference-manifest.js +1 -1
  88. package/.next/standalone/.next/server/app/api/daemon-sessions/[sessionUuid]/instruction/route_client-reference-manifest.js +1 -1
  89. package/.next/standalone/.next/server/app/api/daemon-sessions/[sessionUuid]/repoint/route_client-reference-manifest.js +1 -1
  90. package/.next/standalone/.next/server/app/api/daemon-sessions/[sessionUuid]/route_client-reference-manifest.js +1 -1
  91. package/.next/standalone/.next/server/app/api/daemon-sessions/ad-hoc/route_client-reference-manifest.js +1 -1
  92. package/.next/standalone/.next/server/app/api/daemon-sessions/route_client-reference-manifest.js +1 -1
  93. package/.next/standalone/.next/server/app/api/documents/[uuid]/route_client-reference-manifest.js +1 -1
  94. package/.next/standalone/.next/server/app/api/entities/[type]/[uuid]/root-idea/route_client-reference-manifest.js +1 -1
  95. package/.next/standalone/.next/server/app/api/events/notifications/route.js +6 -4
  96. package/.next/standalone/.next/server/app/api/events/notifications/route_client-reference-manifest.js +1 -1
  97. package/.next/standalone/.next/server/app/api/events/route.js +7 -5
  98. package/.next/standalone/.next/server/app/api/events/route_client-reference-manifest.js +1 -1
  99. package/.next/standalone/.next/server/app/api/health/route_client-reference-manifest.js +1 -1
  100. package/.next/standalone/.next/server/app/api/ideas/[uuid]/claim/route_client-reference-manifest.js +1 -1
  101. package/.next/standalone/.next/server/app/api/ideas/[uuid]/move/preview/route_client-reference-manifest.js +1 -1
  102. package/.next/standalone/.next/server/app/api/ideas/[uuid]/move/route_client-reference-manifest.js +1 -1
  103. package/.next/standalone/.next/server/app/api/ideas/[uuid]/parent/route_client-reference-manifest.js +1 -1
  104. package/.next/standalone/.next/server/app/api/ideas/[uuid]/release/route_client-reference-manifest.js +1 -1
  105. package/.next/standalone/.next/server/app/api/ideas/[uuid]/route_client-reference-manifest.js +1 -1
  106. package/.next/standalone/.next/server/app/api/keepalive/route_client-reference-manifest.js +1 -1
  107. package/.next/standalone/.next/server/app/api/mcp/route_client-reference-manifest.js +1 -1
  108. package/.next/standalone/.next/server/app/api/me/assignments/route_client-reference-manifest.js +1 -1
  109. package/.next/standalone/.next/server/app/api/mentionables/route_client-reference-manifest.js +1 -1
  110. package/.next/standalone/.next/server/app/api/notifications/[uuid]/archive/route_client-reference-manifest.js +1 -1
  111. package/.next/standalone/.next/server/app/api/notifications/[uuid]/read/route_client-reference-manifest.js +1 -1
  112. package/.next/standalone/.next/server/app/api/notifications/preferences/route_client-reference-manifest.js +1 -1
  113. package/.next/standalone/.next/server/app/api/notifications/read-all/route_client-reference-manifest.js +1 -1
  114. package/.next/standalone/.next/server/app/api/notifications/route_client-reference-manifest.js +1 -1
  115. package/.next/standalone/.next/server/app/api/notifications/unread-count/route_client-reference-manifest.js +1 -1
  116. package/.next/standalone/.next/server/app/api/project-groups/[uuid]/dashboard/route_client-reference-manifest.js +1 -1
  117. package/.next/standalone/.next/server/app/api/project-groups/[uuid]/route_client-reference-manifest.js +1 -1
  118. package/.next/standalone/.next/server/app/api/project-groups/route_client-reference-manifest.js +1 -1
  119. package/.next/standalone/.next/server/app/api/projects/[uuid]/activity/route_client-reference-manifest.js +1 -1
  120. package/.next/standalone/.next/server/app/api/projects/[uuid]/available/route_client-reference-manifest.js +1 -1
  121. package/.next/standalone/.next/server/app/api/projects/[uuid]/documents/route_client-reference-manifest.js +1 -1
  122. package/.next/standalone/.next/server/app/api/projects/[uuid]/group/route_client-reference-manifest.js +1 -1
  123. package/.next/standalone/.next/server/app/api/projects/[uuid]/ideas/route_client-reference-manifest.js +1 -1
  124. package/.next/standalone/.next/server/app/api/projects/[uuid]/ideas/tracker/route_client-reference-manifest.js +1 -1
  125. package/.next/standalone/.next/server/app/api/projects/[uuid]/proposals/[proposalUuid]/validate/route_client-reference-manifest.js +1 -1
  126. package/.next/standalone/.next/server/app/api/projects/[uuid]/proposals/route_client-reference-manifest.js +1 -1
  127. package/.next/standalone/.next/server/app/api/projects/[uuid]/proposals/summary/route_client-reference-manifest.js +1 -1
  128. package/.next/standalone/.next/server/app/api/projects/[uuid]/route_client-reference-manifest.js +1 -1
  129. package/.next/standalone/.next/server/app/api/projects/[uuid]/stats/route_client-reference-manifest.js +1 -1
  130. package/.next/standalone/.next/server/app/api/projects/[uuid]/tasks/dependencies/route_client-reference-manifest.js +1 -1
  131. package/.next/standalone/.next/server/app/api/projects/[uuid]/tasks/route_client-reference-manifest.js +1 -1
  132. package/.next/standalone/.next/server/app/api/projects/route_client-reference-manifest.js +1 -1
  133. package/.next/standalone/.next/server/app/api/proposals/[uuid]/approve/route_client-reference-manifest.js +1 -1
  134. package/.next/standalone/.next/server/app/api/proposals/[uuid]/close/route_client-reference-manifest.js +1 -1
  135. package/.next/standalone/.next/server/app/api/proposals/[uuid]/reject/route_client-reference-manifest.js +1 -1
  136. package/.next/standalone/.next/server/app/api/proposals/[uuid]/revoke/route_client-reference-manifest.js +1 -1
  137. package/.next/standalone/.next/server/app/api/proposals/[uuid]/route_client-reference-manifest.js +1 -1
  138. package/.next/standalone/.next/server/app/api/search/route_client-reference-manifest.js +1 -1
  139. package/.next/standalone/.next/server/app/api/sessions/[uuid]/route_client-reference-manifest.js +1 -1
  140. package/.next/standalone/.next/server/app/api/tasks/[uuid]/claim/route_client-reference-manifest.js +1 -1
  141. package/.next/standalone/.next/server/app/api/tasks/[uuid]/dependencies/[dependsOnUuid]/route_client-reference-manifest.js +1 -1
  142. package/.next/standalone/.next/server/app/api/tasks/[uuid]/dependencies/route_client-reference-manifest.js +1 -1
  143. package/.next/standalone/.next/server/app/api/tasks/[uuid]/release/route_client-reference-manifest.js +1 -1
  144. package/.next/standalone/.next/server/app/api/tasks/[uuid]/route_client-reference-manifest.js +1 -1
  145. package/.next/standalone/.next/server/app/api/tasks/[uuid]/sessions/route_client-reference-manifest.js +1 -1
  146. package/.next/standalone/.next/server/app/index.html +1 -1
  147. package/.next/standalone/.next/server/app/index.rsc +2 -2
  148. package/.next/standalone/.next/server/app/login/admin/page.js +2 -2
  149. package/.next/standalone/.next/server/app/login/admin/page.js.nft.json +1 -1
  150. package/.next/standalone/.next/server/app/login/admin/page_client-reference-manifest.js +1 -1
  151. package/.next/standalone/.next/server/app/login/admin.html +1 -1
  152. package/.next/standalone/.next/server/app/login/admin.rsc +1 -1
  153. package/.next/standalone/.next/server/app/login/callback/page.js +2 -2
  154. package/.next/standalone/.next/server/app/login/callback/page.js.nft.json +1 -1
  155. package/.next/standalone/.next/server/app/login/callback/page_client-reference-manifest.js +1 -1
  156. package/.next/standalone/.next/server/app/login/callback.html +1 -1
  157. package/.next/standalone/.next/server/app/login/callback.rsc +1 -1
  158. package/.next/standalone/.next/server/app/login/page.js +2 -2
  159. package/.next/standalone/.next/server/app/login/page.js.nft.json +1 -1
  160. package/.next/standalone/.next/server/app/login/page_client-reference-manifest.js +1 -1
  161. package/.next/standalone/.next/server/app/login/pick-workspace/page_client-reference-manifest.js +1 -1
  162. package/.next/standalone/.next/server/app/login/pick-workspace.html +1 -1
  163. package/.next/standalone/.next/server/app/login/pick-workspace.rsc +1 -1
  164. package/.next/standalone/.next/server/app/login/silent-refresh/page_client-reference-manifest.js +1 -1
  165. package/.next/standalone/.next/server/app/login/silent-refresh.html +1 -1
  166. package/.next/standalone/.next/server/app/login/silent-refresh.rsc +1 -1
  167. package/.next/standalone/.next/server/app/login.html +1 -1
  168. package/.next/standalone/.next/server/app/login.rsc +2 -2
  169. package/.next/standalone/.next/server/app/onboarding/page.js +2 -2
  170. package/.next/standalone/.next/server/app/onboarding/page.js.nft.json +1 -1
  171. package/.next/standalone/.next/server/app/onboarding/page_client-reference-manifest.js +1 -1
  172. package/.next/standalone/.next/server/app/onboarding.html +1 -1
  173. package/.next/standalone/.next/server/app/onboarding.rsc +2 -2
  174. package/.next/standalone/.next/server/app/page.js +2 -2
  175. package/.next/standalone/.next/server/app/page.js.nft.json +1 -1
  176. package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
  177. package/.next/standalone/.next/server/app/projects.html +1 -1
  178. package/.next/standalone/.next/server/app/projects.rsc +2 -2
  179. package/.next/standalone/.next/server/app/settings.html +1 -1
  180. package/.next/standalone/.next/server/app/settings.rsc +3 -3
  181. package/.next/standalone/.next/server/app-paths-manifest.json +43 -43
  182. package/.next/standalone/.next/server/chunks/1596.js +2 -2
  183. package/.next/standalone/.next/server/chunks/2779.js +31 -0
  184. package/.next/standalone/.next/server/chunks/2961.js +1 -1
  185. package/.next/standalone/.next/server/chunks/3219.js +1 -1
  186. package/.next/standalone/.next/server/chunks/4292.js +1 -0
  187. package/.next/standalone/.next/server/chunks/4872.js +1 -1
  188. package/.next/standalone/.next/server/chunks/5538.js +1 -0
  189. package/.next/standalone/.next/server/chunks/6113.js +1 -1
  190. package/.next/standalone/.next/server/chunks/6207.js +1 -1
  191. package/.next/standalone/.next/server/chunks/7063.js +2 -2
  192. package/.next/standalone/.next/server/chunks/7160.js +1 -1
  193. package/.next/standalone/.next/server/chunks/7368.js +1 -1
  194. package/.next/standalone/.next/server/chunks/7515.js +1 -1
  195. package/.next/standalone/.next/server/chunks/8732.js +1 -0
  196. package/.next/standalone/.next/server/chunks/920.js +1 -1
  197. package/.next/standalone/.next/server/chunks/9273.js +1 -0
  198. package/.next/standalone/.next/server/chunks/937.js +1 -1
  199. package/.next/standalone/.next/server/middleware-build-manifest.js +1 -1
  200. package/.next/standalone/.next/server/middleware-manifest.json +5 -5
  201. package/.next/standalone/.next/server/middleware-react-loadable-manifest.js +1 -1
  202. package/.next/standalone/.next/server/pages/404.html +1 -1
  203. package/.next/standalone/.next/server/pages/500.html +1 -1
  204. package/.next/standalone/.next/server/pages-manifest.json +1 -1
  205. package/.next/standalone/.next/server/server-reference-manifest.js +1 -1
  206. package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
  207. package/.next/standalone/.next/static/chunks/10344-2e9a9d767e2e8ed1.js +1 -0
  208. package/.next/standalone/.next/static/chunks/{33187.13c12f5c0821ac57.js → 33187.1328c15b9dab78a8.js} +1 -1
  209. package/.next/standalone/.next/static/chunks/{40867-04cc0d00205eaf9b.js → 46983-8bf90f1ffeb55957.js} +1 -1
  210. package/.next/standalone/.next/static/chunks/{32497-886aa4d3d7bf4967.js → 46999-f53da8f53fe1b8a9.js} +1 -1
  211. package/.next/standalone/.next/static/chunks/{4860.f4242c493fcf182d.js → 4860.e3d0dd79a4d37626.js} +1 -1
  212. package/.next/standalone/.next/static/chunks/{78917-2b959ab0a7f610b4.js → 78917-aa5bbff9248799a4.js} +1 -1
  213. package/.next/standalone/.next/static/chunks/85573-fb4d2cbd67612d47.js +1 -0
  214. package/.next/standalone/.next/static/chunks/{97784-7b90a17294840e32.js → 97784-42081b75f8cc6da8.js} +1 -1
  215. package/.next/standalone/.next/static/chunks/97868-55f18a05fe483d85.js +1 -0
  216. package/.next/standalone/.next/static/chunks/{99373.880b43de1fa6411f.js → 99373.cc6319fa4cf36081.js} +1 -1
  217. package/.next/standalone/.next/static/chunks/app/(dashboard)/layout-b3a497ba5eb08036.js +1 -0
  218. package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/dashboard/page-d786f0c18a9c4f06.js +1 -0
  219. package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/documents/[documentUuid]/page-c68f1eda3779b448.js +1 -0
  220. package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/documents/{page-6620b9d7a2cc766f.js → page-e0935445535c28cb.js} +1 -1
  221. package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/proposals/[proposalUuid]/page-f824632ff61a9fa7.js +1 -0
  222. package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/proposals/new/page-dbcb6e50fc4816c6.js +1 -0
  223. package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/proposals/page-1295bc505e727383.js +1 -0
  224. package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/tasks/[taskUuid]/{page-d5c3dde34d6291a8.js → page-ceeec49af0396432.js} +1 -1
  225. package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/tasks/{page-0da08d8b425acb6a.js → page-1286afe43c086d6a.js} +1 -1
  226. package/.next/standalone/.next/static/chunks/app/(dashboard)/settings/{page-44014947a679f91c.js → page-0fb1d51016f6bd56.js} +1 -1
  227. package/.next/standalone/.next/static/chunks/app/login/page-d2513f477211dd6f.js +1 -0
  228. package/.next/standalone/.next/static/chunks/app/onboarding/{page-9a41067d4c5d29d7.js → page-2936274fb252329e.js} +1 -1
  229. package/.next/standalone/.next/static/chunks/app/page-075afd218994d377.js +1 -0
  230. package/.next/standalone/.next/static/chunks/{webpack-1556cfd11f7e90d1.js → webpack-ed3555ea61243391.js} +1 -1
  231. package/.next/standalone/package.json +1 -1
  232. package/README.md +2 -2
  233. package/README.zh.md +2 -2
  234. package/cli/client-args.mjs +1 -1
  235. package/cli/codex-session-map.mjs +117 -0
  236. package/cli/codex-spawner.mjs +312 -0
  237. package/cli/daemon-agent.mjs +32 -6
  238. package/cli/daemon-banner.mjs +43 -5
  239. package/cli/daemon.mjs +133 -14
  240. package/cli/login.mjs +77 -34
  241. package/cli/spawner-select.mjs +30 -0
  242. package/cli/sse-listener.mjs +29 -1
  243. package/cli/upload-hooks.mjs +73 -8
  244. package/package.json +1 -1
  245. package/.next/standalone/.next/server/chunks/3371.js +0 -1
  246. package/.next/standalone/.next/server/chunks/345.js +0 -1
  247. package/.next/standalone/.next/server/chunks/4958.js +0 -1
  248. package/.next/standalone/.next/server/chunks/5581.js +0 -1
  249. package/.next/standalone/.next/server/chunks/7897.js +0 -1
  250. package/.next/standalone/.next/server/chunks/8245.js +0 -31
  251. package/.next/standalone/.next/static/chunks/42111-1935df3b0dab2095.js +0 -1
  252. package/.next/standalone/.next/static/chunks/6239-d78e6f830ce0a7f8.js +0 -1
  253. package/.next/standalone/.next/static/chunks/97868-9406a4014b667c2d.js +0 -1
  254. package/.next/standalone/.next/static/chunks/app/(dashboard)/layout-f04d5fa070f15acd.js +0 -1
  255. package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/dashboard/page-c4271886ef004611.js +0 -1
  256. package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/documents/[documentUuid]/page-7a8b60de97bfbd29.js +0 -1
  257. package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/proposals/[proposalUuid]/page-0a55289b2bc510c2.js +0 -1
  258. package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/proposals/new/page-99639479cc98965f.js +0 -1
  259. package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[uuid]/proposals/page-5d09141beb5d6aee.js +0 -1
  260. package/.next/standalone/.next/static/chunks/app/login/page-e7493d55573a52f1.js +0 -1
  261. package/.next/standalone/.next/static/chunks/app/page-8b4baa950c78ffe7.js +0 -1
  262. /package/.next/standalone/.next/static/{v1yRpXkt1wNBkZMTE3tiz → GmBblfxcDziUENBiEap4B}/_buildManifest.js +0 -0
  263. /package/.next/standalone/.next/static/{v1yRpXkt1wNBkZMTE3tiz → GmBblfxcDziUENBiEap4B}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[40867],{4365:(e,s,t)=>{t.d(s,{G7:()=>l,L$:()=>u,h_:()=>x,oI:()=>d,uB:()=>c,xL:()=>o});var a=t(90508);t(1856);var i=t(64731),r=t(30044),n=t(24377);function c(e){let{className:s,...t}=e;return(0,a.jsx)(i.uB,{"data-slot":"command",className:(0,n.cn)("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",s),...t})}function l(e){let{className:s,...t}=e;return(0,a.jsxs)("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[(0,a.jsx)(r.A,{className:"size-4 shrink-0 opacity-50"}),(0,a.jsx)(i.uB.Input,{"data-slot":"command-input",className:(0,n.cn)("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",s),...t})]})}function d(e){let{className:s,...t}=e;return(0,a.jsx)(i.uB.List,{"data-slot":"command-list",className:(0,n.cn)("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",s),...t})}function o(e){let{...s}=e;return(0,a.jsx)(i.uB.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...s})}function u(e){let{className:s,...t}=e;return(0,a.jsx)(i.uB.Group,{"data-slot":"command-group",className:(0,n.cn)("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",s),...t})}function x(e){let{className:s,...t}=e;return(0,a.jsx)(i.uB.Item,{"data-slot":"command-item",className:(0,n.cn)("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",s),...t})}},6985:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(66206).A)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},12210:(e,s,t)=>{t.d(s,{d:()=>n});var a=t(90508);t(1856);var i=t(60322),r=t(24377);function n(e){let{className:s,...t}=e;return(0,a.jsx)(i.Root,{"data-slot":"switch",className:(0,r.cn)("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:ring-ring/50 inline-flex h-5 w-9 shrink-0 items-center rounded-full border-2 border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",s),...t,children:(0,a.jsx)(i.Thumb,{"data-slot":"switch-thumb",className:(0,r.cn)("bg-background pointer-events-none block size-4 rounded-full ring-0 shadow-lg transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})})}},13108:(e,s,t)=>{t.d(s,{C:()=>o,K:()=>x});var a=t(90508),i=t(39268),r=t(97413),n=t(5616),c=t(22922),l=t(14554),d=t(12210);function o(e){let{items:s,onChange:t,disabled:o}=e,u=(0,i.c)(),x=(e,a)=>{let i=s.slice();i[e]={...i[e],...a},t(i)};return(0,a.jsxs)("div",{className:"space-y-3",children:[s.length>0&&(0,a.jsx)("div",{className:"space-y-2",children:s.map((e,i)=>(0,a.jsxs)("div",{className:"flex items-start gap-2 rounded-lg border border-[#E5E2DC] bg-[#FAF8F4] p-2.5",children:[(0,a.jsx)("div",{className:"flex-1 min-w-0",children:(0,a.jsx)(l.p,{value:e.description,onChange:e=>x(i,{description:e.target.value}),placeholder:u("acceptanceCriteria.criterionPlaceholder"),className:"border-[#E5E2DC] text-sm focus-visible:ring-[#C67A52] h-8",disabled:o})}),(0,a.jsxs)("div",{className:"flex items-center gap-2 shrink-0 pt-1",children:[(0,a.jsx)(d.d,{checked:e.required,onCheckedChange:e=>x(i,{required:e}),className:"data-[state=checked]:bg-[#C67A52]",disabled:o}),(0,a.jsx)("span",{className:"text-[10px] font-medium text-[#6B6B6B] min-w-[52px]",children:e.required?u("acceptanceCriteria.required"):u("acceptanceCriteria.optional")}),(0,a.jsx)(c.$,{variant:"outline",size:"sm",className:"h-7 w-7 p-0 border-[#E5E2DC] text-[#9A9A9A] hover:text-[#D32F2F] hover:border-[#D32F2F] hover:bg-[#FFEBEE]",onClick:()=>{t(s.filter((e,s)=>s!==i))},disabled:o,type:"button",children:(0,a.jsx)(r.A,{className:"h-3 w-3"})})]})]},i))}),(0,a.jsxs)(c.$,{variant:"outline",size:"sm",className:"h-8 gap-1.5 border-[#E5E2DC] text-xs text-[#6B6B6B] hover:text-[#C67A52] hover:border-[#C67A52]",onClick:()=>{t([...s,{description:"",required:!0}])},disabled:o,type:"button",children:[(0,a.jsx)(n.A,{className:"h-3 w-3"}),u("acceptanceCriteria.addCriterion")]})]})}function u(e){return{description:e.description.trim(),required:!!e.required}}function x(e,s){if(e.length!==s.length)return!0;for(let t=0;t<e.length;t++){let a=u(e[t]),i=u(s[t]);if(a.description!==i.description||a.required!==i.required)return!0}return!1}},14554:(e,s,t)=>{t.d(s,{p:()=>r});var a=t(90508);t(1856);var i=t(24377);function r(e){let{className:s,type:t,...r}=e;return(0,a.jsx)("input",{type:t,"data-slot":"input",className:(0,i.cn)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",s),...r})}},17722:(e,s,t)=>{t.d(s,{AI:()=>c,_8:()=>n});var a=t(90508);t(1856);var i=t(97438),r=t(24377);function n(e){let{open:s,onOpenChange:t,header:n,footer:c,children:l,className:d,bodyClassName:o,zIndexClassName:u="z-[110]",showCloseButton:x=!0}=e;return(0,a.jsx)(i.lG,{open:s,onOpenChange:t,children:(0,a.jsxs)(i.Cf,{className:(0,r.cn)("flex max-h-[85svh] flex-col gap-0 overflow-hidden p-0",u,d),overlayClassName:u,showCloseButton:x,children:[(0,a.jsx)(i.c7,{className:"shrink-0 border-b border-[#E5E0D8] px-6 py-5 text-left",children:n}),(0,a.jsx)("div",{className:(0,r.cn)("min-h-0 flex-1 overflow-y-auto px-6 py-4",o),children:l}),(0,a.jsx)(i.Es,{className:"shrink-0 border-t border-[#E5E0D8] px-6 py-5",children:c})]})})}let c=i.L3},18789:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(66206).A)("layout-grid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]])},29532:(e,s,t)=>{function a(e,s){return!!e&&!!s&&("user"===e.type?"user"===s.type&&e.uuid===s.uuid:"agent"===e.type?"agent"===s.type&&e.uuid===s.uuid:"agent_instance"===e.type&&"agent"===s.type&&!!e.agentUuid&&e.agentUuid===s.uuid)}function i(e){return!!e&&("agent"===e.type||"agent_instance"===e.type)}t.d(s,{RU:()=>a,bB:()=>i})},29781:(e,s,t)=>{t.d(s,{w:()=>i});var a=t(52217);let i=(0,a.createServerReference)("6097b48deb9a22280a73bb28d6030b8e32af49820b",a.callServer,void 0,a.findSourceMapURL,"addTaskDependencyAction")},48873:(e,s,t)=>{t.d(s,{v:()=>ey});var a=t(90508),i=t(1856),r=t(23675),n=t(39268),c=t(76111),l=t(9160),d=t(5616),o=t(70633),u=t(57893),x=t(5425),m=t(56770),p=t(85226),h=t(62898),g=t(42533),v=t(1861),f=t(66206);let j=(0,f.A)("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"}]]);var b=t(17475),N=t(60532),A=t(94903),y=t(62482),C=t(6985);let w=(0,f.A)("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);var k=t(97413),F=t(57731),E=t(48416),S=t(22922),B=t(14554),D=t(15972),_=t(88064),R=t(64993),U=t(91846),T=t(51817),q=t(73693),L=t(97868),M=t(29532),P=t(52217);let z=(0,P.createServerReference)("605f46bd74a9208308adc517b31be2890a829a53cb",P.callServer,void 0,P.findSourceMapURL,"updateTaskStatusAction"),I=(0,P.createServerReference)("409fc47318d90869e7b1d9da00c706b828130a0c06",P.callServer,void 0,P.findSourceMapURL,"createTaskAction"),$=(0,P.createServerReference)("40727c35655ee8b86b1cdac308030dedb84031934f",P.callServer,void 0,P.findSourceMapURL,"updateTaskFieldsAction"),O=(0,P.createServerReference)("60a9af7fd6d963da45089f9513e6e9fc1e3bcb05ae",P.callServer,void 0,P.findSourceMapURL,"deleteTaskAction"),V=(0,P.createServerReference)("600fea1bd817f312450b69634f094fdb1c38347258",P.callServer,void 0,P.findSourceMapURL,"markCriteriaAction"),W=(0,P.createServerReference)("6001f3209c7ce8b4e0622ae48d12e48f803b908d9f",P.callServer,void 0,P.findSourceMapURL,"resetCriterionAction");var J=t(42111);let G=(0,P.createServerReference)("40e545b85d9e2c31256d6eff1553660043dc4b93d7",P.callServer,void 0,P.findSourceMapURL,"getTaskActivitiesAction"),H=(0,P.createServerReference)("402aa1dfa31f18f2550e15da61fd88a1b1c627a4f9",P.callServer,void 0,P.findSourceMapURL,"getTaskSourceAction");var K=t(97261),X=t(13108),Z=t(30028),Q=t(17722),Y=t(41033),ee=t(78307),es=t(24900);let et=(0,P.createServerReference)("001a5382c73b69779366a7bdcb910201f46af8b80c",P.callServer,void 0,P.findSourceMapURL,"getDeveloperAgentsAction"),ea=(0,P.createServerReference)("4023ad69a9b2c39334476834a0cc9197071ecbe6af",P.callServer,void 0,P.findSourceMapURL,"getAgentInstancesAction"),ei=(0,P.createServerReference)("40fda94965b1e8533310e74b2a092bd85cc5bbddd1",P.callServer,void 0,P.findSourceMapURL,"claimTaskAction"),er=(0,P.createServerReference)("70c437d980fd0d022f3365637f5d3e4f88003627b7",P.callServer,void 0,P.findSourceMapURL,"claimTaskToAgentAction"),en=(0,P.createServerReference)("60104b1224ec8342cdd392541c5ec14368c2738473",P.callServer,void 0,P.findSourceMapURL,"claimTaskToUserAction"),ec=(0,P.createServerReference)("403c85dd50a964d8d0182572288e0794b35283aedc",P.callServer,void 0,P.findSourceMapURL,"releaseTaskAction");function el(e){var s,t;let{task:c,projectUuid:l,currentUserUuid:d,onClose:o}=e,u=(0,n.c)(),m=(0,r.useRouter)(),[h,g]=(0,i.useState)(!1),[v,f]=(0,i.useState)("self"),[j,b]=(0,i.useState)(""),[N,y]=(0,i.useState)(""),[C,w]=(0,i.useState)([]),[k,F]=(0,i.useState)([]),[E,B]=(0,i.useState)(!0),[D,R]=(0,i.useState)(null),[T,q]=(0,i.useState)([]),[L,M]=(0,i.useState)(!1),[P,z]=(0,i.useState)(null),I=!!c.assignee;(0,i.useEffect)(()=>{!async function(){B(!0);let e=await et();w(e.agents||[]),F((e.users||[]).filter(e=>e.uuid!==d)),B(!1)}()},[d]),(0,i.useEffect)(()=>{if("agent"!==v||!j){q([]),z(null);return}let e=!1;return M(!0),z(null),ea(j).then(s=>{e||q((0,ee.C)(s.instances))}).finally(()=>{e||M(!1)}),()=>{e=!0}},[v,j]);let $=null!=(t=T.find(e=>e.connectionUuid===P))?t:null,O=new Set(T.map(e=>e.host)).size>1,V=async()=>{let e;if(g(!0),R(null),"self"===v)e=await ei(c.uuid);else if("agent"===v&&j){var s;e=await er(c.uuid,j,null!=(s=null==$?void 0:$.agentInstanceUuid)?s:void 0)}else if("user"===v&&N)e=await en(c.uuid,N);else{if("release"!==v)return void g(!1);e=await ec(c.uuid)}g(!1),(null==e?void 0:e.success)?(o(),m.refresh()):(null==e?void 0:e.error)&&R(e.error)},W="self"===v||"agent"===v&&j||"user"===v&&N||"release"===v&&I;return(0,a.jsxs)(Q._8,{open:!0,onOpenChange:e=>{e||o()},className:"bg-white sm:max-w-[400px]",header:(0,a.jsx)(Q.AI,{className:"text-base font-semibold text-[#2C2C2C]",children:u("tasks.assignTask")}),footer:(0,a.jsxs)("div",{className:"flex w-full items-center justify-end gap-4",children:[(0,a.jsx)(S.$,{variant:"outline",onClick:o,disabled:h,className:"border-[#E5E0D8]",children:u("common.cancel")}),(0,a.jsx)(S.$,{onClick:V,disabled:h||!W,className:"bg-[#C67A52] hover:bg-[#B56A42] text-white",children:h?(0,a.jsx)(p.A,{className:"h-4 w-4 animate-spin"}):"release"===v?u("common.release"):function(){if("agent"!==v||!$)return u("common.assign");let e=(0,es.kn)($.cwd),s=e.isUnknown?u(e.label):e.label,t=(0,es.g9)($.host),a=t.isUnknown?u(t.label):t.label;return O?u("assignInstance.assignToWithHost",{path:s,host:a}):u("assignInstance.assignTo",{path:s})}()})]}),bodyClassName:"space-y-4",children:[(0,a.jsxs)("div",{className:"rounded-lg bg-[#FAF8F4] p-3",children:[(0,a.jsx)("p",{className:"text-[13px] font-medium text-[#2C2C2C]",children:c.title}),c.description&&(0,a.jsx)("p",{className:"mt-1 text-[11px] text-[#6B6B6B] line-clamp-2",children:c.description})]}),I&&(0,a.jsx)("div",{className:"rounded-lg bg-[#E3F2FD] p-3",children:(0,a.jsxs)("p",{className:"text-xs text-[#1976D2]",children:[u("common.currentAssignee"),": ",(0,a.jsx)("span",{className:"font-medium",children:null==(s=c.assignee)?void 0:s.name})]})}),D&&(0,a.jsx)("div",{className:"rounded-lg bg-[#FEE2E2] p-3",children:(0,a.jsx)("p",{className:"text-xs text-[#D32F2F]",children:D})}),(0,a.jsx)("p",{className:"text-[13px] text-[#6B6B6B]",children:u("assign.selectAssignee")}),E?(0,a.jsx)("div",{className:"flex items-center justify-center py-8",children:(0,a.jsx)(p.A,{className:"h-6 w-6 animate-spin text-[#9A9A9A]"})}):(0,a.jsxs)(Y.z,{value:v,onValueChange:e=>f(e),className:"space-y-3",children:[(0,a.jsxs)("div",{className:"rounded-[10px] p-4 transition-colors cursor-pointer ".concat("self"===v?"bg-[#FDF8F6] border-2 border-[#C67A52]":"bg-white border border-[#E5E0D8] hover:border-[#C67A52]/50"),onClick:()=>f("self"),children:[(0,a.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,a.jsx)(Y.C,{value:"self",id:"self",className:"border-[#C67A52] text-[#C67A52]"}),(0,a.jsx)(_.J,{htmlFor:"self",className:"text-sm font-medium text-[#2C2C2C] cursor-pointer",children:u("assign.assignToMyself")})]}),(0,a.jsx)("p",{className:"mt-2 ml-6 text-xs text-[#6B6B6B] leading-relaxed",children:u("assign.assignToMyselfDesc")})]}),(0,a.jsxs)("div",{className:"rounded-[10px] p-4 transition-colors ".concat("agent"===v?"bg-[#FDF8F6] border-2 border-[#C67A52]":"bg-white border border-[#E5E0D8]"),children:[(0,a.jsxs)("div",{className:"flex items-center gap-2.5 cursor-pointer",onClick:()=>f("agent"),children:[(0,a.jsx)(Y.C,{value:"agent",id:"agent",className:"border-[#C67A52] text-[#C67A52]"}),(0,a.jsx)(_.J,{htmlFor:"agent",className:"text-sm font-medium text-[#2C2C2C] cursor-pointer",children:u("assign.orAssignToAgent")})]}),(0,a.jsx)("p",{className:"mt-2 ml-6 text-xs text-[#6B6B6B] leading-relaxed",children:u("tasks.onlySelectedAgentCanWork")}),"agent"===v&&(0,a.jsxs)("div",{className:"mt-3 ml-6 space-y-3",children:[(0,a.jsxs)(U.l6,{value:j,onValueChange:b,children:[(0,a.jsx)(U.bq,{className:"w-full border-[#E5E0D8]",children:(0,a.jsx)(U.yv,{placeholder:u("tasks.selectAgent")})}),(0,a.jsx)(U.gC,{className:"z-[120]",children:C.length>0?C.map(e=>(0,a.jsx)(U.eb,{value:e.uuid,children:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(x.A,{className:"h-4 w-4 text-[#C67A52]"}),(0,a.jsx)("span",{children:e.name})]})},e.uuid)):(0,a.jsx)("div",{className:"px-3 py-2 text-xs text-[#9A9A9A]",children:u("tasks.noAgentsAvailable")})})]}),j&&(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)("span",{className:"text-[11px] font-medium uppercase tracking-wide text-[#9A9A9A]",children:u("assignInstance.workingDirectory")}),L?(0,a.jsxs)("div",{className:"flex items-center gap-2 py-2 text-xs text-[#9A9A9A]",children:[(0,a.jsx)(p.A,{className:"h-3.5 w-3.5 animate-spin"}),u("assignInstance.loadingInstances")]}):0===T.length?(0,a.jsx)("p",{className:"rounded-lg bg-[#FAF8F4] p-2.5 text-[11px] leading-relaxed text-[#6B6B6B]",children:u("assignInstance.noInstances")}):(0,a.jsx)(ee.O,{instances:T,selectedConnectionUuid:P,onSelect:e=>z(e.connectionUuid),ariaLabel:u("assignInstance.workingDirectory")}),(0,a.jsxs)("div",{className:"flex items-start gap-1.5 text-[11px] leading-relaxed text-[#9A8C7E]",children:[(0,a.jsx)(Z.A,{className:"mt-0.5 h-3.5 w-3.5 shrink-0","aria-hidden":!0}),(0,a.jsx)("span",{children:u("assignInstance.pinNote")})]})]})]})]}),(0,a.jsxs)("div",{className:"rounded-[10px] p-4 transition-colors ".concat("user"===v?"bg-[#FDF8F6] border-2 border-[#C67A52]":"bg-white border border-[#E5E0D8]"),children:[(0,a.jsxs)("div",{className:"flex items-center gap-2.5 cursor-pointer",onClick:()=>f("user"),children:[(0,a.jsx)(Y.C,{value:"user",id:"user",className:"border-[#C67A52] text-[#C67A52]"}),(0,a.jsx)(_.J,{htmlFor:"user",className:"text-sm font-medium text-[#2C2C2C] cursor-pointer",children:u("assign.orAssignToUser")})]}),"user"===v&&(0,a.jsx)("div",{className:"mt-3 ml-6",children:(0,a.jsxs)(U.l6,{value:N,onValueChange:y,children:[(0,a.jsx)(U.bq,{className:"w-full border-[#E5E0D8]",children:(0,a.jsx)(U.yv,{placeholder:u("tasks.selectUser")})}),(0,a.jsx)(U.gC,{className:"z-[120]",children:k.length>0?k.map(e=>(0,a.jsx)(U.eb,{value:e.uuid,children:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(A.A,{className:"h-4 w-4 text-[#6B6B6B]"}),(0,a.jsx)("span",{children:e.name||e.email})]})},e.uuid)):(0,a.jsx)("div",{className:"px-3 py-2 text-xs text-[#9A9A9A]",children:u("tasks.noUsersAvailable")})})]})})]}),I&&(0,a.jsxs)("div",{className:"rounded-[10px] p-4 transition-colors cursor-pointer ".concat("release"===v?"bg-[#FDF8F6] border-2 border-[#C67A52]":"bg-white border border-[#E5E0D8] hover:border-[#C67A52]/50"),onClick:()=>f("release"),children:[(0,a.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,a.jsx)(Y.C,{value:"release",id:"release",className:"border-[#C67A52] text-[#C67A52]"}),(0,a.jsx)(_.J,{htmlFor:"release",className:"text-sm font-medium text-[#2C2C2C] cursor-pointer",children:u("assign.releaseAssignee")})]}),(0,a.jsx)("p",{className:"mt-2 ml-6 text-xs text-[#6B6B6B] leading-relaxed",children:u("assign.releaseAssigneeDesc")})]})]})]})}let ed=(0,P.createServerReference)("40f0e3364b7ae3c5e3f97a9988352b395bb2eacb67",P.callServer,void 0,P.findSourceMapURL,"getTaskDependenciesAction"),eo=(0,P.createServerReference)("4022164ccfe3e383488ee055e488cc3f367d3162d6",P.callServer,void 0,P.findSourceMapURL,"getProjectTasksForDependencyAction");var eu=t(29781);let ex=(0,P.createServerReference)("609cb9dd5f8e154294026c37a120a54991db18273b",P.callServer,void 0,P.findSourceMapURL,"removeTaskDependencyAction"),em=(0,P.createServerReference)("406d94d2d3e9fee1789502f291aa87e43c53e073e3",P.callServer,void 0,P.findSourceMapURL,"getTaskSessionsAction");var ep=t(38106),eh=t(16544),eg=t(65626),ev=t(90795);let ef={open:"bg-[#FFF3E0] text-[#E65100]",assigned:"bg-[#E3F2FD] text-[#1976D2]",in_progress:"bg-[#E8F5E9] text-[#5A9E6F]",to_verify:"bg-[#F3E5F5] text-[#7B1FA2]",done:"bg-[#E0F2F1] text-[#00796B]",closed:"bg-[#F5F5F5] text-[#9A9A9A]"},ej={open:"open",assigned:"assigned",in_progress:"inProgress",to_verify:"toVerify",done:"done",closed:"closed"},eb={low:"bg-[#F5F5F5] text-[#9A9A9A]",medium:"bg-[#FFF3E0] text-[#E65100]",high:"bg-[#FEE2E2] text-[#D32F2F]",critical:"bg-[#FFCDD2] text-[#B71C1C]"},eN={low:"lowPriority",medium:"mediumPriority",high:"highPriority",critical:"criticalPriority"};function eA(e,s){let t=new Date(e),a=new Date().getTime()-t.getTime(),i=Math.floor(a/6e4),r=Math.floor(a/36e5),n=Math.floor(a/864e5);return i<1?s("time.justNow"):i<60?s("time.minutesAgo",{minutes:i}):r<24?s("time.hoursAgo",{hours:r}):n<7?s("time.daysAgo",{days:n}):(0,ep.r)(t)}function ey(e){var s,t;let{task:f,projectUuid:P,currentUserUuid:Z,mode:Q="overlay",onClose:Y,onCreated:ee,onDependencyChange:es,onBack:et}=e,ea=(0,n.c)(),ei=(0,r.useRouter)(),[er,en]=(0,i.useState)(!1);(0,i.useEffect)(()=>{let e=setTimeout(()=>en(!0),300);return()=>clearTimeout(e)},[]);let[ec,ey]=(0,i.useState)(!1),[eC,ew]=(0,i.useState)([]),[ek,eF]=(0,i.useState)(!0),[eE,eS]=(0,i.useState)(null),[eB,eD]=(0,i.useState)(!1),[e_,eR]=(0,i.useState)([]),[eU,eT]=(0,i.useState)([]),[eq,eL]=(0,i.useState)(!1),[eM,eP]=(0,i.useState)([]),[ez,eI]=(0,i.useState)(null),[e$,eO]=(0,i.useState)([]),[eV,eW]=(0,i.useState)([]),eJ=null===f,[eG,eH]=(0,i.useState)(eJ),[eK,eX]=(0,i.useState)((null==f?void 0:f.title)||""),[eZ,eQ]=(0,i.useState)((null==f?void 0:f.description)||""),[eY,e0]=(0,i.useState)((null==f?void 0:f.priority)||"medium"),[e2,e1]=(0,i.useState)((null==f?void 0:f.storyPoints)!=null?String(f.storyPoints):""),[e5,e6]=(0,i.useState)((null!=(s=null==f?void 0:f.acceptanceCriteriaItems)?s:[]).map(e=>{var s;return{description:e.description,required:null==(s=e.required)||s}})),[e9,e3]=(0,i.useState)(!1),[e4,e7]=(0,i.useState)(null),[e8,se]=(0,i.useState)(!1),ss=(0,M.RU)(null!=(t=null==f?void 0:f.assignee)?t:null,{type:"user",uuid:Z}),st=ss&&(null==f?void 0:f.status)==="assigned",sa=ss&&(null==f?void 0:f.status)==="in_progress",si=(null==f?void 0:f.status)==="to_verify";(0,i.useEffect)(()=>{async function e(){eF(!0),ew((await G(f.uuid)).activities),eF(!1)}async function s(){f.proposalUuid&&eS(await H(f.proposalUuid))}async function t(){eL(!0);let[e,s]=await Promise.all([ed(f.uuid),eo(P)]);eR(e.dependsOn),eT(e.dependedBy),eP(s.tasks),eL(!1)}async function a(){let e=await em(f.uuid);e.success&&e.data&&eO(e.data)}f&&(e(),s(),t(),a())},[null==f?void 0:f.uuid,null==f?void 0:f.proposalUuid,P]),(0,i.useEffect)(()=>{eJ&&e();async function e(){eP((await eo(P)).tasks)}},[eJ,P]),(0,i.useEffect)(()=>{if(f){var e;eH(!1),eX(f.title),eQ(f.description||""),e0(f.priority),e1(null!=f.storyPoints?String(f.storyPoints):""),e6((null!=(e=f.acceptanceCriteriaItems)?e:[]).map(e=>{var s;return{description:e.description,required:null==(s=e.required)||s}})),e7(null)}},[null==f?void 0:f.uuid,null==f?void 0:f.title,null==f?void 0:f.description,null==f?void 0:f.priority,null==f?void 0:f.storyPoints,null==f?void 0:f.acceptanceCriteriaItems]);let sr=async e=>{if(!f)return;ey(!0);let s=await z(f.uuid,e);ey(!1),s.success&&(Y(),ei.refresh())},sn=()=>{if(eJ)return void Y();if(eH(!1),f){var e;eX(f.title),eQ(f.description||""),e0(f.priority),e1(null!=f.storyPoints?String(f.storyPoints):""),e6((null!=(e=f.acceptanceCriteriaItems)?e:[]).map(e=>{var s;return{description:e.description,required:null==(s=e.required)||s}}))}e7(null)},sc=async()=>{if(!eK.trim())return void e7(ea("tasks.titleRequired"));e3(!0),e7(null);let e=e2.trim()?parseFloat(e2):null;if(eJ){let s=await I({projectUuid:P,title:eK.trim(),description:eZ.trim()||void 0,priority:eY,storyPoints:e,acceptanceCriteria:null});e3(!1),s.success?(eV.length>0&&s.taskUuid&&(await Promise.all(eV.map(e=>(0,eu.w)(s.taskUuid,e.uuid))),null==es||es()),null==ee||ee(),Y(),ei.refresh()):e7(s.error||ea("tasks.createFailed"))}else{var s;let t=(null!=(s=f.acceptanceCriteriaItems)?s:[]).map(e=>{var s;return{description:e.description,required:null==(s=e.required)||s}}),a=e5.filter(e=>e.description.trim().length>0),i=(0,X.K)(t,a);if(i&&0===a.length){e3(!1),e7(ea("acceptanceCriteria.atLeastOneRequired"));return}let r=await $({taskUuid:f.uuid,projectUuid:P,title:eK.trim(),description:eZ.trim()||null,priority:eY,storyPoints:e,...i?{acceptanceCriteriaItems:a.map(e=>({description:e.description.trim(),required:e.required}))}:{}});e3(!1),r.success?(eH(!1),ei.refresh()):e7(r.error||ea("tasks.updateFailed"))}},sl=async()=>{if(!f)return;se(!0);let e=await O(f.uuid,P);se(!1),e.success&&(Y(),ei.refresh())},sd=async e=>{if(!f)return;eI(null);let s=await (0,eu.w)(f.uuid,e);if(s.success){let s=eM.find(s=>s.uuid===e);s&&eR(e=>[...e,s]),null==es||es()}else eI(s.error||ea("tasks.failedToAddDep"))},so=async e=>{if(!f)return;eI(null);let s=await ex(f.uuid,e);s.success?(eR(s=>s.filter(s=>s.uuid!==e)),null==es||es()):eI(s.error||ea("tasks.failedToRemoveDep"))},su=async e=>{if(!f)return;eI(null);let s=await ex(e,f.uuid);s.success?(eT(s=>s.filter(s=>s.uuid!==e)),null==es||es()):eI(s.error||ea("tasks.failedToRemoveDep"))},sx=eM.filter(e=>e.uuid!==(null==f?void 0:f.uuid)&&!e_.some(s=>s.uuid===e.uuid)),sm=eM.filter(e=>!eV.some(s=>s.uuid===e.uuid)),sp="sidebyside"===Q;return(0,a.jsxs)(a.Fragment,{children:[!sp&&(0,a.jsx)("div",{className:"fixed inset-0 z-40 bg-black/20",onClick:Y}),(0,a.jsxs)("div",{className:"fixed top-14 md:top-0 flex h-[calc(100%-3.5rem)] md:h-full w-full flex-col bg-white shadow-xl border-l border-[#E5E0D8] ".concat(sp?"z-40 ".concat(er?"":"animate-in slide-in-from-right duration-300"):"z-50 right-0 ".concat(er?"":"animate-in slide-in-from-right duration-300")),style:{maxWidth:"".concat(ev.L8,"px"),...sp?{right:"".concat(ev.L8,"px")}:{}},children:[(0,a.jsxs)("div",{className:"flex items-center justify-between border-b border-[#F5F2EC] px-6 py-5",children:[et&&(0,a.jsx)(S.$,{variant:"ghost",size:"icon",className:"mr-2 h-8 w-8 shrink-0",onClick:et,children:(0,a.jsx)(o.A,{className:"h-4 w-4 text-[#6B6B6B]"})}),(0,a.jsx)("div",{className:"flex-1 min-w-0",children:eG?(0,a.jsx)("h2",{className:"text-base font-semibold text-[#2C2C2C]",children:eJ?ea("tasks.createTaskTitle"):ea("tasks.editTask")}):f?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h2",{className:"text-base font-semibold text-[#2C2C2C] truncate",children:f.title}),(0,a.jsxs)("div",{className:"mt-1.5 flex items-center gap-2",children:[(0,a.jsx)(F.E,{className:ef[f.status]||"",children:ea("status.".concat(ej[f.status]||f.status))}),(0,a.jsx)(F.E,{className:eb[f.priority]||"",children:ea("priority.".concat(eN[f.priority]||f.priority))}),f.storyPoints&&(0,a.jsxs)("span",{className:"rounded bg-[#F5F2EC] px-2 py-0.5 text-xs font-medium text-[#6B6B6B]",children:[f.storyPoints,"h"]})]})]}):null}),(0,a.jsxs)("div",{className:"flex items-center gap-2 ml-4",children:[f&&!eG&&(0,a.jsxs)(S.$,{variant:"outline",size:"sm",className:"h-8 gap-1.5 border-[#E5E0D8] text-[#2C2C2C]",onClick:()=>{var e;f&&(eX(f.title),eQ(f.description||""),e0(f.priority),e1(null!=f.storyPoints?String(f.storyPoints):""),e6((null!=(e=f.acceptanceCriteriaItems)?e:[]).map(e=>{var s;return{description:e.description,required:null==(s=e.required)||s}})),e7(null),eH(!0))},children:[(0,a.jsx)(u.A,{className:"h-3.5 w-3.5 text-[#6B6B6B]"}),(0,a.jsx)("span",{className:"text-xs",children:ea("common.edit")})]}),(0,a.jsx)(S.$,{variant:"outline",size:"icon",className:"h-8 w-8 border-[#E5E0D8]",onClick:eG&&!eJ?sn:Y,children:(0,a.jsx)(l.A,{className:"h-4 w-4 text-[#6B6B6B]"})})]})]}),(0,a.jsx)(R.F,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:(0,a.jsx)("div",{className:"flex min-h-full flex-col px-6 py-5",children:eG?(0,a.jsxs)("div",{className:"space-y-5",children:[e4&&(0,a.jsx)("div",{className:"rounded-lg bg-destructive/10 p-3 text-sm text-destructive",children:e4}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(_.J,{htmlFor:"edit-title",className:"text-[13px] font-medium text-[#2C2C2C]",children:ea("tasks.titleLabel")}),(0,a.jsx)(B.p,{id:"edit-title",value:eK,onChange:e=>eX(e.target.value),className:"border-[#E5E0D8] text-sm focus-visible:ring-[#C67A52]",autoFocus:!0})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(_.J,{htmlFor:"edit-description",className:"text-[13px] font-medium text-[#2C2C2C]",children:ea("tasks.descriptionLabel")}),(0,a.jsx)(D.T,{id:"edit-description",value:eZ,onChange:e=>eQ(e.target.value),rows:4,className:"border-[#E5E0D8] text-sm resize-none focus-visible:ring-[#C67A52]"})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(_.J,{htmlFor:"edit-priority",className:"text-[13px] font-medium text-[#2C2C2C]",children:ea("tasks.priorityLabel")}),(0,a.jsxs)(U.l6,{value:eY,onValueChange:e0,children:[(0,a.jsx)(U.bq,{className:"border-[#E5E0D8] text-sm focus:ring-[#C67A52]",children:(0,a.jsx)(U.yv,{})}),(0,a.jsxs)(U.gC,{children:[(0,a.jsx)(U.eb,{value:"low",children:ea("priority.low")}),(0,a.jsx)(U.eb,{value:"medium",children:ea("priority.medium")}),(0,a.jsx)(U.eb,{value:"high",children:ea("priority.high")})]})]})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(_.J,{htmlFor:"edit-story-points",className:"text-[13px] font-medium text-[#2C2C2C]",children:ea("tasks.storyPointsLabel")}),(0,a.jsx)(B.p,{id:"edit-story-points",type:"number",min:"0",step:"0.5",value:e2,onChange:e=>e1(e.target.value),className:"border-[#E5E0D8] text-sm focus-visible:ring-[#C67A52]"})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(_.J,{className:"text-[13px] font-medium text-[#2C2C2C]",children:ea("acceptanceCriteria.title")}),(0,a.jsx)(X.C,{items:e5,onChange:e6})]}),eJ&&(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(_.J,{className:"text-[13px] font-medium text-[#2C2C2C]",children:ea("tasks.dependencies")}),eV.length>0&&(0,a.jsx)("div",{className:"space-y-1.5",children:eV.map(e=>(0,a.jsxs)("div",{className:"group flex items-center justify-between rounded-lg bg-[#FAF8F4] p-2.5",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,a.jsx)(c.A,{className:"h-3.5 w-3.5 shrink-0 text-[#C67A52]"}),(0,a.jsx)("span",{className:"text-xs text-[#2C2C2C] truncate",children:e.title}),(0,a.jsx)(F.E,{className:"shrink-0 text-[10px] ".concat(ef[e.status]||""),children:ea("status.".concat(ej[e.status]||e.status))})]}),(0,a.jsx)(S.$,{type:"button",variant:"ghost",size:"icon",className:"h-6 w-6 opacity-0 group-hover:opacity-100 transition-opacity ml-2 shrink-0",onClick:()=>eW(s=>s.filter(s=>s.uuid!==e.uuid)),children:(0,a.jsx)(l.A,{className:"h-3.5 w-3.5 text-[#9A9A9A] hover:text-[#D32F2F]"})})]},e.uuid))}),sm.length>0&&(0,a.jsxs)(U.l6,{onValueChange:e=>{let s=eM.find(s=>s.uuid===e);s&&eW(e=>[...e,s])},children:[(0,a.jsx)(U.bq,{className:"h-8 border-[#E5E0D8] text-xs text-[#6B6B6B] focus:ring-[#C67A52]",children:(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,a.jsx)(d.A,{className:"h-3 w-3"}),(0,a.jsx)(U.yv,{placeholder:ea("tasks.addDependency")})]})}),(0,a.jsx)(U.gC,{children:sm.map(e=>(0,a.jsx)(U.eb,{value:e.uuid,children:(0,a.jsx)("span",{className:"truncate",children:e.title})},e.uuid))})]},eV.length)]})]}):f?(0,a.jsxs)(eh.P.div,{variants:eg.qG,initial:"initial",animate:"animate",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"text-[11px] font-medium uppercase tracking-wide text-[#9A9A9A]",children:ea("common.assignee")}),(0,a.jsx)("div",{className:"mt-2 flex items-center gap-2.5 rounded-lg bg-[#FAF8F4] p-3",children:f.assignee?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(q.eu,{className:"h-7 w-7",children:(0,a.jsx)(q.q5,{className:(0,M.bB)(f.assignee)?"bg-[#C67A52] text-white":"bg-[#E5E0D8] text-[#6B6B6B]",children:(0,M.bB)(f.assignee)?(0,a.jsx)(x.A,{className:"h-3.5 w-3.5"}):f.assignee.name.charAt(0).toUpperCase()})}),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("div",{className:"text-sm font-medium text-[#2C2C2C]",children:f.assignee.name}),(0,a.jsx)("div",{className:"text-xs text-[#6B6B6B]",children:(0,M.bB)(f.assignee)?"".concat(ea("common.agent")," • ").concat(f.assignee.assignedAt?(0,ep.r)(f.assignee.assignedAt):""):ea("common.user")}),"agent_instance"===f.assignee.type&&f.assignee.instance&&(0,a.jsx)("div",{className:"mt-1",children:(0,a.jsx)(L.jQ,{cwd:f.assignee.instance.cwd,host:f.assignee.instance.host})})]})]}):(0,a.jsx)("span",{className:"text-sm text-[#9A9A9A]",children:ea("common.unassigned")})})]}),e$.length>0&&(0,a.jsxs)("div",{className:"mt-5",children:[(0,a.jsx)("label",{className:"text-[11px] font-medium uppercase tracking-wide text-[#9A9A9A]",children:ea("sessions.activeWorkers")}),(0,a.jsx)("div",{className:"mt-2 space-y-1.5",children:e$.map(e=>(0,a.jsxs)("div",{className:"flex items-center gap-2.5 rounded-lg bg-[#FAF8F4] p-2.5",children:[(0,a.jsx)("div",{className:"h-2 w-2 rounded-full bg-green-500 flex-shrink-0"}),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("div",{className:"text-xs font-medium text-[#2C2C2C] truncate",children:e.sessionName}),(0,a.jsxs)("div",{className:"text-[10px] text-[#9A9A9A]",children:[e.agentName," \xb7 ",eA(e.checkinAt,ea)]})]})]},e.sessionUuid))})]}),(0,a.jsxs)("div",{className:"mt-5",children:[(0,a.jsx)("label",{className:"text-[11px] font-medium uppercase tracking-wide text-[#9A9A9A]",children:ea("common.description")}),(0,a.jsx)("div",{className:"mt-2",children:f.description?(0,a.jsx)("div",{className:"prose prose-sm max-w-none text-[13px] leading-relaxed text-[#2C2C2C]",children:(0,a.jsx)(K.MarkdownContent,{children:f.description})}):(0,a.jsx)("p",{className:"text-sm italic text-[#9A9A9A]",children:ea("common.noDescription")})})]}),f.acceptanceCriteria&&!(f.acceptanceCriteriaItems&&f.acceptanceCriteriaItems.length>0)&&(0,a.jsxs)("div",{className:"mt-5",children:[(0,a.jsx)("label",{className:"text-[11px] font-medium uppercase tracking-wide text-[#9A9A9A]",children:ea("tasks.acceptanceCriteria")}),(0,a.jsx)("div",{className:"mt-2",children:(0,a.jsx)("div",{className:"prose prose-sm max-w-none text-[13px] leading-relaxed text-[#2C2C2C]",children:(0,a.jsx)(K.MarkdownContent,{children:f.acceptanceCriteria})})})]}),eE&&(0,a.jsxs)("div",{className:"mt-5",children:[(0,a.jsx)("label",{className:"text-[11px] font-medium uppercase tracking-wide text-[#9A9A9A]",children:ea("common.source")}),(0,a.jsx)("a",{href:"/projects/".concat(P,"/proposals/").concat(eE.uuid),className:"mt-2 flex items-center justify-between rounded-lg bg-[#FAF8F4] p-3 hover:bg-[#F0EDE5] transition-colors",children:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(m.A,{className:"h-3.5 w-3.5 text-[#C67A52]"}),(0,a.jsx)("span",{className:"text-xs text-[#2C2C2C]",children:eE.title})]})})]}),(0,a.jsxs)("div",{className:"mt-5",children:[(0,a.jsx)("label",{className:"text-[11px] font-medium uppercase tracking-wide text-[#9A9A9A]",children:ea("tasks.dependencies")}),ez&&(0,a.jsx)("div",{className:"mt-2 rounded-lg bg-destructive/10 p-2.5 text-xs text-destructive",children:ez}),eq?(0,a.jsx)("div",{className:"mt-2 flex items-center justify-center py-4",children:(0,a.jsx)(p.A,{className:"h-4 w-4 animate-spin text-[#9A9A9A]"})}):(0,a.jsxs)(a.Fragment,{children:[e_.length>0&&(0,a.jsxs)("div",{className:"mt-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-1.5 mb-1.5",children:[(0,a.jsx)(h.A,{className:"h-3 w-3 text-[#9A9A9A]"}),(0,a.jsx)("span",{className:"text-[10px] font-medium uppercase tracking-wide text-[#9A9A9A]",children:ea("tasks.dependsOn")})]}),(0,a.jsx)("div",{className:"space-y-1.5",children:e_.map(e=>(0,a.jsxs)("div",{className:"group flex items-center justify-between rounded-lg bg-[#FAF8F4] p-3",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,a.jsx)(c.A,{className:"h-3.5 w-3.5 shrink-0 text-[#C67A52]"}),(0,a.jsx)("span",{className:"text-xs text-[#2C2C2C] truncate",children:e.title}),(0,a.jsx)(F.E,{className:"shrink-0 text-[10px] ".concat(ef[e.status]||""),children:ea("status.".concat(ej[e.status]||e.status))})]}),(0,a.jsx)(S.$,{variant:"ghost",size:"icon",className:"h-6 w-6 opacity-0 group-hover:opacity-100 transition-opacity ml-2 shrink-0",onClick:()=>so(e.uuid),children:(0,a.jsx)(l.A,{className:"h-3.5 w-3.5 text-[#9A9A9A] hover:text-[#D32F2F]"})})]},e.uuid))})]}),eU.length>0&&(0,a.jsxs)("div",{className:"mt-3",children:[(0,a.jsxs)("div",{className:"flex items-center gap-1.5 mb-1.5",children:[(0,a.jsx)(h.A,{className:"h-3 w-3 rotate-180 text-[#9A9A9A]"}),(0,a.jsx)("span",{className:"text-[10px] font-medium uppercase tracking-wide text-[#9A9A9A]",children:ea("tasks.blockedByThis")})]}),(0,a.jsx)("div",{className:"space-y-1.5",children:eU.map(e=>(0,a.jsxs)("div",{className:"group flex items-center justify-between rounded-lg bg-[#FAF8F4] p-3",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,a.jsx)(c.A,{className:"h-3.5 w-3.5 shrink-0 text-[#6B6B6B]"}),(0,a.jsx)("span",{className:"text-xs text-[#2C2C2C] truncate",children:e.title}),(0,a.jsx)(F.E,{className:"shrink-0 text-[10px] ".concat(ef[e.status]||""),children:ea("status.".concat(ej[e.status]||e.status))})]}),(0,a.jsx)(S.$,{variant:"ghost",size:"icon",className:"h-6 w-6 opacity-0 group-hover:opacity-100 transition-opacity ml-2 shrink-0",onClick:()=>su(e.uuid),children:(0,a.jsx)(l.A,{className:"h-3.5 w-3.5 text-[#9A9A9A] hover:text-[#D32F2F]"})})]},e.uuid))})]}),0===e_.length&&0===eU.length&&(0,a.jsx)("p",{className:"mt-2 text-sm italic text-[#9A9A9A]",children:ea("tasks.noDependencies")}),sx.length>0&&(0,a.jsx)("div",{className:"mt-3",children:(0,a.jsxs)(U.l6,{onValueChange:e=>sd(e),children:[(0,a.jsx)(U.bq,{className:"h-8 border-[#E5E0D8] text-xs text-[#6B6B6B] focus:ring-[#C67A52]",children:(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,a.jsx)(d.A,{className:"h-3 w-3"}),(0,a.jsx)(U.yv,{placeholder:ea("tasks.addDependency")})]})}),(0,a.jsx)(U.gC,{children:sx.map(e=>(0,a.jsx)(U.eb,{value:e.uuid,children:(0,a.jsx)("span",{className:"truncate",children:e.title})},e.uuid))})]},e_.length)})]})]}),f&&f.acceptanceCriteriaItems&&f.acceptanceCriteriaItems.length>0&&(()=>{let e=f.acceptanceCriteriaItems,s=f.acceptanceSummary,t=e=>"passed"===e?(0,a.jsx)(g.A,{className:"h-4 w-4 text-green-600"}):"failed"===e?(0,a.jsx)(v.A,{className:"h-4 w-4 text-red-600"}):(0,a.jsx)(j,{className:"h-4 w-4 text-yellow-600"}),i=e=>"passed"===e?"bg-green-50 text-green-700":"failed"===e?"bg-red-50 text-red-700":"bg-yellow-50 text-yellow-700",r=async(e,s)=>{(await V(f.uuid,[{uuid:e,status:s}])).success&&ei.refresh()};return(0,a.jsxs)("div",{className:"mt-5",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)("label",{className:"text-[11px] font-medium uppercase tracking-wide text-[#9A9A9A]",children:ea("acceptanceCriteria.title")}),s&&(0,a.jsx)(F.E,{className:i(f.acceptanceStatus||"pending"),variant:"secondary",children:ea("acceptanceCriteria.progress",{passed:s.passed,total:s.total})})]}),(0,a.jsxs)("div",{className:"mt-2 space-y-2",children:[e.map(e=>(0,a.jsx)(E.Zp,{className:"p-3",children:(0,a.jsxs)("div",{className:"flex items-start gap-2",children:[(0,a.jsx)("div",{className:"mt-0.5 shrink-0",children:t(e.status)}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,a.jsx)("span",{className:"text-xs text-[#2C2C2C]",children:e.description}),(0,a.jsx)(F.E,{variant:"outline",className:"text-[10px] shrink-0",children:e.required?ea("acceptanceCriteria.required"):ea("acceptanceCriteria.optional")})]}),(0,a.jsxs)("div",{className:"mt-2 space-y-1",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 text-[10px]",children:[(0,a.jsx)("span",{className:"text-[#9A9A9A] w-20 shrink-0",children:ea("acceptanceCriteria.devSelfCheck")}),(0,a.jsxs)(F.E,{className:"text-[10px] ".concat(i(e.devStatus)),variant:"secondary",children:[t(e.devStatus),(0,a.jsx)("span",{className:"ml-1",children:ea("acceptanceCriteria.status.".concat(e.devStatus))})]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2 text-[10px]",children:[(0,a.jsx)("span",{className:"text-[#9A9A9A] w-20 shrink-0",children:ea("acceptanceCriteria.verification")}),(0,a.jsxs)(F.E,{className:"text-[10px] ".concat(i(e.status)),variant:"secondary",children:[t(e.status),(0,a.jsx)("span",{className:"ml-1",children:ea("acceptanceCriteria.status.".concat(e.status))})]})]})]}),e.devEvidence&&(0,a.jsxs)("div",{className:"mt-2 rounded bg-[#FAF8F4] p-2",children:[(0,a.jsx)("span",{className:"text-[10px] font-medium text-[#9A9A9A]",children:ea("acceptanceCriteria.devEvidence")}),(0,a.jsx)("p",{className:"text-[11px] text-[#2C2C2C] mt-0.5",children:e.devEvidence})]}),e.evidence&&(0,a.jsxs)("div",{className:"mt-2 rounded bg-[#FAF8F4] p-2",children:[(0,a.jsx)("span",{className:"text-[10px] font-medium text-[#9A9A9A]",children:ea("acceptanceCriteria.verifyEvidence")}),(0,a.jsx)("p",{className:"text-[11px] text-[#2C2C2C] mt-0.5",children:e.evidence})]}),"pending"===e.status?(0,a.jsxs)("div",{className:"mt-2 flex gap-2",children:[(0,a.jsxs)(S.$,{size:"sm",variant:"outline",className:"h-8 min-h-[44px] sm:min-h-0 flex-1 sm:flex-none text-xs text-green-700 border-green-200 hover:bg-green-50",onClick:()=>r(e.uuid,"passed"),children:[(0,a.jsx)(g.A,{className:"h-3.5 w-3.5 mr-1"}),ea("acceptanceCriteria.pass")]}),(0,a.jsxs)(S.$,{size:"sm",variant:"outline",className:"h-8 min-h-[44px] sm:min-h-0 flex-1 sm:flex-none text-xs text-red-700 border-red-200 hover:bg-red-50",onClick:()=>r(e.uuid,"failed"),children:[(0,a.jsx)(v.A,{className:"h-3.5 w-3.5 mr-1"}),ea("acceptanceCriteria.fail")]})]}):(0,a.jsx)("div",{className:"mt-2",children:(0,a.jsx)(S.$,{size:"sm",variant:"ghost",className:"h-7 min-h-[44px] sm:min-h-0 text-xs text-[#9A9A9A] hover:text-[#2C2C2C]",onClick:async()=>{(await W(f.uuid,e.uuid)).success&&ei.refresh()},children:ea("acceptanceCriteria.undoVerification")})})]})]})},e.uuid)),s&&(s.requiredPending>0||s.requiredFailed>0)&&(0,a.jsxs)("div",{className:"flex items-center gap-2 rounded-lg bg-yellow-50 p-3 mt-2",children:[(0,a.jsx)(b.A,{className:"h-4 w-4 text-yellow-600 shrink-0"}),(0,a.jsx)("span",{className:"text-xs text-yellow-700",children:ea("acceptanceCriteria.gateBlocked",{count:s.requiredPending+s.requiredFailed})})]}),s&&0===s.requiredPending&&0===s.requiredFailed&&s.required>0&&(0,a.jsxs)("div",{className:"flex items-center gap-2 rounded-lg bg-green-50 p-3 mt-2",children:[(0,a.jsx)(g.A,{className:"h-4 w-4 text-green-600 shrink-0"}),(0,a.jsx)("span",{className:"text-xs text-green-700",children:ea("acceptanceCriteria.gateReady")})]})]})]})})(),(0,a.jsxs)("div",{className:"mt-5 flex-1",children:[(0,a.jsx)("label",{className:"text-[11px] font-medium uppercase tracking-wide text-[#9A9A9A]",children:ea("common.activity")}),(0,a.jsx)("div",{className:"mt-2 space-y-3",children:ek?(0,a.jsx)("div",{className:"flex items-center justify-center py-4",children:(0,a.jsx)(p.A,{className:"h-4 w-4 animate-spin text-[#9A9A9A]"})}):0===eC.length?(0,a.jsx)("p",{className:"text-sm text-[#9A9A9A] italic",children:ea("common.noActivity")}):eC.map(e=>(0,a.jsxs)("div",{className:"flex items-start gap-2.5",children:[(0,a.jsx)("div",{className:"flex h-5 w-5 items-center justify-center rounded-full bg-[#F5F2EC]",children:(0,a.jsx)("div",{className:"h-2 w-2 rounded-full ".concat(function(e){switch(e){case"task_created":return"bg-[#C67A52]";case"task_assigned":case"task_claimed":return"bg-[#1976D2]";case"task_started":return"bg-[#5A9E6F]";case"task_submitted":return"bg-[#7B1FA2]";case"task_completed":case"task_verified":return"bg-[#00796B]";case"task_released":return"bg-[#E65100]";default:return"bg-[#6B6B6B]"}}(e.action))})}),(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("p",{className:"text-xs text-[#2C2C2C]",children:function(e,s){let t=e.sessionName?"".concat(e.actorName," / ").concat(e.sessionName):e.actorName,{action:a}=e;switch(a){case"task_created":return s("activity.taskCreated",{actor:t});case"task_assigned":return s("activity.taskAssigned",{actor:t});case"task_claimed":return s("activity.taskClaimed",{actor:t});case"task_started":return s("activity.taskStarted",{actor:t});case"task_submitted":return s("activity.taskSubmitted",{actor:t});case"task_completed":case"task_verified":return s("activity.taskCompleted",{actor:t});case"task_released":return s("activity.taskReleased",{actor:t});case"task_status_changed":return s("activity.taskStatusChanged",{actor:t});default:return"".concat(t,": ").concat(a)}}(e,ea)}),(0,a.jsx)("p",{className:"text-[10px] text-[#9A9A9A]",children:eA(e.createdAt,ea)})]})]},e.uuid))})]}),(0,a.jsxs)("div",{className:"mt-5",children:[(0,a.jsx)("label",{className:"text-[11px] font-medium uppercase tracking-wide text-[#9A9A9A]",children:ea("comments.title")}),(0,a.jsx)("div",{className:"mt-3",children:(0,a.jsx)(J.$m,{targetType:"task",targetUuid:f.uuid,currentUserUuid:Z,compact:!0})})]})]}):null})}),(0,a.jsx)("div",{className:"border-t border-[#F5F2EC] px-6 py-4",children:(0,a.jsx)("div",{className:"flex items-center gap-3",children:eG?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(S.$,{variant:"outline",className:"border-[#E5E0D8]",onClick:sn,disabled:e9,children:ea("common.cancel")}),(0,a.jsx)(S.$,{className:"bg-[#C67A52] hover:bg-[#B56A42] text-white",onClick:sc,disabled:e9||!eK.trim(),children:e9?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(p.A,{className:"mr-2 h-4 w-4 animate-spin"}),ea("common.saving")]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(N.A,{className:"mr-2 h-4 w-4"}),eJ?ea("common.create"):ea("tasks.saveChanges")]})})]}):f?(0,a.jsxs)(a.Fragment,{children:["done"!==f.status&&"closed"!==f.status&&(0,a.jsxs)(S.$,{variant:"outline",className:"border-[#E5E0D8]",onClick:()=>eD(!0),disabled:ec,children:[(0,a.jsx)(A.A,{className:"mr-2 h-4 w-4"}),ea("common.assign")]}),st&&(0,a.jsxs)(S.$,{className:"flex-1 bg-[#1976D2] hover:bg-[#1565C0] text-white",onClick:()=>sr("in_progress"),disabled:ec,children:[(0,a.jsx)(y.A,{className:"mr-2 h-4 w-4"}),ea("tasks.startWork")]}),sa&&(0,a.jsxs)(S.$,{className:"flex-1 bg-[#7B1FA2] hover:bg-[#6A1B9A] text-white",onClick:()=>sr("to_verify"),disabled:ec,children:[(0,a.jsx)(C.A,{className:"mr-2 h-4 w-4"}),ea("tasks.submitForReview")]}),si&&(0,a.jsxs)(S.$,{className:"flex-1 bg-[#22C55E] hover:bg-[#16A34A] text-white",onClick:()=>sr("done"),disabled:ec,children:[(0,a.jsx)(w,{className:"mr-2 h-4 w-4"}),ea("tasks.markAsVerified")]}),("done"===f.status||"closed"===f.status)&&(0,a.jsx)("div",{className:"text-sm text-[#9A9A9A] text-center w-full",children:ea("tasks.taskCompleted")}),(0,a.jsx)("div",{className:"ml-auto",children:(0,a.jsxs)(T.Lt,{children:[(0,a.jsx)(T.tv,{asChild:!0,children:(0,a.jsx)(S.$,{variant:"outline",size:"icon",className:"h-9 w-9 border-[#E5E0D8] text-[#D32F2F] hover:bg-[#FFEBEE] hover:text-[#D32F2F] hover:border-[#D32F2F]",children:(0,a.jsx)(k.A,{className:"h-4 w-4"})})}),(0,a.jsxs)(T.EO,{children:[(0,a.jsxs)(T.wd,{children:[(0,a.jsx)(T.r7,{children:ea("tasks.deleteTask")}),(0,a.jsx)(T.$v,{children:ea("tasks.deleteTaskConfirm",{title:f.title})})]}),(0,a.jsxs)(T.ck,{children:[(0,a.jsx)(T.Zr,{children:ea("common.cancel")}),(0,a.jsx)(T.Rx,{variant:"destructive",onClick:sl,disabled:e8,children:e8?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(p.A,{className:"mr-2 h-4 w-4 animate-spin"}),ea("common.delete")]}):ea("common.delete")})]})]})]})})]}):null})})]}),f&&eB&&(0,a.jsx)(el,{task:f,projectUuid:P,currentUserUuid:Z,onClose:()=>eD(!1)})]})}},62482:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(66206).A)("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]])},63289:(e,s,t)=>{t.d(s,{h:()=>i});var a=t(52217);let i=(0,a.createServerReference)("40b569d112168b54fcedc259e7c44a1ab1d744132e",a.callServer,void 0,a.findSourceMapURL,"getBatchWorkerCountsAction")},65626:(e,s,t)=>{t.d(s,{K5:()=>l,Rf:()=>c,Yv:()=>a,bK:()=>n,qG:()=>r,tE:()=>i});let a={fast:.15,normal:.2,slow:.3,easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1],stagger:.04,staggerFast:.03,spring:{type:"spring",stiffness:500,damping:30},tween:{type:"tween",duration:.2,ease:[0,0,.2,1]}},i={initial:{opacity:0,y:8},animate:{opacity:1,y:0,transition:{duration:a.normal,ease:a.easeOut}},exit:{opacity:0,y:-4,transition:{duration:a.fast,ease:a.easeOut}}},r={initial:{opacity:0},animate:{opacity:1,transition:{duration:a.normal,ease:a.easeOut}},exit:{opacity:0,transition:{duration:a.fast,ease:a.easeOut}}};a.normal,a.easeOut,a.fast,a.easeOut;let n={initial:{},animate:{transition:{staggerChildren:a.stagger}}},c={initial:{opacity:0,y:8},animate:{opacity:1,y:0,transition:{duration:a.normal,ease:a.easeOut}}},l={initial:{opacity:0,scale:.95,y:-4},animate:{opacity:1,scale:1,y:0,transition:{duration:a.fast,ease:a.easeOut}},exit:{opacity:0,scale:.95,y:-4,transition:{duration:a.fast,ease:a.easeOut}}}},70633:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(66206).A)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},81531:(e,s,t)=>{t.d(s,{T:()=>r});var a=t(1856),i=t(23675);function r(e,s){var t;let r=(0,i.useSearchParams)(),n=(0,a.useRef)(!1),c=!n.current;n.current=!0;let l=null!=(t=r.get("panel"))?t:c&&null!=s?s:null,d=r.get("tab"),o=(0,a.useCallback)((s,t)=>{let a=new URLSearchParams(window.location.search);s?a.set("panel",s):a.delete("panel"),t?a.set("tab",t):a.delete("tab");let i=a.toString();return i?"".concat(e,"?").concat(i):e},[e]),u=(0,a.useCallback)((e,s)=>{window.history.replaceState(null,"",o(e,s))},[o]),x=(0,a.useCallback)(()=>{window.history.replaceState(null,"",o(null))},[o]),m=(0,a.useCallback)(e=>{l&&window.history.replaceState(null,"",o(l,e))},[o,l]);return{selectedId:l,selectedTab:d,openPanel:u,closePanel:x,switchTab:m}}},88064:(e,s,t)=>{t.d(s,{J:()=>n});var a=t(90508);t(1856);var i=t(58057),r=t(24377);function n(e){let{className:s,...t}=e;return(0,a.jsx)(i.Root,{"data-slot":"label",className:(0,r.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",s),...t})}},90795:(e,s,t)=>{t.d(s,{Bj:()=>l,L8:()=>i,Wl:()=>d,_5:()=>c,eT:()=>r,fw:()=>n});var a=t(38106);let i=480;function r(e){switch(e){case"done":return"bg-[#00796B]";case"in_progress":return"bg-[#1976D2]";case"to_verify":return"bg-[#7B1FA2]";case"open":case"assigned":return"bg-[#E65100]";case"closed":return"bg-[#9A9A9A]";default:return"bg-[#D9D9D9]"}}function n(e,s){let t=new Date(e),i=new Date().getTime()-t.getTime(),r=Math.floor(i/6e4),n=Math.floor(i/36e5),c=Math.floor(i/864e5);return r<1?s("time.justNow"):r<60?s("time.minutesAgo",{minutes:r}):n<24?s("time.hoursAgo",{hours:n}):c<7?s("time.daysAgo",{days:c}):(0,a.r)(t)}let c={todo:"bg-[#FFF3E0] text-[#E65100]",in_progress:"bg-[#E3F2FD] text-[#1976D2]",human_conduct_required:"bg-[#F3E5F5] text-[#7B1FA2]",done:"bg-[#E0F2F1] text-[#00796B]"},l={todo:"todo",in_progress:"inProgress",human_conduct_required:"humanConductRequired",done:"done"},d={open:"open",researching:"researching",answer_questions:"answerQuestions",planning:"planning",review_proposal:"reviewProposal",building:"building",verify_work:"verifyWork",done:"done"}},92745:(e,s,t)=>{t.d(s,{_u:()=>A,c_:()=>g,nF:()=>N,qK:()=>j});var a=t(90508),i=t(1856),r=t(26145),n=t(75380);t(33805);var c=t(10196),l=t.n(c),d=t(39268),o=t(57731);let u={open:"bg-[#FFF3E0] text-[#E65100]",assigned:"bg-[#E3F2FD] text-[#1976D2]",in_progress:"bg-[#E8F5E9] text-[#5A9E6F]",to_verify:"bg-[#F3E5F5] text-[#7B1FA2]",done:"bg-[#E0F2F1] text-[#00796B]",closed:"bg-[#F5F5F5] text-[#9A9A9A]"},x={open:"#E65100",assigned:"#1976D2",in_progress:"#5A9E6F",to_verify:"#7B1FA2",done:"#00796B",closed:"#9A9A9A"},m={low:"priority.low",medium:"priority.medium",high:"priority.high",critical:"priority.critical"},p={open:"status.open",assigned:"status.assigned",in_progress:"status.inProgress",to_verify:"status.toVerify",done:"status.done",closed:"status.closed"},h={low:"bg-[#9A9A9A]",medium:"bg-[#E65100]",high:"bg-[#D32F2F]",critical:"bg-[#B71C1C]"},g={taskNode:function(e){let{data:s}=e,t=(0,d.c)();return(0,a.jsxs)("div",{className:"rounded-lg border-2 border-[#E5E2DC] bg-white px-4 py-3 shadow-sm min-w-[200px] max-w-[260px] cursor-pointer hover:border-[#C67A52] transition-colors",children:[(0,a.jsx)(r.h7,{type:"target",position:n.yX.Top,className:"!bg-[#C67A52] !w-2 !h-2"}),(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-1.5",children:[(0,a.jsx)(o.E,{className:"text-[10px] ".concat(u[s.status]||""),children:t(p[s.status]||s.status)}),(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)("div",{className:"h-1.5 w-1.5 rounded-full ".concat(h[s.priority]||"")}),(0,a.jsx)("span",{className:"text-[10px] text-[#9A9A9A]",children:t(m[s.priority]||s.priority)})]})]}),(0,a.jsx)("p",{className:"text-xs font-medium text-[#2C2C2C] leading-snug line-clamp-2",children:s.title}),(0,a.jsx)(r.h7,{type:"source",position:n.yX.Bottom,className:"!bg-[#C67A52] !w-2 !h-2"})]})}},v={taskNode:function(e){let{data:s}=e,t=x[s.status]||"#E5E0D8";return(0,a.jsxs)("div",{className:"rounded-md border-[1.5px] bg-white px-2.5 py-1.5 shadow-sm",style:{borderColor:t,width:f},children:[(0,a.jsx)(r.h7,{type:"target",position:n.yX.Top,className:"!bg-[#C67A52] !w-1.5 !h-1.5"}),(0,a.jsx)("p",{className:"text-[10px] font-medium text-[#2C2C2C] leading-tight line-clamp-2",children:s.title}),(0,a.jsx)(r.h7,{type:"source",position:n.yX.Bottom,className:"!bg-[#C67A52] !w-1.5 !h-1.5"})]})}},f=150,j={animated:!0,style:{stroke:"#C67A52",strokeWidth:2},markerEnd:{type:"arrowclosed",color:"#C67A52"}},b={animated:!0,style:{stroke:"#C67A52",strokeWidth:1.5},markerEnd:{type:"arrowclosed",color:"#C67A52"}};function N(e,s,t){var a,i,r,n;let c=null!=(a=null==t?void 0:t.nodeWidth)?a:240,d=null!=(i=null==t?void 0:t.nodeHeight)?i:80,o=new(l()).graphlib.Graph;return o.setDefaultEdgeLabel(()=>({})),o.setGraph({rankdir:"TB",nodesep:null!=(r=null==t?void 0:t.nodesep)?r:50,ranksep:null!=(n=null==t?void 0:t.ranksep)?n:80}),e.forEach(e=>{o.setNode(e.id,{width:c,height:d})}),s.forEach(e=>{o.setEdge(e.source,e.target)}),l().layout(o),{nodes:e.map(e=>{let s=o.node(e.id);return{...e,position:{x:s.x-c/2,y:s.y-d/2}}}),edges:s}}function A(e){let{tasks:s,edges:t,readonly:n=!1,compact:c=!1,height:l,onNodeClick:o,className:u}=e,x=(0,d.c)(),{layoutedNodes:m,layoutedEdges:p}=(0,i.useMemo)(()=>{let e=s.map(e=>{var s;return{id:e.uuid,type:"taskNode",position:{x:0,y:0},data:{title:e.title,status:e.status,priority:e.priority,proposalUuid:null!=(s=e.proposalUuid)?s:null}}}),a=N(e,t.map((e,s)=>({id:"e-".concat(s),source:e.to,target:e.from,...c?b:j})),c?{nodeWidth:f,nodeHeight:50,nodesep:20,ranksep:40}:void 0);return{layoutedNodes:a.nodes,layoutedEdges:a.edges}},[s,t,c]);return 0===s.length?(0,a.jsx)("div",{className:"flex items-center justify-center text-sm text-[#9A9A9A] ".concat(u||""),style:l?{height:l}:void 0,children:x("tasks.noTasksToDisplay")}):(0,a.jsx)("div",{className:"rounded-[10px] border border-[#E5E0D8] bg-[#F7F6F3] ".concat(u||""),style:l?{height:l}:void 0,children:(0,a.jsxs)(r.Gc,{nodes:m,edges:p,nodeTypes:c?v:g,onNodeClick:o?(e,s)=>o(s.id):void 0,fitView:!0,fitViewOptions:{padding:.2},minZoom:.3,maxZoom:1.5,proOptions:{hideAttribution:!0},nodesDraggable:!n,nodesConnectable:!n,elementsSelectable:!n,panOnDrag:!0,zoomOnScroll:!0,children:[(0,a.jsx)(r.VS,{color:"#E5E0D8",gap:20}),!n&&(0,a.jsx)(r.H2,{className:"[&>button]:border-[#E5E0D8] [&>button]:bg-white [&>button]:text-[#2C2C2C] [&>button:hover]:bg-[#FAF8F4]"})]})})}}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[46983],{4365:(e,s,t)=>{t.d(s,{G7:()=>l,L$:()=>u,h_:()=>x,oI:()=>d,uB:()=>c,xL:()=>o});var a=t(90508);t(1856);var i=t(64731),r=t(30044),n=t(24377);function c(e){let{className:s,...t}=e;return(0,a.jsx)(i.uB,{"data-slot":"command",className:(0,n.cn)("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",s),...t})}function l(e){let{className:s,...t}=e;return(0,a.jsxs)("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[(0,a.jsx)(r.A,{className:"size-4 shrink-0 opacity-50"}),(0,a.jsx)(i.uB.Input,{"data-slot":"command-input",className:(0,n.cn)("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",s),...t})]})}function d(e){let{className:s,...t}=e;return(0,a.jsx)(i.uB.List,{"data-slot":"command-list",className:(0,n.cn)("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",s),...t})}function o(e){let{...s}=e;return(0,a.jsx)(i.uB.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...s})}function u(e){let{className:s,...t}=e;return(0,a.jsx)(i.uB.Group,{"data-slot":"command-group",className:(0,n.cn)("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",s),...t})}function x(e){let{className:s,...t}=e;return(0,a.jsx)(i.uB.Item,{"data-slot":"command-item",className:(0,n.cn)("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",s),...t})}},6985:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(66206).A)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},12210:(e,s,t)=>{t.d(s,{d:()=>n});var a=t(90508);t(1856);var i=t(60322),r=t(24377);function n(e){let{className:s,...t}=e;return(0,a.jsx)(i.Root,{"data-slot":"switch",className:(0,r.cn)("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:ring-ring/50 inline-flex h-5 w-9 shrink-0 items-center rounded-full border-2 border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",s),...t,children:(0,a.jsx)(i.Thumb,{"data-slot":"switch-thumb",className:(0,r.cn)("bg-background pointer-events-none block size-4 rounded-full ring-0 shadow-lg transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})})}},13108:(e,s,t)=>{t.d(s,{C:()=>o,K:()=>x});var a=t(90508),i=t(39268),r=t(97413),n=t(5616),c=t(22922),l=t(14554),d=t(12210);function o(e){let{items:s,onChange:t,disabled:o}=e,u=(0,i.c)(),x=(e,a)=>{let i=s.slice();i[e]={...i[e],...a},t(i)};return(0,a.jsxs)("div",{className:"space-y-3",children:[s.length>0&&(0,a.jsx)("div",{className:"space-y-2",children:s.map((e,i)=>(0,a.jsxs)("div",{className:"flex items-start gap-2 rounded-lg border border-[#E5E2DC] bg-[#FAF8F4] p-2.5",children:[(0,a.jsx)("div",{className:"flex-1 min-w-0",children:(0,a.jsx)(l.p,{value:e.description,onChange:e=>x(i,{description:e.target.value}),placeholder:u("acceptanceCriteria.criterionPlaceholder"),className:"border-[#E5E2DC] text-sm focus-visible:ring-[#C67A52] h-8",disabled:o})}),(0,a.jsxs)("div",{className:"flex items-center gap-2 shrink-0 pt-1",children:[(0,a.jsx)(d.d,{checked:e.required,onCheckedChange:e=>x(i,{required:e}),className:"data-[state=checked]:bg-[#C67A52]",disabled:o}),(0,a.jsx)("span",{className:"text-[10px] font-medium text-[#6B6B6B] min-w-[52px]",children:e.required?u("acceptanceCriteria.required"):u("acceptanceCriteria.optional")}),(0,a.jsx)(c.$,{variant:"outline",size:"sm",className:"h-7 w-7 p-0 border-[#E5E2DC] text-[#9A9A9A] hover:text-[#D32F2F] hover:border-[#D32F2F] hover:bg-[#FFEBEE]",onClick:()=>{t(s.filter((e,s)=>s!==i))},disabled:o,type:"button",children:(0,a.jsx)(r.A,{className:"h-3 w-3"})})]})]},i))}),(0,a.jsxs)(c.$,{variant:"outline",size:"sm",className:"h-8 gap-1.5 border-[#E5E2DC] text-xs text-[#6B6B6B] hover:text-[#C67A52] hover:border-[#C67A52]",onClick:()=>{t([...s,{description:"",required:!0}])},disabled:o,type:"button",children:[(0,a.jsx)(n.A,{className:"h-3 w-3"}),u("acceptanceCriteria.addCriterion")]})]})}function u(e){return{description:e.description.trim(),required:!!e.required}}function x(e,s){if(e.length!==s.length)return!0;for(let t=0;t<e.length;t++){let a=u(e[t]),i=u(s[t]);if(a.description!==i.description||a.required!==i.required)return!0}return!1}},14554:(e,s,t)=>{t.d(s,{p:()=>r});var a=t(90508);t(1856);var i=t(24377);function r(e){let{className:s,type:t,...r}=e;return(0,a.jsx)("input",{type:t,"data-slot":"input",className:(0,i.cn)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",s),...r})}},17612:(e,s,t)=>{t.d(s,{w:()=>i});var a=t(52217);let i=(0,a.createServerReference)("60371021dde51bf110a3db93f5c227f71d3c105e67",a.callServer,void 0,a.findSourceMapURL,"addTaskDependencyAction")},17722:(e,s,t)=>{t.d(s,{AI:()=>c,_8:()=>n});var a=t(90508);t(1856);var i=t(97438),r=t(24377);function n(e){let{open:s,onOpenChange:t,header:n,footer:c,children:l,className:d,bodyClassName:o,zIndexClassName:u="z-[110]",showCloseButton:x=!0}=e;return(0,a.jsx)(i.lG,{open:s,onOpenChange:t,children:(0,a.jsxs)(i.Cf,{className:(0,r.cn)("flex max-h-[85svh] flex-col gap-0 overflow-hidden p-0",u,d),overlayClassName:u,showCloseButton:x,children:[(0,a.jsx)(i.c7,{className:"shrink-0 border-b border-[#E5E0D8] px-6 py-5 text-left",children:n}),(0,a.jsx)("div",{className:(0,r.cn)("min-h-0 flex-1 overflow-y-auto px-6 py-4",o),children:l}),(0,a.jsx)(i.Es,{className:"shrink-0 border-t border-[#E5E0D8] px-6 py-5",children:c})]})})}let c=i.L3},18789:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(66206).A)("layout-grid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]])},29532:(e,s,t)=>{function a(e,s){return!!e&&!!s&&("user"===e.type?"user"===s.type&&e.uuid===s.uuid:"agent"===e.type?"agent"===s.type&&e.uuid===s.uuid:"agent_instance"===e.type&&"agent"===s.type&&!!e.agentUuid&&e.agentUuid===s.uuid)}function i(e){return!!e&&("agent"===e.type||"agent_instance"===e.type)}t.d(s,{RU:()=>a,bB:()=>i})},35754:(e,s,t)=>{t.d(s,{v:()=>ey});var a=t(90508),i=t(1856),r=t(23675),n=t(39268),c=t(76111),l=t(9160),d=t(5616),o=t(70633),u=t(57893),x=t(5425),m=t(56770),p=t(85226),h=t(62898),g=t(42533),v=t(1861),f=t(66206);let b=(0,f.A)("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"}]]);var j=t(17475),N=t(60532),A=t(94903),y=t(62482),C=t(6985);let w=(0,f.A)("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);var k=t(97413),F=t(57731),E=t(48416),S=t(22922),B=t(14554),D=t(15972),_=t(88064),R=t(64993),U=t(91846),T=t(51817),q=t(73693),L=t(97868),M=t(29532),P=t(52217);let z=(0,P.createServerReference)("603acd3c4ebe9cbd4598b8cb2501ce98b92b1fdb40",P.callServer,void 0,P.findSourceMapURL,"updateTaskStatusAction"),I=(0,P.createServerReference)("40feec7ffe3f82a3ce66b273ad22b201140871b810",P.callServer,void 0,P.findSourceMapURL,"createTaskAction"),$=(0,P.createServerReference)("408ad250b1c95a7f1efecf5b0ed5bed8ec036782a4",P.callServer,void 0,P.findSourceMapURL,"updateTaskFieldsAction"),O=(0,P.createServerReference)("60e09d26ae184a9d8cc214f1375bb770d096ae63c8",P.callServer,void 0,P.findSourceMapURL,"deleteTaskAction"),V=(0,P.createServerReference)("60c836f700340c03d18b456a805860360d7f2cd89e",P.callServer,void 0,P.findSourceMapURL,"markCriteriaAction"),W=(0,P.createServerReference)("6024523d7a03881c443e90ee28d07e55f7bd3cc277",P.callServer,void 0,P.findSourceMapURL,"resetCriterionAction");var J=t(85573);let G=(0,P.createServerReference)("40942c23733a0da808832d50a0871ebfb91b45e300",P.callServer,void 0,P.findSourceMapURL,"getTaskActivitiesAction"),H=(0,P.createServerReference)("4071833b16fd495feb22be4dce9b98cde0657077d2",P.callServer,void 0,P.findSourceMapURL,"getTaskSourceAction");var K=t(97261),X=t(13108),Z=t(30028),Q=t(17722),Y=t(41033),ee=t(78307),es=t(24900);let et=(0,P.createServerReference)("001d4bc6bb0f38c5e44ac43f7cd4041d39aa06a93a",P.callServer,void 0,P.findSourceMapURL,"getDeveloperAgentsAction"),ea=(0,P.createServerReference)("40e932096fef75f107872f1b5bd0b2a1f1a64c3bac",P.callServer,void 0,P.findSourceMapURL,"getAgentInstancesAction"),ei=(0,P.createServerReference)("40629d8eb5205e99188dc9d19a7513a9c21fa614ab",P.callServer,void 0,P.findSourceMapURL,"claimTaskAction"),er=(0,P.createServerReference)("7034715cc5db0403b4672103ca11311fe9b8b3629d",P.callServer,void 0,P.findSourceMapURL,"claimTaskToAgentAction"),en=(0,P.createServerReference)("600bc1c79ebaea0b7f7e00c74ef0817cf486c685ef",P.callServer,void 0,P.findSourceMapURL,"claimTaskToUserAction"),ec=(0,P.createServerReference)("4004aa958ac3313d32fa5bf3d46751239e6dec8e26",P.callServer,void 0,P.findSourceMapURL,"releaseTaskAction");function el(e){var s,t;let{task:c,projectUuid:l,currentUserUuid:d,onClose:o}=e,u=(0,n.c)(),m=(0,r.useRouter)(),[h,g]=(0,i.useState)(!1),[v,f]=(0,i.useState)("self"),[b,j]=(0,i.useState)(""),[N,y]=(0,i.useState)(""),[C,w]=(0,i.useState)([]),[k,F]=(0,i.useState)([]),[E,B]=(0,i.useState)(!0),[D,R]=(0,i.useState)(null),[T,q]=(0,i.useState)([]),[L,M]=(0,i.useState)(!1),[P,z]=(0,i.useState)(null),I=!!c.assignee;(0,i.useEffect)(()=>{!async function(){B(!0);let e=await et();w(e.agents||[]),F((e.users||[]).filter(e=>e.uuid!==d)),B(!1)}()},[d]),(0,i.useEffect)(()=>{if("agent"!==v||!b){q([]),z(null);return}let e=!1;return M(!0),z(null),ea(b).then(s=>{e||q((0,ee.C)(s.instances))}).finally(()=>{e||M(!1)}),()=>{e=!0}},[v,b]);let $=null!=(t=T.find(e=>e.connectionUuid===P))?t:null,O=new Set(T.map(e=>e.host)).size>1,V=async()=>{let e;if(g(!0),R(null),"self"===v)e=await ei(c.uuid);else if("agent"===v&&b){var s;e=await er(c.uuid,b,null!=(s=null==$?void 0:$.agentInstanceUuid)?s:void 0)}else if("user"===v&&N)e=await en(c.uuid,N);else{if("release"!==v)return void g(!1);e=await ec(c.uuid)}g(!1),(null==e?void 0:e.success)?(o(),m.refresh()):(null==e?void 0:e.error)&&R(e.error)},W="self"===v||"agent"===v&&b||"user"===v&&N||"release"===v&&I;return(0,a.jsxs)(Q._8,{open:!0,onOpenChange:e=>{e||o()},className:"bg-white sm:max-w-[400px]",header:(0,a.jsx)(Q.AI,{className:"text-base font-semibold text-[#2C2C2C]",children:u("tasks.assignTask")}),footer:(0,a.jsxs)("div",{className:"flex w-full items-center justify-end gap-4",children:[(0,a.jsx)(S.$,{variant:"outline",onClick:o,disabled:h,className:"border-[#E5E0D8]",children:u("common.cancel")}),(0,a.jsx)(S.$,{onClick:V,disabled:h||!W,className:"bg-[#C67A52] hover:bg-[#B56A42] text-white",children:h?(0,a.jsx)(p.A,{className:"h-4 w-4 animate-spin"}):"release"===v?u("common.release"):function(){if("agent"!==v||!$)return u("common.assign");let e=(0,es.kn)($.cwd),s=e.isUnknown?u(e.label):e.label,t=(0,es.g9)($.host),a=t.isUnknown?u(t.label):t.label;return O?u("assignInstance.assignToWithHost",{path:s,host:a}):u("assignInstance.assignTo",{path:s})}()})]}),bodyClassName:"space-y-4",children:[(0,a.jsxs)("div",{className:"rounded-lg bg-[#FAF8F4] p-3",children:[(0,a.jsx)("p",{className:"text-[13px] font-medium text-[#2C2C2C]",children:c.title}),c.description&&(0,a.jsx)("p",{className:"mt-1 text-[11px] text-[#6B6B6B] line-clamp-2",children:c.description})]}),I&&(0,a.jsx)("div",{className:"rounded-lg bg-[#E3F2FD] p-3",children:(0,a.jsxs)("p",{className:"text-xs text-[#1976D2]",children:[u("common.currentAssignee"),": ",(0,a.jsx)("span",{className:"font-medium",children:null==(s=c.assignee)?void 0:s.name})]})}),D&&(0,a.jsx)("div",{className:"rounded-lg bg-[#FEE2E2] p-3",children:(0,a.jsx)("p",{className:"text-xs text-[#D32F2F]",children:D})}),(0,a.jsx)("p",{className:"text-[13px] text-[#6B6B6B]",children:u("assign.selectAssignee")}),E?(0,a.jsx)("div",{className:"flex items-center justify-center py-8",children:(0,a.jsx)(p.A,{className:"h-6 w-6 animate-spin text-[#9A9A9A]"})}):(0,a.jsxs)(Y.z,{value:v,onValueChange:e=>f(e),className:"space-y-3",children:[(0,a.jsxs)("div",{className:"rounded-[10px] p-4 transition-colors cursor-pointer ".concat("self"===v?"bg-[#FDF8F6] border-2 border-[#C67A52]":"bg-white border border-[#E5E0D8] hover:border-[#C67A52]/50"),onClick:()=>f("self"),children:[(0,a.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,a.jsx)(Y.C,{value:"self",id:"self",className:"border-[#C67A52] text-[#C67A52]"}),(0,a.jsx)(_.J,{htmlFor:"self",className:"text-sm font-medium text-[#2C2C2C] cursor-pointer",children:u("assign.assignToMyself")})]}),(0,a.jsx)("p",{className:"mt-2 ml-6 text-xs text-[#6B6B6B] leading-relaxed",children:u("assign.assignToMyselfDesc")})]}),(0,a.jsxs)("div",{className:"rounded-[10px] p-4 transition-colors ".concat("agent"===v?"bg-[#FDF8F6] border-2 border-[#C67A52]":"bg-white border border-[#E5E0D8]"),children:[(0,a.jsxs)("div",{className:"flex items-center gap-2.5 cursor-pointer",onClick:()=>f("agent"),children:[(0,a.jsx)(Y.C,{value:"agent",id:"agent",className:"border-[#C67A52] text-[#C67A52]"}),(0,a.jsx)(_.J,{htmlFor:"agent",className:"text-sm font-medium text-[#2C2C2C] cursor-pointer",children:u("assign.orAssignToAgent")})]}),(0,a.jsx)("p",{className:"mt-2 ml-6 text-xs text-[#6B6B6B] leading-relaxed",children:u("tasks.onlySelectedAgentCanWork")}),"agent"===v&&(0,a.jsxs)("div",{className:"mt-3 ml-6 space-y-3",children:[(0,a.jsxs)(U.l6,{value:b,onValueChange:j,children:[(0,a.jsx)(U.bq,{className:"w-full border-[#E5E0D8]",children:(0,a.jsx)(U.yv,{placeholder:u("tasks.selectAgent")})}),(0,a.jsx)(U.gC,{className:"z-[120]",children:C.length>0?C.map(e=>(0,a.jsx)(U.eb,{value:e.uuid,children:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(x.A,{className:"h-4 w-4 text-[#C67A52]"}),(0,a.jsx)("span",{children:e.name})]})},e.uuid)):(0,a.jsx)("div",{className:"px-3 py-2 text-xs text-[#9A9A9A]",children:u("tasks.noAgentsAvailable")})})]}),b&&(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)("span",{className:"text-[11px] font-medium uppercase tracking-wide text-[#9A9A9A]",children:u("assignInstance.workingDirectory")}),L?(0,a.jsxs)("div",{className:"flex items-center gap-2 py-2 text-xs text-[#9A9A9A]",children:[(0,a.jsx)(p.A,{className:"h-3.5 w-3.5 animate-spin"}),u("assignInstance.loadingInstances")]}):0===T.length?(0,a.jsx)("p",{className:"rounded-lg bg-[#FAF8F4] p-2.5 text-[11px] leading-relaxed text-[#6B6B6B]",children:u("assignInstance.noInstances")}):(0,a.jsx)(ee.O,{instances:T,selectedConnectionUuid:P,onSelect:e=>z(e.connectionUuid),ariaLabel:u("assignInstance.workingDirectory")}),(0,a.jsxs)("div",{className:"flex items-start gap-1.5 text-[11px] leading-relaxed text-[#9A8C7E]",children:[(0,a.jsx)(Z.A,{className:"mt-0.5 h-3.5 w-3.5 shrink-0","aria-hidden":!0}),(0,a.jsx)("span",{children:u("assignInstance.pinNote")})]})]})]})]}),(0,a.jsxs)("div",{className:"rounded-[10px] p-4 transition-colors ".concat("user"===v?"bg-[#FDF8F6] border-2 border-[#C67A52]":"bg-white border border-[#E5E0D8]"),children:[(0,a.jsxs)("div",{className:"flex items-center gap-2.5 cursor-pointer",onClick:()=>f("user"),children:[(0,a.jsx)(Y.C,{value:"user",id:"user",className:"border-[#C67A52] text-[#C67A52]"}),(0,a.jsx)(_.J,{htmlFor:"user",className:"text-sm font-medium text-[#2C2C2C] cursor-pointer",children:u("assign.orAssignToUser")})]}),"user"===v&&(0,a.jsx)("div",{className:"mt-3 ml-6",children:(0,a.jsxs)(U.l6,{value:N,onValueChange:y,children:[(0,a.jsx)(U.bq,{className:"w-full border-[#E5E0D8]",children:(0,a.jsx)(U.yv,{placeholder:u("tasks.selectUser")})}),(0,a.jsx)(U.gC,{className:"z-[120]",children:k.length>0?k.map(e=>(0,a.jsx)(U.eb,{value:e.uuid,children:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(A.A,{className:"h-4 w-4 text-[#6B6B6B]"}),(0,a.jsx)("span",{children:e.name||e.email})]})},e.uuid)):(0,a.jsx)("div",{className:"px-3 py-2 text-xs text-[#9A9A9A]",children:u("tasks.noUsersAvailable")})})]})})]}),I&&(0,a.jsxs)("div",{className:"rounded-[10px] p-4 transition-colors cursor-pointer ".concat("release"===v?"bg-[#FDF8F6] border-2 border-[#C67A52]":"bg-white border border-[#E5E0D8] hover:border-[#C67A52]/50"),onClick:()=>f("release"),children:[(0,a.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,a.jsx)(Y.C,{value:"release",id:"release",className:"border-[#C67A52] text-[#C67A52]"}),(0,a.jsx)(_.J,{htmlFor:"release",className:"text-sm font-medium text-[#2C2C2C] cursor-pointer",children:u("assign.releaseAssignee")})]}),(0,a.jsx)("p",{className:"mt-2 ml-6 text-xs text-[#6B6B6B] leading-relaxed",children:u("assign.releaseAssigneeDesc")})]})]})]})}let ed=(0,P.createServerReference)("4090c930c77fb37e032686717fe21e37c4cb5d9fcd",P.callServer,void 0,P.findSourceMapURL,"getTaskDependenciesAction"),eo=(0,P.createServerReference)("405199cf3b632257d066aecdc8f43b81ecf0169954",P.callServer,void 0,P.findSourceMapURL,"getProjectTasksForDependencyAction");var eu=t(17612);let ex=(0,P.createServerReference)("606dce9ac55ab5e04cdadf094d4ad8d5388743f4ca",P.callServer,void 0,P.findSourceMapURL,"removeTaskDependencyAction"),em=(0,P.createServerReference)("403568a4bd2671d07b9b2502fddac485978e30c5ae",P.callServer,void 0,P.findSourceMapURL,"getTaskSessionsAction");var ep=t(38106),eh=t(16544),eg=t(65626),ev=t(90795);let ef={open:"bg-[#FFF3E0] text-[#E65100]",assigned:"bg-[#E3F2FD] text-[#1976D2]",in_progress:"bg-[#E8F5E9] text-[#5A9E6F]",to_verify:"bg-[#F3E5F5] text-[#7B1FA2]",done:"bg-[#E0F2F1] text-[#00796B]",closed:"bg-[#F5F5F5] text-[#9A9A9A]"},eb={open:"open",assigned:"assigned",in_progress:"inProgress",to_verify:"toVerify",done:"done",closed:"closed"},ej={low:"bg-[#F5F5F5] text-[#9A9A9A]",medium:"bg-[#FFF3E0] text-[#E65100]",high:"bg-[#FEE2E2] text-[#D32F2F]",critical:"bg-[#FFCDD2] text-[#B71C1C]"},eN={low:"lowPriority",medium:"mediumPriority",high:"highPriority",critical:"criticalPriority"};function eA(e,s){let t=new Date(e),a=new Date().getTime()-t.getTime(),i=Math.floor(a/6e4),r=Math.floor(a/36e5),n=Math.floor(a/864e5);return i<1?s("time.justNow"):i<60?s("time.minutesAgo",{minutes:i}):r<24?s("time.hoursAgo",{hours:r}):n<7?s("time.daysAgo",{days:n}):(0,ep.r)(t)}function ey(e){var s,t;let{task:f,projectUuid:P,currentUserUuid:Z,mode:Q="overlay",onClose:Y,onCreated:ee,onDependencyChange:es,onBack:et}=e,ea=(0,n.c)(),ei=(0,r.useRouter)(),[er,en]=(0,i.useState)(!1);(0,i.useEffect)(()=>{let e=setTimeout(()=>en(!0),300);return()=>clearTimeout(e)},[]);let[ec,ey]=(0,i.useState)(!1),[eC,ew]=(0,i.useState)([]),[ek,eF]=(0,i.useState)(!0),[eE,eS]=(0,i.useState)(null),[eB,eD]=(0,i.useState)(!1),[e_,eR]=(0,i.useState)([]),[eU,eT]=(0,i.useState)([]),[eq,eL]=(0,i.useState)(!1),[eM,eP]=(0,i.useState)([]),[ez,eI]=(0,i.useState)(null),[e$,eO]=(0,i.useState)([]),[eV,eW]=(0,i.useState)([]),eJ=null===f,[eG,eH]=(0,i.useState)(eJ),[eK,eX]=(0,i.useState)((null==f?void 0:f.title)||""),[eZ,eQ]=(0,i.useState)((null==f?void 0:f.description)||""),[eY,e0]=(0,i.useState)((null==f?void 0:f.priority)||"medium"),[e2,e1]=(0,i.useState)((null==f?void 0:f.storyPoints)!=null?String(f.storyPoints):""),[e5,e6]=(0,i.useState)((null!=(s=null==f?void 0:f.acceptanceCriteriaItems)?s:[]).map(e=>{var s;return{description:e.description,required:null==(s=e.required)||s}})),[e9,e3]=(0,i.useState)(!1),[e7,e4]=(0,i.useState)(null),[e8,se]=(0,i.useState)(!1),ss=(0,M.RU)(null!=(t=null==f?void 0:f.assignee)?t:null,{type:"user",uuid:Z}),st=ss&&(null==f?void 0:f.status)==="assigned",sa=ss&&(null==f?void 0:f.status)==="in_progress",si=(null==f?void 0:f.status)==="to_verify";(0,i.useEffect)(()=>{async function e(){eF(!0),ew((await G(f.uuid)).activities),eF(!1)}async function s(){f.proposalUuid&&eS(await H(f.proposalUuid))}async function t(){eL(!0);let[e,s]=await Promise.all([ed(f.uuid),eo(P)]);eR(e.dependsOn),eT(e.dependedBy),eP(s.tasks),eL(!1)}async function a(){let e=await em(f.uuid);e.success&&e.data&&eO(e.data)}f&&(e(),s(),t(),a())},[null==f?void 0:f.uuid,null==f?void 0:f.proposalUuid,P]),(0,i.useEffect)(()=>{eJ&&e();async function e(){eP((await eo(P)).tasks)}},[eJ,P]),(0,i.useEffect)(()=>{if(f){var e;eH(!1),eX(f.title),eQ(f.description||""),e0(f.priority),e1(null!=f.storyPoints?String(f.storyPoints):""),e6((null!=(e=f.acceptanceCriteriaItems)?e:[]).map(e=>{var s;return{description:e.description,required:null==(s=e.required)||s}})),e4(null)}},[null==f?void 0:f.uuid,null==f?void 0:f.title,null==f?void 0:f.description,null==f?void 0:f.priority,null==f?void 0:f.storyPoints,null==f?void 0:f.acceptanceCriteriaItems]);let sr=async e=>{if(!f)return;ey(!0);let s=await z(f.uuid,e);ey(!1),s.success&&(Y(),ei.refresh())},sn=()=>{if(eJ)return void Y();if(eH(!1),f){var e;eX(f.title),eQ(f.description||""),e0(f.priority),e1(null!=f.storyPoints?String(f.storyPoints):""),e6((null!=(e=f.acceptanceCriteriaItems)?e:[]).map(e=>{var s;return{description:e.description,required:null==(s=e.required)||s}}))}e4(null)},sc=async()=>{if(!eK.trim())return void e4(ea("tasks.titleRequired"));e3(!0),e4(null);let e=e2.trim()?parseFloat(e2):null;if(eJ){let s=await I({projectUuid:P,title:eK.trim(),description:eZ.trim()||void 0,priority:eY,storyPoints:e,acceptanceCriteria:null});e3(!1),s.success?(eV.length>0&&s.taskUuid&&(await Promise.all(eV.map(e=>(0,eu.w)(s.taskUuid,e.uuid))),null==es||es()),null==ee||ee(),Y(),ei.refresh()):e4(s.error||ea("tasks.createFailed"))}else{var s;let t=(null!=(s=f.acceptanceCriteriaItems)?s:[]).map(e=>{var s;return{description:e.description,required:null==(s=e.required)||s}}),a=e5.filter(e=>e.description.trim().length>0),i=(0,X.K)(t,a);if(i&&0===a.length){e3(!1),e4(ea("acceptanceCriteria.atLeastOneRequired"));return}let r=await $({taskUuid:f.uuid,projectUuid:P,title:eK.trim(),description:eZ.trim()||null,priority:eY,storyPoints:e,...i?{acceptanceCriteriaItems:a.map(e=>({description:e.description.trim(),required:e.required}))}:{}});e3(!1),r.success?(eH(!1),ei.refresh()):e4(r.error||ea("tasks.updateFailed"))}},sl=async()=>{if(!f)return;se(!0);let e=await O(f.uuid,P);se(!1),e.success&&(Y(),ei.refresh())},sd=async e=>{if(!f)return;eI(null);let s=await (0,eu.w)(f.uuid,e);if(s.success){let s=eM.find(s=>s.uuid===e);s&&eR(e=>[...e,s]),null==es||es()}else eI(s.error||ea("tasks.failedToAddDep"))},so=async e=>{if(!f)return;eI(null);let s=await ex(f.uuid,e);s.success?(eR(s=>s.filter(s=>s.uuid!==e)),null==es||es()):eI(s.error||ea("tasks.failedToRemoveDep"))},su=async e=>{if(!f)return;eI(null);let s=await ex(e,f.uuid);s.success?(eT(s=>s.filter(s=>s.uuid!==e)),null==es||es()):eI(s.error||ea("tasks.failedToRemoveDep"))},sx=eM.filter(e=>e.uuid!==(null==f?void 0:f.uuid)&&!e_.some(s=>s.uuid===e.uuid)),sm=eM.filter(e=>!eV.some(s=>s.uuid===e.uuid)),sp="sidebyside"===Q;return(0,a.jsxs)(a.Fragment,{children:[!sp&&(0,a.jsx)("div",{className:"fixed inset-0 z-40 bg-black/20",onClick:Y}),(0,a.jsxs)("div",{className:"fixed top-14 md:top-0 flex h-[calc(100%-3.5rem)] md:h-full w-full flex-col bg-white shadow-xl border-l border-[#E5E0D8] ".concat(sp?"z-40 ".concat(er?"":"animate-in slide-in-from-right duration-300"):"z-50 right-0 ".concat(er?"":"animate-in slide-in-from-right duration-300")),style:{maxWidth:"".concat(ev.L8,"px"),...sp?{right:"".concat(ev.L8,"px")}:{}},children:[(0,a.jsxs)("div",{className:"flex items-center justify-between border-b border-[#F5F2EC] px-6 py-5",children:[et&&(0,a.jsx)(S.$,{variant:"ghost",size:"icon",className:"mr-2 h-8 w-8 shrink-0",onClick:et,children:(0,a.jsx)(o.A,{className:"h-4 w-4 text-[#6B6B6B]"})}),(0,a.jsx)("div",{className:"flex-1 min-w-0",children:eG?(0,a.jsx)("h2",{className:"text-base font-semibold text-[#2C2C2C]",children:eJ?ea("tasks.createTaskTitle"):ea("tasks.editTask")}):f?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h2",{className:"text-base font-semibold text-[#2C2C2C] truncate",children:f.title}),(0,a.jsxs)("div",{className:"mt-1.5 flex items-center gap-2",children:[(0,a.jsx)(F.E,{className:ef[f.status]||"",children:ea("status.".concat(eb[f.status]||f.status))}),(0,a.jsx)(F.E,{className:ej[f.priority]||"",children:ea("priority.".concat(eN[f.priority]||f.priority))}),f.storyPoints&&(0,a.jsxs)("span",{className:"rounded bg-[#F5F2EC] px-2 py-0.5 text-xs font-medium text-[#6B6B6B]",children:[f.storyPoints,"h"]})]})]}):null}),(0,a.jsxs)("div",{className:"flex items-center gap-2 ml-4",children:[f&&!eG&&(0,a.jsxs)(S.$,{variant:"outline",size:"sm",className:"h-8 gap-1.5 border-[#E5E0D8] text-[#2C2C2C]",onClick:()=>{var e;f&&(eX(f.title),eQ(f.description||""),e0(f.priority),e1(null!=f.storyPoints?String(f.storyPoints):""),e6((null!=(e=f.acceptanceCriteriaItems)?e:[]).map(e=>{var s;return{description:e.description,required:null==(s=e.required)||s}})),e4(null),eH(!0))},children:[(0,a.jsx)(u.A,{className:"h-3.5 w-3.5 text-[#6B6B6B]"}),(0,a.jsx)("span",{className:"text-xs",children:ea("common.edit")})]}),(0,a.jsx)(S.$,{variant:"outline",size:"icon",className:"h-8 w-8 border-[#E5E0D8]",onClick:eG&&!eJ?sn:Y,children:(0,a.jsx)(l.A,{className:"h-4 w-4 text-[#6B6B6B]"})})]})]}),(0,a.jsx)(R.F,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:(0,a.jsx)("div",{className:"flex min-h-full flex-col px-6 py-5",children:eG?(0,a.jsxs)("div",{className:"space-y-5",children:[e7&&(0,a.jsx)("div",{className:"rounded-lg bg-destructive/10 p-3 text-sm text-destructive",children:e7}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(_.J,{htmlFor:"edit-title",className:"text-[13px] font-medium text-[#2C2C2C]",children:ea("tasks.titleLabel")}),(0,a.jsx)(B.p,{id:"edit-title",value:eK,onChange:e=>eX(e.target.value),className:"border-[#E5E0D8] text-sm focus-visible:ring-[#C67A52]",autoFocus:!0})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(_.J,{htmlFor:"edit-description",className:"text-[13px] font-medium text-[#2C2C2C]",children:ea("tasks.descriptionLabel")}),(0,a.jsx)(D.T,{id:"edit-description",value:eZ,onChange:e=>eQ(e.target.value),rows:4,className:"border-[#E5E0D8] text-sm resize-none focus-visible:ring-[#C67A52]"})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(_.J,{htmlFor:"edit-priority",className:"text-[13px] font-medium text-[#2C2C2C]",children:ea("tasks.priorityLabel")}),(0,a.jsxs)(U.l6,{value:eY,onValueChange:e0,children:[(0,a.jsx)(U.bq,{className:"border-[#E5E0D8] text-sm focus:ring-[#C67A52]",children:(0,a.jsx)(U.yv,{})}),(0,a.jsxs)(U.gC,{children:[(0,a.jsx)(U.eb,{value:"low",children:ea("priority.low")}),(0,a.jsx)(U.eb,{value:"medium",children:ea("priority.medium")}),(0,a.jsx)(U.eb,{value:"high",children:ea("priority.high")})]})]})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(_.J,{htmlFor:"edit-story-points",className:"text-[13px] font-medium text-[#2C2C2C]",children:ea("tasks.storyPointsLabel")}),(0,a.jsx)(B.p,{id:"edit-story-points",type:"number",min:"0",step:"0.5",value:e2,onChange:e=>e1(e.target.value),className:"border-[#E5E0D8] text-sm focus-visible:ring-[#C67A52]"})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(_.J,{className:"text-[13px] font-medium text-[#2C2C2C]",children:ea("acceptanceCriteria.title")}),(0,a.jsx)(X.C,{items:e5,onChange:e6})]}),eJ&&(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(_.J,{className:"text-[13px] font-medium text-[#2C2C2C]",children:ea("tasks.dependencies")}),eV.length>0&&(0,a.jsx)("div",{className:"space-y-1.5",children:eV.map(e=>(0,a.jsxs)("div",{className:"group flex items-center justify-between rounded-lg bg-[#FAF8F4] p-2.5",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,a.jsx)(c.A,{className:"h-3.5 w-3.5 shrink-0 text-[#C67A52]"}),(0,a.jsx)("span",{className:"text-xs text-[#2C2C2C] truncate",children:e.title}),(0,a.jsx)(F.E,{className:"shrink-0 text-[10px] ".concat(ef[e.status]||""),children:ea("status.".concat(eb[e.status]||e.status))})]}),(0,a.jsx)(S.$,{type:"button",variant:"ghost",size:"icon",className:"h-6 w-6 opacity-0 group-hover:opacity-100 transition-opacity ml-2 shrink-0",onClick:()=>eW(s=>s.filter(s=>s.uuid!==e.uuid)),children:(0,a.jsx)(l.A,{className:"h-3.5 w-3.5 text-[#9A9A9A] hover:text-[#D32F2F]"})})]},e.uuid))}),sm.length>0&&(0,a.jsxs)(U.l6,{onValueChange:e=>{let s=eM.find(s=>s.uuid===e);s&&eW(e=>[...e,s])},children:[(0,a.jsx)(U.bq,{className:"h-8 border-[#E5E0D8] text-xs text-[#6B6B6B] focus:ring-[#C67A52]",children:(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,a.jsx)(d.A,{className:"h-3 w-3"}),(0,a.jsx)(U.yv,{placeholder:ea("tasks.addDependency")})]})}),(0,a.jsx)(U.gC,{children:sm.map(e=>(0,a.jsx)(U.eb,{value:e.uuid,children:(0,a.jsx)("span",{className:"truncate",children:e.title})},e.uuid))})]},eV.length)]})]}):f?(0,a.jsxs)(eh.P.div,{variants:eg.qG,initial:"initial",animate:"animate",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"text-[11px] font-medium uppercase tracking-wide text-[#9A9A9A]",children:ea("common.assignee")}),(0,a.jsx)("div",{className:"mt-2 flex items-center gap-2.5 rounded-lg bg-[#FAF8F4] p-3",children:f.assignee?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(q.eu,{className:"h-7 w-7",children:(0,a.jsx)(q.q5,{className:(0,M.bB)(f.assignee)?"bg-[#C67A52] text-white":"bg-[#E5E0D8] text-[#6B6B6B]",children:(0,M.bB)(f.assignee)?(0,a.jsx)(x.A,{className:"h-3.5 w-3.5"}):f.assignee.name.charAt(0).toUpperCase()})}),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("div",{className:"text-sm font-medium text-[#2C2C2C]",children:f.assignee.name}),(0,a.jsx)("div",{className:"text-xs text-[#6B6B6B]",children:(0,M.bB)(f.assignee)?"".concat(ea("common.agent")," • ").concat(f.assignee.assignedAt?(0,ep.r)(f.assignee.assignedAt):""):ea("common.user")}),"agent_instance"===f.assignee.type&&f.assignee.instance&&(0,a.jsx)("div",{className:"mt-1",children:(0,a.jsx)(L.jQ,{cwd:f.assignee.instance.cwd,host:f.assignee.instance.host})})]})]}):(0,a.jsx)("span",{className:"text-sm text-[#9A9A9A]",children:ea("common.unassigned")})})]}),e$.length>0&&(0,a.jsxs)("div",{className:"mt-5",children:[(0,a.jsx)("label",{className:"text-[11px] font-medium uppercase tracking-wide text-[#9A9A9A]",children:ea("sessions.activeWorkers")}),(0,a.jsx)("div",{className:"mt-2 space-y-1.5",children:e$.map(e=>(0,a.jsxs)("div",{className:"flex items-center gap-2.5 rounded-lg bg-[#FAF8F4] p-2.5",children:[(0,a.jsx)("div",{className:"h-2 w-2 rounded-full bg-green-500 flex-shrink-0"}),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("div",{className:"text-xs font-medium text-[#2C2C2C] truncate",children:e.sessionName}),(0,a.jsxs)("div",{className:"text-[10px] text-[#9A9A9A]",children:[e.agentName," \xb7 ",eA(e.checkinAt,ea)]})]})]},e.sessionUuid))})]}),(0,a.jsxs)("div",{className:"mt-5",children:[(0,a.jsx)("label",{className:"text-[11px] font-medium uppercase tracking-wide text-[#9A9A9A]",children:ea("common.description")}),(0,a.jsx)("div",{className:"mt-2",children:f.description?(0,a.jsx)("div",{className:"prose prose-sm max-w-none text-[13px] leading-relaxed text-[#2C2C2C]",children:(0,a.jsx)(K.MarkdownContent,{children:f.description})}):(0,a.jsx)("p",{className:"text-sm italic text-[#9A9A9A]",children:ea("common.noDescription")})})]}),f.acceptanceCriteria&&!(f.acceptanceCriteriaItems&&f.acceptanceCriteriaItems.length>0)&&(0,a.jsxs)("div",{className:"mt-5",children:[(0,a.jsx)("label",{className:"text-[11px] font-medium uppercase tracking-wide text-[#9A9A9A]",children:ea("tasks.acceptanceCriteria")}),(0,a.jsx)("div",{className:"mt-2",children:(0,a.jsx)("div",{className:"prose prose-sm max-w-none text-[13px] leading-relaxed text-[#2C2C2C]",children:(0,a.jsx)(K.MarkdownContent,{children:f.acceptanceCriteria})})})]}),eE&&(0,a.jsxs)("div",{className:"mt-5",children:[(0,a.jsx)("label",{className:"text-[11px] font-medium uppercase tracking-wide text-[#9A9A9A]",children:ea("common.source")}),(0,a.jsx)("a",{href:"/projects/".concat(P,"/proposals/").concat(eE.uuid),className:"mt-2 flex items-center justify-between rounded-lg bg-[#FAF8F4] p-3 hover:bg-[#F0EDE5] transition-colors",children:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(m.A,{className:"h-3.5 w-3.5 text-[#C67A52]"}),(0,a.jsx)("span",{className:"text-xs text-[#2C2C2C]",children:eE.title})]})})]}),(0,a.jsxs)("div",{className:"mt-5",children:[(0,a.jsx)("label",{className:"text-[11px] font-medium uppercase tracking-wide text-[#9A9A9A]",children:ea("tasks.dependencies")}),ez&&(0,a.jsx)("div",{className:"mt-2 rounded-lg bg-destructive/10 p-2.5 text-xs text-destructive",children:ez}),eq?(0,a.jsx)("div",{className:"mt-2 flex items-center justify-center py-4",children:(0,a.jsx)(p.A,{className:"h-4 w-4 animate-spin text-[#9A9A9A]"})}):(0,a.jsxs)(a.Fragment,{children:[e_.length>0&&(0,a.jsxs)("div",{className:"mt-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-1.5 mb-1.5",children:[(0,a.jsx)(h.A,{className:"h-3 w-3 text-[#9A9A9A]"}),(0,a.jsx)("span",{className:"text-[10px] font-medium uppercase tracking-wide text-[#9A9A9A]",children:ea("tasks.dependsOn")})]}),(0,a.jsx)("div",{className:"space-y-1.5",children:e_.map(e=>(0,a.jsxs)("div",{className:"group flex items-center justify-between rounded-lg bg-[#FAF8F4] p-3",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,a.jsx)(c.A,{className:"h-3.5 w-3.5 shrink-0 text-[#C67A52]"}),(0,a.jsx)("span",{className:"text-xs text-[#2C2C2C] truncate",children:e.title}),(0,a.jsx)(F.E,{className:"shrink-0 text-[10px] ".concat(ef[e.status]||""),children:ea("status.".concat(eb[e.status]||e.status))})]}),(0,a.jsx)(S.$,{variant:"ghost",size:"icon",className:"h-6 w-6 opacity-0 group-hover:opacity-100 transition-opacity ml-2 shrink-0",onClick:()=>so(e.uuid),children:(0,a.jsx)(l.A,{className:"h-3.5 w-3.5 text-[#9A9A9A] hover:text-[#D32F2F]"})})]},e.uuid))})]}),eU.length>0&&(0,a.jsxs)("div",{className:"mt-3",children:[(0,a.jsxs)("div",{className:"flex items-center gap-1.5 mb-1.5",children:[(0,a.jsx)(h.A,{className:"h-3 w-3 rotate-180 text-[#9A9A9A]"}),(0,a.jsx)("span",{className:"text-[10px] font-medium uppercase tracking-wide text-[#9A9A9A]",children:ea("tasks.blockedByThis")})]}),(0,a.jsx)("div",{className:"space-y-1.5",children:eU.map(e=>(0,a.jsxs)("div",{className:"group flex items-center justify-between rounded-lg bg-[#FAF8F4] p-3",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,a.jsx)(c.A,{className:"h-3.5 w-3.5 shrink-0 text-[#6B6B6B]"}),(0,a.jsx)("span",{className:"text-xs text-[#2C2C2C] truncate",children:e.title}),(0,a.jsx)(F.E,{className:"shrink-0 text-[10px] ".concat(ef[e.status]||""),children:ea("status.".concat(eb[e.status]||e.status))})]}),(0,a.jsx)(S.$,{variant:"ghost",size:"icon",className:"h-6 w-6 opacity-0 group-hover:opacity-100 transition-opacity ml-2 shrink-0",onClick:()=>su(e.uuid),children:(0,a.jsx)(l.A,{className:"h-3.5 w-3.5 text-[#9A9A9A] hover:text-[#D32F2F]"})})]},e.uuid))})]}),0===e_.length&&0===eU.length&&(0,a.jsx)("p",{className:"mt-2 text-sm italic text-[#9A9A9A]",children:ea("tasks.noDependencies")}),sx.length>0&&(0,a.jsx)("div",{className:"mt-3",children:(0,a.jsxs)(U.l6,{onValueChange:e=>sd(e),children:[(0,a.jsx)(U.bq,{className:"h-8 border-[#E5E0D8] text-xs text-[#6B6B6B] focus:ring-[#C67A52]",children:(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,a.jsx)(d.A,{className:"h-3 w-3"}),(0,a.jsx)(U.yv,{placeholder:ea("tasks.addDependency")})]})}),(0,a.jsx)(U.gC,{children:sx.map(e=>(0,a.jsx)(U.eb,{value:e.uuid,children:(0,a.jsx)("span",{className:"truncate",children:e.title})},e.uuid))})]},e_.length)})]})]}),f&&f.acceptanceCriteriaItems&&f.acceptanceCriteriaItems.length>0&&(()=>{let e=f.acceptanceCriteriaItems,s=f.acceptanceSummary,t=e=>"passed"===e?(0,a.jsx)(g.A,{className:"h-4 w-4 text-green-600"}):"failed"===e?(0,a.jsx)(v.A,{className:"h-4 w-4 text-red-600"}):(0,a.jsx)(b,{className:"h-4 w-4 text-yellow-600"}),i=e=>"passed"===e?"bg-green-50 text-green-700":"failed"===e?"bg-red-50 text-red-700":"bg-yellow-50 text-yellow-700",r=async(e,s)=>{(await V(f.uuid,[{uuid:e,status:s}])).success&&ei.refresh()};return(0,a.jsxs)("div",{className:"mt-5",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)("label",{className:"text-[11px] font-medium uppercase tracking-wide text-[#9A9A9A]",children:ea("acceptanceCriteria.title")}),s&&(0,a.jsx)(F.E,{className:i(f.acceptanceStatus||"pending"),variant:"secondary",children:ea("acceptanceCriteria.progress",{passed:s.passed,total:s.total})})]}),(0,a.jsxs)("div",{className:"mt-2 space-y-2",children:[e.map(e=>(0,a.jsx)(E.Zp,{className:"p-3",children:(0,a.jsxs)("div",{className:"flex items-start gap-2",children:[(0,a.jsx)("div",{className:"mt-0.5 shrink-0",children:t(e.status)}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,a.jsx)("span",{className:"text-xs text-[#2C2C2C]",children:e.description}),(0,a.jsx)(F.E,{variant:"outline",className:"text-[10px] shrink-0",children:e.required?ea("acceptanceCriteria.required"):ea("acceptanceCriteria.optional")})]}),(0,a.jsxs)("div",{className:"mt-2 space-y-1",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 text-[10px]",children:[(0,a.jsx)("span",{className:"text-[#9A9A9A] w-20 shrink-0",children:ea("acceptanceCriteria.devSelfCheck")}),(0,a.jsxs)(F.E,{className:"text-[10px] ".concat(i(e.devStatus)),variant:"secondary",children:[t(e.devStatus),(0,a.jsx)("span",{className:"ml-1",children:ea("acceptanceCriteria.status.".concat(e.devStatus))})]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2 text-[10px]",children:[(0,a.jsx)("span",{className:"text-[#9A9A9A] w-20 shrink-0",children:ea("acceptanceCriteria.verification")}),(0,a.jsxs)(F.E,{className:"text-[10px] ".concat(i(e.status)),variant:"secondary",children:[t(e.status),(0,a.jsx)("span",{className:"ml-1",children:ea("acceptanceCriteria.status.".concat(e.status))})]})]})]}),e.devEvidence&&(0,a.jsxs)("div",{className:"mt-2 rounded bg-[#FAF8F4] p-2",children:[(0,a.jsx)("span",{className:"text-[10px] font-medium text-[#9A9A9A]",children:ea("acceptanceCriteria.devEvidence")}),(0,a.jsx)("p",{className:"text-[11px] text-[#2C2C2C] mt-0.5",children:e.devEvidence})]}),e.evidence&&(0,a.jsxs)("div",{className:"mt-2 rounded bg-[#FAF8F4] p-2",children:[(0,a.jsx)("span",{className:"text-[10px] font-medium text-[#9A9A9A]",children:ea("acceptanceCriteria.verifyEvidence")}),(0,a.jsx)("p",{className:"text-[11px] text-[#2C2C2C] mt-0.5",children:e.evidence})]}),"pending"===e.status?(0,a.jsxs)("div",{className:"mt-2 flex gap-2",children:[(0,a.jsxs)(S.$,{size:"sm",variant:"outline",className:"h-8 min-h-[44px] sm:min-h-0 flex-1 sm:flex-none text-xs text-green-700 border-green-200 hover:bg-green-50",onClick:()=>r(e.uuid,"passed"),children:[(0,a.jsx)(g.A,{className:"h-3.5 w-3.5 mr-1"}),ea("acceptanceCriteria.pass")]}),(0,a.jsxs)(S.$,{size:"sm",variant:"outline",className:"h-8 min-h-[44px] sm:min-h-0 flex-1 sm:flex-none text-xs text-red-700 border-red-200 hover:bg-red-50",onClick:()=>r(e.uuid,"failed"),children:[(0,a.jsx)(v.A,{className:"h-3.5 w-3.5 mr-1"}),ea("acceptanceCriteria.fail")]})]}):(0,a.jsx)("div",{className:"mt-2",children:(0,a.jsx)(S.$,{size:"sm",variant:"ghost",className:"h-7 min-h-[44px] sm:min-h-0 text-xs text-[#9A9A9A] hover:text-[#2C2C2C]",onClick:async()=>{(await W(f.uuid,e.uuid)).success&&ei.refresh()},children:ea("acceptanceCriteria.undoVerification")})})]})]})},e.uuid)),s&&(s.requiredPending>0||s.requiredFailed>0)&&(0,a.jsxs)("div",{className:"flex items-center gap-2 rounded-lg bg-yellow-50 p-3 mt-2",children:[(0,a.jsx)(j.A,{className:"h-4 w-4 text-yellow-600 shrink-0"}),(0,a.jsx)("span",{className:"text-xs text-yellow-700",children:ea("acceptanceCriteria.gateBlocked",{count:s.requiredPending+s.requiredFailed})})]}),s&&0===s.requiredPending&&0===s.requiredFailed&&s.required>0&&(0,a.jsxs)("div",{className:"flex items-center gap-2 rounded-lg bg-green-50 p-3 mt-2",children:[(0,a.jsx)(g.A,{className:"h-4 w-4 text-green-600 shrink-0"}),(0,a.jsx)("span",{className:"text-xs text-green-700",children:ea("acceptanceCriteria.gateReady")})]})]})]})})(),(0,a.jsxs)("div",{className:"mt-5 flex-1",children:[(0,a.jsx)("label",{className:"text-[11px] font-medium uppercase tracking-wide text-[#9A9A9A]",children:ea("common.activity")}),(0,a.jsx)("div",{className:"mt-2 space-y-3",children:ek?(0,a.jsx)("div",{className:"flex items-center justify-center py-4",children:(0,a.jsx)(p.A,{className:"h-4 w-4 animate-spin text-[#9A9A9A]"})}):0===eC.length?(0,a.jsx)("p",{className:"text-sm text-[#9A9A9A] italic",children:ea("common.noActivity")}):eC.map(e=>(0,a.jsxs)("div",{className:"flex items-start gap-2.5",children:[(0,a.jsx)("div",{className:"flex h-5 w-5 items-center justify-center rounded-full bg-[#F5F2EC]",children:(0,a.jsx)("div",{className:"h-2 w-2 rounded-full ".concat(function(e){switch(e){case"task_created":return"bg-[#C67A52]";case"task_assigned":case"task_claimed":return"bg-[#1976D2]";case"task_started":return"bg-[#5A9E6F]";case"task_submitted":return"bg-[#7B1FA2]";case"task_completed":case"task_verified":return"bg-[#00796B]";case"task_released":return"bg-[#E65100]";default:return"bg-[#6B6B6B]"}}(e.action))})}),(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("p",{className:"text-xs text-[#2C2C2C]",children:function(e,s){let t=e.sessionName?"".concat(e.actorName," / ").concat(e.sessionName):e.actorName,{action:a}=e;switch(a){case"task_created":return s("activity.taskCreated",{actor:t});case"task_assigned":return s("activity.taskAssigned",{actor:t});case"task_claimed":return s("activity.taskClaimed",{actor:t});case"task_started":return s("activity.taskStarted",{actor:t});case"task_submitted":return s("activity.taskSubmitted",{actor:t});case"task_completed":case"task_verified":return s("activity.taskCompleted",{actor:t});case"task_released":return s("activity.taskReleased",{actor:t});case"task_status_changed":return s("activity.taskStatusChanged",{actor:t});default:return"".concat(t,": ").concat(a)}}(e,ea)}),(0,a.jsx)("p",{className:"text-[10px] text-[#9A9A9A]",children:eA(e.createdAt,ea)})]})]},e.uuid))})]}),(0,a.jsxs)("div",{className:"mt-5",children:[(0,a.jsx)("label",{className:"text-[11px] font-medium uppercase tracking-wide text-[#9A9A9A]",children:ea("comments.title")}),(0,a.jsx)("div",{className:"mt-3",children:(0,a.jsx)(J.$m,{targetType:"task",targetUuid:f.uuid,currentUserUuid:Z,compact:!0})})]})]}):null})}),(0,a.jsx)("div",{className:"border-t border-[#F5F2EC] px-6 py-4",children:(0,a.jsx)("div",{className:"flex items-center gap-3",children:eG?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(S.$,{variant:"outline",className:"border-[#E5E0D8]",onClick:sn,disabled:e9,children:ea("common.cancel")}),(0,a.jsx)(S.$,{className:"bg-[#C67A52] hover:bg-[#B56A42] text-white",onClick:sc,disabled:e9||!eK.trim(),children:e9?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(p.A,{className:"mr-2 h-4 w-4 animate-spin"}),ea("common.saving")]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(N.A,{className:"mr-2 h-4 w-4"}),eJ?ea("common.create"):ea("tasks.saveChanges")]})})]}):f?(0,a.jsxs)(a.Fragment,{children:["done"!==f.status&&"closed"!==f.status&&(0,a.jsxs)(S.$,{variant:"outline",className:"border-[#E5E0D8]",onClick:()=>eD(!0),disabled:ec,children:[(0,a.jsx)(A.A,{className:"mr-2 h-4 w-4"}),ea("common.assign")]}),st&&(0,a.jsxs)(S.$,{className:"flex-1 bg-[#1976D2] hover:bg-[#1565C0] text-white",onClick:()=>sr("in_progress"),disabled:ec,children:[(0,a.jsx)(y.A,{className:"mr-2 h-4 w-4"}),ea("tasks.startWork")]}),sa&&(0,a.jsxs)(S.$,{className:"flex-1 bg-[#7B1FA2] hover:bg-[#6A1B9A] text-white",onClick:()=>sr("to_verify"),disabled:ec,children:[(0,a.jsx)(C.A,{className:"mr-2 h-4 w-4"}),ea("tasks.submitForReview")]}),si&&(0,a.jsxs)(S.$,{className:"flex-1 bg-[#22C55E] hover:bg-[#16A34A] text-white",onClick:()=>sr("done"),disabled:ec,children:[(0,a.jsx)(w,{className:"mr-2 h-4 w-4"}),ea("tasks.markAsVerified")]}),("done"===f.status||"closed"===f.status)&&(0,a.jsx)("div",{className:"text-sm text-[#9A9A9A] text-center w-full",children:ea("tasks.taskCompleted")}),(0,a.jsx)("div",{className:"ml-auto",children:(0,a.jsxs)(T.Lt,{children:[(0,a.jsx)(T.tv,{asChild:!0,children:(0,a.jsx)(S.$,{variant:"outline",size:"icon",className:"h-9 w-9 border-[#E5E0D8] text-[#D32F2F] hover:bg-[#FFEBEE] hover:text-[#D32F2F] hover:border-[#D32F2F]",children:(0,a.jsx)(k.A,{className:"h-4 w-4"})})}),(0,a.jsxs)(T.EO,{children:[(0,a.jsxs)(T.wd,{children:[(0,a.jsx)(T.r7,{children:ea("tasks.deleteTask")}),(0,a.jsx)(T.$v,{children:ea("tasks.deleteTaskConfirm",{title:f.title})})]}),(0,a.jsxs)(T.ck,{children:[(0,a.jsx)(T.Zr,{children:ea("common.cancel")}),(0,a.jsx)(T.Rx,{variant:"destructive",onClick:sl,disabled:e8,children:e8?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(p.A,{className:"mr-2 h-4 w-4 animate-spin"}),ea("common.delete")]}):ea("common.delete")})]})]})]})})]}):null})})]}),f&&eB&&(0,a.jsx)(el,{task:f,projectUuid:P,currentUserUuid:Z,onClose:()=>eD(!1)})]})}},62482:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(66206).A)("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]])},65626:(e,s,t)=>{t.d(s,{K5:()=>l,Rf:()=>c,Yv:()=>a,bK:()=>n,qG:()=>r,tE:()=>i});let a={fast:.15,normal:.2,slow:.3,easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1],stagger:.04,staggerFast:.03,spring:{type:"spring",stiffness:500,damping:30},tween:{type:"tween",duration:.2,ease:[0,0,.2,1]}},i={initial:{opacity:0,y:8},animate:{opacity:1,y:0,transition:{duration:a.normal,ease:a.easeOut}},exit:{opacity:0,y:-4,transition:{duration:a.fast,ease:a.easeOut}}},r={initial:{opacity:0},animate:{opacity:1,transition:{duration:a.normal,ease:a.easeOut}},exit:{opacity:0,transition:{duration:a.fast,ease:a.easeOut}}};a.normal,a.easeOut,a.fast,a.easeOut;let n={initial:{},animate:{transition:{staggerChildren:a.stagger}}},c={initial:{opacity:0,y:8},animate:{opacity:1,y:0,transition:{duration:a.normal,ease:a.easeOut}}},l={initial:{opacity:0,scale:.95,y:-4},animate:{opacity:1,scale:1,y:0,transition:{duration:a.fast,ease:a.easeOut}},exit:{opacity:0,scale:.95,y:-4,transition:{duration:a.fast,ease:a.easeOut}}}},70633:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(66206).A)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},75118:(e,s,t)=>{t.d(s,{h:()=>i});var a=t(52217);let i=(0,a.createServerReference)("406f5a87c3104b5b246b35fb91d05065266a3171c6",a.callServer,void 0,a.findSourceMapURL,"getBatchWorkerCountsAction")},81531:(e,s,t)=>{t.d(s,{T:()=>r});var a=t(1856),i=t(23675);function r(e,s){var t;let r=(0,i.useSearchParams)(),n=(0,a.useRef)(!1),c=!n.current;n.current=!0;let l=null!=(t=r.get("panel"))?t:c&&null!=s?s:null,d=r.get("tab"),o=(0,a.useCallback)((s,t)=>{let a=new URLSearchParams(window.location.search);s?a.set("panel",s):a.delete("panel"),t?a.set("tab",t):a.delete("tab");let i=a.toString();return i?"".concat(e,"?").concat(i):e},[e]),u=(0,a.useCallback)((e,s)=>{window.history.replaceState(null,"",o(e,s))},[o]),x=(0,a.useCallback)(()=>{window.history.replaceState(null,"",o(null))},[o]),m=(0,a.useCallback)(e=>{l&&window.history.replaceState(null,"",o(l,e))},[o,l]);return{selectedId:l,selectedTab:d,openPanel:u,closePanel:x,switchTab:m}}},88064:(e,s,t)=>{t.d(s,{J:()=>n});var a=t(90508);t(1856);var i=t(58057),r=t(24377);function n(e){let{className:s,...t}=e;return(0,a.jsx)(i.Root,{"data-slot":"label",className:(0,r.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",s),...t})}},90795:(e,s,t)=>{t.d(s,{Bj:()=>l,L8:()=>i,Wl:()=>d,_5:()=>c,eT:()=>r,fw:()=>n});var a=t(38106);let i=480;function r(e){switch(e){case"done":return"bg-[#00796B]";case"in_progress":return"bg-[#1976D2]";case"to_verify":return"bg-[#7B1FA2]";case"open":case"assigned":return"bg-[#E65100]";case"closed":return"bg-[#9A9A9A]";default:return"bg-[#D9D9D9]"}}function n(e,s){let t=new Date(e),i=new Date().getTime()-t.getTime(),r=Math.floor(i/6e4),n=Math.floor(i/36e5),c=Math.floor(i/864e5);return r<1?s("time.justNow"):r<60?s("time.minutesAgo",{minutes:r}):n<24?s("time.hoursAgo",{hours:n}):c<7?s("time.daysAgo",{days:c}):(0,a.r)(t)}let c={todo:"bg-[#FFF3E0] text-[#E65100]",in_progress:"bg-[#E3F2FD] text-[#1976D2]",human_conduct_required:"bg-[#F3E5F5] text-[#7B1FA2]",done:"bg-[#E0F2F1] text-[#00796B]"},l={todo:"todo",in_progress:"inProgress",human_conduct_required:"humanConductRequired",done:"done"},d={open:"open",researching:"researching",answer_questions:"answerQuestions",planning:"planning",review_proposal:"reviewProposal",building:"building",verify_work:"verifyWork",done:"done"}},92745:(e,s,t)=>{t.d(s,{_u:()=>A,c_:()=>g,nF:()=>N,qK:()=>b});var a=t(90508),i=t(1856),r=t(26145),n=t(75380);t(33805);var c=t(10196),l=t.n(c),d=t(39268),o=t(57731);let u={open:"bg-[#FFF3E0] text-[#E65100]",assigned:"bg-[#E3F2FD] text-[#1976D2]",in_progress:"bg-[#E8F5E9] text-[#5A9E6F]",to_verify:"bg-[#F3E5F5] text-[#7B1FA2]",done:"bg-[#E0F2F1] text-[#00796B]",closed:"bg-[#F5F5F5] text-[#9A9A9A]"},x={open:"#E65100",assigned:"#1976D2",in_progress:"#5A9E6F",to_verify:"#7B1FA2",done:"#00796B",closed:"#9A9A9A"},m={low:"priority.low",medium:"priority.medium",high:"priority.high",critical:"priority.critical"},p={open:"status.open",assigned:"status.assigned",in_progress:"status.inProgress",to_verify:"status.toVerify",done:"status.done",closed:"status.closed"},h={low:"bg-[#9A9A9A]",medium:"bg-[#E65100]",high:"bg-[#D32F2F]",critical:"bg-[#B71C1C]"},g={taskNode:function(e){let{data:s}=e,t=(0,d.c)();return(0,a.jsxs)("div",{className:"rounded-lg border-2 border-[#E5E2DC] bg-white px-4 py-3 shadow-sm min-w-[200px] max-w-[260px] cursor-pointer hover:border-[#C67A52] transition-colors",children:[(0,a.jsx)(r.h7,{type:"target",position:n.yX.Top,className:"!bg-[#C67A52] !w-2 !h-2"}),(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-1.5",children:[(0,a.jsx)(o.E,{className:"text-[10px] ".concat(u[s.status]||""),children:t(p[s.status]||s.status)}),(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)("div",{className:"h-1.5 w-1.5 rounded-full ".concat(h[s.priority]||"")}),(0,a.jsx)("span",{className:"text-[10px] text-[#9A9A9A]",children:t(m[s.priority]||s.priority)})]})]}),(0,a.jsx)("p",{className:"text-xs font-medium text-[#2C2C2C] leading-snug line-clamp-2",children:s.title}),(0,a.jsx)(r.h7,{type:"source",position:n.yX.Bottom,className:"!bg-[#C67A52] !w-2 !h-2"})]})}},v={taskNode:function(e){let{data:s}=e,t=x[s.status]||"#E5E0D8";return(0,a.jsxs)("div",{className:"rounded-md border-[1.5px] bg-white px-2.5 py-1.5 shadow-sm",style:{borderColor:t,width:f},children:[(0,a.jsx)(r.h7,{type:"target",position:n.yX.Top,className:"!bg-[#C67A52] !w-1.5 !h-1.5"}),(0,a.jsx)("p",{className:"text-[10px] font-medium text-[#2C2C2C] leading-tight line-clamp-2",children:s.title}),(0,a.jsx)(r.h7,{type:"source",position:n.yX.Bottom,className:"!bg-[#C67A52] !w-1.5 !h-1.5"})]})}},f=150,b={animated:!0,style:{stroke:"#C67A52",strokeWidth:2},markerEnd:{type:"arrowclosed",color:"#C67A52"}},j={animated:!0,style:{stroke:"#C67A52",strokeWidth:1.5},markerEnd:{type:"arrowclosed",color:"#C67A52"}};function N(e,s,t){var a,i,r,n;let c=null!=(a=null==t?void 0:t.nodeWidth)?a:240,d=null!=(i=null==t?void 0:t.nodeHeight)?i:80,o=new(l()).graphlib.Graph;return o.setDefaultEdgeLabel(()=>({})),o.setGraph({rankdir:"TB",nodesep:null!=(r=null==t?void 0:t.nodesep)?r:50,ranksep:null!=(n=null==t?void 0:t.ranksep)?n:80}),e.forEach(e=>{o.setNode(e.id,{width:c,height:d})}),s.forEach(e=>{o.setEdge(e.source,e.target)}),l().layout(o),{nodes:e.map(e=>{let s=o.node(e.id);return{...e,position:{x:s.x-c/2,y:s.y-d/2}}}),edges:s}}function A(e){let{tasks:s,edges:t,readonly:n=!1,compact:c=!1,height:l,onNodeClick:o,className:u}=e,x=(0,d.c)(),{layoutedNodes:m,layoutedEdges:p}=(0,i.useMemo)(()=>{let e=s.map(e=>{var s;return{id:e.uuid,type:"taskNode",position:{x:0,y:0},data:{title:e.title,status:e.status,priority:e.priority,proposalUuid:null!=(s=e.proposalUuid)?s:null}}}),a=N(e,t.map((e,s)=>({id:"e-".concat(s),source:e.to,target:e.from,...c?j:b})),c?{nodeWidth:f,nodeHeight:50,nodesep:20,ranksep:40}:void 0);return{layoutedNodes:a.nodes,layoutedEdges:a.edges}},[s,t,c]);return 0===s.length?(0,a.jsx)("div",{className:"flex items-center justify-center text-sm text-[#9A9A9A] ".concat(u||""),style:l?{height:l}:void 0,children:x("tasks.noTasksToDisplay")}):(0,a.jsx)("div",{className:"rounded-[10px] border border-[#E5E0D8] bg-[#F7F6F3] ".concat(u||""),style:l?{height:l}:void 0,children:(0,a.jsxs)(r.Gc,{nodes:m,edges:p,nodeTypes:c?v:g,onNodeClick:o?(e,s)=>o(s.id):void 0,fitView:!0,fitViewOptions:{padding:.2},minZoom:.3,maxZoom:1.5,proOptions:{hideAttribution:!0},nodesDraggable:!n,nodesConnectable:!n,elementsSelectable:!n,panOnDrag:!0,zoomOnScroll:!0,children:[(0,a.jsx)(r.VS,{color:"#E5E0D8",gap:20}),!n&&(0,a.jsx)(r.H2,{className:"[&>button]:border-[#E5E0D8] [&>button]:bg-white [&>button]:text-[#2C2C2C] [&>button:hover]:bg-[#FAF8F4]"})]})})}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[32497],{14554:(e,s,t)=>{t.d(s,{p:()=>r});var a=t(90508);t(1856);var n=t(24377);function r(e){let{className:s,type:t,...r}=e;return(0,a.jsx)("input",{type:t,"data-slot":"input",className:(0,n.cn)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",s),...r})}},26965:(e,s,t)=>{t.d(s,{L:()=>v});var a=t(90508),n=t(1856),r=t(39268),i=t(14554),l=t(88064),o=t(15972),d=t(60532),c=t(98861),m=t(24377);function u(e){let{className:s,...t}=e;return(0,a.jsx)(c.Root,{"data-slot":"checkbox",className:(0,m.cn)("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",s),...t,children:(0,a.jsx)(c.Indicator,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none",children:(0,a.jsx)(d.A,{className:"size-3.5"})})})}var x=t(91846),p=t(44775),h=t(93810);let g={admin_agent:"agent.permissions.presetAdmin",pm_agent:"agent.permissions.presetPm",developer_agent:"agent.permissions.presetDev",custom:"agent.permissions.presetCustom"},f={admin_agent:"agent.permissions.help.admin",pm_agent:"agent.permissions.help.pm",developer_agent:"agent.permissions.help.dev",custom:"agent.permissions.help.custom"},b=["admin_agent","pm_agent","developer_agent","custom"];function j(e){let{preset:s,permissions:t,onChange:n,readOnly:i=!1}=e,o=(0,r.c)(),d=null!=s?s:"custom",c=new Set("custom"===d?t:p.o[d]);return(0,a.jsxs)("div",{"data-testid":"agent-permission-picker",className:"space-y-4",children:[(0,a.jsxs)("div",{className:"space-y-1",children:[(0,a.jsx)(l.J,{className:"text-[13px] font-medium",children:o("agent.permissions.title")}),(0,a.jsx)("p",{className:"text-muted-foreground text-xs",children:o("agent.permissions.description")})]}),(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(l.J,{htmlFor:"agent-permission-preset",children:o("agent.permissions.presetLabel")}),(0,a.jsxs)(x.l6,{value:d,onValueChange:function(e){if("custom"===e)return void n({preset:"custom",roles:[],permissions:Array.from(c)});e in p.o&&n({preset:e,roles:[e],permissions:[]})},disabled:i,children:[(0,a.jsx)(x.bq,{id:"agent-permission-preset",className:"w-full","aria-label":o("agent.permissions.presetLabel"),children:(0,a.jsx)(x.yv,{placeholder:o(g[d]),children:o(g[d])})}),(0,a.jsx)(x.gC,{children:b.map(e=>(0,a.jsx)(x.eb,{value:e,textValue:o(g[e]),children:(0,a.jsxs)("div",{className:"flex flex-col gap-0.5 py-0.5",children:[(0,a.jsx)("span",{className:"text-sm font-semibold",children:o(g[e])}),(0,a.jsx)("span",{className:"text-muted-foreground text-xs",children:o(f[e])})]})},e))})]})]}),(0,a.jsxs)("div",{role:"grid","aria-label":o("agent.permissions.title"),className:"overflow-hidden rounded-md border",children:[(0,a.jsxs)("div",{role:"row",className:"bg-muted/50 text-muted-foreground grid grid-cols-[1.5fr_repeat(3,1fr)] items-center gap-2 px-4 py-2 text-xs font-medium",children:[(0,a.jsx)("div",{role:"columnheader",children:o("agent.permissions.resourceHeader")}),h.kl.map(e=>(0,a.jsx)("div",{role:"columnheader",className:"text-center",children:o("agent.permissions.actions.".concat(e))},e))]}),h.eZ.map(e=>(0,a.jsxs)("div",{role:"row",className:"border-t grid grid-cols-[1.5fr_repeat(3,1fr)] items-center gap-2 px-4 py-2 text-sm",children:[(0,a.jsx)("div",{role:"rowheader",className:"font-medium",children:o("agent.permissions.resources.".concat(e))}),h.kl.map(s=>{let t="".concat(e,":").concat(s),r="perm-".concat(e,"-").concat(s);return(0,a.jsx)("div",{role:"gridcell",className:"flex items-center justify-center",children:(0,a.jsx)(u,{id:r,checked:c.has(t),disabled:i,"aria-label":"".concat(o("agent.permissions.resources.".concat(e))," ").concat(o("agent.permissions.actions.".concat(s))),onCheckedChange:e=>{if(!i){let s=new Set(c);!0===e?s.add(t):s.delete(t),n({preset:"custom",roles:[],permissions:Array.from(s)})}}})},s)})]},e))]})]})]})}function v(e){let{name:s,onNameChange:t,preset:d,permissions:c,onPermissionsChange:m,persona:u,onPersonaChange:x,nameInputId:h="agent-form-name",personaInputId:g="agent-form-persona",readOnly:f=!1}=e,b=(0,r.c)(),v=(0,n.useMemo)(()=>"custom"===d?c:[...p.o[d]],[d,c]);return(0,a.jsxs)("div",{className:"space-y-5",children:[(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(l.J,{htmlFor:h,className:"text-[13px]",children:b("settings.name")}),(0,a.jsx)(i.p,{id:h,value:s,onChange:e=>t(e.target.value),placeholder:b("settings.namePlaceholder"),className:"border-[#E5E0D8]",required:!0,disabled:f})]}),(0,a.jsx)(j,{preset:d,permissions:v,onChange:m,readOnly:f}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(l.J,{htmlFor:g,className:"text-[13px]",children:b("settings.agentPersona")}),(0,a.jsx)(o.T,{id:g,value:u,onChange:e=>x(e.target.value),placeholder:b("settings.personaPlaceholder"),rows:4,disabled:f}),(0,a.jsx)("p",{className:"text-xs text-muted-foreground",children:b("settings.personaHint")})]})]})}},37750:(e,s,t)=>{t.d(s,{Y:()=>u});var a=t(90508),n=t(1856),r=t(39268),i=t(22922),l=t(60532),o=t(9160),d=t(67712),c=t(26965),m=t(83792);function u(e){let{onAgentCreated:s,createAgentAndKey:t,onClose:u,embedded:x=!1,submitLabel:p,submittingLabel:h}=e,g=(0,r.c)(),[f,b]=(0,n.useState)(""),[j,v]=(0,n.useState)("admin_agent"),[N,y]=(0,n.useState)(["admin_agent"]),[w,k]=(0,n.useState)([]),[C,_]=(0,n.useState)(""),[S,T]=(0,n.useState)(!1),[A,R]=(0,n.useState)(null),[I,L]=(0,n.useState)(!1),U=async e=>{if((e.preventDefault(),f)&&("custom"!==j||0!==w.length)){T(!0);try{let e=await t({name:f,roles:N,permissions:"custom"===j?w:[],persona:C||null});e.success&&e.key?(x||R(e.key),s({uuid:e.agentUuid||"",name:f,roles:N,permissions:"custom"===j?w:[]},e.key)):d.q.error("Failed to create API key:",e.error)}catch(e){d.q.error("Failed to create API key:",e)}finally{T(!1)}}},K=async e=>{try{await navigator.clipboard.writeText(e),L(!0),setTimeout(()=>L(!1),2e3)}catch(e){d.q.error("Failed to copy to clipboard:",e)}},P=()=>{b(""),v("admin_agent"),y(["admin_agent"]),k([]),_(""),R(null),null==u||u()};return A&&!x?(0,a.jsxs)("div",{className:"p-6",children:[(0,a.jsxs)("div",{className:"mb-4 flex items-center gap-2 text-green-600",children:[(0,a.jsx)(l.A,{className:"h-5 w-5"}),(0,a.jsx)("span",{className:"font-medium",children:g("settings.apiKeyCreated")})]}),(0,a.jsx)("p",{className:"mb-4 text-sm text-muted-foreground",children:g("settings.apiKeyCreatedDesc")}),(0,a.jsxs)("div",{className:"mb-4 flex items-center gap-2",children:[(0,a.jsx)("code",{className:"flex-1 rounded bg-foreground px-3 py-2 font-mono text-sm text-background",children:A}),(0,a.jsx)(i.$,{variant:"outline",size:"sm",onClick:()=>K(A),children:g(I?"common.copied":"common.copy")})]}),(0,a.jsx)("p",{className:"mb-3 text-sm text-muted-foreground",children:g("settings.installGuideIntro")}),(0,a.jsx)("div",{className:"mb-4",children:(0,a.jsx)(m.Z,{apiKey:A})}),(0,a.jsx)(i.$,{onClick:P,className:"w-full",children:g("common.done")})]}):(0,a.jsxs)("form",{onSubmit:U,children:[!x&&(0,a.jsxs)("div",{className:"flex items-center justify-between border-b border-border px-6 py-5",children:[(0,a.jsx)("h3",{className:"text-lg font-semibold text-foreground",children:g("settings.createApiKey")}),u&&(0,a.jsx)(i.$,{type:"button",variant:"ghost",size:"icon",onClick:P,className:"h-8 w-8",children:(0,a.jsx)(o.A,{className:"h-4 w-4"})})]}),(0,a.jsx)("div",{className:x?void 0:"p-6",children:(0,a.jsx)(c.L,{name:f,onNameChange:b,preset:j,permissions:w,onPermissionsChange:function(e){v(e.preset),y(e.roles),k(e.permissions)},persona:C,onPersonaChange:_,nameInputId:"keyName",personaInputId:"create-agent-persona"})}),(0,a.jsxs)("div",{className:x?"flex justify-end gap-3 pt-2":"flex justify-end gap-3 border-t border-border px-6 py-4",children:[!x&&u&&(0,a.jsx)(i.$,{type:"button",variant:"outline",onClick:P,children:g("common.cancel")}),(0,a.jsx)(i.$,{type:"submit",disabled:!f||"custom"===j&&0===w.length||S,className:x?"w-full":void 0,size:x?"lg":"default",children:S?null!=h?h:g("settings.creating"):null!=p?p:g("settings.createApiKey")})]})]})}},39674:(e,s,t)=>{t.d(s,{Xi:()=>o,av:()=>d,j7:()=>l,tU:()=>i});var a=t(90508);t(1856);var n=t(79834),r=t(24377);function i(e){let{className:s,...t}=e;return(0,a.jsx)(n.Root,{"data-slot":"tabs",className:(0,r.cn)("flex flex-col gap-2",s),...t})}function l(e){let{className:s,...t}=e;return(0,a.jsx)(n.List,{"data-slot":"tabs-list",className:(0,r.cn)("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",s),...t})}function o(e){let{className:s,...t}=e;return(0,a.jsx)(n.Trigger,{"data-slot":"tabs-trigger",className:(0,r.cn)("data-[state=active]:bg-background data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring inline-flex items-center justify-center gap-1.5 rounded-md px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",s),...t})}function d(e){let{className:s,...t}=e;return(0,a.jsx)(n.Content,{"data-slot":"tabs-content",className:(0,r.cn)("flex-1 outline-none",s),...t})}},44775:(e,s,t)=>{t.d(s,{o:()=>a});let a={developer_agent:["idea:read","proposal:read","document:read","project:read","task:read","task:write"],pm_agent:["idea:read","idea:write","proposal:read","proposal:write","document:read","document:write","task:read","task:write","project:read","project:write"],admin_agent:["idea:read","idea:write","idea:admin","proposal:read","proposal:write","proposal:admin","document:read","document:write","document:admin","task:read","task:write","task:admin","project:read","project:write","project:admin"]}},50006:(e,s,t)=>{t.d(s,{N:()=>r});var a=t(90508),n=t(97261);function r(e){let{code:s,language:t}=e,r="```".concat(t||"","\n").concat(s,"\n```");return(0,a.jsx)(n.MarkdownContent,{children:r})}},83792:(e,s,t)=>{t.d(s,{Z:()=>c});var a=t(90508),n=t(39268),r=t(48416),i=t(39674),l=t(81750),o=t(17730),d=t(50006);function c(e){let{apiKey:s}=e,t=(0,n.c)("onboarding"),c=window.location.origin,m=s||"<YOUR_API_KEY>";return(0,a.jsx)(r.Zp,{className:"w-full",children:(0,a.jsx)(r.Wu,{className:"p-6",children:(0,a.jsxs)(i.tU,{defaultValue:"claude-code",className:"w-full",children:[(0,a.jsxs)(i.j7,{className:"w-full",children:[(0,a.jsx)(i.Xi,{value:"claude-code",className:"flex-1",children:t("install.tabs.claudeCode")}),(0,a.jsx)(i.Xi,{value:"codex",className:"flex-1",children:t("install.tabs.codex")}),(0,a.jsx)(i.Xi,{value:"opencode",className:"flex-1",children:t("install.tabs.opencode")}),(0,a.jsx)(i.Xi,{value:"openclaw",className:"flex-1",children:t("install.tabs.openClaw")}),(0,a.jsx)(i.Xi,{value:"other",className:"flex-1",children:t("install.tabs.other")})]}),(0,a.jsxs)(i.av,{value:"claude-code",className:"mt-4 space-y-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"mb-2 text-sm font-medium text-foreground",children:t("install.claudeCode.step1Title")}),(0,a.jsx)(d.N,{language:"bash",code:'export CHORUS_URL="'.concat(c,'"\nexport CHORUS_API_KEY="').concat(m,'"')}),(0,a.jsx)("p",{className:"mt-2 text-xs text-muted-foreground",children:t("install.claudeCode.step1Tip")})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"mb-2 text-sm font-medium text-foreground",children:t("install.claudeCode.step2Title")}),(0,a.jsx)(d.N,{language:"bash",code:"/plugin marketplace add Chorus-AIDLC/chorus\n/plugin install chorus@chorus-plugins"})]})]}),(0,a.jsxs)(i.av,{value:"codex",className:"mt-4 space-y-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"mb-2 text-sm font-medium text-foreground",children:t("install.codex.step1Title")}),(0,a.jsx)(d.N,{language:"bash",code:'export CHORUS_URL="'.concat(c,'"\nexport CHORUS_API_KEY="').concat(m,'"')}),(0,a.jsx)("p",{className:"mt-2 text-xs text-muted-foreground",children:t("install.codex.step1Tip")})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"mb-2 text-sm font-medium text-foreground",children:t("install.codex.step2Title")}),(0,a.jsx)(d.N,{language:"bash",code:"curl -fsSL ".concat(c,"/install-codex.sh | bash")}),(0,a.jsx)("p",{className:"mt-2 text-xs text-muted-foreground",children:t("install.codex.step2Tip")})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"mb-2 text-sm font-medium text-foreground",children:t("install.codex.step3Title")}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:t("install.codex.step3Desc")})]})]}),(0,a.jsxs)(i.av,{value:"opencode",className:"mt-4 space-y-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"mb-2 text-sm font-medium text-foreground",children:t("install.opencode.step1Title")}),(0,a.jsx)(d.N,{language:"bash",code:'export CHORUS_URL="'.concat(c,'"\nexport CHORUS_API_KEY="').concat(m,'"')}),(0,a.jsx)("p",{className:"mt-2 text-xs text-muted-foreground",children:t("install.opencode.step1Tip")})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"mb-2 text-sm font-medium text-foreground",children:t("install.opencode.step2Title")}),(0,a.jsx)(d.N,{language:"bash",code:"curl -fsSL ".concat(c,"/install-opencode.sh | bash")}),(0,a.jsx)("p",{className:"mt-2 text-xs text-muted-foreground",children:t("install.opencode.step2Tip")})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"mb-2 text-sm font-medium text-foreground",children:t("install.opencode.step3Title")}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:t("install.opencode.step3Desc")})]}),(0,a.jsxs)(l.Nt,{children:[(0,a.jsxs)(l.R6,{className:"flex w-full items-center gap-2 rounded-md border px-3 py-2 text-sm font-medium text-muted-foreground hover:text-foreground transition-colors",children:[(0,a.jsx)(o.A,{className:"size-4 transition-transform duration-200 [[data-state=open]>&]:rotate-180"}),t("install.opencode.troubleshootingTitle")]}),(0,a.jsx)(l.Ke,{children:(0,a.jsxs)("div",{className:"mt-2 space-y-2",children:[(0,a.jsxs)("div",{className:"rounded-md border border-amber-500/20 bg-amber-500/5 p-3",children:[(0,a.jsx)("p",{className:"text-sm font-medium text-amber-600 dark:text-amber-400",children:t("install.opencode.issueCache.title")}),(0,a.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:t("install.opencode.issueCache.fix")})]}),(0,a.jsxs)("div",{className:"rounded-md border border-amber-500/20 bg-amber-500/5 p-3",children:[(0,a.jsx)("p",{className:"text-sm font-medium text-amber-600 dark:text-amber-400",children:t("install.opencode.issueEnv.title")}),(0,a.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:t("install.opencode.issueEnv.fix")})]}),(0,a.jsxs)("div",{className:"rounded-md border border-amber-500/20 bg-amber-500/5 p-3",children:[(0,a.jsx)("p",{className:"text-sm font-medium text-amber-600 dark:text-amber-400",children:t("install.opencode.issueCheckin.title")}),(0,a.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:t("install.opencode.issueCheckin.fix")})]})]})})]})]}),(0,a.jsxs)(i.av,{value:"openclaw",className:"mt-4 space-y-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"mb-2 text-sm font-medium text-foreground",children:t("install.openClaw.step1Title")}),(0,a.jsx)(d.N,{language:"bash",code:"openclaw plugins install @chorus-aidlc/chorus-openclaw-plugin"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"mb-2 text-sm font-medium text-foreground",children:t("install.openClaw.step2Title")}),(0,a.jsx)(d.N,{language:"json",code:'{\n "hooks": { "enabled": true, "token": "<your-token>" },\n "plugins": {\n "enabled": true,\n "entries": {\n "chorus-openclaw-plugin": {\n "enabled": true,\n "config": {\n "chorusUrl": "'.concat(c,'",\n "apiKey": "').concat(m,'",\n "autoStart": true\n }\n }\n }\n }\n}')})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"mb-2 text-sm font-medium text-foreground",children:t("install.openClaw.step3Title")}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:t("install.openClaw.step3Desc")})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"mb-2 text-sm font-medium text-foreground",children:t("install.openClaw.step4Title")}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:t("install.openClaw.step4Desc")}),(0,a.jsx)(d.N,{code:"/chorus status"})]}),(0,a.jsxs)(l.Nt,{children:[(0,a.jsxs)(l.R6,{className:"flex w-full items-center gap-2 rounded-md border px-3 py-2 text-sm font-medium text-muted-foreground hover:text-foreground transition-colors",children:[(0,a.jsx)(o.A,{className:"size-4 transition-transform duration-200 [[data-state=open]>&]:rotate-180"}),t("install.openClaw.troubleshootingTitle")]}),(0,a.jsx)(l.Ke,{children:(0,a.jsxs)("div",{className:"mt-2 rounded-md border border-amber-500/20 bg-amber-500/5 p-3",children:[(0,a.jsx)("p",{className:"text-sm font-medium text-amber-600 dark:text-amber-400",children:t("install.openClaw.troubleshootingError")}),(0,a.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:t("install.openClaw.troubleshootingFix")})]})})]})]}),(0,a.jsxs)(i.av,{value:"other",className:"mt-4 space-y-4",children:[(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:t("install.other.description")}),(0,a.jsx)(d.N,{code:"Please install and configure the Chorus AI-DLC collaboration platform.\n\nChorus URL: ".concat(c,"\nAPI Key: ").concat(m,"\n\nRead the setup instructions from:\n").concat(c,'/skill/chorus/SKILL.md\n\nFollow the "Setup" section to configure the MCP server,\nthen call chorus_checkin() to verify the connection.')})]})]})})})}},88064:(e,s,t)=>{t.d(s,{J:()=>i});var a=t(90508);t(1856);var n=t(58057),r=t(24377);function i(e){let{className:s,...t}=e;return(0,a.jsx)(n.Root,{"data-slot":"label",className:(0,r.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",s),...t})}},93810:(e,s,t)=>{t.d(s,{eZ:()=>a,kl:()=>n,lp:()=>r});let a=["idea","proposal","document","task","project"],n=["read","write","admin"],r=a.flatMap(e=>n.map(s=>"".concat(e,":").concat(s)))},97535:(e,s,t)=>{t.d(s,{I:()=>n});var a=t(52217);let n=(0,a.createServerReference)("403988deb7fc8602fc2811186c97758ef0fec85db4",a.callServer,void 0,a.findSourceMapURL,"createAgentAndKeyAction")}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[46999],{14554:(e,s,t)=>{t.d(s,{p:()=>r});var a=t(90508);t(1856);var n=t(24377);function r(e){let{className:s,type:t,...r}=e;return(0,a.jsx)("input",{type:t,"data-slot":"input",className:(0,n.cn)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",s),...r})}},26965:(e,s,t)=>{t.d(s,{L:()=>v});var a=t(90508),n=t(1856),r=t(39268),i=t(14554),l=t(88064),o=t(15972),d=t(60532),c=t(98861),m=t(24377);function u(e){let{className:s,...t}=e;return(0,a.jsx)(c.Root,{"data-slot":"checkbox",className:(0,m.cn)("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",s),...t,children:(0,a.jsx)(c.Indicator,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none",children:(0,a.jsx)(d.A,{className:"size-3.5"})})})}var x=t(91846),p=t(44775),h=t(93810);let g={admin_agent:"agent.permissions.presetAdmin",pm_agent:"agent.permissions.presetPm",developer_agent:"agent.permissions.presetDev",custom:"agent.permissions.presetCustom"},f={admin_agent:"agent.permissions.help.admin",pm_agent:"agent.permissions.help.pm",developer_agent:"agent.permissions.help.dev",custom:"agent.permissions.help.custom"},b=["admin_agent","pm_agent","developer_agent","custom"];function j(e){let{preset:s,permissions:t,onChange:n,readOnly:i=!1}=e,o=(0,r.c)(),d=null!=s?s:"custom",c=new Set("custom"===d?t:p.o[d]);return(0,a.jsxs)("div",{"data-testid":"agent-permission-picker",className:"space-y-4",children:[(0,a.jsxs)("div",{className:"space-y-1",children:[(0,a.jsx)(l.J,{className:"text-[13px] font-medium",children:o("agent.permissions.title")}),(0,a.jsx)("p",{className:"text-muted-foreground text-xs",children:o("agent.permissions.description")})]}),(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(l.J,{htmlFor:"agent-permission-preset",children:o("agent.permissions.presetLabel")}),(0,a.jsxs)(x.l6,{value:d,onValueChange:function(e){if("custom"===e)return void n({preset:"custom",roles:[],permissions:Array.from(c)});e in p.o&&n({preset:e,roles:[e],permissions:[]})},disabled:i,children:[(0,a.jsx)(x.bq,{id:"agent-permission-preset",className:"w-full","aria-label":o("agent.permissions.presetLabel"),children:(0,a.jsx)(x.yv,{placeholder:o(g[d]),children:o(g[d])})}),(0,a.jsx)(x.gC,{children:b.map(e=>(0,a.jsx)(x.eb,{value:e,textValue:o(g[e]),children:(0,a.jsxs)("div",{className:"flex flex-col gap-0.5 py-0.5",children:[(0,a.jsx)("span",{className:"text-sm font-semibold",children:o(g[e])}),(0,a.jsx)("span",{className:"text-muted-foreground text-xs",children:o(f[e])})]})},e))})]})]}),(0,a.jsxs)("div",{role:"grid","aria-label":o("agent.permissions.title"),className:"overflow-hidden rounded-md border",children:[(0,a.jsxs)("div",{role:"row",className:"bg-muted/50 text-muted-foreground grid grid-cols-[1.5fr_repeat(3,1fr)] items-center gap-2 px-4 py-2 text-xs font-medium",children:[(0,a.jsx)("div",{role:"columnheader",children:o("agent.permissions.resourceHeader")}),h.kl.map(e=>(0,a.jsx)("div",{role:"columnheader",className:"text-center",children:o("agent.permissions.actions.".concat(e))},e))]}),h.eZ.map(e=>(0,a.jsxs)("div",{role:"row",className:"border-t grid grid-cols-[1.5fr_repeat(3,1fr)] items-center gap-2 px-4 py-2 text-sm",children:[(0,a.jsx)("div",{role:"rowheader",className:"font-medium",children:o("agent.permissions.resources.".concat(e))}),h.kl.map(s=>{let t="".concat(e,":").concat(s),r="perm-".concat(e,"-").concat(s);return(0,a.jsx)("div",{role:"gridcell",className:"flex items-center justify-center",children:(0,a.jsx)(u,{id:r,checked:c.has(t),disabled:i,"aria-label":"".concat(o("agent.permissions.resources.".concat(e))," ").concat(o("agent.permissions.actions.".concat(s))),onCheckedChange:e=>{if(!i){let s=new Set(c);!0===e?s.add(t):s.delete(t),n({preset:"custom",roles:[],permissions:Array.from(s)})}}})},s)})]},e))]})]})]})}function v(e){let{name:s,onNameChange:t,preset:d,permissions:c,onPermissionsChange:m,persona:u,onPersonaChange:x,nameInputId:h="agent-form-name",personaInputId:g="agent-form-persona",readOnly:f=!1}=e,b=(0,r.c)(),v=(0,n.useMemo)(()=>"custom"===d?c:[...p.o[d]],[d,c]);return(0,a.jsxs)("div",{className:"space-y-5",children:[(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(l.J,{htmlFor:h,className:"text-[13px]",children:b("settings.name")}),(0,a.jsx)(i.p,{id:h,value:s,onChange:e=>t(e.target.value),placeholder:b("settings.namePlaceholder"),className:"border-[#E5E0D8]",required:!0,disabled:f})]}),(0,a.jsx)(j,{preset:d,permissions:v,onChange:m,readOnly:f}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(l.J,{htmlFor:g,className:"text-[13px]",children:b("settings.agentPersona")}),(0,a.jsx)(o.T,{id:g,value:u,onChange:e=>x(e.target.value),placeholder:b("settings.personaPlaceholder"),rows:4,disabled:f}),(0,a.jsx)("p",{className:"text-xs text-muted-foreground",children:b("settings.personaHint")})]})]})}},37750:(e,s,t)=>{t.d(s,{Y:()=>u});var a=t(90508),n=t(1856),r=t(39268),i=t(22922),l=t(60532),o=t(9160),d=t(67712),c=t(26965),m=t(83792);function u(e){let{onAgentCreated:s,createAgentAndKey:t,onClose:u,embedded:x=!1,submitLabel:p,submittingLabel:h}=e,g=(0,r.c)(),[f,b]=(0,n.useState)(""),[j,v]=(0,n.useState)("admin_agent"),[N,y]=(0,n.useState)(["admin_agent"]),[w,k]=(0,n.useState)([]),[C,_]=(0,n.useState)(""),[S,T]=(0,n.useState)(!1),[A,R]=(0,n.useState)(null),[I,L]=(0,n.useState)(!1),U=async e=>{if((e.preventDefault(),f)&&("custom"!==j||0!==w.length)){T(!0);try{let e=await t({name:f,roles:N,permissions:"custom"===j?w:[],persona:C||null});e.success&&e.key?(x||R(e.key),s({uuid:e.agentUuid||"",name:f,roles:N,permissions:"custom"===j?w:[]},e.key)):d.q.error("Failed to create API key:",e.error)}catch(e){d.q.error("Failed to create API key:",e)}finally{T(!1)}}},K=async e=>{try{await navigator.clipboard.writeText(e),L(!0),setTimeout(()=>L(!1),2e3)}catch(e){d.q.error("Failed to copy to clipboard:",e)}},P=()=>{b(""),v("admin_agent"),y(["admin_agent"]),k([]),_(""),R(null),null==u||u()};return A&&!x?(0,a.jsxs)("div",{className:"p-6",children:[(0,a.jsxs)("div",{className:"mb-4 flex items-center gap-2 text-green-600",children:[(0,a.jsx)(l.A,{className:"h-5 w-5"}),(0,a.jsx)("span",{className:"font-medium",children:g("settings.apiKeyCreated")})]}),(0,a.jsx)("p",{className:"mb-4 text-sm text-muted-foreground",children:g("settings.apiKeyCreatedDesc")}),(0,a.jsxs)("div",{className:"mb-4 flex items-center gap-2",children:[(0,a.jsx)("code",{className:"flex-1 rounded bg-foreground px-3 py-2 font-mono text-sm text-background",children:A}),(0,a.jsx)(i.$,{variant:"outline",size:"sm",onClick:()=>K(A),children:g(I?"common.copied":"common.copy")})]}),(0,a.jsx)("p",{className:"mb-3 text-sm text-muted-foreground",children:g("settings.installGuideIntro")}),(0,a.jsx)("div",{className:"mb-4",children:(0,a.jsx)(m.Z,{apiKey:A})}),(0,a.jsx)(i.$,{onClick:P,className:"w-full",children:g("common.done")})]}):(0,a.jsxs)("form",{onSubmit:U,children:[!x&&(0,a.jsxs)("div",{className:"flex items-center justify-between border-b border-border px-6 py-5",children:[(0,a.jsx)("h3",{className:"text-lg font-semibold text-foreground",children:g("settings.createApiKey")}),u&&(0,a.jsx)(i.$,{type:"button",variant:"ghost",size:"icon",onClick:P,className:"h-8 w-8",children:(0,a.jsx)(o.A,{className:"h-4 w-4"})})]}),(0,a.jsx)("div",{className:x?void 0:"p-6",children:(0,a.jsx)(c.L,{name:f,onNameChange:b,preset:j,permissions:w,onPermissionsChange:function(e){v(e.preset),y(e.roles),k(e.permissions)},persona:C,onPersonaChange:_,nameInputId:"keyName",personaInputId:"create-agent-persona"})}),(0,a.jsxs)("div",{className:x?"flex justify-end gap-3 pt-2":"flex justify-end gap-3 border-t border-border px-6 py-4",children:[!x&&u&&(0,a.jsx)(i.$,{type:"button",variant:"outline",onClick:P,children:g("common.cancel")}),(0,a.jsx)(i.$,{type:"submit",disabled:!f||"custom"===j&&0===w.length||S,className:x?"w-full":void 0,size:x?"lg":"default",children:S?null!=h?h:g("settings.creating"):null!=p?p:g("settings.createApiKey")})]})]})}},39674:(e,s,t)=>{t.d(s,{Xi:()=>o,av:()=>d,j7:()=>l,tU:()=>i});var a=t(90508);t(1856);var n=t(79834),r=t(24377);function i(e){let{className:s,...t}=e;return(0,a.jsx)(n.Root,{"data-slot":"tabs",className:(0,r.cn)("flex flex-col gap-2",s),...t})}function l(e){let{className:s,...t}=e;return(0,a.jsx)(n.List,{"data-slot":"tabs-list",className:(0,r.cn)("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",s),...t})}function o(e){let{className:s,...t}=e;return(0,a.jsx)(n.Trigger,{"data-slot":"tabs-trigger",className:(0,r.cn)("data-[state=active]:bg-background data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring inline-flex items-center justify-center gap-1.5 rounded-md px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",s),...t})}function d(e){let{className:s,...t}=e;return(0,a.jsx)(n.Content,{"data-slot":"tabs-content",className:(0,r.cn)("flex-1 outline-none",s),...t})}},44775:(e,s,t)=>{t.d(s,{o:()=>a});let a={developer_agent:["idea:read","proposal:read","document:read","project:read","task:read","task:write"],pm_agent:["idea:read","idea:write","proposal:read","proposal:write","document:read","document:write","task:read","task:write","project:read","project:write"],admin_agent:["idea:read","idea:write","idea:admin","proposal:read","proposal:write","proposal:admin","document:read","document:write","document:admin","task:read","task:write","task:admin","project:read","project:write","project:admin"]}},50006:(e,s,t)=>{t.d(s,{N:()=>r});var a=t(90508),n=t(97261);function r(e){let{code:s,language:t}=e,r="```".concat(t||"","\n").concat(s,"\n```");return(0,a.jsx)(n.MarkdownContent,{children:r})}},61326:(e,s,t)=>{t.d(s,{I:()=>n});var a=t(52217);let n=(0,a.createServerReference)("40d5de51bfd07b9c8ce2e2cad19237ae6e620611fc",a.callServer,void 0,a.findSourceMapURL,"createAgentAndKeyAction")},83792:(e,s,t)=>{t.d(s,{Z:()=>c});var a=t(90508),n=t(39268),r=t(48416),i=t(39674),l=t(81750),o=t(17730),d=t(50006);function c(e){let{apiKey:s}=e,t=(0,n.c)("onboarding"),c=window.location.origin,m=s||"<YOUR_API_KEY>";return(0,a.jsx)(r.Zp,{className:"w-full",children:(0,a.jsx)(r.Wu,{className:"p-6",children:(0,a.jsxs)(i.tU,{defaultValue:"claude-code",className:"w-full",children:[(0,a.jsxs)(i.j7,{className:"w-full",children:[(0,a.jsx)(i.Xi,{value:"claude-code",className:"flex-1",children:t("install.tabs.claudeCode")}),(0,a.jsx)(i.Xi,{value:"codex",className:"flex-1",children:t("install.tabs.codex")}),(0,a.jsx)(i.Xi,{value:"opencode",className:"flex-1",children:t("install.tabs.opencode")}),(0,a.jsx)(i.Xi,{value:"openclaw",className:"flex-1",children:t("install.tabs.openClaw")}),(0,a.jsx)(i.Xi,{value:"other",className:"flex-1",children:t("install.tabs.other")})]}),(0,a.jsxs)(i.av,{value:"claude-code",className:"mt-4 space-y-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"mb-2 text-sm font-medium text-foreground",children:t("install.claudeCode.step1Title")}),(0,a.jsx)(d.N,{language:"bash",code:'export CHORUS_URL="'.concat(c,'"\nexport CHORUS_API_KEY="').concat(m,'"')}),(0,a.jsx)("p",{className:"mt-2 text-xs text-muted-foreground",children:t("install.claudeCode.step1Tip")})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"mb-2 text-sm font-medium text-foreground",children:t("install.claudeCode.step2Title")}),(0,a.jsx)(d.N,{language:"bash",code:"/plugin marketplace add Chorus-AIDLC/chorus\n/plugin install chorus@chorus-plugins"})]})]}),(0,a.jsxs)(i.av,{value:"codex",className:"mt-4 space-y-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"mb-2 text-sm font-medium text-foreground",children:t("install.codex.step1Title")}),(0,a.jsx)(d.N,{language:"bash",code:'export CHORUS_URL="'.concat(c,'"\nexport CHORUS_API_KEY="').concat(m,'"')}),(0,a.jsx)("p",{className:"mt-2 text-xs text-muted-foreground",children:t("install.codex.step1Tip")})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"mb-2 text-sm font-medium text-foreground",children:t("install.codex.step2Title")}),(0,a.jsx)(d.N,{language:"bash",code:"curl -fsSL ".concat(c,"/install-codex.sh | bash")}),(0,a.jsx)("p",{className:"mt-2 text-xs text-muted-foreground",children:t("install.codex.step2Tip")})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"mb-2 text-sm font-medium text-foreground",children:t("install.codex.step3Title")}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:t("install.codex.step3Desc")})]})]}),(0,a.jsxs)(i.av,{value:"opencode",className:"mt-4 space-y-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"mb-2 text-sm font-medium text-foreground",children:t("install.opencode.step1Title")}),(0,a.jsx)(d.N,{language:"bash",code:'export CHORUS_URL="'.concat(c,'"\nexport CHORUS_API_KEY="').concat(m,'"')}),(0,a.jsx)("p",{className:"mt-2 text-xs text-muted-foreground",children:t("install.opencode.step1Tip")})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"mb-2 text-sm font-medium text-foreground",children:t("install.opencode.step2Title")}),(0,a.jsx)(d.N,{language:"bash",code:"curl -fsSL ".concat(c,"/install-opencode.sh | bash")}),(0,a.jsx)("p",{className:"mt-2 text-xs text-muted-foreground",children:t("install.opencode.step2Tip")})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"mb-2 text-sm font-medium text-foreground",children:t("install.opencode.step3Title")}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:t("install.opencode.step3Desc")})]}),(0,a.jsxs)(l.Nt,{children:[(0,a.jsxs)(l.R6,{className:"flex w-full items-center gap-2 rounded-md border px-3 py-2 text-sm font-medium text-muted-foreground hover:text-foreground transition-colors",children:[(0,a.jsx)(o.A,{className:"size-4 transition-transform duration-200 [[data-state=open]>&]:rotate-180"}),t("install.opencode.troubleshootingTitle")]}),(0,a.jsx)(l.Ke,{children:(0,a.jsxs)("div",{className:"mt-2 space-y-2",children:[(0,a.jsxs)("div",{className:"rounded-md border border-amber-500/20 bg-amber-500/5 p-3",children:[(0,a.jsx)("p",{className:"text-sm font-medium text-amber-600 dark:text-amber-400",children:t("install.opencode.issueCache.title")}),(0,a.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:t("install.opencode.issueCache.fix")})]}),(0,a.jsxs)("div",{className:"rounded-md border border-amber-500/20 bg-amber-500/5 p-3",children:[(0,a.jsx)("p",{className:"text-sm font-medium text-amber-600 dark:text-amber-400",children:t("install.opencode.issueEnv.title")}),(0,a.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:t("install.opencode.issueEnv.fix")})]}),(0,a.jsxs)("div",{className:"rounded-md border border-amber-500/20 bg-amber-500/5 p-3",children:[(0,a.jsx)("p",{className:"text-sm font-medium text-amber-600 dark:text-amber-400",children:t("install.opencode.issueCheckin.title")}),(0,a.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:t("install.opencode.issueCheckin.fix")})]})]})})]})]}),(0,a.jsxs)(i.av,{value:"openclaw",className:"mt-4 space-y-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"mb-2 text-sm font-medium text-foreground",children:t("install.openClaw.step1Title")}),(0,a.jsx)(d.N,{language:"bash",code:"openclaw plugins install @chorus-aidlc/chorus-openclaw-plugin"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"mb-2 text-sm font-medium text-foreground",children:t("install.openClaw.step2Title")}),(0,a.jsx)(d.N,{language:"json",code:'{\n "hooks": { "enabled": true, "token": "<your-token>" },\n "plugins": {\n "enabled": true,\n "entries": {\n "chorus-openclaw-plugin": {\n "enabled": true,\n "config": {\n "chorusUrl": "'.concat(c,'",\n "apiKey": "').concat(m,'",\n "autoStart": true\n }\n }\n }\n }\n}')})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"mb-2 text-sm font-medium text-foreground",children:t("install.openClaw.step3Title")}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:t("install.openClaw.step3Desc")})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"mb-2 text-sm font-medium text-foreground",children:t("install.openClaw.step4Title")}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:t("install.openClaw.step4Desc")}),(0,a.jsx)(d.N,{code:"/chorus status"})]}),(0,a.jsxs)(l.Nt,{children:[(0,a.jsxs)(l.R6,{className:"flex w-full items-center gap-2 rounded-md border px-3 py-2 text-sm font-medium text-muted-foreground hover:text-foreground transition-colors",children:[(0,a.jsx)(o.A,{className:"size-4 transition-transform duration-200 [[data-state=open]>&]:rotate-180"}),t("install.openClaw.troubleshootingTitle")]}),(0,a.jsx)(l.Ke,{children:(0,a.jsxs)("div",{className:"mt-2 rounded-md border border-amber-500/20 bg-amber-500/5 p-3",children:[(0,a.jsx)("p",{className:"text-sm font-medium text-amber-600 dark:text-amber-400",children:t("install.openClaw.troubleshootingError")}),(0,a.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:t("install.openClaw.troubleshootingFix")})]})})]})]}),(0,a.jsxs)(i.av,{value:"other",className:"mt-4 space-y-4",children:[(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:t("install.other.description")}),(0,a.jsx)(d.N,{code:"Please install and configure the Chorus AI-DLC collaboration platform.\n\nChorus URL: ".concat(c,"\nAPI Key: ").concat(m,"\n\nRead the setup instructions from:\n").concat(c,'/skill/chorus/SKILL.md\n\nFollow the "Setup" section to configure the MCP server,\nthen call chorus_checkin() to verify the connection.')})]})]})})})}},88064:(e,s,t)=>{t.d(s,{J:()=>i});var a=t(90508);t(1856);var n=t(58057),r=t(24377);function i(e){let{className:s,...t}=e;return(0,a.jsx)(n.Root,{"data-slot":"label",className:(0,r.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",s),...t})}},93810:(e,s,t)=>{t.d(s,{eZ:()=>a,kl:()=>n,lp:()=>r});let a=["idea","proposal","document","task","project"],n=["read","write","admin"],r=a.flatMap(e=>n.map(s=>"".concat(e,":").concat(s)))}}]);