@tablestore/tablestore-agent-cli 0.1.8 → 0.2.0

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 (703) hide show
  1. package/dist/commands/dashboard.d.ts.map +1 -1
  2. package/dist/commands/dashboard.js +173 -4
  3. package/dist/commands/dashboard.js.map +1 -1
  4. package/dist/dashboard-runtime/dashboard/.next/BUILD_ID +1 -1
  5. package/dist/dashboard-runtime/dashboard/.next/app-path-routes-manifest.json +2 -0
  6. package/dist/dashboard-runtime/dashboard/.next/build-manifest.json +5 -5
  7. package/dist/dashboard-runtime/dashboard/.next/prerender-manifest.json +3 -3
  8. package/dist/dashboard-runtime/dashboard/.next/required-server-files.json +2 -0
  9. package/dist/dashboard-runtime/dashboard/.next/routes-manifest.json +12 -0
  10. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/chat/page/build-manifest.json +2 -2
  11. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/chat/page.js +3 -3
  12. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/chat/page.js.nft.json +1 -1
  13. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/chat/page_client-reference-manifest.js +1 -1
  14. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/documents/page/build-manifest.json +2 -2
  15. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/documents/page.js +3 -3
  16. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/documents/page.js.nft.json +1 -1
  17. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/documents/page_client-reference-manifest.js +1 -1
  18. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/page/build-manifest.json +2 -2
  19. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/page.js +3 -3
  20. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/page.js.nft.json +1 -1
  21. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/page_client-reference-manifest.js +1 -1
  22. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/qa/page/build-manifest.json +2 -2
  23. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/qa/page.js +3 -3
  24. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/qa/page.js.nft.json +1 -1
  25. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/qa/page_client-reference-manifest.js +1 -1
  26. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/retrieval/page/build-manifest.json +2 -2
  27. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/retrieval/page.js +3 -3
  28. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/retrieval/page.js.nft.json +1 -1
  29. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/retrieval/page_client-reference-manifest.js +1 -1
  30. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/settings/page/build-manifest.json +2 -2
  31. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/settings/page.js +3 -3
  32. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/settings/page.js.nft.json +1 -1
  33. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/settings/page_client-reference-manifest.js +1 -1
  34. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/create/page/build-manifest.json +2 -2
  35. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/create/page.js +3 -3
  36. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/create/page.js.nft.json +1 -1
  37. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/create/page_client-reference-manifest.js +1 -1
  38. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/page/build-manifest.json +2 -2
  39. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/page.js +3 -3
  40. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/page.js.nft.json +1 -1
  41. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/page_client-reference-manifest.js +1 -1
  42. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/[id]/page/build-manifest.json +2 -2
  43. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/[id]/page.js +3 -3
  44. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/[id]/page.js.nft.json +1 -1
  45. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/[id]/page_client-reference-manifest.js +1 -1
  46. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/new/page/build-manifest.json +2 -2
  47. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/new/page.js +4 -4
  48. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/new/page.js.nft.json +1 -1
  49. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/new/page_client-reference-manifest.js +1 -1
  50. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/page/build-manifest.json +2 -2
  51. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/page.js +3 -3
  52. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/page.js.nft.json +1 -1
  53. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/page_client-reference-manifest.js +1 -1
  54. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/messages/page/build-manifest.json +2 -2
  55. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/messages/page.js +3 -3
  56. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/messages/page.js.nft.json +1 -1
  57. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/messages/page_client-reference-manifest.js +1 -1
  58. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/page/build-manifest.json +2 -2
  59. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/page.js +3 -3
  60. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/page.js.nft.json +1 -1
  61. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/page_client-reference-manifest.js +1 -1
  62. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/requests/page/build-manifest.json +2 -2
  63. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/requests/page/react-loadable-manifest.json +1 -1
  64. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/requests/page.js +3 -3
  65. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/requests/page.js.nft.json +1 -1
  66. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/requests/page_client-reference-manifest.js +1 -1
  67. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/search/page/build-manifest.json +2 -2
  68. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/search/page.js +3 -3
  69. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/search/page.js.nft.json +1 -1
  70. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/search/page_client-reference-manifest.js +1 -1
  71. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/settings/page/build-manifest.json +2 -2
  72. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/settings/page.js +3 -3
  73. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/settings/page.js.nft.json +1 -1
  74. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/settings/page_client-reference-manifest.js +1 -1
  75. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/units/page/build-manifest.json +2 -2
  76. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/units/page.js +3 -3
  77. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/units/page.js.nft.json +1 -1
  78. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/units/page_client-reference-manifest.js +1 -1
  79. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/create/page/build-manifest.json +2 -2
  80. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/create/page.js +3 -3
  81. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/create/page.js.nft.json +1 -1
  82. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/create/page_client-reference-manifest.js +1 -1
  83. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/page/build-manifest.json +2 -2
  84. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/page.js +3 -3
  85. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/page.js.nft.json +1 -1
  86. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/page_client-reference-manifest.js +1 -1
  87. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/projects/page/build-manifest.json +2 -2
  88. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/projects/page.js +3 -3
  89. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/projects/page.js.nft.json +1 -1
  90. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/projects/page_client-reference-manifest.js +1 -1
  91. package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error/page/build-manifest.json +2 -2
  92. package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.html +1 -1
  93. package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.rsc +1 -1
  94. package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  95. package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  96. package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  97. package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  98. package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  99. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found/page/build-manifest.json +2 -2
  100. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found/page.js +1 -1
  101. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found/page.js.nft.json +1 -1
  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 +20 -19
  105. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_full.segment.rsc +20 -19
  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 -9
  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 +2 -2
  112. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/auth/status/route.js.nft.json +1 -1
  113. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/auth/token/route.js +2 -2
  114. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/auth/token/route.js.nft.json +1 -1
  115. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/route.js +2 -2
  116. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/route.js.nft.json +1 -1
  117. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/token/route.js +2 -2
  118. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/token/route.js.nft.json +1 -1
  119. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/use/route.js +2 -2
  120. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/use/route.js.nft.json +1 -1
  121. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/route.js +2 -2
  122. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/route.js.nft.json +1 -1
  123. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/chunks/route.js +2 -2
  124. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/chunks/route.js.nft.json +1 -1
  125. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/[docId]/chunks/route.js +2 -2
  126. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/[docId]/chunks/route.js.nft.json +1 -1
  127. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/[docId]/route.js +2 -2
  128. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/[docId]/route.js.nft.json +1 -1
  129. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/route.js +2 -2
  130. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/route.js.nft.json +1 -1
  131. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/upload/route.js +2 -2
  132. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/upload/route.js.nft.json +1 -1
  133. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/retrieve/route.js +2 -2
  134. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/retrieve/route.js.nft.json +1 -1
  135. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/route.js +2 -2
  136. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/route.js.nft.json +1 -1
  137. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/route.js +2 -2
  138. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/route.js.nft.json +1 -1
  139. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/chat/route.js +2 -2
  140. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/chat/route.js.nft.json +1 -1
  141. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/models/route.js +2 -2
  142. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/models/route.js.nft.json +1 -1
  143. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/route.js +2 -2
  144. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/route.js.nft.json +1 -1
  145. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/test/route.js +2 -2
  146. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/test/route.js.nft.json +1 -1
  147. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/route.js +2 -2
  148. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/route.js.nft.json +1 -1
  149. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/logs/client/route/app-paths-manifest.json +3 -0
  150. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/logs/client/route/build-manifest.json +9 -0
  151. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/logs/client/route/server-reference-manifest.json +4 -0
  152. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/logs/client/route.js +6 -0
  153. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/logs/client/route.js.map +5 -0
  154. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/logs/client/route.js.nft.json +1 -0
  155. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/logs/client/route_client-reference-manifest.js +3 -0
  156. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/messages/route.js +2 -2
  157. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/messages/route.js.nft.json +1 -1
  158. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/requests/route.js +2 -2
  159. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/requests/route.js.nft.json +1 -1
  160. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/route.js +2 -2
  161. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/route.js.nft.json +1 -1
  162. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/search/route.js +2 -2
  163. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/search/route.js.nft.json +1 -1
  164. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/units/[memoryId]/route.js +2 -2
  165. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/units/[memoryId]/route.js.nft.json +1 -1
  166. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/units/route.js +2 -2
  167. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/units/route.js.nft.json +1 -1
  168. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/route.js +2 -2
  169. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/route.js.nft.json +1 -1
  170. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/runtime/context/route/app-paths-manifest.json +3 -0
  171. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/runtime/context/route/build-manifest.json +9 -0
  172. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/runtime/context/route/server-reference-manifest.json +4 -0
  173. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/runtime/context/route.js +6 -0
  174. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/runtime/context/route.js.map +5 -0
  175. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/runtime/context/route.js.nft.json +1 -0
  176. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/runtime/context/route_client-reference-manifest.js +3 -0
  177. package/dist/dashboard-runtime/dashboard/.next/server/app/index.html +1 -1
  178. package/dist/dashboard-runtime/dashboard/.next/server/app/index.rsc +19 -18
  179. package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  180. package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/_full.segment.rsc +19 -18
  181. package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/_head.segment.rsc +3 -3
  182. package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/_index.segment.rsc +10 -9
  183. package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  184. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding/page/build-manifest.json +2 -2
  185. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding/page.js +1 -1
  186. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding/page.js.nft.json +1 -1
  187. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding/page_client-reference-manifest.js +1 -1
  188. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.html +1 -1
  189. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.rsc +23 -22
  190. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/_full.segment.rsc +23 -22
  191. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/_head.segment.rsc +3 -3
  192. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/_index.segment.rsc +10 -9
  193. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/_tree.segment.rsc +2 -2
  194. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/onboarding/__PAGE__.segment.rsc +4 -4
  195. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/onboarding.segment.rsc +4 -4
  196. package/dist/dashboard-runtime/dashboard/.next/server/app/page/build-manifest.json +2 -2
  197. package/dist/dashboard-runtime/dashboard/.next/server/app/page.js +1 -1
  198. package/dist/dashboard-runtime/dashboard/.next/server/app/page.js.nft.json +1 -1
  199. package/dist/dashboard-runtime/dashboard/.next/server/app/page_client-reference-manifest.js +1 -1
  200. package/dist/dashboard-runtime/dashboard/.next/server/app-paths-manifest.json +2 -0
  201. package/dist/dashboard-runtime/dashboard/.next/server/chunks/0p91_next_dist_esm_build_templates_app-route_0n~ec7s.js +6 -6
  202. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0.gylau._.js +3 -0
  203. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0.hvkwy._.js +3 -0
  204. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0.qtdn4._.js +3 -0
  205. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__02p1x3t._.js +3 -0
  206. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__04dd04u._.js +3 -0
  207. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__04ujbw-._.js +3 -0
  208. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__04zbudf._.js +3 -0
  209. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__05eryp~._.js +3 -0
  210. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__06fva9g._.js +3 -0
  211. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0byveuc._.js +3 -0
  212. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0cee_lo._.js +3 -0
  213. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0cyd2qb._.js +3 -0
  214. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0ecs-9r._.js +3 -0
  215. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0ejcow5._.js +3 -0
  216. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0fglxiw._.js +3 -0
  217. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0i1_p1s._.js +3 -0
  218. package/dist/dashboard-runtime/dashboard/.next/server/chunks/{[root-of-the-server]__0f990w9._.js → [root-of-the-server]__0lvi0g-._.js} +14 -12
  219. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0no9qm0._.js +3 -0
  220. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0q9fgt6._.js +3 -0
  221. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0rx9hon._.js +3 -0
  222. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0w_ig2a._.js +3 -0
  223. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0zmo~nd._.js +3 -0
  224. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__11s_zx6._.js +3 -0
  225. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__11wq90l._.js +3 -0
  226. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__126srko._.js +3 -0
  227. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__12e1t6o._.js +3 -0
  228. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__12ylr4n._.js +3 -0
  229. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__13g_f9w._.js +3 -0
  230. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__13~-fxp._.js +3 -0
  231. package/dist/dashboard-runtime/dashboard/.next/server/chunks/dashboard__next-internal_server_app_api_v1_logs_client_route_actions_0tnhyc7.js +3 -0
  232. package/dist/dashboard-runtime/dashboard/.next/server/chunks/dashboard__next-internal_server_app_api_v1_runtime_context_route_actions_0d9d6g_.js +3 -0
  233. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/0b1r_app_(dashboard)_knowledge-base_[name]_documents_documents-client_tsx_0g2uxmt._.js +2 -2
  234. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/0e95_src_app_(dashboard)_knowledge-base_[name]_settings_settings-client_tsx_13312zk._.js +1 -1
  235. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/0p91_next_dist_shared_lib_deployment-id_0uu7yq4.js +3 -0
  236. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[externals]__0tqph4u._.js +3 -0
  237. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0aqzu8w._.js +3 -0
  238. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0id.4_g._.js +3 -0
  239. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0jb9ccl._.js +3 -0
  240. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0jhpb-b._.js +3 -0
  241. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0p7j-9i._.js +3 -0
  242. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__10rkv6z._.js +3 -0
  243. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0.1szyw._.js +3 -0
  244. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_01-2v37._.js +3 -0
  245. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0251rsp._.js +7 -0
  246. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_038vjn1._.js +3 -0
  247. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_03cxnik._.js +3 -0
  248. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_04f2u4t._.js +3 -0
  249. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_06tznmj._.js +3 -0
  250. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_09yzbcp._.js +1 -1
  251. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_09y~hs8._.js +3 -0
  252. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0_ow0x1._.js +3 -0
  253. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0ddbh97._.js +1 -1
  254. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0f4u0.1._.js +3 -0
  255. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0fj8l5g._.js +3 -0
  256. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0hnw-ok._.js +3 -0
  257. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0j-q~ro._.js +3 -0
  258. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0jghj2_._.js +3 -0
  259. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0l~-9i0._.js +3 -0
  260. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0mtqe24._.js +3 -0
  261. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0n4gd_6._.js +3 -0
  262. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0o665bf._.js +1 -1
  263. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0q748rf._.js +1 -1
  264. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0t373jc._.js +3 -0
  265. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0tej2s.._.js +1 -1
  266. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0u4elhp._.js +3 -0
  267. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0vtm7dh._.js +3 -0
  268. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0xdioxg._.js +3 -0
  269. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_12guzbo._.js +3 -0
  270. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_12r9c8h._.js +3 -0
  271. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_00ofp7q._.js +3 -0
  272. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_065m1.j._.js +1 -1
  273. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0ejgygh._.js +1 -1
  274. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0jns2ew._.js +3 -0
  275. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0o9jhcn._.js +9 -0
  276. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0xf3ffa._.js +3 -0
  277. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0y49vhd._.js +1 -1
  278. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_10dsqx~._.js +1 -1
  279. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_knowledge-base_create_page_tsx_0916~g-._.js +1 -1
  280. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_memory_[store]_settings_page_tsx_0y26.xu._.js +1 -1
  281. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_memory_[store]_units_page_tsx_0.6xnei._.js +1 -1
  282. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_error_tsx_01x7ppm._.js +1 -1
  283. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_components_0ls1exu._.js +3 -0
  284. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_components_0ugdjlb._.js +3 -0
  285. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_components_shared_relative-time_tsx_0b7s9rc._.js +1 -1
  286. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_components_ui_dropdown-menu_tsx_0c~d-fd._.js +1 -1
  287. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_components_ui_select_tsx_0ys.i47._.js +1 -1
  288. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_providers_runtime-context-provider_tsx_0wmj66z._.js +3 -0
  289. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/node_modules__pnpm_00arje5._.js +3 -0
  290. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/node_modules__pnpm_0ld4qfm._.js +3 -0
  291. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/node_modules__pnpm_125b4co._.js +3 -0
  292. package/dist/dashboard-runtime/dashboard/.next/server/functions-config-manifest.json +28 -1
  293. package/dist/dashboard-runtime/dashboard/.next/server/middleware-build-manifest.js +5 -5
  294. package/dist/dashboard-runtime/dashboard/.next/server/pages/404.html +1 -1
  295. package/dist/dashboard-runtime/dashboard/.next/server/pages/500.html +1 -1
  296. package/dist/dashboard-runtime/dashboard/.next/server/server-reference-manifest.js +1 -1
  297. package/dist/dashboard-runtime/dashboard/.next/server/server-reference-manifest.json +1 -1
  298. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0-2yqm.ft6yzy.js +1 -0
  299. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0-ov0wxgu5b65.js +1 -0
  300. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0.2e8ciiogw04.js +1 -0
  301. package/dist/dashboard-runtime/dashboard/.next/static/chunks/00-qnlax_4630.js +1 -0
  302. package/dist/dashboard-runtime/dashboard/.next/static/chunks/034uozc1ki09_.js +1 -0
  303. package/dist/dashboard-runtime/dashboard/.next/static/chunks/03zdsc.dicedw.js +1 -0
  304. package/dist/dashboard-runtime/dashboard/.next/static/chunks/069zf4m5f.se2.js +1 -0
  305. package/dist/dashboard-runtime/dashboard/.next/static/chunks/08e9vvmr~0bqr.js +1 -0
  306. package/dist/dashboard-runtime/dashboard/.next/static/chunks/08i99xsvs8o5s.js +1 -0
  307. package/dist/dashboard-runtime/dashboard/.next/static/chunks/08tdws.ontiw1.js +1 -0
  308. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0azwigiwuhh08.css +1 -0
  309. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0b54rtt1-cxht.js +1 -0
  310. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0bpginsuceywq.js +1 -0
  311. package/dist/dashboard-runtime/dashboard/.next/static/chunks/{0h7d69g2fdgs6.js → 0cdo38.8y_jr2.js} +6 -6
  312. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0cto67_iw~p9z.js +1 -0
  313. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0cy.fvgx7dgqx.js +4 -0
  314. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0fa.nak91jfo-.js +1 -0
  315. package/dist/dashboard-runtime/dashboard/.next/static/chunks/{07q4gw5gnh3.d.js → 0fagnytrt.3oe.js} +2 -2
  316. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0fv6q06wgazh_.js +1 -0
  317. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0g9y74cipd10n.js +1 -0
  318. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0ga6neugwmh.1.js +5 -0
  319. package/dist/dashboard-runtime/dashboard/.next/static/chunks/{123yjh849.vzp.js → 0gjljpk5qgdmz.js} +1 -1
  320. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0h77.bqx5ltem.js +1 -0
  321. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0ix_suxk3spjj.js +1 -0
  322. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0k-x6_7dhqb~c.js +1 -0
  323. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0lrw.bnws62y9.js +1 -0
  324. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0mea2ylxe.umh.js +1 -0
  325. package/dist/dashboard-runtime/dashboard/.next/static/chunks/{01k-.wkndubwy.js → 0n42fh.zwyk35.js} +6 -6
  326. package/dist/dashboard-runtime/dashboard/.next/static/chunks/{0dqag6qsw7xv8.js → 0px2r0l_3kp2t.js} +1 -1
  327. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0q6lk_p74rti7.js +1 -0
  328. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0t0yqi68~eil6.js +1 -0
  329. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0td9nhfbpbmyt.js +1 -0
  330. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0th7u6qvdy3x2.js +1 -0
  331. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0u39cc6mmeqb3.js +1 -0
  332. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0u6_s-0w8.yr..js +1 -0
  333. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0uay29z9qqouw.js +1 -0
  334. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0v0e.nl_9fjba.js +1 -0
  335. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0wd0_x8u.jzur.js +1 -0
  336. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0wf-nssu2qd_2.js +1 -0
  337. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0x7pw1zo7nxno.js +1 -0
  338. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0~kfzxrhgbkaz.js +1 -0
  339. package/dist/dashboard-runtime/dashboard/.next/static/chunks/{05_578ka0ga8d.js → 12pz6ag1s~te_.js} +1 -1
  340. package/dist/dashboard-runtime/dashboard/.next/static/chunks/15bzqpm440jvz.js +1 -0
  341. package/dist/dashboard-runtime/dashboard/.next/static/chunks/{turbopack-0jhqjurvu9x3y.js → turbopack-0ybyy.9-.w~ub.js} +1 -1
  342. package/dist/dashboard-runtime/dashboard/components.json +20 -0
  343. package/dist/dashboard-runtime/dashboard/instrumentation-node.ts +14 -0
  344. package/dist/dashboard-runtime/dashboard/instrumentation.ts +18 -0
  345. package/dist/dashboard-runtime/dashboard/next.config.ts +56 -0
  346. package/dist/dashboard-runtime/dashboard/postcss.config.mjs +8 -0
  347. package/dist/dashboard-runtime/dashboard/server.js +1 -1
  348. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/chat/error.tsx +44 -0
  349. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/chat/loading.tsx +29 -0
  350. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/chat/page.tsx +373 -0
  351. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/error.tsx +69 -0
  352. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/knowledge-base/[name]/documents/documents-client.tsx +22 -12
  353. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/knowledge-base/[name]/layout-client.tsx +191 -40
  354. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/knowledge-base/[name]/qa/page.tsx +23 -20
  355. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/knowledge-base/[name]/retrieval/retrieval-client.tsx +8 -7
  356. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/layout.tsx +68 -0
  357. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/loading.tsx +26 -0
  358. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/layout.tsx +168 -0
  359. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/messages/_helpers.ts +109 -0
  360. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/messages/page.tsx +309 -0
  361. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/page.tsx +26 -0
  362. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/requests/_helpers.ts +234 -0
  363. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/requests/page.tsx +323 -0
  364. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/search/page.tsx +56 -0
  365. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/settings/page.tsx +71 -0
  366. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/units/page.tsx +277 -0
  367. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/create/page.tsx +30 -0
  368. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/error.tsx +44 -0
  369. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/loading.tsx +26 -0
  370. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/page.tsx +27 -0
  371. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/projects/error.tsx +43 -0
  372. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/projects/loading.tsx +25 -0
  373. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/projects/page.tsx +174 -0
  374. package/dist/dashboard-runtime/dashboard/src/app/api/v1/auth/status/route.ts +53 -0
  375. package/dist/dashboard-runtime/dashboard/src/app/api/v1/auth/token/route.ts +113 -0
  376. package/dist/dashboard-runtime/dashboard/src/app/api/v1/instances/[name]/route.ts +196 -0
  377. package/dist/dashboard-runtime/dashboard/src/app/api/v1/instances/[name]/token/route.ts +80 -0
  378. package/dist/dashboard-runtime/dashboard/src/app/api/v1/instances/[name]/use/route.ts +91 -0
  379. package/dist/dashboard-runtime/dashboard/src/app/api/v1/instances/route.ts +274 -0
  380. package/dist/dashboard-runtime/dashboard/src/app/api/v1/knowledge-bases/[name]/chunks/route.ts +3 -0
  381. package/dist/dashboard-runtime/dashboard/src/app/api/v1/knowledge-bases/[name]/documents/[docId]/chunks/route.ts +3 -0
  382. package/dist/dashboard-runtime/dashboard/src/app/api/v1/knowledge-bases/[name]/documents/[docId]/route.ts +3 -0
  383. package/dist/dashboard-runtime/dashboard/src/app/api/v1/knowledge-bases/[name]/documents/route.ts +3 -0
  384. package/dist/dashboard-runtime/dashboard/src/app/api/v1/knowledge-bases/[name]/documents/upload/route.ts +3 -0
  385. package/dist/dashboard-runtime/dashboard/src/app/api/v1/knowledge-bases/[name]/retrieve/route.ts +3 -0
  386. package/dist/dashboard-runtime/dashboard/src/app/api/v1/knowledge-bases/[name]/route.ts +3 -0
  387. package/dist/dashboard-runtime/dashboard/src/app/api/v1/knowledge-bases/route.ts +3 -0
  388. package/dist/dashboard-runtime/dashboard/src/app/api/v1/llm/chat/route.ts +455 -0
  389. package/dist/dashboard-runtime/dashboard/src/app/api/v1/llm/providers/[id]/models/route.ts +46 -0
  390. package/dist/dashboard-runtime/dashboard/src/app/api/v1/llm/providers/[id]/route.ts +83 -0
  391. package/dist/dashboard-runtime/dashboard/src/app/api/v1/llm/providers/[id]/test/route.ts +40 -0
  392. package/dist/dashboard-runtime/dashboard/src/app/api/v1/llm/providers/route.ts +70 -0
  393. package/dist/dashboard-runtime/dashboard/src/app/api/v1/logs/client/route.ts +70 -0
  394. package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/_scope.ts +84 -0
  395. package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/messages/route.ts +64 -0
  396. package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/requests/route.ts +65 -0
  397. package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/route.ts +78 -0
  398. package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/search/route.ts +49 -0
  399. package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/units/[memoryId]/route.ts +126 -0
  400. package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/units/route.ts +85 -0
  401. package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/route.ts +60 -0
  402. package/dist/dashboard-runtime/dashboard/src/app/api/v1/runtime/context/route.ts +26 -0
  403. package/dist/dashboard-runtime/dashboard/src/app/error.tsx +84 -0
  404. package/dist/dashboard-runtime/dashboard/src/app/globals.css +282 -0
  405. package/dist/dashboard-runtime/dashboard/src/app/layout.tsx +38 -0
  406. package/dist/dashboard-runtime/dashboard/src/app/not-found.tsx +1 -1
  407. package/dist/dashboard-runtime/dashboard/src/app/onboarding/error.tsx +54 -0
  408. package/dist/dashboard-runtime/dashboard/src/app/onboarding/layout.tsx +18 -0
  409. package/dist/dashboard-runtime/dashboard/src/app/onboarding/page.tsx +62 -0
  410. package/dist/dashboard-runtime/dashboard/src/app/page.tsx +10 -0
  411. package/dist/dashboard-runtime/dashboard/src/components/chat/add-mount-row.tsx +48 -39
  412. package/dist/dashboard-runtime/dashboard/src/components/documents/doc-chunks-dialog.tsx +62 -29
  413. package/dist/dashboard-runtime/dashboard/src/components/documents/doc-columns.tsx +57 -46
  414. package/dist/dashboard-runtime/dashboard/src/components/documents/doc-table.tsx +2 -4
  415. package/dist/dashboard-runtime/dashboard/src/components/documents/doc-toolbar.tsx +1 -1
  416. package/dist/dashboard-runtime/dashboard/src/components/documents/doc-upload-dialog.tsx +66 -3
  417. package/dist/dashboard-runtime/dashboard/src/components/instance/connect-instance-form.tsx +10 -2
  418. package/dist/dashboard-runtime/dashboard/src/components/instance/edit-instance-dialog.tsx +6 -2
  419. package/dist/dashboard-runtime/dashboard/src/components/instance/project-card.tsx +195 -0
  420. package/dist/dashboard-runtime/dashboard/src/components/knowledge-base/kb-list.tsx +6 -1
  421. package/dist/dashboard-runtime/dashboard/src/components/layout/detail-sidebar.tsx +331 -0
  422. package/dist/dashboard-runtime/dashboard/src/components/layout/help-link.tsx +58 -0
  423. package/dist/dashboard-runtime/dashboard/src/components/layout/page-header.tsx +130 -11
  424. package/dist/dashboard-runtime/dashboard/src/components/layout/sidebar-instance-card.tsx +203 -0
  425. package/dist/dashboard-runtime/dashboard/src/components/layout/sidebar-item.tsx +14 -11
  426. package/dist/dashboard-runtime/dashboard/src/components/layout/sidebar-mobile.tsx +37 -29
  427. package/dist/dashboard-runtime/dashboard/src/components/layout/sidebar-usage-stats.tsx +26 -0
  428. package/dist/dashboard-runtime/dashboard/src/components/layout/sidebar.tsx +138 -0
  429. package/dist/dashboard-runtime/dashboard/src/components/layout/theme-toggle.tsx +161 -41
  430. package/dist/dashboard-runtime/dashboard/src/components/logging/client-error-reporter.tsx +59 -0
  431. package/dist/dashboard-runtime/dashboard/src/components/memory/memory-store-list.tsx +6 -1
  432. package/dist/dashboard-runtime/dashboard/src/components/memory/requests-histogram-chart.tsx +2 -2
  433. package/dist/dashboard-runtime/dashboard/src/components/qa/markdown.tsx +77 -0
  434. package/dist/dashboard-runtime/dashboard/src/components/qa/qa-chat-panel.tsx +1 -1
  435. package/dist/dashboard-runtime/dashboard/src/components/retrieval/retrieval-form.tsx +100 -17
  436. package/dist/dashboard-runtime/dashboard/src/components/retrieval/retrieval-rerank-fields.tsx +60 -23
  437. package/dist/dashboard-runtime/dashboard/src/components/shared/empty-state.tsx +1 -1
  438. package/dist/dashboard-runtime/dashboard/src/components/shared/error-state.tsx +54 -0
  439. package/dist/dashboard-runtime/dashboard/src/components/shared/llm-model-selector.tsx +160 -70
  440. package/dist/dashboard-runtime/dashboard/src/components/shared/relative-time.tsx +30 -6
  441. package/dist/dashboard-runtime/dashboard/src/components/ui/badge.tsx +47 -0
  442. package/dist/dashboard-runtime/dashboard/src/components/ui/button.tsx +58 -0
  443. package/dist/dashboard-runtime/dashboard/src/components/ui/card.tsx +103 -0
  444. package/dist/dashboard-runtime/dashboard/src/components/ui/chat-bubble.tsx +60 -0
  445. package/dist/dashboard-runtime/dashboard/src/components/ui/checkbox.tsx +28 -0
  446. package/dist/dashboard-runtime/dashboard/src/components/ui/collapsible.tsx +11 -0
  447. package/dist/dashboard-runtime/dashboard/src/components/ui/command.tsx +153 -0
  448. package/dist/dashboard-runtime/dashboard/src/components/ui/data-card.tsx +57 -0
  449. package/dist/dashboard-runtime/dashboard/src/components/ui/detail-section.tsx +40 -0
  450. package/dist/dashboard-runtime/dashboard/src/components/ui/dialog.tsx +127 -0
  451. package/dist/dashboard-runtime/dashboard/src/components/ui/dropdown-menu.tsx +6 -6
  452. package/dist/dashboard-runtime/dashboard/src/components/ui/empty-state.tsx +42 -0
  453. package/dist/dashboard-runtime/dashboard/src/components/ui/filter-pill.tsx +90 -0
  454. package/dist/dashboard-runtime/dashboard/src/components/ui/form.tsx +178 -0
  455. package/dist/dashboard-runtime/dashboard/src/components/ui/input.tsx +26 -0
  456. package/dist/dashboard-runtime/dashboard/src/components/ui/item-card.tsx +88 -0
  457. package/dist/dashboard-runtime/dashboard/src/components/ui/label.tsx +24 -0
  458. package/dist/dashboard-runtime/dashboard/src/components/ui/memory-row.tsx +63 -0
  459. package/dist/dashboard-runtime/dashboard/src/components/ui/mini-stat.tsx +48 -0
  460. package/dist/dashboard-runtime/dashboard/src/components/ui/nav-tab-bar.tsx +60 -0
  461. package/dist/dashboard-runtime/dashboard/src/components/ui/playground-shell.tsx +69 -0
  462. package/dist/dashboard-runtime/dashboard/src/components/ui/popover.tsx +34 -0
  463. package/dist/dashboard-runtime/dashboard/src/components/ui/result-row.tsx +37 -0
  464. package/dist/dashboard-runtime/dashboard/src/components/ui/scope-tag.tsx +30 -0
  465. package/dist/dashboard-runtime/dashboard/src/components/ui/select.tsx +163 -0
  466. package/dist/dashboard-runtime/dashboard/src/components/ui/separator.tsx +31 -0
  467. package/dist/dashboard-runtime/dashboard/src/components/ui/sheet.tsx +129 -0
  468. package/dist/dashboard-runtime/dashboard/src/components/ui/skeleton.tsx +49 -0
  469. package/dist/dashboard-runtime/dashboard/src/components/ui/slider.tsx +28 -0
  470. package/dist/dashboard-runtime/dashboard/src/components/ui/sonner.tsx +29 -0
  471. package/dist/dashboard-runtime/dashboard/src/components/ui/stat-card.tsx +58 -0
  472. package/dist/dashboard-runtime/dashboard/src/components/ui/switch.tsx +66 -0
  473. package/dist/dashboard-runtime/dashboard/src/components/ui/table.tsx +127 -0
  474. package/dist/dashboard-runtime/dashboard/src/components/ui/tabs.tsx +69 -0
  475. package/dist/dashboard-runtime/dashboard/src/components/ui/textarea.tsx +25 -0
  476. package/dist/dashboard-runtime/dashboard/src/components/ui/tooltip.tsx +30 -0
  477. package/dist/dashboard-runtime/dashboard/src/components/ui/usage-card.tsx +43 -0
  478. package/dist/dashboard-runtime/dashboard/src/config/navigation.ts +80 -0
  479. package/dist/dashboard-runtime/dashboard/src/hooks/use-active-instance.ts +20 -0
  480. package/dist/dashboard-runtime/dashboard/src/hooks/use-add-memory.ts +3 -4
  481. package/dist/dashboard-runtime/dashboard/src/hooks/use-chat-history.ts +212 -99
  482. package/dist/dashboard-runtime/dashboard/src/hooks/use-create-kb.ts +2 -1
  483. package/dist/dashboard-runtime/dashboard/src/hooks/use-create-llm-provider.ts +2 -3
  484. package/dist/dashboard-runtime/dashboard/src/hooks/use-create-memory-store.ts +2 -1
  485. package/dist/dashboard-runtime/dashboard/src/hooks/use-delete-documents.ts +10 -5
  486. package/dist/dashboard-runtime/dashboard/src/hooks/use-delete-kb.ts +2 -1
  487. package/dist/dashboard-runtime/dashboard/src/hooks/use-delete-llm-provider.ts +2 -3
  488. package/dist/dashboard-runtime/dashboard/src/hooks/use-delete-memory-store.ts +2 -1
  489. package/dist/dashboard-runtime/dashboard/src/hooks/use-delete-memory-unit.ts +3 -3
  490. package/dist/dashboard-runtime/dashboard/src/hooks/use-documents.ts +7 -5
  491. package/dist/dashboard-runtime/dashboard/src/hooks/use-instances.ts +38 -19
  492. package/dist/dashboard-runtime/dashboard/src/hooks/use-knowledge-base.ts +5 -2
  493. package/dist/dashboard-runtime/dashboard/src/hooks/use-knowledge-bases.ts +5 -1
  494. package/dist/dashboard-runtime/dashboard/src/hooks/use-llm-provider-models.ts +5 -2
  495. package/dist/dashboard-runtime/dashboard/src/hooks/use-llm-provider.ts +5 -2
  496. package/dist/dashboard-runtime/dashboard/src/hooks/use-llm-providers.ts +5 -1
  497. package/dist/dashboard-runtime/dashboard/src/hooks/use-memory-messages.ts +12 -6
  498. package/dist/dashboard-runtime/dashboard/src/hooks/use-memory-requests.ts +12 -2
  499. package/dist/dashboard-runtime/dashboard/src/hooks/use-memory-store.ts +5 -2
  500. package/dist/dashboard-runtime/dashboard/src/hooks/use-memory-stores.ts +5 -1
  501. package/dist/dashboard-runtime/dashboard/src/hooks/use-memory-unit.ts +16 -2
  502. package/dist/dashboard-runtime/dashboard/src/hooks/use-memory-units.ts +11 -2
  503. package/dist/dashboard-runtime/dashboard/src/hooks/use-qa-chat.ts +2 -0
  504. package/dist/dashboard-runtime/dashboard/src/hooks/use-update-kb.ts +3 -5
  505. package/dist/dashboard-runtime/dashboard/src/hooks/use-update-llm-provider.ts +2 -4
  506. package/dist/dashboard-runtime/dashboard/src/hooks/use-update-memory-store.ts +3 -5
  507. package/dist/dashboard-runtime/dashboard/src/hooks/use-update-memory-unit.ts +3 -2
  508. package/dist/dashboard-runtime/dashboard/src/hooks/use-upload-documents.ts +26 -7
  509. package/dist/dashboard-runtime/dashboard/src/lib/constants.ts +22 -0
  510. package/dist/dashboard-runtime/dashboard/src/lib/fonts.ts +9 -0
  511. package/dist/dashboard-runtime/dashboard/src/lib/memory.ts +69 -0
  512. package/dist/dashboard-runtime/dashboard/src/lib/normalize-oss-endpoint.ts +28 -0
  513. package/dist/dashboard-runtime/dashboard/src/lib/query-keys.ts +147 -0
  514. package/dist/dashboard-runtime/dashboard/src/lib/server/api-helpers.ts +193 -9
  515. package/dist/dashboard-runtime/dashboard/src/lib/server/chat-project-context.ts +17 -0
  516. package/dist/dashboard-runtime/dashboard/src/lib/server/runtime-context.ts +108 -0
  517. package/dist/dashboard-runtime/dashboard/src/lib/server/sdk-client.ts +250 -22
  518. package/dist/dashboard-runtime/dashboard/src/lib/utils.ts +15 -0
  519. package/dist/dashboard-runtime/dashboard/src/providers/query-provider.tsx +4 -1
  520. package/dist/dashboard-runtime/dashboard/src/providers/runtime-context-provider.tsx +237 -0
  521. package/dist/dashboard-runtime/dashboard/src/schemas/common.ts +8 -0
  522. package/dist/dashboard-runtime/dashboard/src/schemas/document.ts +28 -0
  523. package/dist/dashboard-runtime/dashboard/src/schemas/instance.ts +107 -0
  524. package/dist/dashboard-runtime/dashboard/src/schemas/llm-chat.ts +1 -0
  525. package/dist/dashboard-runtime/dashboard/src/schemas/retrieval.ts +28 -0
  526. package/dist/dashboard-runtime/dashboard/src/services/api-client.ts +138 -33
  527. package/dist/dashboard-runtime/dashboard/src/services/auth.ts +18 -0
  528. package/dist/dashboard-runtime/dashboard/src/services/chunks.ts +49 -0
  529. package/dist/dashboard-runtime/dashboard/src/services/documents.ts +208 -0
  530. package/dist/dashboard-runtime/dashboard/src/services/instances.ts +71 -0
  531. package/dist/dashboard-runtime/dashboard/src/services/memory.ts +158 -0
  532. package/dist/dashboard-runtime/dashboard/src/services/retrieval.ts +16 -0
  533. package/dist/dashboard-runtime/dashboard/src/services/runtime-context.ts +8 -0
  534. package/dist/dashboard-runtime/dashboard/src/types/api.ts +18 -0
  535. package/dist/dashboard-runtime/dashboard/src/types/instance.ts +68 -0
  536. package/dist/dashboard-runtime/dashboard/src/types/llm-chat.ts +2 -0
  537. package/dist/dashboard-runtime/dashboard/src/types/memory.ts +106 -0
  538. package/dist/dashboard-runtime/dashboard/src/types/retrieval.ts +43 -0
  539. package/dist/dashboard-runtime/dashboard/src/types/runtime-context.ts +12 -0
  540. package/dist/dashboard-runtime/dashboard/tailwind.config.ts +127 -0
  541. package/dist/dashboard-runtime/dashboard/tsconfig.json +43 -0
  542. package/dist/dashboard-runtime/dashboard/vitest.config.mjs +12 -0
  543. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.d.ts +1 -0
  544. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.d.ts.map +1 -1
  545. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.js +64 -20
  546. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.js.map +1 -1
  547. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.d.ts +1 -0
  548. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.d.ts.map +1 -1
  549. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.js +62 -18
  550. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.js.map +1 -1
  551. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/tsconfig.tsbuildinfo +1 -1
  552. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/config.d.ts +1 -0
  553. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/config.d.ts.map +1 -1
  554. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/config.js +19 -0
  555. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/config.js.map +1 -1
  556. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/constants.d.ts.map +1 -1
  557. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/constants.js +4 -2
  558. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/constants.js.map +1 -1
  559. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/index.d.ts +1 -0
  560. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/index.d.ts.map +1 -1
  561. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/index.js +1 -0
  562. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/index.js.map +1 -1
  563. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/logging.d.ts +78 -0
  564. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/logging.d.ts.map +1 -0
  565. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/logging.js +398 -0
  566. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/logging.js.map +1 -0
  567. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/tsconfig.tsbuildinfo +1 -1
  568. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.d.ts +1 -0
  569. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.d.ts.map +1 -1
  570. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.js +64 -20
  571. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.js.map +1 -1
  572. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.d.ts +1 -0
  573. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.d.ts.map +1 -1
  574. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.js +62 -18
  575. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.js.map +1 -1
  576. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/tsconfig.tsbuildinfo +1 -1
  577. package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/config.d.ts +1 -0
  578. package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/config.d.ts.map +1 -1
  579. package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/config.js +19 -0
  580. package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/config.js.map +1 -1
  581. package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/constants.d.ts.map +1 -1
  582. package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/constants.js +4 -2
  583. package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/constants.js.map +1 -1
  584. package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/index.d.ts +1 -0
  585. package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/index.d.ts.map +1 -1
  586. package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/index.js +1 -0
  587. package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/index.js.map +1 -1
  588. package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/logging.d.ts +78 -0
  589. package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/logging.d.ts.map +1 -0
  590. package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/logging.js +398 -0
  591. package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/logging.js.map +1 -0
  592. package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/tsconfig.tsbuildinfo +1 -1
  593. package/package.json +1 -1
  594. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__03742bf._.js +0 -3
  595. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__037l_3-._.js +0 -3
  596. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__05pd96o._.js +0 -3
  597. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__07jfil8._.js +0 -38
  598. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__089jtfp._.js +0 -3
  599. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__08w-nm2._.js +0 -3
  600. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0_o02fk._.js +0 -3
  601. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0b50n21._.js +0 -3
  602. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0bfezi5._.js +0 -3
  603. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0btp1y7._.js +0 -3
  604. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0fqdh7c._.js +0 -3
  605. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0g9--xh._.js +0 -3
  606. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0gqr7to._.js +0 -3
  607. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0h71~~8._.js +0 -3
  608. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0l1bgu.._.js +0 -3
  609. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0lcurm3._.js +0 -3
  610. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0n3pam7._.js +0 -3
  611. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0nkghp7._.js +0 -3
  612. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0r4amj5._.js +0 -3
  613. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0td5dey._.js +0 -3
  614. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0tsud8x._.js +0 -3
  615. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0wl_vik._.js +0 -3
  616. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0x7~7nk._.js +0 -3
  617. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0xvok7r._.js +0 -3
  618. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0~tse9o._.js +0 -3
  619. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__12lk-nv._.js +0 -3
  620. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__12sqoa8._.js +0 -3
  621. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/0e.4_sonner_dist_index_mjs_0u2em8w._.js +0 -3
  622. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/12df_@tanstack_react-query_build_modern_0em_ajy._.js +0 -3
  623. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[externals]__0wijiwt._.js +0 -3
  624. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0-kiaf5._.js +0 -3
  625. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__09_30hi._.js +0 -3
  626. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0kaiok7._.js +0 -3
  627. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0l937k4._.js +0 -3
  628. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0nwf4e.._.js +0 -3
  629. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0-dlo4s._.js +0 -3
  630. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_00f15bk._.js +0 -3
  631. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_01pp~xx._.js +0 -3
  632. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_06l.12l._.js +0 -3
  633. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_08j6p-z._.js +0 -3
  634. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_09eom0_._.js +0 -3
  635. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0c7wecm._.js +0 -3
  636. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0cd.__9._.js +0 -7
  637. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0f-may2._.js +0 -3
  638. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0fbjpet._.js +0 -3
  639. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0fp_nnb._.js +0 -3
  640. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0hm68~i._.js +0 -3
  641. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0l6jz-5._.js +0 -3
  642. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0naqa6h._.js +0 -3
  643. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0ntv66s._.js +0 -3
  644. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0sc0tpz._.js +0 -3
  645. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0tyxwr3._.js +0 -3
  646. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0u9md36._.js +0 -3
  647. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0vzw0pw._.js +0 -3
  648. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0z0rlpq._.js +0 -3
  649. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_11fig8y._.js +0 -3
  650. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_13l7w34._.js +0 -3
  651. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0o4a.29._.js +0 -3
  652. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0suis9l._.js +0 -9
  653. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_10mc58z._.js +0 -3
  654. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_knowledge-base_[name]_layout-client_tsx_05momc5._.js +0 -3
  655. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_components_retrieval_02c2uck._.js +0 -3
  656. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/node_modules__pnpm_00o55he._.js +0 -3
  657. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/node_modules__pnpm_0qdd37m._.js +0 -3
  658. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/node_modules__pnpm_0qzg4vh._.js +0 -3
  659. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/node_modules__pnpm_11mc1z9._.js +0 -3
  660. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0-mr2-dyb-szq.js +0 -1
  661. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0-xqk6wfme5fu.js +0 -1
  662. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0.yj.t1hbwkg4.js +0 -1
  663. package/dist/dashboard-runtime/dashboard/.next/static/chunks/00.fyg_t3xjc~.js +0 -1
  664. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0003a8l0skc88.js +0 -1
  665. package/dist/dashboard-runtime/dashboard/.next/static/chunks/00m4164p4ip7m.js +0 -1
  666. package/dist/dashboard-runtime/dashboard/.next/static/chunks/02b1c4t1dy1ri.js +0 -1
  667. package/dist/dashboard-runtime/dashboard/.next/static/chunks/06v~rjrrn4ugo.js +0 -1
  668. package/dist/dashboard-runtime/dashboard/.next/static/chunks/07iqor2nl~iqc.js +0 -1
  669. package/dist/dashboard-runtime/dashboard/.next/static/chunks/07r22x5uhjxjb.js +0 -1
  670. package/dist/dashboard-runtime/dashboard/.next/static/chunks/07v08gtfpo2yk.js +0 -1
  671. package/dist/dashboard-runtime/dashboard/.next/static/chunks/07xvdo2w9s4~p.js +0 -1
  672. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0cbu3udngtx-v.js +0 -4
  673. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0gkonvtvjhg-p.js +0 -1
  674. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0hpoawl1bb10g.js +0 -1
  675. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0iv0g360z0ja5.js +0 -1
  676. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0jf4ytf.izmzh.js +0 -1
  677. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0m2p301.a174k.js +0 -1
  678. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0m42mmyxmgn-i.js +0 -1
  679. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0odz1whf-ozqn.css +0 -1
  680. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0osozgwmk692r.js +0 -1
  681. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0ouxv_2qvf6.9.js +0 -1
  682. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0rbkgj._oqsb3.js +0 -1
  683. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0rywhgbu_16tm.js +0 -5
  684. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0r~6kt_pkm4di.js +0 -1
  685. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0sg6z8.ci0l2b.js +0 -1
  686. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0u6u.649ou67b.js +0 -1
  687. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0vf7~eysvh9bq.js +0 -1
  688. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0wmaq.ay~r2sn.js +0 -1
  689. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0xb0_9t-vmo6e.js +0 -1
  690. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0yp_2ea75d19v.js +0 -1
  691. package/dist/dashboard-runtime/dashboard/.next/static/chunks/11cizim1aug~b.js +0 -1
  692. package/dist/dashboard-runtime/dashboard/.next/static/chunks/13-2ei295hl0-.js +0 -1
  693. package/dist/dashboard-runtime/dashboard/.next/static/chunks/14-39g6hwhcgn.js +0 -1
  694. package/dist/dashboard-runtime/dashboard/.next/static/chunks/17m1wc_o0.5iz.js +0 -1
  695. package/dist/dashboard-runtime/dashboard/.next/static/chunks/1864_5-9a61tw.js +0 -1
  696. package/dist/dashboard-runtime/dashboard/src/components/knowledge-base/kb-header.tsx +0 -91
  697. package/dist/dashboard-runtime/dashboard/src/components/knowledge-base/kb-tab-nav.tsx +0 -62
  698. package/dist/dashboard-runtime/dashboard/src/components/layout/breadcrumb-bar.tsx +0 -115
  699. package/dist/dashboard-runtime/dashboard/src/components/memory/memory-header.tsx +0 -46
  700. package/dist/dashboard-runtime/dashboard/src/components/memory/memory-tab-nav.tsx +0 -54
  701. /package/dist/dashboard-runtime/dashboard/.next/static/{BGnMIk4OPjFx_qvLFMTBc → uYteIiFtKdPhUhmILps5X}/_buildManifest.js +0 -0
  702. /package/dist/dashboard-runtime/dashboard/.next/static/{BGnMIk4OPjFx_qvLFMTBc → uYteIiFtKdPhUhmILps5X}/_clientMiddlewareManifest.js +0 -0
  703. /package/dist/dashboard-runtime/dashboard/.next/static/{BGnMIk4OPjFx_qvLFMTBc → uYteIiFtKdPhUhmILps5X}/_ssgManifest.js +0 -0
