@shepai/cli 1.116.1 → 1.116.3-pr372.74a25eb

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 (323) hide show
  1. package/apis/json-schema/WorkflowConfig.yaml +5 -0
  2. package/dist/packages/core/src/application/ports/output/agents/agent-session-repository.interface.d.ts +2 -0
  3. package/dist/packages/core/src/application/ports/output/agents/agent-session-repository.interface.d.ts.map +1 -1
  4. package/dist/packages/core/src/domain/factories/settings-defaults.factory.d.ts.map +1 -1
  5. package/dist/packages/core/src/domain/factories/settings-defaults.factory.js +1 -0
  6. package/dist/packages/core/src/domain/generated/output.d.ts +4 -0
  7. package/dist/packages/core/src/domain/generated/output.d.ts.map +1 -1
  8. package/dist/packages/core/src/infrastructure/persistence/sqlite/legacy-migrations.d.ts.map +1 -1
  9. package/dist/packages/core/src/infrastructure/persistence/sqlite/legacy-migrations.js +11 -0
  10. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/settings.mapper.d.ts +1 -0
  11. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/settings.mapper.d.ts.map +1 -1
  12. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/settings.mapper.js +2 -0
  13. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations.d.ts +1 -1
  14. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations.js +1 -1
  15. package/dist/packages/core/src/infrastructure/services/agents/common/executors/claude-code-executor.service.d.ts.map +1 -1
  16. package/dist/packages/core/src/infrastructure/services/agents/common/executors/claude-code-executor.service.js +9 -4
  17. package/dist/packages/core/src/infrastructure/services/agents/common/executors/gemini-cli-executor.service.d.ts.map +1 -1
  18. package/dist/packages/core/src/infrastructure/services/agents/common/executors/gemini-cli-executor.service.js +13 -4
  19. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/merge/merge.node.d.ts.map +1 -1
  20. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/merge/merge.node.js +4 -2
  21. package/dist/packages/core/src/infrastructure/services/agents/sessions/claude-code-session.repository.d.ts +7 -0
  22. package/dist/packages/core/src/infrastructure/services/agents/sessions/claude-code-session.repository.d.ts.map +1 -1
  23. package/dist/packages/core/src/infrastructure/services/agents/sessions/claude-code-session.repository.js +35 -11
  24. package/dist/packages/core/src/infrastructure/services/git/worktree.service.d.ts.map +1 -1
  25. package/dist/packages/core/src/infrastructure/services/git/worktree.service.js +3 -0
  26. package/dist/src/presentation/web/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.d.ts.map +1 -1
  27. package/dist/src/presentation/web/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js +1 -0
  28. package/dist/src/presentation/web/app/(dashboard)/@drawer/feature/[featureId]/page.d.ts.map +1 -1
  29. package/dist/src/presentation/web/app/(dashboard)/@drawer/feature/[featureId]/page.js +1 -0
  30. package/dist/src/presentation/web/app/(dashboard)/get-graph-data.d.ts.map +1 -1
  31. package/dist/src/presentation/web/app/(dashboard)/get-graph-data.js +1 -0
  32. package/dist/src/presentation/web/app/actions/get-workflow-defaults.d.ts +1 -0
  33. package/dist/src/presentation/web/app/actions/get-workflow-defaults.d.ts.map +1 -1
  34. package/dist/src/presentation/web/app/actions/get-workflow-defaults.js +1 -0
  35. package/dist/src/presentation/web/app/actions/open-shell.d.ts.map +1 -1
  36. package/dist/src/presentation/web/app/actions/open-shell.js +4 -1
  37. package/dist/src/presentation/web/app/api/sessions/route.d.ts +25 -0
  38. package/dist/src/presentation/web/app/api/sessions/route.d.ts.map +1 -0
  39. package/dist/src/presentation/web/app/api/sessions/route.js +43 -0
  40. package/dist/src/presentation/web/app/build-feature-node-data.d.ts +2 -0
  41. package/dist/src/presentation/web/app/build-feature-node-data.d.ts.map +1 -1
  42. package/dist/src/presentation/web/app/build-feature-node-data.js +1 -0
  43. package/dist/src/presentation/web/app/build-graph-nodes.d.ts +2 -0
  44. package/dist/src/presentation/web/app/build-graph-nodes.d.ts.map +1 -1
  45. package/dist/src/presentation/web/app/build-graph-nodes.js +11 -0
  46. package/dist/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.d.ts +1 -0
  47. package/dist/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.d.ts.map +1 -1
  48. package/dist/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.js +8 -1
  49. package/dist/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.stories.d.ts.map +1 -1
  50. package/dist/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.stories.js +1 -0
  51. package/dist/src/presentation/web/components/common/feature-drawer-tabs/overview-tab.js +2 -1
  52. package/dist/src/presentation/web/components/common/feature-node/feature-node-state-config.d.ts +4 -0
  53. package/dist/src/presentation/web/components/common/feature-node/feature-node-state-config.d.ts.map +1 -1
  54. package/dist/src/presentation/web/components/common/feature-node/feature-node.d.ts.map +1 -1
  55. package/dist/src/presentation/web/components/common/feature-node/feature-node.js +2 -1
  56. package/dist/src/presentation/web/components/common/feature-node/feature-sessions-dropdown.d.ts +16 -0
  57. package/dist/src/presentation/web/components/common/feature-node/feature-sessions-dropdown.d.ts.map +1 -0
  58. package/dist/src/presentation/web/components/common/feature-node/feature-sessions-dropdown.js +134 -0
  59. package/dist/src/presentation/web/components/common/feature-node/feature-sessions-dropdown.stories.d.ts +9 -0
  60. package/dist/src/presentation/web/components/common/feature-node/feature-sessions-dropdown.stories.d.ts.map +1 -0
  61. package/dist/src/presentation/web/components/common/feature-node/feature-sessions-dropdown.stories.js +77 -0
  62. package/dist/src/presentation/web/components/common/repository-node/repository-node.d.ts.map +1 -1
  63. package/dist/src/presentation/web/components/common/repository-node/repository-node.js +2 -1
  64. package/dist/src/presentation/web/components/features/settings/settings-page-client.d.ts.map +1 -1
  65. package/dist/src/presentation/web/components/features/settings/settings-page-client.js +5 -0
  66. package/dist/src/presentation/web/components/features/settings/workflow-settings-section.d.ts.map +1 -1
  67. package/dist/src/presentation/web/components/features/settings/workflow-settings-section.js +3 -1
  68. package/dist/src/presentation/web/components/features/settings/workflow-settings-section.stories.d.ts.map +1 -1
  69. package/dist/src/presentation/web/components/features/settings/workflow-settings-section.stories.js +3 -0
  70. package/dist/tsconfig.build.tsbuildinfo +1 -1
  71. package/package.json +1 -1
  72. package/web/.next/BUILD_ID +1 -1
  73. package/web/.next/app-path-routes-manifest.json +1 -0
  74. package/web/.next/build-manifest.json +2 -2
  75. package/web/.next/fallback-build-manifest.json +2 -2
  76. package/web/.next/prerender-manifest.json +3 -3
  77. package/web/.next/required-server-files.js +3 -3
  78. package/web/.next/required-server-files.json +3 -3
  79. package/web/.next/routes-manifest.json +6 -0
  80. package/web/.next/server/app/(dashboard)/@drawer/create/page/server-reference-manifest.json +20 -20
  81. package/web/.next/server/app/(dashboard)/@drawer/create/page.js +2 -2
  82. package/web/.next/server/app/(dashboard)/@drawer/create/page.js.nft.json +1 -1
  83. package/web/.next/server/app/(dashboard)/@drawer/create/page_client-reference-manifest.js +1 -1
  84. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page/server-reference-manifest.json +26 -26
  85. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js +3 -3
  86. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js.nft.json +1 -1
  87. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
  88. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/server-reference-manifest.json +26 -26
  89. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js +3 -3
  90. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js.nft.json +1 -1
  91. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page_client-reference-manifest.js +1 -1
  92. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/server-reference-manifest.json +18 -18
  93. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js +2 -2
  94. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js.nft.json +1 -1
  95. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  96. package/web/.next/server/app/(dashboard)/create/page/server-reference-manifest.json +20 -20
  97. package/web/.next/server/app/(dashboard)/create/page.js +2 -2
  98. package/web/.next/server/app/(dashboard)/create/page.js.nft.json +1 -1
  99. package/web/.next/server/app/(dashboard)/create/page_client-reference-manifest.js +1 -1
  100. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page/server-reference-manifest.json +26 -26
  101. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js +3 -3
  102. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js.nft.json +1 -1
  103. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
  104. package/web/.next/server/app/(dashboard)/feature/[featureId]/page/server-reference-manifest.json +26 -26
  105. package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js +3 -3
  106. package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js.nft.json +1 -1
  107. package/web/.next/server/app/(dashboard)/feature/[featureId]/page_client-reference-manifest.js +1 -1
  108. package/web/.next/server/app/(dashboard)/page/server-reference-manifest.json +18 -18
  109. package/web/.next/server/app/(dashboard)/page.js +2 -2
  110. package/web/.next/server/app/(dashboard)/page.js.nft.json +1 -1
  111. package/web/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
  112. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/server-reference-manifest.json +18 -18
  113. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js +2 -2
  114. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js.nft.json +1 -1
  115. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  116. package/web/.next/server/app/_global-error.html +2 -2
  117. package/web/.next/server/app/_global-error.rsc +1 -1
  118. package/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  119. package/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  120. package/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  121. package/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  122. package/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  123. package/web/.next/server/app/_not-found/page/server-reference-manifest.json +1 -1
  124. package/web/.next/server/app/_not-found/page.js.nft.json +1 -1
  125. package/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  126. package/web/.next/server/app/api/attachments/preview/route.js +1 -1
  127. package/web/.next/server/app/api/attachments/preview/route.js.nft.json +1 -1
  128. package/web/.next/server/app/api/evidence/route.js +1 -1
  129. package/web/.next/server/app/api/evidence/route.js.nft.json +1 -1
  130. package/web/.next/server/app/api/graph-data/route.js +1 -1
  131. package/web/.next/server/app/api/graph-data/route.js.nft.json +1 -1
  132. package/web/.next/server/app/api/sessions/route/app-paths-manifest.json +3 -0
  133. package/web/.next/server/app/api/sessions/route/build-manifest.json +11 -0
  134. package/web/.next/server/app/api/sessions/route/server-reference-manifest.json +4 -0
  135. package/web/.next/server/app/api/sessions/route.js +7 -0
  136. package/web/.next/server/app/api/sessions/route.js.map +5 -0
  137. package/web/.next/server/app/api/sessions/route.js.nft.json +1 -0
  138. package/web/.next/server/app/api/sessions/route_client-reference-manifest.js +2 -0
  139. package/web/.next/server/app/settings/page/server-reference-manifest.json +5 -5
  140. package/web/.next/server/app/settings/page.js +1 -1
  141. package/web/.next/server/app/settings/page.js.nft.json +1 -1
  142. package/web/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  143. package/web/.next/server/app/skills/page/server-reference-manifest.json +6 -6
  144. package/web/.next/server/app/skills/page.js +1 -1
  145. package/web/.next/server/app/skills/page.js.nft.json +1 -1
  146. package/web/.next/server/app/skills/page_client-reference-manifest.js +1 -1
  147. package/web/.next/server/app/tools/page/server-reference-manifest.json +6 -6
  148. package/web/.next/server/app/tools/page.js +1 -1
  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.js +1 -1
  153. package/web/.next/server/app/version/page.js.nft.json +1 -1
  154. package/web/.next/server/app/version/page_client-reference-manifest.js +1 -1
  155. package/web/.next/server/app-paths-manifest.json +1 -0
  156. package/web/.next/server/chunks/403f9_next_dist_esm_build_templates_app-route_370c43b1.js +1 -1
  157. package/web/.next/server/chunks/403f9_next_dist_esm_build_templates_app-route_370c43b1.js.map +1 -1
  158. package/web/.next/server/chunks/[externals]__42053d5c._.js +3 -0
  159. package/web/.next/server/chunks/[externals]__42053d5c._.js.map +1 -0
  160. package/web/.next/server/chunks/[root-of-the-server]__42b7ab55._.js +3 -0
  161. package/web/.next/server/chunks/[root-of-the-server]__42b7ab55._.js.map +1 -0
  162. package/web/.next/server/chunks/{[root-of-the-server]__7d63f9a4._.js → [root-of-the-server]__53013576._.js} +2 -2
  163. package/web/.next/server/chunks/[root-of-the-server]__6ec95237._.js +3 -0
  164. package/web/.next/server/chunks/[root-of-the-server]__6ec95237._.js.map +1 -0
  165. package/web/.next/server/chunks/[root-of-the-server]__7939ee8d._.js +3 -0
  166. package/web/.next/server/chunks/[root-of-the-server]__7939ee8d._.js.map +1 -0
  167. package/web/.next/server/chunks/{[root-of-the-server]__a1c7c02a._.js → [root-of-the-server]__92078db6._.js} +2 -2
  168. package/web/.next/server/chunks/[root-of-the-server]__a402b567._.js +1 -1
  169. package/web/.next/server/chunks/[root-of-the-server]__cd67a84c._.js.map +1 -1
  170. package/web/.next/server/chunks/b1a17_presentation_web__next-internal_server_app_api_sessions_route_actions_c041a889.js +3 -0
  171. package/web/.next/server/chunks/b1a17_presentation_web__next-internal_server_app_api_sessions_route_actions_c041a889.js.map +1 -0
  172. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js +1 -1
  173. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js.map +1 -1
  174. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_a1104008.js +1 -1
  175. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_a1104008.js.map +1 -1
  176. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_92642200.js +1 -1
  177. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_92642200.js.map +1 -1
  178. package/web/.next/server/chunks/ssr/[root-of-the-server]__0023a364._.js +4 -0
  179. package/web/.next/server/chunks/ssr/[root-of-the-server]__0023a364._.js.map +1 -0
  180. package/web/.next/server/chunks/ssr/{[root-of-the-server]__07a39ff2._.js → [root-of-the-server]__06fef644._.js} +2 -2
  181. package/web/.next/server/chunks/ssr/{[root-of-the-server]__07a39ff2._.js.map → [root-of-the-server]__06fef644._.js.map} +1 -1
  182. package/web/.next/server/chunks/ssr/[root-of-the-server]__11033878._.js +1 -1
  183. package/web/.next/server/chunks/ssr/[root-of-the-server]__11033878._.js.map +1 -1
  184. package/web/.next/server/chunks/ssr/[root-of-the-server]__4170d245._.js +3 -0
  185. package/web/.next/server/chunks/ssr/[root-of-the-server]__4170d245._.js.map +1 -0
  186. package/web/.next/server/chunks/ssr/[root-of-the-server]__422945ee._.js +3 -0
  187. package/web/.next/server/chunks/ssr/[root-of-the-server]__422945ee._.js.map +1 -0
  188. package/web/.next/server/chunks/ssr/[root-of-the-server]__545792ab._.js +3 -0
  189. package/web/.next/server/chunks/ssr/[root-of-the-server]__545792ab._.js.map +1 -0
  190. package/web/.next/server/chunks/ssr/[root-of-the-server]__684a868c._.js +1 -1
  191. package/web/.next/server/chunks/ssr/[root-of-the-server]__684a868c._.js.map +1 -1
  192. package/web/.next/server/chunks/ssr/[root-of-the-server]__aad040c0._.js +2 -2
  193. package/web/.next/server/chunks/ssr/[root-of-the-server]__aad040c0._.js.map +1 -1
  194. package/web/.next/server/chunks/ssr/[root-of-the-server]__b724df9e._.js +3 -0
  195. package/web/.next/server/chunks/ssr/[root-of-the-server]__b724df9e._.js.map +1 -0
  196. package/web/.next/server/chunks/ssr/[root-of-the-server]__bf1d1145._.js +3 -0
  197. package/web/.next/server/chunks/ssr/[root-of-the-server]__bf1d1145._.js.map +1 -0
  198. package/web/.next/server/chunks/ssr/[root-of-the-server]__c16bf5de._.js +1 -1
  199. package/web/.next/server/chunks/ssr/[root-of-the-server]__c16bf5de._.js.map +1 -1
  200. package/web/.next/server/chunks/ssr/[root-of-the-server]__c4dc1b5a._.js +4 -0
  201. package/web/.next/server/chunks/ssr/[root-of-the-server]__c4dc1b5a._.js.map +1 -0
  202. package/web/.next/server/chunks/ssr/[root-of-the-server]__caa857f3._.js +3 -0
  203. package/web/.next/server/chunks/ssr/[root-of-the-server]__caa857f3._.js.map +1 -0
  204. package/web/.next/server/chunks/ssr/[root-of-the-server]__e98eda15._.js +4 -0
  205. package/web/.next/server/chunks/ssr/[root-of-the-server]__e98eda15._.js.map +1 -0
  206. package/web/.next/server/chunks/ssr/[root-of-the-server]__eaed6264._.js +3 -0
  207. package/web/.next/server/chunks/ssr/[root-of-the-server]__eaed6264._.js.map +1 -0
  208. package/web/.next/server/chunks/ssr/[root-of-the-server]__fdc75809._.js +1 -1
  209. package/web/.next/server/chunks/ssr/[root-of-the-server]__fdc75809._.js.map +1 -1
  210. package/web/.next/server/chunks/ssr/_0dc2cfd3._.js +3 -0
  211. package/web/.next/server/chunks/ssr/_0dc2cfd3._.js.map +1 -0
  212. package/web/.next/server/chunks/ssr/_135edb9c._.js +1 -1
  213. package/web/.next/server/chunks/ssr/_135edb9c._.js.map +1 -1
  214. package/web/.next/server/chunks/ssr/_1bb131c4._.js.map +1 -1
  215. package/web/.next/server/chunks/ssr/_1bb79fe8._.js +3 -0
  216. package/web/.next/server/chunks/ssr/_1bb79fe8._.js.map +1 -0
  217. package/web/.next/server/chunks/ssr/_39153813._.js +3 -0
  218. package/web/.next/server/chunks/ssr/_39153813._.js.map +1 -0
  219. package/web/.next/server/chunks/ssr/_75f4ccb3._.js +3 -0
  220. package/web/.next/server/chunks/ssr/_75f4ccb3._.js.map +1 -0
  221. package/web/.next/server/chunks/ssr/_8dacd1e7._.js +1 -1
  222. package/web/.next/server/chunks/ssr/_8dacd1e7._.js.map +1 -1
  223. package/web/.next/server/chunks/ssr/_cc77a143._.js +1 -1
  224. package/web/.next/server/chunks/ssr/_cc77a143._.js.map +1 -1
  225. package/web/.next/server/chunks/ssr/_e4aecdda._.js +3 -0
  226. package/web/.next/server/chunks/ssr/_e4aecdda._.js.map +1 -0
  227. package/web/.next/server/chunks/ssr/_f4d222d6._.js +1 -1
  228. package/web/.next/server/chunks/ssr/_f605354c._.js +9 -0
  229. package/web/.next/server/chunks/ssr/_f605354c._.js.map +1 -0
  230. package/web/.next/server/chunks/ssr/{_9f6e3d20._.js → _f700398b._.js} +2 -2
  231. package/web/.next/server/chunks/ssr/_f700398b._.js.map +1 -0
  232. package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js +1 -1
  233. package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js.map +1 -1
  234. package/web/.next/server/chunks/ssr/node_modules__pnpm_b59e4b16._.js +3 -0
  235. package/web/.next/server/chunks/ssr/node_modules__pnpm_b59e4b16._.js.map +1 -0
  236. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_888633e1.js +1 -1
  237. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_888633e1.js.map +1 -1
  238. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_1fa8042e.js +1 -1
  239. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_1fa8042e.js.map +1 -1
  240. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_24684200.js +1 -1
  241. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_24684200.js.map +1 -1
  242. package/web/.next/server/chunks/ssr/src_presentation_web_ca99d62d._.js +1 -1
  243. package/web/.next/server/chunks/ssr/src_presentation_web_ca99d62d._.js.map +1 -1
  244. package/web/.next/server/chunks/ssr/src_presentation_web_ce7cbc3c._.js +2 -2
  245. package/web/.next/server/chunks/ssr/src_presentation_web_ce7cbc3c._.js.map +1 -1
  246. package/web/.next/server/chunks/ssr/src_presentation_web_components_bdcfba35._.js +3 -0
  247. package/web/.next/server/chunks/ssr/src_presentation_web_components_bdcfba35._.js.map +1 -0
  248. package/web/.next/server/chunks/ssr/src_presentation_web_components_bf50c527._.js +1 -1
  249. package/web/.next/server/chunks/ssr/src_presentation_web_components_de814675._.js +1 -1
  250. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js +1 -1
  251. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js.map +1 -1
  252. package/web/.next/server/chunks/ssr/src_presentation_web_e2604413._.js +2 -2
  253. package/web/.next/server/chunks/ssr/src_presentation_web_e2604413._.js.map +1 -1
  254. package/web/.next/server/pages/500.html +2 -2
  255. package/web/.next/server/server-reference-manifest.js +1 -1
  256. package/web/.next/server/server-reference-manifest.json +31 -31
  257. package/web/.next/static/chunks/{5d83ac35ca137033.js → 2c85955a119cb958.js} +1 -1
  258. package/web/.next/static/chunks/4562ee849ea13c3a.js +1 -0
  259. package/web/.next/static/chunks/734e1b96d65bc4e1.js +1 -0
  260. package/web/.next/static/chunks/845d8e58a91014e6.js +1 -0
  261. package/web/.next/static/chunks/85525df1b4d1aabf.js +11 -0
  262. package/web/.next/static/chunks/{b5357e9cc8668be7.js → 87ebdd9c09d98098.js} +1 -1
  263. package/web/.next/static/chunks/8bd4850f5ba10859.css +1 -0
  264. package/web/.next/static/chunks/9a8aeb9054d6763e.js +1 -0
  265. package/web/.next/static/chunks/a02878d540d8caac.js +2 -0
  266. package/web/.next/static/chunks/{814f40e65ab8e09e.js → b6a6d6f997c7dc23.js} +1 -1
  267. package/web/.next/static/chunks/{35bf7817ea1c468d.js → bbbb1dfab7e4f4d2.js} +1 -1
  268. package/web/.next/static/chunks/{3375766cc7dda1d8.js → c59d875a3ea688b4.js} +2 -2
  269. package/web/.next/static/chunks/cca0f5112a9260d8.js +1 -0
  270. package/web/.next/static/chunks/d3e71bbe7e8203e9.js +1 -0
  271. package/web/.next/server/chunks/[root-of-the-server]__7d5492a0._.js +0 -3
  272. package/web/.next/server/chunks/[root-of-the-server]__7d5492a0._.js.map +0 -1
  273. package/web/.next/server/chunks/ssr/7f428_lucide-react_dist_esm_icons_rocket_1575cd4d.js +0 -3
  274. package/web/.next/server/chunks/ssr/7f428_lucide-react_dist_esm_icons_rocket_1575cd4d.js.map +0 -1
  275. package/web/.next/server/chunks/ssr/[root-of-the-server]__039967e3._.js +0 -3
  276. package/web/.next/server/chunks/ssr/[root-of-the-server]__039967e3._.js.map +0 -1
  277. package/web/.next/server/chunks/ssr/[root-of-the-server]__24dd0927._.js +0 -4
  278. package/web/.next/server/chunks/ssr/[root-of-the-server]__24dd0927._.js.map +0 -1
  279. package/web/.next/server/chunks/ssr/[root-of-the-server]__2773312c._.js +0 -3
  280. package/web/.next/server/chunks/ssr/[root-of-the-server]__2773312c._.js.map +0 -1
  281. package/web/.next/server/chunks/ssr/[root-of-the-server]__5d87af2e._.js +0 -4
  282. package/web/.next/server/chunks/ssr/[root-of-the-server]__5d87af2e._.js.map +0 -1
  283. package/web/.next/server/chunks/ssr/[root-of-the-server]__6367aea0._.js +0 -3
  284. package/web/.next/server/chunks/ssr/[root-of-the-server]__6367aea0._.js.map +0 -1
  285. package/web/.next/server/chunks/ssr/[root-of-the-server]__89e8a5cc._.js +0 -4
  286. package/web/.next/server/chunks/ssr/[root-of-the-server]__89e8a5cc._.js.map +0 -1
  287. package/web/.next/server/chunks/ssr/[root-of-the-server]__b1e68e34._.js +0 -3
  288. package/web/.next/server/chunks/ssr/[root-of-the-server]__b1e68e34._.js.map +0 -1
  289. package/web/.next/server/chunks/ssr/[root-of-the-server]__cbd8062c._.js +0 -3
  290. package/web/.next/server/chunks/ssr/[root-of-the-server]__cbd8062c._.js.map +0 -1
  291. package/web/.next/server/chunks/ssr/[root-of-the-server]__e70c5627._.js +0 -3
  292. package/web/.next/server/chunks/ssr/[root-of-the-server]__e70c5627._.js.map +0 -1
  293. package/web/.next/server/chunks/ssr/_250a63ae._.js +0 -3
  294. package/web/.next/server/chunks/ssr/_250a63ae._.js.map +0 -1
  295. package/web/.next/server/chunks/ssr/_273d4632._.js +0 -3
  296. package/web/.next/server/chunks/ssr/_273d4632._.js.map +0 -1
  297. package/web/.next/server/chunks/ssr/_8e762bfa._.js +0 -3
  298. package/web/.next/server/chunks/ssr/_8e762bfa._.js.map +0 -1
  299. package/web/.next/server/chunks/ssr/_922aa39f._.js +0 -3
  300. package/web/.next/server/chunks/ssr/_922aa39f._.js.map +0 -1
  301. package/web/.next/server/chunks/ssr/_9f6e3d20._.js.map +0 -1
  302. package/web/.next/server/chunks/ssr/_a68d7e1c._.js +0 -9
  303. package/web/.next/server/chunks/ssr/_a68d7e1c._.js.map +0 -1
  304. package/web/.next/server/chunks/ssr/_c1fbab88._.js +0 -3
  305. package/web/.next/server/chunks/ssr/_c1fbab88._.js.map +0 -1
  306. package/web/.next/server/chunks/ssr/_f5316e67._.js +0 -3
  307. package/web/.next/server/chunks/ssr/_f5316e67._.js.map +0 -1
  308. package/web/.next/server/chunks/ssr/src_presentation_web_components_a5e6c910._.js +0 -3
  309. package/web/.next/server/chunks/ssr/src_presentation_web_components_a5e6c910._.js.map +0 -1
  310. package/web/.next/static/chunks/17fd217453792496.js +0 -11
  311. package/web/.next/static/chunks/33479aee057faf05.js +0 -1
  312. package/web/.next/static/chunks/3a806cf059241bc9.js +0 -1
  313. package/web/.next/static/chunks/3c962e81416806a3.js +0 -2
  314. package/web/.next/static/chunks/3fc8dae693118412.js +0 -1
  315. package/web/.next/static/chunks/55c131b6fc504375.js +0 -1
  316. package/web/.next/static/chunks/57b45edf86522369.css +0 -1
  317. package/web/.next/static/chunks/b1f3c0e8e9872ef8.js +0 -1
  318. package/web/.next/static/chunks/b830ce63d018922d.js +0 -1
  319. /package/web/.next/server/chunks/{[root-of-the-server]__7d63f9a4._.js.map → [root-of-the-server]__53013576._.js.map} +0 -0
  320. /package/web/.next/server/chunks/{[root-of-the-server]__a1c7c02a._.js.map → [root-of-the-server]__92078db6._.js.map} +0 -0
  321. /package/web/.next/static/{oySSHprbXXpmQhRjypXRR → Cl6Z3hNe9fIyRYkAXnEVa}/_buildManifest.js +0 -0
  322. /package/web/.next/static/{oySSHprbXXpmQhRjypXRR → Cl6Z3hNe9fIyRYkAXnEVa}/_clientMiddlewareManifest.json +0 -0
  323. /package/web/.next/static/{oySSHprbXXpmQhRjypXRR → Cl6Z3hNe9fIyRYkAXnEVa}/_ssgManifest.js +0 -0
