@shepai/cli 1.116.3 → 1.117.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 (271) hide show
  1. package/apis/json-schema/AnalyzeRepoTimeouts.yaml +10 -0
  2. package/apis/json-schema/SdlcLifecycle.yaml +1 -0
  3. package/apis/json-schema/StageTimeouts.yaml +35 -0
  4. package/apis/json-schema/WorkflowConfig.yaml +6 -0
  5. package/dist/packages/core/src/application/use-cases/features/create/create-feature.use-case.d.ts.map +1 -1
  6. package/dist/packages/core/src/application/use-cases/features/create/create-feature.use-case.js +17 -8
  7. package/dist/packages/core/src/application/use-cases/features/create/types.d.ts +2 -0
  8. package/dist/packages/core/src/application/use-cases/features/create/types.d.ts.map +1 -1
  9. package/dist/packages/core/src/application/use-cases/features/start-feature.use-case.d.ts +25 -0
  10. package/dist/packages/core/src/application/use-cases/features/start-feature.use-case.d.ts.map +1 -0
  11. package/dist/packages/core/src/application/use-cases/features/start-feature.use-case.js +116 -0
  12. package/dist/packages/core/src/domain/generated/output.d.ts +47 -0
  13. package/dist/packages/core/src/domain/generated/output.d.ts.map +1 -1
  14. package/dist/packages/core/src/domain/generated/output.js +1 -0
  15. package/dist/packages/core/src/domain/lifecycle-gates.d.ts +3 -0
  16. package/dist/packages/core/src/domain/lifecycle-gates.d.ts.map +1 -1
  17. package/dist/packages/core/src/domain/lifecycle-gates.js +3 -0
  18. package/dist/packages/core/src/infrastructure/di/container.d.ts.map +1 -1
  19. package/dist/packages/core/src/infrastructure/di/container.js +5 -0
  20. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/settings.mapper.d.ts +7 -0
  21. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/settings.mapper.d.ts.map +1 -1
  22. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/settings.mapper.js +44 -0
  23. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/035-add-stage-timeout-ms.d.ts +22 -0
  24. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/035-add-stage-timeout-ms.d.ts.map +1 -0
  25. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/035-add-stage-timeout-ms.js +53 -0
  26. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations.d.ts.map +1 -1
  27. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations.js +15 -6
  28. package/dist/packages/core/src/infrastructure/repositories/sqlite-settings.repository.d.ts.map +1 -1
  29. package/dist/packages/core/src/infrastructure/repositories/sqlite-settings.repository.js +15 -0
  30. package/dist/packages/core/src/infrastructure/services/agents/analyze-repo/analyze-repository-graph.d.ts.map +1 -1
  31. package/dist/packages/core/src/infrastructure/services/agents/analyze-repo/analyze-repository-graph.js +15 -0
  32. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/node-helpers.d.ts +11 -1
  33. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/node-helpers.d.ts.map +1 -1
  34. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/node-helpers.js +42 -3
  35. package/dist/src/presentation/cli/commands/feat/index.d.ts.map +1 -1
  36. package/dist/src/presentation/cli/commands/feat/index.js +2 -0
  37. package/dist/src/presentation/cli/commands/feat/ls.command.d.ts.map +1 -1
  38. package/dist/src/presentation/cli/commands/feat/ls.command.js +3 -0
  39. package/dist/src/presentation/cli/commands/feat/new.command.d.ts.map +1 -1
  40. package/dist/src/presentation/cli/commands/feat/new.command.js +9 -1
  41. package/dist/src/presentation/cli/commands/feat/start.command.d.ts +12 -0
  42. package/dist/src/presentation/cli/commands/feat/start.command.d.ts.map +1 -0
  43. package/dist/src/presentation/cli/commands/feat/start.command.js +43 -0
  44. package/dist/src/presentation/web/app/actions/create-feature.d.ts +2 -0
  45. package/dist/src/presentation/web/app/actions/create-feature.d.ts.map +1 -1
  46. package/dist/src/presentation/web/app/actions/create-feature.js +3 -1
  47. package/dist/src/presentation/web/app/actions/start-feature.d.ts +5 -0
  48. package/dist/src/presentation/web/app/actions/start-feature.d.ts.map +1 -0
  49. package/dist/src/presentation/web/app/actions/start-feature.js +16 -0
  50. package/dist/src/presentation/web/app/api/agent-events/route.d.ts.map +1 -1
  51. package/dist/src/presentation/web/app/api/agent-events/route.js +1 -0
  52. package/dist/src/presentation/web/components/common/base-drawer/base-drawer.js +1 -1
  53. package/dist/src/presentation/web/components/common/base-drawer/base-drawer.stories.js +1 -1
  54. package/dist/src/presentation/web/components/common/control-center-drawer/feature-drawer-client.d.ts.map +1 -1
  55. package/dist/src/presentation/web/components/common/control-center-drawer/feature-drawer-client.js +20 -1
  56. package/dist/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.d.ts +2 -0
  57. package/dist/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.d.ts.map +1 -1
  58. package/dist/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.js +6 -2
  59. package/dist/src/presentation/web/components/common/feature-node/derive-feature-state.d.ts.map +1 -1
  60. package/dist/src/presentation/web/components/common/feature-node/derive-feature-state.js +6 -0
  61. package/dist/src/presentation/web/components/common/feature-node/feature-node-state-config.d.ts +3 -2
  62. package/dist/src/presentation/web/components/common/feature-node/feature-node-state-config.d.ts.map +1 -1
  63. package/dist/src/presentation/web/components/common/feature-node/feature-node-state-config.js +13 -1
  64. package/dist/src/presentation/web/components/common/feature-node/feature-node.d.ts.map +1 -1
  65. package/dist/src/presentation/web/components/common/feature-node/feature-node.js +12 -3
  66. package/dist/src/presentation/web/components/common/feature-node/feature-node.stories.d.ts +2 -0
  67. package/dist/src/presentation/web/components/common/feature-node/feature-node.stories.d.ts.map +1 -1
  68. package/dist/src/presentation/web/components/common/feature-node/feature-node.stories.js +36 -2
  69. package/dist/src/presentation/web/components/features/control-center/control-center-inner.d.ts.map +1 -1
  70. package/dist/src/presentation/web/components/features/control-center/control-center-inner.js +3 -1
  71. package/dist/src/presentation/web/components/features/control-center/use-control-center-state.d.ts +1 -0
  72. package/dist/src/presentation/web/components/features/control-center/use-control-center-state.d.ts.map +1 -1
  73. package/dist/src/presentation/web/components/features/control-center/use-control-center-state.js +23 -0
  74. package/dist/src/presentation/web/components/features/settings/settings-page-client.d.ts.map +1 -1
  75. package/dist/src/presentation/web/components/features/settings/settings-page-client.js +75 -2
  76. package/dist/src/presentation/web/components/features/settings/settings-page-client.stories.d.ts +1 -0
  77. package/dist/src/presentation/web/components/features/settings/settings-page-client.stories.d.ts.map +1 -1
  78. package/dist/src/presentation/web/components/features/settings/settings-page-client.stories.js +23 -0
  79. package/dist/src/presentation/web/components/features/settings/timeout-slider.d.ts +11 -0
  80. package/dist/src/presentation/web/components/features/settings/timeout-slider.d.ts.map +1 -0
  81. package/dist/src/presentation/web/components/features/settings/timeout-slider.js +63 -0
  82. package/dist/src/presentation/web/components/features/settings/timeout-slider.stories.d.ts +10 -0
  83. package/dist/src/presentation/web/components/features/settings/timeout-slider.stories.d.ts.map +1 -0
  84. package/dist/src/presentation/web/components/features/settings/timeout-slider.stories.js +24 -0
  85. package/dist/src/presentation/web/components/features/settings/workflow-settings-section.d.ts.map +1 -1
  86. package/dist/src/presentation/web/components/features/settings/workflow-settings-section.js +97 -2
  87. package/dist/src/presentation/web/components/features/settings/workflow-settings-section.stories.d.ts.map +1 -1
  88. package/dist/src/presentation/web/components/features/settings/workflow-settings-section.stories.js +22 -0
  89. package/dist/src/presentation/web/components/ui/slider.d.ts +5 -0
  90. package/dist/src/presentation/web/components/ui/slider.d.ts.map +1 -0
  91. package/dist/src/presentation/web/components/ui/slider.js +10 -0
  92. package/dist/src/presentation/web/components/ui/slider.stories.d.ts +7 -0
  93. package/dist/src/presentation/web/components/ui/slider.stories.d.ts.map +1 -0
  94. package/dist/src/presentation/web/components/ui/slider.stories.js +15 -0
  95. package/dist/src/presentation/web/hooks/sidebar-features-context.d.ts.map +1 -1
  96. package/dist/src/presentation/web/hooks/sidebar-features-context.js +1 -0
  97. package/dist/src/presentation/web/hooks/use-graph-state.d.ts.map +1 -1
  98. package/dist/src/presentation/web/hooks/use-graph-state.js +1 -0
  99. package/dist/src/presentation/web/lib/derive-graph.d.ts +2 -0
  100. package/dist/src/presentation/web/lib/derive-graph.d.ts.map +1 -1
  101. package/dist/src/presentation/web/lib/derive-graph.js +5 -0
  102. package/dist/tsconfig.build.tsbuildinfo +1 -1
  103. package/package.json +1 -1
  104. package/web/.next/BUILD_ID +1 -1
  105. package/web/.next/build-manifest.json +2 -2
  106. package/web/.next/fallback-build-manifest.json +2 -2
  107. package/web/.next/prerender-manifest.json +3 -3
  108. package/web/.next/required-server-files.js +2 -2
  109. package/web/.next/required-server-files.json +2 -2
  110. package/web/.next/server/app/(dashboard)/@drawer/create/page/server-reference-manifest.json +55 -40
  111. package/web/.next/server/app/(dashboard)/@drawer/create/page.js +1 -1
  112. package/web/.next/server/app/(dashboard)/@drawer/create/page.js.nft.json +1 -1
  113. package/web/.next/server/app/(dashboard)/@drawer/create/page_client-reference-manifest.js +1 -1
  114. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page/server-reference-manifest.json +67 -52
  115. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js +1 -1
  116. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js.nft.json +1 -1
  117. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
  118. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/server-reference-manifest.json +67 -52
  119. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js +1 -1
  120. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js.nft.json +1 -1
  121. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page_client-reference-manifest.js +1 -1
  122. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/server-reference-manifest.json +51 -36
  123. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js +1 -1
  124. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js.nft.json +1 -1
  125. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  126. package/web/.next/server/app/(dashboard)/create/page/server-reference-manifest.json +55 -40
  127. package/web/.next/server/app/(dashboard)/create/page.js +1 -1
  128. package/web/.next/server/app/(dashboard)/create/page.js.nft.json +1 -1
  129. package/web/.next/server/app/(dashboard)/create/page_client-reference-manifest.js +1 -1
  130. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page/server-reference-manifest.json +67 -52
  131. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js +1 -1
  132. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js.nft.json +1 -1
  133. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
  134. package/web/.next/server/app/(dashboard)/feature/[featureId]/page/server-reference-manifest.json +67 -52
  135. package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js +1 -1
  136. package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js.nft.json +1 -1
  137. package/web/.next/server/app/(dashboard)/feature/[featureId]/page_client-reference-manifest.js +1 -1
  138. package/web/.next/server/app/(dashboard)/page/server-reference-manifest.json +51 -36
  139. package/web/.next/server/app/(dashboard)/page.js +1 -1
  140. package/web/.next/server/app/(dashboard)/page.js.nft.json +1 -1
  141. package/web/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
  142. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/server-reference-manifest.json +51 -36
  143. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js +1 -1
  144. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js.nft.json +1 -1
  145. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  146. package/web/.next/server/app/_global-error.html +2 -2
  147. package/web/.next/server/app/_global-error.rsc +1 -1
  148. package/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  149. package/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  150. package/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  151. package/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  152. package/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  153. package/web/.next/server/app/_not-found/page/server-reference-manifest.json +1 -1
  154. package/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  155. package/web/.next/server/app/api/attachments/preview/route.js.nft.json +1 -1
  156. package/web/.next/server/app/api/evidence/route.js.nft.json +1 -1
  157. package/web/.next/server/app/settings/page/server-reference-manifest.json +5 -5
  158. package/web/.next/server/app/settings/page.js.nft.json +1 -1
  159. package/web/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  160. package/web/.next/server/app/skills/page/server-reference-manifest.json +6 -6
  161. package/web/.next/server/app/skills/page.js.nft.json +1 -1
  162. package/web/.next/server/app/skills/page_client-reference-manifest.js +1 -1
  163. package/web/.next/server/app/tools/page/server-reference-manifest.json +6 -6
  164. package/web/.next/server/app/tools/page.js.nft.json +1 -1
  165. package/web/.next/server/app/tools/page_client-reference-manifest.js +1 -1
  166. package/web/.next/server/app/version/page/server-reference-manifest.json +1 -1
  167. package/web/.next/server/app/version/page_client-reference-manifest.js +1 -1
  168. package/web/.next/server/chunks/403f9_next_dist_esm_build_templates_app-route_370c43b1.js +1 -1
  169. package/web/.next/server/chunks/403f9_next_dist_esm_build_templates_app-route_370c43b1.js.map +1 -1
  170. package/web/.next/server/chunks/403f9_next_dist_esm_build_templates_app-route_4d623b8e.js +2 -2
  171. package/web/.next/server/chunks/403f9_next_dist_esm_build_templates_app-route_4d623b8e.js.map +1 -1
  172. package/web/.next/server/chunks/[root-of-the-server]__7d5492a0._.js +1 -1
  173. package/web/.next/server/chunks/[root-of-the-server]__7d5492a0._.js.map +1 -1
  174. package/web/.next/server/chunks/[root-of-the-server]__a402b567._.js +1 -1
  175. package/web/.next/server/chunks/[root-of-the-server]__cd67a84c._.js +1 -1
  176. package/web/.next/server/chunks/[root-of-the-server]__cd67a84c._.js.map +1 -1
  177. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js +1 -1
  178. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js.map +1 -1
  179. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_ed372306.js +3 -0
  180. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_ed372306.js.map +1 -0
  181. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_32e26434.js +3 -0
  182. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_32e26434.js.map +1 -0
  183. package/web/.next/server/chunks/ssr/[root-of-the-server]__07a39ff2._.js +1 -1
  184. package/web/.next/server/chunks/ssr/[root-of-the-server]__11033878._.js +1 -1
  185. package/web/.next/server/chunks/ssr/[root-of-the-server]__11033878._.js.map +1 -1
  186. package/web/.next/server/chunks/ssr/{[root-of-the-server]__cbd8062c._.js → [root-of-the-server]__172d9576._.js} +2 -2
  187. package/web/.next/server/chunks/ssr/{[root-of-the-server]__e70c5627._.js.map → [root-of-the-server]__172d9576._.js.map} +1 -1
  188. package/web/.next/server/chunks/ssr/[root-of-the-server]__24dd0927._.js +2 -2
  189. package/web/.next/server/chunks/ssr/[root-of-the-server]__24dd0927._.js.map +1 -1
  190. package/web/.next/server/chunks/ssr/{[root-of-the-server]__039967e3._.js → [root-of-the-server]__2a5592d5._.js} +2 -2
  191. package/web/.next/server/chunks/ssr/{[root-of-the-server]__cbd8062c._.js.map → [root-of-the-server]__2a5592d5._.js.map} +1 -1
  192. package/web/.next/server/chunks/ssr/[root-of-the-server]__5d87af2e._.js +1 -1
  193. package/web/.next/server/chunks/ssr/[root-of-the-server]__6367aea0._.js +1 -1
  194. package/web/.next/server/chunks/ssr/[root-of-the-server]__6367aea0._.js.map +1 -1
  195. package/web/.next/server/chunks/ssr/[root-of-the-server]__89e8a5cc._.js +2 -2
  196. package/web/.next/server/chunks/ssr/[root-of-the-server]__89e8a5cc._.js.map +1 -1
  197. package/web/.next/server/chunks/ssr/{[root-of-the-server]__e70c5627._.js → [root-of-the-server]__a93289b0._.js} +2 -2
  198. package/web/.next/server/chunks/ssr/{[root-of-the-server]__2773312c._.js.map → [root-of-the-server]__a93289b0._.js.map} +1 -1
  199. package/web/.next/server/chunks/ssr/[root-of-the-server]__aad040c0._.js +2 -2
  200. package/web/.next/server/chunks/ssr/[root-of-the-server]__aad040c0._.js.map +1 -1
  201. package/web/.next/server/chunks/ssr/{[root-of-the-server]__2773312c._.js → [root-of-the-server]__ac0304e7._.js} +2 -2
  202. package/web/.next/server/chunks/ssr/{[root-of-the-server]__039967e3._.js.map → [root-of-the-server]__ac0304e7._.js.map} +1 -1
  203. package/web/.next/server/chunks/ssr/[root-of-the-server]__fdc75809._.js +1 -1
  204. package/web/.next/server/chunks/ssr/[root-of-the-server]__fdc75809._.js.map +1 -1
  205. package/web/.next/server/chunks/ssr/_125679ad._.js +3 -0
  206. package/web/.next/server/chunks/ssr/_125679ad._.js.map +1 -0
  207. package/web/.next/server/chunks/ssr/_135edb9c._.js +1 -1
  208. package/web/.next/server/chunks/ssr/_135edb9c._.js.map +1 -1
  209. package/web/.next/server/chunks/ssr/_1bb131c4._.js.map +1 -1
  210. package/web/.next/server/chunks/ssr/_250a63ae._.js +1 -1
  211. package/web/.next/server/chunks/ssr/_250a63ae._.js.map +1 -1
  212. package/web/.next/server/chunks/ssr/_8dacd1e7._.js +1 -1
  213. package/web/.next/server/chunks/ssr/_8dacd1e7._.js.map +1 -1
  214. package/web/.next/server/chunks/ssr/_a8d14ab2._.js +3 -0
  215. package/web/.next/server/chunks/ssr/{_c5f84841._.js.map → _a8d14ab2._.js.map} +1 -1
  216. package/web/.next/server/chunks/ssr/_cc77a143._.js +1 -1
  217. package/web/.next/server/chunks/ssr/_cc77a143._.js.map +1 -1
  218. package/web/.next/server/chunks/ssr/{_6f0118a0._.js → _d6a1ec27._.js} +2 -2
  219. package/web/.next/server/chunks/ssr/_d6a1ec27._.js.map +1 -0
  220. package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js +1 -1
  221. package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js.map +1 -1
  222. package/web/.next/server/chunks/ssr/src_presentation_web_0835b28e._.js +5 -0
  223. package/web/.next/server/chunks/ssr/src_presentation_web_0835b28e._.js.map +1 -0
  224. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_e99d78dd.js +3 -0
  225. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_e99d78dd.js.map +1 -0
  226. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_1fa8042e.js +1 -1
  227. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_1fa8042e.js.map +1 -1
  228. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_24684200.js +1 -1
  229. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_24684200.js.map +1 -1
  230. package/web/.next/server/chunks/ssr/src_presentation_web_components_bf50c527._.js +1 -1
  231. package/web/.next/server/chunks/ssr/src_presentation_web_components_de814675._.js +1 -1
  232. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js +1 -1
  233. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js.map +1 -1
  234. package/web/.next/server/chunks/ssr/src_presentation_web_e8034a29._.js +5 -0
  235. package/web/.next/server/chunks/ssr/src_presentation_web_e8034a29._.js.map +1 -0
  236. package/web/.next/server/pages/500.html +2 -2
  237. package/web/.next/server/server-reference-manifest.js +1 -1
  238. package/web/.next/server/server-reference-manifest.json +300 -229
  239. package/web/.next/static/chunks/{c172f4a6010cb5b5.js → 2251df6427162751.js} +1 -1
  240. package/web/.next/static/chunks/2c98935265aa3622.js +2 -0
  241. package/web/.next/static/chunks/{2babc8e3ae9ba6e8.js → 34b275db4ad6fb5d.js} +1 -1
  242. package/web/.next/static/chunks/{5de387864b89e64c.js → 425894e5bf370bd2.js} +2 -2
  243. package/web/.next/static/chunks/{52285fdb39925ad5.js → 498777301470975b.js} +1 -1
  244. package/web/.next/static/chunks/50f06bb71bace452.js +1 -0
  245. package/web/.next/static/chunks/5fe03deadb83628b.js +1 -0
  246. package/web/.next/static/chunks/62a8173911f8f130.css +1 -0
  247. package/web/.next/static/chunks/{e12f41ac3d49a7b5.js → b855de1b1e5458f6.js} +1 -1
  248. package/web/.next/static/chunks/{18de73b2f14204d3.js → c76f6d06b1b69b57.js} +1 -1
  249. package/web/.next/static/chunks/e2caffa0bb759c6c.js +1 -0
  250. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_a1104008.js +0 -3
  251. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_a1104008.js.map +0 -1
  252. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_92642200.js +0 -3
  253. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_92642200.js.map +0 -1
  254. package/web/.next/server/chunks/ssr/_6f0118a0._.js.map +0 -1
  255. package/web/.next/server/chunks/ssr/_c5f84841._.js +0 -3
  256. package/web/.next/server/chunks/ssr/_d2e408a9._.js +0 -3
  257. package/web/.next/server/chunks/ssr/_d2e408a9._.js.map +0 -1
  258. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_888633e1.js +0 -3
  259. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_888633e1.js.map +0 -1
  260. package/web/.next/server/chunks/ssr/src_presentation_web_ce7cbc3c._.js +0 -5
  261. package/web/.next/server/chunks/ssr/src_presentation_web_ce7cbc3c._.js.map +0 -1
  262. package/web/.next/server/chunks/ssr/src_presentation_web_e2604413._.js +0 -5
  263. package/web/.next/server/chunks/ssr/src_presentation_web_e2604413._.js.map +0 -1
  264. package/web/.next/static/chunks/0b3ab176958a8286.js +0 -1
  265. package/web/.next/static/chunks/242446982e8d196e.js +0 -1
  266. package/web/.next/static/chunks/552e0f129144b54d.js +0 -1
  267. package/web/.next/static/chunks/57b45edf86522369.css +0 -1
  268. package/web/.next/static/chunks/7b924c47dd2a5a53.js +0 -2
  269. /package/web/.next/static/{CStnC7-QgiTd6U99YUc1N → bAT4Gm6M7U0lGmNAN3mTn}/_buildManifest.js +0 -0
  270. /package/web/.next/static/{CStnC7-QgiTd6U99YUc1N → bAT4Gm6M7U0lGmNAN3mTn}/_clientMiddlewareManifest.json +0 -0
  271. /package/web/.next/static/{CStnC7-QgiTd6U99YUc1N → bAT4Gm6M7U0lGmNAN3mTn}/_ssgManifest.js +0 -0
