@tablestore/tablestore-agent-cli 0.2.10 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (618) hide show
  1. package/dist/commands/dashboard.d.ts.map +1 -1
  2. package/dist/commands/dashboard.js +3 -0
  3. package/dist/commands/dashboard.js.map +1 -1
  4. package/dist/commands/doctor.d.ts.map +1 -1
  5. package/dist/commands/doctor.js +10 -11
  6. package/dist/commands/doctor.js.map +1 -1
  7. package/dist/commands/memory-items.d.ts +3 -0
  8. package/dist/commands/memory-items.d.ts.map +1 -0
  9. package/dist/commands/memory-items.js +375 -0
  10. package/dist/commands/memory-items.js.map +1 -0
  11. package/dist/commands/memory.d.ts.map +1 -1
  12. package/dist/commands/memory.js +133 -122
  13. package/dist/commands/memory.js.map +1 -1
  14. package/dist/dashboard-runtime/dashboard/.next/BUILD_ID +1 -1
  15. package/dist/dashboard-runtime/dashboard/.next/app-path-routes-manifest.json +2 -3
  16. package/dist/dashboard-runtime/dashboard/.next/build-manifest.json +3 -3
  17. package/dist/dashboard-runtime/dashboard/.next/prerender-manifest.json +3 -3
  18. package/dist/dashboard-runtime/dashboard/.next/required-server-files.json +4 -4
  19. package/dist/dashboard-runtime/dashboard/.next/routes-manifest.json +11 -20
  20. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/api-keys/page.js.nft.json +1 -1
  21. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/api-keys/page_client-reference-manifest.js +1 -1
  22. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/chat/page.js.nft.json +1 -1
  23. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/chat/page_client-reference-manifest.js +1 -1
  24. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/documents/page.js.nft.json +1 -1
  25. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/documents/page_client-reference-manifest.js +1 -1
  26. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/page.js.nft.json +1 -1
  27. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/page_client-reference-manifest.js +1 -1
  28. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/qa/page.js.nft.json +1 -1
  29. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/qa/page_client-reference-manifest.js +1 -1
  30. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/retrieval/page.js.nft.json +1 -1
  31. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/retrieval/page_client-reference-manifest.js +1 -1
  32. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/settings/page.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.js.nft.json +1 -1
  35. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/create/page_client-reference-manifest.js +1 -1
  36. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/page.js.nft.json +1 -1
  37. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/page_client-reference-manifest.js +1 -1
  38. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/[id]/page.js.nft.json +1 -1
  39. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/[id]/page_client-reference-manifest.js +1 -1
  40. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/new/page.js.nft.json +1 -1
  41. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/new/page_client-reference-manifest.js +1 -1
  42. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/page.js.nft.json +1 -1
  43. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/page_client-reference-manifest.js +1 -1
  44. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/dream/[dreamId]/page.js.nft.json +1 -1
  45. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/dream/[dreamId]/page_client-reference-manifest.js +1 -1
  46. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/dream/page.js.nft.json +1 -1
  47. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/dream/page_client-reference-manifest.js +1 -1
  48. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/messages/page.js.nft.json +1 -1
  49. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/messages/page_client-reference-manifest.js +1 -1
  50. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/page.js.nft.json +1 -1
  51. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/page_client-reference-manifest.js +1 -1
  52. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/requests/page.js.nft.json +1 -1
  53. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/requests/page_client-reference-manifest.js +1 -1
  54. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/search/page.js.nft.json +1 -1
  55. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/search/page_client-reference-manifest.js +1 -1
  56. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/settings/page.js.nft.json +1 -1
  57. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/settings/page_client-reference-manifest.js +1 -1
  58. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/tasks/page.js.nft.json +1 -1
  59. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/tasks/page_client-reference-manifest.js +1 -1
  60. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/units/page.js.nft.json +1 -1
  61. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/units/page_client-reference-manifest.js +1 -1
  62. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/create/page.js.nft.json +1 -1
  63. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/create/page_client-reference-manifest.js +1 -1
  64. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/page.js.nft.json +1 -1
  65. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/page_client-reference-manifest.js +1 -1
  66. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/projects/page.js.nft.json +1 -1
  67. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/projects/page_client-reference-manifest.js +1 -1
  68. package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.html +1 -1
  69. package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.rsc +1 -1
  70. package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  71. package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  72. package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  73. package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  74. package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  75. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found/page.js.nft.json +1 -1
  76. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  77. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.html +1 -1
  78. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.rsc +16 -16
  79. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_full.segment.rsc +16 -16
  80. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_head.segment.rsc +3 -3
  81. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_index.segment.rsc +11 -11
  82. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +4 -4
  83. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_not-found.segment.rsc +3 -3
  84. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  85. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/[id]/custom-policy/route.js +2 -2
  86. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/[id]/custom-policy/route.js.nft.json +1 -1
  87. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/[id]/effective-permissions/route.js +2 -2
  88. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/[id]/effective-permissions/route.js.nft.json +1 -1
  89. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/[id]/policies/route.js +2 -2
  90. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/[id]/policies/route.js.nft.json +1 -1
  91. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/[id]/route.js +2 -2
  92. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/[id]/route.js.nft.json +1 -1
  93. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/filter-by-permission/route.js +2 -2
  94. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/filter-by-permission/route.js.nft.json +1 -1
  95. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/route.js +2 -2
  96. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/route.js.nft.json +1 -1
  97. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/auth/status/route.js +2 -2
  98. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/auth/status/route.js.nft.json +1 -1
  99. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/auth/token/route.js +2 -2
  100. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/auth/token/route.js.nft.json +1 -1
  101. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/route.js +2 -2
  102. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/route.js.nft.json +1 -1
  103. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/token/route.js +2 -2
  104. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/token/route.js.nft.json +1 -1
  105. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/use/route.js +2 -2
  106. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/use/route.js.nft.json +1 -1
  107. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/connectivity/route/app-paths-manifest.json +3 -0
  108. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/connectivity/route.js +6 -0
  109. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/connectivity/route.js.nft.json +1 -0
  110. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/connectivity/route_client-reference-manifest.js +3 -0
  111. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/route.js +2 -2
  112. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/route.js.nft.json +1 -1
  113. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/chunks/route.js +2 -2
  114. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/chunks/route.js.nft.json +1 -1
  115. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/[docId]/chunks/route.js +2 -2
  116. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/[docId]/chunks/route.js.nft.json +1 -1
  117. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/[docId]/route.js +2 -2
  118. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/[docId]/route.js.nft.json +1 -1
  119. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/route.js +2 -2
  120. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/route.js.nft.json +1 -1
  121. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/upload/route.js +2 -2
  122. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/upload/route.js.nft.json +1 -1
  123. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/retrieve/route.js +2 -2
  124. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/retrieve/route.js.nft.json +1 -1
  125. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/route.js +4 -4
  126. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/route.js.nft.json +1 -1
  127. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/route.js +2 -2
  128. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/route.js.nft.json +1 -1
  129. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/chat/route.js +2 -2
  130. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/chat/route.js.nft.json +1 -1
  131. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/models/route.js +2 -2
  132. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/models/route.js.nft.json +1 -1
  133. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/route.js +2 -2
  134. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/route.js.nft.json +1 -1
  135. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/test/route.js +2 -2
  136. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/test/route.js.nft.json +1 -1
  137. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/route.js +2 -2
  138. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/route.js.nft.json +1 -1
  139. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/logs/client/route.js +2 -2
  140. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/logs/client/route.js.nft.json +1 -1
  141. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-kb-sync/route.js +2 -2
  142. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-kb-sync/route.js.nft.json +1 -1
  143. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-tasks/[dreamId]/actions/apply/route.js +2 -2
  144. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-tasks/[dreamId]/actions/apply/route.js.nft.json +1 -1
  145. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-tasks/[dreamId]/actions/route.js +2 -2
  146. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-tasks/[dreamId]/actions/route.js.nft.json +1 -1
  147. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-tasks/[dreamId]/cancel/route.js +2 -2
  148. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-tasks/[dreamId]/cancel/route.js.nft.json +1 -1
  149. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-tasks/[dreamId]/route.js +2 -2
  150. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-tasks/[dreamId]/route.js.nft.json +1 -1
  151. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-tasks/route.js +2 -2
  152. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-tasks/route.js.nft.json +1 -1
  153. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/[action]/route/app-paths-manifest.json +3 -0
  154. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/[action]/route.js +6 -0
  155. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/{sync → [action]}/route.js.nft.json +1 -1
  156. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/[action]/route_client-reference-manifest.js +3 -0
  157. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/messages/route.js +2 -2
  158. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/messages/route.js.nft.json +1 -1
  159. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/requests/route.js +2 -2
  160. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/requests/route.js.nft.json +1 -1
  161. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/route.js +2 -2
  162. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/route.js.nft.json +1 -1
  163. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/scopes/route.js +2 -2
  164. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/scopes/route.js.nft.json +1 -1
  165. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/search/route.js +2 -2
  166. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/search/route.js.nft.json +1 -1
  167. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/tasks/[requestId]/route.js +2 -2
  168. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/tasks/[requestId]/route.js.nft.json +1 -1
  169. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/tasks/route.js +2 -2
  170. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/tasks/route.js.nft.json +1 -1
  171. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/units/[memoryId]/route.js +2 -2
  172. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/units/[memoryId]/route.js.nft.json +1 -1
  173. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/units/route.js +2 -2
  174. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/units/route.js.nft.json +1 -1
  175. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/route.js +2 -2
  176. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/route.js.nft.json +1 -1
  177. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/oss/list/route.js +2 -2
  178. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/oss/list/route.js.nft.json +1 -1
  179. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/runtime/context/route.js +2 -2
  180. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/runtime/context/route.js.nft.json +1 -1
  181. package/dist/dashboard-runtime/dashboard/.next/server/app/index.html +1 -1
  182. package/dist/dashboard-runtime/dashboard/.next/server/app/index.rsc +15 -15
  183. package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  184. package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/_full.segment.rsc +15 -15
  185. package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/_head.segment.rsc +3 -3
  186. package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/_index.segment.rsc +11 -11
  187. package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  188. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding/page.js.nft.json +1 -1
  189. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding/page_client-reference-manifest.js +1 -1
  190. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.html +1 -1
  191. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.rsc +18 -18
  192. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/_full.segment.rsc +18 -18
  193. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/_head.segment.rsc +3 -3
  194. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/_index.segment.rsc +11 -11
  195. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/_tree.segment.rsc +2 -2
  196. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/onboarding/__PAGE__.segment.rsc +4 -4
  197. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/onboarding.segment.rsc +4 -4
  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 -3
  201. package/dist/dashboard-runtime/dashboard/.next/server/chunks/05a2_app_api_v1_memory_stores_[store]_file-memory_[action]_route_actions_0m70if_.js +3 -0
  202. package/dist/dashboard-runtime/dashboard/.next/server/chunks/0e95__next-internal_server_app_api_v1_instances_connectivity_route_actions_0hc.k~w.js +3 -0
  203. package/dist/dashboard-runtime/dashboard/.next/server/chunks/0p91_next_dist_esm_build_templates_app-route_0n~ec7s.js +19 -12
  204. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0--nu07._.js +3 -0
  205. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0-pbmiq._.js +3 -0
  206. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0-wmyic._.js +40 -0
  207. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0.gylau._.js +3 -0
  208. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0.hvkwy._.js +3 -0
  209. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0.li3cj._.js +40 -0
  210. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0.qtdn4._.js +3 -0
  211. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__02p1x3t._.js +3 -0
  212. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__03og44p._.js +3 -0
  213. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__04dd04u._.js +3 -0
  214. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__04ujbw-._.js +3 -0
  215. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__04zbudf._.js +3 -0
  216. package/dist/dashboard-runtime/dashboard/.next/server/chunks/{[root-of-the-server]__0-3~.bv._.js → [root-of-the-server]__052epg.._.js} +3 -3
  217. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__05eryp~._.js +3 -0
  218. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__06fva9g._.js +3 -0
  219. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__08_2avk._.js +3 -0
  220. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0acvvri._.js +3 -0
  221. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0byveuc._.js +3 -0
  222. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0cee_lo._.js +3 -0
  223. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0cyd2qb._.js +3 -0
  224. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0ecs-9r._.js +3 -0
  225. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0ejcow5._.js +3 -0
  226. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0es0s_~._.js +3 -0
  227. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0fglxiw._.js +3 -0
  228. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0g3yw6w._.js +3 -0
  229. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0i1_p1s._.js +3 -0
  230. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0is6qso._.js +3 -0
  231. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0no9qm0._.js +3 -0
  232. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0q8vcw8._.js +3 -0
  233. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0q9fgt6._.js +3 -0
  234. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0rx9hon._.js +3 -0
  235. package/dist/dashboard-runtime/dashboard/.next/server/chunks/{[root-of-the-server]__089es3y._.js → [root-of-the-server]__0sa.9zr._.js} +10 -10
  236. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0tc-.6s._.js +3 -0
  237. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0u03tze._.js +3 -0
  238. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0ua_nqs._.js +3 -0
  239. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0uebf40._.js +3 -0
  240. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0v0il3n._.js +3 -0
  241. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0w_ig2a._.js +3 -0
  242. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0y0w3mg._.js +3 -0
  243. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0zmo~nd._.js +3 -0
  244. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__10m-wmo._.js +3 -0
  245. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__11s_zx6._.js +3 -0
  246. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__11wq90l._.js +3 -0
  247. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__126srko._.js +3 -0
  248. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__12e1t6o._.js +3 -0
  249. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__12ylr4n._.js +3 -0
  250. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__13g_f9w._.js +3 -0
  251. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__13q2wbt._.js +3 -0
  252. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__13~-fxp._.js +3 -0
  253. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/0b1r_app_(dashboard)_knowledge-base_[name]_documents_documents-client_tsx_0g2uxmt._.js +1 -1
  254. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0.ooo1s._.js +3 -0
  255. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__07fsbff._.js +3 -0
  256. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0b5cw4e._.js +3 -0
  257. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0p1cst6._.js +3 -0
  258. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0xza7lz._.js +3 -0
  259. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0.6x0yu._.js +3 -0
  260. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0.pa1e6._.js +3 -0
  261. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_01snuz~._.js +3 -0
  262. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0251rsp._.js +1 -1
  263. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_02waf76._.js +1 -1
  264. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_06_hoj_._.js +3 -0
  265. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0_aw2vr._.js +3 -0
  266. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0brqbty._.js +1 -1
  267. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0csuit-._.js +3 -0
  268. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0ep_q37._.js +3 -0
  269. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0eps5jg._.js +3 -0
  270. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0ez3yia._.js +3 -0
  271. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0fttf6a._.js +3 -0
  272. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0fz3kge._.js +3 -0
  273. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0hx2079._.js +3 -0
  274. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0k7q0ug._.js +3 -0
  275. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0oiggmj._.js +3 -0
  276. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0p0sh02._.js +3 -0
  277. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0pwlb77._.js +3 -0
  278. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0t.h859._.js +1 -1
  279. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0thp9l5._.js +3 -0
  280. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0uc_gmf._.js +3 -0
  281. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0wce254._.js +3 -0
  282. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0ww5s91._.js +3 -0
  283. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0y4mxf8._.js +3 -0
  284. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_12l8jkb._.js +3 -0
  285. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_079nj-_._.js +3 -0
  286. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0_z9696._.js +3 -0
  287. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0grv2wq._.js +1 -1
  288. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0jrh7xy._.js +3 -0
  289. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0x60pxf._.js +1 -1
  290. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0y49vhd._.js +1 -1
  291. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_10dsqx~._.js +1 -1
  292. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_api-keys_page_tsx_0lb6fu7._.js +1 -1
  293. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_memory_[store]_dream_[dreamId]_page_tsx_0wy3tv6._.js +1 -1
  294. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_memory_[store]_dream_page_tsx_0uzzpvs._.js +1 -1
  295. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_memory_[store]_layout_tsx_0rbi41w._.js +1 -1
  296. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_memory_[store]_messages_page_tsx_0votz-n._.js +1 -1
  297. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_memory_[store]_tasks_page_tsx_0a_bgx4._.js +1 -1
  298. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_memory_[store]_units_page_tsx_0.6xnei._.js +1 -1
  299. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_components_memory_memory-files-browser_tsx_0o2~94-._.js +3 -0
  300. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_i18n_i18n-context_tsx_0c39ewr._.js +1 -1
  301. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_providers_runtime-context-provider_tsx_0wmj66z._.js +1 -1
  302. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/node_modules__pnpm_0ymj2~2._.js +3 -0
  303. package/dist/dashboard-runtime/dashboard/.next/server/functions-config-manifest.json +2 -3
  304. package/dist/dashboard-runtime/dashboard/.next/server/middleware-build-manifest.js +3 -3
  305. package/dist/dashboard-runtime/dashboard/.next/server/pages/404.html +1 -1
  306. package/dist/dashboard-runtime/dashboard/.next/server/pages/500.html +1 -1
  307. package/dist/dashboard-runtime/dashboard/.next/server/server-reference-manifest.js +1 -1
  308. package/dist/dashboard-runtime/dashboard/.next/server/server-reference-manifest.json +1 -1
  309. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0-xwobg-a6si1.js +1 -0
  310. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0.hi0qmo.f-h4.js +1 -0
  311. package/dist/dashboard-runtime/dashboard/.next/static/chunks/01bokygf48bnj.js +1 -0
  312. package/dist/dashboard-runtime/dashboard/.next/static/chunks/026lyw-ynx1og.js +1 -0
  313. package/dist/dashboard-runtime/dashboard/.next/static/chunks/04a.1c2rygy08.js +1 -0
  314. package/dist/dashboard-runtime/dashboard/.next/static/chunks/05.2q9f0yx4e_.js +1 -0
  315. package/dist/dashboard-runtime/dashboard/.next/static/chunks/05_iqjh-v2gej.js +1 -0
  316. package/dist/dashboard-runtime/dashboard/.next/static/chunks/05f4mjbi6x-tm.js +1 -0
  317. package/dist/dashboard-runtime/dashboard/.next/static/chunks/07twdccs42b_-.js +1 -0
  318. package/dist/dashboard-runtime/dashboard/.next/static/chunks/090n1_814n.n~.js +1 -0
  319. package/dist/dashboard-runtime/dashboard/.next/static/chunks/09v-qczj__g1x.js +1 -0
  320. package/dist/dashboard-runtime/dashboard/.next/static/chunks/{08nzc9sye_0~h.js → 0_8~9zgfm5f.8.js} +1 -1
  321. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0_zw2y~vb_52n.js +1 -0
  322. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0a2f-mxepv-y7.js +1 -0
  323. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0amex7bwxnme9.js +1 -0
  324. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0apfhv-v7oy7u.js +1 -0
  325. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0bxt5icwb83xt.js +1 -0
  326. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0dpi1comd-thc.js +1 -0
  327. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0eafb9pun~54k.js +9 -0
  328. package/dist/dashboard-runtime/dashboard/.next/static/chunks/{010bpq~3ntjcm.js → 0eerrv808~6bh.js} +1 -1
  329. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0j6agpotrd_n4.js +1 -0
  330. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0jbcdgtcgqemd.js +1 -0
  331. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0jp7zmwvyv0bn.js +1 -0
  332. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0k8mhea24d_kj.js +1 -0
  333. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0krt75we1wtcy.js +1 -0
  334. package/dist/dashboard-runtime/dashboard/.next/static/chunks/{0l~3_bvic.da3.js → 0ogrq_r43je48.js} +1 -1
  335. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0prl9yrb8ksp8.js +1 -0
  336. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0r4azm.3hswcs.js +138 -0
  337. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0r6utd8g~.cc1.js +1 -0
  338. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0u6c8q4k~6aiy.js +1 -0
  339. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0uj7ezedkm6ou.css +1 -0
  340. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0uu2cjfwvbn3y.js +1 -0
  341. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0x5qtkdg2trq9.js +5 -0
  342. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0yvc~t7p88wsf.js +1 -0
  343. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0zhfdjby7cj-q.js +1 -0
  344. package/dist/dashboard-runtime/dashboard/.next/static/chunks/{02u9ocsl0a12t.js → 0~naqbx3873~r.js} +1 -1
  345. package/dist/dashboard-runtime/dashboard/.next/static/chunks/{0~a4ig2x9z8uq.js → 13__t3s3ipfzl.js} +1 -1
  346. package/dist/dashboard-runtime/dashboard/.next/static/chunks/14.8mq880kjoc.js +1 -0
  347. package/dist/dashboard-runtime/dashboard/.next/static/chunks/145hqnc~4wc~n.js +1 -0
  348. package/dist/dashboard-runtime/dashboard/.next/static/chunks/14rpr3z1.lmgj.js +1 -0
  349. package/dist/dashboard-runtime/dashboard/.next/static/chunks/16uky1ro-t_~9.js +1 -0
  350. package/dist/dashboard-runtime/dashboard/.next/static/chunks/18absak_u0d85.js +138 -0
  351. package/dist/dashboard-runtime/dashboard/server.js +1 -1
  352. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/chat/page.tsx +1 -0
  353. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/knowledge-base/[name]/qa/page.tsx +1 -0
  354. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/dream/[dreamId]/page.tsx +187 -2
  355. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/dream/page.tsx +14 -1
  356. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/layout.tsx +59 -8
  357. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/messages/page.tsx +15 -0
  358. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/tasks/page.tsx +9 -0
  359. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/units/page.tsx +123 -24
  360. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/projects/page.tsx +3 -0
  361. package/dist/dashboard-runtime/dashboard/src/app/api/v1/instances/connectivity/route.ts +66 -0
  362. package/dist/dashboard-runtime/dashboard/src/app/api/v1/llm/chat/file-memory-curator.ts +496 -0
  363. package/dist/dashboard-runtime/dashboard/src/app/api/v1/llm/chat/file-memory-helpers.ts +12 -81
  364. package/dist/dashboard-runtime/dashboard/src/app/api/v1/llm/chat/memory-helpers.ts +3 -3
  365. package/dist/dashboard-runtime/dashboard/src/app/api/v1/llm/chat/route.ts +200 -39
  366. package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/dream-tasks/[dreamId]/actions/apply/route.ts +39 -6
  367. package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/file-memory/[action]/route.ts +86 -0
  368. package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/file-memory/_helpers.ts +26 -36
  369. package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/file-memory/_request.ts +49 -0
  370. package/dist/dashboard-runtime/dashboard/src/app/onboarding/page.tsx +1 -3
  371. package/dist/dashboard-runtime/dashboard/src/components/chat/chat-config-context.tsx +48 -9
  372. package/dist/dashboard-runtime/dashboard/src/components/chat/memory-bind-section.tsx +66 -18
  373. package/dist/dashboard-runtime/dashboard/src/components/chat/memory-files-dialog.tsx +1 -1
  374. package/dist/dashboard-runtime/dashboard/src/components/chat/mount-picker.tsx +5 -1
  375. package/dist/dashboard-runtime/dashboard/src/components/instance/instance-connectivity-dot.tsx +96 -0
  376. package/dist/dashboard-runtime/dashboard/src/components/instance/project-card.tsx +5 -1
  377. package/dist/dashboard-runtime/dashboard/src/components/knowledge-base/subspace-gate.tsx +23 -5
  378. package/dist/dashboard-runtime/dashboard/src/components/knowledge-base/subspace-switcher.tsx +23 -5
  379. package/dist/dashboard-runtime/dashboard/src/components/layout/instance-switcher.tsx +13 -1
  380. package/dist/dashboard-runtime/dashboard/src/components/layout/sidebar-instance-card.tsx +29 -4
  381. package/dist/dashboard-runtime/dashboard/src/components/memory/file-details-panel.tsx +91 -0
  382. package/dist/dashboard-runtime/dashboard/src/components/memory/file-editor.tsx +144 -0
  383. package/dist/dashboard-runtime/dashboard/src/components/memory/file-mutation-dialogs.tsx +181 -0
  384. package/dist/dashboard-runtime/dashboard/src/components/memory/file-scope-onboarding.tsx +154 -0
  385. package/dist/dashboard-runtime/dashboard/src/components/memory/file-version-history.tsx +251 -0
  386. package/dist/dashboard-runtime/dashboard/src/components/memory/file-workspace-toolbar.tsx +101 -0
  387. package/dist/dashboard-runtime/dashboard/src/components/memory/memory-create-form.tsx +166 -75
  388. package/dist/dashboard-runtime/dashboard/src/components/memory/memory-dream-create-dialog.tsx +385 -73
  389. package/dist/dashboard-runtime/dashboard/src/components/memory/memory-dream-plan-approval-dialog.tsx +172 -0
  390. package/dist/dashboard-runtime/dashboard/src/components/memory/memory-files-browser.tsx +500 -168
  391. package/dist/dashboard-runtime/dashboard/src/components/memory/memory-scope-bar.tsx +230 -72
  392. package/dist/dashboard-runtime/dashboard/src/components/memory/memory-search-form.tsx +51 -14
  393. package/dist/dashboard-runtime/dashboard/src/components/memory/memory-search-results.tsx +5 -1
  394. package/dist/dashboard-runtime/dashboard/src/components/memory/memory-settings-form.tsx +54 -46
  395. package/dist/dashboard-runtime/dashboard/src/components/memory/memory-store-card.tsx +126 -69
  396. package/dist/dashboard-runtime/dashboard/src/components/memory/memory-unit-table.tsx +5 -1
  397. package/dist/dashboard-runtime/dashboard/src/components/memory/scope-combobox.tsx +169 -42
  398. package/dist/dashboard-runtime/dashboard/src/components/qa/qa-message.tsx +233 -38
  399. package/dist/dashboard-runtime/dashboard/src/components/shared/error-state.tsx +3 -2
  400. package/dist/dashboard-runtime/dashboard/src/components/shared/llm-model-selector.tsx +5 -1
  401. package/dist/dashboard-runtime/dashboard/src/components/ui/dialog.tsx +1 -1
  402. package/dist/dashboard-runtime/dashboard/src/contexts/subspace-context.tsx +144 -30
  403. package/dist/dashboard-runtime/dashboard/src/hooks/use-approve-dream-plan.ts +25 -0
  404. package/dist/dashboard-runtime/dashboard/src/hooks/use-chat-history.ts +125 -47
  405. package/dist/dashboard-runtime/dashboard/src/hooks/use-file-memory.ts +185 -29
  406. package/dist/dashboard-runtime/dashboard/src/hooks/use-instances.ts +40 -0
  407. package/dist/dashboard-runtime/dashboard/src/hooks/use-memory-store-scopes.ts +2 -1
  408. package/dist/dashboard-runtime/dashboard/src/hooks/use-qa-chat.ts +188 -23
  409. package/dist/dashboard-runtime/dashboard/src/hooks/use-subspace-history.ts +64 -75
  410. package/dist/dashboard-runtime/dashboard/src/i18n/locales/en.ts +198 -14
  411. package/dist/dashboard-runtime/dashboard/src/i18n/locales/zh.ts +188 -14
  412. package/dist/dashboard-runtime/dashboard/src/lib/api-error-toast.ts +9 -1
  413. package/dist/dashboard-runtime/dashboard/src/lib/browser-file-memory.ts +397 -0
  414. package/dist/dashboard-runtime/dashboard/src/lib/file-scope-history.ts +108 -0
  415. package/dist/dashboard-runtime/dashboard/src/lib/memory-scope-history.ts +165 -0
  416. package/dist/dashboard-runtime/dashboard/src/lib/memory-storage-mode.ts +193 -31
  417. package/dist/dashboard-runtime/dashboard/src/lib/memory.ts +29 -4
  418. package/dist/dashboard-runtime/dashboard/src/lib/query-keys.ts +63 -0
  419. package/dist/dashboard-runtime/dashboard/src/lib/server/api-helpers.ts +5 -0
  420. package/dist/dashboard-runtime/dashboard/src/lib/server/instance-connectivity.ts +136 -0
  421. package/dist/dashboard-runtime/dashboard/src/lib/server/sdk-client.ts +25 -3
  422. package/dist/dashboard-runtime/dashboard/src/lib/subspace-history.ts +151 -0
  423. package/dist/dashboard-runtime/dashboard/src/schemas/llm-chat.ts +58 -13
  424. package/dist/dashboard-runtime/dashboard/src/services/file-memory.ts +80 -46
  425. package/dist/dashboard-runtime/dashboard/src/services/instances.ts +5 -0
  426. package/dist/dashboard-runtime/dashboard/src/services/memory.ts +45 -5
  427. package/dist/dashboard-runtime/dashboard/src/types/file-memory.ts +150 -0
  428. package/dist/dashboard-runtime/dashboard/src/types/instance.ts +17 -0
  429. package/dist/dashboard-runtime/dashboard/src/types/llm-chat.ts +49 -13
  430. package/dist/dashboard-runtime/dashboard/src/types/memory.ts +59 -5
  431. package/dist/dashboard-runtime/dashboard/tsconfig.tsbuildinfo +1 -0
  432. package/dist/dashboard-runtime/node_modules/@img/sharp-darwin-arm64/lib/sharp-darwin-arm64.node +0 -0
  433. package/dist/dashboard-runtime/node_modules/@img/{sharp-linux-x64 → sharp-darwin-arm64}/package.json +7 -13
  434. package/dist/dashboard-runtime/node_modules/@img/{sharp-libvips-linux-x64 → sharp-libvips-darwin-arm64}/README.md +2 -2
  435. package/dist/dashboard-runtime/node_modules/@img/{sharp-libvips-linux-x64 → sharp-libvips-darwin-arm64}/lib/glib-2.0/include/glibconfig.h +8 -9
  436. package/dist/dashboard-runtime/node_modules/@img/{sharp-libvips-linux-x64/lib/libvips-cpp.so.8.17.3 → sharp-libvips-darwin-arm64/lib/libvips-cpp.8.17.3.dylib} +0 -0
  437. package/dist/dashboard-runtime/node_modules/@img/{sharp-libvips-linux-x64 → sharp-libvips-darwin-arm64}/package.json +5 -11
  438. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/index.d.ts +0 -1
  439. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/index.d.ts.map +1 -1
  440. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/index.js +0 -1
  441. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/index.js.map +1 -1
  442. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.d.ts +9 -8
  443. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.d.ts.map +1 -1
  444. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.js +24 -10
  445. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.js.map +1 -1
  446. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/response.d.ts.map +1 -1
  447. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/response.js +5 -1
  448. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/response.js.map +1 -1
  449. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/tsconfig.tsbuildinfo +1 -1
  450. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/package.json +1 -1
  451. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/tsconfig.tsbuildinfo +1 -1
  452. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/types.d.ts.map +1 -1
  453. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/index.d.ts +0 -1
  454. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/index.d.ts.map +1 -1
  455. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/index.js +0 -1
  456. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/index.js.map +1 -1
  457. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.d.ts +9 -8
  458. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.d.ts.map +1 -1
  459. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.js +24 -10
  460. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.js.map +1 -1
  461. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/response.d.ts.map +1 -1
  462. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/response.js +5 -1
  463. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/response.js.map +1 -1
  464. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/tsconfig.tsbuildinfo +1 -1
  465. package/dist/node_modules/@tablestore/tablestore-agent-sdk/package.json +1 -1
  466. package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/tsconfig.tsbuildinfo +1 -1
  467. package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/types.d.ts.map +1 -1
  468. package/package.json +3 -3
  469. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/file/route/app-paths-manifest.json +0 -3
  470. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/file/route.js +0 -6
  471. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/file/route.js.nft.json +0 -1
  472. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/file/route_client-reference-manifest.js +0 -3
  473. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/sync/route/app-paths-manifest.json +0 -3
  474. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/sync/route.js +0 -6
  475. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/sync/route_client-reference-manifest.js +0 -3
  476. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/tree/route/app-paths-manifest.json +0 -3
  477. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/tree/route/build-manifest.json +0 -9
  478. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/tree/route/server-reference-manifest.json +0 -4
  479. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/tree/route.js +0 -6
  480. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/tree/route.js.map +0 -5
  481. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/tree/route.js.nft.json +0 -1
  482. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/tree/route_client-reference-manifest.js +0 -3
  483. package/dist/dashboard-runtime/dashboard/.next/server/chunks/0ndq_server_app_api_v1_memory_stores_[store]_file-memory_file_route_actions_06~k01v.js +0 -3
  484. package/dist/dashboard-runtime/dashboard/.next/server/chunks/0ndq_server_app_api_v1_memory_stores_[store]_file-memory_sync_route_actions_0rt6p8e.js +0 -3
  485. package/dist/dashboard-runtime/dashboard/.next/server/chunks/0ndq_server_app_api_v1_memory_stores_[store]_file-memory_tree_route_actions_0wl_n8b.js +0 -3
  486. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0-dt7~s._.js +0 -3
  487. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0.-~ff4._.js +0 -3
  488. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0.l706t._.js +0 -3
  489. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0.nejw_._.js +0 -3
  490. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__00_mrad._.js +0 -3
  491. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__00i.7se._.js +0 -3
  492. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__00r7uqs._.js +0 -3
  493. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__02~yw7n._.js +0 -3
  494. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__04kpzpa._.js +0 -3
  495. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__04p1a88._.js +0 -3
  496. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__05x0k4d._.js +0 -3
  497. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__060s~oe._.js +0 -3
  498. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__06fanvv._.js +0 -3
  499. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__06tci88._.js +0 -3
  500. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__08bzgzm._.js +0 -3
  501. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__08d7wb.._.js +0 -3
  502. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__08p_m_c._.js +0 -3
  503. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__095xiwn._.js +0 -3
  504. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__09h95i6._.js +0 -3
  505. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0ai2k_o._.js +0 -40
  506. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0alcygi._.js +0 -3
  507. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0aspytx._.js +0 -3
  508. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0cq-9s~._.js +0 -3
  509. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0cyiuai._.js +0 -3
  510. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0d4zrpj._.js +0 -3
  511. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0d~m09k._.js +0 -3
  512. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0f1lugp._.js +0 -3
  513. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0g1cfb7._.js +0 -40
  514. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0gpz.~y._.js +0 -3
  515. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0i3u9x3._.js +0 -3
  516. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0iromt6._.js +0 -3
  517. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0j8.u0y._.js +0 -3
  518. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0k-pfaj._.js +0 -3
  519. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0kcbz7k._.js +0 -3
  520. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0nrl-.g._.js +0 -3
  521. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0o5mf4h._.js +0 -3
  522. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0omyr40._.js +0 -3
  523. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0ty8jgt._.js +0 -3
  524. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0ug_2kc._.js +0 -3
  525. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0v98i9~._.js +0 -3
  526. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0wt0ksb._.js +0 -3
  527. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0ya_8d2._.js +0 -3
  528. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0zfg-ml._.js +0 -3
  529. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0~9ru5n._.js +0 -3
  530. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0~f7ckz._.js +0 -3
  531. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__109i6ps._.js +0 -3
  532. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__10o5zq5._.js +0 -3
  533. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__12ls5l8._.js +0 -3
  534. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/0w-2_lucide-react_dist_esm_icons_0h-3_0x._.js +0 -3
  535. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0k0es2c._.js +0 -3
  536. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0ky8i.~._.js +0 -3
  537. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0ocsrt0._.js +0 -3
  538. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0ys4x_n._.js +0 -3
  539. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__10rkv6z._.js +0 -3
  540. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_002mc1c._.js +0 -3
  541. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_04f2u4t._.js +0 -3
  542. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_06ny.4k._.js +0 -3
  543. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0b9pl2d._.js +0 -3
  544. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0e.ehti._.js +0 -3
  545. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0f8moq0._.js +0 -3
  546. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0f8yv4v._.js +0 -3
  547. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0fvg_xo._.js +0 -3
  548. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0h9c.8m._.js +0 -3
  549. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0ip4ncy._.js +0 -3
  550. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0izjcsk._.js +0 -3
  551. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0j.62sb._.js +0 -3
  552. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0mdbcju._.js +0 -3
  553. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0p_s55v._.js +0 -3
  554. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0qiamjd._.js +0 -3
  555. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0xp94lc._.js +0 -3
  556. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_13730cz._.js +0 -3
  557. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_13ctfae._.js +0 -3
  558. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_00.1.s_._.js +0 -3
  559. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_04o7mfc._.js +0 -3
  560. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0bhjp9s._.js +0 -3
  561. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0qlyj-q._.js +0 -3
  562. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/node_modules__pnpm_00usyu3._.js +0 -3
  563. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/node_modules__pnpm_0791f2k._.js +0 -3
  564. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0--dupndun7xc.css +0 -1
  565. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0.uxk~hsm6yi8.js +0 -138
  566. package/dist/dashboard-runtime/dashboard/.next/static/chunks/00eggrx~.4c55.js +0 -1
  567. package/dist/dashboard-runtime/dashboard/.next/static/chunks/00lvoeu_v3253.js +0 -1
  568. package/dist/dashboard-runtime/dashboard/.next/static/chunks/00o9vmhspv._3.js +0 -138
  569. package/dist/dashboard-runtime/dashboard/.next/static/chunks/00x1.t633f041.js +0 -1
  570. package/dist/dashboard-runtime/dashboard/.next/static/chunks/02p7gke47s.2~.js +0 -1
  571. package/dist/dashboard-runtime/dashboard/.next/static/chunks/03dth-av1gl-h.js +0 -1
  572. package/dist/dashboard-runtime/dashboard/.next/static/chunks/07s0f6938um2v.js +0 -1
  573. package/dist/dashboard-runtime/dashboard/.next/static/chunks/09y30vyml4r.b.js +0 -1
  574. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0au0pbejtwahz.js +0 -1
  575. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0b-ei8-g7ceug.js +0 -1
  576. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0chiv044h3u58.js +0 -1
  577. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0fcdli-~wmvvx.js +0 -1
  578. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0fz_9~-rxluly.js +0 -1
  579. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0i55cqygnl-a9.js +0 -5
  580. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0j8p7vk~awgs..js +0 -1
  581. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0j_.hkhjix9hw.js +0 -1
  582. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0ll488v66ycn1.js +0 -1
  583. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0naliud7av3p1.js +0 -1
  584. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0pbfl~23ac79y.js +0 -9
  585. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0u3qx.qasmdx9.js +0 -1
  586. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0vuh8jgeqqdy..js +0 -1
  587. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0wbevjtr1_grz.js +0 -1
  588. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0y-gjpq3kxsbz.js +0 -1
  589. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0z_pq4ttgotxw.js +0 -1
  590. package/dist/dashboard-runtime/dashboard/.next/static/chunks/10i~m4_8ainxw.js +0 -1
  591. package/dist/dashboard-runtime/dashboard/.next/static/chunks/12535rmhzbk63.js +0 -1
  592. package/dist/dashboard-runtime/dashboard/.next/static/chunks/13uk2uuzuop5e.js +0 -1
  593. package/dist/dashboard-runtime/dashboard/.next/static/chunks/13vd4hv~l95-c.js +0 -1
  594. package/dist/dashboard-runtime/dashboard/.next/static/chunks/16.2aecdwo6w_.js +0 -1
  595. package/dist/dashboard-runtime/dashboard/.next/static/chunks/16yu0g~7n~33c.js +0 -1
  596. package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/file-memory/file/route.ts +0 -69
  597. package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/file-memory/sync/route.ts +0 -69
  598. package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/file-memory/tree/route.ts +0 -44
  599. package/dist/dashboard-runtime/node_modules/@img/sharp-linux-x64/lib/sharp-linux-x64.node +0 -0
  600. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/file-memory.d.ts +0 -153
  601. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/file-memory.d.ts.map +0 -1
  602. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/file-memory.js +0 -451
  603. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/file-memory.js.map +0 -1
  604. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/file-memory.d.ts +0 -153
  605. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/file-memory.d.ts.map +0 -1
  606. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/file-memory.js +0 -451
  607. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/file-memory.js.map +0 -1
  608. /package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/{memory/stores/[store]/file-memory/file → instances/connectivity}/route/build-manifest.json +0 -0
  609. /package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/{memory/stores/[store]/file-memory/file → instances/connectivity}/route/server-reference-manifest.json +0 -0
  610. /package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/{memory/stores/[store]/file-memory/file → instances/connectivity}/route.js.map +0 -0
  611. /package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/{sync → [action]}/route/build-manifest.json +0 -0
  612. /package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/{sync → [action]}/route/server-reference-manifest.json +0 -0
  613. /package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/{sync → [action]}/route.js.map +0 -0
  614. /package/dist/dashboard-runtime/dashboard/.next/static/{5irIRCYtKcYh5T_Bewihp → 8G6beqTEKH_-N0JljpgWT}/_buildManifest.js +0 -0
  615. /package/dist/dashboard-runtime/dashboard/.next/static/{5irIRCYtKcYh5T_Bewihp → 8G6beqTEKH_-N0JljpgWT}/_clientMiddlewareManifest.js +0 -0
  616. /package/dist/dashboard-runtime/dashboard/.next/static/{5irIRCYtKcYh5T_Bewihp → 8G6beqTEKH_-N0JljpgWT}/_ssgManifest.js +0 -0
  617. /package/dist/dashboard-runtime/node_modules/@img/{sharp-libvips-linux-x64 → sharp-libvips-darwin-arm64}/lib/index.js +0 -0
  618. /package/dist/dashboard-runtime/node_modules/@img/{sharp-libvips-linux-x64 → sharp-libvips-darwin-arm64}/versions.json +0 -0
