@shepai/cli 1.155.0 → 1.156.0-pr485.030e6b4

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 (615) hide show
  1. package/README.md +276 -161
  2. package/apis/json-schema/Language.yaml +13 -0
  3. package/apis/json-schema/UserProfile.yaml +3 -0
  4. package/dist/packages/core/src/application/use-cases/agents/approve-agent-run.use-case.d.ts.map +1 -1
  5. package/dist/packages/core/src/application/use-cases/agents/approve-agent-run.use-case.js +5 -0
  6. package/dist/packages/core/src/application/use-cases/agents/reject-agent-run.use-case.d.ts.map +1 -1
  7. package/dist/packages/core/src/application/use-cases/agents/reject-agent-run.use-case.js +7 -0
  8. package/dist/packages/core/src/application/use-cases/features/check-and-unblock-features.use-case.d.ts.map +1 -1
  9. package/dist/packages/core/src/application/use-cases/features/check-and-unblock-features.use-case.js +11 -1
  10. package/dist/packages/core/src/application/use-cases/features/resume-feature.use-case.d.ts.map +1 -1
  11. package/dist/packages/core/src/application/use-cases/features/resume-feature.use-case.js +3 -0
  12. package/dist/packages/core/src/application/use-cases/features/start-feature.use-case.d.ts.map +1 -1
  13. package/dist/packages/core/src/application/use-cases/features/start-feature.use-case.js +5 -0
  14. package/dist/packages/core/src/domain/generated/output.d.ts +14 -0
  15. package/dist/packages/core/src/domain/generated/output.d.ts.map +1 -1
  16. package/dist/packages/core/src/domain/generated/output.js +11 -0
  17. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/settings.mapper.d.ts +1 -0
  18. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/settings.mapper.d.ts.map +1 -1
  19. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/settings.mapper.js +4 -2
  20. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/049-add-language-preference.d.ts +14 -0
  21. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/049-add-language-preference.d.ts.map +1 -0
  22. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/049-add-language-preference.js +19 -0
  23. package/dist/packages/core/src/infrastructure/repositories/sqlite-settings.repository.d.ts.map +1 -1
  24. package/dist/packages/core/src/infrastructure/repositories/sqlite-settings.repository.js +3 -2
  25. package/dist/src/presentation/cli/commands/_serve.command.d.ts.map +1 -1
  26. package/dist/src/presentation/cli/commands/_serve.command.js +5 -3
  27. package/dist/src/presentation/cli/commands/agent/approve.command.d.ts.map +1 -1
  28. package/dist/src/presentation/cli/commands/agent/approve.command.js +9 -4
  29. package/dist/src/presentation/cli/commands/agent/delete.command.d.ts.map +1 -1
  30. package/dist/src/presentation/cli/commands/agent/delete.command.js +9 -5
  31. package/dist/src/presentation/cli/commands/agent/index.d.ts.map +1 -1
  32. package/dist/src/presentation/cli/commands/agent/index.js +3 -1
  33. package/dist/src/presentation/cli/commands/agent/logs.command.d.ts.map +1 -1
  34. package/dist/src/presentation/cli/commands/agent/logs.command.js +7 -5
  35. package/dist/src/presentation/cli/commands/agent/ls.command.d.ts.map +1 -1
  36. package/dist/src/presentation/cli/commands/agent/ls.command.js +12 -10
  37. package/dist/src/presentation/cli/commands/agent/reject.command.d.ts.map +1 -1
  38. package/dist/src/presentation/cli/commands/agent/reject.command.js +10 -5
  39. package/dist/src/presentation/cli/commands/agent/resolve-run.d.ts.map +1 -1
  40. package/dist/src/presentation/cli/commands/agent/resolve-run.js +7 -2
  41. package/dist/src/presentation/cli/commands/agent/show.command.d.ts.map +1 -1
  42. package/dist/src/presentation/cli/commands/agent/show.command.js +8 -6
  43. package/dist/src/presentation/cli/commands/agent/stop.command.d.ts.map +1 -1
  44. package/dist/src/presentation/cli/commands/agent/stop.command.js +9 -4
  45. package/dist/src/presentation/cli/commands/daemon/start-daemon.d.ts.map +1 -1
  46. package/dist/src/presentation/cli/commands/daemon/start-daemon.js +10 -8
  47. package/dist/src/presentation/cli/commands/daemon/stop-daemon.d.ts.map +1 -1
  48. package/dist/src/presentation/cli/commands/daemon/stop-daemon.js +5 -3
  49. package/dist/src/presentation/cli/commands/feat/adopt.command.d.ts.map +1 -1
  50. package/dist/src/presentation/cli/commands/feat/adopt.command.js +14 -12
  51. package/dist/src/presentation/cli/commands/feat/approve.command.d.ts.map +1 -1
  52. package/dist/src/presentation/cli/commands/feat/approve.command.js +8 -6
  53. package/dist/src/presentation/cli/commands/feat/archive.command.d.ts.map +1 -1
  54. package/dist/src/presentation/cli/commands/feat/archive.command.js +10 -8
  55. package/dist/src/presentation/cli/commands/feat/del.command.d.ts.map +1 -1
  56. package/dist/src/presentation/cli/commands/feat/del.command.js +17 -15
  57. package/dist/src/presentation/cli/commands/feat/index.d.ts.map +1 -1
  58. package/dist/src/presentation/cli/commands/feat/index.js +2 -1
  59. package/dist/src/presentation/cli/commands/feat/logs.command.d.ts.map +1 -1
  60. package/dist/src/presentation/cli/commands/feat/logs.command.js +8 -6
  61. package/dist/src/presentation/cli/commands/feat/ls.command.d.ts.map +1 -1
  62. package/dist/src/presentation/cli/commands/feat/ls.command.js +14 -12
  63. package/dist/src/presentation/cli/commands/feat/new.command.d.ts.map +1 -1
  64. package/dist/src/presentation/cli/commands/feat/new.command.js +43 -37
  65. package/dist/src/presentation/cli/commands/feat/reject.command.d.ts.map +1 -1
  66. package/dist/src/presentation/cli/commands/feat/reject.command.js +11 -9
  67. package/dist/src/presentation/cli/commands/feat/resolve-waiting-feature.d.ts.map +1 -1
  68. package/dist/src/presentation/cli/commands/feat/resolve-waiting-feature.js +12 -5
  69. package/dist/src/presentation/cli/commands/feat/resume.command.d.ts.map +1 -1
  70. package/dist/src/presentation/cli/commands/feat/resume.command.js +8 -6
  71. package/dist/src/presentation/cli/commands/feat/review.command.d.ts.map +1 -1
  72. package/dist/src/presentation/cli/commands/feat/review.command.js +17 -15
  73. package/dist/src/presentation/cli/commands/feat/show.command.d.ts.map +1 -1
  74. package/dist/src/presentation/cli/commands/feat/show.command.js +89 -45
  75. package/dist/src/presentation/cli/commands/feat/start.command.d.ts.map +1 -1
  76. package/dist/src/presentation/cli/commands/feat/start.command.js +12 -10
  77. package/dist/src/presentation/cli/commands/feat/unarchive.command.d.ts.map +1 -1
  78. package/dist/src/presentation/cli/commands/feat/unarchive.command.js +8 -6
  79. package/dist/src/presentation/cli/commands/ide-open.command.d.ts.map +1 -1
  80. package/dist/src/presentation/cli/commands/ide-open.command.js +10 -5
  81. package/dist/src/presentation/cli/commands/install.command.d.ts.map +1 -1
  82. package/dist/src/presentation/cli/commands/install.command.js +29 -21
  83. package/dist/src/presentation/cli/commands/log-viewer.d.ts.map +1 -1
  84. package/dist/src/presentation/cli/commands/log-viewer.js +6 -3
  85. package/dist/src/presentation/cli/commands/repo/add.command.d.ts.map +1 -1
  86. package/dist/src/presentation/cli/commands/repo/add.command.js +12 -10
  87. package/dist/src/presentation/cli/commands/repo/index.d.ts.map +1 -1
  88. package/dist/src/presentation/cli/commands/repo/index.js +3 -1
  89. package/dist/src/presentation/cli/commands/repo/ls.command.d.ts.map +1 -1
  90. package/dist/src/presentation/cli/commands/repo/ls.command.js +11 -9
  91. package/dist/src/presentation/cli/commands/repo/resolve-repository.d.ts.map +1 -1
  92. package/dist/src/presentation/cli/commands/repo/resolve-repository.js +7 -2
  93. package/dist/src/presentation/cli/commands/repo/show.command.d.ts.map +1 -1
  94. package/dist/src/presentation/cli/commands/repo/show.command.js +21 -10
  95. package/dist/src/presentation/cli/commands/restart.command.d.ts.map +1 -1
  96. package/dist/src/presentation/cli/commands/restart.command.js +6 -4
  97. package/dist/src/presentation/cli/commands/run.command.d.ts.map +1 -1
  98. package/dist/src/presentation/cli/commands/run.command.js +21 -17
  99. package/dist/src/presentation/cli/commands/session/index.d.ts.map +1 -1
  100. package/dist/src/presentation/cli/commands/session/index.js +3 -1
  101. package/dist/src/presentation/cli/commands/session/ls.command.d.ts.map +1 -1
  102. package/dist/src/presentation/cli/commands/session/ls.command.js +11 -9
  103. package/dist/src/presentation/cli/commands/session/show.command.d.ts.map +1 -1
  104. package/dist/src/presentation/cli/commands/session/show.command.js +26 -18
  105. package/dist/src/presentation/cli/commands/settings/agent.command.d.ts.map +1 -1
  106. package/dist/src/presentation/cli/commands/settings/agent.command.js +12 -8
  107. package/dist/src/presentation/cli/commands/settings/ide.command.d.ts.map +1 -1
  108. package/dist/src/presentation/cli/commands/settings/ide.command.js +13 -7
  109. package/dist/src/presentation/cli/commands/settings/index.d.ts +1 -0
  110. package/dist/src/presentation/cli/commands/settings/index.d.ts.map +1 -1
  111. package/dist/src/presentation/cli/commands/settings/index.js +7 -3
  112. package/dist/src/presentation/cli/commands/settings/init.command.d.ts.map +1 -1
  113. package/dist/src/presentation/cli/commands/settings/init.command.js +8 -7
  114. package/dist/src/presentation/cli/commands/settings/language.command.d.ts +14 -0
  115. package/dist/src/presentation/cli/commands/settings/language.command.d.ts.map +1 -0
  116. package/dist/src/presentation/cli/commands/settings/language.command.js +79 -0
  117. package/dist/src/presentation/cli/commands/settings/model.command.d.ts.map +1 -1
  118. package/dist/src/presentation/cli/commands/settings/model.command.js +7 -6
  119. package/dist/src/presentation/cli/commands/settings/show.command.d.ts.map +1 -1
  120. package/dist/src/presentation/cli/commands/settings/show.command.js +4 -3
  121. package/dist/src/presentation/cli/commands/settings/workflow.command.d.ts.map +1 -1
  122. package/dist/src/presentation/cli/commands/settings/workflow.command.js +20 -18
  123. package/dist/src/presentation/cli/commands/start.command.d.ts.map +1 -1
  124. package/dist/src/presentation/cli/commands/start.command.js +5 -3
  125. package/dist/src/presentation/cli/commands/status.command.d.ts.map +1 -1
  126. package/dist/src/presentation/cli/commands/status.command.js +32 -24
  127. package/dist/src/presentation/cli/commands/stop.command.d.ts.map +1 -1
  128. package/dist/src/presentation/cli/commands/stop.command.js +4 -2
  129. package/dist/src/presentation/cli/commands/tools.command.d.ts.map +1 -1
  130. package/dist/src/presentation/cli/commands/tools.command.js +8 -4
  131. package/dist/src/presentation/cli/commands/ui.command.d.ts.map +1 -1
  132. package/dist/src/presentation/cli/commands/ui.command.js +12 -10
  133. package/dist/src/presentation/cli/commands/upgrade.command.d.ts.map +1 -1
  134. package/dist/src/presentation/cli/commands/upgrade.command.js +18 -13
  135. package/dist/src/presentation/cli/commands/version.command.d.ts.map +1 -1
  136. package/dist/src/presentation/cli/commands/version.command.js +5 -3
  137. package/dist/src/presentation/cli/i18n.d.ts +41 -0
  138. package/dist/src/presentation/cli/i18n.d.ts.map +1 -0
  139. package/dist/src/presentation/cli/i18n.js +100 -0
  140. package/dist/src/presentation/cli/index.js +13 -1
  141. package/dist/src/presentation/cli/ui/install-messages.d.ts.map +1 -1
  142. package/dist/src/presentation/cli/ui/install-messages.js +16 -6
  143. package/dist/src/presentation/tui/i18n.d.ts +24 -0
  144. package/dist/src/presentation/tui/i18n.d.ts.map +1 -0
  145. package/dist/src/presentation/tui/i18n.js +48 -0
  146. package/dist/src/presentation/tui/prompts/agent-select.prompt.d.ts +13 -31
  147. package/dist/src/presentation/tui/prompts/agent-select.prompt.d.ts.map +1 -1
  148. package/dist/src/presentation/tui/prompts/agent-select.prompt.js +17 -15
  149. package/dist/src/presentation/tui/prompts/auth-method.prompt.d.ts +7 -11
  150. package/dist/src/presentation/tui/prompts/auth-method.prompt.d.ts.map +1 -1
  151. package/dist/src/presentation/tui/prompts/auth-method.prompt.js +7 -5
  152. package/dist/src/presentation/tui/prompts/ide-select.prompt.d.ts.map +1 -1
  153. package/dist/src/presentation/tui/prompts/ide-select.prompt.js +2 -1
  154. package/dist/src/presentation/tui/prompts/prd-review-summary.prompt.d.ts.map +1 -1
  155. package/dist/src/presentation/tui/prompts/prd-review-summary.prompt.js +8 -6
  156. package/dist/src/presentation/tui/wizards/agent-config.wizard.d.ts.map +1 -1
  157. package/dist/src/presentation/tui/wizards/agent-config.wizard.js +2 -1
  158. package/dist/src/presentation/tui/wizards/github-import.wizard.d.ts.map +1 -1
  159. package/dist/src/presentation/tui/wizards/github-import.wizard.js +15 -11
  160. package/dist/src/presentation/tui/wizards/merge-review.wizard.d.ts.map +1 -1
  161. package/dist/src/presentation/tui/wizards/merge-review.wizard.js +10 -8
  162. package/dist/src/presentation/tui/wizards/onboarding/onboarding.wizard.d.ts.map +1 -1
  163. package/dist/src/presentation/tui/wizards/onboarding/onboarding.wizard.js +10 -7
  164. package/dist/src/presentation/tui/wizards/onboarding/steps/workflow-defaults.step.d.ts +0 -41
  165. package/dist/src/presentation/tui/wizards/onboarding/steps/workflow-defaults.step.d.ts.map +1 -1
  166. package/dist/src/presentation/tui/wizards/onboarding/steps/workflow-defaults.step.js +15 -15
  167. package/dist/src/presentation/tui/wizards/plan-review.wizard.d.ts.map +1 -1
  168. package/dist/src/presentation/tui/wizards/plan-review.wizard.js +10 -8
  169. package/dist/src/presentation/tui/wizards/prd-review.wizard.d.ts.map +1 -1
  170. package/dist/src/presentation/tui/wizards/prd-review.wizard.js +3 -2
  171. package/dist/src/presentation/web/app/(dashboard)/get-graph-data.d.ts.map +1 -1
  172. package/dist/src/presentation/web/app/(dashboard)/get-graph-data.js +4 -2
  173. package/dist/src/presentation/web/app/actions/create-feature.d.ts.map +1 -1
  174. package/dist/src/presentation/web/app/actions/create-feature.js +3 -0
  175. package/dist/src/presentation/web/app/layout.d.ts.map +1 -1
  176. package/dist/src/presentation/web/app/layout.js +5 -2
  177. package/dist/src/presentation/web/components/assistant-ui/thread.d.ts.map +1 -1
  178. package/dist/src/presentation/web/components/assistant-ui/thread.js +13 -10
  179. package/dist/src/presentation/web/components/common/add-repository-button/add-repository-button.d.ts.map +1 -1
  180. package/dist/src/presentation/web/components/common/add-repository-button/add-repository-button.js +3 -1
  181. package/dist/src/presentation/web/components/common/attachment-chip/attachment-chip.js +1 -1
  182. package/dist/src/presentation/web/components/common/base-drawer/base-drawer.d.ts.map +1 -1
  183. package/dist/src/presentation/web/components/common/base-drawer/base-drawer.js +5 -2
  184. package/dist/src/presentation/web/components/common/ci-status-badge/ci-status-badge.js +3 -3
  185. package/dist/src/presentation/web/components/common/control-center-drawer/adopt-branch-drawer.js +4 -4
  186. package/dist/src/presentation/web/components/common/control-center-drawer/feature-drawer-client.d.ts.map +1 -1
  187. package/dist/src/presentation/web/components/common/control-center-drawer/feature-drawer-client.js +7 -1
  188. package/dist/src/presentation/web/components/common/control-center-drawer/repository-drawer-client.js +1 -1
  189. package/dist/src/presentation/web/components/common/delete-feature-dialog/delete-feature-dialog.d.ts.map +1 -1
  190. package/dist/src/presentation/web/components/common/delete-feature-dialog/delete-feature-dialog.js +3 -1
  191. package/dist/src/presentation/web/components/common/deployment-status-badge/deployment-status-badge.js +2 -2
  192. package/dist/src/presentation/web/components/common/drawer-action-bar/drawer-action-bar.d.ts.map +1 -1
  193. package/dist/src/presentation/web/components/common/drawer-action-bar/drawer-action-bar.js +6 -2
  194. package/dist/src/presentation/web/components/common/empty-state/empty-state.stories.js +2 -2
  195. package/dist/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.d.ts.map +1 -1
  196. package/dist/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.js +34 -22
  197. package/dist/src/presentation/web/components/common/feature-drawer-tabs/activity-tab.d.ts.map +1 -1
  198. package/dist/src/presentation/web/components/common/feature-drawer-tabs/activity-tab.js +11 -7
  199. package/dist/src/presentation/web/components/common/feature-drawer-tabs/branch-sync-status.d.ts.map +1 -1
  200. package/dist/src/presentation/web/components/common/feature-drawer-tabs/branch-sync-status.js +3 -1
  201. package/dist/src/presentation/web/components/common/feature-drawer-tabs/feature-drawer-tabs.d.ts.map +1 -1
  202. package/dist/src/presentation/web/components/common/feature-drawer-tabs/feature-drawer-tabs.js +4 -2
  203. package/dist/src/presentation/web/components/common/feature-drawer-tabs/log-tab.d.ts.map +1 -1
  204. package/dist/src/presentation/web/components/common/feature-drawer-tabs/log-tab.js +5 -3
  205. package/dist/src/presentation/web/components/common/feature-drawer-tabs/overview-tab.d.ts.map +1 -1
  206. package/dist/src/presentation/web/components/common/feature-drawer-tabs/overview-tab.js +9 -5
  207. package/dist/src/presentation/web/components/common/feature-list-item/feature-list-item.js +1 -1
  208. package/dist/src/presentation/web/components/common/feature-node/feature-node-state-config.d.ts +2 -2
  209. package/dist/src/presentation/web/components/common/feature-node/feature-node-state-config.d.ts.map +1 -1
  210. package/dist/src/presentation/web/components/common/feature-node/feature-node-state-config.js +22 -22
  211. package/dist/src/presentation/web/components/common/feature-node/feature-node.d.ts.map +1 -1
  212. package/dist/src/presentation/web/components/common/feature-node/feature-node.js +49 -36
  213. package/dist/src/presentation/web/components/common/feature-node/feature-sessions-dropdown.d.ts.map +1 -1
  214. package/dist/src/presentation/web/components/common/feature-node/feature-sessions-dropdown.js +7 -3
  215. package/dist/src/presentation/web/components/common/feature-status-badges/feature-status-badges.d.ts.map +1 -1
  216. package/dist/src/presentation/web/components/common/feature-status-badges/feature-status-badges.js +4 -2
  217. package/dist/src/presentation/web/components/common/feature-status-config.d.ts +2 -1
  218. package/dist/src/presentation/web/components/common/feature-status-config.d.ts.map +1 -1
  219. package/dist/src/presentation/web/components/common/feature-status-config.js +6 -6
  220. package/dist/src/presentation/web/components/common/feature-status-group/feature-status-group.js +1 -1
  221. package/dist/src/presentation/web/components/common/floating-action-button/floating-action-button.d.ts.map +1 -1
  222. package/dist/src/presentation/web/components/common/floating-action-button/floating-action-button.js +4 -2
  223. package/dist/src/presentation/web/components/common/github-import-dialog/github-repo-browser.js +1 -1
  224. package/dist/src/presentation/web/components/common/merge-review/diff-view.js +2 -2
  225. package/dist/src/presentation/web/components/common/merge-review/merge-review.js +2 -2
  226. package/dist/src/presentation/web/components/common/prd-questionnaire/prd-questionnaire.js +3 -3
  227. package/dist/src/presentation/web/components/common/reject-feedback-dialog/reject-feedback-dialog.d.ts.map +1 -1
  228. package/dist/src/presentation/web/components/common/reject-feedback-dialog/reject-feedback-dialog.js +6 -4
  229. package/dist/src/presentation/web/components/common/repository-node/repository-node.d.ts.map +1 -1
  230. package/dist/src/presentation/web/components/common/repository-node/repository-node.js +18 -11
  231. package/dist/src/presentation/web/components/common/server-log-viewer/server-log-viewer.js +1 -1
  232. package/dist/src/presentation/web/components/common/task-progress-view/task-progress-view.d.ts.map +1 -1
  233. package/dist/src/presentation/web/components/common/task-progress-view/task-progress-view.js +7 -4
  234. package/dist/src/presentation/web/components/common/tech-decisions-review/tech-decisions-review.js +2 -2
  235. package/dist/src/presentation/web/components/common/version-badge/version-badge.d.ts.map +1 -1
  236. package/dist/src/presentation/web/components/common/version-badge/version-badge.js +3 -1
  237. package/dist/src/presentation/web/components/features/chat/ChatComposer.d.ts.map +1 -1
  238. package/dist/src/presentation/web/components/features/chat/ChatComposer.js +3 -1
  239. package/dist/src/presentation/web/components/features/chat/ChatMessageBubble.d.ts.map +1 -1
  240. package/dist/src/presentation/web/components/features/chat/ChatMessageBubble.js +7 -5
  241. package/dist/src/presentation/web/components/features/chat/ChatMessageList.js +1 -1
  242. package/dist/src/presentation/web/components/features/chat/ChatSheet.d.ts.map +1 -1
  243. package/dist/src/presentation/web/components/features/chat/ChatSheet.js +5 -3
  244. package/dist/src/presentation/web/components/features/chat/ChatTab.d.ts.map +1 -1
  245. package/dist/src/presentation/web/components/features/chat/ChatTab.js +5 -3
  246. package/dist/src/presentation/web/components/features/control-center/control-center-empty-state.d.ts.map +1 -1
  247. package/dist/src/presentation/web/components/features/control-center/control-center-empty-state.js +15 -11
  248. package/dist/src/presentation/web/components/features/control-center/control-center-inner.d.ts.map +1 -1
  249. package/dist/src/presentation/web/components/features/control-center/control-center-inner.js +14 -6
  250. package/dist/src/presentation/web/components/features/control-center/use-control-center-state.js +2 -2
  251. package/dist/src/presentation/web/components/features/control-center/welcome-agent-setup.d.ts.map +1 -1
  252. package/dist/src/presentation/web/components/features/control-center/welcome-agent-setup.js +8 -6
  253. package/dist/src/presentation/web/components/features/features-canvas/canvas-toolbar.d.ts.map +1 -1
  254. package/dist/src/presentation/web/components/features/features-canvas/canvas-toolbar.js +3 -1
  255. package/dist/src/presentation/web/components/features/features-canvas/features-canvas.d.ts.map +1 -1
  256. package/dist/src/presentation/web/components/features/features-canvas/features-canvas.js +4 -2
  257. package/dist/src/presentation/web/components/features/settings/AgentModelPicker/index.js +2 -2
  258. package/dist/src/presentation/web/components/features/settings/ModelPicker/index.js +2 -2
  259. package/dist/src/presentation/web/components/features/settings/agent-settings-section.js +1 -1
  260. package/dist/src/presentation/web/components/features/settings/language-settings-section.d.ts +5 -0
  261. package/dist/src/presentation/web/components/features/settings/language-settings-section.d.ts.map +1 -0
  262. package/dist/src/presentation/web/components/features/settings/language-settings-section.js +54 -0
  263. package/dist/src/presentation/web/components/features/settings/language-settings-section.stories.d.ts +18 -0
  264. package/dist/src/presentation/web/components/features/settings/language-settings-section.stories.d.ts.map +1 -0
  265. package/dist/src/presentation/web/components/features/settings/language-settings-section.stories.js +36 -0
  266. package/dist/src/presentation/web/components/features/settings/settings-page-client.d.ts.map +1 -1
  267. package/dist/src/presentation/web/components/features/settings/settings-page-client.js +89 -77
  268. package/dist/src/presentation/web/components/features/settings/timeout-slider.js +1 -1
  269. package/dist/src/presentation/web/components/features/skills/category-filter.js +1 -1
  270. package/dist/src/presentation/web/components/features/skills/skills-page-client.js +1 -1
  271. package/dist/src/presentation/web/components/features/tools/tool-card.js +1 -1
  272. package/dist/src/presentation/web/components/features/tools/tool-detail-drawer.js +2 -2
  273. package/dist/src/presentation/web/components/layouts/app-shell/app-shell.d.ts.map +1 -1
  274. package/dist/src/presentation/web/components/layouts/app-shell/app-shell.js +5 -1
  275. package/dist/src/presentation/web/components/layouts/app-sidebar/app-sidebar.d.ts.map +1 -1
  276. package/dist/src/presentation/web/components/layouts/app-sidebar/app-sidebar.js +13 -7
  277. package/dist/src/presentation/web/components/providers/i18n-provider.d.ts +17 -0
  278. package/dist/src/presentation/web/components/providers/i18n-provider.d.ts.map +1 -0
  279. package/dist/src/presentation/web/components/providers/i18n-provider.js +36 -0
  280. package/dist/src/presentation/web/components/ui/alert-dialog.js +1 -1
  281. package/dist/src/presentation/web/components/ui/alert.js +1 -1
  282. package/dist/src/presentation/web/components/ui/checkbox-group.js +1 -1
  283. package/dist/src/presentation/web/components/ui/command.js +1 -1
  284. package/dist/src/presentation/web/components/ui/dialog.d.ts.map +1 -1
  285. package/dist/src/presentation/web/components/ui/dialog.js +2 -2
  286. package/dist/src/presentation/web/components/ui/dialog.stories.js +1 -1
  287. package/dist/src/presentation/web/components/ui/drawer.d.ts.map +1 -1
  288. package/dist/src/presentation/web/components/ui/drawer.js +2 -8
  289. package/dist/src/presentation/web/components/ui/dropdown-menu.js +6 -6
  290. package/dist/src/presentation/web/components/ui/scroll-area.js +1 -1
  291. package/dist/src/presentation/web/components/ui/select.js +1 -1
  292. package/dist/src/presentation/web/components/ui/sheet.js +3 -3
  293. package/dist/src/presentation/web/components/ui/sidebar.d.ts.map +1 -1
  294. package/dist/src/presentation/web/components/ui/sidebar.js +15 -15
  295. package/dist/src/presentation/web/components/ui/switch.js +1 -1
  296. package/dist/src/presentation/web/hooks/use-graph-state.d.ts.map +1 -1
  297. package/dist/src/presentation/web/hooks/use-graph-state.js +7 -4
  298. package/dist/src/presentation/web/hooks/use-sound-action.stories.js +1 -1
  299. package/dist/src/presentation/web/lib/i18n.d.ts +15 -0
  300. package/dist/src/presentation/web/lib/i18n.d.ts.map +1 -0
  301. package/dist/src/presentation/web/lib/i18n.js +64 -0
  302. package/dist/src/presentation/web/lib/language.d.ts +23 -0
  303. package/dist/src/presentation/web/lib/language.d.ts.map +1 -0
  304. package/dist/src/presentation/web/lib/language.js +37 -0
  305. package/dist/src/presentation/web/lib/layout-with-dagre.d.ts +2 -0
  306. package/dist/src/presentation/web/lib/layout-with-dagre.d.ts.map +1 -1
  307. package/dist/src/presentation/web/lib/layout-with-dagre.js +4 -0
  308. package/dist/src/presentation/web/lib/rtl-fonts.d.ts +19 -0
  309. package/dist/src/presentation/web/lib/rtl-fonts.d.ts.map +1 -0
  310. package/dist/src/presentation/web/lib/rtl-fonts.js +51 -0
  311. package/dist/translations/ar/cli.json +613 -0
  312. package/dist/translations/ar/common.json +55 -0
  313. package/dist/translations/ar/tui.json +130 -0
  314. package/dist/translations/ar/web.json +594 -0
  315. package/dist/translations/de/cli.json +613 -0
  316. package/dist/translations/de/common.json +55 -0
  317. package/dist/translations/de/tui.json +109 -0
  318. package/dist/translations/de/web.json +580 -0
  319. package/dist/translations/en/cli.json +613 -0
  320. package/dist/translations/en/common.json +55 -0
  321. package/dist/translations/en/tui.json +130 -0
  322. package/dist/translations/en/web.json +594 -0
  323. package/dist/translations/es/cli.json +613 -0
  324. package/dist/translations/es/common.json +55 -0
  325. package/dist/translations/es/tui.json +130 -0
  326. package/dist/translations/es/web.json +594 -0
  327. package/dist/translations/fr/cli.json +613 -0
  328. package/dist/translations/fr/common.json +55 -0
  329. package/dist/translations/fr/tui.json +130 -0
  330. package/dist/translations/fr/web.json +594 -0
  331. package/dist/translations/he/cli.json +613 -0
  332. package/dist/translations/he/common.json +55 -0
  333. package/dist/translations/he/tui.json +130 -0
  334. package/dist/translations/he/web.json +594 -0
  335. package/dist/translations/pt/cli.json +613 -0
  336. package/dist/translations/pt/common.json +55 -0
  337. package/dist/translations/pt/tui.json +130 -0
  338. package/dist/translations/pt/web.json +594 -0
  339. package/dist/translations/ru/cli.json +613 -0
  340. package/dist/translations/ru/common.json +55 -0
  341. package/dist/translations/ru/tui.json +130 -0
  342. package/dist/translations/ru/web.json +594 -0
  343. package/dist/tsconfig.build.tsbuildinfo +1 -1
  344. package/package.json +4 -2
  345. package/web/.next/BUILD_ID +1 -1
  346. package/web/.next/build-manifest.json +2 -2
  347. package/web/.next/fallback-build-manifest.json +2 -2
  348. package/web/.next/prerender-manifest.json +3 -3
  349. package/web/.next/required-server-files.js +7 -7
  350. package/web/.next/required-server-files.json +7 -7
  351. package/web/.next/server/app/(dashboard)/@drawer/adopt/page/server-reference-manifest.json +28 -28
  352. package/web/.next/server/app/(dashboard)/@drawer/adopt/page.js +3 -3
  353. package/web/.next/server/app/(dashboard)/@drawer/adopt/page.js.nft.json +1 -1
  354. package/web/.next/server/app/(dashboard)/@drawer/adopt/page_client-reference-manifest.js +1 -1
  355. package/web/.next/server/app/(dashboard)/@drawer/chat/page/server-reference-manifest.json +26 -26
  356. package/web/.next/server/app/(dashboard)/@drawer/chat/page.js +3 -3
  357. package/web/.next/server/app/(dashboard)/@drawer/chat/page.js.nft.json +1 -1
  358. package/web/.next/server/app/(dashboard)/@drawer/chat/page_client-reference-manifest.js +1 -1
  359. package/web/.next/server/app/(dashboard)/@drawer/create/page/server-reference-manifest.json +29 -29
  360. package/web/.next/server/app/(dashboard)/@drawer/create/page.js +3 -3
  361. package/web/.next/server/app/(dashboard)/@drawer/create/page.js.nft.json +1 -1
  362. package/web/.next/server/app/(dashboard)/@drawer/create/page_client-reference-manifest.js +1 -1
  363. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page/server-reference-manifest.json +36 -36
  364. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js +4 -4
  365. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js.nft.json +1 -1
  366. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
  367. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/server-reference-manifest.json +36 -36
  368. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js +4 -4
  369. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js.nft.json +1 -1
  370. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page_client-reference-manifest.js +1 -1
  371. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page/server-reference-manifest.json +26 -26
  372. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page.js +3 -3
  373. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page.js.nft.json +1 -1
  374. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page_client-reference-manifest.js +1 -1
  375. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/server-reference-manifest.json +26 -26
  376. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js +3 -3
  377. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js.nft.json +1 -1
  378. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  379. package/web/.next/server/app/(dashboard)/chat/page/server-reference-manifest.json +26 -26
  380. package/web/.next/server/app/(dashboard)/chat/page.js +3 -3
  381. package/web/.next/server/app/(dashboard)/chat/page.js.nft.json +1 -1
  382. package/web/.next/server/app/(dashboard)/chat/page_client-reference-manifest.js +1 -1
  383. package/web/.next/server/app/(dashboard)/create/page/server-reference-manifest.json +29 -29
  384. package/web/.next/server/app/(dashboard)/create/page.js +3 -3
  385. package/web/.next/server/app/(dashboard)/create/page.js.nft.json +1 -1
  386. package/web/.next/server/app/(dashboard)/create/page_client-reference-manifest.js +1 -1
  387. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page/server-reference-manifest.json +36 -36
  388. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js +4 -4
  389. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js.nft.json +1 -1
  390. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
  391. package/web/.next/server/app/(dashboard)/feature/[featureId]/page/server-reference-manifest.json +36 -36
  392. package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js +4 -4
  393. package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js.nft.json +1 -1
  394. package/web/.next/server/app/(dashboard)/feature/[featureId]/page_client-reference-manifest.js +1 -1
  395. package/web/.next/server/app/(dashboard)/page/server-reference-manifest.json +26 -26
  396. package/web/.next/server/app/(dashboard)/page.js +3 -3
  397. package/web/.next/server/app/(dashboard)/page.js.nft.json +1 -1
  398. package/web/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
  399. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page/server-reference-manifest.json +26 -26
  400. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page.js +3 -3
  401. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page.js.nft.json +1 -1
  402. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page_client-reference-manifest.js +1 -1
  403. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/server-reference-manifest.json +26 -26
  404. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js +3 -3
  405. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js.nft.json +1 -1
  406. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  407. package/web/.next/server/app/_global-error.html +2 -2
  408. package/web/.next/server/app/_global-error.rsc +1 -1
  409. package/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  410. package/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  411. package/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  412. package/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  413. package/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  414. package/web/.next/server/app/_not-found/page/server-reference-manifest.json +5 -5
  415. package/web/.next/server/app/_not-found/page.js +2 -2
  416. package/web/.next/server/app/_not-found/page.js.nft.json +1 -1
  417. package/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  418. package/web/.next/server/app/api/attachments/preview/route.js.nft.json +1 -1
  419. package/web/.next/server/app/api/evidence/route.js.nft.json +1 -1
  420. package/web/.next/server/app/api/graph-data/route.js.nft.json +1 -1
  421. package/web/.next/server/app/api/interactive/chat/[featureId]/messages/route.js.nft.json +1 -1
  422. package/web/.next/server/app/settings/page/server-reference-manifest.json +8 -8
  423. package/web/.next/server/app/settings/page.js +2 -2
  424. package/web/.next/server/app/settings/page.js.nft.json +1 -1
  425. package/web/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  426. package/web/.next/server/app/skills/page/server-reference-manifest.json +10 -10
  427. package/web/.next/server/app/skills/page.js +3 -4
  428. package/web/.next/server/app/skills/page.js.nft.json +1 -1
  429. package/web/.next/server/app/skills/page_client-reference-manifest.js +1 -1
  430. package/web/.next/server/app/tools/page/server-reference-manifest.json +10 -10
  431. package/web/.next/server/app/tools/page.js +3 -4
  432. package/web/.next/server/app/tools/page.js.nft.json +1 -1
  433. package/web/.next/server/app/tools/page_client-reference-manifest.js +1 -1
  434. package/web/.next/server/app/version/page/server-reference-manifest.json +5 -5
  435. package/web/.next/server/app/version/page.js +2 -2
  436. package/web/.next/server/app/version/page.js.nft.json +1 -1
  437. package/web/.next/server/app/version/page_client-reference-manifest.js +1 -1
  438. package/web/.next/server/chunks/403f9_next_dist_esm_build_templates_app-route_370c43b1.js +1 -1
  439. package/web/.next/server/chunks/403f9_next_dist_esm_build_templates_app-route_370c43b1.js.map +1 -1
  440. package/web/.next/server/chunks/[root-of-the-server]__a402b567._.js +1 -1
  441. package/web/.next/server/chunks/[root-of-the-server]__a402b567._.js.map +1 -1
  442. package/web/.next/server/chunks/[root-of-the-server]__b4102cc7._.js +1 -1
  443. package/web/.next/server/chunks/[root-of-the-server]__b4102cc7._.js.map +1 -1
  444. package/web/.next/server/chunks/[root-of-the-server]__beda892a._.js +1 -1
  445. package/web/.next/server/chunks/[root-of-the-server]__beda892a._.js.map +1 -1
  446. package/web/.next/server/chunks/[root-of-the-server]__cd67a84c._.js +1 -1
  447. package/web/.next/server/chunks/[root-of-the-server]__cd67a84c._.js.map +1 -1
  448. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js +1 -1
  449. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js.map +1 -1
  450. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_feature-drawer-client_tsx_e9755fc8._.js +3 -3
  451. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_feature-drawer-client_tsx_e9755fc8._.js.map +1 -1
  452. package/web/.next/server/chunks/ssr/[root-of-the-server]__209c9597._.js +4 -0
  453. package/web/.next/server/chunks/ssr/{[root-of-the-server]__88f7e8e6._.js.map → [root-of-the-server]__209c9597._.js.map} +1 -1
  454. package/web/.next/server/chunks/ssr/[root-of-the-server]__27301e38._.js +4 -0
  455. package/web/.next/server/chunks/ssr/{[root-of-the-server]__17ed7ed1._.js.map → [root-of-the-server]__27301e38._.js.map} +1 -1
  456. package/web/.next/server/chunks/ssr/[root-of-the-server]__357d99f9._.js +1 -1
  457. package/web/.next/server/chunks/ssr/[root-of-the-server]__56b70465._.js +1 -1
  458. package/web/.next/server/chunks/ssr/[root-of-the-server]__56b70465._.js.map +1 -1
  459. package/web/.next/server/chunks/ssr/[root-of-the-server]__6fecf886._.js +4 -0
  460. package/web/.next/server/chunks/ssr/{[root-of-the-server]__42bf1807._.js.map → [root-of-the-server]__6fecf886._.js.map} +1 -1
  461. package/web/.next/server/chunks/ssr/[root-of-the-server]__8b0aac03._.js +1 -1
  462. package/web/.next/server/chunks/ssr/[root-of-the-server]__8d27866c._.js +4 -0
  463. package/web/.next/server/chunks/ssr/[root-of-the-server]__8d27866c._.js.map +1 -0
  464. package/web/.next/server/chunks/ssr/[root-of-the-server]__9f3504c7._.js +4 -0
  465. package/web/.next/server/chunks/ssr/{[root-of-the-server]__f80bfc75._.js.map → [root-of-the-server]__9f3504c7._.js.map} +1 -1
  466. package/web/.next/server/chunks/ssr/[root-of-the-server]__bd6ed91a._.js +4 -0
  467. package/web/.next/server/chunks/ssr/[root-of-the-server]__bd6ed91a._.js.map +1 -0
  468. package/web/.next/server/chunks/ssr/[root-of-the-server]__c30f1f82._.js +1 -1
  469. package/web/.next/server/chunks/ssr/[root-of-the-server]__c30f1f82._.js.map +1 -1
  470. package/web/.next/server/chunks/ssr/[root-of-the-server]__dffa13c5._.js +3 -0
  471. package/web/.next/server/chunks/ssr/[root-of-the-server]__dffa13c5._.js.map +1 -0
  472. package/web/.next/server/chunks/ssr/[root-of-the-server]__e91ffd5e._.js +2 -2
  473. package/web/.next/server/chunks/ssr/[root-of-the-server]__e91ffd5e._.js.map +1 -1
  474. package/web/.next/server/chunks/ssr/[root-of-the-server]__f8dd4422._.js +1 -1
  475. package/web/.next/server/chunks/ssr/[root-of-the-server]__f8dd4422._.js.map +1 -1
  476. package/web/.next/server/chunks/ssr/_05c23ad9._.js +1 -1
  477. package/web/.next/server/chunks/ssr/_05c23ad9._.js.map +1 -1
  478. package/web/.next/server/chunks/ssr/_0dc06d07._.js +3 -0
  479. package/web/.next/server/chunks/ssr/_0dc06d07._.js.map +1 -0
  480. package/web/.next/server/chunks/ssr/_16eb4fec._.js +1 -1
  481. package/web/.next/server/chunks/ssr/_16eb4fec._.js.map +1 -1
  482. package/web/.next/server/chunks/ssr/_2b858df5._.js +3 -0
  483. package/web/.next/server/chunks/ssr/{_2c7d0c36._.js.map → _2b858df5._.js.map} +1 -1
  484. package/web/.next/server/chunks/ssr/_3a0b989f._.js +2 -2
  485. package/web/.next/server/chunks/ssr/_3a0b989f._.js.map +1 -1
  486. package/web/.next/server/chunks/ssr/{_67104d9e._.js → _3bcda5d7._.js} +2 -2
  487. package/web/.next/server/chunks/ssr/{_67104d9e._.js.map → _3bcda5d7._.js.map} +1 -1
  488. package/web/.next/server/chunks/ssr/{_71e47f04._.js → _4e19e8d2._.js} +2 -2
  489. package/web/.next/server/chunks/ssr/{_71e47f04._.js.map → _4e19e8d2._.js.map} +1 -1
  490. package/web/.next/server/chunks/ssr/_5119a3df._.js +3 -0
  491. package/web/.next/server/chunks/ssr/_5119a3df._.js.map +1 -0
  492. package/web/.next/server/chunks/ssr/_56b9d60f._.js +1 -1
  493. package/web/.next/server/chunks/ssr/_56b9d60f._.js.map +1 -1
  494. package/web/.next/server/chunks/ssr/_5f69c13f._.js +1 -1
  495. package/web/.next/server/chunks/ssr/_5f69c13f._.js.map +1 -1
  496. package/web/.next/server/chunks/ssr/_6645de45._.js +4 -0
  497. package/web/.next/server/chunks/ssr/_6645de45._.js.map +1 -0
  498. package/web/.next/server/chunks/ssr/_7c5b97c6._.js +1 -1
  499. package/web/.next/server/chunks/ssr/_7c5b97c6._.js.map +1 -1
  500. package/web/.next/server/chunks/ssr/_82c57f10._.js +1 -1
  501. package/web/.next/server/chunks/ssr/_82c57f10._.js.map +1 -1
  502. package/web/.next/server/chunks/ssr/_8b57edb8._.js +1 -1
  503. package/web/.next/server/chunks/ssr/_8b57edb8._.js.map +1 -1
  504. package/web/.next/server/chunks/ssr/_8d733ce4._.js +1 -1
  505. package/web/.next/server/chunks/ssr/_8d733ce4._.js.map +1 -1
  506. package/web/.next/server/chunks/ssr/_9495d50b._.js +1 -1
  507. package/web/.next/server/chunks/ssr/_9495d50b._.js.map +1 -1
  508. package/web/.next/server/chunks/ssr/_a0e3f7e4._.js +1 -1
  509. package/web/.next/server/chunks/ssr/_a0e3f7e4._.js.map +1 -1
  510. package/web/.next/server/chunks/ssr/_ac4a3873._.js +1 -1
  511. package/web/.next/server/chunks/ssr/_ac4a3873._.js.map +1 -1
  512. package/web/.next/server/chunks/ssr/{_507a8382._.js → _b9ba2473._.js} +2 -2
  513. package/web/.next/server/chunks/ssr/_b9ba2473._.js.map +1 -0
  514. package/web/.next/server/chunks/ssr/_bcaea66b._.js +3 -0
  515. package/web/.next/server/chunks/ssr/_bcaea66b._.js.map +1 -0
  516. package/web/.next/server/chunks/ssr/_bcfa8457._.js +9 -0
  517. package/web/.next/server/chunks/ssr/_bcfa8457._.js.map +1 -0
  518. package/web/.next/server/chunks/ssr/_ca0aa7f0._.js +1 -1
  519. package/web/.next/server/chunks/ssr/_ca0aa7f0._.js.map +1 -1
  520. package/web/.next/server/chunks/ssr/_cb5a021e._.js +1 -1
  521. package/web/.next/server/chunks/ssr/_cb5a021e._.js.map +1 -1
  522. package/web/.next/server/chunks/ssr/_cfbd1d7e._.js +1 -1
  523. package/web/.next/server/chunks/ssr/_cfbd1d7e._.js.map +1 -1
  524. package/web/.next/server/chunks/ssr/_d86175ae._.js +1 -1
  525. package/web/.next/server/chunks/ssr/_d86175ae._.js.map +1 -1
  526. package/web/.next/server/chunks/ssr/_d8bedf13._.js +1 -1
  527. package/web/.next/server/chunks/ssr/_d8bedf13._.js.map +1 -1
  528. package/web/.next/server/chunks/ssr/_d90b0a06._.js +3 -0
  529. package/web/.next/server/chunks/ssr/_d90b0a06._.js.map +1 -0
  530. package/web/.next/server/chunks/ssr/_fa7efce3._.js +2 -2
  531. package/web/.next/server/chunks/ssr/_fa7efce3._.js.map +1 -1
  532. package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js +1 -1
  533. package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js.map +1 -1
  534. package/web/.next/server/chunks/ssr/node_modules__pnpm_8ec2c790._.js +1 -1
  535. package/web/.next/server/chunks/ssr/node_modules__pnpm_8ec2c790._.js.map +1 -1
  536. package/web/.next/server/chunks/ssr/src_presentation_web_app_actions_open-ide_ts_baaca5d5._.js +1 -1
  537. package/web/.next/server/chunks/ssr/src_presentation_web_ca99d62d._.js +1 -1
  538. package/web/.next/server/chunks/ssr/src_presentation_web_ca99d62d._.js.map +1 -1
  539. package/web/.next/server/chunks/ssr/src_presentation_web_components_895e5bfa._.js +3 -0
  540. package/web/.next/server/chunks/ssr/src_presentation_web_components_895e5bfa._.js.map +1 -0
  541. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js +1 -1
  542. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js.map +1 -1
  543. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_tools_tools-page-client_tsx_3d0aa70c._.js +1 -1
  544. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_tools_tools-page-client_tsx_3d0aa70c._.js.map +1 -1
  545. package/web/.next/server/chunks/ssr/src_presentation_web_db9fa0c2._.js +1 -1
  546. package/web/.next/server/chunks/ssr/src_presentation_web_db9fa0c2._.js.map +1 -1
  547. package/web/.next/server/chunks/ssr/translations_23dd5e7e._.js +3 -0
  548. package/web/.next/server/chunks/ssr/translations_23dd5e7e._.js.map +1 -0
  549. package/web/.next/server/pages/500.html +2 -2
  550. package/web/.next/server/server-reference-manifest.js +1 -1
  551. package/web/.next/server/server-reference-manifest.json +45 -45
  552. package/web/.next/static/chunks/{b4cde06eff374c59.js → 0a79dfbb8486b66e.js} +2 -2
  553. package/web/.next/static/chunks/{f50d8e1825fae0fe.js → 0c87b59a0fdd22dd.js} +1 -1
  554. package/web/.next/static/chunks/11e4b9d959a6efa7.js +2 -0
  555. package/web/.next/static/chunks/{f6085a3750b6d8f4.js → 16d35285b664c30c.js} +1 -1
  556. package/web/.next/static/chunks/2273b81cd7c7d2af.css +1 -0
  557. package/web/.next/static/chunks/{60bc4daf6904d5a0.js → 24d701de138b762d.js} +1 -1
  558. package/web/.next/static/chunks/2c5bf14361cf6728.js +1 -0
  559. package/web/.next/static/chunks/{688971d5bad5dc7c.js → 3deefc76ea55047c.js} +1 -1
  560. package/web/.next/static/chunks/42e6a21f1d63dc5c.js +1 -0
  561. package/web/.next/static/chunks/{11091b676d1b3bd4.js → 47477ed4c5871747.js} +1 -1
  562. package/web/.next/static/chunks/4864ff06a738d58b.js +1 -0
  563. package/web/.next/static/chunks/{22c459f1877b1e4f.js → 74db65fa7bfb80bd.js} +1 -1
  564. package/web/.next/static/chunks/9061f08ab7e537a8.js +1 -0
  565. package/web/.next/static/chunks/919509a19de3205b.js +7 -0
  566. package/web/.next/static/chunks/{b3109b268c02449c.js → 9aa752f55e6cfcc9.js} +1 -1
  567. package/web/.next/static/chunks/a72f1d456f0afa8a.js +5 -0
  568. package/web/.next/static/chunks/ad5b1373e5ba0789.js +1 -0
  569. package/web/.next/static/chunks/b447e13b2ac5bb65.js +1 -0
  570. package/web/.next/static/chunks/d2cbeefbc8967b16.js +1 -0
  571. package/web/.next/static/chunks/d5366257d6b9f855.js +1 -0
  572. package/web/.next/static/chunks/{5ae60a052ab5f437.js → d6e702c209c413ce.js} +2 -2
  573. package/web/.next/static/chunks/{97c18bb438f775cf.js → e63d0d79a334fa97.js} +2 -2
  574. package/web/.next/server/chunks/ssr/[root-of-the-server]__0b150ddf._.js +0 -3
  575. package/web/.next/server/chunks/ssr/[root-of-the-server]__0b150ddf._.js.map +0 -1
  576. package/web/.next/server/chunks/ssr/[root-of-the-server]__17ed7ed1._.js +0 -4
  577. package/web/.next/server/chunks/ssr/[root-of-the-server]__28d0d265._.js +0 -4
  578. package/web/.next/server/chunks/ssr/[root-of-the-server]__28d0d265._.js.map +0 -1
  579. package/web/.next/server/chunks/ssr/[root-of-the-server]__42bf1807._.js +0 -4
  580. package/web/.next/server/chunks/ssr/[root-of-the-server]__88f7e8e6._.js +0 -4
  581. package/web/.next/server/chunks/ssr/[root-of-the-server]__f80bfc75._.js +0 -4
  582. package/web/.next/server/chunks/ssr/_2c7d0c36._.js +0 -3
  583. package/web/.next/server/chunks/ssr/_4b432739._.js +0 -3
  584. package/web/.next/server/chunks/ssr/_4b432739._.js.map +0 -1
  585. package/web/.next/server/chunks/ssr/_507a8382._.js.map +0 -1
  586. package/web/.next/server/chunks/ssr/_8219712a._.js +0 -3
  587. package/web/.next/server/chunks/ssr/_8219712a._.js.map +0 -1
  588. package/web/.next/server/chunks/ssr/_d4b20e29._.js +0 -3
  589. package/web/.next/server/chunks/ssr/_d4b20e29._.js.map +0 -1
  590. package/web/.next/server/chunks/ssr/_dd0d2cda._.js +0 -4
  591. package/web/.next/server/chunks/ssr/_dd0d2cda._.js.map +0 -1
  592. package/web/.next/server/chunks/ssr/_e9a73a63._.js +0 -9
  593. package/web/.next/server/chunks/ssr/_e9a73a63._.js.map +0 -1
  594. package/web/.next/server/chunks/ssr/src_presentation_web_324a47da._.js +0 -3
  595. package/web/.next/server/chunks/ssr/src_presentation_web_324a47da._.js.map +0 -1
  596. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_cdc632e3.js +0 -3
  597. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_cdc632e3.js.map +0 -1
  598. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_39ca0924.js +0 -3
  599. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_39ca0924.js.map +0 -1
  600. package/web/.next/server/chunks/ssr/src_presentation_web_components_357e3eb0._.js +0 -3
  601. package/web/.next/server/chunks/ssr/src_presentation_web_components_357e3eb0._.js.map +0 -1
  602. package/web/.next/static/chunks/08fe461cb16fced0.js +0 -1
  603. package/web/.next/static/chunks/1a1dc6a09c911b70.js +0 -1
  604. package/web/.next/static/chunks/21c8953d720bddcc.js +0 -7
  605. package/web/.next/static/chunks/450bfeed79bb1648.js +0 -1
  606. package/web/.next/static/chunks/4b2c4a5c35ebb70d.js +0 -1
  607. package/web/.next/static/chunks/711a2468a2ea3c85.js +0 -1
  608. package/web/.next/static/chunks/8590bd2e69b24b9e.css +0 -1
  609. package/web/.next/static/chunks/8ba1c07ef18b15a9.js +0 -1
  610. package/web/.next/static/chunks/cd54b758f58061d0.js +0 -1
  611. package/web/.next/static/chunks/d1fa9a48542437bd.js +0 -2
  612. package/web/.next/static/chunks/de8a83cc1a08a5f1.js +0 -5
  613. /package/web/.next/static/{gvtDuAeM3WKFc9kJihv1y → _3mdwhLrxBePUb5DWqy3q}/_buildManifest.js +0 -0
  614. /package/web/.next/static/{gvtDuAeM3WKFc9kJihv1y → _3mdwhLrxBePUb5DWqy3q}/_clientMiddlewareManifest.json +0 -0
  615. /package/web/.next/static/{gvtDuAeM3WKFc9kJihv1y → _3mdwhLrxBePUb5DWqy3q}/_ssgManifest.js +0 -0