@@ -0,0 +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;AAE3C,eAAO,MAAM,OAAO,kBAAkB,CAAC;AAEvC;;;;;;;;GAQG;AACH,wBAAsB,GAAG,CAAC,OAAO,EAAE,OAAO;;;;;;;;;;;;IAmCzC"}
@@ -0,0 +1,43 @@
1
+ import { NextResponse } from 'next/server';
2
+ export const dynamic = 'force-dynamic';
3
+ /**
4
+ * GET /api/sessions?repositoryPath=<path>&limit=<n>
5
+ *
6
+ * Returns agent sessions filtered by repository path.
7
+ * Used by the feature node sessions dropdown.
8
+ *
9
+ * Uses dynamic import to avoid tsyringe/reflect-metadata being pulled
10
+ * into the Next.js production build at compile time.
11
+ */
12
+ export async function GET(request) {
13
+ const url = new URL(request.url);
14
+ const repositoryPath = url.searchParams.get('repositoryPath');
15
+ const limit = parseInt(url.searchParams.get('limit') ?? '10', 10);
16
+ if (!repositoryPath?.trim()) {
17
+ return NextResponse.json({ error: 'repositoryPath is required' }, { status: 400 });
18
+ }
19
+ try {
20
+ const { ClaudeCodeSessionRepository } = await import('../../../../../../packages/core/src/infrastructure/services/agents/sessions/claude-code-session.repository.js');
21
+ const sessionRepo = new ClaudeCodeSessionRepository();
22
+ const sessions = await sessionRepo.list({
23
+ limit: Math.min(limit, 50),
24
+ projectPath: repositoryPath,
25
+ });
26
+ return NextResponse.json({
27
+ sessions: sessions.map((s) => ({
28
+ id: s.id,
29
+ preview: s.preview,
30
+ messageCount: s.messageCount,
31
+ firstMessageAt: s.firstMessageAt?.toISOString() ?? null,
32
+ lastMessageAt: s.lastMessageAt?.toISOString() ?? null,
33
+ createdAt: s.createdAt instanceof Date ? s.createdAt.toISOString() : s.createdAt,
34
+ projectPath: s.projectPath,
35
+ })),
36
+ });
37
+ }
38
+ catch (error) {
39
+ // eslint-disable-next-line no-console
40
+ console.error('[API] GET /api/sessions error:', error);
41
+ return NextResponse.json({ error: String(error) }, { status: 500 });
42
+ }
43
+ }
@@ -11,6 +11,8 @@ export interface BuildFeatureNodeDataOptions {
11
11
  enableEvidence?: boolean;
12
12
  /** Whether evidence is committed to the PR body (global workflow setting) */
13
13
  commitEvidence?: boolean;
14
+ /** Whether CI watch/fix loop is enabled (global workflow setting) */
15
+ ciWatchEnabled?: boolean;
14
16
  }
