@shepai/cli 1.122.0 → 1.122.1-pr373.cb974c2

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 (362) hide show
  1. package/dist/src/presentation/web/app/actions/execute-query.d.ts +7 -0
  2. package/dist/src/presentation/web/app/actions/execute-query.d.ts.map +1 -0
  3. package/dist/src/presentation/web/app/actions/execute-query.js +55 -0
  4. package/dist/src/presentation/web/app/actions/get-table-rows.d.ts +10 -0
  5. package/dist/src/presentation/web/app/actions/get-table-rows.d.ts.map +1 -0
  6. package/dist/src/presentation/web/app/actions/get-table-rows.js +55 -0
  7. package/dist/src/presentation/web/app/actions/get-table-schema.d.ts +13 -0
  8. package/dist/src/presentation/web/app/actions/get-table-schema.d.ts.map +1 -0
  9. package/dist/src/presentation/web/app/actions/get-table-schema.js +27 -0
  10. package/dist/src/presentation/web/app/actions/list-tables.d.ts +10 -0
  11. package/dist/src/presentation/web/app/actions/list-tables.d.ts.map +1 -0
  12. package/dist/src/presentation/web/app/actions/list-tables.js +19 -0
  13. package/dist/src/presentation/web/app/database/page.d.ts +4 -0
  14. package/dist/src/presentation/web/app/database/page.d.ts.map +1 -0
  15. package/dist/src/presentation/web/app/database/page.js +15 -0
  16. package/dist/src/presentation/web/components/common/control-center-drawer/feature-drawer-client.d.ts.map +1 -1
  17. package/dist/src/presentation/web/components/common/control-center-drawer/feature-drawer-client.js +4 -0
  18. package/dist/src/presentation/web/components/features/control-center/use-control-center-state.d.ts.map +1 -1
  19. package/dist/src/presentation/web/components/features/control-center/use-control-center-state.js +6 -2
  20. package/dist/src/presentation/web/components/features/database/cell-value-dialog.d.ts +8 -0
  21. package/dist/src/presentation/web/components/features/database/cell-value-dialog.d.ts.map +1 -0
  22. package/dist/src/presentation/web/components/features/database/cell-value-dialog.js +7 -0
  23. package/dist/src/presentation/web/components/features/database/cell-value-dialog.stories.d.ts +10 -0
  24. package/dist/src/presentation/web/components/features/database/cell-value-dialog.stories.d.ts.map +1 -0
  25. package/dist/src/presentation/web/components/features/database/cell-value-dialog.stories.js +48 -0
  26. package/dist/src/presentation/web/components/features/database/database-page-client.d.ts +13 -0
  27. package/dist/src/presentation/web/components/features/database/database-page-client.d.ts.map +1 -0
  28. package/dist/src/presentation/web/components/features/database/database-page-client.js +74 -0
  29. package/dist/src/presentation/web/components/features/database/database-page-client.stories.d.ts +9 -0
  30. package/dist/src/presentation/web/components/features/database/database-page-client.stories.d.ts.map +1 -0
  31. package/dist/src/presentation/web/components/features/database/database-page-client.stories.js +78 -0
  32. package/dist/src/presentation/web/components/features/database/query-runner.d.ts +9 -0
  33. package/dist/src/presentation/web/components/features/database/query-runner.d.ts.map +1 -0
  34. package/dist/src/presentation/web/components/features/database/query-runner.js +53 -0
  35. package/dist/src/presentation/web/components/features/database/query-runner.stories.d.ts +9 -0
  36. package/dist/src/presentation/web/components/features/database/query-runner.stories.d.ts.map +1 -0
  37. package/dist/src/presentation/web/components/features/database/query-runner.stories.js +55 -0
  38. package/dist/src/presentation/web/components/features/database/row-browser.d.ts +11 -0
  39. package/dist/src/presentation/web/components/features/database/row-browser.d.ts.map +1 -0
  40. package/dist/src/presentation/web/components/features/database/row-browser.js +42 -0
  41. package/dist/src/presentation/web/components/features/database/row-browser.stories.d.ts +14 -0
  42. package/dist/src/presentation/web/components/features/database/row-browser.stories.d.ts.map +1 -0
  43. package/dist/src/presentation/web/components/features/database/row-browser.stories.js +120 -0
  44. package/dist/src/presentation/web/components/features/database/schema-viewer.d.ts +7 -0
  45. package/dist/src/presentation/web/components/features/database/schema-viewer.d.ts.map +1 -0
  46. package/dist/src/presentation/web/components/features/database/schema-viewer.js +14 -0
  47. package/dist/src/presentation/web/components/features/database/schema-viewer.stories.d.ts +11 -0
  48. package/dist/src/presentation/web/components/features/database/schema-viewer.stories.d.ts.map +1 -0
  49. package/dist/src/presentation/web/components/features/database/schema-viewer.stories.js +67 -0
  50. package/dist/src/presentation/web/components/features/database/table-list.d.ts +8 -0
  51. package/dist/src/presentation/web/components/features/database/table-list.d.ts.map +1 -0
  52. package/dist/src/presentation/web/components/features/database/table-list.js +19 -0
  53. package/dist/src/presentation/web/components/features/database/table-list.stories.d.ts +10 -0
  54. package/dist/src/presentation/web/components/features/database/table-list.stories.d.ts.map +1 -0
  55. package/dist/src/presentation/web/components/features/database/table-list.stories.js +66 -0
  56. package/dist/src/presentation/web/components/layouts/app-sidebar/app-sidebar.d.ts.map +1 -1
  57. package/dist/src/presentation/web/components/layouts/app-sidebar/app-sidebar.js +2 -2
  58. package/dist/src/presentation/web/components/ui/table.d.ts +11 -0
  59. package/dist/src/presentation/web/components/ui/table.d.ts.map +1 -0
  60. package/dist/src/presentation/web/components/ui/table.js +28 -0
  61. package/dist/src/presentation/web/lib/server-container.d.ts +1 -2
  62. package/dist/src/presentation/web/lib/server-container.d.ts.map +1 -1
  63. package/dist/src/presentation/web/lib/server-db.d.ts +16 -0
  64. package/dist/src/presentation/web/lib/server-db.d.ts.map +1 -0
  65. package/dist/src/presentation/web/lib/server-db.js +10 -0
  66. package/dist/src/presentation/web/lib/sql-validation.d.ts +7 -0
  67. package/dist/src/presentation/web/lib/sql-validation.d.ts.map +1 -0
  68. package/dist/src/presentation/web/lib/sql-validation.js +17 -0
  69. package/dist/tsconfig.build.tsbuildinfo +1 -1
  70. package/package.json +1 -1
  71. package/web/.next/BUILD_ID +1 -1
  72. package/web/.next/app-path-routes-manifest.json +1 -0
  73. package/web/.next/build-manifest.json +6 -6
  74. package/web/.next/fallback-build-manifest.json +2 -2
  75. package/web/.next/prerender-manifest.json +3 -3
  76. package/web/.next/required-server-files.js +3 -3
  77. package/web/.next/required-server-files.json +3 -3
  78. package/web/.next/routes-manifest.json +6 -0
  79. package/web/.next/server/app/(dashboard)/@drawer/create/page/build-manifest.json +4 -4
  80. package/web/.next/server/app/(dashboard)/@drawer/create/page/server-reference-manifest.json +22 -22
  81. package/web/.next/server/app/(dashboard)/@drawer/create/page.js +1 -1
  82. package/web/.next/server/app/(dashboard)/@drawer/create/page.js.nft.json +1 -1
  83. package/web/.next/server/app/(dashboard)/@drawer/create/page_client-reference-manifest.js +1 -1
  84. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page/build-manifest.json +4 -4
  85. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page/server-reference-manifest.json +28 -28
  86. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js +1 -1
  87. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js.nft.json +1 -1
  88. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
  89. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/build-manifest.json +4 -4
  90. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/server-reference-manifest.json +28 -28
  91. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js +1 -1
  92. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js.nft.json +1 -1
  93. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page_client-reference-manifest.js +1 -1
  94. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/build-manifest.json +4 -4
  95. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/server-reference-manifest.json +20 -20
  96. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js +1 -1
  97. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js.nft.json +1 -1
  98. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  99. package/web/.next/server/app/(dashboard)/create/page/build-manifest.json +4 -4
  100. package/web/.next/server/app/(dashboard)/create/page/server-reference-manifest.json +22 -22
  101. package/web/.next/server/app/(dashboard)/create/page.js +1 -1
  102. package/web/.next/server/app/(dashboard)/create/page.js.nft.json +1 -1
  103. package/web/.next/server/app/(dashboard)/create/page_client-reference-manifest.js +1 -1
  104. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page/build-manifest.json +4 -4
  105. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page/server-reference-manifest.json +28 -28
  106. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js +1 -1
  107. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js.nft.json +1 -1
  108. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
  109. package/web/.next/server/app/(dashboard)/feature/[featureId]/page/build-manifest.json +4 -4
  110. package/web/.next/server/app/(dashboard)/feature/[featureId]/page/server-reference-manifest.json +28 -28
  111. package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js +1 -1
  112. package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js.nft.json +1 -1
  113. package/web/.next/server/app/(dashboard)/feature/[featureId]/page_client-reference-manifest.js +1 -1
  114. package/web/.next/server/app/(dashboard)/page/build-manifest.json +4 -4
  115. package/web/.next/server/app/(dashboard)/page/server-reference-manifest.json +20 -20
  116. package/web/.next/server/app/(dashboard)/page.js +1 -1
  117. package/web/.next/server/app/(dashboard)/page.js.nft.json +1 -1
  118. package/web/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
  119. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/build-manifest.json +4 -4
  120. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/server-reference-manifest.json +20 -20
  121. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js +1 -1
  122. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js.nft.json +1 -1
  123. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  124. package/web/.next/server/app/_global-error/page/build-manifest.json +4 -4
  125. package/web/.next/server/app/_global-error.html +2 -2
  126. package/web/.next/server/app/_global-error.rsc +1 -1
  127. package/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  128. package/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  129. package/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  130. package/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  131. package/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  132. package/web/.next/server/app/_not-found/page/build-manifest.json +4 -4
  133. package/web/.next/server/app/_not-found/page/server-reference-manifest.json +1 -1
  134. package/web/.next/server/app/_not-found/page.js +1 -1
  135. package/web/.next/server/app/_not-found/page.js.nft.json +1 -1
  136. package/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  137. package/web/.next/server/app/api/attachments/preview/route.js +1 -1
  138. package/web/.next/server/app/api/attachments/preview/route.js.nft.json +1 -1
  139. package/web/.next/server/app/api/evidence/route.js +1 -1
  140. package/web/.next/server/app/api/evidence/route.js.nft.json +1 -1
  141. package/web/.next/server/app/api/graph-data/route.js.nft.json +1 -1
  142. package/web/.next/server/app/database/page/app-paths-manifest.json +3 -0
  143. package/web/.next/server/app/database/page/build-manifest.json +18 -0
  144. package/web/.next/server/app/database/page/next-font-manifest.json +6 -0
  145. package/web/.next/server/app/database/page/react-loadable-manifest.json +1 -0
  146. package/web/.next/server/app/database/page/server-reference-manifest.json +80 -0
  147. package/web/.next/server/app/database/page.js +16 -0
  148. package/web/.next/server/app/database/page.js.map +5 -0
  149. package/web/.next/server/app/database/page.js.nft.json +1 -0
  150. package/web/.next/server/app/database/page_client-reference-manifest.js +2 -0
  151. package/web/.next/server/app/settings/page/build-manifest.json +4 -4
  152. package/web/.next/server/app/settings/page/server-reference-manifest.json +6 -6
  153. package/web/.next/server/app/settings/page.js +1 -1
  154. package/web/.next/server/app/settings/page.js.nft.json +1 -1
  155. package/web/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  156. package/web/.next/server/app/skills/page/build-manifest.json +4 -4
  157. package/web/.next/server/app/skills/page/server-reference-manifest.json +6 -6
  158. package/web/.next/server/app/skills/page.js +1 -1
  159. package/web/.next/server/app/skills/page.js.nft.json +1 -1
  160. package/web/.next/server/app/skills/page_client-reference-manifest.js +1 -1
  161. package/web/.next/server/app/tools/page/build-manifest.json +4 -4
  162. package/web/.next/server/app/tools/page/server-reference-manifest.json +6 -6
  163. package/web/.next/server/app/tools/page.js +1 -1
  164. package/web/.next/server/app/tools/page.js.nft.json +1 -1
  165. package/web/.next/server/app/tools/page_client-reference-manifest.js +1 -1
  166. package/web/.next/server/app/version/page/build-manifest.json +4 -4
  167. package/web/.next/server/app/version/page/server-reference-manifest.json +1 -1
  168. package/web/.next/server/app/version/page.js +2 -2
  169. package/web/.next/server/app/version/page.js.nft.json +1 -1
  170. package/web/.next/server/app/version/page_client-reference-manifest.js +1 -1
  171. package/web/.next/server/app-paths-manifest.json +1 -0
  172. package/web/.next/server/chunks/[root-of-the-server]__0866d2b5._.js.map +1 -1
  173. package/web/.next/server/chunks/[root-of-the-server]__42b7ab55._.js.map +1 -1
  174. package/web/.next/server/chunks/{[root-of-the-server]__53013576._.js → [root-of-the-server]__7d63f9a4._.js} +2 -2
  175. package/web/.next/server/chunks/[root-of-the-server]__9191749c._.js.map +1 -1
  176. package/web/.next/server/chunks/[root-of-the-server]__9a136c79._.js.map +1 -1
  177. package/web/.next/server/chunks/{[root-of-the-server]__92078db6._.js → [root-of-the-server]__a1c7c02a._.js} +2 -2
  178. package/web/.next/server/chunks/[root-of-the-server]__a402b567._.js +1 -1
  179. package/web/.next/server/chunks/[root-of-the-server]__a402b567._.js.map +1 -1
  180. package/web/.next/server/chunks/[root-of-the-server]__a5879003._.js.map +1 -1
  181. package/web/.next/server/chunks/[root-of-the-server]__b2f9a412._.js.map +1 -1
  182. package/web/.next/server/chunks/[root-of-the-server]__b4102cc7._.js.map +1 -1
  183. package/web/.next/server/chunks/[root-of-the-server]__cd67a84c._.js.map +1 -1
  184. package/web/.next/server/chunks/[root-of-the-server]__d2c18946._.js.map +1 -1
  185. package/web/.next/server/chunks/[root-of-the-server]__d8037e14._.js.map +1 -1
  186. package/web/.next/server/chunks/[root-of-the-server]__d9d410a8._.js.map +1 -1
  187. package/web/.next/server/chunks/[root-of-the-server]__e247a485._.js.map +1 -1
  188. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js +1 -1
  189. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js.map +1 -1
  190. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_f30d0343.js +1 -1
  191. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_f30d0343.js.map +1 -1
  192. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_9f1775bb.js +1 -1
  193. package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_9f1775bb.js.map +1 -1
  194. package/web/.next/server/chunks/ssr/{[root-of-the-server]__06fef644._.js → [root-of-the-server]__07a39ff2._.js} +2 -2
  195. package/web/.next/server/chunks/ssr/[root-of-the-server]__07a39ff2._.js.map +1 -0
  196. package/web/.next/server/chunks/ssr/[root-of-the-server]__11033878._.js +4 -0
  197. package/web/.next/server/chunks/ssr/{[root-of-the-server]__6b17a22d._.js.map → [root-of-the-server]__11033878._.js.map} +1 -1
  198. package/web/.next/server/chunks/ssr/[root-of-the-server]__1a0bbce4._.js +3 -0
  199. package/web/.next/server/chunks/ssr/[root-of-the-server]__1a0bbce4._.js.map +1 -0
  200. package/web/.next/server/chunks/ssr/[root-of-the-server]__2698e9f4._.js +1 -1
  201. package/web/.next/server/chunks/ssr/[root-of-the-server]__2698e9f4._.js.map +1 -1
  202. package/web/.next/server/chunks/ssr/[root-of-the-server]__33cee851._.js +3 -0
  203. package/web/.next/server/chunks/ssr/[root-of-the-server]__33cee851._.js.map +1 -0
  204. package/web/.next/server/chunks/ssr/[root-of-the-server]__4bb4b155._.js +4 -0
  205. package/web/.next/server/chunks/ssr/[root-of-the-server]__4bb4b155._.js.map +1 -0
  206. package/web/.next/server/chunks/ssr/[root-of-the-server]__590dfc34._.js +4 -0
  207. package/web/.next/server/chunks/ssr/[root-of-the-server]__590dfc34._.js.map +1 -0
  208. package/web/.next/server/chunks/ssr/[root-of-the-server]__6bb00d90._.js +2 -2
  209. package/web/.next/server/chunks/ssr/[root-of-the-server]__6bb00d90._.js.map +1 -1
  210. package/web/.next/server/chunks/ssr/[root-of-the-server]__743e777a._.js +4 -0
  211. package/web/.next/server/chunks/ssr/[root-of-the-server]__743e777a._.js.map +1 -0
  212. package/web/.next/server/chunks/ssr/[root-of-the-server]__7a939e4e._.js +4 -0
  213. package/web/.next/server/chunks/ssr/{[root-of-the-server]__a022445f._.js.map → [root-of-the-server]__7a939e4e._.js.map} +1 -1
  214. package/web/.next/server/chunks/ssr/[root-of-the-server]__8e3bf5d7._.js +1 -1
  215. package/web/.next/server/chunks/ssr/[root-of-the-server]__8e3bf5d7._.js.map +1 -1
  216. package/web/.next/server/chunks/ssr/[root-of-the-server]__930c8634._.js +3 -0
  217. package/web/.next/server/chunks/ssr/[root-of-the-server]__930c8634._.js.map +1 -0
  218. package/web/.next/server/chunks/ssr/[root-of-the-server]__b724df9e._.js.map +1 -1
  219. package/web/.next/server/chunks/ssr/[root-of-the-server]__c07f9f79._.js +1 -1
  220. package/web/.next/server/chunks/ssr/[root-of-the-server]__c07f9f79._.js.map +1 -1
  221. package/web/.next/server/chunks/ssr/[root-of-the-server]__c605a375._.js +1 -1
  222. package/web/.next/server/chunks/ssr/[root-of-the-server]__c605a375._.js.map +1 -1
  223. package/web/.next/server/chunks/ssr/[root-of-the-server]__fdc75809._.js +4 -0
  224. package/web/.next/server/chunks/ssr/{[root-of-the-server]__804c006d._.js.map → [root-of-the-server]__fdc75809._.js.map} +1 -1
  225. package/web/.next/server/chunks/ssr/_05ca281a._.js +3 -0
  226. package/web/.next/server/chunks/ssr/_05ca281a._.js.map +1 -0
  227. package/web/.next/server/chunks/ssr/_061c1da2._.js +3 -0
  228. package/web/.next/server/chunks/ssr/_061c1da2._.js.map +1 -0
  229. package/web/.next/server/chunks/ssr/_0e6034fc._.js +3 -0
  230. package/web/.next/server/chunks/ssr/_0e6034fc._.js.map +1 -0
  231. package/web/.next/server/chunks/ssr/_150e66ba._.js +3 -0
  232. package/web/.next/server/chunks/ssr/_150e66ba._.js.map +1 -0
  233. package/web/.next/server/chunks/ssr/_2f6f48b8._.js +1 -1
  234. package/web/.next/server/chunks/ssr/_2f6f48b8._.js.map +1 -1
  235. package/web/.next/server/chunks/ssr/_34ba40e0._.js +3 -0
  236. package/web/.next/server/chunks/ssr/_34ba40e0._.js.map +1 -0
  237. package/web/.next/server/chunks/ssr/_5b809cd2._.js +4 -0
  238. package/web/.next/server/chunks/ssr/_5b809cd2._.js.map +1 -0
  239. package/web/.next/server/chunks/ssr/{_9f1ab4ee._.js → _5d618f84._.js} +2 -2
  240. package/web/.next/server/chunks/ssr/{_9f1ab4ee._.js.map → _5d618f84._.js.map} +1 -1
  241. package/web/.next/server/chunks/ssr/_6552e0aa._.js +3 -0
  242. package/web/.next/server/chunks/ssr/_6552e0aa._.js.map +1 -0
  243. package/web/.next/server/chunks/ssr/_81f88d15._.js +7 -0
  244. package/web/.next/server/chunks/ssr/_81f88d15._.js.map +1 -0
  245. package/web/.next/server/chunks/ssr/_93d2a00c._.js +3 -0
  246. package/web/.next/server/chunks/ssr/_93d2a00c._.js.map +1 -0
  247. package/web/.next/server/chunks/ssr/_a37f5f18._.js +1 -1
  248. package/web/.next/server/chunks/ssr/_ad5819d0._.js +3 -0
  249. package/web/.next/server/chunks/ssr/_ad5819d0._.js.map +1 -0
  250. package/web/.next/server/chunks/ssr/{_f1a649e3._.js → _d506bca5._.js} +2 -2
  251. package/web/.next/server/chunks/ssr/{_f1a649e3._.js.map → _d506bca5._.js.map} +1 -1
  252. package/web/.next/server/chunks/ssr/_e1854141._.js +3 -0
  253. package/web/.next/server/chunks/ssr/_e1854141._.js.map +1 -0
  254. package/web/.next/server/chunks/ssr/_f9959908._.js +3 -0
  255. package/web/.next/server/chunks/ssr/_f9959908._.js.map +1 -0
  256. package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_database_database-page-client_tsx_b853607a._.js +3 -0
  257. package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_database_database-page-client_tsx_b853607a._.js.map +1 -0
  258. package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js +1 -1
  259. package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js.map +1 -1
  260. package/web/.next/server/chunks/ssr/node_modules__pnpm_026172d1._.js +3 -0
  261. package/web/.next/server/chunks/ssr/node_modules__pnpm_026172d1._.js.map +1 -0
  262. package/web/.next/server/chunks/ssr/node_modules__pnpm_8b0ea744._.js +3 -0
  263. package/web/.next/server/chunks/ssr/node_modules__pnpm_8b0ea744._.js.map +1 -0
  264. package/web/.next/server/chunks/ssr/src_presentation_web_5f039db1._.js +2 -2
  265. package/web/.next/server/chunks/ssr/src_presentation_web_5f039db1._.js.map +1 -1
  266. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_2a52b697.js +1 -1
  267. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_2a52b697.js.map +1 -1
  268. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_1fa8042e.js +1 -1
  269. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_1fa8042e.js.map +1 -1
  270. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_24684200.js +1 -1
  271. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_24684200.js.map +1 -1
  272. package/web/.next/server/chunks/ssr/src_presentation_web_c4337169._.js +2 -2
  273. package/web/.next/server/chunks/ssr/src_presentation_web_c4337169._.js.map +1 -1
  274. package/web/.next/server/chunks/ssr/src_presentation_web_components_bf50c527._.js +1 -1
  275. package/web/.next/server/chunks/ssr/src_presentation_web_components_de814675._.js +1 -1
  276. package/web/.next/server/chunks/ssr/src_presentation_web_components_e599bb8c._.js +1 -1
  277. package/web/.next/server/chunks/ssr/src_presentation_web_components_e599bb8c._.js.map +1 -1
  278. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js +1 -1
  279. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js.map +1 -1
  280. package/web/.next/server/chunks/ssr/src_presentation_web_components_ui_scroll-area_tsx_53ae5be7._.js +3 -0
  281. package/web/.next/server/chunks/ssr/src_presentation_web_components_ui_scroll-area_tsx_53ae5be7._.js.map +1 -0
  282. package/web/.next/server/middleware-build-manifest.js +4 -4
  283. package/web/.next/server/pages/500.html +2 -2
  284. package/web/.next/server/server-reference-manifest.js +1 -1
  285. package/web/.next/server/server-reference-manifest.json +101 -34
  286. package/web/.next/static/chunks/0b8f2e223e1b82f4.js +1 -0
  287. package/web/.next/static/chunks/0e57fc72bf0bc5ba.js +1 -0
  288. package/web/.next/static/chunks/22a1d0eb174f3da9.js +1 -0
  289. package/web/.next/static/chunks/401118947e7159e0.js +1 -0
  290. package/web/.next/static/chunks/40b6bcf1a2de4a0f.js +1 -0
  291. package/web/.next/static/chunks/471c323a18da4918.js +1 -0
  292. package/web/.next/static/chunks/495b4bee62b00caa.js +1 -0
  293. package/web/.next/static/chunks/5aab343372a98721.js +1 -0
  294. package/web/.next/static/chunks/70e04b1108d151c3.js +11 -0
  295. package/web/.next/static/chunks/{9c2f294bf748b4ba.js → 899529af3e08bf94.js} +2 -2
  296. package/web/.next/static/chunks/{9076710a2df38d14.js → 96fc208419afac9e.js} +1 -1
  297. package/web/.next/static/chunks/b3914c0aae76742b.css +1 -0
  298. package/web/.next/static/chunks/b4160eaf4deda4e7.js +1 -0
  299. package/web/.next/static/chunks/b65702b701417ae2.js +1 -0
  300. package/web/.next/static/chunks/c2c0d4e71c36199f.js +1 -0
  301. package/web/.next/static/chunks/c7e793951b20a67f.js +1 -0
  302. package/web/.next/static/chunks/cb440c7f33e135f4.js +1 -0
  303. package/web/.next/static/chunks/{0dfc3b1cff4bdcc2.js → cb46d75dfac954a5.js} +2 -2
  304. package/web/.next/static/chunks/dd702ceaee4a5c0d.js +1 -0
  305. package/web/.next/static/chunks/e6b8baa05827f641.js +1 -0
  306. package/web/.next/static/chunks/{turbopack-426d9bc2450816ba.js → turbopack-b1685b5f87ad1d60.js} +1 -1
  307. package/web/.next/server/chunks/ssr/7f428_lucide-react_dist_esm_icons_d0119342._.js +0 -3
  308. package/web/.next/server/chunks/ssr/7f428_lucide-react_dist_esm_icons_d0119342._.js.map +0 -1
  309. package/web/.next/server/chunks/ssr/[root-of-the-server]__06fef644._.js.map +0 -1
  310. package/web/.next/server/chunks/ssr/[root-of-the-server]__545792ab._.js +0 -3
  311. package/web/.next/server/chunks/ssr/[root-of-the-server]__545792ab._.js.map +0 -1
  312. package/web/.next/server/chunks/ssr/[root-of-the-server]__6b17a22d._.js +0 -4
  313. package/web/.next/server/chunks/ssr/[root-of-the-server]__804c006d._.js +0 -4
  314. package/web/.next/server/chunks/ssr/[root-of-the-server]__8c553503._.js +0 -4
  315. package/web/.next/server/chunks/ssr/[root-of-the-server]__8c553503._.js.map +0 -1
  316. package/web/.next/server/chunks/ssr/[root-of-the-server]__9f155c0e._.js +0 -3
  317. package/web/.next/server/chunks/ssr/[root-of-the-server]__9f155c0e._.js.map +0 -1
  318. package/web/.next/server/chunks/ssr/[root-of-the-server]__a022445f._.js +0 -4
  319. package/web/.next/server/chunks/ssr/[root-of-the-server]__a7de2711._.js +0 -4
  320. package/web/.next/server/chunks/ssr/[root-of-the-server]__a7de2711._.js.map +0 -1
  321. package/web/.next/server/chunks/ssr/_0dc2cfd3._.js +0 -3
  322. package/web/.next/server/chunks/ssr/_0dc2cfd3._.js.map +0 -1
  323. package/web/.next/server/chunks/ssr/_0e506641._.js +0 -7
  324. package/web/.next/server/chunks/ssr/_0e506641._.js.map +0 -1
  325. package/web/.next/server/chunks/ssr/_135edb9c._.js +0 -3
  326. package/web/.next/server/chunks/ssr/_135edb9c._.js.map +0 -1
  327. package/web/.next/server/chunks/ssr/_1bb131c4._.js +0 -3
  328. package/web/.next/server/chunks/ssr/_1bb131c4._.js.map +0 -1
  329. package/web/.next/server/chunks/ssr/_6d26a08f._.js +0 -3
  330. package/web/.next/server/chunks/ssr/_6d26a08f._.js.map +0 -1
  331. package/web/.next/server/chunks/ssr/_6e403a1e._.js +0 -3
  332. package/web/.next/server/chunks/ssr/_6e403a1e._.js.map +0 -1
  333. package/web/.next/server/chunks/ssr/_75f4ccb3._.js +0 -3
  334. package/web/.next/server/chunks/ssr/_75f4ccb3._.js.map +0 -1
  335. package/web/.next/server/chunks/ssr/_b5fc318a._.js +0 -3
  336. package/web/.next/server/chunks/ssr/_b5fc318a._.js.map +0 -1
  337. package/web/.next/server/chunks/ssr/_cc77a143._.js +0 -3
  338. package/web/.next/server/chunks/ssr/_cc77a143._.js.map +0 -1
  339. package/web/.next/server/chunks/ssr/_fffd4212._.js +0 -3
  340. package/web/.next/server/chunks/ssr/_fffd4212._.js.map +0 -1
  341. package/web/.next/server/chunks/ssr/node_modules__pnpm_b59e4b16._.js +0 -3
  342. package/web/.next/server/chunks/ssr/node_modules__pnpm_b59e4b16._.js.map +0 -1
  343. package/web/.next/static/chunks/0d2af96e64960ef5.css +0 -1
  344. package/web/.next/static/chunks/1c206da59596f056.js +0 -1
  345. package/web/.next/static/chunks/2429cf8757ddad34.js +0 -1
  346. package/web/.next/static/chunks/303a1217006489b9.js +0 -1
  347. package/web/.next/static/chunks/39dc15636654a1e3.js +0 -1
  348. package/web/.next/static/chunks/3e9320301a0cac8b.js +0 -1
  349. package/web/.next/static/chunks/447e720f6cf54767.js +0 -1
  350. package/web/.next/static/chunks/4562ee849ea13c3a.js +0 -1
  351. package/web/.next/static/chunks/53e9eda219a7f61c.js +0 -1
  352. package/web/.next/static/chunks/7bc5806d9f82cc79.js +0 -11
  353. package/web/.next/static/chunks/845d8e58a91014e6.js +0 -1
  354. package/web/.next/static/chunks/84a181ff3270fd9f.js +0 -1
  355. package/web/.next/static/chunks/96eeeb28e06de78c.js +0 -1
  356. package/web/.next/static/chunks/e2ef95d904c360f3.js +0 -1
  357. package/web/.next/static/chunks/ed3a602003bcb31b.js +0 -1
  358. /package/web/.next/server/chunks/{[root-of-the-server]__53013576._.js.map → [root-of-the-server]__7d63f9a4._.js.map} +0 -0
  359. /package/web/.next/server/chunks/{[root-of-the-server]__92078db6._.js.map → [root-of-the-server]__a1c7c02a._.js.map} +0 -0
  360. /package/web/.next/static/{t8J3jMT2l7HfCuusAPC-b → 4xrMEp5YYiIKE3f9RD6L-}/_buildManifest.js +0 -0
  361. /package/web/.next/static/{t8J3jMT2l7HfCuusAPC-b → 4xrMEp5YYiIKE3f9RD6L-}/_clientMiddlewareManifest.json +0 -0
  362. /package/web/.next/static/{t8J3jMT2l7HfCuusAPC-b → 4xrMEp5YYiIKE3f9RD6L-}/_ssgManifest.js +0 -0
