@shepai/cli 1.72.6 → 1.72.7-pr187.0bb1028

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 (488) hide show
  1. package/dist/packages/core/src/application/use-cases/features/delete-feature.use-case.d.ts +4 -0
  2. package/dist/packages/core/src/application/use-cases/features/delete-feature.use-case.d.ts.map +1 -1
  3. package/dist/packages/core/src/application/use-cases/features/delete-feature.use-case.js +20 -12
  4. package/dist/packages/core/src/application/use-cases/repositories/delete-repository.use-case.d.ts +8 -3
  5. package/dist/packages/core/src/application/use-cases/repositories/delete-repository.use-case.d.ts.map +1 -1
  6. package/dist/packages/core/src/application/use-cases/repositories/delete-repository.use-case.js +17 -4
  7. package/dist/packages/core/src/application/use-cases/tools/list-tools.use-case.d.ts +3 -0
  8. package/dist/packages/core/src/application/use-cases/tools/list-tools.use-case.d.ts.map +1 -1
  9. package/dist/packages/core/src/application/use-cases/tools/list-tools.use-case.js +3 -0
  10. package/dist/packages/core/src/infrastructure/repositories/sqlite-feature.repository.js +1 -1
  11. package/dist/packages/core/src/infrastructure/services/tool-installer/tool-installer.service.d.ts.map +1 -1
  12. package/dist/packages/core/src/infrastructure/services/tool-installer/tool-installer.service.js +9 -1
  13. package/dist/packages/core/src/infrastructure/services/tool-installer/tool-metadata.d.ts +6 -0
  14. package/dist/packages/core/src/infrastructure/services/tool-installer/tool-metadata.d.ts.map +1 -1
  15. package/dist/packages/core/src/infrastructure/services/tool-installer/tool-metadata.js +5 -0
  16. package/dist/packages/core/src/infrastructure/services/tool-installer/tools/alacritty.json +5 -2
  17. package/dist/packages/core/src/infrastructure/services/tool-installer/tools/antigravity.json +3 -0
  18. package/dist/packages/core/src/infrastructure/services/tool-installer/tools/claude-code.json +4 -1
  19. package/dist/packages/core/src/infrastructure/services/tool-installer/tools/cursor-cli.json +3 -0
  20. package/dist/packages/core/src/infrastructure/services/tool-installer/tools/cursor.json +3 -0
  21. package/dist/packages/core/src/infrastructure/services/tool-installer/tools/gemini-cli.json +3 -0
  22. package/dist/packages/core/src/infrastructure/services/tool-installer/tools/gh.json +3 -0
  23. package/dist/packages/core/src/infrastructure/services/tool-installer/tools/git.json +3 -0
  24. package/dist/packages/core/src/infrastructure/services/tool-installer/tools/iterm2.json +3 -0
  25. package/dist/packages/core/src/infrastructure/services/tool-installer/tools/kitty.json +5 -2
  26. package/dist/packages/core/src/infrastructure/services/tool-installer/tools/tmux.json +4 -1
  27. package/dist/packages/core/src/infrastructure/services/tool-installer/tools/vscode.json +4 -1
  28. package/dist/packages/core/src/infrastructure/services/tool-installer/tools/warp.json +3 -0
  29. package/dist/packages/core/src/infrastructure/services/tool-installer/tools/windsurf.json +4 -1
  30. package/dist/packages/core/src/infrastructure/services/tool-installer/tools/zed.json +3 -0
  31. package/dist/src/presentation/web/app/(dashboard)/get-graph-data.d.ts.map +1 -1
  32. package/dist/src/presentation/web/app/(dashboard)/get-graph-data.js +2 -6
  33. package/dist/src/presentation/web/app/api/tools/[id]/install/route.d.ts.map +1 -1
  34. package/dist/src/presentation/web/app/api/tools/[id]/install/route.js +9 -4
  35. package/dist/src/presentation/web/app/api/tools/[id]/install/stream/route.d.ts +7 -0
  36. package/dist/src/presentation/web/app/api/tools/[id]/install/stream/route.d.ts.map +1 -0
  37. package/dist/src/presentation/web/app/api/tools/[id]/install/stream/route.js +32 -0
  38. package/dist/src/presentation/web/app/build-graph-nodes.js +11 -1
  39. package/dist/src/presentation/web/components/common/base-drawer/base-drawer.d.ts +4 -1
  40. package/dist/src/presentation/web/components/common/base-drawer/base-drawer.d.ts.map +1 -1
  41. package/dist/src/presentation/web/components/common/base-drawer/base-drawer.js +10 -6
  42. package/dist/src/presentation/web/components/common/control-center-drawer/create-drawer-client.d.ts.map +1 -1
  43. package/dist/src/presentation/web/components/common/control-center-drawer/create-drawer-client.js +12 -3
  44. package/dist/src/presentation/web/components/common/control-center-drawer/feature-drawer-client.d.ts.map +1 -1
  45. package/dist/src/presentation/web/components/common/control-center-drawer/feature-drawer-client.js +6 -2
  46. package/dist/src/presentation/web/components/common/drawer-action-bar/drawer-action-bar.d.ts.map +1 -1
  47. package/dist/src/presentation/web/components/common/drawer-action-bar/drawer-action-bar.js +1 -1
  48. package/dist/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.d.ts.map +1 -1
  49. package/dist/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.js +1 -1
  50. package/dist/src/presentation/web/components/common/feature-node/feature-node.d.ts.map +1 -1
  51. package/dist/src/presentation/web/components/common/feature-node/feature-node.js +7 -2
  52. package/dist/src/presentation/web/components/common/repository-node/repository-node.d.ts.map +1 -1
  53. package/dist/src/presentation/web/components/common/repository-node/repository-node.js +6 -2
  54. package/dist/src/presentation/web/components/features/control-center/control-center-inner.d.ts.map +1 -1
  55. package/dist/src/presentation/web/components/features/control-center/control-center-inner.js +14 -2
  56. package/dist/src/presentation/web/components/features/control-center/use-control-center-state.d.ts +3 -5
  57. package/dist/src/presentation/web/components/features/control-center/use-control-center-state.d.ts.map +1 -1
  58. package/dist/src/presentation/web/components/features/control-center/use-control-center-state.js +131 -196
  59. package/dist/src/presentation/web/components/features/index.d.ts +1 -1
  60. package/dist/src/presentation/web/components/features/index.d.ts.map +1 -1
  61. package/dist/src/presentation/web/components/features/index.js +1 -1
  62. package/dist/src/presentation/web/components/features/tools/index.d.ts +1 -1
  63. package/dist/src/presentation/web/components/features/tools/index.d.ts.map +1 -1
  64. package/dist/src/presentation/web/components/features/tools/index.js +1 -1
  65. package/dist/src/presentation/web/components/features/tools/tool-card.d.ts.map +1 -1
  66. package/dist/src/presentation/web/components/features/tools/tool-card.js +18 -14
  67. package/dist/src/presentation/web/components/features/tools/tool-card.stories.d.ts.map +1 -1
  68. package/dist/src/presentation/web/components/features/tools/tool-card.stories.js +18 -0
  69. package/dist/src/presentation/web/components/features/tools/tool-detail-drawer.d.ts +10 -0
  70. package/dist/src/presentation/web/components/features/tools/tool-detail-drawer.d.ts.map +1 -0
  71. package/dist/src/presentation/web/components/features/tools/tool-detail-drawer.js +95 -0
  72. package/dist/src/presentation/web/components/features/tools/tool-detail-drawer.stories.d.ts +12 -0
  73. package/dist/src/presentation/web/components/features/tools/tool-detail-drawer.stories.d.ts.map +1 -0
  74. package/dist/src/presentation/web/components/features/tools/tool-detail-drawer.stories.js +119 -0
  75. package/dist/src/presentation/web/components/features/tools/tools-page-client.js +3 -3
  76. package/dist/src/presentation/web/components/features/tools/tools-page-client.stories.d.ts.map +1 -1
  77. package/dist/src/presentation/web/components/features/tools/tools-page-client.stories.js +15 -0
  78. package/dist/src/presentation/web/components/ui/alert-dialog.d.ts +1 -1
  79. package/dist/src/presentation/web/components/ui/alert-dialog.d.ts.map +1 -1
  80. package/dist/src/presentation/web/components/ui/alert-dialog.js +7 -2
  81. package/dist/src/presentation/web/components/ui/dialog.d.ts.map +1 -1
  82. package/dist/src/presentation/web/components/ui/dialog.js +6 -1
  83. package/dist/src/presentation/web/hooks/use-tool-install-stream.d.ts +10 -0
  84. package/dist/src/presentation/web/hooks/use-tool-install-stream.d.ts.map +1 -0
  85. package/dist/src/presentation/web/hooks/use-tool-install-stream.js +38 -0
  86. package/dist/src/presentation/web/lib/layout-with-dagre.d.ts +2 -0
  87. package/dist/src/presentation/web/lib/layout-with-dagre.d.ts.map +1 -1
  88. package/dist/src/presentation/web/lib/layout-with-dagre.js +86 -4
  89. package/dist/tsconfig.build.tsbuildinfo +1 -1
  90. package/package.json +1 -1
  91. package/web/.next/BUILD_ID +1 -1
  92. package/web/.next/app-path-routes-manifest.json +1 -0
  93. package/web/.next/build-manifest.json +7 -7
  94. package/web/.next/cache/.previewinfo +1 -1
  95. package/web/.next/cache/.rscinfo +1 -1
  96. package/web/.next/cache/.tsbuildinfo +1 -1
  97. package/web/.next/cache/config.json +3 -3
  98. package/web/.next/fallback-build-manifest.json +2 -2
  99. package/web/.next/prerender-manifest.json +3 -3
  100. package/web/.next/required-server-files.js +1 -1
  101. package/web/.next/required-server-files.json +1 -1
  102. package/web/.next/routes-manifest.json +8 -0
  103. package/web/.next/server/app/(dashboard)/@drawer/create/page/build-manifest.json +5 -5
  104. package/web/.next/server/app/(dashboard)/@drawer/create/page/server-reference-manifest.json +14 -14
  105. package/web/.next/server/app/(dashboard)/@drawer/create/page.js +1 -1
  106. package/web/.next/server/app/(dashboard)/@drawer/create/page.js.nft.json +1 -1
  107. package/web/.next/server/app/(dashboard)/@drawer/create/page_client-reference-manifest.js +1 -1
  108. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/build-manifest.json +5 -5
  109. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/server-reference-manifest.json +17 -17
  110. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js +1 -1
  111. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js.nft.json +1 -1
  112. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page_client-reference-manifest.js +1 -1
  113. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/build-manifest.json +5 -5
  114. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/server-reference-manifest.json +12 -12
  115. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js +1 -1
  116. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js.nft.json +1 -1
  117. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  118. package/web/.next/server/app/(dashboard)/create/page/build-manifest.json +5 -5
  119. package/web/.next/server/app/(dashboard)/create/page/server-reference-manifest.json +14 -14
  120. package/web/.next/server/app/(dashboard)/create/page.js +1 -1
  121. package/web/.next/server/app/(dashboard)/create/page.js.nft.json +1 -1
  122. package/web/.next/server/app/(dashboard)/create/page_client-reference-manifest.js +1 -1
  123. package/web/.next/server/app/(dashboard)/feature/[featureId]/page/build-manifest.json +5 -5
  124. package/web/.next/server/app/(dashboard)/feature/[featureId]/page/server-reference-manifest.json +17 -17
  125. package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js +1 -1
  126. package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js.nft.json +1 -1
  127. package/web/.next/server/app/(dashboard)/feature/[featureId]/page_client-reference-manifest.js +1 -1
  128. package/web/.next/server/app/(dashboard)/page/build-manifest.json +5 -5
  129. package/web/.next/server/app/(dashboard)/page/server-reference-manifest.json +12 -12
  130. package/web/.next/server/app/(dashboard)/page.js +1 -1
  131. package/web/.next/server/app/(dashboard)/page.js.nft.json +1 -1
  132. package/web/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
  133. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/build-manifest.json +5 -5
  134. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/server-reference-manifest.json +12 -12
  135. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js +1 -1
  136. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js.nft.json +1 -1
  137. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  138. package/web/.next/server/app/_global-error/page/build-manifest.json +5 -5
  139. package/web/.next/server/app/_global-error.html +2 -2
  140. package/web/.next/server/app/_global-error.rsc +1 -1
  141. package/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  142. package/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  143. package/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  144. package/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  145. package/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  146. package/web/.next/server/app/_not-found/page/build-manifest.json +5 -5
  147. package/web/.next/server/app/_not-found/page/server-reference-manifest.json +1 -1
  148. package/web/.next/server/app/_not-found/page.js.nft.json +1 -1
  149. package/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  150. package/web/.next/server/app/api/tools/[id]/install/route.js +1 -1
  151. package/web/.next/server/app/api/tools/[id]/install/route.js.nft.json +1 -1
  152. package/web/.next/server/app/api/tools/[id]/install/stream/route/app-paths-manifest.json +3 -0
  153. package/web/.next/server/app/api/tools/[id]/install/stream/route/build-manifest.json +11 -0
  154. package/web/.next/server/app/api/tools/[id]/install/stream/route/server-reference-manifest.json +4 -0
  155. package/web/.next/server/app/api/tools/[id]/install/stream/route.js +6 -0
  156. package/web/.next/server/app/api/tools/[id]/install/stream/route.js.map +5 -0
  157. package/web/.next/server/app/api/tools/[id]/install/stream/route.js.nft.json +1 -0
  158. package/web/.next/server/app/api/tools/[id]/install/stream/route_client-reference-manifest.js +2 -0
  159. package/web/.next/server/app/skills/page/build-manifest.json +5 -5
  160. package/web/.next/server/app/skills/page/server-reference-manifest.json +6 -6
  161. package/web/.next/server/app/skills/page.js +1 -1
  162. package/web/.next/server/app/skills/page.js.nft.json +1 -1
  163. package/web/.next/server/app/skills/page_client-reference-manifest.js +1 -1
  164. package/web/.next/server/app/tools/page/build-manifest.json +5 -5
  165. package/web/.next/server/app/tools/page/server-reference-manifest.json +77 -2
  166. package/web/.next/server/app/tools/page.js +2 -2
  167. package/web/.next/server/app/tools/page.js.nft.json +1 -1
  168. package/web/.next/server/app/tools/page_client-reference-manifest.js +1 -1
  169. package/web/.next/server/app/version/page/build-manifest.json +5 -5
  170. package/web/.next/server/app/version/page/server-reference-manifest.json +1 -1
  171. package/web/.next/server/app/version/page.js.nft.json +1 -1
  172. package/web/.next/server/app/version/page_client-reference-manifest.js +1 -1
  173. package/web/.next/server/app-paths-manifest.json +1 -0
  174. package/web/.next/server/chunks/[root-of-the-server]__0866d2b5._.js +3 -0
  175. package/web/.next/server/chunks/[root-of-the-server]__0866d2b5._.js.map +1 -0
  176. package/web/.next/server/chunks/[root-of-the-server]__e247a485._.js +11 -0
  177. package/web/.next/server/chunks/[root-of-the-server]__e247a485._.js.map +1 -0
  178. package/web/.next/server/chunks/f3a1f__next-internal_server_app_api_tools_[id]_install_stream_route_actions_1fe5bd5d.js +3 -0
  179. package/web/.next/server/chunks/f3a1f__next-internal_server_app_api_tools_[id]_install_stream_route_actions_1fe5bd5d.js.map +1 -0
  180. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js +1 -1
  181. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js.map +1 -1
  182. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_2b7834f6.js +1 -1
  183. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_2b7834f6.js.map +1 -1
  184. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_6923c575.js +1 -1
  185. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_6923c575.js.map +1 -1
  186. package/web/.next/server/chunks/ssr/[root-of-the-server]__17a611f0._.js +4 -0
  187. package/web/.next/server/chunks/ssr/[root-of-the-server]__17a611f0._.js.map +1 -0
  188. package/web/.next/server/chunks/ssr/[root-of-the-server]__249c74f6._.js +1 -1
  189. package/web/.next/{standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__07385073._.js → server/chunks/ssr/[root-of-the-server]__45dbf93d._.js} +3 -3
  190. package/web/.next/server/chunks/ssr/{[root-of-the-server]__07385073._.js.map → [root-of-the-server]__45dbf93d._.js.map} +1 -1
  191. package/web/.next/server/chunks/ssr/[root-of-the-server]__6b17a22d._.js +1 -1
  192. package/web/.next/server/chunks/ssr/[root-of-the-server]__6b17a22d._.js.map +1 -1
  193. package/web/.next/{standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__8fcb9132._.js → server/chunks/ssr/[root-of-the-server]__6cbc1149._.js} +3 -3
  194. package/web/.next/server/chunks/ssr/[root-of-the-server]__6cbc1149._.js.map +1 -0
  195. package/web/.next/server/chunks/ssr/[root-of-the-server]__804c006d._.js +1 -1
  196. package/web/.next/server/chunks/ssr/[root-of-the-server]__804c006d._.js.map +1 -1
  197. package/web/.next/server/chunks/ssr/[root-of-the-server]__aad040c0._.js +3 -0
  198. package/web/.next/server/chunks/ssr/[root-of-the-server]__aad040c0._.js.map +1 -0
  199. package/web/.next/server/chunks/ssr/[root-of-the-server]__c18f84a4._.js +3 -0
  200. package/web/.next/server/chunks/ssr/[root-of-the-server]__c18f84a4._.js.map +1 -0
  201. package/web/.next/server/chunks/ssr/[root-of-the-server]__cbae9863._.js +3 -0
  202. package/web/.next/server/chunks/ssr/[root-of-the-server]__cbae9863._.js.map +1 -0
  203. package/web/.next/server/chunks/ssr/[root-of-the-server]__e062a6de._.js +3 -0
  204. package/web/.next/server/chunks/ssr/[root-of-the-server]__e062a6de._.js.map +1 -0
  205. package/web/.next/server/chunks/ssr/[root-of-the-server]__e5e09f72._.js +3 -0
  206. package/web/.next/server/chunks/ssr/[root-of-the-server]__e5e09f72._.js.map +1 -0
  207. package/web/.next/server/chunks/ssr/_07c2a32a._.js +1 -1
  208. package/web/.next/server/chunks/ssr/_07c2a32a._.js.map +1 -1
  209. package/web/.next/server/chunks/ssr/_0e9d6bf7._.js +3 -0
  210. package/web/.next/server/chunks/ssr/_0e9d6bf7._.js.map +1 -0
  211. package/web/.next/server/chunks/ssr/_1978f325._.js +7 -0
  212. package/web/.next/server/chunks/ssr/_1978f325._.js.map +1 -0
  213. package/web/.next/server/chunks/ssr/_3197d5cb._.js +3 -0
  214. package/web/.next/server/chunks/ssr/_3197d5cb._.js.map +1 -0
  215. package/web/.next/server/chunks/ssr/_61351ed3._.js +3 -0
  216. package/web/.next/server/chunks/ssr/_61351ed3._.js.map +1 -0
  217. package/web/.next/server/chunks/ssr/_8400c8bb._.js +3 -0
  218. package/web/.next/server/chunks/ssr/_8400c8bb._.js.map +1 -0
  219. package/web/.next/server/chunks/ssr/_9f940437._.js +3 -0
  220. package/web/.next/server/chunks/ssr/_9f940437._.js.map +1 -0
  221. package/web/.next/server/chunks/ssr/_a29296f0._.js +3 -0
  222. package/web/.next/server/chunks/ssr/_a29296f0._.js.map +1 -0
  223. package/web/.next/{standalone/src/presentation/web/.next/server/chunks/ssr/_e50484ec._.js → server/chunks/ssr/_c03d5043._.js} +2 -2
  224. package/web/.next/server/chunks/ssr/{_e50484ec._.js.map → _c03d5043._.js.map} +1 -1
  225. package/web/.next/server/chunks/ssr/_e806976d._.js +3 -0
  226. package/web/.next/server/chunks/ssr/_e806976d._.js.map +1 -0
  227. package/web/.next/server/chunks/ssr/src_presentation_web_1a32dbcb._.js +2 -2
  228. package/web/.next/server/chunks/ssr/src_presentation_web_1a32dbcb._.js.map +1 -1
  229. package/web/.next/server/chunks/ssr/src_presentation_web_398553b0._.js +1 -1
  230. package/web/.next/server/chunks/ssr/src_presentation_web_398553b0._.js.map +1 -1
  231. package/web/.next/server/chunks/ssr/src_presentation_web_5c87e8e4._.js +1 -1
  232. package/web/.next/server/chunks/ssr/src_presentation_web_5c87e8e4._.js.map +1 -1
  233. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_f4952172.js +1 -1
  234. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_f4952172.js.map +1 -1
  235. package/web/.next/server/chunks/ssr/src_presentation_web_c1bc6240._.js +2 -2
  236. package/web/.next/server/chunks/ssr/src_presentation_web_c1bc6240._.js.map +1 -1
  237. package/web/.next/server/chunks/ssr/src_presentation_web_ca99d62d._.js +1 -1
  238. package/web/.next/server/chunks/ssr/src_presentation_web_ca99d62d._.js.map +1 -1
  239. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js +1 -1
  240. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js.map +1 -1
  241. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_tools_tools-page-client_tsx_3d0aa70c._.js +3 -0
  242. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_tools_tools-page-client_tsx_3d0aa70c._.js.map +1 -0
  243. package/web/.next/server/middleware-build-manifest.js +5 -5
  244. package/web/.next/server/pages/500.html +2 -2
  245. package/web/.next/server/server-reference-manifest.js +1 -1
  246. package/web/.next/server/server-reference-manifest.json +61 -26
  247. package/web/.next/standalone/src/presentation/web/.next/BUILD_ID +1 -1
  248. package/web/.next/standalone/src/presentation/web/.next/app-path-routes-manifest.json +1 -0
  249. package/web/.next/standalone/src/presentation/web/.next/build-manifest.json +7 -7
  250. package/web/.next/standalone/src/presentation/web/.next/prerender-manifest.json +3 -3
  251. package/web/.next/standalone/src/presentation/web/.next/required-server-files.json +1 -1
  252. package/web/.next/standalone/src/presentation/web/.next/routes-manifest.json +8 -0
  253. package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/@drawer/create/page/build-manifest.json +5 -5
  254. package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/@drawer/create/page/server-reference-manifest.json +14 -14
  255. package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/@drawer/create/page.js +1 -1
  256. package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/@drawer/create/page.js.nft.json +1 -1
  257. package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/@drawer/create/page_client-reference-manifest.js +1 -1
  258. package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/build-manifest.json +5 -5
  259. package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/server-reference-manifest.json +17 -17
  260. package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js +1 -1
  261. package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js.nft.json +1 -1
  262. package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page_client-reference-manifest.js +1 -1
  263. package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/build-manifest.json +5 -5
  264. package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/server-reference-manifest.json +12 -12
  265. package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js +1 -1
  266. package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js.nft.json +1 -1
  267. package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  268. package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/create/page/build-manifest.json +5 -5
  269. package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/create/page/server-reference-manifest.json +14 -14
  270. package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/create/page.js +1 -1
  271. package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/create/page.js.nft.json +1 -1
  272. package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/create/page_client-reference-manifest.js +1 -1
  273. package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/feature/[featureId]/page/build-manifest.json +5 -5
  274. package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/feature/[featureId]/page/server-reference-manifest.json +17 -17
  275. package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/feature/[featureId]/page.js +1 -1
  276. package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/feature/[featureId]/page.js.nft.json +1 -1
  277. package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/feature/[featureId]/page_client-reference-manifest.js +1 -1
  278. package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/page/build-manifest.json +5 -5
  279. package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/page/server-reference-manifest.json +12 -12
  280. package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/page.js +1 -1
  281. package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/page.js.nft.json +1 -1
  282. package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
  283. package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/build-manifest.json +5 -5
  284. package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/server-reference-manifest.json +12 -12
  285. package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js +1 -1
  286. package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js.nft.json +1 -1
  287. package/web/.next/standalone/src/presentation/web/.next/server/app/(dashboard)/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  288. package/web/.next/standalone/src/presentation/web/.next/server/app/_global-error/page/build-manifest.json +5 -5
  289. package/web/.next/standalone/src/presentation/web/.next/server/app/_global-error.html +2 -2
  290. package/web/.next/standalone/src/presentation/web/.next/server/app/_global-error.rsc +1 -1
  291. package/web/.next/standalone/src/presentation/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  292. package/web/.next/standalone/src/presentation/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  293. package/web/.next/standalone/src/presentation/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  294. package/web/.next/standalone/src/presentation/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  295. package/web/.next/standalone/src/presentation/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  296. package/web/.next/standalone/src/presentation/web/.next/server/app/_not-found/page/build-manifest.json +5 -5
  297. package/web/.next/standalone/src/presentation/web/.next/server/app/_not-found/page/server-reference-manifest.json +1 -1
  298. package/web/.next/standalone/src/presentation/web/.next/server/app/_not-found/page.js.nft.json +1 -1
  299. package/web/.next/standalone/src/presentation/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  300. package/web/.next/standalone/src/presentation/web/.next/server/app/api/tools/[id]/install/route.js +1 -1
  301. package/web/.next/standalone/src/presentation/web/.next/server/app/api/tools/[id]/install/route.js.nft.json +1 -1
  302. package/web/.next/standalone/src/presentation/web/.next/server/app/api/tools/[id]/install/stream/route/app-paths-manifest.json +3 -0
  303. package/web/.next/standalone/src/presentation/web/.next/server/app/api/tools/[id]/install/stream/route/build-manifest.json +11 -0
  304. package/web/.next/standalone/src/presentation/web/.next/server/app/api/tools/[id]/install/stream/route/server-reference-manifest.json +4 -0
  305. package/web/.next/standalone/src/presentation/web/.next/server/app/api/tools/[id]/install/stream/route.js +6 -0
  306. package/web/.next/standalone/src/presentation/web/.next/server/app/api/tools/[id]/install/stream/route.js.map +5 -0
  307. package/web/.next/standalone/src/presentation/web/.next/server/app/api/tools/[id]/install/stream/route.js.nft.json +1 -0
  308. package/web/.next/standalone/src/presentation/web/.next/server/app/api/tools/[id]/install/stream/route_client-reference-manifest.js +2 -0
  309. package/web/.next/standalone/src/presentation/web/.next/server/app/skills/page/build-manifest.json +5 -5
  310. package/web/.next/standalone/src/presentation/web/.next/server/app/skills/page/server-reference-manifest.json +6 -6
  311. package/web/.next/standalone/src/presentation/web/.next/server/app/skills/page.js +1 -1
  312. package/web/.next/standalone/src/presentation/web/.next/server/app/skills/page.js.nft.json +1 -1
  313. package/web/.next/standalone/src/presentation/web/.next/server/app/skills/page_client-reference-manifest.js +1 -1
  314. package/web/.next/standalone/src/presentation/web/.next/server/app/tools/page/build-manifest.json +5 -5
  315. package/web/.next/standalone/src/presentation/web/.next/server/app/tools/page/server-reference-manifest.json +77 -2
  316. package/web/.next/standalone/src/presentation/web/.next/server/app/tools/page.js +2 -2
  317. package/web/.next/standalone/src/presentation/web/.next/server/app/tools/page.js.nft.json +1 -1
  318. package/web/.next/standalone/src/presentation/web/.next/server/app/tools/page_client-reference-manifest.js +1 -1
  319. package/web/.next/standalone/src/presentation/web/.next/server/app/version/page/build-manifest.json +5 -5
  320. package/web/.next/standalone/src/presentation/web/.next/server/app/version/page/server-reference-manifest.json +1 -1
  321. package/web/.next/standalone/src/presentation/web/.next/server/app/version/page.js.nft.json +1 -1
  322. package/web/.next/standalone/src/presentation/web/.next/server/app/version/page_client-reference-manifest.js +1 -1
  323. package/web/.next/standalone/src/presentation/web/.next/server/app-paths-manifest.json +1 -0
  324. package/web/.next/standalone/src/presentation/web/.next/server/chunks/[root-of-the-server]__0866d2b5._.js +3 -0
  325. package/web/.next/standalone/src/presentation/web/.next/server/chunks/[root-of-the-server]__e247a485._.js +11 -0
  326. package/web/.next/standalone/src/presentation/web/.next/server/chunks/f3a1f__next-internal_server_app_api_tools_[id]_install_stream_route_actions_1fe5bd5d.js +3 -0
  327. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js +1 -1
  328. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_2b7834f6.js +1 -1
  329. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_6923c575.js +1 -1
  330. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__17a611f0._.js +4 -0
  331. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__249c74f6._.js +1 -1
  332. package/web/.next/{server/chunks/ssr/[root-of-the-server]__07385073._.js → standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__45dbf93d._.js} +3 -3
  333. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__6b17a22d._.js +1 -1
  334. package/web/.next/{server/chunks/ssr/[root-of-the-server]__8fcb9132._.js → standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__6cbc1149._.js} +3 -3
  335. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__804c006d._.js +1 -1
  336. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__aad040c0._.js +3 -0
  337. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__c18f84a4._.js +3 -0
  338. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__cbae9863._.js +3 -0
  339. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__e062a6de._.js +3 -0
  340. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__e5e09f72._.js +3 -0
  341. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/_07c2a32a._.js +1 -1
  342. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/_0e9d6bf7._.js +3 -0
  343. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/_1978f325._.js +7 -0
  344. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/_3197d5cb._.js +3 -0
  345. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/_61351ed3._.js +3 -0
  346. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/_8400c8bb._.js +3 -0
  347. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/_9f940437._.js +3 -0
  348. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/_a29296f0._.js +3 -0
  349. package/web/.next/{server/chunks/ssr/_e50484ec._.js → standalone/src/presentation/web/.next/server/chunks/ssr/_c03d5043._.js} +2 -2
  350. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/_e806976d._.js +3 -0
  351. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/src_presentation_web_1a32dbcb._.js +2 -2
  352. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/src_presentation_web_398553b0._.js +1 -1
  353. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/src_presentation_web_5c87e8e4._.js +1 -1
  354. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_f4952172.js +1 -1
  355. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/src_presentation_web_c1bc6240._.js +2 -2
  356. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/src_presentation_web_ca99d62d._.js +1 -1
  357. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js +1 -1
  358. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/src_presentation_web_components_features_tools_tools-page-client_tsx_3d0aa70c._.js +3 -0
  359. package/web/.next/standalone/src/presentation/web/.next/server/middleware-build-manifest.js +5 -5
  360. package/web/.next/standalone/src/presentation/web/.next/server/pages/500.html +2 -2
  361. package/web/.next/standalone/src/presentation/web/.next/server/server-reference-manifest.js +1 -1
  362. package/web/.next/standalone/src/presentation/web/.next/server/server-reference-manifest.json +61 -26
  363. package/web/.next/standalone/src/presentation/web/app/(dashboard)/get-graph-data.ts +2 -6
  364. package/web/.next/standalone/src/presentation/web/app/api/tools/[id]/install/route.ts +14 -6
  365. package/web/.next/standalone/src/presentation/web/app/api/tools/[id]/install/stream/route.ts +42 -0
  366. package/web/.next/standalone/src/presentation/web/app/build-graph-nodes.ts +14 -1
  367. package/web/.next/standalone/src/presentation/web/components/common/base-drawer/base-drawer.tsx +23 -9
  368. package/web/.next/standalone/src/presentation/web/components/common/control-center-drawer/create-drawer-client.tsx +13 -3
  369. package/web/.next/standalone/src/presentation/web/components/common/control-center-drawer/feature-drawer-client.tsx +6 -2
  370. package/web/.next/standalone/src/presentation/web/components/common/drawer-action-bar/drawer-action-bar.tsx +2 -0
  371. package/web/.next/standalone/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.tsx +8 -5
  372. package/web/.next/standalone/src/presentation/web/components/common/feature-node/feature-node.tsx +30 -24
  373. package/web/.next/standalone/src/presentation/web/components/common/repository-node/repository-node.tsx +33 -25
  374. package/web/.next/standalone/src/presentation/web/components/features/control-center/control-center-inner.tsx +25 -3
  375. package/web/.next/standalone/src/presentation/web/components/features/control-center/use-control-center-state.ts +184 -230
  376. package/web/.next/standalone/src/presentation/web/components/features/index.ts +1 -1
  377. package/web/.next/standalone/src/presentation/web/components/features/tools/index.ts +1 -1
  378. package/web/.next/standalone/src/presentation/web/components/features/tools/tool-card.stories.tsx +18 -0
  379. package/web/.next/standalone/src/presentation/web/components/features/tools/tool-card.tsx +75 -67
  380. package/web/.next/standalone/src/presentation/web/components/features/tools/tool-detail-drawer.stories.tsx +132 -0
  381. package/web/.next/standalone/src/presentation/web/components/features/tools/tool-detail-drawer.tsx +313 -0
  382. package/web/.next/standalone/src/presentation/web/components/features/tools/tools-page-client.stories.tsx +15 -0
  383. package/web/.next/standalone/src/presentation/web/components/features/tools/tools-page-client.tsx +3 -3
  384. package/web/.next/standalone/src/presentation/web/components/ui/alert-dialog.tsx +7 -0
  385. package/web/.next/standalone/src/presentation/web/components/ui/dialog.tsx +7 -1
  386. package/web/.next/standalone/src/presentation/web/hooks/use-tool-install-stream.ts +58 -0
  387. package/web/.next/standalone/src/presentation/web/lib/layout-with-dagre.ts +93 -4
  388. package/web/.next/standalone/src/presentation/web/server.js +1 -1
  389. package/web/.next/static/chunks/0c54314c8c9c9739.js +7 -0
  390. package/web/.next/static/chunks/18b181b038b76ba9.js +1 -0
  391. package/web/.next/static/chunks/{fc07834e422b1caa.js → 24d21945d0ad2f91.js} +1 -1
  392. package/web/.next/static/chunks/3b46dd43cf4b2b0c.js +1 -0
  393. package/web/.next/static/chunks/{d4ecce2ac7795bd9.js → 4332c12bfb4386b1.js} +1 -1
  394. package/web/.next/static/chunks/4a3b3cfcc85e7254.js +1 -0
  395. package/web/.next/static/chunks/5294480588feb18d.js +1 -0
  396. package/web/.next/static/chunks/5d0a6417c4e4e545.js +1 -0
  397. package/web/.next/static/chunks/67f2a7a5e8dc358a.css +2 -0
  398. package/web/.next/static/chunks/762fc4cf58e29489.js +1 -0
  399. package/web/.next/static/chunks/84a181ff3270fd9f.js +1 -0
  400. package/web/.next/static/chunks/9215b6fb973482c5.js +1 -0
  401. package/web/.next/static/chunks/9455c97db983fb26.js +1 -0
  402. package/web/.next/static/chunks/c92e1360ada8ca94.js +5 -0
  403. package/web/.next/static/chunks/{8b36e07129a1471f.js → d1257b6f5da57064.js} +1 -1
  404. package/web/.next/static/chunks/e4f4eaa9769bcadb.js +1 -0
  405. package/web/.next/static/chunks/edbd674102e897b4.js +1 -0
  406. package/web/.next/static/chunks/{turbopack-3a8fe0e18e69b0ab.js → turbopack-05820f781f3ffc22.js} +1 -1
  407. package/web/.next/trace +1 -1
  408. package/web/.next/trace-build +1 -1
  409. package/web/.next/types/link.d.ts +1 -0
  410. package/web/.next/types/routes.d.ts +2 -1
  411. package/web/.next/types/validator.ts +9 -0
  412. package/dist/src/presentation/web/components/features/tools/install-instructions.d.ts +0 -9
  413. package/dist/src/presentation/web/components/features/tools/install-instructions.d.ts.map +0 -1
  414. package/dist/src/presentation/web/components/features/tools/install-instructions.js +0 -19
  415. package/dist/src/presentation/web/components/features/tools/install-instructions.stories.d.ts +0 -12
  416. package/dist/src/presentation/web/components/features/tools/install-instructions.stories.d.ts.map +0 -1
  417. package/dist/src/presentation/web/components/features/tools/install-instructions.stories.js +0 -77
  418. package/web/.next/server/chunks/[root-of-the-server]__b1f03347._.js +0 -3
  419. package/web/.next/server/chunks/[root-of-the-server]__b1f03347._.js.map +0 -1
  420. package/web/.next/server/chunks/ssr/[root-of-the-server]__08ba9bd3._.js +0 -4
  421. package/web/.next/server/chunks/ssr/[root-of-the-server]__08ba9bd3._.js.map +0 -1
  422. package/web/.next/server/chunks/ssr/[root-of-the-server]__6bb00d90._.js +0 -3
  423. package/web/.next/server/chunks/ssr/[root-of-the-server]__6bb00d90._.js.map +0 -1
  424. package/web/.next/server/chunks/ssr/[root-of-the-server]__6db85a66._.js +0 -4
  425. package/web/.next/server/chunks/ssr/[root-of-the-server]__6db85a66._.js.map +0 -1
  426. package/web/.next/server/chunks/ssr/[root-of-the-server]__8c1a3d66._.js +0 -3
  427. package/web/.next/server/chunks/ssr/[root-of-the-server]__8c1a3d66._.js.map +0 -1
  428. package/web/.next/server/chunks/ssr/[root-of-the-server]__8fcb9132._.js.map +0 -1
  429. package/web/.next/server/chunks/ssr/[root-of-the-server]__9d14479b._.js +0 -3
  430. package/web/.next/server/chunks/ssr/[root-of-the-server]__9d14479b._.js.map +0 -1
  431. package/web/.next/server/chunks/ssr/[root-of-the-server]__d4e51258._.js +0 -3
  432. package/web/.next/server/chunks/ssr/[root-of-the-server]__d4e51258._.js.map +0 -1
  433. package/web/.next/server/chunks/ssr/[root-of-the-server]__fe2a7deb._.js +0 -3
  434. package/web/.next/server/chunks/ssr/[root-of-the-server]__fe2a7deb._.js.map +0 -1
  435. package/web/.next/server/chunks/ssr/_00e6c698._.js +0 -3
  436. package/web/.next/server/chunks/ssr/_00e6c698._.js.map +0 -1
  437. package/web/.next/server/chunks/ssr/_13566ff3._.js +0 -3
  438. package/web/.next/server/chunks/ssr/_13566ff3._.js.map +0 -1
  439. package/web/.next/server/chunks/ssr/_26129e04._.js +0 -3
  440. package/web/.next/server/chunks/ssr/_26129e04._.js.map +0 -1
  441. package/web/.next/server/chunks/ssr/_34a58db8._.js +0 -3
  442. package/web/.next/server/chunks/ssr/_34a58db8._.js.map +0 -1
  443. package/web/.next/server/chunks/ssr/_37259405._.js +0 -3
  444. package/web/.next/server/chunks/ssr/_37259405._.js.map +0 -1
  445. package/web/.next/server/chunks/ssr/_85d0351b._.js +0 -3
  446. package/web/.next/server/chunks/ssr/_85d0351b._.js.map +0 -1
  447. package/web/.next/server/chunks/ssr/_cb5b3951._.js +0 -3
  448. package/web/.next/server/chunks/ssr/_cb5b3951._.js.map +0 -1
  449. package/web/.next/server/chunks/ssr/_fc3a6895._.js +0 -3
  450. package/web/.next/server/chunks/ssr/_fc3a6895._.js.map +0 -1
  451. package/web/.next/server/chunks/ssr/node_modules__pnpm_3288606c._.js +0 -7
  452. package/web/.next/server/chunks/ssr/node_modules__pnpm_3288606c._.js.map +0 -1
  453. package/web/.next/standalone/src/presentation/web/.next/server/chunks/[root-of-the-server]__b1f03347._.js +0 -3
  454. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__08ba9bd3._.js +0 -4
  455. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__6bb00d90._.js +0 -3
  456. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__6db85a66._.js +0 -4
  457. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__8c1a3d66._.js +0 -3
  458. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__9d14479b._.js +0 -3
  459. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__d4e51258._.js +0 -3
  460. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__fe2a7deb._.js +0 -3
  461. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/_00e6c698._.js +0 -3
  462. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/_13566ff3._.js +0 -3
  463. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/_26129e04._.js +0 -3
  464. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/_34a58db8._.js +0 -3
  465. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/_37259405._.js +0 -3
  466. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/_85d0351b._.js +0 -3
  467. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/_cb5b3951._.js +0 -3
  468. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/_fc3a6895._.js +0 -3
  469. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/node_modules__pnpm_3288606c._.js +0 -7
  470. package/web/.next/standalone/src/presentation/web/components/features/tools/install-instructions.stories.tsx +0 -89
  471. package/web/.next/standalone/src/presentation/web/components/features/tools/install-instructions.tsx +0 -109
  472. package/web/.next/static/chunks/06b6b02bab76aee7.js +0 -1
  473. package/web/.next/static/chunks/06dfd668334ffb4e.js +0 -7
  474. package/web/.next/static/chunks/07fcc6d17357e905.js +0 -1
  475. package/web/.next/static/chunks/224ed5f5dbd33154.css +0 -2
  476. package/web/.next/static/chunks/32957ff277daec59.js +0 -1
  477. package/web/.next/static/chunks/3e1227e02ef8bcc6.js +0 -5
  478. package/web/.next/static/chunks/412a3ac70c529c5b.js +0 -1
  479. package/web/.next/static/chunks/550bf3cb8220cbf0.js +0 -1
  480. package/web/.next/static/chunks/5f5c607ffae8b918.js +0 -1
  481. package/web/.next/static/chunks/64d73952a0291431.js +0 -1
  482. package/web/.next/static/chunks/938c21b0cefb2b1d.js +0 -1
  483. package/web/.next/static/chunks/c7e793951b20a67f.js +0 -1
  484. package/web/.next/static/chunks/e44849eb58a3335f.js +0 -1
  485. package/web/.next/static/chunks/ecb2130572a7fbe7.js +0 -1
  486. /package/web/.next/static/{7K6dTYQIJ7__PLUYLLfZV → hqNYYoVPGek0YVNAAv6P-}/_buildManifest.js +0 -0
  487. /package/web/.next/static/{7K6dTYQIJ7__PLUYLLfZV → hqNYYoVPGek0YVNAAv6P-}/_clientMiddlewareManifest.json +0 -0
  488. /package/web/.next/static/{7K6dTYQIJ7__PLUYLLfZV → hqNYYoVPGek0YVNAAv6P-}/_ssgManifest.js +0 -0