15
17
  /**
16
18
  * Builds a FeatureNodeData object from a Feature entity and optional AgentRun.
@@ -1 +1 @@
1
- {"version":3,"file":"build-feature-node-data.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/web/app/build-feature-node-data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAQ9E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAExE,MAAM,WAAW,2BAA2B;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kDAAkD;IAClD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,4CAA4C;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uEAAuE;IACvE,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,6EAA6E;IAC7E,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,OAAO,EAChB,GAAG,EAAE,QAAQ,GAAG,IAAI,EACpB,OAAO,CAAC,EAAE,2BAA2B,GACpC,eAAe,CA+CjB"}
1
+ {"version":3,"file":"build-feature-node-data.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/web/app/build-feature-node-data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAQ9E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAExE,MAAM,WAAW,2BAA2B;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kDAAkD;IAClD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,4CAA4C;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uEAAuE;IACvE,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,6EAA6E;IAC7E,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,qEAAqE;IACrE,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,OAAO,EAChB,GAAG,EAAE,QAAQ,GAAG,IAAI,EACpB,OAAO,CAAC,EAAE,2BAA2B,GACpC,eAAe,CAgDjB"}
@@ -28,6 +28,7 @@ export function buildFeatureNodeData(feature, run, options) {
28
28
  openPr: feature.openPr,
29
29
  ...(options?.enableEvidence != null && { enableEvidence: options.enableEvidence }),
30
30
  ...(options?.commitEvidence != null && { commitEvidence: options.commitEvidence }),
31
+ ...(options?.ciWatchEnabled != null && { ciWatchEnabled: options.ciWatchEnabled }),
31
32
  ...(options?.repositoryName && { repositoryName: options.repositoryName }),
32
33
  ...(options?.baseBranch && { baseBranch: options.baseBranch }),
33
34
  ...(options?.oneLiner && { oneLiner: options.oneLiner }),
@@ -18,6 +18,8 @@ export interface BuildGraphNodesOptions {
18
18
  enableEvidence?: boolean;
19
19
  /** Whether evidence is committed to the PR body (global workflow setting) */