@@ -16,13 +16,19 @@ import type {
16
16
  } from "@/hooks/use-chat-history";
17
17
  import { assembleRetrievalConfiguration } from "@/components/retrieval/assemble-retrieval-configuration";
18
18
  import { newId } from "@/lib/random-id";
19
+ import {
20
+ FILEMEM_DEFAULT_RUN_ID,
21
+ normalizeMemoryRunId,
22
+ type StorageMode,
23
+ } from "@/lib/memory-storage-mode";
19
24
 
20
25
  export type MountItem = ChatSessionMount;
21
26
 
22
27
  /**
23
28
  * 绑定里存的 scope 是*写* scope:四个字段都齐全且非通配符。
24
- * 服务端在检索时自行派生读 scope(agentId="*", runId="*"),客户端
25
- * 永远不发通配符。
29
+ * 服务端仅为结构化语义检索派生 app + tenant 级读 scope(保留 appId / tenantId,
30
+ * agentId / runId 为 "*");文件记忆仍使用精确 scope。客户端永远
31
+ * 不发通配符。
26
32
  */
27
33
  export interface ChatMemoryWriteScope {
28
34
  appId: string;
@@ -34,6 +40,7 @@ export interface ChatMemoryWriteScope {
34
40
  export interface ChatMemoryBinding {
35
41
  id: string;
36
42
  memoryStoreName: string;
43
+ storageMode?: StorageMode;
37
44
  scope: ChatMemoryWriteScope;
38
45
  topK?: number;
39
46
  autoSave: boolean;
@@ -173,12 +180,34 @@ export function reducer(
173
180
  .filter((m): m is MountItem => !!m);
174
181
  return { ...state, mounts: reordered };
175
182
  }
176
- case "HYDRATE":
177
- return { ...state, ...action.state };
183
+ case "HYDRATE": {
184
+ const memory = action.state.memory;
185
+ return {
186
+ ...state,
187
+ ...action.state,
188
+ ...(memory
189
+ ? {
190
+ memory: {
191
+ ...memory,
192
+ scope: {
193
+ ...memory.scope,
194
+ runId: normalizeMemoryRunId(
195
+ memory.storageMode,
196
+ memory.scope.runId,
197
+ ),
198
+ },
199
+ },
200
+ }
201
+ : {}),
202
+ };
203
+ }
178
204
  // SET_MEMORY 同一绑定的 id 保持稳定;只有从无到有时才铸新 id,避免不必要的 React key 抖动。
179
205
  case "SET_MEMORY": {
180
206
  if (!action.binding) return { ...state, memory: undefined };
181
- const runId = action.binding.scope.runId || newId("run");
207
+ const runId = normalizeMemoryRunId(
208
+ action.binding.storageMode,
209
+ action.binding.scope.runId,
210
+ );
182
211
  return {
183
212
  ...state,
184
213
  memory: {
@@ -191,12 +220,19 @@ export function reducer(
191
220
  case "UPDATE_MEMORY": {
192
221
  if (!state.memory) return state;
193
222
  const { scope: patchScope, ...rest } = action.patch;
223
+ const memory = {
224
+ ...state.memory,
225
+ ...rest,
226
+ scope: { ...state.memory.scope, ...(patchScope ?? {}) },
227
+ };
194
228
  return {
195
229
  ...state,
196
230
  memory: {
197
- ...state.memory,
198
- ...rest,
199
- scope: { ...state.memory.scope, ...(patchScope ?? {}) },
231
+ ...memory,
232
+ scope: {
233
+ ...memory.scope,
234
+ runId: normalizeMemoryRunId(memory.storageMode, memory.scope.runId),
235
+ },
200
236
  },
201
237
  };
202
238
  }
@@ -330,11 +366,14 @@ export function buildRagFromMounts(state: ChatConfigState) {
330
366
  export function buildMemoryFromBinding(state: ChatConfigState) {
331
367
  const m = state.memory;
332
368
  if (!m) return undefined;
333
- const { appId, tenantId, agentId, runId } = m.scope;
369
+ const { appId, tenantId, agentId } = m.scope;
370
+ const runId =
371
+ m.storageMode === "filemem" ? FILEMEM_DEFAULT_RUN_ID : m.scope.runId;
334
372
  if (!appId || !tenantId || !agentId || !runId) return undefined;
335
373
  return {
336
374
  memoryStoreName: m.memoryStoreName,
337
375
  scope: { appId, tenantId, agentId, runId },
376
+ ...(m.storageMode ? { storageMode: m.storageMode } : {}),
338
377
  ...(typeof m.topK === "number" ? { topK: m.topK } : {}),
339
378
  autoSave: m.autoSave,
340
379
  ...(m.retrievalMode ? { retrievalMode: m.retrievalMode } : {}),
@@ -30,7 +30,12 @@ import { MemoryFilesDialog } from "@/components/chat/memory-files-dialog";
30
30
  import { ScopeCombobox } from "@/components/memory/scope-combobox";
31
31
  import { useI18n } from "@/i18n/i18n-context";
32
32
  import { cn } from "@/lib/utils";
33
- import { isFileMemory, resolveRetrievalMode } from "@/lib/memory-storage-mode";
33
+ import {
34
+ normalizeStorageMode,
35
+ resolveRetrievalMode,
36
+ storageModeCapabilities,
37
+ type StorageMode,
38
+ } from "@/lib/memory-storage-mode";
34
39
 
35
40
  /**
36
41
  * 抽屉里的「记忆库」区块。
@@ -51,12 +56,13 @@ export function MemoryBindSection() {
51
56
  const binding = cfg.memory;
52
57
  const topKId = useId();
53
58
 
54
- // 绑定库是否为文件型(oss+ots)。storageMode 由列表 BFF 逐库富化;只有明确是
55
- // oss+ots 才允许「文件记忆」检索模式。
56
59
  const boundStore = binding
57
60
  ? stores.find((s) => s.memoryStoreName === binding.memoryStoreName)
58
61
  : undefined;
59
- const isFileStore = isFileMemory(boundStore?.storageMode);
62
+ const storageMode = normalizeStorageMode(boundStore?.storageMode);
63
+ const capabilities = storageModeCapabilities(storageMode);
64
+ const autoSaveAllowed =
65
+ capabilities.structuredAutoSave || capabilities.writableFiles;
60
66
 
61
67
  // 纠偏:绑定的库不是文件型却残留 retrievalMode=local(切换了库、或载入了旧会话)
62
68
  // 时,强制回落 search,避免对话时走文件记忆分支报错。等库列表就绪后再纠偏,
@@ -64,13 +70,23 @@ export function MemoryBindSection() {
64
70
  const currentMode = binding?.retrievalMode;
65
71
  useEffect(() => {
66
72
  if (!binding || isLoading) return;
67
- const corrected = resolveRetrievalMode(currentMode, isFileStore);
68
- if (currentMode === "local" && corrected !== "local") {
69
- cfg.updateMemory({ retrievalMode: corrected });
73
+ const corrected = resolveRetrievalMode(currentMode, storageMode);
74
+ const patch = {
75
+ ...(currentMode !== corrected ? { retrievalMode: corrected } : {}),
76
+ ...(binding.storageMode !== storageMode ? { storageMode } : {}),
77
+ };
78
+ if (Object.keys(patch).length > 0) {
79
+ cfg.updateMemory(patch);
70
80
  }
71
81
  // cfg.updateMemory 稳定;仅依赖会影响判定的原始量
72
82
  // eslint-disable-next-line react-hooks/exhaustive-deps
73
- }, [binding?.memoryStoreName, currentMode, isFileStore, isLoading]);
83
+ }, [
84
+ binding?.memoryStoreName,
85
+ binding?.storageMode,
86
+ currentMode,
87
+ storageMode,
88
+ isLoading,
89
+ ]);
74
90
 
75
91
  return (
76
92
  <div className="space-y-3 border-t border-[hsl(var(--border))] pt-4">
@@ -118,6 +134,7 @@ export function MemoryBindSection() {
118
134
  onBind={() =>
119
135
  cfg.setMemory({
120
136
  memoryStoreName: stores[0]?.memoryStoreName ?? "",
137
+ storageMode: normalizeStorageMode(stores[0]?.storageMode),
121
138
  scope: { appId: "", tenantId: "", agentId: "", runId: "" },
122
139
  autoSave: true,
123
140
  topK: 5,
@@ -129,13 +146,27 @@ export function MemoryBindSection() {
129
146
  <MemoryStoreRow
130
147
  value={binding.memoryStoreName}
131
148
  stores={stores}
132
- onChange={(v) => cfg.updateMemory({ memoryStoreName: v })}
149
+ onChange={(v) => {
150
+ const nextMode = normalizeStorageMode(
151
+ stores.find((store) => store.memoryStoreName === v)
152
+ ?.storageMode,
153
+ );
154
+ cfg.updateMemory({
155
+ memoryStoreName: v,
156
+ storageMode: nextMode,
157
+ retrievalMode: resolveRetrievalMode(
158
+ binding.retrievalMode,
159
+ nextMode,
160
+ ),
161
+ });
162
+ }}
133
163
  onUnbind={() => cfg.setMemory(undefined)}
134
164
  />
135
165
 
136
166
  <RetrievalModeRow
137
- mode={resolveRetrievalMode(binding.retrievalMode, isFileStore)}
138
- fileMemoryAllowed={isFileStore}
167
+ mode={resolveRetrievalMode(binding.retrievalMode, storageMode)}
168
+ storageMode={storageMode}
169
+ fileMemoryAllowed={capabilities.files}
139
170
  onChange={(m) => cfg.updateMemory({ retrievalMode: m })}
140
171
  memoryStoreName={binding.memoryStoreName}
141
172
  scope={binding.scope}
@@ -148,6 +179,8 @@ export function MemoryBindSection() {
148
179
  agentId={binding.scope.agentId}
149
180
  runId={binding.scope.runId}
150
181
  autoSave={binding.autoSave}
182
+ autoSaveAllowed={autoSaveAllowed}
183
+ fileAutoSave={capabilities.writableFiles}
151
184
  onScopeChange={(patch) => cfg.updateMemory({ scope: patch })}
152
185
  onAutoSaveChange={(v) => cfg.updateMemory({ autoSave: v })}
153
186
  />
@@ -160,18 +193,25 @@ export function MemoryBindSection() {
160
193
  /**
161
194
  * 记忆检索模式二选一 + 文件记忆入口。
162
195
  * - 「语义检索」:服务端每轮向量检索(原行为)。
163
- * - 「文件记忆」:openclaw local 模式同款——把该范围的 OSS 文件投影同步到
196
+ * - 「文件记忆」:把该范围的服务端文件投影同步到
164
197
  * 本地镜像目录,在文件上做词法检索,并可「查看记忆文件」浏览目录结构。
165
198
  */
166
199
  function RetrievalModeRow(props: {
167
200
  mode: "search" | "local";
168
- /** 绑定库是否为文件型(oss+ots)。非文件型时禁用「文件记忆」选项。 */
201
+ storageMode: StorageMode;
169
202
  fileMemoryAllowed: boolean;
170
203
  onChange: (mode: "search" | "local") => void;
171
204
  memoryStoreName: string;
172
205
  scope: { appId: string; tenantId: string; agentId: string; runId: string };
173
206
  }) {
174
- const { mode, fileMemoryAllowed, onChange, memoryStoreName, scope } = props;
207
+ const {
208
+ mode,
209
+ storageMode,
210
+ fileMemoryAllowed,
211
+ onChange,
212
+ memoryStoreName,
213
+ scope,
214
+ } = props;
175
215
  const { t } = useI18n();
176
216
  const [filesOpen, setFilesOpen] = useState(false);
177
217
  const scopeComplete =
@@ -191,6 +231,7 @@ function RetrievalModeRow(props: {
191
231
  <div className="grid grid-cols-2 gap-2">
192
232
  <ModeButton
193
233
  active={mode === "search"}
234
+ disabled={storageMode === "filemem"}
194
235
  title={t("chat.memoryBind.modeSearchTitle")}
195
236
  desc={t("chat.memoryBind.modeSearchDesc")}
196
237
  onClick={() => onChange("search")}
@@ -200,9 +241,11 @@ function RetrievalModeRow(props: {
200
241
  disabled={!fileMemoryAllowed}
201
242
  title={t("chat.memoryBind.modeLocalTitle")}
202
243
  desc={
203
- fileMemoryAllowed
204
- ? t("chat.memoryBind.modeLocalDescEnabled")
205
- : t("chat.memoryBind.modeLocalDescDisabled")
244
+ storageMode === "filemem"
245
+ ? t("chat.memoryBind.modeLocalDescWritable")
246
+ : fileMemoryAllowed
247
+ ? t("chat.memoryBind.modeLocalDescEnabled")
248
+ : t("chat.memoryBind.modeLocalDescDisabled")
206
249
  }
207
250
  onClick={() => onChange("local")}
208
251
  />
@@ -399,6 +442,8 @@ function MemoryBindingForm(props: {
399
442
  agentId: string;
400
443
  runId: string;
401
444
  autoSave: boolean;
445
+ autoSaveAllowed: boolean;
446
+ fileAutoSave: boolean;
402
447
  onScopeChange: (patch: {
403
448
  appId?: string;
404
449
  tenantId?: string;
@@ -461,11 +506,14 @@ function MemoryBindingForm(props: {
461
506
  <div className="space-y-0.5">
462
507
  <Label className="text-sm">{t("chat.memoryBind.autoSave")}</Label>
463
508
  <p className="text-xs text-muted-foreground">
464
- {t("chat.memoryBind.autoSaveDesc")}
509
+ {props.fileAutoSave
510
+ ? t("chat.memoryBind.autoSaveFilememDesc")
511
+ : t("chat.memoryBind.autoSaveDesc")}
465
512
  </p>
466
513
  </div>
467
514
  <Switch
468
515
  checked={props.autoSave}
516
+ disabled={!props.autoSaveAllowed}
469
517
  onCheckedChange={props.onAutoSaveChange}
470
518
  />
471
519
  </div>
@@ -28,7 +28,7 @@ export function MemoryFilesDialog(props: {
28
28
 
29
29
  return (
30
30
  <Dialog open={open} onOpenChange={onOpenChange}>
31
- <DialogContent className="flex max-h-[80vh] max-w-3xl flex-col overflow-hidden">
31
+ <DialogContent className="flex h-[86vh] max-h-[900px] w-[95vw] max-w-[1400px] flex-col overflow-hidden">
32
32
  <DialogHeader>
33
33
  <DialogTitle className="flex items-center gap-2">
34
34
  <FolderTree className="h-4 w-4" />
@@ -56,7 +56,11 @@ export function MountPicker({
56
56
  };
57
57
 
58
58
  return (
59
- <Popover open={open} onOpenChange={setOpen}>
59
+ // `modal` is load-bearing: this picker opens from inside the chat config
60
+ // Sheet, and a Radix Dialog's scroll lock cancels wheel events on portalled
61
+ // content it doesn't own — without it the KB list simply refuses to scroll.
62
+ // See components/ui/__tests__/popover-in-dialog.test.ts.
63
+ <Popover open={open} onOpenChange={setOpen} modal>
60
64
  <PopoverTrigger asChild>{children}</PopoverTrigger>
61
65
  <PopoverContent
62
66
  align={align}
@@ -0,0 +1,96 @@
1
+ "use client";
2
+
3
+ import {
4
+ Tooltip,
5
+ TooltipContent,
6
+ TooltipProvider,
7
+ TooltipTrigger,
8
+ } from "@/components/ui/tooltip";
9
+ import { useI18n, type TranslateFn } from "@/i18n/i18n-context";
10
+ import { cn } from "@/lib/utils";
11
+ import type {
12
+ InstanceConnectivity,
13
+ InstanceConnectivityReason,
14
+ } from "@/types/instance";
15
+
16
+ interface InstanceConnectivityDotProps {
17
+ status?: InstanceConnectivity;
18
+ className?: string;
19
+ }
20
+
21
+ function reasonLabel(
22
+ reason: InstanceConnectivityReason | undefined,
23
+ t: TranslateFn,
24
+ ) {
25
+ switch (reason) {
26
+ case "timeout":
27
+ return t("instance.connectivity.reasonTimeout");
28
+ case "dns":
29
+ return t("instance.connectivity.reasonDns");
30
+ case "connection":
31
+ return t("instance.connectivity.reasonConnection");
32
+ case "tls":
33
+ return t("instance.connectivity.reasonTls");
34
+ default:
35
+ return t("instance.connectivity.reasonNetwork");
36
+ }
37
+ }
38
+
39
+ function statusLabel(status: InstanceConnectivity | undefined, t: TranslateFn) {
40
+ if (!status) return t("instance.connectivity.checking");
41
+ if (!status.configured) return t("instance.connectivity.notConfigured");
42
+ if (status.reachable === true) {
43
+ return status.latencyMs === undefined
44
+ ? t("instance.connectivity.reachable")
45
+ : t("instance.connectivity.reachableLatency", {
46
+ latency: status.latencyMs,
47
+ });
48
+ }
49
+ if (status.reachable === false) {
50
+ const reason = reasonLabel(status.reason, t);
51
+ return status.message
52
+ ? t("instance.connectivity.unreachableDetail", {
53
+ reason,
54
+ detail: status.message,
55
+ })
56
+ : t("instance.connectivity.unreachable", { reason });
57
+ }
58
+ return t("instance.connectivity.checking");
59
+ }
60
+
61
+ function statusClass(status: InstanceConnectivity | undefined) {
62
+ if (!status || !status.configured || status.reachable === null) {
63
+ return "bg-muted-foreground/35";
64
+ }
65
+ if (status.reachable === false) return "bg-red-500";
66
+ return "bg-emerald-500/70";
67
+ }
68
+
69
+ export function InstanceConnectivityDot({
70
+ status,
71
+ className,
72
+ }: InstanceConnectivityDotProps) {
73
+ const { t } = useI18n();
74
+ const label = statusLabel(status, t);
75
+
76
+ return (
77
+ <TooltipProvider delayDuration={250}>
78
+ <Tooltip>
79
+ <TooltipTrigger asChild>
80
+ <span
81
+ role="status"
82
+ aria-label={label}
83
+ className={cn(
84
+ "inline-block h-1.5 w-1.5 shrink-0 rounded-full",
85
+ statusClass(status),
86
+ className,
87
+ )}
88
+ />
89
+ </TooltipTrigger>
90
+ <TooltipContent side="top" className="max-w-[320px]">
91
+ {label}
92
+ </TooltipContent>
93
+ </Tooltip>
94
+ </TooltipProvider>
95
+ );
96
+ }
@@ -21,11 +21,13 @@ import {
21
21
  DropdownMenuTrigger,
22
22
  } from "@/components/ui/dropdown-menu";
23
23
  import { cn } from "@/lib/utils";
24
- import type { InstanceSummary } from "@/types/instance";
24
+ import type { InstanceConnectivity, InstanceSummary } from "@/types/instance";
25
25
  import { useI18n } from "@/i18n/i18n-context";
26
+ import { InstanceConnectivityDot } from "./instance-connectivity-dot";
26
27
 
27
28
  interface ProjectCardProps {
28
29
  item: InstanceSummary;
30
+ connectivity?: InstanceConnectivity;
29
31
  isActive: boolean;
30
32
  isSwitching: boolean;
31
33
  isExporting: boolean;
@@ -38,6 +40,7 @@ interface ProjectCardProps {
38
40
 
39
41
  export function ProjectCard({
40
42
  item,
43
+ connectivity,
41
44
  isActive,
42
45
  isSwitching,
43
46
  isExporting,
@@ -92,6 +95,7 @@ export function ProjectCard({
92
95
  <h3 className="truncate text-base font-semibold tracking-tight text-foreground">
93
96
  {item.name}
94
97
  </h3>
98
+ <InstanceConnectivityDot status={connectivity} />
95
99
  </div>
96
100
 
97
101
  <div className="flex shrink-0 items-center gap-1">
@@ -1,15 +1,21 @@
1
1
  "use client";
2
2
 
3
- import { useState, type KeyboardEvent } from "react";
3
+ import { useRef, useState, type KeyboardEvent } from "react";
4
4
  import { Button } from "@/components/ui/button";
5
5
  import { Input } from "@/components/ui/input";
6
6
  import { useSubspace } from "@/contexts/subspace-context";
7
7
  import { useI18n } from "@/i18n/i18n-context";
8
8
 
9
9
  export function SubspaceGate() {
10
- const { setSubspace, history } = useSubspace();
10
+ const { setSubspace, history, clearHistory } = useSubspace();
11
11
  const { t } = useI18n();
12
12
  const [inputValue, setInputValue] = useState("");
13
+ const inputRef = useRef<HTMLInputElement>(null);
14
+
15
+ const handleClearHistory = () => {
16
+ inputRef.current?.focus();
17
+ clearHistory();
18
+ };
13
19
 
14
20
  const handleSubmit = () => {
15
21
  const trimmed = inputValue.trim();
@@ -36,9 +42,20 @@ export function SubspaceGate() {
36
42
 
37
43
  {history.length > 0 && (
38
44
  <div className="flex flex-col items-center gap-2">
39
- <span className="text-xs font-semibold text-muted-foreground">
40
- {t("knowledgeBase.subspace.recentlyUsed")}
41
- </span>
45
+ <div className="flex items-center gap-3">
46
+ <span className="text-xs font-semibold text-muted-foreground">
47
+ {t("knowledgeBase.subspace.recentlyUsed")}
48
+ </span>
49
+ <Button
50
+ type="button"
51
+ variant="ghost"
52
+ size="sm"
53
+ onClick={handleClearHistory}
54
+ className="h-6 px-2 text-muted-foreground hover:text-foreground"
55
+ >
56
+ {t("knowledgeBase.subspace.clearRecent")}
57
+ </Button>
58
+ </div>
42
59
  <div className="flex gap-2 flex-wrap justify-center max-w-[600px]">
43
60
  {history.map((s, idx) => (
44
61
  <button
@@ -60,6 +77,7 @@ export function SubspaceGate() {
60
77
 
61
78
  <div className="flex gap-2 w-full max-w-[480px]">
62
79
  <Input
80
+ ref={inputRef}
63
81
  placeholder={t("knowledgeBase.subspace.inputPlaceholder")}
64
82
  value={inputValue}
65
83
  onChange={(e) => setInputValue(e.target.value)}
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
 
3
- import { useState, type KeyboardEvent } from "react";
3
+ import { useRef, useState, type KeyboardEvent } from "react";
4
4
  import { Check, ChevronDown, X } from "lucide-react";
5
5
  import { toast } from "sonner";
6
6
  import { Button } from "@/components/ui/button";
@@ -24,11 +24,12 @@ export function SubspaceSwitcher() {
24
24
  const { t } = useI18n();
25
25
  const [open, setOpen] = useState(false);
26
26
  const [inputValue, setInputValue] = useState("");
27
+ const inputRef = useRef<HTMLInputElement>(null);
27
28
 
28
29
  // No provider mounted (e.g. KB list page).
29
30
  if (!ctx) return null;
30
31
 
31
- const { subspace, history, setSubspace, clearSubspace } = ctx;
32
+ const { subspace, history, setSubspace, clearSubspace, clearHistory } = ctx;
32
33
  const hasActive = subspace !== null;
33
34
 
34
35
  const handleSubmit = () => {
@@ -55,6 +56,11 @@ export function SubspaceSwitcher() {
55
56
  setOpen(false);
56
57
  };
57
58
 
59
+ const handleClearHistory = () => {
60
+ inputRef.current?.focus();
61
+ clearHistory();
62
+ };
63
+
58
64
  const handleClear = () => {
59
65
  clearSubspace();
60
66
  setOpen(false);
@@ -89,6 +95,7 @@ export function SubspaceSwitcher() {
89
95
  </label>
90
96
  <div className="flex gap-1.5">
91
97
  <Input
98
+ ref={inputRef}
92
99
  autoFocus
93
100
  placeholder={t("knowledgeBase.subspace.inputPlaceholder")}
94
101
  value={inputValue}
@@ -109,9 +116,20 @@ export function SubspaceSwitcher() {
109
116
 
110
117
  {history.length > 0 && (
111
118
  <div className="space-y-1">
112
- <span className="text-xs font-medium text-muted-foreground">
113
- {t("knowledgeBase.subspace.recentlyUsed")}
114
- </span>
119
+ <div className="flex items-center justify-between">
120
+ <span className="text-xs font-medium text-muted-foreground">
121
+ {t("knowledgeBase.subspace.recentlyUsed")}
122
+ </span>
123
+ <Button
124
+ type="button"
125
+ variant="ghost"
126
+ size="sm"
127
+ onClick={handleClearHistory}
128
+ className="h-6 px-2 text-muted-foreground hover:text-foreground"
129
+ >
130
+ {t("knowledgeBase.subspace.clearRecent")}
131
+ </Button>
132
+ </div>
115
133
  <div className="flex flex-col gap-0.5 max-h-[180px] overflow-y-auto">
116
134
  {history.map((s) => {
117
135
  const active = hasActive && s === subspace;
@@ -14,7 +14,12 @@ import {
14
14
  DropdownMenuTrigger,
15
15
  } from "@/components/ui/dropdown-menu";
16
16
  import { ConnectInstanceDialog } from "@/components/instance/connect-instance-dialog";
17
- import { useInstances, useSwitchInstance } from "@/hooks/use-instances";
17
+ import { InstanceConnectivityDot } from "@/components/instance/instance-connectivity-dot";
18
+ import {
19
+ useInstanceConnectivity,
20
+ useInstances,
21
+ useSwitchInstance,
22
+ } from "@/hooks/use-instances";
18
23
  import { useI18n } from "@/i18n/i18n-context";
19
24
  import { cn } from "@/lib/utils";
20
25
 
@@ -41,6 +46,7 @@ export function InstanceSwitcher() {
41
46
  const { t } = useI18n();
42
47
  const [connectOpen, setConnectOpen] = useState(false);
43
48
  const { data, isLoading } = useInstances();
49
+ const { data: connectivity } = useInstanceConnectivity();
44
50
  const switchMutation = useSwitchInstance();
45
51
 
46
52
  const activeName = data?.activeInstance ?? null;
@@ -81,6 +87,9 @@ export function InstanceSwitcher() {
81
87
  className="h-8 gap-1.5 px-2 text-sm text-muted-foreground hover:text-foreground"
82
88
  disabled={isLoading}
83
89
  >
90
+ <InstanceConnectivityDot
91
+ status={activeName ? connectivity?.items[activeName] : undefined}
92
+ />
84
93
  <span className="max-w-[140px] truncate">
85
94
  {activeName
86
95
  ? `*${activeName}`
@@ -117,6 +126,9 @@ export function InstanceSwitcher() {
117
126
  )}
118
127
  />
119
128
  <span className="flex-1 truncate">{item.name}</span>
129
+ <InstanceConnectivityDot
130
+ status={connectivity?.items[item.name]}
131
+ />
120
132
  {item.region && (
121
133
  <span className="text-[11px] text-muted-foreground">
122
134
  {item.region}