@@ -3,7 +3,7 @@ import { useState, useCallback, useEffect, useRef } from 'react';
3
3
  import { useRouter } from 'next/navigation';
4
4
  import { toast } from 'sonner';
5
5
  import { applyNodeChanges } from '@xyflow/react';
6
- import { layoutWithDagre } from '../../../lib/layout-with-dagre.js';
6
+ import { layoutWithDagre, CANVAS_LAYOUT_DEFAULTS, } from '../../../lib/layout-with-dagre.js';
7
7
  import { deleteFeature } from '../../../app/actions/delete-feature.js';
8
8
  import { addRepository } from '../../../app/actions/add-repository.js';
9
9
  import { deleteRepository } from '../../../app/actions/delete-repository.js';
@@ -11,9 +11,7 @@ import { useAgentEventsContext } from '../../../hooks/agent-events-provider.js';
11
11
  import { useSoundAction } from '../../../hooks/use-sound-action.js';
12
12
  import { mapEventTypeToState, mapPhaseNameToLifecycle, } from '../../common/feature-node/derive-feature-state.js';
13
13
  let nextFeatureId = 0;
14
- export function useControlCenterState(initialNodes, initialEdges,
15
- /** When true, background router.refresh() calls (polling / SSE debounce) are suppressed. */
16
- isRefreshBlocked) {
14
+ export function useControlCenterState(initialNodes, initialEdges) {
17
15
  const router = useRouter();
18
16
  const [nodes, setNodes] = useState(initialNodes);
19
17
  // eslint-disable-next-line react/hook-use-state -- raw setter renamed; public setEdges wrapper keeps edgesRef in sync
@@ -30,7 +28,7 @@ isRefreshBlocked) {
30
28
  }, []);
