@shepai/cli 1.122.2-pr394.daae4c9 → 1.122.2-pr395.d35739a

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 (347) hide show
  1. package/dist/packages/core/src/application/ports/output/repositories/feature-repository.interface.d.ts +0 -11
  2. package/dist/packages/core/src/application/ports/output/repositories/feature-repository.interface.d.ts.map +1 -1
  3. package/dist/packages/core/src/application/ports/output/services/git-pr-service.interface.d.ts +55 -1
  4. package/dist/packages/core/src/application/ports/output/services/git-pr-service.interface.d.ts.map +1 -1
  5. package/dist/packages/core/src/application/ports/output/services/git-pr-service.interface.js +2 -0
  6. package/dist/packages/core/src/application/ports/output/services/worktree-service.interface.d.ts +0 -15
  7. package/dist/packages/core/src/application/ports/output/services/worktree-service.interface.d.ts.map +1 -1
  8. package/dist/packages/core/src/application/use-cases/features/rebase-feature.use-case.d.ts +21 -0
  9. package/dist/packages/core/src/application/use-cases/features/rebase-feature.use-case.d.ts.map +1 -0
  10. package/dist/packages/core/src/application/use-cases/features/rebase-feature.use-case.js +58 -0
  11. package/dist/packages/core/src/application/use-cases/sync-fork-main.use-case.d.ts +18 -0
  12. package/dist/packages/core/src/application/use-cases/sync-fork-main.use-case.d.ts.map +1 -0
  13. package/dist/packages/core/src/application/use-cases/sync-fork-main.use-case.js +40 -0
  14. package/dist/packages/core/src/infrastructure/di/container.d.ts.map +1 -1
  15. package/dist/packages/core/src/infrastructure/di/container.js +10 -5
  16. package/dist/packages/core/src/infrastructure/repositories/sqlite-feature.repository.d.ts +0 -1
  17. package/dist/packages/core/src/infrastructure/repositories/sqlite-feature.repository.d.ts.map +1 -1
  18. package/dist/packages/core/src/infrastructure/repositories/sqlite-feature.repository.js +0 -8
  19. package/dist/packages/core/src/infrastructure/services/git/git-pr.service.d.ts +9 -0
  20. package/dist/packages/core/src/infrastructure/services/git/git-pr.service.d.ts.map +1 -1
  21. package/dist/packages/core/src/infrastructure/services/git/git-pr.service.js +93 -0
  22. package/dist/packages/core/src/infrastructure/services/git/worktree.service.d.ts +0 -1
  23. package/dist/packages/core/src/infrastructure/services/git/worktree.service.d.ts.map +1 -1
  24. package/dist/packages/core/src/infrastructure/services/git/worktree.service.js +0 -15
  25. package/dist/src/presentation/cli/commands/feat/index.js +2 -2
  26. package/dist/src/presentation/cli/commands/feat/rebase.command.d.ts +13 -0
  27. package/dist/src/presentation/cli/commands/feat/rebase.command.d.ts.map +1 -0
  28. package/dist/src/presentation/cli/commands/feat/rebase.command.js +45 -0
  29. package/dist/src/presentation/cli/commands/repo/index.d.ts.map +1 -1
  30. package/dist/src/presentation/cli/commands/repo/index.js +3 -1
  31. package/dist/src/presentation/cli/commands/repo/sync.command.d.ts +12 -0
  32. package/dist/src/presentation/cli/commands/repo/sync.command.d.ts.map +1 -0
  33. package/dist/src/presentation/cli/commands/repo/sync.command.js +38 -0
  34. package/dist/src/presentation/web/app/(dashboard)/get-graph-data.d.ts +6 -0
  35. package/dist/src/presentation/web/app/(dashboard)/get-graph-data.d.ts.map +1 -1
  36. package/dist/src/presentation/web/app/(dashboard)/get-graph-data.js +60 -0
  37. package/dist/src/presentation/web/app/actions/get-feature-phase-timings.d.ts +2 -0
  38. package/dist/src/presentation/web/app/actions/get-feature-phase-timings.d.ts.map +1 -1
  39. package/dist/src/presentation/web/app/actions/get-feature-phase-timings.js +2 -0
  40. package/dist/src/presentation/web/app/build-graph-nodes.d.ts +7 -0
  41. package/dist/src/presentation/web/app/build-graph-nodes.d.ts.map +1 -1
  42. package/dist/src/presentation/web/app/build-graph-nodes.js +7 -0
  43. package/dist/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.d.ts.map +1 -1
  44. package/dist/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.js +20 -9
  45. package/dist/src/presentation/web/components/common/feature-drawer-tabs/activity-tab.d.ts.map +1 -1
  46. package/dist/src/presentation/web/components/common/feature-drawer-tabs/activity-tab.js +130 -31
  47. package/dist/src/presentation/web/components/common/feature-drawer-tabs/feature-drawer-tabs.d.ts.map +1 -1
  48. package/dist/src/presentation/web/components/common/feature-drawer-tabs/feature-drawer-tabs.js +13 -0
  49. package/dist/src/presentation/web/components/common/feature-drawer-tabs/use-tab-data-fetch.d.ts.map +1 -1
  50. package/dist/src/presentation/web/components/common/feature-drawer-tabs/use-tab-data-fetch.js +18 -9
  51. package/dist/src/presentation/web/components/common/repository-node/repository-node-config.d.ts +8 -0
  52. package/dist/src/presentation/web/components/common/repository-node/repository-node-config.d.ts.map +1 -1
  53. package/dist/src/presentation/web/components/common/repository-node/repository-node.d.ts.map +1 -1
  54. package/dist/src/presentation/web/components/common/repository-node/repository-node.js +6 -6
  55. package/dist/src/presentation/web/components/common/repository-node/repository-node.stories.d.ts +2 -0
  56. package/dist/src/presentation/web/components/common/repository-node/repository-node.stories.d.ts.map +1 -1
  57. package/dist/src/presentation/web/components/common/repository-node/repository-node.stories.js +107 -17
  58. package/dist/src/presentation/web/components/features/control-center/control-center-empty-state.d.ts.map +1 -1
  59. package/dist/src/presentation/web/components/features/control-center/control-center-empty-state.js +18 -18
  60. package/dist/src/presentation/web/components/features/control-center/control-center-inner.d.ts.map +1 -1
  61. package/dist/src/presentation/web/components/features/control-center/control-center-inner.js +31 -17
  62. package/dist/src/presentation/web/components/features/control-center/welcome-agent-setup.d.ts.map +1 -1
  63. package/dist/src/presentation/web/components/features/control-center/welcome-agent-setup.js +29 -22
  64. package/dist/src/presentation/web/components/features/features-canvas/features-canvas.js +1 -1
  65. package/dist/src/presentation/web/components/layouts/app-shell/app-shell.d.ts.map +1 -1
  66. package/dist/src/presentation/web/components/layouts/app-shell/app-shell.js +5 -14
  67. package/dist/src/presentation/web/hooks/sidebar-features-context.d.ts +2 -0
  68. package/dist/src/presentation/web/hooks/sidebar-features-context.d.ts.map +1 -1
  69. package/dist/src/presentation/web/hooks/sidebar-features-context.js +2 -1
  70. package/dist/src/presentation/web/lib/layout-with-dagre.js +1 -1
  71. package/dist/tsconfig.build.tsbuildinfo +1 -1
  72. package/package.json +1 -1
  73. package/web/.next/BUILD_ID +1 -1
  74. package/web/.next/app-path-routes-manifest.json +0 -1
  75. package/web/.next/build-manifest.json +4 -4
  76. package/web/.next/fallback-build-manifest.json +2 -2
  77. package/web/.next/prerender-manifest.json +3 -3
  78. package/web/.next/required-server-files.js +1 -1
  79. package/web/.next/required-server-files.json +1 -1
  80. package/web/.next/routes-manifest.json +0 -6
  81. package/web/.next/server/app/(dashboard)/@drawer/create/page/build-manifest.json +2 -2
  82. package/web/.next/server/app/(dashboard)/@drawer/create/page/server-reference-manifest.json +22 -22
  83. package/web/.next/server/app/(dashboard)/@drawer/create/page.js +2 -2
  84. package/web/.next/server/app/(dashboard)/@drawer/create/page.js.nft.json +1 -1
  85. package/web/.next/server/app/(dashboard)/@drawer/create/page_client-reference-manifest.js +1 -1
  86. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page/build-manifest.json +2 -2
  87. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page/server-reference-manifest.json +28 -28
  88. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js +3 -3
  89. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js.nft.json +1 -1
  90. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
  91. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/build-manifest.json +2 -2
  92. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/server-reference-manifest.json +28 -28
  93. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js +3 -3
  94. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js.nft.json +1 -1
  95. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page_client-reference-manifest.js +1 -1
  96. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/build-manifest.json +2 -2
  97. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/server-reference-manifest.json +20 -20
  98. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js +2 -2
  99. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js.nft.json +1 -1
  100. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  101. package/web/.next/server/app/(dashboard)/create/page/build-manifest.json +2 -2
  102. package/web/.next/server/app/(dashboard)/create/page/server-reference-manifest.json +22 -22
  103. package/web/.next/server/app/(dashboard)/create/page.js +2 -2
  104. package/web/.next/server/app/(dashboard)/create/page.js.nft.json +1 -1
  105. package/web/.next/server/app/(dashboard)/create/page_client-reference-manifest.js +1 -1
  106. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page/build-manifest.json +2 -2
  107. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page/server-reference-manifest.json +28 -28
  108. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js +3 -3
  109. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js.nft.json +1 -1
  110. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
  111. package/web/.next/server/app/(dashboard)/feature/[featureId]/page/build-manifest.json +2 -2
  112. package/web/.next/server/app/(dashboard)/feature/[featureId]/page/server-reference-manifest.json +28 -28
  113. package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js +3 -3
  114. package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js.nft.json +1 -1
  115. package/web/.next/server/app/(dashboard)/feature/[featureId]/page_client-reference-manifest.js +1 -1
  116. package/web/.next/server/app/(dashboard)/page/build-manifest.json +2 -2
  117. package/web/.next/server/app/(dashboard)/page/server-reference-manifest.json +20 -20
  118. package/web/.next/server/app/(dashboard)/page.js +2 -2
  119. package/web/.next/server/app/(dashboard)/page.js.nft.json +1 -1
  120. package/web/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
  121. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/build-manifest.json +2 -2
  122. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/server-reference-manifest.json +20 -20
  123. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js +2 -2
  124. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js.nft.json +1 -1
  125. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  126. package/web/.next/server/app/_global-error/page/build-manifest.json +2 -2
  127. package/web/.next/server/app/_global-error.html +2 -2
  128. package/web/.next/server/app/_global-error.rsc +1 -1
  129. package/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  130. package/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  131. package/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  132. package/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  133. package/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  134. package/web/.next/server/app/_not-found/page/build-manifest.json +2 -2
  135. package/web/.next/server/app/_not-found/page/server-reference-manifest.json +1 -1
  136. package/web/.next/server/app/_not-found/page.js.nft.json +1 -1
  137. package/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  138. package/web/.next/server/app/api/attachments/preview/route.js.nft.json +1 -1
  139. package/web/.next/server/app/api/evidence/route.js.nft.json +1 -1
  140. package/web/.next/server/app/api/graph-data/route.js +1 -1
  141. package/web/.next/server/app/api/graph-data/route.js.nft.json +1 -1
  142. package/web/.next/server/app/settings/page/build-manifest.json +2 -2
  143. package/web/.next/server/app/settings/page/server-reference-manifest.json +6 -6
  144. package/web/.next/server/app/settings/page.js.nft.json +1 -1
  145. package/web/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  146. package/web/.next/server/app/skills/page/build-manifest.json +2 -2
  147. package/web/.next/server/app/skills/page/server-reference-manifest.json +6 -6
  148. package/web/.next/server/app/skills/page.js +4 -4
  149. package/web/.next/server/app/skills/page.js.nft.json +1 -1
  150. package/web/.next/server/app/skills/page_client-reference-manifest.js +1 -1
  151. package/web/.next/server/app/tools/page/build-manifest.json +2 -2
  152. package/web/.next/server/app/tools/page/server-reference-manifest.json +6 -6
  153. package/web/.next/server/app/tools/page.js.nft.json +1 -1
  154. package/web/.next/server/app/tools/page_client-reference-manifest.js +1 -1
  155. package/web/.next/server/app/version/page/build-manifest.json +2 -2
  156. package/web/.next/server/app/version/page/server-reference-manifest.json +1 -1
  157. package/web/.next/server/app/version/page.js.nft.json +1 -1
  158. package/web/.next/server/app/version/page_client-reference-manifest.js +1 -1
  159. package/web/.next/server/app-paths-manifest.json +0 -1
  160. package/web/.next/server/chunks/403f9_next_dist_esm_build_templates_app-route_370c43b1.js +1 -1
  161. package/web/.next/server/chunks/403f9_next_dist_esm_build_templates_app-route_370c43b1.js.map +1 -1
  162. package/web/.next/server/chunks/[root-of-the-server]__a402b567._.js +1 -1
  163. package/web/.next/server/chunks/[root-of-the-server]__dcd4f847._.js +3 -0
  164. package/web/.next/server/chunks/{[root-of-the-server]__42b7ab55._.js.map → [root-of-the-server]__dcd4f847._.js.map} +1 -1
  165. package/web/.next/server/chunks/ssr/403f9_next_dist_31ea46d3._.js +1 -1
  166. package/web/.next/server/chunks/ssr/403f9_next_dist_c9d9b4d7._.js +1 -1
  167. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js +1 -1
  168. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js.map +1 -1
  169. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_f30d0343.js +1 -1
  170. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_f30d0343.js.map +1 -1
  171. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_9f1775bb.js +1 -1
  172. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_9f1775bb.js.map +1 -1
  173. package/web/.next/server/chunks/ssr/[root-of-the-server]__06fef644._.js +1 -1
  174. package/web/.next/server/chunks/ssr/{[root-of-the-server]__a022445f._.js → [root-of-the-server]__14664e9b._.js} +3 -3
  175. package/web/.next/server/chunks/ssr/{[root-of-the-server]__a022445f._.js.map → [root-of-the-server]__14664e9b._.js.map} +1 -1
  176. package/web/.next/server/chunks/ssr/[root-of-the-server]__4993a47c._.js +3 -0
  177. package/web/.next/server/chunks/ssr/[root-of-the-server]__4993a47c._.js.map +1 -0
  178. package/web/.next/server/chunks/ssr/[root-of-the-server]__52485955._.js +3 -0
  179. package/web/.next/server/chunks/ssr/[root-of-the-server]__52485955._.js.map +1 -0
  180. package/web/.next/server/chunks/ssr/[root-of-the-server]__545792ab._.js +3 -0
  181. package/web/.next/server/chunks/ssr/[root-of-the-server]__545792ab._.js.map +1 -0
  182. package/web/.next/server/chunks/ssr/[root-of-the-server]__6677a82c._.js +3 -0
  183. package/web/.next/server/chunks/ssr/{[root-of-the-server]__b724df9e._.js.map → [root-of-the-server]__6677a82c._.js.map} +1 -1
  184. package/web/.next/server/chunks/ssr/[root-of-the-server]__6b17a22d._.js +1 -1
  185. package/web/.next/server/chunks/ssr/[root-of-the-server]__6b17a22d._.js.map +1 -1
  186. package/web/.next/server/chunks/ssr/[root-of-the-server]__6bb00d90._.js +2 -2
  187. package/web/.next/server/chunks/ssr/[root-of-the-server]__6bb00d90._.js.map +1 -1
  188. package/web/.next/server/chunks/ssr/{[root-of-the-server]__8e3bf5d7._.js → [root-of-the-server]__7cbda1ea._.js} +2 -2
  189. package/web/.next/server/chunks/ssr/[root-of-the-server]__7cbda1ea._.js.map +1 -0
  190. package/web/.next/server/chunks/ssr/[root-of-the-server]__804c006d._.js +1 -1
  191. package/web/.next/server/chunks/ssr/[root-of-the-server]__804c006d._.js.map +1 -1
  192. package/web/.next/server/chunks/ssr/[root-of-the-server]__8c553503._.js +2 -2
  193. package/web/.next/server/chunks/ssr/{[root-of-the-server]__2698e9f4._.js → [root-of-the-server]__9e8b25ad._.js} +2 -2
  194. package/web/.next/server/chunks/ssr/[root-of-the-server]__9e8b25ad._.js.map +1 -0
  195. package/web/.next/server/chunks/ssr/[root-of-the-server]__a7de2711._.js +2 -2
  196. package/web/.next/server/chunks/ssr/{[root-of-the-server]__c07f9f79._.js → [root-of-the-server]__aed1d6f8._.js} +2 -2
  197. package/web/.next/server/chunks/ssr/[root-of-the-server]__aed1d6f8._.js.map +1 -0
  198. package/web/.next/server/chunks/ssr/{[root-of-the-server]__c605a375._.js → [root-of-the-server]__ce6057f6._.js} +2 -2
  199. package/web/.next/server/chunks/ssr/[root-of-the-server]__ce6057f6._.js.map +1 -0
  200. package/web/.next/server/chunks/ssr/_135edb9c._.js +1 -1
  201. package/web/.next/server/chunks/ssr/_135edb9c._.js.map +1 -1
  202. package/web/.next/server/chunks/ssr/_2f6f48b8._.js +1 -1
  203. package/web/.next/server/chunks/ssr/_2f6f48b8._.js.map +1 -1
  204. package/web/.next/server/chunks/ssr/_3a4c94e3._.js +3 -0
  205. package/web/.next/server/chunks/ssr/_3a4c94e3._.js.map +1 -0
  206. package/web/.next/server/chunks/ssr/{_5317c57e._.js → _59905c6b._.js} +2 -2
  207. package/web/.next/server/chunks/ssr/_59905c6b._.js.map +1 -0
  208. package/web/.next/server/chunks/ssr/_8042b250._.js +3 -0
  209. package/web/.next/server/chunks/ssr/_8042b250._.js.map +1 -0
  210. package/web/.next/server/chunks/ssr/_9ac70f88._.js +5 -0
  211. package/web/.next/server/chunks/ssr/_9ac70f88._.js.map +1 -0
  212. package/web/.next/server/chunks/ssr/_cc77a143._.js +1 -1
  213. package/web/.next/server/chunks/ssr/_cc77a143._.js.map +1 -1
  214. package/web/.next/server/chunks/ssr/_e9703421._.js +3 -0
  215. package/web/.next/server/chunks/ssr/_e9703421._.js.map +1 -0
  216. package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js +1 -1
  217. package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js.map +1 -1
  218. package/web/.next/server/chunks/ssr/node_modules__pnpm_bc66dcc6._.js +3 -0
  219. package/web/.next/server/chunks/ssr/node_modules__pnpm_bc66dcc6._.js.map +1 -0
  220. package/web/.next/server/chunks/ssr/src_presentation_web_5f039db1._.js +2 -2
  221. package/web/.next/server/chunks/ssr/src_presentation_web_5f039db1._.js.map +1 -1
  222. package/web/.next/server/chunks/ssr/src_presentation_web_7df6451f._.js +3 -0
  223. package/web/.next/server/chunks/ssr/src_presentation_web_7df6451f._.js.map +1 -0
  224. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_2a52b697.js +1 -1
  225. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_2a52b697.js.map +1 -1
  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_c4337169._.js +2 -2
  231. package/web/.next/server/chunks/ssr/src_presentation_web_c4337169._.js.map +1 -1
  232. package/web/.next/server/chunks/ssr/src_presentation_web_ca99d62d._.js +1 -1
  233. package/web/.next/server/chunks/ssr/src_presentation_web_ca99d62d._.js.map +1 -1
  234. package/web/.next/server/chunks/ssr/src_presentation_web_components_bf50c527._.js +1 -1
  235. package/web/.next/server/chunks/ssr/src_presentation_web_components_de814675._.js +1 -1
  236. package/web/.next/server/chunks/ssr/src_presentation_web_components_e599bb8c._.js +1 -1
  237. package/web/.next/server/chunks/ssr/src_presentation_web_components_e599bb8c._.js.map +1 -1
  238. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js +1 -1
  239. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js.map +1 -1
  240. package/web/.next/server/middleware-build-manifest.js +2 -2
  241. package/web/.next/server/pages/500.html +2 -2
  242. package/web/.next/server/server-reference-manifest.js +1 -1
  243. package/web/.next/server/server-reference-manifest.json +34 -189
  244. package/web/.next/static/chunks/0b7e384fe33dc5d4.js +1 -0
  245. package/web/.next/static/chunks/16c125d4054dae40.js +11 -0
  246. package/web/.next/static/chunks/28882fc716f51419.js +2 -0
  247. package/web/.next/static/chunks/2d718a04eb97fa9c.js +1 -0
  248. package/web/.next/static/chunks/3925626b99dcd57a.css +1 -0
  249. package/web/.next/static/chunks/{9f4eb9f1618c8bd9.js → 3c8f903477aacd29.js} +1 -1
  250. package/web/.next/static/chunks/4443ee9c7733399b.js +1 -0
  251. package/web/.next/static/chunks/{7f0206527c67e121.js → 44ec09b4f33c494d.js} +1 -1
  252. package/web/.next/static/chunks/{b14644925c7af7f5.js → 47030173ef438c4c.js} +2 -2
  253. package/web/.next/static/chunks/4aadcf496c0c45da.js +1 -0
  254. package/web/.next/static/chunks/52b56677c842e45f.js +3 -0
  255. package/web/.next/static/chunks/5738cc053b378225.js +1 -0
  256. package/web/.next/static/chunks/6bc9ac207dab5ad3.js +1 -0
  257. package/web/.next/static/chunks/ac7251026c1e2cdf.js +1 -0
  258. package/web/.next/static/chunks/dbbb446493f21874.js +1 -0
  259. package/web/.next/static/chunks/{89aac43287d73b02.js → ed3a602003bcb31b.js} +1 -1
  260. package/web/.next/static/chunks/{turbopack-080e470ea902d0ba.js → turbopack-426d9bc2450816ba.js} +1 -1
  261. package/dist/packages/core/src/application/use-cases/features/adopt-branch.use-case.d.ts +0 -40
  262. package/dist/packages/core/src/application/use-cases/features/adopt-branch.use-case.d.ts.map +0 -1
  263. package/dist/packages/core/src/application/use-cases/features/adopt-branch.use-case.js +0 -146
  264. package/dist/packages/core/src/application/use-cases/features/branch-name-utils.d.ts +0 -33
  265. package/dist/packages/core/src/application/use-cases/features/branch-name-utils.d.ts.map +0 -1
  266. package/dist/packages/core/src/application/use-cases/features/branch-name-utils.js +0 -77
  267. package/dist/src/presentation/cli/commands/feat/adopt.command.d.ts +0 -14
  268. package/dist/src/presentation/cli/commands/feat/adopt.command.d.ts.map +0 -1
  269. package/dist/src/presentation/cli/commands/feat/adopt.command.js +0 -43
  270. package/dist/src/presentation/web/app/(dashboard)/@drawer/adopt/page.d.ts +0 -10
  271. package/dist/src/presentation/web/app/(dashboard)/@drawer/adopt/page.d.ts.map +0 -1
  272. package/dist/src/presentation/web/app/(dashboard)/@drawer/adopt/page.js +0 -22
  273. package/dist/src/presentation/web/app/actions/adopt-branch.d.ts +0 -11
  274. package/dist/src/presentation/web/app/actions/adopt-branch.d.ts.map +0 -1
  275. package/dist/src/presentation/web/app/actions/adopt-branch.js +0 -20
  276. package/dist/src/presentation/web/components/common/control-center-drawer/adopt-branch-drawer.d.ts +0 -9
  277. package/dist/src/presentation/web/components/common/control-center-drawer/adopt-branch-drawer.d.ts.map +0 -1
  278. package/dist/src/presentation/web/components/common/control-center-drawer/adopt-branch-drawer.js +0 -27
  279. package/dist/src/presentation/web/components/common/control-center-drawer/adopt-branch-drawer.stories.d.ts +0 -32
  280. package/dist/src/presentation/web/components/common/control-center-drawer/adopt-branch-drawer.stories.d.ts.map +0 -1
  281. package/dist/src/presentation/web/components/common/control-center-drawer/adopt-branch-drawer.stories.js +0 -115
  282. package/dist/src/presentation/web/components/common/control-center-drawer/adopt-drawer-client.d.ts +0 -5
  283. package/dist/src/presentation/web/components/common/control-center-drawer/adopt-drawer-client.d.ts.map +0 -1
  284. package/dist/src/presentation/web/components/common/control-center-drawer/adopt-drawer-client.js +0 -56
  285. package/web/.next/server/app/(dashboard)/@drawer/adopt/page/app-paths-manifest.json +0 -3
  286. package/web/.next/server/app/(dashboard)/@drawer/adopt/page/build-manifest.json +0 -18
  287. package/web/.next/server/app/(dashboard)/@drawer/adopt/page/next-font-manifest.json +0 -6
  288. package/web/.next/server/app/(dashboard)/@drawer/adopt/page/react-loadable-manifest.json +0 -1
  289. package/web/.next/server/app/(dashboard)/@drawer/adopt/page/server-reference-manifest.json +0 -320
  290. package/web/.next/server/app/(dashboard)/@drawer/adopt/page.js +0 -20
  291. package/web/.next/server/app/(dashboard)/@drawer/adopt/page.js.map +0 -5
  292. package/web/.next/server/app/(dashboard)/@drawer/adopt/page.js.nft.json +0 -1
  293. package/web/.next/server/app/(dashboard)/@drawer/adopt/page_client-reference-manifest.js +0 -2
  294. package/web/.next/server/chunks/[root-of-the-server]__42b7ab55._.js +0 -3
  295. package/web/.next/server/chunks/ssr/403f9_next_dist_client_components_94d75bc3._.js +0 -3
  296. package/web/.next/server/chunks/ssr/403f9_next_dist_client_components_94d75bc3._.js.map +0 -1
  297. package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_adopt_page_actions_0b3f4f0d.js +0 -3
  298. package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_adopt_page_actions_0b3f4f0d.js.map +0 -1
  299. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_adopt-drawer-client_tsx_6c5e4bbb._.js +0 -3
  300. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_adopt-drawer-client_tsx_6c5e4bbb._.js.map +0 -1
  301. package/web/.next/server/chunks/ssr/[root-of-the-server]__2698e9f4._.js.map +0 -1
  302. package/web/.next/server/chunks/ssr/[root-of-the-server]__8e3bf5d7._.js.map +0 -1
  303. package/web/.next/server/chunks/ssr/[root-of-the-server]__b724df9e._.js +0 -3
  304. package/web/.next/server/chunks/ssr/[root-of-the-server]__c07f9f79._.js.map +0 -1
  305. package/web/.next/server/chunks/ssr/[root-of-the-server]__c605a375._.js.map +0 -1
  306. package/web/.next/server/chunks/ssr/[root-of-the-server]__e2227c0f._.js +0 -3
  307. package/web/.next/server/chunks/ssr/[root-of-the-server]__e2227c0f._.js.map +0 -1
  308. package/web/.next/server/chunks/ssr/[root-of-the-server]__e7258841._.js +0 -3
  309. package/web/.next/server/chunks/ssr/[root-of-the-server]__e7258841._.js.map +0 -1
  310. package/web/.next/server/chunks/ssr/[root-of-the-server]__ec26e818._.js +0 -3
  311. package/web/.next/server/chunks/ssr/[root-of-the-server]__ec26e818._.js.map +0 -1
  312. package/web/.next/server/chunks/ssr/[root-of-the-server]__f0589cc3._.js +0 -3
  313. package/web/.next/server/chunks/ssr/[root-of-the-server]__f0589cc3._.js.map +0 -1
  314. package/web/.next/server/chunks/ssr/_19a2fb35._.js +0 -3
  315. package/web/.next/server/chunks/ssr/_19a2fb35._.js.map +0 -1
  316. package/web/.next/server/chunks/ssr/_1e1b2639._.js +0 -3
  317. package/web/.next/server/chunks/ssr/_1e1b2639._.js.map +0 -1
  318. package/web/.next/server/chunks/ssr/_4093a637._.js +0 -5
  319. package/web/.next/server/chunks/ssr/_4093a637._.js.map +0 -1
  320. package/web/.next/server/chunks/ssr/_5317c57e._.js.map +0 -1
  321. package/web/.next/server/chunks/ssr/_a4a44cc0._.js +0 -3
  322. package/web/.next/server/chunks/ssr/_a4a44cc0._.js.map +0 -1
  323. package/web/.next/server/chunks/ssr/_d5206f22._.js +0 -4
  324. package/web/.next/server/chunks/ssr/_d5206f22._.js.map +0 -1
  325. package/web/.next/server/chunks/ssr/f7870_sonner_dist_index_mjs_dbf63824._.js +0 -3
  326. package/web/.next/server/chunks/ssr/f7870_sonner_dist_index_mjs_dbf63824._.js.map +0 -1
  327. package/web/.next/server/chunks/ssr/node_modules__pnpm_026172d1._.js +0 -3
  328. package/web/.next/server/chunks/ssr/node_modules__pnpm_026172d1._.js.map +0 -1
  329. package/web/.next/server/chunks/ssr/node_modules__pnpm_b59e4b16._.js +0 -3
  330. package/web/.next/server/chunks/ssr/node_modules__pnpm_b59e4b16._.js.map +0 -1
  331. package/web/.next/static/chunks/0d2af96e64960ef5.css +0 -1
  332. package/web/.next/static/chunks/430ef376bd249b14.js +0 -1
  333. package/web/.next/static/chunks/4796c6e7d84294d7.js +0 -1
  334. package/web/.next/static/chunks/52c0456129cb8a10.js +0 -1
  335. package/web/.next/static/chunks/767cf20dbde41522.js +0 -1
  336. package/web/.next/static/chunks/78e2f79d08767e8d.js +0 -9
  337. package/web/.next/static/chunks/a8d65187623d628b.js +0 -5
  338. package/web/.next/static/chunks/b4a6061718adb25e.js +0 -2
  339. package/web/.next/static/chunks/bf108ed551e585e6.js +0 -1
  340. package/web/.next/static/chunks/c6356369a45d19d6.js +0 -1
  341. package/web/.next/static/chunks/ca946dcbfbb2df74.js +0 -1
  342. package/web/.next/static/chunks/cafcbd67d82d65db.js +0 -1
  343. package/web/.next/static/chunks/d6d6af31b7ef545b.js +0 -1
  344. package/web/.next/static/chunks/f83551c20dcda199.js +0 -1
  345. /package/web/.next/static/{eu15XGqVtBSCUjVy2GmoQ → 8e_LzmibF0x2F_XwXUjHz}/_buildManifest.js +0 -0
  346. /package/web/.next/static/{eu15XGqVtBSCUjVy2GmoQ → 8e_LzmibF0x2F_XwXUjHz}/_clientMiddlewareManifest.json +0 -0
  347. /package/web/.next/static/{eu15XGqVtBSCUjVy2GmoQ → 8e_LzmibF0x2F_XwXUjHz}/_ssgManifest.js +0 -0
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Feature Rebase Command
3
+ *
4
+ * Rebases a feature branch on top of the current main branch.
5
+ * For fork repositories, syncs local main with upstream first.
6
+ * Aborts and surfaces conflicting file names on rebase conflict.
7
+ *
8
+ * Usage:
9
+ * shep feat rebase <feature-id>
10
+ */
11
+ import { Command } from 'commander';
12
+ import { container } from '../../../../../packages/core/src/infrastructure/di/container.js';
13
+ import { RebaseFeatureUseCase } from '../../../../../packages/core/src/application/use-cases/features/rebase-feature.use-case.js';
14
+ import { GitPrError, GitPrErrorCode, } from '../../../../../packages/core/src/application/ports/output/services/git-pr-service.interface.js';
15
+ import { colors, messages } from '../../ui/index.js';
16
+ export function createRebaseCommand() {
17
+ return new Command('rebase')
18
+ .description('Rebase a feature branch on top of the latest main (syncs fork upstream first)')
19
+ .argument('<feature-id>', 'Feature ID (or prefix)')
20
+ .action(async (featureId) => {
21
+ try {
22
+ const useCase = container.resolve(RebaseFeatureUseCase);
23
+ const result = await useCase.execute(featureId);
24
+ messages.newline();
25
+ messages.success(`Rebased: ${result.branch}`);
26
+ console.log(` ${colors.muted('Branch:')} ${colors.accent(result.branch)}`);
27
+ console.log(` ${colors.muted('Status:')} ${colors.success('up to date with main')}`);
28
+ messages.newline();
29
+ }
30
+ catch (error) {
31
+ if (error instanceof GitPrError && error.code === GitPrErrorCode.REBASE_CONFLICT) {
32
+ messages.newline();
33
+ messages.error('Rebase failed: merge conflicts detected');
34
+ console.error(colors.muted(error.message));
35
+ console.error(colors.muted('Run `git status` in your worktree to see conflict details.'));
36
+ messages.newline();
37
+ }
38
+ else {
39
+ const err = error instanceof Error ? error : new Error(String(error));
40
+ messages.error('Failed to rebase feature', err);
41
+ }
42
+ process.exitCode = 1;
43
+ }
44
+ });
45
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/repo/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,OAAO,CAO3C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/repo/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKpC;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,OAAO,CAQ3C"}
@@ -13,6 +13,7 @@
13
13
  import { Command } from 'commander';
14
14
  import { createShowCommand } from './show.command.js';
15
15
  import { createLsCommand } from './ls.command.js';
16
+ import { createSyncCommand } from './sync.command.js';
16
17
  /**
17
18
  * Create the repo command with all subcommands
18
19
  */
@@ -20,6 +21,7 @@ export function createRepoCommand() {
20
21
  const repo = new Command('repo')
21
22
  .description('Manage tracked repositories')
22
23
  .addCommand(createLsCommand())
23
- .addCommand(createShowCommand());
24
+ .addCommand(createShowCommand())
25
+ .addCommand(createSyncCommand());
24
26
  return repo;
25
27
  }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Repo Sync Command
3
+ *
4
+ * Syncs the local main branch with the upstream remote for fork repositories.
5
+ * For non-fork repositories, outputs an informational message and exits cleanly.
6
+ *
7
+ * Usage:
8
+ * shep repo sync
9
+ */
10
+ import { Command } from 'commander';
11
+ export declare function createSyncCommand(): Command;
12
+ //# sourceMappingURL=sync.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sync.command.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/repo/sync.command.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKpC,wBAAgB,iBAAiB,IAAI,OAAO,CAuB3C"}
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Repo Sync Command
3
+ *
4
+ * Syncs the local main branch with the upstream remote for fork repositories.
5
+ * For non-fork repositories, outputs an informational message and exits cleanly.
6
+ *
7
+ * Usage:
8
+ * shep repo sync
9
+ */
10
+ import { Command } from 'commander';
11
+ import { container } from '../../../../../packages/core/src/infrastructure/di/container.js';
12
+ import { SyncForkMainUseCase } from '../../../../../packages/core/src/application/use-cases/sync-fork-main.use-case.js';
13
+ import { colors, messages } from '../../ui/index.js';
14
+ export function createSyncCommand() {
15
+ return new Command('sync')
16
+ .description('Sync fork main branch with upstream remote')
17
+ .action(async () => {
18
+ try {
19
+ const useCase = container.resolve(SyncForkMainUseCase);
20
+ const result = await useCase.execute(process.cwd());
21
+ messages.newline();
22
+ if (!result.synced) {
23
+ messages.info('Repository is not a fork, nothing to sync');
24
+ }
25
+ else {
26
+ messages.success('Fork main synced with upstream');
27
+ console.log(` ${colors.muted('Upstream:')} ${colors.accent(result.upstreamUrl ?? '')}`);
28
+ console.log(` ${colors.muted('Status:')} ${colors.success('local main up to date')}`);
29
+ }
30
+ messages.newline();
31
+ }
32
+ catch (error) {
33
+ const err = error instanceof Error ? error : new Error(String(error));
34
+ messages.error('Failed to sync fork main', err);
35
+ process.exitCode = 1;
36
+ }
37
+ });
38
+ }
@@ -1,5 +1,11 @@
1
1
  import type { CanvasNodeType } from '../../components/features/features-canvas/index.js';
2
2
  import type { Edge } from '@xyflow/react';
3
+ export interface RepoGitInfo {
4
+ branch: string;
5
+ commitMessage: string;
6
+ committer: string;
7
+ behindCount: number | null;
8
+ }
3
9
  export declare function getGraphData(): Promise<{
4
10
  nodes: CanvasNodeType[];
5
11
  edges: Edge[];
@@ -1 +1 @@
1
- {"version":3,"file":"get-graph-data.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/app/(dashboard)/get-graph-data.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAE5E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAE1C,wBAAsB,YAAY,IAAI,OAAO,CAAC;IAAE,KAAK,EAAE,cAAc,EAAE,CAAC;IAAC,KAAK,EAAE,IAAI,EAAE,CAAA;CAAE,CAAC,CA+CxF"}
1
+ {"version":3,"file":"get-graph-data.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/app/(dashboard)/get-graph-data.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAE5E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAI1C,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAoDD,wBAAsB,YAAY,IAAI,OAAO,CAAC;IAAE,KAAK,EAAE,cAAc,EAAE,CAAC;IAAC,KAAK,EAAE,IAAI,EAAE,CAAA;CAAE,CAAC,CAyDxF"}
@@ -1,12 +1,71 @@
1
+ import { execFile as execFileCb } from 'node:child_process';
2
+ import { promisify } from 'node:util';
1
3
  import { resolve } from '../../lib/server-container.js';
2
4
  import { getSettings } from '../../../../../packages/core/src/infrastructure/services/settings.service.js';
3
5
  import { layoutWithDagre, CANVAS_LAYOUT_DEFAULTS } from '../../lib/layout-with-dagre.js';
4
6
  import { buildGraphNodes } from '../build-graph-nodes.js';
7
+ const execFileAsync = promisify(execFileCb);
8
+ async function gitCommand(cwd, args) {
9
+ try {
10
+ const { stdout } = await execFileAsync('git', args, { cwd });
11
+ return stdout.trim();
12
+ }
13
+ catch {
14
+ return null;
15
+ }
16
+ }
17
+ async function fetchRepoGitInfo(repo) {
18
+ try {
19
+ const [currentBranch, commitMessage, committer] = await Promise.all([
20
+ gitCommand(repo.path, ['symbolic-ref', '--short', 'HEAD']),
21
+ gitCommand(repo.path, ['log', '-1', '--format=%s']),
22
+ gitCommand(repo.path, ['log', '-1', '--format=%an']),
23
+ ]);
24
+ if (!currentBranch)
25
+ return null;
26
+ // Try to determine the default branch to compute behind count
27
+ let behindCount = null;
28
+ const defaultBranch = await gitCommand(repo.path, [
29
+ 'symbolic-ref',
30
+ '--short',
31
+ 'refs/remotes/origin/HEAD',
32
+ ]).then((ref) => ref?.replace('origin/', '') ?? null);
33
+ if (defaultBranch && currentBranch !== defaultBranch) {
34
+ const behind = await gitCommand(repo.path, [
35
+ 'rev-list',
36
+ '--count',
37
+ `${currentBranch}..origin/${defaultBranch}`,
38
+ ]);
39
+ behindCount = behind !== null ? parseInt(behind, 10) : null;
40
+ if (isNaN(behindCount))
41
+ behindCount = null;
42
+ }
43
+ else if (!defaultBranch || currentBranch === defaultBranch) {
44
+ behindCount = 0;
45
+ }
46
+ return {
47
+ branch: currentBranch,
48
+ commitMessage: commitMessage ?? 'unknown',
49
+ committer: committer ?? 'unknown',
50
+ behindCount,
51
+ };
52
+ }
53
+ catch {
54
+ return null;
55
+ }
56
+ }
5
57
  export async function getGraphData() {
6
58
  const listFeatures = resolve('ListFeaturesUseCase');
7
59
  const listRepos = resolve('ListRepositoriesUseCase');
8
60
  const agentRunRepo = resolve('IAgentRunRepository');
9
61
  const [features, repositories] = await Promise.all([listFeatures.execute(), listRepos.execute()]);
62
+ // Fetch git info (branch, commit, behind count) for each repository
63
+ const repoGitInfoMap = new Map();
64
+ await Promise.all(repositories.map(async (repo) => {
65
+ const info = await fetchRepoGitInfo(repo);
66
+ if (info)
67
+ repoGitInfoMap.set(repo.path, info);
68
+ }));
10
69
  // PR/CI status is kept fresh by PrSyncWatcher (30s background poll).
11
70
  // No live GitHub calls here — use cached DB values for fast response.
12
71
  const featuresWithRuns = await Promise.all(features.map(async (feature) => {
@@ -18,6 +77,7 @@ export async function getGraphData() {
18
77
  enableEvidence: workflow.enableEvidence,
19
78
  commitEvidence: workflow.commitEvidence,
20
79
  ciWatchEnabled: workflow.ciWatchEnabled,
80
+ repoGitInfo: repoGitInfoMap,
21
81
  });
22
82
  // Enrich feature nodes with deployment status
23
83
  let deploymentService = null;
@@ -13,6 +13,8 @@ export interface PhaseTimingData {
13
13
  costUsd?: number;
14
14
  numTurns?: number;
15
15
  durationApiMs?: number;
16
+ exitCode?: string;
17
+ errorMessage?: string;
16
18
  }
17
19
  export interface RejectionFeedbackData {
18
20
  iteration: number;
@@ -1 +1 @@
1
- {"version":3,"file":"get-feature-phase-timings.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/app/actions/get-feature-phase-timings.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;CACxB;AAED,KAAK,qBAAqB,GACtB;IAAE,OAAO,EAAE,eAAe,EAAE,CAAC;IAAC,iBAAiB,EAAE,qBAAqB,EAAE,CAAA;CAAE,GAC1E;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAEtB,wBAAsB,sBAAsB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAoC9F"}
1
+ {"version":3,"file":"get-feature-phase-timings.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/app/actions/get-feature-phase-timings.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;CACxB;AAED,KAAK,qBAAqB,GACtB;IAAE,OAAO,EAAE,eAAe,EAAE,CAAC;IAAC,iBAAiB,EAAE,qBAAqB,EAAE,CAAA;CAAE,GAC1E;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAEtB,wBAAsB,sBAAsB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAsC9F"}
@@ -22,6 +22,8 @@ export async function getFeaturePhaseTimings(featureId) {
22
22
  costUsd: t.costUsd != null ? Number(t.costUsd) : undefined,
23
23
  numTurns: t.numTurns ?? undefined,
24
24
  durationApiMs: t.durationApiMs != null ? Number(t.durationApiMs) : undefined,
25
+ exitCode: t.exitCode ?? undefined,
26
+ errorMessage: t.errorMessage ?? undefined,
25
27
  }));
26
28
  // Read rejection feedback from spec.yaml
27
29
  const rejectionFeedback = await readRejectionFeedback(featureId);
@@ -20,6 +20,13 @@ export interface BuildGraphNodesOptions {
20
20
  commitEvidence?: boolean;
21
21
  /** Whether CI watch/fix loop is enabled (global workflow setting) */
22
22
  ciWatchEnabled?: boolean;
23
+ /** Git info (branch, commit message, committer, behind count) keyed by repository path */
24
+ repoGitInfo?: Map<string, {
25
+ branch: string;
26
+ commitMessage: string;
27
+ committer: string;
28
+ behindCount: number | null;
29
+ }>;
23
30
  }
24
31
  export declare function buildGraphNodes(repositories: Repository[], featuresWithRuns: FeatureWithRun[], options?: BuildGraphNodesOptions): {
25
32
  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":"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
+ {"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;IACzB,0FAA0F;IAC1F,WAAW,CAAC,EAAE,GAAG,CACf,MAAM,EACN;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,aAAa,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,CACzF,CAAC;CACH;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,CAkG5C"}
@@ -31,6 +31,7 @@ export function buildGraphNodes(repositories, featuresWithRuns, options) {
31
31
  const normalizedRepoPath = normalizePath(repo.path);
32
32
  coveredPaths.add(normalizedRepoPath);
33
33
  const repoNodeId = `repo-${repo.id}`;
34
+ const gitInfo = options?.repoGitInfo?.get(repo.path);
34
35
  nodes.push({
35
36
  id: repoNodeId,
36
37
  type: 'repositoryNode',
@@ -40,6 +41,12 @@ export function buildGraphNodes(repositories, featuresWithRuns, options) {
40
41
  repositoryPath: normalizedRepoPath,
41
42
  id: repo.id,
42
43
  createdAt: repo.createdAt instanceof Date ? repo.createdAt.getTime() : Number(repo.createdAt),
44
+ ...(gitInfo && {
45
+ branch: gitInfo.branch,
46
+ commitMessage: gitInfo.commitMessage,
47
+ committer: gitInfo.committer,
48
+ behindCount: gitInfo.behindCount,
49
+ }),
43
50
  },
44
51
  });
45
52
  const repoFeatures = featuresByRepo[normalizedRepoPath] ?? [];
@@ -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":"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"}
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":"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"}
@@ -95,6 +95,17 @@ const EMPTY_GATES = {
95
95
  };
96
96
  export function FeatureCreateDrawer({ open, onClose, onSubmit, repositoryPath, isSubmitting = false, workflowDefaults, features, repositories, initialParentId, currentAgentType, currentModel, initialDescription, }) {
97
97
  const createSound = useSoundAction('create');
98
+ // Validate repositoryPath from URL against active repos — prevents stale URL params
99
+ // from selecting deleted repos after add/delete/re-add cycles.
100
+ // Trust the prop when: repos not loaded yet (undefined), empty list (no repos to check),
101
+ // or the path matches an active repo.
102
+ const validRepoPath = !repositoryPath
103
+ ? ''
104
+ : !repositories ||
105
+ repositories.length === 0 ||
106
+ repositories.some((r) => r.path === repositoryPath)
107
+ ? repositoryPath
108
+ : '';
98
109
  const defaultGates = workflowDefaults?.approvalGates ?? EMPTY_GATES;
99
110
  const defaultPush = workflowDefaults?.push ?? false;
100
111
  const defaultOpenPr = workflowDefaults?.openPr ?? false;
@@ -120,7 +131,7 @@ export function FeatureCreateDrawer({ open, onClose, onSubmit, repositoryPath, i
120
131
  const [pending, setPending] = useState(false);
121
132
  const [overrideAgent, setOverrideAgent] = useState(undefined);
122
133
  const [overrideModel, setOverrideModel] = useState(undefined);
123
- const [selectedRepoPath, setSelectedRepoPath] = useState(repositoryPath || undefined);
134
+ const [selectedRepoPath, setSelectedRepoPath] = useState(validRepoPath || undefined);
124
135
  const [localRepos, setLocalRepos] = useState(repositories ?? []);
125
136
  const [isDragOver, setIsDragOver] = useState(false);
126
137
  const [uploadError, setUploadError] = useState(null);
@@ -160,7 +171,7 @@ export function FeatureCreateDrawer({ open, onClose, onSubmit, repositoryPath, i
160
171
  setEnableEvidence(defaultEnableEvidence);
161
172
  setCommitEvidence(defaultCommitEvidence);
162
173
  setParentId(undefined);
163
- setSelectedRepoPath(repositoryPath || undefined);
174
+ setSelectedRepoPath(validRepoPath || undefined);
164
175
  setLocalRepos(repositories ?? []);
165
176
  setFast(false);
166
177
  setPending(false);
@@ -176,7 +187,7 @@ export function FeatureCreateDrawer({ open, onClose, onSubmit, repositoryPath, i
176
187
  defaultEnableEvidence,
177
188
  defaultCiWatch,
178
189
  defaultCommitEvidence,
179
- repositoryPath,
190
+ validRepoPath,
180
191
  repositories,
181
192
  ]);
182
193
  // Track whether the form has unsaved data
@@ -294,7 +305,7 @@ export function FeatureCreateDrawer({ open, onClose, onSubmit, repositoryPath, i
294
305
  e.preventDefault();
295
306
  if (!description.trim())
296
307
  return;
297
- const effectiveRepoPath = selectedRepoPath ?? repositoryPath;
308
+ const effectiveRepoPath = selectedRepoPath ?? validRepoPath;
298
309
  if (!effectiveRepoPath)
299
310
  return;
300
311
  createSound.play();
@@ -325,7 +336,7 @@ export function FeatureCreateDrawer({ open, onClose, onSubmit, repositoryPath, i
325
336
  attachments,
326
337
  approvalGates,
327
338
  selectedRepoPath,
328
- repositoryPath,
339
+ validRepoPath,
329
340
  onSubmit,
330
341
  push,
331
342
  openPr,
@@ -414,13 +425,13 @@ export function FeatureCreateDrawer({ open, onClose, onSubmit, repositoryPath, i
414
425
  }, 0);
415
426
  }, []);
416
427
  const hasFeatures = features && features.length > 0;
417
- const needsRepo = !repositoryPath && !selectedRepoPath;
418
- const showRepoSelector = !repositoryPath && repositories !== undefined;
428
+ const needsRepo = !validRepoPath && !selectedRepoPath;
429
+ const showRepoSelector = !validRepoPath && repositories !== undefined;
419
430
  return (_jsx(BaseDrawer, { open: open, onClose: attemptClose, size: "md", modal: false, dismissOnOutsideClick: true, "data-testid": "feature-create-drawer", header: _jsxs(_Fragment, { children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx("div", { className: "h-2.5 w-2.5 shrink-0 rounded-full bg-blue-500" }), _jsx(DrawerTitle, { children: "NEW FEATURE" })] }), isSubmitting ? (_jsx(DrawerDescription, { asChild: true, children: _jsx("div", { children: _jsx(Badge, { variant: "secondary", children: "Creating..." }) }) })) : null] }), footer: _jsxs("div", { className: "flex flex-row justify-end gap-2", children: [_jsx(Button, { variant: "outline", onClick: attemptClose, disabled: isSubmitting, children: "Cancel" }), _jsx(Button, { type: "submit", form: "create-feature-form", disabled: !description.trim() || isSubmitting || needsRepo, children: isSubmitting ? 'Creating...' : '+ Create Feature' })] }), children: _jsx("div", { className: "overflow-y-auto p-4", children: _jsx(TooltipProvider, { delayDuration: 400, children: _jsxs("form", { ref: formRef, id: "create-feature-form", onSubmit: handleSubmit, onKeyDown: handleKeyDown, className: "flex flex-col gap-4", children: [showRepoSelector ? (_jsxs("div", { className: "flex flex-col gap-1.5", "data-testid": "repo-selector-section", children: [_jsx(Label, { className: "text-muted-foreground text-xs font-semibold tracking-wider", children: "REPOSITORY" }), _jsx(RepositoryCombobox, { repositories: localRepos, value: selectedRepoPath, onChange: setSelectedRepoPath, onAddRepository: (repo) => {
420
431
  setLocalRepos((prev) => [...prev, repo]);
421
432
  setSelectedRepoPath(repo.path);
422
- }, disabled: isSubmitting })] })) : repositoryPath ? (_jsxs("div", { className: "flex flex-col gap-1.5", "data-testid": "repo-readonly-section", children: [_jsx(Label, { className: "text-muted-foreground text-xs font-semibold tracking-wider", children: "REPOSITORY" }), _jsx("p", { className: "text-sm", "data-testid": "repo-readonly-label", children: repositories?.find((r) => r.path === repositoryPath)?.name ??
423
- repositoryPath.split('/').pop() })] })) : null, _jsxs("div", { role: "region", "aria-label": "File drop zone", "data-drag-over": isDragOver ? 'true' : 'false', onDragEnter: handleDragEnter, onDragLeave: handleDragLeave, onDragOver: handleDragOver, onDrop: handleDrop, className: cn('flex flex-col gap-1.5 rounded-md border-2 border-transparent p-1 transition-colors', isDragOver && 'border-primary/50 bg-primary/5'), children: [_jsx(Label, { htmlFor: "feature-description", className: "text-muted-foreground text-xs font-semibold tracking-wider", children: "DESCRIBE YOUR FEATURE" }), _jsxs("div", { ref: promptContainerRef, onFocus: handlePromptFocus, onBlur: handlePromptBlur, className: cn('border-input flex h-56 flex-col overflow-hidden rounded-md border shadow-xs transition-[color,box-shadow]', isPromptFocused && 'ring-ring/50 border-ring ring-[3px]'), children: [_jsx(Textarea, { id: "feature-description", placeholder: "e.g. Add GitHub OAuth login with callback handling and token refresh...", value: description, onChange: (e) => setDescription(e.target.value), onPaste: handlePaste, required: true, disabled: isSubmitting, className: "min-h-0 flex-1 resize-none rounded-none border-0 shadow-none focus-visible:ring-0" }), attachments.length > 0 && (_jsx("div", { className: "flex flex-wrap items-center gap-1.5 px-3 py-2", children: attachments.map((file) => (_jsx(AttachmentChip, { name: file.name, size: file.size, mimeType: file.mimeType, path: file.path, onRemove: () => handleRemoveFile(file.id), disabled: isSubmitting, loading: file.loading }, file.id))) })), uploadError ? (_jsx("p", { className: "text-destructive px-3 pb-2 text-xs", children: uploadError })) : null, _jsxs("div", { className: "border-input flex items-center gap-3 border-t px-3 py-1.5", children: [_jsx(AgentModelPicker, { initialAgentType: overrideAgent ?? currentAgentType ?? 'claude-code', initialModel: overrideModel ?? currentModel ?? 'claude-sonnet-4-6', mode: "override", onAgentModelChange: (agent, model) => {
433
+ }, disabled: isSubmitting })] })) : validRepoPath ? (_jsxs("div", { className: "flex flex-col gap-1.5", "data-testid": "repo-readonly-section", children: [_jsx(Label, { className: "text-muted-foreground text-xs font-semibold tracking-wider", children: "REPOSITORY" }), _jsx("p", { className: "text-sm", "data-testid": "repo-readonly-label", children: repositories?.find((r) => r.path === validRepoPath)?.name ??
434
+ validRepoPath.split('/').pop() })] })) : null, _jsxs("div", { role: "region", "aria-label": "File drop zone", "data-drag-over": isDragOver ? 'true' : 'false', onDragEnter: handleDragEnter, onDragLeave: handleDragLeave, onDragOver: handleDragOver, onDrop: handleDrop, className: cn('flex flex-col gap-1.5 rounded-md border-2 border-transparent p-1 transition-colors', isDragOver && 'border-primary/50 bg-primary/5'), children: [_jsx(Label, { htmlFor: "feature-description", className: "text-muted-foreground text-xs font-semibold tracking-wider", children: "DESCRIBE YOUR FEATURE" }), _jsxs("div", { ref: promptContainerRef, onFocus: handlePromptFocus, onBlur: handlePromptBlur, className: cn('border-input flex h-56 flex-col overflow-hidden rounded-md border shadow-xs transition-[color,box-shadow]', isPromptFocused && 'ring-ring/50 border-ring ring-[3px]'), children: [_jsx(Textarea, { id: "feature-description", placeholder: "e.g. Add GitHub OAuth login with callback handling and token refresh...", value: description, onChange: (e) => setDescription(e.target.value), onPaste: handlePaste, required: true, disabled: isSubmitting, className: "min-h-0 flex-1 resize-none rounded-none border-0 shadow-none focus-visible:ring-0" }), attachments.length > 0 && (_jsx("div", { className: "flex flex-wrap items-center gap-1.5 px-3 py-2", children: attachments.map((file) => (_jsx(AttachmentChip, { name: file.name, size: file.size, mimeType: file.mimeType, path: file.path, onRemove: () => handleRemoveFile(file.id), disabled: isSubmitting, loading: file.loading }, file.id))) })), uploadError ? (_jsx("p", { className: "text-destructive px-3 pb-2 text-xs", children: uploadError })) : null, _jsxs("div", { className: "border-input flex items-center gap-3 border-t px-3 py-1.5", children: [_jsx(AgentModelPicker, { initialAgentType: overrideAgent ?? currentAgentType ?? 'claude-code', initialModel: overrideModel ?? currentModel ?? 'claude-sonnet-4-6', mode: "override", onAgentModelChange: (agent, model) => {
424
435
  setOverrideAgent(agent);
425
436
  setOverrideModel(model);
426
437
  }, disabled: isSubmitting, className: "w-55" }), _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsxs("div", { className: "ml-auto flex cursor-pointer items-center gap-2", children: [_jsx(Switch, { id: "pending-mode", checked: pending, onCheckedChange: setPending, disabled: isSubmitting }), _jsxs(Label, { htmlFor: "pending-mode", className: "flex cursor-pointer items-center gap-1 text-sm font-medium", children: [_jsx(Clock, { className: "h-3.5 w-3.5" }), "Pending"] })] }) }), _jsx(TooltipContent, { side: "bottom", children: "Create without starting \u2014 start manually later." })] }), _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsxs("div", { className: "flex cursor-pointer items-center gap-2", children: [_jsx(Switch, { id: "fast-mode", checked: fast, onCheckedChange: setFast, disabled: isSubmitting }), _jsxs(Label, { htmlFor: "fast-mode", className: "flex cursor-pointer items-center gap-1 text-sm font-medium", children: [_jsx(Zap, { className: "h-3.5 w-3.5" }), "Fast Mode"] })] }) }), _jsx(TooltipContent, { side: "bottom", children: "Skip SDLC phases and implement directly from your prompt." })] }), _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx("button", { type: "button", onClick: handleAddFiles, disabled: isSubmitting, "aria-label": "Attach files", className: "text-muted-foreground hover:text-foreground cursor-pointer rounded p-1 transition-colors", children: _jsx(PaperclipIcon, { className: "h-4 w-4" }) }) }), _jsx(TooltipContent, { side: "bottom", children: "Attach files" })] })] })] })] }), hasFeatures && initialParentId !== undefined ? (_jsxs("div", { className: "flex flex-col gap-1.5", children: [_jsx(Label, { htmlFor: "parent-feature", className: "text-muted-foreground text-xs font-semibold tracking-wider", children: "PARENT FEATURE" }), _jsx(ParentFeatureCombobox, { features: features, value: parentId, onChange: setParentId, disabled: isSubmitting })] })) : null, _jsxs("div", { className: "flex flex-col gap-2", children: [_jsxs("div", { className: "border-input flex items-center gap-4 rounded-md border px-3 py-2.5", children: [_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx("span", { className: "text-muted-foreground w-16 shrink-0 cursor-default text-xs font-semibold tracking-wider", children: "APPROVE" }) }), _jsx(TooltipContent, { side: "bottom", children: "Auto-approve phase transitions without manual review." })] }), _jsx("div", { className: "flex flex-1 items-center gap-4", children: AUTO_APPROVE_OPTIONS.map((opt) => (_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsxs("div", { className: "flex cursor-pointer items-center gap-1.5", children: [_jsx(Switch, { id: `approve-${opt.id}`, size: "sm", checked: approvalGates[opt.id] ?? false, onCheckedChange: (v) => setApprovalGates((prev) => ({ ...prev, [opt.id]: v })), disabled: isSubmitting ||
@@ -1 +1 @@
1
- {"version":3,"file":"activity-tab.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-drawer-tabs/activity-tab.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,eAAe,EACf,qBAAqB,EACtB,MAAM,yCAAyC,CAAC;AA4DjD,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,eAAe,EAAE,GAAG,IAAI,CAAC;IAClC,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,iBAAiB,CAAC,EAAE,qBAAqB,EAAE,CAAC;CAC7C;AA6BD;;;;;;;GAOG;AACH,MAAM,WAAW,iBAAiB;IAChC,+BAA+B;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,0CAA0C;IAC1C,OAAO,EAAE,eAAe,EAAE,CAAC;IAC3B,mEAAmE;IACnE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,8DAA8D;IAC9D,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;CACjC;AAED;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,eAAe,EAAE,EAC1B,QAAQ,CAAC,EAAE,qBAAqB,EAAE,GACjC,iBAAiB,EAAE,CAgErB;AAMD,wBAAgB,WAAW,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE,EAAE,gBAAgB,2CAqE3F"}
1
+ {"version":3,"file":"activity-tab.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-drawer-tabs/activity-tab.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EACV,eAAe,EACf,qBAAqB,EACtB,MAAM,yCAAyC,CAAC;AAmEjD,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,eAAe,EAAE,GAAG,IAAI,CAAC;IAClC,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,iBAAiB,CAAC,EAAE,qBAAqB,EAAE,CAAC;CAC7C;AAmED;;;;;;;GAOG;AACH,MAAM,WAAW,iBAAiB;IAChC,+BAA+B;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,0CAA0C;IAC1C,OAAO,EAAE,eAAe,EAAE,CAAC;IAC3B,mEAAmE;IACnE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,8DAA8D;IAC9D,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;CACjC;AAED;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,eAAe,EAAE,EAC1B,QAAQ,CAAC,EAAE,qBAAqB,EAAE,GACjC,iBAAiB,EAAE,CAgErB;AA6BD,wBAAgB,WAAW,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE,EAAE,gBAAgB,2CAqE3F"}