@@ -21,6 +21,16 @@ import type {
21
21
  ImportInstancePayload,
22
22
  UpdateInstancePayload,
23
23
  } from "@/types/instance";
24
+ import {
25
+ RUNTIME_CONTEXT_QUERY_KEY,
26
+ invalidateInstanceScopedQueries,
27
+ queryKeys,
28
+ resetInstanceScopedQueries,
29
+ } from "@/lib/query-keys";
30
+ import {
31
+ markDashboardRuntimeContextChange,
32
+ useRuntimeContext,
33
+ } from "@/providers/runtime-context-provider";
24
34
 
25
35
  export const INSTANCES_QUERY_KEY = ["instances"] as const;
26
36
 
@@ -28,11 +38,7 @@ export const INSTANCES_QUERY_KEY = ["instances"] as const;
28
38
  * Used after non-switch mutations (connect / import / update / delete) where
29
39
  * the current session can keep the existing data while a refetch lands. */
30
40
  function invalidateInstanceScopedCaches(queryClient: QueryClient) {
31
- queryClient.invalidateQueries({ queryKey: INSTANCES_QUERY_KEY });
32
- queryClient.invalidateQueries({ queryKey: ["knowledge-bases"] });
33
- queryClient.invalidateQueries({ queryKey: ["memory-stores"] });
34
- queryClient.invalidateQueries({ queryKey: ["llm-providers"] });
35
- queryClient.invalidateQueries({ queryKey: ["auth-status"] });
41
+ invalidateInstanceScopedQueries(queryClient);
36
42
  }