31
29
  const deleteSound = useSoundAction('delete');
32
30
  const createSound = useSoundAction('create');
33
- // Sync server props into local state when router.refresh() delivers new data
31
+ // Sync server props into local state when parent re-renders with new data
34
32
  const initialNodeKey = initialNodes
35
33
  .map((n) => n.id)
36
34
  .sort()
@@ -61,8 +59,9 @@ isRefreshBlocked) {
61
59
  const creatingNodes = currentNodes.filter((n) => n.type === 'featureNode' &&
62
60
  n.data.state === 'creating' &&
63
61
  !serverIds.has(n.id));
64
- // Merge server nodes with client positions
65
- return initialNodes.map((serverNode) => {
62
+ // Merge server nodes with client positions, tracking if relayout is needed
63
+ let needsRelayout = false;
64
+ const merged = initialNodes.map((serverNode) => {
66
65
  // Node already exists on canvas — keep its position, update data
67
66
  const existing = currentById.get(serverNode.id);
68
67
  if (existing) {
@@ -73,17 +72,28 @@ isRefreshBlocked) {
73
72
  const donor = creatingNodes.shift();
74
73
  return { ...serverNode, position: donor.position };
75
74
  }
76
- // Truly new node with no optimistic counterpart — use server position
75
+ // Truly new node with no optimistic counterpart — needs relayout
76
+ needsRelayout = true;
77
77
  return serverNode;
78
78
  });
79
+ // Also check if non-creating nodes were removed (graph got smaller)
80
+ if (!needsRelayout) {
81
+ needsRelayout = currentNodes.some((cn) => !serverIds.has(cn.id) &&
82
+ !(cn.type === 'featureNode' && cn.data.state === 'creating'));
83
+ }
84
+ if (needsRelayout) {
85
+ const layoutResult = layoutWithDagre(merged, initialEdges, CANVAS_LAYOUT_DEFAULTS);
86
+ setEdges(layoutResult.edges);
87
+ return layoutResult.nodes;
88
+ }
89
+ return merged;
79
90
  });
80
- }, [initialNodeKey, initialNodes]);
91
+ }, [initialNodeKey, initialNodes, initialEdges, setEdges]);
81
92
  useEffect(() => {
82
93
  setEdges(initialEdges);
83
94
  }, [initialEdgeKey, initialEdges, setEdges]);
