@shepai/cli 1.122.1-pr373.cb974c2 → 1.122.1-pr392.3d141b4

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 (366) hide show
  1. package/dist/src/presentation/web/app/actions/get-feature-phase-timings.d.ts +2 -0
  2. package/dist/src/presentation/web/app/actions/get-feature-phase-timings.d.ts.map +1 -1
  3. package/dist/src/presentation/web/app/actions/get-feature-phase-timings.js +2 -0
  4. package/dist/src/presentation/web/components/common/feature-drawer-tabs/activity-tab.d.ts.map +1 -1
  5. package/dist/src/presentation/web/components/common/feature-drawer-tabs/activity-tab.js +130 -31
  6. package/dist/src/presentation/web/components/common/feature-drawer-tabs/feature-drawer-tabs.d.ts.map +1 -1
  7. package/dist/src/presentation/web/components/common/feature-drawer-tabs/feature-drawer-tabs.js +13 -0
  8. package/dist/src/presentation/web/components/common/feature-drawer-tabs/use-tab-data-fetch.d.ts.map +1 -1
  9. package/dist/src/presentation/web/components/common/feature-drawer-tabs/use-tab-data-fetch.js +18 -9
  10. package/dist/src/presentation/web/components/layouts/app-sidebar/app-sidebar.d.ts.map +1 -1
  11. package/dist/src/presentation/web/components/layouts/app-sidebar/app-sidebar.js +2 -2
  12. package/dist/src/presentation/web/lib/server-container.d.ts +2 -1
  13. package/dist/src/presentation/web/lib/server-container.d.ts.map +1 -1
  14. package/dist/tsconfig.build.tsbuildinfo +1 -1
  15. package/package.json +1 -1
  16. package/web/.next/BUILD_ID +1 -1
  17. package/web/.next/app-path-routes-manifest.json +0 -1
  18. package/web/.next/build-manifest.json +6 -6
  19. package/web/.next/fallback-build-manifest.json +2 -2
  20. package/web/.next/prerender-manifest.json +3 -3
  21. package/web/.next/required-server-files.js +1 -1
  22. package/web/.next/required-server-files.json +1 -1
  23. package/web/.next/routes-manifest.json +0 -6
  24. package/web/.next/server/app/(dashboard)/@drawer/create/page/build-manifest.json +4 -4
  25. package/web/.next/server/app/(dashboard)/@drawer/create/page/server-reference-manifest.json +22 -22
  26. package/web/.next/server/app/(dashboard)/@drawer/create/page.js +1 -1
  27. package/web/.next/server/app/(dashboard)/@drawer/create/page.js.nft.json +1 -1
  28. package/web/.next/server/app/(dashboard)/@drawer/create/page_client-reference-manifest.js +1 -1
  29. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page/build-manifest.json +4 -4
  30. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page/server-reference-manifest.json +28 -28
  31. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js +1 -1
  32. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js.nft.json +1 -1
  33. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
  34. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/build-manifest.json +4 -4
  35. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/server-reference-manifest.json +28 -28
  36. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js +1 -1
  37. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js.nft.json +1 -1
  38. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page_client-reference-manifest.js +1 -1
  39. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/build-manifest.json +4 -4
  40. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/server-reference-manifest.json +20 -20
  41. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js +1 -1
  42. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js.nft.json +1 -1
  43. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  44. package/web/.next/server/app/(dashboard)/create/page/build-manifest.json +4 -4
  45. package/web/.next/server/app/(dashboard)/create/page/server-reference-manifest.json +22 -22
  46. package/web/.next/server/app/(dashboard)/create/page.js +1 -1
  47. package/web/.next/server/app/(dashboard)/create/page.js.nft.json +1 -1
  48. package/web/.next/server/app/(dashboard)/create/page_client-reference-manifest.js +1 -1
  49. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page/build-manifest.json +4 -4
  50. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page/server-reference-manifest.json +28 -28
  51. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js +1 -1
  52. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js.nft.json +1 -1
  53. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
  54. package/web/.next/server/app/(dashboard)/feature/[featureId]/page/build-manifest.json +4 -4
  55. package/web/.next/server/app/(dashboard)/feature/[featureId]/page/server-reference-manifest.json +28 -28
  56. package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js +1 -1
  57. package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js.nft.json +1 -1
  58. package/web/.next/server/app/(dashboard)/feature/[featureId]/page_client-reference-manifest.js +1 -1
  59. package/web/.next/server/app/(dashboard)/page/build-manifest.json +4 -4
  60. package/web/.next/server/app/(dashboard)/page/server-reference-manifest.json +20 -20
  61. package/web/.next/server/app/(dashboard)/page.js +1 -1
  62. package/web/.next/server/app/(dashboard)/page.js.nft.json +1 -1
  63. package/web/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
  64. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/build-manifest.json +4 -4
  65. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/server-reference-manifest.json +20 -20
  66. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js +1 -1
  67. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js.nft.json +1 -1
  68. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  69. package/web/.next/server/app/_global-error/page/build-manifest.json +4 -4
  70. package/web/.next/server/app/_global-error.html +2 -2
  71. package/web/.next/server/app/_global-error.rsc +1 -1
  72. package/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  73. package/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  74. package/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  75. package/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  76. package/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  77. package/web/.next/server/app/_not-found/page/build-manifest.json +4 -4
  78. package/web/.next/server/app/_not-found/page/server-reference-manifest.json +1 -1
  79. package/web/.next/server/app/_not-found/page.js +1 -1
  80. package/web/.next/server/app/_not-found/page.js.nft.json +1 -1
  81. package/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  82. package/web/.next/server/app/api/attachments/preview/route.js +1 -1
  83. package/web/.next/server/app/api/attachments/preview/route.js.nft.json +1 -1
  84. package/web/.next/server/app/api/evidence/route.js +1 -1
  85. package/web/.next/server/app/api/evidence/route.js.nft.json +1 -1
  86. package/web/.next/server/app/api/graph-data/route.js.nft.json +1 -1
  87. package/web/.next/server/app/settings/page/build-manifest.json +4 -4
  88. package/web/.next/server/app/settings/page/server-reference-manifest.json +6 -6
  89. package/web/.next/server/app/settings/page.js +1 -1
  90. package/web/.next/server/app/settings/page.js.nft.json +1 -1
  91. package/web/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  92. package/web/.next/server/app/skills/page/build-manifest.json +4 -4
  93. package/web/.next/server/app/skills/page/server-reference-manifest.json +6 -6
  94. package/web/.next/server/app/skills/page.js +1 -1
  95. package/web/.next/server/app/skills/page.js.nft.json +1 -1
  96. package/web/.next/server/app/skills/page_client-reference-manifest.js +1 -1
  97. package/web/.next/server/app/tools/page/build-manifest.json +4 -4
  98. package/web/.next/server/app/tools/page/server-reference-manifest.json +6 -6
  99. package/web/.next/server/app/tools/page.js +1 -1
  100. package/web/.next/server/app/tools/page.js.nft.json +1 -1
  101. package/web/.next/server/app/tools/page_client-reference-manifest.js +1 -1
  102. package/web/.next/server/app/version/page/build-manifest.json +4 -4
  103. package/web/.next/server/app/version/page/server-reference-manifest.json +1 -1
  104. package/web/.next/server/app/version/page.js +2 -2
  105. package/web/.next/server/app/version/page.js.nft.json +1 -1
  106. package/web/.next/server/app/version/page_client-reference-manifest.js +1 -1
  107. package/web/.next/server/app-paths-manifest.json +0 -1
  108. package/web/.next/server/chunks/[root-of-the-server]__0866d2b5._.js.map +1 -1
  109. package/web/.next/server/chunks/[root-of-the-server]__42b7ab55._.js.map +1 -1
  110. package/web/.next/server/chunks/{[root-of-the-server]__7d63f9a4._.js → [root-of-the-server]__53013576._.js} +2 -2
  111. package/web/.next/server/chunks/[root-of-the-server]__9191749c._.js.map +1 -1
  112. package/web/.next/server/chunks/{[root-of-the-server]__a1c7c02a._.js → [root-of-the-server]__92078db6._.js} +2 -2
  113. package/web/.next/server/chunks/[root-of-the-server]__9a136c79._.js.map +1 -1
  114. package/web/.next/server/chunks/[root-of-the-server]__a402b567._.js +1 -1
  115. package/web/.next/server/chunks/[root-of-the-server]__a402b567._.js.map +1 -1
  116. package/web/.next/server/chunks/[root-of-the-server]__a5879003._.js.map +1 -1
  117. package/web/.next/server/chunks/[root-of-the-server]__b2f9a412._.js.map +1 -1
  118. package/web/.next/server/chunks/[root-of-the-server]__b4102cc7._.js.map +1 -1
  119. package/web/.next/server/chunks/[root-of-the-server]__cd67a84c._.js.map +1 -1
  120. package/web/.next/server/chunks/[root-of-the-server]__d2c18946._.js.map +1 -1
  121. package/web/.next/server/chunks/[root-of-the-server]__d8037e14._.js.map +1 -1
  122. package/web/.next/server/chunks/[root-of-the-server]__d9d410a8._.js.map +1 -1
  123. package/web/.next/server/chunks/[root-of-the-server]__e247a485._.js.map +1 -1
  124. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js +1 -1
  125. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js.map +1 -1
  126. package/web/.next/server/chunks/ssr/7f428_lucide-react_dist_esm_icons_d0119342._.js +3 -0
  127. package/web/.next/server/chunks/ssr/7f428_lucide-react_dist_esm_icons_d0119342._.js.map +1 -0
  128. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_f30d0343.js +1 -1
  129. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_f30d0343.js.map +1 -1
  130. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_9f1775bb.js +1 -1
  131. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_9f1775bb.js.map +1 -1
  132. package/web/.next/server/chunks/ssr/{[root-of-the-server]__07a39ff2._.js → [root-of-the-server]__06fef644._.js} +2 -2
  133. package/web/.next/server/chunks/ssr/[root-of-the-server]__06fef644._.js.map +1 -0
  134. package/web/.next/server/chunks/ssr/[root-of-the-server]__2698e9f4._.js +1 -1
  135. package/web/.next/server/chunks/ssr/[root-of-the-server]__2698e9f4._.js.map +1 -1
  136. package/web/.next/server/chunks/ssr/[root-of-the-server]__545792ab._.js +3 -0
  137. package/web/.next/server/chunks/ssr/[root-of-the-server]__545792ab._.js.map +1 -0
  138. package/web/.next/server/chunks/ssr/[root-of-the-server]__6b17a22d._.js +4 -0
  139. package/web/.next/server/chunks/ssr/{[root-of-the-server]__11033878._.js.map → [root-of-the-server]__6b17a22d._.js.map} +1 -1
  140. package/web/.next/server/chunks/ssr/[root-of-the-server]__6bb00d90._.js +2 -2
  141. package/web/.next/server/chunks/ssr/[root-of-the-server]__6bb00d90._.js.map +1 -1
  142. package/web/.next/server/chunks/ssr/[root-of-the-server]__804c006d._.js +4 -0
  143. package/web/.next/server/chunks/ssr/{[root-of-the-server]__fdc75809._.js.map → [root-of-the-server]__804c006d._.js.map} +1 -1
  144. package/web/.next/server/chunks/ssr/[root-of-the-server]__8c553503._.js +4 -0
  145. package/web/.next/server/chunks/ssr/[root-of-the-server]__8c553503._.js.map +1 -0
  146. package/web/.next/server/chunks/ssr/[root-of-the-server]__8e3bf5d7._.js +1 -1
  147. package/web/.next/server/chunks/ssr/[root-of-the-server]__8e3bf5d7._.js.map +1 -1
  148. package/web/.next/server/chunks/ssr/[root-of-the-server]__a022445f._.js +4 -0
  149. package/web/.next/server/chunks/ssr/{[root-of-the-server]__7a939e4e._.js.map → [root-of-the-server]__a022445f._.js.map} +1 -1
  150. package/web/.next/server/chunks/ssr/[root-of-the-server]__a7de2711._.js +4 -0
  151. package/web/.next/server/chunks/ssr/[root-of-the-server]__a7de2711._.js.map +1 -0
  152. package/web/.next/server/chunks/ssr/[root-of-the-server]__b724df9e._.js.map +1 -1
  153. package/web/.next/server/chunks/ssr/[root-of-the-server]__c07f9f79._.js +1 -1
  154. package/web/.next/server/chunks/ssr/[root-of-the-server]__c07f9f79._.js.map +1 -1
  155. package/web/.next/server/chunks/ssr/[root-of-the-server]__c605a375._.js +1 -1
  156. package/web/.next/server/chunks/ssr/[root-of-the-server]__c605a375._.js.map +1 -1
  157. package/web/.next/server/chunks/ssr/[root-of-the-server]__f646b99a._.js +3 -0
  158. package/web/.next/server/chunks/ssr/[root-of-the-server]__f646b99a._.js.map +1 -0
  159. package/web/.next/server/chunks/ssr/_0dc2cfd3._.js +3 -0
  160. package/web/.next/server/chunks/ssr/_0dc2cfd3._.js.map +1 -0
  161. package/web/.next/server/chunks/ssr/_0e506641._.js +7 -0
  162. package/web/.next/server/chunks/ssr/_0e506641._.js.map +1 -0
  163. package/web/.next/server/chunks/ssr/_135edb9c._.js +3 -0
  164. package/web/.next/server/chunks/ssr/_135edb9c._.js.map +1 -0
  165. package/web/.next/server/chunks/ssr/_16c9ad39._.js +3 -0
  166. package/web/.next/server/chunks/ssr/_16c9ad39._.js.map +1 -0
  167. package/web/.next/server/chunks/ssr/_1bb131c4._.js +3 -0
  168. package/web/.next/server/chunks/ssr/_1bb131c4._.js.map +1 -0
  169. package/web/.next/server/chunks/ssr/_2f6f48b8._.js +1 -1
  170. package/web/.next/server/chunks/ssr/_2f6f48b8._.js.map +1 -1
  171. package/web/.next/server/chunks/ssr/{_5d618f84._.js → _3608239e._.js} +2 -2
  172. package/web/.next/server/chunks/ssr/{_5d618f84._.js.map → _3608239e._.js.map} +1 -1
  173. package/web/.next/server/chunks/ssr/_6d26a08f._.js +3 -0
  174. package/web/.next/server/chunks/ssr/_6d26a08f._.js.map +1 -0
  175. package/web/.next/server/chunks/ssr/_75f4ccb3._.js +3 -0
  176. package/web/.next/server/chunks/ssr/_75f4ccb3._.js.map +1 -0
  177. package/web/.next/server/chunks/ssr/_8a2ce912._.js +3 -0
  178. package/web/.next/server/chunks/ssr/_8a2ce912._.js.map +1 -0
  179. package/web/.next/server/chunks/ssr/_b5fc318a._.js +3 -0
  180. package/web/.next/server/chunks/ssr/_b5fc318a._.js.map +1 -0
  181. package/web/.next/server/chunks/ssr/_cc77a143._.js +3 -0
  182. package/web/.next/server/chunks/ssr/_cc77a143._.js.map +1 -0
  183. package/web/.next/server/chunks/ssr/{_d506bca5._.js → _f1a649e3._.js} +2 -2
  184. package/web/.next/server/chunks/ssr/{_d506bca5._.js.map → _f1a649e3._.js.map} +1 -1
  185. package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js +1 -1
  186. package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js.map +1 -1
  187. package/web/.next/server/chunks/ssr/node_modules__pnpm_b59e4b16._.js +3 -0
  188. package/web/.next/server/chunks/ssr/node_modules__pnpm_b59e4b16._.js.map +1 -0
  189. package/web/.next/server/chunks/ssr/src_presentation_web_5f039db1._.js +2 -2
  190. package/web/.next/server/chunks/ssr/src_presentation_web_5f039db1._.js.map +1 -1
  191. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_2a52b697.js +1 -1
  192. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_2a52b697.js.map +1 -1
  193. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_1fa8042e.js +1 -1
  194. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_1fa8042e.js.map +1 -1
  195. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_24684200.js +1 -1
  196. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_24684200.js.map +1 -1
  197. package/web/.next/server/chunks/ssr/src_presentation_web_c4337169._.js +2 -2
  198. package/web/.next/server/chunks/ssr/src_presentation_web_c4337169._.js.map +1 -1
  199. package/web/.next/server/chunks/ssr/src_presentation_web_components_bf50c527._.js +1 -1
  200. package/web/.next/server/chunks/ssr/src_presentation_web_components_de814675._.js +1 -1
  201. package/web/.next/server/chunks/ssr/src_presentation_web_components_e599bb8c._.js +1 -1
  202. package/web/.next/server/chunks/ssr/src_presentation_web_components_e599bb8c._.js.map +1 -1
  203. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js +1 -1
  204. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js.map +1 -1
  205. package/web/.next/server/middleware-build-manifest.js +4 -4
  206. package/web/.next/server/pages/500.html +2 -2
  207. package/web/.next/server/server-reference-manifest.js +1 -1
  208. package/web/.next/server/server-reference-manifest.json +34 -101
  209. package/web/.next/static/chunks/0614fc7ba4ab5a8d.js +1 -0
  210. package/web/.next/static/chunks/0a53e43382b2e356.css +1 -0
  211. package/web/.next/static/chunks/0f22d1364a238a3d.js +1 -0
  212. package/web/.next/static/chunks/{899529af3e08bf94.js → 115420b828393351.js} +2 -2
  213. package/web/.next/static/chunks/303a1217006489b9.js +1 -0
  214. package/web/.next/static/chunks/37e6e2ae609060bc.js +1 -0
  215. package/web/.next/static/chunks/3911a7175044e784.js +1 -0
  216. package/web/.next/static/chunks/52be053c5d383e0a.js +1 -0
  217. package/web/.next/static/chunks/545a792b9c112c0e.js +1 -0
  218. package/web/.next/static/chunks/{96fc208419afac9e.js → 619e58de25e38f82.js} +1 -1
  219. package/web/.next/static/chunks/{cb46d75dfac954a5.js → 66b1c29f3433d763.js} +2 -2
  220. package/web/.next/static/chunks/8335d9f3f8f62db3.js +11 -0
  221. package/web/.next/static/chunks/845d8e58a91014e6.js +1 -0
  222. package/web/.next/static/chunks/84a181ff3270fd9f.js +1 -0
  223. package/web/.next/static/chunks/96eeeb28e06de78c.js +1 -0
  224. package/web/.next/static/chunks/de93dd99119c9eee.js +1 -0
  225. package/web/.next/static/chunks/e2ef95d904c360f3.js +1 -0
  226. package/web/.next/static/chunks/ed3a602003bcb31b.js +1 -0
  227. package/web/.next/static/chunks/{turbopack-b1685b5f87ad1d60.js → turbopack-426d9bc2450816ba.js} +1 -1
  228. package/dist/src/presentation/web/app/actions/execute-query.d.ts +0 -7
  229. package/dist/src/presentation/web/app/actions/execute-query.d.ts.map +0 -1
  230. package/dist/src/presentation/web/app/actions/execute-query.js +0 -55
  231. package/dist/src/presentation/web/app/actions/get-table-rows.d.ts +0 -10
  232. package/dist/src/presentation/web/app/actions/get-table-rows.d.ts.map +0 -1
  233. package/dist/src/presentation/web/app/actions/get-table-rows.js +0 -55
  234. package/dist/src/presentation/web/app/actions/get-table-schema.d.ts +0 -13
  235. package/dist/src/presentation/web/app/actions/get-table-schema.d.ts.map +0 -1
  236. package/dist/src/presentation/web/app/actions/get-table-schema.js +0 -27
  237. package/dist/src/presentation/web/app/actions/list-tables.d.ts +0 -10
  238. package/dist/src/presentation/web/app/actions/list-tables.d.ts.map +0 -1
  239. package/dist/src/presentation/web/app/actions/list-tables.js +0 -19
  240. package/dist/src/presentation/web/app/database/page.d.ts +0 -4
  241. package/dist/src/presentation/web/app/database/page.d.ts.map +0 -1
  242. package/dist/src/presentation/web/app/database/page.js +0 -15
  243. package/dist/src/presentation/web/components/features/database/cell-value-dialog.d.ts +0 -8
  244. package/dist/src/presentation/web/components/features/database/cell-value-dialog.d.ts.map +0 -1
  245. package/dist/src/presentation/web/components/features/database/cell-value-dialog.js +0 -7
  246. package/dist/src/presentation/web/components/features/database/cell-value-dialog.stories.d.ts +0 -10
  247. package/dist/src/presentation/web/components/features/database/cell-value-dialog.stories.d.ts.map +0 -1
  248. package/dist/src/presentation/web/components/features/database/cell-value-dialog.stories.js +0 -48
  249. package/dist/src/presentation/web/components/features/database/database-page-client.d.ts +0 -13
  250. package/dist/src/presentation/web/components/features/database/database-page-client.d.ts.map +0 -1
  251. package/dist/src/presentation/web/components/features/database/database-page-client.js +0 -74
  252. package/dist/src/presentation/web/components/features/database/database-page-client.stories.d.ts +0 -9
  253. package/dist/src/presentation/web/components/features/database/database-page-client.stories.d.ts.map +0 -1
  254. package/dist/src/presentation/web/components/features/database/database-page-client.stories.js +0 -78
  255. package/dist/src/presentation/web/components/features/database/query-runner.d.ts +0 -9
  256. package/dist/src/presentation/web/components/features/database/query-runner.d.ts.map +0 -1
  257. package/dist/src/presentation/web/components/features/database/query-runner.js +0 -53
  258. package/dist/src/presentation/web/components/features/database/query-runner.stories.d.ts +0 -9
  259. package/dist/src/presentation/web/components/features/database/query-runner.stories.d.ts.map +0 -1
  260. package/dist/src/presentation/web/components/features/database/query-runner.stories.js +0 -55
  261. package/dist/src/presentation/web/components/features/database/row-browser.d.ts +0 -11
  262. package/dist/src/presentation/web/components/features/database/row-browser.d.ts.map +0 -1
  263. package/dist/src/presentation/web/components/features/database/row-browser.js +0 -42
  264. package/dist/src/presentation/web/components/features/database/row-browser.stories.d.ts +0 -14
  265. package/dist/src/presentation/web/components/features/database/row-browser.stories.d.ts.map +0 -1
  266. package/dist/src/presentation/web/components/features/database/row-browser.stories.js +0 -120
  267. package/dist/src/presentation/web/components/features/database/schema-viewer.d.ts +0 -7
  268. package/dist/src/presentation/web/components/features/database/schema-viewer.d.ts.map +0 -1
  269. package/dist/src/presentation/web/components/features/database/schema-viewer.js +0 -14
  270. package/dist/src/presentation/web/components/features/database/schema-viewer.stories.d.ts +0 -11
  271. package/dist/src/presentation/web/components/features/database/schema-viewer.stories.d.ts.map +0 -1
  272. package/dist/src/presentation/web/components/features/database/schema-viewer.stories.js +0 -67
  273. package/dist/src/presentation/web/components/features/database/table-list.d.ts +0 -8
  274. package/dist/src/presentation/web/components/features/database/table-list.d.ts.map +0 -1
  275. package/dist/src/presentation/web/components/features/database/table-list.js +0 -19
  276. package/dist/src/presentation/web/components/features/database/table-list.stories.d.ts +0 -10
  277. package/dist/src/presentation/web/components/features/database/table-list.stories.d.ts.map +0 -1
  278. package/dist/src/presentation/web/components/features/database/table-list.stories.js +0 -66
  279. package/dist/src/presentation/web/components/ui/table.d.ts +0 -11
  280. package/dist/src/presentation/web/components/ui/table.d.ts.map +0 -1
  281. package/dist/src/presentation/web/components/ui/table.js +0 -28
  282. package/dist/src/presentation/web/lib/server-db.d.ts +0 -16
  283. package/dist/src/presentation/web/lib/server-db.d.ts.map +0 -1
  284. package/dist/src/presentation/web/lib/server-db.js +0 -10
  285. package/dist/src/presentation/web/lib/sql-validation.d.ts +0 -7
  286. package/dist/src/presentation/web/lib/sql-validation.d.ts.map +0 -1
  287. package/dist/src/presentation/web/lib/sql-validation.js +0 -17
  288. package/web/.next/server/app/database/page/app-paths-manifest.json +0 -3
  289. package/web/.next/server/app/database/page/build-manifest.json +0 -18
  290. package/web/.next/server/app/database/page/next-font-manifest.json +0 -6
  291. package/web/.next/server/app/database/page/react-loadable-manifest.json +0 -1
  292. package/web/.next/server/app/database/page/server-reference-manifest.json +0 -80
  293. package/web/.next/server/app/database/page.js +0 -16
  294. package/web/.next/server/app/database/page.js.map +0 -5
  295. package/web/.next/server/app/database/page.js.nft.json +0 -1
  296. package/web/.next/server/app/database/page_client-reference-manifest.js +0 -2
  297. package/web/.next/server/chunks/ssr/[root-of-the-server]__07a39ff2._.js.map +0 -1
  298. package/web/.next/server/chunks/ssr/[root-of-the-server]__11033878._.js +0 -4
  299. package/web/.next/server/chunks/ssr/[root-of-the-server]__1a0bbce4._.js +0 -3
  300. package/web/.next/server/chunks/ssr/[root-of-the-server]__1a0bbce4._.js.map +0 -1
  301. package/web/.next/server/chunks/ssr/[root-of-the-server]__33cee851._.js +0 -3
  302. package/web/.next/server/chunks/ssr/[root-of-the-server]__33cee851._.js.map +0 -1
  303. package/web/.next/server/chunks/ssr/[root-of-the-server]__4bb4b155._.js +0 -4
  304. package/web/.next/server/chunks/ssr/[root-of-the-server]__4bb4b155._.js.map +0 -1
  305. package/web/.next/server/chunks/ssr/[root-of-the-server]__590dfc34._.js +0 -4
  306. package/web/.next/server/chunks/ssr/[root-of-the-server]__590dfc34._.js.map +0 -1
  307. package/web/.next/server/chunks/ssr/[root-of-the-server]__743e777a._.js +0 -4
  308. package/web/.next/server/chunks/ssr/[root-of-the-server]__743e777a._.js.map +0 -1
  309. package/web/.next/server/chunks/ssr/[root-of-the-server]__7a939e4e._.js +0 -4
  310. package/web/.next/server/chunks/ssr/[root-of-the-server]__930c8634._.js +0 -3
  311. package/web/.next/server/chunks/ssr/[root-of-the-server]__930c8634._.js.map +0 -1
  312. package/web/.next/server/chunks/ssr/[root-of-the-server]__fdc75809._.js +0 -4
  313. package/web/.next/server/chunks/ssr/_05ca281a._.js +0 -3
  314. package/web/.next/server/chunks/ssr/_05ca281a._.js.map +0 -1
  315. package/web/.next/server/chunks/ssr/_061c1da2._.js +0 -3
  316. package/web/.next/server/chunks/ssr/_061c1da2._.js.map +0 -1
  317. package/web/.next/server/chunks/ssr/_0e6034fc._.js +0 -3
  318. package/web/.next/server/chunks/ssr/_0e6034fc._.js.map +0 -1
  319. package/web/.next/server/chunks/ssr/_150e66ba._.js +0 -3
  320. package/web/.next/server/chunks/ssr/_150e66ba._.js.map +0 -1
  321. package/web/.next/server/chunks/ssr/_34ba40e0._.js +0 -3
  322. package/web/.next/server/chunks/ssr/_34ba40e0._.js.map +0 -1
  323. package/web/.next/server/chunks/ssr/_5b809cd2._.js +0 -4
  324. package/web/.next/server/chunks/ssr/_5b809cd2._.js.map +0 -1
  325. package/web/.next/server/chunks/ssr/_6552e0aa._.js +0 -3
  326. package/web/.next/server/chunks/ssr/_6552e0aa._.js.map +0 -1
  327. package/web/.next/server/chunks/ssr/_81f88d15._.js +0 -7
  328. package/web/.next/server/chunks/ssr/_81f88d15._.js.map +0 -1
  329. package/web/.next/server/chunks/ssr/_93d2a00c._.js +0 -3
  330. package/web/.next/server/chunks/ssr/_93d2a00c._.js.map +0 -1
  331. package/web/.next/server/chunks/ssr/_ad5819d0._.js +0 -3
  332. package/web/.next/server/chunks/ssr/_ad5819d0._.js.map +0 -1
  333. package/web/.next/server/chunks/ssr/_e1854141._.js +0 -3
  334. package/web/.next/server/chunks/ssr/_e1854141._.js.map +0 -1
  335. package/web/.next/server/chunks/ssr/_f9959908._.js +0 -3
  336. package/web/.next/server/chunks/ssr/_f9959908._.js.map +0 -1
  337. package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_database_database-page-client_tsx_b853607a._.js +0 -3
  338. package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_database_database-page-client_tsx_b853607a._.js.map +0 -1
  339. package/web/.next/server/chunks/ssr/node_modules__pnpm_026172d1._.js +0 -3
  340. package/web/.next/server/chunks/ssr/node_modules__pnpm_026172d1._.js.map +0 -1
  341. package/web/.next/server/chunks/ssr/node_modules__pnpm_8b0ea744._.js +0 -3
  342. package/web/.next/server/chunks/ssr/node_modules__pnpm_8b0ea744._.js.map +0 -1
  343. package/web/.next/server/chunks/ssr/src_presentation_web_components_ui_scroll-area_tsx_53ae5be7._.js +0 -3
  344. package/web/.next/server/chunks/ssr/src_presentation_web_components_ui_scroll-area_tsx_53ae5be7._.js.map +0 -1
  345. package/web/.next/static/chunks/0b8f2e223e1b82f4.js +0 -1
  346. package/web/.next/static/chunks/0e57fc72bf0bc5ba.js +0 -1
  347. package/web/.next/static/chunks/22a1d0eb174f3da9.js +0 -1
  348. package/web/.next/static/chunks/401118947e7159e0.js +0 -1
  349. package/web/.next/static/chunks/40b6bcf1a2de4a0f.js +0 -1
  350. package/web/.next/static/chunks/471c323a18da4918.js +0 -1
  351. package/web/.next/static/chunks/495b4bee62b00caa.js +0 -1
  352. package/web/.next/static/chunks/5aab343372a98721.js +0 -1
  353. package/web/.next/static/chunks/70e04b1108d151c3.js +0 -11
  354. package/web/.next/static/chunks/b3914c0aae76742b.css +0 -1
  355. package/web/.next/static/chunks/b4160eaf4deda4e7.js +0 -1
  356. package/web/.next/static/chunks/b65702b701417ae2.js +0 -1
  357. package/web/.next/static/chunks/c2c0d4e71c36199f.js +0 -1
  358. package/web/.next/static/chunks/c7e793951b20a67f.js +0 -1
  359. package/web/.next/static/chunks/cb440c7f33e135f4.js +0 -1
  360. package/web/.next/static/chunks/dd702ceaee4a5c0d.js +0 -1
  361. package/web/.next/static/chunks/e6b8baa05827f641.js +0 -1
  362. /package/web/.next/server/chunks/{[root-of-the-server]__7d63f9a4._.js.map → [root-of-the-server]__53013576._.js.map} +0 -0
  363. /package/web/.next/server/chunks/{[root-of-the-server]__a1c7c02a._.js.map → [root-of-the-server]__92078db6._.js.map} +0 -0
  364. /package/web/.next/static/{4xrMEp5YYiIKE3f9RD6L- → ifBL824Rz9BwA5KgNAqe8}/_buildManifest.js +0 -0
  365. /package/web/.next/static/{4xrMEp5YYiIKE3f9RD6L- → ifBL824Rz9BwA5KgNAqe8}/_clientMiddlewareManifest.json +0 -0
  366. /package/web/.next/static/{4xrMEp5YYiIKE3f9RD6L- → ifBL824Rz9BwA5KgNAqe8}/_ssgManifest.js +0 -0