@@ -1,6 +1,7 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
3
  import { useState, useCallback, useEffect, useRef } from 'react';
4
+ import { useTranslation } from 'react-i18next';
4
5
  import { PaperclipIcon, ChevronsUpDown, CheckIcon, Zap, Clock, FolderPlus, Loader2, GitFork, FileText, } from 'lucide-react';
5
6
  import { cn } from '../../../lib/utils.js';
6
7
  import { useSoundAction } from '../../../hooks/use-sound-action.js';
@@ -86,11 +87,6 @@ function getExtension(filename) {
86
87
  const dot = filename.lastIndexOf('.');
87
88
  return dot >= 0 ? filename.slice(dot).toLowerCase() : '';
88
89
  }
89
- const AUTO_APPROVE_OPTIONS = [
90
- { id: 'allowPrd', label: 'PRD', description: 'Auto-approve requirements move to planning.' },
91
- { id: 'allowPlan', label: 'Plan', description: 'Auto-approve planning move to implementation.' },
92
- { id: 'allowMerge', label: 'Merge', description: 'Auto-approve merge move to Done.' },
93
- ];
94
90
  const EMPTY_GATES = {
95
91
  allowPrd: false,
96
92
  allowPlan: false,
@@ -98,6 +94,7 @@ const EMPTY_GATES = {
98
94
  };
99
95
  export function FeatureCreateDrawer({ open, onClose, onSubmit, repositoryPath, isSubmitting = false, workflowDefaults, features, repositories, initialParentId, currentAgentType, currentModel, initialDescription, canPushDirectly, }) {
100
96
  const createSound = useSoundAction('create');
97
+ const { t } = useTranslation('web');
101
98
  // Validate repositoryPath from URL against active repos — prevents stale URL params
102
99
  // from selecting deleted repos after add/delete/re-add cycles.
103
100
  // Trust the prop when: repos not loaded yet (undefined), empty list (no repos to check),
@@ -466,50 +463,64 @@ export function FeatureCreateDrawer({ open, onClose, onSubmit, repositoryPath, i
466
463
  const hasFeatures = features && features.length > 0;
467
464
  const needsRepo = !validRepoPath && !selectedRepoPath;
468
465
  const showRepoSelector = !validRepoPath && repositories !== undefined;
469
- return (_jsx(BaseDrawer, { open: open, onClose: attemptClose, size: "md", modal: false, dismissOnOutsideClick: true, "data-testid": "feature-create-drawer", header: _jsxs(_Fragment, { children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx("div", { className: "h-2.5 w-2.5 shrink-0 rounded-full bg-blue-500" }), _jsx(DrawerTitle, { children: "NEW FEATURE" })] }), isSubmitting ? (_jsx(DrawerDescription, { asChild: true, children: _jsx("div", { children: _jsx(Badge, { variant: "secondary", children: "Creating..." }) }) })) : null] }), footer: _jsxs("div", { className: "flex flex-row justify-end gap-2", children: [_jsx(Button, { variant: "outline", onClick: attemptClose, disabled: isSubmitting, children: "Cancel" }), _jsx(Button, { type: "submit", form: "create-feature-form", disabled: !description.trim() || isSubmitting || needsRepo, children: isSubmitting ? 'Creating...' : '+ Create Feature' })] }), children: _jsx("div", { className: "overflow-y-auto p-4", children: _jsx(TooltipProvider, { delayDuration: 400, children: _jsxs("form", { ref: formRef, id: "create-feature-form", onSubmit: handleSubmit, onKeyDown: handleKeyDown, className: "flex flex-col gap-4", children: [showRepoSelector ? (_jsxs("div", { className: "flex flex-col gap-1.5", "data-testid": "repo-selector-section", children: [_jsx(Label, { className: "text-muted-foreground text-xs font-semibold tracking-wider", children: "REPOSITORY" }), _jsx(RepositoryCombobox, { repositories: localRepos, value: selectedRepoPath, onChange: setSelectedRepoPath, onAddRepository: (repo) => {
466
+ const AUTO_APPROVE_OPTIONS = [
467
+ { id: 'allowPrd', label: t('createDrawer.prd'), description: t('createDrawer.prdDescription') },
468
+ {
469
+ id: 'allowPlan',
470
+ label: t('createDrawer.plan'),
471
+ description: t('createDrawer.planDescription'),
472
+ },
473
+ {
474
+ id: 'allowMerge',
475
+ label: t('createDrawer.merge'),
476
+ description: t('createDrawer.mergeDescription'),
477
+ },
478
+ ];
479
+ return (_jsx(BaseDrawer, { open: open, onClose: attemptClose, size: "md", modal: false, dismissOnOutsideClick: true, "data-testid": "feature-create-drawer", header: _jsxs(_Fragment, { children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx("div", { className: "h-2.5 w-2.5 shrink-0 rounded-full bg-blue-500" }), _jsx(DrawerTitle, { children: t('createDrawer.title') })] }), isSubmitting ? (_jsx(DrawerDescription, { asChild: true, children: _jsx("div", { children: _jsx(Badge, { variant: "secondary", children: t('createDrawer.creating') }) }) })) : null] }), footer: _jsxs("div", { className: "flex flex-row justify-end gap-2", children: [_jsx(Button, { variant: "outline", onClick: attemptClose, disabled: isSubmitting, children: t('createDrawer.cancel') }), _jsx(Button, { type: "submit", form: "create-feature-form", disabled: !description.trim() || isSubmitting || needsRepo, children: isSubmitting ? t('createDrawer.creating') : t('createDrawer.createFeature') })] }), children: _jsx("div", { className: "overflow-y-auto p-4", children: _jsx(TooltipProvider, { delayDuration: 400, children: _jsxs("form", { ref: formRef, id: "create-feature-form", onSubmit: handleSubmit, onKeyDown: handleKeyDown, className: "flex flex-col gap-4", children: [showRepoSelector ? (_jsxs("div", { className: "flex flex-col gap-1.5", "data-testid": "repo-selector-section", children: [_jsx(Label, { className: "text-muted-foreground text-xs font-semibold tracking-wider", children: t('createDrawer.repository') }), _jsx(RepositoryCombobox, { repositories: localRepos, value: selectedRepoPath, onChange: setSelectedRepoPath, onAddRepository: (repo) => {
470
480
  setLocalRepos((prev) => [...prev, repo]);
471
481
  setSelectedRepoPath(repo.path);
472
- }, disabled: isSubmitting })] })) : validRepoPath ? (_jsxs("div", { className: "flex flex-col gap-1.5", "data-testid": "repo-readonly-section", children: [_jsx(Label, { className: "text-muted-foreground text-xs font-semibold tracking-wider", children: "REPOSITORY" }), _jsx("p", { className: "text-sm", "data-testid": "repo-readonly-label", children: repositories?.find((r) => r.path === validRepoPath)?.name ??
473
- validRepoPath.split('/').pop() })] })) : null, _jsxs("div", { role: "region", "aria-label": "File drop zone", "data-drag-over": isDragOver ? 'true' : 'false', onDragEnter: handleDragEnter, onDragLeave: handleDragLeave, onDragOver: handleDragOver, onDrop: handleDrop, className: cn('flex flex-col gap-1.5 rounded-md border-2 border-transparent p-1 transition-colors', isDragOver && 'border-primary/50 bg-primary/5'), children: [_jsx(Label, { htmlFor: "feature-description", className: "text-muted-foreground text-xs font-semibold tracking-wider", children: "DESCRIBE YOUR FEATURE" }), _jsxs("div", { ref: promptContainerRef, onFocus: handlePromptFocus, onBlur: handlePromptBlur, className: cn('border-input flex h-56 flex-col overflow-hidden rounded-md border shadow-xs transition-[color,box-shadow]', isPromptFocused && 'ring-ring/50 border-ring ring-[3px]'), children: [_jsx(Textarea, { id: "feature-description", placeholder: "e.g. Add GitHub OAuth login with callback handling and token refresh...", value: description, onChange: (e) => setDescription(e.target.value), onPaste: handlePaste, required: true, disabled: isSubmitting, className: "min-h-0 flex-1 resize-none rounded-none border-0 shadow-none focus-visible:ring-0" }), attachments.length > 0 && (_jsx("div", { className: "flex flex-wrap items-center gap-1.5 px-3 py-2", children: attachments.map((file) => (_jsx(AttachmentChip, { name: file.name, size: file.size, mimeType: file.mimeType, path: file.path, onRemove: () => handleRemoveFile(file.id), disabled: isSubmitting, loading: file.loading, notes: file.notes, onNotesChange: (notes) => handleNotesChange(file.id, notes) }, file.id))) })), uploadError ? (_jsx("p", { className: "text-destructive px-3 pb-2 text-xs", children: uploadError })) : null, _jsxs("div", { className: "border-input flex items-center gap-3 border-t px-3 py-1.5", children: [_jsx(AgentModelPicker, { initialAgentType: overrideAgent ?? currentAgentType ?? 'claude-code', initialModel: overrideModel ?? currentModel ?? 'claude-sonnet-4-6', mode: "override", onAgentModelChange: (agent, model) => {
482
+ }, disabled: isSubmitting })] })) : validRepoPath ? (_jsxs("div", { className: "flex flex-col gap-1.5", "data-testid": "repo-readonly-section", children: [_jsx(Label, { className: "text-muted-foreground text-xs font-semibold tracking-wider", children: t('createDrawer.repository') }), _jsx("p", { className: "text-sm", "data-testid": "repo-readonly-label", children: repositories?.find((r) => r.path === validRepoPath)?.name ??
483
+ validRepoPath.split('/').pop() })] })) : null, _jsxs("div", { role: "region", "aria-label": t('createDrawer.fileDropZone'), "data-drag-over": isDragOver ? 'true' : 'false', onDragEnter: handleDragEnter, onDragLeave: handleDragLeave, onDragOver: handleDragOver, onDrop: handleDrop, className: cn('flex flex-col gap-1.5 rounded-md border-2 border-transparent p-1 transition-colors', isDragOver && 'border-primary/50 bg-primary/5'), children: [_jsx(Label, { htmlFor: "feature-description", className: "text-muted-foreground text-xs font-semibold tracking-wider", children: t('createDrawer.describeFeature') }), _jsxs("div", { ref: promptContainerRef, onFocus: handlePromptFocus, onBlur: handlePromptBlur, className: cn('border-input flex h-56 flex-col overflow-hidden rounded-md border shadow-xs transition-[color,box-shadow]', isPromptFocused && 'ring-ring/50 border-ring ring-[3px]'), children: [_jsx(Textarea, { id: "feature-description", placeholder: t('createDrawer.featurePlaceholder'), value: description, onChange: (e) => setDescription(e.target.value), onPaste: handlePaste, required: true, disabled: isSubmitting, className: "min-h-0 flex-1 resize-none rounded-none border-0 shadow-none focus-visible:ring-0" }), attachments.length > 0 && (_jsx("div", { className: "flex flex-wrap items-center gap-1.5 px-3 py-2", children: attachments.map((file) => (_jsx(AttachmentChip, { name: file.name, size: file.size, mimeType: file.mimeType, path: file.path, onRemove: () => handleRemoveFile(file.id), disabled: isSubmitting, loading: file.loading, notes: file.notes, onNotesChange: (notes) => handleNotesChange(file.id, notes) }, file.id))) })), uploadError ? (_jsx("p", { className: "text-destructive px-3 pb-2 text-xs", children: uploadError })) : null, _jsxs("div", { className: "border-input flex items-center gap-3 border-t px-3 py-1.5", children: [_jsx(AgentModelPicker, { initialAgentType: overrideAgent ?? currentAgentType ?? 'claude-code', initialModel: overrideModel ?? currentModel ?? 'claude-sonnet-4-6', mode: "override", onAgentModelChange: (agent, model) => {
474
484
  setOverrideAgent(agent);
475
485
  setOverrideModel(model);
476
- }, disabled: isSubmitting, className: "w-55" }), _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsxs("div", { className: "ml-auto flex cursor-pointer items-center gap-2", children: [_jsx(Switch, { id: "pending-mode", checked: pending, onCheckedChange: setPending, disabled: isSubmitting }), _jsxs(Label, { htmlFor: "pending-mode", className: "flex cursor-pointer items-center gap-1 text-sm font-medium", children: [_jsx(Clock, { className: "h-3.5 w-3.5" }), "Pending"] })] }) }), _jsx(TooltipContent, { side: "bottom", children: "Create without starting \u2014 start manually later." })] }), _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsxs("div", { className: "flex cursor-pointer items-center gap-2", children: [_jsx(Switch, { id: "fast-mode", checked: fast, onCheckedChange: setFast, disabled: isSubmitting }), _jsxs(Label, { htmlFor: "fast-mode", className: "flex cursor-pointer items-center gap-1 text-sm font-medium", children: [_jsx(Zap, { className: "h-3.5 w-3.5" }), "Fast Mode"] })] }) }), _jsx(TooltipContent, { side: "bottom", children: "Skip SDLC phases and implement directly from your prompt." })] }), _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx("button", { type: "button", onClick: handleAddFiles, disabled: isSubmitting, "aria-label": "Attach files", className: "text-muted-foreground hover:text-foreground cursor-pointer rounded p-1 transition-colors", children: _jsx(PaperclipIcon, { className: "h-4 w-4" }) }) }), _jsx(TooltipContent, { side: "bottom", children: "Attach files" })] })] })] })] }), hasFeatures && initialParentId !== undefined ? (_jsxs("div", { className: "flex flex-col gap-1.5", children: [_jsx(Label, { htmlFor: "parent-feature", className: "text-muted-foreground text-xs font-semibold tracking-wider", children: "PARENT FEATURE" }), _jsx(ParentFeatureCombobox, { features: features, value: parentId, onChange: setParentId, disabled: isSubmitting })] })) : null, _jsxs("div", { className: "flex flex-col gap-2", children: [_jsxs("div", { className: "border-input flex items-center gap-4 rounded-md border px-3 py-2.5", children: [_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx("span", { className: "text-muted-foreground w-16 shrink-0 cursor-default text-xs font-semibold tracking-wider", children: "APPROVE" }) }), _jsx(TooltipContent, { side: "bottom", children: "Auto-approve phase transitions without manual review." })] }), _jsx("div", { className: "flex flex-1 items-center gap-4", children: AUTO_APPROVE_OPTIONS.map((opt) => (_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsxs("div", { className: "flex cursor-pointer items-center gap-1.5", children: [_jsx(Switch, { id: `approve-${opt.id}`, size: "sm", checked: approvalGates[opt.id] ?? false, onCheckedChange: (v) => setApprovalGates((prev) => ({ ...prev, [opt.id]: v })), disabled: isSubmitting ||
486
+ }, disabled: isSubmitting, className: "w-55" }), _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsxs("div", { className: "ml-auto flex cursor-pointer items-center gap-2", children: [_jsx(Switch, { id: "pending-mode", checked: pending, onCheckedChange: setPending, disabled: isSubmitting }), _jsxs(Label, { htmlFor: "pending-mode", className: "flex cursor-pointer items-center gap-1 text-sm font-medium", children: [_jsx(Clock, { className: "h-3.5 w-3.5" }), t('createDrawer.pendingMode')] })] }) }), _jsx(TooltipContent, { side: "bottom", children: t('createDrawer.pendingModeDescription') })] }), _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsxs("div", { className: "flex cursor-pointer items-center gap-2", children: [_jsx(Switch, { id: "fast-mode", checked: fast, onCheckedChange: setFast, disabled: isSubmitting }), _jsxs(Label, { htmlFor: "fast-mode", className: "flex cursor-pointer items-center gap-1 text-sm font-medium", children: [_jsx(Zap, { className: "h-3.5 w-3.5" }), t('createDrawer.fastModeLabel')] })] }) }), _jsx(TooltipContent, { side: "bottom", children: t('createDrawer.fastModeDescription') })] }), _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx("button", { type: "button", onClick: handleAddFiles, disabled: isSubmitting, "aria-label": t('chat.attachFiles'), className: "text-muted-foreground hover:text-foreground cursor-pointer rounded p-1 transition-colors", children: _jsx(PaperclipIcon, { className: "h-4 w-4" }) }) }), _jsx(TooltipContent, { side: "bottom", children: t('chat.attachFiles') })] })] })] })] }), hasFeatures && initialParentId !== undefined ? (_jsxs("div", { className: "flex flex-col gap-1.5", children: [_jsx(Label, { htmlFor: "parent-feature", className: "text-muted-foreground text-xs font-semibold tracking-wider", children: t('createDrawer.parentFeature') }), _jsx(ParentFeatureCombobox, { features: features, value: parentId, onChange: setParentId, disabled: isSubmitting })] })) : null, _jsxs("div", { className: "flex flex-col gap-2", children: [_jsxs("div", { className: "border-input flex items-center gap-4 rounded-md border px-3 py-2.5", children: [_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx("span", { className: "text-muted-foreground w-16 shrink-0 cursor-default text-xs font-semibold tracking-wider", children: t('createDrawer.approve') }) }), _jsx(TooltipContent, { side: "bottom", children: t('createDrawer.approveDescription') })] }), _jsx("div", { className: "flex flex-1 items-center gap-4", children: AUTO_APPROVE_OPTIONS.map((opt) => (_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsxs("div", { className: "flex cursor-pointer items-center gap-1.5", children: [_jsx(Switch, { id: `approve-${opt.id}`, size: "sm", checked: approvalGates[opt.id] ?? false, onCheckedChange: (v) => setApprovalGates((prev) => ({ ...prev, [opt.id]: v })), disabled: isSubmitting ||
477
487
  (fast && (opt.id === 'allowPrd' || opt.id === 'allowPlan')) }), _jsx(Label, { htmlFor: `approve-${opt.id}`, className: "cursor-pointer text-xs font-medium", children: opt.label })] }) }), _jsx(TooltipContent, { side: "bottom", children: fast && (opt.id === 'allowPrd' || opt.id === 'allowPlan')
478
- ? 'Skipped in Fast Mode'
488
+ ? t('createDrawer.skippedInFastMode')
479
489
  : opt.description })] }, opt.id))) }), _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx("button", { type: "button", onClick: () => {
480
490
  const allOn = AUTO_APPROVE_OPTIONS.every((o) => approvalGates[o.id]);
481
491
  const next = {};
482
492
  for (const o of AUTO_APPROVE_OPTIONS)
483
493
  next[o.id] = !allOn;
484
494
  setApprovalGates(next);
485
- }, disabled: isSubmitting, className: cn('text-muted-foreground hover:text-foreground cursor-pointer rounded px-1.5 py-0.5 text-[10px] font-semibold tracking-wider uppercase transition-colors', AUTO_APPROVE_OPTIONS.every((o) => approvalGates[o.id]) && 'text-primary'), children: "All" }) }), _jsx(TooltipContent, { side: "bottom", children: "Toggle all approval gates" })] })] }), _jsxs("div", { className: "border-input flex items-center gap-4 rounded-md border px-3 py-2.5", children: [_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx("span", { className: "text-muted-foreground w-16 shrink-0 cursor-default text-xs font-semibold tracking-wider", children: "EVIDENCE" }) }), _jsx(TooltipContent, { side: "bottom", children: "Collect and attach evidence after implementation." })] }), _jsxs("div", { className: "flex flex-1 items-center gap-4", children: [_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsxs("div", { className: "flex cursor-pointer items-center gap-1.5", children: [_jsx(Switch, { id: "enable-evidence", size: "sm", checked: enableEvidence, onCheckedChange: (v) => {
495
+ }, disabled: isSubmitting, className: cn('text-muted-foreground hover:text-foreground cursor-pointer rounded px-1.5 py-0.5 text-[10px] font-semibold tracking-wider uppercase transition-colors', AUTO_APPROVE_OPTIONS.every((o) => approvalGates[o.id]) && 'text-primary'), children: t('createDrawer.all') }) }), _jsx(TooltipContent, { side: "bottom", children: t('createDrawer.toggleAllApprovalGates') })] })] }), _jsxs("div", { className: "border-input flex items-center gap-4 rounded-md border px-3 py-2.5", children: [_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx("span", { className: "text-muted-foreground w-16 shrink-0 cursor-default text-xs font-semibold tracking-wider", children: t('createDrawer.evidence') }) }), _jsx(TooltipContent, { side: "bottom", children: t('createDrawer.evidenceDescription') })] }), _jsxs("div", { className: "flex flex-1 items-center gap-4", children: [_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsxs("div", { className: "flex cursor-pointer items-center gap-1.5", children: [_jsx(Switch, { id: "enable-evidence", size: "sm", checked: enableEvidence, onCheckedChange: (v) => {
486
496
  setEnableEvidence(v);
487
497
  if (!v)
488
498
  setCommitEvidence(false);
489
- }, disabled: isSubmitting }), _jsx(Label, { htmlFor: "enable-evidence", className: "cursor-pointer text-xs font-medium", children: "Collect" })] }) }), _jsx(TooltipContent, { side: "bottom", children: "Capture screenshots and artifacts after implementation." })] }), _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsxs("div", { className: "flex cursor-pointer items-center gap-1.5", children: [_jsx(Switch, { id: "commit-evidence", size: "sm", checked: commitEvidence, onCheckedChange: setCommitEvidence, disabled: isSubmitting || !enableEvidence || (!openPr && !forkAndPr) }), _jsx(Label, { htmlFor: "commit-evidence", className: cn('cursor-pointer text-xs font-medium', (!enableEvidence || (!openPr && !forkAndPr)) && 'opacity-50'), children: "Add to PR" })] }) }), _jsx(TooltipContent, { side: "bottom", children: !openPr && !forkAndPr
490
- ? 'Requires PR to be enabled'
499
+ }, disabled: isSubmitting }), _jsx(Label, { htmlFor: "enable-evidence", className: "cursor-pointer text-xs font-medium", children: t('createDrawer.collect') })] }) }), _jsx(TooltipContent, { side: "bottom", children: t('createDrawer.collectDescription') })] }), _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsxs("div", { className: "flex cursor-pointer items-center gap-1.5", children: [_jsx(Switch, { id: "commit-evidence", size: "sm", checked: commitEvidence, onCheckedChange: setCommitEvidence, disabled: isSubmitting || !enableEvidence || (!openPr && !forkAndPr) }), _jsx(Label, { htmlFor: "commit-evidence", className: cn('cursor-pointer text-xs font-medium', (!enableEvidence || (!openPr && !forkAndPr)) && 'opacity-50'), children: t('createDrawer.addToPr') })] }) }), _jsx(TooltipContent, { side: "bottom", children: !openPr && !forkAndPr
500
+ ? t('createDrawer.requiresPr')
491
501
  : !enableEvidence
492
- ? 'Requires evidence collection to be enabled'
493
- : 'Include evidence in the pull request body.' })] })] })] }), _jsxs("div", { className: "border-input flex items-start gap-4 rounded-md border px-3 py-2.5", children: [_jsx("span", { className: "text-muted-foreground w-16 shrink-0 pt-0.5 text-xs font-semibold tracking-wider", children: "GIT" }), _jsxs("div", { className: "flex flex-1 flex-wrap items-center gap-4", children: [_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsxs("div", { className: "flex cursor-pointer items-center gap-1.5", children: [_jsx(Switch, { id: "push", size: "sm", checked: forkAndPr ? true : push || openPr, onCheckedChange: (v) => {
502
+ ? t('createDrawer.requiresEvidence')
503
+ : t('createDrawer.addToPrDescription') })] })] })] }), _jsxs("div", { className: "border-input flex items-start gap-4 rounded-md border px-3 py-2.5", children: [_jsx("span", { className: "text-muted-foreground w-16 shrink-0 pt-0.5 text-xs font-semibold tracking-wider", children: t('createDrawer.git') }), _jsxs("div", { className: "flex flex-1 flex-wrap items-center gap-4", children: [_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsxs("div", { className: "flex cursor-pointer items-center gap-1.5", children: [_jsx(Switch, { id: "push", size: "sm", checked: forkAndPr ? true : push || openPr, onCheckedChange: (v) => {
494
504
  setPush(v);
495
505
  if (!v && openPr)
496
506
  setOpenPr(false);
497
- }, disabled: isSubmitting || forkAndPr }), _jsx(Label, { htmlFor: "push", className: cn('cursor-pointer text-xs font-medium', forkAndPr && 'opacity-50'), children: "Push" })] }) }), _jsx(TooltipContent, { side: "bottom", children: forkAndPr
507
+ }, disabled: isSubmitting || forkAndPr }), _jsx(Label, { htmlFor: "push", className: cn('cursor-pointer text-xs font-medium', forkAndPr && 'opacity-50'), children: t('createDrawer.push') })] }) }), _jsx(TooltipContent, { side: "bottom", children: forkAndPr
498
508
  ? 'Enabled — contributing to upstream'
499
- : 'Push branch to remote after implementation.' })] }), _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsxs("div", { className: "flex cursor-pointer items-center gap-1.5", children: [_jsx(Switch, { id: "open-pr", size: "sm", checked: forkAndPr ? true : openPr, onCheckedChange: (v) => {
509
+ : t('createDrawer.pushDescription') })] }), _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsxs("div", { className: "flex cursor-pointer items-center gap-1.5", children: [_jsx(Switch, { id: "open-pr", size: "sm", checked: forkAndPr ? true : openPr, onCheckedChange: (v) => {
500
510
  setOpenPr(v);
501
511
  if (!v)
502
512
  setCommitEvidence(false);
503
- }, disabled: isSubmitting || forkAndPr }), _jsx(Label, { htmlFor: "open-pr", className: cn('cursor-pointer text-xs font-medium', forkAndPr && 'opacity-50'), children: "PR" })] }) }), _jsx(TooltipContent, { side: "bottom", children: forkAndPr
513
+ }, disabled: isSubmitting || forkAndPr }), _jsx(Label, { htmlFor: "open-pr", className: cn('cursor-pointer text-xs font-medium', forkAndPr && 'opacity-50'), children: t('createDrawer.pr') })] }) }), _jsx(TooltipContent, { side: "bottom", children: forkAndPr
504
514
  ? 'Enabled — contributing to upstream'
505
- : 'Open a pull request after pushing.' })] }), _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsxs("div", { className: "flex cursor-pointer items-center gap-1.5", children: [_jsx(Switch, { id: "ci-watch", size: "sm", checked: ciWatchEnabled, onCheckedChange: setCiWatchEnabled, disabled: isSubmitting }), _jsx(Label, { htmlFor: "ci-watch", className: "cursor-pointer text-xs font-medium", children: "Watch" })] }) }), _jsx(TooltipContent, { side: "bottom", children: "Watch CI and auto-fix after push." })] }), _jsx("div", { className: "bg-border h-4 w-px shrink-0" }), _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsxs("div", { className: "flex cursor-pointer items-center gap-1.5", children: [_jsx(Switch, { id: "commit-specs", size: "sm", checked: commitSpecs, onCheckedChange: setCommitSpecs, disabled: isSubmitting }), _jsxs(Label, { htmlFor: "commit-specs", className: "flex cursor-pointer items-center gap-1 text-xs font-medium", children: [_jsx(FileText, { className: "h-3 w-3" }), "Commit Specs"] })] }) }), _jsx(TooltipContent, { side: "bottom", children: "Commit specs to repository." })] }), !canPush && (_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsxs("div", { className: "flex cursor-pointer items-center gap-1.5", children: [_jsx(Switch, { id: "fork-and-pr", size: "sm", checked: forkAndPr, onCheckedChange: (v) => {
515
+ : t('createDrawer.prDescription') })] }), _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsxs("div", { className: "flex cursor-pointer items-center gap-1.5", children: [_jsx(Switch, { id: "ci-watch", size: "sm", checked: ciWatchEnabled, onCheckedChange: setCiWatchEnabled, disabled: isSubmitting }), _jsx(Label, { htmlFor: "ci-watch", className: "cursor-pointer text-xs font-medium", children: t('createDrawer.watch') })] }) }), _jsx(TooltipContent, { side: "bottom", children: t('createDrawer.watchDescription') })] }), _jsx("div", { className: "bg-border h-4 w-px shrink-0" }), _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsxs("div", { className: "flex cursor-pointer items-center gap-1.5", children: [_jsx(Switch, { id: "commit-specs", size: "sm", checked: commitSpecs, onCheckedChange: setCommitSpecs, disabled: isSubmitting }), _jsxs(Label, { htmlFor: "commit-specs", className: "flex cursor-pointer items-center gap-1 text-xs font-medium", children: [_jsx(FileText, { className: "h-3 w-3" }), t('createDrawer.commitSpecs')] })] }) }), _jsx(TooltipContent, { side: "bottom", children: t('createDrawer.commitSpecsDescription') })] }), !canPush && (_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsxs("div", { className: "flex cursor-pointer items-center gap-1.5", children: [_jsx(Switch, { id: "fork-and-pr", size: "sm", checked: forkAndPr, onCheckedChange: (v) => {
506
516
  setForkAndPr(v);
507
517
  // Auto-flip commitSpecs to false when enabling contribute mode
508
518
  if (v)
509
519
  setCommitSpecs(false);
510
- }, disabled: isSubmitting }), _jsxs(Label, { htmlFor: "fork-and-pr", className: "flex cursor-pointer items-center gap-1 text-xs font-medium", children: [_jsx(GitFork, { className: "h-3 w-3" }), "Fork & PR"] })] }) }), _jsx(TooltipContent, { side: "bottom", children: "Contribute via fork (PR to upstream)." })] }))] })] })] })] }) }) }) }));
520
+ }, disabled: isSubmitting }), _jsxs(Label, { htmlFor: "fork-and-pr", className: "flex cursor-pointer items-center gap-1 text-xs font-medium", children: [_jsx(GitFork, { className: "h-3 w-3" }), t('createDrawer.forkAndPr')] })] }) }), _jsx(TooltipContent, { side: "bottom", children: t('createDrawer.forkAndPrDescription') })] }))] })] })] })] }) }) }) }));
511
521
  }