84
- // Fallback notifications from server-refresh state transitions.
85
- // Fires only when SSE didn't already deliver the matching event for a feature,
86
- // e.g. when the SSE connection was down or the event was seeded into the cache.
95
+ // Fallback notifications from server-prop state transitions.
96
+ // Fires only when SSE didn't already deliver the matching event for a feature.
87
97
  const { events } = useAgentEventsContext();
88
98
  useEffect(() => {
89
99
  const prevStates = prevFeatureStatesRef.current;
@@ -118,14 +128,10 @@ isRefreshBlocked) {
118
128
  prevStates.set(node.id, data.state);
119
129
  }
120
130
  }, [initialDataKey, initialNodes, events, router]);
121
- // Targeted optimistic updates from SSE agent events + debounced reconciliation.
131
+ // Targeted optimistic updates from SSE agent events.
122
132
  // Uses `events` array (not `lastEvent`) so that React batching cannot silently
123
133
  // drop events when multiple SSE messages arrive in the same tick.
124
134
  const processedEventCountRef = useRef(0);
125
- const reconcileTimerRef = useRef(undefined);
126
- useEffect(() => {
127
- return () => clearTimeout(reconcileTimerRef.current);
128
- }, []);
129
135
  useEffect(() => {
130
136
  if (events.length <= processedEventCountRef.current)
131
137
  return;
@@ -151,31 +157,7 @@ isRefreshBlocked) {
151
157
  };
152
158
  }));
