@shepai/cli 1.118.0 → 1.119.0

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 (358) hide show
  1. package/apis/json-schema/PhaseTiming.yaml +22 -1
  2. package/apis/json-schema/WorkflowConfig.yaml +10 -0
  3. package/dist/packages/core/src/application/ports/output/agents/agent-session-repository.interface.d.ts +2 -0
  4. package/dist/packages/core/src/application/ports/output/agents/agent-session-repository.interface.d.ts.map +1 -1
  5. package/dist/packages/core/src/application/ports/output/agents/phase-timing-repository.interface.d.ts +3 -3
  6. package/dist/packages/core/src/application/ports/output/agents/phase-timing-repository.interface.d.ts.map +1 -1
  7. package/dist/packages/core/src/application/ports/output/services/git-pr-service.interface.d.ts +2 -1
  8. package/dist/packages/core/src/application/ports/output/services/git-pr-service.interface.d.ts.map +1 -1
  9. package/dist/packages/core/src/domain/factories/settings-defaults.factory.d.ts.map +1 -1
  10. package/dist/packages/core/src/domain/factories/settings-defaults.factory.js +1 -0
  11. package/dist/packages/core/src/domain/generated/output.d.ts +37 -1
  12. package/dist/packages/core/src/domain/generated/output.d.ts.map +1 -1
  13. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/settings.mapper.d.ts +1 -0
  14. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/settings.mapper.d.ts.map +1 -1
  15. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/settings.mapper.js +2 -0
  16. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/037-add-ci-watch-enabled.d.ts +11 -0
  17. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/037-add-ci-watch-enabled.d.ts.map +1 -0
  18. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/037-add-ci-watch-enabled.js +15 -0
  19. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/038-add-phase-execution-metadata.d.ts +11 -0
  20. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/038-add-phase-execution-metadata.d.ts.map +1 -0
  21. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/038-add-phase-execution-metadata.js +27 -0
  22. package/dist/packages/core/src/infrastructure/repositories/sqlite-phase-timing.repository.d.ts +1 -1
  23. package/dist/packages/core/src/infrastructure/repositories/sqlite-phase-timing.repository.d.ts.map +1 -1
  24. package/dist/packages/core/src/infrastructure/repositories/sqlite-phase-timing.repository.js +32 -0
  25. package/dist/packages/core/src/infrastructure/services/agents/common/executors/dev-executor.service.d.ts.map +1 -1
  26. package/dist/packages/core/src/infrastructure/services/agents/common/executors/dev-executor.service.js +8 -1
  27. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/merge/ci-watch-fix-loop.d.ts.map +1 -1
  28. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/merge/ci-watch-fix-loop.js +3 -2
  29. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/merge/merge.node.d.ts.map +1 -1
  30. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/merge/merge.node.js +29 -7
  31. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/node-helpers.d.ts.map +1 -1
  32. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/node-helpers.js +19 -8
  33. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/merge-prompts.d.ts +5 -10
  34. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/merge-prompts.d.ts.map +1 -1
  35. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/merge-prompts.js +5 -73
  36. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/phase-timing-context.d.ts +17 -3
  37. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/phase-timing-context.d.ts.map +1 -1
  38. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/phase-timing-context.js +11 -3
  39. package/dist/packages/core/src/infrastructure/services/agents/sessions/claude-code-session.repository.d.ts +7 -0
  40. package/dist/packages/core/src/infrastructure/services/agents/sessions/claude-code-session.repository.d.ts.map +1 -1
  41. package/dist/packages/core/src/infrastructure/services/agents/sessions/claude-code-session.repository.js +35 -11
  42. package/dist/packages/core/src/infrastructure/services/git/git-pr.service.d.ts +1 -1
  43. package/dist/packages/core/src/infrastructure/services/git/git-pr.service.d.ts.map +1 -1
  44. package/dist/packages/core/src/infrastructure/services/git/git-pr.service.js +12 -3
  45. package/dist/src/presentation/web/app/(dashboard)/@drawer/create/page.d.ts +1 -0
  46. package/dist/src/presentation/web/app/(dashboard)/@drawer/create/page.d.ts.map +1 -1
  47. package/dist/src/presentation/web/app/(dashboard)/@drawer/create/page.js +2 -2
  48. package/dist/src/presentation/web/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.d.ts.map +1 -1
  49. package/dist/src/presentation/web/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js +1 -0
  50. package/dist/src/presentation/web/app/(dashboard)/@drawer/feature/[featureId]/page.d.ts.map +1 -1
  51. package/dist/src/presentation/web/app/(dashboard)/@drawer/feature/[featureId]/page.js +1 -0
  52. package/dist/src/presentation/web/app/(dashboard)/get-graph-data.d.ts.map +1 -1
  53. package/dist/src/presentation/web/app/(dashboard)/get-graph-data.js +1 -0
  54. package/dist/src/presentation/web/app/actions/get-feature-phase-timings.d.ts +2 -0
  55. package/dist/src/presentation/web/app/actions/get-feature-phase-timings.d.ts.map +1 -1
  56. package/dist/src/presentation/web/app/actions/get-feature-phase-timings.js +2 -0
  57. package/dist/src/presentation/web/app/actions/get-merge-review-data.d.ts.map +1 -1
  58. package/dist/src/presentation/web/app/actions/get-merge-review-data.js +49 -13
  59. package/dist/src/presentation/web/app/actions/get-workflow-defaults.d.ts +1 -0
  60. package/dist/src/presentation/web/app/actions/get-workflow-defaults.d.ts.map +1 -1
  61. package/dist/src/presentation/web/app/actions/get-workflow-defaults.js +1 -0
  62. package/dist/src/presentation/web/app/api/sessions/route.d.ts +24 -0
  63. package/dist/src/presentation/web/app/api/sessions/route.d.ts.map +1 -0
  64. package/dist/src/presentation/web/app/api/sessions/route.js +230 -0
  65. package/dist/src/presentation/web/app/build-feature-node-data.d.ts +2 -0
  66. package/dist/src/presentation/web/app/build-feature-node-data.d.ts.map +1 -1
  67. package/dist/src/presentation/web/app/build-feature-node-data.js +1 -0
  68. package/dist/src/presentation/web/app/build-graph-nodes.d.ts +2 -0
  69. package/dist/src/presentation/web/app/build-graph-nodes.d.ts.map +1 -1
  70. package/dist/src/presentation/web/app/build-graph-nodes.js +11 -0
  71. package/dist/src/presentation/web/components/common/control-center-drawer/create-drawer-client.d.ts +2 -1
  72. package/dist/src/presentation/web/components/common/control-center-drawer/create-drawer-client.d.ts.map +1 -1
  73. package/dist/src/presentation/web/components/common/control-center-drawer/create-drawer-client.js +2 -2
  74. package/dist/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.d.ts +4 -1
  75. package/dist/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.d.ts.map +1 -1
  76. package/dist/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.js +16 -3
  77. package/dist/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.stories.d.ts.map +1 -1
  78. package/dist/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.stories.js +1 -0
  79. package/dist/src/presentation/web/components/common/feature-drawer-tabs/activity-tab.d.ts.map +1 -1
  80. package/dist/src/presentation/web/components/common/feature-drawer-tabs/activity-tab.js +36 -10
  81. package/dist/src/presentation/web/components/common/feature-drawer-tabs/feature-drawer-tabs.d.ts.map +1 -1
  82. package/dist/src/presentation/web/components/common/feature-drawer-tabs/feature-drawer-tabs.js +7 -2
  83. package/dist/src/presentation/web/components/common/feature-drawer-tabs/overview-tab.js +2 -1
  84. package/dist/src/presentation/web/components/common/feature-node/feature-node-state-config.d.ts +4 -0
  85. package/dist/src/presentation/web/components/common/feature-node/feature-node-state-config.d.ts.map +1 -1
  86. package/dist/src/presentation/web/components/common/feature-node/feature-node.d.ts.map +1 -1
  87. package/dist/src/presentation/web/components/common/feature-node/feature-node.js +2 -1
  88. package/dist/src/presentation/web/components/common/feature-node/feature-sessions-dropdown.d.ts +21 -0
  89. package/dist/src/presentation/web/components/common/feature-node/feature-sessions-dropdown.d.ts.map +1 -0
  90. package/dist/src/presentation/web/components/common/feature-node/feature-sessions-dropdown.js +138 -0
  91. package/dist/src/presentation/web/components/common/feature-node/feature-sessions-dropdown.stories.d.ts +9 -0
  92. package/dist/src/presentation/web/components/common/feature-node/feature-sessions-dropdown.stories.d.ts.map +1 -0
  93. package/dist/src/presentation/web/components/common/feature-node/feature-sessions-dropdown.stories.js +77 -0
  94. package/dist/src/presentation/web/components/common/merge-review/merge-review-config.d.ts +3 -3
  95. package/dist/src/presentation/web/components/common/merge-review/merge-review-config.d.ts.map +1 -1
  96. package/dist/src/presentation/web/components/common/merge-review/merge-review.d.ts +1 -1
  97. package/dist/src/presentation/web/components/common/merge-review/merge-review.d.ts.map +1 -1
  98. package/dist/src/presentation/web/components/common/merge-review/merge-review.js +14 -20
  99. package/dist/src/presentation/web/components/common/merge-review/merge-review.stories.d.ts +6 -0
  100. package/dist/src/presentation/web/components/common/merge-review/merge-review.stories.d.ts.map +1 -1
  101. package/dist/src/presentation/web/components/common/merge-review/merge-review.stories.js +74 -0
  102. package/dist/src/presentation/web/components/common/repository-node/repository-node.d.ts.map +1 -1
  103. package/dist/src/presentation/web/components/common/repository-node/repository-node.js +35 -2
  104. package/dist/src/presentation/web/components/features/settings/settings-page-client.d.ts.map +1 -1
  105. package/dist/src/presentation/web/components/features/settings/settings-page-client.js +16 -1
  106. package/dist/src/presentation/web/components/features/settings/workflow-settings-section.d.ts.map +1 -1
  107. package/dist/src/presentation/web/components/features/settings/workflow-settings-section.js +6 -1
  108. package/dist/src/presentation/web/components/features/settings/workflow-settings-section.stories.d.ts.map +1 -1
  109. package/dist/src/presentation/web/components/features/settings/workflow-settings-section.stories.js +3 -0
  110. package/dist/tsconfig.build.tsbuildinfo +1 -1
  111. package/package.json +1 -1
  112. package/web/.next/BUILD_ID +1 -1
  113. package/web/.next/app-path-routes-manifest.json +1 -0
  114. package/web/.next/build-manifest.json +2 -2
  115. package/web/.next/fallback-build-manifest.json +2 -2
  116. package/web/.next/prerender-manifest.json +3 -3
  117. package/web/.next/required-server-files.js +2 -2
  118. package/web/.next/required-server-files.json +2 -2
  119. package/web/.next/routes-manifest.json +6 -0
  120. package/web/.next/server/app/(dashboard)/@drawer/create/page/server-reference-manifest.json +21 -21
  121. package/web/.next/server/app/(dashboard)/@drawer/create/page.js +2 -2
  122. package/web/.next/server/app/(dashboard)/@drawer/create/page.js.nft.json +1 -1
  123. package/web/.next/server/app/(dashboard)/@drawer/create/page_client-reference-manifest.js +1 -1
  124. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page/server-reference-manifest.json +27 -27
  125. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js +3 -3
  126. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js.nft.json +1 -1
  127. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
  128. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/server-reference-manifest.json +27 -27
  129. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js +3 -3
  130. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js.nft.json +1 -1
  131. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page_client-reference-manifest.js +1 -1
  132. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/server-reference-manifest.json +19 -19
  133. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js +2 -2
  134. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js.nft.json +1 -1
  135. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  136. package/web/.next/server/app/(dashboard)/create/page/server-reference-manifest.json +21 -21
  137. package/web/.next/server/app/(dashboard)/create/page.js +2 -2
  138. package/web/.next/server/app/(dashboard)/create/page.js.nft.json +1 -1
  139. package/web/.next/server/app/(dashboard)/create/page_client-reference-manifest.js +1 -1
  140. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page/server-reference-manifest.json +27 -27
  141. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js +3 -3
  142. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js.nft.json +1 -1
  143. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
  144. package/web/.next/server/app/(dashboard)/feature/[featureId]/page/server-reference-manifest.json +27 -27
  145. package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js +3 -3
  146. package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js.nft.json +1 -1
  147. package/web/.next/server/app/(dashboard)/feature/[featureId]/page_client-reference-manifest.js +1 -1
  148. package/web/.next/server/app/(dashboard)/page/server-reference-manifest.json +19 -19
  149. package/web/.next/server/app/(dashboard)/page.js +2 -2
  150. package/web/.next/server/app/(dashboard)/page.js.nft.json +1 -1
  151. package/web/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
  152. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/server-reference-manifest.json +19 -19
  153. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js +2 -2
  154. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js.nft.json +1 -1
  155. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  156. package/web/.next/server/app/_global-error.html +2 -2
  157. package/web/.next/server/app/_global-error.rsc +1 -1
  158. package/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  159. package/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  160. package/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  161. package/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  162. package/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  163. package/web/.next/server/app/_not-found/page/server-reference-manifest.json +1 -1
  164. package/web/.next/server/app/_not-found/page.js.nft.json +1 -1
  165. package/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  166. package/web/.next/server/app/api/attachments/preview/route.js +1 -1
  167. package/web/.next/server/app/api/attachments/preview/route.js.nft.json +1 -1
  168. package/web/.next/server/app/api/evidence/route.js +1 -1
  169. package/web/.next/server/app/api/evidence/route.js.nft.json +1 -1
  170. package/web/.next/server/app/api/graph-data/route.js +1 -1
  171. package/web/.next/server/app/api/graph-data/route.js.nft.json +1 -1
  172. package/web/.next/server/app/api/sessions/route/app-paths-manifest.json +3 -0
  173. package/web/.next/server/app/api/sessions/route/build-manifest.json +11 -0
  174. package/web/.next/server/app/api/sessions/route/server-reference-manifest.json +4 -0
  175. package/web/.next/server/app/api/sessions/route.js +7 -0
  176. package/web/.next/server/app/api/sessions/route.js.map +5 -0
  177. package/web/.next/server/app/api/sessions/route.js.nft.json +1 -0
  178. package/web/.next/server/app/api/sessions/route_client-reference-manifest.js +2 -0
  179. package/web/.next/server/app/settings/page/server-reference-manifest.json +6 -6
  180. package/web/.next/server/app/settings/page.js +1 -1
  181. package/web/.next/server/app/settings/page.js.nft.json +1 -1
  182. package/web/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  183. package/web/.next/server/app/skills/page/server-reference-manifest.json +6 -6
  184. package/web/.next/server/app/skills/page.js +1 -1
  185. package/web/.next/server/app/skills/page.js.nft.json +1 -1
  186. package/web/.next/server/app/skills/page_client-reference-manifest.js +1 -1
  187. package/web/.next/server/app/tools/page/server-reference-manifest.json +6 -6
  188. package/web/.next/server/app/tools/page.js +1 -1
  189. package/web/.next/server/app/tools/page.js.nft.json +1 -1
  190. package/web/.next/server/app/tools/page_client-reference-manifest.js +1 -1
  191. package/web/.next/server/app/version/page/server-reference-manifest.json +1 -1
  192. package/web/.next/server/app/version/page.js +1 -1
  193. package/web/.next/server/app/version/page.js.nft.json +1 -1
  194. package/web/.next/server/app/version/page_client-reference-manifest.js +1 -1
  195. package/web/.next/server/app-paths-manifest.json +1 -0
  196. package/web/.next/server/chunks/403f9_next_dist_esm_build_templates_app-route_370c43b1.js +1 -1
  197. package/web/.next/server/chunks/403f9_next_dist_esm_build_templates_app-route_370c43b1.js.map +1 -1
  198. package/web/.next/server/chunks/[root-of-the-server]__0fe7788d._.js +3 -0
  199. package/web/.next/server/chunks/[root-of-the-server]__0fe7788d._.js.map +1 -0
  200. package/web/.next/server/chunks/[root-of-the-server]__42b7ab55._.js +3 -0
  201. package/web/.next/server/chunks/[root-of-the-server]__42b7ab55._.js.map +1 -0
  202. package/web/.next/server/chunks/{[root-of-the-server]__7d63f9a4._.js → [root-of-the-server]__53013576._.js} +2 -2
  203. package/web/.next/server/chunks/{[root-of-the-server]__a1c7c02a._.js → [root-of-the-server]__92078db6._.js} +2 -2
  204. package/web/.next/server/chunks/[root-of-the-server]__a402b567._.js +1 -1
  205. package/web/.next/server/chunks/[root-of-the-server]__cd67a84c._.js.map +1 -1
  206. package/web/.next/server/chunks/b1a17_presentation_web__next-internal_server_app_api_sessions_route_actions_c041a889.js +3 -0
  207. package/web/.next/server/chunks/b1a17_presentation_web__next-internal_server_app_api_sessions_route_actions_c041a889.js.map +1 -0
  208. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js +1 -1
  209. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js.map +1 -1
  210. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_ed372306.js +1 -1
  211. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_ed372306.js.map +1 -1
  212. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_32e26434.js +1 -1
  213. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_32e26434.js.map +1 -1
  214. package/web/.next/server/chunks/ssr/{[root-of-the-server]__07a39ff2._.js → [root-of-the-server]__06fef644._.js} +2 -2
  215. package/web/.next/server/chunks/ssr/{[root-of-the-server]__07a39ff2._.js.map → [root-of-the-server]__06fef644._.js.map} +1 -1
  216. package/web/.next/server/chunks/ssr/[root-of-the-server]__3b14e5a0._.js +3 -0
  217. package/web/.next/server/chunks/ssr/[root-of-the-server]__3b14e5a0._.js.map +1 -0
  218. package/web/.next/server/chunks/ssr/[root-of-the-server]__545792ab._.js +3 -0
  219. package/web/.next/server/chunks/ssr/[root-of-the-server]__545792ab._.js.map +1 -0
  220. package/web/.next/server/chunks/ssr/[root-of-the-server]__684a868c._.js +1 -1
  221. package/web/.next/server/chunks/ssr/[root-of-the-server]__684a868c._.js.map +1 -1
  222. package/web/.next/server/chunks/ssr/[root-of-the-server]__6b17a22d._.js +1 -1
  223. package/web/.next/server/chunks/ssr/[root-of-the-server]__6b17a22d._.js.map +1 -1
  224. package/web/.next/server/chunks/ssr/[root-of-the-server]__6bb00d90._.js +2 -2
  225. package/web/.next/server/chunks/ssr/[root-of-the-server]__6bb00d90._.js.map +1 -1
  226. package/web/.next/server/chunks/ssr/[root-of-the-server]__804c006d._.js +1 -1
  227. package/web/.next/server/chunks/ssr/[root-of-the-server]__804c006d._.js.map +1 -1
  228. package/web/.next/server/chunks/ssr/[root-of-the-server]__8b59c03e._.js +3 -0
  229. package/web/.next/server/chunks/ssr/[root-of-the-server]__8b59c03e._.js.map +1 -0
  230. package/web/.next/server/chunks/ssr/[root-of-the-server]__8c553503._.js +4 -0
  231. package/web/.next/server/chunks/ssr/{[root-of-the-server]__2ff2daf6._.js.map → [root-of-the-server]__8c553503._.js.map} +1 -1
  232. package/web/.next/server/chunks/ssr/[root-of-the-server]__994ad9fe._.js +3 -0
  233. package/web/.next/server/chunks/ssr/[root-of-the-server]__994ad9fe._.js.map +1 -0
  234. package/web/.next/server/chunks/ssr/[root-of-the-server]__9f155c0e._.js +3 -0
  235. package/web/.next/server/chunks/ssr/[root-of-the-server]__9f155c0e._.js.map +1 -0
  236. package/web/.next/server/chunks/ssr/[root-of-the-server]__a022445f._.js +4 -0
  237. package/web/.next/server/chunks/ssr/[root-of-the-server]__a022445f._.js.map +1 -0
  238. package/web/.next/server/chunks/ssr/[root-of-the-server]__a7de2711._.js +4 -0
  239. package/web/.next/server/chunks/ssr/[root-of-the-server]__a7de2711._.js.map +1 -0
  240. package/web/.next/server/chunks/ssr/[root-of-the-server]__b724df9e._.js +3 -0
  241. package/web/.next/server/chunks/ssr/[root-of-the-server]__b724df9e._.js.map +1 -0
  242. package/web/.next/server/chunks/ssr/[root-of-the-server]__c16bf5de._.js +1 -1
  243. package/web/.next/server/chunks/ssr/[root-of-the-server]__c16bf5de._.js.map +1 -1
  244. package/web/.next/server/chunks/ssr/[root-of-the-server]__c9777776._.js +1 -1
  245. package/web/.next/server/chunks/ssr/[root-of-the-server]__c9777776._.js.map +1 -1
  246. package/web/.next/server/chunks/ssr/[root-of-the-server]__c9c1cfee._.js +3 -0
  247. package/web/.next/server/chunks/ssr/[root-of-the-server]__c9c1cfee._.js.map +1 -0
  248. package/web/.next/server/chunks/ssr/_135edb9c._.js +1 -1
  249. package/web/.next/server/chunks/ssr/_135edb9c._.js.map +1 -1
  250. package/web/.next/server/chunks/ssr/_1bb131c4._.js.map +1 -1
  251. package/web/.next/server/chunks/ssr/_1bb79fe8._.js +3 -0
  252. package/web/.next/server/chunks/ssr/_1bb79fe8._.js.map +1 -0
  253. package/web/.next/server/chunks/ssr/_2f6f48b8._.js +1 -1
  254. package/web/.next/server/chunks/ssr/_2f6f48b8._.js.map +1 -1
  255. package/web/.next/server/chunks/ssr/_59ae996e._.js +3 -0
  256. package/web/.next/server/chunks/ssr/_59ae996e._.js.map +1 -0
  257. package/web/.next/server/chunks/ssr/_75f4ccb3._.js +3 -0
  258. package/web/.next/server/chunks/ssr/_75f4ccb3._.js.map +1 -0
  259. package/web/.next/server/chunks/ssr/_ab069e13._.js +3 -0
  260. package/web/.next/server/chunks/ssr/_ab069e13._.js.map +1 -0
  261. package/web/.next/server/chunks/ssr/{_5f868392._.js → _aeb74a70._.js} +2 -2
  262. package/web/.next/server/chunks/ssr/_aeb74a70._.js.map +1 -0
  263. package/web/.next/server/chunks/ssr/_bed4bbb9._.js +3 -0
  264. package/web/.next/server/chunks/ssr/_bed4bbb9._.js.map +1 -0
  265. package/web/.next/server/chunks/ssr/_cc77a143._.js +1 -1
  266. package/web/.next/server/chunks/ssr/_cc77a143._.js.map +1 -1
  267. package/web/.next/server/chunks/ssr/_f605354c._.js +9 -0
  268. package/web/.next/server/chunks/ssr/_f605354c._.js.map +1 -0
  269. package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js +1 -1
  270. package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js.map +1 -1
  271. package/web/.next/server/chunks/ssr/node_modules__pnpm_b59e4b16._.js +3 -0
  272. package/web/.next/server/chunks/ssr/node_modules__pnpm_b59e4b16._.js.map +1 -0
  273. package/web/.next/server/chunks/ssr/src_presentation_web_0835b28e._.js +2 -2
  274. package/web/.next/server/chunks/ssr/src_presentation_web_0835b28e._.js.map +1 -1
  275. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_e99d78dd.js +1 -1
  276. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_e99d78dd.js.map +1 -1
  277. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_1fa8042e.js +1 -1
  278. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_1fa8042e.js.map +1 -1
  279. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_24684200.js +1 -1
  280. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_24684200.js.map +1 -1
  281. package/web/.next/server/chunks/ssr/src_presentation_web_ca99d62d._.js +1 -1
  282. package/web/.next/server/chunks/ssr/src_presentation_web_ca99d62d._.js.map +1 -1
  283. package/web/.next/server/chunks/ssr/src_presentation_web_components_bdcfba35._.js +3 -0
  284. package/web/.next/server/chunks/ssr/src_presentation_web_components_bdcfba35._.js.map +1 -0
  285. package/web/.next/server/chunks/ssr/src_presentation_web_components_bf50c527._.js +1 -1
  286. package/web/.next/server/chunks/ssr/src_presentation_web_components_de814675._.js +1 -1
  287. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js +1 -1
  288. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js.map +1 -1
  289. package/web/.next/server/chunks/ssr/src_presentation_web_e8034a29._.js +2 -2
  290. package/web/.next/server/chunks/ssr/src_presentation_web_e8034a29._.js.map +1 -1
  291. package/web/.next/server/pages/500.html +2 -2
  292. package/web/.next/server/server-reference-manifest.js +1 -1
  293. package/web/.next/server/server-reference-manifest.json +33 -33
  294. package/web/.next/static/chunks/1c5310cfde612b81.js +1 -0
  295. package/web/.next/static/chunks/{da24af4a494de11a.js → 2b35632c1b784fae.js} +1 -1
  296. package/web/.next/static/chunks/{dc81cb5172953533.js → 30097f88cdf8fad8.js} +1 -1
  297. package/web/.next/static/chunks/3678617c34576e18.js +2 -0
  298. package/web/.next/static/chunks/4562ee849ea13c3a.js +1 -0
  299. package/web/.next/static/chunks/{169d4ce4e5fa10d2.js → 69c6d3ba1606e98d.js} +1 -1
  300. package/web/.next/static/chunks/{bf46b5bf0d9d43b3.js → 7c57a9143e66868c.js} +2 -2
  301. package/web/.next/static/chunks/845d8e58a91014e6.js +1 -0
  302. package/web/.next/static/chunks/{7ce5aacd9b492e8c.js → c1a6934d2281c088.js} +1 -1
  303. package/web/.next/static/chunks/c4477c532d2081e8.js +1 -0
  304. package/web/.next/static/chunks/cca0f5112a9260d8.js +1 -0
  305. package/web/.next/static/chunks/d2739454715e5ef2.css +1 -0
  306. package/web/.next/static/chunks/ed113fb744f2e4d8.js +11 -0
  307. package/web/.next/static/chunks/{9285299c4fb0f020.js → f3c4a7bb76c69b01.js} +1 -1
  308. package/web/.next/server/chunks/[root-of-the-server]__7d5492a0._.js +0 -3
  309. package/web/.next/server/chunks/[root-of-the-server]__7d5492a0._.js.map +0 -1
  310. package/web/.next/server/chunks/ssr/7f428_lucide-react_dist_esm_icons_rocket_1575cd4d.js +0 -3
  311. package/web/.next/server/chunks/ssr/7f428_lucide-react_dist_esm_icons_rocket_1575cd4d.js.map +0 -1
  312. package/web/.next/server/chunks/ssr/[root-of-the-server]__2ff2daf6._.js +0 -4
  313. package/web/.next/server/chunks/ssr/[root-of-the-server]__3155add4._.js +0 -3
  314. package/web/.next/server/chunks/ssr/[root-of-the-server]__3155add4._.js.map +0 -1
  315. package/web/.next/server/chunks/ssr/[root-of-the-server]__6367aea0._.js +0 -3
  316. package/web/.next/server/chunks/ssr/[root-of-the-server]__6367aea0._.js.map +0 -1
  317. package/web/.next/server/chunks/ssr/[root-of-the-server]__7b707feb._.js +0 -4
  318. package/web/.next/server/chunks/ssr/[root-of-the-server]__7b707feb._.js.map +0 -1
  319. package/web/.next/server/chunks/ssr/[root-of-the-server]__8763fd7a._.js +0 -4
  320. package/web/.next/server/chunks/ssr/[root-of-the-server]__8763fd7a._.js.map +0 -1
  321. package/web/.next/server/chunks/ssr/[root-of-the-server]__9c56d724._.js +0 -3
  322. package/web/.next/server/chunks/ssr/[root-of-the-server]__9c56d724._.js.map +0 -1
  323. package/web/.next/server/chunks/ssr/[root-of-the-server]__cfc116d5._.js +0 -3
  324. package/web/.next/server/chunks/ssr/[root-of-the-server]__cfc116d5._.js.map +0 -1
  325. package/web/.next/server/chunks/ssr/[root-of-the-server]__d3841d9e._.js +0 -3
  326. package/web/.next/server/chunks/ssr/[root-of-the-server]__d3841d9e._.js.map +0 -1
  327. package/web/.next/server/chunks/ssr/[root-of-the-server]__db9afe04._.js +0 -3
  328. package/web/.next/server/chunks/ssr/[root-of-the-server]__db9afe04._.js.map +0 -1
  329. package/web/.next/server/chunks/ssr/_250a63ae._.js +0 -3
  330. package/web/.next/server/chunks/ssr/_250a63ae._.js.map +0 -1
  331. package/web/.next/server/chunks/ssr/_273d4632._.js +0 -3
  332. package/web/.next/server/chunks/ssr/_273d4632._.js.map +0 -1
  333. package/web/.next/server/chunks/ssr/_5f868392._.js.map +0 -1
  334. package/web/.next/server/chunks/ssr/_922aa39f._.js +0 -3
  335. package/web/.next/server/chunks/ssr/_922aa39f._.js.map +0 -1
  336. package/web/.next/server/chunks/ssr/_a68d7e1c._.js +0 -9
  337. package/web/.next/server/chunks/ssr/_a68d7e1c._.js.map +0 -1
  338. package/web/.next/server/chunks/ssr/_c6ec0fa4._.js +0 -3
  339. package/web/.next/server/chunks/ssr/_c6ec0fa4._.js.map +0 -1
  340. package/web/.next/server/chunks/ssr/_ca5a8b32._.js +0 -3
  341. package/web/.next/server/chunks/ssr/_ca5a8b32._.js.map +0 -1
  342. package/web/.next/server/chunks/ssr/_f5316e67._.js +0 -3
  343. package/web/.next/server/chunks/ssr/_f5316e67._.js.map +0 -1
  344. package/web/.next/server/chunks/ssr/src_presentation_web_components_a5e6c910._.js +0 -3
  345. package/web/.next/server/chunks/ssr/src_presentation_web_components_a5e6c910._.js.map +0 -1
  346. package/web/.next/static/chunks/15a2249cbec45bee.js +0 -11
  347. package/web/.next/static/chunks/3a806cf059241bc9.js +0 -1
  348. package/web/.next/static/chunks/3fb7682246dbaf45.js +0 -1
  349. package/web/.next/static/chunks/55c131b6fc504375.js +0 -1
  350. package/web/.next/static/chunks/59e6b9b540f05bf1.js +0 -1
  351. package/web/.next/static/chunks/62a8173911f8f130.css +0 -1
  352. package/web/.next/static/chunks/b1f3c0e8e9872ef8.js +0 -1
  353. package/web/.next/static/chunks/f7577de2f653acfc.js +0 -2
  354. /package/web/.next/server/chunks/{[root-of-the-server]__7d63f9a4._.js.map → [root-of-the-server]__53013576._.js.map} +0 -0
  355. /package/web/.next/server/chunks/{[root-of-the-server]__a1c7c02a._.js.map → [root-of-the-server]__92078db6._.js.map} +0 -0
  356. /package/web/.next/static/{akrvSvVQ4BzHsJ1sA0rS7 → qmHUdyRBvaVksgjcL6w-m}/_buildManifest.js +0 -0
  357. /package/web/.next/static/{akrvSvVQ4BzHsJ1sA0rS7 → qmHUdyRBvaVksgjcL6w-m}/_clientMiddlewareManifest.json +0 -0
  358. /package/web/.next/static/{akrvSvVQ4BzHsJ1sA0rS7 → qmHUdyRBvaVksgjcL6w-m}/_ssgManifest.js +0 -0
