@tablestore/tablestore-agent-cli 0.1.9 → 0.2.1

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 (459) hide show
  1. package/dist/commands/kb/create.d.ts.map +1 -1
  2. package/dist/commands/kb/create.js +21 -0
  3. package/dist/commands/kb/create.js.map +1 -1
  4. package/dist/commands/kb/retrieve.d.ts.map +1 -1
  5. package/dist/commands/kb/retrieve.js +3 -3
  6. package/dist/commands/kb/retrieve.js.map +1 -1
  7. package/dist/dashboard-runtime/dashboard/.next/BUILD_ID +1 -1
  8. package/dist/dashboard-runtime/dashboard/.next/app-path-routes-manifest.json +1 -0
  9. package/dist/dashboard-runtime/dashboard/.next/build-manifest.json +5 -5
  10. package/dist/dashboard-runtime/dashboard/.next/prerender-manifest.json +3 -3
  11. package/dist/dashboard-runtime/dashboard/.next/routes-manifest.json +6 -0
  12. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/chat/page/build-manifest.json +2 -2
  13. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/chat/page.js +1 -1
  14. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/chat/page.js.nft.json +1 -1
  15. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/chat/page_client-reference-manifest.js +1 -1
  16. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/documents/page/build-manifest.json +2 -2
  17. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/documents/page.js +1 -1
  18. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/documents/page.js.nft.json +1 -1
  19. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/documents/page_client-reference-manifest.js +1 -1
  20. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/page/build-manifest.json +2 -2
  21. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/page.js +1 -1
  22. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/page.js.nft.json +1 -1
  23. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/page_client-reference-manifest.js +1 -1
  24. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/qa/page/build-manifest.json +2 -2
  25. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/qa/page.js +1 -1
  26. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/qa/page.js.nft.json +1 -1
  27. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/qa/page_client-reference-manifest.js +1 -1
  28. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/retrieval/page/build-manifest.json +2 -2
  29. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/retrieval/page.js +1 -1
  30. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/retrieval/page.js.nft.json +1 -1
  31. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/retrieval/page_client-reference-manifest.js +1 -1
  32. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/settings/page/build-manifest.json +2 -2
  33. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/settings/page.js +1 -1
  34. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/settings/page.js.nft.json +1 -1
  35. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/settings/page_client-reference-manifest.js +1 -1
  36. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/create/page/build-manifest.json +2 -2
  37. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/create/page.js +1 -1
  38. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/create/page.js.nft.json +1 -1
  39. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/create/page_client-reference-manifest.js +1 -1
  40. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/page/build-manifest.json +2 -2
  41. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/page.js +1 -1
  42. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/page.js.nft.json +1 -1
  43. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/page_client-reference-manifest.js +1 -1
  44. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/[id]/page/build-manifest.json +2 -2
  45. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/[id]/page.js +1 -1
  46. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/[id]/page.js.nft.json +1 -1
  47. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/[id]/page_client-reference-manifest.js +1 -1
  48. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/new/page/build-manifest.json +2 -2
  49. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/new/page.js +2 -2
  50. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/new/page.js.nft.json +1 -1
  51. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/new/page_client-reference-manifest.js +1 -1
  52. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/page/build-manifest.json +2 -2
  53. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/page.js +1 -1
  54. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/page.js.nft.json +1 -1
  55. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/page_client-reference-manifest.js +1 -1
  56. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/messages/page/build-manifest.json +2 -2
  57. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/messages/page.js +1 -1
  58. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/messages/page.js.nft.json +1 -1
  59. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/messages/page_client-reference-manifest.js +1 -1
  60. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/page/build-manifest.json +2 -2
  61. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/page.js +1 -1
  62. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/page.js.nft.json +1 -1
  63. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/page_client-reference-manifest.js +1 -1
  64. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/requests/page/build-manifest.json +2 -2
  65. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/requests/page/react-loadable-manifest.json +1 -1
  66. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/requests/page.js +1 -1
  67. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/requests/page.js.nft.json +1 -1
  68. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/requests/page_client-reference-manifest.js +1 -1
  69. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/search/page/build-manifest.json +2 -2
  70. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/search/page.js +1 -1
  71. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/search/page.js.nft.json +1 -1
  72. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/search/page_client-reference-manifest.js +1 -1
  73. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/settings/page/build-manifest.json +2 -2
  74. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/settings/page.js +1 -1
  75. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/settings/page.js.nft.json +1 -1
  76. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/settings/page_client-reference-manifest.js +1 -1
  77. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/units/page/build-manifest.json +2 -2
  78. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/units/page.js +1 -1
  79. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/units/page.js.nft.json +1 -1
  80. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/units/page_client-reference-manifest.js +1 -1
  81. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/create/page/build-manifest.json +2 -2
  82. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/create/page.js +1 -1
  83. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/create/page.js.nft.json +1 -1
  84. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/create/page_client-reference-manifest.js +1 -1
  85. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/page/build-manifest.json +2 -2
  86. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/page.js +1 -1
  87. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/page.js.nft.json +1 -1
  88. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/page_client-reference-manifest.js +1 -1
  89. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/projects/page/build-manifest.json +2 -2
  90. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/projects/page.js +1 -1
  91. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/projects/page.js.nft.json +1 -1
  92. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/projects/page_client-reference-manifest.js +1 -1
  93. package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error/page/build-manifest.json +2 -2
  94. package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.html +1 -1
  95. package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.rsc +1 -1
  96. package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  97. package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  98. package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  99. package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  100. package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  101. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found/page/build-manifest.json +2 -2
  102. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  103. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.html +1 -1
  104. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.rsc +14 -14
  105. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_full.segment.rsc +14 -14
  106. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_head.segment.rsc +3 -3
  107. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_index.segment.rsc +10 -10
  108. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +3 -3
  109. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_not-found.segment.rsc +3 -3
  110. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  111. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/auth/status/route.js.nft.json +1 -1
  112. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/auth/token/route.js.nft.json +1 -1
  113. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/route.js.nft.json +1 -1
  114. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/token/route.js.nft.json +1 -1
  115. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/use/route.js.nft.json +1 -1
  116. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/route.js.nft.json +1 -1
  117. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/chunks/route.js.nft.json +1 -1
  118. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/[docId]/chunks/route.js.nft.json +1 -1
  119. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/[docId]/route.js.nft.json +1 -1
  120. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/route.js.nft.json +1 -1
  121. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/upload/route.js.nft.json +1 -1
  122. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/retrieve/route.js.nft.json +1 -1
  123. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/route.js.nft.json +1 -1
  124. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/route.js.nft.json +1 -1
  125. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/chat/route.js.nft.json +1 -1
  126. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/models/route.js.nft.json +1 -1
  127. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/route.js.nft.json +1 -1
  128. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/test/route.js.nft.json +1 -1
  129. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/route.js.nft.json +1 -1
  130. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/logs/client/route.js.nft.json +1 -1
  131. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/messages/route.js.nft.json +1 -1
  132. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/requests/route.js.nft.json +1 -1
  133. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/route.js.nft.json +1 -1
  134. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/search/route.js.nft.json +1 -1
  135. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/units/[memoryId]/route.js.nft.json +1 -1
  136. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/units/route.js.nft.json +1 -1
  137. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/route.js.nft.json +1 -1
  138. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/oss/list/route/app-paths-manifest.json +3 -0
  139. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/oss/list/route/build-manifest.json +9 -0
  140. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/oss/list/route/server-reference-manifest.json +4 -0
  141. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/oss/list/route.js +6 -0
  142. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/oss/list/route.js.map +5 -0
  143. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/oss/list/route.js.nft.json +1 -0
  144. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/oss/list/route_client-reference-manifest.js +3 -0
  145. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/runtime/context/route.js.nft.json +1 -1
  146. package/dist/dashboard-runtime/dashboard/.next/server/app/index.html +1 -1
  147. package/dist/dashboard-runtime/dashboard/.next/server/app/index.rsc +14 -14
  148. package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  149. package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/_full.segment.rsc +14 -14
  150. package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/_head.segment.rsc +3 -3
  151. package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/_index.segment.rsc +10 -10
  152. package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  153. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding/page/build-manifest.json +2 -2
  154. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding/page.js.nft.json +1 -1
  155. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding/page_client-reference-manifest.js +1 -1
  156. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.html +1 -1
  157. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.rsc +17 -17
  158. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/_full.segment.rsc +17 -17
  159. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/_head.segment.rsc +3 -3
  160. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/_index.segment.rsc +10 -10
  161. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/_tree.segment.rsc +2 -2
  162. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/onboarding/__PAGE__.segment.rsc +4 -4
  163. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/onboarding.segment.rsc +4 -4
  164. package/dist/dashboard-runtime/dashboard/.next/server/app/page/build-manifest.json +2 -2
  165. package/dist/dashboard-runtime/dashboard/.next/server/app/page_client-reference-manifest.js +1 -1
  166. package/dist/dashboard-runtime/dashboard/.next/server/app-paths-manifest.json +1 -0
  167. package/dist/dashboard-runtime/dashboard/.next/server/chunks/0p91_next_dist_esm_build_templates_app-route_0n~ec7s.js +1 -1
  168. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0cee_lo._.js +1 -1
  169. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0lvi0g-._.js +2 -2
  170. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0q8vcw8._.js +3 -0
  171. package/dist/dashboard-runtime/dashboard/.next/server/chunks/dashboard__next-internal_server_app_api_v1_oss_list_route_actions_00xq2u..js +3 -0
  172. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/0b1r_app_(dashboard)_knowledge-base_[name]_documents_documents-client_tsx_0g2uxmt._.js +2 -2
  173. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/0e95_src_app_(dashboard)_knowledge-base_[name]_settings_settings-client_tsx_13312zk._.js +1 -1
  174. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0aqzu8w._.js +1 -1
  175. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0hozzu6._.js +3 -0
  176. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0jb9ccl._.js +1 -1
  177. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0jhpb-b._.js +3 -0
  178. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__13ylf4x._.js +3 -0
  179. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_01-2v37._.js +3 -0
  180. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_02bg849._.js +3 -0
  181. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_04f2u4t._.js +1 -1
  182. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_09yzbcp._.js +1 -1
  183. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0db498n._.js +3 -0
  184. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0ddbh97._.js +1 -1
  185. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0f4u0.1._.js +3 -0
  186. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0fj8l5g._.js +3 -0
  187. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0hnw-ok._.js +3 -0
  188. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0j-q~ro._.js +3 -0
  189. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0jghj2_._.js +3 -0
  190. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0kd7szs._.js +3 -0
  191. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0l~-9i0._.js +3 -0
  192. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0mtqe24._.js +3 -0
  193. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0n4gd_6._.js +3 -0
  194. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0o665bf._.js +1 -1
  195. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0ogxvev._.js +7 -0
  196. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0q748rf._.js +1 -1
  197. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0tr8-3u._.js +3 -0
  198. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0u4elhp._.js +3 -0
  199. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0vtm7dh._.js +3 -0
  200. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0xdioxg._.js +3 -0
  201. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0xzh5yw._.js +3 -0
  202. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_12r9c8h._.js +3 -0
  203. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_12~3vfk._.js +3 -0
  204. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_13_lb.o._.js +3 -0
  205. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_00ofp7q._.js +3 -0
  206. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_065m1.j._.js +1 -1
  207. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0ejgygh._.js +1 -1
  208. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0o9jhcn._.js +9 -0
  209. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0xf3ffa._.js +3 -0
  210. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0y49vhd._.js +1 -1
  211. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_10dsqx~._.js +1 -1
  212. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_knowledge-base_create_page_tsx_0916~g-._.js +1 -1
  213. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_error_tsx_01x7ppm._.js +1 -1
  214. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_components_0ls1exu._.js +3 -0
  215. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_components_0ugdjlb._.js +3 -0
  216. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_components_shared_relative-time_tsx_0b7s9rc._.js +1 -1
  217. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_components_ui_0-tuf-h._.js +3 -0
  218. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_components_ui_dropdown-menu_tsx_0c~d-fd._.js +1 -1
  219. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_components_ui_select_tsx_0ys.i47._.js +1 -1
  220. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/node_modules__pnpm_08h.f_8._.js +3 -0
  221. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/node_modules__pnpm_0jns_ph._.js +3 -0
  222. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/node_modules__pnpm_0pf30rh._.js +3 -0
  223. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/node_modules__pnpm_0~k~1nt._.js +3 -0
  224. package/dist/dashboard-runtime/dashboard/.next/server/functions-config-manifest.json +1 -0
  225. package/dist/dashboard-runtime/dashboard/.next/server/middleware-build-manifest.js +5 -5
  226. package/dist/dashboard-runtime/dashboard/.next/server/pages/404.html +1 -1
  227. package/dist/dashboard-runtime/dashboard/.next/server/pages/500.html +1 -1
  228. package/dist/dashboard-runtime/dashboard/.next/server/server-reference-manifest.js +1 -1
  229. package/dist/dashboard-runtime/dashboard/.next/server/server-reference-manifest.json +1 -1
  230. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0-2yqm.ft6yzy.js +1 -0
  231. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0.2e8ciiogw04.js +1 -0
  232. package/dist/dashboard-runtime/dashboard/.next/static/chunks/00tz~p479bdgl.js +1 -0
  233. package/dist/dashboard-runtime/dashboard/.next/static/chunks/02i9olo-312mq.js +138 -0
  234. package/dist/dashboard-runtime/dashboard/.next/static/chunks/062k9jbtd9.lv.js +1 -0
  235. package/dist/dashboard-runtime/dashboard/.next/static/chunks/069zf4m5f.se2.js +1 -0
  236. package/dist/dashboard-runtime/dashboard/.next/static/chunks/06uuhz24tvdt..js +1 -0
  237. package/dist/dashboard-runtime/dashboard/.next/static/chunks/07cp19da_kfld.js +5 -0
  238. package/dist/dashboard-runtime/dashboard/.next/static/chunks/086esp1n941jl.js +138 -0
  239. package/dist/dashboard-runtime/dashboard/.next/static/chunks/08e9vvmr~0bqr.js +1 -0
  240. package/dist/dashboard-runtime/dashboard/.next/static/chunks/08i99xsvs8o5s.js +1 -0
  241. package/dist/dashboard-runtime/dashboard/.next/static/chunks/08qlxn-3d_rtu.js +1 -0
  242. package/dist/dashboard-runtime/dashboard/.next/static/chunks/09uxq~55qug8c.js +1 -0
  243. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0__g1ogrdh412.js +1 -0
  244. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0ab-ev0u1~ch5.js +1 -0
  245. package/dist/dashboard-runtime/dashboard/.next/static/chunks/{154aheeo3m6bg.js → 0bpginsuceywq.js} +1 -1
  246. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0bw682qzkh2ni.js +1 -0
  247. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0cto67_iw~p9z.js +1 -0
  248. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0d29.l~3ip181.js +1 -0
  249. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0ewpzgu_qf0wf.js +4 -0
  250. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0h77.bqx5ltem.js +1 -0
  251. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0ix_suxk3spjj.js +1 -0
  252. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0jc31diex030o.js +1 -0
  253. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0k79upjc40aky.css +1 -0
  254. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0lp2g_27uyhuz.js +1 -0
  255. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0lrw.bnws62y9.js +1 -0
  256. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0mea2ylxe.umh.js +1 -0
  257. package/dist/dashboard-runtime/dashboard/.next/static/chunks/{0dqag6qsw7xv8.js → 0px2r0l_3kp2t.js} +1 -1
  258. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0snnsfosp3~gq.js +1 -0
  259. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0t0yqi68~eil6.js +1 -0
  260. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0td9nhfbpbmyt.js +1 -0
  261. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0tmwptel_4y0o.js +1 -0
  262. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0u6_s-0w8.yr..js +1 -0
  263. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0u9wtl06_b72x.js +1 -0
  264. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0uv55p7kzteex.js +1 -0
  265. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0v9d5wl9nsva3.js +1 -0
  266. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0xko7~ja3xuc-.js +1 -0
  267. package/dist/dashboard-runtime/dashboard/.next/static/chunks/{05_578ka0ga8d.js → 12pz6ag1s~te_.js} +1 -1
  268. package/dist/dashboard-runtime/dashboard/.next/static/chunks/14.dp0-y_mhjo.js +1 -0
  269. package/dist/dashboard-runtime/dashboard/.next/static/chunks/15bzqpm440jvz.js +1 -0
  270. package/dist/dashboard-runtime/dashboard/.next/static/chunks/15wxh8ltqt88_.js +1 -0
  271. package/dist/dashboard-runtime/dashboard/.next/static/chunks/183~u3-4a74db.js +1 -0
  272. package/dist/dashboard-runtime/dashboard/.next/static/chunks/{turbopack-0ybyy.9-.w~ub.js → turbopack-0w.hw6u8qra5z.js} +1 -1
  273. package/dist/dashboard-runtime/dashboard/package.json +1 -0
  274. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/chat/page.tsx +39 -38
  275. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/error.tsx +1 -1
  276. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/knowledge-base/[name]/documents/documents-client.tsx +0 -1
  277. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/knowledge-base/[name]/layout-client.tsx +191 -40
  278. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/knowledge-base/[name]/qa/page.tsx +18 -19
  279. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/knowledge-base/[name]/retrieval/retrieval-client.tsx +8 -7
  280. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/knowledge-base/[name]/settings/settings-client.tsx +1 -1
  281. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/layout.tsx +3 -10
  282. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/layout.tsx +128 -22
  283. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/search/page.tsx +15 -8
  284. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/projects/page.tsx +1 -1
  285. package/dist/dashboard-runtime/dashboard/src/app/api/v1/knowledge-bases/[name]/documents/route.ts +44 -3
  286. package/dist/dashboard-runtime/dashboard/src/app/api/v1/oss/list/route.ts +125 -0
  287. package/dist/dashboard-runtime/dashboard/src/app/error.tsx +1 -1
  288. package/dist/dashboard-runtime/dashboard/src/app/globals.css +137 -102
  289. package/dist/dashboard-runtime/dashboard/src/app/not-found.tsx +1 -1
  290. package/dist/dashboard-runtime/dashboard/src/app/onboarding/page.tsx +2 -2
  291. package/dist/dashboard-runtime/dashboard/src/components/chat/add-mount-row.tsx +21 -46
  292. package/dist/dashboard-runtime/dashboard/src/components/chat/chat-mount-config.tsx +35 -27
  293. package/dist/dashboard-runtime/dashboard/src/components/chat/mount-empty-state.tsx +87 -0
  294. package/dist/dashboard-runtime/dashboard/src/components/chat/mount-picker.tsx +87 -0
  295. package/dist/dashboard-runtime/dashboard/src/components/chat/unified-retrieval-section.tsx +3 -2
  296. package/dist/dashboard-runtime/dashboard/src/components/documents/doc-chunks-dialog.tsx +49 -25
  297. package/dist/dashboard-runtime/dashboard/src/components/documents/doc-columns.tsx +57 -46
  298. package/dist/dashboard-runtime/dashboard/src/components/documents/doc-table.tsx +2 -4
  299. package/dist/dashboard-runtime/dashboard/src/components/documents/doc-toolbar.tsx +1 -1
  300. package/dist/dashboard-runtime/dashboard/src/components/documents/doc-upload-dialog.tsx +155 -54
  301. package/dist/dashboard-runtime/dashboard/src/components/documents/oss-browser.tsx +264 -0
  302. package/dist/dashboard-runtime/dashboard/src/components/documents/oss-import-tab.tsx +143 -0
  303. package/dist/dashboard-runtime/dashboard/src/components/instance/connect-instance-form.tsx +60 -60
  304. package/dist/dashboard-runtime/dashboard/src/components/knowledge-base/kb-create-form.tsx +52 -35
  305. package/dist/dashboard-runtime/dashboard/src/components/knowledge-base/kb-settings-form.tsx +152 -76
  306. package/dist/dashboard-runtime/dashboard/src/components/knowledge-base/knowledge-base-retrieval-config.ts +110 -0
  307. package/dist/dashboard-runtime/dashboard/src/components/knowledge-base/retrieval-result-count-field.tsx +106 -0
  308. package/dist/dashboard-runtime/dashboard/src/components/knowledge-base/retrieval-result-count.ts +11 -0
  309. package/dist/dashboard-runtime/dashboard/src/components/layout/detail-sidebar.tsx +411 -0
  310. package/dist/dashboard-runtime/dashboard/src/components/layout/help-link.tsx +58 -0
  311. package/dist/dashboard-runtime/dashboard/src/components/layout/page-header.tsx +130 -11
  312. package/dist/dashboard-runtime/dashboard/src/components/layout/sidebar-instance-card.tsx +203 -0
  313. package/dist/dashboard-runtime/dashboard/src/components/layout/sidebar-item.tsx +14 -11
  314. package/dist/dashboard-runtime/dashboard/src/components/layout/sidebar-mobile.tsx +37 -29
  315. package/dist/dashboard-runtime/dashboard/src/components/layout/sidebar-usage-stats.tsx +26 -0
  316. package/dist/dashboard-runtime/dashboard/src/components/layout/sidebar.tsx +94 -46
  317. package/dist/dashboard-runtime/dashboard/src/components/layout/theme-toggle.tsx +161 -41
  318. package/dist/dashboard-runtime/dashboard/src/components/memory/requests-histogram-chart.tsx +2 -2
  319. package/dist/dashboard-runtime/dashboard/src/components/qa/qa-chat-panel.tsx +1 -1
  320. package/dist/dashboard-runtime/dashboard/src/components/retrieval/assemble-retrieval-configuration.ts +22 -3
  321. package/dist/dashboard-runtime/dashboard/src/components/retrieval/retrieval-form.tsx +110 -20
  322. package/dist/dashboard-runtime/dashboard/src/components/retrieval/retrieval-params-fields.tsx +114 -56
  323. package/dist/dashboard-runtime/dashboard/src/components/retrieval/retrieval-rerank-fields.tsx +60 -23
  324. package/dist/dashboard-runtime/dashboard/src/components/shared/empty-state.tsx +1 -1
  325. package/dist/dashboard-runtime/dashboard/src/components/shared/error-state.tsx +1 -1
  326. package/dist/dashboard-runtime/dashboard/src/components/shared/llm-model-selector.tsx +160 -70
  327. package/dist/dashboard-runtime/dashboard/src/components/shared/relative-time.tsx +30 -6
  328. package/dist/dashboard-runtime/dashboard/src/components/ui/badge.tsx +16 -5
  329. package/dist/dashboard-runtime/dashboard/src/components/ui/button.tsx +9 -8
  330. package/dist/dashboard-runtime/dashboard/src/components/ui/card.tsx +14 -8
  331. package/dist/dashboard-runtime/dashboard/src/components/ui/chat-bubble.tsx +60 -0
  332. package/dist/dashboard-runtime/dashboard/src/components/ui/command.tsx +1 -1
  333. package/dist/dashboard-runtime/dashboard/src/components/ui/data-card.tsx +57 -0
  334. package/dist/dashboard-runtime/dashboard/src/components/ui/detail-section.tsx +40 -0
  335. package/dist/dashboard-runtime/dashboard/src/components/ui/dialog.tsx +7 -7
  336. package/dist/dashboard-runtime/dashboard/src/components/ui/dropdown-menu.tsx +6 -6
  337. package/dist/dashboard-runtime/dashboard/src/components/ui/empty-state.tsx +42 -0
  338. package/dist/dashboard-runtime/dashboard/src/components/ui/filter-pill.tsx +90 -0
  339. package/dist/dashboard-runtime/dashboard/src/components/ui/form.tsx +3 -3
  340. package/dist/dashboard-runtime/dashboard/src/components/ui/input.tsx +5 -1
  341. package/dist/dashboard-runtime/dashboard/src/components/ui/item-card.tsx +88 -0
  342. package/dist/dashboard-runtime/dashboard/src/components/ui/label.tsx +1 -1
  343. package/dist/dashboard-runtime/dashboard/src/components/ui/memory-row.tsx +63 -0
  344. package/dist/dashboard-runtime/dashboard/src/components/ui/mini-stat.tsx +48 -0
  345. package/dist/dashboard-runtime/dashboard/src/components/ui/nav-tab-bar.tsx +60 -0
  346. package/dist/dashboard-runtime/dashboard/src/components/ui/playground-shell.tsx +69 -0
  347. package/dist/dashboard-runtime/dashboard/src/components/ui/popover.tsx +1 -1
  348. package/dist/dashboard-runtime/dashboard/src/components/ui/result-row.tsx +37 -0
  349. package/dist/dashboard-runtime/dashboard/src/components/ui/scope-tag.tsx +30 -0
  350. package/dist/dashboard-runtime/dashboard/src/components/ui/select.tsx +6 -5
  351. package/dist/dashboard-runtime/dashboard/src/components/ui/sheet.tsx +4 -4
  352. package/dist/dashboard-runtime/dashboard/src/components/ui/sonner.tsx +1 -1
  353. package/dist/dashboard-runtime/dashboard/src/components/ui/stat-card.tsx +58 -0
  354. package/dist/dashboard-runtime/dashboard/src/components/ui/table.tsx +13 -6
  355. package/dist/dashboard-runtime/dashboard/src/components/ui/textarea.tsx +4 -1
  356. package/dist/dashboard-runtime/dashboard/src/components/ui/tooltip.tsx +1 -1
  357. package/dist/dashboard-runtime/dashboard/src/components/ui/usage-card.tsx +43 -0
  358. package/dist/dashboard-runtime/dashboard/src/config/navigation.ts +50 -9
  359. package/dist/dashboard-runtime/dashboard/src/hooks/use-detail-sidebar-collapsed.ts +86 -0
  360. package/dist/dashboard-runtime/dashboard/src/hooks/use-oss-import.ts +148 -0
  361. package/dist/dashboard-runtime/dashboard/src/hooks/use-oss-list.ts +89 -0
  362. package/dist/dashboard-runtime/dashboard/src/lib/extension-filter.ts +62 -0
  363. package/dist/dashboard-runtime/dashboard/src/lib/glob-filter.ts +76 -0
  364. package/dist/dashboard-runtime/dashboard/src/lib/oss-selection.ts +58 -0
  365. package/dist/dashboard-runtime/dashboard/src/lib/server/oss-client.ts +65 -0
  366. package/dist/dashboard-runtime/dashboard/src/schemas/knowledge-base.ts +3 -3
  367. package/dist/dashboard-runtime/dashboard/src/schemas/llm-chat.ts +1 -1
  368. package/dist/dashboard-runtime/dashboard/src/schemas/retrieval.ts +4 -1
  369. package/dist/dashboard-runtime/dashboard/src/services/api-client.ts +11 -6
  370. package/dist/dashboard-runtime/dashboard/src/services/documents.ts +27 -8
  371. package/dist/dashboard-runtime/dashboard/src/services/oss.ts +36 -0
  372. package/dist/dashboard-runtime/dashboard/src/types/knowledge-base.ts +1 -1
  373. package/dist/dashboard-runtime/dashboard/tailwind.config.ts +47 -12
  374. package/dist/dashboard-runtime/dashboard/vitest.config.mjs +6 -0
  375. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/tsconfig.tsbuildinfo +1 -1
  376. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/tsconfig.tsbuildinfo +1 -1
  377. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/types.d.ts +1 -1
  378. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/types.d.ts.map +1 -1
  379. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/tsconfig.tsbuildinfo +1 -1
  380. package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/tsconfig.tsbuildinfo +1 -1
  381. package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/types.d.ts +1 -1
  382. package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/types.d.ts.map +1 -1
  383. package/package.json +1 -1
  384. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/0lvo_@radix-ui_react-popper_dist_index_mjs_13rqw99._.js +0 -3
  385. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0-kiaf5._.js +0 -3
  386. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0_r24-c._.js +0 -3
  387. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__11yei-s._.js +0 -3
  388. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0303qx7._.js +0 -3
  389. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_06l.12l._.js +0 -3
  390. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_09eom0_._.js +0 -3
  391. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0cd.__9._.js +0 -7
  392. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0dqi8bq._.js +0 -3
  393. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0e9y.xc._.js +0 -3
  394. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0f9u8i2._.js +0 -3
  395. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0fbjpet._.js +0 -3
  396. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0i8py_a._.js +0 -3
  397. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0jlt.cx._.js +0 -3
  398. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0n5uozy._.js +0 -3
  399. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0o32d.y._.js +0 -3
  400. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0suxzcc._.js +0 -3
  401. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0tyxwr3._.js +0 -3
  402. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0u9md36._.js +0 -3
  403. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0v4jb2q._.js +0 -3
  404. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0vzw0pw._.js +0 -3
  405. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0z0rlpq._.js +0 -3
  406. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0zn.ayc._.js +0 -3
  407. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_13l7w34._.js +0 -3
  408. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0o4a.29._.js +0 -3
  409. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0suis9l._.js +0 -9
  410. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_10mc58z._.js +0 -3
  411. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_knowledge-base_[name]_layout-client_tsx_05momc5._.js +0 -3
  412. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_components_retrieval_02c2uck._.js +0 -3
  413. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/node_modules__pnpm_0aw_rgu._.js +0 -3
  414. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/node_modules__pnpm_0qdd37m._.js +0 -3
  415. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/node_modules__pnpm_11mc1z9._.js +0 -3
  416. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0-etecbti5x22.js +0 -1
  417. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0-xqk6wfme5fu.js +0 -1
  418. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0.yj.t1hbwkg4.js +0 -1
  419. package/dist/dashboard-runtime/dashboard/.next/static/chunks/031-scv-8sah9.js +0 -1
  420. package/dist/dashboard-runtime/dashboard/.next/static/chunks/034uozc1ki09_.js +0 -1
  421. package/dist/dashboard-runtime/dashboard/.next/static/chunks/05hmbxh7h5ct-.js +0 -1
  422. package/dist/dashboard-runtime/dashboard/.next/static/chunks/05ow1qzcjz3pz.js +0 -1
  423. package/dist/dashboard-runtime/dashboard/.next/static/chunks/07iqor2nl~iqc.js +0 -1
  424. package/dist/dashboard-runtime/dashboard/.next/static/chunks/087x52iesmpfe.js +0 -1
  425. package/dist/dashboard-runtime/dashboard/.next/static/chunks/08an3157he_ad.js +0 -1
  426. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0aak.679si-3m.js +0 -1
  427. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0ai8f~-9ig.gz.js +0 -138
  428. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0c5tcbhzpwen7.js +0 -1
  429. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0dheju1t18upn.js +0 -1
  430. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0ffr1_o~ss8r8.js +0 -1
  431. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0h38qfpz-dmiu.js +0 -1
  432. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0hkir82jccgck.js +0 -1
  433. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0l1fmyhvp-k49.js +0 -1
  434. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0pcp6pjjz7o49.js +0 -1
  435. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0pdq-gljpy7gd.js +0 -1
  436. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0q6-s11w9.sgo.js +0 -1
  437. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0rnm58mg0whfk.js +0 -1
  438. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0rxp5ykl1_lyb.js +0 -4
  439. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0sg6z8.ci0l2b.js +0 -1
  440. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0v_~favugkv_a.js +0 -1
  441. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0x3ysmon_~xsv.js +0 -1
  442. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0x7sjde5wit~i.js +0 -1
  443. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0yzz97.2e6if6.js +0 -138
  444. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0zbi5n76awxz1.js +0 -1
  445. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0~alekqkiwwaq.js +0 -1
  446. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0~e2n9bhosscr.js +0 -1
  447. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0~i4llb9-utpp.css +0 -1
  448. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0~n-y9cstar6b.js +0 -5
  449. package/dist/dashboard-runtime/dashboard/.next/static/chunks/14z_j1qzycpe1.js +0 -1
  450. package/dist/dashboard-runtime/dashboard/.next/static/chunks/17k4h5zgalxqj.js +0 -1
  451. package/dist/dashboard-runtime/dashboard/.next/static/chunks/17m1wc_o0.5iz.js +0 -1
  452. package/dist/dashboard-runtime/dashboard/src/components/knowledge-base/kb-header.tsx +0 -91
  453. package/dist/dashboard-runtime/dashboard/src/components/knowledge-base/kb-tab-nav.tsx +0 -62
  454. package/dist/dashboard-runtime/dashboard/src/components/layout/breadcrumb-bar.tsx +0 -115
  455. package/dist/dashboard-runtime/dashboard/src/components/memory/memory-header.tsx +0 -46
  456. package/dist/dashboard-runtime/dashboard/src/components/memory/memory-tab-nav.tsx +0 -54
  457. /package/dist/dashboard-runtime/dashboard/.next/static/{nPPow7lCVx1fYDGH2XCxQ → doYIl-pd6Sqax3bfUgN3q}/_buildManifest.js +0 -0
  458. /package/dist/dashboard-runtime/dashboard/.next/static/{nPPow7lCVx1fYDGH2XCxQ → doYIl-pd6Sqax3bfUgN3q}/_clientMiddlewareManifest.js +0 -0
  459. /package/dist/dashboard-runtime/dashboard/.next/static/{nPPow7lCVx1fYDGH2XCxQ → doYIl-pd6Sqax3bfUgN3q}/_ssgManifest.js +0 -0
