claude-code-workflow 7.2.18 → 7.2.20

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 (200) hide show
  1. package/.claude/commands/workflow/analyze-with-file.md +33 -8
  2. package/.codex/skills/analyze-with-file/SKILL.md +55 -8
  3. package/ccw/dist/core/routes/agent-definitions-routes.d.ts.map +1 -1
  4. package/ccw/dist/core/routes/agent-definitions-routes.js +152 -6
  5. package/ccw/dist/core/routes/agent-definitions-routes.js.map +1 -1
  6. package/ccw/frontend/dist/assets/{AlertDialog-5DA_OF9w.js → AlertDialog-Cukb0xv2.js} +2 -2
  7. package/ccw/frontend/dist/assets/{AlertDialog-5DA_OF9w.js.map → AlertDialog-Cukb0xv2.js.map} +1 -1
  8. package/ccw/frontend/dist/assets/{AnalysisPage-MoK5luZM.js → AnalysisPage-Ddmv0J4x.js} +2 -2
  9. package/ccw/frontend/dist/assets/{AnalysisPage-MoK5luZM.js.map → AnalysisPage-Ddmv0J4x.js.map} +1 -1
  10. package/ccw/frontend/dist/assets/{ApiSettingsPage-OreSF7CY.js → ApiSettingsPage-DMkrTZDX.js} +2 -2
  11. package/ccw/frontend/dist/assets/{ApiSettingsPage-OreSF7CY.js.map → ApiSettingsPage-DMkrTZDX.js.map} +1 -1
  12. package/ccw/frontend/dist/assets/{CliModeToggle-B_Vu8NDb.js → CliModeToggle-DXenjpbe.js} +2 -2
  13. package/ccw/frontend/dist/assets/{CliModeToggle-B_Vu8NDb.js.map → CliModeToggle-DXenjpbe.js.map} +1 -1
  14. package/ccw/frontend/dist/assets/{CliSessionSharePage-Bb3DrLGF.js → CliSessionSharePage-B-ZIMqmX.js} +2 -2
  15. package/ccw/frontend/dist/assets/{CliSessionSharePage-Bb3DrLGF.js.map → CliSessionSharePage-B-ZIMqmX.js.map} +1 -1
  16. package/ccw/frontend/dist/assets/{CliViewerPage-BS4zrFVp.js → CliViewerPage-9YxGyLxh.js} +2 -2
  17. package/ccw/frontend/dist/assets/{CliViewerPage-BS4zrFVp.js.map → CliViewerPage-9YxGyLxh.js.map} +1 -1
  18. package/ccw/frontend/dist/assets/{CodexLensPage-BWSIk06e.js → CodexLensPage-B_uv5wdn.js} +2 -2
  19. package/ccw/frontend/dist/assets/{CodexLensPage-BWSIk06e.js.map → CodexLensPage-B_uv5wdn.js.map} +1 -1
  20. package/ccw/frontend/dist/assets/{Collapsible-Cw1zJkjU.js → Collapsible-C2qk3yV0.js} +2 -2
  21. package/ccw/frontend/dist/assets/{Collapsible-Cw1zJkjU.js.map → Collapsible-C2qk3yV0.js.map} +1 -1
  22. package/ccw/frontend/dist/assets/{CommandsManagerPage-a240GHzx.js → CommandsManagerPage-DBtaWxLB.js} +2 -2
  23. package/ccw/frontend/dist/assets/{CommandsManagerPage-a240GHzx.js.map → CommandsManagerPage-DBtaWxLB.js.map} +1 -1
  24. package/ccw/frontend/dist/assets/{DeepWikiPage-CZ4pN-5G.js → DeepWikiPage-d9K4_TgG.js} +2 -2
  25. package/ccw/frontend/dist/assets/{DeepWikiPage-CZ4pN-5G.js.map → DeepWikiPage-d9K4_TgG.js.map} +1 -1
  26. package/ccw/frontend/dist/assets/{EndpointsPage-Ct66AIze.js → EndpointsPage-DhW6hYrI.js} +2 -2
  27. package/ccw/frontend/dist/assets/{EndpointsPage-Ct66AIze.js.map → EndpointsPage-DhW6hYrI.js.map} +1 -1
  28. package/ccw/frontend/dist/assets/{ExplorerPage-DAZkXx2Q.js → ExplorerPage-DYYpCvtB.js} +2 -2
  29. package/ccw/frontend/dist/assets/{ExplorerPage-DAZkXx2Q.js.map → ExplorerPage-DYYpCvtB.js.map} +1 -1
  30. package/ccw/frontend/dist/assets/{FixSessionPage-cDE32BH8.js → FixSessionPage-CSmiT5SE.js} +2 -2
  31. package/ccw/frontend/dist/assets/{FixSessionPage-cDE32BH8.js.map → FixSessionPage-CSmiT5SE.js.map} +1 -1
  32. package/ccw/frontend/dist/assets/{FloatingFileBrowser-tgDOT5P0.js → FloatingFileBrowser-DvMsXLdP.js} +2 -2
  33. package/ccw/frontend/dist/assets/{FloatingFileBrowser-tgDOT5P0.js.map → FloatingFileBrowser-DvMsXLdP.js.map} +1 -1
  34. package/ccw/frontend/dist/assets/{FloatingPanel-Diyvdyo1.js → FloatingPanel-sqezhSI8.js} +2 -2
  35. package/ccw/frontend/dist/assets/{FloatingPanel-Diyvdyo1.js.map → FloatingPanel-sqezhSI8.js.map} +1 -1
  36. package/ccw/frontend/dist/assets/{GraphExplorerPage-CPwRsfd2.js → GraphExplorerPage-DS8ghMFM.js} +2 -2
  37. package/ccw/frontend/dist/assets/{GraphExplorerPage-CPwRsfd2.js.map → GraphExplorerPage-DS8ghMFM.js.map} +1 -1
  38. package/ccw/frontend/dist/assets/{HistoryPage-D2F7j-xY.js → HistoryPage-B-x1RyHu.js} +2 -2
  39. package/ccw/frontend/dist/assets/{HistoryPage-D2F7j-xY.js.map → HistoryPage-B-x1RyHu.js.map} +1 -1
  40. package/ccw/frontend/dist/assets/{HookManagerPage-Cq_CqegO.js → HookManagerPage-BbxpDb68.js} +2 -2
  41. package/ccw/frontend/dist/assets/{HookManagerPage-Cq_CqegO.js.map → HookManagerPage-BbxpDb68.js.map} +1 -1
  42. package/ccw/frontend/dist/assets/{InstallationsPage-DeBLZFZg.js → InstallationsPage-3bShz_Ai.js} +2 -2
  43. package/ccw/frontend/dist/assets/{InstallationsPage-DeBLZFZg.js.map → InstallationsPage-3bShz_Ai.js.map} +1 -1
  44. package/ccw/frontend/dist/assets/{IssueHubPage-DqytkqBW.js → IssueHubPage-BQY_Hh3e.js} +2 -2
  45. package/ccw/frontend/dist/assets/{IssueHubPage-DqytkqBW.js.map → IssueHubPage-BQY_Hh3e.js.map} +1 -1
  46. package/ccw/frontend/dist/assets/{LiteTasksPage-BOknokuo.js → LiteTasksPage-vD_8fQcR.js} +17 -22
  47. package/ccw/frontend/dist/assets/LiteTasksPage-vD_8fQcR.js.map +1 -0
  48. package/ccw/frontend/dist/assets/{McpManagerPage-DPF421ki.js → McpManagerPage-CI5ZzB8A.js} +2 -2
  49. package/ccw/frontend/dist/assets/{McpManagerPage-DPF421ki.js.map → McpManagerPage-CI5ZzB8A.js.map} +1 -1
  50. package/ccw/frontend/dist/assets/{MemoryPage-CK-QH9cl.js → MemoryPage-CNuj2eNg.js} +2 -2
  51. package/ccw/frontend/dist/assets/{MemoryPage-CK-QH9cl.js.map → MemoryPage-CNuj2eNg.js.map} +1 -1
  52. package/ccw/frontend/dist/assets/{NotFoundPage-Bk_u5rzz.js → NotFoundPage-BrnAXkb1.js} +2 -2
  53. package/ccw/frontend/dist/assets/{NotFoundPage-Bk_u5rzz.js.map → NotFoundPage-BrnAXkb1.js.map} +1 -1
  54. package/ccw/frontend/dist/assets/{OrchestratorPage-B9ND5ptW.js → OrchestratorPage-CH81PGt4.js} +2 -2
  55. package/ccw/frontend/dist/assets/{OrchestratorPage-B9ND5ptW.js.map → OrchestratorPage-CH81PGt4.js.map} +1 -1
  56. package/ccw/frontend/dist/assets/{ProjectOverviewPage-0DUpa-rl.js → ProjectOverviewPage-dwiEXl2O.js} +2 -2
  57. package/ccw/frontend/dist/assets/{ProjectOverviewPage-0DUpa-rl.js.map → ProjectOverviewPage-dwiEXl2O.js.map} +1 -1
  58. package/ccw/frontend/dist/assets/{PromptHistoryPage-B--0N_wr.js → PromptHistoryPage-CabgLjJU.js} +2 -2
  59. package/ccw/frontend/dist/assets/{PromptHistoryPage-B--0N_wr.js.map → PromptHistoryPage-CabgLjJU.js.map} +1 -1
  60. package/ccw/frontend/dist/assets/{ReviewSessionPage-DJtY0kQl.js → ReviewSessionPage-DAMrNFn8.js} +2 -2
  61. package/ccw/frontend/dist/assets/{ReviewSessionPage-DJtY0kQl.js.map → ReviewSessionPage-DAMrNFn8.js.map} +1 -1
  62. package/ccw/frontend/dist/assets/{RulesManagerPage-yW19Un_V.js → RulesManagerPage-4jzmxPn0.js} +2 -2
  63. package/ccw/frontend/dist/assets/{RulesManagerPage-yW19Un_V.js.map → RulesManagerPage-4jzmxPn0.js.map} +1 -1
  64. package/ccw/frontend/dist/assets/{SessionDetailPage-tr8g0Hc1.js → SessionDetailPage-C5Btktmp.js} +2 -2
  65. package/ccw/frontend/dist/assets/{SessionDetailPage-tr8g0Hc1.js.map → SessionDetailPage-C5Btktmp.js.map} +1 -1
  66. package/ccw/frontend/dist/assets/{SessionsPage-CxDytLfb.js → SessionsPage-CQIB4E8m.js} +2 -2
  67. package/ccw/frontend/dist/assets/{SessionsPage-CxDytLfb.js.map → SessionsPage-CQIB4E8m.js.map} +1 -1
  68. package/ccw/frontend/dist/assets/SettingsPage-Yi9UAfm7.js +150 -0
  69. package/ccw/frontend/dist/assets/SettingsPage-Yi9UAfm7.js.map +1 -0
  70. package/ccw/frontend/dist/assets/{SkillsManagerPage-C0MOJy-C.js → SkillsManagerPage-BqfvYSkT.js} +2 -2
  71. package/ccw/frontend/dist/assets/{SkillsManagerPage-C0MOJy-C.js.map → SkillsManagerPage-BqfvYSkT.js.map} +1 -1
  72. package/ccw/frontend/dist/assets/{SpecsSettingsPage-D9Y6-U-n.js → SpecsSettingsPage-BdVPM5R6.js} +4 -4
  73. package/ccw/frontend/dist/assets/{SpecsSettingsPage-D9Y6-U-n.js.map → SpecsSettingsPage-BdVPM5R6.js.map} +1 -1
  74. package/ccw/frontend/dist/assets/{Switch-BEfkMCxZ.js → Switch-BG929kV0.js} +2 -2
  75. package/ccw/frontend/dist/assets/{Switch-BEfkMCxZ.js.map → Switch-BG929kV0.js.map} +1 -1
  76. package/ccw/frontend/dist/assets/{TabsNavigation-Dit0DM3m.js → TabsNavigation-Bol1y09b.js} +2 -2
  77. package/ccw/frontend/dist/assets/{TabsNavigation-Dit0DM3m.js.map → TabsNavigation-Bol1y09b.js.map} +1 -1
  78. package/ccw/frontend/dist/assets/{TaskDrawer-XN-D_bDk.js → TaskDrawer-Dwutrn8_.js} +2 -2
  79. package/ccw/frontend/dist/assets/{TaskDrawer-XN-D_bDk.js.map → TaskDrawer-Dwutrn8_.js.map} +1 -1
  80. package/ccw/frontend/dist/assets/{TeamPage-BOwkjrDi.js → TeamPage-CpCSwpxD.js} +2 -2
  81. package/ccw/frontend/dist/assets/{TeamPage-BOwkjrDi.js.map → TeamPage-CpCSwpxD.js.map} +1 -1
  82. package/ccw/frontend/dist/assets/{TerminalDashboardPage-X8RymrSN.js → TerminalDashboardPage-DODKjOeK.js} +2 -2
  83. package/ccw/frontend/dist/assets/{TerminalDashboardPage-X8RymrSN.js.map → TerminalDashboardPage-DODKjOeK.js.map} +1 -1
  84. package/ccw/frontend/dist/assets/{archive-BMXBzq8R.js → archive-CQw634kD.js} +2 -2
  85. package/ccw/frontend/dist/assets/{archive-BMXBzq8R.js.map → archive-CQw634kD.js.map} +1 -1
  86. package/ccw/frontend/dist/assets/{archive-restore-DHvAhQBT.js → archive-restore-B-_EG6wE.js} +2 -2
  87. package/ccw/frontend/dist/assets/{archive-restore-DHvAhQBT.js.map → archive-restore-B-_EG6wE.js.map} +1 -1
  88. package/ccw/frontend/dist/assets/{arrow-right-CBObFEN0.js → arrow-right-CcQtxBrU.js} +2 -2
  89. package/ccw/frontend/dist/assets/{arrow-right-CBObFEN0.js.map → arrow-right-CcQtxBrU.js.map} +1 -1
  90. package/ccw/frontend/dist/assets/{bookmark-plus-D-2SQ5pV.js → bookmark-plus-Cl-BbcpR.js} +2 -2
  91. package/ccw/frontend/dist/assets/{bookmark-plus-D-2SQ5pV.js.map → bookmark-plus-Cl-BbcpR.js.map} +1 -1
  92. package/ccw/frontend/dist/assets/{bot-DS7saQkk.js → bot-CLSNSkW_.js} +2 -2
  93. package/ccw/frontend/dist/assets/{bot-DS7saQkk.js.map → bot-CLSNSkW_.js.map} +1 -1
  94. package/ccw/frontend/dist/assets/{braces-D0pAnktp.js → braces-DWwkaDS6.js} +2 -2
  95. package/ccw/frontend/dist/assets/{braces-D0pAnktp.js.map → braces-DWwkaDS6.js.map} +1 -1
  96. package/ccw/frontend/dist/assets/{circle-stop-FWSboNE6.js → circle-stop-DiS7e6ma.js} +2 -2
  97. package/ccw/frontend/dist/assets/{circle-stop-FWSboNE6.js.map → circle-stop-DiS7e6ma.js.map} +1 -1
  98. package/ccw/frontend/dist/assets/{cpu-BNM2uIpY.js → cpu-CuvHUVXO.js} +2 -2
  99. package/ccw/frontend/dist/assets/{cpu-BNM2uIpY.js.map → cpu-CuvHUVXO.js.map} +1 -1
  100. package/ccw/frontend/dist/assets/{ellipsis-vertical-GwdnnWQj.js → ellipsis-vertical-BoVlINSw.js} +2 -2
  101. package/ccw/frontend/dist/assets/{ellipsis-vertical-GwdnnWQj.js.map → ellipsis-vertical-BoVlINSw.js.map} +1 -1
  102. package/ccw/frontend/dist/assets/{eye-kV2pWXQ5.js → eye-BEMOdcAN.js} +2 -2
  103. package/ccw/frontend/dist/assets/{eye-kV2pWXQ5.js.map → eye-BEMOdcAN.js.map} +1 -1
  104. package/ccw/frontend/dist/assets/{eye-off-6o-KYsBM.js → eye-off-C5HS4Ytm.js} +2 -2
  105. package/ccw/frontend/dist/assets/{eye-off-6o-KYsBM.js.map → eye-off-C5HS4Ytm.js.map} +1 -1
  106. package/ccw/frontend/dist/assets/{file-json-Q4_Blhd8.js → file-json-DQ9XLq0B.js} +2 -2
  107. package/ccw/frontend/dist/assets/{file-json-Q4_Blhd8.js.map → file-json-DQ9XLq0B.js.map} +1 -1
  108. package/ccw/frontend/dist/assets/{file-text-DSroEAMu.js → file-text-TGs_qCbw.js} +2 -2
  109. package/ccw/frontend/dist/assets/{file-text-DSroEAMu.js.map → file-text-TGs_qCbw.js.map} +1 -1
  110. package/ccw/frontend/dist/assets/{filter-A5I9Xz7E.js → filter-CIuCqnDB.js} +2 -2
  111. package/ccw/frontend/dist/assets/{filter-A5I9Xz7E.js.map → filter-CIuCqnDB.js.map} +1 -1
  112. package/ccw/frontend/dist/assets/{folder-DNNgXVVH.js → folder-BkivHBwn.js} +2 -2
  113. package/ccw/frontend/dist/assets/{folder-DNNgXVVH.js.map → folder-BkivHBwn.js.map} +1 -1
  114. package/ccw/frontend/dist/assets/{gauge-PfGM68A8.js → gauge-CtM68fVY.js} +2 -2
  115. package/ccw/frontend/dist/assets/{gauge-PfGM68A8.js.map → gauge-CtM68fVY.js.map} +1 -1
  116. package/ccw/frontend/dist/assets/{globe-C3X8YQrU.js → globe-DpnrINqP.js} +2 -2
  117. package/ccw/frontend/dist/assets/{globe-C3X8YQrU.js.map → globe-DpnrINqP.js.map} +1 -1
  118. package/ccw/frontend/dist/assets/{grid-3x3-DpyJO-oF.js → grid-3x3-SjX0a5JH.js} +2 -2
  119. package/ccw/frontend/dist/assets/{grid-3x3-DpyJO-oF.js.map → grid-3x3-SjX0a5JH.js.map} +1 -1
  120. package/ccw/frontend/dist/assets/{hard-drive-C2PQHoNg.js → hard-drive-ByAmnoEg.js} +2 -2
  121. package/ccw/frontend/dist/assets/{hard-drive-C2PQHoNg.js.map → hard-drive-ByAmnoEg.js.map} +1 -1
  122. package/ccw/frontend/dist/assets/{hash-DX8VaW1j.js → hash-DbLc3VOZ.js} +2 -2
  123. package/ccw/frontend/dist/assets/{hash-DX8VaW1j.js.map → hash-DbLc3VOZ.js.map} +1 -1
  124. package/ccw/frontend/dist/assets/{history-BXaQEkhy.js → history-Botz5Z5d.js} +2 -2
  125. package/ccw/frontend/dist/assets/{history-BXaQEkhy.js.map → history-Botz5Z5d.js.map} +1 -1
  126. package/ccw/frontend/dist/assets/{index-BiN-BRcE.js → index-BGvyf4-9.js} +2 -2
  127. package/ccw/frontend/dist/assets/{index-BiN-BRcE.js.map → index-BGvyf4-9.js.map} +1 -1
  128. package/ccw/frontend/dist/assets/index-BoqylFO4.css +39 -0
  129. package/ccw/frontend/dist/assets/{index-B8K8MdMl.js → index-DP_mTJI8.js} +3 -3
  130. package/ccw/frontend/dist/assets/{index-B8K8MdMl.js.map → index-DP_mTJI8.js.map} +1 -1
  131. package/ccw/frontend/dist/assets/{index-Dpe_7YH0.js → index-MkgdhX7a.js} +2 -2
  132. package/ccw/frontend/dist/assets/{index-Dpe_7YH0.js.map → index-MkgdhX7a.js.map} +1 -1
  133. package/ccw/frontend/dist/assets/{index-4zmlzlPo.js → index-ni-tG9rm.js} +2 -2
  134. package/ccw/frontend/dist/assets/{index-4zmlzlPo.js.map → index-ni-tG9rm.js.map} +1 -1
  135. package/ccw/frontend/dist/assets/{layout-grid-CUqTukRt.js → layout-grid-11E4bGJz.js} +2 -2
  136. package/ccw/frontend/dist/assets/{layout-grid-CUqTukRt.js.map → layout-grid-11E4bGJz.js.map} +1 -1
  137. package/ccw/frontend/dist/assets/{lightbulb-h90ex0mh.js → lightbulb-8KrKY82b.js} +2 -2
  138. package/ccw/frontend/dist/assets/{lightbulb-h90ex0mh.js.map → lightbulb-8KrKY82b.js.map} +1 -1
  139. package/ccw/frontend/dist/assets/{link-2-1-DjXqTg.js → link-2-BUn6RILb.js} +2 -2
  140. package/ccw/frontend/dist/assets/{link-2-1-DjXqTg.js.map → link-2-BUn6RILb.js.map} +1 -1
  141. package/ccw/frontend/dist/assets/{link-DbyJpuls.js → link-CmP254Ai.js} +2 -2
  142. package/ccw/frontend/dist/assets/{link-DbyJpuls.js.map → link-CmP254Ai.js.map} +1 -1
  143. package/ccw/frontend/dist/assets/{list-CU0leArg.js → list-BAwzl4a2.js} +2 -2
  144. package/ccw/frontend/dist/assets/{list-CU0leArg.js.map → list-BAwzl4a2.js.map} +1 -1
  145. package/ccw/frontend/dist/assets/{map-pin-DheJ6EJB.js → map-pin-gi342rqk.js} +2 -2
  146. package/ccw/frontend/dist/assets/{map-pin-DheJ6EJB.js.map → map-pin-gi342rqk.js.map} +1 -1
  147. package/ccw/frontend/dist/assets/{messages-square-Bmo5DCr1.js → messages-square-C1Lh8q8b.js} +2 -2
  148. package/ccw/frontend/dist/assets/{messages-square-Bmo5DCr1.js.map → messages-square-C1Lh8q8b.js.map} +1 -1
  149. package/ccw/frontend/dist/assets/{minimize-2-h1gktUQ6.js → minimize-2-OgWNLKdq.js} +2 -2
  150. package/ccw/frontend/dist/assets/{minimize-2-h1gktUQ6.js.map → minimize-2-OgWNLKdq.js.map} +1 -1
  151. package/ccw/frontend/dist/assets/{package-CmuCX6Z_.js → package-Djsvs5qp.js} +2 -2
  152. package/ccw/frontend/dist/assets/{package-CmuCX6Z_.js.map → package-Djsvs5qp.js.map} +1 -1
  153. package/ccw/frontend/dist/assets/{plug-Jz5HaKIu.js → plug-DvSZP2cp.js} +2 -2
  154. package/ccw/frontend/dist/assets/{plug-Jz5HaKIu.js.map → plug-DvSZP2cp.js.map} +1 -1
  155. package/ccw/frontend/dist/assets/{power-CpN5I4BU.js → power-BY7vTLmU.js} +2 -2
  156. package/ccw/frontend/dist/assets/{power-CpN5I4BU.js.map → power-BY7vTLmU.js.map} +1 -1
  157. package/ccw/frontend/dist/assets/{save-B3iyK-h8.js → save-DXfqv84T.js} +2 -2
  158. package/ccw/frontend/dist/assets/{save-B3iyK-h8.js.map → save-DXfqv84T.js.map} +1 -1
  159. package/ccw/frontend/dist/assets/{send-CYO-YU9A.js → send-E2o2LZSX.js} +2 -2
  160. package/ccw/frontend/dist/assets/{send-CYO-YU9A.js.map → send-E2o2LZSX.js.map} +1 -1
  161. package/ccw/frontend/dist/assets/settings-2-ChD1LFHH.js +7 -0
  162. package/ccw/frontend/dist/assets/settings-2-ChD1LFHH.js.map +1 -0
  163. package/ccw/frontend/dist/assets/{square-check-big-1h37S4wz.js → square-check-big-CBymuqmD.js} +2 -2
  164. package/ccw/frontend/dist/assets/{square-check-big-1h37S4wz.js.map → square-check-big-CBymuqmD.js.map} +1 -1
  165. package/ccw/frontend/dist/assets/{square-pen-BS0-oO7y.js → square-pen-BfaiJgOX.js} +2 -2
  166. package/ccw/frontend/dist/assets/{square-pen-BS0-oO7y.js.map → square-pen-BfaiJgOX.js.map} +1 -1
  167. package/ccw/frontend/dist/assets/{star-Dal-o3Lo.js → star-DHMWqZ09.js} +2 -2
  168. package/ccw/frontend/dist/assets/{star-Dal-o3Lo.js.map → star-DHMWqZ09.js.map} +1 -1
  169. package/ccw/frontend/dist/assets/{style-wEWj0pe8.js → style-wvcOEAiM.js} +2 -2
  170. package/ccw/frontend/dist/assets/{style-wEWj0pe8.js.map → style-wvcOEAiM.js.map} +1 -1
  171. package/ccw/frontend/dist/assets/{target-BB9AJiC7.js → target-B8AMmf_N.js} +2 -2
  172. package/ccw/frontend/dist/assets/{target-BB9AJiC7.js.map → target-B8AMmf_N.js.map} +1 -1
  173. package/ccw/frontend/dist/assets/{test-tube-DDnQZrAm.js → test-tube-BpDeTJi1.js} +2 -2
  174. package/ccw/frontend/dist/assets/{test-tube-DDnQZrAm.js.map → test-tube-BpDeTJi1.js.map} +1 -1
  175. package/ccw/frontend/dist/assets/{upload-DshzYJC_.js → upload-pflkdIDG.js} +2 -2
  176. package/ccw/frontend/dist/assets/{upload-DshzYJC_.js.map → upload-pflkdIDG.js.map} +1 -1
  177. package/ccw/frontend/dist/assets/{useApiSettings-DkV-yWup.js → useApiSettings-BPx4DyKT.js} +2 -2
  178. package/ccw/frontend/dist/assets/{useApiSettings-DkV-yWup.js.map → useApiSettings-BPx4DyKT.js.map} +1 -1
  179. package/ccw/frontend/dist/assets/{useCli-CnwgIkqD.js → useCli-D1jfH3XA.js} +2 -2
  180. package/ccw/frontend/dist/assets/{useCli-CnwgIkqD.js.map → useCli-D1jfH3XA.js.map} +1 -1
  181. package/ccw/frontend/dist/assets/{useCommands-S0sc5bfK.js → useCommands-DhR71vpa.js} +2 -2
  182. package/ccw/frontend/dist/assets/{useCommands-S0sc5bfK.js.map → useCommands-DhR71vpa.js.map} +1 -1
  183. package/ccw/frontend/dist/assets/{useDebounce-HxG5rpQo.js → useDebounce-a6Yyer3m.js} +2 -2
  184. package/ccw/frontend/dist/assets/{useDebounce-HxG5rpQo.js.map → useDebounce-a6Yyer3m.js.map} +1 -1
  185. package/ccw/frontend/dist/assets/{useFileExplorer-CTg0zndf.js → useFileExplorer-B8W2JTj2.js} +2 -2
  186. package/ccw/frontend/dist/assets/{useFileExplorer-CTg0zndf.js.map → useFileExplorer-B8W2JTj2.js.map} +1 -1
  187. package/ccw/frontend/dist/assets/{useLocale-C2BlVToA.js → useLocale-aMHdQIL_.js} +2 -2
  188. package/ccw/frontend/dist/assets/{useLocale-C2BlVToA.js.map → useLocale-aMHdQIL_.js.map} +1 -1
  189. package/ccw/frontend/dist/assets/{useSkills-8IWJgwQU.js → useSkills-BHpc2LtN.js} +3 -3
  190. package/ccw/frontend/dist/assets/{useSkills-8IWJgwQU.js.map → useSkills-BHpc2LtN.js.map} +1 -1
  191. package/ccw/frontend/dist/assets/{useSystemSettings-BAtCCf8T.js → useSystemSettings-BFD0SvEF.js} +2 -2
  192. package/ccw/frontend/dist/assets/{useSystemSettings-BAtCCf8T.js.map → useSystemSettings-BFD0SvEF.js.map} +1 -1
  193. package/ccw/frontend/dist/assets/{wand-sparkles-CI1Tfudg.js → wand-sparkles-dYtI2IKM.js} +2 -2
  194. package/ccw/frontend/dist/assets/{wand-sparkles-CI1Tfudg.js.map → wand-sparkles-dYtI2IKM.js.map} +1 -1
  195. package/ccw/frontend/dist/index.html +2 -2
  196. package/package.json +1 -1
  197. package/ccw/frontend/dist/assets/LiteTasksPage-BOknokuo.js.map +0 -1
  198. package/ccw/frontend/dist/assets/SettingsPage-DJltvfrs.js +0 -144
  199. package/ccw/frontend/dist/assets/SettingsPage-DJltvfrs.js.map +0 -1
  200. package/ccw/frontend/dist/assets/index-D6YeIKg_.css +0 -39