20
20
  commitEvidence?: boolean;
21
+ /** Whether CI watch/fix loop is enabled (global workflow setting) */
22
+ ciWatchEnabled?: boolean;
21
23
  }
22
24
  export declare function buildGraphNodes(repositories: Repository[], featuresWithRuns: FeatureWithRun[], options?: BuildGraphNodesOptions): {
23
25
  nodes: CanvasNodeType[];
@@ -1 +1 @@
1
- {"version":3,"file":"build-graph-nodes.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/web/app/build-graph-nodes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAQ1F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAG1C,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,GAAG,EAAE,QAAQ,GAAG,IAAI,CAAC;CACtB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,sBAAsB;IACrC,uEAAuE;IACvE,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,6EAA6E;IAC7E,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,wBAAgB,eAAe,CAC7B,YAAY,EAAE,UAAU,EAAE,EAC1B,gBAAgB,EAAE,cAAc,EAAE,EAClC,OAAO,CAAC,EAAE,sBAAsB,GAC/B;IAAE,KAAK,EAAE,cAAc,EAAE,CAAC;IAAC,KAAK,EAAE,IAAI,EAAE,CAAA;CAAE,CA2F5C"}
1
+ {"version":3,"file":"build-graph-nodes.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/web/app/build-graph-nodes.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAS1F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAU1C,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,GAAG,EAAE,QAAQ,GAAG,IAAI,CAAC;CACtB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,sBAAsB;IACrC,uEAAuE;IACvE,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,6EAA6E;IAC7E,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,qEAAqE;IACrE,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,wBAAgB,eAAe,CAC7B,YAAY,EAAE,UAAU,EAAE,EAC1B,gBAAgB,EAAE,cAAc,EAAE,EAClC,OAAO,CAAC,EAAE,sBAAsB,GAC/B;IAAE,KAAK,EAAE,cAAc,EAAE,CAAC;IAAC,KAAK,EAAE,IAAI,EAAE,CAAA;CAAE,CA2F5C"}
@@ -1,6 +1,15 @@
1
+ import { createHash } from 'node:crypto';
2
+ import path from 'node:path';
1
3
  import { AgentRunStatus } from '../../../../packages/core/src/domain/generated/output.js';
2
4
  import { deriveNodeState, deriveProgress, deriveLifecycle, } from '../components/common/feature-node/derive-feature-state.js';
3
5
  import { isProcessAlive } from '../../../../packages/core/src/infrastructure/services/process/is-process-alive.js';
6
+ import { getShepHomeDir } from '../../../../packages/core/src/infrastructure/services/filesystem/shep-directory.service.js';
7
+ /** Compute the worktree path for a feature, matching WorktreeService.getWorktreePath() */
8
+ function computeWorktreePath(repoPath, branch) {
9
+ const repoHash = createHash('sha256').update(repoPath).digest('hex').slice(0, 16);
10
+ const slug = branch.replace(/\//g, '-');
11
+ return path.join(getShepHomeDir(), 'repos', repoHash, 'wt', slug).replace(/\\/g, '/');
12
+ }
4
13
  export function buildGraphNodes(repositories, featuresWithRuns, options) {
5
14
  // Normalize path separators so Windows backslash paths match forward-slash paths
6
15
  const normalizePath = (p) => p.replace(/\\/g, '/');
@@ -97,6 +106,7 @@ function appendFeatureNodes(repoFeatures, repoNodeId, allFeaturesWithRuns, nodes
97
106
  lifecycle: deriveLifecycle(feature, run),
98
107
  repositoryPath: feature.repositoryPath,
99
108
  branch: feature.branch,
109
+ worktreePath: feature.worktreePath ?? computeWorktreePath(feature.repositoryPath, feature.branch),
100
110
  specPath: feature.specPath,
101
111
  state: deriveNodeState(feature, run, pidAlive !== undefined ? { isPidAlive: pidAlive } : undefined),
102
112
  progress: deriveProgress(feature),
@@ -109,6 +119,7 @@ function appendFeatureNodes(repoFeatures, repoNodeId, allFeaturesWithRuns, nodes
109
119
  openPr: feature.openPr,
110
120
  ...(options?.enableEvidence != null && { enableEvidence: options.enableEvidence }),
111
121
  ...(options?.commitEvidence != null && { commitEvidence: options.commitEvidence }),
122
+ ...(options?.ciWatchEnabled != null && { ciWatchEnabled: options.ciWatchEnabled }),
112
123
  ...(repoName && { repositoryName: repoName }),
113
124
  ...(run?.agentType && { agentType: run.agentType }),
114
125
  ...(run?.modelId && { modelId: run.modelId }),
@@ -31,6 +31,7 @@ export interface FeatureCreatePayload {
31
31
  };
32
32
  push: boolean;
33
33
  openPr: boolean;
34
+ ciWatchEnabled: boolean;
34
35
  enableEvidence: boolean;
35
36
  commitEvidence: boolean;
36
37
  parentId?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"feature-create-drawer.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAO5E,YAAY,EAAE,cAAc,EAAE,MAAM,0DAA0D,CAAC;AAE/F,uFAAuF;AACvF,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,0DAA0D;AAC1D,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd;AAED,iEAAiE;AACjE,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,cAAc,EAAE,CAAC;IAC9B,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE;QACb,QAAQ,EAAE,OAAO,CAAC;QAClB,SAAS,EAAE,OAAO,CAAC;QACnB,UAAU,EAAE,OAAO,CAAC;KACrB,CAAC;IACF,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,cAAc,EAAE,OAAO,CAAC;IACxB,cAAc,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,0EAA0E;IAC1E,IAAI,EAAE,OAAO,CAAC;IACd,wDAAwD;IACxD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mDAAmD;IACnD,KAAK,CAAC,EAAE,M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.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAO5E,YAAY,EAAE,cAAc,EAAE,MAAM,0DAA0D,CAAC;AAE/F,uFAAuF;AACvF,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,0DAA0D;AAC1D,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd;AAED,iEAAiE;AACjE,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,cAAc,EAAE,CAAC;IAC9B,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE;QACb,QAAQ,EAAE,OAAO,CAAC;QAClB,SAAS,EAAE,OAAO,CAAC;QACnB,UAAU,EAAE,OAAO,CAAC;KACrB,CAAC;IACF,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,cAAc,EAAE,OAAO,CAAC;IACxB,cAAc,EAAE,OAAO,CAAC;IACxB,cAAc,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,0EAA0E;IAC1E,IAAI,EAAE,OAAO,CAAC;IACd,wDAAwD;IACxD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mDAAmD;IACnD,KAAK,CAAC,EAAE,MAA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ateDrawer({ open, onClose, onSubmit, repositoryPath, i
98
98
  const defaultGates = workflowDefaults?.approvalGates ?? EMPTY_GATES;
99
99
  const defaultPush = workflowDefaults?.push ?? false;
100
100
  const defaultOpenPr = workflowDefaults?.openPr ?? false;
101
+ const defaultCiWatch = workflowDefaults?.ciWatchEnabled !== false;
101
102
  const defaultEnableEvidence = workflowDefaults?.enableEvidence ?? false;
102
103
  const defaultCommitEvidence = workflowDefaults?.commitEvidence ?? false;
103
104
  const [description, setDescription] = useState('');
@@ -105,6 +106,7 @@ export function FeatureCreateDrawer({ open, onClose, onSubmit, repositoryPath, i
105
106
  const [approvalGates, setApprovalGates] = useState({ ...defaultGates });
106
107
  const [push, setPush] = useState(defaultPush);
107
108
  const [openPr, setOpenPr] = useState(defaultOpenPr);
109
+ const [ciWatchEnabled, setCiWatchEnabled] = useState(workflowDefaults?.ciWatchEnabled !== false);
108
110
  const [enableEvidence, setEnableEvidence] = useState(defaultEnableEvidence);
109
111
  const [commitEvidence, setCommitEvidence] = useState(defaultCommitEvidence);
110
112
  const [parentId, setParentId] = useState(undefined);
@@ -126,6 +128,7 @@ export function FeatureCreateDrawer({ open, onClose, onSubmit, repositoryPath, i
126
128
  setApprovalGates({ ...workflowDefaults.approvalGates });
127
129
  setPush(workflowDefaults.push);
128
130
  setOpenPr(workflowDefaults.openPr);
131
+ setCiWatchEnabled(workflowDefaults.ciWatchEnabled !== false);
129
132
  setEnableEvidence(workflowDefaults.enableEvidence);
130
133
  setCommitEvidence(workflowDefaults.commitEvidence);
131
134
  }
@@ -146,6 +149,7 @@ export function FeatureCreateDrawer({ open, onClose, onSubmit, repositoryPath, i
146
149
  setApprovalGates({ ...defaultGates });
147
150
  setPush(defaultPush);
148
151
  setOpenPr(defaultOpenPr);
152
+ setCiWatchEnabled(defaultCiWatch);
149
153
  setEnableEvidence(defaultEnableEvidence);
150
154
  setCommitEvidence(defaultCommitEvidence);
151
155
  setParentId(undefined);
@@ -162,6 +166,7 @@ export function FeatureCreateDrawer({ open, onClose, onSubmit, repositoryPath, i
162
166
  defaultPush,
163
167
  defaultOpenPr,
164
168
  defaultEnableEvidence,
169
+ defaultCiWatch,
165
170
  defaultCommitEvidence,
166
171
  repositoryPath,
167
172
  repositories,
@@ -296,6 +301,7 @@ export function FeatureCreateDrawer({ open, onClose, onSubmit, repositoryPath, i
296
301
  },
297
302
  push: push || openPr,
298
303
  openPr,
304
+ ciWatchEnabled,
299
305
  enableEvidence,
300
306
  commitEvidence,
301
307
  fast,
@@ -315,6 +321,7 @@ export function FeatureCreateDrawer({ open, onClose, onSubmit, repositoryPath, i
315
321
  push,
316
322
  openPr,
317
323
  enableEvidence,
324
+ ciWatchEnabled,
318
325
  commitEvidence,
319
326
  fast,
320
327
  overrideAgent,
@@ -431,7 +438,7 @@ export function FeatureCreateDrawer({ open, onClose, onSubmit, repositoryPath, i
431
438
  setOpenPr(v);
432
439
  if (!v)
433
440
  setCommitEvidence(false);
434
- }, disabled: isSubmitting }), _jsx(Label, { htmlFor: "open-pr", className: "cursor-pointer text-xs font-medium", children: "PR" })] }) }), _jsx(TooltipContent, { side: "bottom", children: "Open a pull request after pushing." })] })] })] })] })] }) }) }) }));
441
+ }, disabled: isSubmitting }), _jsx(Label, { htmlFor: "open-pr", className: "cursor-pointer text-xs font-medium", children: "PR" })] }) }), _jsx(TooltipContent, { side: "bottom", children: "Open a pull request after pushing." })] }), _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsxs("div", { className: "flex cursor-pointer items-center gap-1.5", children: [_jsx(Switch, { id: "ci-watch", size: "sm", checked: ciWatchEnabled, onCheckedChange: setCiWatchEnabled, disabled: isSubmitting }), _jsx(Label, { htmlFor: "ci-watch", className: "cursor-pointer text-xs font-medium", children: "Watch" })] }) }), _jsx(TooltipContent, { side: "bottom", children: "Watch CI and auto-fix after push." })] })] })] })] })] }) }) }) }));
435
442
  }