@@ -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);
@@ -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"}
@@ -1,7 +1,7 @@
1
1
  'use client';
2
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { useState, useEffect, useRef } from 'react';
4
- import { Loader2, AlertCircle, Clock, Zap, DollarSign } from 'lucide-react';
4
+ import { Loader2, AlertCircle, Clock, Zap, DollarSign, Play, RotateCcw, CheckCircle2, XCircle, Square, Ban, MessageSquare, Timer, ArrowDownToLine, ArrowUpFromLine, } from 'lucide-react';
5
5
  import { InlineAttachments } from '../../common/inline-attachments/index.js';
6
6
  import { formatDuration } from '../../../lib/format-duration.js';
7
7
  /**
@@ -51,6 +51,13 @@ function formatTokens(count) {
51
51
  return `${(count / 1_000).toFixed(1)}K`;
52
52
  return String(count);
53
53
  }
54
+ /** Format a timestamp to a short local time string (e.g. "10:05:30 AM"). */
55
+ function formatTimestamp(value) {
56
+ const d = value instanceof Date ? value : new Date(String(value));
57
+ if (Number.isNaN(d.getTime()))
58
+ return '';
59
+ return d.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit', second: '2-digit' });
60
+ }
54
61
  /** Format a USD cost with appropriate precision. */