512
522
  function ParentFeatureCombobox({ features, value, onChange, disabled, }) {
523
+ const { t } = useTranslation('web');
513
524
  const [open, setOpen] = useState(false);
514
525
  const [query, setQuery] = useState('');
515
526
  const inputRef = useRef(null);
@@ -533,7 +544,7 @@ function ParentFeatureCombobox({ features, value, onChange, disabled, }) {
533
544
  }, [open]);
534
545
  return (_jsxs(Popover, { open: open, onOpenChange: setOpen, children: [_jsx(PopoverTrigger, { asChild: true, children: _jsxs("button", { id: "parent-feature", type: "button", role: "combobox", "aria-expanded": open, "aria-label": "Parent Feature", disabled: disabled, "data-testid": "parent-feature-combobox", className: cn('border-input bg-background ring-offset-background focus:ring-ring flex h-9 w-full items-center justify-between rounded-md border px-3 py-2 text-sm focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50', !selectedFeature && 'text-muted-foreground'), children: [_jsx("span", { className: "truncate", children: selectedFeature
535
546
  ? `${selectedFeature.name} (${selectedFeature.id.slice(0, 8)})`
536
- : 'Select parent feature...' }), _jsx(ChevronsUpDown, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })] }) }), _jsx(PopoverContent, { className: "w-80 p-0", align: "start", "data-testid": "parent-feature-combobox-content", children: _jsxs("div", { className: "flex flex-col", children: [_jsx("div", { className: "border-b p-2", children: _jsx(Input, { ref: inputRef, placeholder: "Search features...", value: query, onChange: (e) => setQuery(e.target.value), className: "h-8 border-0 p-0 text-sm shadow-none focus-visible:ring-0", "data-testid": "parent-feature-search" }) }), _jsxs("div", { className: "max-h-48 overflow-y-auto py-1", role: "listbox", "aria-label": "Features", children: [_jsxs("button", { type: "button", role: "option", "aria-selected": value === undefined, onClick: () => handleSelect(undefined), className: cn('hover:bg-accent hover:text-accent-foreground flex w-full items-center gap-2 px-3 py-2 text-sm', value === undefined && 'bg-accent/50'), "data-testid": "parent-feature-option-none", children: [_jsx(CheckIcon, { className: cn('h-4 w-4 shrink-0', value !== undefined && 'invisible') }), _jsx("span", { className: "text-muted-foreground italic", children: "No parent" })] }), filtered.length === 0 && query ? (_jsx("p", { className: "text-muted-foreground px-3 py-2 text-sm", children: "No features found." })) : (filtered.map((f) => (_jsxs("button", { type: "button", role: "option", "aria-selected": value === f.id, onClick: () => handleSelect(f.id), className: cn('hover:bg-accent hover:text-accent-foreground flex w-full items-center gap-2 px-3 py-2 text-sm', value === f.id && 'bg-accent/50'), "data-testid": `parent-feature-option-${f.id}`, children: [_jsx(CheckIcon, { className: cn('h-4 w-4 shrink-0', value !== f.id && 'invisible') }), _jsxs("span", { className: "truncate", children: [f.name, ' ', _jsxs("span", { className: "text-muted-foreground font-mono text-xs", children: ["(", f.id.slice(0, 8), ")"] })] })] }, f.id))))] })] }) })] }));
547
+ : t('createDrawer.selectParent') }), _jsx(ChevronsUpDown, { className: "ms-2 h-4 w-4 shrink-0 opacity-50" })] }) }), _jsx(PopoverContent, { className: "w-80 p-0", align: "start", "data-testid": "parent-feature-combobox-content", children: _jsxs("div", { className: "flex flex-col", children: [_jsx("div", { className: "border-b p-2", children: _jsx(Input, { ref: inputRef, placeholder: t('createDrawer.searchFeatures'), value: query, onChange: (e) => setQuery(e.target.value), className: "h-8 border-0 p-0 text-sm shadow-none focus-visible:ring-0", "data-testid": "parent-feature-search" }) }), _jsxs("div", { className: "max-h-48 overflow-y-auto py-1", role: "listbox", "aria-label": "Features", children: [_jsxs("button", { type: "button", role: "option", "aria-selected": value === undefined, onClick: () => handleSelect(undefined), className: cn('hover:bg-accent hover:text-accent-foreground flex w-full items-center gap-2 px-3 py-2 text-sm', value === undefined && 'bg-accent/50'), "data-testid": "parent-feature-option-none", children: [_jsx(CheckIcon, { className: cn('h-4 w-4 shrink-0', value !== undefined && 'invisible') }), _jsx("span", { className: "text-muted-foreground italic", children: t('createDrawer.noParent') })] }), filtered.length === 0 && query ? (_jsx("p", { className: "text-muted-foreground px-3 py-2 text-sm", children: t('createDrawer.noFeaturesFound') })) : (filtered.map((f) => (_jsxs("button", { type: "button", role: "option", "aria-selected": value === f.id, onClick: () => handleSelect(f.id), className: cn('hover:bg-accent hover:text-accent-foreground flex w-full items-center gap-2 px-3 py-2 text-sm', value === f.id && 'bg-accent/50'), "data-testid": `parent-feature-option-${f.id}`, children: [_jsx(CheckIcon, { className: cn('h-4 w-4 shrink-0', value !== f.id && 'invisible') }), _jsxs("span", { className: "truncate", children: [f.name, ' ', _jsxs("span", { className: "text-muted-foreground font-mono text-xs", children: ["(", f.id.slice(0, 8), ")"] })] })] }, f.id))))] })] }) })] }));
537
548
  }