@@ -1,13 +1,49 @@
1
1
  'use client';
2
2
 
3
3
  import { Suspense, useState } from "react";
4
- import { useParams } from "next/navigation";
4
+ import { useParams, useSearchParams } from "next/navigation";
5
+ import {
6
+ BookOpenText,
7
+ FileText,
8
+ MoreVertical,
9
+ MessagesSquare,
10
+ Search,
11
+ Settings,
12
+ Trash2,
13
+ } from "lucide-react";
14
+
5
15
  import { Skeleton } from "@/components/ui/skeleton";
16
+ import {
17
+ DropdownMenu,
18
+ DropdownMenuContent,
19
+ DropdownMenuItem,
20
+ DropdownMenuTrigger,
21
+ } from "@/components/ui/dropdown-menu";
22
+ import { Badge } from "@/components/ui/badge";
23
+ import {
24
+ DetailLayout,
25
+ DetailSidebar,
26
+ DetailSidebarBack,
27
+ DetailSidebarHeader,
28
+ DetailSidebarMenu,
29
+ } from "@/components/layout/detail-sidebar";
6
30
  import { useKnowledgeBase } from "@/hooks/use-knowledge-base";
7
- import { KBHeader } from "@/components/knowledge-base/kb-header";
8
- import { KBTabNav } from "@/components/knowledge-base/kb-tab-nav";
9
31
  import { KBDeleteDialog } from "@/components/knowledge-base/kb-delete-dialog";