55
62
  function formatCost(usd) {
56
63
  if (usd >= 1)
@@ -68,13 +75,48 @@ const NODE_TO_PHASE = {
68
75
  merge: 'Merging',
69
76
  };
70
77
  const LIFECYCLE_EVENTS = {
71
- 'run:started': { label: 'started', colorClass: 'text-blue-600' },
72
- 'run:resumed': { label: 'resumed', colorClass: 'text-blue-600' },
73
- 'run:completed': { label: 'completed', colorClass: 'text-emerald-600' },
74
- 'run:failed': { label: 'failed', colorClass: 'text-red-600' },
75
- 'run:stopped': { label: 'stopped', colorClass: 'text-amber-600' },
76
- 'run:crashed': { label: 'crashed', colorClass: 'text-red-600' },
77
- 'run:rejected': { label: 'rejected', colorClass: 'text-orange-600' },
78
+ 'run:started': {
79
+ label: 'started',
80
+ colorClass: 'text-blue-600',
81
+ bgClass: 'bg-blue-50 dark:bg-blue-950/30',
82
+ icon: Play,
83
+ },
84
+ 'run:resumed': {
85
+ label: 'resumed',
86
+ colorClass: 'text-blue-600',
87
+ bgClass: 'bg-blue-50 dark:bg-blue-950/30',
88
+ icon: RotateCcw,
89
+ },
90
+ 'run:completed': {
91
+ label: 'completed',
92
+ colorClass: 'text-emerald-600',
93
+ bgClass: 'bg-emerald-50 dark:bg-emerald-950/30',
94
+ icon: CheckCircle2,
95
+ },
96
+ 'run:failed': {
97
+ label: 'failed',
98
+ colorClass: 'text-red-600',
99
+ bgClass: 'bg-red-50 dark:bg-red-950/30',
100
+ icon: XCircle,
101
+ },
102
+ 'run:stopped': {
103
+ label: 'stopped',
104
+ colorClass: 'text-amber-600',
105
+ bgClass: 'bg-amber-50 dark:bg-amber-950/30',
106
+ icon: Square,
107
+ },
108
+ 'run:crashed': {
109
+ label: 'crashed',
110
+ colorClass: 'text-red-600',
111
+ bgClass: 'bg-red-50 dark:bg-red-950/30',
112
+ icon: XCircle,
113
+ },
114
+ 'run:rejected': {
115
+ label: 'rejected',
116
+ colorClass: 'text-orange-600',
117
+ bgClass: 'bg-orange-50 dark:bg-orange-950/30',
118
+ icon: Ban,
119
+ },
78
120
  };
79
121
  function isLifecycleEvent(phase) {
80
122
  return phase.startsWith('run:');
@@ -146,6 +188,26 @@ export function buildLifecycleTimeline(timings, feedback) {
146
188
  }
147
189
  return iterations;
148
190
  }
191
+ /** Determine the outcome status of an iteration */
192
+ function getIterationOutcome(iteration) {
193
+ const lastLifecycle = [...iteration.timings].reverse().find((t) => isLifecycleEvent(t.phase));
194
+ if (!lastLifecycle)
195
+ return null;
196
+ switch (lastLifecycle.phase) {
197
+ case 'run:rejected':
198
+ return { label: 'Rejected', colorClass: 'text-orange-600', dotClass: 'bg-orange-500' };
199
+ case 'run:completed':
200
+ return { label: 'Completed', colorClass: 'text-emerald-600', dotClass: 'bg-emerald-500' };
201
+ case 'run:failed':
202
+ return { label: 'Failed', colorClass: 'text-red-600', dotClass: 'bg-red-500' };
203
+ case 'run:crashed':
204
+ return { label: 'Crashed', colorClass: 'text-red-600', dotClass: 'bg-red-500' };
205
+ case 'run:stopped':
206
+ return { label: 'Stopped', colorClass: 'text-amber-600', dotClass: 'bg-amber-500' };
207
+ default:
208
+ return null;
209
+ }
210
+ }
149
211
  /* ---------------------------------------------------------------------------
150
212
  * Component
151
213
  * ------------------------------------------------------------------------- */
@@ -155,10 +217,10 @@ export function ActivityTab({ timings, loading, error, rejectionFeedback }) {
155
217
  return (_jsx("div", { "data-testid": "activity-tab-loading", className: "flex items-center justify-center p-8", children: _jsx(Loader2, { className: "text-muted-foreground h-6 w-6 animate-spin" }) }));
156
218
  }
157
219
  if (error) {
158
- return (_jsxs("div", { className: "flex items-center gap-2 p-4 text-sm text-red-600", children: [_jsx(AlertCircle, { className: "h-4 w-4 shrink-0" }), _jsx("span", { children: error })] }));
220
+ return (_jsxs("div", { className: "flex items-center gap-2 p-4 text-base text-red-600", children: [_jsx(AlertCircle, { className: "h-4 w-4 shrink-0" }), _jsx("span", { children: error })] }));
159
221
  }
160
222
  if (!timings || timings.length === 0) {
161
- return (_jsxs("div", { className: "flex flex-col items-center justify-center gap-2 p-8", children: [_jsx(Clock, { className: "text-muted-foreground h-8 w-8" }), _jsx("p", { className: "text-muted-foreground text-sm", children: "No activity recorded yet" })] }));
223
+ return (_jsxs("div", { className: "flex flex-col items-center justify-center gap-2 p-8", children: [_jsx(Clock, { className: "text-muted-foreground h-8 w-8" }), _jsx("p", { className: "text-muted-foreground text-base", children: "No activity recorded yet" })] }));
162
224
  }
163
225
  const nodeTimings = timings.filter((t) => !isLifecycleEvent(t.phase));
164
226
  const maxDurationMs = Math.max(...nodeTimings.map((t) => getEffectiveDuration(t, now)), ...nodeTimings.map((t) => t.approvalWaitMs ?? 0), 0);
@@ -169,44 +231,70 @@ export function ActivityTab({ timings, loading, error, rejectionFeedback }) {
169
231
  const totalInputTokens = nodeTimings.reduce((sum, t) => sum + (t.inputTokens ?? 0), 0);
170
232
  const totalOutputTokens = nodeTimings.reduce((sum, t) => sum + (t.outputTokens ?? 0), 0);
171
233
  const totalCostUsd = nodeTimings.reduce((sum, t) => sum + (t.costUsd ?? 0), 0);
172
- return (_jsxs("div", { className: "flex flex-col gap-4 p-4", children: [_jsx("div", { "data-testid": "activity-timings", className: "flex flex-col gap-3", children: iterations.map((iteration) => (_jsx(IterationGroup, { iteration: iteration, showHeader: hasMultipleIterations, maxDurationMs: maxDurationMs, now: now }, iteration.number))) }), totalExecMs > 0 ? (_jsx(SummaryTotals, { totalExecMs: totalExecMs, totalWaitMs: totalWaitMs, totalInputTokens: totalInputTokens, totalOutputTokens: totalOutputTokens, totalCostUsd: totalCostUsd })) : null] }));
234
+ return (_jsxs("div", { className: "flex flex-col gap-3 p-4", children: [_jsx("div", { "data-testid": "activity-timings", className: "flex flex-col gap-3", children: iterations.map((iteration) => (_jsx(IterationGroup, { iteration: iteration, showHeader: hasMultipleIterations, maxDurationMs: maxDurationMs, now: now }, iteration.number))) }), totalExecMs > 0 ? (_jsx(SummaryTotals, { totalExecMs: totalExecMs, totalWaitMs: totalWaitMs, totalInputTokens: totalInputTokens, totalOutputTokens: totalOutputTokens, totalCostUsd: totalCostUsd })) : null] }));
173
235
  }
174
236
  /* ---------------------------------------------------------------------------
175
237
  * Iteration group — one cycle of work
176
238
  * ------------------------------------------------------------------------- */
177
239
  function IterationGroup({ iteration, showHeader, maxDurationMs, now, }) {
178
- return (_jsxs("div", { "data-testid": `iteration-${iteration.number}`, className: "flex flex-col gap-1.5", children: [showHeader ? (_jsxs("div", { className: "text-muted-foreground text-xs font-medium", children: ["Iteration ", iteration.number] })) : null, iteration.timings.map((t) => {
179
- if (isLifecycleEvent(t.phase)) {
180
- // For run:rejected, the message comes from the iteration, not a separate map
181
- const isRejection = t.phase === 'run:rejected';
182
- return (_jsx(LifecycleEventRow, { timing: t, message: isRejection ? iteration.rejectionMessage : undefined, attachments: isRejection ? iteration.rejectionAttachments : undefined }, `${t.agentRunId}-${t.phase}-${t.startedAt}`));
183
- }
184
- return (_jsx(NodeTimingRow, { timing: t, maxDurationMs: maxDurationMs, now: now }, `${t.agentRunId}-${t.phase}-${t.startedAt}`));
185
- })] }));
240
+ const outcome = getIterationOutcome(iteration);
241
+ return (_jsxs("div", { "data-testid": `iteration-${iteration.number}`, className: "border-border/50 bg-card/50 flex flex-col overflow-hidden rounded-lg border", children: [showHeader ? (_jsxs("div", { className: "bg-muted/30 border-border/50 flex items-center justify-between border-b px-3 py-1.5", children: [_jsxs("span", { className: "text-muted-foreground text-sm font-semibold tracking-wide", children: ["Iteration ", iteration.number] }), outcome ? (_jsxs("span", { className: `flex items-center gap-1 text-xs font-medium ${outcome.colorClass}`, children: [_jsx("span", { className: `inline-block h-1.5 w-1.5 rounded-full ${outcome.dotClass}` }), outcome.label] })) : null] })) : null, _jsxs("div", { className: "relative flex flex-col", children: [_jsx("div", { className: "bg-border/60 absolute top-4 bottom-4 left-[21.5px] w-px" }), iteration.timings.map((t, idx) => {
242
+ if (isLifecycleEvent(t.phase)) {
243
+ const isRejection = t.phase === 'run:rejected';
244
+ const isFailure = t.phase === 'run:failed' || t.phase === 'run:crashed' || t.phase === 'run:stopped';
245
+ // For failures, find the last phase with an error message in this iteration
246
+ let message;
247
+ if (isRejection) {
248
+ message = iteration.rejectionMessage;
249
+ }
250
+ else if (isFailure) {
251
+ const lastErrorPhase = [...iteration.timings]
252
+ .reverse()
253
+ .find((p) => !isLifecycleEvent(p.phase) && p.errorMessage);
254
+ message = lastErrorPhase?.errorMessage ?? t.errorMessage;
255
+ }
256
+ return (_jsx(LifecycleEventRow, { timing: t, message: message, attachments: isRejection ? iteration.rejectionAttachments : undefined, isFirst: idx === 0, isLast: idx === iteration.timings.length - 1 }, `${t.agentRunId}-${t.phase}-${t.startedAt}`));
257
+ }
258
+ return (_jsx(NodeTimingRow, { timing: t, maxDurationMs: maxDurationMs, now: now }, `${t.agentRunId}-${t.phase}-${t.startedAt}`));
259
+ })] })] }));
186
260
  }
187
261
  /* ---------------------------------------------------------------------------
188
262
  * Row components
189
263
  * ------------------------------------------------------------------------- */
190
- function LifecycleEventRow({ timing, message, attachments, }) {
264
+ function LifecycleEventRow({ timing, message, attachments, isFirst, isLast, }) {
191
265
  const event = LIFECYCLE_EVENTS[timing.phase];
192
266
  if (!event)
193
267
  return null;
194
268
  const hasAttachments = attachments && attachments.length > 0;
195
- return (_jsxs("div", { className: `text-xs ${event.colorClass}`, children: [_jsx("span", { children: event.label }), message ? (_jsxs("span", { "data-testid": "rejection-feedback-text", className: "text-muted-foreground ml-2 font-normal italic", children: ["\u2014 ", message] })) : null, hasAttachments ? (_jsx("div", { "data-testid": "rejection-feedback-attachments", className: "mt-1.5 ml-2", children: _jsx(InlineAttachments, { text: "", attachmentPaths: attachments }) })) : null] }));
269
+ const Icon = event.icon;
270
+ return (_jsxs("div", { className: `relative flex flex-col gap-1 px-3 ${isFirst ? 'pt-2' : 'pt-1'} ${isLast ? 'pb-2' : 'pb-1'}`, children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx("div", { className: `relative z-10 flex h-5 w-5 shrink-0 items-center justify-center rounded-full ${event.bgClass}`, children: _jsx(Icon, { className: `h-3 w-3 ${event.colorClass}` }) }), _jsx("span", { className: `text-sm font-medium ${event.colorClass}`, children: event.label }), timing.startedAt &&
271
+ !(typeof timing.startedAt === 'string' && timing.startedAt.startsWith('synthetic')) ? (_jsx("span", { className: "text-muted-foreground/60 ml-auto text-xs tabular-nums", children: formatTimestamp(String(timing.startedAt)) })) : null] }), message
272
+ ? (() => {
273
+ const isError = timing.phase === 'run:failed' ||
274
+ timing.phase === 'run:crashed' ||
275
+ timing.phase === 'run:stopped';
276
+ return (_jsxs("div", { className: `ml-[26px] flex items-start gap-1.5 rounded-md px-2 py-1.5 ${isError
277
+ ? 'bg-red-50/50 dark:bg-red-950/20'
278
+ : 'bg-orange-50/50 dark:bg-orange-950/20'}`, children: [isError ? (_jsx(AlertCircle, { className: "mt-0.5 h-3.5 w-3.5 shrink-0 text-red-400" })) : (_jsx(MessageSquare, { className: "mt-0.5 h-3.5 w-3.5 shrink-0 text-orange-400" })), _jsxs("span", { "data-testid": isError ? 'error-message-text' : 'rejection-feedback-text', className: "text-muted-foreground text-xs leading-relaxed italic", children: ["\u2014 ", message] })] }));
279
+ })()
280
+ : null, hasAttachments ? (_jsx("div", { "data-testid": "rejection-feedback-attachments", className: "ml-[26px]", children: _jsx(InlineAttachments, { text: "", attachmentPaths: attachments }) })) : null] }));
196
281
  }