153
159
  }
154
- // Debounced background reconciliation (3s after last SSE event)
155
- clearTimeout(reconcileTimerRef.current);
156
- reconcileTimerRef.current = setTimeout(() => {
157
- if (!isRefreshBlocked?.())
158
- router.refresh();
159
- }, 3000);
160
- }, [events, router, isRefreshBlocked]);
161
- // Periodic polling fallback: refresh server data every 5s when any feature
162
- // is in an active state (running/action-required). This ensures the UI stays
163
- // current even if the SSE connection drops — belt-and-suspenders alongside SSE.
164
- useEffect(() => {
165
- const hasActiveFeature = nodes.some((n) => {
166
- if (n.type !== 'featureNode')
167
- return false;
168
- const data = n.data;
169
- return (data.state === 'running' || data.state === 'action-required' || data.state === 'creating');
170
- });
171
- if (!hasActiveFeature)
172
- return;
173
- const interval = setInterval(() => {
174
- if (!isRefreshBlocked?.())
175
- router.refresh();
176
- }, 5_000);
177
- return () => clearInterval(interval);
178
- }, [nodes, router, isRefreshBlocked]);
160
+ }, [events]);
179
161
  const onNodesChange = useCallback((changes) => {
180
162
  setNodes((ns) => applyNodeChanges(changes, ns));
181
163
  }, []);
@@ -220,202 +202,155 @@ isRefreshBlocked) {
220
202
  branch: dataOverride?.branch ?? '',
221
203
  };
