@shepai/cli 1.121.0 → 1.122.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 (265) hide show
  1. package/apis/json-schema/PhaseTiming.yaml +17 -0
  2. package/dist/packages/core/src/application/ports/output/agents/agent-executor.interface.d.ts +19 -5
  3. package/dist/packages/core/src/application/ports/output/agents/agent-executor.interface.d.ts.map +1 -1
  4. package/dist/packages/core/src/application/ports/output/agents/phase-timing-repository.interface.d.ts +1 -1
  5. package/dist/packages/core/src/application/ports/output/agents/phase-timing-repository.interface.d.ts.map +1 -1
  6. package/dist/packages/core/src/application/use-cases/features/resume-feature.use-case.d.ts +3 -1
  7. package/dist/packages/core/src/application/use-cases/features/resume-feature.use-case.d.ts.map +1 -1
  8. package/dist/packages/core/src/application/use-cases/features/resume-feature.use-case.js +4 -2
  9. package/dist/packages/core/src/domain/generated/output.d.ts +22 -0
  10. package/dist/packages/core/src/domain/generated/output.d.ts.map +1 -1
  11. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/039-add-phase-timing-extended-stats.d.ts +11 -0
  12. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/039-add-phase-timing-extended-stats.d.ts.map +1 -0
  13. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/039-add-phase-timing-extended-stats.js +25 -0
  14. package/dist/packages/core/src/infrastructure/repositories/sqlite-phase-timing.repository.d.ts +1 -1
  15. package/dist/packages/core/src/infrastructure/repositories/sqlite-phase-timing.repository.d.ts.map +1 -1
  16. package/dist/packages/core/src/infrastructure/repositories/sqlite-phase-timing.repository.js +42 -2
  17. package/dist/packages/core/src/infrastructure/services/agents/common/executors/claude-code-executor.service.d.ts +5 -0
  18. package/dist/packages/core/src/infrastructure/services/agents/common/executors/claude-code-executor.service.d.ts.map +1 -1
  19. package/dist/packages/core/src/infrastructure/services/agents/common/executors/claude-code-executor.service.js +38 -13
  20. package/dist/packages/core/src/infrastructure/services/agents/common/executors/dev-executor.service.d.ts.map +1 -1
  21. package/dist/packages/core/src/infrastructure/services/agents/common/executors/dev-executor.service.js +23 -2
  22. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/evidence-output-parser.d.ts +21 -0
  23. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/evidence-output-parser.d.ts.map +1 -1
  24. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/evidence-output-parser.js +71 -0
  25. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/evidence.node.d.ts.map +1 -1
  26. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/evidence.node.js +11 -1
  27. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/fast-implement.node.d.ts.map +1 -1
  28. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/fast-implement.node.js +34 -1
  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 +12 -0
  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 +5 -0
  33. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/evidence-prompts.d.ts.map +1 -1
  34. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/evidence-prompts.js +18 -6
  35. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/fast-implement.prompt.d.ts.map +1 -1
  36. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/fast-implement.prompt.js +4 -1
  37. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/phase-timing-context.d.ts +5 -0
  38. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/phase-timing-context.d.ts.map +1 -1
  39. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/phase-timing-context.js +9 -0
  40. package/dist/packages/core/src/infrastructure/services/git/git-pr.service.d.ts +1 -0
  41. package/dist/packages/core/src/infrastructure/services/git/git-pr.service.d.ts.map +1 -1
  42. package/dist/packages/core/src/infrastructure/services/git/git-pr.service.js +20 -1
  43. package/dist/src/presentation/tui/prompts/prd-review-question.prompt.d.ts +1 -1
  44. package/dist/src/presentation/tui/prompts/prd-review-question.prompt.d.ts.map +1 -1
  45. package/dist/src/presentation/tui/prompts/prd-review-question.prompt.js +5 -2
  46. package/dist/src/presentation/tui/wizards/prd-review.wizard.d.ts.map +1 -1
  47. package/dist/src/presentation/tui/wizards/prd-review.wizard.js +4 -2
  48. package/dist/src/presentation/web/app/(dashboard)/get-graph-data.d.ts.map +1 -1
  49. package/dist/src/presentation/web/app/(dashboard)/get-graph-data.js +2 -43
  50. package/dist/src/presentation/web/app/actions/approve-feature.d.ts.map +1 -1
  51. package/dist/src/presentation/web/app/actions/approve-feature.js +9 -0
  52. package/dist/src/presentation/web/app/actions/get-feature-phase-timings.d.ts +5 -0
  53. package/dist/src/presentation/web/app/actions/get-feature-phase-timings.d.ts.map +1 -1
  54. package/dist/src/presentation/web/app/actions/get-feature-phase-timings.js +5 -0
  55. package/dist/src/presentation/web/app/actions/reject-feature.d.ts.map +1 -1
  56. package/dist/src/presentation/web/app/actions/reject-feature.js +9 -0
  57. package/dist/src/presentation/web/app/actions/stop-feature.d.ts +5 -0
  58. package/dist/src/presentation/web/app/actions/stop-feature.d.ts.map +1 -0
  59. package/dist/src/presentation/web/app/actions/stop-feature.js +30 -0
  60. package/dist/src/presentation/web/app/api/npm-version/route.d.ts.map +1 -1
  61. package/dist/src/presentation/web/app/api/npm-version/route.js +9 -1
  62. package/dist/src/presentation/web/app/api/sessions/route.d.ts.map +1 -1
  63. package/dist/src/presentation/web/app/api/sessions/route.js +43 -10
  64. package/dist/src/presentation/web/components/common/feature-drawer-tabs/activity-tab.d.ts.map +1 -1
  65. package/dist/src/presentation/web/components/common/feature-drawer-tabs/activity-tab.js +15 -6
  66. package/dist/src/presentation/web/components/common/feature-drawer-tabs/activity-tab.stories.d.ts.map +1 -1
  67. package/dist/src/presentation/web/components/common/feature-drawer-tabs/activity-tab.stories.js +35 -0
  68. package/dist/src/presentation/web/components/common/feature-drawer-tabs/overview-tab.d.ts.map +1 -1
  69. package/dist/src/presentation/web/components/common/feature-drawer-tabs/overview-tab.js +2 -2
  70. package/dist/src/presentation/web/components/common/feature-drawer-tabs/overview-tab.stories.d.ts +2 -0
  71. package/dist/src/presentation/web/components/common/feature-drawer-tabs/overview-tab.stories.d.ts.map +1 -1
  72. package/dist/src/presentation/web/components/common/feature-drawer-tabs/overview-tab.stories.js +4 -0
  73. package/dist/src/presentation/web/components/common/feature-node/feature-node-state-config.d.ts +1 -0
  74. package/dist/src/presentation/web/components/common/feature-node/feature-node-state-config.d.ts.map +1 -1
  75. package/dist/src/presentation/web/components/common/prd-questionnaire/prd-questionnaire.js +1 -1
  76. package/dist/src/presentation/web/components/features/control-center/control-center-inner.d.ts.map +1 -1
  77. package/dist/src/presentation/web/components/features/control-center/control-center-inner.js +3 -1
  78. package/dist/src/presentation/web/components/features/control-center/use-control-center-state.d.ts +1 -0
  79. package/dist/src/presentation/web/components/features/control-center/use-control-center-state.d.ts.map +1 -1
  80. package/dist/src/presentation/web/components/features/control-center/use-control-center-state.js +18 -0
  81. package/dist/src/presentation/web/lib/derive-graph.d.ts +2 -0
  82. package/dist/src/presentation/web/lib/derive-graph.d.ts.map +1 -1
  83. package/dist/src/presentation/web/lib/derive-graph.js +5 -0
  84. package/dist/tsconfig.build.tsbuildinfo +1 -1
  85. package/package.json +3 -5
  86. package/web/.next/BUILD_ID +1 -1
  87. package/web/.next/build-manifest.json +2 -2
  88. package/web/.next/fallback-build-manifest.json +2 -2
  89. package/web/.next/prerender-manifest.json +3 -3
  90. package/web/.next/required-server-files.js +2 -2
  91. package/web/.next/required-server-files.json +2 -2
  92. package/web/.next/server/app/(dashboard)/@drawer/create/page/server-reference-manifest.json +57 -42
  93. package/web/.next/server/app/(dashboard)/@drawer/create/page.js +1 -1
  94. package/web/.next/server/app/(dashboard)/@drawer/create/page.js.nft.json +1 -1
  95. package/web/.next/server/app/(dashboard)/@drawer/create/page_client-reference-manifest.js +1 -1
  96. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page/server-reference-manifest.json +69 -54
  97. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js +1 -1
  98. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js.nft.json +1 -1
  99. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
  100. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/server-reference-manifest.json +69 -54
  101. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js +1 -1
  102. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js.nft.json +1 -1
  103. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page_client-reference-manifest.js +1 -1
  104. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/server-reference-manifest.json +53 -38
  105. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js +1 -1
  106. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js.nft.json +1 -1
  107. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  108. package/web/.next/server/app/(dashboard)/create/page/server-reference-manifest.json +57 -42
  109. package/web/.next/server/app/(dashboard)/create/page.js +1 -1
  110. package/web/.next/server/app/(dashboard)/create/page.js.nft.json +1 -1
  111. package/web/.next/server/app/(dashboard)/create/page_client-reference-manifest.js +1 -1
  112. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page/server-reference-manifest.json +69 -54
  113. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js +1 -1
  114. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js.nft.json +1 -1
  115. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
  116. package/web/.next/server/app/(dashboard)/feature/[featureId]/page/server-reference-manifest.json +69 -54
  117. package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js +1 -1
  118. package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js.nft.json +1 -1
  119. package/web/.next/server/app/(dashboard)/feature/[featureId]/page_client-reference-manifest.js +1 -1
  120. package/web/.next/server/app/(dashboard)/page/server-reference-manifest.json +53 -38
  121. package/web/.next/server/app/(dashboard)/page.js +1 -1
  122. package/web/.next/server/app/(dashboard)/page.js.nft.json +1 -1
  123. package/web/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
  124. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/server-reference-manifest.json +53 -38
  125. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js +1 -1
  126. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js.nft.json +1 -1
  127. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  128. package/web/.next/server/app/_global-error.html +2 -2
  129. package/web/.next/server/app/_global-error.rsc +1 -1
  130. package/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  131. package/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  132. package/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  133. package/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  134. package/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  135. package/web/.next/server/app/_not-found/page/server-reference-manifest.json +1 -1
  136. package/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  137. package/web/.next/server/app/api/attachments/preview/route.js.nft.json +1 -1
  138. package/web/.next/server/app/api/evidence/route.js.nft.json +1 -1
  139. package/web/.next/server/app/api/graph-data/route.js.nft.json +1 -1
  140. package/web/.next/server/app/api/sessions/route.js +1 -1
  141. package/web/.next/server/app/api/sessions/route.js.nft.json +1 -1
  142. package/web/.next/server/app/settings/page/server-reference-manifest.json +6 -6
  143. package/web/.next/server/app/settings/page.js.nft.json +1 -1
  144. package/web/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  145. package/web/.next/server/app/skills/page/server-reference-manifest.json +6 -6
  146. package/web/.next/server/app/skills/page.js.nft.json +1 -1
  147. package/web/.next/server/app/skills/page_client-reference-manifest.js +1 -1
  148. package/web/.next/server/app/tools/page/server-reference-manifest.json +6 -6
  149. package/web/.next/server/app/tools/page.js.nft.json +1 -1
  150. package/web/.next/server/app/tools/page_client-reference-manifest.js +1 -1
  151. package/web/.next/server/app/version/page/server-reference-manifest.json +1 -1
  152. package/web/.next/server/app/version/page_client-reference-manifest.js +1 -1
  153. package/web/.next/server/chunks/403f9_next_dist_esm_build_templates_app-route_370c43b1.js +1 -1
  154. package/web/.next/server/chunks/403f9_next_dist_esm_build_templates_app-route_370c43b1.js.map +1 -1
  155. package/web/.next/server/chunks/[externals]_node:fs_ddf6f167._.js +3 -0
  156. package/web/.next/server/chunks/[externals]_node:fs_ddf6f167._.js.map +1 -0
  157. package/web/.next/server/chunks/[root-of-the-server]__3b72e8b0._.js +1 -1
  158. package/web/.next/server/chunks/[root-of-the-server]__3b72e8b0._.js.map +1 -1
  159. package/web/.next/server/chunks/[root-of-the-server]__42b7ab55._.js +1 -1
  160. package/web/.next/server/chunks/[root-of-the-server]__42b7ab55._.js.map +1 -1
  161. package/web/.next/server/chunks/[root-of-the-server]__a402b567._.js +1 -1
  162. package/web/.next/server/chunks/[root-of-the-server]__a62bd945._.js +3 -0
  163. package/web/.next/server/chunks/[root-of-the-server]__a62bd945._.js.map +1 -0
  164. package/web/.next/server/chunks/[root-of-the-server]__cd67a84c._.js +1 -1
  165. package/web/.next/server/chunks/[root-of-the-server]__cd67a84c._.js.map +1 -1
  166. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js +1 -1
  167. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js.map +1 -1
  168. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_f30d0343.js +3 -0
  169. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_f30d0343.js.map +1 -0
  170. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_9f1775bb.js +3 -0
  171. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_9f1775bb.js.map +1 -0
  172. package/web/.next/server/chunks/ssr/[root-of-the-server]__06fef644._.js +1 -1
  173. package/web/.next/server/chunks/ssr/[root-of-the-server]__2698e9f4._.js +3 -0
  174. package/web/.next/server/chunks/ssr/[root-of-the-server]__2698e9f4._.js.map +1 -0
  175. package/web/.next/server/chunks/ssr/[root-of-the-server]__545792ab._.js +1 -1
  176. package/web/.next/server/chunks/ssr/[root-of-the-server]__545792ab._.js.map +1 -1
  177. package/web/.next/server/chunks/ssr/[root-of-the-server]__6b17a22d._.js +1 -1
  178. package/web/.next/server/chunks/ssr/[root-of-the-server]__6b17a22d._.js.map +1 -1
  179. package/web/.next/server/chunks/ssr/[root-of-the-server]__6bb00d90._.js +2 -2
  180. package/web/.next/server/chunks/ssr/[root-of-the-server]__6bb00d90._.js.map +1 -1
  181. package/web/.next/server/chunks/ssr/[root-of-the-server]__804c006d._.js +1 -1
  182. package/web/.next/server/chunks/ssr/[root-of-the-server]__804c006d._.js.map +1 -1
  183. package/web/.next/server/chunks/ssr/[root-of-the-server]__8c553503._.js +2 -2
  184. package/web/.next/server/chunks/ssr/[root-of-the-server]__8e3bf5d7._.js +3 -0
  185. package/web/.next/server/chunks/ssr/[root-of-the-server]__8e3bf5d7._.js.map +1 -0
  186. package/web/.next/server/chunks/ssr/[root-of-the-server]__a022445f._.js +2 -2
  187. package/web/.next/server/chunks/ssr/[root-of-the-server]__a022445f._.js.map +1 -1
  188. package/web/.next/server/chunks/ssr/[root-of-the-server]__a7de2711._.js +2 -2
  189. package/web/.next/server/chunks/ssr/[root-of-the-server]__a7de2711._.js.map +1 -1
  190. package/web/.next/server/chunks/ssr/[root-of-the-server]__b724df9e._.js +1 -1
  191. package/web/.next/server/chunks/ssr/[root-of-the-server]__b724df9e._.js.map +1 -1
  192. package/web/.next/server/chunks/ssr/[root-of-the-server]__c07f9f79._.js +3 -0
  193. package/web/.next/server/chunks/ssr/[root-of-the-server]__c07f9f79._.js.map +1 -0
  194. package/web/.next/server/chunks/ssr/[root-of-the-server]__c605a375._.js +3 -0
  195. package/web/.next/server/chunks/ssr/[root-of-the-server]__c605a375._.js.map +1 -0
  196. package/web/.next/server/chunks/ssr/_0dc2cfd3._.js +1 -1
  197. package/web/.next/server/chunks/ssr/_0dc2cfd3._.js.map +1 -1
  198. package/web/.next/server/chunks/ssr/_135edb9c._.js +1 -1
  199. package/web/.next/server/chunks/ssr/_135edb9c._.js.map +1 -1
  200. package/web/.next/server/chunks/ssr/_1bb131c4._.js.map +1 -1
  201. package/web/.next/server/chunks/ssr/_2f6f48b8._.js +1 -1
  202. package/web/.next/server/chunks/ssr/_2f6f48b8._.js.map +1 -1
  203. package/web/.next/server/chunks/ssr/{_0314651a._.js → _6e403a1e._.js} +2 -2
  204. package/web/.next/server/chunks/ssr/{_0314651a._.js.map → _6e403a1e._.js.map} +1 -1
  205. package/web/.next/server/chunks/ssr/{_68cc9b82._.js → _9f1ab4ee._.js} +2 -2
  206. package/web/.next/server/chunks/ssr/{_68cc9b82._.js.map → _9f1ab4ee._.js.map} +1 -1
  207. package/web/.next/server/chunks/ssr/_a37f5f18._.js +1 -1
  208. package/web/.next/server/chunks/ssr/_cc77a143._.js +1 -1
  209. package/web/.next/server/chunks/ssr/_cc77a143._.js.map +1 -1
  210. package/web/.next/server/chunks/ssr/_fffd4212._.js +3 -0
  211. package/web/.next/server/chunks/ssr/{_73a34cb2._.js.map → _fffd4212._.js.map} +1 -1
  212. package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js +1 -1
  213. package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js.map +1 -1
  214. package/web/.next/server/chunks/ssr/{src_presentation_web_0835b28e._.js → src_presentation_web_5f039db1._.js} +3 -3
  215. package/web/.next/server/chunks/ssr/{src_presentation_web_0835b28e._.js.map → src_presentation_web_5f039db1._.js.map} +1 -1
  216. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_2a52b697.js +3 -0
  217. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_2a52b697.js.map +1 -0
  218. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_1fa8042e.js +1 -1
  219. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_1fa8042e.js.map +1 -1
  220. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_24684200.js +1 -1
  221. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_24684200.js.map +1 -1
  222. package/web/.next/server/chunks/ssr/{src_presentation_web_e8034a29._.js → src_presentation_web_c4337169._.js} +3 -3
  223. package/web/.next/server/chunks/ssr/{src_presentation_web_e8034a29._.js.map → src_presentation_web_c4337169._.js.map} +1 -1
  224. package/web/.next/server/chunks/ssr/src_presentation_web_ca99d62d._.js +1 -1
  225. package/web/.next/server/chunks/ssr/src_presentation_web_ca99d62d._.js.map +1 -1
  226. package/web/.next/server/chunks/ssr/src_presentation_web_components_bf50c527._.js +1 -1
  227. package/web/.next/server/chunks/ssr/src_presentation_web_components_de814675._.js +1 -1
  228. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js +1 -1
  229. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js.map +1 -1
  230. package/web/.next/server/pages/500.html +2 -2
  231. package/web/.next/server/server-reference-manifest.js +1 -1
  232. package/web/.next/server/server-reference-manifest.json +311 -240
  233. package/web/.next/static/chunks/0dfc3b1cff4bdcc2.js +2 -0
  234. package/web/.next/static/chunks/{f27e3d3959bf91e6.js → 1c206da59596f056.js} +1 -1
  235. package/web/.next/static/chunks/2429cf8757ddad34.js +1 -0
  236. package/web/.next/static/chunks/{f22c2cdecc7a523b.js → 39dc15636654a1e3.js} +1 -1
  237. package/web/.next/static/chunks/{4c22a50608db401a.js → 3e9320301a0cac8b.js} +1 -1
  238. package/web/.next/static/chunks/447e720f6cf54767.js +1 -0
  239. package/web/.next/static/chunks/{0cc5f5ca1696267a.js → 53e9eda219a7f61c.js} +1 -1
  240. package/web/.next/static/chunks/{5186e2254580afd1.js → 7bc5806d9f82cc79.js} +1 -1
  241. package/web/.next/static/chunks/{4b58ac6e7721f9ea.js → 9076710a2df38d14.js} +1 -1
  242. package/web/.next/static/chunks/{8ded2620c2272c27.js → 9c2f294bf748b4ba.js} +2 -2
  243. package/web/.next/server/chunks/[root-of-the-server]__0fe7788d._.js +0 -3
  244. package/web/.next/server/chunks/[root-of-the-server]__0fe7788d._.js.map +0 -1
  245. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_ed372306.js +0 -3
  246. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_ed372306.js.map +0 -1
  247. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_32e26434.js +0 -3
  248. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_32e26434.js.map +0 -1
  249. package/web/.next/server/chunks/ssr/[root-of-the-server]__3b14e5a0._.js +0 -3
  250. package/web/.next/server/chunks/ssr/[root-of-the-server]__3b14e5a0._.js.map +0 -1
  251. package/web/.next/server/chunks/ssr/[root-of-the-server]__8b59c03e._.js +0 -3
  252. package/web/.next/server/chunks/ssr/[root-of-the-server]__8b59c03e._.js.map +0 -1
  253. package/web/.next/server/chunks/ssr/[root-of-the-server]__994ad9fe._.js +0 -3
  254. package/web/.next/server/chunks/ssr/[root-of-the-server]__994ad9fe._.js.map +0 -1
  255. package/web/.next/server/chunks/ssr/[root-of-the-server]__c9c1cfee._.js +0 -3
  256. package/web/.next/server/chunks/ssr/[root-of-the-server]__c9c1cfee._.js.map +0 -1
  257. package/web/.next/server/chunks/ssr/_73a34cb2._.js +0 -3
  258. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_e99d78dd.js +0 -3
  259. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_e99d78dd.js.map +0 -1
  260. package/web/.next/static/chunks/2132807f96110232.js +0 -1
  261. package/web/.next/static/chunks/9fdfff0a8c69ecd2.js +0 -2
  262. package/web/.next/static/chunks/c6a68bd98c2c0446.js +0 -1
  263. /package/web/.next/static/{Fg0DqzWA5hDmVmj5X9iq- → t8J3jMT2l7HfCuusAPC-b}/_buildManifest.js +0 -0
  264. /package/web/.next/static/{Fg0DqzWA5hDmVmj5X9iq- → t8J3jMT2l7HfCuusAPC-b}/_clientMiddlewareManifest.json +0 -0
  265. /package/web/.next/static/{Fg0DqzWA5hDmVmj5X9iq- → t8J3jMT2l7HfCuusAPC-b}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"get-feature-phase-timings.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/app/actions/get-feature-phase-timings.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;CACxB;AAED,KAAK,qBAAqB,GACtB;IAAE,OAAO,EAAE,eAAe,EAAE,CAAC;IAAC,iBAAiB,EAAE,qBAAqB,EAAE,CAAA;CAAE,GAC1E;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAEtB,wBAAsB,sBAAsB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC,CA6B9F"}