197
282
  function NodeTimingRow({ timing, maxDurationMs, now, }) {
283
+ const base = timing.phase.includes(':') ? timing.phase.split(':')[0] : timing.phase;
198
284
  const suffix = timing.phase.includes(':') ? timing.phase.split(':')[1] : null;
199
285
  const isSubPhase = suffix !== null;
200
- // Distinguish implementation sub-phases (phase-1, phase-2) from rejection retries (2, 3)
201
286
  const isImplPhase = suffix?.startsWith('phase-') ?? false;
287
+ const baseName = NODE_TO_PHASE[base] ?? base;
202
288
  const label = isImplPhase
203
289
  ? `Phase ${suffix.replace('phase-', '')}`
204
290
  : suffix !== null
205
- ? `retry #${suffix}`
206
- : (NODE_TO_PHASE[timing.phase] ?? timing.phase);
291
+ ? `${baseName} #${suffix}`
292
+ : baseName;
207
293
  const durationMs = getEffectiveDuration(timing, now);
208
- const barPercent = maxDurationMs > 0 ? Math.max(2, (durationMs / maxDurationMs) * 100) : 2;
209
294
  const isRunning = !timing.completedAt && !!timing.startedAt;
295
+ // Running phases get a minimum 15% bar so they're always visually prominent
296
+ const minPercent = isRunning ? 15 : 2;
297
+ const barPercent = maxDurationMs > 0 ? Math.max(minPercent, (durationMs / maxDurationMs) * 100) : minPercent;
210
298
  const barColorClass = timing.completedAt
211
299
  ? isImplPhase
212
300
  ? 'bg-emerald-400'
@@ -217,17 +305,28 @@ function NodeTimingRow({ timing, maxDurationMs, now, }) {
217
305
  const totalTokens = timing.inputTokens != null || timing.outputTokens != null
218
306
  ? (timing.inputTokens ?? 0) + (timing.outputTokens ?? 0)
219
307
  : null;
220
- return (_jsxs("div", { className: isSubPhase ? 'flex flex-col gap-1 pl-6' : 'flex flex-col gap-1', children: [_jsxs("div", { "data-testid": `timing-bar-${timing.phase}`, className: "flex items-center gap-2", children: [_jsx("span", { className: `text-muted-foreground shrink-0 text-xs ${isSubPhase ? 'w-18' : 'w-24'}`, children: label }), _jsx("div", { className: `bg-muted min-w-0 flex-1 overflow-hidden rounded-full ${isSubPhase ? 'h-2.5' : 'h-3'}`, children: _jsx("div", { className: `h-full rounded-full ${barColorClass}${isRunning ? 'animate-pulse' : ''}`, style: { width: `${Math.min(barPercent, 100)}%` } }) }), _jsx("span", { className: "text-muted-foreground w-10 shrink-0 text-right text-xs tabular-nums", children: formatDuration(durationMs) }), _jsx("span", { className: "text-muted-foreground w-12 shrink-0 text-right text-[10px] tabular-nums", children: totalTokens != null && totalTokens > 0 ? (_jsxs("span", { className: "inline-flex items-center gap-0.5", children: [_jsx(Zap, { className: "h-2 w-2 opacity-50" }), formatTokens(totalTokens)] })) : null }), _jsx("span", { className: "text-muted-foreground w-14 shrink-0 text-right text-[10px] tabular-nums", children: timing.costUsd != null && timing.costUsd > 0 ? (_jsxs("span", { className: "inline-flex items-center gap-0.5", children: [_jsx(DollarSign, { className: "h-2 w-2 opacity-50" }), formatCost(timing.costUsd)] })) : null })] }), timing.approvalWaitMs != null && timing.approvalWaitMs > 0 ? (_jsx(ApprovalWaitRow, { timing: timing, maxDurationMs: maxDurationMs })) : null] }));
308
+ return (_jsxs("div", { className: `relative flex flex-col gap-0.5 px-3 py-1.5 ${isSubPhase ? 'ml-4' : ''}`, children: [_jsxs("div", { "data-testid": `timing-bar-${timing.phase}`, className: "flex items-center gap-2", children: [_jsx("div", { className: "relative z-10 flex h-5 w-5 shrink-0 items-center justify-center", children: _jsx("div", { className: `rounded-full ${isRunning ? 'h-3 w-3 animate-pulse' : 'h-2.5 w-2.5'} ${isRunning
309
+ ? 'bg-blue-500'
310
+ : timing.completedAt
311
+ ? 'bg-emerald-500'
312
+ : 'bg-muted-foreground/30'}` }) }), _jsx("span", { className: `w-28 shrink-0 truncate text-sm font-medium ${isSubPhase ? 'text-muted-foreground' : 'text-foreground/80'}`, children: label }), _jsx("div", { className: `bg-muted relative min-w-0 flex-1 overflow-hidden rounded-full ${isSubPhase ? 'h-1.5' : 'h-2'}`, children: isRunning ? (_jsx("div", { className: "absolute inset-0 rounded-full bg-blue-500/30", style: {
313
+ backgroundImage: 'linear-gradient(90deg, transparent 0%, rgb(59 130 246) 50%, transparent 100%)',
314
+ backgroundSize: '200% 100%',
315
+ animation: 'shimmer 1.5s ease-in-out infinite',
316
+ } })) : (_jsx("div", { className: `h-full rounded-full transition-all duration-300 ${barColorClass}`, style: { width: `${Math.min(barPercent, 100)}%` } })) }), _jsx("span", { className: "text-muted-foreground w-14 shrink-0 text-right text-sm font-medium tabular-nums", children: formatDuration(durationMs) })] }), _jsxs("div", { className: "ml-[28px] flex items-center gap-3 text-xs", children: [timing.startedAt ? (_jsx("span", { className: "text-muted-foreground/60 tabular-nums", children: formatTimestamp(timing.startedAt) })) : null, totalTokens != null && totalTokens > 0 ? (_jsxs("span", { className: "text-muted-foreground/70 inline-flex items-center gap-0.5", children: [_jsx(Zap, { className: "h-3 w-3 opacity-50" }), formatTokens(totalTokens)] })) : null, timing.costUsd != null && timing.costUsd > 0 ? (_jsxs("span", { className: "text-muted-foreground/70 inline-flex items-center gap-0.5", children: [_jsx(DollarSign, { className: "h-3 w-3 opacity-50" }), formatCost(timing.costUsd)] })) : null] }), timing.approvalWaitMs != null && timing.approvalWaitMs > 0 ? (_jsx(ApprovalWaitRow, { timing: timing, maxDurationMs: maxDurationMs })) : null] }));
221
317
  }
222
318
  function ApprovalWaitRow({ timing, maxDurationMs, }) {
223
319
  const waitMs = timing.approvalWaitMs ?? 0;
224
320
  const barPercent = maxDurationMs > 0 ? Math.max(2, (waitMs / maxDurationMs) * 100) : 2;
225
- return (_jsxs("div", { "data-testid": `approval-wait-${timing.phase}`, className: "flex items-center gap-2 pl-4", children: [_jsx("span", { className: "text-muted-foreground w-20 shrink-0 text-xs", children: "approval" }), _jsx("div", { className: "bg-muted h-2.5 min-w-0 flex-1 overflow-hidden rounded-full", children: _jsx("div", { className: "h-full rounded-full bg-amber-500", style: { width: `${Math.min(barPercent, 100)}%` } }) }), _jsx("span", { className: "text-muted-foreground w-10 shrink-0 text-right text-xs tabular-nums", children: formatDuration(waitMs) }), _jsx("span", { className: "w-12 shrink-0" }), _jsx("span", { className: "w-14 shrink-0" })] }));
321
+ return (_jsxs("div", { "data-testid": `approval-wait-${timing.phase}`, className: "ml-[26px] flex items-center gap-2 rounded-md bg-amber-50/50 px-1.5 py-1 dark:bg-amber-950/20", children: [_jsx(Timer, { className: "h-3.5 w-3.5 shrink-0 text-amber-500" }), _jsx("span", { className: "text-muted-foreground w-16 shrink-0 text-xs", children: "approval" }), _jsx("div", { className: "bg-muted h-1.5 min-w-0 flex-1 overflow-hidden rounded-full", children: _jsx("div", { className: "h-full rounded-full bg-amber-500", style: { width: `${Math.min(barPercent, 100)}%` } }) }), _jsx("span", { className: "text-muted-foreground w-14 shrink-0 text-right text-xs tabular-nums", children: formatDuration(waitMs) })] }));
226
322
  }
227
323
  function SummaryTotals({ totalExecMs, totalWaitMs, totalInputTokens, totalOutputTokens, totalCostUsd, }) {
228
324
  const totalTokens = totalInputTokens + totalOutputTokens;
229
- return (_jsxs("div", { "data-testid": "activity-summary", className: "border-border flex flex-col gap-1.5 border-t pt-3", children: [_jsx(SummaryRow, { label: "Total execution", value: formatDuration(totalExecMs) }), totalWaitMs > 0 ? (_jsxs(_Fragment, { children: [_jsx(SummaryRow, { label: "Total wait", value: formatDuration(totalWaitMs) }), _jsx(SummaryRow, { label: "Total wall-clock", value: formatDuration(totalExecMs + totalWaitMs) })] })) : null, totalTokens > 0 ? (_jsx(SummaryRow, { label: "Total tokens", value: `${formatTokens(totalTokens)} (${formatTokens(totalInputTokens)} in · ${formatTokens(totalOutputTokens)} out)` })) : null, totalCostUsd > 0 ? _jsx(SummaryRow, { label: "Total cost", value: formatCost(totalCostUsd) }) : null] }));
325
+ return (_jsxs("div", { "data-testid": "activity-summary", className: "border-border bg-card/30 flex flex-col gap-2 rounded-lg border p-3", children: [_jsx("div", { className: "text-muted-foreground mb-1 text-xs font-semibold tracking-wider uppercase", children: "Summary" }), _jsxs("div", { className: "grid grid-cols-2 gap-x-4 gap-y-3", children: [_jsx(SummaryCell, { icon: Clock, label: "Execution", value: formatDuration(totalExecMs) }), _jsx(SummaryCell, { icon: Timer, label: "Wait", value: totalWaitMs > 0 ? formatDuration(totalWaitMs) : 'n/a' }), _jsx(SummaryCell, { icon: Clock, label: "Wall-clock", value: totalWaitMs > 0
326
+ ? formatDuration(totalExecMs + totalWaitMs)
327
+ : formatDuration(totalExecMs) }), _jsx(SummaryCell, { icon: DollarSign, label: "Cost", value: totalCostUsd > 0 ? formatCost(totalCostUsd) : 'n/a' }), _jsxs("div", { className: "col-span-2 flex flex-col gap-0.5", children: [_jsxs("span", { className: "text-muted-foreground flex items-center gap-1 text-xs", children: [_jsx(Zap, { className: "h-3 w-3 opacity-40" }), "Tokens"] }), totalTokens > 0 ? (_jsxs("span", { className: "flex items-center gap-2.5 text-sm tabular-nums", children: [_jsx("span", { children: formatTokens(totalTokens) }), _jsxs("span", { className: "text-muted-foreground flex items-center gap-3 text-xs", title: "Input tokens / Output tokens", children: [_jsxs("span", { className: "flex items-center gap-0.5", children: [_jsx(ArrowDownToLine, { className: "h-3 w-3 text-blue-500 opacity-60" }), formatTokens(totalInputTokens)] }), _jsxs("span", { className: "flex items-center gap-0.5", children: [_jsx(ArrowUpFromLine, { className: "h-3 w-3 text-emerald-500 opacity-60" }), formatTokens(totalOutputTokens)] })] })] })) : (_jsx("span", { className: "text-muted-foreground/40 text-sm italic tabular-nums", children: "n/a" }))] })] })] }));
230
328
  }
231
- function SummaryRow({ label, value }) {
232
- return (_jsxs("div", { className: "flex items-center justify-between", children: [_jsx("span", { className: "text-muted-foreground text-xs font-medium", children: label }), _jsx("span", { className: "text-xs font-medium", children: value })] }));
329
+ function SummaryCell({ icon: Icon, label, value, className = '', }) {
330
+ const isNA = value === 'n/a';
331
+ return (_jsxs("div", { className: `flex flex-col gap-0.5 ${className}`, children: [_jsxs("span", { className: "text-muted-foreground flex items-center gap-1 text-xs", children: [_jsx(Icon, { className: "h-3 w-3 opacity-40" }), label] }), _jsx("span", { className: `text-sm tabular-nums ${isNA ? 'text-muted-foreground/40 italic' : ''}`, children: value })] }));
233
332
  }
@@ -1 +1 @@
1
- {"version":3,"file":"feature-drawer-tabs.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-drawer-tabs/feature-drawer-tabs.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAS9E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AACzF,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+CAA+C,CAAC;AACjG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAMxE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAQ9E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uDAAuD,CAAC;AA8C3F,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,eAAe,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B,gFAAgF;IAChF,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,mFAAmF;IACnF,SAAS,CAAC,EAAE,SAAS,iBAAiB,EAAE,CAAC;IAGzC,OAAO,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAC;IACtC,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACvC,WAAW,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7D,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,WAAW,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,gBAAgB,EAAE,KAAK,IAAI,CAAC;IAC1E,YAAY,CAAC,EAAE,OAAO,CAAC;IAGvB,QAAQ,CAAC,EAAE,uBAAuB,GAAG,IAAI,CAAC;IAC1C,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,gBAAgB,EAAE,KAAK,IAAI,CAAC;IAC3E,aAAa,CAAC,EAAE,OAAO,CAAC;IAGxB,WAAW,CAAC,EAAE,2BAA2B,GAAG,IAAI,CAAC;IAGjD,SAAS,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;IACnC,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,aAAa,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,gBAAgB,EAAE,KAAK,IAAI,CAAC;IAC5E,cAAc,CAAC,EAAE,OAAO,CAAC;IAGzB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7C;AAwBD,wBAAgB,iBAAiB,CAAC,EAChC,WAAW,EACX,SAAS,EACT,UAAU,EACV,MAAM,EACN,OAAO,EACP,aAAa,EACb,WAAW,EACX,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,aAAa,EACb,YAAY,EACZ,aAAa,EACb,WAAW,EACX,SAAS,EACT,cAAc,EACd,aAAa,EACb,cAAc,EACd,WAAW,EACX,SAAS,EACT,iBAAiB,EACjB,SAAS,GACV,EAAE,sBAAsB,2CAiUxB"}
1
+ {"version":3,"file":"feature-drawer-tabs.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-drawer-tabs/feature-drawer-tabs.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAS9E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AACzF,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+CAA+C,CAAC;AACjG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAMxE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAQ9E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uDAAuD,CAAC;AA8C3F,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,eAAe,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B,gFAAgF;IAChF,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,mFAAmF;IACnF,SAAS,CAAC,EAAE,SAAS,iBAAiB,EAAE,CAAC;IAGzC,OAAO,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAC;IACtC,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACvC,WAAW,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7D,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,WAAW,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,gBAAgB,EAAE,KAAK,IAAI,CAAC;IAC1E,YAAY,CAAC,EAAE,OAAO,CAAC;IAGvB,QAAQ,CAAC,EAAE,uBAAuB,GAAG,IAAI,CAAC;IAC1C,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,gBAAgB,EAAE,KAAK,IAAI,CAAC;IAC3E,aAAa,CAAC,EAAE,OAAO,CAAC;IAGxB,WAAW,CAAC,EAAE,2BAA2B,GAAG,IAAI,CAAC;IAGjD,SAAS,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;IACnC,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,aAAa,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,gBAAgB,EAAE,KAAK,IAAI,CAAC;IAC5E,cAAc,CAAC,EAAE,OAAO,CAAC;IAGzB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7C;AAwBD,wBAAgB,iBAAiB,CAAC,EAChC,WAAW,EACX,SAAS,EACT,UAAU,EACV,MAAM,EACN,OAAO,EACP,aAAa,EACb,WAAW,EACX,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,aAAa,EACb,YAAY,EACZ,aAAa,EACb,WAAW,EACX,SAAS,EACT,cAAc,EACd,aAAa,EACb,cAAc,EACd,WAAW,EACX,SAAS,EACT,iBAAiB,EACjB,SAAS,GACV,EAAE,sBAAsB,2CA8UxB"}
@@ -220,6 +220,19 @@ export function FeatureDrawerTabs({ featureNode, featureId, initialTab, urlTab,
220
220
  refreshTab(current);
221
221
  }
222
222
  }, [sseEvents, featureId, refreshTab]);
223
+ // Poll activity data while the feature is actively running.
224
+ // SSE events only fire on state transitions (phase completed, lifecycle changed),
225
+ // so during a long-running phase there are no events and the data goes stale.
226
+ // Poll every 5s when the feature is in a working state to keep data fresh.
227
+ const isFeatureActive = featureNode.state === 'running' || featureNode.state === 'creating';
228
+ useEffect(() => {
229
+ if (!isFeatureActive)
230
+ return;
231
+ const interval = setInterval(() => {
232
+ refreshTab('activity');
233
+ }, 5000);
234
+ return () => clearInterval(interval);
235
+ }, [isFeatureActive, refreshTab]);
223
236
  const handleTabChange = useCallback((value) => {
224
237
  const tab = value;
225
238
  isUserInteraction.current = true;
@@ -1 +1 @@
1
- {"version":3,"file":"use-tab-data-fetch.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-drawer-tabs/use-tab-data-fetch.ts"],"names":[],"mappings":"AAIA,yDAAyD;AACzD,MAAM,WAAW,QAAQ,CAAC,CAAC,GAAG,OAAO;IACnC,IAAI,EAAE,CAAC,GAAG,IAAI,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,iEAAiE;AACjE,MAAM,MAAM,UAAU,CAAC,CAAC,GAAG,OAAO,IAAI,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;AAExE,kDAAkD;AAClD,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,MAAM,IAAI,MAAM,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC;AAElE,+CAA+C;AAC/C,MAAM,WAAW,qBAAqB,CAAC,CAAC,SAAS,MAAM;IACrD,4CAA4C;IAC5C,IAAI,EAAE,MAAM,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC;IAC1B,2DAA2D;IAC3D,QAAQ,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpC,iDAAiD;IACjD,UAAU,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACvC;AAMD;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,CAAC,SAAS,MAAM,EAC9C,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC,GACvB,qBAAqB,CAAC,CAAC,CAAC,CAmG1B"}
1
+ {"version":3,"file":"use-tab-data-fetch.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-drawer-tabs/use-tab-data-fetch.ts"],"names":[],"mappings":"AAIA,yDAAyD;AACzD,MAAM,WAAW,QAAQ,CAAC,CAAC,GAAG,OAAO;IACnC,IAAI,EAAE,CAAC,GAAG,IAAI,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,iEAAiE;AACjE,MAAM,MAAM,UAAU,CAAC,CAAC,GAAG,OAAO,IAAI,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;AAExE,kDAAkD;AAClD,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,MAAM,IAAI,MAAM,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC;AAElE,+CAA+C;AAC/C,MAAM,WAAW,qBAAqB,CAAC,CAAC,SAAS,MAAM;IACrD,4CAA4C;IAC5C,IAAI,EAAE,MAAM,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC;IAC1B,2DAA2D;IAC3D,QAAQ,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpC,iDAAiD;IACjD,UAAU,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACvC;AAMD;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,CAAC,SAAS,MAAM,EAC9C,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC,GACvB,qBAAqB,CAAC,CAAC,CAAC,CA2G1B"}
@@ -54,11 +54,16 @@ export function useTabDataFetch(featureId, fetchers) {
54
54
  const currentFeatureId = featureIdRef.current;
55
55
  if (!fetcher)
56
56
  return;
57
+ // Only show loading spinner when there's no existing data.
58
+ // On refresh (data already present), keep showing stale data while fetching
59
+ // to avoid flickering the entire tab on every poll cycle.
57
60
  if (mountedRef.current) {
58
- setTabStates((prev) => ({
59
- ...prev,
60
- [tab]: { ...prev[tab], loading: true, error: null },
61
- }));
61
+ setTabStates((prev) => {
62
+ const hasData = prev[tab]?.data !== null;
63
+ if (hasData)
64
+ return prev; // Keep stale data visible — no loading flash
65
+ return { ...prev, [tab]: { ...prev[tab], loading: true, error: null } };
66
+ });
62
67
  }
63
68
  try {
64
69
  const data = await fetcher(currentFeatureId);
@@ -71,11 +76,15 @@ export function useTabDataFetch(featureId, fetchers) {
71
76
  }
72
77
  catch (error) {
73
78
  if (mountedRef.current) {
74
- const message = error instanceof Error ? error.message : 'Failed to fetch tab data';
75
- setTabStates((prev) => ({
76
- ...prev,
77
- [tab]: { data: null, loading: false, error: message },
78
- }));
79
+ setTabStates((prev) => {
80
+ const message = error instanceof Error ? error.message : 'Failed to fetch tab data';
81
+ // On refresh failure, keep existing data instead of clearing it
82
+ const existingData = prev[tab]?.data ?? null;
83
+ return {
84
+ ...prev,
85
+ [tab]: { data: existingData, loading: false, error: existingData ? null : message },
86
+ };
87
+ });
79
88
  }
80
89
  }
81
90
  }, []);
@@ -1 +1 @@
1
- {"version":3,"file":"app-sidebar.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/layouts/app-sidebar/app-sidebar.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAG/E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,aAAa,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,YAAY,EAAE,iBAAiB,CAAC;IAEhC,cAAc,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CAC9C;AAED,wBAAgB,UAAU,CAAC,EACzB,QAAQ,EACR,YAAY,EAEZ,cAAc,GACf,EAAE,eAAe,2CAsHjB"}
1
+ {"version":3,"file":"app-sidebar.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/layouts/app-sidebar/app-sidebar.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAG/E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,aAAa,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,YAAY,EAAE,iBAAiB,CAAC;IAEhC,cAAc,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CAC9C;AAED,wBAAgB,UAAU,CAAC,EACzB,QAAQ,EACR,YAAY,EAEZ,cAAc,GACf,EAAE,eAAe,2CAgHjB"}
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { usePathname } from 'next/navigation';
4
- import { Home, Wrench, Puzzle, Settings, Database } from 'lucide-react';
4
+ import { Home, Wrench, Puzzle, Settings } from 'lucide-react';
5
5
  import { Sidebar, SidebarHeader, SidebarContent, SidebarMenu, SidebarMenuItem, SidebarRail, useSidebar, } from '../../ui/sidebar.js';
6
6
  import { ScrollArea } from '../../ui/scroll-area.js';
7
7
  import { SidebarNavItem } from '../../common/sidebar-nav-item/index.js';
@@ -29,7 +29,7 @@ export function AppSidebar({ features, featureFlags, onFeatureClick, }) {
29
29
  'flex min-w-0 flex-1 items-center gap-2 overflow-hidden px-2',
30
30
  'transition-opacity duration-200 ease-out',
31
31
  expandedVisible ? 'opacity-100' : 'opacity-0',
32
- ].join(' '), "aria-hidden": !expandedVisible, children: [_jsx(ShepLogo, { className: "shrink-0", size: 20, variant: versionData.isDev ? 'dev' : 'default' }), _jsx("span", { className: "truncate text-sm font-semibold tracking-tight", children: "Shep" }), _jsx(VersionBadge, { version: versionData.version, branch: versionData.branch || undefined, commitHash: versionData.commitHash || undefined, isDev: versionData.isDev, packageName: versionData.packageName, description: versionData.description, instancePath: versionData.instancePath || undefined })] })) : null, _jsx(SidebarCollapseToggle, { className: "shrink-0 transition-all duration-200" })] }) }), _jsx(SidebarNavItem, { icon: Home, label: "Control Center", href: "/", active: pathname === '/' }), _jsx(SidebarNavItem, { icon: Wrench, label: "Tools", href: "/tools", active: pathname === '/tools' }), featureFlags.skills ? (_jsx(SidebarNavItem, { icon: Puzzle, label: "Skills", href: "/skills", active: pathname === '/skills' })) : null, _jsx(SidebarNavItem, { icon: Settings, label: "Settings", href: "/settings", active: pathname === '/settings' }), _jsx(SidebarNavItem, { icon: Database, label: "Database", href: "/database", active: pathname === '/database' })] }) }), _jsx(SidebarContent, { children: showExpanded ? (_jsxs("div", { className: [
32
+ ].join(' '), "aria-hidden": !expandedVisible, children: [_jsx(ShepLogo, { className: "shrink-0", size: 20, variant: versionData.isDev ? 'dev' : 'default' }), _jsx("span", { className: "truncate text-sm font-semibold tracking-tight", children: "Shep" }), _jsx(VersionBadge, { version: versionData.version, branch: versionData.branch || undefined, commitHash: versionData.commitHash || undefined, isDev: versionData.isDev, packageName: versionData.packageName, description: versionData.description, instancePath: versionData.instancePath || undefined })] })) : null, _jsx(SidebarCollapseToggle, { className: "shrink-0 transition-all duration-200" })] }) }), _jsx(SidebarNavItem, { icon: Home, label: "Control Center", href: "/", active: pathname === '/' }), _jsx(SidebarNavItem, { icon: Wrench, label: "Tools", href: "/tools", active: pathname === '/tools' }), featureFlags.skills ? (_jsx(SidebarNavItem, { icon: Puzzle, label: "Skills", href: "/skills", active: pathname === '/skills' })) : null, _jsx(SidebarNavItem, { icon: Settings, label: "Settings", href: "/settings", active: pathname === '/settings' })] }) }), _jsx(SidebarContent, { children: showExpanded ? (_jsxs("div", { className: [
33
33
  'min-w-0 overflow-hidden transition-opacity duration-200 ease-out',
34
34
  '[&_[data-sidebar=group-label]]:!mt-0 [&_[data-sidebar=group-label]]:!opacity-100 [&_[data-sidebar=group-label]]:!transition-none',
35
35
  expandedVisible ? 'opacity-100' : 'opacity-0',
@@ -5,6 +5,7 @@
5
5
  * obtain DI-managed instances. The tsyringe container is placed on globalThis
6
6
  * by the CLI bootstrap (`shep ui`) or the dev-server (`pnpm dev:web`).
7
7
  */
8
+ import type { InjectionToken } from 'tsyringe';
8
9
  /**
9
10
  * Resolve a dependency from the DI container.
10
11
  *
@@ -16,5 +17,5 @@
16
17
  * const features = await resolve(ListFeaturesUseCase).execute();
17
18
  * ```
18
19
  */
19
- export declare function resolve<T>(token: string | symbol | (new (...args: unknown[]) => T)): T;
20
+ export declare function resolve<T>(token: InjectionToken<T>): T;
20
21
  //# sourceMappingURL=server-container.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"server-container.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/web/lib/server-container.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AASH;;;;;;;;;;GAUG;AACH,wBAAgB,OAAO,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,CAAC,KAAK,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC,GAAG,CAAC,CAYtF"}
1
+ {"version":3,"file":"server-container.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/web/lib/server-container.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAuB,cAAc,EAAE,MAAM,UAAU,CAAC;AAIpE;;;;;;;;;;GAUG;AACH,wBAAgB,OAAO,CAAC,CAAC,EAAE,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC,GAAG,CAAC,CAYtD"}