@@ -51,3 +51,26 @@ export const EvidenceEnabled = {
51
51
  dbFileSize: '2.4 MB',
52
52
  },
53
53
  };
54
+ export const CustomTimeouts = {
55
+ args: {
56
+ settings: {
57
+ ...defaultSettings,
58
+ workflow: {
59
+ ...defaultSettings.workflow,
60
+ stageTimeouts: {
61
+ analyzeMs: 300000,
62
+ requirementsMs: 600000,
63
+ researchMs: 900000,
64
+ planMs: 600000,
65
+ implementMs: 1800000,
66
+ mergeMs: 600000,
67
+ },
68
+ analyzeRepoTimeouts: {
69
+ analyzeMs: 300000,
70
+ },
71
+ },
72
+ },
73
+ shepHome: '/home/user/.shep',
74
+ dbFileSize: '2.4 MB',
75
+ },
76
+ };
@@ -0,0 +1,11 @@
1
+ export interface TimeoutSliderProps {
2
+ id: string;
3
+ testId: string;
4
+ /** Current value in seconds (as a string for form compatibility) */
5
+ value: string;
6
+ onChange: (value: string) => void;
7
+ onBlur: () => void;
8
+ defaultSeconds?: number;
9
+ }
10
+ export declare function TimeoutSlider({ id, testId, value, onChange, onBlur, defaultSeconds, }: TimeoutSliderProps): import("react/jsx-runtime").JSX.Element;
11
+ //# sourceMappingURL=timeout-slider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timeout-slider.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/settings/timeout-slider.tsx"],"names":[],"mappings":"AAwCA,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,oEAAoE;IACpE,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAWD,wBAAgB,aAAa,CAAC,EAC5B,EAAE,EACF,MAAM,EACN,KAAK,EACL,QAAQ,EACR,MAAM,EACN,cAAqB,GACtB,EAAE,kBAAkB,2CAyCpB"}
@@ -0,0 +1,63 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { useState, useCallback } from 'react';
4
+ import { Slider } from '../../ui/slider.js';
5
+ /** Fixed duration presets in seconds — slider snaps to these values */
6
+ const PRESETS = [
7
+ 60, // 1m
8
+ 120, // 2m
9
+ 300, // 5m
10
+ 600, // 10m
11
+ 900, // 15m
12
+ 1800, // 30m
13
+ 2700, // 45m
14
+ 3600, // 1h
15
+ 7200, // 2h
16
+ 10800, // 3h
17
+ 14400, // 4h
18
+ 21600, // 6h
19
+ 28800, // 8h
20
+ 43200, // 12h
21
+ 86400, // 24h
22
+ ];
23
+ const SLIDER_MAX = PRESETS.length - 1;
24
+ /** Find the closest preset index for a given seconds value */
25
+ function secondsToIndex(seconds) {
26
+ let closest = 0;
27
+ let minDiff = Math.abs(seconds - PRESETS[0]);
28
+ for (let i = 1; i < PRESETS.length; i++) {
29
+ const diff = Math.abs(seconds - PRESETS[i]);
30
+ if (diff < minDiff) {
31
+ minDiff = diff;
32
+ closest = i;
33
+ }
34
+ }
35
+ return closest;
36
+ }
37
+ function formatDuration(totalSeconds) {
38
+ const hours = Math.floor(totalSeconds / 3600);
39
+ const minutes = Math.round((totalSeconds % 3600) / 60);
40
+ if (hours === 0)
41
+ return `${minutes}m`;
42
+ if (minutes === 0)
43
+ return `${hours}h`;
44
+ return `${hours}h ${minutes}m`;
45
+ }
46
+ export function TimeoutSlider({ id, testId, value, onChange, onBlur, defaultSeconds = 1800, }) {
47
+ const numValue = value === '' ? defaultSeconds : parseInt(value, 10);
48
+ const seconds = numValue || defaultSeconds;
49
+ // Local index state prevents snap-back during drag — updates immediately
50
+ // without waiting for the parent to re-render with the new value.
51
+ const [localIndex, setLocalIndex] = useState(() => secondsToIndex(seconds));
52
+ // Sync from props only when the resolved index actually differs
53
+ // (e.g. external reset or server push). Avoids overwriting during drag.
54
+ const propsIndex = secondsToIndex(seconds);
55
+ if (propsIndex !== localIndex && PRESETS[localIndex] !== seconds) {
56
+ setLocalIndex(propsIndex);
57
+ }
58
+ const handleChange = useCallback(([i]) => {
59
+ setLocalIndex(i);
60
+ onChange(String(PRESETS[i]));
61
+ }, [onChange]);
62
+ return (_jsxs("div", { className: "flex w-55 items-center gap-2", children: [_jsx(Slider, { id: id, "data-testid": testId, min: 0, max: SLIDER_MAX, step: 1, value: [localIndex], onValueChange: handleChange, onValueCommit: () => onBlur(), className: "min-w-0 flex-1" }), _jsx("span", { className: "text-muted-foreground shrink-0 text-right text-xs tabular-nums", children: formatDuration(PRESETS[localIndex]) })] }));
63
+ }
@@ -0,0 +1,10 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { TimeoutSlider } from './timeout-slider.js';
3
+ declare const meta: Meta<typeof TimeoutSlider>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof TimeoutSlider>;
6
+ export declare const Default: Story;
7
+ export declare const ShortTimeout: Story;
8
+ export declare const LongTimeout: Story;
9
+ export declare const AllStages: Story;
10
+ //# sourceMappingURL=timeout-slider.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timeout-slider.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/settings/timeout-slider.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,aAAa,CAGpC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,aAAa,CAAC,CAAC;AA6B5C,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAE1B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAEzB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAWvB,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useState } from 'react';
3
+ import { TimeoutSlider } from './timeout-slider.js';
4
+ const meta = {
5
+ title: 'Features/Settings/TimeoutSlider',
6
+ component: TimeoutSlider,
7
+ };
8
+ export default meta;
9
+ function TimeoutSliderDemo({ label = 'Analyze', defaultSeconds = 1800, }) {
10
+ const [value, setValue] = useState(String(defaultSeconds));
11
+ return (_jsx("div", { style: { maxWidth: 500 }, children: _jsxs("div", { style: { display: 'flex', alignItems: 'center', justifyContent: 'space-between', gap: 16 }, children: [_jsx("span", { style: { fontSize: 14 }, children: label }), _jsx(TimeoutSlider, { id: "demo-slider", testId: "demo-slider-input", value: value, onChange: setValue, onBlur: () => undefined, defaultSeconds: defaultSeconds })] }) }));
12
+ }
13
+ export const Default = {
14
+ render: () => _jsx(TimeoutSliderDemo, {}),
15
+ };
16
+ export const ShortTimeout = {
17
+ render: () => _jsx(TimeoutSliderDemo, { label: "Analyze Repo", defaultSeconds: 600 }),
18
+ };
19
+ export const LongTimeout = {
20
+ render: () => _jsx(TimeoutSliderDemo, { label: "Implement", defaultSeconds: 5400 }),
21
+ };
22
+ export const AllStages = {
23
+ render: () => (_jsxs("div", { style: { maxWidth: 500, display: 'flex', flexDirection: 'column', gap: 16 }, children: [_jsx(TimeoutSliderDemo, { label: "Analyze", defaultSeconds: 1800 }), _jsx(TimeoutSliderDemo, { label: "Requirements", defaultSeconds: 1800 }), _jsx(TimeoutSliderDemo, { label: "Research", defaultSeconds: 1800 }), _jsx(TimeoutSliderDemo, { label: "Plan", defaultSeconds: 1800 }), _jsx(TimeoutSliderDemo, { label: "Implement", defaultSeconds: 1800 }), _jsx(TimeoutSliderDemo, { label: "Merge", defaultSeconds: 1800 })] })),
24
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"workflow-settings-section.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/settings/workflow-settings-section.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAE3E,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,EAAE,cAAc,CAAC;CAC1B;AAED,wBAAgB,uBAAuB,CAAC,EAAE,QAAQ,EAAE,EAAE,4BAA4B,2CAgQjF"}
1
+ {"version":3,"file":"workflow-settings-section.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/settings/workflow-settings-section.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAE3E,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,EAAE,cAAc,CAAC;CAC1B;AAED,wBAAgB,uBAAuB,CAAC,EAAE,QAAQ,EAAE,EAAE,4BAA4B,2CA0ajF"}
@@ -9,6 +9,7 @@ import { Input } from '../../ui/input.js';
9
9
  import { Switch } from '../../ui/switch.js';