37
43
 
38
44
  /** Hard-reset every cache whose data is scoped to the active instance.
@@ -42,28 +48,29 @@ function invalidateInstanceScopedCaches(queryClient: QueryClient) {
42
48
  * Mirrors the pattern recommended by TanStack Query maintainers for
43
49
  * logout / tenant-switch flows. */
44
50
  function resetInstanceScopedCaches(queryClient: QueryClient) {
45
- queryClient.removeQueries({ queryKey: ["knowledge-bases"] });
46
- queryClient.removeQueries({ queryKey: ["memory-stores"] });
47
- queryClient.removeQueries({ queryKey: ["llm-providers"] });
48
- queryClient.removeQueries({ queryKey: ["documents"] });
49
- queryClient.removeQueries({ queryKey: ["instance"] });
50
- queryClient.invalidateQueries({ queryKey: INSTANCES_QUERY_KEY });
51
- queryClient.invalidateQueries({ queryKey: ["auth-status"] });
51
+ resetInstanceScopedQueries(queryClient);
52
+ }
53
+
54
+ function refreshRuntimeContext(queryClient: QueryClient) {
55
+ void queryClient.invalidateQueries({ queryKey: RUNTIME_CONTEXT_QUERY_KEY });
52
56
  }
53
57
 
54
58
  export function useInstances() {
59
+ const { context, ready } = useRuntimeContext();
55
60
  return useQuery({
56
- queryKey: INSTANCES_QUERY_KEY,
61
+ queryKey: queryKeys.instances(context.dataScopeKey),
57
62
  queryFn: listInstances,
63
+ enabled: ready,
58
64
  staleTime: 30 * 1000,
59
65
  });
60
66
  }