538
549
  export function RepositoryCombobox({ repositories, value, onChange, onAddRepository, disabled, }) {
539
550
  const [open, setOpen] = useState(false);
@@ -543,6 +554,7 @@ export function RepositoryCombobox({ repositories, value, onChange, onAddReposit
543
554
  const [showReactPicker, setShowReactPicker] = useState(false);
544
555
  const inputRef = useRef(null);
545
556
  const { reactFileManager: useReactFileManager } = useFeatureFlags();
557
+ const { t } = useTranslation('web');
546
558
  const selectedRepo = repositories.find((r) => r.path === value);
547
559
  const filtered = query.trim()
548
560
  ? repositories.filter((r) => r.name.toLowerCase().includes(query.toLowerCase()) ||
@@ -621,7 +633,7 @@ export function RepositoryCombobox({ repositories, value, onChange, onAddReposit
621
633
  setQuery('');
622
634
  }
623
635
  }, [open]);
624
- return (_jsxs(_Fragment, { children: [_jsxs(Popover, { open: open, onOpenChange: setOpen, children: [_jsx(PopoverTrigger, { asChild: true, children: _jsxs("button", { type: "button", role: "combobox", "aria-expanded": open, "aria-label": "Repository", disabled: disabled, "data-testid": "repository-combobox", className: cn('border-input bg-background ring-offset-background focus:ring-ring flex h-9 w-full items-center justify-between rounded-md border px-3 py-2 text-sm focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50', !selectedRepo && 'text-muted-foreground'), children: [_jsx("span", { className: "truncate", children: selectedRepo ? selectedRepo.name : 'Select repository...' }), _jsx(ChevronsUpDown, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })] }) }), _jsx(PopoverContent, { className: "w-80 p-0", align: "start", "data-testid": "repository-combobox-content", children: _jsxs("div", { className: "flex flex-col", children: [_jsx("div", { className: "border-b p-2", children: _jsx(Input, { ref: inputRef, placeholder: "Search repositories...", value: query, onChange: (e) => setQuery(e.target.value), className: "h-8 border-0 p-0 text-sm shadow-none focus-visible:ring-0", "data-testid": "repository-search" }) }), _jsx("div", { className: "max-h-48 overflow-y-auto py-1", role: "listbox", "aria-label": "Repositories", children: filtered.length === 0 ? (_jsx("p", { className: "text-muted-foreground px-3 py-2 text-sm", "data-testid": "repository-empty", children: "No repositories found." })) : (filtered.map((r) => (_jsxs("button", { type: "button", role: "option", "aria-selected": value === r.path, onClick: () => handleSelect(r.path), className: cn('hover:bg-accent hover:text-accent-foreground flex w-full items-center gap-2 px-3 py-2 text-sm', value === r.path && 'bg-accent/50'), "data-testid": `repository-option-${r.id}`, children: [_jsx(CheckIcon, { className: cn('h-4 w-4 shrink-0', value !== r.path && 'invisible') }), _jsxs("span", { className: "flex flex-col items-start truncate", children: [_jsx("span", { className: "truncate", children: r.name }), _jsx("span", { className: "text-muted-foreground truncate text-xs", children: r.path })] })] }, r.id)))) }), _jsx(Separator, {}), _jsxs("button", { type: "button", onClick: handleAddRepository, disabled: isAdding, className: "hover:bg-accent hover:text-accent-foreground flex w-full items-center gap-2 px-3 py-2 text-sm", "data-testid": "add-repository-item", children: [isAdding ? (_jsx(Loader2, { className: "h-4 w-4 shrink-0 animate-spin" })) : (_jsx(FolderPlus, { className: "h-4 w-4 shrink-0" })), _jsx("span", { children: "Add new repository..." })] }), addError ? (_jsx("p", { className: "px-3 pb-2 text-xs text-red-500", "data-testid": "add-repository-error", children: addError })) : null] }) })] }), _jsx(ReactFileManagerDialog, { open: showReactPicker, onOpenChange: (isOpen) => {
636
+ return (_jsxs(_Fragment, { children: [_jsxs(Popover, { open: open, onOpenChange: setOpen, children: [_jsx(PopoverTrigger, { asChild: true, children: _jsxs("button", { type: "button", role: "combobox", "aria-expanded": open, "aria-label": "Repository", disabled: disabled, "data-testid": "repository-combobox", className: cn('border-input bg-background ring-offset-background focus:ring-ring flex h-9 w-full items-center justify-between rounded-md border px-3 py-2 text-sm focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50', !selectedRepo && 'text-muted-foreground'), children: [_jsx("span", { className: "truncate", children: selectedRepo ? selectedRepo.name : 'Select repository...' }), _jsx(ChevronsUpDown, { className: "ms-2 h-4 w-4 shrink-0 opacity-50" })] }) }), _jsx(PopoverContent, { className: "w-80 p-0", align: "start", "data-testid": "repository-combobox-content", children: _jsxs("div", { className: "flex flex-col", children: [_jsx("div", { className: "border-b p-2", children: _jsx(Input, { ref: inputRef, placeholder: t('createDrawer.searchRepositories'), value: query, onChange: (e) => setQuery(e.target.value), className: "h-8 border-0 p-0 text-sm shadow-none focus-visible:ring-0", "data-testid": "repository-search" }) }), _jsx("div", { className: "max-h-48 overflow-y-auto py-1", role: "listbox", "aria-label": "Repositories", children: filtered.length === 0 ? (_jsx("p", { className: "text-muted-foreground px-3 py-2 text-sm", "data-testid": "repository-empty", children: "No repositories found." })) : (filtered.map((r) => (_jsxs("button", { type: "button", role: "option", "aria-selected": value === r.path, onClick: () => handleSelect(r.path), className: cn('hover:bg-accent hover:text-accent-foreground flex w-full items-center gap-2 px-3 py-2 text-sm', value === r.path && 'bg-accent/50'), "data-testid": `repository-option-${r.id}`, children: [_jsx(CheckIcon, { className: cn('h-4 w-4 shrink-0', value !== r.path && 'invisible') }), _jsxs("span", { className: "flex flex-col items-start truncate", children: [_jsx("span", { className: "truncate", children: r.name }), _jsx("span", { className: "text-muted-foreground truncate text-xs", children: r.path })] })] }, r.id)))) }), _jsx(Separator, {}), _jsxs("button", { type: "button", onClick: handleAddRepository, disabled: isAdding, className: "hover:bg-accent hover:text-accent-foreground flex w-full items-center gap-2 px-3 py-2 text-sm", "data-testid": "add-repository-item", children: [isAdding ? (_jsx(Loader2, { className: "h-4 w-4 shrink-0 animate-spin" })) : (_jsx(FolderPlus, { className: "h-4 w-4 shrink-0" })), _jsx("span", { children: "Add new repository..." })] }), addError ? (_jsx("p", { className: "px-3 pb-2 text-xs text-red-500", "data-testid": "add-repository-error", children: addError })) : null] }) })] }), _jsx(ReactFileManagerDialog, { open: showReactPicker, onOpenChange: (isOpen) => {
625
637
  if (!isOpen)
626
638
  setShowReactPicker(false);
627
639
  }, onSelect: handleReactPickerSelect })] }));
@@ -1 +1 @@
1
- {"version":3,"file":"activity-tab.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-drawer-tabs/activity-tab.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EACV,eAAe,EACf,qBAAqB,EACtB,MAAM,yCAAyC,CAAC;AAmEjD,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,eAAe,EAAE,GAAG,IAAI,CAAC;IAClC,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,iBAAiB,CAAC,EAAE,qBAAqB,EAAE,CAAC;CAC7C;AAwED;;;;;;;GAOG;AACH,MAAM,WAAW,iBAAiB;IAChC,+BAA+B;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,0CAA0C;IAC1C,OAAO,EAAE,eAAe,EAAE,CAAC;IAC3B,mEAAmE;IACnE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,8DAA8D;IAC9D,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;CACjC;AAED;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,eAAe,EAAE,EAC1B,QAAQ,CAAC,EAAE,qBAAqB,EAAE,GACjC,iBAAiB,EAAE,CAgErB;AA6BD,wBAAgB,WAAW,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE,EAAE,gBAAgB,2CAqE3F"}
1
+ {"version":3,"file":"activity-tab.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-drawer-tabs/activity-tab.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EACV,eAAe,EACf,qBAAqB,EACtB,MAAM,yCAAyC,CAAC;AAmEjD,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,eAAe,EAAE,GAAG,IAAI,CAAC;IAClC,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,iBAAiB,CAAC,EAAE,qBAAqB,EAAE,CAAC;CAC7C;AAwED;;;;;;;GAOG;AACH,MAAM,WAAW,iBAAiB;IAChC,+BAA+B;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,0CAA0C;IAC1C,OAAO,EAAE,eAAe,EAAE,CAAC;IAC3B,mEAAmE;IACnE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,8DAA8D;IAC9D,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;CACjC;AAED;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,eAAe,EAAE,EAC1B,QAAQ,CAAC,EAAE,qBAAqB,EAAE,GACjC,iBAAiB,EAAE,CAgErB;AA6BD,wBAAgB,WAAW,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE,EAAE,gBAAgB,2CAsE3F"}
@@ -1,6 +1,7 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { useState, useEffect, useRef, useCallback } from 'react';
4
+ import { useTranslation } from 'react-i18next';
4
5
  import { Loader2, AlertCircle, Clock, Zap, DollarSign, Play, RotateCcw, CheckCircle2, XCircle, Square, Ban, MessageSquare, Timer, ArrowDownToLine, ArrowUpFromLine, Copy, Check, } from 'lucide-react';
5
6
  import { InlineAttachments } from '../../common/inline-attachments/index.js';
6
7
  import { formatDuration } from '../../../lib/format-duration.js';
@@ -217,6 +218,7 @@ function getIterationOutcome(iteration) {
217
218
  * Component
218
219
  * ------------------------------------------------------------------------- */
219
220
  export function ActivityTab({ timings, loading, error, rejectionFeedback }) {
221
+ const { t } = useTranslation('web');
220
222
  const now = useTickingNow(timings);
221
223
  if (loading) {
222
224
  return (_jsx("div", { "data-testid": "activity-tab-loading", className: "flex items-center justify-center p-8", children: _jsx(Loader2, { className: "text-muted-foreground h-6 w-6 animate-spin" }) }));
@@ -225,7 +227,7 @@ export function ActivityTab({ timings, loading, error, rejectionFeedback }) {
225
227
  return (_jsxs("div", { className: "flex items-center gap-2 p-4 text-base text-red-600", children: [_jsx(AlertCircle, { className: "h-4 w-4 shrink-0" }), _jsx("span", { children: error })] }));
226
228
  }
227
229
  if (!timings || timings.length === 0) {
228
- return (_jsxs("div", { className: "flex flex-col items-center justify-center gap-2 p-8", children: [_jsx(Clock, { className: "text-muted-foreground h-8 w-8" }), _jsx("p", { className: "text-muted-foreground text-base", children: "No activity recorded yet" })] }));
230
+ return (_jsxs("div", { className: "flex flex-col items-center justify-center gap-2 p-8", children: [_jsx(Clock, { className: "text-muted-foreground h-8 w-8" }), _jsx("p", { className: "text-muted-foreground text-base", children: t('activityTab.noActivityRecorded') })] }));
229
231
  }
230
232
  const nodeTimings = timings.filter((t) => !isLifecycleEvent(t.phase));
231
233
  const maxDurationMs = Math.max(...nodeTimings.map((t) => getEffectiveDuration(t, now)), ...nodeTimings.map((t) => t.approvalWaitMs ?? 0), 0);
@@ -285,6 +287,7 @@ function LifecycleEventRow({ timing, message, attachments, isFirst, isLast, }) {
285
287
  : null, hasAttachments ? (_jsx("div", { "data-testid": "rejection-feedback-attachments", className: "ml-[26px]", children: _jsx(InlineAttachments, { text: "", attachmentPaths: attachments }) })) : null] }));
286
288
  }
287
289
  function NodeTimingRow({ timing, maxDurationMs, now, }) {
290
+ const { t } = useTranslation('web');
288
291
  const base = timing.phase.includes(':') ? timing.phase.split(':')[0] : timing.phase;
289
292
  const suffix = timing.phase.includes(':') ? timing.phase.split(':')[1] : null;
290
293
  const isSubPhase = suffix !== null;
@@ -319,26 +322,27 @@ function NodeTimingRow({ timing, maxDurationMs, now, }) {
319
322
  setTimeout(() => setCopied(false), 1500);
320
323
  });
321
324
  }, [timing.prompt]);
322
- return (_jsxs("div", { className: `group/phase relative flex flex-col gap-0.5 px-3 py-1.5 ${isSubPhase ? 'ml-4' : ''}`, children: [_jsxs("div", { "data-testid": `timing-bar-${timing.phase}`, className: "flex items-center gap-2", children: [_jsx("div", { className: "relative z-10 flex h-5 w-5 shrink-0 items-center justify-center", children: _jsx("div", { className: `rounded-full ${isRunning ? 'h-3 w-3 animate-pulse' : 'h-2.5 w-2.5'} ${isRunning
325
+ return (_jsxs("div", { className: `group/phase relative flex flex-col gap-0.5 px-3 py-1.5 ${isSubPhase ? 'ms-4' : ''}`, children: [_jsxs("div", { "data-testid": `timing-bar-${timing.phase}`, className: "flex items-center gap-2", children: [_jsx("div", { className: "relative z-10 flex h-5 w-5 shrink-0 items-center justify-center", children: _jsx("div", { className: `rounded-full ${isRunning ? 'h-3 w-3 animate-pulse' : 'h-2.5 w-2.5'} ${isRunning
323
326
  ? 'bg-blue-500'
324
327
  : timing.completedAt
325
328
  ? 'bg-emerald-500'
326
- : 'bg-muted-foreground/30'}` }) }), _jsx("span", { className: `w-28 shrink-0 truncate text-sm font-medium ${isSubPhase ? 'text-muted-foreground' : 'text-foreground/80'}`, children: label }), timing.prompt ? (_jsx("button", { type: "button", onClick: handleCopyPrompt, className: "text-muted-foreground/50 hover:text-foreground/70 -ml-1 shrink-0 opacity-0 transition-opacity group-hover/phase:opacity-100", title: "Copy prompt to clipboard", children: copied ? (_jsx(Check, { className: "h-3.5 w-3.5 text-emerald-500" })) : (_jsx(Copy, { className: "h-3.5 w-3.5" })) })) : null, _jsx("div", { className: `bg-muted relative min-w-0 flex-1 overflow-hidden rounded-full ${isSubPhase ? 'h-1.5' : 'h-2'}`, children: isRunning ? (_jsx("div", { className: "absolute inset-0 rounded-full bg-blue-500/30", style: {
329
+ : 'bg-muted-foreground/30'}` }) }), _jsx("span", { className: `w-28 shrink-0 truncate text-sm font-medium ${isSubPhase ? 'text-muted-foreground' : 'text-foreground/80'}`, children: label }), timing.prompt ? (_jsx("button", { type: "button", onClick: handleCopyPrompt, className: "text-muted-foreground/50 hover:text-foreground/70 -ms-1 shrink-0 opacity-0 transition-opacity group-hover/phase:opacity-100", title: t('activityTab.copyPromptToClipboard'), children: copied ? (_jsx(Check, { className: "h-3.5 w-3.5 text-emerald-500" })) : (_jsx(Copy, { className: "h-3.5 w-3.5" })) })) : null, _jsx("div", { className: `bg-muted relative min-w-0 flex-1 overflow-hidden rounded-full ${isSubPhase ? 'h-1.5' : 'h-2'}`, children: isRunning ? (_jsx("div", { className: "absolute inset-0 rounded-full bg-blue-500/30", style: {
327
330
  backgroundImage: 'linear-gradient(90deg, transparent 0%, rgb(59 130 246) 50%, transparent 100%)',
328
331
  backgroundSize: '200% 100%',
329
332
  animation: 'shimmer 1.5s ease-in-out infinite',
330
- } })) : (_jsx("div", { className: `h-full rounded-full transition-all duration-300 ${barColorClass}`, style: { width: `${Math.min(barPercent, 100)}%` } })) }), _jsx("span", { className: "text-muted-foreground w-14 shrink-0 text-right text-sm font-medium tabular-nums", children: formatDuration(durationMs) })] }), _jsxs("div", { className: "ml-[28px] flex items-center gap-3 text-xs", children: [timing.startedAt ? (_jsx("span", { className: "text-muted-foreground/60 tabular-nums", children: formatTimestamp(timing.startedAt) })) : null, totalTokens != null && totalTokens > 0 ? (_jsxs("span", { className: "text-muted-foreground/70 inline-flex items-center gap-0.5", children: [_jsx(Zap, { className: "h-3 w-3 opacity-50" }), formatTokens(totalTokens)] })) : null, timing.costUsd != null && timing.costUsd > 0 ? (_jsxs("span", { className: "text-muted-foreground/70 inline-flex items-center gap-0.5", children: [_jsx(DollarSign, { className: "h-3 w-3 opacity-50" }), formatCost(timing.costUsd)] })) : null] }), timing.approvalWaitMs != null && timing.approvalWaitMs > 0 ? (_jsx(ApprovalWaitRow, { timing: timing, maxDurationMs: maxDurationMs })) : null] }));
333
+ } })) : (_jsx("div", { className: `h-full rounded-full transition-all duration-300 ${barColorClass}`, style: { width: `${Math.min(barPercent, 100)}%` } })) }), _jsx("span", { className: "text-muted-foreground w-14 shrink-0 text-end text-sm font-medium tabular-nums", children: formatDuration(durationMs) })] }), _jsxs("div", { className: "ml-[28px] flex items-center gap-3 text-xs", children: [timing.startedAt ? (_jsx("span", { className: "text-muted-foreground/60 tabular-nums", children: formatTimestamp(timing.startedAt) })) : null, totalTokens != null && totalTokens > 0 ? (_jsxs("span", { className: "text-muted-foreground/70 inline-flex items-center gap-0.5", children: [_jsx(Zap, { className: "h-3 w-3 opacity-50" }), formatTokens(totalTokens)] })) : null, timing.costUsd != null && timing.costUsd > 0 ? (_jsxs("span", { className: "text-muted-foreground/70 inline-flex items-center gap-0.5", children: [_jsx(DollarSign, { className: "h-3 w-3 opacity-50" }), formatCost(timing.costUsd)] })) : null] }), timing.approvalWaitMs != null && timing.approvalWaitMs > 0 ? (_jsx(ApprovalWaitRow, { timing: timing, maxDurationMs: maxDurationMs })) : null] }));
331
334
  }