@@ -1,7 +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 { Loader2, AlertCircle, Clock } from 'lucide-react';
4
+ import { Loader2, AlertCircle, Clock, Zap } from 'lucide-react';
5
5
  import { InlineAttachments } from '../../common/inline-attachments/index.js';
6
6
  import { formatDuration } from '../../../lib/format-duration.js';
7
7
  /**
@@ -43,6 +43,14 @@ function useTickingNow(timings) {
43
43
  }, [timings]);
44
44
  return now;
45
45
  }
46
+ /** Format a token count with K/M suffix for readability. */
47
+ function formatTokens(count) {
48
+ if (count >= 1_000_000)
49
+ return `${(count / 1_000_000).toFixed(1)}M`;
50
+ if (count >= 1_000)
51
+ return `${(count / 1_000).toFixed(1)}K`;
52
+ return String(count);
53
+ }
46
54
  const NODE_TO_PHASE = {
47
55
  analyze: 'Analyzing',
48
56
  requirements: 'Requirements',
@@ -150,7 +158,9 @@ export function ActivityTab({ timings, loading, error, rejectionFeedback }) {
150
158
  const hasMultipleIterations = iterations.length > 1;
151
159
  const totalExecMs = nodeTimings.reduce((sum, t) => sum + getEffectiveDuration(t, now), 0);
152
160
  const totalWaitMs = nodeTimings.reduce((sum, t) => sum + (t.approvalWaitMs ?? 0), 0);
153
- return (_jsxs("div", { className: "flex flex-col gap-4 p-4", children: [_jsx("div", { "data-testid": "activity-timings", className: "flex flex-col gap-3", children: iterations.map((iteration) => (_jsx(IterationGroup, { iteration: iteration, showHeader: hasMultipleIterations, maxDurationMs: maxDurationMs, now: now }, iteration.number))) }), totalExecMs > 0 ? (_jsx(SummaryTotals, { totalExecMs: totalExecMs, totalWaitMs: totalWaitMs })) : null] }));
161
+ const totalInputTokens = nodeTimings.reduce((sum, t) => sum + (t.inputTokens ?? 0), 0);
162
+ const totalOutputTokens = nodeTimings.reduce((sum, t) => sum + (t.outputTokens ?? 0), 0);
163
+ return (_jsxs("div", { className: "flex flex-col gap-4 p-4", children: [_jsx("div", { "data-testid": "activity-timings", className: "flex flex-col gap-3", children: iterations.map((iteration) => (_jsx(IterationGroup, { iteration: iteration, showHeader: hasMultipleIterations, maxDurationMs: maxDurationMs, now: now }, iteration.number))) }), totalExecMs > 0 ? (_jsx(SummaryTotals, { totalExecMs: totalExecMs, totalWaitMs: totalWaitMs, totalInputTokens: totalInputTokens, totalOutputTokens: totalOutputTokens })) : null] }));
154
164
  }
155
165
  /* ---------------------------------------------------------------------------
156
166
  * Iteration group — one cycle of work
@@ -176,22 +186,38 @@ function LifecycleEventRow({ timing, message, attachments, }) {
176
186
  return (_jsxs("div", { className: `text-xs ${event.colorClass}`, children: [_jsx("span", { children: event.label }), message ? (_jsxs("span", { "data-testid": "rejection-feedback-text", className: "text-muted-foreground ml-2 font-normal italic", children: ["\u2014 ", message] })) : null, hasAttachments ? (_jsx("div", { "data-testid": "rejection-feedback-attachments", className: "mt-1.5 ml-2", children: _jsx(InlineAttachments, { text: "", attachmentPaths: attachments }) })) : null] }));
177
187
  }
178
188
  function NodeTimingRow({ timing, maxDurationMs, now, }) {
179
- const label = timing.phase.includes(':')
180
- ? `rev ${timing.phase.split(':')[1]}`
181
- : (NODE_TO_PHASE[timing.phase] ?? timing.phase);
189
+ const suffix = timing.phase.includes(':') ? timing.phase.split(':')[1] : null;
190
+ const isSubPhase = suffix !== null;
191
+ // Distinguish implementation sub-phases (phase-1, phase-2) from rejection retries (2, 3)
192
+ const isImplPhase = suffix?.startsWith('phase-') ?? false;
193
+ const label = isImplPhase
194
+ ? `Phase ${suffix.replace('phase-', '')}`
195
+ : suffix !== null
196
+ ? `retry #${suffix}`
197
+ : (NODE_TO_PHASE[timing.phase] ?? timing.phase);
182
198
  const durationMs = getEffectiveDuration(timing, now);
183
199
  const barPercent = maxDurationMs > 0 ? Math.max(2, (durationMs / maxDurationMs) * 100) : 2;
184
200
  const isRunning = !timing.completedAt && !!timing.startedAt;
185
- const barColorClass = timing.completedAt ? 'bg-emerald-500' : 'bg-blue-500';
186
- return (_jsxs("div", { className: "flex flex-col gap-1", children: [_jsxs("div", { "data-testid": `timing-bar-${timing.phase}`, className: "flex items-center gap-3", children: [_jsx("span", { className: "text-muted-foreground w-24 shrink-0 text-xs", children: label }), _jsx("div", { className: "bg-muted h-3 flex-1 overflow-hidden rounded-full", children: _jsx("div", { className: `h-full rounded-full ${barColorClass}${isRunning ? 'animate-pulse' : ''}`, style: { width: `${Math.min(barPercent, 100)}%` } }) }), _jsx("span", { className: "text-muted-foreground w-14 shrink-0 text-right text-xs", children: formatDuration(durationMs) })] }), timing.approvalWaitMs != null && timing.approvalWaitMs > 0 ? (_jsx(ApprovalWaitRow, { timing: timing, maxDurationMs: maxDurationMs })) : null] }));
201
+ const barColorClass = timing.completedAt
202
+ ? isImplPhase
203
+ ? 'bg-emerald-400'
204
+ : isSubPhase
205
+ ? 'bg-amber-500'
206
+ : 'bg-emerald-500'
207
+ : 'bg-blue-500';
208
+ const totalTokens = timing.inputTokens != null || timing.outputTokens != null
209
+ ? (timing.inputTokens ?? 0) + (timing.outputTokens ?? 0)
210
+ : null;
211
+ return (_jsxs("div", { className: isSubPhase ? 'flex flex-col gap-1 pl-6' : 'flex flex-col gap-1', children: [_jsxs("div", { "data-testid": `timing-bar-${timing.phase}`, className: "flex items-center gap-2", children: [_jsx("span", { className: `text-muted-foreground shrink-0 text-xs ${isSubPhase ? 'w-18' : 'w-24'}`, children: label }), _jsx("div", { className: `bg-muted min-w-0 flex-1 overflow-hidden rounded-full ${isSubPhase ? 'h-2.5' : 'h-3'}`, children: _jsx("div", { className: `h-full rounded-full ${barColorClass}${isRunning ? 'animate-pulse' : ''}`, style: { width: `${Math.min(barPercent, 100)}%` } }) }), _jsx("span", { className: "text-muted-foreground w-10 shrink-0 text-right text-xs tabular-nums", children: formatDuration(durationMs) }), _jsx("span", { className: "text-muted-foreground w-12 shrink-0 text-right text-[10px] tabular-nums", children: totalTokens != null && totalTokens > 0 ? (_jsxs("span", { className: "inline-flex items-center gap-0.5", children: [_jsx(Zap, { className: "h-2 w-2 opacity-50" }), formatTokens(totalTokens)] })) : null })] }), timing.approvalWaitMs != null && timing.approvalWaitMs > 0 ? (_jsx(ApprovalWaitRow, { timing: timing, maxDurationMs: maxDurationMs })) : null] }));
187
212
  }
188
213
  function ApprovalWaitRow({ timing, maxDurationMs, }) {
189
214
  const waitMs = timing.approvalWaitMs ?? 0;
190
215
  const barPercent = maxDurationMs > 0 ? Math.max(2, (waitMs / maxDurationMs) * 100) : 2;
191
- return (_jsxs("div", { "data-testid": `approval-wait-${timing.phase}`, className: "flex items-center gap-3 pl-4", children: [_jsx("span", { className: "text-muted-foreground w-20 shrink-0 text-xs", children: "approval" }), _jsx("div", { className: "bg-muted h-2.5 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", children: formatDuration(waitMs) })] }));
216
+ return (_jsxs("div", { "data-testid": `approval-wait-${timing.phase}`, className: "flex items-center gap-2 pl-4", children: [_jsx("span", { className: "text-muted-foreground w-20 shrink-0 text-xs", children: "approval" }), _jsx("div", { className: "bg-muted h-2.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-10 shrink-0 text-right text-xs tabular-nums", children: formatDuration(waitMs) }), _jsx("span", { className: "w-12 shrink-0" })] }));
192
217
  }
193
- function SummaryTotals({ totalExecMs, totalWaitMs }) {
194
- return (_jsxs("div", { "data-testid": "activity-summary", className: "border-border flex flex-col gap-1.5 border-t pt-3", children: [_jsx(SummaryRow, { label: "Total execution", value: formatDuration(totalExecMs) }), totalWaitMs > 0 ? (_jsxs(_Fragment, { children: [_jsx(SummaryRow, { label: "Total wait", value: formatDuration(totalWaitMs) }), _jsx(SummaryRow, { label: "Total wall-clock", value: formatDuration(totalExecMs + totalWaitMs) })] })) : null] }));
218
+ function SummaryTotals({ totalExecMs, totalWaitMs, totalInputTokens, totalOutputTokens, }) {
219
+ const totalTokens = totalInputTokens + totalOutputTokens;
220
+ return (_jsxs("div", { "data-testid": "activity-summary", className: "border-border flex flex-col gap-1.5 border-t pt-3", children: [_jsx(SummaryRow, { label: "Total execution", value: formatDuration(totalExecMs) }), totalWaitMs > 0 ? (_jsxs(_Fragment, { children: [_jsx(SummaryRow, { label: "Total wait", value: formatDuration(totalWaitMs) }), _jsx(SummaryRow, { label: "Total wall-clock", value: formatDuration(totalExecMs + totalWaitMs) })] })) : null, totalTokens > 0 ? (_jsx(SummaryRow, { label: "Total tokens", value: `${formatTokens(totalTokens)} (${formatTokens(totalInputTokens)} in · ${formatTokens(totalOutputTokens)} out)` })) : null] }));
195
221
  }
196
222
  function SummaryRow({ label, value }) {
197
223
  return (_jsxs("div", { className: "flex items-center justify-between", children: [_jsx("span", { className: "text-muted-foreground text-xs font-medium", children: label }), _jsx("span", { className: "text-xs font-medium", children: value })] }));
@@ -1 +1 @@
1
- {"version":3,"file":"feature-drawer-tabs.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-drawer-tabs/feature-drawer-tabs.ts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AI,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,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7C;AAwBD,wBAAgB,iBAAiB,CAAC,EAChC,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,WAAW,EACX,SAAS,EACT,iBAAiB,EACjB,SAAS,GACV,EAAE,sBAAsB,2CA2TxB"}
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;AAS9E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,KAAK,EAAE,uBAAuB,EAAE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,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,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7C;AAwBD,wBAAgB,iBAAiB,CAAC,EAChC,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,WAAW,EACX,SAAS,EACT,iBAAiB,EACjB,SAAS,GACV,EAAE,sBAAsB,2CAiUxB"}
@@ -43,6 +43,9 @@ function computeVisibleTabs(node) {
43
43
  if (node.lifecycle === 'review' && (node.state === 'action-required' || node.state === 'error')) {
44
44
  tabs.push('merge-review');
45
45
  }
46
+ if (node.lifecycle === 'maintain' && node.pr) {
47
+ tabs.push('merge-review');
48
+ }
46
49
  return tabs;
47
50
  }
48
51
  async function fetchActivity(featureId) {
@@ -64,7 +67,9 @@ const TAB_FETCHERS = {
64
67
  export function FeatureDrawerTabs({ featureNode, featureId, initialTab, urlTab, prdData, prdSelections, onPrdSelect, onPrdApprove, onPrdReject, isPrdLoading, techData, onTechApprove, onTechReject, isTechLoading, productData, mergeData, onMergeApprove, onMergeReject, isMergeLoading, isRejecting, chatInput, onChatInputChange, sseEvents, }) {
65
68
  const pathname = usePathname();
66
69
  const visibleTabs = useMemo(() => computeVisibleTabs(featureNode), [featureNode]);
67
- const visibleTabDefs = useMemo(() => ALL_TABS.filter((t) => visibleTabs.includes(t.key)), [visibleTabs]);
70
+ const visibleTabDefs = useMemo(() => ALL_TABS.filter((t) => visibleTabs.includes(t.key)).map((t) => t.key === 'merge-review' && featureNode.lifecycle === 'maintain'
71
+ ? { ...t, label: 'Merge History' }
72
+ : t), [visibleTabs, featureNode.lifecycle]);
68
73
  // Derive the base path (without tab segment) from the current pathname.
69
74
  // e.g. /feature/abc123/activity → /feature/abc123
70
75
  const basePath = useMemo(() => {
@@ -223,7 +228,7 @@ export function FeatureDrawerTabs({ featureNode, featureId, initialTab, urlTab,
223
228
  fetchTab(tab);
224
229
  }
225
230
  }, [fetchTab]);
226
- 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: [_jsx("div", { className: "shrink-0 overflow-x-auto px-4 pt-4", children: _jsx(TabsList, { className: "flex w-full", children: visibleTabDefs.map((tab) => (_jsx(TabsTrigger, { value: tab.key, className: "flex-1", children: tab.label }, tab.key))) }) }), _jsx(TabsContent, { value: "overview", className: "mt-0 flex-1 overflow-y-auto", children: _jsx(OverviewTab, { data: featureNode }) }), _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, onApprove: onMergeApprove ?? (() => undefined), onReject: onMergeReject, isProcessing: isMergeLoading, 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] }) }));
231
+ 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: [_jsx("div", { className: "shrink-0 overflow-x-auto px-4 pt-4", children: _jsx(TabsList, { className: "flex w-full", children: visibleTabDefs.map((tab) => (_jsx(TabsTrigger, { value: tab.key, className: "flex-1", children: tab.label }, tab.key))) }) }), _jsx(TabsContent, { value: "overview", className: "mt-0 flex-1 overflow-y-auto", children: _jsx(OverviewTab, { data: featureNode }) }), _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: _jsx(Loader2, { className: "text-muted-foreground h-6 w-6 animate-spin" }) })) })) : null] }) }));
227
232
  }
228
233
  // ── Private helper ──────────────────────────────────────────────────────
229
234
  function DrawerActionBarForTech({ onApprove, onReject, isProcessing, isRejecting, chatInput, onChatInputChange, }) {
@@ -117,11 +117,12 @@ function FeatureSettings({ data }) {
117
117
  const hasSettings = data.approvalGates != null ||
118
118
  data.push != null ||
119
119
  data.openPr != null ||
120
+ data.ciWatchEnabled != null ||
120
121
  data.enableEvidence != null ||
121
122
  data.modelId;
122
123
  if (!hasSettings)
123
124
  return null;
124
- 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 || data.openPr != 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] })] })) : null] })] }));
125
+ 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 || data.openPr != null || data.ciWatchEnabled != 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] })] })) : null] })] }));
125
126
  }
126
127
  function DetailRow({ label, value }) {
127
128
  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 })] }));
@@ -20,6 +20,8 @@ export interface FeatureNodeData {
20
20
  repositoryPath: string;
21
21
  /** Git branch name for this feature */
22
22
  branch: string;
23
+ /** Absolute path to the git worktree for this feature (sessions use this path) */
24
+ worktreePath?: string;
23
25
  /** Absolute path to the specs folder on disk */
24
26
  specPath?: string;
25
27
  /** Epoch ms when the current agent run started (for elapsed-time in sidebar) */
@@ -69,6 +71,8 @@ export interface FeatureNodeData {
69
71
  push?: boolean;
70
72
  /** Whether to open a PR after implementation */
71
73
  openPr?: boolean;
74
+ /** Whether CI watch/fix loop is enabled after push */
75
+ ciWatchEnabled?: boolean;
72
76
  /** Whether evidence collection is enabled for this feature */
73
77
  enableEvidence?: boolean;
74
78
  /** Whether evidence is committed to the PR body */
@@ -1 +1 @@
1
- {"version":3,"file":"feature-node-state-config.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-node/feature-node-state-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,UAAU,EAChB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAChG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,MAAM,MAAM,gBAAgB,GACxB,UAAU,GACV,SAAS,GACT,iBAAiB,GACjB,MAAM,GACN,SAAS,GACT,SAAS,GACT,OAAO,GACP,UAAU,CAAC;AAEf,MAAM,MAAM,qBAAqB,GAC7B,SAAS,GACT,cAAc,GACd,UAAU,GACV,gBAAgB,GAChB,QAAQ,GACR,QAAQ,GACR,UAAU,CAAC;AAEf,0DAA0D;AAC1D,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,qBAAqB,EAAE,MAAM,CAQxE,CAAC;AAEF,gFAAgF;AAChF,eAAO,MAAM,qBAAqB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W,sBAAsB;IACrC,IAAI,EAAE,UAAU,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,OAAO,CAAC;CAC1B;AAED,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,gBAAgB,EAAE,sBAAsB,CAiFnF,CAAC"}
1
+ {"version":3,"file":"feature-node-state-config.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-node/feature-node-state-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,UAAU,EAChB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAChG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,MAAM,MAAM,gBAAgB,GACxB,UAAU,GACV,SAAS,GACT,iBAAiB,GACjB,MAAM,GACN,SAAS,GACT,SAAS,GACT,OAAO,GACP,UAAU,CAAC;AAEf,MAAM,MAAM,qBAAqB,GAC7B,SAAS,GACT,cAAc,GACd,UAAU,GACV,gBAAgB,GAChB,QAAQ,GACR,QAAQ,GACR,UAAU,CAAC;AAEf,0DAA0D;AAC1D,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,qBAAqB,EAAE,MAAM,CAQxE,CAAC;AAEF,gFAAgF;AAChF,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,qBAAqB,EAAE,MAAM,CAQvE,CAAC;AAEF,MAAM,WAAW,eAAe;IAC9B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb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MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,OAAO,CAAC;CAC1B;AAED,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,gBAAgB,EAAE,sBAAsB,CAiFnF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"feature-node.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-node/feature-node.tsx"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AA4DnE,wBAAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,QAAQ,GACT,EAAE;IACD,IAAI,EAAE,eAAe,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB,2CAyUA"}
1
+ {"version":3,"file":"feature-node.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-node/feature-node.tsx"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AA6DnE,wBAAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,QAAQ,GACT,EAAE;IACD,IAAI,EAAE,eAAe,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB,2CA8UA"}
@@ -10,6 +10,7 @@ import { featureNodeStateConfig, lifecycleDisplayLabels, lifecycleRunningVerbs,
10
10
  import { getAgentTypeIcon, agentTypeLabels } from './agent-type-icons.js';
11
11
  import { getModelMeta } from '../../../lib/model-metadata.js';
12
12
  import { DeploymentState } from '../../../../../../packages/core/src/domain/generated/output.js';
13
+ import { FeatureSessionsDropdown } from './feature-sessions-dropdown.js';
13
14
  function AgentIcon({ agentType, className }) {
14
15
  const IconComponent = getAgentTypeIcon(agentType);
15
16
  return _jsx(IconComponent, { className: className });
@@ -88,7 +89,7 @@ export function FeatureNode({ data, selected, }) {
88
89
  ? 'bg-blue-50 text-blue-700'
89
90
  : 'bg-green-50 text-green-700'), children: [data.deployment.status === DeploymentState.Booting ? (_jsx(Loader2, { className: "h-3 w-3 animate-spin" })) : (_jsx(Globe, { className: "h-3 w-3" })), _jsx("span", { className: "truncate", children: data.deployment.status === DeploymentState.Booting
90
91
  ? 'Deploying...'
91
- : (data.deployment.url ?? 'Live') })] })) : null, _jsx("div", { className: "mt-auto pt-2", children: data.state === 'deleting' ? (_jsxs(_Fragment, { children: [_jsxs("div", { className: "mt-1.5 flex items-center gap-1.5 text-xs", children: [_jsx(Trash2, { className: "h-3.5 w-3.5 shrink-0 text-gray-400" }), _jsx("span", { className: "text-muted-foreground", children: "Deleting\u2026" })] }), _jsx("div", { "data-testid": "feature-node-progress-bar", className: "bg-muted mt-1.5 h-1 w-full overflow-hidden rounded-full", children: _jsx("div", { className: "motion-safe:animate-indeterminate-progress bg-foreground/30 h-full w-1/3 rounded-full" }) })] })) : data.state === 'creating' ? (_jsxs(_Fragment, { children: [_jsxs("div", { className: "mt-1.5 flex items-center gap-1.5 text-xs", children: [_jsx(Icon, { className: "h-3.5 w-3.5 shrink-0 animate-spin" }), _jsx("span", { className: "text-muted-foreground", children: getBadgeText(data) })] }), _jsx("div", { "data-testid": "feature-node-progress-bar", className: "bg-muted mt-1.5 h-1 w-full overflow-hidden rounded-full", children: _jsx("div", { className: "motion-safe:animate-indeterminate-progress bg-foreground/30 h-full w-1/3 rounded-full" }) })] })) : data.state === 'running' ? (_jsxs(_Fragment, { children: [_jsxs("div", { className: "mt-1.5 flex items-center gap-1.5 text-xs", children: [_jsx(AgentIcon, { agentType: data.agentType, className: "h-3.5 w-3.5 shrink-0" }), _jsx("span", { className: "text-muted-foreground", children: getBadgeText(data) })] }), _jsx("div", { "data-testid": "feature-node-progress-bar", className: "bg-muted mt-1.5 h-1 w-full overflow-hidden rounded-full", children: _jsx("div", { className: "animate-indeterminate-progress bg-foreground/30 h-full w-1/3 rounded-full" }) })] })) : config.showProgressBar ? (_jsxs(_Fragment, { children: [_jsx("div", { className: "text-muted-foreground flex items-center justify-end text-[10px]", children: _jsxs("span", { children: [data.progress, "%"] }) }), _jsx("div", { "data-testid": "feature-node-progress-bar", className: "bg-muted mt-1.5 h-1 w-full overflow-hidden rounded-full", children: _jsx("div", { className: cn('h-full rounded-full transition-all', config.progressClass), style: { width: `${data.progress}%` } }) })] })) : (_jsxs(_Fragment, { children: [_jsx("div", { className: "text-muted-foreground text-[10px]", children: _jsx("span", { children: data.featureId }) }), _jsxs("div", { className: "mt-1.5 flex items-center gap-1.5", children: [_jsxs("div", { "data-testid": "feature-node-badge", className: (() => {
92
+ : (data.deployment.url ?? 'Live') })] })) : null, _jsx("div", { className: "mt-auto pt-2", children: data.state === 'deleting' ? (_jsxs(_Fragment, { children: [_jsxs("div", { className: "mt-1.5 flex items-center gap-1.5 text-xs", children: [_jsx(Trash2, { className: "h-3.5 w-3.5 shrink-0 text-gray-400" }), _jsx("span", { className: "text-muted-foreground", children: "Deleting\u2026" })] }), _jsx("div", { "data-testid": "feature-node-progress-bar", className: "bg-muted mt-1.5 h-1 w-full overflow-hidden rounded-full", children: _jsx("div", { className: "motion-safe:animate-indeterminate-progress bg-foreground/30 h-full w-1/3 rounded-full" }) })] })) : data.state === 'creating' ? (_jsxs(_Fragment, { children: [_jsxs("div", { className: "mt-1.5 flex items-center gap-1.5 text-xs", children: [_jsx(Icon, { className: "h-3.5 w-3.5 shrink-0 animate-spin" }), _jsx("span", { className: "text-muted-foreground", children: getBadgeText(data) })] }), _jsx("div", { "data-testid": "feature-node-progress-bar", className: "bg-muted mt-1.5 h-1 w-full overflow-hidden rounded-full", children: _jsx("div", { className: "motion-safe:animate-indeterminate-progress bg-foreground/30 h-full w-1/3 rounded-full" }) })] })) : data.state === 'running' ? (_jsxs(_Fragment, { children: [_jsxs("div", { className: "mt-1.5 flex items-center gap-1.5 text-xs", children: [_jsx(AgentIcon, { agentType: data.agentType, className: "h-3.5 w-3.5 shrink-0" }), _jsx("span", { className: "text-muted-foreground", children: getBadgeText(data) })] }), _jsx("div", { "data-testid": "feature-node-progress-bar", className: "bg-muted mt-1.5 h-1 w-full overflow-hidden rounded-full", children: _jsx("div", { className: "animate-indeterminate-progress bg-foreground/30 h-full w-1/3 rounded-full" }) })] })) : config.showProgressBar ? (_jsxs(_Fragment, { children: [_jsx("div", { className: "text-muted-foreground flex items-center justify-end text-[10px]", children: _jsxs("span", { children: [data.progress, "%"] }) }), _jsx("div", { "data-testid": "feature-node-progress-bar", className: "bg-muted mt-1.5 h-1 w-full overflow-hidden rounded-full", children: _jsx("div", { className: cn('h-full rounded-full transition-all', config.progressClass), style: { width: `${data.progress}%` } }) })] })) : (_jsxs(_Fragment, { children: [_jsxs("div", { className: "text-muted-foreground flex items-center justify-between text-[10px]", children: [_jsx("span", { children: data.featureId }), (data.worktreePath ?? data.repositoryPath) ? (_jsx(FeatureSessionsDropdown, { repositoryPath: data.worktreePath ?? data.repositoryPath })) : null] }), _jsxs("div", { className: "mt-1.5 flex items-center gap-1.5", children: [_jsxs("div", { "data-testid": "feature-node-badge", className: (() => {
92
93
  const override = getActionRequiredBadgeClasses(data);
93
94
  return cn('flex min-w-0 flex-1 items-center justify-center gap-1.5 rounded-full px-2.5 py-1 text-[11px] font-medium', override?.badgeBgClass ?? config.badgeBgClass, override?.badgeClass ?? config.badgeClass);
94
95
  })(), children: [(() => {
@@ -0,0 +1,21 @@
1
+ export interface SessionSummary {
2
+ id: string;
3
+ agentType?: string;
4
+ preview: string | null;
5
+ messageCount: number;
6
+ firstMessageAt: string | null;
7
+ lastMessageAt: string | null;
8
+ createdAt: string | null;
9
+ projectPath: string;
10
+ /** Absolute path to the session conversation file (e.g. JSONL) */
11
+ filePath?: string;
12
+ }
13
+ interface FeatureSessionsDropdownProps {
14
+ repositoryPath: string;
15
+ className?: string;
16
+ /** Callback to create a feature from a session. Only shown on repo nodes. */
17
+ onCreateFromSession?: (session: SessionSummary, sessionFilePath: string) => void;
18
+ }
19
+ export declare function FeatureSessionsDropdown({ repositoryPath, className, onCreateFromSession, }: FeatureSessionsDropdownProps): import("react/jsx-runtime").JSX.Element;
20
+ export {};
21
+ //# sourceMappingURL=feature-sessions-dropdown.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feature-sessions-dropdown.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-node/feature-sessions-dropdown.tsx"],"names":[],"mappings":"AA8BA,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,kEAAkE;IAClE,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,UAAU,4BAA4B;IACpC,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6EAA6E;IAC7E,mBAAmB,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,KAAK,IAAI,CAAC;CAClF;AAmDD,wBAAgB,uBAAuB,CAAC,EACtC,cAAc,EACd,SAAS,EACT,mBAAmB,GACpB,EAAE,4BAA4B,2CA2J9B"}
@@ -0,0 +1,138 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
+ import { useState, useCallback, useEffect, useRef } from 'react';
4
+ import { History, Copy, ExternalLink, Terminal, MessageSquare, Clock, Loader2, ChevronDown, Sparkles, } from 'lucide-react';
5
+ import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, DropdownMenuPortal, } from '../../ui/dropdown-menu.js';
6
+ import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '../../ui/tooltip.js';
7
+ import { cn } from '../../../lib/utils.js';
8
+ import { getAgentTypeIcon } from '../../common/feature-node/agent-type-icons.js';
9
+ const ACTIVE_THRESHOLD_MS = 5 * 60 * 1000; // 5 minutes
10
+ const PREVIEW_COUNT = 3;
11
+ function isSessionActive(session) {
12
+ if (!session.lastMessageAt)
13
+ return false;
14
+ return Date.now() - new Date(session.lastMessageAt).getTime() < ACTIVE_THRESHOLD_MS;
15
+ }
16
+ function formatRelativeTime(dateStr) {
17
+ const date = new Date(dateStr);
18
+ const now = new Date();
19
+ const diffMs = now.getTime() - date.getTime();
20
+ const diffMins = Math.floor(diffMs / 60_000);
21
+ const diffHours = Math.floor(diffMs / 3_600_000);
22
+ const diffDays = Math.floor(diffMs / 86_400_000);
23
+ if (diffMins < 1)
24
+ return 'just now';
25
+ if (diffMins < 60)
26
+ return `${diffMins}m ago`;
27
+ if (diffHours < 24)
28
+ return `${diffHours}h ago`;
29
+ if (diffDays < 7)
30
+ return `${diffDays}d ago`;
31
+ return date.toLocaleDateString();
32
+ }
33
+ function truncatePreview(preview, maxLength = 40) {
34
+ if (!preview)
35
+ return 'No preview';
36
+ if (preview.length <= maxLength)
37
+ return preview;
38
+ return `${preview.slice(0, maxLength)}...`;
39
+ }
40
+ async function copyToClipboard(text) {
41
+ try {
42
+ await navigator.clipboard.writeText(text);
43
+ }
44
+ catch {
45
+ const textarea = document.createElement('textarea');
46
+ textarea.value = text;
47
+ textarea.style.position = 'fixed';
48
+ textarea.style.opacity = '0';
49
+ document.body.appendChild(textarea);
50
+ textarea.select();
51
+ document.execCommand('copy');
52
+ document.body.removeChild(textarea);
53
+ }
54
+ }
55
+ /** Stop both click and pointerDown from reaching React Flow's node selection handler */
56
+ function stopNodeEvent(e) {
57
+ e.stopPropagation();
58
+ }
59
+ export function FeatureSessionsDropdown({ repositoryPath, className, onCreateFromSession, }) {
60
+ const [sessions, setSessions] = useState([]);
61
+ const [loading, setLoading] = useState(false);
62
+ const [fetched, setFetched] = useState(false);
63
+ const [hasActiveSessions, setHasActiveSessions] = useState(false);
64
+ const [expanded, setExpanded] = useState(false);
65
+ const prevPathRef = useRef(repositoryPath);
66
+ // Reset when path changes
67
+ useEffect(() => {
68
+ if (prevPathRef.current !== repositoryPath) {
69
+ prevPathRef.current = repositoryPath;
70
+ setSessions([]);
71
+ setFetched(false);
72
+ setHasActiveSessions(false);
73
+ setExpanded(false);
74
+ }
75
+ }, [repositoryPath]);
76
+ // Fetch sessions on mount. Fast because we only scan the matching project directory.
77
+ // Populates count badge + active indicator, and pre-loads the dropdown.
78
+ useEffect(() => {
79
+ let cancelled = false;
80
+ const params = new URLSearchParams({ repositoryPath, limit: '10' });
81
+ fetch(`/api/sessions?${params.toString()}`)
82
+ .then((res) => (res.ok ? res.json() : null))
83
+ .then((data) => {
84
+ if (!cancelled && data?.sessions) {
85
+ setSessions(data.sessions);
86
+ setHasActiveSessions(data.sessions.some(isSessionActive));
87
+ setFetched(true);
88
+ }
89
+ })
90
+ .catch(() => undefined);
91
+ return () => {
92
+ cancelled = true;
93
+ };
94
+ }, [repositoryPath]);
95
+ // Re-fetch on dropdown open if not already loaded (e.g. path changed)
96
+ const doFetch = useCallback(async () => {
97
+ if (fetched)
98
+ return;
99
+ setLoading(true);
100
+ try {
101
+ const params = new URLSearchParams({ repositoryPath, limit: '10' });
102
+ const res = await fetch(`/api/sessions?${params.toString()}`);
103
+ if (res.ok) {
104
+ const data = (await res.json());
105
+ setSessions(data.sessions);
106
+ setHasActiveSessions(data.sessions.some(isSessionActive));
107
+ }
108
+ }
109
+ catch {
110
+ // Silently fail
111
+ }
112
+ finally {
113
+ setLoading(false);
114
+ setFetched(true);
115
+ }
116
+ }, [repositoryPath, fetched]);
117
+ const handleOpenChange = useCallback((open) => {
118
+ if (open)
119
+ void doFetch();
120
+ }, [doFetch]);
121
+ const visibleSessions = expanded ? sessions : sessions.slice(0, PREVIEW_COUNT);
122
+ const hasMore = sessions.length > PREVIEW_COUNT;
123
+ return (_jsxs(DropdownMenu, { modal: false, onOpenChange: handleOpenChange, children: [_jsx(TooltipProvider, { children: _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx(DropdownMenuTrigger, { asChild: true, children: _jsxs("button", { type: "button", "aria-label": "View sessions", "data-testid": "feature-node-sessions-button", className: cn('nodrag relative flex h-5 cursor-pointer items-center gap-0.5 rounded px-0.5 text-[10px] transition-colors', hasActiveSessions
124
+ ? 'text-emerald-600 hover:bg-emerald-50 hover:text-emerald-700'
125
+ : 'text-muted-foreground hover:text-foreground hover:bg-muted', className), onClick: stopNodeEvent, onPointerDown: stopNodeEvent, children: [_jsx(History, { className: "h-3 w-3 shrink-0" }), sessions.length > 0 ? (_jsx("span", { "data-testid": "feature-node-sessions-count", children: sessions.length })) : null, hasActiveSessions ? (_jsx("span", { className: "absolute -top-0.5 -right-0.5 h-1.5 w-1.5 rounded-full bg-emerald-500" })) : null] }) }) }), _jsx(TooltipContent, { side: "bottom", children: hasActiveSessions ? 'Sessions (active)' : 'Sessions' })] }) }), _jsxs(DropdownMenuContent, { align: "start", side: "bottom", className: "w-80", onClick: stopNodeEvent, onPointerDown: stopNodeEvent, children: [_jsxs(DropdownMenuLabel, { className: "flex items-center gap-1.5 text-xs", children: [_jsx(History, { className: "h-3 w-3" }), "Agent Sessions"] }), _jsx(DropdownMenuSeparator, {}), loading ? (_jsxs("div", { className: "text-muted-foreground flex items-center justify-center gap-2 py-4 text-xs", children: [_jsx(Loader2, { className: "h-3.5 w-3.5 animate-spin" }), "Loading..."] })) : sessions.length === 0 ? (_jsx("div", { className: "text-muted-foreground py-4 text-center text-xs", children: "No sessions found" })) : (_jsxs(_Fragment, { children: [visibleSessions.map((session) => (_jsx(SessionRow, { session: session, repositoryPath: repositoryPath, onCreateFromSession: onCreateFromSession }, session.id))), hasMore ? (_jsxs(DropdownMenuItem, { className: "text-muted-foreground justify-center gap-1 py-1.5 text-[10px]", onClick: (e) => {
126
+ e.preventDefault();
127
+ setExpanded((v) => !v);
128
+ }, children: [_jsx(ChevronDown, { className: cn('h-3 w-3 transition-transform', expanded && 'rotate-180') }), expanded ? 'Show less' : `Show ${sessions.length - PREVIEW_COUNT} more`] })) : null] }))] })] }));
129
+ }
130
+ // ── Session row component ─────────────────────────────────────────────
131
+ function SessionRow({ session, repositoryPath, onCreateFromSession, }) {
132
+ const active = isSessionActive(session);
133
+ const AgentIcon = getAgentTypeIcon(session.agentType);
134
+ return (_jsxs(DropdownMenuSub, { children: [_jsxs(DropdownMenuSubTrigger, { className: "flex items-start gap-2 py-2 pr-2", children: [_jsxs("div", { className: "relative mt-0.5 shrink-0", children: [_jsx(AgentIcon, { className: "h-4 w-4" }), active ? (_jsx("span", { className: "border-background absolute -right-0.5 -bottom-0.5 h-2 w-2 rounded-full border bg-emerald-500" })) : null] }), _jsxs("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [_jsx("span", { className: "truncate text-xs leading-tight", children: truncatePreview(session.preview) }), _jsxs("div", { className: "text-muted-foreground flex items-center gap-2 text-[10px] leading-tight", children: [_jsxs("span", { className: "flex items-center gap-0.5", children: [_jsx(MessageSquare, { className: "h-2.5 w-2.5" }), session.messageCount] }), session.firstMessageAt ? (_jsxs("span", { className: "flex items-center gap-0.5", children: [_jsx(Clock, { className: "h-2.5 w-2.5" }), new Date(session.firstMessageAt).toLocaleDateString()] })) : null, session.lastMessageAt ? (_jsx("span", { className: cn('ml-auto shrink-0', active ? 'font-medium text-emerald-600' : ''), children: formatRelativeTime(session.lastMessageAt) })) : null] })] })] }), _jsx(DropdownMenuPortal, { children: _jsxs(DropdownMenuSubContent, { onClick: stopNodeEvent, onPointerDown: stopNodeEvent, children: [_jsxs(DropdownMenuItem, { className: "gap-2 text-xs", onClick: () => void copyToClipboard(`claude --resume ${session.id} --project ${repositoryPath}`), children: [_jsx(Terminal, { className: "h-3.5 w-3.5" }), "Copy resume command"] }), _jsxs(DropdownMenuItem, { className: "gap-2 text-xs", onClick: () => void copyToClipboard(session.id), children: [_jsx(Copy, { className: "h-3.5 w-3.5" }), "Copy session ID"] }), _jsxs(DropdownMenuItem, { className: "gap-2 text-xs", onClick: () => {
135
+ const vscodeUri = `vscode://file${repositoryPath}`;
136
+ window.open(vscodeUri, '_blank');
137
+ }, children: [_jsx(ExternalLink, { className: "h-3.5 w-3.5" }), "Open in IDE"] }), onCreateFromSession && session.filePath ? (_jsxs(_Fragment, { children: [_jsx(DropdownMenuSeparator, {}), _jsxs(DropdownMenuItem, { className: "gap-2 text-xs font-medium text-violet-700 focus:bg-violet-50 focus:text-violet-800", onClick: () => onCreateFromSession(session, session.filePath), children: [_jsx(Sparkles, { className: "h-3.5 w-3.5 text-violet-500" }), "Create feature from session"] })] })) : null] }) })] }));
138
+ }
@@ -0,0 +1,9 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { FeatureSessionsDropdown } from './feature-sessions-dropdown.js';
3
+ declare const meta: Meta<typeof FeatureSessionsDropdown>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof FeatureSessionsDropdown>;
6
+ export declare const WithSessions: Story;
7
+ export declare const WithActiveSessions: Story;
8
+ export declare const Empty: Story;
9
+ //# sourceMappingURL=feature-sessions-dropdown.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feature-sessions-dropdown.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-node/feature-sessions-dropdown.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AA4DtE,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,uBAAuB,CAU9C,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAEtD,eAAO,MAAM,YAAY,EAAE,KAE1B,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,KAEhC,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAEnB,CAAC"}
@@ -0,0 +1,77 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { FeatureSessionsDropdown } from './feature-sessions-dropdown.js';
3
+ const mockSessions = [
4
+ {
5
+ id: 'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
6
+ preview: 'Add authentication middleware with JWT token validation',
7
+ messageCount: 24,
8
+ firstMessageAt: new Date(Date.now() - 3_600_000).toISOString(),
9
+ lastMessageAt: new Date(Date.now() - 1_800_000).toISOString(),
10
+ createdAt: new Date(Date.now() - 3_600_000).toISOString(),
11
+ projectPath: '~/workspaces/my-project',
12
+ },
13
+ {
14
+ id: 'b2c3d4e5-f6a7-8901-bcde-f12345678901',
15
+ preview: 'Fix failing tests in user service module and update mocks',
16
+ messageCount: 12,
17
+ firstMessageAt: new Date(Date.now() - 86_400_000).toISOString(),
18
+ lastMessageAt: new Date(Date.now() - 82_800_000).toISOString(),
19
+ createdAt: new Date(Date.now() - 86_400_000).toISOString(),
20
+ projectPath: '~/workspaces/my-project',
21
+ },
22
+ {
23
+ id: 'c3d4e5f6-a7b8-9012-cdef-123456789012',
24
+ preview: 'Refactor database layer to use repository pattern',
25
+ messageCount: 42,
26
+ firstMessageAt: new Date(Date.now() - 172_800_000).toISOString(),
27
+ lastMessageAt: new Date(Date.now() - 169_200_000).toISOString(),
28
+ createdAt: new Date(Date.now() - 172_800_000).toISOString(),
29
+ projectPath: '~/workspaces/my-project',
30
+ },
31
+ ];
32
+ const mockActiveSession = {
33
+ id: 'd4e5f6a7-b8c9-0123-defa-234567890123',
34
+ preview: 'Implementing real-time session tracking feature',
35
+ messageCount: 8,
36
+ firstMessageAt: new Date(Date.now() - 180_000).toISOString(),
37
+ lastMessageAt: new Date(Date.now() - 60_000).toISOString(), // 1 min ago — active
38
+ createdAt: new Date(Date.now() - 180_000).toISOString(),
39
+ projectPath: '~/workspaces/my-project',
40
+ };
41
+ function createFetchMock(sessions) {
42
+ return (Story) => {
43
+ const originalFetch = window.fetch;
44
+ window.fetch = (async (input, init) => {
45
+ const url = typeof input === 'string' ? input : input instanceof URL ? input.href : input.url;
46
+ if (url.includes('/api/sessions')) {
47
+ return new Response(JSON.stringify({ sessions }), {
48
+ status: 200,
49
+ headers: { 'Content-Type': 'application/json' },
50
+ });
51
+ }
52
+ return originalFetch(input, init);
53
+ });
54
+ return _jsx(Story, {});
55
+ };
56
+ }
57
+ const meta = {
58
+ title: 'Composed/FeatureSessionsDropdown',
59
+ component: FeatureSessionsDropdown,
60
+ tags: ['autodocs'],
61
+ parameters: {
62
+ layout: 'centered',
63
+ },
64
+ args: {
65
+ repositoryPath: '/home/user/workspaces/my-project',
66
+ },
67
+ };
68
+ export default meta;
69
+ export const WithSessions = {
70
+ decorators: [createFetchMock(mockSessions)],
71
+ };
72
+ export const WithActiveSessions = {
73
+ decorators: [createFetchMock([mockActiveSession, ...mockSessions])],
74
+ };
75
+ export const Empty = {
76
+ decorators: [createFetchMock([])],
77
+ };
@@ -65,15 +65,15 @@ export interface MergeReviewData {
65
65
  branch?: MergeReviewBranch;
66
66
  /** Warning message when diff summary could not be retrieved */
67
67
  warning?: string;
68
- /** Evidence captured during implementation */
68
+ /** Evidence captured during implementation (paths are absolute) */
69
69
  evidence?: MergeReviewEvidence[];
70
- /** Absolute path to the evidence directory (for serving files via API) */
71
- evidenceBasePath?: string;
72
70
  }
73
71
  /** Props for the merge review content component */
74
72
  export interface MergeReviewProps {
75
73
  /** Merge review data from the server action */
76
74
  data: MergeReviewData;
75
+ /** When true, hides the action bar and shows archival header text (post-merge history mode) */
76
+ readOnly?: boolean;
77
77
  /** Approve merge callback */
78
78
  onApprove: () => void;
79
79
  /** Reject merge callback — opens feedback dialog when provided; also used for inline text rejection */
@@ -1 +1 @@
1
- {"version":3,"file":"merge-review-config.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/merge-review/merge-review-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAE9E,yCAAyC;AACzC,MAAM,WAAW,sBAAsB;IACrC,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,gCAAgC;AAChC,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,OAAO,GAAG,SAAS,GAAG,SAAS,CAAC;IACtC,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,gCAAgC;AAChC,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,mBAAmB,EAAE,CAAC;CAC9B;AAED,0DAA0D;AAC1D,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,CAAC;IACrD,KAAK,EAAE,mBAAmB,EAAE,CAAC;CAC9B;AAED,4CAA4C;AAC5C,MAAM,WAAW,aAAa;I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EAAE,WAAW,EAAE,gBAAgB,EAAE,KAAK,IAAI,CAAC;IACvE,8CAA8C;IAC9C,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,8CAA8C;IAC9C,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,oDAAoD;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sCAAsC;IACtC,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7C;AAED,wDAAwD;AACxD,MAAM,WAAW,sBAAuB,SAAQ,IAAI,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAC5E,6CAA6C;IAC7C,IAAI,EAAE,eAAe,GAAG,IAAI,CAAC;IAC7B,iCAAiC;IACjC,IAAI,EAAE,OAAO,CAAC;IACd,wCAAwC;IACxC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,0CAA0C;IAC1C,WAAW,EAAE,MAAM,CAAC;IACpB,sCAAsC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,8CAA8C;IAC9C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gEAAgE;IAChE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gDAAgD;IAChD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,yEAAyE;IACzE,QAAQ,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,gDAAgD;IAChD,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB"}
1
+ {"version":3,"file":"merge-review-config.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/merge-review/merge-review-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAE9E,yCAAyC;AACzC,MAAM,WAAW,sBAAsB;IACrC,YAAY,EAAE,MAAM,CAAC;I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AO,EAAE,MAAM,IAAI,CAAC;IACpB,0CAA0C;IAC1C,WAAW,EAAE,MAAM,CAAC;IACpB,sCAAsC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,8CAA8C;IAC9C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gEAAgE;IAChE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gDAAgD;IAChD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,yEAAyE;IACzE,QAAQ,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,gDAAgD;IAChD,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB"}
@@ -1,3 +1,3 @@
1
1
  import type { MergeReviewProps } from './merge-review-config.js';
2
- export declare function MergeReview({ data, onApprove, onReject, isProcessing, isRejecting, chatInput, onChatInputChange, }: MergeReviewProps): import("react/jsx-runtime").JSX.Element;
2
+ export declare function MergeReview({ data, readOnly, onApprove, onReject, isProcessing, isRejecting, chatInput, onChatInputChange, }: MergeReviewProps): import("react/jsx-runtime").JSX.Element;
3
3
  //# sourceMappingURL=merge-review.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"merge-review.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/merge-review/merge-review.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,gBAAgB,EAAuB,MAAM,uBAAuB,CAAC;AA0KnF,wBAAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,SAAS,EACT,QAAQ,EACR,YAAoB,EACpB,WAAmB,EACnB,SAAS,EACT,iBAAiB,GAClB,EAAE,gBAAgB,2CA2JlB"}
1
+ {"version":3,"file":"merge-review.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/merge-review/merge-review.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,gBAAgB,EAAuB,MAAM,uBAAuB,CAAC;AAuJnF,wBAAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,QAAgB,EAChB,SAAS,EACT,QAAQ,EACR,YAAoB,EACpB,WAAmB,EACnB,SAAS,EACT,iBAAiB,GAClB,EAAE,gBAAgB,2CA+JlB"}