@tablestore/tablestore-agent-cli 0.2.10 → 0.2.11

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 (548) hide show
  1. package/dist/commands/memory.d.ts.map +1 -1
  2. package/dist/commands/memory.js +171 -95
  3. package/dist/commands/memory.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 +1 -3
  6. package/dist/dashboard-runtime/dashboard/.next/build-manifest.json +3 -3
  7. package/dist/dashboard-runtime/dashboard/.next/prerender-manifest.json +3 -3
  8. package/dist/dashboard-runtime/dashboard/.next/required-server-files.json +4 -4
  9. package/dist/dashboard-runtime/dashboard/.next/routes-manifest.json +5 -20
  10. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/api-keys/page.js.nft.json +1 -1
  11. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/api-keys/page_client-reference-manifest.js +1 -1
  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.js.nft.json +1 -1
  15. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/documents/page_client-reference-manifest.js +1 -1
  16. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/page.js.nft.json +1 -1
  17. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/page_client-reference-manifest.js +1 -1
  18. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/qa/page.js.nft.json +1 -1
  19. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/qa/page_client-reference-manifest.js +1 -1
  20. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/retrieval/page.js.nft.json +1 -1
  21. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/retrieval/page_client-reference-manifest.js +1 -1
  22. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/settings/page.js.nft.json +1 -1
  23. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/settings/page_client-reference-manifest.js +1 -1
  24. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/create/page.js.nft.json +1 -1
  25. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/create/page_client-reference-manifest.js +1 -1
  26. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/page.js.nft.json +1 -1
  27. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/page_client-reference-manifest.js +1 -1
  28. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/[id]/page.js.nft.json +1 -1
  29. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/[id]/page_client-reference-manifest.js +1 -1
  30. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/new/page.js.nft.json +1 -1
  31. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/new/page_client-reference-manifest.js +1 -1
  32. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/page.js.nft.json +1 -1
  33. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/page_client-reference-manifest.js +1 -1
  34. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/dream/[dreamId]/page.js.nft.json +1 -1
  35. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/dream/[dreamId]/page_client-reference-manifest.js +1 -1
  36. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/dream/page.js.nft.json +1 -1
  37. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/dream/page_client-reference-manifest.js +1 -1
  38. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/messages/page.js.nft.json +1 -1
  39. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/messages/page_client-reference-manifest.js +1 -1
  40. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/page.js.nft.json +1 -1
  41. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/page_client-reference-manifest.js +1 -1
  42. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/requests/page.js.nft.json +1 -1
  43. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/requests/page_client-reference-manifest.js +1 -1
  44. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/search/page.js.nft.json +1 -1
  45. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/search/page_client-reference-manifest.js +1 -1
  46. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/settings/page.js.nft.json +1 -1
  47. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/settings/page_client-reference-manifest.js +1 -1
  48. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/tasks/page.js.nft.json +1 -1
  49. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/tasks/page_client-reference-manifest.js +1 -1
  50. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/units/page.js.nft.json +1 -1
  51. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/units/page_client-reference-manifest.js +1 -1
  52. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/create/page.js.nft.json +1 -1
  53. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/create/page_client-reference-manifest.js +1 -1
  54. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/page.js.nft.json +1 -1
  55. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/page_client-reference-manifest.js +1 -1
  56. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/projects/page.js.nft.json +1 -1
  57. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/projects/page_client-reference-manifest.js +1 -1
  58. package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.html +1 -1
  59. package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.rsc +1 -1
  60. package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  61. package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  62. package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  63. package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  64. package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  65. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found/page.js.nft.json +1 -1
  66. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  67. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.html +1 -1
  68. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.rsc +16 -16
  69. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_full.segment.rsc +16 -16
  70. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_head.segment.rsc +3 -3
  71. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_index.segment.rsc +11 -11
  72. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +4 -4
  73. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_not-found.segment.rsc +3 -3
  74. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  75. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/[id]/custom-policy/route.js +2 -2
  76. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/[id]/custom-policy/route.js.nft.json +1 -1
  77. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/[id]/effective-permissions/route.js +2 -2
  78. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/[id]/effective-permissions/route.js.nft.json +1 -1
  79. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/[id]/policies/route.js +2 -2
  80. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/[id]/policies/route.js.nft.json +1 -1
  81. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/[id]/route.js +2 -2
  82. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/[id]/route.js.nft.json +1 -1
  83. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/filter-by-permission/route.js +2 -2
  84. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/filter-by-permission/route.js.nft.json +1 -1
  85. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/route.js +2 -2
  86. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/route.js.nft.json +1 -1
  87. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/auth/status/route.js +2 -2
  88. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/auth/status/route.js.nft.json +1 -1
  89. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/auth/token/route.js +2 -2
  90. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/auth/token/route.js.nft.json +1 -1
  91. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/route.js +2 -2
  92. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/route.js.nft.json +1 -1
  93. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/token/route.js +2 -2
  94. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/token/route.js.nft.json +1 -1
  95. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/use/route.js +2 -2
  96. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/use/route.js.nft.json +1 -1
  97. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/route.js +2 -2
  98. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/route.js.nft.json +1 -1
  99. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/chunks/route.js +2 -2
  100. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/chunks/route.js.nft.json +1 -1
  101. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/[docId]/chunks/route.js +2 -2
  102. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/[docId]/chunks/route.js.nft.json +1 -1
  103. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/[docId]/route.js +2 -2
  104. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/[docId]/route.js.nft.json +1 -1
  105. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/route.js +2 -2
  106. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/route.js.nft.json +1 -1
  107. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/upload/route.js +2 -2
  108. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/upload/route.js.nft.json +1 -1
  109. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/retrieve/route.js +2 -2
  110. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/retrieve/route.js.nft.json +1 -1
  111. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/route.js +4 -4
  112. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/route.js.nft.json +1 -1
  113. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/route.js +2 -2
  114. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/route.js.nft.json +1 -1
  115. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/chat/route.js +2 -2
  116. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/chat/route.js.nft.json +1 -1
  117. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/models/route.js +2 -2
  118. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/models/route.js.nft.json +1 -1
  119. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/route.js +2 -2
  120. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/route.js.nft.json +1 -1
  121. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/test/route.js +2 -2
  122. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/test/route.js.nft.json +1 -1
  123. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/route.js +2 -2
  124. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/route.js.nft.json +1 -1
  125. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/logs/client/route.js +2 -2
  126. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/logs/client/route.js.nft.json +1 -1
  127. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-kb-sync/route.js +2 -2
  128. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-kb-sync/route.js.nft.json +1 -1
  129. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-tasks/[dreamId]/actions/apply/route.js +2 -2
  130. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-tasks/[dreamId]/actions/apply/route.js.nft.json +1 -1
  131. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-tasks/[dreamId]/actions/route.js +2 -2
  132. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-tasks/[dreamId]/actions/route.js.nft.json +1 -1
  133. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-tasks/[dreamId]/cancel/route.js +2 -2
  134. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-tasks/[dreamId]/cancel/route.js.nft.json +1 -1
  135. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-tasks/[dreamId]/route.js +2 -2
  136. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-tasks/[dreamId]/route.js.nft.json +1 -1
  137. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-tasks/route.js +2 -2
  138. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-tasks/route.js.nft.json +1 -1
  139. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/[action]/route/app-paths-manifest.json +3 -0
  140. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/[action]/route.js +6 -0
  141. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/{sync → [action]}/route.js.nft.json +1 -1
  142. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/[action]/route_client-reference-manifest.js +3 -0
  143. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/messages/route.js +2 -2
  144. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/messages/route.js.nft.json +1 -1
  145. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/requests/route.js +2 -2
  146. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/requests/route.js.nft.json +1 -1
  147. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/route.js +2 -2
  148. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/route.js.nft.json +1 -1
  149. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/scopes/route.js +2 -2
  150. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/scopes/route.js.nft.json +1 -1
  151. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/search/route.js +2 -2
  152. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/search/route.js.nft.json +1 -1
  153. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/tasks/[requestId]/route.js +2 -2
  154. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/tasks/[requestId]/route.js.nft.json +1 -1
  155. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/tasks/route.js +2 -2
  156. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/tasks/route.js.nft.json +1 -1
  157. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/units/[memoryId]/route.js +2 -2
  158. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/units/[memoryId]/route.js.nft.json +1 -1
  159. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/units/route.js +2 -2
  160. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/units/route.js.nft.json +1 -1
  161. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/route.js +2 -2
  162. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/route.js.nft.json +1 -1
  163. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/oss/list/route.js +2 -2
  164. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/oss/list/route.js.nft.json +1 -1
  165. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/runtime/context/route.js +2 -2
  166. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/runtime/context/route.js.nft.json +1 -1
  167. package/dist/dashboard-runtime/dashboard/.next/server/app/index.html +1 -1
  168. package/dist/dashboard-runtime/dashboard/.next/server/app/index.rsc +15 -15
  169. package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  170. package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/_full.segment.rsc +15 -15
  171. package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/_head.segment.rsc +3 -3
  172. package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/_index.segment.rsc +11 -11
  173. package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  174. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding/page.js.nft.json +1 -1
  175. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding/page_client-reference-manifest.js +1 -1
  176. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.html +1 -1
  177. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.rsc +18 -18
  178. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/_full.segment.rsc +18 -18
  179. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/_head.segment.rsc +3 -3
  180. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/_index.segment.rsc +11 -11
  181. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/_tree.segment.rsc +2 -2
  182. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/onboarding/__PAGE__.segment.rsc +4 -4
  183. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/onboarding.segment.rsc +4 -4
  184. package/dist/dashboard-runtime/dashboard/.next/server/app/page.js.nft.json +1 -1
  185. package/dist/dashboard-runtime/dashboard/.next/server/app/page_client-reference-manifest.js +1 -1
  186. package/dist/dashboard-runtime/dashboard/.next/server/app-paths-manifest.json +1 -3
  187. package/dist/dashboard-runtime/dashboard/.next/server/chunks/05a2_app_api_v1_memory_stores_[store]_file-memory_[action]_route_actions_0m70if_.js +3 -0
  188. package/dist/dashboard-runtime/dashboard/.next/server/chunks/0p91_next_dist_esm_build_templates_app-route_0n~ec7s.js +19 -12
  189. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0--nu07._.js +3 -0
  190. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0.gylau._.js +3 -0
  191. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0.hvkwy._.js +3 -0
  192. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0.qtdn4._.js +3 -0
  193. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__02p1x3t._.js +3 -0
  194. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__03og44p._.js +3 -0
  195. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__04dd04u._.js +3 -0
  196. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__04ujbw-._.js +3 -0
  197. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__04zbudf._.js +3 -0
  198. package/dist/dashboard-runtime/dashboard/.next/server/chunks/{[root-of-the-server]__0-3~.bv._.js → [root-of-the-server]__052epg.._.js} +3 -3
  199. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__05eryp~._.js +3 -0
  200. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__06fva9g._.js +3 -0
  201. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__08_2avk._.js +3 -0
  202. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0acvvri._.js +3 -0
  203. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0byveuc._.js +3 -0
  204. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0cee_lo._.js +3 -0
  205. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0cyd2qb._.js +3 -0
  206. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0dzh4cj._.js +40 -0
  207. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0ecs-9r._.js +3 -0
  208. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0ejcow5._.js +3 -0
  209. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0es0s_~._.js +3 -0
  210. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0fglxiw._.js +3 -0
  211. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0g3yw6w._.js +3 -0
  212. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0i1_p1s._.js +3 -0
  213. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0is6qso._.js +3 -0
  214. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0k7ex0r._.js +40 -0
  215. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0no9qm0._.js +3 -0
  216. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0q8vcw8._.js +3 -0
  217. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0q9fgt6._.js +3 -0
  218. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0rx9hon._.js +3 -0
  219. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0tc-.6s._.js +3 -0
  220. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0u03tze._.js +3 -0
  221. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0ua_nqs._.js +3 -0
  222. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0uebf40._.js +3 -0
  223. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0v0il3n._.js +3 -0
  224. package/dist/dashboard-runtime/dashboard/.next/server/chunks/{[root-of-the-server]__089es3y._.js → [root-of-the-server]__0w56nne._.js} +10 -10
  225. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0w_ig2a._.js +3 -0
  226. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0y0w3mg._.js +3 -0
  227. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0zmo~nd._.js +3 -0
  228. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__10m-wmo._.js +3 -0
  229. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__11s_zx6._.js +3 -0
  230. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__11wq90l._.js +3 -0
  231. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__126srko._.js +3 -0
  232. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__12e1t6o._.js +3 -0
  233. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__12ylr4n._.js +3 -0
  234. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__13g_f9w._.js +3 -0
  235. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__13q2wbt._.js +3 -0
  236. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__13~-fxp._.js +3 -0
  237. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/0b1r_app_(dashboard)_knowledge-base_[name]_documents_documents-client_tsx_0g2uxmt._.js +1 -1
  238. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0.ooo1s._.js +3 -0
  239. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__01f7est._.js +3 -0
  240. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__07fsbff._.js +3 -0
  241. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0b5cw4e._.js +3 -0
  242. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0cj2gsm._.js +3 -0
  243. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0.pa1e6._.js +3 -0
  244. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_01snuz~._.js +3 -0
  245. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_05bw0~2._.js +3 -0
  246. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_071hi50._.js +3 -0
  247. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0_aw2vr._.js +3 -0
  248. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0ep_q37._.js +3 -0
  249. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0ez3yia._.js +3 -0
  250. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0fttf6a._.js +3 -0
  251. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0fz3kge._.js +3 -0
  252. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0hx2079._.js +3 -0
  253. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0hy21o9._.js +3 -0
  254. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0oiggmj._.js +3 -0
  255. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0p0sh02._.js +3 -0
  256. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0uc_gmf._.js +3 -0
  257. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0wce254._.js +3 -0
  258. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0ww5s91._.js +3 -0
  259. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0xrd8-1._.js +3 -0
  260. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0y4mxf8._.js +3 -0
  261. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0y7vx.d._.js +3 -0
  262. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_12l8jkb._.js +3 -0
  263. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_079nj-_._.js +3 -0
  264. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0_z9696._.js +3 -0
  265. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0bhjp9s._.js +1 -1
  266. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0grv2wq._.js +1 -1
  267. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_api-keys_page_tsx_0lb6fu7._.js +1 -1
  268. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_memory_[store]_dream_page_tsx_0uzzpvs._.js +1 -1
  269. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_memory_[store]_layout_tsx_0rbi41w._.js +1 -1
  270. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_memory_[store]_messages_page_tsx_0votz-n._.js +1 -1
  271. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_memory_[store]_tasks_page_tsx_0a_bgx4._.js +1 -1
  272. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_memory_[store]_units_page_tsx_0.6xnei._.js +1 -1
  273. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_components_memory_memory-files-browser_tsx_0o2~94-._.js +3 -0
  274. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_i18n_i18n-context_tsx_0c39ewr._.js +1 -1
  275. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_providers_runtime-context-provider_tsx_0wmj66z._.js +1 -1
  276. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/node_modules__pnpm_0sr_ner._.js +3 -0
  277. package/dist/dashboard-runtime/dashboard/.next/server/functions-config-manifest.json +1 -3
  278. package/dist/dashboard-runtime/dashboard/.next/server/middleware-build-manifest.js +3 -3
  279. package/dist/dashboard-runtime/dashboard/.next/server/pages/404.html +1 -1
  280. package/dist/dashboard-runtime/dashboard/.next/server/pages/500.html +1 -1
  281. package/dist/dashboard-runtime/dashboard/.next/server/server-reference-manifest.js +1 -1
  282. package/dist/dashboard-runtime/dashboard/.next/server/server-reference-manifest.json +1 -1
  283. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0-~e5~2eoun8n.js +1 -0
  284. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0.hi0qmo.f-h4.js +1 -0
  285. package/dist/dashboard-runtime/dashboard/.next/static/chunks/01xcynczarvq~.js +1 -0
  286. package/dist/dashboard-runtime/dashboard/.next/static/chunks/01xuyqw7ivp3n.js +138 -0
  287. package/dist/dashboard-runtime/dashboard/.next/static/chunks/026lyw-ynx1og.js +1 -0
  288. package/dist/dashboard-runtime/dashboard/.next/static/chunks/029zyc1pxa~4m.js +1 -0
  289. package/dist/dashboard-runtime/dashboard/.next/static/chunks/05_iqjh-v2gej.js +1 -0
  290. package/dist/dashboard-runtime/dashboard/.next/static/chunks/05f4mjbi6x-tm.js +1 -0
  291. package/dist/dashboard-runtime/dashboard/.next/static/chunks/05vzt~ml0z7~9.js +1 -0
  292. package/dist/dashboard-runtime/dashboard/.next/static/chunks/07twdccs42b_-.js +1 -0
  293. package/dist/dashboard-runtime/dashboard/.next/static/chunks/{010bpq~3ntjcm.js → 08h7wustf~cl4.js} +1 -1
  294. package/dist/dashboard-runtime/dashboard/.next/static/chunks/08o2~c-80nbla.js +1 -0
  295. package/dist/dashboard-runtime/dashboard/.next/static/chunks/090n1_814n.n~.js +1 -0
  296. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0_osn.dm_85jw.js +1 -0
  297. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0aj~rx1m.91ur.js +5 -0
  298. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0dx_8pb_z_xy6.css +1 -0
  299. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0eafb9pun~54k.js +9 -0
  300. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0hnqmb1a7y7x1.js +138 -0
  301. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0jjiw-agnutux.js +1 -0
  302. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0k9guaejnlc0r.js +1 -0
  303. package/dist/dashboard-runtime/dashboard/.next/static/chunks/{0l~3_bvic.da3.js → 0ogrq_r43je48.js} +1 -1
  304. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0pxisu-1mnehf.js +1 -0
  305. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0r6utd8g~.cc1.js +1 -0
  306. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0u6c8q4k~6aiy.js +1 -0
  307. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0uu2cjfwvbn3y.js +1 -0
  308. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0vn5pp.3keyh5.js +1 -0
  309. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0wbozn0wq-4ls.js +1 -0
  310. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0yvc~t7p88wsf.js +1 -0
  311. package/dist/dashboard-runtime/dashboard/.next/static/chunks/{02u9ocsl0a12t.js → 0~naqbx3873~r.js} +1 -1
  312. package/dist/dashboard-runtime/dashboard/.next/static/chunks/12iur8ibdfi5_.js +1 -0
  313. package/dist/dashboard-runtime/dashboard/.next/static/chunks/13kxz9vygidrz.js +1 -0
  314. package/dist/dashboard-runtime/dashboard/.next/static/chunks/14.8mq880kjoc.js +1 -0
  315. package/dist/dashboard-runtime/dashboard/.next/static/chunks/145hqnc~4wc~n.js +1 -0
  316. package/dist/dashboard-runtime/dashboard/.next/static/chunks/14rpr3z1.lmgj.js +1 -0
  317. package/dist/dashboard-runtime/dashboard/.next/static/chunks/165fwg-5at5cq.js +1 -0
  318. package/dist/dashboard-runtime/dashboard/.next/static/chunks/17b4md7atp39z.js +1 -0
  319. package/dist/dashboard-runtime/dashboard/server.js +1 -1
  320. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/chat/page.tsx +1 -0
  321. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/knowledge-base/[name]/qa/page.tsx +1 -0
  322. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/layout.tsx +59 -8
  323. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/messages/page.tsx +15 -0
  324. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/tasks/page.tsx +9 -0
  325. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/units/page.tsx +123 -24
  326. package/dist/dashboard-runtime/dashboard/src/app/api/v1/llm/chat/file-memory-curator.ts +491 -0
  327. package/dist/dashboard-runtime/dashboard/src/app/api/v1/llm/chat/file-memory-helpers.ts +12 -81
  328. package/dist/dashboard-runtime/dashboard/src/app/api/v1/llm/chat/memory-helpers.ts +3 -3
  329. package/dist/dashboard-runtime/dashboard/src/app/api/v1/llm/chat/route.ts +200 -39
  330. package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/file-memory/[action]/route.ts +92 -0
  331. package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/file-memory/_helpers.ts +26 -36
  332. package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/file-memory/_request.ts +49 -0
  333. package/dist/dashboard-runtime/dashboard/src/components/chat/chat-config-context.tsx +48 -9
  334. package/dist/dashboard-runtime/dashboard/src/components/chat/memory-bind-section.tsx +66 -18
  335. package/dist/dashboard-runtime/dashboard/src/components/chat/memory-files-dialog.tsx +1 -1
  336. package/dist/dashboard-runtime/dashboard/src/components/memory/file-details-panel.tsx +91 -0
  337. package/dist/dashboard-runtime/dashboard/src/components/memory/file-editor.tsx +139 -0
  338. package/dist/dashboard-runtime/dashboard/src/components/memory/file-mutation-dialogs.tsx +181 -0
  339. package/dist/dashboard-runtime/dashboard/src/components/memory/file-scope-onboarding.tsx +154 -0
  340. package/dist/dashboard-runtime/dashboard/src/components/memory/file-version-history.tsx +201 -0
  341. package/dist/dashboard-runtime/dashboard/src/components/memory/file-workspace-toolbar.tsx +101 -0
  342. package/dist/dashboard-runtime/dashboard/src/components/memory/memory-create-form.tsx +166 -75
  343. package/dist/dashboard-runtime/dashboard/src/components/memory/memory-dream-create-dialog.tsx +147 -20
  344. package/dist/dashboard-runtime/dashboard/src/components/memory/memory-files-browser.tsx +452 -168
  345. package/dist/dashboard-runtime/dashboard/src/components/memory/memory-scope-bar.tsx +27 -21
  346. package/dist/dashboard-runtime/dashboard/src/components/memory/memory-search-form.tsx +51 -14
  347. package/dist/dashboard-runtime/dashboard/src/components/memory/memory-search-results.tsx +5 -1
  348. package/dist/dashboard-runtime/dashboard/src/components/memory/memory-settings-form.tsx +54 -46
  349. package/dist/dashboard-runtime/dashboard/src/components/memory/memory-store-card.tsx +126 -69
  350. package/dist/dashboard-runtime/dashboard/src/components/memory/memory-unit-table.tsx +5 -1
  351. package/dist/dashboard-runtime/dashboard/src/components/qa/qa-message.tsx +232 -38
  352. package/dist/dashboard-runtime/dashboard/src/components/shared/error-state.tsx +3 -2
  353. package/dist/dashboard-runtime/dashboard/src/hooks/use-chat-history.ts +125 -47
  354. package/dist/dashboard-runtime/dashboard/src/hooks/use-file-memory.ts +184 -29
  355. package/dist/dashboard-runtime/dashboard/src/hooks/use-memory-store-scopes.ts +2 -1
  356. package/dist/dashboard-runtime/dashboard/src/hooks/use-qa-chat.ts +188 -23
  357. package/dist/dashboard-runtime/dashboard/src/i18n/locales/en.ts +123 -14
  358. package/dist/dashboard-runtime/dashboard/src/i18n/locales/zh.ts +115 -14
  359. package/dist/dashboard-runtime/dashboard/src/lib/api-error-toast.ts +9 -1
  360. package/dist/dashboard-runtime/dashboard/src/lib/browser-file-memory.ts +391 -0
  361. package/dist/dashboard-runtime/dashboard/src/lib/file-scope-history.ts +108 -0
  362. package/dist/dashboard-runtime/dashboard/src/lib/memory-storage-mode.ts +193 -31
  363. package/dist/dashboard-runtime/dashboard/src/lib/memory.ts +16 -4
  364. package/dist/dashboard-runtime/dashboard/src/lib/query-keys.ts +67 -0
  365. package/dist/dashboard-runtime/dashboard/src/schemas/llm-chat.ts +58 -13
  366. package/dist/dashboard-runtime/dashboard/src/services/file-memory.ts +88 -46
  367. package/dist/dashboard-runtime/dashboard/src/types/file-memory.ts +97 -0
  368. package/dist/dashboard-runtime/dashboard/src/types/llm-chat.ts +49 -13
  369. package/dist/dashboard-runtime/dashboard/src/types/memory.ts +9 -2
  370. package/dist/dashboard-runtime/dashboard/tsconfig.tsbuildinfo +1 -0
  371. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/index.d.ts +0 -1
  372. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/index.d.ts.map +1 -1
  373. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/index.js +0 -1
  374. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/index.js.map +1 -1
  375. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.d.ts +55 -8
  376. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.d.ts.map +1 -1
  377. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.js +93 -11
  378. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.js.map +1 -1
  379. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/oss-uploader.d.ts +56 -0
  380. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/oss-uploader.d.ts.map +1 -0
  381. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/oss-uploader.js +120 -0
  382. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/oss-uploader.js.map +1 -0
  383. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/response.d.ts.map +1 -1
  384. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/response.js +1 -0
  385. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/response.js.map +1 -1
  386. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/tsconfig.tsbuildinfo +1 -1
  387. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/package.json +1 -1
  388. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/tsconfig.tsbuildinfo +1 -1
  389. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/types.d.ts.map +1 -1
  390. package/dist/dashboard-runtime/node_modules/semver/node_modules/.bin/semver +21 -0
  391. package/dist/main.js +0 -0
  392. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/index.d.ts +0 -1
  393. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/index.d.ts.map +1 -1
  394. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/index.js +0 -1
  395. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/index.js.map +1 -1
  396. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.d.ts +55 -8
  397. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.d.ts.map +1 -1
  398. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.js +93 -11
  399. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.js.map +1 -1
  400. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/oss-uploader.d.ts +56 -0
  401. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/oss-uploader.d.ts.map +1 -0
  402. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/oss-uploader.js +120 -0
  403. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/oss-uploader.js.map +1 -0
  404. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/response.d.ts.map +1 -1
  405. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/response.js +1 -0
  406. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/response.js.map +1 -1
  407. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/tsconfig.tsbuildinfo +1 -1
  408. package/dist/node_modules/@tablestore/tablestore-agent-sdk/package.json +1 -1
  409. package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/tsconfig.tsbuildinfo +1 -1
  410. package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/types.d.ts.map +1 -1
  411. package/package.json +2 -2
  412. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/file/route/app-paths-manifest.json +0 -3
  413. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/file/route.js +0 -6
  414. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/file/route.js.nft.json +0 -1
  415. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/file/route_client-reference-manifest.js +0 -3
  416. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/sync/route/app-paths-manifest.json +0 -3
  417. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/sync/route/build-manifest.json +0 -9
  418. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/sync/route/server-reference-manifest.json +0 -4
  419. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/sync/route.js +0 -6
  420. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/sync/route.js.map +0 -5
  421. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/sync/route_client-reference-manifest.js +0 -3
  422. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/tree/route/app-paths-manifest.json +0 -3
  423. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/tree/route/build-manifest.json +0 -9
  424. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/tree/route/server-reference-manifest.json +0 -4
  425. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/tree/route.js +0 -6
  426. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/tree/route.js.map +0 -5
  427. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/tree/route.js.nft.json +0 -1
  428. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/tree/route_client-reference-manifest.js +0 -3
  429. 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
  430. 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
  431. 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
  432. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0-dt7~s._.js +0 -3
  433. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0.-~ff4._.js +0 -3
  434. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0.l706t._.js +0 -3
  435. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0.nejw_._.js +0 -3
  436. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__00_mrad._.js +0 -3
  437. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__00i.7se._.js +0 -3
  438. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__00r7uqs._.js +0 -3
  439. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__02~yw7n._.js +0 -3
  440. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__04kpzpa._.js +0 -3
  441. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__04p1a88._.js +0 -3
  442. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__05x0k4d._.js +0 -3
  443. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__060s~oe._.js +0 -3
  444. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__06fanvv._.js +0 -3
  445. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__06tci88._.js +0 -3
  446. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__08bzgzm._.js +0 -3
  447. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__08d7wb.._.js +0 -3
  448. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__08p_m_c._.js +0 -3
  449. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__095xiwn._.js +0 -3
  450. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__09h95i6._.js +0 -3
  451. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0ai2k_o._.js +0 -40
  452. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0alcygi._.js +0 -3
  453. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0aspytx._.js +0 -3
  454. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0cq-9s~._.js +0 -3
  455. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0cyiuai._.js +0 -3
  456. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0d4zrpj._.js +0 -3
  457. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0d~m09k._.js +0 -3
  458. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0f1lugp._.js +0 -3
  459. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0g1cfb7._.js +0 -40
  460. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0gpz.~y._.js +0 -3
  461. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0i3u9x3._.js +0 -3
  462. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0iromt6._.js +0 -3
  463. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0j8.u0y._.js +0 -3
  464. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0k-pfaj._.js +0 -3
  465. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0kcbz7k._.js +0 -3
  466. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0nrl-.g._.js +0 -3
  467. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0o5mf4h._.js +0 -3
  468. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0omyr40._.js +0 -3
  469. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0ty8jgt._.js +0 -3
  470. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0ug_2kc._.js +0 -3
  471. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0v98i9~._.js +0 -3
  472. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0wt0ksb._.js +0 -3
  473. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0ya_8d2._.js +0 -3
  474. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0zfg-ml._.js +0 -3
  475. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0~9ru5n._.js +0 -3
  476. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0~f7ckz._.js +0 -3
  477. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__109i6ps._.js +0 -3
  478. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__10o5zq5._.js +0 -3
  479. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__12ls5l8._.js +0 -3
  480. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/0w-2_lucide-react_dist_esm_icons_0h-3_0x._.js +0 -3
  481. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0k0es2c._.js +0 -3
  482. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0ky8i.~._.js +0 -3
  483. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0ocsrt0._.js +0 -3
  484. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0ys4x_n._.js +0 -3
  485. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__10rkv6z._.js +0 -3
  486. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_002mc1c._.js +0 -3
  487. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_04f2u4t._.js +0 -3
  488. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_06ny.4k._.js +0 -3
  489. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0b9pl2d._.js +0 -3
  490. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0e.ehti._.js +0 -3
  491. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0f8moq0._.js +0 -3
  492. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0f8yv4v._.js +0 -3
  493. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0fvg_xo._.js +0 -3
  494. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0h9c.8m._.js +0 -3
  495. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0ip4ncy._.js +0 -3
  496. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0izjcsk._.js +0 -3
  497. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0j.62sb._.js +0 -3
  498. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0mdbcju._.js +0 -3
  499. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0p_s55v._.js +0 -3
  500. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0qiamjd._.js +0 -3
  501. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0t.h859._.js +0 -3
  502. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0xp94lc._.js +0 -3
  503. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_13730cz._.js +0 -3
  504. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_00.1.s_._.js +0 -3
  505. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_04o7mfc._.js +0 -3
  506. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0qlyj-q._.js +0 -3
  507. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/node_modules__pnpm_00usyu3._.js +0 -3
  508. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/node_modules__pnpm_0791f2k._.js +0 -3
  509. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0--dupndun7xc.css +0 -1
  510. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0.uxk~hsm6yi8.js +0 -138
  511. package/dist/dashboard-runtime/dashboard/.next/static/chunks/00eggrx~.4c55.js +0 -1
  512. package/dist/dashboard-runtime/dashboard/.next/static/chunks/00lvoeu_v3253.js +0 -1
  513. package/dist/dashboard-runtime/dashboard/.next/static/chunks/00o9vmhspv._3.js +0 -138
  514. package/dist/dashboard-runtime/dashboard/.next/static/chunks/00x1.t633f041.js +0 -1
  515. package/dist/dashboard-runtime/dashboard/.next/static/chunks/02p7gke47s.2~.js +0 -1
  516. package/dist/dashboard-runtime/dashboard/.next/static/chunks/03dth-av1gl-h.js +0 -1
  517. package/dist/dashboard-runtime/dashboard/.next/static/chunks/07s0f6938um2v.js +0 -1
  518. package/dist/dashboard-runtime/dashboard/.next/static/chunks/09y30vyml4r.b.js +0 -1
  519. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0au0pbejtwahz.js +0 -1
  520. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0b-ei8-g7ceug.js +0 -1
  521. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0chiv044h3u58.js +0 -1
  522. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0fcdli-~wmvvx.js +0 -1
  523. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0fz_9~-rxluly.js +0 -1
  524. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0i55cqygnl-a9.js +0 -5
  525. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0j8p7vk~awgs..js +0 -1
  526. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0j_.hkhjix9hw.js +0 -1
  527. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0naliud7av3p1.js +0 -1
  528. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0pbfl~23ac79y.js +0 -9
  529. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0u3qx.qasmdx9.js +0 -1
  530. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0vuh8jgeqqdy..js +0 -1
  531. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0wbevjtr1_grz.js +0 -1
  532. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0y-gjpq3kxsbz.js +0 -1
  533. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0z_pq4ttgotxw.js +0 -1
  534. package/dist/dashboard-runtime/dashboard/.next/static/chunks/10i~m4_8ainxw.js +0 -1
  535. package/dist/dashboard-runtime/dashboard/.next/static/chunks/12535rmhzbk63.js +0 -1
  536. package/dist/dashboard-runtime/dashboard/.next/static/chunks/13uk2uuzuop5e.js +0 -1
  537. package/dist/dashboard-runtime/dashboard/.next/static/chunks/13vd4hv~l95-c.js +0 -1
  538. package/dist/dashboard-runtime/dashboard/.next/static/chunks/16.2aecdwo6w_.js +0 -1
  539. package/dist/dashboard-runtime/dashboard/.next/static/chunks/16yu0g~7n~33c.js +0 -1
  540. package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/file-memory/file/route.ts +0 -69
  541. package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/file-memory/sync/route.ts +0 -69
  542. package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/file-memory/tree/route.ts +0 -44
  543. /package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/{file → [action]}/route/build-manifest.json +0 -0
  544. /package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/{file → [action]}/route/server-reference-manifest.json +0 -0
  545. /package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/{file → [action]}/route.js.map +0 -0
  546. /package/dist/dashboard-runtime/dashboard/.next/static/{5irIRCYtKcYh5T_Bewihp → AgybWIwFBY3-L1V2Copiq}/_buildManifest.js +0 -0
  547. /package/dist/dashboard-runtime/dashboard/.next/static/{5irIRCYtKcYh5T_Bewihp → AgybWIwFBY3-L1V2Copiq}/_clientMiddlewareManifest.js +0 -0
  548. /package/dist/dashboard-runtime/dashboard/.next/static/{5irIRCYtKcYh5T_Bewihp → AgybWIwFBY3-L1V2Copiq}/_ssgManifest.js +0 -0