332
335
  function ApprovalWaitRow({ timing, maxDurationMs, }) {
333
336
  const waitMs = timing.approvalWaitMs ?? 0;
334
337
  const barPercent = maxDurationMs > 0 ? Math.max(2, (waitMs / maxDurationMs) * 100) : 2;
335
- return (_jsxs("div", { "data-testid": `approval-wait-${timing.phase}`, className: "ml-[26px] flex items-center gap-2 rounded-md bg-amber-50/50 px-1.5 py-1 dark:bg-amber-950/20", children: [_jsx(Timer, { className: "h-3.5 w-3.5 shrink-0 text-amber-500" }), _jsx("span", { className: "text-muted-foreground w-16 shrink-0 text-xs", children: "approval" }), _jsx("div", { className: "bg-muted h-1.5 min-w-0 flex-1 overflow-hidden rounded-full", children: _jsx("div", { className: "h-full rounded-full bg-amber-500", style: { width: `${Math.min(barPercent, 100)}%` } }) }), _jsx("span", { className: "text-muted-foreground w-14 shrink-0 text-right text-xs tabular-nums", children: formatDuration(waitMs) })] }));
338
+ return (_jsxs("div", { "data-testid": `approval-wait-${timing.phase}`, className: "ml-[26px] flex items-center gap-2 rounded-md bg-amber-50/50 px-1.5 py-1 dark:bg-amber-950/20", children: [_jsx(Timer, { className: "h-3.5 w-3.5 shrink-0 text-amber-500" }), _jsx("span", { className: "text-muted-foreground w-16 shrink-0 text-xs", children: "approval" }), _jsx("div", { className: "bg-muted h-1.5 min-w-0 flex-1 overflow-hidden rounded-full", children: _jsx("div", { className: "h-full rounded-full bg-amber-500", style: { width: `${Math.min(barPercent, 100)}%` } }) }), _jsx("span", { className: "text-muted-foreground w-14 shrink-0 text-end text-xs tabular-nums", children: formatDuration(waitMs) })] }));
336
339
  }
