@tablestore/tablestore-agent-cli 0.2.8 → 0.2.10

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 (952) hide show
  1. package/dist/commands/configure.d.ts.map +1 -1
  2. package/dist/commands/configure.js +9 -7
  3. package/dist/commands/configure.js.map +1 -1
  4. package/dist/commands/dashboard.d.ts.map +1 -1
  5. package/dist/commands/dashboard.js +38 -6
  6. package/dist/commands/dashboard.js.map +1 -1
  7. package/dist/commands/doctor.d.ts.map +1 -1
  8. package/dist/commands/doctor.js +167 -51
  9. package/dist/commands/doctor.js.map +1 -1
  10. package/dist/commands/kb/create.d.ts.map +1 -1
  11. package/dist/commands/kb/create.js.map +1 -1
  12. package/dist/commands/kb/doc-add.d.ts.map +1 -1
  13. package/dist/commands/kb/doc-add.js +3 -1
  14. package/dist/commands/kb/doc-add.js.map +1 -1
  15. package/dist/commands/kb/doc-get.d.ts.map +1 -1
  16. package/dist/commands/kb/doc-get.js +6 -2
  17. package/dist/commands/kb/doc-get.js.map +1 -1
  18. package/dist/commands/kb/doc-remove.d.ts.map +1 -1
  19. package/dist/commands/kb/doc-remove.js.map +1 -1
  20. package/dist/commands/kb/helpers.d.ts.map +1 -1
  21. package/dist/commands/kb/helpers.js.map +1 -1
  22. package/dist/commands/kb/retrieve.d.ts.map +1 -1
  23. package/dist/commands/kb/retrieve.js +3 -1
  24. package/dist/commands/kb/retrieve.js.map +1 -1
  25. package/dist/commands/memory.d.ts.map +1 -1
  26. package/dist/commands/memory.js +209 -23
  27. package/dist/commands/memory.js.map +1 -1
  28. package/dist/dashboard-runtime/dashboard/.next/BUILD_ID +1 -1
  29. package/dist/dashboard-runtime/dashboard/.next/app-path-routes-manifest.json +4 -0
  30. package/dist/dashboard-runtime/dashboard/.next/build-manifest.json +3 -3
  31. package/dist/dashboard-runtime/dashboard/.next/prerender-manifest.json +3 -3
  32. package/dist/dashboard-runtime/dashboard/.next/routes-manifest.json +32 -0
  33. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/api-keys/page.js +3 -3
  34. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/api-keys/page.js.nft.json +1 -1
  35. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/api-keys/page_client-reference-manifest.js +1 -1
  36. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/chat/page.js +3 -3
  37. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/chat/page.js.nft.json +1 -1
  38. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/chat/page_client-reference-manifest.js +1 -1
  39. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/documents/page.js +3 -3
  40. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/documents/page.js.nft.json +1 -1
  41. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/documents/page_client-reference-manifest.js +1 -1
  42. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/page.js +3 -3
  43. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/page.js.nft.json +1 -1
  44. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/page_client-reference-manifest.js +1 -1
  45. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/qa/page.js +3 -3
  46. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/qa/page.js.nft.json +1 -1
  47. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/qa/page_client-reference-manifest.js +1 -1
  48. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/retrieval/page.js +3 -3
  49. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/retrieval/page.js.nft.json +1 -1
  50. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/retrieval/page_client-reference-manifest.js +1 -1
  51. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/settings/page.js +3 -3
  52. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/settings/page.js.nft.json +1 -1
  53. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/settings/page_client-reference-manifest.js +1 -1
  54. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/create/page.js +3 -3
  55. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/create/page.js.nft.json +1 -1
  56. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/create/page_client-reference-manifest.js +1 -1
  57. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/page.js +3 -3
  58. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/page.js.nft.json +1 -1
  59. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/page_client-reference-manifest.js +1 -1
  60. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/[id]/page.js +3 -3
  61. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/[id]/page.js.nft.json +1 -1
  62. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/[id]/page_client-reference-manifest.js +1 -1
  63. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/new/page.js +4 -4
  64. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/new/page.js.nft.json +1 -1
  65. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/new/page_client-reference-manifest.js +1 -1
  66. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/page.js +3 -3
  67. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/page.js.nft.json +1 -1
  68. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/page_client-reference-manifest.js +1 -1
  69. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/dream/[dreamId]/page.js +3 -3
  70. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/dream/[dreamId]/page.js.nft.json +1 -1
  71. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/dream/[dreamId]/page_client-reference-manifest.js +1 -1
  72. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/dream/page.js +3 -3
  73. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/dream/page.js.nft.json +1 -1
  74. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/dream/page_client-reference-manifest.js +1 -1
  75. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/messages/page.js +3 -3
  76. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/messages/page.js.nft.json +1 -1
  77. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/messages/page_client-reference-manifest.js +1 -1
  78. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/page.js +3 -3
  79. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/page.js.nft.json +1 -1
  80. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/page_client-reference-manifest.js +1 -1
  81. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/requests/page.js +3 -3
  82. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/requests/page.js.nft.json +1 -1
  83. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/requests/page_client-reference-manifest.js +1 -1
  84. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/search/page.js +3 -3
  85. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/search/page.js.nft.json +1 -1
  86. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/search/page_client-reference-manifest.js +1 -1
  87. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/settings/page.js +3 -3
  88. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/settings/page.js.nft.json +1 -1
  89. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/settings/page_client-reference-manifest.js +1 -1
  90. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/tasks/page.js +3 -3
  91. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/tasks/page.js.nft.json +1 -1
  92. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/tasks/page_client-reference-manifest.js +1 -1
  93. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/units/page.js +3 -3
  94. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/units/page.js.nft.json +1 -1
  95. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/units/page_client-reference-manifest.js +1 -1
  96. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/create/page.js +3 -3
  97. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/create/page.js.nft.json +1 -1
  98. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/create/page_client-reference-manifest.js +1 -1
  99. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/page.js +3 -3
  100. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/page.js.nft.json +1 -1
  101. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/page_client-reference-manifest.js +1 -1
  102. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/projects/page.js +3 -3
  103. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/projects/page.js.nft.json +1 -1
  104. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/projects/page_client-reference-manifest.js +1 -1
  105. package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.html +1 -1
  106. package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.rsc +1 -1
  107. package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  108. package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  109. package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  110. package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  111. package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  112. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found/page.js +2 -2
  113. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found/page.js.nft.json +1 -1
  114. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  115. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.html +1 -1
  116. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.rsc +24 -20
  117. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_full.segment.rsc +24 -20
  118. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_head.segment.rsc +3 -3
  119. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_index.segment.rsc +11 -10
  120. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +8 -5
  121. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_not-found.segment.rsc +3 -3
  122. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  123. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/[id]/custom-policy/route.js +2 -2
  124. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/[id]/custom-policy/route.js.nft.json +1 -1
  125. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/[id]/effective-permissions/route.js +2 -2
  126. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/[id]/effective-permissions/route.js.nft.json +1 -1
  127. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/[id]/policies/route.js +2 -2
  128. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/[id]/policies/route.js.nft.json +1 -1
  129. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/[id]/route.js +2 -2
  130. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/[id]/route.js.nft.json +1 -1
  131. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/filter-by-permission/route.js +2 -2
  132. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/filter-by-permission/route.js.nft.json +1 -1
  133. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/route.js +2 -2
  134. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/route.js.nft.json +1 -1
  135. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/auth/status/route.js +2 -2
  136. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/auth/status/route.js.nft.json +1 -1
  137. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/auth/token/route.js +2 -2
  138. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/auth/token/route.js.nft.json +1 -1
  139. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/route.js +2 -2
  140. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/route.js.nft.json +1 -1
  141. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/token/route.js +2 -2
  142. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/token/route.js.nft.json +1 -1
  143. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/use/route.js +2 -2
  144. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/use/route.js.nft.json +1 -1
  145. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/route.js +2 -2
  146. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/route.js.nft.json +1 -1
  147. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/chunks/route.js +2 -2
  148. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/chunks/route.js.nft.json +1 -1
  149. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/[docId]/chunks/route.js +2 -2
  150. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/[docId]/chunks/route.js.nft.json +1 -1
  151. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/[docId]/route.js +2 -2
  152. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/[docId]/route.js.nft.json +1 -1
  153. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/route.js +2 -2
  154. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/route.js.nft.json +1 -1
  155. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/upload/route.js +2 -2
  156. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/upload/route.js.nft.json +1 -1
  157. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/retrieve/route.js +2 -2
  158. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/retrieve/route.js.nft.json +1 -1
  159. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/route.js +2 -2
  160. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/route.js.nft.json +1 -1
  161. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/route.js +2 -2
  162. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/route.js.nft.json +1 -1
  163. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/chat/route.js +2 -2
  164. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/chat/route.js.nft.json +1 -1
  165. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/models/route.js +2 -2
  166. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/models/route.js.nft.json +1 -1
  167. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/route.js +2 -2
  168. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/route.js.nft.json +1 -1
  169. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/test/route.js +2 -2
  170. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/test/route.js.nft.json +1 -1
  171. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/route.js +2 -2
  172. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/route.js.nft.json +1 -1
  173. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/logs/client/route.js +2 -2
  174. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/logs/client/route.js.nft.json +1 -1
  175. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-kb-sync/route/app-paths-manifest.json +3 -0
  176. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-kb-sync/route/build-manifest.json +9 -0
  177. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-kb-sync/route/server-reference-manifest.json +4 -0
  178. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-kb-sync/route.js +6 -0
  179. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-kb-sync/route.js.map +5 -0
  180. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-kb-sync/route.js.nft.json +1 -0
  181. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-kb-sync/route_client-reference-manifest.js +3 -0
  182. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-tasks/[dreamId]/actions/apply/route.js +2 -2
  183. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-tasks/[dreamId]/actions/apply/route.js.nft.json +1 -1
  184. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-tasks/[dreamId]/actions/route.js +2 -2
  185. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-tasks/[dreamId]/actions/route.js.nft.json +1 -1
  186. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-tasks/[dreamId]/cancel/route.js +2 -2
  187. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-tasks/[dreamId]/cancel/route.js.nft.json +1 -1
  188. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-tasks/[dreamId]/route.js +2 -2
  189. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-tasks/[dreamId]/route.js.nft.json +1 -1
  190. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-tasks/route.js +2 -2
  191. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-tasks/route.js.nft.json +1 -1
  192. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/file/route/app-paths-manifest.json +3 -0
  193. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/file/route/build-manifest.json +9 -0
  194. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/file/route/server-reference-manifest.json +4 -0
  195. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/file/route.js +6 -0
  196. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/file/route.js.map +5 -0
  197. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/file/route.js.nft.json +1 -0
  198. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/file/route_client-reference-manifest.js +3 -0
  199. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/sync/route/app-paths-manifest.json +3 -0
  200. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/sync/route/build-manifest.json +9 -0
  201. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/sync/route/server-reference-manifest.json +4 -0
  202. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/sync/route.js +6 -0
  203. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/sync/route.js.map +5 -0
  204. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/sync/route.js.nft.json +1 -0
  205. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/sync/route_client-reference-manifest.js +3 -0
  206. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/tree/route/app-paths-manifest.json +3 -0
  207. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/tree/route/build-manifest.json +9 -0
  208. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/tree/route/server-reference-manifest.json +4 -0
  209. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/tree/route.js +6 -0
  210. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/tree/route.js.map +5 -0
  211. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/tree/route.js.nft.json +1 -0
  212. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/tree/route_client-reference-manifest.js +3 -0
  213. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/messages/route.js +2 -2
  214. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/messages/route.js.nft.json +1 -1
  215. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/requests/route.js +2 -2
  216. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/requests/route.js.nft.json +1 -1
  217. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/route.js +2 -2
  218. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/route.js.nft.json +1 -1
  219. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/scopes/route.js +2 -2
  220. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/scopes/route.js.nft.json +1 -1
  221. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/search/route.js +2 -2
  222. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/search/route.js.nft.json +1 -1
  223. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/tasks/[requestId]/route.js +2 -2
  224. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/tasks/[requestId]/route.js.nft.json +1 -1
  225. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/tasks/route.js +2 -2
  226. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/tasks/route.js.nft.json +1 -1
  227. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/units/[memoryId]/route.js +2 -2
  228. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/units/[memoryId]/route.js.nft.json +1 -1
  229. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/units/route.js +2 -2
  230. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/units/route.js.nft.json +1 -1
  231. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/route.js +2 -2
  232. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/route.js.nft.json +1 -1
  233. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/oss/list/route.js +2 -2
  234. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/oss/list/route.js.nft.json +1 -1
  235. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/runtime/context/route.js +2 -2
  236. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/runtime/context/route.js.nft.json +1 -1
  237. package/dist/dashboard-runtime/dashboard/.next/server/app/index.html +1 -1
  238. package/dist/dashboard-runtime/dashboard/.next/server/app/index.rsc +20 -19
  239. package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  240. package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/_full.segment.rsc +20 -19
  241. package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/_head.segment.rsc +3 -3
  242. package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/_index.segment.rsc +11 -10
  243. package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  244. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding/page.js +2 -2
  245. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding/page.js.nft.json +1 -1
  246. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding/page_client-reference-manifest.js +1 -1
  247. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.html +1 -1
  248. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.rsc +24 -23
  249. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/_full.segment.rsc +24 -23
  250. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/_head.segment.rsc +3 -3
  251. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/_index.segment.rsc +11 -10
  252. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/_tree.segment.rsc +2 -2
  253. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/onboarding/__PAGE__.segment.rsc +4 -4
  254. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/onboarding.segment.rsc +4 -4
  255. package/dist/dashboard-runtime/dashboard/.next/server/app/page.js +2 -2
  256. package/dist/dashboard-runtime/dashboard/.next/server/app/page.js.nft.json +1 -1
  257. package/dist/dashboard-runtime/dashboard/.next/server/app/page_client-reference-manifest.js +1 -1
  258. package/dist/dashboard-runtime/dashboard/.next/server/app-paths-manifest.json +4 -0
  259. package/dist/dashboard-runtime/dashboard/.next/server/chunks/0ndq_server_app_api_v1_memory_stores_[store]_dream-kb-sync_route_actions_04qnm9s.js +3 -0
  260. package/dist/dashboard-runtime/dashboard/.next/server/chunks/0ndq_server_app_api_v1_memory_stores_[store]_file-memory_file_route_actions_06~k01v.js +3 -0
  261. package/dist/dashboard-runtime/dashboard/.next/server/chunks/0ndq_server_app_api_v1_memory_stores_[store]_file-memory_sync_route_actions_0rt6p8e.js +3 -0
  262. package/dist/dashboard-runtime/dashboard/.next/server/chunks/0ndq_server_app_api_v1_memory_stores_[store]_file-memory_tree_route_actions_0wl_n8b.js +3 -0
  263. package/dist/dashboard-runtime/dashboard/.next/server/chunks/0p91_next_dist_esm_build_templates_app-route_0n~ec7s.js +13 -5
  264. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0-3~.bv._.js +14 -0
  265. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0-dt7~s._.js +3 -0
  266. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0.-~ff4._.js +3 -0
  267. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0.l706t._.js +3 -0
  268. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0.nejw_._.js +3 -0
  269. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__00_mrad._.js +3 -0
  270. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__00i.7se._.js +3 -0
  271. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__00r7uqs._.js +3 -0
  272. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__02~yw7n._.js +3 -0
  273. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__04kpzpa._.js +3 -0
  274. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__04p1a88._.js +3 -0
  275. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__05x0k4d._.js +3 -0
  276. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__060s~oe._.js +3 -0
  277. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__06fanvv._.js +3 -0
  278. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__06tci88._.js +3 -0
  279. package/dist/dashboard-runtime/dashboard/.next/server/chunks/{[root-of-the-server]__10k~3sa._.js → [root-of-the-server]__089es3y._.js} +7 -7
  280. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__08bzgzm._.js +3 -0
  281. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__08d7wb.._.js +3 -0
  282. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__08p_m_c._.js +3 -0
  283. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__095xiwn._.js +3 -0
  284. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__09h95i6._.js +3 -0
  285. package/dist/dashboard-runtime/dashboard/.next/server/chunks/{[root-of-the-server]__0.y01v.._.js → [root-of-the-server]__0ai2k_o._.js} +7 -7
  286. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0alcygi._.js +3 -0
  287. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0aspytx._.js +3 -0
  288. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0cq-9s~._.js +3 -0
  289. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0cyiuai._.js +3 -0
  290. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0d4zrpj._.js +3 -0
  291. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0d~m09k._.js +3 -0
  292. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0f1lugp._.js +3 -0
  293. package/dist/dashboard-runtime/dashboard/.next/server/chunks/{[root-of-the-server]__0wa~r66._.js → [root-of-the-server]__0g1cfb7._.js} +8 -8
  294. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0gpz.~y._.js +3 -0
  295. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0i3u9x3._.js +3 -0
  296. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0iromt6._.js +3 -0
  297. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0j8.u0y._.js +3 -0
  298. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0k-pfaj._.js +3 -0
  299. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0kcbz7k._.js +3 -0
  300. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0nrl-.g._.js +3 -0
  301. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0o5mf4h._.js +3 -0
  302. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0omyr40._.js +3 -0
  303. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0ty8jgt._.js +3 -0
  304. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0ug_2kc._.js +3 -0
  305. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0v98i9~._.js +3 -0
  306. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0wt0ksb._.js +3 -0
  307. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0ya_8d2._.js +3 -0
  308. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0zfg-ml._.js +3 -0
  309. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0~9ru5n._.js +3 -0
  310. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0~f7ckz._.js +3 -0
  311. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__109i6ps._.js +3 -0
  312. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__10o5zq5._.js +3 -0
  313. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__12ls5l8._.js +3 -0
  314. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/0b1r_app_(dashboard)_knowledge-base_[name]_documents_documents-client_tsx_0g2uxmt._.js +2 -2
  315. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/0e95_src_app_(dashboard)_knowledge-base_[name]_settings_settings-client_tsx_13312zk._.js +1 -1
  316. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/0w-2_lucide-react_dist_esm_icons_0h-3_0x._.js +3 -0
  317. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__01sm7cj._.js +3 -0
  318. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0k0es2c._.js +3 -0
  319. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0ky8i.~._.js +3 -0
  320. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0ocsrt0._.js +3 -0
  321. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0ys4x_n._.js +3 -0
  322. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_002mc1c._.js +3 -0
  323. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_02waf76._.js +3 -0
  324. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_03z8zmx._.js +1 -1
  325. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_04f2u4t._.js +1 -1
  326. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_06ny.4k._.js +1 -1
  327. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0_1_-hn._.js +3 -0
  328. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0_er4j0._.js +3 -0
  329. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0ahm789._.js +3 -0
  330. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0brqbty._.js +1 -1
  331. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0e.ehti._.js +3 -0
  332. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0f8moq0._.js +3 -0
  333. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0f8yv4v._.js +1 -1
  334. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0frs8ys._.js +3 -0
  335. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0fvg_xo._.js +3 -0
  336. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0gbt~hy._.js +1 -1
  337. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0gl7kh7._.js +1 -1
  338. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0h9c.8m._.js +3 -0
  339. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0ip4ncy._.js +3 -0
  340. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0izjcsk._.js +3 -0
  341. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0j.62sb._.js +1 -1
  342. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0ka7ryb._.js +1 -1
  343. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0lo5ra0._.js +1 -1
  344. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0mdbcju._.js +3 -0
  345. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0o665bf._.js +1 -1
  346. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0odjvc.._.js +1 -1
  347. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0p_s55v._.js +3 -0
  348. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0qiamjd._.js +3 -0
  349. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0t.h859._.js +3 -0
  350. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0xdioxg._.js +1 -1
  351. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0xp94lc._.js +3 -0
  352. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_11fl7_r._.js +1 -1
  353. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_13730cz._.js +3 -0
  354. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/{_06894o_._.js → _13ctfae._.js} +2 -2
  355. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_00.1.s_._.js +1 -1
  356. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_04o7mfc._.js +3 -0
  357. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0bhjp9s._.js +3 -0
  358. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0grv2wq._.js +3 -0
  359. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0qlyj-q._.js +1 -1
  360. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/{dashboard_src_0o9jhcn._.js → dashboard_src_0sn17ku._.js} +4 -4
  361. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0x60pxf._.js +3 -0
  362. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0y49vhd._.js +1 -1
  363. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_10dsqx~._.js +1 -1
  364. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_api-keys_page_tsx_0lb6fu7._.js +2 -2
  365. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_knowledge-base_[name]_error_tsx_0rnss~4._.js +1 -1
  366. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_knowledge-base_create_page_tsx_0916~g-._.js +1 -1
  367. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_memory_[store]_dream_[dreamId]_page_tsx_0wy3tv6._.js +1 -1
  368. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_memory_[store]_dream_page_tsx_0uzzpvs._.js +1 -1
  369. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_memory_[store]_layout_tsx_0rbi41w._.js +1 -1
  370. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_memory_[store]_messages_page_tsx_0votz-n._.js +3 -0
  371. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_memory_[store]_tasks_page_tsx_0a_bgx4._.js +1 -1
  372. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_memory_[store]_units_page_tsx_0.6xnei._.js +1 -1
  373. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_error_tsx_01x7ppm._.js +1 -1
  374. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_not-found_tsx_05z4mh~._.js +3 -0
  375. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_components_retrieval_02c2uck._.js +1 -1
  376. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_components_shared_relative-time_tsx_0b7s9rc._.js +1 -1
  377. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_i18n_i18n-context_tsx_0c39ewr._.js +3 -0
  378. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_providers_runtime-context-provider_tsx_0wmj66z._.js +1 -1
  379. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/node_modules__pnpm_00usyu3._.js +3 -0
  380. package/dist/dashboard-runtime/dashboard/.next/server/functions-config-manifest.json +4 -0
  381. package/dist/dashboard-runtime/dashboard/.next/server/middleware-build-manifest.js +3 -3
  382. package/dist/dashboard-runtime/dashboard/.next/server/pages/404.html +1 -1
  383. package/dist/dashboard-runtime/dashboard/.next/server/pages/500.html +1 -1
  384. package/dist/dashboard-runtime/dashboard/.next/server/server-reference-manifest.js +1 -1
  385. package/dist/dashboard-runtime/dashboard/.next/server/server-reference-manifest.json +1 -1
  386. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0--dupndun7xc.css +1 -0
  387. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0.uxk~hsm6yi8.js +138 -0
  388. package/dist/dashboard-runtime/dashboard/.next/static/chunks/00eggrx~.4c55.js +1 -0
  389. package/dist/dashboard-runtime/dashboard/.next/static/chunks/00lvoeu_v3253.js +1 -0
  390. package/dist/dashboard-runtime/dashboard/.next/static/chunks/00o9vmhspv._3.js +138 -0
  391. package/dist/dashboard-runtime/dashboard/.next/static/chunks/00x1.t633f041.js +1 -0
  392. package/dist/dashboard-runtime/dashboard/.next/static/chunks/010bpq~3ntjcm.js +4 -0
  393. package/dist/dashboard-runtime/dashboard/.next/static/chunks/02p7gke47s.2~.js +1 -0
  394. package/dist/dashboard-runtime/dashboard/.next/static/chunks/02u9ocsl0a12t.js +1 -0
  395. package/dist/dashboard-runtime/dashboard/.next/static/chunks/03_t1t9j7dbax.js +1 -0
  396. package/dist/dashboard-runtime/dashboard/.next/static/chunks/03dth-av1gl-h.js +1 -0
  397. package/dist/dashboard-runtime/dashboard/.next/static/chunks/07aczaljq.qvr.js +1 -0
  398. package/dist/dashboard-runtime/dashboard/.next/static/chunks/07s0f6938um2v.js +1 -0
  399. package/dist/dashboard-runtime/dashboard/.next/static/chunks/08nzc9sye_0~h.js +1 -0
  400. package/dist/dashboard-runtime/dashboard/.next/static/chunks/09y30vyml4r.b.js +1 -0
  401. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0ab~fpog2~u.h.js +1 -0
  402. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0au0pbejtwahz.js +1 -0
  403. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0b-ei8-g7ceug.js +1 -0
  404. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0chiv044h3u58.js +1 -0
  405. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0fcdli-~wmvvx.js +1 -0
  406. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0fz_9~-rxluly.js +1 -0
  407. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0hqkctymrrnbk.js +1 -0
  408. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0i55cqygnl-a9.js +5 -0
  409. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0j8p7vk~awgs..js +1 -0
  410. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0j_.hkhjix9hw.js +1 -0
  411. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0ll488v66ycn1.js +1 -0
  412. package/dist/dashboard-runtime/dashboard/.next/static/chunks/{0823z0-i-vkzj.js → 0l~3_bvic.da3.js} +1 -1
  413. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0mp0n~dtbg78r.js +1 -0
  414. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0naliud7av3p1.js +1 -0
  415. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0nvwdxs-j_2ld.js +1 -0
  416. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0opbuui_pt1n1.js +1 -0
  417. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0pbfl~23ac79y.js +9 -0
  418. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0qwhis4t32vlg.js +1 -0
  419. package/dist/dashboard-runtime/dashboard/.next/static/chunks/{0_2i27ja0f5u_.js → 0r44f~_t6m0hu.js} +1 -1
  420. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0vuh8jgeqqdy..js +1 -0
  421. package/dist/dashboard-runtime/dashboard/.next/static/chunks/{11daw7hfc5lbv.js → 0wbevjtr1_grz.js} +1 -1
  422. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0y-gjpq3kxsbz.js +1 -0
  423. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0z_pq4ttgotxw.js +1 -0
  424. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0zatcw.k613lh.js +1 -0
  425. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0~a4ig2x9z8uq.js +1 -0
  426. package/dist/dashboard-runtime/dashboard/.next/static/chunks/10i~m4_8ainxw.js +1 -0
  427. package/dist/dashboard-runtime/dashboard/.next/static/chunks/12535rmhzbk63.js +1 -0
  428. package/dist/dashboard-runtime/dashboard/.next/static/chunks/{11islg2md6lj-.js → 13uk2uuzuop5e.js} +1 -1
  429. package/dist/dashboard-runtime/dashboard/.next/static/chunks/13vd4hv~l95-c.js +1 -0
  430. package/dist/dashboard-runtime/dashboard/.next/static/chunks/16.2aecdwo6w_.js +1 -0
  431. package/dist/dashboard-runtime/dashboard/.next/static/chunks/16yu0g~7n~33c.js +1 -0
  432. package/dist/dashboard-runtime/dashboard/.next/static/chunks/17fx3e0sj7h7s.js +1 -0
  433. package/dist/dashboard-runtime/dashboard/next.config.ts +1 -5
  434. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/api-keys/page.tsx +28 -18
  435. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/chat/error.tsx +5 -3
  436. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/chat/page.tsx +188 -19
  437. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/error.tsx +8 -5
  438. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/knowledge-base/[name]/documents/documents-client.tsx +85 -45
  439. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/knowledge-base/[name]/error.tsx +12 -7
  440. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/knowledge-base/[name]/layout-client.tsx +67 -29
  441. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/knowledge-base/[name]/qa/page.tsx +2 -1
  442. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/knowledge-base/[name]/retrieval/retrieval-client.tsx +8 -4
  443. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/knowledge-base/[name]/settings/settings-client.tsx +6 -3
  444. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/knowledge-base/create/page.tsx +5 -3
  445. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/knowledge-base/page.tsx +6 -4
  446. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/layout.tsx +8 -17
  447. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/llm-providers/[id]/page.tsx +4 -2
  448. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/llm-providers/error.tsx +6 -3
  449. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/llm-providers/new/page.tsx +6 -2
  450. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/llm-providers/page.tsx +8 -6
  451. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/dream/[dreamId]/page.tsx +112 -49
  452. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/dream/page.tsx +186 -67
  453. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/layout.tsx +48 -32
  454. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/messages/_helpers.ts +16 -5
  455. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/messages/message-bubble.tsx +3 -1
  456. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/messages/page.tsx +47 -17
  457. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/messages/time-filter-bar.tsx +15 -13
  458. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/requests/_helpers.ts +20 -29
  459. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/requests/page.tsx +121 -42
  460. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/requests/request-detail-dialog.tsx +37 -17
  461. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/requests/requests-search-bar.tsx +11 -6
  462. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/requests/requests-table.tsx +29 -9
  463. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/search/page.tsx +13 -4
  464. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/settings/page.tsx +21 -29
  465. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/tasks/page.tsx +20 -15
  466. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/units/page.tsx +355 -125
  467. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/create/page.tsx +5 -3
  468. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/error.tsx +5 -3
  469. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/page.tsx +6 -4
  470. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/projects/error.tsx +6 -3
  471. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/projects/page.tsx +18 -13
  472. package/dist/dashboard-runtime/dashboard/src/app/api/v1/api-keys/[id]/custom-policy/route.ts +1 -3
  473. package/dist/dashboard-runtime/dashboard/src/app/api/v1/api-keys/[id]/effective-permissions/route.ts +45 -17
  474. package/dist/dashboard-runtime/dashboard/src/app/api/v1/api-keys/[id]/policies/route.ts +0 -8
  475. package/dist/dashboard-runtime/dashboard/src/app/api/v1/api-keys/[id]/route.ts +3 -1
  476. package/dist/dashboard-runtime/dashboard/src/app/api/v1/api-keys/filter-by-permission/route.ts +21 -10
  477. package/dist/dashboard-runtime/dashboard/src/app/api/v1/api-keys/route.ts +20 -6
  478. package/dist/dashboard-runtime/dashboard/src/app/api/v1/instances/[name]/route.ts +7 -5
  479. package/dist/dashboard-runtime/dashboard/src/app/api/v1/instances/[name]/use/route.ts +1 -2
  480. package/dist/dashboard-runtime/dashboard/src/app/api/v1/instances/route.ts +4 -5
  481. package/dist/dashboard-runtime/dashboard/src/app/api/v1/knowledge-bases/[name]/chunks/route.ts +4 -1
  482. package/dist/dashboard-runtime/dashboard/src/app/api/v1/knowledge-bases/[name]/documents/[docId]/route.ts +5 -1
  483. package/dist/dashboard-runtime/dashboard/src/app/api/v1/knowledge-bases/[name]/documents/route.ts +8 -2
  484. package/dist/dashboard-runtime/dashboard/src/app/api/v1/knowledge-bases/[name]/documents/upload/route.ts +7 -2
  485. package/dist/dashboard-runtime/dashboard/src/app/api/v1/llm/chat/file-memory-helpers.ts +93 -0
  486. package/dist/dashboard-runtime/dashboard/src/app/api/v1/llm/chat/route.ts +152 -64
  487. package/dist/dashboard-runtime/dashboard/src/app/api/v1/llm/providers/route.ts +1 -4
  488. package/dist/dashboard-runtime/dashboard/src/app/api/v1/logs/client/route.ts +30 -13
  489. package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/dream-kb-sync/route.ts +78 -0
  490. package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/dream-tasks/[dreamId]/actions/route.ts +2 -1
  491. package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/dream-tasks/route.ts +2 -1
  492. package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/file-memory/_helpers.ts +42 -0
  493. package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/file-memory/file/route.ts +69 -0
  494. package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/file-memory/sync/route.ts +69 -0
  495. package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/file-memory/tree/route.ts +44 -0
  496. package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/scopes/route.ts +3 -5
  497. package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/tasks/route.ts +2 -1
  498. package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/units/route.ts +4 -1
  499. package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/route.ts +30 -7
  500. package/dist/dashboard-runtime/dashboard/src/app/api/v1/oss/list/route.ts +11 -3
  501. package/dist/dashboard-runtime/dashboard/src/app/error.tsx +17 -16
  502. package/dist/dashboard-runtime/dashboard/src/app/globals.css +63 -23
  503. package/dist/dashboard-runtime/dashboard/src/app/layout.tsx +17 -14
  504. package/dist/dashboard-runtime/dashboard/src/app/not-found.tsx +12 -4
  505. package/dist/dashboard-runtime/dashboard/src/app/onboarding/error.tsx +8 -4
  506. package/dist/dashboard-runtime/dashboard/src/app/onboarding/page.tsx +7 -8
  507. package/dist/dashboard-runtime/dashboard/src/components/api-keys/api-key-create-dialog.tsx +42 -19
  508. package/dist/dashboard-runtime/dashboard/src/components/api-keys/api-key-delete-dialog.tsx +32 -14
  509. package/dist/dashboard-runtime/dashboard/src/components/api-keys/api-key-detail-sheet.tsx +23 -18
  510. package/dist/dashboard-runtime/dashboard/src/components/api-keys/api-key-permission-filter.tsx +42 -35
  511. package/dist/dashboard-runtime/dashboard/src/components/api-keys/api-key-secret-revealed-dialog.tsx +22 -19
  512. package/dist/dashboard-runtime/dashboard/src/components/api-keys/api-key-table.tsx +58 -23
  513. package/dist/dashboard-runtime/dashboard/src/components/api-keys/bearer-token-toggle.tsx +13 -8
  514. package/dist/dashboard-runtime/dashboard/src/components/api-keys/custom-policy-editor.tsx +43 -20
  515. package/dist/dashboard-runtime/dashboard/src/components/api-keys/permission-overview.tsx +19 -8
  516. package/dist/dashboard-runtime/dashboard/src/components/api-keys/permission-presets.tsx +37 -17
  517. package/dist/dashboard-runtime/dashboard/src/components/api-keys/permission-rule-dialog.tsx +99 -58
  518. package/dist/dashboard-runtime/dashboard/src/components/chat/add-mount-row.tsx +3 -1
  519. package/dist/dashboard-runtime/dashboard/src/components/chat/chat-config-context.tsx +30 -9
  520. package/dist/dashboard-runtime/dashboard/src/components/chat/chat-history-sidebar.tsx +13 -10
  521. package/dist/dashboard-runtime/dashboard/src/components/chat/chat-mount-config.tsx +28 -21
  522. package/dist/dashboard-runtime/dashboard/src/components/chat/memory-bind-section.tsx +221 -41
  523. package/dist/dashboard-runtime/dashboard/src/components/chat/memory-files-dialog.tsx +51 -0
  524. package/dist/dashboard-runtime/dashboard/src/components/chat/mount-empty-state.tsx +12 -8
  525. package/dist/dashboard-runtime/dashboard/src/components/chat/mount-picker.tsx +4 -2
  526. package/dist/dashboard-runtime/dashboard/src/components/chat/mount-retrieval-dialog.tsx +31 -15
  527. package/dist/dashboard-runtime/dashboard/src/components/chat/mount-row.tsx +9 -3
  528. package/dist/dashboard-runtime/dashboard/src/components/chat/unified-retrieval-section.tsx +14 -6
  529. package/dist/dashboard-runtime/dashboard/src/components/documents/doc-chunks-dialog.tsx +215 -126
  530. package/dist/dashboard-runtime/dashboard/src/components/documents/doc-columns.tsx +22 -13
  531. package/dist/dashboard-runtime/dashboard/src/components/documents/doc-detail-panel.tsx +56 -27
  532. package/dist/dashboard-runtime/dashboard/src/components/documents/doc-status-badge.tsx +8 -13
  533. package/dist/dashboard-runtime/dashboard/src/components/documents/doc-table.tsx +9 -7
  534. package/dist/dashboard-runtime/dashboard/src/components/documents/doc-toolbar.tsx +17 -18
  535. package/dist/dashboard-runtime/dashboard/src/components/documents/doc-upload-dialog.tsx +308 -181
  536. package/dist/dashboard-runtime/dashboard/src/components/documents/oss-browser.tsx +32 -16
  537. package/dist/dashboard-runtime/dashboard/src/components/documents/oss-import-tab.tsx +39 -14
  538. package/dist/dashboard-runtime/dashboard/src/components/home/home-empty-state.tsx +10 -6
  539. package/dist/dashboard-runtime/dashboard/src/components/home/home-hero.tsx +10 -6
  540. package/dist/dashboard-runtime/dashboard/src/components/instance/connect-instance-dialog.tsx +5 -6
  541. package/dist/dashboard-runtime/dashboard/src/components/instance/connect-instance-form.tsx +173 -72
  542. package/dist/dashboard-runtime/dashboard/src/components/instance/edit-instance-dialog.tsx +11 -5
  543. package/dist/dashboard-runtime/dashboard/src/components/instance/project-card.tsx +13 -7
  544. package/dist/dashboard-runtime/dashboard/src/components/knowledge-base/embedding-config-form.tsx +52 -19
  545. package/dist/dashboard-runtime/dashboard/src/components/knowledge-base/kb-card.tsx +138 -102
  546. package/dist/dashboard-runtime/dashboard/src/components/knowledge-base/kb-create-form.tsx +180 -73
  547. package/dist/dashboard-runtime/dashboard/src/components/knowledge-base/kb-delete-dialog.tsx +28 -12
  548. package/dist/dashboard-runtime/dashboard/src/components/knowledge-base/kb-list.tsx +12 -10
  549. package/dist/dashboard-runtime/dashboard/src/components/knowledge-base/kb-settings-form.tsx +180 -78
  550. package/dist/dashboard-runtime/dashboard/src/components/knowledge-base/retrieval-result-count-field.tsx +12 -7
  551. package/dist/dashboard-runtime/dashboard/src/components/knowledge-base/subspace-gate.tsx +11 -7
  552. package/dist/dashboard-runtime/dashboard/src/components/knowledge-base/subspace-switcher.tsx +16 -8
  553. package/dist/dashboard-runtime/dashboard/src/components/layout/detail-sidebar.tsx +15 -17
  554. package/dist/dashboard-runtime/dashboard/src/components/layout/help-link.tsx +32 -32
  555. package/dist/dashboard-runtime/dashboard/src/components/layout/instance-switcher.tsx +9 -5
  556. package/dist/dashboard-runtime/dashboard/src/components/layout/language-toggle.tsx +71 -0
  557. package/dist/dashboard-runtime/dashboard/src/components/layout/nav-link.tsx +8 -10
  558. package/dist/dashboard-runtime/dashboard/src/components/layout/page-header.tsx +26 -31
  559. package/dist/dashboard-runtime/dashboard/src/components/layout/sidebar-instance-card.tsx +24 -9
  560. package/dist/dashboard-runtime/dashboard/src/components/layout/sidebar-item.tsx +11 -5
  561. package/dist/dashboard-runtime/dashboard/src/components/layout/sidebar-mobile.tsx +16 -7
  562. package/dist/dashboard-runtime/dashboard/src/components/layout/sidebar-usage-stats.tsx +4 -2
  563. package/dist/dashboard-runtime/dashboard/src/components/layout/sidebar.tsx +13 -9
  564. package/dist/dashboard-runtime/dashboard/src/components/layout/skip-to-content.tsx +21 -0
  565. package/dist/dashboard-runtime/dashboard/src/components/layout/theme-toggle.tsx +65 -144
  566. package/dist/dashboard-runtime/dashboard/src/components/llm-providers/llm-provider-card.tsx +35 -18
  567. package/dist/dashboard-runtime/dashboard/src/components/llm-providers/llm-provider-delete-dialog.tsx +20 -8
  568. package/dist/dashboard-runtime/dashboard/src/components/llm-providers/llm-provider-form.tsx +139 -67
  569. package/dist/dashboard-runtime/dashboard/src/components/memory/memory-add-dialog.tsx +15 -11
  570. package/dist/dashboard-runtime/dashboard/src/components/memory/memory-coming-soon.tsx +7 -3
  571. package/dist/dashboard-runtime/dashboard/src/components/memory/memory-create-form.tsx +179 -43
  572. package/dist/dashboard-runtime/dashboard/src/components/memory/memory-delete-dialog.tsx +12 -6
  573. package/dist/dashboard-runtime/dashboard/src/components/memory/memory-dream-actions-table.tsx +212 -88
  574. package/dist/dashboard-runtime/dashboard/src/components/memory/memory-dream-apply-confirm-dialog.tsx +14 -8
  575. package/dist/dashboard-runtime/dashboard/src/components/memory/memory-dream-create-dialog.tsx +222 -84
  576. package/dist/dashboard-runtime/dashboard/src/components/memory/memory-dream-disabled.tsx +10 -4
  577. package/dist/dashboard-runtime/dashboard/src/components/memory/memory-edit-dialog.tsx +21 -11
  578. package/dist/dashboard-runtime/dashboard/src/components/memory/memory-files-browser.tsx +225 -0
  579. package/dist/dashboard-runtime/dashboard/src/components/memory/memory-messages-table.tsx +28 -24
  580. package/dist/dashboard-runtime/dashboard/src/components/memory/memory-requests-table.tsx +122 -58
  581. package/dist/dashboard-runtime/dashboard/src/components/memory/memory-scope-bar.tsx +63 -28
  582. package/dist/dashboard-runtime/dashboard/src/components/memory/memory-search-form.tsx +32 -19
  583. package/dist/dashboard-runtime/dashboard/src/components/memory/memory-search-results.tsx +60 -29
  584. package/dist/dashboard-runtime/dashboard/src/components/memory/memory-settings-form.tsx +63 -26
  585. package/dist/dashboard-runtime/dashboard/src/components/memory/memory-store-card.tsx +34 -15
  586. package/dist/dashboard-runtime/dashboard/src/components/memory/memory-store-list.tsx +19 -13
  587. package/dist/dashboard-runtime/dashboard/src/components/memory/memory-tasks-table.tsx +84 -46
  588. package/dist/dashboard-runtime/dashboard/src/components/memory/memory-unit-detail-panel.tsx +37 -14
  589. package/dist/dashboard-runtime/dashboard/src/components/memory/memory-unit-table.tsx +54 -30
  590. package/dist/dashboard-runtime/dashboard/src/components/memory/scope-combobox.tsx +148 -0
  591. package/dist/dashboard-runtime/dashboard/src/components/qa/code-block.tsx +5 -3
  592. package/dist/dashboard-runtime/dashboard/src/components/qa/qa-chat-panel.tsx +51 -15
  593. package/dist/dashboard-runtime/dashboard/src/components/qa/qa-form.tsx +29 -16
  594. package/dist/dashboard-runtime/dashboard/src/components/qa/qa-message.tsx +268 -66
  595. package/dist/dashboard-runtime/dashboard/src/components/retrieval/assemble-retrieval-configuration.ts +6 -2
  596. package/dist/dashboard-runtime/dashboard/src/components/retrieval/filter-builder.tsx +260 -87
  597. package/dist/dashboard-runtime/dashboard/src/components/retrieval/request-preview.tsx +10 -4
  598. package/dist/dashboard-runtime/dashboard/src/components/retrieval/retrieval-form.tsx +56 -35
  599. package/dist/dashboard-runtime/dashboard/src/components/retrieval/retrieval-params-fields.tsx +40 -27
  600. package/dist/dashboard-runtime/dashboard/src/components/retrieval/retrieval-rerank-fields.tsx +80 -30
  601. package/dist/dashboard-runtime/dashboard/src/components/retrieval/retrieval-result-card.tsx +16 -5
  602. package/dist/dashboard-runtime/dashboard/src/components/retrieval/retrieval-results.tsx +11 -8
  603. package/dist/dashboard-runtime/dashboard/src/components/shared/confirm-dialog.tsx +11 -8
  604. package/dist/dashboard-runtime/dashboard/src/components/shared/data-table/data-table-pagination.tsx +21 -7
  605. package/dist/dashboard-runtime/dashboard/src/components/shared/data-table/data-table-toolbar.tsx +1 -2
  606. package/dist/dashboard-runtime/dashboard/src/components/shared/data-table/data-table.tsx +24 -9
  607. package/dist/dashboard-runtime/dashboard/src/components/shared/empty-state.tsx +1 -4
  608. package/dist/dashboard-runtime/dashboard/src/components/shared/error-state.tsx +1 -3
  609. package/dist/dashboard-runtime/dashboard/src/components/shared/json-viewer.tsx +1 -2
  610. package/dist/dashboard-runtime/dashboard/src/components/shared/llm-model-selector.tsx +22 -17
  611. package/dist/dashboard-runtime/dashboard/src/components/shared/metadata-field-input.tsx +10 -2
  612. package/dist/dashboard-runtime/dashboard/src/components/shared/metadata-form.tsx +10 -7
  613. package/dist/dashboard-runtime/dashboard/src/components/shared/refresh-button.tsx +6 -3
  614. package/dist/dashboard-runtime/dashboard/src/components/shared/relative-time.tsx +6 -3
  615. package/dist/dashboard-runtime/dashboard/src/components/shared/search-input.tsx +6 -5
  616. package/dist/dashboard-runtime/dashboard/src/components/shared/status-badge.tsx +9 -14
  617. package/dist/dashboard-runtime/dashboard/src/components/shared/system-prompt-input.tsx +6 -3
  618. package/dist/dashboard-runtime/dashboard/src/components/shared/tag-input.tsx +12 -7
  619. package/dist/dashboard-runtime/dashboard/src/components/shared/temperature-slider.tsx +4 -2
  620. package/dist/dashboard-runtime/dashboard/src/components/ui/badge.tsx +9 -8
  621. package/dist/dashboard-runtime/dashboard/src/components/ui/button.tsx +15 -14
  622. package/dist/dashboard-runtime/dashboard/src/components/ui/card.tsx +26 -18
  623. package/dist/dashboard-runtime/dashboard/src/components/ui/chat-bubble.tsx +10 -10
  624. package/dist/dashboard-runtime/dashboard/src/components/ui/checkbox.tsx +8 -8
  625. package/dist/dashboard-runtime/dashboard/src/components/ui/collapsible.tsx +6 -6
  626. package/dist/dashboard-runtime/dashboard/src/components/ui/command.tsx +32 -32
  627. package/dist/dashboard-runtime/dashboard/src/components/ui/data-card.tsx +35 -35
  628. package/dist/dashboard-runtime/dashboard/src/components/ui/detail-section.tsx +42 -36
  629. package/dist/dashboard-runtime/dashboard/src/components/ui/dialog.tsx +29 -29
  630. package/dist/dashboard-runtime/dashboard/src/components/ui/dropdown-menu.tsx +40 -40
  631. package/dist/dashboard-runtime/dashboard/src/components/ui/empty-state.tsx +16 -10
  632. package/dist/dashboard-runtime/dashboard/src/components/ui/filter-pill.tsx +20 -21
  633. package/dist/dashboard-runtime/dashboard/src/components/ui/form.tsx +57 -51
  634. package/dist/dashboard-runtime/dashboard/src/components/ui/input.tsx +8 -8
  635. package/dist/dashboard-runtime/dashboard/src/components/ui/item-card.tsx +17 -16
  636. package/dist/dashboard-runtime/dashboard/src/components/ui/label.tsx +9 -9
  637. package/dist/dashboard-runtime/dashboard/src/components/ui/memory-row.tsx +10 -10
  638. package/dist/dashboard-runtime/dashboard/src/components/ui/mini-stat.tsx +9 -8
  639. package/dist/dashboard-runtime/dashboard/src/components/ui/nav-tab-bar.tsx +21 -15
  640. package/dist/dashboard-runtime/dashboard/src/components/ui/playground-shell.tsx +13 -16
  641. package/dist/dashboard-runtime/dashboard/src/components/ui/popover.tsx +11 -11
  642. package/dist/dashboard-runtime/dashboard/src/components/ui/result-row.tsx +7 -7
  643. package/dist/dashboard-runtime/dashboard/src/components/ui/scope-tag.tsx +9 -6
  644. package/dist/dashboard-runtime/dashboard/src/components/ui/select.tsx +29 -29
  645. package/dist/dashboard-runtime/dashboard/src/components/ui/separator.tsx +10 -10
  646. package/dist/dashboard-runtime/dashboard/src/components/ui/sheet.tsx +11 -4
  647. package/dist/dashboard-runtime/dashboard/src/components/ui/skeleton.tsx +11 -11
  648. package/dist/dashboard-runtime/dashboard/src/components/ui/sonner.tsx +7 -7
  649. package/dist/dashboard-runtime/dashboard/src/components/ui/stat-card.tsx +14 -11
  650. package/dist/dashboard-runtime/dashboard/src/components/ui/switch.tsx +8 -3
  651. package/dist/dashboard-runtime/dashboard/src/components/ui/table.tsx +27 -24
  652. package/dist/dashboard-runtime/dashboard/src/components/ui/tabs.tsx +14 -14
  653. package/dist/dashboard-runtime/dashboard/src/components/ui/textarea.tsx +7 -7
  654. package/dist/dashboard-runtime/dashboard/src/components/ui/toggle-group.tsx +27 -22
  655. package/dist/dashboard-runtime/dashboard/src/components/ui/tooltip.tsx +10 -10
  656. package/dist/dashboard-runtime/dashboard/src/components/ui/usage-card.tsx +11 -8
  657. package/dist/dashboard-runtime/dashboard/src/config/navigation.ts +25 -21
  658. package/dist/dashboard-runtime/dashboard/src/contexts/subspace-context.tsx +1 -1
  659. package/dist/dashboard-runtime/dashboard/src/hooks/use-apply-dream-actions.ts +1 -4
  660. package/dist/dashboard-runtime/dashboard/src/hooks/use-chat-history.ts +33 -13
  661. package/dist/dashboard-runtime/dashboard/src/hooks/use-chat-last-config.ts +3 -1
  662. package/dist/dashboard-runtime/dashboard/src/hooks/use-create-api-key.ts +4 -2
  663. package/dist/dashboard-runtime/dashboard/src/hooks/use-create-memory-store.ts +2 -1
  664. package/dist/dashboard-runtime/dashboard/src/hooks/use-delete-custom-policy.ts +1 -4
  665. package/dist/dashboard-runtime/dashboard/src/hooks/use-document.ts +2 -1
  666. package/dist/dashboard-runtime/dashboard/src/hooks/use-documents.ts +8 -2
  667. package/dist/dashboard-runtime/dashboard/src/hooks/use-dream-actions.ts +2 -1
  668. package/dist/dashboard-runtime/dashboard/src/hooks/use-dream-task.ts +4 -5
  669. package/dist/dashboard-runtime/dashboard/src/hooks/use-file-memory.ts +50 -0
  670. package/dist/dashboard-runtime/dashboard/src/hooks/use-instances.ts +42 -11
  671. package/dist/dashboard-runtime/dashboard/src/hooks/use-locale-revalidation.ts +34 -0
  672. package/dist/dashboard-runtime/dashboard/src/hooks/use-memory-requests.ts +7 -2
  673. package/dist/dashboard-runtime/dashboard/src/hooks/use-memory-unit.ts +3 -2
  674. package/dist/dashboard-runtime/dashboard/src/hooks/use-memory-units.ts +3 -2
  675. package/dist/dashboard-runtime/dashboard/src/hooks/use-oss-import.ts +18 -4
  676. package/dist/dashboard-runtime/dashboard/src/hooks/use-oss-list.ts +3 -3
  677. package/dist/dashboard-runtime/dashboard/src/hooks/use-qa-chat.ts +32 -21
  678. package/dist/dashboard-runtime/dashboard/src/hooks/use-subspace-history.ts +5 -2
  679. package/dist/dashboard-runtime/dashboard/src/hooks/use-update-document.ts +4 -1
  680. package/dist/dashboard-runtime/dashboard/src/hooks/use-update-memory-store.ts +2 -1
  681. package/dist/dashboard-runtime/dashboard/src/hooks/use-upload-documents.ts +6 -1
  682. package/dist/dashboard-runtime/dashboard/src/i18n/config.ts +46 -0
  683. package/dist/dashboard-runtime/dashboard/src/i18n/dictionaries.ts +8 -0
  684. package/dist/dashboard-runtime/dashboard/src/i18n/i18n-context.tsx +198 -0
  685. package/dist/dashboard-runtime/dashboard/src/i18n/locales/en.ts +1969 -0
  686. package/dist/dashboard-runtime/dashboard/src/i18n/locales/zh.ts +1857 -0
  687. package/dist/dashboard-runtime/dashboard/src/lib/api-error-toast.ts +2 -1
  688. package/dist/dashboard-runtime/dashboard/src/lib/chat-dream-deposit.ts +14 -0
  689. package/dist/dashboard-runtime/dashboard/src/lib/chat-message-ops.ts +4 -1
  690. package/dist/dashboard-runtime/dashboard/src/lib/dream-kb/filename.ts +13 -0
  691. package/dist/dashboard-runtime/dashboard/src/lib/dream-kb/format.ts +79 -0
  692. package/dist/dashboard-runtime/dashboard/src/lib/dream-kb/hash.ts +6 -0
  693. package/dist/dashboard-runtime/dashboard/src/lib/dream-kb/scope.ts +37 -0
  694. package/dist/dashboard-runtime/dashboard/src/lib/dream-kb/types.ts +25 -0
  695. package/dist/dashboard-runtime/dashboard/src/lib/extension-filter.ts +8 -3
  696. package/dist/dashboard-runtime/dashboard/src/lib/file-tree.ts +100 -0
  697. package/dist/dashboard-runtime/dashboard/src/lib/format-datetime.ts +56 -0
  698. package/dist/dashboard-runtime/dashboard/src/lib/glob-filter.ts +10 -4
  699. package/dist/dashboard-runtime/dashboard/src/lib/memory-storage-mode.ts +68 -0
  700. package/dist/dashboard-runtime/dashboard/src/lib/memory.ts +41 -13
  701. package/dist/dashboard-runtime/dashboard/src/lib/metadata-form.ts +4 -1
  702. package/dist/dashboard-runtime/dashboard/src/lib/number-input-handler.ts +1 -1
  703. package/dist/dashboard-runtime/dashboard/src/lib/oss-selection.ts +3 -1
  704. package/dist/dashboard-runtime/dashboard/src/lib/query-keys.ts +26 -4
  705. package/dist/dashboard-runtime/dashboard/src/lib/server/api-helpers.ts +2 -1
  706. package/dist/dashboard-runtime/dashboard/src/lib/server/dream-kb-sync.ts +139 -0
  707. package/dist/dashboard-runtime/dashboard/src/lib/server/ims-client.ts +8 -11
  708. package/dist/dashboard-runtime/dashboard/src/lib/server/llm-client.ts +5 -5
  709. package/dist/dashboard-runtime/dashboard/src/lib/server/llm-crypto.ts +1 -5
  710. package/dist/dashboard-runtime/dashboard/src/lib/server/oss-client.ts +9 -2
  711. package/dist/dashboard-runtime/dashboard/src/lib/server/ram-client.ts +13 -4
  712. package/dist/dashboard-runtime/dashboard/src/lib/server/runtime-context.ts +6 -10
  713. package/dist/dashboard-runtime/dashboard/src/lib/server/sdk-client.ts +8 -5
  714. package/dist/dashboard-runtime/dashboard/src/providers/query-provider.tsx +5 -5
  715. package/dist/dashboard-runtime/dashboard/src/providers/runtime-context-provider.tsx +26 -7
  716. package/dist/dashboard-runtime/dashboard/src/providers/theme-provider.tsx +6 -3
  717. package/dist/dashboard-runtime/dashboard/src/schemas/instance.ts +30 -13
  718. package/dist/dashboard-runtime/dashboard/src/schemas/knowledge-base.ts +42 -21
  719. package/dist/dashboard-runtime/dashboard/src/schemas/llm-chat.ts +8 -3
  720. package/dist/dashboard-runtime/dashboard/src/schemas/retrieval.ts +2 -6
  721. package/dist/dashboard-runtime/dashboard/src/services/api-client.ts +31 -32
  722. package/dist/dashboard-runtime/dashboard/src/services/api-keys.ts +4 -2
  723. package/dist/dashboard-runtime/dashboard/src/services/auth.ts +1 -1
  724. package/dist/dashboard-runtime/dashboard/src/services/chunks.ts +4 -4
  725. package/dist/dashboard-runtime/dashboard/src/services/documents.ts +16 -12
  726. package/dist/dashboard-runtime/dashboard/src/services/file-memory.ts +63 -0
  727. package/dist/dashboard-runtime/dashboard/src/services/knowledge-base.ts +16 -8
  728. package/dist/dashboard-runtime/dashboard/src/services/memory.ts +64 -29
  729. package/dist/dashboard-runtime/dashboard/src/services/oss.ts +6 -6
  730. package/dist/dashboard-runtime/dashboard/src/services/retrieval.ts +2 -2
  731. package/dist/dashboard-runtime/dashboard/src/types/knowledge-base.ts +3 -7
  732. package/dist/dashboard-runtime/dashboard/src/types/llm-chat.ts +27 -0
  733. package/dist/dashboard-runtime/dashboard/src/types/memory.ts +29 -9
  734. package/dist/dashboard-runtime/dashboard/tsconfig.json +3 -11
  735. package/dist/dashboard-runtime/dashboard/vitest.config.mjs +1 -4
  736. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/file-memory.d.ts +153 -0
  737. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/file-memory.d.ts.map +1 -0
  738. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/file-memory.js +451 -0
  739. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/file-memory.js.map +1 -0
  740. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/index.d.ts +2 -1
  741. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/index.d.ts.map +1 -1
  742. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/index.js +2 -1
  743. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/index.js.map +1 -1
  744. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/internal/managed-section-writer.d.ts.map +1 -1
  745. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/internal/managed-section-writer.js +2 -1
  746. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/internal/managed-section-writer.js.map +1 -1
  747. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.d.ts +16 -0
  748. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.d.ts.map +1 -1
  749. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.js +70 -3
  750. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.js.map +1 -1
  751. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/managed-oss.d.ts.map +1 -1
  752. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/managed-oss.js +2 -6
  753. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/managed-oss.js.map +1 -1
  754. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/managed-ots.d.ts.map +1 -1
  755. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/managed-ots.js +4 -7
  756. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/managed-ots.js.map +1 -1
  757. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.d.ts +8 -0
  758. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.d.ts.map +1 -1
  759. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.js +21 -4
  760. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.js.map +1 -1
  761. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/response.d.ts.map +1 -1
  762. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/response.js +7 -3
  763. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/response.js.map +1 -1
  764. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/sdk-pagination.d.ts.map +1 -1
  765. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/sdk-pagination.js.map +1 -1
  766. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/tsconfig.tsbuildinfo +1 -1
  767. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/config.d.ts.map +1 -1
  768. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/config.js +17 -8
  769. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/config.js.map +1 -1
  770. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/errors.d.ts.map +1 -1
  771. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/errors.js.map +1 -1
  772. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/logging.d.ts.map +1 -1
  773. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/logging.js +12 -4
  774. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/logging.js.map +1 -1
  775. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/tsconfig.tsbuildinfo +1 -1
  776. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/types.d.ts.map +1 -1
  777. package/dist/main.d.ts.map +1 -1
  778. package/dist/main.js +1 -1
  779. package/dist/main.js.map +1 -1
  780. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/file-memory.d.ts +153 -0
  781. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/file-memory.d.ts.map +1 -0
  782. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/file-memory.js +451 -0
  783. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/file-memory.js.map +1 -0
  784. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/index.d.ts +2 -1
  785. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/index.d.ts.map +1 -1
  786. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/index.js +2 -1
  787. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/index.js.map +1 -1
  788. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/internal/managed-section-writer.d.ts.map +1 -1
  789. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/internal/managed-section-writer.js +2 -1
  790. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/internal/managed-section-writer.js.map +1 -1
  791. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.d.ts +16 -0
  792. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.d.ts.map +1 -1
  793. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.js +70 -3
  794. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.js.map +1 -1
  795. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/managed-oss.d.ts.map +1 -1
  796. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/managed-oss.js +2 -6
  797. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/managed-oss.js.map +1 -1
  798. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/managed-ots.d.ts.map +1 -1
  799. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/managed-ots.js +4 -7
  800. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/managed-ots.js.map +1 -1
  801. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.d.ts +8 -0
  802. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.d.ts.map +1 -1
  803. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.js +21 -4
  804. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.js.map +1 -1
  805. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/response.d.ts.map +1 -1
  806. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/response.js +7 -3
  807. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/response.js.map +1 -1
  808. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/sdk-pagination.d.ts.map +1 -1
  809. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/sdk-pagination.js.map +1 -1
  810. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/tsconfig.tsbuildinfo +1 -1
  811. package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/config.d.ts.map +1 -1
  812. package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/config.js +17 -8
  813. package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/config.js.map +1 -1
  814. package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/errors.d.ts.map +1 -1
  815. package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/errors.js.map +1 -1
  816. package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/logging.d.ts.map +1 -1
  817. package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/logging.js +12 -4
  818. package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/logging.js.map +1 -1
  819. package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/tsconfig.tsbuildinfo +1 -1
  820. package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/types.d.ts.map +1 -1
  821. package/dist/output.d.ts.map +1 -1
  822. package/dist/output.js +3 -1
  823. package/dist/output.js.map +1 -1
  824. package/dist/scanner.d.ts.map +1 -1
  825. package/dist/scanner.js.map +1 -1
  826. package/dist/utils/parse-int-arg.d.ts.map +1 -1
  827. package/dist/utils/parse-int-arg.js.map +1 -1
  828. package/dist/utils/read-image-input.d.ts.map +1 -1
  829. package/dist/utils/read-image-input.js +8 -1
  830. package/dist/utils/read-image-input.js.map +1 -1
  831. package/package.json +2 -2
  832. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0--nu07._.js +0 -3
  833. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0.gylau._.js +0 -3
  834. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0.hvkwy._.js +0 -3
  835. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0.qtdn4._.js +0 -3
  836. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__02p1x3t._.js +0 -3
  837. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__03og44p._.js +0 -3
  838. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__04dd04u._.js +0 -3
  839. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__04ujbw-._.js +0 -3
  840. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__04zbudf._.js +0 -3
  841. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__05eryp~._.js +0 -3
  842. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__06fva9g._.js +0 -3
  843. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__08_2avk._.js +0 -3
  844. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0acvvri._.js +0 -3
  845. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0byveuc._.js +0 -3
  846. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0cee_lo._.js +0 -3
  847. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0cyd2qb._.js +0 -3
  848. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0ecs-9r._.js +0 -3
  849. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0ejcow5._.js +0 -3
  850. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0es0s_~._.js +0 -3
  851. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0fglxiw._.js +0 -3
  852. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0g3yw6w._.js +0 -3
  853. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0i1_p1s._.js +0 -3
  854. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0is6qso._.js +0 -3
  855. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0no9qm0._.js +0 -3
  856. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0q8vcw8._.js +0 -3
  857. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0q9fgt6._.js +0 -3
  858. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0rx9hon._.js +0 -3
  859. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0tc-.6s._.js +0 -3
  860. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0u03tze._.js +0 -3
  861. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0ua_nqs._.js +0 -3
  862. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0uebf40._.js +0 -3
  863. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0v0il3n._.js +0 -3
  864. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0w_ig2a._.js +0 -3
  865. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0zmo~nd._.js +0 -3
  866. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__10m-wmo._.js +0 -3
  867. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__11s_zx6._.js +0 -3
  868. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__11wq90l._.js +0 -3
  869. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__126srko._.js +0 -3
  870. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__12e1t6o._.js +0 -3
  871. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__12ylr4n._.js +0 -3
  872. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__13g_f9w._.js +0 -3
  873. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__13q2wbt._.js +0 -3
  874. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__13~-fxp._.js +0 -3
  875. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/0p91_next_dist_shared_lib_deployment-id_0uu7yq4.js +0 -3
  876. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__04.tmw0._.js +0 -3
  877. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__077~9kz._.js +0 -3
  878. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__07fra.0._.js +0 -3
  879. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0jhpb-b._.js +0 -3
  880. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0st_2qm._.js +0 -3
  881. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_03cxnik._.js +0 -3
  882. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_078ekb~._.js +0 -3
  883. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_09aiggd._.js +0 -3
  884. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0l-4ms-._.js +0 -3
  885. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0njimsl._.js +0 -3
  886. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0oxv61l._.js +0 -3
  887. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0pe9ntc._.js +0 -3
  888. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0q43l7g._.js +0 -3
  889. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0q748rf._.js +0 -3
  890. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0qptqwe._.js +0 -3
  891. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0tej2s.._.js +0 -3
  892. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0tjamu1._.js +0 -3
  893. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0u4elhp._.js +0 -3
  894. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0wwhklq._.js +0 -3
  895. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0x05u0y._.js +0 -3
  896. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0ytd66u._.js +0 -3
  897. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0~5g0_a._.js +0 -3
  898. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0~dbpb0._.js +0 -3
  899. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_10.40pj._.js +0 -3
  900. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_13w6ksc._.js +0 -3
  901. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_00ofp7q._.js +0 -3
  902. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_065m1.j._.js +0 -3
  903. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0l1.0wg._.js +0 -3
  904. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0xf3ffa._.js +0 -3
  905. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_memory_[store]_settings_page_tsx_0y26.xu._.js +0 -3
  906. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0-0n226yihtlx.js +0 -138
  907. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0-ldkvvj51n5..js +0 -5
  908. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0-rnnjxuu_5.s.js +0 -1
  909. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0.q0rms~bxru_.js +0 -1
  910. package/dist/dashboard-runtime/dashboard/.next/static/chunks/01ccz9pw1s5-1.js +0 -1
  911. package/dist/dashboard-runtime/dashboard/.next/static/chunks/03~amszcayft9.js +0 -1
  912. package/dist/dashboard-runtime/dashboard/.next/static/chunks/05oy7c8~k0-nu.js +0 -1
  913. package/dist/dashboard-runtime/dashboard/.next/static/chunks/06e08s6_aj5tb.js +0 -1
  914. package/dist/dashboard-runtime/dashboard/.next/static/chunks/06gfzt_e-w-f~.js +0 -1
  915. package/dist/dashboard-runtime/dashboard/.next/static/chunks/076wjt8-f7ws0.js +0 -1
  916. package/dist/dashboard-runtime/dashboard/.next/static/chunks/07brna0jsz4vi.js +0 -1
  917. package/dist/dashboard-runtime/dashboard/.next/static/chunks/08c211p60po58.js +0 -1
  918. package/dist/dashboard-runtime/dashboard/.next/static/chunks/08ix0ia65i20b.js +0 -9
  919. package/dist/dashboard-runtime/dashboard/.next/static/chunks/09fuq3fiw1zq8.js +0 -138
  920. package/dist/dashboard-runtime/dashboard/.next/static/chunks/09pa80gils3r2.js +0 -1
  921. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0axe89r5c7p_b.js +0 -1
  922. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0b2g7gajnlz-x.js +0 -4
  923. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0czi-68m5cma3.js +0 -1
  924. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0eg702en0ykod.js +0 -1
  925. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0gqhfku~on4t1.js +0 -1
  926. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0i_66eb3teu-..js +0 -1
  927. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0ipb.__efc0i7.js +0 -1
  928. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0jwl.kgoaubdz.js +0 -1
  929. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0o3sqa_d7_k15.js +0 -1
  930. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0oatn7x1t1x~~.js +0 -1
  931. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0oxr1t3cp8_9f.js +0 -1
  932. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0p7-v~ggg-k3s.js +0 -1
  933. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0pyte4aize4vw.js +0 -1
  934. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0qann4-pg7heu.js +0 -1
  935. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0qzs7r4p4hd2~.js +0 -1
  936. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0t.fmi5danjtx.js +0 -1
  937. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0ty--w57-5n5f.js +0 -1
  938. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0w1f765.797w7.js +0 -1
  939. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0wl~ofl4qn1yv.js +0 -1
  940. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0xnm11dm1-qw2.js +0 -1
  941. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0yduro1k88.mk.js +0 -1
  942. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0zp_ao86_7617.js +0 -1
  943. package/dist/dashboard-runtime/dashboard/.next/static/chunks/10oar3if2rs8f.js +0 -1
  944. package/dist/dashboard-runtime/dashboard/.next/static/chunks/1211es3l12jpn.js +0 -1
  945. package/dist/dashboard-runtime/dashboard/.next/static/chunks/12ju37ebul3bw.js +0 -1
  946. package/dist/dashboard-runtime/dashboard/.next/static/chunks/137epx7vazn1v.js +0 -1
  947. package/dist/dashboard-runtime/dashboard/.next/static/chunks/140~~66uc8843.css +0 -1
  948. package/dist/dashboard-runtime/dashboard/.next/static/chunks/1692-f0t3ef~c.js +0 -1
  949. package/dist/dashboard-runtime/dashboard/.next/static/chunks/16z7~ksa815uh.js +0 -1
  950. /package/dist/dashboard-runtime/dashboard/.next/static/{sk6oO3r92_OgCvicmyYrR → 5irIRCYtKcYh5T_Bewihp}/_buildManifest.js +0 -0
  951. /package/dist/dashboard-runtime/dashboard/.next/static/{sk6oO3r92_OgCvicmyYrR → 5irIRCYtKcYh5T_Bewihp}/_clientMiddlewareManifest.js +0 -0
  952. /package/dist/dashboard-runtime/dashboard/.next/static/{sk6oO3r92_OgCvicmyYrR → 5irIRCYtKcYh5T_Bewihp}/_ssgManifest.js +0 -0
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAC/F,OAAO,EACL,kBAAkB,EAClB,UAAU,EACV,YAAY,EACZ,SAAS,GACV,MAAM,aAAa,CAAC;AAGrB,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAExE,MAAM,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC/C,MAAM,GAAG,GAAG,OAAO,CAAC,iBAAiB,CAAwB,CAAC;AAgB9D,MAAM,eAAe,GAAG,IAAI,iBAAiB,EAAc,CAAC;AAE5D;;;;;;GAMG;AACH,MAAM,UAAU,cAAc,CAC5B,GAAe,EACf,EAAwB;IAExB,OAAO,eAAe,CAAC,GAAG,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;AACtC,CAAC;AAED,MAAM,UAAU,SAAS;IACvB,MAAM,GAAG,GAAG,eAAe,CAAC,QAAQ,EAAE,CAAC;IACvC,IAAI,GAAG;QAAE,OAAO,GAAG,CAAC,MAAM,CAAC;IAC3B,uEAAuE;IACvE,oEAAoE;IACpE,2CAA2C;IAC3C,OAAO,gBAAgB,EAAE,CAAC;AAC5B,CAAC;AAED,MAAM,UAAU,SAAS;IACvB,OAAO,IAAI,MAAM,CAAC,SAAS,EAAE,CAAC,CAAC;AACjC,CAAC;AAED,MAAM,UAAU,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AAC;AAED;;;;GAIG;AACH,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAY,EAAE,EAAE;IAC5B,IAAI,GAAG,YAAY,YAAY,EAAE,CAAC;QAChC,qEAAqE;QACrE,aAAa;QACb,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAC7B,CAAC;IACD,IAAI,GAAG,YAAY,QAAQ,EAAE,CAAC;QAC5B,oEAAoE;QACpE,gEAAgE;QAChE,MAAM,OAAO,GAAG,kBAAkB,CAAC,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;QAC1D,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC;QACjD,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAC7B,CAAC;IACD,MAAM,GAAG,GAAG,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IAC7D,SAAS,CAAC,UAAU,GAAG,EAAE,CAAC,CAAC;IAC3B,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
@@ -0,0 +1,153 @@
1
+ import type { StandardResponse } from "./types.js";
2
+ export interface MountScope {
3
+ appId: string;
4
+ tenantId: string;
5
+ agentId: string;
6
+ runId: string;
7
+ }
8
+ export declare function sanitizeScopeSegment(seg: string | undefined | null): string;
9
+ /**
10
+ * 单个 scope 的本地镜像子目录:`<root>/<app>__<tenant>__<agent>__<run>`。
11
+ * 段内 sanitize 可能折叠不同原值(如 `a@b` 与 `a_b`);真实冲突由服务端
12
+ * OSS prefix 里的 scopehash 兜底,本地目录只求隔离与可读。
13
+ */
14
+ export declare function mountScopeDir(localRoot: string, scope: MountScope): string;
15
+ /**
16
+ * 文件记忆本地镜像目录(sync 写入、tree/cat 读取共用同一规则):
17
+ * `<localRoot>/<app>/<tenant>` 两层路径。
18
+ *
19
+ * 服务端按 **user** 粒度投影,OSS 前缀在聚合维度上直接省略 agent/run
20
+ * (`mem/{inst}/{store}/{app}/{tenant}/{hash}/memory/`),因此本地镜像也只按
21
+ * app/tenant 两层组织——同一用户的不同智能体/会话共享同一份本地副本,租户之间
22
+ * 相互隔离。段内非 `[A-Za-z0-9._-]` 字符 sanitize,空字段回落 `__default__`。
23
+ *
24
+ * 注:假定服务端 projection_group_level=user(本部署实际值)。
25
+ */
26
+ export declare function fileMemoryScopeDir(localRoot: string, scope: Partial<MountScope>): string;
27
+ /** 通配符/空字段 → `__default__`;显式值原样保留。挂载 scope 禁止通配。 */
28
+ export declare function normalizeMountScope(scope: Partial<MountScope>): MountScope;
29
+ /**
30
+ * dashboard 与 CLI 共享的默认本地根:
31
+ * `<CONFIG_DIR>/file-memory/<otsInstanceName>/<memoryStoreName>`。
32
+ * 两端使用同一约定,dashboard 聊天同步下来的文件 CLI 直接可见。
33
+ */
34
+ export declare function defaultFileMemoryRoot(otsInstanceName: string, memoryStoreName: string): string;
35
+ /**
36
+ * CJK 感知分词:ASCII 词元(≥2 字符,小写)+ CJK 单字 + 连续 bigram,
37
+ * 让短中文查询也能命中。
38
+ */
39
+ export declare function tokenizeQuery(query: string): string[];
40
+ /** 按匹配词元比例打分(0~1),整句命中 +0.1 bonus。 */
41
+ export declare function scoreSnippet(snippetText: string, queryTerms: string[], fullQuery: string): number;
42
+ export interface LocalMemoryHit {
43
+ unit: {
44
+ text: string;
45
+ source: string;
46
+ };
47
+ score: number;
48
+ }
49
+ export interface SearchLocalMemoriesResult {
50
+ results: LocalMemoryHit[];
51
+ skipped?: boolean;
52
+ }
53
+ /**
54
+ * 只在给定 scope 目录子树内做词法检索:每个文件按 10 行一个 block 切分,
55
+ * 按匹配词元比例打分取 top-K。绝不读取兄弟 scope 目录。
56
+ */
57
+ export declare function searchLocalMemories(opts: {
58
+ scopeDir: string;
59
+ query: string;
60
+ topK: number;
61
+ minQueryLength?: number;
62
+ }): SearchLocalMemoriesResult;
63
+ export interface LocalMemoryFileEntry {
64
+ rel: string;
65
+ size: number;
66
+ mtimeMs: number;
67
+ }
68
+ /** 稳定排序(按 rel 路径)的 scope 目录文件列表;目录不存在返回空。 */
69
+ export declare function listLocalMemoryFiles(scopeDir: string): LocalMemoryFileEntry[];
70
+ /**
71
+ * 把 `rel` 归一化到 `baseDir` 内的绝对路径,并拒绝越界(`..` / 绝对路径)。
72
+ * 读、写共用同一防穿越逻辑(避免异常对象名把文件写/读到 scope 目录之外)。
73
+ */
74
+ export declare function resolveWithinDir(baseDir: string, rel: string): string;
75
+ /** 读取 scope 目录内单个文件;`rel` 归一化后必须仍在 scopeDir 内(防穿越)。 */
76
+ export declare function readLocalMemoryFile(scopeDir: string, rel: string): string;
77
+ export interface RemoteObjectEntry {
78
+ rel: string;
79
+ etag: string;
80
+ }
81
+ export interface SyncPlan {
82
+ toDownload: string[];
83
+ toDelete: string[];
84
+ }
85
+ /**
86
+ * 纯 diff:远端 `[{rel, etag}]`(etag = 单次 PutObject 投影的 md5 hex)对比
87
+ * 本地 md5 Map,决定下载(新增/变更)与删除(孤儿)。
88
+ */
89
+ export declare function planSync(remote: RemoteObjectEntry[], localMd5: Map<string, string>, { pruneOrphans }?: {
90
+ pruneOrphans?: boolean;
91
+ }): SyncPlan;
92
+ interface MountCredentials {
93
+ accessKeyId?: string;
94
+ accessKeySecret?: string;
95
+ securityToken?: string;
96
+ expiration?: string;
97
+ }
98
+ /** 与 ali-oss 客户端交集的最小只读接口(便于测试注入)。 */
99
+ export interface OssReadClient {
100
+ list(query: {
101
+ prefix: string;
102
+ "max-keys": number;
103
+ marker?: string;
104
+ }, options: Record<string, never>): Promise<{
105
+ objects?: Array<{
106
+ name?: string;
107
+ etag?: string;
108
+ }>;
109
+ isTruncated?: boolean;
110
+ nextMarker?: string;
111
+ }>;
112
+ get(name: string): Promise<{
113
+ content: Buffer;
114
+ }>;
115
+ }
116
+ export type OssReadClientFactory = (target: {
117
+ ossEndpoint?: string;
118
+ region?: string;
119
+ bucket: string;
120
+ }, credentials: Required<Pick<MountCredentials, "accessKeyId" | "accessKeySecret">> & MountCredentials) => Promise<OssReadClient>;
121
+ export interface SyncMemoryMountOptions {
122
+ /** 通常为 `(req) => memoryClient.authorizeMemoryMount(req)`。 */
123
+ authorizeMount: (request: Record<string, unknown>) => Promise<StandardResponse>;
124
+ memoryStoreName: string;
125
+ scope: MountScope;
126
+ /** 本地根目录;scope 子目录由 mountScopeDir 派生。 */
127
+ localRoot: string;
128
+ ttlSeconds?: number;
129
+ pruneOrphans?: boolean;
130
+ /** 仅测试注入用。 */
131
+ ossClientFactory?: OssReadClientFactory;
132
+ }
133
+ export interface SyncMemoryMountResult {
134
+ ok: boolean;
135
+ scopeDir: string;
136
+ downloaded: number;
137
+ deleted: number;
138
+ total: number;
139
+ error?: string;
140
+ }
141
+ /**
142
+ * 同步一个 scope 的 OSS 投影到本地镜像目录(openclaw syncScopeOnce 同款):
143
+ * AuthorizeMemoryMount(每次重新签发 STS,不落盘)→ 分页列举 → ETag diff →
144
+ * 原子写下载 + 删孤儿。
145
+ *
146
+ * 失败语义:授权/列举阶段失败时本地副本完全不动(返回 `{ok:false, error}`);
147
+ * 下载阶段逐文件原子写,若中途某文件失败则中止并返回 `{ok:false}`,此时本地为
148
+ * **部分更新**(已写入的新文件保留、未处理的孤儿未删)——下次同步会按 ETag diff
149
+ * 自愈。
150
+ */
151
+ export declare function syncMemoryMount(opts: SyncMemoryMountOptions): Promise<SyncMemoryMountResult>;
152
+ export {};
153
+ //# sourceMappingURL=file-memory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-memory.d.ts","sourceRoot":"","sources":["../src/file-memory.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAUnD,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd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IAChB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAWD;;;;;;;;;GASG;AACH,wBAAsB,eAAe,CACnC,IAAI,EAAE,sBAAsB,GAC3B,OAAO,CAAC,qBAAqB,CAAC,CAsGhC"}
@@ -0,0 +1,451 @@
1
+ import crypto from "node:crypto";
2
+ import fs from "node:fs";
3
+ import path from "node:path";
4
+ import { CONFIG_DIR } from "@tablestore/tablestore-agent-shared";
5
+ const DEFAULT_SCOPE_VALUE = "__default__";
6
+ const LOCAL_MEMORY_MAX_FILES = 300;
7
+ const LOCAL_MEMORY_MAX_BYTES = 3 * 1024 * 1024; // 3 MB total
8
+ const LOCAL_MEMORY_SNIPPET_LINES = 10; // lines per snippet block
9
+ // 列举文件树(仅 stat,不读内容)用更宽的上限,避免像检索路径那样因 300 文件 /
10
+ // 3MB 上限静默截断展示列表。
11
+ const LIST_MAX_FILES = 10000;
12
+ // 单次同步的下载并发上限。
13
+ const MOUNT_DOWNLOAD_CONCURRENCY = 8;
14
+ // ---------------------------------------------------------------------------
15
+ // Scope → 本地目录
16
+ // ---------------------------------------------------------------------------
17
+ export function sanitizeScopeSegment(seg) {
18
+ const s = String(seg ?? "").trim() || DEFAULT_SCOPE_VALUE;
19
+ let out = "";
20
+ for (const ch of s)
21
+ out += /[A-Za-z0-9._-]/.test(ch) ? ch : "_";
22
+ return out;
23
+ }
24
+ /**
25
+ * 单个 scope 的本地镜像子目录:`<root>/<app>__<tenant>__<agent>__<run>`。
26
+ * 段内 sanitize 可能折叠不同原值(如 `a@b` 与 `a_b`);真实冲突由服务端
27
+ * OSS prefix 里的 scopehash 兜底,本地目录只求隔离与可读。
28
+ */
29
+ export function mountScopeDir(localRoot, scope) {
30
+ return path.join(localRoot, [scope.appId, scope.tenantId, scope.agentId, scope.runId]
31
+ .map(sanitizeScopeSegment)
32
+ .join("__"));
33
+ }
34
+ /**
35
+ * 文件记忆本地镜像目录(sync 写入、tree/cat 读取共用同一规则):
36
+ * `<localRoot>/<app>/<tenant>` 两层路径。
37
+ *
38
+ * 服务端按 **user** 粒度投影,OSS 前缀在聚合维度上直接省略 agent/run
39
+ * (`mem/{inst}/{store}/{app}/{tenant}/{hash}/memory/`),因此本地镜像也只按
40
+ * app/tenant 两层组织——同一用户的不同智能体/会话共享同一份本地副本,租户之间
41
+ * 相互隔离。段内非 `[A-Za-z0-9._-]` 字符 sanitize,空字段回落 `__default__`。
42
+ *
43
+ * 注:假定服务端 projection_group_level=user(本部署实际值)。
44
+ */
45
+ export function fileMemoryScopeDir(localRoot, scope) {
46
+ const s = normalizeMountScope(scope);
47
+ return path.join(localRoot, sanitizeScopeSegment(s.appId), sanitizeScopeSegment(s.tenantId));
48
+ }
49
+ /** 通配符/空字段 → `__default__`;显式值原样保留。挂载 scope 禁止通配。 */
50
+ export function normalizeMountScope(scope) {
51
+ const norm = (v) => {
52
+ const s = typeof v === "string" ? v.trim() : "";
53
+ return s && s !== "*" ? s : DEFAULT_SCOPE_VALUE;
54
+ };
55
+ return {
56
+ appId: norm(scope.appId),
57
+ tenantId: norm(scope.tenantId),
58
+ agentId: norm(scope.agentId),
59
+ runId: norm(scope.runId),
60
+ };
61
+ }
62
+ /**
63
+ * dashboard 与 CLI 共享的默认本地根:
64
+ * `<CONFIG_DIR>/file-memory/<otsInstanceName>/<memoryStoreName>`。
65
+ * 两端使用同一约定,dashboard 聊天同步下来的文件 CLI 直接可见。
66
+ */
67
+ export function defaultFileMemoryRoot(otsInstanceName, memoryStoreName) {
68
+ return path.join(CONFIG_DIR, "file-memory", sanitizeScopeSegment(otsInstanceName), sanitizeScopeSegment(memoryStoreName));
69
+ }
70
+ // ---------------------------------------------------------------------------
71
+ // 本地检索(词法匹配,openclaw 同版)
72
+ // ---------------------------------------------------------------------------
73
+ /**
74
+ * CJK 感知分词:ASCII 词元(≥2 字符,小写)+ CJK 单字 + 连续 bigram,
75
+ * 让短中文查询也能命中。
76
+ */
77
+ export function tokenizeQuery(query) {
78
+ const terms = new Set();
79
+ const asciiTokens = query.toLowerCase().match(/[a-z0-9]+/g) ?? [];
80
+ for (const t of asciiTokens) {
81
+ if (t.length >= 2)
82
+ terms.add(t);
83
+ }
84
+ const cjkRuns = query.match(/[一-鿿㐀-䶿]+/g) ?? [];
85
+ for (const run of cjkRuns) {
86
+ for (const ch of run)
87
+ terms.add(ch);
88
+ for (let i = 0; i + 1 < run.length; i += 1)
89
+ terms.add(run[i] + run[i + 1]);
90
+ }
91
+ return [...terms];
92
+ }
93
+ /** 按匹配词元比例打分(0~1),整句命中 +0.1 bonus。 */
94
+ export function scoreSnippet(snippetText, queryTerms, fullQuery) {
95
+ if (!snippetText)
96
+ return 0;
97
+ const lower = snippetText.toLowerCase();
98
+ let matched = 0;
99
+ for (const term of queryTerms) {
100
+ if (lower.includes(term))
101
+ matched += 1;
102
+ }
103
+ if (matched === 0)
104
+ return 0;
105
+ const bonus = fullQuery.length > 4 && lower.includes(fullQuery.toLowerCase()) ? 0.1 : 0;
106
+ return Math.min(1, matched / Math.max(1, queryTerms.length) + bonus);
107
+ }
108
+ // 递归收集常规文件,跳过点文件与写入中的 .tmp-*,受文件数/字节数上限约束。
109
+ // caps 可定制:检索路径用默认(读内容,需控内存);列举路径用更宽上限(仅 stat)。
110
+ function collectLocalFiles(dir, state, caps = {
111
+ maxFiles: LOCAL_MEMORY_MAX_FILES,
112
+ maxBytes: LOCAL_MEMORY_MAX_BYTES,
113
+ }) {
114
+ if (state.fileCount >= caps.maxFiles || state.byteCount >= caps.maxBytes) {
115
+ return;
116
+ }
117
+ let entries;
118
+ try {
119
+ entries = fs.readdirSync(dir, { withFileTypes: true });
120
+ }
121
+ catch {
122
+ return;
123
+ }
124
+ for (const entry of entries) {
125
+ if (state.fileCount >= caps.maxFiles || state.byteCount >= caps.maxBytes) {
126
+ break;
127
+ }
128
+ if (entry.name.startsWith(".") || entry.name.includes(".tmp-"))
129
+ continue;
130
+ const fullPath = path.join(dir, entry.name);
131
+ if (entry.isDirectory()) {
132
+ collectLocalFiles(fullPath, state, caps);
133
+ }
134
+ else if (entry.isFile()) {
135
+ let stat;
136
+ try {
137
+ stat = fs.statSync(fullPath);
138
+ }
139
+ catch {
140
+ continue;
141
+ }
142
+ if (state.byteCount + stat.size > caps.maxBytes)
143
+ continue;
144
+ state.files.push(fullPath);
145
+ state.fileCount += 1;
146
+ state.byteCount += stat.size;
147
+ }
148
+ }
149
+ }
150
+ /**
151
+ * 只在给定 scope 目录子树内做词法检索:每个文件按 10 行一个 block 切分,
152
+ * 按匹配词元比例打分取 top-K。绝不读取兄弟 scope 目录。
153
+ */
154
+ export function searchLocalMemories(opts) {
155
+ const query = opts.query?.trim() ?? "";
156
+ if (!query || query.length < (opts.minQueryLength ?? 0)) {
157
+ return { results: [], skipped: true };
158
+ }
159
+ if (!fs.existsSync(opts.scopeDir)) {
160
+ return { results: [], skipped: true };
161
+ }
162
+ const queryTerms = tokenizeQuery(query);
163
+ if (queryTerms.length === 0) {
164
+ return { results: [], skipped: true };
165
+ }
166
+ const topK = Math.max(1, Math.min(50, Math.trunc(opts.topK) || 1));
167
+ const state = { files: [], fileCount: 0, byteCount: 0 };
168
+ collectLocalFiles(opts.scopeDir, state);
169
+ const hits = [];
170
+ for (const filePath of state.files) {
171
+ let content;
172
+ try {
173
+ content = fs.readFileSync(filePath, "utf8");
174
+ }
175
+ catch {
176
+ continue;
177
+ }
178
+ const relPath = path.relative(opts.scopeDir, filePath);
179
+ const lines = content.split("\n");
180
+ for (let i = 0; i < lines.length; i += LOCAL_MEMORY_SNIPPET_LINES) {
181
+ const block = lines
182
+ .slice(i, i + LOCAL_MEMORY_SNIPPET_LINES)
183
+ .join("\n")
184
+ .trim();
185
+ if (!block)
186
+ continue;
187
+ const score = scoreSnippet(block, queryTerms, query);
188
+ if (score > 0) {
189
+ hits.push({ unit: { text: block, source: relPath }, score });
190
+ }
191
+ }
192
+ }
193
+ hits.sort((a, b) => b.score - a.score);
194
+ return { results: hits.slice(0, topK) };
195
+ }
196
+ /** 稳定排序(按 rel 路径)的 scope 目录文件列表;目录不存在返回空。 */
197
+ export function listLocalMemoryFiles(scopeDir) {
198
+ const state = { files: [], fileCount: 0, byteCount: 0 };
199
+ // 展示用:仅 stat 不读内容,用更宽的文件上限、不受字节上限约束,避免静默漏文件。
200
+ collectLocalFiles(scopeDir, state, {
201
+ maxFiles: LIST_MAX_FILES,
202
+ maxBytes: Number.POSITIVE_INFINITY,
203
+ });
204
+ const entries = [];
205
+ for (const filePath of state.files) {
206
+ let stat;
207
+ try {
208
+ stat = fs.statSync(filePath);
209
+ }
210
+ catch {
211
+ continue;
212
+ }
213
+ entries.push({
214
+ rel: path.relative(scopeDir, filePath).split(path.sep).join("/"),
215
+ size: stat.size,
216
+ mtimeMs: stat.mtimeMs,
217
+ });
218
+ }
219
+ entries.sort((a, b) => a.rel.localeCompare(b.rel));
220
+ return entries;
221
+ }
222
+ /**
223
+ * 把 `rel` 归一化到 `baseDir` 内的绝对路径,并拒绝越界(`..` / 绝对路径)。
224
+ * 读、写共用同一防穿越逻辑(避免异常对象名把文件写/读到 scope 目录之外)。
225
+ */
226
+ export function resolveWithinDir(baseDir, rel) {
227
+ const base = path.resolve(baseDir);
228
+ const target = path.resolve(base, rel);
229
+ if (target !== base && !target.startsWith(base + path.sep)) {
230
+ throw new Error(`path escapes the scope directory: ${rel}`);
231
+ }
232
+ return target;
233
+ }
234
+ /** 读取 scope 目录内单个文件;`rel` 归一化后必须仍在 scopeDir 内(防穿越)。 */
235
+ export function readLocalMemoryFile(scopeDir, rel) {
236
+ return fs.readFileSync(resolveWithinDir(scopeDir, rel), "utf8");
237
+ }
238
+ function normalizeEtag(etag) {
239
+ return String(etag ?? "")
240
+ .replace(/"/g, "")
241
+ .toLowerCase();
242
+ }
243
+ /**
244
+ * 纯 diff:远端 `[{rel, etag}]`(etag = 单次 PutObject 投影的 md5 hex)对比
245
+ * 本地 md5 Map,决定下载(新增/变更)与删除(孤儿)。
246
+ */
247
+ export function planSync(remote, localMd5, { pruneOrphans = true } = {}) {
248
+ const remoteRel = new Set();
249
+ const toDownload = [];
250
+ for (const obj of remote) {
251
+ remoteRel.add(obj.rel);
252
+ const local = localMd5.get(obj.rel);
253
+ if (!local || local !== normalizeEtag(obj.etag))
254
+ toDownload.push(obj.rel);
255
+ }
256
+ const toDelete = [];
257
+ if (pruneOrphans) {
258
+ for (const rel of localMd5.keys()) {
259
+ if (!remoteRel.has(rel))
260
+ toDelete.push(rel);
261
+ }
262
+ }
263
+ return { toDownload, toDelete };
264
+ }
265
+ function readLocalMd5(dir) {
266
+ const map = new Map();
267
+ const walk = (d, rel) => {
268
+ let entries;
269
+ try {
270
+ entries = fs.readdirSync(d, { withFileTypes: true });
271
+ }
272
+ catch {
273
+ return;
274
+ }
275
+ for (const e of entries) {
276
+ if (e.name.startsWith(".") || e.name.includes(".tmp-"))
277
+ continue;
278
+ const full = path.join(d, e.name);
279
+ const r = rel ? `${rel}/${e.name}` : e.name;
280
+ if (e.isDirectory()) {
281
+ walk(full, r);
282
+ }
283
+ else if (e.isFile()) {
284
+ try {
285
+ map.set(r, crypto
286
+ .createHash("md5")
287
+ .update(fs.readFileSync(full))
288
+ .digest("hex"));
289
+ }
290
+ catch {
291
+ // 不可读文件视作缺失,让它重新下载
292
+ }
293
+ }
294
+ }
295
+ };
296
+ walk(dir, "");
297
+ return map;
298
+ }
299
+ let mountTmpCounter = 0;
300
+ // 先写 .tmp-* 再 rename 的原子写;目录 0700、文件 0600(与 openclaw 一致)。
301
+ function atomicWriteFile(dest, content) {
302
+ const dir = path.dirname(dest);
303
+ fs.mkdirSync(dir, { recursive: true, mode: 0o700 });
304
+ mountTmpCounter += 1;
305
+ const tmp = path.join(dir, `.tmp-${process.pid}-${mountTmpCounter}`);
306
+ fs.writeFileSync(tmp, content, { mode: 0o600 });
307
+ fs.renameSync(tmp, dest);
308
+ }
309
+ // 默认工厂:用 STS 临时凭证构造只读 ali-oss 客户端。动态 import 保证纯本地
310
+ // 操作(tree/cat)不加载 ali-oss。
311
+ const defaultOssClientFactory = async (target, cred) => {
312
+ const mod = (await import("ali-oss"));
313
+ const OSS = (mod.default ?? mod);
314
+ const opts = {
315
+ accessKeyId: cred.accessKeyId,
316
+ accessKeySecret: cred.accessKeySecret,
317
+ stsToken: cred.securityToken,
318
+ bucket: target.bucket,
319
+ secure: true,
320
+ };
321
+ if (target.ossEndpoint?.trim()) {
322
+ opts.endpoint = target.ossEndpoint;
323
+ }
324
+ else if (target.region?.trim()) {
325
+ opts.region = target.region.startsWith("oss-")
326
+ ? target.region
327
+ : `oss-${target.region}`;
328
+ }
329
+ return new OSS(opts);
330
+ };
331
+ async function ossListAll(ossClient, prefix) {
332
+ const out = [];
333
+ let marker;
334
+ for (let guard = 0; guard < 1000; guard += 1) {
335
+ const res = await ossClient.list({ prefix, "max-keys": 1000, marker }, {});
336
+ for (const o of res?.objects ?? []) {
337
+ if (typeof o.name !== "string" || o.name.endsWith("/"))
338
+ continue;
339
+ out.push({ rel: o.name.slice(prefix.length), etag: o.etag ?? "" });
340
+ }
341
+ if (!res?.isTruncated)
342
+ break;
343
+ marker = res.nextMarker;
344
+ if (!marker)
345
+ break;
346
+ }
347
+ return out;
348
+ }
349
+ // 单飞键按 (store, app, tenant) —— 与本地镜像目录同粒度(user 级),使同一用户
350
+ // 不同会话的并发同步共享一次。
351
+ function mountScopeKey(storeName, scope) {
352
+ return [storeName, scope.appId, scope.tenantId].join(" ");
353
+ }
354
+ // per-(store,scope) 单飞:并发调用共享同一次同步,避免互相覆盖临时文件。
355
+ const mountInflight = new Map();
356
+ /**
357
+ * 同步一个 scope 的 OSS 投影到本地镜像目录(openclaw syncScopeOnce 同款):
358
+ * AuthorizeMemoryMount(每次重新签发 STS,不落盘)→ 分页列举 → ETag diff →
359
+ * 原子写下载 + 删孤儿。
360
+ *
361
+ * 失败语义:授权/列举阶段失败时本地副本完全不动(返回 `{ok:false, error}`);
362
+ * 下载阶段逐文件原子写,若中途某文件失败则中止并返回 `{ok:false}`,此时本地为
363
+ * **部分更新**(已写入的新文件保留、未处理的孤儿未删)——下次同步会按 ETag diff
364
+ * 自愈。
365
+ */
366
+ export async function syncMemoryMount(opts) {
367
+ // authorizeMount 收到真实(未聚合)scope——服务端自行聚合到投影粒度并返回对应
368
+ // OSS 前缀。本地镜像目录/单飞键按 app/tenant(user 粒度),使同一用户不同
369
+ // 会话共享同一份本地副本。
370
+ const scope = normalizeMountScope(opts.scope);
371
+ const scopeDir = fileMemoryScopeDir(opts.localRoot, scope);
372
+ const key = mountScopeKey(opts.memoryStoreName, scope);
373
+ const inflight = mountInflight.get(key);
374
+ if (inflight)
375
+ return inflight;
376
+ const run = (async () => {
377
+ const response = await opts.authorizeMount({
378
+ memoryStoreName: opts.memoryStoreName,
379
+ scope,
380
+ ...(opts.ttlSeconds ? { ttlSeconds: opts.ttlSeconds } : {}),
381
+ });
382
+ if (response.code !== "SUCCESS") {
383
+ throw new Error(response.message || `AuthorizeMemoryMount failed (${response.code})`);
384
+ }
385
+ const target = (response.data ?? {});
386
+ const cred = target.credentials ?? {};
387
+ if (!target.bucket ||
388
+ !target.prefix ||
389
+ !cred.accessKeyId ||
390
+ !cred.accessKeySecret) {
391
+ throw new Error("AuthorizeMemoryMount returned an incomplete mount target");
392
+ }
393
+ const factory = opts.ossClientFactory ?? defaultOssClientFactory;
394
+ const ossClient = await factory({
395
+ ossEndpoint: target.ossEndpoint,
396
+ region: target.region,
397
+ bucket: target.bucket,
398
+ }, {
399
+ accessKeyId: cred.accessKeyId,
400
+ accessKeySecret: cred.accessKeySecret,
401
+ securityToken: cred.securityToken,
402
+ expiration: cred.expiration,
403
+ });
404
+ const remote = await ossListAll(ossClient, target.prefix);
405
+ fs.mkdirSync(scopeDir, { recursive: true, mode: 0o700 });
406
+ const localMd5 = readLocalMd5(scopeDir);
407
+ const plan = planSync(remote, localMd5, {
408
+ pruneOrphans: opts.pruneOrphans ?? true,
409
+ });
410
+ // 有并发上限的批量下载:文件相互独立,串行会随文件数线性变慢,且大 scope 有
411
+ // 在 STS 临时凭证过期前下不完的风险。每个 rel 写入前用 resolveWithinDir 校验,
412
+ // 防止异常对象名(含 `..`)写到 scope 目录之外。
413
+ for (let i = 0; i < plan.toDownload.length; i += MOUNT_DOWNLOAD_CONCURRENCY) {
414
+ const batch = plan.toDownload.slice(i, i + MOUNT_DOWNLOAD_CONCURRENCY);
415
+ await Promise.all(batch.map(async (rel) => {
416
+ const dest = resolveWithinDir(scopeDir, rel);
417
+ const res = await ossClient.get(target.prefix + rel);
418
+ atomicWriteFile(dest, res.content);
419
+ }));
420
+ }
421
+ for (const rel of plan.toDelete) {
422
+ try {
423
+ fs.unlinkSync(resolveWithinDir(scopeDir, rel));
424
+ }
425
+ catch {
426
+ // 已不存在或越界(越界的孤儿不删,交由上层排查)
427
+ }
428
+ }
429
+ return {
430
+ ok: true,
431
+ scopeDir,
432
+ downloaded: plan.toDownload.length,
433
+ deleted: plan.toDelete.length,
434
+ total: remote.length,
435
+ };
436
+ })()
437
+ .catch((error) => ({
438
+ ok: false,
439
+ scopeDir,
440
+ downloaded: 0,
441
+ deleted: 0,
442
+ total: 0,
443
+ error: error instanceof Error ? error.message : String(error),
444
+ }))
445
+ .finally(() => {
446
+ mountInflight.delete(key);
447
+ });
448
+ mountInflight.set(key, run);
449
+ return run;
450
+ }
451
+ //# sourceMappingURL=file-memory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-memory.js","sourceRoot":"","sources":["../src/file-memory.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AAmBjE,MAAM,mBAAmB,GAAG,aAAa,CAAC;AAC1C,MAAM,sBAAsB,GAAG,GAAG,CAAC;AACnC,MAAM,sBAAsB,GAAG,CAAC,GAAG,IAAI,GAAG,IAAI,CAA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