1
+ {"version":3,"file":"get-feature-phase-timings.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/app/actions/get-feature-phase-timings.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;CACxB;AAED,KAAK,qBAAqB,GACtB;IAAE,OAAO,EAAE,eAAe,EAAE,CAAC;IAAC,iBAAiB,EAAE,qBAAqB,EAAE,CAAA;CAAE,GAC1E;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAEtB,wBAAsB,sBAAsB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAoC9F"}
@@ -17,6 +17,11 @@ export async function getFeaturePhaseTimings(featureId) {
17
17
  approvalWaitMs: t.approvalWaitMs != null ? Number(t.approvalWaitMs) : undefined,
18
18
  inputTokens: t.inputTokens != null ? Number(t.inputTokens) : undefined,
19
19
  outputTokens: t.outputTokens != null ? Number(t.outputTokens) : undefined,
20
+ cacheCreationInputTokens: t.cacheCreationInputTokens != null ? Number(t.cacheCreationInputTokens) : undefined,
21
+ cacheReadInputTokens: t.cacheReadInputTokens != null ? Number(t.cacheReadInputTokens) : undefined,
22
+ costUsd: t.costUsd != null ? Number(t.costUsd) : undefined,
23
+ numTurns: t.numTurns ?? undefined,
24
+ durationApiMs: t.durationApiMs != null ? Number(t.durationApiMs) : undefined,
20
25
  }));