337
340
  function SummaryTotals({ totalExecMs, totalWaitMs, totalInputTokens, totalOutputTokens, totalCostUsd, }) {
341
+ const { t } = useTranslation('web');
338
342
  const totalTokens = totalInputTokens + totalOutputTokens;
339
- return (_jsxs("div", { "data-testid": "activity-summary", className: "border-border bg-card/30 flex flex-col gap-2 rounded-lg border p-3", children: [_jsx("div", { className: "text-muted-foreground mb-1 text-xs font-semibold tracking-wider uppercase", children: "Summary" }), _jsxs("div", { className: "grid grid-cols-2 gap-x-4 gap-y-3", children: [_jsx(SummaryCell, { icon: Clock, label: "Execution", value: formatDuration(totalExecMs) }), _jsx(SummaryCell, { icon: Timer, label: "Wait", value: totalWaitMs > 0 ? formatDuration(totalWaitMs) : 'n/a' }), _jsx(SummaryCell, { icon: Clock, label: "Wall-clock", value: totalWaitMs > 0
343
+ return (_jsxs("div", { "data-testid": "activity-summary", className: "border-border bg-card/30 flex flex-col gap-2 rounded-lg border p-3", children: [_jsx("div", { className: "text-muted-foreground mb-1 text-xs font-semibold tracking-wider uppercase", children: "Summary" }), _jsxs("div", { className: "grid grid-cols-2 gap-x-4 gap-y-3", children: [_jsx(SummaryCell, { icon: Clock, label: t('activityTab.execution'), value: formatDuration(totalExecMs) }), _jsx(SummaryCell, { icon: Timer, label: t('activityTab.wait'), value: totalWaitMs > 0 ? formatDuration(totalWaitMs) : 'n/a' }), _jsx(SummaryCell, { icon: Clock, label: "Wall-clock", value: totalWaitMs > 0
340
344
  ? formatDuration(totalExecMs + totalWaitMs)
341
- : formatDuration(totalExecMs) }), _jsx(SummaryCell, { icon: DollarSign, label: "Cost", value: totalCostUsd > 0 ? formatCost(totalCostUsd) : 'n/a' }), _jsxs("div", { className: "col-span-2 flex flex-col gap-0.5", children: [_jsxs("span", { className: "text-muted-foreground flex items-center gap-1 text-xs", children: [_jsx(Zap, { className: "h-3 w-3 opacity-40" }), "Tokens"] }), totalTokens > 0 ? (_jsxs("span", { className: "flex items-center gap-2.5 text-sm tabular-nums", children: [_jsx("span", { children: formatTokens(totalTokens) }), _jsxs("span", { className: "text-muted-foreground flex items-center gap-3 text-xs", title: "Input tokens / Output tokens", children: [_jsxs("span", { className: "flex items-center gap-0.5", children: [_jsx(ArrowDownToLine, { className: "h-3 w-3 text-blue-500 opacity-60" }), formatTokens(totalInputTokens)] }), _jsxs("span", { className: "flex items-center gap-0.5", children: [_jsx(ArrowUpFromLine, { className: "h-3 w-3 text-emerald-500 opacity-60" }), formatTokens(totalOutputTokens)] })] })] })) : (_jsx("span", { className: "text-muted-foreground/40 text-sm italic tabular-nums", children: "n/a" }))] })] })] }));
345
+ : formatDuration(totalExecMs) }), _jsx(SummaryCell, { icon: DollarSign, label: t('activityTab.cost'), value: totalCostUsd > 0 ? formatCost(totalCostUsd) : 'n/a' }), _jsxs("div", { className: "col-span-2 flex flex-col gap-0.5", children: [_jsxs("span", { className: "text-muted-foreground flex items-center gap-1 text-xs", children: [_jsx(Zap, { className: "h-3 w-3 opacity-40" }), "Tokens"] }), totalTokens > 0 ? (_jsxs("span", { className: "flex items-center gap-2.5 text-sm tabular-nums", children: [_jsx("span", { children: formatTokens(totalTokens) }), _jsxs("span", { className: "text-muted-foreground flex items-center gap-3 text-xs", title: "Input tokens / Output tokens", children: [_jsxs("span", { className: "flex items-center gap-0.5", children: [_jsx(ArrowDownToLine, { className: "h-3 w-3 text-blue-500 opacity-60" }), formatTokens(totalInputTokens)] }), _jsxs("span", { className: "flex items-center gap-0.5", children: [_jsx(ArrowUpFromLine, { className: "h-3 w-3 text-emerald-500 opacity-60" }), formatTokens(totalOutputTokens)] })] })] })) : (_jsx("span", { className: "text-muted-foreground/40 text-sm italic tabular-nums", children: "n/a" }))] })] })] }));
342
346
  }
343
347
  function SummaryCell({ icon: Icon, label, value, className = '', }) {
344
348
  const isNA = value === 'n/a';
@@ -1 +1 @@
1
- {"version":3,"file":"branch-sync-status.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-drawer-tabs/branch-sync-status.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAErE,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,cAAc,GAAG,IAAI,CAAC;IAClC,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,aAAa,EAAE,OAAO,CAAC;IACvB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,UAAU,EACV,WAAW,EACX,SAAS,EACT,aAAa,EACb,cAAc,EACd,aAAa,EACb,WAAW,GACZ,EAAE,qBAAqB,2CAkGvB"}
1
+ {"version":3,"file":"branch-sync-status.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-drawer-tabs/branch-sync-status.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAErE,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,cAAc,GAAG,IAAI,CAAC;IAClC,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,aAAa,EAAE,OAAO,CAAC;IACvB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,UAAU,EACV,WAAW,EACX,SAAS,EACT,aAAa,EACb,cAAc,EACd,aAAa,EACb,WAAW,GACZ,EAAE,qBAAqB,2CAmGvB"}
@@ -1,13 +1,15 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { useTranslation } from 'react-i18next';
3
4
  import { AlertTriangle, CheckCircle2, GitMerge, RefreshCw } from 'lucide-react';
4
5
  import { CometSpinner } from '../../ui/comet-spinner.js';
5
6
  import { ActionButton } from '../../common/action-button/index.js';
6
7
  import { Separator } from '../../ui/separator.js';
7
8
  export function BranchSyncStatus({ syncStatus, syncLoading, syncError, onRefreshSync, onRebaseOnMain, rebaseLoading, rebaseError, }) {
9
+ const { t } = useTranslation('web');
8
10
  const isRebasing = rebaseLoading;
9
11
  const isBehind = syncStatus != null && syncStatus.behind > 0;
10
12
  const isUpToDate = syncStatus?.behind === 0;
11
13
  const baseBranch = syncStatus?.baseBranch ?? 'main';
12
- return (_jsxs(_Fragment, { children: [_jsx(Separator, {}), _jsxs("div", { "data-testid": "branch-sync-status", className: "flex flex-col gap-3 p-4", children: [_jsx("div", { className: "text-muted-foreground text-xs font-semibold tracking-wider", children: "BRANCH SYNC" }), _jsxs("div", { className: "flex items-center justify-between", children: [_jsx("div", { className: "flex items-center gap-2", children: syncLoading && !syncStatus ? (_jsxs(_Fragment, { children: [_jsx(CometSpinner, { size: "sm", className: "shrink-0" }), _jsx("span", { className: "text-muted-foreground text-sm", children: "Checking..." })] })) : syncError ? (_jsxs(_Fragment, { children: [_jsx(AlertTriangle, { className: "h-4 w-4 shrink-0 text-red-500" }), _jsx("span", { className: "text-sm text-red-600", children: syncError })] })) : isRebasing ? (_jsxs(_Fragment, { children: [_jsx(CometSpinner, { size: "sm", className: "shrink-0" }), _jsxs("span", { className: "text-sm", children: ["Rebasing on", ' ', _jsx("code", { className: "bg-muted rounded px-1 py-0.5 font-mono text-xs", children: baseBranch }), "..."] })] })) : isBehind ? (_jsxs(_Fragment, { children: [_jsx(AlertTriangle, { className: "h-4 w-4 shrink-0 text-orange-500" }), _jsxs("span", { className: "text-sm", children: [syncStatus.behind, " commit", syncStatus.behind === 1 ? '' : 's', " behind", ' ', _jsx("code", { className: "bg-muted rounded px-1 py-0.5 font-mono text-xs", children: baseBranch }), syncStatus.ahead > 0 ? (_jsxs("span", { className: "text-muted-foreground ml-1", children: ["\u00B7 ", syncStatus.ahead, " ahead"] })) : null] })] })) : isUpToDate ? (_jsxs(_Fragment, { children: [_jsx(CheckCircle2, { className: "h-4 w-4 shrink-0 text-green-500" }), _jsxs("span", { className: "text-sm", children: ["Up to date with", ' ', _jsx("code", { className: "bg-muted rounded px-1 py-0.5 font-mono text-xs", children: baseBranch }), syncStatus.ahead > 0 ? (_jsxs("span", { className: "text-muted-foreground ml-1", children: ["\u00B7 ", syncStatus.ahead, " ahead"] })) : null] })] })) : null }), (syncStatus || syncError) && !isRebasing ? (_jsx("button", { "data-testid": "sync-refresh-button", onClick: onRefreshSync, disabled: syncLoading, className: "text-muted-foreground hover:text-foreground inline-flex items-center rounded p-1 transition-colors disabled:opacity-50", "aria-label": "Refresh sync status", children: _jsx(RefreshCw, { className: `h-3.5 w-3.5 ${syncLoading ? 'animate-spin' : ''}` }) })) : null] }), isBehind && !isRebasing ? (_jsx(ActionButton, { label: "Rebase on Main", onClick: onRebaseOnMain, loading: false, error: !!rebaseError, icon: GitMerge, variant: "outline", size: "sm" })) : null, rebaseError ? _jsx("p", { className: "text-destructive text-xs", children: rebaseError }) : null] })] }));
14
+ return (_jsxs(_Fragment, { children: [_jsx(Separator, {}), _jsxs("div", { "data-testid": "branch-sync-status", className: "flex flex-col gap-3 p-4", children: [_jsx("div", { className: "text-muted-foreground text-xs font-semibold tracking-wider", children: "BRANCH SYNC" }), _jsxs("div", { className: "flex items-center justify-between", children: [_jsx("div", { className: "flex items-center gap-2", children: syncLoading && !syncStatus ? (_jsxs(_Fragment, { children: [_jsx(CometSpinner, { size: "sm", className: "shrink-0" }), _jsx("span", { className: "text-muted-foreground text-sm", children: "Checking..." })] })) : syncError ? (_jsxs(_Fragment, { children: [_jsx(AlertTriangle, { className: "h-4 w-4 shrink-0 text-red-500" }), _jsx("span", { className: "text-sm text-red-600", children: syncError })] })) : isRebasing ? (_jsxs(_Fragment, { children: [_jsx(CometSpinner, { size: "sm", className: "shrink-0" }), _jsxs("span", { className: "text-sm", children: ["Rebasing on", ' ', _jsx("code", { className: "bg-muted rounded px-1 py-0.5 font-mono text-xs", children: baseBranch }), "..."] })] })) : isBehind ? (_jsxs(_Fragment, { children: [_jsx(AlertTriangle, { className: "h-4 w-4 shrink-0 text-orange-500" }), _jsxs("span", { className: "text-sm", children: [syncStatus.behind, " commit", syncStatus.behind === 1 ? '' : 's', " behind", ' ', _jsx("code", { className: "bg-muted rounded px-1 py-0.5 font-mono text-xs", children: baseBranch }), syncStatus.ahead > 0 ? (_jsxs("span", { className: "text-muted-foreground ms-1", children: ["\u00B7 ", syncStatus.ahead, " ahead"] })) : null] })] })) : isUpToDate ? (_jsxs(_Fragment, { children: [_jsx(CheckCircle2, { className: "h-4 w-4 shrink-0 text-green-500" }), _jsxs("span", { className: "text-sm", children: ["Up to date with", ' ', _jsx("code", { className: "bg-muted rounded px-1 py-0.5 font-mono text-xs", children: baseBranch }), syncStatus.ahead > 0 ? (_jsxs("span", { className: "text-muted-foreground ms-1", children: ["\u00B7 ", syncStatus.ahead, " ahead"] })) : null] })] })) : null }), (syncStatus || syncError) && !isRebasing ? (_jsx("button", { "data-testid": "sync-refresh-button", onClick: onRefreshSync, disabled: syncLoading, className: "text-muted-foreground hover:text-foreground inline-flex items-center rounded p-1 transition-colors disabled:opacity-50", "aria-label": t('branchSyncStatus.refreshSyncStatus'), children: _jsx(RefreshCw, { className: `h-3.5 w-3.5 ${syncLoading ? 'animate-spin' : ''}` }) })) : null] }), isBehind && !isRebasing ? (_jsx(ActionButton, { label: t('branchSyncStatus.rebaseOnMain'), onClick: onRebaseOnMain, loading: false, error: !!rebaseError, icon: GitMerge, variant: "outline", size: "sm" })) : null, rebaseError ? _jsx("p", { className: "text-destructive text-xs", children: rebaseError }) : null] })] }));
13
15
  }
@@ -1 +1 @@
1
- {"version":3,"file":"feature-drawer-tabs.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-drawer-tabs/feature-drawer-tabs.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAU9E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AACzF,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+CAA+C,CAAC;AACjG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAMxE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAS9E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uDAAuD,CAAC;AAC3F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AA2DrE,MAAM,WAAW,sBAAsB;IACrC,kDAAkD;IAClD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mFAAmF;IACnF,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,WAAW,EAAE,eAAe,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B,gFAAgF;IAChF,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,mFAAmF;IACnF,SAAS,CAAC,EAAE,SAAS,iBAAiB,EAAE,CAAC;IAGzC,OAAO,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAC;IACtC,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACvC,WAAW,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7D,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,WAAW,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,gBAAgB,EAAE,KAAK,IAAI,CAAC;IAC1E,YAAY,CAAC,EAAE,OAAO,CAAC;IAGvB,QAAQ,CAAC,EAAE,uBAAuB,GAAG,IAAI,CAAC;IAC1C,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,gBAAgB,EAAE,KAAK,IAAI,CAAC;IAC3E,aAAa,CAAC,EAAE,OAAO,CAAC;IAGxB,WAAW,CAAC,EAAE,2BAA2B,GAAG,IAAI,CAAC;IAGjD,SAAS,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;IACnC,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,aAAa,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,gBAAgB,EAAE,KAAK,IAAI,CAAC;IAC5E,cAAc,CAAC,EAAE,OAAO,CAAC;IAGzB,UAAU,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC;IACnC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAG3B,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAG5B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAG5C,qFAAqF;IACrF,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACnC;AAwBD,wBAAgB,iBAAiB,CAAC,EAChC,WAAW,EACX,aAAa,EACb,WAAW,EACX,SAAS,EACT,UAAU,EACV,MAAM,EACN,OAAO,EACP,aAAa,EACb,WAAW,EACX,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,aAAa,EACb,YAAY,EACZ,aAAa,EACb,WAAW,EACX,SAAS,EACT,cAAc,EACd,aAAa,EACb,cAAc,EACd,UAAU,EACV,WAAW,EACX,SAAS,EACT,aAAa,EACb,cAAc,EACd,aAAa,EACb,WAAW,EACX,WAAW,EACX,SAAS,EACT,iBAAiB,EACjB,SAAS,EACT,uBAA8B,GAC/B,EAAE,sBAAsB,2CAwXxB"}
1
+ {"version":3,"file":"feature-drawer-tabs.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-drawer-tabs/feature-drawer-tabs.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAU9E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AACzF,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+CAA+C,CAAC;AACjG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAMxE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAS9E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uDAAuD,CAAC;AAC3F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AA2DrE,MAAM,WAAW,sBAAsB;IACrC,kDAAkD;IAClD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mFAAmF;IACnF,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,WAAW,EAAE,eAAe,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B,gFAAgF;IAChF,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,mFAAmF;IACnF,SAAS,CAAC,EAAE,SAAS,iBAAiB,EAAE,CAAC;IAGzC,OAAO,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAC;IACtC,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACvC,WAAW,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7D,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,WAAW,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,gBAAgB,EAAE,KAAK,IAAI,CAAC;IAC1E,YAAY,CAAC,EAAE,OAAO,CAAC;IAGvB,QAAQ,CAAC,EAAE,uBAAuB,GAAG,IAAI,CAAC;IAC1C,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,gBAAgB,EAAE,KAAK,IAAI,CAAC;IAC3E,aAAa,CAAC,EAAE,OAAO,CAAC;IAGxB,WAAW,CAAC,EAAE,2BAA2B,GAAG,IAAI,CAAC;IAGjD,SAAS,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;IACnC,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,aAAa,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,gBAAgB,EAAE,KAAK,IAAI,CAAC;IAC5E,cAAc,CAAC,EAAE,OAAO,CAAC;IAGzB,UAAU,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC;IACnC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAG3B,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAG5B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAG5C,qFAAqF;IACrF,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACnC;AAwBD,wBAAgB,iBAAiB,CAAC,EAChC,WAAW,EACX,aAAa,EACb,WAAW,EACX,SAAS,EACT,UAAU,EACV,MAAM,EACN,OAAO,EACP,aAAa,EACb,WAAW,EACX,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,aAAa,EACb,YAAY,EACZ,aAAa,EACb,WAAW,EACX,SAAS,EACT,cAAc,EACd,aAAa,EACb,cAAc,EACd,UAAU,EACV,WAAW,EACX,SAAS,EACT,aAAa,EACb,cAAc,EACd,aAAa,EACb,WAAW,EACX,WAAW,EACX,SAAS,EACT,iBAAiB,EACjB,SAAS,EACT,uBAA8B,GAC/B,EAAE,sBAAsB,2CAwXxB"}
@@ -1,6 +1,7 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { useState, useEffect, useCallback, useRef, useMemo } from 'react';
4
+ import { useTranslation } from 'react-i18next';
4
5
  import { usePathname } from 'next/navigation';
5
6
  import { Loader2, AlertCircle } from 'lucide-react';
6
7
  import { Tabs, TabsList, TabsTrigger, TabsContent } from '../../ui/tabs.js';
@@ -251,9 +252,10 @@ export function FeatureDrawerTabs({ featureName, headerContent, featureNode, fea
251
252
  fetchTab(tab);
252
253
  }
253
254
  }, [fetchTab]);