222
204
  setNodes((currentNodes) => {
223
- // Read edges from ref to avoid closure dependency on `edges` state.
224
- // edgesRef is kept in sync by the setEdges wrapper.
225
- const siblingIds = sourceNodeId
226
- ? new Set(edgesRef.current.filter((e) => e.source === sourceNodeId).map((e) => e.target))
227
- : new Set();
228
- const siblings = currentNodes.filter((n) => siblingIds.has(n.id));
229
- let position;
230
- if (siblings.length > 0) {
231
- // Place below the bottom-most sibling, matching X
232
- const sortedYs = siblings.map((n) => n.position.y).sort((a, b) => a - b);
233
- const maxY = sortedYs[sortedYs.length - 1];
234
- // Derive gap from existing spacing between siblings, or use default
235
- const gap = sortedYs.length > 1 ? sortedYs[1] - sortedYs[0] : 160;
236
- position = { x: siblings[0].position.x, y: maxY + gap };
237
- }
238
- else if (sourceNodeId) {
239
- // First child — position to the right of parent
240
- const parent = currentNodes.find((n) => n.id === sourceNodeId);
241
- // Parent width (288) + 200px gap matching dagre ranksep
242
- const xOffset = 488;
243
- position = parent
244
- ? { x: parent.position.x + xOffset, y: parent.position.y }
245
- : { x: 400, y: 200 };
246
- }
247
- else {
248
- // Standalone feature — place below all existing nodes
249
- const maxY = currentNodes.length > 0 ? Math.max(...currentNodes.map((n) => n.position.y)) : 0;
250
- position = { x: 400, y: currentNodes.length > 0 ? maxY + 160 : 200 };
251
- }
252
- // The new node's bottom edge (featureNode height = 140)
253
- const newBottom = position.y + 140;
254
- // Find the old group bottom before adding the new node
255
- const groupNodeIds = new Set([sourceNodeId, ...siblingIds]);
256
- const oldGroupBottom = currentNodes
257
- .filter((n) => groupNodeIds.has(n.id))
258
- .reduce((max, n) => {
259
- const h = n.type === 'featureNode' ? 140 : 50;
260
- return Math.max(max, n.position.y + h);
261
- }, 0);
262
- // Shift amount: how much the group grew past its old bottom
263
- const shift = Math.max(0, newBottom - oldGroupBottom);
264
- // Push down all nodes that are below the old group bottom
265
- const shifted = shift > 0
266
- ? currentNodes.map((n) => {
267
- if (groupNodeIds.has(n.id) || siblingIds.has(n.id))
268
- return n;
269
- if (n.position.y >= oldGroupBottom) {
270
- return { ...n, position: { ...n.position, y: n.position.y + shift } };
271
- }
272
- return n;
273
- })
274
- : currentNodes;
275
- // Re-center the parent node vertically to its children
276
- const recentered = sourceNodeId
277
- ? shifted.map((n) => {
278
- if (n.id !== sourceNodeId)
279
- return n;
280
- const allChildYs = [...siblings.map((s) => s.position.y), position.y];
281
- const groupCenter = (Math.min(...allChildYs) + Math.max(...allChildYs) + 140) / 2;
282
- const parentHeight = n.type === 'featureNode' ? 140 : 50;
283
- return {
284
- ...n,
285
- position: { ...n.position, y: groupCenter - parentHeight / 2 },
286
- };
287
- })
288
- : shifted;
289
- return [
290
- ...recentered,
291
- {
292
- id,
293
- type: 'featureNode',
294
- position,
295
- data: newFeatureData,
296
- },
297
- ];
298
- });
299
- if (sourceNodeId) {
300
- setEdges((currentEdges) => [
301
- ...currentEdges,
302
- {
205
+ const newNode = {
206
+ id,
207
+ type: 'featureNode',
208
+ position: { x: 0, y: 0 },
209
+ data: newFeatureData,
210
+ };
211
+ const newEdge = sourceNodeId
212
+ ? {
303
213
  id: edgeType === 'dependencyEdge'
304
214
  ? `dep-${sourceNodeId}-${id}`
305
215
  : `edge-${sourceNodeId}-${id}`,
306
216
  source: sourceNodeId,
307
217
  target: id,
308
218
  ...(edgeType ? { type: edgeType } : { style: { strokeDasharray: '5 5' } }),
309
- },
310
- ]);
311
- }
219
+ }
220
+ : null;
221
+ const allEdges = newEdge
222
+ ? [...edgesRef.current.filter((e) => e.id !== newEdge.id), newEdge]
223
+ : edgesRef.current;
224
+ // Insert the new node after the last sibling connected to the same source,
225
+ // so dagre's input-order preservation keeps repo groups together.
226
+ let insertIndex = currentNodes.length;
227
+ if (sourceNodeId) {
228
+ const siblingIds = new Set(allEdges.filter((e) => e.source === sourceNodeId).map((e) => e.target));
229
+ for (let i = currentNodes.length - 1; i >= 0; i--) {
230
+ if (siblingIds.has(currentNodes[i].id)) {
231
+ insertIndex = i + 1;
232
+ break;
233
+ }
234
+ }
235
+ }
236
+ const allNodes = [
237
+ ...currentNodes.slice(0, insertIndex),
238
+ newNode,
239
+ ...currentNodes.slice(insertIndex),
240
+ ];
241
+ // Run dagre layout on the full graph so the new node is positioned consistently
242
+ const layoutResult = layoutWithDagre(allNodes, allEdges, CANVAS_LAYOUT_DEFAULTS);
243
+ setEdges(layoutResult.edges);
244
+ return layoutResult.nodes;
245
+ });
312
246
  return id;
313
247
  }, [setEdges]);
314
- const handleDeleteFeature = useCallback(async (featureId) => {
315
- try {
316
- const result = await deleteFeature(featureId);
248
+ const handleDeleteFeature = useCallback((featureId) => {
249
+ const nodeId = `feat-${featureId}`;
250
+ // Snapshot current state for rollback
251
+ const prevNodes = nodes;
252
+ const prevEdges = edgesRef.current;
253
+ // Optimistic removal — update UI immediately
254
+ setNodes((currentNodes) => {
255
+ const remainingNodes = currentNodes.filter((n) => n.id !== nodeId);
256
+ const remainingEdges = edgesRef.current.filter((e) => e.source !== nodeId && e.target !== nodeId);
257
+ const layoutResult = layoutWithDagre(remainingNodes, remainingEdges, CANVAS_LAYOUT_DEFAULTS);
258
+ setEdges(layoutResult.edges);
259
+ return layoutResult.nodes;
260
+ });
261
+ deleteSound.play();
262
+ toast.success('Feature deleted successfully');
263
+ router.push('/');
264
+ // Persist in background — rollback on failure
265
+ deleteFeature(featureId)
266
+ .then((result) => {
317
267
  if (result.error) {
268
+ setNodes(prevNodes);
269
+ setEdges(prevEdges);
318
270
  toast.error(result.error);
319
- return;
320
271
  }
321
- setNodes((currentNodes) => {
322
- const remainingNodes = currentNodes.filter((n) => n.id !== featureId);
323
- const remainingEdges = edges.filter((e) => e.source !== featureId && e.target !== featureId);
324
- const layoutResult = layoutWithDagre(remainingNodes, remainingEdges, {
325
- direction: 'LR',
326
- ranksep: 200,
327
- nodesep: 60,
328
- });
329
- setEdges(layoutResult.edges);
330
- return layoutResult.nodes;
331
- });
332
- deleteSound.play();
333
- toast.success('Feature deleted successfully');
334
- router.refresh();
335
- }
336
- catch {
272
+ })
273
+ .catch(() => {
274
+ setNodes(prevNodes);
275
+ setEdges(prevEdges);
337
276
  toast.error('Failed to delete feature');
338
- }
339
- }, [router, edges, deleteSound, setEdges]);
277
+ });
278
+ }, [nodes, router, deleteSound, setEdges]);
340
279
  const handleDeleteRepository = useCallback(async (repositoryId) => {
341
280
  const repoNodeId = `repo-${repositoryId}`;
342
- // Optimistic: remove node and its edges immediately
343
- setNodes((prev) => prev.filter((n) => n.id !== repoNodeId));
344
- setEdges((prev) => prev.filter((e) => e.source !== repoNodeId && e.target !== repoNodeId));
281
+ // Snapshot for rollback
282
+ const prevNodes = nodes;
283
+ const prevEdges = edgesRef.current;
284
+ // Optimistic: remove repo node, its child feature nodes, and all related edges
285
+ setNodes((currentNodes) => {
286
+ // Find feature node IDs connected to this repo via edges
287
+ const childFeatureIds = new Set(edgesRef.current.filter((e) => e.source === repoNodeId).map((e) => e.target));
288
+ const remainingNodes = currentNodes.filter((n) => n.id !== repoNodeId && !childFeatureIds.has(n.id));
289
+ const remainingEdges = edgesRef.current.filter((e) => e.source !== repoNodeId &&
290
+ e.target !== repoNodeId &&
291
+ !childFeatureIds.has(e.source) &&
292
+ !childFeatureIds.has(e.target));
293
+ const layoutResult = layoutWithDagre(remainingNodes, remainingEdges, CANVAS_LAYOUT_DEFAULTS);
294
+ setEdges(layoutResult.edges);
295
+ return layoutResult.nodes;
296
+ });
345
297
  try {
346
298
  const result = await deleteRepository(repositoryId);
347
299
  if (!result.success) {
348
300
  toast.error(result.error ?? 'Failed to remove repository');
349
- router.refresh();
301
+ setNodes(prevNodes);
302
+ setEdges(prevEdges);
350
303
  return;
351
304
  }
352
305
  deleteSound.play();
353
306
  toast.success('Repository removed');
354
- router.refresh();
355
307
  }
356
308
  catch {
357
309
  toast.error('Failed to remove repository');
358
- router.refresh();
310
+ setNodes(prevNodes);
311
+ setEdges(prevEdges);
359
312
  }
360
- }, [router, deleteSound, setEdges]);
313
+ }, [nodes, deleteSound, setEdges]);
361
314
  const handleLayout = useCallback((direction) => {
362
315
  setNodes((currentNodes) => {
363
- const currentEdges = edges;
364
- const result = layoutWithDagre(currentNodes, currentEdges, {
316
+ const result = layoutWithDagre(currentNodes, edgesRef.current, {
317
+ ...CANVAS_LAYOUT_DEFAULTS,
365
318
  direction,
366
- ranksep: 60,
367
- nodesep: 20,
368
319
  });
369
320
  setEdges(result.edges);
370
321
  return result.nodes;
371
322
  });
372
- }, [edges, setEdges]);
323
+ }, [setEdges]);
373
324
  const handleAddRepository = useCallback((path) => {
374
325
  const tempId = `repo-temp-${Date.now()}`;
375
326
  const repoName = path
376
327
  .replace(/[\\/]+$/, '')
377
328
  .split(/[\\/]/)
378
329
  .pop() ?? path;
379
- // Optimistic UI: add node immediately
380
- let savedAddRepoY = 0;
330
+ // Optimistic UI: add node and re-layout immediately
381
331
  setNodes((currentNodes) => {
382
- const repoNodes = currentNodes.filter((n) => n.type === 'repositoryNode');
383
- const addRepoNode = currentNodes.find((n) => n.type === 'addRepositoryNode');
384
- // Save addRepoNode's original Y for rollback on error
385
- if (addRepoNode)
386
- savedAddRepoY = addRepoNode.position.y;
387
- // Place in the repo column, at the addRepoNode's current position
388
- const repoX = repoNodes[0]?.position.x ?? addRepoNode?.position.x ?? 50;
389
- const repoHeight = 50; // repositoryNode height
390
- const gap = 15; // match dagre nodesep
391
- const position = {
392
- x: repoX,
393
- y: addRepoNode ? addRepoNode.position.y : 0,
394
- };
395
332
  const newNode = {
396
333
  id: tempId,
397
334
  type: 'repositoryNode',
398
- position,
335
+ position: { x: 0, y: 0 },
399
336
  data: { name: repoName, repositoryPath: path, id: tempId },
400
337
  };
401
- // Shift addRepo button down by exactly one slot
402
- const addRepoY = addRepoNode
403
- ? addRepoNode.position.y + repoHeight + gap
404
- : position.y + repoHeight + gap;
405
- return currentNodes
406
- .map((n) => n.type === 'addRepositoryNode' ? { ...n, position: { ...n.position, y: addRepoY } } : n)
407
- .concat(newNode);
338
+ const allNodes = [...currentNodes, newNode];
339
+ const layoutResult = layoutWithDagre(allNodes, edgesRef.current, CANVAS_LAYOUT_DEFAULTS);
340
+ setEdges(layoutResult.edges);
341
+ return layoutResult.nodes;
408
342
  });
409
343
  // Persist via server action
410
344
  addRepository({ path, name: repoName })
411
345
  .then((result) => {
412
346
  if (result.error) {
413
- // Rollback optimistic node and restore addRepoNode position
414
- setNodes((prev) => prev
415
- .filter((n) => n.id !== tempId)
416
- .map((n) => n.type === 'addRepositoryNode'
417
- ? { ...n, position: { ...n.position, y: savedAddRepoY } }
418
- : n));
347
+ // Rollback optimistic node and re-layout
348
+ setNodes((prev) => {
349
+ const remaining = prev.filter((n) => n.id !== tempId);
350
+ const layoutResult = layoutWithDagre(remaining, edgesRef.current, CANVAS_LAYOUT_DEFAULTS);
351
+ setEdges(layoutResult.edges);
352
+ return layoutResult.nodes;
353
+ });
419
354
  toast.error(result.error);
420
355
  return;
421
356
  }
@@ -436,18 +371,18 @@ isRefreshBlocked) {
436
371
  id: e.id.replace(tempId, realId),
437
372
  })));