10
10
  import { Separator } from '../../ui/separator.js';
11
11
  import { updateSettingsAction } from '../../../app/actions/update-settings.js';
12
+ import { TimeoutSlider } from '../../features/settings/timeout-slider.js';
12
13
  export function WorkflowSettingsSection({ workflow }) {
13
14
  const [openPr, setOpenPr] = useState(workflow.openPrOnImplementationComplete);
14
15
  const [pushOnComplete, setPushOnComplete] = useState(workflow.approvalGateDefaults.pushOnImplementationComplete);
@@ -18,6 +19,18 @@ export function WorkflowSettingsSection({ workflow }) {
18
19
  const [ciMaxFix, setCiMaxFix] = useState(workflow.ciMaxFixAttempts != null ? String(workflow.ciMaxFixAttempts) : '');
19
20
  const [ciTimeout, setCiTimeout] = useState(workflow.ciWatchTimeoutMs != null ? String(Math.round(workflow.ciWatchTimeoutMs / 1000)) : '');
20
21
  const [ciLogMax, setCiLogMax] = useState(workflow.ciLogMaxChars != null ? String(workflow.ciLogMaxChars) : '');
22
+ // Per-stage timeout states (seconds for display)
23
+ // Defaults: feature agent stages = 1_800_000 ms (1800s), analyze-repo = 600_000 ms (600s)
24
+ const st = workflow.stageTimeouts;
25
+ const [analyzeTimeout, setAnalyzeTimeout] = useState(String(Math.round((st?.analyzeMs ?? 1_800_000) / 1000)));
26
+ const [requirementsTimeout, setRequirementsTimeout] = useState(String(Math.round((st?.requirementsMs ?? 1_800_000) / 1000)));
27
+ const [researchTimeout, setResearchTimeout] = useState(String(Math.round((st?.researchMs ?? 1_800_000) / 1000)));
28
+ const [planTimeout, setPlanTimeout] = useState(String(Math.round((st?.planMs ?? 1_800_000) / 1000)));
29
+ const [implementTimeout, setImplementTimeout] = useState(String(Math.round((st?.implementMs ?? 1_800_000) / 1000)));
30
+ const [mergeTimeout, setMergeTimeout] = useState(String(Math.round((st?.mergeMs ?? 1_800_000) / 1000)));
31
+ // Analyze-repo agent timeout state
32
+ const art = workflow.analyzeRepoTimeouts;
33
+ const [analyzeRepoTimeout, setAnalyzeRepoTimeout] = useState(String(Math.round((art?.analyzeMs ?? 600_000) / 1000)));
21
34
  const [isPending, startTransition] = useTransition();
22
35
  const [showSaved, setShowSaved] = useState(false);
23
36
  const prevPendingRef = useRef(false);
@@ -35,6 +48,10 @@ export function WorkflowSettingsSection({ workflow }) {
35
48
  const n = parseInt(value, 10);
36
49
  return Number.isNaN(n) || n <= 0 ? undefined : n;
37
50
  }
51
+ function secondsToMs(val) {
52
+ const n = parseOptionalInt(val);
53
+ return n != null ? n * 1000 : undefined;
54
+ }
38
55
  function buildPayload(overrides = {}) {
39
56
  const timeoutSeconds = parseOptionalInt(overrides.ciTimeout ?? ciTimeout);
40
57
  return {
@@ -49,6 +66,17 @@ export function WorkflowSettingsSection({ workflow }) {
49
66
  ciMaxFixAttempts: parseOptionalInt(overrides.ciMaxFix ?? ciMaxFix),
50
67
  ciWatchTimeoutMs: timeoutSeconds != null ? timeoutSeconds * 1000 : undefined,
51
68
  ciLogMaxChars: parseOptionalInt(overrides.ciLogMax ?? ciLogMax),
69
+ stageTimeouts: {
70
+ analyzeMs: secondsToMs(overrides.analyzeTimeout ?? analyzeTimeout),
71
+ requirementsMs: secondsToMs(overrides.requirementsTimeout ?? requirementsTimeout),
72
+ researchMs: secondsToMs(overrides.researchTimeout ?? researchTimeout),
73
+ planMs: secondsToMs(overrides.planTimeout ?? planTimeout),
74
+ implementMs: secondsToMs(overrides.implementTimeout ?? implementTimeout),
75
+ mergeMs: secondsToMs(overrides.mergeTimeout ?? mergeTimeout),
76
+ },
77
+ analyzeRepoTimeouts: {
78
+ analyzeMs: secondsToMs(overrides.analyzeRepoTimeout ?? analyzeRepoTimeout),
79
+ },
52
80
  },
53
81
  };
54
82
  }
@@ -64,7 +92,7 @@ export function WorkflowSettingsSection({ workflow }) {
64
92
  setter(value);
65
93
  save({ [key]: value });
66
94
  }
67
- function handleCiFieldBlur(key, currentValue, originalValue) {
95
+ function handleFieldBlur(key, currentValue, originalValue) {
68
96
  if (currentValue !== originalValue) {
69
97
  save({ [key]: currentValue });
70
98
  }
@@ -72,5 +100,72 @@ export function WorkflowSettingsSection({ workflow }) {
72
100
  const originalCiMaxFix = workflow.ciMaxFixAttempts != null ? String(workflow.ciMaxFixAttempts) : '';
73
101
  const originalCiTimeout = workflow.ciWatchTimeoutMs != null ? String(Math.round(workflow.ciWatchTimeoutMs / 1000)) : '';
74
102
  const originalCiLogMax = workflow.ciLogMaxChars != null ? String(workflow.ciLogMaxChars) : '';
75
- return (_jsxs(Card, { id: "workflow", className: "scroll-mt-6", "data-testid": "workflow-settings-section", children: [_jsxs(CardHeader, { children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx(GitBranch, { className: "text-muted-foreground h-4 w-4" }), _jsx(CardTitle, { children: "Workflow" })] }), isPending ? _jsx("span", { className: "text-muted-foreground text-xs", children: "Saving..." }) : null, showSaved && !isPending ? (_jsxs("span", { className: "flex items-center gap-1 text-xs text-green-600", children: [_jsx(Check, { className: "h-3 w-3" }), "Saved"] })) : null] }), _jsx(CardDescription, { children: "Configure PR behavior, approval gates, and CI settings" })] }), _jsxs(CardContent, { className: "space-y-4", children: [_jsxs("div", { className: "space-y-3", children: [_jsxs("div", { className: "flex items-center justify-between gap-4", children: [_jsxs("div", { className: "space-y-0.5", children: [_jsx(Label, { htmlFor: "open-pr", children: "Open PR on implementation complete" }), _jsx("p", { className: "text-muted-foreground text-xs", children: "Automatically create a pull request when the agent finishes" })] }), _jsx(Switch, { id: "open-pr", "data-testid": "switch-open-pr", checked: openPr, onCheckedChange: (v) => handleSwitchChange('openPr', setOpenPr, v) })] }), _jsxs("div", { className: "flex items-center justify-between gap-4", children: [_jsxs("div", { className: "space-y-0.5", children: [_jsx(Label, { htmlFor: "push-on-complete", children: "Push on implementation complete" }), _jsx("p", { className: "text-muted-foreground text-xs", children: "Push the branch to remote when implementation is done" })] }), _jsx(Switch, { id: "push-on-complete", "data-testid": "switch-push-on-complete", checked: pushOnComplete, onCheckedChange: (v) => handleSwitchChange('pushOnComplete', setPushOnComplete, v) })] })] }), _jsx(Separator, {}), _jsxs("div", { className: "space-y-3", children: [_jsx("h3", { className: "text-sm font-semibold", children: "Approval Gates" }), _jsxs("div", { className: "flex items-center justify-between gap-4", children: [_jsxs("div", { className: "space-y-0.5", children: [_jsx(Label, { htmlFor: "allow-prd", children: "PRD auto-approval" }), _jsx("p", { className: "text-muted-foreground text-xs", children: "Skip manual approval for product requirement documents" })] }), _jsx(Switch, { id: "allow-prd", "data-testid": "switch-allow-prd", checked: allowPrd, onCheckedChange: (v) => handleSwitchChange('allowPrd', setAllowPrd, v) })] }), _jsxs("div", { className: "flex items-center justify-between gap-4", children: [_jsxs("div", { className: "space-y-0.5", children: [_jsx(Label, { htmlFor: "allow-plan", children: "Plan auto-approval" }), _jsx("p", { className: "text-muted-foreground text-xs", children: "Skip manual approval for implementation plans" })] }), _jsx(Switch, { id: "allow-plan", "data-testid": "switch-allow-plan", checked: allowPlan, onCheckedChange: (v) => handleSwitchChange('allowPlan', setAllowPlan, v) })] }), _jsxs("div", { className: "flex items-center justify-between gap-4", children: [_jsxs("div", { className: "space-y-0.5", children: [_jsx(Label, { htmlFor: "allow-merge", children: "Merge auto-approval" }), _jsx("p", { className: "text-muted-foreground text-xs", children: "Skip manual approval for PR merges" })] }), _jsx(Switch, { id: "allow-merge", "data-testid": "switch-allow-merge", checked: allowMerge, onCheckedChange: (v) => handleSwitchChange('allowMerge', setAllowMerge, v) })] })] }), _jsx(Separator, {}), _jsxs("div", { className: "space-y-3", children: [_jsx("h3", { className: "text-sm font-semibold", children: "CI Settings" }), _jsxs("div", { className: "space-y-1.5", children: [_jsx(Label, { htmlFor: "ci-max-fix", children: "Max fix attempts" }), _jsx(Input, { id: "ci-max-fix", "data-testid": "ci-max-fix-input", type: "text", inputMode: "numeric", pattern: "[0-9]*", min: 1, max: 10, placeholder: "e.g., 3", value: ciMaxFix, onChange: (e) => setCiMaxFix(e.target.value), onBlur: () => handleCiFieldBlur('ciMaxFix', ciMaxFix, originalCiMaxFix) }), _jsx("p", { className: "text-muted-foreground text-xs", children: "How many times the agent retries fixing CI failures" })] }), _jsxs("div", { className: "space-y-1.5", children: [_jsx(Label, { htmlFor: "ci-timeout", children: "Watch timeout (seconds)" }), _jsx(Input, { id: "ci-timeout", "data-testid": "ci-timeout-input", type: "text", inputMode: "numeric", pattern: "[0-9]*", placeholder: "e.g., 300", value: ciTimeout, onChange: (e) => setCiTimeout(e.target.value), onBlur: () => handleCiFieldBlur('ciTimeout', ciTimeout, originalCiTimeout) }), _jsx("p", { className: "text-muted-foreground text-xs", children: "How long to wait for CI to complete before timing out" })] }), _jsxs("div", { className: "space-y-1.5", children: [_jsx(Label, { htmlFor: "ci-log-max", children: "Max log characters" }), _jsx(Input, { id: "ci-log-max", "data-testid": "ci-log-max-input", type: "text", inputMode: "numeric", pattern: "[0-9]*", placeholder: "e.g., 50000", value: ciLogMax, onChange: (e) => setCiLogMax(e.target.value), onBlur: () => handleCiFieldBlur('ciLogMax', ciLogMax, originalCiLogMax) }), _jsx("p", { className: "text-muted-foreground text-xs", children: "Maximum characters to capture from CI logs" })] })] })] })] }));
103
+ const originalAnalyzeTimeout = st?.analyzeMs != null ? String(Math.round(st.analyzeMs / 1000)) : '';
104
+ const originalRequirementsTimeout = st?.requirementsMs != null ? String(Math.round(st.requirementsMs / 1000)) : '';
105
+ const originalResearchTimeout = st?.researchMs != null ? String(Math.round(st.researchMs / 1000)) : '';
106
+ const originalPlanTimeout = st?.planMs != null ? String(Math.round(st.planMs / 1000)) : '';
107
+ const originalImplementTimeout = st?.implementMs != null ? String(Math.round(st.implementMs / 1000)) : '';
108
+ const originalMergeTimeout = st?.mergeMs != null ? String(Math.round(st.mergeMs / 1000)) : '';
109
+ const originalAnalyzeRepoTimeout = art?.analyzeMs != null ? String(Math.round(art.analyzeMs / 1000)) : '';
110
+ const FEATURE_AGENT_FIELDS = [
111
+ {
112
+ key: 'analyzeTimeout',
113
+ label: 'Analyze',
114
+ defaultSeconds: 1800,
115
+ state: analyzeTimeout,
116
+ setter: setAnalyzeTimeout,
117
+ original: originalAnalyzeTimeout,
118
+ },
119
+ {
120
+ key: 'requirementsTimeout',
121
+ label: 'Requirements',
122
+ defaultSeconds: 1800,
123
+ state: requirementsTimeout,
124
+ setter: setRequirementsTimeout,
125
+ original: originalRequirementsTimeout,
126
+ },
127
+ {
128
+ key: 'researchTimeout',
129
+ label: 'Research',
130
+ defaultSeconds: 1800,
131
+ state: researchTimeout,
132
+ setter: setResearchTimeout,
133
+ original: originalResearchTimeout,
134
+ },
135
+ {
136
+ key: 'planTimeout',
137
+ label: 'Plan',
138
+ defaultSeconds: 1800,
139
+ state: planTimeout,
140
+ setter: setPlanTimeout,
141
+ original: originalPlanTimeout,
142
+ },
143
+ {
144
+ key: 'implementTimeout',
145
+ label: 'Implement',
146
+ defaultSeconds: 1800,
147
+ state: implementTimeout,
148
+ setter: setImplementTimeout,
149
+ original: originalImplementTimeout,
150
+ },
151
+ {
152
+ key: 'mergeTimeout',
153
+ label: 'Merge',
154
+ defaultSeconds: 1800,
155
+ state: mergeTimeout,
156
+ setter: setMergeTimeout,
157
+ original: originalMergeTimeout,
158
+ },
159
+ ];
160
+ const ANALYZE_REPO_FIELDS = [
161
+ {
162
+ key: 'analyzeRepoTimeout',
163
+ label: 'Analyze',
164
+ defaultSeconds: 600,
165
+ state: analyzeRepoTimeout,
166
+ setter: setAnalyzeRepoTimeout,
167
+ original: originalAnalyzeRepoTimeout,
168
+ },
169
+ ];
170
+ return (_jsxs(Card, { id: "workflow", className: "scroll-mt-6", "data-testid": "workflow-settings-section", children: [_jsxs(CardHeader, { children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx(GitBranch, { className: "text-muted-foreground h-4 w-4" }), _jsx(CardTitle, { children: "Workflow" })] }), isPending ? _jsx("span", { className: "text-muted-foreground text-xs", children: "Saving..." }) : null, showSaved && !isPending ? (_jsxs("span", { className: "flex items-center gap-1 text-xs text-green-600", children: [_jsx(Check, { className: "h-3 w-3" }), "Saved"] })) : null] }), _jsx(CardDescription, { children: "Configure PR behavior, approval gates, and CI settings" })] }), _jsxs(CardContent, { className: "space-y-4", children: [_jsxs("div", { className: "space-y-3", children: [_jsxs("div", { className: "flex items-center justify-between gap-4", children: [_jsxs("div", { className: "space-y-0.5", children: [_jsx(Label, { htmlFor: "open-pr", children: "Open PR on implementation complete" }), _jsx("p", { className: "text-muted-foreground text-xs", children: "Automatically create a pull request when the agent finishes" })] }), _jsx(Switch, { id: "open-pr", "data-testid": "switch-open-pr", checked: openPr, onCheckedChange: (v) => handleSwitchChange('openPr', setOpenPr, v) })] }), _jsxs("div", { className: "flex items-center justify-between gap-4", children: [_jsxs("div", { className: "space-y-0.5", children: [_jsx(Label, { htmlFor: "push-on-complete", children: "Push on implementation complete" }), _jsx("p", { className: "text-muted-foreground text-xs", children: "Push the branch to remote when implementation is done" })] }), _jsx(Switch, { id: "push-on-complete", "data-testid": "switch-push-on-complete", checked: pushOnComplete, onCheckedChange: (v) => handleSwitchChange('pushOnComplete', setPushOnComplete, v) })] })] }), _jsx(Separator, {}), _jsxs("div", { className: "space-y-3", children: [_jsx("h3", { className: "text-sm font-semibold", children: "Approval Gates" }), _jsxs("div", { className: "flex items-center justify-between gap-4", children: [_jsxs("div", { className: "space-y-0.5", children: [_jsx(Label, { htmlFor: "allow-prd", children: "PRD auto-approval" }), _jsx("p", { className: "text-muted-foreground text-xs", children: "Skip manual approval for product requirement documents" })] }), _jsx(Switch, { id: "allow-prd", "data-testid": "switch-allow-prd", checked: allowPrd, onCheckedChange: (v) => handleSwitchChange('allowPrd', setAllowPrd, v) })] }), _jsxs("div", { className: "flex items-center justify-between gap-4", children: [_jsxs("div", { className: "space-y-0.5", children: [_jsx(Label, { htmlFor: "allow-plan", children: "Plan auto-approval" }), _jsx("p", { className: "text-muted-foreground text-xs", children: "Skip manual approval for implementation plans" })] }), _jsx(Switch, { id: "allow-plan", "data-testid": "switch-allow-plan", checked: allowPlan, onCheckedChange: (v) => handleSwitchChange('allowPlan', setAllowPlan, v) })] }), _jsxs("div", { className: "flex items-center justify-between gap-4", children: [_jsxs("div", { className: "space-y-0.5", children: [_jsx(Label, { htmlFor: "allow-merge", children: "Merge auto-approval" }), _jsx("p", { className: "text-muted-foreground text-xs", children: "Skip manual approval for PR merges" })] }), _jsx(Switch, { id: "allow-merge", "data-testid": "switch-allow-merge", checked: allowMerge, onCheckedChange: (v) => handleSwitchChange('allowMerge', setAllowMerge, v) })] })] }), _jsx(Separator, {}), _jsxs("div", { className: "space-y-3", children: [_jsx("h3", { className: "text-sm font-semibold", children: "CI Settings" }), _jsxs("div", { className: "space-y-1.5", children: [_jsx(Label, { htmlFor: "ci-max-fix", children: "Max fix attempts" }), _jsx(Input, { id: "ci-max-fix", "data-testid": "ci-max-fix-input", type: "text", inputMode: "numeric", pattern: "[0-9]*", min: 1, max: 10, placeholder: "e.g., 3", value: ciMaxFix, onChange: (e) => setCiMaxFix(e.target.value), onBlur: () => handleFieldBlur('ciMaxFix', ciMaxFix, originalCiMaxFix) }), _jsx("p", { className: "text-muted-foreground text-xs", children: "How many times the agent retries fixing CI failures" })] }), _jsxs("div", { className: "space-y-1.5", children: [_jsx(Label, { htmlFor: "ci-timeout", children: "Watch timeout (seconds)" }), _jsx(Input, { id: "ci-timeout", "data-testid": "ci-timeout-input", type: "text", inputMode: "numeric", pattern: "[0-9]*", placeholder: "e.g., 300", value: ciTimeout, onChange: (e) => setCiTimeout(e.target.value), onBlur: () => handleFieldBlur('ciTimeout', ciTimeout, originalCiTimeout) }), _jsx("p", { className: "text-muted-foreground text-xs", children: "How long to wait for CI to complete before timing out" })] }), _jsxs("div", { className: "space-y-1.5", children: [_jsx(Label, { htmlFor: "ci-log-max", children: "Max log characters" }), _jsx(Input, { id: "ci-log-max", "data-testid": "ci-log-max-input", type: "text", inputMode: "numeric", pattern: "[0-9]*", placeholder: "e.g., 50000", value: ciLogMax, onChange: (e) => setCiLogMax(e.target.value), onBlur: () => handleFieldBlur('ciLogMax', ciLogMax, originalCiLogMax) }), _jsx("p", { className: "text-muted-foreground text-xs", children: "Maximum characters to capture from CI logs" })] })] }), _jsx(Separator, {}), _jsxs("div", { className: "space-y-3", children: [_jsx("h3", { className: "text-sm font-semibold", children: "Stage Timeouts" }), _jsx("p", { className: "text-muted-foreground text-xs", children: "Maximum execution time per agent stage" }), _jsx("h4", { className: "text-muted-foreground text-xs font-semibold tracking-wider uppercase", children: "Feature Agent" }), FEATURE_AGENT_FIELDS.map((field) => (_jsxs("div", { className: "flex items-center justify-between gap-4", children: [_jsx(Label, { htmlFor: `stage-timeout-${field.key}`, children: field.label }), _jsx(TimeoutSlider, { id: `stage-timeout-${field.key}`, testId: `stage-timeout-${field.key}-input`, value: field.state, onChange: field.setter, onBlur: () => handleFieldBlur(field.key, field.state, field.original), defaultSeconds: field.defaultSeconds })] }, field.key))), _jsx("h4", { className: "text-muted-foreground pt-2 text-xs font-semibold tracking-wider uppercase", children: "Analyze Repository Agent" }), ANALYZE_REPO_FIELDS.map((field) => (_jsxs("div", { className: "flex items-center justify-between gap-4", children: [_jsx(Label, { htmlFor: `stage-timeout-${field.key}`, children: field.label }), _jsx(TimeoutSlider, { id: `stage-timeout-${field.key}`, testId: `stage-timeout-${field.key}-input`, value: field.state, onChange: field.setter, onBlur: () => handleFieldBlur(field.key, field.state, field.original), defaultSeconds: field.defaultSeconds })] }, field.key)))] })] })] }));
76
171
  }