61
67
 
62
68
  export function useInstance(name: string | null | undefined) {
69
+ const { context, ready } = useRuntimeContext();
63
70
  return useQuery({
64
- queryKey: ["instance", name],
71
+ queryKey: queryKeys.instance(context.dataScopeKey, name),
65
72
  queryFn: () => getInstance(name as string),
66
- enabled: !!name,
73
+ enabled: ready && !!name,
67
74
  staleTime: 30 * 1000,
68
75
  });
69
76
  }
@@ -73,7 +80,8 @@ export function useConnectInstance() {
73
80
  return useMutation({
74
81
  mutationFn: (payload: ConnectInstancePayload) => connectInstance(payload),
75
82
  onSuccess: () => {
76
- invalidateInstanceScopedCaches(queryClient);
83
+ resetInstanceScopedCaches(queryClient);
84
+ refreshRuntimeContext(queryClient);
77
85
  toast.success("项目已创建");
78
86
  },
79
87
  onError: (error) => {
@@ -87,7 +95,8 @@ export function useImportInstance() {
87
95
  return useMutation({
88
96
  mutationFn: (payload: ImportInstancePayload) => importInstance(payload),
89
97
  onSuccess: () => {
90
- invalidateInstanceScopedCaches(queryClient);
98
+ resetInstanceScopedCaches(queryClient);
99
+ refreshRuntimeContext(queryClient);
91
100
  toast.success("Token 已导入");
92
101
  },
93
102
  onError: (error) => {
@@ -102,7 +111,8 @@ export function useUpdateInstance(name: string) {
102
111
  mutationFn: (patch: UpdateInstancePayload) => updateInstance(name, patch),
103
112
  onSuccess: () => {
104
113
  invalidateInstanceScopedCaches(queryClient);
105
- queryClient.invalidateQueries({ queryKey: ["instance", name] });
114
+ queryClient.invalidateQueries({ queryKey: ["instance"] });
115
+ refreshRuntimeContext(queryClient);
106
116
  toast.success("项目已更新");
107
117
  },
108
118
  onError: (error) => {
@@ -117,6 +127,7 @@ export function useDeleteInstance() {
117
127
  mutationFn: (name: string) => deleteInstance(name),
118
128
  onSuccess: () => {
119
129
  invalidateInstanceScopedCaches(queryClient);
130
+ refreshRuntimeContext(queryClient);
120
131
  toast.success("项目已删除");
121
132
  },
122
133
  onError: (error) => {
@@ -127,14 +138,22 @@ export function useDeleteInstance() {
127
138
 
128
139
  export function useSwitchInstance() {
129
140
  const queryClient = useQueryClient();
141
+ const { context } = useRuntimeContext();
130
142
  return useMutation({
131
143
  mutationFn: (name: string) => switchInstance(name),
132
- onSuccess: () => {
144
+ onSuccess: ({ activeInstance }) => {
145
+ if (typeof window !== "undefined") {
146
+ markDashboardRuntimeContextChange(window.sessionStorage, {
147
+ previousDataScopeKey: context.dataScopeKey,
148
+ targetActiveInstance: activeInstance,
149
+ });
150
+ }
133
151
  // Switching the active instance is conceptually a tenant change:
134
152
  // every instance-scoped cache must be evicted (not just invalidated)
135
153
  // so the new instance never inherits the old one's KB / memory /
136
154
  // provider rows for even a single render.
137
155
  resetInstanceScopedCaches(queryClient);
156
+ refreshRuntimeContext(queryClient);
138
157
  toast.success("已切换当前项目");
139
158
  },
140
159
  onError: (error) => {
@@ -1,11 +1,14 @@
1
1
  import { useQuery } from "@tanstack/react-query";
2
2
  import { describeKnowledgeBase } from "@/services/knowledge-base";
3
+ import { queryKeys } from "@/lib/query-keys";
4
+ import { useRuntimeContext } from "@/providers/runtime-context-provider";
3
5
 
4
6
  export function useKnowledgeBase(name: string) {
7
+ const { context, ready } = useRuntimeContext();
5
8
  return useQuery({
6
- queryKey: ["knowledge-bases", name],
9
+ queryKey: queryKeys.knowledgeBase(context.dataScopeKey, name),
7
10
  queryFn: () => describeKnowledgeBase(name),
8
- enabled: !!name,
11
+ enabled: ready && !!name,
9
12
  staleTime: 30 * 1000,
10
13
  });
11
14
  }
@@ -1,10 +1,14 @@
1
1
  import { useQuery } from "@tanstack/react-query";
2
2
  import { listKnowledgeBases } from "@/services/knowledge-base";
3
+ import { queryKeys } from "@/lib/query-keys";
4
+ import { useRuntimeContext } from "@/providers/runtime-context-provider";
3
5
 
4
6
  export function useKnowledgeBases() {
7
+ const { context, ready } = useRuntimeContext();
5
8
  return useQuery({
6
- queryKey: ["knowledge-bases"],
9
+ queryKey: queryKeys.knowledgeBases(context.dataScopeKey),
7
10
  queryFn: listKnowledgeBases,
11
+ enabled: ready,
8
12
  staleTime: 30 * 1000,
9
13
  });
10
14
  }
@@ -1,6 +1,8 @@
1
1
  import { useQuery } from "@tanstack/react-query";
2
2
 
3
3
  import { fetchProviderModels } from "@/services/llm-providers";
4
+ import { queryKeys } from "@/lib/query-keys";
5
+ import { useRuntimeContext } from "@/providers/runtime-context-provider";
4
6
 
5
7
  /**
6
8
  * Pull the upstream model list for a provider. Disabled by default until the
@@ -11,10 +13,11 @@ export function useLLMProviderModels(
11
13
  id: string | undefined,
12
14
  options: { enabled?: boolean } = {},
13
15
  ) {
16
+ const { context, ready } = useRuntimeContext();
14
17
  return useQuery({
15
- queryKey: ["llm-provider-models", id],
18
+ queryKey: queryKeys.llmProviderModels(context.dataScopeKey, id),
16
19
  queryFn: () => fetchProviderModels(id!),
17
- enabled: Boolean(id) && (options.enabled ?? true),
20
+ enabled: ready && Boolean(id) && (options.enabled ?? true),
18
21
  staleTime: 5 * 60 * 1000,
19
22
  retry: false,
20
23
  });
@@ -1,12 +1,15 @@
1
1
  import { useQuery } from "@tanstack/react-query";
2
2
 
3
3
  import { getProvider } from "@/services/llm-providers";
4
+ import { queryKeys } from "@/lib/query-keys";
5
+ import { useRuntimeContext } from "@/providers/runtime-context-provider";
4
6
 
5
7
  export function useLLMProvider(id: string | undefined) {
8
+ const { context, ready } = useRuntimeContext();
6
9
  return useQuery({
7
- queryKey: ["llm-providers", id],
10
+ queryKey: queryKeys.llmProvider(context.dataScopeKey, id),
8
11
  queryFn: () => getProvider(id!),
9
- enabled: Boolean(id),
12
+ enabled: ready && Boolean(id),
10
13
  staleTime: 30 * 1000,
11
14
  });
12
15
  }
@@ -1,13 +1,17 @@
1
1
  import { useQuery } from "@tanstack/react-query";
2
2
 
3
3
  import { listProviders } from "@/services/llm-providers";
4
+ import { queryKeys } from "@/lib/query-keys";
5
+ import { useRuntimeContext } from "@/providers/runtime-context-provider";
4
6
 
5
7
  export const LLM_PROVIDERS_QUERY_KEY = ["llm-providers"] as const;
6
8
 
7
9
  export function useLLMProviders() {
10
+ const { context, ready } = useRuntimeContext();
8
11
  return useQuery({
9
- queryKey: LLM_PROVIDERS_QUERY_KEY,
12
+ queryKey: queryKeys.llmProviders(context.dataScopeKey),
10
13
  queryFn: listProviders,
14
+ enabled: ready,
11
15
  staleTime: 30 * 1000,
12
16
  });
13
17
  }
@@ -1,5 +1,7 @@
1
1
  import { useQuery } from "@tanstack/react-query";
2
2
  import { listMemoryMessages } from "@/services/memory";
3
+ import { queryKeys } from "@/lib/query-keys";
4
+ import { useRuntimeContext } from "@/providers/runtime-context-provider";
3
5
  import type { MemoryScope } from "@/types/memory";
4
6
 
5
7
  export function useMemoryMessages(
@@ -10,12 +12,16 @@ export function useMemoryMessages(
10
12
  enabled = true,
11
13
  filters?: { minTimestamp?: string; maxTimestamp?: string },
12
14
  ) {
15
+ const { context, ready } = useRuntimeContext();
13
16
  return useQuery({
14
- queryKey: [
15
- "memory", "stores", memoryStoreName, "messages",
16
- scope, nextToken, limit,
17
- filters?.minTimestamp, filters?.maxTimestamp,
18
- ],
17
+ queryKey: queryKeys.memoryMessages(
18
+ context.dataScopeKey,
19
+ memoryStoreName,
20
+ scope,
21
+ nextToken,
22
+ limit,
23
+ filters,
24
+ ),
19
25
  queryFn: () =>
20
26
  listMemoryMessages(memoryStoreName, scope!, {
21
27
  nextToken,
@@ -23,7 +29,7 @@ export function useMemoryMessages(
23
29
  minTimestamp: filters?.minTimestamp,
24
30
  maxTimestamp: filters?.maxTimestamp,
25
31
  }),
26
- enabled: enabled && !!memoryStoreName && !!scope?.appId,
32
+ enabled: ready && enabled && !!memoryStoreName && !!scope?.appId,
27
33
  staleTime: 30_000,
28
34
  });
29
35
  }
@@ -1,5 +1,7 @@
1
1
  import { useQuery } from "@tanstack/react-query";
2
2
  import { listMemoryRequests } from "@/services/memory";
3
+ import { queryKeys } from "@/lib/query-keys";
4
+ import { useRuntimeContext } from "@/providers/runtime-context-provider";
3
5
  import type { MemoryScope } from "@/types/memory";
4
6
 
5
7
  export function useMemoryRequests(
@@ -9,9 +11,17 @@ export function useMemoryRequests(
9
11
  limit = 20,
10
12
  operation?: string
11
13
  ) {
14
+ const { context, ready } = useRuntimeContext();
12
15
  return useQuery({
13
- queryKey: ["memory", "stores", memoryStoreName, "requests", scope, nextToken, limit, operation],
16
+ queryKey: queryKeys.memoryRequests(
17
+ context.dataScopeKey,
18
+ memoryStoreName,
19
+ scope,
20
+ nextToken,
21
+ limit,
22
+ operation,
23
+ ),
14
24
  queryFn: () => listMemoryRequests(memoryStoreName, scope!, { nextToken, limit, operation }),
15
- enabled: !!memoryStoreName && !!scope?.appId,
25
+ enabled: ready && !!memoryStoreName && !!scope?.appId,
16
26
  });
17
27
  }
@@ -1,10 +1,13 @@
1
1
  import { useQuery } from "@tanstack/react-query";
2
2
  import { describeMemoryStore } from "@/services/memory";
3
+ import { queryKeys } from "@/lib/query-keys";
4
+ import { useRuntimeContext } from "@/providers/runtime-context-provider";
3
5
 
4
6
  export function useMemoryStore(memoryStoreName: string) {
7
+ const { context, ready } = useRuntimeContext();
5
8
  return useQuery({
6
- queryKey: ["memory", "stores", memoryStoreName],
9
+ queryKey: queryKeys.memoryStore(context.dataScopeKey, memoryStoreName),
7
10
  queryFn: () => describeMemoryStore(memoryStoreName),
8
- enabled: !!memoryStoreName,
11
+ enabled: ready && !!memoryStoreName,
9
12
  });
10
13
  }
@@ -1,10 +1,14 @@
1
1
  import { useQuery } from "@tanstack/react-query";
2
2
  import { listMemoryStores } from "@/services/memory";
3
+ import { queryKeys } from "@/lib/query-keys";
4
+ import { useRuntimeContext } from "@/providers/runtime-context-provider";
3
5
 
4
6
  export function useMemoryStores() {
7
+ const { context, ready } = useRuntimeContext();
5
8
  return useQuery({
6
- queryKey: ["memory", "stores"],
9
+ queryKey: queryKeys.memoryStores(context.dataScopeKey),
7
10
  queryFn: listMemoryStores,
11
+ enabled: ready,
8
12
  staleTime: 30 * 1000,
9
13
  });
10
14
  }
@@ -1,5 +1,7 @@
1
1
  import { useQuery } from "@tanstack/react-query";
2
2
  import { getMemoryUnit } from "@/services/memory";
3
+ import { queryKeys } from "@/lib/query-keys";
4
+ import { useRuntimeContext } from "@/providers/runtime-context-provider";
3
5
  import type { MemoryScope } from "@/types/memory";
4
6
 
5
7
  export function useMemoryUnit(
@@ -8,9 +10,21 @@ export function useMemoryUnit(
8
10
  scope: MemoryScope | null,
9
11
  enabled = true
10
12
  ) {
13
+ const { context, ready } = useRuntimeContext();
11
14
  return useQuery({
12
- queryKey: ["memory", "stores", memoryStoreName, "units", "detail", memoryId, scope],
15
+ queryKey: queryKeys.memoryUnit(
16
+ context.dataScopeKey,
17
+ memoryStoreName,
18
+ memoryId,
19
+ scope,
20
+ ),
13
21
  queryFn: () => getMemoryUnit({ memoryStoreName, memoryId: memoryId!, scope: scope! }),
14
- enabled: enabled && !!memoryStoreName && !!scope?.appId && !!memoryId && memoryId !== "-",
22
+ enabled:
23
+ ready &&
24
+ enabled &&
25
+ !!memoryStoreName &&
26
+ !!scope?.appId &&
27
+ !!memoryId &&
28
+ memoryId !== "-",
15
29
  });
16
30
  }
@@ -1,5 +1,7 @@
1
1
  import { useQuery } from "@tanstack/react-query";
2
2
  import { listMemoryUnits } from "@/services/memory";
3
+ import { queryKeys } from "@/lib/query-keys";
4
+ import { useRuntimeContext } from "@/providers/runtime-context-provider";
3
5
  import type { MemoryScope } from "@/types/memory";
4
6
 
5
7
  export function useMemoryUnits(
@@ -8,10 +10,17 @@ export function useMemoryUnits(
8
10
  nextToken?: string,
9
11
  limit = 20
10
12
  ) {
13
+ const { context, ready } = useRuntimeContext();
11
14
  return useQuery({
12
- queryKey: ["memory", "stores", memoryStoreName, "units", scope, nextToken, limit],
15
+ queryKey: queryKeys.memoryUnits(
16
+ context.dataScopeKey,
17
+ memoryStoreName,
18
+ scope,
19
+ nextToken,
20
+ limit,
21
+ ),
13
22
  queryFn: () => listMemoryUnits(memoryStoreName, scope!, { nextToken, limit }),
14
- enabled: !!memoryStoreName && !!scope?.appId,
23
+ enabled: ready && !!memoryStoreName && !!scope?.appId,
15
24
  staleTime: 30_000,
16
25
  });
17
26
  }
@@ -23,6 +23,7 @@ import type { ChatMessage, ChatRequestBody, ChatRole } from "@/types/llm-chat";
23
23
  type StreamPatch = { content?: string; reasoning?: string };
24
24
 
25
25
  export interface UseQaChatOptions {
26
+ activeInstance: string | null;
26
27
  providerId: string;
27
28
  model: string;
28
29
  systemPrompt: string;
@@ -203,6 +204,7 @@ export function useQaChat(options: UseQaChatOptions): UseQaChatResult {
203
204
 
204
205
  try {
205
206
  const body: ChatRequestBody = {
207
+ activeInstance: opts.activeInstance,
206
208
  providerId: opts.providerId,
207
209
  model: opts.model,
208
210
  messages: historyToSend,
@@ -1,17 +1,15 @@
1
1
  import { useMutation, useQueryClient } from "@tanstack/react-query";
2
2
  import { updateKnowledgeBase } from "@/services/knowledge-base";
3
3
  import type { UpdateKBRequest } from "@/types/knowledge-base";
4
+ import { invalidateKnowledgeBaseQueries } from "@/lib/query-keys";
4
5
 
5
6
  export function useUpdateKB() {
6
7
  const queryClient = useQueryClient();
7
8
 
8
9
  return useMutation({
9
10
  mutationFn: (request: UpdateKBRequest) => updateKnowledgeBase(request),
10
- onSuccess: (_data, variables) => {
11
- queryClient.invalidateQueries({ queryKey: ["knowledge-bases"] });
12
- queryClient.invalidateQueries({
13
- queryKey: ["knowledge-bases", variables.knowledgeBaseName],
14
- });
11
+ onSuccess: () => {
12
+ invalidateKnowledgeBaseQueries(queryClient);
15
13
  },
16
14
  });
17
15
  }
@@ -2,16 +2,14 @@ import { useMutation, useQueryClient } from "@tanstack/react-query";
2
2
 
3
3
  import { updateProvider } from "@/services/llm-providers";
4
4
  import type { UpdateLLMProviderInput } from "@/types/llm-provider";
5
-
6
- import { LLM_PROVIDERS_QUERY_KEY } from "./use-llm-providers";
5
+ import { invalidateLLMProviderQueries } from "@/lib/query-keys";
7
6
 
8
7
  export function useUpdateLLMProvider(id: string) {
9
8
  const queryClient = useQueryClient();
10
9
  return useMutation({
11
10
  mutationFn: (patch: UpdateLLMProviderInput) => updateProvider(id, patch),
12
11
  onSuccess: () => {
13
- queryClient.invalidateQueries({ queryKey: LLM_PROVIDERS_QUERY_KEY });
14
- queryClient.invalidateQueries({ queryKey: ["llm-providers", id] });
12
+ invalidateLLMProviderQueries(queryClient);
15
13
  },
16
14
  });
17
15
  }
@@ -1,17 +1,15 @@
1
1
  import { useMutation, useQueryClient } from "@tanstack/react-query";
2
2
  import { updateMemoryStore } from "@/services/memory";
3
3
  import type { UpdateMemoryStoreRequest } from "@/types/memory";
4
+ import { invalidateMemoryQueries } from "@/lib/query-keys";
4
5
 
5
6
  export function useUpdateMemoryStore() {
6
7
  const queryClient = useQueryClient();
7
8
 
8
9
  return useMutation({
9
10
  mutationFn: (request: UpdateMemoryStoreRequest) => updateMemoryStore(request),
10
- onSuccess: (_data, variables) => {
11
- queryClient.invalidateQueries({ queryKey: ["memory", "stores"] });
12
- queryClient.invalidateQueries({
13
- queryKey: ["memory", "stores", variables.memoryStoreName],
14
- });
11
+ onSuccess: () => {
12
+ invalidateMemoryQueries(queryClient);
15
13
  },
16
14
  });
17
15
  }
@@ -1,14 +1,15 @@
1
1
  import { useMutation, useQueryClient } from "@tanstack/react-query";
2
2
  import { updateMemoryUnit } from "@/services/memory";
3
3
  import type { UpdateMemoryUnitRequest } from "@/types/memory";
4
+ import { invalidateMemoryQueries } from "@/lib/query-keys";
4
5
 
5
6
  export function useUpdateMemoryUnit() {
6
7
  const queryClient = useQueryClient();
7
8
 
8
9
  return useMutation({
9
10
  mutationFn: (request: UpdateMemoryUnitRequest) => updateMemoryUnit(request),
10
- onSuccess: (_data, variables) => {
11
- queryClient.invalidateQueries({ queryKey: ["memory", "stores", variables.memoryStoreName, "units"] });
11
+ onSuccess: () => {
12
+ invalidateMemoryQueries(queryClient);
12
13
  },
13
14
  });
14
15
  }
@@ -1,5 +1,10 @@
1
+ import { useCallback, useRef, useState } from "react";
1
2
  import { useMutation, useQueryClient } from "@tanstack/react-query";
2
- import { uploadDocuments } from "@/services/documents";
3
+ import {
4
+ uploadDocumentsBatched,
5
+ type BatchUploadProgress,
6
+ } from "@/services/documents";
7
+ import { invalidateKnowledgeBaseQueries } from "@/lib/query-keys";
3
8
 
4
9
  interface UploadDocumentsVariables {
5
10
  knowledgeBaseName: string;
@@ -10,14 +15,28 @@ interface UploadDocumentsVariables {
10
15
 
11
16
  export function useUploadDocuments() {
12
17
  const queryClient = useQueryClient();
18
+ const [progress, setProgress] = useState<BatchUploadProgress | null>(null);
19
+ const progressRef = useRef(progress);
20
+ progressRef.current = progress;
13
21
 
14
- return useMutation({
22
+ const resetProgress = useCallback(() => setProgress(null), []);
23
+
24
+ const mutation = useMutation({
15
25
  mutationFn: ({ knowledgeBaseName, files, subspace, metadata }: UploadDocumentsVariables) =>
16
- uploadDocuments(knowledgeBaseName, files, { subspace, metadata }),
17
- onSuccess: (_data, variables) => {
18
- queryClient.invalidateQueries({
19
- queryKey: ["knowledge-bases", variables.knowledgeBaseName, "documents"],
20
- });
26
+ uploadDocumentsBatched(knowledgeBaseName, files, {
27
+ subspace,
28
+ metadata,
29
+ onProgress: setProgress,
30
+ }),
31
+ onSuccess: () => {
32
+ invalidateKnowledgeBaseQueries(queryClient);
33
+ },
34
+ onSettled: () => {
35
+ // Keep progress visible briefly so the user can read the final state,
36
+ // then clear it for the next upload.
37
+ setTimeout(resetProgress, 300);
21
38
  },
22
39
  });
40
+
41
+ return { ...mutation, progress };
23
42
  }
@@ -0,0 +1,22 @@
1
+ export const DEFAULT_PAGE_SIZE = 20;
2
+
3
+ export const KB_NAME_REGEX = /^[a-zA-Z][a-zA-Z0-9_-]{1,62}[a-zA-Z0-9]$/;
4
+
5
+ export const ERROR_CODE_MAP = {
6
+ INVALID_PARAMETER: "参数错误",
7
+ NOT_FOUND: "资源不存在",
8
+ ALREADY_EXISTS: "资源已存在",
9
+ INTERNAL_ERROR: "服务内部错误",
10
+ UNAUTHORIZED: "未授权",
11
+ RATE_LIMITED: "请求过于频繁",
12
+ } as const satisfies Record<string, string>;
13
+
14
+ export const METADATA_TYPES = [
15
+ "keyword",
16
+ "text",
17
+ "long",
18
+ "double",
19
+ "boolean",
20
+ ] as const;
21
+
22
+ export type MetadataType = (typeof METADATA_TYPES)[number];
@@ -0,0 +1,9 @@
1
+ /**
2
+ * The dashboard must build in offline / intranet environments, including the
3
+ * CLI's standalone packaging flow. `next/font/google` hard-fails the build
4
+ * when fonts.googleapis.com is unreachable, so we expose no-op descriptors
5
+ * here and rely on CSS fallback stacks declared in `globals.css`.
6
+ */
7
+ export const plusJakarta = { variable: "" } as const;
8
+ export const inter = { variable: "" } as const;
9
+ export const jetbrainsMono = { variable: "" } as const;
@@ -0,0 +1,69 @@
1
+ import type { MemoryScope } from "@/types/memory";
2
+
3
+ export function buildMemoryScope(searchParams: URLSearchParams): MemoryScope {
4
+ return {
5
+ appId: searchParams.get("appId") ?? "",
6
+ tenantId: searchParams.get("tenantId") || undefined,
7
+ agentId: searchParams.get("agentId") || undefined,
8
+ runId: searchParams.get("runId") || undefined,
9
+ };
10
+ }
11
+
12
+ export function hasWildcardScope(scope: MemoryScope): boolean {
13
+ return Object.values(scope).some((value) => value === "*");
14
+ }
15
+
16
+ /** All four scope fields are present and none is `*`. */
17
+ export function hasPreciseScope(scope: MemoryScope): boolean {
18
+ return (
19
+ !!scope.appId && scope.appId !== "*" &&
20
+ !!scope.tenantId && scope.tenantId !== "*" &&
21
+ !!scope.agentId && scope.agentId !== "*" &&
22
+ !!scope.runId && scope.runId !== "*"
23
+ );
24
+ }
25
+
26
+ /** appId and tenantId are present and not `*` (minimum for search). */
27
+ export function hasSearchableScope(scope: MemoryScope): boolean {
28
+ return (
29
+ !!scope.appId && scope.appId !== "*" &&
30
+ !!scope.tenantId && scope.tenantId !== "*"
31
+ );
32
+ }
33
+
34
+ export function scopeToSearchParams(scope: MemoryScope): URLSearchParams {
35
+ const params = new URLSearchParams();
36
+ params.set("appId", scope.appId);
37
+ if (scope.tenantId) params.set("tenantId", scope.tenantId);
38
+ if (scope.agentId) params.set("agentId", scope.agentId);
39
+ if (scope.runId) params.set("runId", scope.runId);
40
+ return params;
41
+ }
42
+
43
+ export function formatScope(scope?: MemoryScope): string {
44
+ if (!scope) return "-";
45
+ return [
46
+ scope.appId,
47
+ scope.tenantId,
48
+ scope.agentId,
49
+ scope.runId,
50
+ ].filter(Boolean).join(" / ");
51
+ }
52
+
53
+ export function parseJsonObject(value: string): Record<string, string> | undefined {
54
+ if (!value.trim()) return undefined;
55
+ const parsed = JSON.parse(value) as unknown;
56
+ if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) {
57
+ throw new Error("JSON must be an object");
58
+ }
59
+ return parsed as Record<string, string>;
60
+ }
61
+
62
+ export function parseJsonArray<T>(value: string): T[] | undefined {
63
+ if (!value.trim()) return undefined;
64
+ const parsed = JSON.parse(value) as unknown;
65
+ if (!Array.isArray(parsed)) {
66
+ throw new Error("JSON must be an array");
67
+ }
68
+ return parsed as T[];
69
+ }