@@ -1,82 +1,77 @@
1
- import{O as z,u as Y,j as e,B as i,aw as Se,aU as Pe,aR as Me,r as j,C as Q,ap as te,ao as ae,a as Z,n as Ae,H as Le,cQ as Ee,o as he,s as Ie,e as X,J as ue,K as pe,c as fe,cR as ge,W as je,b as ie,i as le,Z as de,k as ne,l as Ne,m as re,cC as ke,cn as ze,cS as be,L as xe,af as we,N as Ce,aN as Fe,U as Te}from"./index-B8K8MdMl.js";import{T as Oe}from"./TabsNavigation-Dit0DM3m.js";import{C as qe,A as Re,E as He,T as $e}from"./TaskDrawer-XN-D_bDk.js";import"./Collapsible-Cw1zJkjU.js";import{P as K}from"./package-CmuCX6Z_.js";import{F as Ve}from"./file-text-DSroEAMu.js";import{M as De,a as Be}from"./minimize-2-h1gktUQ6.js";import{M as ce}from"./messages-square-Bmo5DCr1.js";import{H as ve}from"./hash-DX8VaW1j.js";import{C as Ue}from"./cpu-BNM2uIpY.js";import{T as We}from"./target-BB9AJiC7.js";import{L as Qe}from"./link-2-1-DjXqTg.js";import"./link-DbyJpuls.js";import"./test-tube-DDnQZrAm.js";import"./index-4zmlzlPo.js";/* empty css */import"./folder-DNNgXVVH.js";/**
1
+ import{O as R,u as Y,j as e,B as i,aw as Se,aU as Pe,aR as Me,r as j,C as Q,ap as te,ao as ae,a as Z,n as Ae,H as Le,cR as Ee,o as he,s as Ie,e as X,J as ue,K as pe,c as fe,cS as ge,W as je,b as ie,i as le,Z as de,k as ne,l as Ne,m as re,cC as ke,cn as ze,cT as be,L as xe,af as we,N as Ce,aN as Fe,U as Te}from"./index-DP_mTJI8.js";import{T as Oe}from"./TabsNavigation-Bol1y09b.js";import{C as qe,A as Re,E as $e,T as He}from"./TaskDrawer-Dwutrn8_.js";import"./Collapsible-C2qk3yV0.js";import{P as K}from"./package-Djsvs5qp.js";import{F as Ve}from"./file-text-TGs_qCbw.js";import{M as De,a as Be}from"./minimize-2-OgWNLKdq.js";import{M as ce}from"./messages-square-C1Lh8q8b.js";import{H as ve}from"./hash-DbLc3VOZ.js";import{C as Ue}from"./cpu-CuvHUVXO.js";import{T as We}from"./target-B8AMmf_N.js";import{L as Qe}from"./link-2-BUn6RILb.js";import{S as Ze}from"./settings-2-ChD1LFHH.js";import"./link-CmP254Ai.js";import"./test-tube-BpDeTJi1.js";import"./index-ni-tG9rm.js";/* empty css */import"./folder-BkivHBwn.js";/**
2
2
  * @license lucide-react v0.460.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
5
5
  * See the LICENSE file in the root directory of this source tree.
6
- */const oe=z("ArrowDownWideNarrow",[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M11 4h10",key:"1w87gc"}],["path",{d:"M11 8h7",key:"djye34"}],["path",{d:"M11 12h4",key:"q8tih4"}]]);/**
6
+ */const oe=R("ArrowDownWideNarrow",[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M11 4h10",key:"1w87gc"}],["path",{d:"M11 8h7",key:"djye34"}],["path",{d:"M11 12h4",key:"q8tih4"}]]);/**
7
7
  * @license lucide-react v0.460.0 - ISC
8
8
  *
9
9
  * This source code is licensed under the ISC license.
10
10
  * See the LICENSE file in the root directory of this source tree.
11
- */const me=z("ArrowUpNarrowWide",[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M11 12h4",key:"q8tih4"}],["path",{d:"M11 16h7",key:"uosisv"}],["path",{d:"M11 20h10",key:"jvxblo"}]]);/**
11
+ */const me=R("ArrowUpNarrowWide",[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M11 12h4",key:"q8tih4"}],["path",{d:"M11 16h7",key:"uosisv"}],["path",{d:"M11 20h10",key:"jvxblo"}]]);/**
12
12
  * @license lucide-react v0.460.0 - ISC
13
13
  *
14
14
  * This source code is licensed under the ISC license.
15
15
  * See the LICENSE file in the root directory of this source tree.
16
- */const Ze=z("CheckCheck",[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]]);/**
16
+ */const Je=R("CheckCheck",[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]]);/**
17
17
  * @license lucide-react v0.460.0 - ISC
18
18
  *
19
19
  * This source code is licensed under the ISC license.
20
20
  * See the LICENSE file in the root directory of this source tree.
21
- */const ye=z("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
21
+ */const ye=R("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
22
22
  * @license lucide-react v0.460.0 - ISC
23
23
  *
24
24
  * This source code is licensed under the ISC license.
25
25
  * See the LICENSE file in the root directory of this source tree.
26
- */const Je=z("Compass",[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
26
+ */const Ge=R("Compass",[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
27
27
  * @license lucide-react v0.460.0 - ISC
28
28
  *
29
29
  * This source code is licensed under the ISC license.
30
30
  * See the LICENSE file in the root directory of this source tree.
31
- */const Ge=z("Flag",[["path",{d:"M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z",key:"i9b6wo"}],["line",{x1:"4",x2:"4",y1:"22",y2:"15",key:"1cm3nv"}]]);/**
31
+ */const Ke=R("Flag",[["path",{d:"M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z",key:"i9b6wo"}],["line",{x1:"4",x2:"4",y1:"22",y2:"15",key:"1cm3nv"}]]);/**
32
32
  * @license lucide-react v0.460.0 - ISC
33
33
  *
34
34
  * This source code is licensed under the ISC license.
35
35
  * See the LICENSE file in the root directory of this source tree.
36
- */const Ke=z("GitCompare",[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["path",{d:"M11 18H8a2 2 0 0 1-2-2V9",key:"19pyzm"}]]);/**
36
+ */const Xe=R("GitCompare",[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["path",{d:"M11 18H8a2 2 0 0 1-2-2V9",key:"19pyzm"}]]);/**
37
37
  * @license lucide-react v0.460.0 - ISC
38
38
  *
39
39
  * This source code is licensed under the ISC license.
40
40
  * See the LICENSE file in the root directory of this source tree.
41
- */const Xe=z("ListFilter",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M7 12h10",key:"b7w52i"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/**
41
+ */const Ye=R("ListFilter",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M7 12h10",key:"b7w52i"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/**
42
42
  * @license lucide-react v0.460.0 - ISC
43
43
  *
44
44
  * This source code is licensed under the ISC license.
45
45
  * See the LICENSE file in the root directory of this source tree.
46
- */const Ye=z("OctagonAlert",[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]]);/**
46
+ */const es=R("OctagonAlert",[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]]);/**
47
47
  * @license lucide-react v0.460.0 - ISC
48
48
  *
49
49
  * This source code is licensed under the ISC license.
50
50
  * See the LICENSE file in the root directory of this source tree.
51
- */const es=z("Repeat",[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]]);/**
51
+ */const ss=R("Repeat",[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]]);/**
52
52
  * @license lucide-react v0.460.0 - ISC
53
53
  *
54
54
  * This source code is licensed under the ISC license.
55
55
  * See the LICENSE file in the root directory of this source tree.
56
- */const ss=z("Route",[["circle",{cx:"6",cy:"19",r:"3",key:"1kj8tv"}],["path",{d:"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15",key:"1d8sl"}],["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}]]);/**
56
+ */const ts=R("Route",[["circle",{cx:"6",cy:"19",r:"3",key:"1kj8tv"}],["path",{d:"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15",key:"1d8sl"}],["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}]]);/**
57
57
  * @license lucide-react v0.460.0 - ISC
58
58
  *
59
59
  * This source code is licensed under the ISC license.
60
60
  * See the LICENSE file in the root directory of this source tree.
61
- */const ts=z("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/**
61
+ */const as=R("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
62
62
  * @license lucide-react v0.460.0 - ISC
63
63
  *
64
64
  * This source code is licensed under the ISC license.
65
65
  * See the LICENSE file in the root directory of this source tree.
66
- */const as=z("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
66
+ */const ns=R("Stethoscope",[["path",{d:"M11 2v2",key:"1539x4"}],["path",{d:"M5 2v2",key:"1yf1q8"}],["path",{d:"M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1",key:"rb5t3r"}],["path",{d:"M8 15a6 6 0 0 0 12 0v-3",key:"x18d4x"}],["circle",{cx:"20",cy:"10",r:"2",key:"ts1r5v"}]]);/**
67
67
  * @license lucide-react v0.460.0 - ISC
68
68
  *
69
69
  * This source code is licensed under the ISC license.
70
70
  * See the LICENSE file in the root directory of this source tree.
71
- */const ns=z("Stethoscope",[["path",{d:"M11 2v2",key:"1539x4"}],["path",{d:"M5 2v2",key:"1yf1q8"}],["path",{d:"M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1",key:"rb5t3r"}],["path",{d:"M8 15a6 6 0 0 0 12 0v-3",key:"x18d4x"}],["circle",{cx:"20",cy:"10",r:"2",key:"ts1r5v"}]]);/**
71
+ */const is=R("ThumbsDown",[["path",{d:"M17 14V2",key:"8ymqnk"}],["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}]]);/**
72
72
  * @license lucide-react v0.460.0 - ISC
73
73
  *
74
74
  * This source code is licensed under the ISC license.
75
75
  * See the LICENSE file in the root directory of this source tree.
76
- */const is=z("ThumbsDown",[["path",{d:"M17 14V2",key:"8ymqnk"}],["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}]]);/**
77
- * @license lucide-react v0.460.0 - ISC
78
- *
79
- * This source code is licensed under the ISC license.
80
- * See the LICENSE file in the root directory of this source tree.
81
- */const ls=z("ThumbsUp",[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]]);function rs(s){var h;return s?(h=s.items)!=null&&h.length?s.items:s.data?Object.entries(s.data).map(([a,o])=>({id:a,title:a.replace(/-/g," ").replace(/^\w/,l=>l.toUpperCase()),...typeof o=="object"&&o!==null?o:{}})):[]:[]}function G({icon:s,title:h,badge:a,children:o,defaultOpen:l=!0}){const[u,f]=j.useState(l);return e.jsxs(Q,{className:"border-border",onClick:p=>p.stopPropagation(),children:[e.jsxs("button",{className:"w-full flex items-center gap-2 p-3 text-left hover:bg-muted/50 transition-colors",onClick:()=>f(!u),children:[e.jsx("span",{className:"text-muted-foreground",children:s}),e.jsx("span",{className:"text-sm font-medium text-foreground flex-1",children:h}),a&&e.jsx(i,{variant:"secondary",className:"text-[10px]",children:a}),u?e.jsx(te,{className:"h-4 w-4 text-muted-foreground"}):e.jsx(ae,{className:"h-4 w-4 text-muted-foreground"})]}),u&&e.jsx(Z,{className:"px-3 pb-3 pt-0",children:o})]})}function _e({contextData:s,session:h}){var c,t,m,g,A,H,$,v,U,F,D,L,W,O;const{formatMessage:a}=Y(),o=h.plan||{},l=s.context,u=!!((c=s.explorations)!=null&&c.manifest),f=rs(s.diagnoses),p=!!((t=s.diagnoses)!=null&&t.manifest||f.length>0),M=!!l,r=!!((m=o.focus_paths)!=null&&m.length),_=!!o.summary;return u||p||M||r||_?e.jsxs("div",{className:"space-y-3",children:[u&&e.jsx(G,{icon:e.jsx(Je,{className:"h-4 w-4"}),title:a({id:"liteTasks.contextPanel.explorations"}),badge:(A=(g=s.explorations)==null?void 0:g.manifest)!=null&&A.exploration_count?a({id:"liteTasks.contextPanel.explorationsCount"},{count:s.explorations.manifest.exploration_count}):void 0,children:e.jsxs("div",{className:"space-y-2",children:[!!(($=(H=s.explorations)==null?void 0:H.manifest)!=null&&$.task_description)&&e.jsxs("div",{className:"text-xs text-muted-foreground",children:[e.jsxs("span",{className:"font-medium text-foreground",children:[a({id:"liteTasks.contextPanel.taskDescription"}),":"]})," ",String(s.explorations.manifest.task_description)]}),!!((U=(v=s.explorations)==null?void 0:v.manifest)!=null&&U.complexity)&&e.jsxs("div",{className:"text-xs text-muted-foreground",children:[e.jsxs("span",{className:"font-medium text-foreground",children:[a({id:"liteTasks.contextPanel.complexity"}),":"]})," ",e.jsx(i,{variant:"info",className:"text-[10px]",children:String(s.explorations.manifest.complexity)})]}),((F=s.explorations)==null?void 0:F.data)&&e.jsx("div",{className:"flex flex-wrap gap-1.5 mt-1",children:Object.keys(s.explorations.data).map(n=>e.jsx(i,{variant:"secondary",className:"text-[10px] capitalize",children:n.replace(/-/g," ")},n))})]})}),p&&e.jsx(G,{icon:e.jsx(ns,{className:"h-4 w-4"}),title:a({id:"liteTasks.contextPanel.diagnoses"}),badge:f.length>0?a({id:"liteTasks.contextPanel.diagnosesCount"},{count:f.length}):void 0,children:f.map((n,x)=>e.jsx("div",{className:"text-xs text-muted-foreground py-1 border-b border-border/50 last:border-0",children:n.title||n.description||`Diagnosis ${x+1}`},x))}),M&&l&&e.jsx(G,{icon:e.jsx(K,{className:"h-4 w-4"}),title:a({id:"liteTasks.contextPanel.contextPackage"}),children:e.jsxs("div",{className:"space-y-2 text-xs",children:[l.task_description&&e.jsxs("div",{className:"text-muted-foreground",children:[e.jsxs("span",{className:"font-medium text-foreground",children:[a({id:"liteTasks.contextPanel.taskDescription"}),":"]})," ",l.task_description]}),l.constraints&&l.constraints.length>0&&e.jsxs("div",{children:[e.jsx("div",{className:"text-muted-foreground mb-1",children:e.jsxs("span",{className:"font-medium text-foreground",children:[a({id:"liteTasks.contextPanel.constraints"}),":"]})}),e.jsx("div",{className:"space-y-1 pl-2",children:l.constraints.map((n,x)=>e.jsxs("div",{className:"text-muted-foreground flex items-start gap-1",children:[e.jsx("span",{className:"text-primary/50",children:"•"}),e.jsx("span",{children:n})]},x))})]}),l.focus_paths&&l.focus_paths.length>0&&e.jsxs("div",{className:"text-muted-foreground",children:[e.jsxs("span",{className:"font-medium text-foreground",children:[a({id:"liteTasks.contextPanel.focusPaths"}),":"]})," ",e.jsx("div",{className:"flex flex-wrap gap-1 mt-0.5",children:l.focus_paths.map((n,x)=>e.jsx(i,{variant:"secondary",className:"text-[10px] font-mono",children:n},x))})]}),l.relevant_files&&l.relevant_files.length>0&&e.jsxs("div",{children:[e.jsxs("div",{className:"text-muted-foreground mb-1",children:[e.jsxs("span",{className:"font-medium text-foreground",children:[a({id:"liteTasks.contextPanel.relevantFiles"}),":"]})," ",e.jsx(i,{variant:"outline",className:"text-[10px] align-middle",children:l.relevant_files.length})]}),e.jsx("div",{className:"space-y-0.5 pl-2 max-h-32 overflow-y-auto",children:l.relevant_files.map((n,x)=>{const y=typeof n=="string"?n:n.path,N=typeof n=="string"?void 0:n.reason;return e.jsxs("div",{className:"group flex items-start gap-1 text-muted-foreground hover:bg-muted/30 rounded px-1 py-0.5",children:[e.jsxs("span",{className:"text-primary/50 shrink-0",children:[x+1,"."]}),e.jsx("span",{className:"font-mono text-xs truncate flex-1",title:y,children:y}),N&&e.jsxs("span",{className:"text-[10px] text-muted-foreground/60 truncate ml-1",title:N,children:["(",N,")"]})]},x)})})]}),l.dependencies&&l.dependencies.length>0&&e.jsxs("div",{children:[e.jsx("div",{className:"text-muted-foreground mb-1",children:e.jsxs("span",{className:"font-medium text-foreground",children:[a({id:"liteTasks.contextPanel.dependencies"}),":"]})}),e.jsx("div",{className:"flex flex-wrap gap-1",children:l.dependencies.map((n,x)=>{const y=typeof n=="string"?{name:n,version:""}:n;return e.jsxs(i,{variant:"outline",className:"text-[10px]",children:[y.name,y.version&&e.jsxs("span",{className:"ml-1 opacity-70",children:["@",y.version]})]},x)})})]}),l.session_id&&e.jsxs("div",{className:"text-muted-foreground",children:[e.jsxs("span",{className:"font-medium text-foreground",children:[a({id:"liteTasks.contextPanel.sessionId"}),":"]})," ",e.jsx("span",{className:"font-mono bg-muted/50 px-1.5 py-0.5 rounded",children:l.session_id})]}),l.metadata&&e.jsxs("div",{children:[e.jsx("div",{className:"text-muted-foreground mb-1",children:e.jsxs("span",{className:"font-medium text-foreground",children:[a({id:"liteTasks.contextPanel.metadata"}),":"]})}),e.jsx("div",{className:"grid grid-cols-2 gap-x-3 gap-y-0.5 pl-2 text-muted-foreground",children:Object.entries(l.metadata).map(([n,x])=>e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsxs("span",{className:"font-mono text-[10px] text-primary/60",children:[n,":"]}),e.jsx("span",{className:"truncate",children:String(x)})]},n))})]})]})}),(l==null?void 0:l.conflict_risks)&&Array.isArray(l.conflict_risks)&&l.conflict_risks.length>0&&e.jsx(G,{icon:e.jsx(Se,{className:"h-4 w-4"}),title:a({id:"liteTasks.contextPanel.conflictRisks"}),children:e.jsx("ul",{className:"space-y-1",children:l.conflict_risks.map((n,x)=>{const y=typeof n=="string"?n:n.description,N=typeof n=="string"?void 0:n.severity;return e.jsxs("li",{className:"flex items-start gap-2 text-xs text-muted-foreground",children:[N&&e.jsx(i,{variant:N==="high"?"destructive":"warning",className:"text-[10px]",children:N}),e.jsx("span",{children:y})]},x)})})}),(l==null?void 0:l.conflict_detection)&&e.jsx(qe,{data:l.conflict_detection}),(l==null?void 0:l.assets)&&e.jsx(Re,{data:l.assets}),((D=s.explorations)==null?void 0:D.data)&&Object.values(s.explorations.data).some(n=>{var x,y,N;return((x=n.project_structure)==null?void 0:x.length)||((y=n.relevant_files)==null?void 0:y.length)||((N=n.patterns)==null?void 0:N.length)})&&e.jsx(He,{data:{manifest:{task_description:((L=s.explorations.manifest)==null?void 0:L.task_description)||"",complexity:(W=s.explorations.manifest)==null?void 0:W.complexity,exploration_count:((O=s.explorations.manifest)==null?void 0:O.exploration_count)||Object.keys(s.explorations.data).length},data:s.explorations.data}}),r&&e.jsx(G,{icon:e.jsx(Pe,{className:"h-4 w-4"}),title:a({id:"liteTasks.contextPanel.focusPaths"}),children:e.jsx("div",{className:"flex flex-wrap gap-1.5",children:o.focus_paths.map((n,x)=>e.jsx(i,{variant:"secondary",className:"text-[10px] font-mono",children:n},x))})}),_&&e.jsx(G,{icon:e.jsx(Ve,{className:"h-4 w-4"}),title:a({id:"liteTasks.contextPanel.summary"}),children:e.jsx("p",{className:"text-xs text-muted-foreground",children:o.summary})}),s.context&&e.jsx(G,{icon:e.jsx(Me,{className:"h-4 w-4"}),title:a({id:"liteTasks.contextPanel.rawJson"}),defaultOpen:!1,children:e.jsx("pre",{className:"text-xs font-mono bg-muted p-3 rounded-lg overflow-x-auto max-h-64 overflow-y-auto whitespace-pre-wrap break-all",children:JSON.stringify(s.context,null,2)})})]}):e.jsxs("div",{className:"flex flex-col items-center justify-center py-8 text-center",children:[e.jsx(K,{className:"h-8 w-8 text-muted-foreground mb-2"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:a({id:"liteTasks.contextPanel.empty"})})]})}function cs(s){if(s)return typeof s=="string"?s:s.en||s.zh}function ds({session:s,onTaskClick:h}){const{formatMessage:a}=Y(),[o,l]=j.useState("tasks"),[u,f]=j.useState(null),[p,M]=j.useState(!1),[r,_]=j.useState(null),k=s.tasks||[],c=k.length;return j.useEffect(()=>{if(o==="context"&&!(u||p)){if(!s.path){_("No session path available");return}M(!0),be(s.path).then(t=>{f(t),_(null)}).catch(t=>{_(t.message||"Failed to load context")}).finally(()=>{M(!1)})}},[o,s.path,u,p]),e.jsxs("div",{className:"mt-2 ml-6 pb-2",children:[e.jsxs("div",{className:"flex flex-wrap gap-2 mb-3",children:[e.jsxs("button",{onClick:t=>{t.stopPropagation(),l("tasks")},className:`flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium border transition-colors ${o==="tasks"?"bg-primary/10 text-primary border-primary/30":"bg-muted/50 text-muted-foreground border-border hover:bg-muted"}`,children:[e.jsx(xe,{className:"h-3.5 w-3.5"}),a({id:"liteTasks.quickCards.tasks"}),e.jsx(i,{variant:"secondary",className:"ml-1 text-[10px] px-1.5 py-0",children:c})]}),e.jsxs("button",{onClick:t=>{t.stopPropagation(),l("context")},className:`flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium border transition-colors ${o==="context"?"bg-primary/10 text-primary border-primary/30":"bg-muted/50 text-muted-foreground border-border hover:bg-muted"}`,children:[e.jsx(K,{className:"h-3.5 w-3.5"}),a({id:"liteTasks.quickCards.context"})]})]}),o==="tasks"&&e.jsx("div",{className:"space-y-2",children:k.map((t,m)=>{var v,U,F,D,L,W,O,n,x,y,N;const g=((U=(v=t.flow_control)==null?void 0:v.target_files)==null?void 0:U.length)||0,A=((D=(F=t.flow_control)==null?void 0:F.implementation_approach)==null?void 0:D.length)||0,H=((W=(L=t.context)==null?void 0:L.acceptance)==null?void 0:W.length)||0,$=((n=(O=t.context)==null?void 0:O.depends_on)==null?void 0:n.length)||0;return e.jsx(Q,{className:"cursor-pointer hover:shadow-sm hover:border-primary/50 transition-all border-border border-l-4 border-l-primary/50",onClick:B=>{B.stopPropagation(),h(t)},children:e.jsxs(Z,{className:"p-3",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[e.jsx(i,{className:"text-xs font-mono shrink-0 bg-primary/10 text-primary border-primary/20",children:t.task_id||`#${m+1}`}),e.jsx("h4",{className:"text-sm font-medium text-foreground line-clamp-1",children:t.title||a({id:"liteTasks.untitled"})})]}),e.jsxs("div",{className:"flex items-center gap-1.5 shrink-0",children:[((x=t.meta)==null?void 0:x.type)&&e.jsx(i,{variant:"info",className:"text-[10px] px-1.5 py-0 whitespace-nowrap",children:t.meta.type}),g>0&&e.jsxs(i,{variant:"secondary",className:"text-[10px] px-1.5 py-0 gap-0.5 whitespace-nowrap",children:[e.jsx(we,{className:"h-2.5 w-2.5"}),g," files"]}),A>0&&e.jsxs(i,{variant:"secondary",className:"text-[10px] px-1.5 py-0 whitespace-nowrap",children:[A," steps"]}),H>0&&e.jsxs(i,{variant:"secondary",className:"text-[10px] px-1.5 py-0 whitespace-nowrap",children:[H," criteria"]}),$>0&&e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("span",{className:"text-[10px] text-muted-foreground",children:"→"}),(N=(y=t.context)==null?void 0:y.depends_on)==null?void 0:N.map((B,J)=>e.jsx(i,{variant:"outline",className:"text-[10px] px-1.5 py-0 font-mono border-primary/30 text-primary whitespace-nowrap",children:B},J))]})]})]}),t.description&&e.jsx("p",{className:"text-xs text-muted-foreground mt-1.5 pl-[calc(1.5rem+0.75rem)] line-clamp-2",children:t.description})]})},t.id||m)})}),o==="context"&&e.jsxs("div",{className:"space-y-3",children:[p&&e.jsxs("div",{className:"flex items-center justify-center py-8 text-muted-foreground",children:[e.jsx(Ce,{className:"h-5 w-5 animate-spin mr-2"}),e.jsx("span",{className:"text-sm",children:a({id:"liteTasks.contextPanel.loading"})})]}),r&&!p&&e.jsxs("div",{className:"flex items-center gap-2 p-3 rounded-lg bg-destructive/10 border border-destructive/30 text-destructive text-sm",children:[e.jsx(pe,{className:"h-4 w-4 flex-shrink-0"}),a({id:"liteTasks.contextPanel.error"}),": ",r]}),!p&&!r&&u&&e.jsx(_e,{contextData:u,session:s}),!p&&!r&&!u&&!s.path&&e.jsxs("div",{className:"flex flex-col items-center justify-center py-8 text-center",children:[e.jsx(K,{className:"h-8 w-8 text-muted-foreground mb-2"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:a({id:"liteTasks.contextPanel.empty"})})]})]})]})}function os({round:s,isLast:h}){const{formatMessage:a}=Y(),[o,l]=j.useState(h),u=s.solutions||[],f=s.convergence,p=s.cross_verification,M=s.clarification_questions||[],r=s.cli_executions||{},_=c=>c<1e3?`${c}ms`:`${(c/1e3).toFixed(1)}s`,k=c=>{switch(c){case"converged":return"success";case"continue":return"warning";case"user_input_needed":return"destructive";default:return"secondary"}};return e.jsx(Q,{className:"border-border",children:e.jsxs(Z,{className:"p-4",children:[e.jsxs("div",{className:"flex items-center justify-between cursor-pointer",onClick:()=>l(!o),children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"flex items-center justify-center w-8 h-8 rounded-full bg-primary/10 text-primary font-semibold text-sm",children:s.round}),e.jsxs("div",{children:[e.jsxs("h4",{className:"font-medium text-foreground flex items-center gap-2",children:[a({id:"liteTasks.multiCli.round"})," ",s.round,f&&e.jsxs(i,{variant:k(f.recommendation),className:"text-[10px]",children:[f.recommendation==="converged"&&e.jsx(Ze,{className:"h-3 w-3 mr-1"}),f.recommendation==="converged"&&a({id:"liteTasks.multiCli.converged"}),f.recommendation==="continue"&&a({id:"liteTasks.multiCli.continuing"}),f.recommendation==="user_input_needed"&&a({id:"liteTasks.multiCli.needsInput"})]})]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:s.timestamp?new Date(s.timestamp).toLocaleString():""})]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"flex items-center gap-1",children:Object.entries(r).map(([c,t])=>e.jsx(i,{variant:t.status==="success"?"success":"destructive",className:"text-[10px] px-1.5 py-0",children:c},c))}),o?e.jsx(te,{className:"h-4 w-4 text-muted-foreground"}):e.jsx(ae,{className:"h-4 w-4 text-muted-foreground"})]})]}),o&&e.jsxs("div",{className:"mt-4 space-y-4",children:[s.user_feedback_incorporated&&e.jsxs("div",{className:"p-3 bg-primary/5 border border-primary/20 rounded-lg",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm font-medium text-primary mb-1",children:[e.jsx(ke,{className:"h-4 w-4"}),a({id:"liteTasks.multiCli.userFeedback"})]}),e.jsx("p",{className:"text-sm text-foreground",children:s.user_feedback_incorporated})]}),Object.keys(r).length>0&&e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm font-medium text-muted-foreground",children:[e.jsx(Ue,{className:"h-4 w-4"}),a({id:"liteTasks.multiCli.cliExecutions"})]}),e.jsx("div",{className:"grid grid-cols-2 gap-2",children:Object.entries(r).map(([c,t])=>e.jsxs("div",{className:"flex items-center justify-between p-2 bg-muted/50 rounded-md text-xs",children:[e.jsx("span",{className:"font-medium",children:c}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-muted-foreground",children:t.model}),e.jsxs(i,{variant:t.status==="success"?"success":"destructive",className:"text-[10px] px-1 py-0",children:[e.jsx(Fe,{className:"h-3 w-3 mr-1"}),_(t.duration_ms)]})]})]},c))})]}),u.length>0&&e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm font-medium text-muted-foreground",children:[e.jsx(Te,{className:"h-4 w-4"}),a({id:"liteTasks.multiCli.solutions"})," (",u.length,")"]}),e.jsx("div",{className:"space-y-3",children:u.map((c,t)=>e.jsxs("div",{className:"p-3 bg-muted/30 rounded-lg border border-border/50",children:[e.jsxs("div",{className:"flex items-start justify-between mb-2",children:[e.jsx("h5",{className:"font-medium text-foreground text-sm",children:c.name}),e.jsx("div",{className:"flex items-center gap-1",children:c.source_cli.map(m=>e.jsx(i,{variant:"outline",className:"text-[10px] px-1.5 py-0",children:m},m))})]}),e.jsx("p",{className:"text-xs text-muted-foreground mb-2",children:c.summary}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-xs",children:[e.jsxs(i,{variant:"success",className:"text-[10px]",children:[Math.round(c.feasibility*100),"% ",a({id:"liteTasks.multiCli.feasible"})]}),e.jsx(i,{variant:"warning",className:"text-[10px]",children:c.effort}),e.jsxs(i,{variant:c.risk==="high"?"destructive":c.risk==="low"?"success":"warning",className:"text-[10px]",children:[c.risk," ",a({id:"liteTasks.multiCli.risk"})]})]}),e.jsxs("div",{className:"mt-2 grid grid-cols-2 gap-2",children:[c.pros.length>0&&e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center gap-1 text-xs text-success",children:[e.jsx(ls,{className:"h-3 w-3"}),a({id:"liteTasks.multiCli.pros"})]}),e.jsx("ul",{className:"text-[10px] text-muted-foreground space-y-0.5",children:c.pros.slice(0,3).map((m,g)=>e.jsxs("li",{className:"truncate",children:["• ",m]},g))})]}),c.cons.length>0&&e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center gap-1 text-xs text-destructive",children:[e.jsx(is,{className:"h-3 w-3"}),a({id:"liteTasks.multiCli.cons"})]}),e.jsx("ul",{className:"text-[10px] text-muted-foreground space-y-0.5",children:c.cons.slice(0,3).map((m,g)=>e.jsxs("li",{className:"truncate",children:["• ",m]},g))})]})]})]},t))})]}),f&&e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm font-medium text-muted-foreground",children:[e.jsx(We,{className:"h-4 w-4"}),a({id:"liteTasks.multiCli.convergence"})]}),e.jsxs("div",{className:"p-3 bg-muted/30 rounded-lg",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx("div",{className:"flex-1 h-2 bg-muted rounded-full overflow-hidden",children:e.jsx("div",{className:`h-full rounded-full ${f.score>=.9?"bg-success":f.score>=.7?"bg-warning":"bg-destructive"}`,style:{width:`${f.score*100}%`}})}),e.jsxs("span",{className:"text-xs font-medium",children:[Math.round(f.score*100),"%"]})]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:f.rationale})]})]}),p&&(p.agreements.length>0||p.disagreements.length>0)&&e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm font-medium text-muted-foreground",children:[e.jsx(Ke,{className:"h-4 w-4"}),a({id:"liteTasks.multiCli.crossVerification"})]}),e.jsxs("div",{className:"space-y-2",children:[p.agreements.length>0&&e.jsxs("div",{className:"p-3 bg-success/10 border border-success/20 rounded-lg",children:[e.jsxs("div",{className:"flex items-center gap-2 text-xs font-medium text-success mb-2",children:[e.jsx(ne,{className:"h-3 w-3"}),a({id:"liteTasks.multiCli.agreements"})," (",p.agreements.length,")"]}),e.jsx("ul",{className:"text-[10px] text-muted-foreground space-y-1",children:p.agreements.slice(0,5).map((c,t)=>e.jsxs("li",{className:"flex items-start gap-1",children:[e.jsx(ne,{className:"h-3 w-3 text-success shrink-0 mt-0.5"}),e.jsx("span",{children:c})]},t))})]}),p.disagreements.length>0&&e.jsxs("div",{className:"p-3 bg-warning/10 border border-warning/20 rounded-lg",children:[e.jsxs("div",{className:"flex items-center gap-2 text-xs font-medium text-warning mb-2",children:[e.jsx(re,{className:"h-3 w-3"}),a({id:"liteTasks.multiCli.disagreements"})," (",p.disagreements.length,")"]}),e.jsx("div",{className:"space-y-2",children:p.disagreements.map((c,t)=>e.jsxs("div",{className:"text-[10px]",children:[e.jsx("div",{className:"font-medium text-foreground mb-1",children:c.topic}),e.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(i,{variant:"outline",className:"text-[9px] px-1 py-0",children:"gemini"}),e.jsx("span",{className:"text-muted-foreground truncate",children:c.gemini})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(i,{variant:"outline",className:"text-[9px] px-1 py-0",children:"codex"}),e.jsx("span",{className:"text-muted-foreground truncate",children:c.codex})]})]})]},t))})]}),p.resolution&&e.jsxs("div",{className:"text-xs text-muted-foreground italic",children:[a({id:"liteTasks.multiCli.resolution"}),": ",p.resolution]})]})]}),M.length>0&&e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm font-medium text-muted-foreground",children:[e.jsx(ye,{className:"h-4 w-4"}),a({id:"liteTasks.multiCli.clarificationQuestions"})," (",M.length,")"]}),e.jsx("ul",{className:"space-y-1",children:M.map((c,t)=>e.jsxs("li",{className:"flex items-start gap-2 text-xs text-muted-foreground",children:[e.jsx(ye,{className:"h-3 w-3 shrink-0 mt-0.5 text-info"}),e.jsx("span",{children:c})]},t))})]})]})]})})}function ms({data:s}){var p,M,r,_,k,c;const{formatMessage:h}=Y(),[a,o]=j.useState(new Set(["solution","plan"])),l=t=>{o(m=>{const g=new Set(m);return g.has(t)?g.delete(t):g.add(t),g})},u=t=>a.has(t),f=({id:t,icon:m,title:g,badge:A,children:H,defaultExpanded:$=!0})=>(j.useEffect(()=>{$&&!a.has(t)&&o(v=>new Set(v).add(t))},[t,$]),e.jsxs(Q,{className:"border-border",children:[e.jsxs("button",{type:"button",className:"w-full flex items-center gap-2 p-3 text-left hover:bg-muted/50 transition-colors",onClick:()=>l(t),children:[e.jsx("span",{className:"text-muted-foreground",children:m}),e.jsx("span",{className:"text-sm font-medium text-foreground flex-1",children:g}),A,u(t)?e.jsx(te,{className:"h-4 w-4 text-muted-foreground"}):e.jsx(ae,{className:"h-4 w-4 text-muted-foreground"})]}),u(t)&&e.jsx(Z,{className:"px-3 pb-3 pt-0",children:H})]}));return e.jsxs("div",{className:"space-y-3",children:[s.solution&&e.jsx(f,{id:"solution",icon:e.jsx(Te,{className:"h-4 w-4"}),title:h({id:"liteTasks.multiCli.context.solution"}),badge:e.jsx("div",{className:"flex items-center gap-1",children:s.solution.source_cli.map(t=>e.jsx(i,{variant:"outline",className:"text-[10px] px-1.5 py-0",children:t},t))}),children:e.jsxs("div",{className:"space-y-2",children:[e.jsx("h4",{className:"font-medium text-foreground text-sm",children:s.solution.name}),e.jsx("p",{className:"text-xs text-muted-foreground",children:s.solution.summary}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsxs(i,{variant:"success",className:"text-[10px]",children:[Math.round(s.solution.feasibility*100),"% ",h({id:"liteTasks.multiCli.feasible"})]}),e.jsx(i,{variant:"warning",className:"text-[10px]",children:s.solution.effort}),e.jsxs(i,{variant:s.solution.risk==="high"?"destructive":s.solution.risk==="low"?"success":"warning",className:"text-[10px]",children:[s.solution.risk," ",h({id:"liteTasks.multiCli.risk"})]})]})]})}),s.implementation_plan&&e.jsx(f,{id:"plan",icon:e.jsx(ss,{className:"h-4 w-4"}),title:h({id:"liteTasks.multiCli.context.implementationPlan"}),badge:e.jsxs(i,{variant:"secondary",className:"text-[10px]",children:[((p=s.implementation_plan.tasks)==null?void 0:p.length)||0," tasks"]}),children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"text-xs text-muted-foreground",children:[e.jsxs("span",{className:"font-medium text-foreground",children:[h({id:"liteTasks.multiCli.context.approach"}),":"]})," ",s.implementation_plan.approach]}),s.implementation_plan.execution_flow&&e.jsx("div",{className:"p-2 bg-muted/50 rounded-md",children:e.jsx("code",{className:"text-xs font-mono text-foreground",children:s.implementation_plan.execution_flow})}),s.implementation_plan.tasks&&s.implementation_plan.tasks.length>0&&e.jsxs("div",{className:"space-y-2",children:[e.jsx("div",{className:"text-xs font-medium text-foreground",children:h({id:"liteTasks.multiCli.context.tasks"})}),e.jsx("div",{className:"space-y-1.5",children:s.implementation_plan.tasks.map((t,m)=>e.jsxs("div",{className:"flex items-start gap-2 p-2 bg-muted/30 rounded-md",children:[e.jsx(i,{variant:"outline",className:"text-[10px] font-mono shrink-0",children:t.id}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("div",{className:"text-xs font-medium text-foreground",children:t.name}),t.key_point&&e.jsx("div",{className:"text-[10px] text-muted-foreground mt-0.5",children:t.key_point}),t.files&&t.files.length>0&&e.jsx("div",{className:"flex flex-wrap gap-1 mt-1",children:t.files.map((g,A)=>e.jsxs(i,{variant:"secondary",className:"text-[9px] font-mono",children:[g.action==="create"?"+":g.action==="delete"?"-":"~"," ",g.file]},A))})]})]},t.id||m))})]}),s.implementation_plan.milestones&&s.implementation_plan.milestones.length>0&&e.jsxs("div",{className:"space-y-1.5",children:[e.jsxs("div",{className:"flex items-center gap-2 text-xs font-medium text-foreground",children:[e.jsx(Ge,{className:"h-3 w-3"}),h({id:"liteTasks.multiCli.context.milestones"})]}),e.jsx("div",{className:"flex flex-wrap gap-1.5",children:s.implementation_plan.milestones.map((t,m)=>e.jsx(i,{variant:"info",className:"text-[10px]",children:t},m))})]})]})}),s.dependencies&&(((M=s.dependencies.internal)==null?void 0:M.length)>0||((r=s.dependencies.external)==null?void 0:r.length)>0)&&e.jsx(f,{id:"deps",icon:e.jsx(Qe,{className:"h-4 w-4"}),title:h({id:"liteTasks.multiCli.context.dependencies"}),badge:e.jsx(i,{variant:"secondary",className:"text-[10px]",children:(((_=s.dependencies.internal)==null?void 0:_.length)||0)+(((k=s.dependencies.external)==null?void 0:k.length)||0)}),children:e.jsxs("div",{className:"space-y-2",children:[s.dependencies.internal&&s.dependencies.internal.length>0&&e.jsxs("div",{children:[e.jsx("div",{className:"text-xs font-medium text-foreground mb-1",children:h({id:"liteTasks.multiCli.context.internal"})}),e.jsx("div",{className:"flex flex-wrap gap-1",children:s.dependencies.internal.map((t,m)=>e.jsx(i,{variant:"outline",className:"text-[10px] font-mono",children:t},m))})]}),s.dependencies.external&&s.dependencies.external.length>0&&e.jsxs("div",{children:[e.jsx("div",{className:"text-xs font-medium text-foreground mb-1",children:h({id:"liteTasks.multiCli.context.external"})}),e.jsx("div",{className:"flex flex-wrap gap-1",children:s.dependencies.external.map((t,m)=>e.jsx(i,{variant:"secondary",className:"text-[10px] font-mono",children:t},m))})]})]})}),s.consensus&&((c=s.consensus.agreements)==null?void 0:c.length)>0&&e.jsx(f,{id:"consensus",icon:e.jsx(as,{className:"h-4 w-4"}),title:h({id:"liteTasks.multiCli.context.consensus"}),badge:e.jsx(i,{variant:"success",className:"text-[10px]",children:s.consensus.agreements.length}),children:e.jsxs("div",{className:"space-y-2",children:[e.jsx("ul",{className:"space-y-1",children:s.consensus.agreements.map((t,m)=>e.jsxs("li",{className:"flex items-start gap-2 text-xs text-muted-foreground",children:[e.jsx(ne,{className:"h-3 w-3 text-success shrink-0 mt-0.5"}),e.jsx("span",{children:t})]},m))}),s.consensus.resolved_conflicts&&e.jsxs("div",{className:"mt-2 p-2 bg-success/10 border border-success/20 rounded-md text-xs text-muted-foreground",children:[e.jsxs("span",{className:"font-medium text-success",children:[h({id:"liteTasks.multiCli.context.resolvedConflicts"}),":"]})," ",s.consensus.resolved_conflicts]})]})}),s.technical_concerns&&s.technical_concerns.length>0&&e.jsx(f,{id:"concerns",icon:e.jsx(Ye,{className:"h-4 w-4"}),title:h({id:"liteTasks.multiCli.context.technicalConcerns"}),badge:e.jsx(i,{variant:"warning",className:"text-[10px]",children:s.technical_concerns.length}),children:e.jsx("ul",{className:"space-y-1",children:s.technical_concerns.map((t,m)=>e.jsxs("li",{className:"flex items-start gap-2 text-xs text-muted-foreground",children:[e.jsx(re,{className:"h-3 w-3 text-warning shrink-0 mt-0.5"}),e.jsx("span",{children:t})]},m))})}),s.constraints&&s.constraints.length>0&&e.jsx(f,{id:"constraints",icon:e.jsx(ts,{className:"h-4 w-4"}),title:h({id:"liteTasks.multiCli.context.constraints"}),badge:e.jsx(i,{variant:"secondary",className:"text-[10px]",children:s.constraints.length}),children:e.jsx("div",{className:"flex flex-wrap gap-1.5",children:s.constraints.map((t,m)=>e.jsx(i,{variant:"outline",className:"text-[10px]",children:t},m))})}),(s.task_description||s.session_id)&&e.jsx(f,{id:"info",icon:e.jsx(K,{className:"h-4 w-4"}),title:h({id:"liteTasks.multiCli.context.sessionInfo"}),defaultExpanded:!1,children:e.jsxs("div",{className:"space-y-2 text-xs",children:[s.task_description&&e.jsxs("div",{className:"text-muted-foreground",children:[e.jsxs("span",{className:"font-medium text-foreground",children:[h({id:"liteTasks.contextPanel.taskDescription"}),":"]})," ",s.task_description]}),s.session_id&&e.jsxs("div",{className:"text-muted-foreground",children:[e.jsxs("span",{className:"font-medium text-foreground",children:[h({id:"liteTasks.contextPanel.sessionId"}),":"]})," ",e.jsx("span",{className:"font-mono bg-muted/50 px-1.5 py-0.5 rounded",children:s.session_id})]})]})})]})}function xs({session:s,onTaskClick:h}){var W,O;const{formatMessage:a}=Y(),[o,l]=j.useState("tasks"),[u,f]=j.useState(null),[p,M]=j.useState(!1),[r,_]=j.useState(null),k=s.tasks||[],c=k.length,t=s.latestSynthesis||{},m=s.plan||{},g=s.roundCount||((W=s.metadata)==null?void 0:W.roundId)||1,A=n=>n?typeof n=="string"?n:n.en||n.zh||"":"",H=()=>{if(k.length===0)return"";const n=new Set;k.forEach(b=>{var V;const q=b.task_id||b.id;n.add(q),(V=b.context)!=null&&V.depends_on});const x=k.filter(b=>{var V;const q=((V=b.context)==null?void 0:V.depends_on)||[];return q.length===0||q.every(d=>!n.has(d))}).map(b=>b.task_id||b.id),y=x.length>1?`(${x.join(" | ")})`:x[0]||"",N=new Set(x),B=[y];let J=0;for(;N.size<k.length&&J<20;){J++;const b=[];if(k.forEach(q=>{var w;const V=q.task_id||q.id;if(N.has(V))return;(((w=q.context)==null?void 0:w.depends_on)||[]).every(R=>N.has(R)||!n.has(R))&&b.push(V)}),b.length===0)break;b.forEach(q=>N.add(q)),b.length>1?B.push(`(${b.join(" | ")})`):B.push(b[0])}return B.filter(Boolean).join(" → ")};j.useEffect(()=>{if(o==="context"&&!(u||p)){if(!s.path){_("No session path available");return}M(!0),be(s.path).then(n=>{f(n),_(null)}).catch(n=>{_(n.message||"Failed to load context")}).finally(()=>{M(!1)})}},[o,s.path,u,p]);const $=H(),v=A(m.goal)||A(t.title)||"",U=A(m.solution)||"",F=m.feasibility||0,D=m.effort||"",L=m.risk||"";return e.jsxs("div",{className:"mt-2 ml-6 pb-2",children:[e.jsxs("div",{className:"flex items-center gap-4 text-xs text-muted-foreground mb-3 pb-2 border-b border-border/50",children:[s.createdAt&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(le,{className:"h-3.5 w-3.5"}),a({id:"liteTasks.createdAt"}),": ",new Date(s.createdAt).toLocaleDateString()]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(xe,{className:"h-3.5 w-3.5"}),a({id:"liteTasks.quickCards.tasks"}),": ",c," ",a({id:"liteTasks.tasksCount"})]})]}),e.jsxs("div",{className:"flex flex-wrap gap-2 mb-3",children:[e.jsxs("button",{onClick:n=>{n.stopPropagation(),l("tasks")},className:`flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium border transition-colors ${o==="tasks"?"bg-primary/10 text-primary border-primary/30":"bg-muted/50 text-muted-foreground border-border hover:bg-muted"}`,children:[e.jsx(xe,{className:"h-3.5 w-3.5"}),a({id:"liteTasks.quickCards.tasks"}),e.jsx(i,{variant:"secondary",className:"ml-1 text-[10px] px-1.5 py-0",children:c})]}),e.jsxs("button",{onClick:n=>{n.stopPropagation(),l("discussion")},className:`flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium border transition-colors ${o==="discussion"?"bg-primary/10 text-primary border-primary/30":"bg-muted/50 text-muted-foreground border-border hover:bg-muted"}`,children:[e.jsx(ce,{className:"h-3.5 w-3.5"}),a({id:"liteTasks.multiCli.discussion"}),e.jsx(i,{variant:"secondary",className:"ml-1 text-[10px] px-1.5 py-0",children:g})]}),e.jsxs("button",{onClick:n=>{n.stopPropagation(),l("context")},className:`flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium border transition-colors ${o==="context"?"bg-primary/10 text-primary border-primary/30":"bg-muted/50 text-muted-foreground border-border hover:bg-muted"}`,children:[e.jsx(K,{className:"h-3.5 w-3.5"}),a({id:"liteTasks.quickCards.context"})]})]}),o==="tasks"&&e.jsxs("div",{className:"space-y-3",children:[(v||U||$)&&e.jsx(Q,{className:"border-border bg-muted/30",children:e.jsxs(Z,{className:"p-3 space-y-2",children:[v&&e.jsxs("div",{className:"text-sm",children:[e.jsxs("span",{className:"text-muted-foreground",children:[a({id:"liteTasks.multiCli.goal"}),":"]}),e.jsx("span",{className:"ml-2 text-foreground",children:v})]}),U&&e.jsxs("div",{className:"text-sm",children:[e.jsxs("span",{className:"text-muted-foreground",children:[a({id:"liteTasks.multiCli.solution"}),":"]}),e.jsx("span",{className:"ml-2 text-foreground",children:U})]}),$&&e.jsxs("div",{className:"text-sm",children:[e.jsxs("span",{className:"text-muted-foreground",children:[a({id:"liteTasks.multiCli.implementation"}),":"]}),e.jsx("code",{className:"ml-2 px-2 py-0.5 rounded bg-background border border-border text-xs font-mono",children:$})]}),(F>0||D||L)&&e.jsxs("div",{className:"flex items-center gap-2 pt-1",children:[F>0&&e.jsxs(i,{variant:"success",className:"text-[10px]",children:[F,"%"]}),D&&e.jsx(i,{variant:"warning",className:"text-[10px]",children:D}),L&&e.jsxs(i,{variant:L==="high"?"destructive":L==="medium"?"warning":"success",className:"text-[10px]",children:[L," ",a({id:"liteTasks.multiCli.risk"})]})]})]})}),k.map((n,x)=>{var b,q,V,d,w,R,C,P,T,E,I;const y=((q=(b=n.flow_control)==null?void 0:b.target_files)==null?void 0:q.length)||0,N=((d=(V=n.flow_control)==null?void 0:V.implementation_approach)==null?void 0:d.length)||0,B=((R=(w=n.context)==null?void 0:w.acceptance)==null?void 0:R.length)||0,J=((P=(C=n.context)==null?void 0:C.depends_on)==null?void 0:P.length)||0;return e.jsx(Q,{className:"cursor-pointer hover:shadow-sm hover:border-primary/50 transition-all border-border border-l-4 border-l-primary/50",onClick:S=>{S.stopPropagation(),h(n)},children:e.jsx(Z,{className:"p-3",children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[e.jsx(i,{className:"text-xs font-mono shrink-0 bg-primary/10 text-primary border-primary/20",children:n.task_id||`T${x+1}`}),e.jsx("h4",{className:"text-sm font-medium text-foreground line-clamp-1",children:n.title||a({id:"liteTasks.untitled"})})]}),e.jsxs("div",{className:"flex items-center gap-1.5 shrink-0",children:[((T=n.meta)==null?void 0:T.type)&&e.jsx(i,{variant:"info",className:"text-[10px] px-1.5 py-0 whitespace-nowrap",children:n.meta.type}),y>0&&e.jsxs(i,{variant:"secondary",className:"text-[10px] px-1.5 py-0 gap-0.5 whitespace-nowrap",children:[e.jsx(we,{className:"h-2.5 w-2.5"}),y," files"]}),N>0&&e.jsxs(i,{variant:"secondary",className:"text-[10px] px-1.5 py-0 whitespace-nowrap",children:[N," steps"]}),B>0&&e.jsxs(i,{variant:"secondary",className:"text-[10px] px-1.5 py-0 whitespace-nowrap",children:[B," criteria"]}),J>0&&e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("span",{className:"text-[10px] text-muted-foreground",children:"→"}),(I=(E=n.context)==null?void 0:E.depends_on)==null?void 0:I.map((S,ee)=>e.jsx(i,{variant:"outline",className:"text-[10px] px-1.5 py-0 font-mono border-primary/30 text-primary whitespace-nowrap",children:S},ee))]})]})]})})},n.id||x)})]}),o==="discussion"&&e.jsx("div",{className:"space-y-3",children:s.rounds&&s.rounds.length>0?s.rounds.map((n,x)=>e.jsx(os,{round:n,isLast:x===s.rounds.length-1},n.round||x)):e.jsx(Q,{className:"border-border",children:e.jsxs(Z,{className:"p-4",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[e.jsx(ce,{className:"h-5 w-5 text-primary"}),e.jsx("h4",{className:"font-medium text-foreground",children:a({id:"liteTasks.multiCli.discussionRounds"})}),e.jsxs(i,{variant:"secondary",className:"text-xs",children:[g," ",a({id:"liteTasks.rounds"})]})]}),e.jsx("p",{className:"text-sm text-muted-foreground",children:a({id:"liteTasks.multiCli.discussionDescription"})}),v&&e.jsx("div",{className:"mt-3 p-3 bg-muted/50 rounded-lg",children:e.jsx("p",{className:"text-sm text-foreground",children:v})})]})})}),o==="context"&&e.jsxs("div",{className:"space-y-3",children:[p&&e.jsxs("div",{className:"flex items-center justify-center py-8 text-muted-foreground",children:[e.jsx(Ce,{className:"h-5 w-5 animate-spin mr-2"}),e.jsx("span",{className:"text-sm",children:a({id:"liteTasks.contextPanel.loading"})})]}),r&&!p&&e.jsxs("div",{className:"flex items-center gap-2 p-3 rounded-lg bg-destructive/10 border border-destructive/30 text-destructive text-sm",children:[e.jsx(pe,{className:"h-4 w-4 flex-shrink-0"}),a({id:"liteTasks.contextPanel.error"}),": ",r]}),!p&&!r&&u&&((O=u.context)!=null&&O.solution?e.jsx(ms,{data:u.context}):e.jsx(_e,{contextData:u,session:s})),!p&&!r&&!u&&!s.path&&e.jsxs("div",{className:"flex flex-col items-center justify-center py-8 text-center",children:[e.jsx(K,{className:"h-8 w-8 text-muted-foreground mb-2"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:a({id:"liteTasks.contextPanel.empty"})})]})]})]})}function Ms(){const s=Ae(),{subType:h,id:a}=Le(),{litePlan:o,liteFix:l,multiCliPlan:u,isLoading:f,error:p,refetch:M}=Ee(),{formatMessage:r}=Y(),[_,k]=j.useState("lite-plan"),[c,t]=j.useState(null),[m,g]=j.useState(null),A=j.useRef(!1),[H,$]=j.useState(""),[v,U]=j.useState("date"),[F,D]=j.useState("desc"),L=he(Ie),W=he(d=>d.toggleImmersiveMode),O=j.useCallback(d=>{let w=d;if(H.trim()){const C=H.toLowerCase();w=d.filter(P=>{var T;return P.id.toLowerCase().includes(C)||((T=P.tasks)==null?void 0:T.some(E=>{var I,S;return((I=E.title)==null?void 0:I.toLowerCase().includes(C))||((S=E.task_id)==null?void 0:S.toLowerCase().includes(C))}))})}return[...w].sort((C,P)=>{var E,I;let T=0;switch(v){case"date":T=new Date(C.createdAt||0).getTime()-new Date(P.createdAt||0).getTime();break;case"name":T=C.id.localeCompare(P.id);break;case"tasks":T=(((E=C.tasks)==null?void 0:E.length)||0)-(((I=P.tasks)==null?void 0:I.length)||0);break}return F==="asc"?T:-T})},[H,v,F]),n=j.useMemo(()=>O(o),[o,O]),x=j.useMemo(()=>O(l),[l,O]),y=j.useMemo(()=>O(u),[u,O]);j.useEffect(()=>{var R;if(!a||A.current||f)return;const w=[...o,...l,...u].find(C=>C.id===a);if(w){A.current=!0,h==="lite-plan"?k("lite-plan"):h==="lite-fix"?k("lite-fix"):h==="multi-cli-plan"&&k("multi-cli-plan"),t(a);const C=(R=w.tasks)==null?void 0:R.find(P=>P.task_id===a||P.id===a);C&&g(C)}},[a,h,f,o,l,u]);const N=d=>{v===d?D(w=>w==="asc"?"desc":"asc"):(U(d),D("desc"))},B=()=>{s("/sessions")},J=d=>({decided:"success",converged:"success",plan_generated:"success",completed:"success",exploring:"info",initialized:"info",analyzing:"warning",debating:"warning",blocked:"destructive",conflict:"destructive"})[d||""]||"secondary",b=d=>{var I;const w=d.type==="lite-plan",R=((I=d.tasks)==null?void 0:I.length)||0,C=c===d.id,P=d.tasks||[],T={completed:P.filter(S=>S.status==="completed").length,inProgress:P.filter(S=>S.status==="in_progress").length,blocked:P.filter(S=>S.status==="blocked").length},E=P[0];return e.jsxs("div",{children:[e.jsx(Q,{className:"cursor-pointer hover:shadow-md transition-shadow",onClick:()=>t(C?null:d.id),children:e.jsxs(Z,{className:"p-4",children:[e.jsxs("div",{className:"flex items-center justify-between mb-3",children:[e.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[e.jsx("div",{className:"flex-shrink-0",children:C?e.jsx(te,{className:"h-5 w-5 text-muted-foreground"}):e.jsx(ae,{className:"h-5 w-5 text-muted-foreground"})}),e.jsx("div",{className:"flex-1 min-w-0",children:e.jsx("h3",{className:"font-bold text-foreground text-sm tracking-wide uppercase",children:d.id})})]}),e.jsxs(i,{variant:w?"secondary":"warning",className:"gap-1 flex-shrink-0",children:[w?e.jsx(ge,{className:"h-3 w-3"}):e.jsx(je,{className:"h-3 w-3"}),r({id:w?"liteTasks.type.plan":"liteTasks.type.fix"})]})]}),(E==null?void 0:E.title)&&e.jsx("div",{className:"mb-3 pb-3 border-b border-border/50",children:e.jsx("p",{className:"text-sm text-foreground line-clamp-1",children:E.title})}),e.jsxs("div",{className:"flex items-center flex-wrap gap-2 mb-3",children:[T.completed>0&&e.jsxs(i,{variant:"success",className:"gap-1 text-xs",children:[e.jsx(ne,{className:"h-3 w-3"}),T.completed," ",r({id:"liteTasks.status.completed"})]}),T.inProgress>0&&e.jsxs(i,{variant:"warning",className:"gap-1 text-xs",children:[e.jsx(Ne,{className:"h-3 w-3"}),T.inProgress," ",r({id:"liteTasks.status.inProgress"})]}),T.blocked>0&&e.jsxs(i,{variant:"destructive",className:"gap-1 text-xs",children:[e.jsx(re,{className:"h-3 w-3"}),T.blocked," ",r({id:"liteTasks.status.blocked"})]})]}),e.jsxs("div",{className:"flex items-center gap-4 text-xs text-muted-foreground",children:[d.createdAt&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(le,{className:"h-3.5 w-3.5"}),new Date(d.createdAt).toLocaleDateString()]}),R>0&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(ve,{className:"h-3.5 w-3.5"}),R," ",r({id:"liteTasks.tasksCount"})]})]})]})}),C&&d.tasks&&d.tasks.length>0&&e.jsx(ds,{session:d,onTaskClick:g})]},d.id)},q=d=>{const w=d.metadata||{},R=d.latestSynthesis||{},C=w.roundId||d.roundCount||1,P=cs(R.title)||r({id:"liteTasks.discussionTopic"}),T=R.status||d.status||"analyzing",E=w.timestamp||d.createdAt||"",I=d.tasks||[],S={completed:I.filter(se=>se.status==="completed").length,inProgress:I.filter(se=>se.status==="in_progress").length,blocked:I.filter(se=>se.status==="blocked").length,total:I.length},ee=c===d.id;return e.jsxs("div",{children:[e.jsx(Q,{className:"cursor-pointer hover:shadow-md transition-shadow",onClick:()=>t(ee?null:d.id),children:e.jsxs(Z,{className:"p-4",children:[e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[e.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[e.jsx("div",{className:"flex-shrink-0",children:ee?e.jsx(te,{className:"h-5 w-5 text-muted-foreground"}):e.jsx(ae,{className:"h-5 w-5 text-muted-foreground"})}),e.jsx("div",{className:"flex-1 min-w-0",children:e.jsx("h3",{className:"font-bold text-foreground text-sm tracking-wide uppercase",children:d.id})})]}),e.jsxs(i,{variant:"secondary",className:"gap-1 flex-shrink-0",children:[e.jsx(ce,{className:"h-3 w-3"}),r({id:"liteTasks.type.multiCli"})]})]}),e.jsxs("div",{className:"flex items-center gap-1 text-xs text-muted-foreground mb-3",children:[e.jsx(ke,{className:"h-4 w-4"}),e.jsx("span",{className:"line-clamp-1",children:P})]}),S.total>0&&e.jsxs("div",{className:"flex items-center flex-wrap gap-2 mb-3",children:[S.completed>0&&e.jsxs(i,{variant:"success",className:"gap-1 text-xs",children:[e.jsx(ne,{className:"h-3 w-3"}),S.completed," ",r({id:"liteTasks.status.completed"})]}),S.inProgress>0&&e.jsxs(i,{variant:"warning",className:"gap-1 text-xs",children:[e.jsx(Ne,{className:"h-3 w-3"}),S.inProgress," ",r({id:"liteTasks.status.inProgress"})]}),S.blocked>0&&e.jsxs(i,{variant:"destructive",className:"gap-1 text-xs",children:[e.jsx(re,{className:"h-3 w-3"}),S.blocked," ",r({id:"liteTasks.status.blocked"})]})]}),e.jsxs("div",{className:"flex items-center gap-3 text-xs text-muted-foreground",children:[E&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(le,{className:"h-3.5 w-3.5"}),new Date(E).toLocaleDateString()]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(es,{className:"h-3.5 w-3.5"}),C," ",r({id:"liteTasks.rounds"})]}),e.jsxs(i,{variant:J(T),className:"gap-1",children:[e.jsx(ze,{className:"h-3 w-3"}),T]})]})]})}),ee&&e.jsx(xs,{session:d,onTaskClick:g})]},d.id)};if(f)return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsxs(X,{variant:"ghost",size:"sm",disabled:!0,children:[e.jsx(ue,{className:"h-4 w-4 mr-2"}),r({id:"common.actions.back"})]}),e.jsx("div",{className:"h-8 w-64 rounded bg-muted animate-pulse"})]}),e.jsx("div",{className:"h-64 rounded-lg bg-muted animate-pulse"})]});if(p)return e.jsxs("div",{className:"flex items-center gap-2 p-4 rounded-lg bg-destructive/10 border border-destructive/30 text-destructive",children:[e.jsx(pe,{className:"h-5 w-5 flex-shrink-0"}),e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"text-sm font-medium",children:r({id:"common.errors.loadFailed"})}),e.jsx("p",{className:"text-xs mt-0.5",children:p.message})]}),e.jsx(X,{variant:"outline",size:"sm",onClick:()=>M(),children:r({id:"common.actions.retry"})})]});const V=o.length+l.length+u.length;return e.jsxs("div",{className:fe("space-y-6",L&&"h-screen overflow-hidden"),children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsxs(X,{variant:"ghost",size:"sm",onClick:B,children:[e.jsx(ue,{className:"h-4 w-4 mr-2"}),r({id:"common.actions.back"})]}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-semibold text-foreground",children:r({id:"liteTasks.title"})}),e.jsx("p",{className:"text-sm text-muted-foreground",children:r({id:"liteTasks.subtitle"},{count:V})})]})]}),e.jsx("button",{onClick:W,className:fe("p-2 rounded-md transition-colors",L?"bg-primary/10 text-primary":"text-muted-foreground hover:text-foreground hover:bg-muted"),title:L?"Exit Fullscreen":"Fullscreen",children:L?e.jsx(De,{className:"w-4 h-4"}):e.jsx(Be,{className:"w-4 h-4"})})]}),e.jsx(Oe,{value:_,onValueChange:d=>k(d),tabs:[{value:"lite-plan",label:r({id:"liteTasks.type.plan"}),icon:e.jsx(ge,{className:"h-4 w-4"}),badge:e.jsx(i,{variant:"secondary",className:"ml-2",children:o.length})},{value:"lite-fix",label:r({id:"liteTasks.type.fix"}),icon:e.jsx(je,{className:"h-4 w-4"}),badge:e.jsx(i,{variant:"secondary",className:"ml-2",children:l.length})},{value:"multi-cli-plan",label:r({id:"liteTasks.type.multiCli"}),icon:e.jsx(ce,{className:"h-4 w-4"}),badge:e.jsx(i,{variant:"secondary",className:"ml-2",children:u.length})}]}),e.jsxs("div",{className:"mt-4 flex flex-col sm:flex-row gap-3 items-start sm:items-center justify-between",children:[e.jsxs("div",{className:"relative flex-1 max-w-md",children:[e.jsx(ie,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),e.jsx("input",{type:"text",placeholder:r({id:"liteTasks.searchPlaceholder"}),value:H,onChange:d=>$(d.target.value),className:"w-full pl-10 pr-4 py-2 text-sm rounded-lg border border-border bg-background focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("span",{className:"text-xs text-muted-foreground flex items-center gap-1",children:[e.jsx(Xe,{className:"h-3.5 w-3.5"}),r({id:"liteTasks.sortBy"}),":"]}),e.jsxs(X,{variant:v==="date"?"secondary":"ghost",size:"sm",onClick:()=>N("date"),className:"h-8 px-3 text-xs gap-1",children:[e.jsx(le,{className:"h-3.5 w-3.5"}),r({id:"liteTasks.sort.date"}),v==="date"&&(F==="desc"?e.jsx(oe,{className:"h-3 w-3"}):e.jsx(me,{className:"h-3 w-3"}))]}),e.jsxs(X,{variant:v==="name"?"secondary":"ghost",size:"sm",onClick:()=>N("name"),className:"h-8 px-3 text-xs gap-1",children:[r({id:"liteTasks.sort.name"}),v==="name"&&(F==="desc"?e.jsx(oe,{className:"h-3 w-3"}):e.jsx(me,{className:"h-3 w-3"}))]}),e.jsxs(X,{variant:v==="tasks"?"secondary":"ghost",size:"sm",onClick:()=>N("tasks"),className:"h-8 px-3 text-xs gap-1",children:[e.jsx(ve,{className:"h-3.5 w-3.5"}),r({id:"liteTasks.sort.tasks"}),v==="tasks"&&(F==="desc"?e.jsx(oe,{className:"h-3 w-3"}):e.jsx(me,{className:"h-3 w-3"}))]})]})]}),_==="lite-plan"&&e.jsx("div",{className:"mt-4",children:o.length===0?e.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[e.jsx(de,{className:"h-12 w-12 text-muted-foreground mb-4"}),e.jsx("h3",{className:"text-lg font-medium text-foreground mb-2",children:r({id:"liteTasks.empty.title"},{type:"lite-plan"})}),e.jsx("p",{className:"text-sm text-muted-foreground",children:r({id:"liteTasks.empty.message"})})]}):n.length===0?e.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[e.jsx(ie,{className:"h-12 w-12 text-muted-foreground mb-4"}),e.jsx("h3",{className:"text-lg font-medium text-foreground mb-2",children:r({id:"liteTasks.noResults.title"})}),e.jsx("p",{className:"text-sm text-muted-foreground",children:r({id:"liteTasks.noResults.message"})})]}):e.jsx("div",{className:"grid gap-3",children:n.map(b)})}),_==="lite-fix"&&e.jsx("div",{className:"mt-4",children:l.length===0?e.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[e.jsx(de,{className:"h-12 w-12 text-muted-foreground mb-4"}),e.jsx("h3",{className:"text-lg font-medium text-foreground mb-2",children:r({id:"liteTasks.empty.title"},{type:"lite-fix"})}),e.jsx("p",{className:"text-sm text-muted-foreground",children:r({id:"liteTasks.empty.message"})})]}):x.length===0?e.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[e.jsx(ie,{className:"h-12 w-12 text-muted-foreground mb-4"}),e.jsx("h3",{className:"text-lg font-medium text-foreground mb-2",children:r({id:"liteTasks.noResults.title"})}),e.jsx("p",{className:"text-sm text-muted-foreground",children:r({id:"liteTasks.noResults.message"})})]}):e.jsx("div",{className:"grid gap-3",children:x.map(b)})}),_==="multi-cli-plan"&&e.jsx("div",{className:"mt-4",children:u.length===0?e.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[e.jsx(de,{className:"h-12 w-12 text-muted-foreground mb-4"}),e.jsx("h3",{className:"text-lg font-medium text-foreground mb-2",children:r({id:"liteTasks.empty.title"},{type:"multi-cli-plan"})}),e.jsx("p",{className:"text-sm text-muted-foreground",children:r({id:"liteTasks.empty.message"})})]}):y.length===0?e.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[e.jsx(ie,{className:"h-12 w-12 text-muted-foreground mb-4"}),e.jsx("h3",{className:"text-lg font-medium text-foreground mb-2",children:r({id:"liteTasks.noResults.title"})}),e.jsx("p",{className:"text-sm text-muted-foreground",children:r({id:"liteTasks.noResults.message"})})]}):e.jsx("div",{className:"grid gap-3",children:y.map(q)})}),e.jsx($e,{task:m,isOpen:!!m,onClose:()=>g(null)})]})}export{Ms as LiteTasksPage,Ms as default};
82
- //# sourceMappingURL=LiteTasksPage-BOknokuo.js.map
76
+ */const ls=R("ThumbsUp",[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]]);function rs(s){var h;return s?(h=s.items)!=null&&h.length?s.items:s.data?Object.entries(s.data).map(([a,o])=>({id:a,title:a.replace(/-/g," ").replace(/^\w/,l=>l.toUpperCase()),...typeof o=="object"&&o!==null?o:{}})):[]:[]}function G({icon:s,title:h,badge:a,children:o,defaultOpen:l=!0}){const[u,f]=j.useState(l);return e.jsxs(Q,{className:"border-border",onClick:p=>p.stopPropagation(),children:[e.jsxs("button",{className:"w-full flex items-center gap-2 p-3 text-left hover:bg-muted/50 transition-colors",onClick:()=>f(!u),children:[e.jsx("span",{className:"text-muted-foreground",children:s}),e.jsx("span",{className:"text-sm font-medium text-foreground flex-1",children:h}),a&&e.jsx(i,{variant:"secondary",className:"text-[10px]",children:a}),u?e.jsx(te,{className:"h-4 w-4 text-muted-foreground"}):e.jsx(ae,{className:"h-4 w-4 text-muted-foreground"})]}),u&&e.jsx(Z,{className:"px-3 pb-3 pt-0",children:o})]})}function _e({contextData:s,session:h}){var c,t,m,g,A,$,H,v,U,z,D,L,W,F;const{formatMessage:a}=Y(),o=h.plan||{},l=s.context,u=!!((c=s.explorations)!=null&&c.manifest),f=rs(s.diagnoses),p=!!((t=s.diagnoses)!=null&&t.manifest||f.length>0),M=!!l,r=!!((m=o.focus_paths)!=null&&m.length),_=!!o.summary;return u||p||M||r||_?e.jsxs("div",{className:"space-y-3",children:[u&&e.jsx(G,{icon:e.jsx(Ge,{className:"h-4 w-4"}),title:a({id:"liteTasks.contextPanel.explorations"}),badge:(A=(g=s.explorations)==null?void 0:g.manifest)!=null&&A.exploration_count?a({id:"liteTasks.contextPanel.explorationsCount"},{count:s.explorations.manifest.exploration_count}):void 0,children:e.jsxs("div",{className:"space-y-2",children:[!!((H=($=s.explorations)==null?void 0:$.manifest)!=null&&H.task_description)&&e.jsxs("div",{className:"text-xs text-muted-foreground",children:[e.jsxs("span",{className:"font-medium text-foreground",children:[a({id:"liteTasks.contextPanel.taskDescription"}),":"]})," ",String(s.explorations.manifest.task_description)]}),!!((U=(v=s.explorations)==null?void 0:v.manifest)!=null&&U.complexity)&&e.jsxs("div",{className:"text-xs text-muted-foreground",children:[e.jsxs("span",{className:"font-medium text-foreground",children:[a({id:"liteTasks.contextPanel.complexity"}),":"]})," ",e.jsx(i,{variant:"info",className:"text-[10px]",children:String(s.explorations.manifest.complexity)})]}),((z=s.explorations)==null?void 0:z.data)&&e.jsx("div",{className:"flex flex-wrap gap-1.5 mt-1",children:Object.keys(s.explorations.data).map(n=>e.jsx(i,{variant:"secondary",className:"text-[10px] capitalize",children:n.replace(/-/g," ")},n))})]})}),p&&e.jsx(G,{icon:e.jsx(ns,{className:"h-4 w-4"}),title:a({id:"liteTasks.contextPanel.diagnoses"}),badge:f.length>0?a({id:"liteTasks.contextPanel.diagnosesCount"},{count:f.length}):void 0,children:f.map((n,x)=>e.jsx("div",{className:"text-xs text-muted-foreground py-1 border-b border-border/50 last:border-0",children:n.title||n.description||`Diagnosis ${x+1}`},x))}),M&&l&&e.jsx(G,{icon:e.jsx(K,{className:"h-4 w-4"}),title:a({id:"liteTasks.contextPanel.contextPackage"}),children:e.jsxs("div",{className:"space-y-2 text-xs",children:[l.task_description&&e.jsxs("div",{className:"text-muted-foreground",children:[e.jsxs("span",{className:"font-medium text-foreground",children:[a({id:"liteTasks.contextPanel.taskDescription"}),":"]})," ",l.task_description]}),l.constraints&&l.constraints.length>0&&e.jsxs("div",{children:[e.jsx("div",{className:"text-muted-foreground mb-1",children:e.jsxs("span",{className:"font-medium text-foreground",children:[a({id:"liteTasks.contextPanel.constraints"}),":"]})}),e.jsx("div",{className:"space-y-1 pl-2",children:l.constraints.map((n,x)=>e.jsxs("div",{className:"text-muted-foreground flex items-start gap-1",children:[e.jsx("span",{className:"text-primary/50",children:"•"}),e.jsx("span",{children:n})]},x))})]}),l.focus_paths&&l.focus_paths.length>0&&e.jsxs("div",{className:"text-muted-foreground",children:[e.jsxs("span",{className:"font-medium text-foreground",children:[a({id:"liteTasks.contextPanel.focusPaths"}),":"]})," ",e.jsx("div",{className:"flex flex-wrap gap-1 mt-0.5",children:l.focus_paths.map((n,x)=>e.jsx(i,{variant:"secondary",className:"text-[10px] font-mono",children:n},x))})]}),l.relevant_files&&l.relevant_files.length>0&&e.jsxs("div",{children:[e.jsxs("div",{className:"text-muted-foreground mb-1",children:[e.jsxs("span",{className:"font-medium text-foreground",children:[a({id:"liteTasks.contextPanel.relevantFiles"}),":"]})," ",e.jsx(i,{variant:"outline",className:"text-[10px] align-middle",children:l.relevant_files.length})]}),e.jsx("div",{className:"space-y-0.5 pl-2 max-h-32 overflow-y-auto",children:l.relevant_files.map((n,x)=>{const y=typeof n=="string"?n:n.path,N=typeof n=="string"?void 0:n.reason;return e.jsxs("div",{className:"group flex items-start gap-1 text-muted-foreground hover:bg-muted/30 rounded px-1 py-0.5",children:[e.jsxs("span",{className:"text-primary/50 shrink-0",children:[x+1,"."]}),e.jsx("span",{className:"font-mono text-xs truncate flex-1",title:y,children:y}),N&&e.jsxs("span",{className:"text-[10px] text-muted-foreground/60 truncate ml-1",title:N,children:["(",N,")"]})]},x)})})]}),l.dependencies&&l.dependencies.length>0&&e.jsxs("div",{children:[e.jsx("div",{className:"text-muted-foreground mb-1",children:e.jsxs("span",{className:"font-medium text-foreground",children:[a({id:"liteTasks.contextPanel.dependencies"}),":"]})}),e.jsx("div",{className:"flex flex-wrap gap-1",children:l.dependencies.map((n,x)=>{const y=typeof n=="string"?{name:n,version:""}:n;return e.jsxs(i,{variant:"outline",className:"text-[10px]",children:[y.name,y.version&&e.jsxs("span",{className:"ml-1 opacity-70",children:["@",y.version]})]},x)})})]}),l.session_id&&e.jsxs("div",{className:"text-muted-foreground",children:[e.jsxs("span",{className:"font-medium text-foreground",children:[a({id:"liteTasks.contextPanel.sessionId"}),":"]})," ",e.jsx("span",{className:"font-mono bg-muted/50 px-1.5 py-0.5 rounded",children:l.session_id})]}),l.metadata&&e.jsxs("div",{children:[e.jsx("div",{className:"text-muted-foreground mb-1",children:e.jsxs("span",{className:"font-medium text-foreground",children:[a({id:"liteTasks.contextPanel.metadata"}),":"]})}),e.jsx("div",{className:"grid grid-cols-2 gap-x-3 gap-y-0.5 pl-2 text-muted-foreground",children:Object.entries(l.metadata).map(([n,x])=>e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsxs("span",{className:"font-mono text-[10px] text-primary/60",children:[n,":"]}),e.jsx("span",{className:"truncate",children:String(x)})]},n))})]})]})}),(l==null?void 0:l.conflict_risks)&&Array.isArray(l.conflict_risks)&&l.conflict_risks.length>0&&e.jsx(G,{icon:e.jsx(Se,{className:"h-4 w-4"}),title:a({id:"liteTasks.contextPanel.conflictRisks"}),children:e.jsx("ul",{className:"space-y-1",children:l.conflict_risks.map((n,x)=>{const y=typeof n=="string"?n:n.description,N=typeof n=="string"?void 0:n.severity;return e.jsxs("li",{className:"flex items-start gap-2 text-xs text-muted-foreground",children:[N&&e.jsx(i,{variant:N==="high"?"destructive":"warning",className:"text-[10px]",children:N}),e.jsx("span",{children:y})]},x)})})}),(l==null?void 0:l.conflict_detection)&&e.jsx(qe,{data:l.conflict_detection}),(l==null?void 0:l.assets)&&e.jsx(Re,{data:l.assets}),((D=s.explorations)==null?void 0:D.data)&&Object.values(s.explorations.data).some(n=>{var x,y,N;return((x=n.project_structure)==null?void 0:x.length)||((y=n.relevant_files)==null?void 0:y.length)||((N=n.patterns)==null?void 0:N.length)})&&e.jsx($e,{data:{manifest:{task_description:((L=s.explorations.manifest)==null?void 0:L.task_description)||"",complexity:(W=s.explorations.manifest)==null?void 0:W.complexity,exploration_count:((F=s.explorations.manifest)==null?void 0:F.exploration_count)||Object.keys(s.explorations.data).length},data:s.explorations.data}}),r&&e.jsx(G,{icon:e.jsx(Pe,{className:"h-4 w-4"}),title:a({id:"liteTasks.contextPanel.focusPaths"}),children:e.jsx("div",{className:"flex flex-wrap gap-1.5",children:o.focus_paths.map((n,x)=>e.jsx(i,{variant:"secondary",className:"text-[10px] font-mono",children:n},x))})}),_&&e.jsx(G,{icon:e.jsx(Ve,{className:"h-4 w-4"}),title:a({id:"liteTasks.contextPanel.summary"}),children:e.jsx("p",{className:"text-xs text-muted-foreground",children:o.summary})}),s.context&&e.jsx(G,{icon:e.jsx(Me,{className:"h-4 w-4"}),title:a({id:"liteTasks.contextPanel.rawJson"}),defaultOpen:!1,children:e.jsx("pre",{className:"text-xs font-mono bg-muted p-3 rounded-lg overflow-x-auto max-h-64 overflow-y-auto whitespace-pre-wrap break-all",children:JSON.stringify(s.context,null,2)})})]}):e.jsxs("div",{className:"flex flex-col items-center justify-center py-8 text-center",children:[e.jsx(K,{className:"h-8 w-8 text-muted-foreground mb-2"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:a({id:"liteTasks.contextPanel.empty"})})]})}function cs(s){if(s)return typeof s=="string"?s:s.en||s.zh}function ds({session:s,onTaskClick:h}){const{formatMessage:a}=Y(),[o,l]=j.useState("tasks"),[u,f]=j.useState(null),[p,M]=j.useState(!1),[r,_]=j.useState(null),k=s.tasks||[],c=k.length;return j.useEffect(()=>{if(o==="context"&&!(u||p)){if(!s.path){_("No session path available");return}M(!0),be(s.path).then(t=>{f(t),_(null)}).catch(t=>{_(t.message||"Failed to load context")}).finally(()=>{M(!1)})}},[o,s.path,u,p]),e.jsxs("div",{className:"mt-2 ml-6 pb-2",children:[e.jsxs("div",{className:"flex flex-wrap gap-2 mb-3",children:[e.jsxs("button",{onClick:t=>{t.stopPropagation(),l("tasks")},className:`flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium border transition-colors ${o==="tasks"?"bg-primary/10 text-primary border-primary/30":"bg-muted/50 text-muted-foreground border-border hover:bg-muted"}`,children:[e.jsx(xe,{className:"h-3.5 w-3.5"}),a({id:"liteTasks.quickCards.tasks"}),e.jsx(i,{variant:"secondary",className:"ml-1 text-[10px] px-1.5 py-0",children:c})]}),e.jsxs("button",{onClick:t=>{t.stopPropagation(),l("context")},className:`flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium border transition-colors ${o==="context"?"bg-primary/10 text-primary border-primary/30":"bg-muted/50 text-muted-foreground border-border hover:bg-muted"}`,children:[e.jsx(K,{className:"h-3.5 w-3.5"}),a({id:"liteTasks.quickCards.context"})]})]}),o==="tasks"&&e.jsx("div",{className:"space-y-2",children:k.map((t,m)=>{var v,U,z,D,L,W,F,n,x,y,N;const g=((U=(v=t.flow_control)==null?void 0:v.target_files)==null?void 0:U.length)||0,A=((D=(z=t.flow_control)==null?void 0:z.implementation_approach)==null?void 0:D.length)||0,$=((W=(L=t.context)==null?void 0:L.acceptance)==null?void 0:W.length)||0,H=((n=(F=t.context)==null?void 0:F.depends_on)==null?void 0:n.length)||0;return e.jsx(Q,{className:"cursor-pointer hover:shadow-sm hover:border-primary/50 transition-all border-border border-l-4 border-l-primary/50",onClick:B=>{B.stopPropagation(),h(t)},children:e.jsxs(Z,{className:"p-3",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[e.jsx(i,{className:"text-xs font-mono shrink-0 bg-primary/10 text-primary border-primary/20",children:t.task_id||`#${m+1}`}),e.jsx("h4",{className:"text-sm font-medium text-foreground line-clamp-1",children:t.title||a({id:"liteTasks.untitled"})})]}),e.jsxs("div",{className:"flex items-center gap-1.5 shrink-0",children:[((x=t.meta)==null?void 0:x.type)&&e.jsx(i,{variant:"info",className:"text-[10px] px-1.5 py-0 whitespace-nowrap",children:t.meta.type}),g>0&&e.jsxs(i,{variant:"secondary",className:"text-[10px] px-1.5 py-0 gap-0.5 whitespace-nowrap",children:[e.jsx(we,{className:"h-2.5 w-2.5"}),g," files"]}),A>0&&e.jsxs(i,{variant:"secondary",className:"text-[10px] px-1.5 py-0 whitespace-nowrap",children:[A," steps"]}),$>0&&e.jsxs(i,{variant:"secondary",className:"text-[10px] px-1.5 py-0 whitespace-nowrap",children:[$," criteria"]}),H>0&&e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("span",{className:"text-[10px] text-muted-foreground",children:"→"}),(N=(y=t.context)==null?void 0:y.depends_on)==null?void 0:N.map((B,J)=>e.jsx(i,{variant:"outline",className:"text-[10px] px-1.5 py-0 font-mono border-primary/30 text-primary whitespace-nowrap",children:B},J))]})]})]}),t.description&&e.jsx("p",{className:"text-xs text-muted-foreground mt-1.5 pl-[calc(1.5rem+0.75rem)] line-clamp-2",children:t.description})]})},t.id||m)})}),o==="context"&&e.jsxs("div",{className:"space-y-3",children:[p&&e.jsxs("div",{className:"flex items-center justify-center py-8 text-muted-foreground",children:[e.jsx(Ce,{className:"h-5 w-5 animate-spin mr-2"}),e.jsx("span",{className:"text-sm",children:a({id:"liteTasks.contextPanel.loading"})})]}),r&&!p&&e.jsxs("div",{className:"flex items-center gap-2 p-3 rounded-lg bg-destructive/10 border border-destructive/30 text-destructive text-sm",children:[e.jsx(pe,{className:"h-4 w-4 flex-shrink-0"}),a({id:"liteTasks.contextPanel.error"}),": ",r]}),!p&&!r&&u&&e.jsx(_e,{contextData:u,session:s}),!p&&!r&&!u&&!s.path&&e.jsxs("div",{className:"flex flex-col items-center justify-center py-8 text-center",children:[e.jsx(K,{className:"h-8 w-8 text-muted-foreground mb-2"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:a({id:"liteTasks.contextPanel.empty"})})]})]})]})}function os({round:s,isLast:h}){const{formatMessage:a}=Y(),[o,l]=j.useState(h),u=s.solutions||[],f=s.convergence,p=s.cross_verification,M=s.clarification_questions||[],r=s.cli_executions||{},_=c=>c<1e3?`${c}ms`:`${(c/1e3).toFixed(1)}s`,k=c=>{switch(c){case"converged":return"success";case"continue":return"warning";case"user_input_needed":return"destructive";default:return"secondary"}};return e.jsx(Q,{className:"border-border",children:e.jsxs(Z,{className:"p-4",children:[e.jsxs("div",{className:"flex items-center justify-between cursor-pointer",onClick:()=>l(!o),children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"flex items-center justify-center w-8 h-8 rounded-full bg-primary/10 text-primary font-semibold text-sm",children:s.round}),e.jsxs("div",{children:[e.jsxs("h4",{className:"font-medium text-foreground flex items-center gap-2",children:[a({id:"liteTasks.multiCli.round"})," ",s.round,f&&e.jsxs(i,{variant:k(f.recommendation),className:"text-[10px]",children:[f.recommendation==="converged"&&e.jsx(Je,{className:"h-3 w-3 mr-1"}),f.recommendation==="converged"&&a({id:"liteTasks.multiCli.converged"}),f.recommendation==="continue"&&a({id:"liteTasks.multiCli.continuing"}),f.recommendation==="user_input_needed"&&a({id:"liteTasks.multiCli.needsInput"})]})]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:s.timestamp?new Date(s.timestamp).toLocaleString():""})]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"flex items-center gap-1",children:Object.entries(r).map(([c,t])=>e.jsx(i,{variant:t.status==="success"?"success":"destructive",className:"text-[10px] px-1.5 py-0",children:c},c))}),o?e.jsx(te,{className:"h-4 w-4 text-muted-foreground"}):e.jsx(ae,{className:"h-4 w-4 text-muted-foreground"})]})]}),o&&e.jsxs("div",{className:"mt-4 space-y-4",children:[s.user_feedback_incorporated&&e.jsxs("div",{className:"p-3 bg-primary/5 border border-primary/20 rounded-lg",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm font-medium text-primary mb-1",children:[e.jsx(ke,{className:"h-4 w-4"}),a({id:"liteTasks.multiCli.userFeedback"})]}),e.jsx("p",{className:"text-sm text-foreground",children:s.user_feedback_incorporated})]}),Object.keys(r).length>0&&e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm font-medium text-muted-foreground",children:[e.jsx(Ue,{className:"h-4 w-4"}),a({id:"liteTasks.multiCli.cliExecutions"})]}),e.jsx("div",{className:"grid grid-cols-2 gap-2",children:Object.entries(r).map(([c,t])=>e.jsxs("div",{className:"flex items-center justify-between p-2 bg-muted/50 rounded-md text-xs",children:[e.jsx("span",{className:"font-medium",children:c}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-muted-foreground",children:t.model}),e.jsxs(i,{variant:t.status==="success"?"success":"destructive",className:"text-[10px] px-1 py-0",children:[e.jsx(Fe,{className:"h-3 w-3 mr-1"}),_(t.duration_ms)]})]})]},c))})]}),u.length>0&&e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm font-medium text-muted-foreground",children:[e.jsx(Te,{className:"h-4 w-4"}),a({id:"liteTasks.multiCli.solutions"})," (",u.length,")"]}),e.jsx("div",{className:"space-y-3",children:u.map((c,t)=>e.jsxs("div",{className:"p-3 bg-muted/30 rounded-lg border border-border/50",children:[e.jsxs("div",{className:"flex items-start justify-between mb-2",children:[e.jsx("h5",{className:"font-medium text-foreground text-sm",children:c.name}),e.jsx("div",{className:"flex items-center gap-1",children:c.source_cli.map(m=>e.jsx(i,{variant:"outline",className:"text-[10px] px-1.5 py-0",children:m},m))})]}),e.jsx("p",{className:"text-xs text-muted-foreground mb-2",children:c.summary}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-xs",children:[e.jsxs(i,{variant:"success",className:"text-[10px]",children:[Math.round(c.feasibility*100),"% ",a({id:"liteTasks.multiCli.feasible"})]}),e.jsx(i,{variant:"warning",className:"text-[10px]",children:c.effort}),e.jsxs(i,{variant:c.risk==="high"?"destructive":c.risk==="low"?"success":"warning",className:"text-[10px]",children:[c.risk," ",a({id:"liteTasks.multiCli.risk"})]})]}),e.jsxs("div",{className:"mt-2 grid grid-cols-2 gap-2",children:[c.pros.length>0&&e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center gap-1 text-xs text-success",children:[e.jsx(ls,{className:"h-3 w-3"}),a({id:"liteTasks.multiCli.pros"})]}),e.jsx("ul",{className:"text-[10px] text-muted-foreground space-y-0.5",children:c.pros.slice(0,3).map((m,g)=>e.jsxs("li",{className:"truncate",children:["• ",m]},g))})]}),c.cons.length>0&&e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center gap-1 text-xs text-destructive",children:[e.jsx(is,{className:"h-3 w-3"}),a({id:"liteTasks.multiCli.cons"})]}),e.jsx("ul",{className:"text-[10px] text-muted-foreground space-y-0.5",children:c.cons.slice(0,3).map((m,g)=>e.jsxs("li",{className:"truncate",children:["• ",m]},g))})]})]})]},t))})]}),f&&e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm font-medium text-muted-foreground",children:[e.jsx(We,{className:"h-4 w-4"}),a({id:"liteTasks.multiCli.convergence"})]}),e.jsxs("div",{className:"p-3 bg-muted/30 rounded-lg",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx("div",{className:"flex-1 h-2 bg-muted rounded-full overflow-hidden",children:e.jsx("div",{className:`h-full rounded-full ${f.score>=.9?"bg-success":f.score>=.7?"bg-warning":"bg-destructive"}`,style:{width:`${f.score*100}%`}})}),e.jsxs("span",{className:"text-xs font-medium",children:[Math.round(f.score*100),"%"]})]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:f.rationale})]})]}),p&&(p.agreements.length>0||p.disagreements.length>0)&&e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm font-medium text-muted-foreground",children:[e.jsx(Xe,{className:"h-4 w-4"}),a({id:"liteTasks.multiCli.crossVerification"})]}),e.jsxs("div",{className:"space-y-2",children:[p.agreements.length>0&&e.jsxs("div",{className:"p-3 bg-success/10 border border-success/20 rounded-lg",children:[e.jsxs("div",{className:"flex items-center gap-2 text-xs font-medium text-success mb-2",children:[e.jsx(ne,{className:"h-3 w-3"}),a({id:"liteTasks.multiCli.agreements"})," (",p.agreements.length,")"]}),e.jsx("ul",{className:"text-[10px] text-muted-foreground space-y-1",children:p.agreements.slice(0,5).map((c,t)=>e.jsxs("li",{className:"flex items-start gap-1",children:[e.jsx(ne,{className:"h-3 w-3 text-success shrink-0 mt-0.5"}),e.jsx("span",{children:c})]},t))})]}),p.disagreements.length>0&&e.jsxs("div",{className:"p-3 bg-warning/10 border border-warning/20 rounded-lg",children:[e.jsxs("div",{className:"flex items-center gap-2 text-xs font-medium text-warning mb-2",children:[e.jsx(re,{className:"h-3 w-3"}),a({id:"liteTasks.multiCli.disagreements"})," (",p.disagreements.length,")"]}),e.jsx("div",{className:"space-y-2",children:p.disagreements.map((c,t)=>e.jsxs("div",{className:"text-[10px]",children:[e.jsx("div",{className:"font-medium text-foreground mb-1",children:c.topic}),e.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(i,{variant:"outline",className:"text-[9px] px-1 py-0",children:"gemini"}),e.jsx("span",{className:"text-muted-foreground truncate",children:c.gemini})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(i,{variant:"outline",className:"text-[9px] px-1 py-0",children:"codex"}),e.jsx("span",{className:"text-muted-foreground truncate",children:c.codex})]})]})]},t))})]}),p.resolution&&e.jsxs("div",{className:"text-xs text-muted-foreground italic",children:[a({id:"liteTasks.multiCli.resolution"}),": ",p.resolution]})]})]}),M.length>0&&e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm font-medium text-muted-foreground",children:[e.jsx(ye,{className:"h-4 w-4"}),a({id:"liteTasks.multiCli.clarificationQuestions"})," (",M.length,")"]}),e.jsx("ul",{className:"space-y-1",children:M.map((c,t)=>e.jsxs("li",{className:"flex items-start gap-2 text-xs text-muted-foreground",children:[e.jsx(ye,{className:"h-3 w-3 shrink-0 mt-0.5 text-info"}),e.jsx("span",{children:c})]},t))})]})]})]})})}function ms({data:s}){var p,M,r,_,k,c;const{formatMessage:h}=Y(),[a,o]=j.useState(new Set(["solution","plan"])),l=t=>{o(m=>{const g=new Set(m);return g.has(t)?g.delete(t):g.add(t),g})},u=t=>a.has(t),f=({id:t,icon:m,title:g,badge:A,children:$,defaultExpanded:H=!0})=>(j.useEffect(()=>{H&&!a.has(t)&&o(v=>new Set(v).add(t))},[t,H]),e.jsxs(Q,{className:"border-border",children:[e.jsxs("button",{type:"button",className:"w-full flex items-center gap-2 p-3 text-left hover:bg-muted/50 transition-colors",onClick:()=>l(t),children:[e.jsx("span",{className:"text-muted-foreground",children:m}),e.jsx("span",{className:"text-sm font-medium text-foreground flex-1",children:g}),A,u(t)?e.jsx(te,{className:"h-4 w-4 text-muted-foreground"}):e.jsx(ae,{className:"h-4 w-4 text-muted-foreground"})]}),u(t)&&e.jsx(Z,{className:"px-3 pb-3 pt-0",children:$})]}));return e.jsxs("div",{className:"space-y-3",children:[s.solution&&e.jsx(f,{id:"solution",icon:e.jsx(Te,{className:"h-4 w-4"}),title:h({id:"liteTasks.multiCli.context.solution"}),badge:e.jsx("div",{className:"flex items-center gap-1",children:s.solution.source_cli.map(t=>e.jsx(i,{variant:"outline",className:"text-[10px] px-1.5 py-0",children:t},t))}),children:e.jsxs("div",{className:"space-y-2",children:[e.jsx("h4",{className:"font-medium text-foreground text-sm",children:s.solution.name}),e.jsx("p",{className:"text-xs text-muted-foreground",children:s.solution.summary}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsxs(i,{variant:"success",className:"text-[10px]",children:[Math.round(s.solution.feasibility*100),"% ",h({id:"liteTasks.multiCli.feasible"})]}),e.jsx(i,{variant:"warning",className:"text-[10px]",children:s.solution.effort}),e.jsxs(i,{variant:s.solution.risk==="high"?"destructive":s.solution.risk==="low"?"success":"warning",className:"text-[10px]",children:[s.solution.risk," ",h({id:"liteTasks.multiCli.risk"})]})]})]})}),s.implementation_plan&&e.jsx(f,{id:"plan",icon:e.jsx(ts,{className:"h-4 w-4"}),title:h({id:"liteTasks.multiCli.context.implementationPlan"}),badge:e.jsxs(i,{variant:"secondary",className:"text-[10px]",children:[((p=s.implementation_plan.tasks)==null?void 0:p.length)||0," tasks"]}),children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"text-xs text-muted-foreground",children:[e.jsxs("span",{className:"font-medium text-foreground",children:[h({id:"liteTasks.multiCli.context.approach"}),":"]})," ",s.implementation_plan.approach]}),s.implementation_plan.execution_flow&&e.jsx("div",{className:"p-2 bg-muted/50 rounded-md",children:e.jsx("code",{className:"text-xs font-mono text-foreground",children:s.implementation_plan.execution_flow})}),s.implementation_plan.tasks&&s.implementation_plan.tasks.length>0&&e.jsxs("div",{className:"space-y-2",children:[e.jsx("div",{className:"text-xs font-medium text-foreground",children:h({id:"liteTasks.multiCli.context.tasks"})}),e.jsx("div",{className:"space-y-1.5",children:s.implementation_plan.tasks.map((t,m)=>e.jsxs("div",{className:"flex items-start gap-2 p-2 bg-muted/30 rounded-md",children:[e.jsx(i,{variant:"outline",className:"text-[10px] font-mono shrink-0",children:t.id}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("div",{className:"text-xs font-medium text-foreground",children:t.name}),t.key_point&&e.jsx("div",{className:"text-[10px] text-muted-foreground mt-0.5",children:t.key_point}),t.files&&t.files.length>0&&e.jsx("div",{className:"flex flex-wrap gap-1 mt-1",children:t.files.map((g,A)=>e.jsxs(i,{variant:"secondary",className:"text-[9px] font-mono",children:[g.action==="create"?"+":g.action==="delete"?"-":"~"," ",g.file]},A))})]})]},t.id||m))})]}),s.implementation_plan.milestones&&s.implementation_plan.milestones.length>0&&e.jsxs("div",{className:"space-y-1.5",children:[e.jsxs("div",{className:"flex items-center gap-2 text-xs font-medium text-foreground",children:[e.jsx(Ke,{className:"h-3 w-3"}),h({id:"liteTasks.multiCli.context.milestones"})]}),e.jsx("div",{className:"flex flex-wrap gap-1.5",children:s.implementation_plan.milestones.map((t,m)=>e.jsx(i,{variant:"info",className:"text-[10px]",children:t},m))})]})]})}),s.dependencies&&(((M=s.dependencies.internal)==null?void 0:M.length)>0||((r=s.dependencies.external)==null?void 0:r.length)>0)&&e.jsx(f,{id:"deps",icon:e.jsx(Qe,{className:"h-4 w-4"}),title:h({id:"liteTasks.multiCli.context.dependencies"}),badge:e.jsx(i,{variant:"secondary",className:"text-[10px]",children:(((_=s.dependencies.internal)==null?void 0:_.length)||0)+(((k=s.dependencies.external)==null?void 0:k.length)||0)}),children:e.jsxs("div",{className:"space-y-2",children:[s.dependencies.internal&&s.dependencies.internal.length>0&&e.jsxs("div",{children:[e.jsx("div",{className:"text-xs font-medium text-foreground mb-1",children:h({id:"liteTasks.multiCli.context.internal"})}),e.jsx("div",{className:"flex flex-wrap gap-1",children:s.dependencies.internal.map((t,m)=>e.jsx(i,{variant:"outline",className:"text-[10px] font-mono",children:t},m))})]}),s.dependencies.external&&s.dependencies.external.length>0&&e.jsxs("div",{children:[e.jsx("div",{className:"text-xs font-medium text-foreground mb-1",children:h({id:"liteTasks.multiCli.context.external"})}),e.jsx("div",{className:"flex flex-wrap gap-1",children:s.dependencies.external.map((t,m)=>e.jsx(i,{variant:"secondary",className:"text-[10px] font-mono",children:t},m))})]})]})}),s.consensus&&((c=s.consensus.agreements)==null?void 0:c.length)>0&&e.jsx(f,{id:"consensus",icon:e.jsx(as,{className:"h-4 w-4"}),title:h({id:"liteTasks.multiCli.context.consensus"}),badge:e.jsx(i,{variant:"success",className:"text-[10px]",children:s.consensus.agreements.length}),children:e.jsxs("div",{className:"space-y-2",children:[e.jsx("ul",{className:"space-y-1",children:s.consensus.agreements.map((t,m)=>e.jsxs("li",{className:"flex items-start gap-2 text-xs text-muted-foreground",children:[e.jsx(ne,{className:"h-3 w-3 text-success shrink-0 mt-0.5"}),e.jsx("span",{children:t})]},m))}),s.consensus.resolved_conflicts&&e.jsxs("div",{className:"mt-2 p-2 bg-success/10 border border-success/20 rounded-md text-xs text-muted-foreground",children:[e.jsxs("span",{className:"font-medium text-success",children:[h({id:"liteTasks.multiCli.context.resolvedConflicts"}),":"]})," ",s.consensus.resolved_conflicts]})]})}),s.technical_concerns&&s.technical_concerns.length>0&&e.jsx(f,{id:"concerns",icon:e.jsx(es,{className:"h-4 w-4"}),title:h({id:"liteTasks.multiCli.context.technicalConcerns"}),badge:e.jsx(i,{variant:"warning",className:"text-[10px]",children:s.technical_concerns.length}),children:e.jsx("ul",{className:"space-y-1",children:s.technical_concerns.map((t,m)=>e.jsxs("li",{className:"flex items-start gap-2 text-xs text-muted-foreground",children:[e.jsx(re,{className:"h-3 w-3 text-warning shrink-0 mt-0.5"}),e.jsx("span",{children:t})]},m))})}),s.constraints&&s.constraints.length>0&&e.jsx(f,{id:"constraints",icon:e.jsx(Ze,{className:"h-4 w-4"}),title:h({id:"liteTasks.multiCli.context.constraints"}),badge:e.jsx(i,{variant:"secondary",className:"text-[10px]",children:s.constraints.length}),children:e.jsx("div",{className:"flex flex-wrap gap-1.5",children:s.constraints.map((t,m)=>e.jsx(i,{variant:"outline",className:"text-[10px]",children:t},m))})}),(s.task_description||s.session_id)&&e.jsx(f,{id:"info",icon:e.jsx(K,{className:"h-4 w-4"}),title:h({id:"liteTasks.multiCli.context.sessionInfo"}),defaultExpanded:!1,children:e.jsxs("div",{className:"space-y-2 text-xs",children:[s.task_description&&e.jsxs("div",{className:"text-muted-foreground",children:[e.jsxs("span",{className:"font-medium text-foreground",children:[h({id:"liteTasks.contextPanel.taskDescription"}),":"]})," ",s.task_description]}),s.session_id&&e.jsxs("div",{className:"text-muted-foreground",children:[e.jsxs("span",{className:"font-medium text-foreground",children:[h({id:"liteTasks.contextPanel.sessionId"}),":"]})," ",e.jsx("span",{className:"font-mono bg-muted/50 px-1.5 py-0.5 rounded",children:s.session_id})]})]})})]})}function xs({session:s,onTaskClick:h}){var W,F;const{formatMessage:a}=Y(),[o,l]=j.useState("tasks"),[u,f]=j.useState(null),[p,M]=j.useState(!1),[r,_]=j.useState(null),k=s.tasks||[],c=k.length,t=s.latestSynthesis||{},m=s.plan||{},g=s.roundCount||((W=s.metadata)==null?void 0:W.roundId)||1,A=n=>n?typeof n=="string"?n:n.en||n.zh||"":"",$=()=>{if(k.length===0)return"";const n=new Set;k.forEach(b=>{var V;const O=b.task_id||b.id;n.add(O),(V=b.context)!=null&&V.depends_on});const x=k.filter(b=>{var V;const O=((V=b.context)==null?void 0:V.depends_on)||[];return O.length===0||O.every(d=>!n.has(d))}).map(b=>b.task_id||b.id),y=x.length>1?`(${x.join(" | ")})`:x[0]||"",N=new Set(x),B=[y];let J=0;for(;N.size<k.length&&J<20;){J++;const b=[];if(k.forEach(O=>{var w;const V=O.task_id||O.id;if(N.has(V))return;(((w=O.context)==null?void 0:w.depends_on)||[]).every(q=>N.has(q)||!n.has(q))&&b.push(V)}),b.length===0)break;b.forEach(O=>N.add(O)),b.length>1?B.push(`(${b.join(" | ")})`):B.push(b[0])}return B.filter(Boolean).join(" → ")};j.useEffect(()=>{if(o==="context"&&!(u||p)){if(!s.path){_("No session path available");return}M(!0),be(s.path).then(n=>{f(n),_(null)}).catch(n=>{_(n.message||"Failed to load context")}).finally(()=>{M(!1)})}},[o,s.path,u,p]);const H=$(),v=A(m.goal)||A(t.title)||"",U=A(m.solution)||"",z=m.feasibility||0,D=m.effort||"",L=m.risk||"";return e.jsxs("div",{className:"mt-2 ml-6 pb-2",children:[e.jsxs("div",{className:"flex items-center gap-4 text-xs text-muted-foreground mb-3 pb-2 border-b border-border/50",children:[s.createdAt&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(le,{className:"h-3.5 w-3.5"}),a({id:"liteTasks.createdAt"}),": ",new Date(s.createdAt).toLocaleDateString()]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(xe,{className:"h-3.5 w-3.5"}),a({id:"liteTasks.quickCards.tasks"}),": ",c," ",a({id:"liteTasks.tasksCount"})]})]}),e.jsxs("div",{className:"flex flex-wrap gap-2 mb-3",children:[e.jsxs("button",{onClick:n=>{n.stopPropagation(),l("tasks")},className:`flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium border transition-colors ${o==="tasks"?"bg-primary/10 text-primary border-primary/30":"bg-muted/50 text-muted-foreground border-border hover:bg-muted"}`,children:[e.jsx(xe,{className:"h-3.5 w-3.5"}),a({id:"liteTasks.quickCards.tasks"}),e.jsx(i,{variant:"secondary",className:"ml-1 text-[10px] px-1.5 py-0",children:c})]}),e.jsxs("button",{onClick:n=>{n.stopPropagation(),l("discussion")},className:`flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium border transition-colors ${o==="discussion"?"bg-primary/10 text-primary border-primary/30":"bg-muted/50 text-muted-foreground border-border hover:bg-muted"}`,children:[e.jsx(ce,{className:"h-3.5 w-3.5"}),a({id:"liteTasks.multiCli.discussion"}),e.jsx(i,{variant:"secondary",className:"ml-1 text-[10px] px-1.5 py-0",children:g})]}),e.jsxs("button",{onClick:n=>{n.stopPropagation(),l("context")},className:`flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium border transition-colors ${o==="context"?"bg-primary/10 text-primary border-primary/30":"bg-muted/50 text-muted-foreground border-border hover:bg-muted"}`,children:[e.jsx(K,{className:"h-3.5 w-3.5"}),a({id:"liteTasks.quickCards.context"})]})]}),o==="tasks"&&e.jsxs("div",{className:"space-y-3",children:[(v||U||H)&&e.jsx(Q,{className:"border-border bg-muted/30",children:e.jsxs(Z,{className:"p-3 space-y-2",children:[v&&e.jsxs("div",{className:"text-sm",children:[e.jsxs("span",{className:"text-muted-foreground",children:[a({id:"liteTasks.multiCli.goal"}),":"]}),e.jsx("span",{className:"ml-2 text-foreground",children:v})]}),U&&e.jsxs("div",{className:"text-sm",children:[e.jsxs("span",{className:"text-muted-foreground",children:[a({id:"liteTasks.multiCli.solution"}),":"]}),e.jsx("span",{className:"ml-2 text-foreground",children:U})]}),H&&e.jsxs("div",{className:"text-sm",children:[e.jsxs("span",{className:"text-muted-foreground",children:[a({id:"liteTasks.multiCli.implementation"}),":"]}),e.jsx("code",{className:"ml-2 px-2 py-0.5 rounded bg-background border border-border text-xs font-mono",children:H})]}),(z>0||D||L)&&e.jsxs("div",{className:"flex items-center gap-2 pt-1",children:[z>0&&e.jsxs(i,{variant:"success",className:"text-[10px]",children:[z,"%"]}),D&&e.jsx(i,{variant:"warning",className:"text-[10px]",children:D}),L&&e.jsxs(i,{variant:L==="high"?"destructive":L==="medium"?"warning":"success",className:"text-[10px]",children:[L," ",a({id:"liteTasks.multiCli.risk"})]})]})]})}),k.map((n,x)=>{var b,O,V,d,w,q,C,P,T,E,I;const y=((O=(b=n.flow_control)==null?void 0:b.target_files)==null?void 0:O.length)||0,N=((d=(V=n.flow_control)==null?void 0:V.implementation_approach)==null?void 0:d.length)||0,B=((q=(w=n.context)==null?void 0:w.acceptance)==null?void 0:q.length)||0,J=((P=(C=n.context)==null?void 0:C.depends_on)==null?void 0:P.length)||0;return e.jsx(Q,{className:"cursor-pointer hover:shadow-sm hover:border-primary/50 transition-all border-border border-l-4 border-l-primary/50",onClick:S=>{S.stopPropagation(),h(n)},children:e.jsx(Z,{className:"p-3",children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[e.jsx(i,{className:"text-xs font-mono shrink-0 bg-primary/10 text-primary border-primary/20",children:n.task_id||`T${x+1}`}),e.jsx("h4",{className:"text-sm font-medium text-foreground line-clamp-1",children:n.title||a({id:"liteTasks.untitled"})})]}),e.jsxs("div",{className:"flex items-center gap-1.5 shrink-0",children:[((T=n.meta)==null?void 0:T.type)&&e.jsx(i,{variant:"info",className:"text-[10px] px-1.5 py-0 whitespace-nowrap",children:n.meta.type}),y>0&&e.jsxs(i,{variant:"secondary",className:"text-[10px] px-1.5 py-0 gap-0.5 whitespace-nowrap",children:[e.jsx(we,{className:"h-2.5 w-2.5"}),y," files"]}),N>0&&e.jsxs(i,{variant:"secondary",className:"text-[10px] px-1.5 py-0 whitespace-nowrap",children:[N," steps"]}),B>0&&e.jsxs(i,{variant:"secondary",className:"text-[10px] px-1.5 py-0 whitespace-nowrap",children:[B," criteria"]}),J>0&&e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("span",{className:"text-[10px] text-muted-foreground",children:"→"}),(I=(E=n.context)==null?void 0:E.depends_on)==null?void 0:I.map((S,ee)=>e.jsx(i,{variant:"outline",className:"text-[10px] px-1.5 py-0 font-mono border-primary/30 text-primary whitespace-nowrap",children:S},ee))]})]})]})})},n.id||x)})]}),o==="discussion"&&e.jsx("div",{className:"space-y-3",children:s.rounds&&s.rounds.length>0?s.rounds.map((n,x)=>e.jsx(os,{round:n,isLast:x===s.rounds.length-1},n.round||x)):e.jsx(Q,{className:"border-border",children:e.jsxs(Z,{className:"p-4",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[e.jsx(ce,{className:"h-5 w-5 text-primary"}),e.jsx("h4",{className:"font-medium text-foreground",children:a({id:"liteTasks.multiCli.discussionRounds"})}),e.jsxs(i,{variant:"secondary",className:"text-xs",children:[g," ",a({id:"liteTasks.rounds"})]})]}),e.jsx("p",{className:"text-sm text-muted-foreground",children:a({id:"liteTasks.multiCli.discussionDescription"})}),v&&e.jsx("div",{className:"mt-3 p-3 bg-muted/50 rounded-lg",children:e.jsx("p",{className:"text-sm text-foreground",children:v})})]})})}),o==="context"&&e.jsxs("div",{className:"space-y-3",children:[p&&e.jsxs("div",{className:"flex items-center justify-center py-8 text-muted-foreground",children:[e.jsx(Ce,{className:"h-5 w-5 animate-spin mr-2"}),e.jsx("span",{className:"text-sm",children:a({id:"liteTasks.contextPanel.loading"})})]}),r&&!p&&e.jsxs("div",{className:"flex items-center gap-2 p-3 rounded-lg bg-destructive/10 border border-destructive/30 text-destructive text-sm",children:[e.jsx(pe,{className:"h-4 w-4 flex-shrink-0"}),a({id:"liteTasks.contextPanel.error"}),": ",r]}),!p&&!r&&u&&((F=u.context)!=null&&F.solution?e.jsx(ms,{data:u.context}):e.jsx(_e,{contextData:u,session:s})),!p&&!r&&!u&&!s.path&&e.jsxs("div",{className:"flex flex-col items-center justify-center py-8 text-center",children:[e.jsx(K,{className:"h-8 w-8 text-muted-foreground mb-2"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:a({id:"liteTasks.contextPanel.empty"})})]})]})]})}function As(){const s=Ae(),{subType:h,id:a}=Le(),{litePlan:o,liteFix:l,multiCliPlan:u,isLoading:f,error:p,refetch:M}=Ee(),{formatMessage:r}=Y(),[_,k]=j.useState("lite-plan"),[c,t]=j.useState(null),[m,g]=j.useState(null),A=j.useRef(!1),[$,H]=j.useState(""),[v,U]=j.useState("date"),[z,D]=j.useState("desc"),L=he(Ie),W=he(d=>d.toggleImmersiveMode),F=j.useCallback(d=>{let w=d;if($.trim()){const C=$.toLowerCase();w=d.filter(P=>{var T;return P.id.toLowerCase().includes(C)||((T=P.tasks)==null?void 0:T.some(E=>{var I,S;return((I=E.title)==null?void 0:I.toLowerCase().includes(C))||((S=E.task_id)==null?void 0:S.toLowerCase().includes(C))}))})}return[...w].sort((C,P)=>{var E,I;let T=0;switch(v){case"date":T=new Date(C.createdAt||0).getTime()-new Date(P.createdAt||0).getTime();break;case"name":T=C.id.localeCompare(P.id);break;case"tasks":T=(((E=C.tasks)==null?void 0:E.length)||0)-(((I=P.tasks)==null?void 0:I.length)||0);break}return z==="asc"?T:-T})},[$,v,z]),n=j.useMemo(()=>F(o),[o,F]),x=j.useMemo(()=>F(l),[l,F]),y=j.useMemo(()=>F(u),[u,F]);j.useEffect(()=>{var q;if(!a||A.current||f)return;const w=[...o,...l,...u].find(C=>C.id===a);if(w){A.current=!0,h==="lite-plan"?k("lite-plan"):h==="lite-fix"?k("lite-fix"):h==="multi-cli-plan"&&k("multi-cli-plan"),t(a);const C=(q=w.tasks)==null?void 0:q.find(P=>P.task_id===a||P.id===a);C&&g(C)}},[a,h,f,o,l,u]);const N=d=>{v===d?D(w=>w==="asc"?"desc":"asc"):(U(d),D("desc"))},B=()=>{s("/sessions")},J=d=>({decided:"success",converged:"success",plan_generated:"success",completed:"success",exploring:"info",initialized:"info",analyzing:"warning",debating:"warning",blocked:"destructive",conflict:"destructive"})[d||""]||"secondary",b=d=>{var I;const w=d.type==="lite-plan",q=((I=d.tasks)==null?void 0:I.length)||0,C=c===d.id,P=d.tasks||[],T={completed:P.filter(S=>S.status==="completed").length,inProgress:P.filter(S=>S.status==="in_progress").length,blocked:P.filter(S=>S.status==="blocked").length},E=P[0];return e.jsxs("div",{children:[e.jsx(Q,{className:"cursor-pointer hover:shadow-md transition-shadow",onClick:()=>t(C?null:d.id),children:e.jsxs(Z,{className:"p-4",children:[e.jsxs("div",{className:"flex items-center justify-between mb-3",children:[e.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[e.jsx("div",{className:"flex-shrink-0",children:C?e.jsx(te,{className:"h-5 w-5 text-muted-foreground"}):e.jsx(ae,{className:"h-5 w-5 text-muted-foreground"})}),e.jsx("div",{className:"flex-1 min-w-0",children:e.jsx("h3",{className:"font-bold text-foreground text-sm tracking-wide uppercase",children:d.id})})]}),e.jsxs(i,{variant:w?"secondary":"warning",className:"gap-1 flex-shrink-0",children:[w?e.jsx(ge,{className:"h-3 w-3"}):e.jsx(je,{className:"h-3 w-3"}),r({id:w?"liteTasks.type.plan":"liteTasks.type.fix"})]})]}),(E==null?void 0:E.title)&&e.jsx("div",{className:"mb-3 pb-3 border-b border-border/50",children:e.jsx("p",{className:"text-sm text-foreground line-clamp-1",children:E.title})}),e.jsxs("div",{className:"flex items-center flex-wrap gap-2 mb-3",children:[T.completed>0&&e.jsxs(i,{variant:"success",className:"gap-1 text-xs",children:[e.jsx(ne,{className:"h-3 w-3"}),T.completed," ",r({id:"liteTasks.status.completed"})]}),T.inProgress>0&&e.jsxs(i,{variant:"warning",className:"gap-1 text-xs",children:[e.jsx(Ne,{className:"h-3 w-3"}),T.inProgress," ",r({id:"liteTasks.status.inProgress"})]}),T.blocked>0&&e.jsxs(i,{variant:"destructive",className:"gap-1 text-xs",children:[e.jsx(re,{className:"h-3 w-3"}),T.blocked," ",r({id:"liteTasks.status.blocked"})]})]}),e.jsxs("div",{className:"flex items-center gap-4 text-xs text-muted-foreground",children:[d.createdAt&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(le,{className:"h-3.5 w-3.5"}),new Date(d.createdAt).toLocaleDateString()]}),q>0&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(ve,{className:"h-3.5 w-3.5"}),q," ",r({id:"liteTasks.tasksCount"})]})]})]})}),C&&d.tasks&&d.tasks.length>0&&e.jsx(ds,{session:d,onTaskClick:g})]},d.id)},O=d=>{const w=d.metadata||{},q=d.latestSynthesis||{},C=w.roundId||d.roundCount||1,P=cs(q.title)||r({id:"liteTasks.discussionTopic"}),T=q.status||d.status||"analyzing",E=w.timestamp||d.createdAt||"",I=d.tasks||[],S={completed:I.filter(se=>se.status==="completed").length,inProgress:I.filter(se=>se.status==="in_progress").length,blocked:I.filter(se=>se.status==="blocked").length,total:I.length},ee=c===d.id;return e.jsxs("div",{children:[e.jsx(Q,{className:"cursor-pointer hover:shadow-md transition-shadow",onClick:()=>t(ee?null:d.id),children:e.jsxs(Z,{className:"p-4",children:[e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[e.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[e.jsx("div",{className:"flex-shrink-0",children:ee?e.jsx(te,{className:"h-5 w-5 text-muted-foreground"}):e.jsx(ae,{className:"h-5 w-5 text-muted-foreground"})}),e.jsx("div",{className:"flex-1 min-w-0",children:e.jsx("h3",{className:"font-bold text-foreground text-sm tracking-wide uppercase",children:d.id})})]}),e.jsxs(i,{variant:"secondary",className:"gap-1 flex-shrink-0",children:[e.jsx(ce,{className:"h-3 w-3"}),r({id:"liteTasks.type.multiCli"})]})]}),e.jsxs("div",{className:"flex items-center gap-1 text-xs text-muted-foreground mb-3",children:[e.jsx(ke,{className:"h-4 w-4"}),e.jsx("span",{className:"line-clamp-1",children:P})]}),S.total>0&&e.jsxs("div",{className:"flex items-center flex-wrap gap-2 mb-3",children:[S.completed>0&&e.jsxs(i,{variant:"success",className:"gap-1 text-xs",children:[e.jsx(ne,{className:"h-3 w-3"}),S.completed," ",r({id:"liteTasks.status.completed"})]}),S.inProgress>0&&e.jsxs(i,{variant:"warning",className:"gap-1 text-xs",children:[e.jsx(Ne,{className:"h-3 w-3"}),S.inProgress," ",r({id:"liteTasks.status.inProgress"})]}),S.blocked>0&&e.jsxs(i,{variant:"destructive",className:"gap-1 text-xs",children:[e.jsx(re,{className:"h-3 w-3"}),S.blocked," ",r({id:"liteTasks.status.blocked"})]})]}),e.jsxs("div",{className:"flex items-center gap-3 text-xs text-muted-foreground",children:[E&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(le,{className:"h-3.5 w-3.5"}),new Date(E).toLocaleDateString()]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(ss,{className:"h-3.5 w-3.5"}),C," ",r({id:"liteTasks.rounds"})]}),e.jsxs(i,{variant:J(T),className:"gap-1",children:[e.jsx(ze,{className:"h-3 w-3"}),T]})]})]})}),ee&&e.jsx(xs,{session:d,onTaskClick:g})]},d.id)};if(f)return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsxs(X,{variant:"ghost",size:"sm",disabled:!0,children:[e.jsx(ue,{className:"h-4 w-4 mr-2"}),r({id:"common.actions.back"})]}),e.jsx("div",{className:"h-8 w-64 rounded bg-muted animate-pulse"})]}),e.jsx("div",{className:"h-64 rounded-lg bg-muted animate-pulse"})]});if(p)return e.jsxs("div",{className:"flex items-center gap-2 p-4 rounded-lg bg-destructive/10 border border-destructive/30 text-destructive",children:[e.jsx(pe,{className:"h-5 w-5 flex-shrink-0"}),e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"text-sm font-medium",children:r({id:"common.errors.loadFailed"})}),e.jsx("p",{className:"text-xs mt-0.5",children:p.message})]}),e.jsx(X,{variant:"outline",size:"sm",onClick:()=>M(),children:r({id:"common.actions.retry"})})]});const V=o.length+l.length+u.length;return e.jsxs("div",{className:fe("space-y-6",L&&"h-screen overflow-hidden"),children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsxs(X,{variant:"ghost",size:"sm",onClick:B,children:[e.jsx(ue,{className:"h-4 w-4 mr-2"}),r({id:"common.actions.back"})]}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-semibold text-foreground",children:r({id:"liteTasks.title"})}),e.jsx("p",{className:"text-sm text-muted-foreground",children:r({id:"liteTasks.subtitle"},{count:V})})]})]}),e.jsx("button",{onClick:W,className:fe("p-2 rounded-md transition-colors",L?"bg-primary/10 text-primary":"text-muted-foreground hover:text-foreground hover:bg-muted"),title:L?"Exit Fullscreen":"Fullscreen",children:L?e.jsx(De,{className:"w-4 h-4"}):e.jsx(Be,{className:"w-4 h-4"})})]}),e.jsx(Oe,{value:_,onValueChange:d=>k(d),tabs:[{value:"lite-plan",label:r({id:"liteTasks.type.plan"}),icon:e.jsx(ge,{className:"h-4 w-4"}),badge:e.jsx(i,{variant:"secondary",className:"ml-2",children:o.length})},{value:"lite-fix",label:r({id:"liteTasks.type.fix"}),icon:e.jsx(je,{className:"h-4 w-4"}),badge:e.jsx(i,{variant:"secondary",className:"ml-2",children:l.length})},{value:"multi-cli-plan",label:r({id:"liteTasks.type.multiCli"}),icon:e.jsx(ce,{className:"h-4 w-4"}),badge:e.jsx(i,{variant:"secondary",className:"ml-2",children:u.length})}]}),e.jsxs("div",{className:"mt-4 flex flex-col sm:flex-row gap-3 items-start sm:items-center justify-between",children:[e.jsxs("div",{className:"relative flex-1 max-w-md",children:[e.jsx(ie,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),e.jsx("input",{type:"text",placeholder:r({id:"liteTasks.searchPlaceholder"}),value:$,onChange:d=>H(d.target.value),className:"w-full pl-10 pr-4 py-2 text-sm rounded-lg border border-border bg-background focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("span",{className:"text-xs text-muted-foreground flex items-center gap-1",children:[e.jsx(Ye,{className:"h-3.5 w-3.5"}),r({id:"liteTasks.sortBy"}),":"]}),e.jsxs(X,{variant:v==="date"?"secondary":"ghost",size:"sm",onClick:()=>N("date"),className:"h-8 px-3 text-xs gap-1",children:[e.jsx(le,{className:"h-3.5 w-3.5"}),r({id:"liteTasks.sort.date"}),v==="date"&&(z==="desc"?e.jsx(oe,{className:"h-3 w-3"}):e.jsx(me,{className:"h-3 w-3"}))]}),e.jsxs(X,{variant:v==="name"?"secondary":"ghost",size:"sm",onClick:()=>N("name"),className:"h-8 px-3 text-xs gap-1",children:[r({id:"liteTasks.sort.name"}),v==="name"&&(z==="desc"?e.jsx(oe,{className:"h-3 w-3"}):e.jsx(me,{className:"h-3 w-3"}))]}),e.jsxs(X,{variant:v==="tasks"?"secondary":"ghost",size:"sm",onClick:()=>N("tasks"),className:"h-8 px-3 text-xs gap-1",children:[e.jsx(ve,{className:"h-3.5 w-3.5"}),r({id:"liteTasks.sort.tasks"}),v==="tasks"&&(z==="desc"?e.jsx(oe,{className:"h-3 w-3"}):e.jsx(me,{className:"h-3 w-3"}))]})]})]}),_==="lite-plan"&&e.jsx("div",{className:"mt-4",children:o.length===0?e.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[e.jsx(de,{className:"h-12 w-12 text-muted-foreground mb-4"}),e.jsx("h3",{className:"text-lg font-medium text-foreground mb-2",children:r({id:"liteTasks.empty.title"},{type:"lite-plan"})}),e.jsx("p",{className:"text-sm text-muted-foreground",children:r({id:"liteTasks.empty.message"})})]}):n.length===0?e.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[e.jsx(ie,{className:"h-12 w-12 text-muted-foreground mb-4"}),e.jsx("h3",{className:"text-lg font-medium text-foreground mb-2",children:r({id:"liteTasks.noResults.title"})}),e.jsx("p",{className:"text-sm text-muted-foreground",children:r({id:"liteTasks.noResults.message"})})]}):e.jsx("div",{className:"grid gap-3",children:n.map(b)})}),_==="lite-fix"&&e.jsx("div",{className:"mt-4",children:l.length===0?e.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[e.jsx(de,{className:"h-12 w-12 text-muted-foreground mb-4"}),e.jsx("h3",{className:"text-lg font-medium text-foreground mb-2",children:r({id:"liteTasks.empty.title"},{type:"lite-fix"})}),e.jsx("p",{className:"text-sm text-muted-foreground",children:r({id:"liteTasks.empty.message"})})]}):x.length===0?e.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[e.jsx(ie,{className:"h-12 w-12 text-muted-foreground mb-4"}),e.jsx("h3",{className:"text-lg font-medium text-foreground mb-2",children:r({id:"liteTasks.noResults.title"})}),e.jsx("p",{className:"text-sm text-muted-foreground",children:r({id:"liteTasks.noResults.message"})})]}):e.jsx("div",{className:"grid gap-3",children:x.map(b)})}),_==="multi-cli-plan"&&e.jsx("div",{className:"mt-4",children:u.length===0?e.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[e.jsx(de,{className:"h-12 w-12 text-muted-foreground mb-4"}),e.jsx("h3",{className:"text-lg font-medium text-foreground mb-2",children:r({id:"liteTasks.empty.title"},{type:"multi-cli-plan"})}),e.jsx("p",{className:"text-sm text-muted-foreground",children:r({id:"liteTasks.empty.message"})})]}):y.length===0?e.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[e.jsx(ie,{className:"h-12 w-12 text-muted-foreground mb-4"}),e.jsx("h3",{className:"text-lg font-medium text-foreground mb-2",children:r({id:"liteTasks.noResults.title"})}),e.jsx("p",{className:"text-sm text-muted-foreground",children:r({id:"liteTasks.noResults.message"})})]}):e.jsx("div",{className:"grid gap-3",children:y.map(O)})}),e.jsx(He,{task:m,isOpen:!!m,onClose:()=>g(null)})]})}export{As as LiteTasksPage,As as default};
77
+ //# sourceMappingURL=LiteTasksPage-vD_8fQcR.js.map