@@ -1 +1 @@
1
- {"version":3,"file":"workflow-settings-section.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/settings/workflow-settings-section.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAEtE,QAAA,MAAM,IAAI;;;;;;;CAOsC,CAAC;AAEjD,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAcrB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAiBxB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAiB5B,CAAC"}
1
+ {"version":3,"file":"workflow-settings-section.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/settings/workflow-settings-section.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAEtE,QAAA,MAAM,IAAI;;;;;;;CAOsC,CAAC;AAEjD,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAcrB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KA4BxB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KA4B5B,CAAC"}
@@ -36,6 +36,17 @@ export const AllEnabled = {
36
36
  ciMaxFixAttempts: 3,
37
37
  ciWatchTimeoutMs: 300000,
38
38
  ciLogMaxChars: 50000,
39
+ stageTimeouts: {
40
+ analyzeMs: 600000,
41
+ requirementsMs: 600000,
42
+ researchMs: 600000,
43
+ planMs: 600000,
44
+ implementMs: 600000,
45
+ mergeMs: 600000,
46
+ },
47
+ analyzeRepoTimeouts: {
48
+ analyzeMs: 600000,
49
+ },
39
50
  enableEvidence: true,
40
51
  commitEvidence: true,
41
52
  },
@@ -54,6 +65,17 @@ export const WithCiSettings = {
54
65
  ciMaxFixAttempts: 5,
55
66
  ciWatchTimeoutMs: 600000,
56
67
  ciLogMaxChars: 100000,
68
+ stageTimeouts: {
69
+ analyzeMs: 1200000,
70
+ requirementsMs: 1200000,
71
+ researchMs: 1200000,
72
+ planMs: 1200000,
73
+ implementMs: 1200000,
74
+ mergeMs: 1200000,
75
+ },
76
+ analyzeRepoTimeouts: {
77
+ analyzeMs: 1200000,
78
+ },
57
79
  enableEvidence: false,
58
80
  commitEvidence: false,
59
81
  },
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ import { Slider as SliderPrimitive } from 'radix-ui';
3
+ declare function Slider({ className, defaultValue, value, min, max, ...props }: React.ComponentProps<typeof SliderPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ export { Slider };
5
+ //# sourceMappingURL=slider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slider.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/components/ui/slider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,UAAU,CAAC;AAIrD,iBAAS,MAAM,CAAC,EACd,SAAS,EACT,YAAY,EACZ,KAAK,EACL,GAAO,EACP,GAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,2CAyCnD;AAED,OAAO,EAAE,MAAM,EAAE,CAAC"}
@@ -0,0 +1,10 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import * as React from 'react';
4
+ import { Slider as SliderPrimitive } from 'radix-ui';
5
+ import { cn } from '../../lib/utils.js';
6
+ function Slider({ className, defaultValue, value, min = 0, max = 100, ...props }) {
7
+ const _values = React.useMemo(() => (Array.isArray(value) ? value : Array.isArray(defaultValue) ? defaultValue : [min, max]), [value, defaultValue, min, max]);
8
+ return (_jsxs(SliderPrimitive.Root, { "data-slot": "slider", defaultValue: defaultValue, value: value, min: min, max: max, className: cn('relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col', className), ...props, children: [_jsx(SliderPrimitive.Track, { "data-slot": "slider-track", className: cn('bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5'), children: _jsx(SliderPrimitive.Range, { "data-slot": "slider-range", className: cn('bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full') }) }), Array.from({ length: _values.length }, (_, index) => (_jsx(SliderPrimitive.Thumb, { "data-slot": "slider-thumb", className: "border-primary ring-ring/50 block size-4 shrink-0 rounded-full border bg-white shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50" }, index)))] }));
9
+ }
10
+ export { Slider };
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { Slider } from './slider.js';
3
+ declare const meta: Meta<typeof Slider>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Slider>;
6
+ export declare const Default: Story;
7
+ //# sourceMappingURL=slider.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slider.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/components/ui/slider.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAG7B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAC;AAYrC,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useState } from 'react';
3
+ import { Slider } from './slider.js';
4
+ const meta = {
5
+ title: 'UI/Slider',
6
+ component: Slider,
7
+ };
8
+ export default meta;
9
+ function SliderDemo() {
10
+ const [value, setValue] = useState([50]);
11
+ return (_jsxs("div", { style: { width: 300 }, children: [_jsx(Slider, { value: value, onValueChange: setValue, min: 0, max: 100, step: 1 }), _jsxs("p", { style: { marginTop: 8, fontSize: 12 }, children: ["Value: ", value[0]] })] }));
12
+ }
13
+ export const Default = {
14
+ render: () => _jsx(SliderDemo, {}),
15
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"sidebar-features-context.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/web/hooks/sidebar-features-context.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAgD,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACrF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4DAA4D,CAAC;AACnG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAI/E,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,aAAa,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAgBD;;;GAGG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,gBAAgB,GAAG,aAAa,GAAG,IAAI,CAEzF;AAMD,UAAU,2BAA2B;IACnC,QAAQ,EAAE,kBAAkB,EAAE,CAAC;IAC/B,WAAW,EAAE,CAAC,QAAQ,EAAE,kBAAkB,EAAE,KAAK,IAAI,CAAC;CACvD;AAID,UAAU,4BAA4B;IACpC,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,uBAAuB,CAAC,EAAE,QAAQ,EAAE,EAAE,4BAA4B,2CAQjF;AAED,wBAAgB,yBAAyB,IAAI,2BAA2B,CAMvE"}
1
+ {"version":3,"file":"sidebar-features-context.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/web/hooks/sidebar-features-context.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAgD,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACrF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4DAA4D,CAAC;AACnG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAI/E,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,aAAa,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAiBD;;;GAGG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,gBAAgB,GAAG,aAAa,GAAG,IAAI,CAEzF;AAMD,UAAU,2BAA2B;IACnC,QAAQ,EAAE,kBAAkB,EAAE,CAAC;IAC/B,WAAW,EAAE,CAAC,QAAQ,EAAE,kBAAkB,EAAE,KAAK,IAAI,CAAC;CACvD;AAID,UAAU,4BAA4B;IACpC,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,uBAAuB,CAAC,EAAE,QAAQ,EAAE,EAAE,4BAA4B,2CAQjF;AAED,wBAAgB,yBAAyB,IAAI,2BAA2B,CAMvE"}
@@ -9,6 +9,7 @@ const stateMapping = {
9
9
  running: 'in-progress',
10
10
  done: 'done',
11
11
  blocked: 'blocked',
12
+ pending: 'blocked',
12
13
  error: 'error',
13
14
  creating: null,
14
15
  deleting: null,
@@ -1 +1 @@
1
- {"version":3,"file":"use-graph-state.d.ts","source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AAwB,EAAE,CAAC,aAAa,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;IACxE,yDAAyD;IACzD,iBAAiB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,kBAAkB,GAAG,SAAS,CAAC;IACtE,+EAA+E;IAC/E,cAAc,EAAE,MAAM,MAAM,CAAC;IAC7B,6EAA6E;IAC7E,YAAY,EAAE,CAAC,SAAS,EAAE,cAAc,KAAK,IAAI,CAAC;IAClD;;;;OAIG;IACH,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B;;;OAGG;IACH,WAAW,EAAE,CAAC,UAAU,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,0EAA0E;IAC1E,UAAU,EAAE,MAAM,OAAO,CAAC;CAC3B;AAuCD,KAAK,kBAAkB,GAAG,OAAO,CAC/B,IAAI,CAAC,eAAe,EAAE,OAAO,GAAG,WAAW,GAAG,MAAM,GAAG,aAAa,CAAC,CACtE,CAAC;AA8BF,wBAAgB,aAAa,CAC3B,YAAY,EAAE,cAAc,EAAE,EAC9B,YAAY,EAAE,IAAI,EAAE,GACnB,mBAAmB,CA8ZrB"}
@@ -90,6 +90,7 @@ export function useGraphState(initialNodes, initialEdges) {
90
90
  onRepositoryClick: (nodeId) => callbacksRef.current.onRepositoryClick?.(nodeId),
91
91
  onRepositoryDelete: (repositoryId) => callbacksRef.current.onRepositoryDelete?.(repositoryId),
92
92
  onRetryFeature: (featureId) => callbacksRef.current.onRetryFeature?.(featureId),
93
+ onStartFeature: (featureId) => callbacksRef.current.onStartFeature?.(featureId),
93
94
  }), []);