254
- return (_jsx("div", { className: "flex min-h-0 flex-1 flex-col", children: _jsxs(Tabs, { value: activeTab, onValueChange: handleTabChange, className: "flex min-h-0 flex-1 flex-col", children: [_jsxs("div", { className: "shrink-0 px-4 pt-4 pb-3", "data-testid": "feature-drawer-header", children: [_jsxs("div", { className: "flex items-baseline gap-4 pr-6", children: [featureName ? (_jsx("h2", { className: "text-foreground min-w-0 shrink truncate text-base font-semibold tracking-tight", children: featureName })) : null, _jsx(TabsList, { className: "h-auto shrink-0 gap-0.5 rounded-none border-0 bg-transparent p-0", children: visibleTabDefs.map((tab) => (_jsx(TabsTrigger, { value: tab.key, className: "text-muted-foreground hover:text-foreground data-[state=active]:text-foreground data-[state=active]:border-primary h-auto rounded-none border-b-2 border-transparent bg-transparent px-2 py-0.5 text-[12px] font-medium shadow-none transition-colors data-[state=active]:bg-transparent data-[state=active]:shadow-none", children: tab.label }, tab.key))) })] }), headerContent] }), _jsx(Separator, {}), _jsx(TabsContent, { value: "overview", className: "mt-0 flex-1 overflow-y-auto", children: _jsx(OverviewTab, { data: featureNode, syncStatus: syncStatus, syncLoading: syncLoading, syncError: syncError, onRefreshSync: onRefreshSync, onRebaseOnMain: onRebaseOnMain, rebaseLoading: rebaseLoading, rebaseError: rebaseError }) }), _jsx(TabsContent, { value: "activity", className: "mt-0 flex-1 overflow-y-auto", children: _jsx(ActivityTab, { timings: tabs.activity.data?.timings ?? null, loading: tabs.activity.loading, error: tabs.activity.error, rejectionFeedback: tabs.activity.data?.rejectionFeedback }) }), _jsx(TabsContent, { value: "log", className: "mt-0 flex-1 overflow-hidden", children: _jsx(LogTab, { content: featureLogs.content, isConnected: featureLogs.isConnected, error: featureLogs.error }) }), _jsx(TabsContent, { value: "plan", className: "mt-0 flex-1 overflow-y-auto", children: _jsx(PlanTab, { plan: tabs.plan.data, loading: tabs.plan.loading, error: tabs.plan.error }) }), visibleTabs.includes('prd-review') ? (_jsx(TabsContent, { value: "prd-review", className: "mt-0 flex min-h-0 flex-1 flex-col", children: prdData ? (_jsx(PrdQuestionnaire, { data: prdData, selections: prdSelections ?? {}, onSelect: onPrdSelect ?? (() => undefined), onApprove: onPrdApprove ?? (() => undefined), onReject: onPrdReject, isProcessing: isPrdLoading, isRejecting: isRejecting, chatInput: chatInput, onChatInputChange: onChatInputChange })) : (_jsx("div", { className: "flex items-center justify-center p-8", children: _jsx(Loader2, { className: "text-muted-foreground h-6 w-6 animate-spin" }) })) })) : null, visibleTabs.includes('tech-decisions') ? (_jsx(TabsContent, { value: "tech-decisions", className: "mt-0 flex min-h-0 flex-1 flex-col", children: techData ? (_jsxs("div", { className: "flex min-h-0 flex-1 flex-col", children: [_jsx("div", { className: "flex-1 overflow-y-auto", children: _jsx(TechDecisionsContent, { data: techData }) }), _jsx(DrawerActionBarForTech, { onApprove: onTechApprove ?? (() => undefined), onReject: onTechReject, isProcessing: isTechLoading, isRejecting: isRejecting, chatInput: chatInput, onChatInputChange: onChatInputChange })] })) : (_jsx("div", { className: "flex items-center justify-center p-8", children: _jsx(Loader2, { className: "text-muted-foreground h-6 w-6 animate-spin" }) })) })) : null, visibleTabs.includes('product-decisions') ? (_jsx(TabsContent, { value: "product-decisions", className: "mt-0 flex-1 overflow-y-auto", children: productData === null ? (_jsx("div", { className: "flex items-center justify-center p-8", children: _jsx(Loader2, { className: "text-muted-foreground h-6 w-6 animate-spin" }) })) : productData ? (_jsx(ProductDecisionsSummary, { data: productData })) : (_jsx("p", { className: "text-muted-foreground p-4 text-center text-sm", children: "No product decisions available." })) })) : null, visibleTabs.includes('merge-review') ? (_jsx(TabsContent, { value: "merge-review", className: "mt-0 flex min-h-0 flex-1 flex-col", children: mergeData ? (_jsx(MergeReview, { data: mergeData, readOnly: featureNode.lifecycle === 'maintain', onApprove: onMergeApprove ?? (() => undefined), onReject: onMergeReject, isProcessing: isMergeLoading, isRejecting: isRejecting, chatInput: chatInput, onChatInputChange: onChatInputChange })) : (_jsx("div", { className: "flex items-center justify-center p-8", children: isMergeLoading ? (_jsx(Loader2, { className: "text-muted-foreground h-6 w-6 animate-spin" })) : (_jsxs("div", { className: "text-muted-foreground flex flex-col items-center gap-2 text-sm", children: [_jsx(AlertCircle, { className: "h-6 w-6" }), _jsx("span", { children: "Merge review data unavailable" })] })) })) })) : null, visibleTabs.includes('chat') ? (_jsx(TabsContent, { value: "chat", className: "mt-0 flex min-h-0 flex-1 flex-col overflow-hidden", children: _jsx(ChatTab, { featureId: featureId, worktreePath: featureNode.worktreePath }) })) : null] }) }));
255
+ return (_jsx("div", { className: "flex min-h-0 flex-1 flex-col", children: _jsxs(Tabs, { value: activeTab, onValueChange: handleTabChange, className: "flex min-h-0 flex-1 flex-col", children: [_jsxs("div", { className: "shrink-0 px-4 pt-4 pb-3", "data-testid": "feature-drawer-header", children: [_jsxs("div", { className: "flex items-baseline gap-4 pe-6", children: [featureName ? (_jsx("h2", { className: "text-foreground min-w-0 shrink truncate text-base font-semibold tracking-tight", children: featureName })) : null, _jsx(TabsList, { className: "h-auto shrink-0 gap-0.5 rounded-none border-0 bg-transparent p-0", children: visibleTabDefs.map((tab) => (_jsx(TabsTrigger, { value: tab.key, className: "text-muted-foreground hover:text-foreground data-[state=active]:text-foreground data-[state=active]:border-primary h-auto rounded-none border-b-2 border-transparent bg-transparent px-2 py-0.5 text-[12px] font-medium shadow-none transition-colors data-[state=active]:bg-transparent data-[state=active]:shadow-none", children: tab.label }, tab.key))) })] }), headerContent] }), _jsx(Separator, {}), _jsx(TabsContent, { value: "overview", className: "mt-0 flex-1 overflow-y-auto", children: _jsx(OverviewTab, { data: featureNode, syncStatus: syncStatus, syncLoading: syncLoading, syncError: syncError, onRefreshSync: onRefreshSync, onRebaseOnMain: onRebaseOnMain, rebaseLoading: rebaseLoading, rebaseError: rebaseError }) }), _jsx(TabsContent, { value: "activity", className: "mt-0 flex-1 overflow-y-auto", children: _jsx(ActivityTab, { timings: tabs.activity.data?.timings ?? null, loading: tabs.activity.loading, error: tabs.activity.error, rejectionFeedback: tabs.activity.data?.rejectionFeedback }) }), _jsx(TabsContent, { value: "log", className: "mt-0 flex-1 overflow-hidden", children: _jsx(LogTab, { content: featureLogs.content, isConnected: featureLogs.isConnected, error: featureLogs.error }) }), _jsx(TabsContent, { value: "plan", className: "mt-0 flex-1 overflow-y-auto", children: _jsx(PlanTab, { plan: tabs.plan.data, loading: tabs.plan.loading, error: tabs.plan.error }) }), visibleTabs.includes('prd-review') ? (_jsx(TabsContent, { value: "prd-review", className: "mt-0 flex min-h-0 flex-1 flex-col", children: prdData ? (_jsx(PrdQuestionnaire, { data: prdData, selections: prdSelections ?? {}, onSelect: onPrdSelect ?? (() => undefined), onApprove: onPrdApprove ?? (() => undefined), onReject: onPrdReject, isProcessing: isPrdLoading, isRejecting: isRejecting, chatInput: chatInput, onChatInputChange: onChatInputChange })) : (_jsx("div", { className: "flex items-center justify-center p-8", children: _jsx(Loader2, { className: "text-muted-foreground h-6 w-6 animate-spin" }) })) })) : null, visibleTabs.includes('tech-decisions') ? (_jsx(TabsContent, { value: "tech-decisions", className: "mt-0 flex min-h-0 flex-1 flex-col", children: techData ? (_jsxs("div", { className: "flex min-h-0 flex-1 flex-col", children: [_jsx("div", { className: "flex-1 overflow-y-auto", children: _jsx(TechDecisionsContent, { data: techData }) }), _jsx(DrawerActionBarForTech, { onApprove: onTechApprove ?? (() => undefined), onReject: onTechReject, isProcessing: isTechLoading, isRejecting: isRejecting, chatInput: chatInput, onChatInputChange: onChatInputChange })] })) : (_jsx("div", { className: "flex items-center justify-center p-8", children: _jsx(Loader2, { className: "text-muted-foreground h-6 w-6 animate-spin" }) })) })) : null, visibleTabs.includes('product-decisions') ? (_jsx(TabsContent, { value: "product-decisions", className: "mt-0 flex-1 overflow-y-auto", children: productData === null ? (_jsx("div", { className: "flex items-center justify-center p-8", children: _jsx(Loader2, { className: "text-muted-foreground h-6 w-6 animate-spin" }) })) : productData ? (_jsx(ProductDecisionsSummary, { data: productData })) : (_jsx("p", { className: "text-muted-foreground p-4 text-center text-sm", children: "No product decisions available." })) })) : null, visibleTabs.includes('merge-review') ? (_jsx(TabsContent, { value: "merge-review", className: "mt-0 flex min-h-0 flex-1 flex-col", children: mergeData ? (_jsx(MergeReview, { data: mergeData, readOnly: featureNode.lifecycle === 'maintain', onApprove: onMergeApprove ?? (() => undefined), onReject: onMergeReject, isProcessing: isMergeLoading, isRejecting: isRejecting, chatInput: chatInput, onChatInputChange: onChatInputChange })) : (_jsx("div", { className: "flex items-center justify-center p-8", children: isMergeLoading ? (_jsx(Loader2, { className: "text-muted-foreground h-6 w-6 animate-spin" })) : (_jsxs("div", { className: "text-muted-foreground flex flex-col items-center gap-2 text-sm", children: [_jsx(AlertCircle, { className: "h-6 w-6" }), _jsx("span", { children: "Merge review data unavailable" })] })) })) })) : null, visibleTabs.includes('chat') ? (_jsx(TabsContent, { value: "chat", className: "mt-0 flex min-h-0 flex-1 flex-col overflow-hidden", children: _jsx(ChatTab, { featureId: featureId, worktreePath: featureNode.worktreePath }) })) : null] }) }));
255
256
  }
256
257
  // ── Private helper ──────────────────────────────────────────────────────
257
258
  function DrawerActionBarForTech({ onApprove, onReject, isProcessing, isRejecting, chatInput, onChatInputChange, }) {
258
- return (_jsx(DrawerActionBar, { onReject: onReject, onApprove: onApprove, approveLabel: "Approve Plan", revisionPlaceholder: "Ask AI to revise the plan...", isProcessing: isProcessing, isRejecting: isRejecting, chatInput: chatInput, onChatInputChange: onChatInputChange }));
259
+ const { t } = useTranslation('web');
260
+ return (_jsx(DrawerActionBar, { onReject: onReject, onApprove: onApprove, approveLabel: t('featureDrawer.approvePlan'), revisionPlaceholder: "Ask AI to revise the plan...", isProcessing: isProcessing, isRejecting: isRejecting, chatInput: chatInput, onChatInputChange: onChatInputChange }));
259
261
  }
@@ -1 +1 @@
1
- {"version":3,"file":"log-tab.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-drawer-tabs/log-tab.tsx"],"names":[],"mappings":"AAMA,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,OAAO,CAAC;IACrB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAID,wBAAgB,MAAM,CAAC,EAAE,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,EAAE,WAAW,2CAgHlE"}
1
+ {"version":3,"file":"log-tab.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-drawer-tabs/log-tab.tsx"],"names":[],"mappings":"AAOA,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,OAAO,CAAC;IACrB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAID,wBAAgB,MAAM,CAAC,EAAE,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,EAAE,WAAW,2CAiHlE"}
@@ -1,9 +1,11 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { useRef, useEffect, useState, useCallback } from 'react';
4
+ import { useTranslation } from 'react-i18next';
4
5
  import { AlertCircle, Terminal, ArrowDown, Code, FileText } from 'lucide-react';
5
6
  import { EventLogViewer } from './event-log-viewer.js';
6
7
  export function LogTab({ content, isConnected, error }) {
8
+ const { t } = useTranslation('web');
7
9
  const containerRef = useRef(null);
8
10
  const [autoScroll, setAutoScroll] = useState(true);
9
11
  const [viewMode, setViewMode] = useState('structured');
@@ -31,13 +33,13 @@ export function LogTab({ content, isConnected, error }) {
31
33
  return (_jsxs("div", { className: "flex items-center gap-2 p-4 text-sm text-red-600", children: [_jsx(AlertCircle, { className: "h-4 w-4 shrink-0" }), _jsx("span", { children: error })] }));
32
34
  }
33
35
  if (!content) {
34
- return (_jsxs("div", { className: "flex flex-col items-center justify-center gap-2 p-8", children: [_jsx(Terminal, { className: "text-muted-foreground h-8 w-8" }), _jsx("p", { className: "text-muted-foreground text-sm", children: "No log output yet" }), isConnected ? (_jsx("p", { className: "text-muted-foreground text-xs", children: "Waiting for log data..." })) : null] }));
36
+ return (_jsxs("div", { className: "flex flex-col items-center justify-center gap-2 p-8", children: [_jsx(Terminal, { className: "text-muted-foreground h-8 w-8" }), _jsx("p", { className: "text-muted-foreground text-sm", children: t('logTab.noLogOutput') }), isConnected ? (_jsx("p", { className: "text-muted-foreground text-xs", children: "Waiting for log data..." })) : null] }));
35
37
  }
36
38
  return (_jsxs("div", { className: "flex h-full flex-col", "data-testid": "log-tab", children: [_jsxs("div", { className: "flex items-center gap-2 border-b px-3 py-1.5", children: [_jsx("span", { className: `h-2 w-2 rounded-full ${isConnected ? 'bg-emerald-500' : 'bg-zinc-400'}` }), _jsx("span", { className: "text-muted-foreground text-xs", children: isConnected ? 'Live' : 'Disconnected' }), _jsxs("div", { className: "ml-auto flex items-center gap-1", children: [_jsx("button", { type: "button", onClick: () => setViewMode('structured'), className: `rounded p-1 transition-colors ${viewMode === 'structured'
37
39
  ? 'bg-muted text-foreground'
38
- : 'text-muted-foreground hover:text-foreground'}`, title: "Structured view", children: _jsx(FileText, { className: "h-3.5 w-3.5" }) }), _jsx("button", { type: "button", onClick: () => setViewMode('raw'), className: `rounded p-1 transition-colors ${viewMode === 'raw'
40
+ : 'text-muted-foreground hover:text-foreground'}`, title: t('logTab.structuredView'), children: _jsx(FileText, { className: "h-3.5 w-3.5" }) }), _jsx("button", { type: "button", onClick: () => setViewMode('raw'), className: `rounded p-1 transition-colors ${viewMode === 'raw'
39
41
  ? 'bg-muted text-foreground'
40
- : 'text-muted-foreground hover:text-foreground'}`, title: "Raw view", children: _jsx(Code, { className: "h-3.5 w-3.5" }) }), !autoScroll ? (_jsxs("button", { type: "button", onClick: jumpToBottom, className: "text-muted-foreground hover:text-foreground ml-1 flex items-center gap-1 text-xs", children: [_jsx(ArrowDown, { className: "h-3 w-3" }), "Jump to bottom"] })) : null] })] }), _jsx("div", { ref: containerRef, onScroll: handleScroll, className: `flex-1 overflow-y-auto ${viewMode === 'raw'
42
+ : 'text-muted-foreground hover:text-foreground'}`, title: t('logTab.rawView'), children: _jsx(Code, { className: "h-3.5 w-3.5" }) }), !autoScroll ? (_jsxs("button", { type: "button", onClick: jumpToBottom, className: "text-muted-foreground hover:text-foreground ms-1 flex items-center gap-1 text-xs", children: [_jsx(ArrowDown, { className: "h-3 w-3" }), "Jump to bottom"] })) : null] })] }), _jsx("div", { ref: containerRef, onScroll: handleScroll, className: `flex-1 overflow-y-auto ${viewMode === 'raw'
41
43
  ? 'bg-zinc-950 p-3 font-mono text-xs leading-relaxed break-all whitespace-pre-wrap text-zinc-300'
42
44
  : 'bg-background'}`, children: viewMode === 'structured' ? _jsx(EventLogViewer, { content: content }) : content })] }));