21
26
  // Read rejection feedback from spec.yaml
22
27
  const rejectionFeedback = await readRejectionFeedback(featureId);
@@ -1 +1 @@
1
- {"version":3,"file":"reject-feature.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/app/actions/reject-feature.ts"],"names":[],"mappings":"AAMA,wBAAsB,aAAa,CACjC,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,WAAW,CAAC,EAAE,MAAM,EAAE,GACrB,OAAO,CAAC;IACT,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC,CAqCD"}
1
+ {"version":3,"file":"reject-feature.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/app/actions/reject-feature.ts"],"names":[],"mappings":"AAWA,wBAAsB,aAAa,CACjC,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,WAAW,CAAC,EAAE,MAAM,EAAE,GACrB,OAAO,CAAC;IACT,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC,CA8CD"}
@@ -1,5 +1,7 @@
1
1
  'use server';
2
2
  import { resolve } from '../../lib/server-container.js';
3
+ import { AgentRunStatus } from '../../../../../packages/core/src/domain/generated/output.js';
4
+ const ERROR_STATUSES = new Set([AgentRunStatus.failed, AgentRunStatus.interrupted]);
3
5
  export async function rejectFeature(featureId, feedback, attachments) {
4
6
  if (!featureId.trim()) {
5
7
  return { rejected: false, error: 'Feature id is required' };
@@ -16,6 +18,13 @@ export async function rejectFeature(featureId, feedback, attachments) {
16
18
  if (!feature.agentRunId) {
17
19
  return { rejected: false, error: 'Feature has no agent run' };
18
20
  }
21
+ const runRepo = resolve('IAgentRunRepository');
22
+ const run = await runRepo.findById(feature.agentRunId);
23
+ if (run && ERROR_STATUSES.has(run.status)) {
24
+ const resumeUseCase = resolve('ResumeFeatureUseCase');
25
+ await resumeUseCase.execute(featureId, { promptPrefix: feedback });
26
+ return { rejected: true, iteration: 1 };
27
+ }
19
28
  const rejectUseCase = resolve('RejectAgentRunUseCase');
20
29
  const result = await rejectUseCase.execute(feature.agentRunId, feedback, attachments);
21
30
  if (!result.rejected) {
@@ -0,0 +1,5 @@
1
+ export declare function stopFeature(featureId: string): Promise<{
2
+ stopped: boolean;
3
+ error?: string;
4
+ }>;
5
+ //# sourceMappingURL=stop-feature.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stop-feature.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/app/actions/stop-feature.ts"],"names":[],"mappings":"AAMA,wBAAsB,WAAW,CAC/B,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAiC/C"}
@@ -0,0 +1,30 @@
1
+ 'use server';
2
+ import { resolve } from '../../lib/server-container.js';
3
+ export async function stopFeature(featureId) {
4
+ if (!featureId.trim()) {
5
+ return { stopped: false, error: 'Feature id is required' };
6
+ }
7
+ try {
8
+ // Find the active agent run for this feature
9
+ const runRepo = resolve('IAgentRunRepository');
10
+ const allRuns = await runRepo.list();
11
+ const activeRun = allRuns.find((r) => r.featureId === featureId &&
12
+ r.status !== 'completed' &&
13
+ r.status !== 'failed' &&
14
+ r.status !== 'interrupted' &&
15
+ r.status !== 'cancelled');
16
+ if (!activeRun) {
17
+ return { stopped: false, error: 'No active agent run found for this feature' };
18
+ }
19
+ const useCase = resolve('StopAgentRunUseCase');
20
+ const result = await useCase.execute(activeRun.id);
21
+ if (!result.stopped) {
22
+ return { stopped: false, error: result.reason };
23
+ }
24
+ return { stopped: true };
25
+ }
26
+ catch (error) {
27
+ const message = error instanceof Error ? error.message : 'Failed to stop agent';
28
+ return { stopped: false, error: message };
29
+ }
30
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/app/api/npm-version/route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,wBAAsB,GAAG,IAAI,OAAO,CAAC,YAAY,CAAC,CAejD"}
1
+ {"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/app/api/npm-version/route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAK3C,wBAAsB,GAAG,IAAI,OAAO,CAAC,YAAY,CAAC,CAsBjD"}
@@ -1,5 +1,11 @@
1
1
  import { NextResponse } from 'next/server';
2
+ const CACHE_TTL_MS = 5 * 60_000; // 5 minutes
3
+ let cachedVersion = null;
2
4
  export async function GET() {
5
+ // Return cached value if fresh
6
+ if (cachedVersion && Date.now() - cachedVersion.fetchedAt < CACHE_TTL_MS) {
7
+ return NextResponse.json({ latest: cachedVersion.latest });
8
+ }
3
9
  const packageName = '@shepai/cli';
4
10
  try {
5
11
  const res = await fetch(`https://registry.npmjs.org/${packageName}/latest`, {
@@ -9,7 +15,9 @@ export async function GET() {
9
15
  return NextResponse.json({ error: `npm registry returned ${res.status}` }, { status: 502 });
10
16
  }
11
17
  const data = (await res.json());
12
- return NextResponse.json({ latest: data.version ?? null });
18
+ const latest = data.version ?? null;
19
+ cachedVersion = { latest, fetchedAt: Date.now() };
20
+ return NextResponse.json({ latest });
13
21
  }
14
22
  catch (error) {
15
23
  const message = error instanceof Error ? error.message : 'Failed to check npm version';
@@ -1 +1 @@
1
- {"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/app/api/sessions/route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAK3C,eAAO,MAAM,OAAO,kBAAkB,CAAC;AA4QvC;;;;;GAKG;AACH,wBAAsB,GAAG,CAAC,OAAO,EAAE,OAAO;;;;YA/QpC,MAAM;mBACC,MAAM;iBACR,MAAM,GAAG,IAAI;sBACR,MAAM;wBACJ,MAAM,GAAG,IAAI;uBACd,MAAM,GAAG,IAAI;mBACjB,MAAM,GAAG,IAAI;qBACX,MAAM;kBACT,MAAM;;IAoSjB"}
1
+ {"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/app/api/sessions/route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAK3C,eAAO,MAAM,OAAO,kBAAkB,CAAC;AAgTvC;;;;;GAKG;AACH,wBAAsB,GAAG,CAAC,OAAO,EAAE,OAAO;;;;YAnTpC,MAAM;mBACC,MAAM;iBACR,MAAM,GAAG,IAAI;sBACR,MAAM;wBACJ,MAAM,GAAG,IAAI;uBACd,MAAM,GAAG,IAAI;mBACjB,MAAM,GAAG,IAAI;qBACX,MAAM;kBACT,MAAM;;IAwUjB"}
@@ -1,7 +1,7 @@
1
1
  import { NextResponse } from 'next/server';
2
2
  import { homedir } from 'node:os';
3
3
  import { join } from 'node:path';
4
- import { readdir, stat, readFile } from 'node:fs/promises';
4
+ import { readdir, stat } from 'node:fs/promises';
5
5
  export const dynamic = 'force-dynamic';
6
6
  // ── Path encoding helpers ─────────────────────────────────────────────
7
7
  /**
@@ -49,14 +49,32 @@ async function scanClaudeSessions(repositoryPath, limit) {
49
49
  .map((r) => r.value)
50
50
  .filter((s) => s !== null);
51
51
  }
52
+ /**
53
+ * Read the first N bytes of a file to extract preview and timestamps
54
+ * without loading the entire (potentially multi-MB) session file.
55
+ */
56
+ const PREVIEW_READ_BYTES = 8_192; // 8KB is enough for first few messages
52
57
  async function parseClaudeSession(filePath, fileName, mtime, repositoryPath) {
53
- const content = await readFile(filePath, 'utf-8');
54
- const lines = content.split('\n').filter((l) => l.trim());
58
+ const { createReadStream } = await import('node:fs');
55
59
  const id = fileName.replace('.jsonl', '');
60
+ // Read only the first chunk to extract preview and first timestamp
56
61
  let preview = null;
57
- let messageCount = 0;
58
62
  let firstTimestamp = null;
59
- let lastTimestamp = null;
63
+ let messageCount = 0;
64
+ const head = await new Promise((resolve) => {
65
+ const chunks = [];
66
+ let size = 0;
67
+ const stream = createReadStream(filePath, { end: PREVIEW_READ_BYTES - 1 });
68
+ stream.on('data', (chunk) => {
69
+ chunks.push(chunk);
70
+ size += chunk.length;
71
+ });
72
+ stream.on('end', () => resolve(Buffer.concat(chunks, size).toString('utf-8')));
73
+ stream.on('error', () => resolve(''));
74
+ });
75
+ if (!head)
76
+ return null;
77
+ const lines = head.split('\n').filter((l) => l.trim());
60
78
  for (const line of lines) {
61
79
  try {
62
80
  const entry = JSON.parse(line);
@@ -66,7 +84,6 @@ async function parseClaudeSession(filePath, fileName, mtime, repositoryPath) {
66
84
  messageCount++;
67
85
  if (entry.timestamp) {
68
86
  firstTimestamp ??= entry.timestamp;
69
- lastTimestamp = entry.timestamp;
70
87
  }
71
88
  if (role === 'user' && preview === null) {
72
89
  preview = extractText(entry.message?.content);
@@ -80,14 +97,16 @@ async function parseClaudeSession(filePath, fileName, mtime, repositoryPath) {
80
97
  }
81
98
  if (messageCount === 0)
82
99
  return null;
100
+ // Use mtime as lastMessageAt — avoids reading entire file for last line
101
+ const mtimeIso = new Date(mtime).toISOString();
83
102
  return {
84
103
  id,
85
104
  agentType: 'claude-code',
86
105
  preview,
87
106
  messageCount,
88
107
  firstMessageAt: firstTimestamp,
89
- lastMessageAt: lastTimestamp,
90
- createdAt: firstTimestamp ?? new Date(mtime).toISOString(),
108
+ lastMessageAt: mtimeIso,
109
+ createdAt: firstTimestamp ?? mtimeIso,
91
110
  projectPath: repositoryPath,
92
111
  filePath,
93
112
  _mtime: mtime,
@@ -144,11 +163,25 @@ async function scanCursorSessions(repositoryPath, limit) {
144
163
  .filter((s) => s !== null);
145
164
  }
146
165
  async function parseCursorSession(filePath, fileName, mtime, repositoryPath) {
147
- const content = await readFile(filePath, 'utf-8');
148
- const lines = content.split('\n').filter((l) => l.trim());
166
+ const { createReadStream } = await import('node:fs');
149
167
  const id = fileName.replace('.jsonl', '');
168
+ // Read only the first chunk for preview extraction
169
+ const head = await new Promise((resolve) => {
170
+ const chunks = [];
171
+ let size = 0;
172
+ const stream = createReadStream(filePath, { end: PREVIEW_READ_BYTES - 1 });
173
+ stream.on('data', (chunk) => {
174
+ chunks.push(chunk);
175
+ size += chunk.length;
176
+ });
177
+ stream.on('end', () => resolve(Buffer.concat(chunks, size).toString('utf-8')));
178
+ stream.on('error', () => resolve(''));
179
+ });
180
+ if (!head)
181
+ return null;
150
182
  let preview = null;
151
183
  let messageCount = 0;
184
+ const lines = head.split('\n').filter((l) => l.trim());
152
185
  for (const line of lines) {
153
186
  try {
154
187
  const entry = JSON.parse(line);
@@ -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":"AAIA,OAAO,KAAK,EACV,eAAe,EACf,qBAAqB,EACtB,MAAM,yCAAyC,CAAC;AAqDjD,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;AA6BD;;;;;;;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;AAMD,wBAAgB,WAAW,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE,EAAE,gBAAgB,2CAmE3F"}
1
+ {"version":3,"file":"activity-tab.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-drawer-tabs/activity-tab.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,eAAe,EACf,qBAAqB,EACtB,MAAM,yCAAyC,CAAC;AA4DjD,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;AA6BD;;;;;;;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;AAMD,wBAAgB,WAAW,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE,EAAE,gBAAgB,2CAqE3F"}
@@ -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, Zap } from 'lucide-react';
4
+ import { Loader2, AlertCircle, Clock, Zap, DollarSign } from 'lucide-react';
5
5
  import { InlineAttachments } from '../../common/inline-attachments/index.js';
6
6
  import { formatDuration } from '../../../lib/format-duration.js';
7
7
  /**
@@ -51,6 +51,14 @@ function formatTokens(count) {
51
51
  return `${(count / 1_000).toFixed(1)}K`;
52
52
  return String(count);
53
53
  }
54
+ /** Format a USD cost with appropriate precision. */
55
+ function formatCost(usd) {
56
+ if (usd >= 1)
57
+ return `$${usd.toFixed(2)}`;
58
+ if (usd >= 0.01)
59
+ return `$${usd.toFixed(3)}`;
60
+ return `$${usd.toFixed(4)}`;
61
+ }
54
62
  const NODE_TO_PHASE = {
55
63
  analyze: 'Analyzing',
56
64
  requirements: 'Requirements',
@@ -160,7 +168,8 @@ export function ActivityTab({ timings, loading, error, rejectionFeedback }) {
160
168
  const totalWaitMs = nodeTimings.reduce((sum, t) => sum + (t.approvalWaitMs ?? 0), 0);
161
169
  const totalInputTokens = nodeTimings.reduce((sum, t) => sum + (t.inputTokens ?? 0), 0);
162
170
  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] }));
171
+ const totalCostUsd = nodeTimings.reduce((sum, t) => sum + (t.costUsd ?? 0), 0);
172
+ 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, totalCostUsd: totalCostUsd })) : null] }));
164
173
  }
165
174
  /* ---------------------------------------------------------------------------
166
175
  * Iteration group — one cycle of work
@@ -208,16 +217,16 @@ function NodeTimingRow({ timing, maxDurationMs, now, }) {
208
217
  const totalTokens = timing.inputTokens != null || timing.outputTokens != null
209
218
  ? (timing.inputTokens ?? 0) + (timing.outputTokens ?? 0)
210
219
  : 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] }));
220
+ 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 }), _jsx("span", { className: "text-muted-foreground w-14 shrink-0 text-right text-[10px] tabular-nums", children: timing.costUsd != null && timing.costUsd > 0 ? (_jsxs("span", { className: "inline-flex items-center gap-0.5", children: [_jsx(DollarSign, { className: "h-2 w-2 opacity-50" }), formatCost(timing.costUsd)] })) : null })] }), timing.approvalWaitMs != null && timing.approvalWaitMs > 0 ? (_jsx(ApprovalWaitRow, { timing: timing, maxDurationMs: maxDurationMs })) : null] }));
212
221
  }
213
222
  function ApprovalWaitRow({ timing, maxDurationMs, }) {
214
223
  const waitMs = timing.approvalWaitMs ?? 0;
215
224
  const barPercent = maxDurationMs > 0 ? Math.max(2, (waitMs / maxDurationMs) * 100) : 2;
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" })] }));
225
+ 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" }), _jsx("span", { className: "w-14 shrink-0" })] }));
217
226
  }
218
- function SummaryTotals({ totalExecMs, totalWaitMs, totalInputTokens, totalOutputTokens, }) {
227
+ function SummaryTotals({ totalExecMs, totalWaitMs, totalInputTokens, totalOutputTokens, totalCostUsd, }) {
219
228
  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] }));
229
+ 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, totalCostUsd > 0 ? _jsx(SummaryRow, { label: "Total cost", value: formatCost(totalCostUsd) }) : null] }));
221
230
  }
222
231
  function SummaryRow({ label, value }) {
223
232
  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":"activity-tab.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-drawer-tabs/activity-tab.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CAclC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,WAAW,CAAC,CAAC;AAmK1C,2EAA2E;AAC3E,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF,uDAAuD;AACvD,eAAO,MAAM,YAAY,EAAE,KAM1B,CAAC;AAEF,kEAAkE;AAClE,eAAO,MAAM,YAAY,EAAE,KAM1B,CAAC;AAEF,qEAAqE;AACrE,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF,8CAA8C;AAC9C,eAAO,MAAM,KAAK,EAAE,KAMnB,CAAC;AAEF,0CAA0C;AAC1C,eAAO,MAAM,KAAK,EAAE,KAMnB,CAAC;AAEF,0EAA0E;AAC1E,eAAO,MAAM,aAAa,EAAE,KAsE3B,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAwEhC,CAAC;AAEF,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAE,KAgC/B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,KAiI3B,CAAC"}
1
+ {"version":3,"file":"activity-tab.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-drawer-tabs/activity-tab.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CAclC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,WAAW,CAAC,CAAC;AAsM1C,2EAA2E;AAC3E,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF,uDAAuD;AACvD,eAAO,MAAM,YAAY,EAAE,KAM1B,CAAC;AAEF,kEAAkE;AAClE,eAAO,MAAM,YAAY,EAAE,KAM1B,CAAC;AAEF,qEAAqE;AACrE,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF,8CAA8C;AAC9C,eAAO,MAAM,KAAK,EAAE,KAMnB,CAAC;AAEF,0CAA0C;AAC1C,eAAO,MAAM,KAAK,EAAE,KAMnB,CAAC;AAEF,0EAA0E;AAC1E,eAAO,MAAM,aAAa,EAAE,KAsE3B,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAwEhC,CAAC;AAEF,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAE,KAgC/B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,KAiI3B,CAAC"}
@@ -29,6 +29,13 @@ const singleRunTimings = [
29
29
  startedAt: '2025-01-15T10:00:01Z',
30
30
  completedAt: '2025-01-15T10:00:15Z',
31
31
  durationMs: 14000,
32
+ inputTokens: 28500,
33
+ outputTokens: 3200,
34
+ cacheCreationInputTokens: 22000,
35
+ cacheReadInputTokens: 0,
36
+ costUsd: 0.1245,
37
+ numTurns: 2,
38
+ durationApiMs: 8400,
32
39
  },
33
40
  {
34
41
  agentRunId: 'run-1',
@@ -38,6 +45,13 @@ const singleRunTimings = [
38
45
  durationMs: 90000,
39
46
  waitingApprovalAt: '2025-01-15T10:01:00Z',
40
47
  approvalWaitMs: 30000,
48
+ inputTokens: 45200,
49
+ outputTokens: 8100,
50
+ cacheCreationInputTokens: 12000,
51
+ cacheReadInputTokens: 22000,
52
+ costUsd: 0.2831,
53
+ numTurns: 5,
54
+ durationApiMs: 42000,
41
55
  },
42
56
  {
43
57
  agentRunId: 'run-1',
@@ -45,6 +59,13 @@ const singleRunTimings = [
45
59
  startedAt: '2025-01-15T10:01:45Z',
46
60
  completedAt: '2025-01-15T10:03:30Z',
47
61
  durationMs: 105000,
62
+ inputTokens: 92400,
63
+ outputTokens: 15600,
64
+ cacheCreationInputTokens: 8000,
65
+ cacheReadInputTokens: 34000,
66
+ costUsd: 0.5127,
67
+ numTurns: 8,
68
+ durationApiMs: 78000,
48
69
  },
49
70
  {
50
71
  agentRunId: 'run-1',
@@ -54,6 +75,13 @@ const singleRunTimings = [
54
75
  durationMs: 90000,
55
76
  waitingApprovalAt: '2025-01-15T10:04:30Z',
56
77
  approvalWaitMs: 15000,
78
+ inputTokens: 68300,
79
+ outputTokens: 12400,
80
+ cacheCreationInputTokens: 5000,
81
+ cacheReadInputTokens: 34000,
82
+ costUsd: 0.3892,
83
+ numTurns: 6,
84
+ durationApiMs: 55000,
57
85
  },
58
86
  {
59
87
  agentRunId: 'run-1',
@@ -61,6 +89,13 @@ const singleRunTimings = [
61
89
  startedAt: '2025-01-15T10:05:00Z',
62
90
  completedAt: '2025-01-15T10:15:00Z',
63
91
  durationMs: 600000,
92
+ inputTokens: 485000,
93
+ outputTokens: 128000,
94
+ cacheCreationInputTokens: 45000,
95
+ cacheReadInputTokens: 34000,
96
+ costUsd: 3.2451,
97
+ numTurns: 42,
98
+ durationApiMs: 385000,
64
99
  },
65
100
  {
66
101
  agentRunId: 'run-1',
@@ -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":"AAuBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAQxE,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,eAAe,CAAC;CACvB;AAED,wBAAgB,WAAW,CAAC,EAAE,IAAI,EAAE,EAAE,gBAAgB,2CAqDrD"}
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,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,eAAe,CAAC;CACvB;AAED,wBAAgB,WAAW,CAAC,EAAE,IAAI,EAAE,EAAE,gBAAgB,2CA+DrD"}
@@ -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 { AlertTriangle, Check, ExternalLink, FileSearch, GitBranch, GitCommitHorizontal, RotateCcw, ShieldCheck, X, Zap, } from 'lucide-react';
4
+ import { AlertTriangle, Check, ExternalLink, FileSearch, GitBranch, GitCommitHorizontal, RotateCcw, ShieldCheck, Square, X, Zap, } from 'lucide-react';
5
5
  import { InlineAttachments } from '../../common/inline-attachments/index.js';
6
6
  import { PrStatus } from '../../../../../../packages/core/src/domain/generated/output.js';
7
7
  import { cn } from '../../../lib/utils.js';
@@ -15,7 +15,7 @@ import { getModelMeta } from '../../../lib/model-metadata.js';
15
15
  import { formatDuration } from '../../../lib/format-duration.js';
16
16
  export function OverviewTab({ data }) {
17
17
  const isCompleted = data.lifecycle === 'maintain';
18
- return (_jsxs(_Fragment, { children: [_jsxs("div", { "data-testid": "feature-drawer-status", className: "flex flex-col gap-3 p-4", children: [_jsx("div", { className: "text-muted-foreground text-xs font-semibold tracking-wider", children: lifecycleDisplayLabels[data.lifecycle] }), _jsxs("div", { className: "flex items-center gap-2", children: [_jsx(FeatureStateBadge, { data: data }), data.state === 'error' && data.onRetry ? (_jsxs("button", { "data-testid": "feature-drawer-retry-button", onClick: () => data.onRetry(data.featureId), className: "flex shrink-0 cursor-pointer items-center gap-1.5 rounded-full bg-red-50 px-3 py-1.5 text-sm font-medium text-red-700 transition-colors hover:bg-red-100", children: [_jsx(RotateCcw, { className: "h-3.5 w-3.5" }), "Retry"] })) : null] }), !isCompleted && data.progress > 0 ? (_jsxs("div", { "data-testid": "feature-drawer-progress", className: "flex flex-col gap-1", children: [_jsxs("div", { className: "text-muted-foreground flex items-center justify-between text-xs", children: [_jsx("span", { children: "Progress" }), _jsxs("span", { children: [data.progress, "%"] })] }), _jsx("div", { className: "bg-muted h-2 w-full overflow-hidden rounded-full", children: _jsx("div", { className: cn('h-full rounded-full transition-all', featureNodeStateConfig[data.state].progressClass), style: { width: `${data.progress}%` } }) })] })) : null, isCompleted && data.pr ? _jsx(FeaturePrInfo, { pr: data.pr }) : null] }), _jsx(FeatureInfo, { data: data }), !isCompleted && data.pr ? (_jsxs(_Fragment, { children: [_jsx(Separator, {}), _jsx("div", { className: "p-4", children: _jsx(FeaturePrInfo, { pr: data.pr }) })] })) : null, _jsx(FeatureDetails, { data: data }), _jsx(FeatureSettings, { data: data })] }));
18
+ return (_jsxs(_Fragment, { children: [_jsxs("div", { "data-testid": "feature-drawer-status", className: "flex flex-col gap-3 p-4", children: [_jsx("div", { className: "text-muted-foreground text-xs font-semibold tracking-wider", children: lifecycleDisplayLabels[data.lifecycle] }), _jsxs("div", { className: "flex items-center gap-2", children: [_jsx(FeatureStateBadge, { data: data }), data.state === 'error' && data.onRetry ? (_jsxs("button", { "data-testid": "feature-drawer-retry-button", onClick: () => data.onRetry(data.featureId), className: "flex shrink-0 cursor-pointer items-center gap-1.5 rounded-full bg-red-50 px-3 py-1.5 text-sm font-medium text-red-700 transition-colors hover:bg-red-100", children: [_jsx(RotateCcw, { className: "h-3.5 w-3.5" }), "Retry"] })) : null, (data.state === 'running' || data.state === 'action-required') && data.onStop ? (_jsxs("button", { "data-testid": "feature-drawer-stop-button", onClick: () => data.onStop(data.featureId), className: "flex shrink-0 cursor-pointer items-center gap-1.5 rounded-full bg-red-50 px-3 py-1.5 text-sm font-medium text-red-700 transition-colors hover:bg-red-100", children: [_jsx(Square, { className: "h-3.5 w-3.5" }), "Stop"] })) : null] }), !isCompleted && data.progress > 0 ? (_jsxs("div", { "data-testid": "feature-drawer-progress", className: "flex flex-col gap-1", children: [_jsxs("div", { className: "text-muted-foreground flex items-center justify-between text-xs", children: [_jsx("span", { children: "Progress" }), _jsxs("span", { children: [data.progress, "%"] })] }), _jsx("div", { className: "bg-muted h-2 w-full overflow-hidden rounded-full", children: _jsx("div", { className: cn('h-full rounded-full transition-all', featureNodeStateConfig[data.state].progressClass), style: { width: `${data.progress}%` } }) })] })) : null, isCompleted && data.pr ? _jsx(FeaturePrInfo, { pr: data.pr }) : null] }), _jsx(FeatureInfo, { data: data }), !isCompleted && data.pr ? (_jsxs(_Fragment, { children: [_jsx(Separator, {}), _jsx("div", { className: "p-4", children: _jsx(FeaturePrInfo, { pr: data.pr }) })] })) : null, _jsx(FeatureDetails, { data: data }), _jsx(FeatureSettings, { data: data })] }));
19
19
  }
20
20
  function FeatureStateBadge({ data }) {
21
21
  const config = featureNodeStateConfig[data.state];
@@ -17,6 +17,8 @@ export declare const Blocked: Story;
17
17
  export declare const Error: Story;
18
18
  /** Error state with retry button visible. */
19
19
  export declare const ErrorWithRetry: Story;
20
+ /** Running state with stop button visible. */
21
+ export declare const RunningWithStop: Story;
20
22
  /** Minimal data — only required fields, no optional details or PR. */
21
23
  export declare const Minimal: Story;
22
24
  /** Fast mode feature — shows lightning icon in details section. */
@@ -1 +1 @@
1
- {"version":3,"file":"overview-tab.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-drawer-tabs/overview-tab.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,k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AACpF,eAAO,MAAM,eAAe,EAAE,KAY7B,CAAC;AAEF,kDAAkD;AAClD,eAAO,MAAM,uBAAuB,EAAE,KAYrC,CAAC;AAEF,mDAAmD;AACnD,eAAO,MAAM,uBAAuB,EAAE,KAYrC,CAAC;AAEF,2CAA2C;AAC3C,eAAO,MAAM,oBAAoB,EAAE,KAYlC,CAAC;AAEF,+DAA+D;AAC/D,eAAO,MAAM,mBAAmB,EAAE,KAQjC,CAAC"}
1
+ {"version":3,"file":"overview-tab.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-drawer-tabs/overview-tab.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CAclC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,WAAW,CAAC,CAAC;AA0G1C,uEAAuE;AACvE,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAEF,8CAA8C;AAC9C,eAAO,MAAM,IAAI,EAAE,KAElB,CAAC;AAEF,yDAAyD;AACzD,eAAO,MAAM,UAAU,EAAE,KAExB,CAAC;AAEF,wDAAwD;AACxD,eAAO,MAAM,gBAAgB,EAAE,KAE9B,CAAC;AAEF,iDAAiD;AACjD,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAEF,gDAAgD;AAChD,eAAO,MAAM,KAAK,EAAE,KAEnB,CAAC;AAOF,6CAA6C;AAC7C,eAAO,MAAM,cAAc,EAAE,KAE5B,CAAC;AAEF,8CAA8C;AAC9C,eAAO,MAAM,eAAe,EAAE,KAE7B,CAAC;AAEF,sEAAsE;AACtE,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAwBF,mEAAmE;AACnE,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAC;AAMF,0BAA0B;AAC1B,eAAO,MAAM,iBAAiB,EAAE,KAE/B,CAAC;AAEF,sBAAsB;AACtB,eAAO,MAAM,aAAa,EAAE,KAE3B,CAAC;AAEF,oBAAoB;AACpB,eAAO,MAAM,WAAW,EAAE,KAEzB,CAAC;AAEF,sBAAsB;AACtB,eAAO,MAAM,aAAa,EAAE,KAE3B,CAAC;AAEF,gEAAgE;AAChE,eAAO,MAAM,oBAAoB,EAAE,KAclC,CAAC;AAqBF,4DAA4D;AAC5D,eAAO,MAAM,sBAAsB,EAAE,KAEpC,CAAC;AAEF,sDAAsD;AACtD,eAAO,MAAM,gBAAgB,EAAE,KAO9B,CAAC;AAEF,+FAA+F;AAC/F,eAAO,MAAM,eAAe,EAAE,KAgB7B,CAAC;AAMF,oFAAoF;AACpF,eAAO,MAAM,eAAe,EAAE,KAY7B,CAAC;AAEF,kDAAkD;AAClD,eAAO,MAAM,uBAAuB,EAAE,KAYrC,CAAC;AAEF,mDAAmD;AACnD,eAAO,MAAM,uBAAuB,EAAE,KAYrC,CAAC;AAEF,2CAA2C;AAC3C,eAAO,MAAM,oBAAoB,EAAE,KAYlC,CAAC;AAEF,+DAA+D;AAC/D,eAAO,MAAM,mBAAmB,EAAE,KAQjC,CAAC"}
@@ -141,6 +141,10 @@ const errorWithRetryData = {
141
141
  export const ErrorWithRetry = {
142
142
  args: { data: errorWithRetryData },
143
143
  };
144
+ /** Running state with stop button visible. */
145
+ export const RunningWithStop = {
146
+ args: { data: { ...fullData, onStop: fn() } },
147
+ };
144
148
  /** Minimal data — only required fields, no optional details or PR. */
145
149
  export const Minimal = {
146
150
  args: { data: minimalData },
@@ -90,6 +90,7 @@ export interface FeatureNodeData {
90
90
  onDelete?: (featureId: string, cleanup?: boolean, cascadeDelete?: boolean) => void;
91
91
  onRetry?: (featureId: string) => void;
92
92
  onStart?: (featureId: string) => void;
93
+ onStop?: (featureId: string) => void;
93
94
  showHandles?: boolean;
94
95
  }
95
96
  export type FeatureNodeType = Node<FeatureNodeData, 'featureNode'>;
@@ -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,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,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,qBAAqB,CAAC;IACjC,KAAK,EAAE,gBAAgB,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,8CAA8C;IAC9C,cAAc,EAAE,MAAM,CAAC;IACvB,uCAAuC;IACvC,MAAM,EAAE,MAAM,CAAC;IACf,kFAAkF;IAClF,YAAY,C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AAC"}
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,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,qBAAqB,CAAC;IACjC,KAAK,EAAE,gBAAgB,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,8CAA8C;IAC9C,cAAc,EAAE,MAAM,CAAC;IACvB,uCAAuC;IACvC,MAAM,EAAE,MAAM,CAAC;IACf,kFAAkF;IAClF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gDAAgD;IAChD,QAAQ,CAAC,EA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iFnF,CAAC"}
@@ -27,7 +27,7 @@ export function PrdQuestionnaire({ data, selections, onSelect, onApprove, onReje
27
27
  }, [onSelect, isLastStep, selectSound]);
28
28
  if (total === 0)
29
29
  return null;
30
- return (_jsxs("div", { className: "flex min-h-0 flex-1 flex-col", children: [_jsxs("div", { className: "flex-1 space-y-4 overflow-y-auto p-4", children: [showHeader ? (_jsxs("div", { className: "border-border flex items-start gap-3 border-b pb-3", children: [_jsx("div", { className: "mt-1.5 h-2 w-2 shrink-0 rounded-full bg-amber-500" }), _jsxs("div", { className: "flex-1", children: [_jsx("h3", { className: "text-foreground mb-1.5 text-sm font-bold", children: question }), _jsx("p", { className: "text-muted-foreground text-xs leading-relaxed", children: context })] })] })) : null, _jsxs("div", { className: "space-y-3", children: [_jsxs("div", { className: "flex items-start gap-3", children: [_jsx("label", { className: "text-foreground min-w-0 flex-1 text-sm font-semibold", children: currentQuestion.question }), _jsx("div", { className: "mt-1.5 flex shrink-0 gap-1", children: questions.map((q, idx) => (_jsx("button", { type: "button", "aria-label": `Go to question ${idx + 1}`, className: cn('h-1.5 rounded-full transition-all duration-200', idx === currentStep ? 'bg-primary w-4' : 'w-1.5', idx !== currentStep && selections[q.id] ? 'bg-primary/50' : '', idx !== currentStep && !selections[q.id] ? 'bg-muted-foreground/25' : ''), onClick: () => {
30
+ return (_jsxs("div", { className: "flex min-h-0 flex-1 flex-col", children: [_jsxs("div", { className: "flex-1 space-y-4 overflow-y-auto p-4", children: [showHeader ? (_jsxs("div", { className: "border-border flex items-start gap-3 border-b pb-3", children: [_jsx("div", { className: "mt-1.5 h-2 w-2 shrink-0 rounded-full bg-amber-500" }), _jsxs("div", { className: "flex-1", children: [_jsx("h3", { className: "text-foreground mb-1.5 text-sm font-bold", children: question }), _jsx("p", { className: "text-muted-foreground text-xs leading-relaxed", children: context })] })] })) : null, _jsxs("div", { className: "space-y-3", children: [_jsxs("div", { className: "flex items-start gap-3", children: [_jsxs("label", { className: "text-foreground min-w-0 flex-1 text-sm font-semibold", children: [currentStep + 1, ". ", currentQuestion.question] }), _jsx("div", { className: "mt-1.5 flex shrink-0 gap-1", children: questions.map((q, idx) => (_jsx("button", { type: "button", "aria-label": `Go to question ${idx + 1}`, className: cn('h-1.5 rounded-full transition-all duration-200', idx === currentStep ? 'bg-primary w-4' : 'w-1.5', idx !== currentStep && selections[q.id] ? 'bg-primary/50' : '', idx !== currentStep && !selections[q.id] ? 'bg-muted-foreground/25' : ''), onClick: () => {
31
31
  navigateSound.play();
32
32
  setCurrentStep(idx);
33
33
  } }, q.id))) })] }), _jsx("div", { className: "space-y-2", children: currentQuestion.options.map((opt, optIdx) => {
@@ -1 +1 @@
1
- {"version":3,"file":"control-center-inner.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/control-center/control-center-inner.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,IAAI,EAAY,MAAM,eAAe,CAAC;AAGpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAuB5E,UAAU,uBAAuB;IAC/B,YAAY,EAAE,cAAc,EAAE,CAAC;IAC/B,YAAY,EAAE,IAAI,EAAE,CAAC;CACtB;AAED,wBAAgB,kBAAkB,CAAC,EAAE,YAAY,EAAE,YAAY,EAAE,EAAE,uBAAuB,2CAwUzF"}
1
+ {"version":3,"file":"control-center-inner.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/control-center/control-center-inner.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,IAAI,EAAY,MAAM,eAAe,CAAC;AAGpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAuB5E,UAAU,uBAAuB;IAC/B,YAAY,EAAE,cAAc,EAAE,CAAC;IAC/B,YAAY,EAAE,IAAI,EAAE,CAAC;CACtB;AAED,wBAAgB,kBAAkB,CAAC,EAAE,YAAY,EAAE,YAAY,EAAE,EAAE,uBAAuB,2CA2UzF"}
@@ -26,7 +26,7 @@ export function ControlCenterInner({ initialNodes, initialEdges }) {
26
26
  const { fitView } = useReactFlow();
27
27
  const drawerTimerRef = useRef(null);
28
28
  const { defaultViewport, onMoveEnd: handleViewportChange, resetViewport, } = useViewportPersistence();
29
- const { nodes, edges, onNodesChange, handleConnect, handleAddRepository, handleDeleteFeature, handleRetryFeature, handleStartFeature, handleDeleteRepository, createFeatureNode, setCallbacks, } = useControlCenterState(initialNodes, initialEdges);
29
+ const { nodes, edges, onNodesChange, handleConnect, handleAddRepository, handleDeleteFeature, handleRetryFeature, handleStartFeature, handleStopFeature, handleDeleteRepository, createFeatureNode, setCallbacks, } = useControlCenterState(initialNodes, initialEdges);
30
30
  // Publish sidebar features to context whenever feature node data changes
31
31
  const { setFeatures: setSidebarFeatures } = useSidebarFeaturesContext();
32
32
  const featureNodes = useMemo(() => nodes.filter((n) => n.type === 'featureNode'), [nodes]);
@@ -192,6 +192,7 @@ export function ControlCenterInner({ initialNodes, initialEdges }) {
192
192
  onFeatureDelete: handleDeleteFeature,
193
193
  onRetryFeature: handleRetryFeature,
194
194
  onStartFeature: handleStartFeature,
195
+ onStopFeature: handleStopFeature,
195
196
  onRepositoryAdd: handleAddFeatureToRepo,
196
197
  onRepositoryClick: handleRepositoryClick,
197
198
  onRepositoryDelete: handleDeleteRepository,
@@ -202,6 +203,7 @@ export function ControlCenterInner({ initialNodes, initialEdges }) {
202
203
  handleDeleteFeature,
203
204
  handleRetryFeature,
204
205
  handleStartFeature,
206
+ handleStopFeature,
205
207
  handleAddFeatureToRepo,
206
208
  handleRepositoryClick,
207
209
  handleDeleteRepository,
@@ -17,6 +17,7 @@ export interface ControlCenterState {
17
17
  handleDeleteFeature: (featureId: string, cleanup?: boolean, cascadeDelete?: boolean) => void;
18
18
  handleRetryFeature: (featureId: string) => void;
19
19
  handleStartFeature: (featureId: string) => void;
20
+ handleStopFeature: (featureId: string) => void;
20
21
  handleDeleteRepository: (repositoryId: string) => Promise<void>;
21
22
  createFeatureNode: (sourceNodeId: string | null, dataOverride?: Partial<FeatureNodeData>, edgeType?: string) => string;
22
23
  /** Stable lookup: repositoryPath for a feature node. */
@@ -1 +1 @@
1
- {"version":3,"file":"use-control-center-state.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/control-center/use-control-center-state.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAClE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,EAGL,KAAK,eAAe,EACrB,MAAM,yBAAyB,CAAC;AAejC,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAM7E,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,aAAa,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC,cAAc,CAAC,EAAE,KAAK,IAAI,CAAC;IAC/D,aAAa,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,IAAI,CAAC;IAChD,mBAAmB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK;QAAE,QAAQ,EAAE,OAAO,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;IAC/E,YAAY,EAAE,CAAC,SAAS,EAAE,eAAe,KAAK,IAAI,CAAC;IACnD,mBAAmB,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,aAAa,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7F,kBAAkB,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD,kBAAkB,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD,sBAAsB,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAChE,iBAAiB,EAAE,CACjB,YAAY,EAAE,MAAM,GAAG,IAAI,EAC3B,YAAY,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,EACvC,QAAQ,CAAC,EAAE,MAAM,KACd,MAAM,CAAC;IACZ,wDAAwD;IACxD,wBAAwB,EAAE,CAAC,aAAa,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;IACxE,gDAAgD;IAChD,iBAAiB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,kBAAkB,GAAG,SAAS,CAAC;IACtE,0EAA0E;IAC1E,YAAY,EAAE,CAAC,SAAS,EAAE,cAAc,KAAK,IAAI,CAAC;CACnD;AAQD,wBAAgB,qBAAqB,CACnC,YAAY,EAAE,cAAc,EAAE,EAC9B,YAAY,EAAE,IAAI,EAAE,GACnB,kBAAkB,CAofpB"}
1
+ {"version":3,"file":"use-control-center-state.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/control-center/use-control-center-state.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAClE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,EAGL,KAAK,eAAe,EACrB,MAAM,yBAAyB,CAAC;AAgBjC,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAM7E,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,aAAa,EAAE,CAAC,OAAO,EAAE,UAAU,CA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WithDagre, CANVAS_LAYOUT_DEFAULTS, } from '../../../lib/layout-wi
6
6
  import { deleteFeature } from '../../../app/actions/delete-feature.js';
7
7
  import { resumeFeature } from '../../../app/actions/resume-feature.js';
8
8
  import { startFeature } from '../../../app/actions/start-feature.js';
9
+ import { stopFeature } from '../../../app/actions/stop-feature.js';
9
10
  import { addRepository } from '../../../app/actions/add-repository.js';
10
11
  import { deleteRepository } from '../../../app/actions/delete-repository.js';
11
12
  import { getFeatureMetadata } from '../../../app/actions/get-feature-metadata.js';
@@ -249,6 +250,22 @@ export function useControlCenterState(initialNodes, initialEdges) {
249
250
  })
250
251
  .finally(() => endMutation());
251
252
  }, [updateFeature, beginMutation, endMutation]);
253
+ const handleStopFeature = useCallback((featureId) => {
254
+ beginMutation();
255
+ stopFeature(featureId)
256
+ .then((result) => {
257
+ if (result.error) {
258
+ toast.error(result.error);
259
+ }
260
+ else {
261
+ toast.success('Agent stopped');
262
+ }
263
+ })
264
+ .catch(() => {
265
+ toast.error('Failed to stop agent');
266
+ })
267
+ .finally(() => endMutation());
268
+ }, [beginMutation, endMutation]);
252
269
  const handleDeleteFeature = useCallback((featureId, cleanup, cascadeDelete) => {
253
270
  const nodeId = `feat-${featureId}`;
254
271
  const shouldCascade = cascadeDelete === true;
@@ -428,6 +445,7 @@ export function useControlCenterState(initialNodes, initialEdges) {
428
445
  handleDeleteFeature,
429
446
  handleRetryFeature,
430
447
  handleStartFeature,
448
+ handleStopFeature,
431
449
  handleDeleteRepository,
432
450
  createFeatureNode,
433
451
  getFeatureRepositoryPath,
@@ -39,6 +39,8 @@ export interface GraphCallbacks {
39
39
  onRetryFeature?: (featureId: string) => void;
40
40
  /** Called when the user starts a pending feature. */
41
41
  onStartFeature?: (featureId: string) => void;
42
+ /** Called when the user stops a running feature. */
43
+ onStopFeature?: (featureId: string) => void;
42
44
  }
43
45
  /**
44
46
  * Derives React Flow nodes and edges from domain Maps.
@@ -1 +1 @@
1
- {"version":3,"file":"derive-graph.d.ts","sour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1C,8CAA8C;IAC9C,eAAe,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,aAAa,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAC1F,6EAA6E;IAC7E,eAAe,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/C,8EAA8E;IAC9E,iBAAiB,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IACjD,iDAAiD;IACjD,kBAAkB,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IACpD,qDAAqD;IACrD,cAAc,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,qDAAqD;IACrD,cAAc,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,oDAAoD;IACpD,aAAa,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7C;AAED;;;;;;;;GAQG;AACH,wBAAgB,WAAW,CACzB,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,EACrC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,EAC/B,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,EACrC,SAAS,CAAC,EAAE,cAAc,GACzB;IAAE,KAAK,EAAE,cAAc,EAAE,CAAC;IAAC,KAAK,EAAE,IAAI,EAAE,CAAA;CAAE,CA8J5C"}
@@ -107,6 +107,11 @@ export function deriveGraph(featureMap, repoMap, pendingMap, callbacks) {
107
107
  callbacks?.onStartFeature && {
108
108
  onStart: callbacks.onStartFeature,
109
109
  }),
110
+ ...(!isCreating &&
111
+ (entry.data.state === 'running' || entry.data.state === 'action-required') &&
112
+ callbacks?.onStopFeature && {
113
+ onStop: callbacks.onStopFeature,
114
+ }),
110
115
  };
111
116
  nodes.push({
112
117
  id: nodeId,