94
95
  // Stable refs for domain Maps (for use in callbacks without depending on state)
95
96
  const featureMapRef = useRef(featureMap);
@@ -37,6 +37,8 @@ export interface GraphCallbacks {
37
37
  onRepositoryDelete?: (repositoryId: string) => void;
38
38
  /** Called when the user retries a failed feature. */
39
39
  onRetryFeature?: (featureId: string) => void;
40
+ /** Called when the user starts a pending feature. */
41
+ onStartFeature?: (featureId: string) => void;
40
42
  }
41
43
  /**
42
44
  * Derives React Flow nodes and edges from domain Maps.
@@ -1 +1 @@
1
- {"version":3,"file":"derive-graph.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/web/lib/derive-graph.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,qDAAqD;AACrD,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,eAAe,CAAC;IACtB,sGAAsG;IACtG,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,wDAAwD;AACxD,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,kBAAkB,CAAC;CAC1B;AAED,gFAAgF;AAChF,MAAM,WAAW,cAAc;IAC7B,4FAA4F;IAC5F,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,qEAAqE;IACrE,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,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,E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,IAAI,CAAC;IAC1C,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;CAC9C;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,CAyJ5C"}
@@ -102,6 +102,11 @@ export function deriveGraph(featureMap, repoMap, pendingMap, callbacks) {
102
102
  callbacks?.onRetryFeature && {
103
103
  onRetry: callbacks.onRetryFeature,
104
104
  }),
105
+ ...(!isCreating &&
106
+ entry.data.state === 'pending' &&
107
+ callbacks?.onStartFeature && {
108
+ onStart: callbacks.onStartFeature,
109
+ }),
105
110
  };
106
111
  nodes.push({
107
112
  id: nodeId,