@@ -0,0 +1,53 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { useState } from 'react';
4
+ import { Button } from '../../ui/button.js';
5
+ import { Label } from '../../ui/label.js';
6
+ import { Textarea } from '../../ui/textarea.js';
7
+ import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow, } from '../../ui/table.js';
8
+ import { Play, Loader2, AlertCircle } from 'lucide-react';
9
+ import { isWriteQuery } from '../../../lib/sql-validation.js';
10
+ import { CellValueDialog } from './cell-value-dialog.js';
11
+ const MAX_CELL_LENGTH = 100;
12
+ function formatCellDisplay(value) {
13
+ if (value === null || value === undefined) {
14
+ return 'NULL';
15
+ }
16
+ return String(value);
17
+ }
18
+ export function QueryRunner({ onExecute }) {
19
+ const [sql, setSql] = useState('');
20
+ const [result, setResult] = useState(null);
21
+ const [clientError, setClientError] = useState(null);
22
+ const [loading, setLoading] = useState(false);
23
+ const [dialogState, setDialogState] = useState({ open: false, columnName: '', value: '' });
24
+ const handleExecute = async () => {
25
+ setClientError(null);
26
+ setResult(null);
27
+ const trimmed = sql.trim();
28
+ if (!trimmed) {
29
+ setClientError('Query cannot be empty');
30
+ return;
31
+ }
32
+ if (isWriteQuery(trimmed)) {
33
+ setClientError('Write operations are not allowed. Only SELECT and PRAGMA queries are permitted.');
34
+ return;
35
+ }
36
+ setLoading(true);
37
+ try {
38
+ const res = await onExecute(trimmed);
39
+ setResult(res);
40
+ }
41
+ finally {
42
+ setLoading(false);
43
+ }
44
+ };
45
+ const error = clientError ?? result?.error;
46
+ return (_jsxs("div", { className: "flex flex-col gap-4", "data-testid": "query-runner", children: [_jsxs("div", { className: "flex flex-col gap-2", children: [_jsx(Label, { htmlFor: "sql-query", className: "text-xs font-medium", children: "SQL Query" }), _jsx(Textarea, { id: "sql-query", placeholder: "SELECT * FROM features LIMIT 10", value: sql, onChange: (e) => setSql(e.target.value), className: "bg-muted/30 font-mono text-xs", rows: 4, "data-testid": "query-runner-input" }), _jsx("div", { className: "flex justify-end", children: _jsxs(Button, { onClick: handleExecute, disabled: loading || sql.trim().length === 0, size: "sm", className: "gap-1.5", "data-testid": "query-runner-execute", children: [loading ? (_jsx(Loader2, { className: "h-3.5 w-3.5 animate-spin" })) : (_jsx(Play, { className: "h-3.5 w-3.5" })), loading ? 'Executing...' : 'Execute'] }) })] }), error ? (_jsxs("div", { className: "bg-destructive/10 text-destructive flex items-start gap-2 rounded-md border border-red-200 p-3 text-sm dark:border-red-900", role: "alert", "aria-live": "polite", "data-testid": "query-runner-error", children: [_jsx(AlertCircle, { className: "mt-0.5 h-4 w-4 shrink-0" }), _jsx("span", { className: "text-xs", children: error })] })) : null, result?.columns && result.rows ? (_jsxs("div", { "data-testid": "query-runner-results", children: [_jsxs("div", { className: "text-muted-foreground mb-2 text-xs", children: [result.rows.length, " row", result.rows.length !== 1 ? 's' : '', " returned"] }), _jsx("div", { className: "border-border overflow-auto rounded-md border", children: _jsxs(Table, { children: [_jsx(TableHeader, { children: _jsx(TableRow, { className: "bg-muted/50 hover:bg-muted/50", children: result.columns.map((col) => (_jsx(TableHead, { className: "font-mono text-xs font-medium whitespace-nowrap", children: col }, col))) }) }), _jsx(TableBody, { children: result.rows.map((row, rowIdx) => (
47
+ // eslint-disable-next-line react/no-array-index-key
48
+ _jsx(TableRow, { children: result.columns.map((col) => {
49
+ const display = formatCellDisplay(row[col]);
50
+ const truncated = display.length > MAX_CELL_LENGTH;
51
+ return (_jsx(TableCell, { className: "max-w-[300px] py-1.5 font-mono text-xs", children: truncated ? (_jsxs("button", { className: "text-primary cursor-pointer text-left underline-offset-2 hover:underline", onClick: () => setDialogState({ open: true, columnName: col, value: display }), title: "Click to view full value", children: [display.slice(0, MAX_CELL_LENGTH), "..."] })) : (_jsx("span", { className: display === 'NULL' ? 'text-muted-foreground italic' : '', children: display })) }, col));
52
+ }) }, rowIdx))) })] }) })] })) : null, _jsx(CellValueDialog, { open: dialogState.open, onOpenChange: (open) => setDialogState((s) => ({ ...s, open })), columnName: dialogState.columnName, value: dialogState.value })] }));
53
+ }
@@ -0,0 +1,9 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { QueryRunner } from './query-runner.js';
3
+ declare const meta: Meta<typeof QueryRunner>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const Interactive: Story;
8
+ export declare const WithError: Story;
9
+ //# sourceMappingURL=query-runner.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query-runner.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/database/query-runner.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CAUlC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAiDnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,eAAO,MAAM,WAAW,EAAE,KAEzB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAEvB,CAAC"}
@@ -0,0 +1,55 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { fn } from '@storybook/test';
3
+ import { QueryRunner } from './query-runner.js';
4
+ const meta = {
5
+ title: 'Features/Database/QueryRunner',
6
+ component: QueryRunner,
7
+ tags: ['autodocs'],
8
+ parameters: {
9
+ layout: 'padded',
10
+ },
11
+ args: {
12
+ onExecute: fn(),
13
+ },
14
+ };
15
+ export default meta;
16
+ /* ---------------------------------------------------------------------------
17
+ * Interactive wrapper for stories that need state
18
+ * ------------------------------------------------------------------------- */
19
+ function QueryRunnerWithMockResults() {
20
+ return (_jsx(QueryRunner, { onExecute: async (sql) => {
21
+ // Simulate server delay
22
+ await new Promise((r) => setTimeout(r, 500));
23
+ if (sql.toLowerCase().includes('error')) {
24
+ return { error: 'near "error": syntax error' };
25
+ }
26
+ return {
27
+ columns: ['id', 'name', 'status', 'created_at'],
28
+ rows: [
29
+ {
30
+ id: 1,
31
+ name: 'database-management-ui',
32
+ status: 'in_progress',
33
+ created_at: '2026-03-10',
34
+ },
35
+ { id: 2, name: 'agent-improvements', status: 'completed', created_at: '2026-03-09' },
36
+ { id: 3, name: 'cli-refactor', status: 'pending', created_at: '2026-03-08' },
37
+ ],
38
+ };
39
+ } }));
40
+ }
41
+ function QueryRunnerWithError() {
42
+ return (_jsx(QueryRunner, { onExecute: async () => {
43
+ return { error: 'no such table: nonexistent_table' };
44
+ } }));
45
+ }
46
+ /* ---------------------------------------------------------------------------
47
+ * Stories
48
+ * ------------------------------------------------------------------------- */
49
+ export const Default = {};
50
+ export const Interactive = {
51
+ render: () => _jsx(QueryRunnerWithMockResults, {}),
52
+ };
53
+ export const WithError = {
54
+ render: () => _jsx(QueryRunnerWithError, {}),
55
+ };
@@ -0,0 +1,11 @@
1
+ export interface RowBrowserProps {
2
+ columns: string[];
3
+ rows: Record<string, unknown>[];
4
+ totalRows: number;
5
+ page: number;
6
+ pageSize: number;
7
+ onPageChange: (page: number) => void;
8
+ loading?: boolean;
9
+ }
10
+ export declare function RowBrowser({ columns, rows, totalRows, page, pageSize, onPageChange, loading, }: RowBrowserProps): import("react/jsx-runtime").JSX.Element;
11
+ //# sourceMappingURL=row-browser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"row-browser.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/database/row-browser.tsx"],"names":[],"mappings":"AAiBA,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAoBD,wBAAgB,UAAU,CAAC,EACzB,OAAO,EACP,IAAI,EACJ,SAAS,EACT,IAAI,EACJ,QAAQ,EACR,YAAY,EACZ,OAAO,GACR,EAAE,eAAe,2CAuHjB"}
@@ -0,0 +1,42 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { useState } from 'react';
4
+ import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow, } from '../../ui/table.js';
5
+ import { Button } from '../../ui/button.js';
6
+ import { ChevronLeft, ChevronRight, Loader2 } from 'lucide-react';
7
+ import { CellValueDialog } from './cell-value-dialog.js';
8
+ const MAX_CELL_LENGTH = 100;
9
+ function formatCellDisplay(value) {
10
+ if (value === null || value === undefined) {
11
+ return 'NULL';
12
+ }
13
+ return String(value);
14
+ }
15
+ function isTruncated(value) {
16
+ return value.length > MAX_CELL_LENGTH;
17
+ }
18
+ function truncate(value) {
19
+ if (isTruncated(value)) {
20
+ return `${value.slice(0, MAX_CELL_LENGTH)}...`;
21
+ }
22
+ return value;
23
+ }
24
+ export function RowBrowser({ columns, rows, totalRows, page, pageSize, onPageChange, loading, }) {
25
+ const [dialogState, setDialogState] = useState({ open: false, columnName: '', value: '' });
26
+ const totalPages = Math.max(1, Math.ceil(totalRows / pageSize));
27
+ const isFirstPage = page === 0;
28
+ const isLastPage = page >= totalPages - 1;
29
+ if (loading) {
30
+ return (_jsxs("div", { className: "text-muted-foreground flex items-center justify-center gap-2 p-12 text-sm", "data-testid": "row-browser-loading", children: [_jsx(Loader2, { className: "h-4 w-4 animate-spin" }), "Loading rows..."] }));
31
+ }
32
+ if (rows.length === 0 && totalRows === 0) {
33
+ return (_jsx("div", { className: "text-muted-foreground flex items-center justify-center p-12 text-sm", "data-testid": "row-browser-empty", children: "This table has no rows" }));
34
+ }
35
+ return (_jsxs("div", { className: "flex flex-col gap-3", "data-testid": "row-browser", children: [_jsxs("div", { className: "flex items-center justify-between", "data-testid": "row-browser-pagination", children: [_jsxs("span", { className: "text-muted-foreground text-xs tabular-nums", children: [totalRows.toLocaleString(), " row", totalRows !== 1 ? 's' : '', " \u00B7 Page ", page + 1, " of", ' ', totalPages] }), _jsxs("div", { className: "flex items-center gap-1", children: [_jsx(Button, { variant: "ghost", size: "icon", className: "h-7 w-7", onClick: () => onPageChange(page - 1), disabled: isFirstPage, "data-testid": "row-browser-prev", children: _jsx(ChevronLeft, { className: "h-4 w-4" }) }), _jsx(Button, { variant: "ghost", size: "icon", className: "h-7 w-7", onClick: () => onPageChange(page + 1), disabled: isLastPage, "data-testid": "row-browser-next", children: _jsx(ChevronRight, { className: "h-4 w-4" }) })] })] }), _jsx("div", { className: "border-border overflow-auto rounded-md border", children: _jsxs(Table, { children: [_jsx(TableHeader, { children: _jsx(TableRow, { className: "bg-muted/50 hover:bg-muted/50", children: columns.map((col) => (_jsx(TableHead, { className: "font-mono text-xs font-medium whitespace-nowrap", children: col }, col))) }) }), _jsx(TableBody, { children: rows.map((row, rowIdx) => (
36
+ // eslint-disable-next-line react/no-array-index-key
37
+ _jsx(TableRow, { children: columns.map((col) => {
38
+ const display = formatCellDisplay(row[col]);
39
+ const truncated = isTruncated(display);
40
+ return (_jsx(TableCell, { className: "max-w-[300px] py-1.5 font-mono text-xs", children: truncated ? (_jsx("button", { className: "text-primary cursor-pointer text-left underline-offset-2 hover:underline", onClick: () => setDialogState({ open: true, columnName: col, value: display }), title: "Click to view full value", children: truncate(display) })) : (_jsx("span", { className: display === 'NULL' ? 'text-muted-foreground italic' : '', children: display })) }, col));
41
+ }) }, rowIdx))) })] }) }), _jsx(CellValueDialog, { open: dialogState.open, onOpenChange: (open) => setDialogState((s) => ({ ...s, open })), columnName: dialogState.columnName, value: dialogState.value })] }));
42
+ }
@@ -0,0 +1,14 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { RowBrowser } from './row-browser.js';
3
+ declare const meta: Meta<typeof RowBrowser>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const PopulatedTable: Story;
7
+ export declare const MiddlePage: Story;
8
+ export declare const LastPage: Story;
9
+ export declare const EmptyTable: Story;
10
+ export declare const Loading: Story;
11
+ export declare const TruncatedValues: Story;
12
+ export declare const WithNullValues: Story;
13
+ export declare const BlobValues: Story;
14
+ //# sourceMappingURL=row-browser.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"row-browser.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/database/row-browser.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,UAAU,CAYjC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAgCnC,eAAO,MAAM,cAAc,EAAE,KAQ5B,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAQxB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAQtB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAQxB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KASrB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAQ7B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAY5B,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAWxB,CAAC"}
@@ -0,0 +1,120 @@
1
+ import { fn } from '@storybook/test';
2
+ import { RowBrowser } from './row-browser.js';
3
+ const meta = {
4
+ title: 'Features/Database/RowBrowser',
5
+ component: RowBrowser,
6
+ tags: ['autodocs'],
7
+ parameters: {
8
+ layout: 'padded',
9
+ },
10
+ args: {
11
+ onPageChange: fn(),
12
+ page: 0,
13
+ pageSize: 50,
14
+ },
15
+ };
16
+ export default meta;
17
+ /* ---------------------------------------------------------------------------
18
+ * Data fixtures
19
+ * ------------------------------------------------------------------------- */
20
+ const sampleColumns = ['id', 'name', 'status', 'created_at'];
21
+ const sampleRows = [
22
+ {
23
+ id: 1,
24
+ name: 'database-management-ui',
25
+ status: 'in_progress',
26
+ created_at: '2026-03-10T14:30:00Z',
27
+ },
28
+ { id: 2, name: 'agent-improvements', status: 'completed', created_at: '2026-03-09T10:15:00Z' },
29
+ { id: 3, name: 'cli-refactor', status: 'pending', created_at: '2026-03-08T08:00:00Z' },
30
+ { id: 4, name: 'settings-page', status: 'completed', created_at: '2026-03-07T16:45:00Z' },
31
+ { id: 5, name: 'tui-redesign', status: 'in_progress', created_at: '2026-03-06T12:00:00Z' },
32
+ ];
33
+ const longTextRow = {
34
+ id: 1,
35
+ description: 'This is a very long description that exceeds one hundred characters in length and should be truncated in the table cell display with an ellipsis and a clickable link to view the full value in a dialog modal window',
36
+ metadata: JSON.stringify({ key: 'value', nested: { deep: true, items: [1, 2, 3] } }),
37
+ };
38
+ /* ---------------------------------------------------------------------------
39
+ * Stories
40
+ * ------------------------------------------------------------------------- */
41
+ export const PopulatedTable = {
42
+ args: {
43
+ columns: sampleColumns,
44
+ rows: sampleRows,
45
+ totalRows: 230,
46
+ page: 0,
47
+ pageSize: 50,
48
+ },
49
+ };
50
+ export const MiddlePage = {
51
+ args: {
52
+ columns: sampleColumns,
53
+ rows: sampleRows,
54
+ totalRows: 230,
55
+ page: 2,
56
+ pageSize: 50,
57
+ },
58
+ };
59
+ export const LastPage = {
60
+ args: {
61
+ columns: sampleColumns,
62
+ rows: sampleRows.slice(0, 2),
63
+ totalRows: 230,
64
+ page: 4,
65
+ pageSize: 50,
66
+ },
67
+ };
68
+ export const EmptyTable = {
69
+ args: {
70
+ columns: sampleColumns,
71
+ rows: [],
72
+ totalRows: 0,
73
+ page: 0,
74
+ pageSize: 50,
75
+ },
76
+ };
77
+ export const Loading = {
78
+ args: {
79
+ columns: [],
80
+ rows: [],
81
+ totalRows: 0,
82
+ page: 0,
83
+ pageSize: 50,
84
+ loading: true,
85
+ },
86
+ };
87
+ export const TruncatedValues = {
88
+ args: {
89
+ columns: ['id', 'description', 'metadata'],
90
+ rows: [longTextRow],
91
+ totalRows: 1,
92
+ page: 0,
93
+ pageSize: 50,
94
+ },
95
+ };
96
+ export const WithNullValues = {
97
+ args: {
98
+ columns: ['id', 'name', 'email', 'notes'],
99
+ rows: [
100
+ { id: 1, name: 'Alice', email: 'alice@example.com', notes: null },
101
+ { id: 2, name: 'Bob', email: null, notes: 'Some notes here' },
102
+ { id: 3, name: null, email: null, notes: null },
103
+ ],
104
+ totalRows: 3,
105
+ page: 0,
106
+ pageSize: 50,
107
+ },
108
+ };
109
+ export const BlobValues = {
110
+ args: {
111
+ columns: ['id', 'name', 'data'],
112
+ rows: [
113
+ { id: 1, name: 'image.png', data: '(2048 bytes)' },
114
+ { id: 2, name: 'document.pdf', data: '(15360 bytes)' },
115
+ ],
116
+ totalRows: 2,
117
+ page: 0,
118
+ pageSize: 50,
119
+ },
120
+ };
@@ -0,0 +1,7 @@
1
+ import type { ColumnInfo } from '../../../app/actions/get-table-schema.js';
2
+ export interface SchemaViewerProps {
3
+ columns: ColumnInfo[];
4
+ loading?: boolean;
5
+ }
6
+ export declare function SchemaViewer({ columns, loading }: SchemaViewerProps): import("react/jsx-runtime").JSX.Element;
7
+ //# sourceMappingURL=schema-viewer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema-viewer.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/database/schema-viewer.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAEjE,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,wBAAgB,YAAY,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,iBAAiB,2CA0EnE"}
@@ -0,0 +1,14 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow, } from '../../ui/table.js';
4
+ import { Badge } from '../../ui/badge.js';
5
+ import { Loader2 } from 'lucide-react';
6
+ export function SchemaViewer({ columns, loading }) {
7
+ if (loading) {
8
+ return (_jsxs("div", { className: "text-muted-foreground flex items-center justify-center gap-2 p-12 text-sm", "data-testid": "schema-viewer-loading", children: [_jsx(Loader2, { className: "h-4 w-4 animate-spin" }), "Loading schema..."] }));
9
+ }
10
+ if (columns.length === 0) {
11
+ return (_jsx("div", { className: "text-muted-foreground flex items-center justify-center p-12 text-sm", "data-testid": "schema-viewer-empty", children: "No column information available" }));
12
+ }
13
+ return (_jsx("div", { "data-testid": "schema-viewer", children: _jsx("div", { className: "border-border overflow-auto rounded-md border", children: _jsxs(Table, { children: [_jsx(TableHeader, { children: _jsxs(TableRow, { className: "bg-muted/50 hover:bg-muted/50", children: [_jsx(TableHead, { className: "font-mono text-xs font-medium", children: "Name" }), _jsx(TableHead, { className: "font-mono text-xs font-medium", children: "Type" }), _jsx(TableHead, { className: "font-mono text-xs font-medium", children: "Nullable" }), _jsx(TableHead, { className: "font-mono text-xs font-medium", children: "Default" }), _jsx(TableHead, { className: "font-mono text-xs font-medium", children: "Primary Key" })] }) }), _jsx(TableBody, { children: columns.map((col) => (_jsxs(TableRow, { children: [_jsx(TableCell, { className: "font-mono text-xs font-medium", children: col.name }), _jsx(TableCell, { children: _jsx(Badge, { variant: "outline", className: "font-mono text-[10px]", children: col.type || 'any' }) }), _jsx(TableCell, { className: "text-xs", children: col.notnull ? (_jsx("span", { className: "text-muted-foreground", children: "No" })) : (_jsx("span", { children: "Yes" })) }), _jsx(TableCell, { className: "text-muted-foreground font-mono text-xs", children: col.defaultValue ?? _jsx("span", { className: "italic", children: "None" }) }), _jsx(TableCell, { children: col.primaryKey ? (_jsx(Badge, { variant: "default", className: "text-[10px]", "data-testid": `pk-badge-${col.name}`, children: "PK" })) : null })] }, col.name))) })] }) }) }));
14
+ }
@@ -0,0 +1,11 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { SchemaViewer } from './schema-viewer.js';
3
+ declare const meta: Meta<typeof SchemaViewer>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const TypicalSchema: Story;
7
+ export declare const AllNullable: Story;
8
+ export declare const CompositePrimaryKey: Story;
9
+ export declare const Loading: Story;
10
+ export declare const Empty: Story;
11
+ //# sourceMappingURL=schema-viewer.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema-viewer.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/database/schema-viewer.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG/C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,YAAY,CAOnC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAsCnC,eAAO,MAAM,aAAa,EAAE,KAI3B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAIzB,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,KAIjC,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAInB,CAAC"}
@@ -0,0 +1,67 @@
1
+ import { SchemaViewer } from './schema-viewer.js';
2
+ const meta = {
3
+ title: 'Features/Database/SchemaViewer',
4
+ component: SchemaViewer,
5
+ tags: ['autodocs'],
6
+ parameters: {
7
+ layout: 'padded',
8
+ },
9
+ };
10
+ export default meta;
11
+ /* ---------------------------------------------------------------------------
12
+ * Data fixtures
13
+ * ------------------------------------------------------------------------- */
14
+ const typicalSchema = [
15
+ { name: 'id', type: 'TEXT', notnull: true, defaultValue: null, primaryKey: true },
16
+ { name: 'name', type: 'TEXT', notnull: true, defaultValue: null, primaryKey: false },
17
+ { name: 'description', type: 'TEXT', notnull: false, defaultValue: null, primaryKey: false },
18
+ { name: 'status', type: 'TEXT', notnull: true, defaultValue: "'pending'", primaryKey: false },
19
+ {
20
+ name: 'created_at',
21
+ type: 'TEXT',
22
+ notnull: true,
23
+ defaultValue: 'CURRENT_TIMESTAMP',
24
+ primaryKey: false,
25
+ },
26
+ { name: 'updated_at', type: 'TEXT', notnull: false, defaultValue: null, primaryKey: false },
27
+ ];
28
+ const allNullable = [
29
+ { name: 'key', type: 'TEXT', notnull: false, defaultValue: null, primaryKey: false },
30
+ { name: 'value', type: 'TEXT', notnull: false, defaultValue: null, primaryKey: false },
31
+ { name: 'metadata', type: 'BLOB', notnull: false, defaultValue: null, primaryKey: false },
32
+ ];
33
+ const compositePk = [
34
+ { name: 'feature_id', type: 'TEXT', notnull: true, defaultValue: null, primaryKey: true },
35
+ { name: 'repository_id', type: 'TEXT', notnull: true, defaultValue: null, primaryKey: true },
36
+ { name: 'status', type: 'TEXT', notnull: true, defaultValue: "'active'", primaryKey: false },
37
+ { name: 'created_at', type: 'TEXT', notnull: true, defaultValue: null, primaryKey: false },
38
+ ];
39
+ /* ---------------------------------------------------------------------------
40
+ * Stories
41
+ * ------------------------------------------------------------------------- */
42
+ export const TypicalSchema = {
43
+ args: {
44
+ columns: typicalSchema,
45
+ },
46
+ };
47
+ export const AllNullable = {
48
+ args: {
49
+ columns: allNullable,
50
+ },
51
+ };
52
+ export const CompositePrimaryKey = {
53
+ args: {
54
+ columns: compositePk,
55
+ },
56
+ };
57
+ export const Loading = {
58
+ args: {
59
+ columns: [],
60
+ loading: true,
61
+ },
62
+ };
63
+ export const Empty = {
64
+ args: {
65
+ columns: [],
66
+ },
67
+ };
@@ -0,0 +1,8 @@
1
+ import type { TableInfo } from '../../../app/actions/list-tables.js';
2
+ export interface TableListProps {
3
+ tables: TableInfo[];
4
+ selectedTable: string | null;
5
+ onSelectTable: (tableName: string) => void;
6
+ }
7
+ export declare function TableList({ tables, selectedTable, onSelectTable }: TableListProps): import("react/jsx-runtime").JSX.Element;
8
+ //# sourceMappingURL=table-list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table-list.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/database/table-list.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAI3D,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,aAAa,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5C;AAED,wBAAgB,SAAS,CAAC,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa,EAAE,EAAE,cAAc,2CA4DjF"}
@@ -0,0 +1,19 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { useState } from 'react';
4
+ import { Badge } from '../../ui/badge.js';
5
+ import { Input } from '../../ui/input.js';
6
+ import { ScrollArea } from '../../ui/scroll-area.js';
7
+ const SEARCH_THRESHOLD = 10;
8
+ export function TableList({ tables, selectedTable, onSelectTable }) {
9
+ const [search, setSearch] = useState('');
10
+ const filteredTables = search.length > 0
11
+ ? tables.filter((t) => t.name.toLowerCase().includes(search.toLowerCase()))
12
+ : tables;
13
+ if (tables.length === 0) {
14
+ return (_jsx("div", { className: "text-muted-foreground p-4 text-center text-sm", "data-testid": "table-list-empty", children: "No tables found" }));
15
+ }
16
+ return (_jsxs("div", { className: "flex h-full flex-col", "data-testid": "table-list", children: [tables.length > SEARCH_THRESHOLD && (_jsx("div", { className: "border-border border-b px-2 py-2", children: _jsx(Input, { placeholder: "Filter tables...", value: search, onChange: (e) => setSearch(e.target.value), className: "h-7 text-xs", "data-testid": "table-list-search" }) })), _jsx(ScrollArea, { className: "flex-1", children: _jsxs("div", { className: "flex flex-col gap-0.5 p-1.5", children: [filteredTables.map((table) => (_jsxs("button", { onClick: () => onSelectTable(table.name), className: `flex w-full items-center justify-between rounded-md px-2.5 py-1.5 text-left text-sm transition-colors ${selectedTable === table.name
17
+ ? 'bg-primary/10 text-primary font-medium'
18
+ : 'text-foreground hover:bg-muted/50'}`, "data-testid": `table-item-${table.name}`, children: [_jsx("span", { className: "truncate font-mono text-xs", children: table.name }), _jsx(Badge, { variant: selectedTable === table.name ? 'default' : 'secondary', className: "ml-2 h-5 shrink-0 px-1.5 text-[10px]", children: table.rowCount.toLocaleString() })] }, table.name))), filteredTables.length === 0 && search.length > 0 && (_jsxs("div", { className: "text-muted-foreground p-4 text-center text-xs", children: ["No tables matching \"", search, "\""] }))] }) })] }));
19
+ }
@@ -0,0 +1,10 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { TableList } from './table-list.js';
3
+ declare const meta: Meta<typeof TableList>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const FewTables: Story;
7
+ export declare const WithSelectedTable: Story;
8
+ export declare const ManyTablesWithSearch: Story;
9
+ export declare const Empty: Story;
10
+ //# sourceMappingURL=table-list.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table-list.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/database/table-list.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,SAAS,CAkBhC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAgCnC,eAAO,MAAM,SAAS,EAAE,KAIvB,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,KAK/B,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,KAIlC,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAInB,CAAC"}
@@ -0,0 +1,66 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { fn } from '@storybook/test';
3
+ import { TableList } from './table-list.js';
4
+ const meta = {
5
+ title: 'Features/Database/TableList',
6
+ component: TableList,
7
+ tags: ['autodocs'],
8
+ parameters: {
9
+ layout: 'centered',
10
+ },
11
+ args: {
12
+ selectedTable: null,
13
+ onSelectTable: fn(),
14
+ },
15
+ decorators: [
16
+ (Story) => (_jsx("div", { className: "w-64", children: _jsx(Story, {}) })),
17
+ ],
18
+ };
19
+ export default meta;
20
+ /* ---------------------------------------------------------------------------
21
+ * Data fixtures
22
+ * ------------------------------------------------------------------------- */
23
+ const fewTables = [
24
+ { name: 'features', rowCount: 42 },
25
+ { name: 'repositories', rowCount: 5 },
26
+ { name: 'settings', rowCount: 12 },
27
+ { name: 'migrations', rowCount: 8 },
28
+ ];
29
+ const manyTables = [
30
+ { name: 'features', rowCount: 42 },
31
+ { name: 'repositories', rowCount: 5 },
32
+ { name: 'settings', rowCount: 12 },
33
+ { name: 'migrations', rowCount: 8 },
34
+ { name: 'agents', rowCount: 156 },
35
+ { name: 'agent_events', rowCount: 1024 },
36
+ { name: 'agent_logs', rowCount: 5432 },
37
+ { name: 'skills', rowCount: 23 },
38
+ { name: 'tools', rowCount: 67 },
39
+ { name: 'tool_executions', rowCount: 890 },
40
+ { name: 'workflows', rowCount: 15 },
41
+ { name: 'workflow_steps', rowCount: 234 },
42
+ ];
43
+ /* ---------------------------------------------------------------------------
44
+ * Stories
45
+ * ------------------------------------------------------------------------- */
46
+ export const FewTables = {
47
+ args: {
48
+ tables: fewTables,
49
+ },
50
+ };
51
+ export const WithSelectedTable = {
52
+ args: {
53
+ tables: fewTables,
54
+ selectedTable: 'repositories',
55
+ },
56
+ };
57
+ export const ManyTablesWithSearch = {
58
+ args: {
59
+ tables: manyTables,
60
+ },
61
+ };
62
+ export const Empty = {
63
+ args: {
64
+ tables: [],
65
+ },
66
+ };
@@ -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,2CAgHjB"}
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,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 } from 'lucide-react';
4
+ import { Home, Wrench, Puzzle, Settings, Database } 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(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(SidebarNavItem, { icon: Database, label: "Database", href: "/database", active: pathname === '/database' })] }) }), _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',
@@ -0,0 +1,11 @@
1
+ import * as React from 'react';
2
+ declare function Table({ className, ...props }: React.ComponentProps<'table'>): import("react/jsx-runtime").JSX.Element;
3
+ declare function TableHeader({ className, ...props }: React.ComponentProps<'thead'>): import("react/jsx-runtime").JSX.Element;
4
+ declare function TableBody({ className, ...props }: React.ComponentProps<'tbody'>): import("react/jsx-runtime").JSX.Element;
5
+ declare function TableFooter({ className, ...props }: React.ComponentProps<'tfoot'>): import("react/jsx-runtime").JSX.Element;
6
+ declare function TableRow({ className, ...props }: React.ComponentProps<'tr'>): import("react/jsx-runtime").JSX.Element;
7
+ declare function TableHead({ className, ...props }: React.ComponentProps<'th'>): import("react/jsx-runtime").JSX.Element;
8
+ declare function TableCell({ className, ...props }: React.ComponentProps<'td'>): import("react/jsx-runtime").JSX.Element;
9
+ declare function TableCaption({ className, ...props }: React.ComponentProps<'caption'>): import("react/jsx-runtime").JSX.Element;
10
+ export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption };
11
+ //# sourceMappingURL=table.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/components/ui/table.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,iBAAS,KAAK,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,2CAUpE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,2CAE1E;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,2CAQxE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,2CAQ1E;AAED,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,2CAWpE;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,2CAWrE;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,2CAWrE;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,SAAS,CAAC,2CAQ7E;AAED,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC"}