436
443
  function ParentFeatureCombobox({ features, value, onChange, disabled, }) {
437
444
  const [open, setOpen] = useState(false);
@@ -1 +1 @@
1
- {"version":3,"file":"feature-create-drawer.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAU9D;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,mBAAmB,CAgC1C,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAmDlD,uFAAuF;AACvF,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,SAAS,EAAE,KAiBvB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAMhC,CAAC;AAEF,4DAA4D;AAC5D,eAAO,MAAM,SAAS,EAAE,KAMvB,CAAC;AAMF;;;GAGG;AACH,eAAO,MAAM,YAAY,EAAE,KAM1B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,UAAU,EAAE,KAUxB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,OAAO,EAAE,KAUrB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,SAAS,EAAE,KAUvB,CAAC;AAMF;;;GAGG;AACH,eAAO,MAAM,QAAQ,EAAE,KAUtB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,SAAS,EAAE,KAUvB,CAAC;AAMF;;;;GAIG;AACH,eAAO,MAAM,WAAW,EAAE,KAMzB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,UAAU,EAAE,KAUxB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,EAAE,KAgBjC,CAAC;AAcF;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAWlC,CAAC;AAkDF,+EAA+E;AAC/E,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAC;AAwCF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAM/B,CAAC;AAMF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE,KAgBjC,CAAC;AAMF;;;;GAIG;AACH,eAAO,MAAM,aAAa,EAAE,KAY3B,CAAC;AAMF,eAAO,MAAM,WAAW,EAAE,KAwCzB,CAAC;AAuCF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAM9B,CAAC;AA6BF;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,EAAE,KAMnC,CAAC"}
1
+ {"version":3,"file":"feature-create-drawer.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAU9D;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,mBAAmB,CAgC1C,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAmDlD,uFAAuF;AACvF,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,SAAS,EAAE,KAiBvB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAMhC,CAAC;AAEF,4DAA4D;AAC5D,eAAO,MAAM,SAAS,EAAE,KAMvB,CAAC;AAMF;;;GAGG;AACH,eAAO,MAAM,YAAY,EAAE,KAM1B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,UAAU,EAAE,KAUxB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,OAAO,EAAE,KAUrB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,SAAS,EAAE,KAUvB,CAAC;AAMF;;;GAGG;AACH,eAAO,MAAM,QAAQ,EAAE,KAUtB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,SAAS,EAAE,KAUvB,CAAC;AAMF;;;;GAIG;AACH,eAAO,MAAM,WAAW,EAAE,KAMzB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,UAAU,EAAE,KAUxB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,EAAE,KAgBjC,CAAC;AAeF;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAWlC,CAAC;AAkDF,+EAA+E;AAC/E,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAC;AAwCF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAM/B,CAAC;AAMF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE,KAgBjC,CAAC;AAMF;;;;GAIG;AACH,eAAO,MAAM,aAAa,EAAE,KAY3B,CAAC;AAMF,eAAO,MAAM,WAAW,EAAE,KAwCzB,CAAC;AAuCF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAM9B,CAAC;AA6BF;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,EAAE,KAMnC,CAAC"}
@@ -268,6 +268,7 @@ const SAMPLE_WORKFLOW_DEFAULTS = {
268
268
  approvalGates: { allowPrd: true, allowPlan: true, allowMerge: false },
269
269
  push: true,
270
270
  openPr: true,
271
+ ciWatchEnabled: true,
271
272
  enableEvidence: true,
272
273
  commitEvidence: false,
273
274
  };
@@ -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,EAOL,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,OAAO,GACP,UAAU,CAAC;AAEf,MAAM,MAAM,qBAAqB,GAC7B,cAAc,GACd,UAAU,GACV,gBAAgB,GAChB,QAAQ,GACR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ACvB;AAED,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,eAAe,EAAE,aAAa,CAAC,CAAC;AAEnE,MAAM,WAAW,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,CAuEnF,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,EAOL,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,OAAO,GACP,UAAU,CAAC;AAEf,MAAM,MAAM,qBAAqB,GAC7B,cAAc,GACd,UAAU,GACV,gBAAgB,GAChB,QAAQ,GACR,QAAQ,GACR,UAAU,CAAC;AAEf,0DAA0D;AAC1D,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,qBAAqB,EAAE,MAAM,CAOxE,CAAC;AAEF,gFAAgF;AAChF,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,qBAAqB,EAAE,MAAM,CAOvE,CAAC;AAEF,MAAM,WAAW,eAAe;IAC9B,CAAC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AAE,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,CAuEnF,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":"AAwBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AA0DnE,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,2CAsTA"}
1
+ {"version":3,"file":"feature-node.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-node/feature-node.tsx"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AA2DnE,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,2CA2TA"}
@@ -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 });
@@ -82,7 +83,7 @@ export function FeatureNode({ data, selected, }) {
82
83
  ? 'bg-blue-50 text-blue-700'
83
84
  : '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
84
85
  ? 'Deploying...'
85
- : (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: (() => {
86
+ : (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: (() => {
86
87
  const override = getActionRequiredBadgeClasses(data);
87
88
  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);
88
89
  })(), children: [(() => {
@@ -0,0 +1,16 @@
1
+ export interface SessionSummary {
2
+ id: string;
3
+ preview: string | null;
4
+ messageCount: number;
5
+ firstMessageAt: string | null;
6
+ lastMessageAt: string | null;
7
+ createdAt: string | null;
8
+ projectPath: string;
9
+ }
10
+ interface FeatureSessionsDropdownProps {
11
+ repositoryPath: string;
12
+ className?: string;
13
+ }
14
+ export declare function FeatureSessionsDropdown({ repositoryPath, className, }: FeatureSessionsDropdownProps): import("react/jsx-runtime").JSX.Element;
15
+ export {};
16
+ //# 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":"AA4BA,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,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;CACrB;AAED,UAAU,4BAA4B;IACpC,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAmDD,wBAAgB,uBAAuB,CAAC,EACtC,cAAc,EACd,SAAS,GACV,EAAE,4BAA4B,2CA0N9B"}
@@ -0,0 +1,134 @@
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, } 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
+ const ACTIVE_THRESHOLD_MS = 5 * 60 * 1000; // 5 minutes
9
+ const PREVIEW_COUNT = 3;
10
+ function isSessionActive(session) {
11
+ if (!session.lastMessageAt)
12
+ return false;
13
+ return Date.now() - new Date(session.lastMessageAt).getTime() < ACTIVE_THRESHOLD_MS;
14
+ }
15
+ function formatRelativeTime(dateStr) {
16
+ const date = new Date(dateStr);
17
+ const now = new Date();
18
+ const diffMs = now.getTime() - date.getTime();
19
+ const diffMins = Math.floor(diffMs / 60_000);
20
+ const diffHours = Math.floor(diffMs / 3_600_000);
21
+ const diffDays = Math.floor(diffMs / 86_400_000);
22
+ if (diffMins < 1)
23
+ return 'just now';
24
+ if (diffMins < 60)
25
+ return `${diffMins}m ago`;
26
+ if (diffHours < 24)
27
+ return `${diffHours}h ago`;
28
+ if (diffDays < 7)
29
+ return `${diffDays}d ago`;
30
+ return date.toLocaleDateString();
31
+ }
32
+ function truncatePreview(preview, maxLength = 45) {
33
+ if (!preview)
34
+ return 'No preview';
35
+ if (preview.length <= maxLength)
36
+ return preview;
37
+ return `${preview.slice(0, maxLength)}...`;
38
+ }
39
+ async function copyToClipboard(text) {
40
+ try {
41
+ await navigator.clipboard.writeText(text);
42
+ }
43
+ catch {
44
+ const textarea = document.createElement('textarea');
45
+ textarea.value = text;
46
+ textarea.style.position = 'fixed';
47
+ textarea.style.opacity = '0';
48
+ document.body.appendChild(textarea);
49
+ textarea.select();
50
+ document.execCommand('copy');
51
+ document.body.removeChild(textarea);
52
+ }
53
+ }
54
+ /** Stop both click and pointerDown from reaching React Flow's node selection handler */
55
+ function stopNodeEvent(e) {
56
+ e.stopPropagation();
57
+ }
58
+ export function FeatureSessionsDropdown({ repositoryPath, className, }) {
59
+ const [sessions, setSessions] = useState([]);
60
+ const [loading, setLoading] = useState(false);
61
+ const [fetched, setFetched] = useState(false);
62
+ const [hasActiveSessions, setHasActiveSessions] = useState(false);
63
+ const [expanded, setExpanded] = useState(false);
64
+ const prevPathRef = useRef(repositoryPath);
65
+ // Reset when path changes
66
+ useEffect(() => {
67
+ if (prevPathRef.current !== repositoryPath) {
68
+ prevPathRef.current = repositoryPath;
69
+ setSessions([]);
70
+ setFetched(false);
71
+ setHasActiveSessions(false);
72
+ setExpanded(false);
73
+ }
74
+ }, [repositoryPath]);
75
+ // Fetch sessions on mount. Fast because we only scan the matching project directory.
76
+ // Populates count badge + active indicator, and pre-loads the dropdown.
77
+ useEffect(() => {
78
+ let cancelled = false;
79
+ const params = new URLSearchParams({ repositoryPath, limit: '10' });
80
+ fetch(`/api/sessions?${params.toString()}`)
81
+ .then((res) => (res.ok ? res.json() : null))
82
+ .then((data) => {
83
+ if (!cancelled && data?.sessions) {
84
+ setSessions(data.sessions);
85
+ setHasActiveSessions(data.sessions.some(isSessionActive));
86
+ setFetched(true);
87
+ }
88
+ })
89
+ .catch(() => undefined);
90
+ return () => {
91
+ cancelled = true;
92
+ };
93
+ }, [repositoryPath]);
94
+ // Re-fetch on dropdown open if not already loaded (e.g. path changed)
95
+ const doFetch = useCallback(async () => {
96
+ if (fetched)
97
+ return;
98
+ setLoading(true);
99
+ try {
100
+ const params = new URLSearchParams({ repositoryPath, limit: '10' });
101
+ const res = await fetch(`/api/sessions?${params.toString()}`);
102
+ if (res.ok) {
103
+ const data = (await res.json());
104
+ setSessions(data.sessions);
105
+ setHasActiveSessions(data.sessions.some(isSessionActive));
106
+ }
107
+ }
108
+ catch {
109
+ // Silently fail
110
+ }
111
+ finally {
112
+ setLoading(false);
113
+ setFetched(true);
114
+ }
115
+ }, [repositoryPath, fetched]);
116
+ const handleOpenChange = useCallback((open) => {
117
+ if (open)
118
+ void doFetch();
119
+ }, [doFetch]);
120
+ const visibleSessions = expanded ? sessions : sessions.slice(0, PREVIEW_COUNT);
121
+ const hasMore = sessions.length > PREVIEW_COUNT;
122
+ 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
123
+ ? 'text-emerald-600 hover:bg-emerald-50 hover:text-emerald-700'
124
+ : '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-72", 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) => {
125
+ const active = isSessionActive(session);
126
+ return (_jsxs(DropdownMenuSub, { children: [_jsxs(DropdownMenuSubTrigger, { className: "flex flex-col items-start gap-1 py-2", children: [_jsxs("div", { className: "flex w-full items-center gap-1.5", children: [active ? (_jsx("span", { className: "h-1.5 w-1.5 shrink-0 rounded-full bg-emerald-500" })) : null, _jsx("span", { className: "min-w-0 flex-1 truncate text-xs", children: truncatePreview(session.preview) })] }), _jsxs("div", { className: "text-muted-foreground flex w-full items-center gap-3 text-[10px]", 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 w-3" }), "Copy resume command"] }), _jsxs(DropdownMenuItem, { className: "gap-2 text-xs", onClick: () => void copyToClipboard(session.id), children: [_jsx(Copy, { className: "h-3 w-3" }), "Copy session ID"] }), _jsxs(DropdownMenuItem, { className: "gap-2 text-xs", onClick: () => {
127
+ const vscodeUri = `vscode://file${repositoryPath}`;
128
+ window.open(vscodeUri, '_blank');
129
+ }, children: [_jsx(ExternalLink, { className: "h-3 w-3" }), "Open in IDE"] })] }) })] }, session.id));
130
+ }), hasMore ? (_jsxs(DropdownMenuItem, { className: "text-muted-foreground justify-center gap-1 py-1.5 text-[10px]", onClick: (e) => {
131
+ e.preventDefault();
132
+ setExpanded((v) => !v);
133
+ }, children: [_jsx(ChevronDown, { className: cn('h-3 w-3 transition-transform', expanded && 'rotate-180') }), expanded ? 'Show less' : `Show ${sessions.length - PREVIEW_COUNT} more`] })) : null] }))] })] }));
134
+ }
@@ -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
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"repository-node.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/repository-node/repository-node.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAGnE,wBAAgB,cAAc,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,kBAAkB,CAAC;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,2CAkP5F"}
1
+ {"version":3,"file":"repository-node.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/repository-node/repository-node.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAInE,wBAAgB,cAAc,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,kBAAkB,CAAC;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,2CAmP5F"}