claude-code-workflow 7.2.28 → 7.2.29

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 (225) hide show
  1. package/.codex/skills/brainstorm/SKILL.md +3 -3
  2. package/.codex/skills/clean/SKILL.md +3 -3
  3. package/.codex/skills/issue-discover/SKILL.md +13 -13
  4. package/.codex/skills/issue-discover/phases/02-discover.md +4 -4
  5. package/.codex/skills/issue-discover/phases/03-discover-by-prompt.md +3 -3
  6. package/.codex/skills/parallel-dev-cycle/SKILL.md +4 -4
  7. package/.codex/skills/parallel-dev-cycle/phases/02-agent-execution.md +6 -6
  8. package/.codex/skills/parallel-dev-cycle/phases/03-result-aggregation.md +10 -10
  9. package/.codex/skills/review-cycle/SKILL.md +10 -10
  10. package/.codex/skills/review-cycle/phases/02-parallel-review.md +6 -6
  11. package/.codex/skills/review-cycle/phases/04-iterative-deep-dive.md +4 -4
  12. package/.codex/skills/review-cycle/phases/07-fix-parallel-planning.md +4 -4
  13. package/.codex/skills/review-cycle/phases/08-fix-execution.md +2 -2
  14. package/.codex/skills/roadmap-with-file/SKILL.md +14 -14
  15. package/.codex/skills/spec-generator/README.md +1 -1
  16. package/.codex/skills/spec-generator/SKILL.md +184 -88
  17. package/.codex/skills/spec-generator/phases/01-5-requirement-clarification.md +4 -7
  18. package/.codex/skills/spec-generator/phases/01-discovery.md +30 -11
  19. package/.codex/skills/spec-generator/phases/02-product-brief.md +2 -5
  20. package/.codex/skills/spec-generator/phases/03-requirements.md +4 -6
  21. package/.codex/skills/spec-generator/phases/04-architecture.md +4 -6
  22. package/.codex/skills/spec-generator/phases/05-epics-stories.md +4 -6
  23. package/.codex/skills/spec-generator/phases/06-5-auto-fix.md +4 -5
  24. package/.codex/skills/spec-generator/phases/06-readiness-check.md +8 -8
  25. package/.codex/skills/spec-generator/phases/07-issue-export.md +2 -2
  26. package/.codex/skills/spec-setup/SKILL.md +4 -4
  27. package/.codex/skills/workflow-plan/SKILL.md +6 -6
  28. package/.codex/skills/workflow-tdd-plan/SKILL.md +5 -5
  29. package/.codex/skills/workflow-test-fix-cycle/SKILL.md +19 -19
  30. package/.codex/skills/workflow-test-fix-cycle/phases/01-test-fix-gen.md +5 -5
  31. package/.codex/skills/workflow-test-fix-cycle/phases/02-test-cycle-execute.md +5 -5
  32. package/ccw/frontend/dist/assets/{AlertDialog-BjP1ydDR.js → AlertDialog-exlTDW81.js} +3 -3
  33. package/ccw/frontend/dist/assets/{AlertDialog-BjP1ydDR.js.map → AlertDialog-exlTDW81.js.map} +1 -1
  34. package/ccw/frontend/dist/assets/{AnalysisPage-CAX3xqMf.js → AnalysisPage-cgV9LfAI.js} +2 -2
  35. package/ccw/frontend/dist/assets/{AnalysisPage-CAX3xqMf.js.map → AnalysisPage-cgV9LfAI.js.map} +1 -1
  36. package/ccw/frontend/dist/assets/{ApiSettingsPage-CtWlmztq.js → ApiSettingsPage-Dk5jJdWt.js} +2 -2
  37. package/ccw/frontend/dist/assets/{ApiSettingsPage-CtWlmztq.js.map → ApiSettingsPage-Dk5jJdWt.js.map} +1 -1
  38. package/ccw/frontend/dist/assets/{CliModeToggle-hR4a-eLX.js → CliModeToggle-Be9xsPiv.js} +2 -2
  39. package/ccw/frontend/dist/assets/{CliModeToggle-hR4a-eLX.js.map → CliModeToggle-Be9xsPiv.js.map} +1 -1
  40. package/ccw/frontend/dist/assets/{CliSessionSharePage-DzNPkFN9.js → CliSessionSharePage-Bh9jBtPI.js} +2 -2
  41. package/ccw/frontend/dist/assets/{CliSessionSharePage-DzNPkFN9.js.map → CliSessionSharePage-Bh9jBtPI.js.map} +1 -1
  42. package/ccw/frontend/dist/assets/{CliViewerPage-BPEGN4TT.js → CliViewerPage-BrE-oyEq.js} +2 -2
  43. package/ccw/frontend/dist/assets/{CliViewerPage-BPEGN4TT.js.map → CliViewerPage-BrE-oyEq.js.map} +1 -1
  44. package/ccw/frontend/dist/assets/{CodexLensPage-Cf0r2RHY.js → CodexLensPage-Cd3nrC93.js} +2 -2
  45. package/ccw/frontend/dist/assets/{CodexLensPage-Cf0r2RHY.js.map → CodexLensPage-Cd3nrC93.js.map} +1 -1
  46. package/ccw/frontend/dist/assets/{Collapsible-DEm1rJ4h.js → Collapsible-DXFl3VKF.js} +2 -2
  47. package/ccw/frontend/dist/assets/{Collapsible-DEm1rJ4h.js.map → Collapsible-DXFl3VKF.js.map} +1 -1
  48. package/ccw/frontend/dist/assets/{CommandsManagerPage-BpeWw8HO.js → CommandsManagerPage-IV8zpjgX.js} +2 -2
  49. package/ccw/frontend/dist/assets/{CommandsManagerPage-BpeWw8HO.js.map → CommandsManagerPage-IV8zpjgX.js.map} +1 -1
  50. package/ccw/frontend/dist/assets/{DeepWikiPage-BEsmh2vF.js → DeepWikiPage-CpDxtmRX.js} +2 -2
  51. package/ccw/frontend/dist/assets/{DeepWikiPage-BEsmh2vF.js.map → DeepWikiPage-CpDxtmRX.js.map} +1 -1
  52. package/ccw/frontend/dist/assets/{EndpointsPage-B30SFdtU.js → EndpointsPage-BchjWe7s.js} +2 -2
  53. package/ccw/frontend/dist/assets/{EndpointsPage-B30SFdtU.js.map → EndpointsPage-BchjWe7s.js.map} +1 -1
  54. package/ccw/frontend/dist/assets/{ExplorerPage-BVvMpg1O.js → ExplorerPage-CbWvaJ0y.js} +2 -2
  55. package/ccw/frontend/dist/assets/{ExplorerPage-BVvMpg1O.js.map → ExplorerPage-CbWvaJ0y.js.map} +1 -1
  56. package/ccw/frontend/dist/assets/{FixSessionPage-CL73dHbh.js → FixSessionPage-YMjVRiCk.js} +2 -2
  57. package/ccw/frontend/dist/assets/{FixSessionPage-CL73dHbh.js.map → FixSessionPage-YMjVRiCk.js.map} +1 -1
  58. package/ccw/frontend/dist/assets/{FloatingFileBrowser-BL-28lMZ.js → FloatingFileBrowser-JW2ehYY_.js} +2 -2
  59. package/ccw/frontend/dist/assets/{FloatingFileBrowser-BL-28lMZ.js.map → FloatingFileBrowser-JW2ehYY_.js.map} +1 -1
  60. package/ccw/frontend/dist/assets/{FloatingPanel-BzZDciHZ.js → FloatingPanel-BtqzqDVq.js} +2 -2
  61. package/ccw/frontend/dist/assets/{FloatingPanel-BzZDciHZ.js.map → FloatingPanel-BtqzqDVq.js.map} +1 -1
  62. package/ccw/frontend/dist/assets/{GraphExplorerPage-CDp6-d8P.js → GraphExplorerPage-BsJL_W4d.js} +3 -3
  63. package/ccw/frontend/dist/assets/{GraphExplorerPage-CDp6-d8P.js.map → GraphExplorerPage-BsJL_W4d.js.map} +1 -1
  64. package/ccw/frontend/dist/assets/{HistoryPage-fZY_7O9n.js → HistoryPage-BuWpQ7k5.js} +2 -2
  65. package/ccw/frontend/dist/assets/{HistoryPage-fZY_7O9n.js.map → HistoryPage-BuWpQ7k5.js.map} +1 -1
  66. package/ccw/frontend/dist/assets/{HookManagerPage-4LJeC9bq.js → HookManagerPage-D0BtMIWy.js} +2 -2
  67. package/ccw/frontend/dist/assets/{HookManagerPage-4LJeC9bq.js.map → HookManagerPage-D0BtMIWy.js.map} +1 -1
  68. package/ccw/frontend/dist/assets/{InstallationsPage-Bpigrbhw.js → InstallationsPage-C7dwsAKG.js} +2 -2
  69. package/ccw/frontend/dist/assets/{InstallationsPage-Bpigrbhw.js.map → InstallationsPage-C7dwsAKG.js.map} +1 -1
  70. package/ccw/frontend/dist/assets/{IssueHubPage-BP0zJc1R.js → IssueHubPage-D0nCNaeB.js} +2 -2
  71. package/ccw/frontend/dist/assets/{IssueHubPage-BP0zJc1R.js.map → IssueHubPage-D0nCNaeB.js.map} +1 -1
  72. package/ccw/frontend/dist/assets/{LiteTasksPage-CSt2oVKQ.js → LiteTasksPage-B5c2Kb9r.js} +3 -3
  73. package/ccw/frontend/dist/assets/{LiteTasksPage-CSt2oVKQ.js.map → LiteTasksPage-B5c2Kb9r.js.map} +1 -1
  74. package/ccw/frontend/dist/assets/{McpManagerPage-B-xaMA0w.js → McpManagerPage-C-S5CehM.js} +2 -2
  75. package/ccw/frontend/dist/assets/{McpManagerPage-B-xaMA0w.js.map → McpManagerPage-C-S5CehM.js.map} +1 -1
  76. package/ccw/frontend/dist/assets/{MemoryPage-CJqo_7DY.js → MemoryPage-P_B0JVUQ.js} +2 -2
  77. package/ccw/frontend/dist/assets/{MemoryPage-CJqo_7DY.js.map → MemoryPage-P_B0JVUQ.js.map} +1 -1
  78. package/ccw/frontend/dist/assets/{NotFoundPage-ibZeQA-Y.js → NotFoundPage-S4Jn9LUE.js} +2 -2
  79. package/ccw/frontend/dist/assets/{NotFoundPage-ibZeQA-Y.js.map → NotFoundPage-S4Jn9LUE.js.map} +1 -1
  80. package/ccw/frontend/dist/assets/{OrchestratorPage-DgJ4ctPQ.js → OrchestratorPage-C2Zlr7AC.js} +2 -2
  81. package/ccw/frontend/dist/assets/{OrchestratorPage-DgJ4ctPQ.js.map → OrchestratorPage-C2Zlr7AC.js.map} +1 -1
  82. package/ccw/frontend/dist/assets/{ProjectOverviewPage-Cit0Yq0D.js → ProjectOverviewPage-CMVfz8s5.js} +2 -2
  83. package/ccw/frontend/dist/assets/{ProjectOverviewPage-Cit0Yq0D.js.map → ProjectOverviewPage-CMVfz8s5.js.map} +1 -1
  84. package/ccw/frontend/dist/assets/{PromptHistoryPage-Ce1HDIK0.js → PromptHistoryPage-YEMjFARX.js} +3 -3
  85. package/ccw/frontend/dist/assets/{PromptHistoryPage-Ce1HDIK0.js.map → PromptHistoryPage-YEMjFARX.js.map} +1 -1
  86. package/ccw/frontend/dist/assets/{ReviewSessionPage-J1KikNrk.js → ReviewSessionPage-DnTm55nG.js} +2 -2
  87. package/ccw/frontend/dist/assets/{ReviewSessionPage-J1KikNrk.js.map → ReviewSessionPage-DnTm55nG.js.map} +1 -1
  88. package/ccw/frontend/dist/assets/{RulesManagerPage-CdBjTmth.js → RulesManagerPage-CUwebtO2.js} +2 -2
  89. package/ccw/frontend/dist/assets/{RulesManagerPage-CdBjTmth.js.map → RulesManagerPage-CUwebtO2.js.map} +1 -1
  90. package/ccw/frontend/dist/assets/{SessionDetailPage-B9ZK7LvX.js → SessionDetailPage-0qyH1Z5P.js} +2 -2
  91. package/ccw/frontend/dist/assets/{SessionDetailPage-B9ZK7LvX.js.map → SessionDetailPage-0qyH1Z5P.js.map} +1 -1
  92. package/ccw/frontend/dist/assets/{SessionsPage-CW_nS5UR.js → SessionsPage-BpgP4087.js} +2 -2
  93. package/ccw/frontend/dist/assets/{SessionsPage-CW_nS5UR.js.map → SessionsPage-BpgP4087.js.map} +1 -1
  94. package/ccw/frontend/dist/assets/SettingsPage-C3SJajeT.js +150 -0
  95. package/ccw/frontend/dist/assets/SettingsPage-C3SJajeT.js.map +1 -0
  96. package/ccw/frontend/dist/assets/SkillsManagerPage-vD9PTsmy.js +7 -0
  97. package/ccw/frontend/dist/assets/SkillsManagerPage-vD9PTsmy.js.map +1 -0
  98. package/ccw/frontend/dist/assets/{SpecsSettingsPage-DJpi9XQL.js → SpecsSettingsPage-DT-yTVkD.js} +4 -4
  99. package/ccw/frontend/dist/assets/{SpecsSettingsPage-DJpi9XQL.js.map → SpecsSettingsPage-DT-yTVkD.js.map} +1 -1
  100. package/ccw/frontend/dist/assets/{Switch-Ac6Ov7uy.js → Switch-CYSPdqWk.js} +2 -2
  101. package/ccw/frontend/dist/assets/{Switch-Ac6Ov7uy.js.map → Switch-CYSPdqWk.js.map} +1 -1
  102. package/ccw/frontend/dist/assets/{TabsNavigation-DZAAspqR.js → TabsNavigation-CPh6Zor1.js} +2 -2
  103. package/ccw/frontend/dist/assets/{TabsNavigation-DZAAspqR.js.map → TabsNavigation-CPh6Zor1.js.map} +1 -1
  104. package/ccw/frontend/dist/assets/{TaskDrawer-BJkwfhIZ.js → TaskDrawer-Ds-8830B.js} +2 -2
  105. package/ccw/frontend/dist/assets/{TaskDrawer-BJkwfhIZ.js.map → TaskDrawer-Ds-8830B.js.map} +1 -1
  106. package/ccw/frontend/dist/assets/{TeamPage-BJgjxBgb.js → TeamPage-CJODUxBk.js} +2 -2
  107. package/ccw/frontend/dist/assets/{TeamPage-BJgjxBgb.js.map → TeamPage-CJODUxBk.js.map} +1 -1
  108. package/ccw/frontend/dist/assets/{TerminalDashboardPage-D1WekoOy.js → TerminalDashboardPage-Cn3fGUuO.js} +3 -3
  109. package/ccw/frontend/dist/assets/{TerminalDashboardPage-D1WekoOy.js.map → TerminalDashboardPage-Cn3fGUuO.js.map} +1 -1
  110. package/ccw/frontend/dist/assets/{archive-DxemgIhF.js → archive-CjwVpw6k.js} +2 -2
  111. package/ccw/frontend/dist/assets/{archive-DxemgIhF.js.map → archive-CjwVpw6k.js.map} +1 -1
  112. package/ccw/frontend/dist/assets/{archive-restore-CjS83f1V.js → archive-restore-2vZa9Ic3.js} +2 -2
  113. package/ccw/frontend/dist/assets/{archive-restore-CjS83f1V.js.map → archive-restore-2vZa9Ic3.js.map} +1 -1
  114. package/ccw/frontend/dist/assets/{arrow-right-B5PUcn8I.js → arrow-right-CUU5XDgT.js} +2 -2
  115. package/ccw/frontend/dist/assets/{arrow-right-B5PUcn8I.js.map → arrow-right-CUU5XDgT.js.map} +1 -1
  116. package/ccw/frontend/dist/assets/{bookmark-plus-DCc9aPbb.js → bookmark-plus-Cc3nKRZ5.js} +2 -2
  117. package/ccw/frontend/dist/assets/{bookmark-plus-DCc9aPbb.js.map → bookmark-plus-Cc3nKRZ5.js.map} +1 -1
  118. package/ccw/frontend/dist/assets/{bot-DOwFtzak.js → bot-BwpSRDUa.js} +2 -2
  119. package/ccw/frontend/dist/assets/{bot-DOwFtzak.js.map → bot-BwpSRDUa.js.map} +1 -1
  120. package/ccw/frontend/dist/assets/{braces-96qH3aFh.js → braces-DBzUW1XC.js} +2 -2
  121. package/ccw/frontend/dist/assets/{braces-96qH3aFh.js.map → braces-DBzUW1XC.js.map} +1 -1
  122. package/ccw/frontend/dist/assets/{circle-stop-CCxSuil1.js → circle-stop-CGNNsjvE.js} +2 -2
  123. package/ccw/frontend/dist/assets/{circle-stop-CCxSuil1.js.map → circle-stop-CGNNsjvE.js.map} +1 -1
  124. package/ccw/frontend/dist/assets/{cpu-CZNSJFdq.js → cpu-D27G86Ul.js} +2 -2
  125. package/ccw/frontend/dist/assets/{cpu-CZNSJFdq.js.map → cpu-D27G86Ul.js.map} +1 -1
  126. package/ccw/frontend/dist/assets/{ellipsis-vertical-h8xtvw2_.js → ellipsis-vertical-C1Ij47Yz.js} +2 -2
  127. package/ccw/frontend/dist/assets/{ellipsis-vertical-h8xtvw2_.js.map → ellipsis-vertical-C1Ij47Yz.js.map} +1 -1
  128. package/ccw/frontend/dist/assets/{eye-D3NY0bm6.js → eye-C6MOB7Au.js} +2 -2
  129. package/ccw/frontend/dist/assets/{eye-D3NY0bm6.js.map → eye-C6MOB7Au.js.map} +1 -1
  130. package/ccw/frontend/dist/assets/{eye-off-Cy2vkc8p.js → eye-off-BxfBlZ26.js} +2 -2
  131. package/ccw/frontend/dist/assets/{eye-off-Cy2vkc8p.js.map → eye-off-BxfBlZ26.js.map} +1 -1
  132. package/ccw/frontend/dist/assets/{file-json-Bzq3U1Mx.js → file-json-NI237wA-.js} +2 -2
  133. package/ccw/frontend/dist/assets/{file-json-Bzq3U1Mx.js.map → file-json-NI237wA-.js.map} +1 -1
  134. package/ccw/frontend/dist/assets/{file-text-DwuwPDPi.js → file-text-Byn2_2v6.js} +2 -2
  135. package/ccw/frontend/dist/assets/{file-text-DwuwPDPi.js.map → file-text-Byn2_2v6.js.map} +1 -1
  136. package/ccw/frontend/dist/assets/{filter-q9g-bknU.js → filter-D-7PhZjx.js} +2 -2
  137. package/ccw/frontend/dist/assets/{filter-q9g-bknU.js.map → filter-D-7PhZjx.js.map} +1 -1
  138. package/ccw/frontend/dist/assets/{folder-CL6vb42J.js → folder-BoAsK_FL.js} +2 -2
  139. package/ccw/frontend/dist/assets/{folder-CL6vb42J.js.map → folder-BoAsK_FL.js.map} +1 -1
  140. package/ccw/frontend/dist/assets/{gauge-BkrcQBly.js → gauge-DCSxJIS4.js} +2 -2
  141. package/ccw/frontend/dist/assets/{gauge-BkrcQBly.js.map → gauge-DCSxJIS4.js.map} +1 -1
  142. package/ccw/frontend/dist/assets/{globe-BQbwyNeV.js → globe-CHS3prza.js} +2 -2
  143. package/ccw/frontend/dist/assets/{globe-BQbwyNeV.js.map → globe-CHS3prza.js.map} +1 -1
  144. package/ccw/frontend/dist/assets/{grid-3x3-x5_7DrN7.js → grid-3x3-D7K35U7S.js} +2 -2
  145. package/ccw/frontend/dist/assets/{grid-3x3-x5_7DrN7.js.map → grid-3x3-D7K35U7S.js.map} +1 -1
  146. package/ccw/frontend/dist/assets/{hard-drive-DTyWXwzf.js → hard-drive-eq9xE07G.js} +2 -2
  147. package/ccw/frontend/dist/assets/{hard-drive-DTyWXwzf.js.map → hard-drive-eq9xE07G.js.map} +1 -1
  148. package/ccw/frontend/dist/assets/{hash-80O0kJO7.js → hash-C1DMpBua.js} +2 -2
  149. package/ccw/frontend/dist/assets/{hash-80O0kJO7.js.map → hash-C1DMpBua.js.map} +1 -1
  150. package/ccw/frontend/dist/assets/{history-DDlN2Bwa.js → history-Di5SBCY-.js} +2 -2
  151. package/ccw/frontend/dist/assets/{history-DDlN2Bwa.js.map → history-Di5SBCY-.js.map} +1 -1
  152. package/ccw/frontend/dist/assets/{index-mbeo62f8.js → index--_R7COnA.js} +2 -2
  153. package/ccw/frontend/dist/assets/{index-mbeo62f8.js.map → index--_R7COnA.js.map} +1 -1
  154. package/ccw/frontend/dist/assets/{index-rLgoBCfV.js → index-BUol9HDD.js} +3 -3
  155. package/ccw/frontend/dist/assets/{index-rLgoBCfV.js.map → index-BUol9HDD.js.map} +1 -1
  156. package/ccw/frontend/dist/assets/{index-Bs80iCX0.js → index-CT9oykfw.js} +2 -2
  157. package/ccw/frontend/dist/assets/{index-Bs80iCX0.js.map → index-CT9oykfw.js.map} +1 -1
  158. package/ccw/frontend/dist/assets/{index-B9A3Hnrk.js → index-Ddwvf87H.js} +2 -2
  159. package/ccw/frontend/dist/assets/{index-B9A3Hnrk.js.map → index-Ddwvf87H.js.map} +1 -1
  160. package/ccw/frontend/dist/assets/{layout-grid-C1niOWJx.js → layout-grid-LiX0qZbN.js} +2 -2
  161. package/ccw/frontend/dist/assets/{layout-grid-C1niOWJx.js.map → layout-grid-LiX0qZbN.js.map} +1 -1
  162. package/ccw/frontend/dist/assets/{lightbulb-BTmI7SUg.js → lightbulb-CL3DVEwb.js} +2 -2
  163. package/ccw/frontend/dist/assets/{lightbulb-BTmI7SUg.js.map → lightbulb-CL3DVEwb.js.map} +1 -1
  164. package/ccw/frontend/dist/assets/{link-2-CB9HKeuZ.js → link-2-CC5cFeq6.js} +2 -2
  165. package/ccw/frontend/dist/assets/{link-2-CB9HKeuZ.js.map → link-2-CC5cFeq6.js.map} +1 -1
  166. package/ccw/frontend/dist/assets/{link-koEYiemK.js → link-ngFQ9bs0.js} +2 -2
  167. package/ccw/frontend/dist/assets/{link-koEYiemK.js.map → link-ngFQ9bs0.js.map} +1 -1
  168. package/ccw/frontend/dist/assets/{list-v2_GaLdC.js → list-BEU6I0KK.js} +2 -2
  169. package/ccw/frontend/dist/assets/{list-v2_GaLdC.js.map → list-BEU6I0KK.js.map} +1 -1
  170. package/ccw/frontend/dist/assets/{map-pin-BQNfAqG_.js → map-pin-BWZdLA6y.js} +2 -2
  171. package/ccw/frontend/dist/assets/{map-pin-BQNfAqG_.js.map → map-pin-BWZdLA6y.js.map} +1 -1
  172. package/ccw/frontend/dist/assets/{messages-square-Dzq5LGg9.js → messages-square-K6_Chm7n.js} +2 -2
  173. package/ccw/frontend/dist/assets/{messages-square-Dzq5LGg9.js.map → messages-square-K6_Chm7n.js.map} +1 -1
  174. package/ccw/frontend/dist/assets/{minimize-2-CtkoJXcz.js → minimize-2-CWkphauf.js} +2 -2
  175. package/ccw/frontend/dist/assets/{minimize-2-CtkoJXcz.js.map → minimize-2-CWkphauf.js.map} +1 -1
  176. package/ccw/frontend/dist/assets/{package-CH3smL37.js → package-DrNgkamn.js} +2 -2
  177. package/ccw/frontend/dist/assets/{package-CH3smL37.js.map → package-DrNgkamn.js.map} +1 -1
  178. package/ccw/frontend/dist/assets/{plug-CZ0aL_yF.js → plug-CMo3sw5_.js} +2 -2
  179. package/ccw/frontend/dist/assets/{plug-CZ0aL_yF.js.map → plug-CMo3sw5_.js.map} +1 -1
  180. package/ccw/frontend/dist/assets/{power-F2A_J4l6.js → power-DppNTW5e.js} +2 -2
  181. package/ccw/frontend/dist/assets/{power-F2A_J4l6.js.map → power-DppNTW5e.js.map} +1 -1
  182. package/ccw/frontend/dist/assets/{save-Byxot0YU.js → save-CD8aPMbZ.js} +2 -2
  183. package/ccw/frontend/dist/assets/{save-Byxot0YU.js.map → save-CD8aPMbZ.js.map} +1 -1
  184. package/ccw/frontend/dist/assets/{send-JjqhUkpw.js → send-B4z90fQD.js} +2 -2
  185. package/ccw/frontend/dist/assets/{send-JjqhUkpw.js.map → send-B4z90fQD.js.map} +1 -1
  186. package/ccw/frontend/dist/assets/{settings-2--SuN9rAt.js → settings-2-CAKRU_QC.js} +2 -2
  187. package/ccw/frontend/dist/assets/{settings-2--SuN9rAt.js.map → settings-2-CAKRU_QC.js.map} +1 -1
  188. package/ccw/frontend/dist/assets/{square-check-big-BbngGB2h.js → square-check-big-KhI3HrzX.js} +2 -2
  189. package/ccw/frontend/dist/assets/{square-check-big-BbngGB2h.js.map → square-check-big-KhI3HrzX.js.map} +1 -1
  190. package/ccw/frontend/dist/assets/{square-pen-CgrHgZSl.js → square-pen-BtdGIpuq.js} +2 -2
  191. package/ccw/frontend/dist/assets/{square-pen-CgrHgZSl.js.map → square-pen-BtdGIpuq.js.map} +1 -1
  192. package/ccw/frontend/dist/assets/{star-BU3TQr7Z.js → star-ZoBUkXoD.js} +2 -2
  193. package/ccw/frontend/dist/assets/{star-BU3TQr7Z.js.map → star-ZoBUkXoD.js.map} +1 -1
  194. package/ccw/frontend/dist/assets/{style-CKs7nnn3.js → style-CltxQP-P.js} +2 -2
  195. package/ccw/frontend/dist/assets/{style-CKs7nnn3.js.map → style-CltxQP-P.js.map} +1 -1
  196. package/ccw/frontend/dist/assets/{target-DW5tsDW6.js → target-C32OUSGf.js} +2 -2
  197. package/ccw/frontend/dist/assets/{target-DW5tsDW6.js.map → target-C32OUSGf.js.map} +1 -1
  198. package/ccw/frontend/dist/assets/{test-tube-BHm7w3ON.js → test-tube-0IxoyAVZ.js} +2 -2
  199. package/ccw/frontend/dist/assets/{test-tube-BHm7w3ON.js.map → test-tube-0IxoyAVZ.js.map} +1 -1
  200. package/ccw/frontend/dist/assets/{upload-DYR7PWwt.js → upload-4eKCkyBn.js} +2 -2
  201. package/ccw/frontend/dist/assets/{upload-DYR7PWwt.js.map → upload-4eKCkyBn.js.map} +1 -1
  202. package/ccw/frontend/dist/assets/{useApiSettings-D0TVgQD_.js → useApiSettings-zLTUWqhi.js} +2 -2
  203. package/ccw/frontend/dist/assets/{useApiSettings-D0TVgQD_.js.map → useApiSettings-zLTUWqhi.js.map} +1 -1
  204. package/ccw/frontend/dist/assets/{useCli-DfY8mAP8.js → useCli-BtN2vpOX.js} +2 -2
  205. package/ccw/frontend/dist/assets/{useCli-DfY8mAP8.js.map → useCli-BtN2vpOX.js.map} +1 -1
  206. package/ccw/frontend/dist/assets/{useCommands-CGusDp0F.js → useCommands-_spj49qL.js} +2 -2
  207. package/ccw/frontend/dist/assets/{useCommands-CGusDp0F.js.map → useCommands-_spj49qL.js.map} +1 -1
  208. package/ccw/frontend/dist/assets/{useDebounce-CIwh0fF1.js → useDebounce-Bm9KFZvd.js} +2 -2
  209. package/ccw/frontend/dist/assets/{useDebounce-CIwh0fF1.js.map → useDebounce-Bm9KFZvd.js.map} +1 -1
  210. package/ccw/frontend/dist/assets/{useFileExplorer-FMyFv39K.js → useFileExplorer-DOmpm6v9.js} +2 -2
  211. package/ccw/frontend/dist/assets/{useFileExplorer-FMyFv39K.js.map → useFileExplorer-DOmpm6v9.js.map} +1 -1
  212. package/ccw/frontend/dist/assets/{useLocale-B2qhsoTb.js → useLocale-D2rj4rea.js} +2 -2
  213. package/ccw/frontend/dist/assets/{useLocale-B2qhsoTb.js.map → useLocale-D2rj4rea.js.map} +1 -1
  214. package/ccw/frontend/dist/assets/{useSkills-cxKXMBm3.js → useSkills-OskEpomF.js} +3 -3
  215. package/ccw/frontend/dist/assets/{useSkills-cxKXMBm3.js.map → useSkills-OskEpomF.js.map} +1 -1
  216. package/ccw/frontend/dist/assets/{useSystemSettings-B-xUT_z-.js → useSystemSettings-BjMgsNSF.js} +2 -2
  217. package/ccw/frontend/dist/assets/{useSystemSettings-B-xUT_z-.js.map → useSystemSettings-BjMgsNSF.js.map} +1 -1
  218. package/ccw/frontend/dist/assets/{wand-sparkles-DZV_3lPr.js → wand-sparkles-CLhyYWa7.js} +2 -2
  219. package/ccw/frontend/dist/assets/{wand-sparkles-DZV_3lPr.js.map → wand-sparkles-CLhyYWa7.js.map} +1 -1
  220. package/ccw/frontend/dist/index.html +1 -1
  221. package/package.json +1 -1
  222. package/ccw/frontend/dist/assets/SettingsPage-B2PYzSoO.js +0 -150
  223. package/ccw/frontend/dist/assets/SettingsPage-B2PYzSoO.js.map +0 -1
  224. package/ccw/frontend/dist/assets/SkillsManagerPage-CTnWrrwp.js +0 -7
  225. package/ccw/frontend/dist/assets/SkillsManagerPage-CTnWrrwp.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import{ax as js,ay as $e,az as Ns,aA as vs,aB as ys,O as he,a9 as ee,aa as se,ab as H,aC as O,aD as bs,aE as ws,aF as Ss,aG as Je,aH as re,aI as Cs,aJ as ks,aK as Ts,aL as Ms,aM as Ps,u as T,r as m,j as e,C as _,a as Fs,B as S,l as L,aN as Ve,D as le,d as oe,e as N,f as ce,g as E,am as z,h as Y,T as We,c as y,aO as Es,aP as B,aQ as pe,aR as Is,U as Ds,x as fe,y as ge,z as je,A as Ne,i as _s,ae as Ge,N as ve,ap as $,ao as q,aS as ye,aw as Xe,av as Ls,W as te,K as Ye,k as As,aT as Os,M as $s,aU as qs,m as Ks,R as Z,I as de,aq as qe,ar as Ke,as as ze,at as Re,au as ne,al as zs,o as Be,s as Rs,b as Bs,X as Hs,v as Qs,E as Us,G as Js}from"./index-rLgoBCfV.js";import{M as Vs}from"./messages-square-Dzq5LGg9.js";import{F as Ws}from"./folder-CL6vb42J.js";import{F as A}from"./file-json-Bzq3U1Mx.js";import{H as be}from"./hash-80O0kJO7.js";import{E as Gs}from"./ellipsis-vertical-h8xtvw2_.js";import{E as Xs}from"./eye-D3NY0bm6.js";import{C as Ys}from"./cpu-CZNSJFdq.js";import{B as we}from"./bot-DOwFtzak.js";import{A as Zs}from"./archive-DxemgIhF.js";import{M as et,a as st}from"./minimize-2-CtkoJXcz.js";var tt=class extends js{constructor(s,a){super(s,a)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(s){super.setOptions({...s,behavior:$e()})}getOptimisticResult(s){return s.behavior=$e(),super.getOptimisticResult(s)}fetchNextPage(s){return this.fetch({...s,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(s){return this.fetch({...s,meta:{fetchMore:{direction:"backward"}}})}createResult(s,a){var g,u;const{state:l}=s,o=super.createResult(s,a),{isFetching:t,isRefetching:n,isError:i,isRefetchError:r}=o,f=(u=(g=l.fetchMeta)==null?void 0:g.fetchMore)==null?void 0:u.direction,c=i&&f==="forward",j=t&&f==="forward",v=i&&f==="backward",p=t&&f==="backward";return{...o,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:vs(a,l.data),hasPreviousPage:Ns(a,l.data),isFetchNextPageError:c,isFetchingNextPage:j,isFetchPreviousPageError:v,isFetchingPreviousPage:p,isRefetchError:r&&!c&&!v,isRefetching:n&&!j&&!p}}};function at(s,a){return ys(s,tt)}/**
1
+ import{ax as js,ay as $e,az as Ns,aA as vs,aB as ys,O as he,a9 as ee,aa as se,ab as H,aC as O,aD as bs,aE as ws,aF as Ss,aG as Je,aH as re,aI as Cs,aJ as ks,aK as Ts,aL as Ms,aM as Ps,u as T,r as m,j as e,C as _,a as Fs,B as S,l as L,aN as Ve,D as le,d as oe,e as N,f as ce,g as E,am as z,h as Y,T as We,c as y,aO as Es,aP as B,aQ as pe,aR as Is,U as Ds,x as fe,y as ge,z as je,A as Ne,i as _s,ae as Ge,N as ve,ap as $,ao as q,aS as ye,aw as Xe,av as Ls,W as te,K as Ye,k as As,aT as Os,M as $s,aU as qs,m as Ks,R as Z,I as de,aq as qe,ar as Ke,as as ze,at as Re,au as ne,al as zs,o as Be,s as Rs,b as Bs,X as Hs,v as Qs,E as Us,G as Js}from"./index-BUol9HDD.js";import{M as Vs}from"./messages-square-K6_Chm7n.js";import{F as Ws}from"./folder-BoAsK_FL.js";import{F as A}from"./file-json-NI237wA-.js";import{H as be}from"./hash-C1DMpBua.js";import{E as Gs}from"./ellipsis-vertical-C1Ij47Yz.js";import{E as Xs}from"./eye-C6MOB7Au.js";import{C as Ys}from"./cpu-D27G86Ul.js";import{B as we}from"./bot-BwpSRDUa.js";import{A as Zs}from"./archive-CjwVpw6k.js";import{M as et,a as st}from"./minimize-2-CWkphauf.js";var tt=class extends js{constructor(s,a){super(s,a)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(s){super.setOptions({...s,behavior:$e()})}getOptimisticResult(s){return s.behavior=$e(),super.getOptimisticResult(s)}fetchNextPage(s){return this.fetch({...s,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(s){return this.fetch({...s,meta:{fetchMore:{direction:"backward"}}})}createResult(s,a){var g,u;const{state:l}=s,o=super.createResult(s,a),{isFetching:t,isRefetching:n,isError:i,isRefetchError:r}=o,f=(u=(g=l.fetchMeta)==null?void 0:g.fetchMore)==null?void 0:u.direction,c=i&&f==="forward",j=t&&f==="forward",v=i&&f==="backward",p=t&&f==="backward";return{...o,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:vs(a,l.data),hasPreviousPage:Ns(a,l.data),isFetchNextPageError:c,isFetchingNextPage:j,isFetchPreviousPageError:v,isFetchingPreviousPage:p,isRefetchError:r&&!c&&!v,isRefetching:n&&!j&&!p}}};function at(s,a){return ys(s,tt)}/**
2
2
  * @license lucide-react v0.460.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -18,4 +18,4 @@ import{ax as js,ay as $e,az as Ns,aA as vs,aB as ys,O as he,a9 as ee,aa as se,ab
18
18
  `).forEach(r=>{t.push(` ${r}`)}),t.push(" response: |");const i=n.output.stdout||"";i?i.split(`
19
19
  `).forEach(r=>{t.push(` ${r}`)}):t.push(` ${l({id:"cli-manager.streamPanel.noOutput"})}`)}return t.join(`
20
20
  `)}return JSON.stringify(o.map(t=>({turn:t.turn,timestamp:t.timestamp,prompt:R(t.prompt),response:t.output.stdout||""})),null,2)}function Ct({turn:s,isLatest:a,isExpanded:l,onToggle:o}){const{formatMessage:t}=T(),n=Qe(s.status).icon,i=Qe(s.status).color;return e.jsxs(_,{className:y("overflow-hidden transition-all",a&&"ring-2 ring-primary/50 shadow-md"),children:[e.jsxs("div",{className:"flex items-center justify-between px-4 py-3 bg-muted/50 border-b cursor-pointer hover:bg-muted/70 transition-colors",onClick:o,role:"button","aria-expanded":l,tabIndex:0,onKeyDown:r=>{(r.key==="Enter"||r.key===" ")&&o()},children:[e.jsxs("div",{className:"flex items-center gap-2",children:[l?e.jsx($,{className:"h-4 w-4 text-muted-foreground"}):e.jsx(q,{className:"h-4 w-4 text-muted-foreground"}),e.jsxs("span",{className:"font-semibold text-sm",children:[t({id:"cli.details.turn"})," ",s.turn]}),a&&e.jsx(S,{variant:"default",className:"text-xs h-5 px-1.5",children:t({id:"cli-manager.streamPanel.latest"})})]}),e.jsxs("div",{className:"flex items-center gap-3 text-sm text-muted-foreground",children:[e.jsxs("span",{className:"flex items-center gap-1",title:t({id:"cli.details.timestamp"}),children:[e.jsx(L,{className:"h-3 w-3"}),new Date(s.timestamp).toLocaleTimeString()]}),e.jsxs("span",{className:y("flex items-center gap-1 font-medium",i),title:t({id:"cli.details.status"}),children:[e.jsx(n,{className:"h-3.5 w-3.5"}),s.status]}),e.jsx("span",{className:"font-mono text-xs",title:t({id:"cli.details.duration"}),children:ss(s.duration_ms)})]})]}),l&&e.jsxs("div",{className:"p-4 space-y-4",children:[e.jsxs("div",{children:[e.jsxs("h4",{className:"flex items-center gap-2 text-sm font-semibold mb-2 text-foreground",children:[e.jsx(ye,{className:"h-4 w-4 text-primary","aria-hidden":"true"}),t({id:"cli-manager.streamPanel.userPrompt"})]}),e.jsx("pre",{className:"p-3 bg-muted/50 rounded-lg text-sm whitespace-pre-wrap overflow-x-auto font-mono leading-relaxed",children:R(s.prompt)})]}),s.output.stdout&&e.jsxs("div",{children:[e.jsxs("h4",{className:"flex items-center gap-2 text-sm font-semibold mb-2 text-foreground",children:[e.jsx(we,{className:"h-4 w-4 text-blue-500","aria-hidden":"true"}),t({id:"cli-manager.streamPanel.assistantResponse"})]}),e.jsx("pre",{className:"p-3 bg-blue-500/5 dark:bg-blue-500/10 rounded-lg text-sm whitespace-pre-wrap overflow-x-auto font-mono leading-relaxed",children:s.output.stdout})]}),s.output.stderr&&e.jsxs("div",{children:[e.jsxs("h4",{className:"flex items-center gap-2 text-sm font-semibold mb-2 text-destructive",children:[e.jsx(Xe,{className:"h-4 w-4","aria-hidden":"true"}),t({id:"cli-manager.streamPanel.errors"})]}),e.jsx("pre",{className:"p-3 bg-destructive/10 rounded-lg text-sm whitespace-pre-wrap overflow-x-auto font-mono leading-relaxed text-destructive",children:s.output.stderr})]}),s.output.truncated&&e.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground p-3 bg-muted/50 rounded-lg border border-border/50",children:[e.jsx(Ls,{className:"h-4 w-4 flex-shrink-0","aria-hidden":"true"}),e.jsx("span",{children:t({id:"cli-manager.streamPanel.truncatedNotice"})})]})]})]})}function kt({turns:s}){const[a,l]=m.useState(()=>s.length===0?new Set:new Set([s[s.length-1].turn])),o=m.useCallback(t=>{l(n=>{const i=new Set(n);return i.has(t)?i.delete(t):i.add(t),i})},[]);return e.jsx("div",{className:"space-y-4",children:s.map((t,n)=>e.jsxs(m.Fragment,{children:[e.jsx(Ct,{turn:t,isLatest:n===s.length-1,isExpanded:a.has(t.turn),onToggle:()=>o(t.turn)}),n<s.length-1&&e.jsx("div",{className:"flex justify-center","aria-hidden":"true",children:e.jsx("div",{className:"w-px h-6 bg-border"})})]},t.turn))})}function Tt({prompt:s,format:a,onFormatChange:l}){const{formatMessage:o}=T();return e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("h4",{className:"flex items-center gap-2 text-sm font-semibold",children:[e.jsx(Ge,{className:"h-4 w-4","aria-hidden":"true"}),o({id:"cli-manager.streamPanel.concatenatedPrompt"})]}),e.jsx("div",{className:"flex gap-2",children:["plain","yaml","json"].map(t=>e.jsx(N,{size:"sm",variant:a===t?"default":"outline",onClick:()=>l(t),className:"h-7 px-2 text-xs",children:t.toUpperCase()},t))})]}),e.jsx("pre",{className:"p-4 bg-muted/50 rounded-lg text-sm whitespace-pre-wrap overflow-x-auto font-mono leading-relaxed max-h-[60vh] overflow-y-auto",children:s})]})}function ie(s){return s==null||s===0?"0":s>=1e6?`${(s/1e6).toFixed(1)}M`:s>=1e3?`${(s/1e3).toFixed(1)}K`:s.toLocaleString()}function Mt({tokens:s,className:a}){return e.jsxs("div",{className:y("flex items-center gap-3 text-xs text-muted-foreground",a),children:[e.jsxs("span",{className:"flex items-center gap-1",title:"Total tokens",children:[e.jsx(Ze,{className:"h-3 w-3"}),ie(s.total)]}),s.input!=null&&e.jsxs("span",{title:"Input tokens",children:["in: ",ie(s.input)]}),s.output!=null&&e.jsxs("span",{title:"Output tokens",children:["out: ",ie(s.output)]})]})}function Pt({toolCall:s,index:a}){return e.jsxs("details",{className:"group/tool border border-border/50 rounded-md overflow-hidden",children:[e.jsxs("summary",{className:"flex items-center gap-2 px-3 py-2 text-xs cursor-pointer hover:bg-muted/50 select-none",children:[e.jsx(te,{className:"h-3 w-3 text-muted-foreground flex-shrink-0"}),e.jsx("span",{className:"font-mono font-medium",children:s.name}),e.jsxs("span",{className:"text-muted-foreground",children:["#",a+1]})]}),e.jsxs("div",{className:"border-t border-border/50 divide-y divide-border/50",children:[s.arguments&&e.jsxs("div",{className:"p-3",children:[e.jsx("p",{className:"text-xs font-medium text-muted-foreground mb-1",children:"Input"}),e.jsx("pre",{className:"p-2 bg-muted/30 rounded text-xs whitespace-pre-wrap overflow-x-auto font-mono leading-relaxed max-h-40 overflow-y-auto",children:s.arguments})]}),s.output&&e.jsxs("div",{className:"p-3",children:[e.jsx("p",{className:"text-xs font-medium text-muted-foreground mb-1",children:"Output"}),e.jsx("pre",{className:"p-2 bg-muted/30 rounded text-xs whitespace-pre-wrap overflow-x-auto font-mono leading-relaxed max-h-40 overflow-y-auto",children:s.output})]})]})]})}function Ft({turn:s,isLatest:a,isExpanded:l,onToggle:o}){const{formatMessage:t}=T(),n=s.role==="user",i=n?ye:we;return e.jsxs(_,{className:y("overflow-hidden transition-all",n?"bg-muted/30":"bg-blue-500/5 dark:bg-blue-500/10",a&&"ring-2 ring-primary/50 shadow-md"),children:[e.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-b border-border/50 cursor-pointer hover:bg-muted/30 transition-colors",onClick:o,role:"button","aria-expanded":l,tabIndex:0,onKeyDown:r=>{(r.key==="Enter"||r.key===" ")&&o()},children:[e.jsxs("div",{className:"flex items-center gap-2",children:[l?e.jsx($,{className:"h-4 w-4 text-muted-foreground"}):e.jsx(q,{className:"h-4 w-4 text-muted-foreground"}),e.jsx(i,{className:y("h-4 w-4",n?"text-primary":"text-blue-500")}),e.jsx("span",{className:"font-semibold text-sm capitalize",children:s.role}),e.jsxs("span",{className:"text-xs text-muted-foreground",children:["#",s.turnNumber]}),a&&e.jsx(S,{variant:"default",className:"text-xs h-5 px-1.5",children:t({id:"cli-manager.streamPanel.latest"})})]}),e.jsxs("div",{className:"flex items-center gap-3 text-xs text-muted-foreground",children:[s.timestamp&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(L,{className:"h-3 w-3"}),new Date(s.timestamp).toLocaleTimeString()]}),s.tokens&&e.jsx(Mt,{tokens:s.tokens})]})]}),l&&e.jsxs("div",{className:"p-4 space-y-3",children:[s.content&&e.jsx("pre",{className:"p-3 bg-background/50 rounded-lg text-sm whitespace-pre-wrap overflow-x-auto font-mono leading-relaxed max-h-80 overflow-y-auto",children:R(s.content)}),s.thoughts&&s.thoughts.length>0&&e.jsxs("details",{className:"group/thoughts",open:!0,children:[e.jsxs("summary",{className:"flex items-center gap-2 text-sm cursor-pointer hover:text-foreground text-muted-foreground select-none py-1",children:[e.jsx(pe,{className:"h-4 w-4"}),e.jsx("span",{className:"font-medium",children:"Thoughts"}),e.jsxs("span",{className:"text-xs",children:["(",s.thoughts.length,")"]})]}),e.jsx("ul",{className:"mt-2 space-y-1 pl-6 text-sm text-muted-foreground list-disc",children:s.thoughts.map((r,f)=>e.jsx("li",{className:"leading-relaxed",children:r},f))})]}),s.toolCalls&&s.toolCalls.length>0&&e.jsxs("details",{className:"group/calls",children:[e.jsxs("summary",{className:"flex items-center gap-2 text-sm cursor-pointer hover:text-foreground text-muted-foreground select-none py-1",children:[e.jsx(te,{className:"h-4 w-4"}),e.jsx("span",{className:"font-medium",children:"Tool Calls"}),e.jsxs("span",{className:"text-xs",children:["(",s.toolCalls.length,")"]})]}),e.jsx("div",{className:"mt-2 space-y-2",children:s.toolCalls.map((r,f)=>e.jsx(Pt,{toolCall:r,index:f},f))})]})]})]})}function Et({turns:s}){const[a,l]=m.useState(()=>s.length===0?new Set:new Set([s[s.length-1].turnNumber])),o=m.useCallback(t=>{l(n=>{const i=new Set(n);return i.has(t)?i.delete(t):i.add(t),i})},[]);return s.length===0?e.jsx("div",{className:"flex items-center justify-center py-8 text-muted-foreground",children:"No native session data available"}):e.jsx("div",{className:"space-y-4",children:s.map((t,n)=>e.jsxs(m.Fragment,{children:[e.jsx(Ft,{turn:t,isLatest:n===s.length-1,isExpanded:a.has(t.turnNumber),onToggle:()=>o(t.turnNumber)}),n<s.length-1&&e.jsx("div",{className:"flex justify-center","aria-hidden":"true",children:e.jsx("div",{className:"w-px h-4 bg-border"})})]},t.turnNumber))})}function It({executionId:s,sourceDir:a,open:l,onOpenChange:o}){const{formatMessage:t}=T(),[n,i]=m.useState("per-turn"),[r,f]=m.useState("plain"),{data:c,isLoading:j}=ct(l?s:null),{data:v,isLoading:p}=es(n==="native"&&l?s:null),h=m.useMemo(()=>c!=null&&c.turns?St(c,r,t):"",[c,r,t]),g=m.useCallback(async(b,w)=>{try{await navigator.clipboard.writeText(b),console.log(`Copied ${w} to clipboard`)}catch(P){console.error("Failed to copy:",P)}},[]),u=m.useMemo(()=>c!=null&&c.turns?c.turns.reduce((b,w)=>b+w.duration_ms,0):0,[c]);return e.jsx(fe,{open:l,onOpenChange:o,children:e.jsxs(ge,{className:"max-w-4xl max-h-[85vh] overflow-hidden flex flex-col p-0",children:[e.jsxs(je,{className:"px-6 pt-6 pb-4 border-b shrink-0",children:[e.jsxs("div",{className:"flex items-center justify-between pr-8",children:[e.jsxs(Ne,{className:"flex items-center gap-2",children:[e.jsx(B,{className:"h-5 w-5"}),t({id:"cli-manager.executionDetails"})]}),c&&e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(S,{variant:Se(c.tool),title:t({id:"cli.details.tool"}),children:c.tool.toUpperCase()}),c.mode&&e.jsx(S,{variant:"secondary",title:t({id:"cli.details.mode"}),children:c.mode}),e.jsx("span",{className:"text-sm text-muted-foreground font-mono",title:t({id:"cli.details.duration"}),children:ss(u)})]})]}),c&&e.jsxs("div",{className:"flex items-center gap-4 text-xs text-muted-foreground mt-2",children:[e.jsxs("span",{className:"flex items-center gap-1",title:t({id:"cli.details.created"}),children:[e.jsx(_s,{className:"h-3 w-3"}),new Date(c.created_at).toLocaleString()]}),e.jsxs("span",{className:"flex items-center gap-1",title:t({id:"cli.details.id"}),children:[e.jsx(be,{className:"h-3 w-3"}),c.id.slice(0,8)]}),e.jsxs("span",{children:[c.turn_count," ",t({id:"cli-manager.streamPanel.turns"})]})]})]}),j?e.jsx("div",{className:"flex-1 flex items-center justify-center",children:e.jsx("div",{className:"text-muted-foreground",children:t({id:"cli-manager.streamPanel.loading"})})}):c!=null&&c.turns&&c.turns.length>0?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex items-center gap-2 px-6 py-3 border-b shrink-0",children:[e.jsxs(N,{size:"sm",variant:n==="per-turn"?"default":"outline",onClick:()=>i("per-turn"),className:"h-8",children:[e.jsx(Ge,{className:"h-4 w-4 mr-2"}),t({id:"cli-manager.streamPanel.perTurnView"})]}),c.turns.length>1&&e.jsxs(N,{size:"sm",variant:n==="concatenated"?"default":"outline",onClick:()=>i("concatenated"),className:"h-8",children:[e.jsx(z,{className:"h-4 w-4 mr-2"}),t({id:"cli-manager.streamPanel.concatenatedView"})]}),e.jsxs(N,{size:"sm",variant:n==="native"?"default":"outline",onClick:()=>i("native"),className:"h-8",children:[e.jsx(A,{className:"h-4 w-4 mr-2"}),t({id:"cli-manager.streamPanel.nativeView"})]})]}),e.jsx("div",{className:"flex-1 overflow-y-auto px-6 py-4",children:n==="per-turn"?e.jsx(kt,{turns:c.turns}):n==="concatenated"?e.jsx(Tt,{prompt:h,format:r,onFormatChange:f}):n==="native"?p?e.jsxs("div",{className:"flex items-center justify-center py-8",children:[e.jsx(ve,{className:"h-5 w-5 animate-spin mr-2"}),e.jsx("span",{className:"text-muted-foreground",children:"Loading native session..."})]}):v?e.jsx(Et,{turns:v.turns}):e.jsx("div",{className:"flex items-center justify-center py-8 text-muted-foreground",children:"No native session data available"}):null}),e.jsxs("div",{className:"flex items-center gap-2 px-6 py-4 border-t bg-muted/30 shrink-0",children:[e.jsxs(N,{size:"sm",variant:"outline",onClick:()=>g(c.id,"ID"),className:"h-8",children:[e.jsx(z,{className:"h-4 w-4 mr-2"}),t({id:"cli-manager.streamPanel.copyId"})]}),c.turns.length>1&&n==="concatenated"&&e.jsxs(N,{size:"sm",variant:"outline",onClick:()=>g(h,"prompt"),className:"h-8",children:[e.jsx(z,{className:"h-4 w-4 mr-2"}),t({id:"cli-manager.streamPanel.copyPrompt"})]})]})]}):e.jsx("div",{className:"flex-1 flex items-center justify-center text-muted-foreground",children:t({id:"cli-manager.streamPanel.noDetails"})})]})})}const xe={all:["nativeSessionPath"],details:()=>[...xe.all,"detail"],detail:s=>[...xe.details(),s]},Dt=300*1e3,_t=1800*1e3;function Lt(s,a,l={}){const{staleTime:o=Dt,gcTime:t=_t,enabled:n=!0}=l,i=H({queryKey:xe.detail(s),queryFn:()=>{if(!s)throw new Error("filePath is required");return Os({filePath:s,tool:a})},enabled:!!s&&n,staleTime:o,gcTime:t,refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1,retry:2,retryDelay:f=>Math.min(1e3*2**f,1e4)}),r=async()=>{await i.refetch()};return{data:i.data,isLoading:i.isLoading,isFetching:i.isFetching,error:i.error,refetch:r}}function At(s){return typeof s=="string"?s:s&&typeof s=="object"?JSON.stringify(s):String(s??"")}function D(s){return s==null||s===0?"0":s>=1e6?`${(s/1e6).toFixed(1)}M`:s>=1e3?`${(s/1e3).toFixed(1)}K`:s.toLocaleString()}function Ot(s){switch(s){case"completed":case"success":return e.jsx($s,{className:"h-3.5 w-3.5 text-green-500"});case"error":case"failed":return e.jsx(Ye,{className:"h-3.5 w-3.5 text-destructive"});case"running":case"pending":return e.jsx(ve,{className:"h-3.5 w-3.5 text-blue-500 animate-spin"});default:return e.jsx(te,{className:"h-3.5 w-3.5 text-muted-foreground"})}}function $t(s){switch(s){case"completed":case"success":return"success";case"error":case"failed":return"warning";case"running":case"pending":return"info";default:return"secondary"}}function ts({tokens:s,className:a}){const{formatMessage:l}=T(),o=s.total||0,t=s.input||0,n=s.output||0,i=s.cached||0,r=o>0?t/o*100:0,f=o>0?n/o*100:0,c=o>0?i/o*100:0;return e.jsxs("div",{className:y("space-y-1.5",a),children:[e.jsxs("div",{className:"flex h-2 w-full rounded-full overflow-hidden bg-muted",children:[t>0&&e.jsx("div",{className:"bg-blue-500/80",style:{width:`${r}%`},title:l({id:"nativeSession.timeline.tokens.input",defaultMessage:"Input: {count}"},{count:D(t)})}),n>0&&e.jsx("div",{className:"bg-green-500/80",style:{width:`${f}%`},title:l({id:"nativeSession.timeline.tokens.output",defaultMessage:"Output: {count}"},{count:D(n)})}),i>0&&e.jsx("div",{className:"bg-amber-500/80",style:{width:`${c}%`},title:l({id:"nativeSession.timeline.tokens.cached",defaultMessage:"Cached: {count}"},{count:D(i)})})]}),e.jsxs("div",{className:"flex items-center gap-3 text-xs text-muted-foreground",children:[e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Ze,{className:"h-3 w-3"}),D(o)]}),t>0&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(rt,{className:"h-3 w-3 text-blue-500"}),D(t)]}),n>0&&e.jsxs("span",{className:"text-green-600 dark:text-green-400",children:["out: ",D(n)]}),i>0&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Zs,{className:"h-3 w-3 text-amber-500"}),D(i)]})]})]})}function qt({toolCall:s,index:a}){const{formatMessage:l}=T(),[o,t]=m.useState(!1);return e.jsxs("div",{className:"border border-border/50 rounded-lg overflow-hidden",children:[e.jsxs("button",{type:"button",onClick:()=>t(!o),className:"w-full flex items-center justify-between px-3 py-2.5 text-sm hover:bg-muted/50 transition-colors","aria-expanded":o,"aria-controls":`toolcall-panel-${s.name}-${a}`,children:[e.jsxs("div",{className:"flex items-center gap-2",children:[o?e.jsx($,{className:"h-4 w-4 text-muted-foreground"}):e.jsx(q,{className:"h-4 w-4 text-muted-foreground"}),e.jsx("span",{"aria-label":s.output?"Tool completed":"Tool status unknown",children:Ot(s.output?"completed":void 0)}),e.jsx("span",{className:"font-mono font-medium",children:s.name}),e.jsxs("span",{className:"text-muted-foreground text-xs",children:["#",a+1]})]}),e.jsx(S,{variant:$t(s.output?"completed":void 0),className:"text-xs",children:l({id:"nativeSession.timeline.toolCall.completed",defaultMessage:"completed"})})]}),o&&e.jsxs("div",{id:`toolcall-panel-${s.name}-${a}`,className:"border-t border-border/50 divide-y divide-border/50",children:[s.arguments&&e.jsxs("div",{className:"p-3",children:[e.jsx("p",{className:"text-xs font-medium text-muted-foreground mb-1.5",children:l({id:"nativeSession.toolCall.input",defaultMessage:"Input"})}),e.jsx("pre",{className:"p-2.5 bg-muted/30 rounded-md text-xs whitespace-pre-wrap overflow-x-auto font-mono leading-relaxed max-h-48 overflow-y-auto",children:s.arguments})]}),s.output&&e.jsxs("div",{className:"p-3",children:[e.jsx("p",{className:"text-xs font-medium text-muted-foreground mb-1.5",children:l({id:"nativeSession.toolCall.output",defaultMessage:"Output"})}),e.jsx("pre",{className:"p-2.5 bg-muted/30 rounded-md text-xs whitespace-pre-wrap overflow-x-auto font-mono leading-relaxed max-h-48 overflow-y-auto",children:s.output})]}),!s.arguments&&!s.output&&e.jsx("div",{className:"p-3 text-xs text-muted-foreground italic",children:l({id:"nativeSession.timeline.toolCall.noData",defaultMessage:"No data available"})})]})]})}function Kt({turn:s,isLatest:a,isLast:l}){const{formatMessage:o}=T(),t=s.role==="user",n=t?ye:we;return e.jsxs("div",{className:"flex gap-4",children:[e.jsxs("div",{className:"flex flex-col items-center",children:[e.jsx("div",{className:y("flex items-center justify-center w-8 h-8 rounded-full border-2 shrink-0",t?"bg-primary/10 border-primary text-primary":"bg-blue-500/10 border-blue-500 text-blue-500",a&&"ring-2 ring-offset-2 ring-offset-background",a&&(t?"ring-primary/50":"ring-blue-500/50")),children:e.jsx(n,{className:"h-4 w-4"})}),!l&&e.jsx("div",{className:"w-0.5 flex-1 bg-border min-h-4","aria-hidden":"true"})]}),e.jsxs("div",{className:"flex-1 pb-6",children:[e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:y("font-semibold text-sm capitalize",t?"text-primary":"text-blue-500"),children:s.role}),e.jsx("span",{className:"text-xs text-muted-foreground",children:o({id:"nativeSession.timeline.turnNumber",defaultMessage:"Turn #{number}"},{number:s.turnNumber})}),a&&e.jsx(S,{variant:"default",className:"text-xs h-5 px-1.5",children:o({id:"nativeSession.turn.latest",defaultMessage:"Latest"})})]}),s.timestamp&&e.jsxs("span",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[e.jsx(L,{className:"h-3 w-3"}),new Date(s.timestamp).toLocaleTimeString()]})]}),e.jsxs("div",{className:y("rounded-lg border overflow-hidden",t?"bg-muted/30 border-border":"bg-blue-500/5 dark:bg-blue-500/10 border-blue-500/20"),children:[s.content&&e.jsx("div",{className:"p-4",children:e.jsx("pre",{className:"text-sm whitespace-pre-wrap overflow-x-auto font-mono leading-relaxed max-h-64 overflow-y-auto",children:At(s.content)})}),s.thoughts&&s.thoughts.length>0&&e.jsxs("details",{className:"group/thoughts border-t border-border/50",children:[e.jsxs("summary",{className:"flex items-center gap-2 px-4 py-2.5 text-sm cursor-pointer hover:bg-muted/30 select-none",children:[e.jsx(pe,{className:"h-4 w-4 text-purple-500"}),e.jsx("span",{className:"font-medium text-muted-foreground",children:o({id:"nativeSession.turn.thoughts",defaultMessage:"Thoughts"})}),e.jsxs("span",{className:"text-xs text-muted-foreground",children:["(",s.thoughts.length,")"]})]}),e.jsx("ul",{className:"px-4 pb-3 space-y-1 text-sm text-muted-foreground list-disc list-inside",children:s.thoughts.map((i,r)=>e.jsx("li",{className:"leading-relaxed pl-2",children:i},`thought-${s.turnNumber}-${r}`))})]}),s.toolCalls&&s.toolCalls.length>0&&e.jsxs("div",{className:"border-t border-border/50 p-4 space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground mb-2",children:[e.jsx(te,{className:"h-4 w-4"}),e.jsx("span",{className:"font-medium",children:o({id:"nativeSession.turn.toolCalls",defaultMessage:"Tool Calls"})}),e.jsxs("span",{className:"text-xs",children:["(",s.toolCalls.length,")"]})]}),s.toolCalls.map((i,r)=>e.jsx(qt,{toolCall:i,index:r},`toolcall-${s.turnNumber}-${i.name}-${r}`))]}),s.tokens&&e.jsx("div",{className:"border-t border-border/50 px-4 py-3",children:e.jsx(ts,{tokens:s.tokens})})]})]})]})}function zt({session:s,className:a}){const{formatMessage:l}=T(),o=s.turns||[];return e.jsxs("div",{className:y("space-y-0",a),children:[s.totalTokens&&e.jsxs("div",{className:"mb-6 p-4 rounded-lg bg-muted/30 border",children:[e.jsx("p",{className:"text-xs font-medium text-muted-foreground mb-2",children:l({id:"nativeSession.tokenSummary",defaultMessage:"Total Tokens"})}),e.jsx(ts,{tokens:s.totalTokens})]}),o.length>0?e.jsx("div",{className:"relative",children:o.map((t,n)=>e.jsx(Kt,{turn:t,isLatest:n===o.length-1,isLast:n===o.length-1},t.turnNumber))}):e.jsx("div",{className:"flex items-center justify-center py-12 text-muted-foreground",children:l({id:"nativeSession.empty",defaultMessage:"No session data available"})})]})}function Ue(s,a){return s.length<=a?s:s.slice(0,a)+"..."}async function Rt(s){try{return await navigator.clipboard.writeText(s),!0}catch{return!1}}function Bt({executionId:s,session:a,open:l,onOpenChange:o}){const{formatMessage:t}=T(),n=Lt(l&&a?a.filePath:null,a==null?void 0:a.tool),i=es(l&&!a&&s?s:null),{data:r,isLoading:f,error:c}=a?n:i,[j,v]=m.useState(null),p=m.useCallback(async(h,g)=>{await Rt(h)&&(v(g),setTimeout(()=>v(null),2e3))},[]);return e.jsx(fe,{open:l,onOpenChange:o,children:e.jsxs(ge,{className:"max-w-4xl max-h-[85vh] overflow-hidden flex flex-col p-0",children:[e.jsxs(je,{className:"px-6 pt-6 pb-4 border-b shrink-0",children:[e.jsxs("div",{className:"flex items-center justify-between pr-8",children:[e.jsxs(Ne,{className:"flex items-center gap-2",children:[e.jsx(A,{className:"h-5 w-5"}),t({id:"nativeSession.title",defaultMessage:"Native Session"})]}),(r||a)&&e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(S,{variant:Se((r==null?void 0:r.tool)||(a==null?void 0:a.tool)||"claude"),children:((r==null?void 0:r.tool)||(a==null?void 0:a.tool)||"unknown").toUpperCase()}),(r==null?void 0:r.model)&&e.jsx(S,{variant:"secondary",className:"text-xs",children:r.model}),((r==null?void 0:r.sessionId)||(a==null?void 0:a.sessionId))&&e.jsx("span",{className:"text-xs text-muted-foreground font-mono",title:(r==null?void 0:r.sessionId)||(a==null?void 0:a.sessionId),children:Ue((r==null?void 0:r.sessionId)||(a==null?void 0:a.sessionId)||"",16)})]})]}),(r||a)&&e.jsxs("div",{className:"flex flex-wrap items-center gap-4 text-xs text-muted-foreground mt-2",children:[e.jsxs("span",{className:"flex items-center gap-1",title:t({id:"nativeSession.meta.startTime",defaultMessage:"Start time"}),children:[e.jsx(L,{className:"h-3 w-3"}),new Date((r==null?void 0:r.startTime)||(a==null?void 0:a.createdAt)||"").toLocaleString()]}),((r==null?void 0:r.workingDir)||(a==null?void 0:a.projectHash))&&e.jsxs("span",{className:"flex items-center gap-1",title:t({id:"nativeSession.meta.workingDir",defaultMessage:"Working directory"}),children:[e.jsx(qs,{className:"h-3 w-3"}),e.jsx("span",{className:"font-mono max-w-48 truncate",children:(r==null?void 0:r.workingDir)||(a==null?void 0:a.projectHash)})]}),(r==null?void 0:r.projectHash)&&e.jsxs("span",{className:"flex items-center gap-1",title:t({id:"nativeSession.meta.projectHash",defaultMessage:"Project hash"}),children:[e.jsx(be,{className:"h-3 w-3"}),e.jsx("span",{className:"font-mono",children:Ue(r.projectHash,12)})]}),r&&e.jsxs("span",{children:[r.turns.length," ",t({id:"nativeSession.meta.turns",defaultMessage:"turns"})]})]})]}),f?e.jsx("div",{className:"flex-1 flex items-center justify-center py-16",children:e.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[e.jsx(ve,{className:"h-5 w-5 animate-spin"}),e.jsx("span",{children:t({id:"nativeSession.loading",defaultMessage:"Loading session..."})})]})}):c?e.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center py-16 gap-3",children:[e.jsxs("div",{className:"flex items-center gap-2 text-destructive",children:[e.jsx(Ks,{className:"h-5 w-5"}),e.jsx("span",{children:t({id:"nativeSession.error",defaultMessage:"Failed to load session"})})]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:t({id:"nativeSession.errorHint",defaultMessage:"The session file may have been moved or deleted."})})]}):r?e.jsx("div",{className:"flex-1 overflow-y-auto px-6 py-4",children:e.jsx(zt,{session:r})}):e.jsx("div",{className:"flex-1 flex items-center justify-center py-16 text-muted-foreground",children:t({id:"nativeSession.empty",defaultMessage:"No session data available"})}),r&&e.jsxs("div",{className:"flex items-center gap-2 px-6 py-4 border-t bg-muted/30 shrink-0",children:[e.jsxs(N,{size:"sm",variant:"outline",onClick:()=>p(r.sessionId,"sessionId"),className:"h-8",children:[e.jsx(z,{className:"h-4 w-4 mr-2"}),t(j==="sessionId"?{id:"nativeSession.footer.copied",defaultMessage:"Copied!"}:{id:"nativeSession.footer.copySessionId",defaultMessage:"Copy Session ID"})]}),e.jsxs(N,{size:"sm",variant:"outline",onClick:()=>{const h=JSON.stringify(r,null,2);p(h,"json")},className:"h-8",children:[e.jsx(A,{className:"h-4 w-4 mr-2"}),t(j==="json"?{id:"nativeSession.footer.copied",defaultMessage:"Copied!"}:{id:"nativeSession.footer.exportJson",defaultMessage:"Export JSON"})]})]})]})})}const Ht=["session_created","session_closed","session_send","session_execute","session_resize","session_share_created","session_share_revoked","session_idle_reaped"];function Qt(s){switch(s){case"session_created":return"success";case"session_closed":case"session_idle_reaped":return"secondary";case"session_execute":return"info";case"session_send":case"session_resize":return"outline";case"session_share_created":return"warning";case"session_share_revoked":return"secondary";default:return"default"}}function Ut(s,a){return`${s.timestamp}|${s.type}|${s.sessionKey??""}|${a}`}function Jt(){var Q,U,J;const{formatMessage:s}=T(),[a,l]=m.useState(""),[o,t]=m.useState(""),[n,i]=m.useState(""),[r,f]=m.useState(200),[c,j]=m.useState(0),[v,p]=m.useState(null);m.useEffect(()=>{j(0)},[a,o,n,r]);const h=it({q:a.trim()||void 0,sessionKey:o.trim()||void 0,type:n||void 0,limit:r,offset:c}),g=((Q=h.data)==null?void 0:Q.data.events)??[],u=((U=h.data)==null?void 0:U.data.total)??0,b=((J=h.data)==null?void 0:J.data.hasMore)??!1,w=m.useMemo(()=>{const x=u===0?0:c+1,I=Math.min(u,c+r);return`${x}-${I} / ${u}`},[r,c,u]),P=async()=>{try{await h.refetch()}catch{}};return e.jsxs("div",{className:"space-y-4",children:[e.jsx(_,{className:"p-4",children:e.jsxs("div",{className:"flex flex-col gap-3",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsx("div",{className:"text-sm font-semibold text-foreground",children:s({id:"issues.observability.audit.title"})}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"text-xs text-muted-foreground font-mono",children:w}),e.jsxs(N,{variant:"outline",size:"sm",onClick:P,disabled:h.isFetching,className:"gap-2",children:[e.jsx(Z,{className:y("h-4 w-4",h.isFetching&&"animate-spin")}),s({id:"common.actions.refresh"})]})]})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-3",children:[e.jsxs("div",{className:"md:col-span-2",children:[e.jsx("label",{className:"block text-xs font-medium text-muted-foreground mb-1",children:s({id:"issues.observability.filters.search"})}),e.jsx(de,{value:a,onChange:x=>l(x.target.value),placeholder:s({id:"issues.observability.filters.searchPlaceholder"})})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs font-medium text-muted-foreground mb-1",children:s({id:"issues.observability.filters.sessionKey"})}),e.jsx(de,{value:o,onChange:x=>t(x.target.value),placeholder:s({id:"issues.observability.filters.sessionKeyPlaceholder"})})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs font-medium text-muted-foreground mb-1",children:s({id:"issues.observability.filters.type"})}),e.jsxs(qe,{value:n||"__all__",onValueChange:x=>i(x==="__all__"?"":x),children:[e.jsx(Ke,{children:e.jsx(ze,{placeholder:s({id:"issues.observability.filters.typeAll"})})}),e.jsxs(Re,{children:[e.jsx(ne,{value:"__all__",children:s({id:"issues.observability.filters.typeAll"})}),Ht.map(x=>e.jsx(ne,{value:x,children:x},x))]})]})]})]}),e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("label",{className:"block text-xs font-medium text-muted-foreground",children:s({id:"issues.observability.filters.limit"})}),e.jsxs(qe,{value:String(r),onValueChange:x=>f(parseInt(x,10)),children:[e.jsx(Ke,{className:"w-[140px]",children:e.jsx(ze,{})}),e.jsx(Re,{children:[50,100,200,500,1e3].map(x=>e.jsx(ne,{value:String(x),children:x},x))})]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(N,{variant:"outline",size:"sm",onClick:()=>j(Math.max(0,c-r)),disabled:c===0||h.isFetching,children:s({id:"common.actions.previous"})}),e.jsx(N,{variant:"outline",size:"sm",onClick:()=>j(c+r),disabled:!b||h.isFetching,children:s({id:"common.actions.next"})})]})]})]})}),h.error&&e.jsx(_,{className:"p-6 border-destructive/50 bg-destructive/5",children:e.jsx("div",{className:"text-sm text-destructive",children:h.error.message||s({id:"issues.observability.error"})})}),!h.isLoading&&g.length===0&&e.jsx(_,{className:"p-10 text-center text-muted-foreground",children:s({id:"issues.observability.empty"})}),g.length>0&&e.jsxs(_,{className:"p-0 overflow-hidden",children:[e.jsxs("div",{className:"px-4 py-2 border-b border-border bg-card/50 text-xs font-medium text-muted-foreground grid grid-cols-12 gap-3",children:[e.jsx("div",{className:"col-span-3",children:s({id:"issues.observability.table.timestamp"})}),e.jsx("div",{className:"col-span-2",children:s({id:"issues.observability.table.type"})}),e.jsx("div",{className:"col-span-3",children:s({id:"issues.observability.table.sessionKey"})}),e.jsx("div",{className:"col-span-2",children:s({id:"issues.observability.table.tool"})}),e.jsx("div",{className:"col-span-2",children:s({id:"issues.observability.table.resumeKey"})})]}),e.jsx("div",{className:"divide-y divide-border",children:g.map((x,I)=>{const F=Ut(x,I),K=v===F;return e.jsxs("div",{className:"px-4 py-2",children:[e.jsxs("button",{type:"button",className:"w-full text-left grid grid-cols-12 gap-3 items-center hover:bg-muted/40 rounded-md px-2 py-2",onClick:()=>p(K?null:F),children:[e.jsxs("div",{className:"col-span-3 flex items-center gap-2 min-w-0",children:[K?e.jsx($,{className:"h-4 w-4 text-muted-foreground shrink-0"}):e.jsx(q,{className:"h-4 w-4 text-muted-foreground shrink-0"}),e.jsx("span",{className:"font-mono text-xs text-foreground truncate",children:x.timestamp})]}),e.jsx("div",{className:"col-span-2",children:e.jsx(S,{variant:Qt(x.type),className:"font-mono text-xs",children:x.type})}),e.jsx("div",{className:"col-span-3 font-mono text-xs text-muted-foreground truncate",children:x.sessionKey||"-"}),e.jsx("div",{className:"col-span-2 font-mono text-xs text-muted-foreground truncate",children:x.tool||"-"}),e.jsx("div",{className:"col-span-2 font-mono text-xs text-muted-foreground truncate",children:x.resumeKey||"-"})]}),K&&e.jsxs("div",{className:"mt-2 ml-6 space-y-2",children:[e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-2 text-xs",children:[e.jsxs("div",{className:"text-muted-foreground",children:[e.jsxs("span",{className:"font-medium text-foreground",children:[s({id:"issues.observability.table.workingDir"}),": "]}),e.jsx("span",{className:"font-mono break-all",children:x.workingDir||"-"})]}),e.jsxs("div",{className:"text-muted-foreground",children:[e.jsxs("span",{className:"font-medium text-foreground",children:[s({id:"issues.observability.table.ip"}),": "]}),e.jsx("span",{className:"font-mono break-all",children:x.ip||"-"})]})]}),x.userAgent&&e.jsxs("div",{className:"text-xs text-muted-foreground",children:[e.jsxs("span",{className:"font-medium text-foreground",children:[s({id:"issues.observability.table.userAgent"}),": "]}),e.jsx("span",{className:"font-mono break-all",children:x.userAgent})]}),e.jsx("pre",{className:"text-xs bg-muted/50 rounded-md p-3 overflow-x-auto",children:JSON.stringify(x.details??{},null,2)})]})]},F)})})]})]})}function na(){const{formatMessage:s}=T(),{error:a}=zs(),[l,o]=m.useState("executions"),[t,n]=m.useState(""),[i,r]=m.useState(void 0),[f,c]=m.useState(!1),[j,v]=m.useState(null),[p,h]=m.useState(null),[g,u]=m.useState(null),[b,w]=m.useState(!1),[P,Q]=m.useState(null),[U,J]=m.useState(null),[x,I]=m.useState(!1),F=Be(Rs),K=Be(d=>d.toggleImmersiveMode),{executions:V,isLoading:as,isFetching:Ce,error:ke,refetch:Te,deleteExecution:rs,deleteByTool:ns,deleteAll:is,isDeleting:W}=mt({filter:{search:t||void 0,tool:i}}),{sessions:Me,byTool:G,isLoading:ls,isFetching:Pe,isFetchingNextPage:ae,hasNextPage:os,error:Fe,fetchNextPage:cs,refetch:Ee}=pt(),[Ie,ds]=m.useState(new Set),De=d=>{ds(C=>{const M=new Set(C);return M.has(d)?M.delete(d):M.add(d),M})},_e=d=>{Q(d),I(!0)},Le=["gemini","qwen","codex","claude","opencode"],Ae=m.useMemo(()=>{const d=new Set(V.map(C=>C.tool));return Array.from(d).sort()},[V]),ms=()=>{n("")},Oe=()=>{n(""),r(void 0)},X=t.length>0||i!==void 0,us=d=>{u(d.id),w(!0)},xs=d=>{J(d.id),I(!0)},hs=d=>{v("single"),h(d),c(!0)},ps=d=>{v("tool"),h(d),c(!0)},fs=()=>{v("all"),h(null),c(!0)},gs=async()=>{try{j==="single"&&p?await rs(p):j==="tool"&&p?await ns(p):j==="all"&&await is(),c(!1),v(null),h(null)}catch(d){a(s({id:"history.deleteFailed"}),d instanceof Error?d.message:String(d)),console.error("Failed to delete:",d)}};return e.jsxs("div",{className:y("space-y-6",F&&"h-screen overflow-hidden"),children:[e.jsxs("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-semibold text-foreground",children:s({id:"history.title"})}),e.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:s({id:"history.description"})})]}),e.jsx("div",{className:"flex items-center gap-2",children:e.jsx("button",{onClick:K,className:y("p-2 rounded-md transition-colors",F?"bg-primary/10 text-primary":"text-muted-foreground hover:text-foreground hover:bg-muted"),title:F?"Exit Fullscreen":"Fullscreen",children:F?e.jsx(et,{className:"w-4 h-4"}):e.jsx(st,{className:"w-4 h-4"})})})]}),e.jsxs("div",{className:"flex gap-2 border-b border-border",children:[e.jsx(N,{variant:"ghost",className:y("border-b-2 rounded-none h-11 px-4",l==="executions"?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground"),onClick:()=>o("executions"),children:s({id:"history.tabs.executions"})}),e.jsx(N,{variant:"ghost",className:y("border-b-2 rounded-none h-11 px-4",l==="observability"?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground"),onClick:()=>o("observability"),children:s({id:"history.tabs.observability"})}),e.jsxs(N,{variant:"ghost",className:y("border-b-2 rounded-none h-11 px-4",l==="native-sessions"?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground"),onClick:()=>o("native-sessions"),children:[e.jsx(A,{className:"h-4 w-4 mr-2"}),s({id:"history.tabs.nativeSessions"})]})]}),l==="executions"&&e.jsxs("div",{className:"space-y-4",children:[ke&&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(B,{className:"h-5 w-5 flex-shrink-0"}),e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"text-sm font-medium",children:s({id:"common.errors.loadFailed"})}),e.jsx("p",{className:"text-xs mt-0.5",children:ke.message})]}),e.jsx(N,{variant:"outline",size:"sm",onClick:()=>Te(),children:s({id:"common.actions.retry"})})]}),e.jsxs("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-center",children:[e.jsxs("div",{className:"flex-1 max-w-sm relative",children:[e.jsx(Bs,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),e.jsx(de,{placeholder:s({id:"history.searchPlaceholder"}),value:t,onChange:d=>n(d.target.value),className:"pl-9 pr-9"}),t&&e.jsx("button",{onClick:ms,className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground",children:e.jsx(Hs,{className:"h-4 w-4"})})]}),e.jsxs(le,{children:[e.jsx(oe,{asChild:!0,children:e.jsx(N,{variant:"outline",size:"sm",className:"gap-2 min-w-[160px] justify-between",children:i||s({id:"history.filterAllTools"})})}),e.jsxs(ce,{align:"start",className:"w-48",children:[e.jsx(E,{onClick:()=>r(void 0),children:s({id:"history.filterAllTools"})}),e.jsx(Y,{}),Ae.map(d=>e.jsx(E,{onClick:()=>r(d),className:i===d?"bg-accent":"",children:d},d))]})]}),X&&e.jsx(N,{variant:"ghost",size:"sm",onClick:Oe,children:s({id:"common.actions.clearFilters"})}),e.jsxs(N,{variant:"outline",size:"sm",onClick:()=>Te(),disabled:Ce,children:[e.jsx(Z,{className:y("h-4 w-4 mr-2",Ce&&"animate-spin")}),s({id:"common.actions.refresh"})]}),e.jsxs(le,{children:[e.jsx(oe,{asChild:!0,children:e.jsxs(N,{variant:"outline",size:"sm",children:[e.jsx(We,{className:"h-4 w-4 mr-2"}),s({id:"history.deleteOptions"})]})}),e.jsxs(ce,{align:"end",children:[e.jsx(Qs,{children:s({id:"history.deleteBy"})}),e.jsx(Y,{}),Ae.map(d=>e.jsx(E,{onClick:()=>ps(d),children:s({id:"history.deleteAllTool"},{tool:d})},d)),e.jsx(Y,{}),e.jsxs(E,{onClick:fs,className:"text-destructive focus:text-destructive",children:[e.jsx(Xe,{className:"mr-2 h-4 w-4"}),s({id:"history.deleteAll"})]})]})]})]}),as?e.jsx("div",{className:"grid gap-3",children:Array.from({length:5}).map((d,C)=>e.jsx("div",{className:"h-28 rounded-lg bg-muted animate-pulse"},C))}):V.length===0?e.jsxs("div",{className:"flex flex-col items-center justify-center py-16 px-4",children:[e.jsx(nt,{className:"h-12 w-12 text-muted-foreground mb-4"}),e.jsx("h3",{className:"text-lg font-medium text-foreground mb-2",children:s(X?{id:"history.empty.filtered"}:{id:"history.empty.title"})}),e.jsx("p",{className:"text-sm text-muted-foreground text-center",children:s(X?{id:"history.empty.filteredMessage"}:{id:"history.empty.message"})}),X&&e.jsx(N,{variant:"outline",onClick:Oe,className:"mt-4",children:s({id:"common.actions.clearFilters"})})]}):e.jsx("div",{className:"grid gap-3",children:V.map(d=>e.jsx(jt,{execution:d,onClick:us,onViewNative:xs,onDelete:hs,actionsDisabled:W},d.id))})]}),l==="observability"&&e.jsx("div",{className:"mt-4",children:e.jsx(Jt,{})}),l==="native-sessions"&&e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:s({id:"history.nativeSessions.count"},{count:Me.length})}),e.jsxs(N,{variant:"outline",size:"sm",onClick:()=>Ee(),disabled:Pe&&!ae,children:[e.jsx(Z,{className:y("h-4 w-4 mr-2",Pe&&"animate-spin")}),s({id:"common.actions.refresh"})]})]}),Fe&&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(B,{className:"h-5 w-5 flex-shrink-0"}),e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"text-sm font-medium",children:s({id:"common.errors.loadFailed"})}),e.jsx("p",{className:"text-xs mt-0.5",children:Fe.message})]}),e.jsx(N,{variant:"outline",size:"sm",onClick:()=>Ee(),children:s({id:"common.actions.retry"})})]}),ls?e.jsx("div",{className:"grid gap-3",children:Array.from({length:3}).map((d,C)=>e.jsx("div",{className:"h-20 rounded-lg bg-muted animate-pulse"},C))}):Me.length===0?e.jsxs("div",{className:"flex flex-col items-center justify-center py-16 px-4",children:[e.jsx(A,{className:"h-12 w-12 text-muted-foreground mb-4"}),e.jsx("h3",{className:"text-lg font-medium text-foreground mb-2",children:s({id:"history.nativeSessions.empty.title"})}),e.jsx("p",{className:"text-sm text-muted-foreground text-center",children:s({id:"history.nativeSessions.empty.message"})})]}):e.jsxs("div",{className:"space-y-2",children:[Le.filter(d=>{var C;return((C=G[d])==null?void 0:C.length)>0}).map(d=>{const C=G[d],M=Ie.has(d);return e.jsxs("div",{className:"border rounded-lg",children:[e.jsx("button",{className:"w-full flex items-center justify-between px-4 py-3 hover:bg-muted/50 transition-colors",onClick:()=>De(d),children:e.jsxs("div",{className:"flex items-center gap-3",children:[M?e.jsx($,{className:"h-4 w-4 text-muted-foreground"}):e.jsx(q,{className:"h-4 w-4 text-muted-foreground"}),e.jsx(S,{variant:Se(d),children:d.toUpperCase()}),e.jsxs("span",{className:"text-sm text-muted-foreground",children:[C.length," ",s({id:"history.nativeSessions.sessions"})]})]})}),M&&e.jsx("div",{className:"border-t divide-y",children:C.map(k=>e.jsxs("button",{className:"w-full flex items-center justify-between px-4 py-3 hover:bg-muted/30 transition-colors text-left",onClick:()=>_e(k),children:[e.jsx("div",{className:"flex items-center gap-3 min-w-0",children:e.jsx("span",{className:"font-mono text-sm truncate max-w-48",title:k.sessionId,children:k.sessionId.length>24?k.sessionId.slice(0,24)+"...":k.sessionId})}),e.jsx("div",{className:"flex items-center gap-3 text-xs text-muted-foreground shrink-0",children:e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(L,{className:"h-3 w-3"}),new Date(k.updatedAt).toLocaleString()]})})]},k.sessionId))})]},d)}),Object.keys(G).filter(d=>!Le.includes(d)).sort().map(d=>{const C=G[d],M=Ie.has(d);return e.jsxs("div",{className:"border rounded-lg",children:[e.jsx("button",{className:"w-full flex items-center justify-between px-4 py-3 hover:bg-muted/50 transition-colors",onClick:()=>De(d),children:e.jsxs("div",{className:"flex items-center gap-3",children:[M?e.jsx($,{className:"h-4 w-4 text-muted-foreground"}):e.jsx(q,{className:"h-4 w-4 text-muted-foreground"}),e.jsx(S,{variant:"secondary",children:d.toUpperCase()}),e.jsxs("span",{className:"text-sm text-muted-foreground",children:[C.length," ",s({id:"history.nativeSessions.sessions"})]})]})}),M&&e.jsx("div",{className:"border-t divide-y",children:C.map(k=>e.jsxs("button",{className:"w-full flex items-center justify-between px-4 py-3 hover:bg-muted/30 transition-colors text-left",onClick:()=>_e(k),children:[e.jsx("div",{className:"flex items-center gap-3 min-w-0",children:e.jsx("span",{className:"font-mono text-sm truncate max-w-48",title:k.sessionId,children:k.sessionId.length>24?k.sessionId.slice(0,24)+"...":k.sessionId})}),e.jsx("div",{className:"flex items-center gap-3 text-xs text-muted-foreground shrink-0",children:e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(L,{className:"h-3 w-3"}),new Date(k.updatedAt).toLocaleString()]})})]},k.sessionId))})]},d)}),os&&e.jsx("div",{className:"flex justify-center pt-4",children:e.jsx(N,{variant:"outline",size:"sm",onClick:()=>cs(),disabled:ae,children:ae?e.jsxs(e.Fragment,{children:[e.jsx(Z,{className:"h-4 w-4 mr-2 animate-spin"}),s({id:"history.nativeSessions.loading",defaultMessage:"Loading..."})]}):s({id:"history.nativeSessions.loadMore",defaultMessage:"Load More"})})})]})]}),e.jsx(It,{executionId:g||"",open:b,onOpenChange:w}),e.jsx(Bt,{session:P,executionId:U||void 0,open:x,onOpenChange:I}),e.jsx(fe,{open:f,onOpenChange:c,children:e.jsxs(ge,{children:[e.jsxs(je,{children:[e.jsx(Ne,{children:s(j==="all"?{id:"history.dialog.deleteAllTitle"}:{id:"history.dialog.deleteTitle"})}),e.jsxs(Us,{children:[j==="all"&&s({id:"history.dialog.deleteAllMessage"}),j==="tool"&&s({id:"history.dialog.deleteToolMessage"},{tool:p}),j==="single"&&s({id:"history.dialog.deleteMessage"})]})]}),e.jsxs(Js,{children:[e.jsx(N,{variant:"outline",onClick:()=>c(!1),disabled:W,children:s({id:"common.actions.cancel"})}),e.jsx(N,{variant:"destructive",onClick:gs,disabled:W,children:s(W?{id:"common.status.deleting"}:{id:"common.actions.delete"})})]})]})})]})}export{na as HistoryPage,na as default};
21
- //# sourceMappingURL=HistoryPage-fZY_7O9n.js.map
21
+ //# sourceMappingURL=HistoryPage-BuWpQ7k5.js.map