43
45
  }
@@ -1 +1 @@
1
- {"version":3,"file":"overview-tab.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-drawer-tabs/overview-tab.tsx"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAQxE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAErE,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,eAAe,CAAC;IACtB,UAAU,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC;IACnC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED,wBAAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,UAAU,EACV,WAAW,EACX,SAAS,EACT,aAAa,EACb,cAAc,EACd,aAAa,EACb,WAAW,GACZ,EAAE,gBAAgB,2CA4ElB"}
1
+ {"version":3,"file":"overview-tab.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-drawer-tabs/overview-tab.tsx"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAQxE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAErE,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,eAAe,CAAC;IACtB,UAAU,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC;IACnC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED,wBAAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,UAAU,EACV,WAAW,EACX,SAAS,EACT,aAAa,EACb,cAAc,EACd,aAAa,EACb,WAAW,GACZ,EAAE,gBAAgB,2CA4ElB"}
@@ -1,6 +1,7 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
3
  import { useState, useEffect, useRef } from 'react';
4
+ import { useTranslation } from 'react-i18next';
4
5
  import { AlertTriangle, Check, ExternalLink, FileSearch, GitBranch, GitCommitHorizontal, RotateCcw, ShieldCheck, Square, X, Zap, } from 'lucide-react';
5
6
  import { InlineAttachments } from '../../common/inline-attachments/index.js';
6
7
  import { PrStatus } from '../../../../../../packages/core/src/domain/generated/output.js';
@@ -48,6 +49,7 @@ function formatRelativeTime(timestamp) {
48
49
  return 'just now';
49
50
  }
50
51
  function FeatureInfo({ data }) {
52
+ const { t } = useTranslation('web');
51
53
  const showSummary = Boolean(data.summary) && !(data.userQuery && data.summary?.trim() === data.userQuery.trim());
52
54
  const hasInfo = Boolean(data.branch) ||
53
55
  Boolean(data.oneLiner) ||
@@ -56,7 +58,7 @@ function FeatureInfo({ data }) {
56
58
  Boolean(data.createdAt);
57
59
  if (!hasInfo)
58
60
  return null;
59
- return (_jsxs(_Fragment, { children: [_jsx(Separator, {}), _jsxs("div", { "data-testid": "feature-drawer-info", className: "flex flex-col gap-3 p-4", children: [data.branch ? (_jsxs("div", { className: "flex flex-col gap-0.5", children: [_jsx("span", { className: "text-muted-foreground text-xs font-medium", children: "Branch" }), _jsxs("span", { className: "flex items-center gap-1.5 text-sm", children: [_jsx(GitBranch, { className: "text-muted-foreground h-3.5 w-3.5 shrink-0" }), _jsx("code", { className: "bg-muted rounded px-1 py-0.5 font-mono text-xs", children: data.branch }), data.baseBranch ? (_jsxs("span", { className: "text-muted-foreground text-xs", children: ["from ", data.baseBranch] })) : null] })] })) : null, data.oneLiner ? (_jsxs("div", { className: "flex flex-col gap-0.5", children: [_jsx("span", { className: "text-muted-foreground text-xs font-medium", children: "One-Liner" }), _jsx("span", { className: "text-sm leading-relaxed", children: data.oneLiner })] })) : null, data.userQuery ? (_jsxs("div", { className: "flex flex-col gap-0.5", children: [_jsx("span", { className: "text-muted-foreground text-xs font-medium", children: "User Query" }), _jsx(InlineAttachments, { text: data.userQuery })] })) : null, showSummary ? (_jsxs("div", { className: "flex flex-col gap-0.5", children: [_jsx("span", { className: "text-muted-foreground text-xs font-medium", children: "Summary" }), _jsx("span", { className: "text-sm leading-relaxed", children: data.summary })] })) : null, data.createdAt ? (_jsx(DetailRow, { label: "Created", value: formatRelativeTime(data.createdAt) })) : null] })] }));
61
+ return (_jsxs(_Fragment, { children: [_jsx(Separator, {}), _jsxs("div", { "data-testid": "feature-drawer-info", className: "flex flex-col gap-3 p-4", children: [data.branch ? (_jsxs("div", { className: "flex flex-col gap-0.5", children: [_jsx("span", { className: "text-muted-foreground text-xs font-medium", children: "Branch" }), _jsxs("span", { className: "flex items-center gap-1.5 text-sm", children: [_jsx(GitBranch, { className: "text-muted-foreground h-3.5 w-3.5 shrink-0" }), _jsx("code", { className: "bg-muted rounded px-1 py-0.5 font-mono text-xs", children: data.branch }), data.baseBranch ? (_jsxs("span", { className: "text-muted-foreground text-xs", children: ["from ", data.baseBranch] })) : null] })] })) : null, data.oneLiner ? (_jsxs("div", { className: "flex flex-col gap-0.5", children: [_jsx("span", { className: "text-muted-foreground text-xs font-medium", children: "One-Liner" }), _jsx("span", { className: "text-sm leading-relaxed", children: data.oneLiner })] })) : null, data.userQuery ? (_jsxs("div", { className: "flex flex-col gap-0.5", children: [_jsx("span", { className: "text-muted-foreground text-xs font-medium", children: "User Query" }), _jsx(InlineAttachments, { text: data.userQuery })] })) : null, showSummary ? (_jsxs("div", { className: "flex flex-col gap-0.5", children: [_jsx("span", { className: "text-muted-foreground text-xs font-medium", children: "Summary" }), _jsx("span", { className: "text-sm leading-relaxed", children: data.summary })] })) : null, data.createdAt ? (_jsx(DetailRow, { label: t('overviewTab.created'), value: formatRelativeTime(data.createdAt) })) : null] })] }));
60
62
  }
61
63
  // ── PR Info section ──────────────────────────────────────────────────
62
64
  const prStatusStyles = {
@@ -65,7 +67,7 @@ const prStatusStyles = {
65
67
  [PrStatus.Closed]: 'border-transparent bg-red-50 text-red-700 hover:bg-red-50',
66
68
  };
67
69
  function FeaturePrInfo({ pr, hideCiStatus, }) {
68
- return (_jsx("div", { "data-testid": "feature-drawer-pr", children: _jsxs("div", { className: "space-y-3", children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("a", { href: pr.url, target: "_blank", rel: "noopener noreferrer", className: "text-primary flex items-center gap-1.5 text-sm font-semibold underline underline-offset-2", children: ["PR #", pr.number, _jsx(ExternalLink, { className: "h-3.5 w-3.5" })] }), _jsx(Badge, { className: prStatusStyles[pr.status], children: pr.status })] }), pr.ciStatus && hideCiStatus !== true ? (_jsxs("div", { className: "flex items-center justify-between", children: [_jsx("span", { className: "text-muted-foreground text-xs font-medium", children: "CI Status" }), _jsx(CiStatusBadge, { status: pr.ciStatus })] })) : null, pr.mergeable === false ? (_jsxs("div", { "data-testid": "pr-merge-conflict", className: "flex items-center justify-between", children: [_jsx("span", { className: "text-muted-foreground text-xs font-medium", children: "Merge Status" }), _jsxs(Badge, { className: "border-transparent bg-orange-50 text-orange-700 hover:bg-orange-50", children: [_jsx(AlertTriangle, { className: "mr-1 h-3.5 w-3.5" }), "Conflicts"] })] })) : null, pr.commitHash ? (_jsxs("div", { className: "flex items-center justify-between", children: [_jsx("span", { className: "text-muted-foreground text-xs font-medium", children: "Commit" }), _jsxs("div", { className: "flex items-center gap-1.5", children: [_jsx(GitCommitHorizontal, { className: "text-muted-foreground h-3.5 w-3.5" }), _jsx("code", { className: "bg-muted text-foreground rounded-md px-1.5 py-0.5 font-mono text-[11px]", children: pr.commitHash.slice(0, 7) })] })] })) : null] }) }));
70
+ return (_jsx("div", { "data-testid": "feature-drawer-pr", children: _jsxs("div", { className: "space-y-3", children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("a", { href: pr.url, target: "_blank", rel: "noopener noreferrer", className: "text-primary flex items-center gap-1.5 text-sm font-semibold underline underline-offset-2", children: ["PR #", pr.number, _jsx(ExternalLink, { className: "h-3.5 w-3.5" })] }), _jsx(Badge, { className: prStatusStyles[pr.status], children: pr.status })] }), pr.ciStatus && hideCiStatus !== true ? (_jsxs("div", { className: "flex items-center justify-between", children: [_jsx("span", { className: "text-muted-foreground text-xs font-medium", children: "CI Status" }), _jsx(CiStatusBadge, { status: pr.ciStatus })] })) : null, pr.mergeable === false ? (_jsxs("div", { "data-testid": "pr-merge-conflict", className: "flex items-center justify-between", children: [_jsx("span", { className: "text-muted-foreground text-xs font-medium", children: "Merge Status" }), _jsxs(Badge, { className: "border-transparent bg-orange-50 text-orange-700 hover:bg-orange-50", children: [_jsx(AlertTriangle, { className: "me-1 h-3.5 w-3.5" }), "Conflicts"] })] })) : null, pr.commitHash ? (_jsxs("div", { className: "flex items-center justify-between", children: [_jsx("span", { className: "text-muted-foreground text-xs font-medium", children: "Commit" }), _jsxs("div", { className: "flex items-center gap-1.5", children: [_jsx(GitCommitHorizontal, { className: "text-muted-foreground h-3.5 w-3.5" }), _jsx("code", { className: "bg-muted text-foreground rounded-md px-1.5 py-0.5 font-mono text-[11px]", children: pr.commitHash.slice(0, 7) })] })] })) : null] }) }));
69
71
  }
70
72
  // ── Details section ──────────────────────────────────────────────────
71
73
  /** Hook that returns a live-updating elapsed time string for running features. */
@@ -93,6 +95,7 @@ function useElapsedTime(startedAt) {
93
95
  return elapsed;
94
96
  }
95
97
  function FeatureDetails({ data }) {
98
+ const { t } = useTranslation('web');
96
99
  const isRunning = data.state === 'running' || data.state === 'action-required';
97
100
  const elapsedTime = useElapsedTime(isRunning ? data.startedAt : undefined);
98
101
  const hasAnyDetail = data.fastMode ??
@@ -103,7 +106,7 @@ function FeatureDetails({ data }) {
103
106
  data.errorMessage;
104
107
  if (!hasAnyDetail)
105
108
  return null;
106
- return (_jsxs(_Fragment, { children: [_jsx(Separator, {}), _jsxs("div", { "data-testid": "feature-drawer-details", className: "flex flex-col gap-3 p-4", children: [data.fastMode ? (_jsxs("div", { className: "flex flex-col gap-0.5", children: [_jsx("span", { className: "text-muted-foreground text-xs font-medium", children: "Mode" }), _jsxs("span", { className: "flex items-center gap-2 text-sm", children: [_jsx(Zap, { className: "h-4 w-4 shrink-0 text-amber-500" }), "Fast Mode"] })] })) : null, data.agentType ? _jsx(AgentDetailRow, { agentType: data.agentType }) : null, data.runtime ? _jsx(DetailRow, { label: "Runtime", value: data.runtime }) : null, !data.runtime && elapsedTime ? (_jsx(DetailRow, { label: "Running for", value: elapsedTime })) : null, data.blockedBy ? _jsx(DetailRow, { label: "Blocked by", value: data.blockedBy }) : null, data.errorMessage ? _jsx(DetailRow, { label: "Error", value: data.errorMessage }) : null] })] }));
109
+ return (_jsxs(_Fragment, { children: [_jsx(Separator, {}), _jsxs("div", { "data-testid": "feature-drawer-details", className: "flex flex-col gap-3 p-4", children: [data.fastMode ? (_jsxs("div", { className: "flex flex-col gap-0.5", children: [_jsx("span", { className: "text-muted-foreground text-xs font-medium", children: "Mode" }), _jsxs("span", { className: "flex items-center gap-2 text-sm", children: [_jsx(Zap, { className: "h-4 w-4 shrink-0 text-amber-500" }), "Fast Mode"] })] })) : null, data.agentType ? _jsx(AgentDetailRow, { agentType: data.agentType }) : null, data.runtime ? _jsx(DetailRow, { label: t('overviewTab.runtime'), value: data.runtime }) : null, !data.runtime && elapsedTime ? (_jsx(DetailRow, { label: t('overviewTab.runningFor'), value: elapsedTime })) : null, data.blockedBy ? (_jsx(DetailRow, { label: t('overviewTab.blockedBy'), value: data.blockedBy })) : null, data.errorMessage ? (_jsx(DetailRow, { label: t('overviewTab.error'), value: data.errorMessage })) : null] })] }));
107
110
  }
108
111
  function AgentDetailRow({ agentType }) {
109
112
  const Icon = getAgentTypeIcon(agentType);
@@ -115,6 +118,7 @@ function SettingBadge({ enabled, label }) {
115
118
  return (_jsxs("span", { className: cn('inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-xs font-medium', enabled ? 'bg-emerald-50 text-emerald-700' : 'bg-muted text-muted-foreground'), children: [enabled ? _jsx(Check, { className: "h-3 w-3" }) : _jsx(X, { className: "h-3 w-3" }), label] }));
116
119
  }
117
120
  function FeatureSettings({ data }) {
121
+ const { t } = useTranslation('web');
118
122
  const hasSettings = data.approvalGates != null ||
119
123
  data.push != null ||
120
124
  data.openPr != null ||
@@ -125,11 +129,11 @@ function FeatureSettings({ data }) {
125
129
  data.modelId;
126
130
  if (!hasSettings)
127
131
  return null;
128
- return (_jsxs(_Fragment, { children: [_jsx(Separator, {}), _jsxs("div", { "data-testid": "feature-drawer-settings", className: "flex flex-col gap-3 p-4", children: [_jsx("span", { className: "text-muted-foreground text-xs font-semibold tracking-wider", children: "SETTINGS" }), data.modelId ? (_jsxs("div", { className: "flex flex-col gap-0.5", children: [_jsx("span", { className: "text-muted-foreground text-xs font-medium", children: "Model" }), _jsx("span", { className: "text-sm", children: getModelMeta(data.modelId).displayName || data.modelId })] })) : null, data.approvalGates ? (_jsxs("div", { className: "flex flex-col gap-1", children: [_jsxs("span", { className: "text-muted-foreground flex items-center gap-1 text-xs font-medium", children: [_jsx(ShieldCheck, { className: "h-3 w-3" }), "Auto-Approve"] }), _jsxs("div", { className: "flex flex-wrap gap-1.5", children: [_jsx(SettingBadge, { enabled: data.approvalGates.allowPrd, label: "PRD" }), _jsx(SettingBadge, { enabled: data.approvalGates.allowPlan, label: "Plan" }), _jsx(SettingBadge, { enabled: data.approvalGates.allowMerge, label: "Merge" })] })] })) : null, data.enableEvidence != null ? (_jsxs("div", { className: "flex flex-col gap-1", children: [_jsxs("span", { className: "text-muted-foreground flex items-center gap-1 text-xs font-medium", children: [_jsx(FileSearch, { className: "h-3 w-3" }), "Evidence"] }), _jsxs("div", { className: "flex flex-wrap gap-1.5", children: [_jsx(SettingBadge, { enabled: data.enableEvidence, label: "Collect" }), data.commitEvidence != null ? (_jsx(SettingBadge, { enabled: data.commitEvidence, label: "Add to PR" })) : null] })] })) : null, data.push != null ||
132
+ return (_jsxs(_Fragment, { children: [_jsx(Separator, {}), _jsxs("div", { "data-testid": "feature-drawer-settings", className: "flex flex-col gap-3 p-4", children: [_jsx("span", { className: "text-muted-foreground text-xs font-semibold tracking-wider", children: "SETTINGS" }), data.modelId ? (_jsxs("div", { className: "flex flex-col gap-0.5", children: [_jsx("span", { className: "text-muted-foreground text-xs font-medium", children: "Model" }), _jsx("span", { className: "text-sm", children: getModelMeta(data.modelId).displayName || data.modelId })] })) : null, data.approvalGates ? (_jsxs("div", { className: "flex flex-col gap-1", children: [_jsxs("span", { className: "text-muted-foreground flex items-center gap-1 text-xs font-medium", children: [_jsx(ShieldCheck, { className: "h-3 w-3" }), "Auto-Approve"] }), _jsxs("div", { className: "flex flex-wrap gap-1.5", children: [_jsx(SettingBadge, { enabled: data.approvalGates.allowPrd, label: t('overviewTab.prd') }), _jsx(SettingBadge, { enabled: data.approvalGates.allowPlan, label: t('overviewTab.plan') }), _jsx(SettingBadge, { enabled: data.approvalGates.allowMerge, label: t('overviewTab.merge') })] })] })) : null, data.enableEvidence != null ? (_jsxs("div", { className: "flex flex-col gap-1", children: [_jsxs("span", { className: "text-muted-foreground flex items-center gap-1 text-xs font-medium", children: [_jsx(FileSearch, { className: "h-3 w-3" }), "Evidence"] }), _jsxs("div", { className: "flex flex-wrap gap-1.5", children: [_jsx(SettingBadge, { enabled: data.enableEvidence, label: t('overviewTab.collect') }), data.commitEvidence != null ? (_jsx(SettingBadge, { enabled: data.commitEvidence, label: t('overviewTab.addToPr') })) : null] })] })) : null, data.push != null ||
129
133
  data.openPr != null ||
130
134
  data.ciWatchEnabled != null ||
131
135
  data.commitSpecs != null ||
132
- data.forkAndPr != null ? (_jsxs("div", { className: "flex flex-col gap-1", children: [_jsxs("span", { className: "text-muted-foreground flex items-center gap-1 text-xs font-medium", children: [_jsx(GitBranch, { className: "h-3 w-3" }), "Git"] }), _jsxs("div", { className: "flex flex-wrap gap-1.5", children: [data.push != null ? _jsx(SettingBadge, { enabled: data.push, label: "Push" }) : null, data.openPr != null ? _jsx(SettingBadge, { enabled: data.openPr, label: "PR" }) : null, data.ciWatchEnabled != null ? (_jsx(SettingBadge, { enabled: data.ciWatchEnabled, label: "Watch" })) : null, data.commitSpecs != null ? (_jsx(SettingBadge, { enabled: data.commitSpecs, label: "Commit Specs" })) : null, data.forkAndPr != null ? (_jsx(SettingBadge, { enabled: data.forkAndPr, label: "Fork & PR" })) : null] })] })) : null] })] }));
136
+ data.forkAndPr != null ? (_jsxs("div", { className: "flex flex-col gap-1", children: [_jsxs("span", { className: "text-muted-foreground flex items-center gap-1 text-xs font-medium", children: [_jsx(GitBranch, { className: "h-3 w-3" }), "Git"] }), _jsxs("div", { className: "flex flex-wrap gap-1.5", children: [data.push != null ? (_jsx(SettingBadge, { enabled: data.push, label: t('overviewTab.push') })) : null, data.openPr != null ? (_jsx(SettingBadge, { enabled: data.openPr, label: t('overviewTab.pr') })) : null, data.ciWatchEnabled != null ? (_jsx(SettingBadge, { enabled: data.ciWatchEnabled, label: t('overviewTab.watch') })) : null, data.commitSpecs != null ? (_jsx(SettingBadge, { enabled: data.commitSpecs, label: t('overviewTab.commitSpecs') })) : null, data.forkAndPr != null ? (_jsx(SettingBadge, { enabled: data.forkAndPr, label: t('overviewTab.forkAndPr') })) : null] })] })) : null] })] }));
133
137
  }
134
138
  function DetailRow({ label, value }) {
135
139
  return (_jsxs("div", { className: "flex flex-col gap-0.5", children: [_jsx("span", { className: "text-muted-foreground text-xs font-medium", children: label }), _jsx("span", { className: "text-sm", children: value })] }));