@tablestore/tablestore-agent-cli 0.2.7 → 0.2.9
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.
- package/dist/commands/configure.d.ts.map +1 -1
- package/dist/commands/configure.js +19 -12
- package/dist/commands/configure.js.map +1 -1
- package/dist/commands/dashboard.d.ts.map +1 -1
- package/dist/commands/dashboard.js +12 -5
- package/dist/commands/dashboard.js.map +1 -1
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +212 -61
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/kb/create.d.ts.map +1 -1
- package/dist/commands/kb/create.js.map +1 -1
- package/dist/commands/kb/doc-add.d.ts.map +1 -1
- package/dist/commands/kb/doc-add.js +3 -1
- package/dist/commands/kb/doc-add.js.map +1 -1
- package/dist/commands/kb/doc-get.d.ts.map +1 -1
- package/dist/commands/kb/doc-get.js +6 -2
- package/dist/commands/kb/doc-get.js.map +1 -1
- package/dist/commands/kb/doc-remove.d.ts.map +1 -1
- package/dist/commands/kb/doc-remove.js.map +1 -1
- package/dist/commands/kb/helpers.d.ts.map +1 -1
- package/dist/commands/kb/helpers.js.map +1 -1
- package/dist/commands/kb/retrieve.d.ts.map +1 -1
- package/dist/commands/kb/retrieve.js +3 -1
- package/dist/commands/kb/retrieve.js.map +1 -1
- package/dist/commands/memory.d.ts.map +1 -1
- package/dist/commands/memory.js +209 -23
- package/dist/commands/memory.js.map +1 -1
- package/dist/dashboard-runtime/dashboard/.next/BUILD_ID +1 -1
- package/dist/dashboard-runtime/dashboard/.next/app-path-routes-manifest.json +4 -0
- package/dist/dashboard-runtime/dashboard/.next/build-manifest.json +3 -3
- package/dist/dashboard-runtime/dashboard/.next/prerender-manifest.json +3 -3
- package/dist/dashboard-runtime/dashboard/.next/routes-manifest.json +32 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/api-keys/page.js +3 -3
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/api-keys/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/api-keys/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/chat/page.js +3 -3
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/chat/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/chat/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/documents/page.js +3 -3
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/documents/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/documents/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/page.js +3 -3
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/qa/page.js +3 -3
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/qa/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/qa/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/retrieval/page.js +3 -3
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/retrieval/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/retrieval/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/settings/page.js +3 -3
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/settings/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/settings/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/create/page.js +3 -3
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/create/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/create/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/page.js +3 -3
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/[id]/page.js +3 -3
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/[id]/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/[id]/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/new/page.js +4 -4
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/new/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/new/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/page.js +3 -3
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/dream/[dreamId]/page.js +3 -3
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/dream/[dreamId]/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/dream/[dreamId]/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/dream/page.js +3 -3
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/dream/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/dream/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/messages/page.js +3 -3
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/messages/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/messages/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/page.js +3 -3
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/requests/page.js +3 -3
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/requests/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/requests/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/search/page.js +3 -3
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/search/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/search/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/settings/page.js +3 -3
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/settings/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/settings/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/tasks/page.js +3 -3
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/tasks/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/tasks/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/units/page.js +3 -3
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/units/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/units/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/create/page.js +3 -3
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/create/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/create/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/page.js +3 -3
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/projects/page.js +3 -3
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/projects/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/projects/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.html +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.rsc +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found/page.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.html +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.rsc +24 -20
- package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_full.segment.rsc +24 -20
- package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_head.segment.rsc +3 -3
- package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_index.segment.rsc +11 -10
- package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +8 -5
- package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_not-found.segment.rsc +3 -3
- package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/[id]/custom-policy/route.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/[id]/custom-policy/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/[id]/effective-permissions/route.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/[id]/effective-permissions/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/[id]/policies/route.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/[id]/policies/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/[id]/route.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/[id]/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/filter-by-permission/route.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/filter-by-permission/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/route.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/auth/status/route.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/auth/status/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/auth/token/route.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/auth/token/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/route.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/token/route.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/token/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/use/route.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/use/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/route.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/chunks/route.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/chunks/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/[docId]/chunks/route.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/[docId]/chunks/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/[docId]/route.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/[docId]/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/route.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/upload/route.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/upload/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/retrieve/route.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/retrieve/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/route.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/route.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/chat/route.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/chat/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/models/route.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/models/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/route.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/test/route.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/test/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/route.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/logs/client/route.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/logs/client/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-kb-sync/route/app-paths-manifest.json +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-kb-sync/route/build-manifest.json +9 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-kb-sync/route/server-reference-manifest.json +4 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-kb-sync/route.js +6 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-kb-sync/route.js.map +5 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-kb-sync/route.js.nft.json +1 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-kb-sync/route_client-reference-manifest.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-tasks/[dreamId]/actions/apply/route.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-tasks/[dreamId]/actions/apply/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-tasks/[dreamId]/actions/route.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-tasks/[dreamId]/actions/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-tasks/[dreamId]/cancel/route.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-tasks/[dreamId]/cancel/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-tasks/[dreamId]/route.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-tasks/[dreamId]/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-tasks/route.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-tasks/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/file/route/app-paths-manifest.json +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/file/route/build-manifest.json +9 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/file/route/server-reference-manifest.json +4 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/file/route.js +6 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/file/route.js.map +5 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/file/route.js.nft.json +1 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/file/route_client-reference-manifest.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/sync/route/app-paths-manifest.json +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/sync/route/build-manifest.json +9 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/sync/route/server-reference-manifest.json +4 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/sync/route.js +6 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/sync/route.js.map +5 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/sync/route.js.nft.json +1 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/sync/route_client-reference-manifest.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/tree/route/app-paths-manifest.json +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/tree/route/build-manifest.json +9 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/tree/route/server-reference-manifest.json +4 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/tree/route.js +6 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/tree/route.js.map +5 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/tree/route.js.nft.json +1 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/tree/route_client-reference-manifest.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/messages/route.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/messages/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/requests/route.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/requests/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/route.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/scopes/route.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/scopes/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/search/route.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/search/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/tasks/[requestId]/route.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/tasks/[requestId]/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/tasks/route.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/tasks/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/units/[memoryId]/route.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/units/[memoryId]/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/units/route.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/units/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/route.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/oss/list/route.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/oss/list/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/runtime/context/route.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/runtime/context/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/index.html +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/index.rsc +20 -19
- package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/_full.segment.rsc +20 -19
- package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/_head.segment.rsc +3 -3
- package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/_index.segment.rsc +11 -10
- package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding/page.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.html +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.rsc +24 -23
- package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/_full.segment.rsc +24 -23
- package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/_head.segment.rsc +3 -3
- package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/_index.segment.rsc +11 -10
- package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/_tree.segment.rsc +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/onboarding/__PAGE__.segment.rsc +4 -4
- package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/onboarding.segment.rsc +4 -4
- package/dist/dashboard-runtime/dashboard/.next/server/app/page.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app-paths-manifest.json +4 -0
- 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
- 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
- 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
- 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
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/0p91_next_dist_esm_build_templates_app-route_0n~ec7s.js +13 -5
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0-3~.bv._.js +14 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0-dt7~s._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0.-~ff4._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0.l706t._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0.nejw_._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__00_mrad._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__00i.7se._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__00r7uqs._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__02~yw7n._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__04kpzpa._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__04p1a88._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__05x0k4d._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__060s~oe._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__06fanvv._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__06tci88._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/{[root-of-the-server]__10k~3sa._.js → [root-of-the-server]__089es3y._.js} +12 -12
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__08bzgzm._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__08d7wb.._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__08p_m_c._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__095xiwn._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__09h95i6._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/{[root-of-the-server]__0.y01v.._.js → [root-of-the-server]__0ai2k_o._.js} +13 -13
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0alcygi._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0aspytx._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0cq-9s~._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0cyiuai._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0d4zrpj._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0d~m09k._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0f1lugp._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/{[root-of-the-server]__0wa~r66._.js → [root-of-the-server]__0g1cfb7._.js} +12 -12
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0gpz.~y._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0i3u9x3._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0iromt6._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0j8.u0y._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0k-pfaj._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0kcbz7k._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0nrl-.g._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0o5mf4h._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0omyr40._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0ty8jgt._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0ug_2kc._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0v98i9~._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0wt0ksb._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0ya_8d2._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0zfg-ml._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0~9ru5n._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0~f7ckz._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__109i6ps._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__10o5zq5._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__12ls5l8._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/0b1r_app_(dashboard)_knowledge-base_[name]_documents_documents-client_tsx_0g2uxmt._.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/0e95_src_app_(dashboard)_knowledge-base_[name]_settings_settings-client_tsx_13312zk._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/0w-2_lucide-react_dist_esm_icons_0h-3_0x._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__01sm7cj._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0k0es2c._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0ky8i.~._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0ocsrt0._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0ys4x_n._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_002mc1c._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_02waf76._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_03z8zmx._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_04f2u4t._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_06ny.4k._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0_1_-hn._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0_er4j0._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0ahm789._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0brqbty._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0e.ehti._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0f8moq0._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0f8yv4v._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0frs8ys._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0fvg_xo._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0gbt~hy._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0gl7kh7._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0h9c.8m._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0ip4ncy._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0izjcsk._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0j.62sb._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0ka7ryb._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0lo5ra0._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0mdbcju._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0o665bf._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0odjvc.._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0p_s55v._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0qiamjd._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0t.h859._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0xdioxg._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0xp94lc._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_11fl7_r._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_13730cz._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/{_06894o_._.js → _13ctfae._.js} +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_00.1.s_._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_04o7mfc._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0bhjp9s._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0grv2wq._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0qlyj-q._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/{dashboard_src_0o9jhcn._.js → dashboard_src_0sn17ku._.js} +4 -4
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0x60pxf._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0y49vhd._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_10dsqx~._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_api-keys_page_tsx_0lb6fu7._.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_knowledge-base_[name]_error_tsx_0rnss~4._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_knowledge-base_create_page_tsx_0916~g-._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_memory_[store]_dream_[dreamId]_page_tsx_0wy3tv6._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_memory_[store]_dream_page_tsx_0uzzpvs._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_memory_[store]_layout_tsx_0rbi41w._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_memory_[store]_messages_page_tsx_0votz-n._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_memory_[store]_tasks_page_tsx_0a_bgx4._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_memory_[store]_units_page_tsx_0.6xnei._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_error_tsx_01x7ppm._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_not-found_tsx_05z4mh~._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_components_retrieval_02c2uck._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_components_shared_relative-time_tsx_0b7s9rc._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_i18n_i18n-context_tsx_0c39ewr._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_providers_runtime-context-provider_tsx_0wmj66z._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/node_modules__pnpm_00usyu3._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/functions-config-manifest.json +4 -0
- package/dist/dashboard-runtime/dashboard/.next/server/middleware-build-manifest.js +3 -3
- package/dist/dashboard-runtime/dashboard/.next/server/pages/404.html +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/pages/500.html +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/server-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/server-reference-manifest.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0--dupndun7xc.css +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0.uxk~hsm6yi8.js +138 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/00eggrx~.4c55.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/00lvoeu_v3253.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/00o9vmhspv._3.js +138 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/00x1.t633f041.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/010bpq~3ntjcm.js +4 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/02p7gke47s.2~.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/02u9ocsl0a12t.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/03_t1t9j7dbax.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/03dth-av1gl-h.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/07aczaljq.qvr.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/07s0f6938um2v.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/08nzc9sye_0~h.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/09y30vyml4r.b.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0ab~fpog2~u.h.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0au0pbejtwahz.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0b-ei8-g7ceug.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0chiv044h3u58.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0fcdli-~wmvvx.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0fz_9~-rxluly.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0hqkctymrrnbk.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0i55cqygnl-a9.js +5 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0j8p7vk~awgs..js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0j_.hkhjix9hw.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0ll488v66ycn1.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/{0823z0-i-vkzj.js → 0l~3_bvic.da3.js} +1 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0mp0n~dtbg78r.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0naliud7av3p1.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0nvwdxs-j_2ld.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0opbuui_pt1n1.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0pbfl~23ac79y.js +9 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0qwhis4t32vlg.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/{0_2i27ja0f5u_.js → 0r44f~_t6m0hu.js} +1 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0vuh8jgeqqdy..js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/{11daw7hfc5lbv.js → 0wbevjtr1_grz.js} +1 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0y-gjpq3kxsbz.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0z_pq4ttgotxw.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0zatcw.k613lh.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0~a4ig2x9z8uq.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/10i~m4_8ainxw.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/12535rmhzbk63.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/{11islg2md6lj-.js → 13uk2uuzuop5e.js} +1 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/13vd4hv~l95-c.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/16.2aecdwo6w_.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/16yu0g~7n~33c.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/17fx3e0sj7h7s.js +1 -0
- package/dist/dashboard-runtime/dashboard/next.config.ts +1 -5
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/api-keys/page.tsx +28 -18
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/chat/error.tsx +5 -3
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/chat/page.tsx +188 -19
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/error.tsx +8 -5
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/knowledge-base/[name]/documents/documents-client.tsx +85 -45
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/knowledge-base/[name]/error.tsx +12 -7
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/knowledge-base/[name]/layout-client.tsx +67 -29
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/knowledge-base/[name]/qa/page.tsx +2 -1
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/knowledge-base/[name]/retrieval/retrieval-client.tsx +8 -4
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/knowledge-base/[name]/settings/settings-client.tsx +6 -3
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/knowledge-base/create/page.tsx +5 -3
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/knowledge-base/page.tsx +6 -4
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/layout.tsx +15 -19
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/llm-providers/[id]/page.tsx +4 -2
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/llm-providers/error.tsx +6 -3
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/llm-providers/new/page.tsx +6 -2
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/llm-providers/page.tsx +8 -6
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/dream/[dreamId]/page.tsx +112 -49
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/dream/page.tsx +300 -133
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/layout.tsx +48 -32
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/messages/_helpers.ts +16 -5
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/messages/message-bubble.tsx +3 -1
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/messages/page.tsx +47 -17
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/messages/time-filter-bar.tsx +15 -13
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/requests/_helpers.ts +20 -29
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/requests/page.tsx +121 -42
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/requests/request-detail-dialog.tsx +37 -17
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/requests/requests-search-bar.tsx +11 -6
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/requests/requests-table.tsx +29 -9
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/search/page.tsx +13 -4
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/settings/page.tsx +21 -29
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/tasks/page.tsx +20 -15
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/units/page.tsx +355 -125
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/create/page.tsx +5 -3
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/error.tsx +5 -3
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/page.tsx +6 -4
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/projects/error.tsx +6 -3
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/projects/page.tsx +18 -13
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/api-keys/[id]/custom-policy/route.ts +1 -3
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/api-keys/[id]/effective-permissions/route.ts +45 -17
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/api-keys/[id]/policies/route.ts +0 -8
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/api-keys/[id]/route.ts +3 -1
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/api-keys/filter-by-permission/route.ts +21 -10
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/api-keys/route.ts +20 -6
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/instances/[name]/route.ts +10 -5
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/instances/[name]/token/route.ts +1 -0
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/instances/[name]/use/route.ts +2 -2
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/instances/route.ts +6 -5
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/knowledge-bases/[name]/chunks/route.ts +4 -1
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/knowledge-bases/[name]/documents/[docId]/route.ts +5 -1
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/knowledge-bases/[name]/documents/route.ts +8 -2
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/knowledge-bases/[name]/documents/upload/route.ts +7 -2
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/llm/chat/file-memory-helpers.ts +93 -0
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/llm/chat/route.ts +152 -64
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/llm/providers/route.ts +1 -4
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/logs/client/route.ts +30 -13
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/dream-kb-sync/route.ts +78 -0
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/dream-tasks/[dreamId]/actions/route.ts +2 -1
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/dream-tasks/route.ts +2 -1
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/file-memory/_helpers.ts +42 -0
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/file-memory/file/route.ts +69 -0
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/file-memory/sync/route.ts +69 -0
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/file-memory/tree/route.ts +44 -0
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/scopes/route.ts +3 -5
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/tasks/route.ts +2 -1
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/units/route.ts +4 -1
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/route.ts +30 -7
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/oss/list/route.ts +11 -3
- package/dist/dashboard-runtime/dashboard/src/app/error.tsx +17 -16
- package/dist/dashboard-runtime/dashboard/src/app/globals.css +63 -23
- package/dist/dashboard-runtime/dashboard/src/app/layout.tsx +17 -14
- package/dist/dashboard-runtime/dashboard/src/app/not-found.tsx +12 -4
- package/dist/dashboard-runtime/dashboard/src/app/onboarding/error.tsx +8 -4
- package/dist/dashboard-runtime/dashboard/src/app/onboarding/page.tsx +7 -8
- package/dist/dashboard-runtime/dashboard/src/components/api-keys/api-key-create-dialog.tsx +42 -19
- package/dist/dashboard-runtime/dashboard/src/components/api-keys/api-key-delete-dialog.tsx +32 -14
- package/dist/dashboard-runtime/dashboard/src/components/api-keys/api-key-detail-sheet.tsx +23 -18
- package/dist/dashboard-runtime/dashboard/src/components/api-keys/api-key-permission-filter.tsx +42 -35
- package/dist/dashboard-runtime/dashboard/src/components/api-keys/api-key-secret-revealed-dialog.tsx +22 -19
- package/dist/dashboard-runtime/dashboard/src/components/api-keys/api-key-table.tsx +58 -23
- package/dist/dashboard-runtime/dashboard/src/components/api-keys/bearer-token-toggle.tsx +13 -8
- package/dist/dashboard-runtime/dashboard/src/components/api-keys/custom-policy-editor.tsx +43 -20
- package/dist/dashboard-runtime/dashboard/src/components/api-keys/permission-overview.tsx +19 -8
- package/dist/dashboard-runtime/dashboard/src/components/api-keys/permission-presets.tsx +37 -17
- package/dist/dashboard-runtime/dashboard/src/components/api-keys/permission-rule-dialog.tsx +99 -58
- package/dist/dashboard-runtime/dashboard/src/components/chat/add-mount-row.tsx +3 -1
- package/dist/dashboard-runtime/dashboard/src/components/chat/chat-config-context.tsx +30 -9
- package/dist/dashboard-runtime/dashboard/src/components/chat/chat-history-sidebar.tsx +13 -10
- package/dist/dashboard-runtime/dashboard/src/components/chat/chat-mount-config.tsx +28 -21
- package/dist/dashboard-runtime/dashboard/src/components/chat/memory-bind-section.tsx +221 -41
- package/dist/dashboard-runtime/dashboard/src/components/chat/memory-files-dialog.tsx +51 -0
- package/dist/dashboard-runtime/dashboard/src/components/chat/mount-empty-state.tsx +12 -8
- package/dist/dashboard-runtime/dashboard/src/components/chat/mount-picker.tsx +4 -2
- package/dist/dashboard-runtime/dashboard/src/components/chat/mount-retrieval-dialog.tsx +31 -15
- package/dist/dashboard-runtime/dashboard/src/components/chat/mount-row.tsx +9 -3
- package/dist/dashboard-runtime/dashboard/src/components/chat/unified-retrieval-section.tsx +14 -6
- package/dist/dashboard-runtime/dashboard/src/components/documents/doc-chunks-dialog.tsx +215 -126
- package/dist/dashboard-runtime/dashboard/src/components/documents/doc-columns.tsx +22 -13
- package/dist/dashboard-runtime/dashboard/src/components/documents/doc-detail-panel.tsx +56 -27
- package/dist/dashboard-runtime/dashboard/src/components/documents/doc-status-badge.tsx +8 -13
- package/dist/dashboard-runtime/dashboard/src/components/documents/doc-table.tsx +9 -7
- package/dist/dashboard-runtime/dashboard/src/components/documents/doc-toolbar.tsx +17 -18
- package/dist/dashboard-runtime/dashboard/src/components/documents/doc-upload-dialog.tsx +308 -181
- package/dist/dashboard-runtime/dashboard/src/components/documents/oss-browser.tsx +32 -16
- package/dist/dashboard-runtime/dashboard/src/components/documents/oss-import-tab.tsx +39 -14
- package/dist/dashboard-runtime/dashboard/src/components/home/home-empty-state.tsx +10 -6
- package/dist/dashboard-runtime/dashboard/src/components/home/home-hero.tsx +10 -6
- package/dist/dashboard-runtime/dashboard/src/components/instance/connect-instance-dialog.tsx +5 -6
- package/dist/dashboard-runtime/dashboard/src/components/instance/connect-instance-form.tsx +204 -64
- package/dist/dashboard-runtime/dashboard/src/components/instance/edit-instance-dialog.tsx +19 -5
- package/dist/dashboard-runtime/dashboard/src/components/instance/project-card.tsx +13 -7
- package/dist/dashboard-runtime/dashboard/src/components/knowledge-base/embedding-config-form.tsx +52 -19
- package/dist/dashboard-runtime/dashboard/src/components/knowledge-base/kb-card.tsx +138 -102
- package/dist/dashboard-runtime/dashboard/src/components/knowledge-base/kb-create-form.tsx +180 -73
- package/dist/dashboard-runtime/dashboard/src/components/knowledge-base/kb-delete-dialog.tsx +28 -12
- package/dist/dashboard-runtime/dashboard/src/components/knowledge-base/kb-list.tsx +12 -10
- package/dist/dashboard-runtime/dashboard/src/components/knowledge-base/kb-settings-form.tsx +180 -78
- package/dist/dashboard-runtime/dashboard/src/components/knowledge-base/retrieval-result-count-field.tsx +12 -7
- package/dist/dashboard-runtime/dashboard/src/components/knowledge-base/subspace-gate.tsx +11 -7
- package/dist/dashboard-runtime/dashboard/src/components/knowledge-base/subspace-switcher.tsx +16 -8
- package/dist/dashboard-runtime/dashboard/src/components/layout/detail-sidebar.tsx +15 -17
- package/dist/dashboard-runtime/dashboard/src/components/layout/help-link.tsx +32 -32
- package/dist/dashboard-runtime/dashboard/src/components/layout/instance-switcher.tsx +9 -5
- package/dist/dashboard-runtime/dashboard/src/components/layout/language-toggle.tsx +71 -0
- package/dist/dashboard-runtime/dashboard/src/components/layout/nav-link.tsx +8 -10
- package/dist/dashboard-runtime/dashboard/src/components/layout/page-header.tsx +26 -31
- package/dist/dashboard-runtime/dashboard/src/components/layout/sidebar-instance-card.tsx +24 -9
- package/dist/dashboard-runtime/dashboard/src/components/layout/sidebar-item.tsx +11 -5
- package/dist/dashboard-runtime/dashboard/src/components/layout/sidebar-mobile.tsx +16 -7
- package/dist/dashboard-runtime/dashboard/src/components/layout/sidebar-usage-stats.tsx +4 -2
- package/dist/dashboard-runtime/dashboard/src/components/layout/sidebar.tsx +13 -9
- package/dist/dashboard-runtime/dashboard/src/components/layout/skip-to-content.tsx +21 -0
- package/dist/dashboard-runtime/dashboard/src/components/layout/theme-toggle.tsx +65 -144
- package/dist/dashboard-runtime/dashboard/src/components/llm-providers/llm-provider-card.tsx +35 -18
- package/dist/dashboard-runtime/dashboard/src/components/llm-providers/llm-provider-delete-dialog.tsx +20 -8
- package/dist/dashboard-runtime/dashboard/src/components/llm-providers/llm-provider-form.tsx +139 -67
- package/dist/dashboard-runtime/dashboard/src/components/memory/memory-add-dialog.tsx +15 -11
- package/dist/dashboard-runtime/dashboard/src/components/memory/memory-coming-soon.tsx +7 -3
- package/dist/dashboard-runtime/dashboard/src/components/memory/memory-create-form.tsx +179 -43
- package/dist/dashboard-runtime/dashboard/src/components/memory/memory-delete-dialog.tsx +12 -6
- package/dist/dashboard-runtime/dashboard/src/components/memory/memory-dream-actions-table.tsx +212 -88
- package/dist/dashboard-runtime/dashboard/src/components/memory/memory-dream-apply-confirm-dialog.tsx +14 -8
- package/dist/dashboard-runtime/dashboard/src/components/memory/memory-dream-create-dialog.tsx +222 -84
- package/dist/dashboard-runtime/dashboard/src/components/memory/memory-dream-disabled.tsx +10 -4
- package/dist/dashboard-runtime/dashboard/src/components/memory/memory-edit-dialog.tsx +21 -11
- package/dist/dashboard-runtime/dashboard/src/components/memory/memory-files-browser.tsx +225 -0
- package/dist/dashboard-runtime/dashboard/src/components/memory/memory-messages-table.tsx +28 -24
- package/dist/dashboard-runtime/dashboard/src/components/memory/memory-requests-table.tsx +122 -58
- package/dist/dashboard-runtime/dashboard/src/components/memory/memory-scope-bar.tsx +63 -28
- package/dist/dashboard-runtime/dashboard/src/components/memory/memory-search-form.tsx +32 -19
- package/dist/dashboard-runtime/dashboard/src/components/memory/memory-search-results.tsx +60 -29
- package/dist/dashboard-runtime/dashboard/src/components/memory/memory-settings-form.tsx +63 -26
- package/dist/dashboard-runtime/dashboard/src/components/memory/memory-store-card.tsx +34 -15
- package/dist/dashboard-runtime/dashboard/src/components/memory/memory-store-list.tsx +19 -13
- package/dist/dashboard-runtime/dashboard/src/components/memory/memory-tasks-table.tsx +84 -46
- package/dist/dashboard-runtime/dashboard/src/components/memory/memory-unit-detail-panel.tsx +37 -14
- package/dist/dashboard-runtime/dashboard/src/components/memory/memory-unit-table.tsx +54 -30
- package/dist/dashboard-runtime/dashboard/src/components/memory/scope-combobox.tsx +148 -0
- package/dist/dashboard-runtime/dashboard/src/components/qa/code-block.tsx +5 -3
- package/dist/dashboard-runtime/dashboard/src/components/qa/qa-chat-panel.tsx +51 -15
- package/dist/dashboard-runtime/dashboard/src/components/qa/qa-form.tsx +29 -16
- package/dist/dashboard-runtime/dashboard/src/components/qa/qa-message.tsx +268 -66
- package/dist/dashboard-runtime/dashboard/src/components/retrieval/assemble-retrieval-configuration.ts +6 -2
- package/dist/dashboard-runtime/dashboard/src/components/retrieval/filter-builder.tsx +260 -87
- package/dist/dashboard-runtime/dashboard/src/components/retrieval/request-preview.tsx +10 -4
- package/dist/dashboard-runtime/dashboard/src/components/retrieval/retrieval-form.tsx +56 -35
- package/dist/dashboard-runtime/dashboard/src/components/retrieval/retrieval-params-fields.tsx +40 -27
- package/dist/dashboard-runtime/dashboard/src/components/retrieval/retrieval-rerank-fields.tsx +80 -30
- package/dist/dashboard-runtime/dashboard/src/components/retrieval/retrieval-result-card.tsx +16 -5
- package/dist/dashboard-runtime/dashboard/src/components/retrieval/retrieval-results.tsx +11 -8
- package/dist/dashboard-runtime/dashboard/src/components/shared/confirm-dialog.tsx +11 -8
- package/dist/dashboard-runtime/dashboard/src/components/shared/data-table/data-table-pagination.tsx +21 -7
- package/dist/dashboard-runtime/dashboard/src/components/shared/data-table/data-table-toolbar.tsx +1 -2
- package/dist/dashboard-runtime/dashboard/src/components/shared/data-table/data-table.tsx +24 -9
- package/dist/dashboard-runtime/dashboard/src/components/shared/empty-state.tsx +1 -4
- package/dist/dashboard-runtime/dashboard/src/components/shared/error-state.tsx +1 -3
- package/dist/dashboard-runtime/dashboard/src/components/shared/json-viewer.tsx +1 -2
- package/dist/dashboard-runtime/dashboard/src/components/shared/llm-model-selector.tsx +22 -17
- package/dist/dashboard-runtime/dashboard/src/components/shared/metadata-field-input.tsx +10 -2
- package/dist/dashboard-runtime/dashboard/src/components/shared/metadata-form.tsx +10 -7
- package/dist/dashboard-runtime/dashboard/src/components/shared/refresh-button.tsx +6 -3
- package/dist/dashboard-runtime/dashboard/src/components/shared/relative-time.tsx +6 -3
- package/dist/dashboard-runtime/dashboard/src/components/shared/search-input.tsx +6 -5
- package/dist/dashboard-runtime/dashboard/src/components/shared/status-badge.tsx +9 -14
- package/dist/dashboard-runtime/dashboard/src/components/shared/system-prompt-input.tsx +6 -3
- package/dist/dashboard-runtime/dashboard/src/components/shared/tag-input.tsx +12 -7
- package/dist/dashboard-runtime/dashboard/src/components/shared/temperature-slider.tsx +4 -2
- package/dist/dashboard-runtime/dashboard/src/components/ui/badge.tsx +9 -8
- package/dist/dashboard-runtime/dashboard/src/components/ui/button.tsx +15 -14
- package/dist/dashboard-runtime/dashboard/src/components/ui/card.tsx +26 -18
- package/dist/dashboard-runtime/dashboard/src/components/ui/chat-bubble.tsx +10 -10
- package/dist/dashboard-runtime/dashboard/src/components/ui/checkbox.tsx +8 -8
- package/dist/dashboard-runtime/dashboard/src/components/ui/collapsible.tsx +6 -6
- package/dist/dashboard-runtime/dashboard/src/components/ui/command.tsx +32 -32
- package/dist/dashboard-runtime/dashboard/src/components/ui/data-card.tsx +35 -35
- package/dist/dashboard-runtime/dashboard/src/components/ui/detail-section.tsx +42 -36
- package/dist/dashboard-runtime/dashboard/src/components/ui/dialog.tsx +29 -29
- package/dist/dashboard-runtime/dashboard/src/components/ui/dropdown-menu.tsx +40 -40
- package/dist/dashboard-runtime/dashboard/src/components/ui/empty-state.tsx +16 -10
- package/dist/dashboard-runtime/dashboard/src/components/ui/filter-pill.tsx +20 -21
- package/dist/dashboard-runtime/dashboard/src/components/ui/form.tsx +57 -51
- package/dist/dashboard-runtime/dashboard/src/components/ui/input.tsx +8 -8
- package/dist/dashboard-runtime/dashboard/src/components/ui/item-card.tsx +17 -16
- package/dist/dashboard-runtime/dashboard/src/components/ui/label.tsx +9 -9
- package/dist/dashboard-runtime/dashboard/src/components/ui/memory-row.tsx +10 -10
- package/dist/dashboard-runtime/dashboard/src/components/ui/mini-stat.tsx +9 -8
- package/dist/dashboard-runtime/dashboard/src/components/ui/nav-tab-bar.tsx +21 -15
- package/dist/dashboard-runtime/dashboard/src/components/ui/playground-shell.tsx +13 -16
- package/dist/dashboard-runtime/dashboard/src/components/ui/popover.tsx +11 -11
- package/dist/dashboard-runtime/dashboard/src/components/ui/result-row.tsx +7 -7
- package/dist/dashboard-runtime/dashboard/src/components/ui/scope-tag.tsx +9 -6
- package/dist/dashboard-runtime/dashboard/src/components/ui/select.tsx +29 -29
- package/dist/dashboard-runtime/dashboard/src/components/ui/separator.tsx +10 -10
- package/dist/dashboard-runtime/dashboard/src/components/ui/sheet.tsx +11 -4
- package/dist/dashboard-runtime/dashboard/src/components/ui/skeleton.tsx +11 -11
- package/dist/dashboard-runtime/dashboard/src/components/ui/sonner.tsx +7 -7
- package/dist/dashboard-runtime/dashboard/src/components/ui/stat-card.tsx +14 -11
- package/dist/dashboard-runtime/dashboard/src/components/ui/switch.tsx +8 -3
- package/dist/dashboard-runtime/dashboard/src/components/ui/table.tsx +27 -24
- package/dist/dashboard-runtime/dashboard/src/components/ui/tabs.tsx +14 -14
- package/dist/dashboard-runtime/dashboard/src/components/ui/textarea.tsx +7 -7
- package/dist/dashboard-runtime/dashboard/src/components/ui/toggle-group.tsx +27 -22
- package/dist/dashboard-runtime/dashboard/src/components/ui/tooltip.tsx +10 -10
- package/dist/dashboard-runtime/dashboard/src/components/ui/usage-card.tsx +11 -8
- package/dist/dashboard-runtime/dashboard/src/config/navigation.ts +25 -21
- package/dist/dashboard-runtime/dashboard/src/contexts/subspace-context.tsx +1 -1
- package/dist/dashboard-runtime/dashboard/src/hooks/use-apply-dream-actions.ts +1 -4
- package/dist/dashboard-runtime/dashboard/src/hooks/use-chat-history.ts +33 -13
- package/dist/dashboard-runtime/dashboard/src/hooks/use-chat-last-config.ts +3 -1
- package/dist/dashboard-runtime/dashboard/src/hooks/use-create-api-key.ts +4 -2
- package/dist/dashboard-runtime/dashboard/src/hooks/use-create-memory-store.ts +2 -1
- package/dist/dashboard-runtime/dashboard/src/hooks/use-delete-custom-policy.ts +1 -4
- package/dist/dashboard-runtime/dashboard/src/hooks/use-document.ts +2 -1
- package/dist/dashboard-runtime/dashboard/src/hooks/use-documents.ts +8 -2
- package/dist/dashboard-runtime/dashboard/src/hooks/use-dream-actions.ts +2 -1
- package/dist/dashboard-runtime/dashboard/src/hooks/use-dream-task.ts +4 -5
- package/dist/dashboard-runtime/dashboard/src/hooks/use-dream-tasks.ts +96 -13
- package/dist/dashboard-runtime/dashboard/src/hooks/use-file-memory.ts +50 -0
- package/dist/dashboard-runtime/dashboard/src/hooks/use-instances.ts +42 -11
- package/dist/dashboard-runtime/dashboard/src/hooks/use-locale-revalidation.ts +34 -0
- package/dist/dashboard-runtime/dashboard/src/hooks/use-memory-requests.ts +7 -2
- package/dist/dashboard-runtime/dashboard/src/hooks/use-memory-unit.ts +3 -2
- package/dist/dashboard-runtime/dashboard/src/hooks/use-memory-units.ts +3 -2
- package/dist/dashboard-runtime/dashboard/src/hooks/use-oss-import.ts +18 -4
- package/dist/dashboard-runtime/dashboard/src/hooks/use-oss-list.ts +3 -3
- package/dist/dashboard-runtime/dashboard/src/hooks/use-qa-chat.ts +32 -21
- package/dist/dashboard-runtime/dashboard/src/hooks/use-subspace-history.ts +5 -2
- package/dist/dashboard-runtime/dashboard/src/hooks/use-update-document.ts +4 -1
- package/dist/dashboard-runtime/dashboard/src/hooks/use-update-memory-store.ts +2 -1
- package/dist/dashboard-runtime/dashboard/src/hooks/use-upload-documents.ts +6 -1
- package/dist/dashboard-runtime/dashboard/src/i18n/config.ts +46 -0
- package/dist/dashboard-runtime/dashboard/src/i18n/dictionaries.ts +8 -0
- package/dist/dashboard-runtime/dashboard/src/i18n/i18n-context.tsx +198 -0
- package/dist/dashboard-runtime/dashboard/src/i18n/locales/en.ts +1969 -0
- package/dist/dashboard-runtime/dashboard/src/i18n/locales/zh.ts +1857 -0
- package/dist/dashboard-runtime/dashboard/src/lib/api-error-toast.ts +2 -1
- package/dist/dashboard-runtime/dashboard/src/lib/chat-dream-deposit.ts +14 -0
- package/dist/dashboard-runtime/dashboard/src/lib/chat-message-ops.ts +4 -1
- package/dist/dashboard-runtime/dashboard/src/lib/dream-kb/filename.ts +13 -0
- package/dist/dashboard-runtime/dashboard/src/lib/dream-kb/format.ts +79 -0
- package/dist/dashboard-runtime/dashboard/src/lib/dream-kb/hash.ts +6 -0
- package/dist/dashboard-runtime/dashboard/src/lib/dream-kb/scope.ts +37 -0
- package/dist/dashboard-runtime/dashboard/src/lib/dream-kb/types.ts +25 -0
- package/dist/dashboard-runtime/dashboard/src/lib/extension-filter.ts +8 -3
- package/dist/dashboard-runtime/dashboard/src/lib/file-tree.ts +100 -0
- package/dist/dashboard-runtime/dashboard/src/lib/format-datetime.ts +56 -0
- package/dist/dashboard-runtime/dashboard/src/lib/glob-filter.ts +10 -4
- package/dist/dashboard-runtime/dashboard/src/lib/memory-storage-mode.ts +68 -0
- package/dist/dashboard-runtime/dashboard/src/lib/memory.ts +116 -14
- package/dist/dashboard-runtime/dashboard/src/lib/metadata-form.ts +4 -1
- package/dist/dashboard-runtime/dashboard/src/lib/number-input-handler.ts +1 -1
- package/dist/dashboard-runtime/dashboard/src/lib/oss-selection.ts +3 -1
- package/dist/dashboard-runtime/dashboard/src/lib/query-keys.ts +26 -4
- package/dist/dashboard-runtime/dashboard/src/lib/server/api-helpers.ts +2 -1
- package/dist/dashboard-runtime/dashboard/src/lib/server/dream-kb-sync.ts +139 -0
- package/dist/dashboard-runtime/dashboard/src/lib/server/ims-client.ts +8 -11
- package/dist/dashboard-runtime/dashboard/src/lib/server/llm-client.ts +5 -5
- package/dist/dashboard-runtime/dashboard/src/lib/server/llm-crypto.ts +1 -5
- package/dist/dashboard-runtime/dashboard/src/lib/server/oss-client.ts +9 -2
- package/dist/dashboard-runtime/dashboard/src/lib/server/ram-client.ts +13 -4
- package/dist/dashboard-runtime/dashboard/src/lib/server/runtime-context.ts +6 -10
- package/dist/dashboard-runtime/dashboard/src/lib/server/sdk-client.ts +25 -8
- package/dist/dashboard-runtime/dashboard/src/providers/query-provider.tsx +5 -5
- package/dist/dashboard-runtime/dashboard/src/providers/runtime-context-provider.tsx +26 -7
- package/dist/dashboard-runtime/dashboard/src/providers/theme-provider.tsx +6 -3
- package/dist/dashboard-runtime/dashboard/src/schemas/instance.ts +82 -13
- package/dist/dashboard-runtime/dashboard/src/schemas/knowledge-base.ts +42 -21
- package/dist/dashboard-runtime/dashboard/src/schemas/llm-chat.ts +8 -3
- package/dist/dashboard-runtime/dashboard/src/schemas/retrieval.ts +2 -6
- package/dist/dashboard-runtime/dashboard/src/services/api-client.ts +31 -32
- package/dist/dashboard-runtime/dashboard/src/services/api-keys.ts +4 -2
- package/dist/dashboard-runtime/dashboard/src/services/auth.ts +1 -1
- package/dist/dashboard-runtime/dashboard/src/services/chunks.ts +4 -4
- package/dist/dashboard-runtime/dashboard/src/services/documents.ts +16 -12
- package/dist/dashboard-runtime/dashboard/src/services/file-memory.ts +63 -0
- package/dist/dashboard-runtime/dashboard/src/services/knowledge-base.ts +16 -8
- package/dist/dashboard-runtime/dashboard/src/services/memory.ts +64 -29
- package/dist/dashboard-runtime/dashboard/src/services/oss.ts +6 -6
- package/dist/dashboard-runtime/dashboard/src/services/retrieval.ts +2 -2
- package/dist/dashboard-runtime/dashboard/src/types/instance.ts +10 -2
- package/dist/dashboard-runtime/dashboard/src/types/knowledge-base.ts +3 -7
- package/dist/dashboard-runtime/dashboard/src/types/llm-chat.ts +27 -0
- package/dist/dashboard-runtime/dashboard/src/types/memory.ts +29 -9
- package/dist/dashboard-runtime/dashboard/tsconfig.json +3 -11
- package/dist/dashboard-runtime/dashboard/vitest.config.mjs +1 -4
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/file-memory.d.ts +153 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/file-memory.d.ts.map +1 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/file-memory.js +451 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/file-memory.js.map +1 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/index.d.ts +2 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/index.d.ts.map +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/index.js +2 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/index.js.map +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/internal/auth-options.d.ts +25 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/internal/auth-options.d.ts.map +1 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/internal/auth-options.js +29 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/internal/auth-options.js.map +1 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/internal/managed-section-writer.d.ts.map +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/internal/managed-section-writer.js +2 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/internal/managed-section-writer.js.map +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.d.ts +16 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.d.ts.map +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.js +74 -8
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.js.map +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/managed-oss.d.ts.map +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/managed-oss.js +2 -6
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/managed-oss.js.map +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/managed-ots.d.ts.map +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/managed-ots.js +15 -9
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/managed-ots.js.map +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.d.ts +8 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.d.ts.map +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.js +23 -7
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.js.map +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/response.d.ts.map +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/response.js +7 -3
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/response.js.map +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/sdk-pagination.d.ts.map +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/sdk-pagination.js.map +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/config.d.ts.map +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/config.js +26 -9
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/config.js.map +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/constants.d.ts +9 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/constants.d.ts.map +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/constants.js +18 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/constants.js.map +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/errors.d.ts.map +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/errors.js.map +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/logging.d.ts.map +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/logging.js +12 -4
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/logging.js.map +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/types.d.ts +9 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/types.d.ts.map +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/file-memory.d.ts +153 -0
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/file-memory.d.ts.map +1 -0
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/file-memory.js +451 -0
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/file-memory.js.map +1 -0
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/index.d.ts +2 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/index.d.ts.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/index.js +2 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/index.js.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/internal/auth-options.d.ts +25 -0
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/internal/auth-options.d.ts.map +1 -0
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/internal/auth-options.js +29 -0
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/internal/auth-options.js.map +1 -0
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/internal/managed-section-writer.d.ts.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/internal/managed-section-writer.js +2 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/internal/managed-section-writer.js.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.d.ts +16 -0
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.d.ts.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.js +74 -8
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.js.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/managed-oss.d.ts.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/managed-oss.js +2 -6
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/managed-oss.js.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/managed-ots.d.ts.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/managed-ots.js +15 -9
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/managed-ots.js.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.d.ts +8 -0
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.d.ts.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.js +23 -7
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.js.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/response.d.ts.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/response.js +7 -3
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/response.js.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/sdk-pagination.d.ts.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/sdk-pagination.js.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/config.d.ts.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/config.js +26 -9
- package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/config.js.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/constants.d.ts +9 -1
- package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/constants.d.ts.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/constants.js +18 -0
- package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/constants.js.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/errors.d.ts.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/errors.js.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/logging.d.ts.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/logging.js +12 -4
- package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/logging.js.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/types.d.ts +9 -0
- package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/types.d.ts.map +1 -1
- package/dist/output.d.ts.map +1 -1
- package/dist/output.js +3 -1
- package/dist/output.js.map +1 -1
- package/dist/scanner.d.ts.map +1 -1
- package/dist/scanner.js.map +1 -1
- package/dist/utils/parse-int-arg.d.ts.map +1 -1
- package/dist/utils/parse-int-arg.js.map +1 -1
- package/dist/utils/read-image-input.d.ts.map +1 -1
- package/dist/utils/read-image-input.js +8 -1
- package/dist/utils/read-image-input.js.map +1 -1
- package/package.json +3 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0--nu07._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0.gylau._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0.hvkwy._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0.qtdn4._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__02p1x3t._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__03og44p._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__04dd04u._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__04ujbw-._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__04zbudf._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__05eryp~._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__06fva9g._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__08_2avk._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0acvvri._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0byveuc._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0cee_lo._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0cyd2qb._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0ecs-9r._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0ejcow5._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0es0s_~._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0fglxiw._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0g3yw6w._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0i1_p1s._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0is6qso._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0no9qm0._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0q8vcw8._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0q9fgt6._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0rx9hon._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0tc-.6s._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0u03tze._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0ua_nqs._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0uebf40._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0v0il3n._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0w_ig2a._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0zmo~nd._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__10m-wmo._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__11s_zx6._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__11wq90l._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__126srko._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__12e1t6o._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__12ylr4n._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__13g_f9w._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__13q2wbt._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__13~-fxp._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/0p91_next_dist_shared_lib_deployment-id_0uu7yq4.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__04.tmw0._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__077~9kz._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__07fra.0._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0jhpb-b._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0st_2qm._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_03cxnik._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_078ekb~._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_09aiggd._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0jl78rk._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0njimsl._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0nmv74v._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0oxv61l._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0pe9ntc._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0q43l7g._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0q748rf._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0qptqwe._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0tej2s.._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0tjamu1._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0u4elhp._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0wwhklq._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0ytd66u._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0~5g0_a._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0~dbpb0._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_10.40pj._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_13w6ksc._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_00ofp7q._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_065m1.j._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0l1.0wg._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0xf3ffa._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_memory_[store]_settings_page_tsx_0y26.xu._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0-0n226yihtlx.js +0 -138
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0-rnnjxuu_5.s.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0.q0rms~bxru_.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/03~amszcayft9.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/05oy7c8~k0-nu.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/06e08s6_aj5tb.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/06gfzt_e-w-f~.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/076wjt8-f7ws0.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/07brna0jsz4vi.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/08c211p60po58.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/08ix0ia65i20b.js +0 -9
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/09fuq3fiw1zq8.js +0 -138
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/09pa80gils3r2.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0axe89r5c7p_b.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0czi-68m5cma3.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0draec5luxua1.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0ezfzygzl1hw8.css +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0f60fxsrh4wbq.js +0 -5
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0gqhfku~on4t1.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0i_66eb3teu-..js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0ipb.__efc0i7.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0oxr1t3cp8_9f.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0p7-v~ggg-k3s.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0pyte4aize4vw.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0qann4-pg7heu.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0qzs7r4p4hd2~.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0ro5-~k1_6.ji.js +0 -4
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0t.fmi5danjtx.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0ty--w57-5n5f.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0u6g.bq1prqh8.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0w1f765.797w7.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0wl~ofl4qn1yv.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0xnm11dm1-qw2.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0yduro1k88.mk.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0yqx-vizpechs.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/10oar3if2rs8f.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/11fppb7wskgrx.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/1211es3l12jpn.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/12ju37ebul3bw.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/137epx7vazn1v.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/16z7~ksa815uh.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/17l3ij7h2.vna.js +0 -1
- /package/dist/dashboard-runtime/dashboard/.next/static/{-pCWSBA7OQIF0pN0Rem9H → be0fa_T3EkD9v2fJGsvLd}/_buildManifest.js +0 -0
- /package/dist/dashboard-runtime/dashboard/.next/static/{-pCWSBA7OQIF0pN0Rem9H → be0fa_T3EkD9v2fJGsvLd}/_clientMiddlewareManifest.js +0 -0
- /package/dist/dashboard-runtime/dashboard/.next/static/{-pCWSBA7OQIF0pN0Rem9H → be0fa_T3EkD9v2fJGsvLd}/_ssgManifest.js +0 -0
|
@@ -1,7 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
"use client";
|
|
2
2
|
|
|
3
3
|
import { useState, useCallback, useMemo, useRef } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
Upload,
|
|
6
|
+
X,
|
|
7
|
+
FileText,
|
|
8
|
+
ChevronDown,
|
|
9
|
+
ChevronRight,
|
|
10
|
+
FolderOpen,
|
|
11
|
+
Cloud,
|
|
12
|
+
} from "lucide-react";
|
|
5
13
|
import { toast } from "sonner";
|
|
6
14
|
import { Button } from "@/components/ui/button";
|
|
7
15
|
import { Input } from "@/components/ui/input";
|
|
@@ -29,6 +37,7 @@ import { partitionSelection, type OssSelection } from "@/lib/oss-selection";
|
|
|
29
37
|
import { cn } from "@/lib/utils";
|
|
30
38
|
import { convertMetadataValues } from "@/lib/metadata-form";
|
|
31
39
|
import { MetadataFieldInput } from "@/components/shared/metadata-field-input";
|
|
40
|
+
import { useI18n } from "@/i18n/i18n-context";
|
|
32
41
|
import type { MetadataField } from "@/types/knowledge-base";
|
|
33
42
|
|
|
34
43
|
import {
|
|
@@ -65,7 +74,10 @@ interface FsFileEntry extends FsEntry {
|
|
|
65
74
|
interface FsDirEntry extends FsEntry {
|
|
66
75
|
isDirectory: true;
|
|
67
76
|
createReader(): {
|
|
68
|
-
readEntries(
|
|
77
|
+
readEntries(
|
|
78
|
+
success: (entries: FsEntry[]) => void,
|
|
79
|
+
error?: (e: Error) => void,
|
|
80
|
+
): void;
|
|
69
81
|
};
|
|
70
82
|
}
|
|
71
83
|
|
|
@@ -126,7 +138,9 @@ async function walkEntry(entry: FsEntry, parentPath = ""): Promise<File[]> {
|
|
|
126
138
|
readBatch();
|
|
127
139
|
});
|
|
128
140
|
const here = parentPath ? `${parentPath}/${entry.name}` : entry.name;
|
|
129
|
-
const nested = await Promise.all(
|
|
141
|
+
const nested = await Promise.all(
|
|
142
|
+
collected.map((child) => walkEntry(child, here)),
|
|
143
|
+
);
|
|
130
144
|
return nested.flat();
|
|
131
145
|
}
|
|
132
146
|
return [];
|
|
@@ -140,9 +154,11 @@ function extractEntries(items: DataTransferItemList): FsEntry[] {
|
|
|
140
154
|
for (let i = 0; i < items.length; i++) {
|
|
141
155
|
const item = items[i];
|
|
142
156
|
if (item.kind !== "file") continue;
|
|
143
|
-
const entry = (
|
|
144
|
-
|
|
145
|
-
|
|
157
|
+
const entry = (
|
|
158
|
+
item as DataTransferItem & {
|
|
159
|
+
webkitGetAsEntry?: () => FsEntry | null;
|
|
160
|
+
}
|
|
161
|
+
).webkitGetAsEntry?.();
|
|
146
162
|
if (entry) out.push(entry);
|
|
147
163
|
}
|
|
148
164
|
return out;
|
|
@@ -155,11 +171,14 @@ export function DocUploadDialog({
|
|
|
155
171
|
open,
|
|
156
172
|
onOpenChange,
|
|
157
173
|
}: DocUploadDialogProps) {
|
|
174
|
+
const { t } = useI18n();
|
|
158
175
|
const [mode, setMode] = useState<UploadMode>("file");
|
|
159
176
|
const [files, setFiles] = useState<File[]>([]);
|
|
160
177
|
const [subspace, setSubspace] = useState(defaultSubspace ?? "");
|
|
161
178
|
const [metadataJson, setMetadataJson] = useState("");
|
|
162
|
-
const [metadataValues, setMetadataValues] = useState<Record<string, string>>(
|
|
179
|
+
const [metadataValues, setMetadataValues] = useState<Record<string, string>>(
|
|
180
|
+
{},
|
|
181
|
+
);
|
|
163
182
|
const [isDragOver, setIsDragOver] = useState(false);
|
|
164
183
|
const [jsonPreviewOpen, setJsonPreviewOpen] = useState(false);
|
|
165
184
|
|
|
@@ -175,15 +194,22 @@ export function DocUploadDialog({
|
|
|
175
194
|
// OSS-mode state. Selection lives here (not in OssImportTab) so that
|
|
176
195
|
// tab-mode switches can reset it cleanly via resetForm().
|
|
177
196
|
const [ossSelection, setOssSelection] = useState<OssSelection>([]);
|
|
178
|
-
const [ossFilter, setOssFilter] =
|
|
197
|
+
const [ossFilter, setOssFilter] =
|
|
198
|
+
useState<OssImportFilterState>(EMPTY_OSS_FILTER);
|
|
179
199
|
|
|
180
200
|
const ossImport = useOssImport();
|
|
181
201
|
|
|
182
202
|
const hasSchemaFields = metadataFields && metadataFields.length > 0;
|
|
183
203
|
const uploadDocuments = useUploadDocuments();
|
|
184
204
|
|
|
185
|
-
const includeList = useMemo(
|
|
186
|
-
|
|
205
|
+
const includeList = useMemo(
|
|
206
|
+
() => parseExtensionList(includeInput),
|
|
207
|
+
[includeInput],
|
|
208
|
+
);
|
|
209
|
+
const excludeList = useMemo(
|
|
210
|
+
() => parseExtensionList(excludeInput),
|
|
211
|
+
[excludeInput],
|
|
212
|
+
);
|
|
187
213
|
|
|
188
214
|
const folderFiltered = useMemo(
|
|
189
215
|
() =>
|
|
@@ -227,75 +253,81 @@ export function DocUploadDialog({
|
|
|
227
253
|
* old behaviour of forwarding raw `dataTransfer.files` would have surfaced
|
|
228
254
|
* a 0-byte directory entry to the API and failed the upload.
|
|
229
255
|
*/
|
|
230
|
-
const handleDropFileMode = useCallback(
|
|
231
|
-
event.
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
256
|
+
const handleDropFileMode = useCallback(
|
|
257
|
+
async (event: React.DragEvent) => {
|
|
258
|
+
event.preventDefault();
|
|
259
|
+
setIsDragOver(false);
|
|
260
|
+
|
|
261
|
+
const entries = extractEntries(event.dataTransfer.items);
|
|
262
|
+
if (entries.length === 0) {
|
|
263
|
+
// Browser without webkitGetAsEntry — fall back to the file list. Any
|
|
264
|
+
// raw "directory" entry will show up as a zero-byte File with empty
|
|
265
|
+
// type, which we filter out below as a defensive measure.
|
|
266
|
+
const fallback = Array.from(event.dataTransfer.files).filter(
|
|
267
|
+
(f) => f.size > 0 || f.type !== "",
|
|
268
|
+
);
|
|
269
|
+
if (fallback.length > 0) {
|
|
270
|
+
setFiles((prev) => [...prev, ...fallback]);
|
|
271
|
+
}
|
|
272
|
+
return;
|
|
244
273
|
}
|
|
245
|
-
return;
|
|
246
|
-
}
|
|
247
274
|
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
275
|
+
const fileEntries = entries.filter((e) => e.isFile);
|
|
276
|
+
const dirEntries = entries.filter((e) => e.isDirectory);
|
|
277
|
+
|
|
278
|
+
// Resolve File objects from the file entries directly (no recursion in
|
|
279
|
+
// file mode — the user explicitly chose 「按文件」).
|
|
280
|
+
const directFiles = (
|
|
281
|
+
await Promise.all(
|
|
282
|
+
fileEntries.map(
|
|
283
|
+
(e) =>
|
|
284
|
+
new Promise<File | null>((resolve) => {
|
|
285
|
+
(e as FsFileEntry).file(
|
|
286
|
+
(file) => resolve(file),
|
|
287
|
+
() => resolve(null),
|
|
288
|
+
);
|
|
289
|
+
}),
|
|
290
|
+
),
|
|
291
|
+
)
|
|
292
|
+
).filter((f): f is File => f !== null);
|
|
293
|
+
|
|
294
|
+
if (directFiles.length > 0) {
|
|
295
|
+
setFiles((prev) => [...prev, ...directFiles]);
|
|
296
|
+
}
|
|
270
297
|
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
298
|
+
if (dirEntries.length > 0) {
|
|
299
|
+
const folderNames = dirEntries.map((d) => d.name).join("、");
|
|
300
|
+
toast.info(
|
|
301
|
+
directFiles.length > 0
|
|
302
|
+
? t("documents.upload.ignoredFolders", {
|
|
303
|
+
count: dirEntries.length,
|
|
304
|
+
names: folderNames,
|
|
305
|
+
})
|
|
306
|
+
: t("documents.upload.detectedFolders", { names: folderNames }),
|
|
307
|
+
{
|
|
308
|
+
description: t("documents.upload.detectedFoldersDesc"),
|
|
309
|
+
action: {
|
|
310
|
+
label: t("documents.upload.switchToFolder"),
|
|
311
|
+
onClick: () => {
|
|
312
|
+
setMode("folder");
|
|
313
|
+
// Auto-import the dropped folders so the user doesn't repeat
|
|
314
|
+
// the gesture.
|
|
315
|
+
void importDirEntries(dirEntries);
|
|
316
|
+
},
|
|
286
317
|
},
|
|
287
318
|
},
|
|
288
|
-
|
|
289
|
-
);
|
|
319
|
+
);
|
|
290
320
|
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
321
|
+
// Auto-switch and import when the user dropped only folders. They
|
|
322
|
+
// clearly intended a folder upload — don't make them click the toast.
|
|
323
|
+
if (directFiles.length === 0) {
|
|
324
|
+
setMode("folder");
|
|
325
|
+
await importDirEntries(dirEntries);
|
|
326
|
+
}
|
|
296
327
|
}
|
|
297
|
-
}
|
|
298
|
-
|
|
328
|
+
},
|
|
329
|
+
[importDirEntries, t],
|
|
330
|
+
);
|
|
299
331
|
|
|
300
332
|
/**
|
|
301
333
|
* Folder-mode drop. Walks any dropped FileSystemDirectoryEntry tree to
|
|
@@ -303,43 +335,48 @@ export function DocUploadDialog({
|
|
|
303
335
|
* include/exclude/recursive filter pipeline works identically to a folder
|
|
304
336
|
* picked through `<input webkitdirectory>`.
|
|
305
337
|
*/
|
|
306
|
-
const handleDropFolderMode = useCallback(
|
|
307
|
-
event.
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
const dirs = entries.filter((e) => e.isDirectory);
|
|
317
|
-
const looseFiles = entries.filter((e) => e.isFile);
|
|
338
|
+
const handleDropFolderMode = useCallback(
|
|
339
|
+
async (event: React.DragEvent) => {
|
|
340
|
+
event.preventDefault();
|
|
341
|
+
setIsDragOver(false);
|
|
342
|
+
|
|
343
|
+
const entries = extractEntries(event.dataTransfer.items);
|
|
344
|
+
if (entries.length === 0) {
|
|
345
|
+
toast.error(t("documents.upload.folderDragUnsupported"));
|
|
346
|
+
return;
|
|
347
|
+
}
|
|
318
348
|
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
}
|
|
349
|
+
const dirs = entries.filter((e) => e.isDirectory);
|
|
350
|
+
const looseFiles = entries.filter((e) => e.isFile);
|
|
322
351
|
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
looseFiles.map(
|
|
327
|
-
(e) =>
|
|
328
|
-
new Promise<File | null>((resolve) => {
|
|
329
|
-
(e as FsFileEntry).file(
|
|
330
|
-
(file) => resolve(tagRelativePath(file, file.name)),
|
|
331
|
-
() => resolve(null),
|
|
332
|
-
);
|
|
333
|
-
}),
|
|
334
|
-
),
|
|
335
|
-
)
|
|
336
|
-
).filter((f): f is File => f !== null);
|
|
352
|
+
if (dirs.length === 0 && looseFiles.length > 0) {
|
|
353
|
+
toast.info(t("documents.upload.looseFilesMerged"));
|
|
354
|
+
}
|
|
337
355
|
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
356
|
+
const dirFiles = (
|
|
357
|
+
await Promise.all(dirs.map((d) => walkEntry(d)))
|
|
358
|
+
).flat();
|
|
359
|
+
const looseFileObjs = (
|
|
360
|
+
await Promise.all(
|
|
361
|
+
looseFiles.map(
|
|
362
|
+
(e) =>
|
|
363
|
+
new Promise<File | null>((resolve) => {
|
|
364
|
+
(e as FsFileEntry).file(
|
|
365
|
+
(file) => resolve(tagRelativePath(file, file.name)),
|
|
366
|
+
() => resolve(null),
|
|
367
|
+
);
|
|
368
|
+
}),
|
|
369
|
+
),
|
|
370
|
+
)
|
|
371
|
+
).filter((f): f is File => f !== null);
|
|
372
|
+
|
|
373
|
+
const merged = [...dirFiles, ...looseFileObjs];
|
|
374
|
+
if (merged.length > 0) {
|
|
375
|
+
setFolderRaw((prev) => [...prev, ...merged]);
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
[t],
|
|
379
|
+
);
|
|
343
380
|
|
|
344
381
|
const handleFileSelect = useCallback(
|
|
345
382
|
(event: React.ChangeEvent<HTMLInputElement>) => {
|
|
@@ -348,7 +385,7 @@ export function DocUploadDialog({
|
|
|
348
385
|
setFiles((prev) => [...prev, ...Array.from(selectedFiles)]);
|
|
349
386
|
}
|
|
350
387
|
},
|
|
351
|
-
[]
|
|
388
|
+
[],
|
|
352
389
|
);
|
|
353
390
|
|
|
354
391
|
const handleFolderSelect = useCallback(
|
|
@@ -360,7 +397,7 @@ export function DocUploadDialog({
|
|
|
360
397
|
// Allow re-selecting the same folder later.
|
|
361
398
|
if (folderInputRef.current) folderInputRef.current.value = "";
|
|
362
399
|
},
|
|
363
|
-
[]
|
|
400
|
+
[],
|
|
364
401
|
);
|
|
365
402
|
|
|
366
403
|
const removeFile = useCallback((index: number) => {
|
|
@@ -398,9 +435,12 @@ export function DocUploadDialog({
|
|
|
398
435
|
}
|
|
399
436
|
}, []);
|
|
400
437
|
|
|
401
|
-
const updateMetadataField = useCallback(
|
|
402
|
-
|
|
403
|
-
|
|
438
|
+
const updateMetadataField = useCallback(
|
|
439
|
+
(fieldName: string, value: string) => {
|
|
440
|
+
setMetadataValues((prev) => ({ ...prev, [fieldName]: value }));
|
|
441
|
+
},
|
|
442
|
+
[],
|
|
443
|
+
);
|
|
404
444
|
|
|
405
445
|
// Build metadata preview JSON from form fields
|
|
406
446
|
const metadataPreview = useMemo(() => {
|
|
@@ -414,19 +454,22 @@ export function DocUploadDialog({
|
|
|
414
454
|
if (mode === "oss") {
|
|
415
455
|
const { fileKeys, folderPrefixes } = partitionSelection(ossSelection);
|
|
416
456
|
if (fileKeys.length === 0 && folderPrefixes.length === 0) {
|
|
417
|
-
toast.error("
|
|
457
|
+
toast.error(t("documents.upload.ossSelectRequired"));
|
|
418
458
|
return;
|
|
419
459
|
}
|
|
420
460
|
|
|
421
461
|
let metadata: Record<string, unknown> | undefined;
|
|
422
462
|
if (hasSchemaFields) {
|
|
423
|
-
const converted = convertMetadataValues(
|
|
463
|
+
const converted = convertMetadataValues(
|
|
464
|
+
metadataValues,
|
|
465
|
+
metadataFields!,
|
|
466
|
+
);
|
|
424
467
|
if (Object.keys(converted).length > 0) metadata = converted;
|
|
425
468
|
} else if (metadataJson.trim()) {
|
|
426
469
|
try {
|
|
427
470
|
metadata = JSON.parse(metadataJson) as Record<string, unknown>;
|
|
428
471
|
} catch {
|
|
429
|
-
toast.error("
|
|
472
|
+
toast.error(t("documents.upload.metadataJsonInvalid"));
|
|
430
473
|
return;
|
|
431
474
|
}
|
|
432
475
|
}
|
|
@@ -436,7 +479,8 @@ export function DocUploadDialog({
|
|
|
436
479
|
// Filters only travel on folder items; the hook ignores them when
|
|
437
480
|
// there is no folder selection, so the "filter applies to folder
|
|
438
481
|
// selections only" semantic is enforced once, in one place.
|
|
439
|
-
const { inclusionFilters, exclusionFilters } =
|
|
482
|
+
const { inclusionFilters, exclusionFilters } =
|
|
483
|
+
buildFolderGlobs(ossFilter);
|
|
440
484
|
const result = await ossImport.mutateAsync({
|
|
441
485
|
knowledgeBaseName,
|
|
442
486
|
fileKeys,
|
|
@@ -447,15 +491,17 @@ export function DocUploadDialog({
|
|
|
447
491
|
metadata,
|
|
448
492
|
});
|
|
449
493
|
const details = result.documentDetails ?? [];
|
|
450
|
-
const failed = details.filter(
|
|
494
|
+
const failed = details.filter(
|
|
495
|
+
(d) => d.status.toLowerCase() === "failed",
|
|
496
|
+
);
|
|
451
497
|
|
|
452
498
|
// Distinguish "filter excluded everything" from a successful import.
|
|
453
499
|
if (details.length === 0) {
|
|
454
|
-
toast.warning("
|
|
500
|
+
toast.warning(t("documents.upload.noFilesImportedTitle"), {
|
|
455
501
|
description:
|
|
456
502
|
folderPrefixes.length > 0
|
|
457
|
-
? "
|
|
458
|
-
: "
|
|
503
|
+
? t("documents.upload.noFilesImportedFiltered")
|
|
504
|
+
: t("documents.upload.noFilesImportedEmpty"),
|
|
459
505
|
});
|
|
460
506
|
resetForm();
|
|
461
507
|
onOpenChange(false);
|
|
@@ -463,14 +509,22 @@ export function DocUploadDialog({
|
|
|
463
509
|
}
|
|
464
510
|
|
|
465
511
|
if (failed.length === 0) {
|
|
466
|
-
toast.success(
|
|
512
|
+
toast.success(
|
|
513
|
+
t("documents.upload.importSuccess", { count: details.length }),
|
|
514
|
+
);
|
|
467
515
|
} else if (failed.length < details.length) {
|
|
468
516
|
const reasons = [
|
|
469
517
|
...new Set(failed.map((d) => d.failureReason).filter(Boolean)),
|
|
470
518
|
];
|
|
471
519
|
toast.warning(
|
|
472
|
-
|
|
473
|
-
|
|
520
|
+
t("documents.upload.importPartial", {
|
|
521
|
+
ok: details.length - failed.length,
|
|
522
|
+
fail: failed.length,
|
|
523
|
+
}),
|
|
524
|
+
{
|
|
525
|
+
description:
|
|
526
|
+
reasons.length > 0 ? reasons.slice(0, 3).join("; ") : undefined,
|
|
527
|
+
},
|
|
474
528
|
);
|
|
475
529
|
} else {
|
|
476
530
|
// All failed: show the first few distinct failureReasons so the user
|
|
@@ -480,15 +534,20 @@ export function DocUploadDialog({
|
|
|
480
534
|
const reasons = [
|
|
481
535
|
...new Set(failed.map((d) => d.failureReason).filter(Boolean)),
|
|
482
536
|
];
|
|
483
|
-
toast.error(
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
537
|
+
toast.error(
|
|
538
|
+
t("documents.upload.importAllFailed", { count: failed.length }),
|
|
539
|
+
{
|
|
540
|
+
description:
|
|
541
|
+
reasons.length > 0 ? reasons.slice(0, 3).join("; ") : undefined,
|
|
542
|
+
},
|
|
543
|
+
);
|
|
487
544
|
}
|
|
488
545
|
resetForm();
|
|
489
546
|
onOpenChange(false);
|
|
490
547
|
} catch (error) {
|
|
491
|
-
showApiError(error, {
|
|
548
|
+
showApiError(error, {
|
|
549
|
+
fallbackTitle: t("documents.upload.ossImportFailed"),
|
|
550
|
+
});
|
|
492
551
|
}
|
|
493
552
|
return;
|
|
494
553
|
}
|
|
@@ -497,8 +556,8 @@ export function DocUploadDialog({
|
|
|
497
556
|
if (effectiveFiles.length === 0) {
|
|
498
557
|
toast.error(
|
|
499
558
|
mode === "folder"
|
|
500
|
-
? "
|
|
501
|
-
: "
|
|
559
|
+
? t("documents.upload.noFolderOrFiltered")
|
|
560
|
+
: t("documents.upload.selectAtLeastOneFile"),
|
|
502
561
|
);
|
|
503
562
|
return;
|
|
504
563
|
}
|
|
@@ -514,7 +573,7 @@ export function DocUploadDialog({
|
|
|
514
573
|
try {
|
|
515
574
|
metadata = JSON.parse(metadataJson);
|
|
516
575
|
} catch {
|
|
517
|
-
toast.error("
|
|
576
|
+
toast.error(t("documents.upload.metadataJsonInvalid"));
|
|
518
577
|
return;
|
|
519
578
|
}
|
|
520
579
|
}
|
|
@@ -532,30 +591,49 @@ export function DocUploadDialog({
|
|
|
532
591
|
const failed = details.filter((d) => d.status.toLowerCase() === "failed");
|
|
533
592
|
|
|
534
593
|
if (failed.length === 0) {
|
|
535
|
-
toast.success(
|
|
594
|
+
toast.success(
|
|
595
|
+
t("documents.upload.uploadSuccess", { count: effectiveFiles.length }),
|
|
596
|
+
);
|
|
536
597
|
} else if (failed.length < details.length) {
|
|
537
|
-
const reasons = [
|
|
598
|
+
const reasons = [
|
|
599
|
+
...new Set(failed.map((d) => d.failureReason).filter(Boolean)),
|
|
600
|
+
];
|
|
538
601
|
toast.warning(
|
|
539
|
-
|
|
540
|
-
|
|
602
|
+
t("documents.upload.uploadPartial", {
|
|
603
|
+
ok: details.length - failed.length,
|
|
604
|
+
fail: failed.length,
|
|
605
|
+
}),
|
|
606
|
+
{
|
|
607
|
+
description:
|
|
608
|
+
reasons.length > 0 ? reasons.slice(0, 3).join("; ") : undefined,
|
|
609
|
+
},
|
|
541
610
|
);
|
|
542
611
|
} else {
|
|
543
|
-
toast.error(
|
|
612
|
+
toast.error(
|
|
613
|
+
t("documents.upload.uploadAllFailed", { count: failed.length }),
|
|
614
|
+
);
|
|
544
615
|
}
|
|
545
616
|
|
|
546
617
|
// Also surface batch-level errors collected during upload.
|
|
547
618
|
const batchErrors = uploadDocuments.progress?.errors ?? [];
|
|
548
619
|
if (batchErrors.length > 0) {
|
|
549
|
-
toast.warning(
|
|
550
|
-
|
|
551
|
-
|
|
620
|
+
toast.warning(
|
|
621
|
+
t("documents.upload.batchRequestErrors", {
|
|
622
|
+
count: batchErrors.length,
|
|
623
|
+
}),
|
|
624
|
+
{
|
|
625
|
+
description: batchErrors.slice(0, 2).join("; "),
|
|
626
|
+
},
|
|
627
|
+
);
|
|
552
628
|
}
|
|
553
629
|
|
|
554
630
|
resetForm();
|
|
555
631
|
onOpenChange(false);
|
|
556
632
|
} catch (error) {
|
|
557
633
|
const message =
|
|
558
|
-
error instanceof Error
|
|
634
|
+
error instanceof Error
|
|
635
|
+
? error.message
|
|
636
|
+
: t("documents.upload.uploadFailed");
|
|
559
637
|
toast.error(message);
|
|
560
638
|
}
|
|
561
639
|
}
|
|
@@ -564,9 +642,12 @@ export function DocUploadDialog({
|
|
|
564
642
|
<Dialog open={open} onOpenChange={onOpenChange}>
|
|
565
643
|
<DialogContent className="sm:max-w-lg">
|
|
566
644
|
<DialogHeader>
|
|
567
|
-
<DialogTitle
|
|
645
|
+
<DialogTitle>{t("documents.upload.title")}</DialogTitle>
|
|
568
646
|
<DialogDescription>
|
|
569
|
-
|
|
647
|
+
{t("documents.upload.descriptionPrefix")}
|
|
648
|
+
<span className="font-medium text-foreground">
|
|
649
|
+
{knowledgeBaseName}
|
|
650
|
+
</span>
|
|
570
651
|
</DialogDescription>
|
|
571
652
|
</DialogHeader>
|
|
572
653
|
|
|
@@ -575,15 +656,15 @@ export function DocUploadDialog({
|
|
|
575
656
|
<TabsList className="grid w-full grid-cols-3">
|
|
576
657
|
<TabsTrigger value="file" className="gap-2">
|
|
577
658
|
<FileText className="h-3.5 w-3.5" />
|
|
578
|
-
|
|
659
|
+
{t("documents.upload.tabFile")}
|
|
579
660
|
</TabsTrigger>
|
|
580
661
|
<TabsTrigger value="folder" className="gap-2">
|
|
581
662
|
<FolderOpen className="h-3.5 w-3.5" />
|
|
582
|
-
|
|
663
|
+
{t("documents.upload.tabFolder")}
|
|
583
664
|
</TabsTrigger>
|
|
584
665
|
<TabsTrigger value="oss" className="gap-2">
|
|
585
666
|
<Cloud className="h-3.5 w-3.5" />
|
|
586
|
-
|
|
667
|
+
{t("documents.upload.tabOss")}
|
|
587
668
|
</TabsTrigger>
|
|
588
669
|
</TabsList>
|
|
589
670
|
|
|
@@ -602,7 +683,7 @@ export function DocUploadDialog({
|
|
|
602
683
|
>
|
|
603
684
|
<Upload className="h-7 w-7 text-[hsl(var(--muted-foreground))]" />
|
|
604
685
|
<p className="text-sm text-[hsl(var(--muted-foreground))]">
|
|
605
|
-
|
|
686
|
+
{t("documents.upload.dropFileHere")}
|
|
606
687
|
</p>
|
|
607
688
|
<Button
|
|
608
689
|
type="button"
|
|
@@ -610,7 +691,7 @@ export function DocUploadDialog({
|
|
|
610
691
|
size="sm"
|
|
611
692
|
onClick={() => fileInputRef.current?.click()}
|
|
612
693
|
>
|
|
613
|
-
|
|
694
|
+
{t("documents.upload.selectFile")}
|
|
614
695
|
</Button>
|
|
615
696
|
<input
|
|
616
697
|
ref={fileInputRef}
|
|
@@ -625,16 +706,18 @@ export function DocUploadDialog({
|
|
|
625
706
|
<div className="space-y-2">
|
|
626
707
|
<div className="flex items-center justify-between text-xs text-[hsl(var(--muted-foreground))]">
|
|
627
708
|
<span>
|
|
628
|
-
|
|
629
|
-
<span className="font-medium text-foreground">
|
|
630
|
-
|
|
709
|
+
{t("documents.upload.selectedFilesPrefix")}
|
|
710
|
+
<span className="font-medium text-foreground">
|
|
711
|
+
{files.length}
|
|
712
|
+
</span>
|
|
713
|
+
{t("documents.upload.selectedFilesSuffix")}
|
|
631
714
|
</span>
|
|
632
715
|
<button
|
|
633
716
|
type="button"
|
|
634
717
|
className="hover:text-foreground transition-colors"
|
|
635
718
|
onClick={() => setFiles([])}
|
|
636
719
|
>
|
|
637
|
-
|
|
720
|
+
{t("documents.upload.clearAll")}
|
|
638
721
|
</button>
|
|
639
722
|
</div>
|
|
640
723
|
<div className="max-h-32 overflow-y-auto space-y-1.5 rounded-md border border-[hsl(var(--border))] bg-[hsl(var(--secondary))]/30 p-1.5">
|
|
@@ -677,7 +760,7 @@ export function DocUploadDialog({
|
|
|
677
760
|
>
|
|
678
761
|
<FolderOpen className="h-7 w-7 text-[hsl(var(--muted-foreground))]" />
|
|
679
762
|
<p className="text-sm text-[hsl(var(--muted-foreground))]">
|
|
680
|
-
|
|
763
|
+
{t("documents.upload.dropFolderHere")}
|
|
681
764
|
</p>
|
|
682
765
|
<Button
|
|
683
766
|
type="button"
|
|
@@ -685,7 +768,7 @@ export function DocUploadDialog({
|
|
|
685
768
|
size="sm"
|
|
686
769
|
onClick={() => folderInputRef.current?.click()}
|
|
687
770
|
>
|
|
688
|
-
|
|
771
|
+
{t("documents.upload.selectFolder")}
|
|
689
772
|
</Button>
|
|
690
773
|
{/*
|
|
691
774
|
`webkitdirectory` / `directory` are non-standard attributes
|
|
@@ -698,15 +781,22 @@ export function DocUploadDialog({
|
|
|
698
781
|
multiple
|
|
699
782
|
className="hidden"
|
|
700
783
|
onChange={handleFolderSelect}
|
|
701
|
-
{...({ webkitdirectory: "", directory: "" } as Record<
|
|
784
|
+
{...({ webkitdirectory: "", directory: "" } as Record<
|
|
785
|
+
string,
|
|
786
|
+
string
|
|
787
|
+
>)}
|
|
702
788
|
/>
|
|
703
789
|
</div>
|
|
704
790
|
|
|
705
791
|
<div className="rounded-lg border border-[hsl(var(--border))] bg-[hsl(var(--secondary))]/30 p-3 space-y-3">
|
|
706
|
-
<div className="text-xs font-medium text-foreground"
|
|
792
|
+
<div className="text-xs font-medium text-foreground">
|
|
793
|
+
{t("documents.upload.filterOptions")}
|
|
794
|
+
</div>
|
|
707
795
|
<div className="grid grid-cols-2 gap-3">
|
|
708
796
|
<div className="space-y-1">
|
|
709
|
-
<Label className="text-xs text-muted-foreground"
|
|
797
|
+
<Label className="text-xs text-muted-foreground">
|
|
798
|
+
{t("documents.upload.includeExtensions")}
|
|
799
|
+
</Label>
|
|
710
800
|
<Input
|
|
711
801
|
placeholder=".md, .pdf, .txt"
|
|
712
802
|
value={includeInput}
|
|
@@ -715,7 +805,9 @@ export function DocUploadDialog({
|
|
|
715
805
|
/>
|
|
716
806
|
</div>
|
|
717
807
|
<div className="space-y-1">
|
|
718
|
-
<Label className="text-xs text-muted-foreground"
|
|
808
|
+
<Label className="text-xs text-muted-foreground">
|
|
809
|
+
{t("documents.upload.excludeExtensions")}
|
|
810
|
+
</Label>
|
|
719
811
|
<Input
|
|
720
812
|
placeholder=".log, .tmp"
|
|
721
813
|
value={excludeInput}
|
|
@@ -729,7 +821,7 @@ export function DocUploadDialog({
|
|
|
729
821
|
checked={recursive}
|
|
730
822
|
onCheckedChange={(v) => setRecursive(v === true)}
|
|
731
823
|
/>
|
|
732
|
-
|
|
824
|
+
{t("documents.upload.recursive")}
|
|
733
825
|
</label>
|
|
734
826
|
</div>
|
|
735
827
|
|
|
@@ -737,13 +829,15 @@ export function DocUploadDialog({
|
|
|
737
829
|
<div className="space-y-2">
|
|
738
830
|
<div className="flex items-center justify-between text-xs text-[hsl(var(--muted-foreground))]">
|
|
739
831
|
<span>
|
|
740
|
-
|
|
741
|
-
<span className="font-medium text-foreground">
|
|
742
|
-
|
|
832
|
+
{t("documents.upload.folderSelectedPrefix")}
|
|
833
|
+
<span className="font-medium text-foreground">
|
|
834
|
+
{folderRaw.length}
|
|
835
|
+
</span>
|
|
836
|
+
{t("documents.upload.folderSelectedMiddle")}
|
|
743
837
|
<span className="font-medium text-[hsl(var(--primary))]">
|
|
744
838
|
{folderFiltered.length}
|
|
745
|
-
</span>
|
|
746
|
-
|
|
839
|
+
</span>
|
|
840
|
+
{t("documents.upload.folderSelectedSuffix")}
|
|
747
841
|
</span>
|
|
748
842
|
</div>
|
|
749
843
|
{folderFiltered.length > 0 && (
|
|
@@ -761,7 +855,9 @@ export function DocUploadDialog({
|
|
|
761
855
|
))}
|
|
762
856
|
{folderFiltered.length > 50 && (
|
|
763
857
|
<div className="text-xs text-[hsl(var(--muted-foreground))] pt-1 px-2">
|
|
764
|
-
|
|
858
|
+
{t("documents.upload.folderMoreHidden", {
|
|
859
|
+
count: folderFiltered.length - 50,
|
|
860
|
+
})}
|
|
765
861
|
</div>
|
|
766
862
|
)}
|
|
767
863
|
</div>
|
|
@@ -784,21 +880,31 @@ export function DocUploadDialog({
|
|
|
784
880
|
{/* 子空间 */}
|
|
785
881
|
<div className="space-y-2">
|
|
786
882
|
<Label className="flex items-center gap-2">
|
|
787
|
-
|
|
883
|
+
{t("documents.upload.subspaceOptional")}
|
|
788
884
|
{defaultSubspace && (
|
|
789
885
|
<span className="text-xs font-normal text-muted-foreground">
|
|
790
|
-
|
|
886
|
+
{t("documents.upload.subspaceDefault", {
|
|
887
|
+
name: defaultSubspace,
|
|
888
|
+
})}
|
|
791
889
|
</span>
|
|
792
890
|
)}
|
|
793
891
|
</Label>
|
|
794
892
|
<Input
|
|
795
|
-
placeholder={
|
|
893
|
+
placeholder={
|
|
894
|
+
defaultSubspace
|
|
895
|
+
? t("documents.upload.subspaceCurrentPlaceholder")
|
|
896
|
+
: t("documents.upload.subspaceInputPlaceholder")
|
|
897
|
+
}
|
|
796
898
|
value={subspace}
|
|
797
899
|
onChange={(event) => setSubspace(event.target.value)}
|
|
798
900
|
/>
|
|
799
901
|
{defaultSubspace && subspace !== defaultSubspace && (
|
|
800
902
|
<p className="text-xs text-muted-foreground">
|
|
801
|
-
|
|
903
|
+
{t("documents.upload.subspaceDiffHintPrefix")}
|
|
904
|
+
{subspace || t("documents.upload.subspaceEmpty")}
|
|
905
|
+
{t("documents.upload.subspaceDiffHintMiddle")}
|
|
906
|
+
{defaultSubspace}
|
|
907
|
+
{t("documents.upload.subspaceDiffHintSuffix")}
|
|
802
908
|
</p>
|
|
803
909
|
)}
|
|
804
910
|
</div>
|
|
@@ -806,7 +912,7 @@ export function DocUploadDialog({
|
|
|
806
912
|
{/* Metadata */}
|
|
807
913
|
{hasSchemaFields && (
|
|
808
914
|
<div className="space-y-3">
|
|
809
|
-
<Label>
|
|
915
|
+
<Label>{t("documents.upload.metadataOptional")}</Label>
|
|
810
916
|
<div className="space-y-3 rounded-md border border-[hsl(var(--border))] p-3">
|
|
811
917
|
{metadataFields!.map((field) => (
|
|
812
918
|
<div key={field.name} className="space-y-1">
|
|
@@ -837,7 +943,7 @@ export function DocUploadDialog({
|
|
|
837
943
|
) : (
|
|
838
944
|
<ChevronRight className="h-3 w-3" />
|
|
839
945
|
)}
|
|
840
|
-
|
|
946
|
+
{t("documents.upload.jsonPreview")}
|
|
841
947
|
</button>
|
|
842
948
|
{jsonPreviewOpen && (
|
|
843
949
|
<pre className="px-3 pb-3 text-xs font-mono overflow-auto max-h-40 text-[hsl(var(--foreground))]">
|
|
@@ -856,10 +962,16 @@ export function DocUploadDialog({
|
|
|
856
962
|
<div className="space-y-1.5">
|
|
857
963
|
<div className="flex items-center justify-between text-xs text-[hsl(var(--muted-foreground))]">
|
|
858
964
|
<span>
|
|
859
|
-
|
|
965
|
+
{t("documents.upload.batchProgress", {
|
|
966
|
+
completed: uploadDocuments.progress.completedBatches,
|
|
967
|
+
total: uploadDocuments.progress.totalBatches,
|
|
968
|
+
})}
|
|
860
969
|
</span>
|
|
861
970
|
<span>
|
|
862
|
-
{
|
|
971
|
+
{t("documents.upload.filesProgress", {
|
|
972
|
+
completed: uploadDocuments.progress.completedFiles,
|
|
973
|
+
total: uploadDocuments.progress.totalFiles,
|
|
974
|
+
})}
|
|
863
975
|
</span>
|
|
864
976
|
</div>
|
|
865
977
|
<div className="h-1.5 w-full overflow-hidden rounded-full bg-[hsl(var(--secondary))]">
|
|
@@ -873,11 +985,16 @@ export function DocUploadDialog({
|
|
|
873
985
|
{uploadDocuments.progress.errors.length > 0 && (
|
|
874
986
|
<div className="space-y-1">
|
|
875
987
|
<p className="text-xs font-medium text-[hsl(var(--destructive))]">
|
|
876
|
-
{
|
|
988
|
+
{t("documents.upload.batchErrorCount", {
|
|
989
|
+
count: uploadDocuments.progress.errors.length,
|
|
990
|
+
})}
|
|
877
991
|
</p>
|
|
878
992
|
<div className="max-h-20 overflow-y-auto rounded-md border border-[hsl(var(--destructive))]/20 bg-[hsl(var(--destructive))]/5 px-2.5 py-1.5 space-y-0.5">
|
|
879
993
|
{uploadDocuments.progress.errors.map((err, i) => (
|
|
880
|
-
<p
|
|
994
|
+
<p
|
|
995
|
+
key={i}
|
|
996
|
+
className="text-xs text-[hsl(var(--destructive))]/80 break-words"
|
|
997
|
+
>
|
|
881
998
|
{err}
|
|
882
999
|
</p>
|
|
883
1000
|
))}
|
|
@@ -896,7 +1013,7 @@ export function DocUploadDialog({
|
|
|
896
1013
|
}}
|
|
897
1014
|
disabled={uploadDocuments.isPending || ossImport.isPending}
|
|
898
1015
|
>
|
|
899
|
-
|
|
1016
|
+
{t("common.cancel")}
|
|
900
1017
|
</Button>
|
|
901
1018
|
<Button
|
|
902
1019
|
onClick={handleSubmit}
|
|
@@ -910,14 +1027,24 @@ export function DocUploadDialog({
|
|
|
910
1027
|
{mode === "oss"
|
|
911
1028
|
? ossImport.isPending
|
|
912
1029
|
? ossImport.progress
|
|
913
|
-
?
|
|
914
|
-
|
|
915
|
-
|
|
1030
|
+
? t("documents.upload.importing", {
|
|
1031
|
+
completed: ossImport.progress.completedItems,
|
|
1032
|
+
total: ossImport.progress.totalItems,
|
|
1033
|
+
})
|
|
1034
|
+
: t("documents.upload.submitting")
|
|
1035
|
+
: t("documents.upload.importCount", {
|
|
1036
|
+
count: ossSelection.length,
|
|
1037
|
+
})
|
|
916
1038
|
: uploadDocuments.isPending
|
|
917
1039
|
? uploadDocuments.progress
|
|
918
|
-
?
|
|
919
|
-
|
|
920
|
-
|
|
1040
|
+
? t("documents.upload.uploading", {
|
|
1041
|
+
completed: uploadDocuments.progress.completedFiles,
|
|
1042
|
+
total: uploadDocuments.progress.totalFiles,
|
|
1043
|
+
})
|
|
1044
|
+
: t("documents.upload.preparingUpload")
|
|
1045
|
+
: t("documents.upload.uploadCount", {
|
|
1046
|
+
count: effectiveFiles.length,
|
|
1047
|
+
})}
|
|
921
1048
|
</Button>
|
|
922
1049
|
</DialogFooter>
|
|
923
1050
|
</DialogContent>
|