438
373
  createSound.play();
439
- router.refresh();
440
374
  })
441
375
  .catch(() => {
442
- // Rollback optimistic node and restore addRepoNode position
443
- setNodes((prev) => prev
444
- .filter((n) => n.id !== tempId)
445
- .map((n) => n.type === 'addRepositoryNode'
446
- ? { ...n, position: { ...n.position, y: savedAddRepoY } }
447
- : n));
376
+ // Rollback optimistic node and re-layout
377
+ setNodes((prev) => {
378
+ const remaining = prev.filter((n) => n.id !== tempId);
379
+ const layoutResult = layoutWithDagre(remaining, edgesRef.current, CANVAS_LAYOUT_DEFAULTS);
380
+ setEdges(layoutResult.edges);
381
+ return layoutResult.nodes;
382
+ });
448
383
  toast.error('Failed to add repository');
449
384
  });
450
- }, [router, createSound, setEdges]);
385
+ }, [createSound, setEdges]);
451
386
  return {
452
387
  nodes,
453
388
  edges,
@@ -1,5 +1,5 @@
1
1
  export { FeaturesCanvas, type FeaturesCanvasProps } from './features-canvas/index.js';
2
2
  export { ToolsPageClient, type ToolsPageClientProps } from './tools/index.js';
3
3
  export { ToolCard, type ToolCardProps } from './tools/index.js';
4
- export { InstallInstructions, type InstallInstructionsProps } from './tools/index.js';
4
+ export { ToolDetailDrawer, type ToolDetailDrawerProps } from './tools/index.js';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/components/features/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,MAAM,SAAS,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,SAAS,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,KAAK,wBAAwB,EAAE,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/components/features/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,MAAM,SAAS,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,SAAS,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,MAAM,SAAS,CAAC"}
@@ -1,4 +1,4 @@
1
1
  export { FeaturesCanvas } from './features-canvas/index.js';
2
2
  export { ToolsPageClient } from './tools/index.js';
3
3
  export { ToolCard } from './tools/index.js';
4
- export { InstallInstructions } from './tools/index.js';
4
+ export { ToolDetailDrawer } from './tools/index.js';
@@ -1,4 +1,4 @@
1
1
  export { ToolsPageClient, type ToolsPageClientProps } from './tools-page-client.js';
2
2
  export { ToolCard, type ToolCardProps } from './tool-card.js';
3
- export { InstallInstructions, type InstallInstructionsProps } from './install-instructions.js';
3
+ export { ToolDetailDrawer, type ToolDetailDrawerProps } from './tool-detail-drawer.js';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/tools/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AACjF,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE,KAAK,wBAAwB,EAAE,MAAM,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/tools/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AACjF,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,MAAM,sBAAsB,CAAC"}
@@ -1,3 +1,3 @@
1
1
  export { ToolsPageClient } from './tools-page-client.js';
2
2
  export { ToolCard } from './tool-card.js';
3
- export { InstallInstructions } from './install-instructions.js';
3
+ export { ToolDetailDrawer } from './tool-detail-drawer.js';
@@ -1 +1 @@
1
- {"version":3,"file":"tool-card.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/tools/tool-card.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,8DAA8D,CAAC;AAE7F,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,QAAQ,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AASD,wBAAgB,QAAQ,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,EAAE,aAAa,2CA2JrE"}
1
+ {"version":3,"file":"tool-card.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/tools/tool-card.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,8DAA8D,CAAC;AAE7F,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,QAAQ,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AASD,wBAAgB,QAAQ,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,EAAE,aAAa,2CAkKrE"}
@@ -1,10 +1,11 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
3
  import { useState, useTransition } from 'react';
4
- import { ExternalLink, Loader2, Rocket, Download, Monitor, Terminal, GitBranch, CircleX, Check, Package, } from 'lucide-react';
4
+ import { Loader2, Rocket, Download, Monitor, Terminal, GitBranch, CircleX, Circle, CheckCircle2, Package, } from 'lucide-react';
5
5
  import { Button } from '../../ui/button.js';
6
+ import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '../../ui/tooltip.js';
6
7
  import { cn } from '../../../lib/utils.js';
7
- import { InstallInstructions } from './install-instructions.js';
8
+ import { ToolDetailDrawer } from './tool-detail-drawer.js';
8
9
  const TAG_CONFIG = {
9
10
  ide: { label: 'IDE', icon: Monitor },
10
11
  'cli-agent': { label: 'CLI Agent', icon: Terminal },
@@ -12,29 +13,32 @@ const TAG_CONFIG = {
12
13
  terminal: { label: 'Terminal', icon: Terminal },
13
14
  };
14
15
  export function ToolCard({ tool, onRefresh, className }) {
15
- const [installDrawerOpen, setInstallDrawerOpen] = useState(false);
16
+ const [drawerOpen, setDrawerOpen] = useState(false);
17
+ const [autoStartInstall, setAutoStartInstall] = useState(false);
16
18
  const [isPending, startTransition] = useTransition();
17
19
  const isInstalled = tool.status.status === 'available';
18
20
  const isError = tool.status.status === 'error';
19
21
  const canLaunch = isInstalled && Boolean(tool.openDirectory);
20
- function handleLaunch() {
22
+ function handleLaunch(e) {
23
+ e.stopPropagation();
21
24
  startTransition(async () => {
22
25
  await fetch(`/api/tools/${tool.id}/launch`, { method: 'POST' });
23
26
  });
24
27
  }
25
- function handleAutoInstall() {
26
- startTransition(async () => {
27
- const res = await fetch(`/api/tools/${tool.id}/install`, { method: 'POST' });
28
- if (res.ok && onRefresh) {
29
- await onRefresh();
30
- }
31
- });
28
+ function handleCardClick() {
29
+ setAutoStartInstall(false);
30
+ setDrawerOpen(true);
31
+ }
32
+ function handleInstallClick(e) {
33
+ e.stopPropagation();
34
+ setAutoStartInstall(tool.autoInstall);
35
+ setDrawerOpen(true);
32
36
  }
33
- return (_jsxs(_Fragment, { children: [_jsxs("div", { "data-testid": "tool-card", className: cn('bg-card group flex h-30 w-full flex-col rounded-lg border p-3 shadow-sm transition-shadow hover:shadow-md', className), children: [_jsxs("div", { className: "mb-2 flex items-start justify-between gap-2", children: [_jsxs("div", { className: "flex min-w-0 items-center gap-2", children: [tool.iconUrl ? (
37
+ return (_jsxs(_Fragment, { children: [_jsxs("div", { "data-testid": "tool-card", onClick: handleCardClick, className: cn('bg-card group flex h-30 w-full cursor-pointer flex-col rounded-lg border p-3 transition-shadow hover:shadow-md', className), children: [_jsxs("div", { className: "mb-2 flex items-start justify-between gap-2", children: [_jsxs("div", { className: "flex min-w-0 items-center gap-2", children: [tool.iconUrl ? (
34
38
  /* eslint-disable-next-line @next/next/no-img-element */
35
39
  _jsx("img", { src: tool.iconUrl, alt: "", width: 20, height: 20, className: "shrink-0 dark:invert" })) : (_jsx(Package, { className: "text-muted-foreground h-5 w-5 shrink-0" })), _jsx("h3", { "data-testid": "tool-card-name", className: "truncate text-sm font-bold", children: tool.name })] }), _jsx("div", { "data-testid": "tool-card-tags", className: "flex shrink-0 items-center gap-1", children: tool.tags.map((tag) => {
36
40
  const config = TAG_CONFIG[tag] ?? { label: tag, icon: Monitor };
37
41
  const TagIcon = config.icon;
38
- return (_jsxs("span", { className: "bg-muted text-muted-foreground inline-flex items-center gap-0.5 rounded px-1.5 py-0.5 text-[10px] font-medium", children: [_jsx(TagIcon, { className: "h-2.5 w-2.5" }), config.label] }, tag));
39
- }) })] }), _jsx("p", { "data-testid": "tool-card-summary", className: "text-muted-foreground mt-1 truncate text-xs", children: tool.summary }), _jsxs("div", { className: "mt-auto flex items-center justify-between pt-3", children: [_jsxs("div", { className: "flex items-center gap-2", children: [isError && tool.status.status === 'error' ? (_jsxs("span", { className: "flex items-center gap-1 truncate text-[10px] text-red-600 dark:text-red-400", title: tool.status.errorMessage, children: [_jsx(CircleX, { className: "h-3 w-3 shrink-0" }), tool.status.errorMessage ?? 'Error'] })) : isInstalled ? (_jsxs("span", { className: "flex items-center gap-1 text-[11px] text-emerald-600 dark:text-emerald-400", children: [_jsx(Check, { className: "h-3 w-3" }), "Installed"] })) : (_jsx("span", { className: "text-muted-foreground text-[10px]", children: "Not installed" })), tool.required ? (_jsx("span", { className: "text-muted-foreground text-[10px] italic", children: "Required" })) : null] }), isInstalled && canLaunch ? (_jsxs(Button, { size: "sm", variant: "ghost", onClick: handleLaunch, disabled: isPending, "aria-label": `Launch ${tool.name}`, "data-testid": "tool-card-launch-button", className: "hover:bg-primary hover:text-primary-foreground h-7 cursor-pointer rounded-md px-3 text-xs", children: [isPending ? (_jsx(Loader2, { className: "mr-1 h-3 w-3 animate-spin" })) : (_jsx(Rocket, { className: "mr-1 h-3 w-3" })), "Launch"] })) : !isInstalled && !isError && tool.autoInstall ? (_jsxs(Button, { size: "sm", onClick: handleAutoInstall, disabled: isPending, "aria-label": `Install ${tool.name}`, "data-testid": "tool-card-install-button", className: "h-7 cursor-pointer rounded-md px-3 text-xs", children: [isPending ? (_jsx(Loader2, { className: "mr-1 h-3 w-3 animate-spin" })) : (_jsx(Download, { className: "mr-1 h-3 w-3" })), isPending ? 'Installing…' : 'Install'] })) : !isInstalled && !isError ? (_jsxs(Button, { size: "sm", variant: "outline", onClick: () => setInstallDrawerOpen(true), "aria-label": `View install instructions for ${tool.name}`, "data-testid": "tool-card-manual-install-button", className: "h-7 cursor-pointer rounded-md px-3 text-xs", children: [_jsx(ExternalLink, { className: "mr-1 h-3 w-3" }), "Install"] })) : null] })] }), _jsx(InstallInstructions, { tool: tool, open: installDrawerOpen, onOpenChange: setInstallDrawerOpen })] }));
42
+ return (_jsxs("span", { className: "text-muted-foreground/70 inline-flex items-center gap-0.5 text-[9px]", children: [_jsx(TagIcon, { className: "h-2.5 w-2.5" }), config.label] }, tag));
43
+ }) })] }), _jsx("p", { "data-testid": "tool-card-summary", className: "text-muted-foreground mt-1 truncate text-xs", children: tool.summary }), _jsxs("div", { className: "mt-auto flex items-center justify-between pt-3", children: [_jsxs("div", { className: "flex items-center gap-2", children: [isError && tool.status.status === 'error' ? (_jsxs("span", { className: "flex items-center gap-1 truncate text-[10px] text-red-600 dark:text-red-400", title: tool.status.errorMessage, children: [_jsx(CircleX, { className: "h-3 w-3 shrink-0" }), tool.status.errorMessage ?? 'Error'] })) : isInstalled ? (_jsxs("span", { className: "flex items-center gap-1 text-[10px] text-emerald-600 dark:text-emerald-400", children: [_jsx(CheckCircle2, { className: "h-3 w-3" }), "Installed"] })) : (_jsxs("span", { className: "text-muted-foreground flex items-center gap-1 text-[10px]", children: [_jsx(Circle, { className: "h-3 w-3" }), "Not installed"] })), tool.required ? (_jsx(TooltipProvider, { children: _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx("span", { className: "rounded bg-amber-100 px-1.5 py-0.5 text-[9px] font-medium text-amber-700 dark:bg-amber-900/50 dark:text-amber-400", children: "Required" }) }), _jsx(TooltipContent, { side: "top", children: "This tool is required for Shep to function properly" })] }) })) : null] }), _jsx("div", { className: "flex items-center gap-1", children: isInstalled && canLaunch ? (_jsxs(Button, { size: "sm", variant: "outline", onClick: handleLaunch, disabled: isPending, "aria-label": `Launch ${tool.name}`, "data-testid": "tool-card-launch-button", className: "h-7 cursor-pointer rounded-md px-3 text-xs", children: [isPending ? (_jsx(Loader2, { className: "mr-1 h-3 w-3 animate-spin" })) : (_jsx(Rocket, { className: "mr-1 h-3 w-3" })), "Launch"] })) : !isInstalled && !isError ? (_jsxs(Button, { size: "sm", variant: "default", onClick: handleInstallClick, "aria-label": `Install ${tool.name}`, "data-testid": "tool-card-install-button", className: "h-7 cursor-pointer rounded-md px-3 text-xs", children: [_jsx(Download, { className: "mr-1 h-3 w-3" }), "Install"] })) : null })] })] }), _jsx(ToolDetailDrawer, { tool: tool, open: drawerOpen, onClose: () => setDrawerOpen(false), onRefresh: onRefresh, autoStart: autoStartInstall })] }));
40
44
  }