@@ -5,6 +5,11 @@ import { useCallback, useEffect, useRef, useState } from "react";
5
5
  import { useI18n } from "@/i18n/i18n-context";
6
6
 
7
7
  import { streamChat } from "@/services/llm-chat";
8
+ import {
9
+ loadBrowserFileMemory,
10
+ searchBrowserFileMemory,
11
+ } from "@/lib/browser-file-memory";
12
+ import { FILEMEM_DEFAULT_RUN_ID } from "@/lib/memory-storage-mode";
8
13
  import { newId } from "@/lib/random-id";
9
14
  import { devFlag } from "@/lib/dev-flags";
10
15
  import {
@@ -24,7 +29,29 @@ import type { ChatMessage, ChatRequestBody, ChatRole } from "@/types/llm-chat";
24
29
  */
25
30
  type StreamPatch = { content?: string; reasoning?: string };
26
31
 
32
+ /** Remove a curation state that never received a terminal server event. */
33
+ export function settlePendingMemorySave(
34
+ messages: ChatMessage[],
35
+ assistantId: string,
36
+ ): ChatMessage[] {
37
+ let changed = false;
38
+ const settled = messages.map((message) => {
39
+ if (message.id !== assistantId || message.memorySaveStatus !== "saving") {
40
+ return message;
41
+ }
42
+ changed = true;
43
+ const next = { ...message };
44
+ delete next.memorySaveStatus;
45
+ delete next.memorySavePath;
46
+ delete next.memorySaveCount;
47
+ delete next.memorySaveError;
48
+ return next;
49
+ });
50
+ return changed ? settled : messages;
51
+ }
52
+
27
53
  export interface UseQaChatOptions {
54
+ dataScopeKey: string;
28
55
  activeInstance: string | null;
29
56
  providerId: string;
30
57
  model: string;
@@ -41,6 +68,17 @@ export interface UseQaChatOptions {
41
68
  onPersist?: (messages: ChatMessage[]) => void;
42
69
  }
43
70
 
71
+ function normalizeMemoryForRequest(
72
+ memory: ChatRequestBody["memory"],
73
+ ): ChatRequestBody["memory"] {
74
+ if (memory?.storageMode !== "filemem") return memory;
75
+ return {
76
+ ...memory,
77
+ scope: { ...memory.scope, runId: FILEMEM_DEFAULT_RUN_ID },
78
+ retrievalMode: "local",
79
+ };
80
+ }
81
+
44
82
  /**
45
83
  * Compose the wire body sent to `/api/v1/llm/chat` for one turn. Pulled out
46
84
  * of `_runAssistantTurn` so it can be unit-tested without spinning up React
@@ -62,6 +100,13 @@ export function buildChatRequestBody(
62
100
  historyToSend: Array<{ role: ChatRole; content: string }>,
63
101
  turnId: string,
64
102
  ): ChatRequestBody {
103
+ const normalizedMemory = normalizeMemoryForRequest(opts.memory);
104
+ const memory = normalizedMemory
105
+ ? {
106
+ ...normalizedMemory,
107
+ turnId,
108
+ }
109
+ : undefined;
65
110
  return {
66
111
  activeInstance: opts.activeInstance,
67
112
  providerId: opts.providerId,
@@ -70,10 +115,100 @@ export function buildChatRequestBody(
70
115
  systemPrompt: opts.systemPrompt,
71
116
  temperature: opts.temperature,
72
117
  rag: opts.rag,
73
- ...(opts.memory ? { memory: { ...opts.memory, turnId } } : {}),
118
+ ...(memory ? { memory } : {}),
74
119
  };
75
120
  }
76
121
 
122
+ type PrepareChatRequestOptions = Pick<
123
+ UseQaChatOptions,
124
+ | "dataScopeKey"
125
+ | "activeInstance"
126
+ | "providerId"
127
+ | "model"
128
+ | "systemPrompt"
129
+ | "temperature"
130
+ | "rag"
131
+ | "memory"
132
+ >;
133
+
134
+ /** Add browser-only file-memory evidence immediately before opening the SSE. */
135
+ export async function prepareChatRequestBody(
136
+ opts: PrepareChatRequestOptions,
137
+ historyToSend: Array<{ role: ChatRole; content: string }>,
138
+ turnId: string,
139
+ deps: {
140
+ loadFileMemory?: typeof loadBrowserFileMemory;
141
+ searchFileMemory?: typeof searchBrowserFileMemory;
142
+ } = {},
143
+ ): Promise<ChatRequestBody> {
144
+ const memory = normalizeMemoryForRequest(opts.memory);
145
+ if (
146
+ !memory ||
147
+ (memory.retrievalMode !== "local" && memory.storageMode !== "filemem")
148
+ ) {
149
+ return buildChatRequestBody(opts, historyToSend, turnId);
150
+ }
151
+ const loadFileMemory = deps.loadFileMemory ?? loadBrowserFileMemory;
152
+ const searchFileMemory = deps.searchFileMemory ?? searchBrowserFileMemory;
153
+ const loaded = await loadFileMemory({
154
+ dataScopeKey: opts.dataScopeKey,
155
+ memoryStoreName: memory.memoryStoreName,
156
+ scope: memory.scope,
157
+ });
158
+ const lastUser = [...historyToSend]
159
+ .reverse()
160
+ .find((message) => message.role === "user");
161
+ const search = searchFileMemory({
162
+ key: loaded.key,
163
+ query: lastUser?.content ?? "",
164
+ topK: memory.topK ?? 5,
165
+ });
166
+ const files = loaded.files
167
+ .filter(
168
+ (file) =>
169
+ file.rel.length > 0 &&
170
+ file.rel.length <= 512 &&
171
+ Number.isSafeInteger(file.size) &&
172
+ file.size >= 0,
173
+ )
174
+ .slice(0, 300);
175
+ const hits = search.results
176
+ .filter(
177
+ (hit) =>
178
+ hit.text.length > 0 &&
179
+ hit.source.length > 0 &&
180
+ hit.source.length <= 512 &&
181
+ Number.isFinite(hit.score),
182
+ )
183
+ .slice(0, 50)
184
+ .map((hit) => ({
185
+ ...hit,
186
+ text: hit.text.slice(0, 4_000),
187
+ score: Math.max(0, Math.min(1, hit.score)),
188
+ }));
189
+ const cacheSummary = {
190
+ ...loaded.cache,
191
+ ...(loaded.cache.error
192
+ ? { error: loaded.cache.error.slice(0, 4_000) }
193
+ : {}),
194
+ };
195
+ return buildChatRequestBody(
196
+ {
197
+ ...opts,
198
+ memory: {
199
+ ...memory,
200
+ fileContext: {
201
+ files,
202
+ hits,
203
+ cache: cacheSummary,
204
+ },
205
+ },
206
+ },
207
+ historyToSend,
208
+ turnId,
209
+ );
210
+ }
211
+
77
212
  export interface UseQaChatResult {
78
213
  messages: ChatMessage[];
79
214
  isStreaming: boolean;
@@ -144,19 +279,19 @@ export function useQaChat(options: UseQaChatOptions): UseQaChatResult {
144
279
  if (pending.size === 0) return;
145
280
  const snapshot = new Map(pending);
146
281
  pending.clear();
147
- setMessages((prev) =>
148
- prev.map((m) => {
149
- const patch = snapshot.get(m.id);
150
- if (!patch) return m;
151
- return {
152
- ...m,
153
- ...(patch.content ? { content: m.content + patch.content } : null),
154
- ...(patch.reasoning
155
- ? { reasoning: (m.reasoning ?? "") + patch.reasoning }
156
- : null),
157
- };
158
- }),
159
- );
282
+ const nextMessages = messagesRef.current.map((m) => {
283
+ const patch = snapshot.get(m.id);
284
+ if (!patch) return m;
285
+ return {
286
+ ...m,
287
+ ...(patch.content ? { content: m.content + patch.content } : null),
288
+ ...(patch.reasoning
289
+ ? { reasoning: (m.reasoning ?? "") + patch.reasoning }
290
+ : null),
291
+ };
292
+ });
293
+ messagesRef.current = nextMessages;
294
+ setMessages(nextMessages);
160
295
  }, []);
161
296
 
162
297
  const scheduleFlush = useCallback(() => {
@@ -239,13 +374,15 @@ export function useQaChat(options: UseQaChatOptions): UseQaChatResult {
239
374
  const reasoningCompletedRef = { current: false };
240
375
 
241
376
  const updateAssistant = (patch: Partial<ChatMessage>) => {
242
- setMessages((prev) =>
243
- prev.map((m) => (m.id === assistantId ? { ...m, ...patch } : m)),
377
+ const nextMessages = messagesRef.current.map((m) =>
378
+ m.id === assistantId ? { ...m, ...patch } : m,
244
379
  );
380
+ messagesRef.current = nextMessages;
381
+ setMessages(nextMessages);
245
382
  };
246
383
 
247
384
  try {
248
- const body = buildChatRequestBody(opts, historyToSend, turnId);
385
+ const body = await prepareChatRequestBody(opts, historyToSend, turnId);
249
386
 
250
387
  if (devFlag("logChatRequest")) {
251
388
  // Diagnostic surface for the cross-session bleed investigation.
@@ -293,15 +430,35 @@ export function useQaChat(options: UseQaChatOptions): UseQaChatResult {
293
430
  // 「想看为什么没召回」时 message 上没有信号可查。
294
431
  updateAssistant({ memoryHits: event.hits });
295
432
  } else if (event.type === "memory.files") {
296
- // 文件记忆模式专属:把本轮同步的镜像目录、文件树与同步统计
297
- // 落到 assistant message 上,供气泡展示「本轮文件记忆」摘要。
433
+ // 文件记忆模式专属:把浏览器标签页中的文件树与缓存统计落到
434
+ // assistant message 上,供气泡展示「本轮文件记忆」摘要。
298
435
  updateAssistant({
299
- memoryFilesScopeDir: event.scopeDir,
300
436
  memoryFiles: event.files,
301
- memoryFilesSync: event.sync,
437
+ memoryFilesCache: event.cache,
438
+ memoryFilesStoreName: event.memoryStoreName,
439
+ memoryFilesWritable: event.writable,
440
+ memoryFilesScope: event.scope,
441
+ });
442
+ } else if (event.type === "memory.save.start") {
443
+ updateAssistant({
444
+ memorySaveStatus: "saving",
445
+ memorySavePath: undefined,
446
+ memorySaveCount: undefined,
447
+ memorySaveError: undefined,
448
+ });
449
+ } else if (event.type === "memory.save.done") {
450
+ updateAssistant({
451
+ memorySaveStatus: event.status,
452
+ memorySavePath: event.path,
453
+ memorySaveCount: event.count,
454
+ memorySaveError: undefined,
302
455
  });
303
456
  } else if (event.type === "memory.save.skipped") {
304
- // 写回失败不打断对话流,留给 logger 处理。
457
+ updateAssistant({
458
+ memorySaveStatus: "error",
459
+ memorySaveError: event.reason,
460
+ });
461
+ // 写回失败不打断对话流,同时保留控制台诊断。
305
462
  console.warn("[chat] memory.save.skipped:", event.reason);
306
463
  } else if (event.type === "reasoning.delta") {
307
464
  const buf = pendingDeltasRef.current.get(assistantId) ?? {};
@@ -369,6 +526,14 @@ export function useQaChat(options: UseQaChatOptions): UseQaChatResult {
369
526
  updateAssistant({ status: "done", ...closeReasoning });
370
527
  }
371
528
  } finally {
529
+ cancelScheduledFlush();
530
+ flushDeltas();
531
+ const settledMessages = settlePendingMemorySave(
532
+ messagesRef.current,
533
+ assistantId,
534
+ );
535
+ messagesRef.current = settledMessages;
536
+ setMessages(settledMessages);
372
537
  setIsStreaming(false);
373
538
  abortRef.current = null;
374
539
  // Flush the latest snapshot to the persist handler.
@@ -376,7 +541,7 @@ export function useQaChat(options: UseQaChatOptions): UseQaChatResult {
376
541
  // calling side effects during React's render phase.
377
542
  const persist = onPersistRef.current;
378
543
  if (persist) {
379
- persist(messagesRef.current);
544
+ persist(settledMessages);
380
545
  }
381
546
  }
382
547
  },
@@ -209,6 +209,8 @@ export const messages: Messages = {
209
209
  'Are you sure you want to delete memory store "{name}"? This action cannot be undone.',
210
210
  },
211
211
  card: {
212
+ inputType: "Input",
213
+ storageStructure: "Storage",
212
214
  longTerm: "Long-term",
213
215
  shortTerm: "Short-term",
214
216
  extract: "Extract",
@@ -236,6 +238,24 @@ export const messages: Messages = {
236
238
  "Only letters, digits, and underscores are allowed, up to 32 characters.",
237
239
  descriptionLabel: "Description",
238
240
  descriptionPlaceholder: "Describe what this memory store is for...",
241
+ inputTypeSection: "Input Type",
242
+ inputTypeSectionDesc:
243
+ "Choose how memory enters the memory store. Select one input type.",
244
+ shortTermInputLabel: "Short-term Memory",
245
+ shortTermInputDescription:
246
+ "Accept short-term memory from conversations and persist it using the selected storage structure.",
247
+ fileInputLabel: "Memory Files",
248
+ fileInputDescription:
249
+ "Read and write memory files directly. This input fixes the storage structure to memory files.",
250
+ storageStructureSection: "Memory Storage Structure",
251
+ storageStructureSectionDesc:
252
+ "Structured memory is required for short-term input; memory files can be enabled alongside it.",
253
+ structuredStorageLabel: "Structured Memory",
254
+ structuredStorageDescription:
255
+ "Store structured entries with semantic search, extraction, and consolidation.",
256
+ fileStorageLabel: "Memory Files",
257
+ fileStorageDescription:
258
+ "Store a file tree and access it through the file workspace.",
239
259
  storageModeSection: "Storage Mode",
240
260
  storageModeSectionDesc:
241
261
  "Choose the storage backend for the memory store. Cannot be changed after creation.",
@@ -252,15 +272,24 @@ export const messages: Messages = {
252
272
  nameMaxLength: "Name cannot exceed 32 characters",
253
273
  namePattern: "Only letters, digits, and underscores are allowed",
254
274
  descriptionMaxLength: "Description cannot exceed 256 characters",
275
+ storageStructureRequired: "Select at least one memory storage structure",
276
+ storageStructureInvalid:
277
+ "This input type and memory storage structure combination is not supported",
255
278
  extractMaxLength: "Extraction instructions cannot exceed 4096 characters",
256
279
  },
257
280
  storageMode: {
258
281
  apiOnlyLabel: "API-only Memory",
259
282
  fileLabel: "File Memory",
283
+ projectedFileLabel: "Read-only File Projection",
284
+ writableFileLabel: "Writable File Memory",
260
285
  apiOnlyDescription:
261
286
  "Tablestore only: read and write memory via API semantic retrieval, no file projection.",
262
287
  fileDescription:
263
288
  "Tablestore + OSS file projection: memory is additionally projected into a markdown file tree, retrievable as files in conversations and browsable in the console and CLI.",
289
+ projectedFileDescription:
290
+ "Browse a one-way file+ots projection through the file API. The service handshake controls read-only access; no browser or server-local mirror is maintained.",
291
+ writableFileDescription:
292
+ "Full file memory with JSON API create, edit, rename, delete, and version history, directly usable as conversation context.",
264
293
  },
265
294
  settings: {
266
295
  basicInfo: "Basic Information",
@@ -295,6 +324,7 @@ export const messages: Messages = {
295
324
  deleteStore: "Delete Memory Store",
296
325
  backToList: "Back to list",
297
326
  tabUnits: "Long-term Memory",
327
+ tabFiles: "File Workspace",
298
328
  tabSearch: "Memory Search",
299
329
  tabMessages: "Short-term Memory",
300
330
  tabTasks: "Memory Extraction",
@@ -354,7 +384,9 @@ export const messages: Messages = {
354
384
  tableContent: "Content",
355
385
  tableType: "Type",
356
386
  tableVersion: "Version",
357
- tableCreatedAt: "Created At",
387
+ tableCreatedAt: "Event Time",
388
+ tableCreatedAtHint:
389
+ "Event time of the source message this memory describes, not the write time. Falls back to the unit's own stamp, the memcell time, then the server write time when the cited source message has no timestamp; Dream-produced units always carry the server task time. updated_at is the write time.",
358
390
  tableActions: "Actions",
359
391
  disabledTitle:
360
392
  "The current memory unit lacks a precise scope or ID and cannot be operated on",
@@ -372,14 +404,65 @@ export const messages: Messages = {
372
404
  detailMetadata: "Metadata",
373
405
  },
374
406
  files: {
407
+ scopeOnboardingTitle: "Set a file scope",
408
+ scopeOnboardingDescription:
409
+ "Writable file memory is isolated by exact scope. This mode has no server-side scope listing, so enter App, Tenant, Agent, and Run to open the workspace.",
410
+ recentScopes: "Recently used in this browser (up to 10)",
411
+ recentScopesLocalHint:
412
+ "These scopes are stored only in this browser and do not imply that files already exist on the server.",
413
+ scopeAllRequired:
414
+ "All four scope fields require concrete values; wildcard * is not allowed",
415
+ scopeIsolationHint:
416
+ "Each exact scope has an independent file tree and version history.",
417
+ setScopeAndEnter: "Set scope and enter file workspace",
375
418
  selectFile: "Select a file on the left to view its content",
376
419
  readFailed: "Read failed: {error}",
377
420
  fileCount: "{count} files",
378
- syncNow: "Sync now",
379
- emptyHint: "No files yet. Click Sync now to fetch.",
380
- syncSuccess: "Synced: +{downloaded} -{deleted}, {total} files total",
381
- syncFallback: "Sync failed (using local copy): {error}",
382
- syncFailed: "Sync failed",
421
+ emptyHint: "No files in this scope",
422
+ searchPlaceholder: "Filter file paths…",
423
+ newFile: "New file",
424
+ rename: "Rename",
425
+ writableMode: "Writable",
426
+ readOnlyMode: "Read-only projection",
427
+ readOnlyGuidance:
428
+ "This store returned a read-only handshake. You can browse and cite files, but cannot modify content or inspect version history.",
429
+ unsaved: "Unsaved",
430
+ byteCount: "{count} / {limit} bytes",
431
+ editorLabel: "File content editor",
432
+ editorPlaceholder: "Edit UTF-8 text here…",
433
+ shaConflict:
434
+ "Another session updated this file. Your text is preserved in the editor; copy it, refresh the latest version, then merge and save again.",
435
+ discardChanges: "This file has unsaved changes. Discard them?",
436
+ saveSuccess: "File saved",
437
+ saveFailed: "Failed to save file",
438
+ createSuccess: "File created",
439
+ renameSuccess: "File renamed",
440
+ deleteSuccess: "File deleted",
441
+ createTitle: "Create memory file",
442
+ renameTitle: "Rename file",
443
+ deleteTitle: "Delete file",
444
+ deleteDescription:
445
+ "Delete {path}? Version history is retained, but the current file will disappear.",
446
+ pathHelp:
447
+ "Paths use UTF-8 text, are limited to 800 bytes, and cannot contain .. segments.",
448
+ pathLabel: "File path",
449
+ initialContent: "Initial content",
450
+ pathRequired: "Enter a file path",
451
+ pathTraversal: "File paths cannot contain .. segments",
452
+ pathTooLarge: "File paths cannot exceed 800 UTF-8 bytes",
453
+ contentTooLarge: "File content cannot exceed 100 KiB",
454
+ selectForDetails: "Select a file to inspect metadata and version history",
455
+ details: "File details",
456
+ size: "Content size",
457
+ latestVersion: "Current version",
458
+ updatedAt: "Updated",
459
+ versionHistory: "Version history",
460
+ noVersions: "No previous versions",
461
+ loadMore: "Load more",
462
+ contentUnavailable: "This version has no readable content",
463
+ restoreVersion: "Restore this version",
464
+ restoreSuccess: "Historical content restored as a new version",
465
+ restoreFailed: "Failed to restore version",
383
466
  },
384
467
  add: {
385
468
  title: "Add Memory",
@@ -419,7 +502,7 @@ export const messages: Messages = {
419
502
  scopeRequiredHint:
420
503
  "Set specific values for App and Tenant in the scope bar first.",
421
504
  queryRequired: "Please enter a search query",
422
- topKRange: "Top K must be between 0 and 50",
505
+ topKRange: "Top K must be between 1 and 50",
423
506
  similarityRange: "Similarity threshold must be between 0 and 1",
424
507
  notSearchedTitle: "Not searched yet",
425
508
  notSearchedDescription:
@@ -432,7 +515,9 @@ export const messages: Messages = {
432
515
  relevance: "Relevance {value}",
433
516
  resultId: "ID: {id}",
434
517
  resultScope: "Scope: {scope}",
435
- resultCreatedAt: "Created: {time}",
518
+ resultCreatedAt: "Event time: {time}",
519
+ resultCreatedAtHint:
520
+ "Event time of the source message this memory describes, not the write time. Falls back to the unit's own stamp, the memcell time, then the server write time when the cited source message has no timestamp; Dream-produced units always carry the server task time. updated_at is the write time.",
436
521
  resultVersion: "Version: {version}",
437
522
  },
438
523
  messages: {
@@ -441,6 +526,7 @@ export const messages: Messages = {
441
526
  "Set specific values for all fields in the scope bar above to query short-term memory",
442
527
  emptyRange: "No messages in this time range",
443
528
  empty: "No message records in the current scope",
529
+ loadFailed: "Failed to load session messages",
444
530
  loadEarlier: "Load earlier messages",
445
531
  allLoaded: "— All messages loaded —",
446
532
  count: "{count} messages",
@@ -473,6 +559,7 @@ export const messages: Messages = {
473
559
  description:
474
560
  "Each AddMemories call maps to a task record, showing the processing state from messages to memory entries",
475
561
  emptyTitle: "No tasks yet",
562
+ loadFailed: "Failed to load extraction tasks",
476
563
  emptyAll:
477
564
  "No ingestion tasks from AddMemories calls under this scope yet. You can trigger memory writes from the Long-term Memory / Search tabs, or run CLI memory add and come back here to check progress.",
478
565
  emptyFiltered:
@@ -691,6 +778,14 @@ export const messages: Messages = {
691
778
  appIdRequired: "appId is required",
692
779
  atLeastOneNonWildcard: "Specify at least one non-wildcard field",
693
780
  atLeastOneScope: "At least one scope",
781
+ scopesLimit: "No more than 20 scopes are allowed",
782
+ instructionsLimit: "Instructions cannot exceed 4000 UTF-8 bytes",
783
+ maxSessionsRange: "Max sessions must be an integer between 1 and 100",
784
+ maxMessagesRange: "Max messages must be an integer between 1 and 20000",
785
+ maxMemoriesRange: "Max memories must be an integer between 1 and 5000",
786
+ thresholdRange: "Confidence threshold must be between 0 and 1",
787
+ timestampInvalid: "Invalid timestamp format",
788
+ timestampOrder: "Latest time cannot be earlier than earliest time",
694
789
  actions: {
695
790
  allStatus: "All statuses",
696
791
  allTypes: "All types",
@@ -1209,11 +1304,12 @@ export const messages: Messages = {
1209
1304
  modeSearchTitle: "Semantic Search",
1210
1305
  modeSearchDesc: "Vector-search the memory store each turn",
1211
1306
  modeLocalTitle: "File Memory",
1212
- modeLocalDescEnabled: "Local search after syncing projected files",
1307
+ modeLocalDescEnabled: "Local search after caching through the file API",
1308
+ modeLocalDescWritable: "filemem always uses file retrieval",
1213
1309
  modeLocalDescDisabled:
1214
1310
  "Only available for memory stores that support file memory",
1215
1311
  localHint:
1216
- "Memory is projected into a local mirror directory as a markdown file tree; synced before each turn and searched on the files. Memory is aggregated per user (app + tenant); agent / run fields do not affect file content.",
1312
+ "Before each turn, the browser paginates the file API, reuses bodies by SHA, and performs bounded lexical retrieval in this tab. No FUSE process or server-local mirror is created.",
1217
1313
  viewFiles: "View memory files",
1218
1314
  viewFilesHint: "Please fill in the complete app / tenant / agent first",
1219
1315
  emptyNoStoresTitle: "No memory stores yet",
@@ -1242,6 +1338,8 @@ export const messages: Messages = {
1242
1338
  autoSave: "Auto-write memory after the conversation",
1243
1339
  autoSaveDesc:
1244
1340
  "Auto-archive: write this turn's user / assistant messages to the current scope",
1341
+ autoSaveFilememDesc:
1342
+ "Extract durable memories from each turn and append them to a dated memory file",
1245
1343
  runIdLabel: "Run ID",
1246
1344
  runIdTitle:
1247
1345
  "The run ID is generated automatically for the current conversation and reused throughout it to link memory of the same session",
@@ -1252,7 +1350,8 @@ export const messages: Messages = {
1252
1350
  },
1253
1351
  filesDialog: {
1254
1352
  title: "Memory Files",
1255
- description: "Mirror directory of memory files for this scope",
1353
+ description:
1354
+ "Manage virtual files and versions for this exact scope through the file API",
1256
1355
  },
1257
1356
  history: {
1258
1357
  newChat: "New Chat",
@@ -1317,6 +1416,11 @@ export const messages: Messages = {
1317
1416
  edit: "Edit",
1318
1417
  resend: "Resend",
1319
1418
  regenerate: "Regenerate",
1419
+ saveToFile: "Save response to file memory",
1420
+ savePathPrompt: "Enter a file path in filemem",
1421
+ saveToFileInvalid: "The path is invalid or the response exceeds 100 KiB",
1422
+ savedToFile: "Response saved to {path}",
1423
+ saveToFileFailed: "Failed to save response to file memory",
1320
1424
  summarizeSkill: "Summarize skill to knowledge base",
1321
1425
  extractProfile: "Extract profile to knowledge base",
1322
1426
  delete: "Delete",
@@ -1346,6 +1450,10 @@ export const messages: Messages = {
1346
1450
  generateFailed: "Generation failed",
1347
1451
  elapsedSeconds: "Took {seconds}s",
1348
1452
  elapsedMinutes: "Took {minutes}m {seconds}s",
1453
+ memorySaving: "Extracting file memory…",
1454
+ memorySaved: "Saved {count} durable memories",
1455
+ memoryUnchanged: "No durable memory needed for this turn",
1456
+ memorySaveFailed: "File-memory extraction failed: {error}",
1349
1457
  },
1350
1458
  chunks: {
1351
1459
  viewCitations: "View {count} citations",
@@ -1363,9 +1471,10 @@ export const messages: Messages = {
1363
1471
  referenceCount: "Referenced {count} memory entries",
1364
1472
  unnamedMemory: "Unnamed memory",
1365
1473
  filesThisTurn: "{count} memory files this turn",
1366
- syncFailed: "Sync failed (using local copy): {error}",
1367
- syncSummary: "+{added} -{deleted} · {total} total",
1368
- emptyFiles: "No memory files in this scope (not projected or synced yet)",
1474
+ cacheFailed: "File API cache failed: {error}",
1475
+ cacheSummary: "Read {loaded} · SHA reused {reused} · {total} total",
1476
+ cacheTruncated: "Reached the 300-file / 3-MiB retrieval limit",
1477
+ emptyFiles: "No retrievable memory files in this exact scope",
1369
1478
  fileSize: "{size} B",
1370
1479
  },
1371
1480
  panel: {