10
- import { SubspaceProvider } from "@/contexts/subspace-context";
32
+ import { SubspaceProvider, useSubspaceOptional } from "@/contexts/subspace-context";
33
+ import { SubspaceSwitcher } from "@/components/knowledge-base/subspace-switcher";
34
+ import { RelativeTime } from "@/components/shared/relative-time";
35
+ import type { KnowledgeBase } from "@/types/knowledge-base";
36
+
37
+ const TABS = [
38
+ { label: "文档", segment: "documents", icon: <FileText className="h-4 w-4" /> },
39
+ { label: "检索测试", segment: "retrieval", icon: <Search className="h-4 w-4" /> },
40
+ {
41
+ label: "问答测试",
42
+ segment: "qa",
43
+ icon: <MessagesSquare className="h-4 w-4" />,
44
+ },
45
+ { label: "设置", segment: "settings", icon: <Settings className="h-4 w-4" /> },
46
+ ] as const;
11
47
 
12
48
  export default function KnowledgeBaseDetailLayoutClient({
13
49
  children,
@@ -21,58 +57,173 @@ export default function KnowledgeBaseDetailLayoutClient({
21
57
 
22
58
  if (isLoading) {
23
59
  return (
24
- <div className="space-y-6">
25
- <div className="space-y-3">
60
+ <DetailLayout
61
+ sidebar={<DetailSidebarSkeleton />}
62
+ >
63
+ <div className="space-y-6">
26
64
  <Skeleton className="h-10 w-64" />
27
- <Skeleton className="h-4 w-96" />
28
- <Skeleton className="h-4 w-48" />
65
+ <Skeleton className="h-10 w-full" />
66
+ <Skeleton className="h-64 w-full" />
29
67
  </div>
30
- <Skeleton className="h-10 w-full" />
31
- <Skeleton className="h-64 w-full" />
32
- </div>
68
+ </DetailLayout>
33
69
  );
34
70
  }
35
71
 
36
72
  if (!knowledgeBase) {
37
73
  return (
38
- <div className="flex items-center justify-center py-20 text-muted-foreground">
39
- 知识库不存在或已被删除
40
- </div>
74
+ <DetailLayout sidebar={<DetailSidebarSkeleton />}>
75
+ <div className="flex items-center justify-center py-20 text-muted-foreground">
76
+ 知识库不存在或已被删除
77
+ </div>
78
+ </DetailLayout>
41
79
  );
42
80
  }
43
81
 
44
82
  return (
45
- <div>
46
- <Suspense
47
- fallback={
48
- <div className="space-y-6">
49
- <div className="space-y-3">
50
- <Skeleton className="h-10 w-64" />
51
- <Skeleton className="h-4 w-96" />
52
- <Skeleton className="h-4 w-48" />
53
- </div>
54
- <Skeleton className="h-10 w-full" />
55
- <Skeleton className="h-[400px] w-full" />
56
- </div>
57
- }
58
- >
59
- <SubspaceProvider knowledgeBaseName={knowledgeBaseName}>
60
- <div className="space-y-6">
61
- <KBHeader
62
- knowledgeBase={knowledgeBase}
63
- onDelete={() => setShowDeleteDialog(true)}
64
- />
65
- <KBTabNav knowledgeBaseName={knowledgeBaseName} />
66
- <div>{children}</div>
67
- </div>
68
- </SubspaceProvider>
83
+ <SubspaceProvider knowledgeBaseName={knowledgeBaseName}>
84
+ <Suspense fallback={null}>
85
+ <KBDetailShell
86
+ knowledgeBase={knowledgeBase}
87
+ knowledgeBaseName={knowledgeBaseName}
88
+ onRequestDelete={() => setShowDeleteDialog(true)}
89
+ >
90
+ {children}
91
+ </KBDetailShell>
69
92
  </Suspense>
70
-
71
93
  <KBDeleteDialog
72
94
  knowledgeBaseName={knowledgeBaseName}
73
95
  open={showDeleteDialog}
74
96
  onOpenChange={setShowDeleteDialog}
75
97
  />
76
- </div>
98
+ </SubspaceProvider>
99
+ );
100
+ }
101
+
102
+ function KBDetailShell({
103
+ knowledgeBase,
104
+ knowledgeBaseName,
105
+ onRequestDelete,
106
+ children,
107
+ }: {
108
+ knowledgeBase: KnowledgeBase;
109
+ knowledgeBaseName: string;
110
+ onRequestDelete: () => void;
111
+ children: React.ReactNode;
112
+ }) {
113
+ const searchParams = useSearchParams();
114
+ const activeSubspace = useSubspaceOptional()?.subspace ?? null;
115
+
116
+ // Carry the subspace querystring through to each menu link so
117
+ // middle-click / copy-link continues to land on the same scope.
118
+ const params = new URLSearchParams(searchParams.toString());
119
+ if (activeSubspace) params.set("subspace", activeSubspace);
120
+ else params.delete("subspace");
121
+ const qs = params.toString();
122
+ const querySuffix = qs ? `?${qs}` : "";
123
+
124
+ const basePath = `/knowledge-base/${encodeURIComponent(knowledgeBaseName)}`;
125
+ const items = TABS.map((tab) => ({
126
+ href: `${basePath}/${tab.segment}${querySuffix}`,
127
+ label: tab.label,
128
+ icon: tab.icon,
129
+ }));
130
+
131
+ return (
132
+ <DetailLayout
133
+ sidebar={
134
+ <DetailSidebar>
135
+ <DetailSidebarHeader
136
+ icon={<BookOpenText />}
137
+ accent="primary"
138
+ name={knowledgeBase.knowledgeBaseName}
139
+ typeLabel="知识库 · KNOWLEDGE BASE"
140
+ description={knowledgeBase.description}
141
+ actions={
142
+ <DropdownMenu>
143
+ <DropdownMenuTrigger asChild>
144
+ <button
145
+ type="button"
146
+ aria-label="更多操作"
147
+ className="flex h-7 w-7 items-center justify-center rounded-md text-[hsl(var(--muted-foreground))] transition-colors hover:bg-[hsl(var(--background))] hover:text-[hsl(var(--foreground))]"
148
+ >
149
+ <MoreVertical className="h-4 w-4" />
150
+ </button>
151
+ </DropdownMenuTrigger>
152
+ <DropdownMenuContent align="end">
153
+ <DropdownMenuItem
154
+ onSelect={(e) => {
155
+ e.preventDefault();
156
+ onRequestDelete();
157
+ }}
158
+ className="text-[hsl(var(--destructive))] focus:bg-[hsl(var(--danger-soft))] focus:text-[hsl(var(--destructive))] hover:bg-[hsl(var(--danger-soft))] hover:text-[hsl(var(--destructive))]"
159
+ >
160
+ <Trash2 className="h-3.5 w-3.5" />
161
+ 删除知识库
162
+ </DropdownMenuItem>
163
+ </DropdownMenuContent>
164
+ </DropdownMenu>
165
+ }
166
+ extra={
167
+ <>
168
+ {knowledgeBase.tags && knowledgeBase.tags.length > 0 ? (
169
+ <div className="-mt-0.5 flex flex-wrap gap-1">
170
+ {knowledgeBase.tags.map((tag) => (
171
+ <Badge
172
+ key={tag}
173
+ variant="primary"
174
+ className="text-[10px]"
175
+ >
176
+ {tag}
177
+ </Badge>
178
+ ))}
179
+ </div>
180
+ ) : null}
181
+ {knowledgeBase.subspace ? (
182
+ <div className="space-y-1">
183
+ <div className="inline-flex items-center gap-1.5 text-[hsl(var(--success))]">
184
+ <span className="h-1.5 w-1.5 rounded-full bg-current" />
185
+ 子空间隔离已开启
186
+ </div>
187
+ <SubspaceSwitcher />
188
+ </div>
189
+ ) : null}
190
+ {knowledgeBase.createdAt ? (
191
+ <div>
192
+ 创建于 <RelativeTime timestamp={knowledgeBase.createdAt} />
193
+ </div>
194
+ ) : null}
195
+ {knowledgeBase.updatedAt ? (
196
+ <div>
197
+ 更新于 <RelativeTime timestamp={knowledgeBase.updatedAt} />
198
+ </div>
199
+ ) : null}
200
+ </>
201
+ }
202
+ />
203
+ <DetailSidebarMenu items={items} />
204
+ <DetailSidebarBack href="/knowledge-base" label="返回列表" />
205
+ </DetailSidebar>
206
+ }
207
+ >
208
+ {children}
209
+ </DetailLayout>
210
+ );
211
+ }
212
+
213
+ function DetailSidebarSkeleton() {
214
+ return (
215
+ <DetailSidebar>
216
+ <div className="space-y-3 px-4 pt-4 pb-4 border-b border-[hsl(var(--border-light))]">
217
+ <Skeleton className="h-9 w-9 rounded-lg" />
218
+ <Skeleton className="h-4 w-3/4" />
219
+ <Skeleton className="h-3 w-1/2" />
220
+ </div>
221
+ <div className="space-y-1 px-2 py-2">
222
+ <Skeleton className="h-8 w-full" />
223
+ <Skeleton className="h-8 w-full" />
224
+ <Skeleton className="h-8 w-full" />
225
+ <Skeleton className="h-8 w-full" />
226
+ </div>
227
+ </DetailSidebar>
77
228
  );
78
229
  }
@@ -2,6 +2,7 @@
2
2
 
3
3
  import { use, useCallback, useState } from "react";
4
4
 
5
+ import { WorkbenchLayout } from "@/components/layout/detail-sidebar";
5
6
  import { QaChatPanel } from "@/components/qa/qa-chat-panel";
6
7
  import { QaForm, type QaFormState } from "@/components/qa/qa-form";
7
8
  import { useKnowledgeBase } from "@/hooks/use-knowledge-base";
@@ -51,8 +52,8 @@ export default function QaPlaygroundPage({ params }: PageProps) {
51
52
  );
52
53
 
53
54
  return (
54
- <div className="grid gap-6 lg:grid-cols-[360px_1fr]">
55
- <aside className="lg:sticky lg:top-20 lg:max-h-[calc(100vh-6rem)] lg:overflow-y-auto">
55
+ <WorkbenchLayout
56
+ aside={
56
57
  <QaForm
57
58
  knowledgeBaseName={knowledgeBaseName}
58
59
  knowledgeBase={knowledgeBase}
@@ -60,22 +61,20 @@ export default function QaPlaygroundPage({ params }: PageProps) {
60
61
  onClearConversation={chat.clear}
61
62
  disabled={chat.isStreaming}
62
63
  />
63
- </aside>
64
-
65
- <section className="min-h-[640px]">
66
- <QaChatPanel
67
- messages={chat.messages}
68
- isStreaming={chat.isStreaming}
69
- canSend={canSend}
70
- error={chat.error}
71
- onSend={chat.send}
72
- onStop={chat.stop}
73
- onDelete={chat.deleteMessage}
74
- onResend={chat.reissueTurn}
75
- onRegenerate={handleRegenerate}
76
- onEditSave={handleEditSave}
77
- />
78
- </section>
79
- </div>
64
+ }
65
+ >
66
+ <QaChatPanel
67
+ messages={chat.messages}
68
+ isStreaming={chat.isStreaming}
69
+ canSend={canSend}
70
+ error={chat.error}
71
+ onSend={chat.send}
72
+ onStop={chat.stop}
73
+ onDelete={chat.deleteMessage}
74
+ onResend={chat.reissueTurn}
75
+ onRegenerate={handleRegenerate}
76
+ onEditSave={handleEditSave}
77
+ />
78
+ </WorkbenchLayout>
80
79
  );
81
80
  }
@@ -4,6 +4,7 @@ import { useState, useCallback } from "react";
4
4
  import { useParams } from "next/navigation";
5
5
  import { toast } from "sonner";
6
6
  import { Skeleton } from "@/components/ui/skeleton";
7
+ import { WorkbenchLayout } from "@/components/layout/detail-sidebar";
7
8
  import { useKnowledgeBase } from "@/hooks/use-knowledge-base";
8
9
  import { useRetrieve } from "@/hooks/use-retrieve";
9
10
  import { RetrievalForm } from "@/components/retrieval/retrieval-form";
@@ -48,20 +49,20 @@ export default function RetrievalClient() {
48
49
  }
49
50
 
50
51
  return (
51
- <div className="grid gap-6 lg:grid-cols-[400px_1fr]">
52
- <div className="space-y-4">
53
- <h3 className="text-lg font-semibold">检索测试</h3>
52
+ <WorkbenchLayout
53
+ asideWidth={400}
54
+ aside={
54
55
  <RetrievalForm
55
56
  knowledgeBaseName={knowledgeBaseName}
56
57
  knowledgeBase={knowledgeBase ?? undefined}
57
58
  onSubmit={handleSubmit}
58
59
  isLoading={retrieve.isPending}
59
60
  />
60
- </div>
61
-
62
- <div>
61
+ }
62
+ >
63
+ <div className="min-h-0 flex-1 overflow-y-auto px-7 py-5 max-md:px-4">
63
64
  <RetrievalResults results={results} elapsedMs={elapsedMs} />
64
65
  </div>
65
- </div>
66
+ </WorkbenchLayout>
66
67
  );
67
68
  }
@@ -29,7 +29,7 @@ export default function SettingsClient() {
29
29
  }
30
30
 
31
31
  return (
32
- <div className="space-y-8 max-w-2xl">
32
+ <div className="max-w-5xl">
33
33
  <KBSettingsForm knowledgeBase={knowledgeBase} />
34
34
  </div>
35
35
  );
@@ -2,7 +2,6 @@ import { redirect } from 'next/navigation';
2
2
 
3
3
  import { listInstances } from '@tablestore/tablestore-agent-shared';
4
4
 
5
- import { BreadcrumbBar } from '@/components/layout/breadcrumb-bar';
6
5
  import { Sidebar } from '@/components/layout/sidebar';
7
6
  import { SidebarMobile } from '@/components/layout/sidebar-mobile';
8
7
  import { SidebarOffset } from '@/components/layout/sidebar-offset';
@@ -45,7 +44,7 @@ export default function DashboardLayout({
45
44
  }
46
45
 
47
46
  return (
48
- <div className="min-h-screen">
47
+ <div className="min-h-screen bg-[hsl(var(--background))]">
49
48
  {/*
50
49
  Skip-to-content link: visually hidden until focused. Keyboard users
51
50
  can press Tab once on the page to jump straight to the main region,
@@ -58,15 +57,9 @@ export default function DashboardLayout({
58
57
  跳转到主内容
59
58
  </a>
60
59
  <Sidebar />
60
+ <SidebarMobile />
61
61
  <SidebarOffset>
62
- <SidebarMobile />
63
- <BreadcrumbBar />
64
- <main
65
- id="main-content"
66
- tabIndex={-1}
67
- aria-label="主内容"
68
- className="mx-auto max-w-350 px-8 py-8 max-md:px-4 animate-in fade-in duration-300"
69
- >
62
+ <main id="main-content" className="min-h-screen px-7 py-5 max-md:px-4">
70
63
  {children}
71
64
  </main>
72
65
  </SidebarOffset>
@@ -1,13 +1,51 @@
1
1
  'use client';
2
2
 
3
- import { useParams } from "next/navigation";
3
+ import { useParams, useSearchParams } from "next/navigation";
4
4
  import { useState } from "react";
5
+ import {
6
+ Brain,
7
+ Database,
8
+ FileClock,
9
+ MessageSquare,
10
+ MoreVertical,
11
+ Search,
12
+ Settings,
13
+ Trash2,
14
+ } from "lucide-react";
15
+
5
16
  import { Skeleton } from "@/components/ui/skeleton";
17
+ import {
18
+ DropdownMenu,
19
+ DropdownMenuContent,
20
+ DropdownMenuItem,
21
+ DropdownMenuTrigger,
22
+ } from "@/components/ui/dropdown-menu";
23
+ import {
24
+ DetailLayout,
25
+ DetailSidebar,
26
+ DetailSidebarBack,
27
+ DetailSidebarHeader,
28
+ DetailSidebarMenu,
29
+ } from "@/components/layout/detail-sidebar";
6
30
  import { useMemoryStore } from "@/hooks/use-memory-store";
7
31
  import { MemoryDeleteDialog } from "@/components/memory/memory-delete-dialog";
8
- import { MemoryHeader } from "@/components/memory/memory-header";
9
32
  import { MemoryScopeBar } from "@/components/memory/memory-scope-bar";
10
- import { MemoryTabNav } from "@/components/memory/memory-tab-nav";
33
+
34
+ const TABS = [
35
+ { label: "长期记忆", segment: "units", icon: <Database className="h-4 w-4" /> },
36
+ { label: "记忆检索", segment: "search", icon: <Search className="h-4 w-4" /> },
37
+ {
38
+ label: "短期记忆",
39
+ segment: "messages",
40
+ icon: <MessageSquare className="h-4 w-4" />,
41
+ },
42
+ {
43
+ label: "请求审计",
44
+ segment: "requests",
45
+ icon: <FileClock className="h-4 w-4" />,
46
+ },
47
+ { label: "设置", segment: "settings", icon: <Settings className="h-4 w-4" /> },
48
+ ] as const;
11
49
 
12
50
  export default function MemoryDetailLayout({
13
51
  children,
@@ -16,40 +54,89 @@ export default function MemoryDetailLayout({
16
54
  }) {
17
55
  const params = useParams<{ store: string }>();
18
56
  const memoryStoreName = decodeURIComponent(params.store);
57
+ const searchParams = useSearchParams();
19
58
  const { data: memoryStore, isLoading } = useMemoryStore(memoryStoreName);
20
59
  const [showDeleteDialog, setShowDeleteDialog] = useState(false);
21
60
 
61
+ const querySuffix = searchParams.toString()
62
+ ? `?${searchParams.toString()}`
63
+ : "";
64
+ const basePath = `/memory/${encodeURIComponent(memoryStoreName)}`;
65
+ const items = TABS.map((tab) => ({
66
+ href: `${basePath}/${tab.segment}${querySuffix}`,
67
+ label: tab.label,
68
+ icon: tab.icon,
69
+ }));
70
+
22
71
  if (isLoading) {
23
72
  return (
24
- <div className="space-y-6">
25
- <div className="space-y-3">
73
+ <DetailLayout sidebar={<MemoryDetailSidebarSkeleton />}>
74
+ <div className="space-y-6">
26
75
  <Skeleton className="h-10 w-64" />
27
- <Skeleton className="h-4 w-96" />
76
+ <Skeleton className="h-28 w-full" />
77
+ <Skeleton className="h-64 w-full" />
28
78
  </div>
29
- <Skeleton className="h-28 w-full" />
30
- <Skeleton className="h-10 w-full" />
31
- <Skeleton className="h-64 w-full" />
32
- </div>
79
+ </DetailLayout>
33
80
  );
34
81
  }
35
82
 
36
83
  if (!memoryStore) {
37
84
  return (
38
- <div className="flex items-center justify-center py-20 text-muted-foreground">
39
- 记忆库不存在或已被删除
40
- </div>
85
+ <DetailLayout sidebar={<MemoryDetailSidebarSkeleton />}>
86
+ <div className="flex items-center justify-center py-20 text-muted-foreground">
87
+ 记忆库不存在或已被删除
88
+ </div>
89
+ </DetailLayout>
41
90
  );
42
91
  }
43
92
 
44
93
  return (
45
- <div className="space-y-6">
46
- <MemoryHeader
47
- memoryStore={memoryStore}
48
- onDelete={() => setShowDeleteDialog(true)}
49
- />
50
- <MemoryScopeBar />
51
- <MemoryTabNav memoryStoreName={memoryStoreName} />
52
- <div>{children}</div>
94
+ <>
95
+ <DetailLayout
96
+ sidebar={
97
+ <DetailSidebar>
98
+ <DetailSidebarHeader
99
+ icon={<Brain />}
100
+ accent="purple"
101
+ name={memoryStore.memoryStoreName}
102
+ typeLabel="记忆库 · MEMORY STORE"
103
+ description={memoryStore.description}
104
+ actions={
105
+ <DropdownMenu>
106
+ <DropdownMenuTrigger asChild>
107
+ <button
108
+ type="button"
109
+ aria-label="更多操作"
110
+ className="flex h-7 w-7 items-center justify-center rounded-md text-[hsl(var(--muted-foreground))] transition-colors hover:bg-[hsl(var(--background))] hover:text-[hsl(var(--foreground))]"
111
+ >
112
+ <MoreVertical className="h-4 w-4" />
113
+ </button>
114
+ </DropdownMenuTrigger>
115
+ <DropdownMenuContent align="end">
116
+ <DropdownMenuItem
117
+ onSelect={(e) => {
118
+ e.preventDefault();
119
+ setShowDeleteDialog(true);
120
+ }}
121
+ className="text-[hsl(var(--destructive))] focus:bg-[hsl(var(--danger-soft))] focus:text-[hsl(var(--destructive))] hover:bg-[hsl(var(--danger-soft))] hover:text-[hsl(var(--destructive))]"
122
+ >
123
+ <Trash2 className="h-3.5 w-3.5" />
124
+ 删除记忆库
125
+ </DropdownMenuItem>
126
+ </DropdownMenuContent>
127
+ </DropdownMenu>
128
+ }
129
+ />
130
+ <DetailSidebarMenu items={items} />
131
+ <DetailSidebarBack href="/memory" label="返回列表" />
132
+ </DetailSidebar>
133
+ }
134
+ >
135
+ <div className="space-y-6">
136
+ <MemoryScopeBar />
137
+ <div>{children}</div>
138
+ </div>
139
+ </DetailLayout>
53
140
 
54
141
  <MemoryDeleteDialog
55
142
  memoryStoreName={memoryStoreName}
@@ -57,6 +144,25 @@ export default function MemoryDetailLayout({
57
144
  onOpenChange={setShowDeleteDialog}
58
145
  redirectToList
59
146
  />
60
- </div>
147
+ </>
148
+ );
149
+ }
150
+
151
+ function MemoryDetailSidebarSkeleton() {
152
+ return (
153
+ <DetailSidebar>
154
+ <div className="space-y-3 px-4 pt-4 pb-4 border-b border-[hsl(var(--border-light))]">
155
+ <Skeleton className="h-9 w-9 rounded-lg" />
156
+ <Skeleton className="h-4 w-3/4" />
157
+ <Skeleton className="h-3 w-1/2" />
158
+ </div>
159
+ <div className="space-y-1 px-2 py-2">
160
+ <Skeleton className="h-8 w-full" />
161
+ <Skeleton className="h-8 w-full" />
162
+ <Skeleton className="h-8 w-full" />
163
+ <Skeleton className="h-8 w-full" />
164
+ <Skeleton className="h-8 w-full" />
165
+ </div>
166
+ </DetailSidebar>
61
167
  );
62
168
  }
@@ -8,6 +8,7 @@ import { buildMemoryScope } from "@/lib/memory";
8
8
  import type { MemorySearchHit } from "@/types/memory";
9
9
  import { MemorySearchForm, type MemorySearchValues } from "@/components/memory/memory-search-form";
10
10
  import { MemorySearchResults } from "@/components/memory/memory-search-results";
11
+ import { WorkbenchLayout } from "@/components/layout/detail-sidebar";
11
12
 
12
13
  export default function MemorySearchPage() {
13
14
  const params = useParams<{ store: string }>();
@@ -37,13 +38,19 @@ export default function MemorySearchPage() {
37
38
  }
38
39
 
39
40
  return (
40
- <div className="grid gap-6 lg:grid-cols-[400px_1fr]">
41
- <MemorySearchForm
42
- scope={scope}
43
- isLoading={search.isPending}
44
- onSubmit={handleSubmit}
45
- />
46
- <MemorySearchResults results={results} elapsedMs={elapsedMs} />
47
- </div>
41
+ <WorkbenchLayout
42
+ asideWidth={400}
43
+ aside={
44
+ <MemorySearchForm
45
+ scope={scope}
46
+ isLoading={search.isPending}
47
+ onSubmit={handleSubmit}
48
+ />
49
+ }
50
+ >
51
+ <div className="min-h-0 flex-1 overflow-y-auto px-7 py-5 max-md:px-4">
52
+ <MemorySearchResults results={results} elapsedMs={elapsedMs} />
53
+ </div>
54
+ </WorkbenchLayout>
48
55
  );
49
56
  }
@@ -87,7 +87,7 @@ export default function ProjectsPage() {
87
87
  {Array.from({ length: 3 }).map((_, index) => (
88
88
  <Skeleton
89
89
  key={index}
90
- className="h-[200px] rounded-xl"
90
+ className="h-[200px] rounded-lg"
91
91
  delay={index * 80}
92
92
  />
93
93
  ))}