@@ -1 +1 @@
1
- {"version":3,"file":"tool-card.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/tools/tool-card.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAmGvC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,QAAQ,CAc/B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,KAEjC,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,KAE/B,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,KAEhC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,KAElC,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAOzB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAwBvB,CAAC"}
1
+ {"version":3,"file":"tool-card.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/tools/tool-card.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAqHvC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,QAAQ,CAc/B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,KAEjC,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,KAE/B,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,KAEhC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,KAElC,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAOzB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAwBvB,CAAC"}
@@ -13,6 +13,9 @@ const installedIdeTool = {
13
13
  documentationUrl: 'https://cursor.sh',
14
14
  installCommand: 'brew install --cask cursor',
15
15
  status: { status: 'available', toolName: 'cursor' },
16
+ author: 'Anysphere',
17
+ website: 'https://cursor.com',
18
+ platforms: ['linux', 'darwin', 'win32'],
16
19
  };
17
20
  const installedNoLaunchTool = {
18
21
  id: 'claude-code',
@@ -27,6 +30,9 @@ const installedNoLaunchTool = {
27
30
  documentationUrl: 'https://claude.ai',
28
31
  installCommand: 'npm install -g @anthropic-ai/claude-code',
29
32
  status: { status: 'available', toolName: 'claude-code' },
33
+ author: 'Anthropic',
34
+ website: 'https://claude.ai/code',
35
+ platforms: ['linux', 'darwin'],
30
36
  };
31
37
  const missingAutoInstallTool = {
32
38
  id: 'aider',
@@ -41,6 +47,9 @@ const missingAutoInstallTool = {
41
47
  documentationUrl: 'https://aider.chat',
42
48
  installCommand: 'pip install aider-chat',
43
49
  status: { status: 'missing', toolName: 'aider' },
50
+ author: 'Paul Gauthier',
51
+ website: 'https://aider.chat',
52
+ platforms: ['linux', 'darwin', 'win32'],
44
53
  };
45
54
  const missingManualTool = {
46
55
  id: 'vscode',
@@ -55,6 +64,9 @@ const missingManualTool = {
55
64
  documentationUrl: 'https://code.visualstudio.com',
56
65
  installCommand: 'brew install --cask visual-studio-code',
57
66
  status: { status: 'missing', toolName: 'vscode' },
67
+ author: 'Microsoft',
68
+ website: 'https://code.visualstudio.com',
69
+ platforms: ['linux', 'darwin', 'win32'],
58
70
  };
59
71
  const cliAgentTool = {
60
72
  id: 'cursor-cli',
@@ -69,6 +81,9 @@ const cliAgentTool = {
69
81
  documentationUrl: 'https://cursor.sh',
70
82
  installCommand: 'curl https://cursor.com/install -fsS | bash',
71
83
  status: { status: 'available', toolName: 'cursor-cli' },
84
+ author: 'Anysphere',
85
+ website: 'https://cursor.com',
86
+ platforms: ['linux', 'darwin', 'win32'],
72
87
  };
73
88
  const vcsTool = {
74
89
  id: 'gh',
@@ -83,6 +98,9 @@ const vcsTool = {
83
98
  documentationUrl: 'https://cli.github.com/manual/',
84
99
  installCommand: 'brew install gh',
85
100
  status: { status: 'available', toolName: 'gh' },
101
+ author: 'GitHub',
102
+ website: 'https://cli.github.com',
103
+ platforms: ['linux', 'darwin', 'win32'],
86
104
  };
87
105
  const meta = {
88
106
  title: 'Features/ToolCard',