@tablestore/tablestore-agent-cli 0.2.8 → 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 +9 -7
- package/dist/commands/configure.js.map +1 -1
- package/dist/commands/dashboard.d.ts.map +1 -1
- package/dist/commands/dashboard.js +5 -4
- package/dist/commands/dashboard.js.map +1 -1
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +167 -51
- 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} +7 -7
- 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} +7 -7
- 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} +8 -8
- 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 +8 -17
- 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 +186 -67
- 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 +7 -5
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/instances/[name]/use/route.ts +1 -2
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/instances/route.ts +4 -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 +173 -72
- package/dist/dashboard-runtime/dashboard/src/components/instance/edit-instance-dialog.tsx +11 -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-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 +41 -13
- 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 +8 -5
- 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 +30 -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/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/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 +70 -3
- 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 +4 -7
- 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 +21 -4
- 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 +17 -8
- 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/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.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/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 +70 -3
- 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 +4 -7
- 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 +21 -4
- 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 +17 -8
- package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/config.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.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 +2 -2
- 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/_0l-4ms-._.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/_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/_0x05u0y._.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-ldkvvj51n5..js +0 -5
- 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/01ccz9pw1s5-1.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/0b2g7gajnlz-x.js +0 -4
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0czi-68m5cma3.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0eg702en0ykod.js +0 -1
- 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/0jwl.kgoaubdz.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0o3sqa_d7_k15.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0oatn7x1t1x~~.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/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/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/0zp_ao86_7617.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/10oar3if2rs8f.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/140~~66uc8843.css +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/1692-f0t3ef~c.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/16z7~ksa815uh.js +0 -1
- /package/dist/dashboard-runtime/dashboard/.next/static/{sk6oO3r92_OgCvicmyYrR → be0fa_T3EkD9v2fJGsvLd}/_buildManifest.js +0 -0
- /package/dist/dashboard-runtime/dashboard/.next/static/{sk6oO3r92_OgCvicmyYrR → be0fa_T3EkD9v2fJGsvLd}/_clientMiddlewareManifest.js +0 -0
- /package/dist/dashboard-runtime/dashboard/.next/static/{sk6oO3r92_OgCvicmyYrR → be0fa_T3EkD9v2fJGsvLd}/_ssgManifest.js +0 -0
|
@@ -36,7 +36,8 @@ export function showApiError(
|
|
|
36
36
|
}
|
|
37
37
|
return;
|
|
38
38
|
}
|
|
39
|
-
const message =
|
|
39
|
+
const message =
|
|
40
|
+
error instanceof Error ? error.message : String(error ?? "未知错误");
|
|
40
41
|
toast.error(options.fallbackTitle ?? message);
|
|
41
42
|
}
|
|
42
43
|
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 会话内「沉淀到知识库」触发的资格判断(纯函数,便于单测)。
|
|
3
|
+
*
|
|
4
|
+
* 需求:会话已同时绑定记忆库 + 至少挂载一个知识库,即可在助手回复下方出现
|
|
5
|
+
* 「总结 skill / 提取画像」动作。不限制轮次——每一轮都可提取。
|
|
6
|
+
*/
|
|
7
|
+
export function isDreamDepositEligible(args: {
|
|
8
|
+
/** 会话是否已绑定记忆库且 scope 完整。 */
|
|
9
|
+
hasMemory: boolean;
|
|
10
|
+
/** 会话已挂载的知识库数量。 */
|
|
11
|
+
mountedKbCount: number;
|
|
12
|
+
}): boolean {
|
|
13
|
+
return args.hasMemory && args.mountedKbCount >= 1;
|
|
14
|
+
}
|
|
@@ -50,7 +50,10 @@ export function removeAt<T extends MinimalMsg>(list: T[], id: string): T[] {
|
|
|
50
50
|
* either because it's another user message or because the user message is
|
|
51
51
|
* at the tail — only the user message is removed.
|
|
52
52
|
*/
|
|
53
|
-
export function removePair<T extends MinimalMsg>(
|
|
53
|
+
export function removePair<T extends MinimalMsg>(
|
|
54
|
+
list: T[],
|
|
55
|
+
userId: string,
|
|
56
|
+
): T[] {
|
|
54
57
|
const idx = list.findIndex((m) => m.id === userId);
|
|
55
58
|
if (idx < 0) return list;
|
|
56
59
|
const next = list.slice();
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { DreamKind } from "./types";
|
|
2
|
+
import { sha256Hex } from "./hash";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* 会话级沉淀文件名:每个会话(scopeKey,含 runId)每种类型固定一个文件,
|
|
6
|
+
* 便于同会话重复提取时用确定性文件名覆盖旧文件。
|
|
7
|
+
*/
|
|
8
|
+
export function buildSessionDreamDocFileName(
|
|
9
|
+
kind: DreamKind,
|
|
10
|
+
scopeKey: string,
|
|
11
|
+
): string {
|
|
12
|
+
return `dream-${kind}-${sha256Hex(scopeKey).slice(0, 16)}.md`;
|
|
13
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import type { DreamExtractSpec, DreamKind } from "./types";
|
|
2
|
+
|
|
3
|
+
function frontmatter(
|
|
4
|
+
dreamId: string,
|
|
5
|
+
scopeKey: string,
|
|
6
|
+
kind: DreamKind,
|
|
7
|
+
): string {
|
|
8
|
+
return `---\ndreamId: ${dreamId} · scope: ${scopeKey} · kind: ${kind} · 会话内提取\n---\n`;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/** profile 的 instructions(JSON map 字符串)→ 排序键值文本;失败降级原文。 */
|
|
12
|
+
function renderProfileBody(instructions: string): {
|
|
13
|
+
body: string;
|
|
14
|
+
warning?: string;
|
|
15
|
+
} {
|
|
16
|
+
try {
|
|
17
|
+
const obj = JSON.parse(instructions) as Record<string, unknown>;
|
|
18
|
+
if (obj === null || typeof obj !== "object" || Array.isArray(obj)) {
|
|
19
|
+
throw new Error("profile instructions is not a JSON object");
|
|
20
|
+
}
|
|
21
|
+
const lines = Object.keys(obj)
|
|
22
|
+
.sort()
|
|
23
|
+
.map((k) => {
|
|
24
|
+
const v = obj[k];
|
|
25
|
+
// 非基本类型(数组/嵌套对象/null)用 JSON.stringify 保真,避免 "[object Object]" 丢内容。
|
|
26
|
+
const rendered =
|
|
27
|
+
v !== null && typeof v === "object" ? JSON.stringify(v) : String(v);
|
|
28
|
+
return `- ${k}:${rendered}`;
|
|
29
|
+
});
|
|
30
|
+
return { body: lines.join("\n") };
|
|
31
|
+
} catch (err) {
|
|
32
|
+
return {
|
|
33
|
+
body: instructions.trimEnd(),
|
|
34
|
+
warning: `profile instructions JSON parse failed, fell back to raw: ${
|
|
35
|
+
err instanceof Error ? err.message : String(err)
|
|
36
|
+
}`,
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* 把本次会话某一类型(skill/profile)的全部产出合并成**一个**文档。
|
|
43
|
+
* 同会话重复提取时,配合确定性文件名整体覆盖旧文件。
|
|
44
|
+
*
|
|
45
|
+
* - skill:`# 会话技能总结` + 每个技能一个 `## 名称` 小节。
|
|
46
|
+
* - profile:`# 用户画像` + 各画像的排序键值文本(通常一条)。
|
|
47
|
+
*/
|
|
48
|
+
export function buildSessionDreamDoc(args: {
|
|
49
|
+
kind: DreamKind;
|
|
50
|
+
specs: DreamExtractSpec[];
|
|
51
|
+
dreamId: string;
|
|
52
|
+
scopeKey: string;
|
|
53
|
+
}): { content: string; count: number; warning?: string } {
|
|
54
|
+
const { kind, specs, dreamId, scopeKey } = args;
|
|
55
|
+
const warnings: string[] = [];
|
|
56
|
+
let body: string;
|
|
57
|
+
|
|
58
|
+
if (kind === "profile") {
|
|
59
|
+
const sections = specs.map((spec) => {
|
|
60
|
+
const r = renderProfileBody(spec.instructions);
|
|
61
|
+
if (r.warning) warnings.push(r.warning);
|
|
62
|
+
return r.body;
|
|
63
|
+
});
|
|
64
|
+
body = `# 用户画像\n\n${sections.join("\n\n")}`;
|
|
65
|
+
} else {
|
|
66
|
+
const sections = specs.map((spec) => {
|
|
67
|
+
const desc = spec.description ? `> ${spec.description}\n\n` : "";
|
|
68
|
+
return `## ${spec.name}\n\n${desc}${spec.instructions.trimEnd()}`;
|
|
69
|
+
});
|
|
70
|
+
body = `# 会话技能总结\n\n${sections.join("\n\n")}`;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
const content = `${frontmatter(dreamId, scopeKey, kind)}${body}`;
|
|
74
|
+
return {
|
|
75
|
+
content,
|
|
76
|
+
count: specs.length,
|
|
77
|
+
...(warnings.length ? { warning: warnings.join("; ") } : {}),
|
|
78
|
+
};
|
|
79
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// dashboard/src/lib/dream-kb/scope.ts
|
|
2
|
+
import type { DreamScope } from "./types";
|
|
3
|
+
|
|
4
|
+
export const DEFAULT_SEGMENT = "__default__";
|
|
5
|
+
|
|
6
|
+
/** 空/undefined → "__default__";其余(含 "*")原样返回。 */
|
|
7
|
+
export function normalizeSegment(v: string | undefined): string {
|
|
8
|
+
return v && v.length > 0 ? v : DEFAULT_SEGMENT;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/** 拼四级 concrete scopeKey,空段填 __default__。 */
|
|
12
|
+
export function buildScopeKey(scope: DreamScope): string {
|
|
13
|
+
return [
|
|
14
|
+
normalizeSegment(scope.appId),
|
|
15
|
+
normalizeSegment(scope.tenantId),
|
|
16
|
+
normalizeSegment(scope.agentId),
|
|
17
|
+
normalizeSegment(scope.runId),
|
|
18
|
+
].join("/");
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* 逐级精确匹配:filter 某级为 "*" 时该级任意,否则必须字符串全等。
|
|
23
|
+
* 禁止前缀匹配。arity 不同直接不匹配。
|
|
24
|
+
*/
|
|
25
|
+
export function matchesScope(
|
|
26
|
+
docScopeKey: string,
|
|
27
|
+
filterScopeKey: string,
|
|
28
|
+
): boolean {
|
|
29
|
+
const doc = docScopeKey.split("/");
|
|
30
|
+
const filter = filterScopeKey.split("/");
|
|
31
|
+
if (doc.length !== filter.length) return false;
|
|
32
|
+
for (let i = 0; i < doc.length; i++) {
|
|
33
|
+
if (filter[i] === "*") continue;
|
|
34
|
+
if (filter[i] !== doc[i]) return false;
|
|
35
|
+
}
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// dream-kb 会话内沉淀的共享数据契约。
|
|
2
|
+
|
|
3
|
+
export type DreamKind = "skill" | "profile";
|
|
4
|
+
|
|
5
|
+
/** concrete scope(当前会话,含 runId)。 */
|
|
6
|
+
export interface DreamScope {
|
|
7
|
+
appId: string;
|
|
8
|
+
tenantId: string;
|
|
9
|
+
agentId: string;
|
|
10
|
+
runId: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/** 一条 EMIT_SKILL / EMIT_PROFILE 动作的产出内容(来自 action.newExtract)。 */
|
|
14
|
+
export interface DreamExtractSpec {
|
|
15
|
+
kind: string;
|
|
16
|
+
name: string;
|
|
17
|
+
description: string;
|
|
18
|
+
instructions: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/** 沉淀结果:每种类型一条(一个会话文件),failures 记录出错的类型。 */
|
|
22
|
+
export interface DreamDepositResult {
|
|
23
|
+
deposited: Array<{ kind: DreamKind; fileName: string; count: number }>;
|
|
24
|
+
failures: Array<{ kind: DreamKind; error: string }>;
|
|
25
|
+
}
|
|
@@ -32,10 +32,16 @@ export function parseExtensionList(raw: string): string[] {
|
|
|
32
32
|
/** Pure name-based check. No path or depth involved — caller handles those. */
|
|
33
33
|
export function matchesExtension(name: string, rules: ExtensionRules): boolean {
|
|
34
34
|
const lower = name.toLowerCase();
|
|
35
|
-
if (
|
|
35
|
+
if (
|
|
36
|
+
rules.include.length > 0 &&
|
|
37
|
+
!rules.include.some((ext) => lower.endsWith(ext))
|
|
38
|
+
) {
|
|
36
39
|
return false;
|
|
37
40
|
}
|
|
38
|
-
if (
|
|
41
|
+
if (
|
|
42
|
+
rules.exclude.length > 0 &&
|
|
43
|
+
rules.exclude.some((ext) => lower.endsWith(ext))
|
|
44
|
+
) {
|
|
39
45
|
return false;
|
|
40
46
|
}
|
|
41
47
|
return true;
|
|
@@ -59,4 +65,3 @@ export function filterFolderFiles(
|
|
|
59
65
|
return matchesExtension(file.name, rules);
|
|
60
66
|
});
|
|
61
67
|
}
|
|
62
|
-
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 把平铺的相对路径列表(如 `people/bob.md`)构造成目录树,供文件记忆浏览器
|
|
3
|
+
* 以树形展示。纯函数,便于单测。
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
export interface FlatFile {
|
|
7
|
+
rel: string;
|
|
8
|
+
size: number;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface TreeFile {
|
|
12
|
+
type: "file";
|
|
13
|
+
name: string;
|
|
14
|
+
/** 完整相对路径,用于读取文件内容。 */
|
|
15
|
+
rel: string;
|
|
16
|
+
size: number;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface TreeDir {
|
|
20
|
+
type: "dir";
|
|
21
|
+
name: string;
|
|
22
|
+
/** 目录自身的相对路径(用于折叠状态的 key)。 */
|
|
23
|
+
rel: string;
|
|
24
|
+
children: TreeNode[];
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type TreeNode = TreeFile | TreeDir;
|
|
28
|
+
|
|
29
|
+
function sortChildren(nodes: TreeNode[]): void {
|
|
30
|
+
// 目录在前,同类按名字字典序。
|
|
31
|
+
nodes.sort((a, b) => {
|
|
32
|
+
if (a.type !== b.type) return a.type === "dir" ? -1 : 1;
|
|
33
|
+
return a.name.localeCompare(b.name);
|
|
34
|
+
});
|
|
35
|
+
for (const n of nodes) {
|
|
36
|
+
if (n.type === "dir") sortChildren(n.children);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/** 构造根目录节点(root 自身 name 为空、rel 为空)。 */
|
|
41
|
+
export function buildFileTree(files: FlatFile[]): TreeDir {
|
|
42
|
+
const root: TreeDir = { type: "dir", name: "", rel: "", children: [] };
|
|
43
|
+
|
|
44
|
+
for (const file of files) {
|
|
45
|
+
const parts = file.rel.split("/").filter(Boolean);
|
|
46
|
+
if (parts.length === 0) continue;
|
|
47
|
+
let cursor = root;
|
|
48
|
+
for (let i = 0; i < parts.length - 1; i += 1) {
|
|
49
|
+
const seg = parts[i];
|
|
50
|
+
const dirRel = parts.slice(0, i + 1).join("/");
|
|
51
|
+
let next = cursor.children.find(
|
|
52
|
+
(c): c is TreeDir => c.type === "dir" && c.name === seg,
|
|
53
|
+
);
|
|
54
|
+
if (!next) {
|
|
55
|
+
next = { type: "dir", name: seg, rel: dirRel, children: [] };
|
|
56
|
+
cursor.children.push(next);
|
|
57
|
+
}
|
|
58
|
+
cursor = next;
|
|
59
|
+
}
|
|
60
|
+
const name = parts[parts.length - 1];
|
|
61
|
+
// 避免重复添加同一文件。
|
|
62
|
+
if (!cursor.children.some((c) => c.type === "file" && c.name === name)) {
|
|
63
|
+
cursor.children.push({
|
|
64
|
+
type: "file",
|
|
65
|
+
name,
|
|
66
|
+
rel: file.rel,
|
|
67
|
+
size: file.size,
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
sortChildren(root.children);
|
|
73
|
+
return root;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export interface VisibleRow {
|
|
77
|
+
node: TreeNode;
|
|
78
|
+
depth: number;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* 把树按当前折叠状态拍平成可渲染的行列表(前序遍历)。`collapsed` 里存的是
|
|
83
|
+
* 折叠目录的 rel。折叠目录的子节点不产出行。
|
|
84
|
+
*/
|
|
85
|
+
export function flattenVisible(
|
|
86
|
+
root: TreeDir,
|
|
87
|
+
collapsed: ReadonlySet<string>,
|
|
88
|
+
): VisibleRow[] {
|
|
89
|
+
const rows: VisibleRow[] = [];
|
|
90
|
+
const walk = (nodes: TreeNode[], depth: number) => {
|
|
91
|
+
for (const node of nodes) {
|
|
92
|
+
rows.push({ node, depth });
|
|
93
|
+
if (node.type === "dir" && !collapsed.has(node.rel)) {
|
|
94
|
+
walk(node.children, depth + 1);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
walk(root.children, 0);
|
|
99
|
+
return rows;
|
|
100
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { LOCALE_HTML_LANG, type Locale } from "@/i18n/config";
|
|
2
|
+
|
|
3
|
+
const MISSING_PLACEHOLDER = "-";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Falsy values (undefined, null, "", 0, NaN) are treated as "not set" so they
|
|
7
|
+
* render as the "-" placeholder instead of a blank cell, 1970 or "NaN".
|
|
8
|
+
*/
|
|
9
|
+
function isMissing(
|
|
10
|
+
value: string | number | undefined | null,
|
|
11
|
+
): value is undefined | null | "" | 0 {
|
|
12
|
+
return !value;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function toDate(value: string | number): Date | null {
|
|
16
|
+
const d = new Date(value);
|
|
17
|
+
return isNaN(d.getTime()) ? null : d;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Full date + time, per active UI locale. Missing values render as "-";
|
|
22
|
+
* non-empty strings that cannot be parsed fall back to the raw value.
|
|
23
|
+
*/
|
|
24
|
+
export function formatDateTime(
|
|
25
|
+
value: string | number | undefined | null,
|
|
26
|
+
locale: Locale = "zh",
|
|
27
|
+
options: Intl.DateTimeFormatOptions = {
|
|
28
|
+
year: "numeric",
|
|
29
|
+
month: "2-digit",
|
|
30
|
+
day: "2-digit",
|
|
31
|
+
hour: "2-digit",
|
|
32
|
+
minute: "2-digit",
|
|
33
|
+
second: "2-digit",
|
|
34
|
+
},
|
|
35
|
+
): string {
|
|
36
|
+
if (isMissing(value)) return MISSING_PLACEHOLDER;
|
|
37
|
+
const d = toDate(value);
|
|
38
|
+
if (!d) return typeof value === "string" ? value : MISSING_PLACEHOLDER;
|
|
39
|
+
return d.toLocaleString(LOCALE_HTML_LANG[locale], options);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/** Time-of-day only, per active UI locale. */
|
|
43
|
+
export function formatTimeOfDay(
|
|
44
|
+
value: string | number | undefined | null,
|
|
45
|
+
locale: Locale = "zh",
|
|
46
|
+
options: Intl.DateTimeFormatOptions = {
|
|
47
|
+
hour: "2-digit",
|
|
48
|
+
minute: "2-digit",
|
|
49
|
+
second: "2-digit",
|
|
50
|
+
},
|
|
51
|
+
): string {
|
|
52
|
+
if (isMissing(value)) return MISSING_PLACEHOLDER;
|
|
53
|
+
const d = toDate(value);
|
|
54
|
+
if (!d) return typeof value === "string" ? value : MISSING_PLACEHOLDER;
|
|
55
|
+
return d.toLocaleTimeString(LOCALE_HTML_LANG[locale], options);
|
|
56
|
+
}
|
|
@@ -31,7 +31,9 @@ function tokenize(raw: string): string[] {
|
|
|
31
31
|
* users who type the canonical glob form don't get a double-star.
|
|
32
32
|
*/
|
|
33
33
|
export function parseSuffixGlobs(raw: string): string[] {
|
|
34
|
-
return tokenize(raw).map((token) =>
|
|
34
|
+
return tokenize(raw).map((token) =>
|
|
35
|
+
token.startsWith("*") ? token : `*${token}`,
|
|
36
|
+
);
|
|
35
37
|
}
|
|
36
38
|
|
|
37
39
|
/**
|
|
@@ -41,7 +43,9 @@ export function parseSuffixGlobs(raw: string): string[] {
|
|
|
41
43
|
* Idempotent on tokens already ending in `*`.
|
|
42
44
|
*/
|
|
43
45
|
export function parsePrefixGlobs(raw: string): string[] {
|
|
44
|
-
return tokenize(raw).map((token) =>
|
|
46
|
+
return tokenize(raw).map((token) =>
|
|
47
|
+
token.endsWith("*") ? token : `${token}*`,
|
|
48
|
+
);
|
|
45
49
|
}
|
|
46
50
|
|
|
47
51
|
/**
|
|
@@ -70,7 +74,9 @@ export function buildFolderGlobs(inputs: FolderGlobInputs): {
|
|
|
70
74
|
...parseSuffixGlobs(inputs.suffixExcludeInput),
|
|
71
75
|
];
|
|
72
76
|
return {
|
|
73
|
-
inclusionFilters:
|
|
74
|
-
|
|
77
|
+
inclusionFilters:
|
|
78
|
+
inclusionFilters.length > 0 ? inclusionFilters : undefined,
|
|
79
|
+
exclusionFilters:
|
|
80
|
+
exclusionFilters.length > 0 ? exclusionFilters : undefined,
|
|
75
81
|
};
|
|
76
82
|
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 记忆库存储模式(storageMode)——创建时定死、不可修改。
|
|
3
|
+
* - "ots" 仅 API 记忆:只走 Tablestore,通过语义检索读写,无文件投影。
|
|
4
|
+
* - "oss+ots" 支持文件记忆:Tablestore + OSS 文件投影,记忆额外投影成 markdown
|
|
5
|
+
* 文件树,可在对话中以文件形式检索、在控制台/CLI 浏览目录结构。
|
|
6
|
+
*/
|
|
7
|
+
import type { TranslateFn } from "@/i18n/i18n-context";
|
|
8
|
+
|
|
9
|
+
export type StorageMode = "ots" | "oss+ots";
|
|
10
|
+
|
|
11
|
+
/** 建库时可选的两种模式(顺序即 UI 展示顺序,默认取第一个 ots)。 */
|
|
12
|
+
export const STORAGE_MODE_VALUES: StorageMode[] = ["ots", "oss+ots"];
|
|
13
|
+
|
|
14
|
+
/** 服务端把空值/历史行视为 ots;这里统一归一,未知值也回落 ots。 */
|
|
15
|
+
export function normalizeStorageMode(
|
|
16
|
+
value: string | undefined | null,
|
|
17
|
+
): StorageMode {
|
|
18
|
+
return value === "oss+ots" ? "oss+ots" : "ots";
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export function isFileMemory(value: string | undefined | null): boolean {
|
|
22
|
+
return normalizeStorageMode(value) === "oss+ots";
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export function storageModeLabel(
|
|
26
|
+
value: string | undefined | null,
|
|
27
|
+
t?: TranslateFn,
|
|
28
|
+
): string {
|
|
29
|
+
if (t) {
|
|
30
|
+
return t(
|
|
31
|
+
isFileMemory(value)
|
|
32
|
+
? "memory.storageMode.fileLabel"
|
|
33
|
+
: "memory.storageMode.apiOnlyLabel",
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
// Locale-neutral fallback; all production callers pass `t` (see settings
|
|
37
|
+
// page, memory-create-form, memory-store-card).
|
|
38
|
+
return isFileMemory(value) ? "File Memory" : "API-only Memory";
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* 计算记忆库绑定实际生效的检索模式。文件记忆(local)只对 `oss+ots` 库有意义;
|
|
43
|
+
* 若绑定的库不是文件型,一律回落 search——避免非文件型库被选成文件记忆后走错
|
|
44
|
+
* 分支报错。
|
|
45
|
+
*/
|
|
46
|
+
export function resolveRetrievalMode(
|
|
47
|
+
mode: "search" | "local" | undefined,
|
|
48
|
+
isFileStore: boolean,
|
|
49
|
+
): "search" | "local" {
|
|
50
|
+
if (!isFileStore) return "search";
|
|
51
|
+
return mode === "local" ? "local" : "search";
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function storageModeDescription(
|
|
55
|
+
value: string | undefined | null,
|
|
56
|
+
t?: TranslateFn,
|
|
57
|
+
): string {
|
|
58
|
+
if (t) {
|
|
59
|
+
return t(
|
|
60
|
+
isFileMemory(value)
|
|
61
|
+
? "memory.storageMode.fileDescription"
|
|
62
|
+
: "memory.storageMode.apiOnlyDescription",
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
return isFileMemory(value)
|
|
66
|
+
? "Tablestore + OSS file projection: memory is additionally projected into a markdown file tree, retrievable as files in conversations and browsable in the console and CLI."
|
|
67
|
+
: "Tablestore only: read and write memory via API semantic retrieval, no file projection.";
|
|
68
|
+
}
|
|
@@ -16,18 +16,24 @@ export function hasWildcardScope(scope: MemoryScope): boolean {
|
|
|
16
16
|
/** All four scope fields are present and none is `*`. */
|
|
17
17
|
export function hasPreciseScope(scope: MemoryScope): boolean {
|
|
18
18
|
return (
|
|
19
|
-
!!scope.appId &&
|
|
20
|
-
|
|
21
|
-
!!scope.
|
|
22
|
-
|
|
19
|
+
!!scope.appId &&
|
|
20
|
+
scope.appId !== "*" &&
|
|
21
|
+
!!scope.tenantId &&
|
|
22
|
+
scope.tenantId !== "*" &&
|
|
23
|
+
!!scope.agentId &&
|
|
24
|
+
scope.agentId !== "*" &&
|
|
25
|
+
!!scope.runId &&
|
|
26
|
+
scope.runId !== "*"
|
|
23
27
|
);
|
|
24
28
|
}
|
|
25
29
|
|
|
26
30
|
/** appId and tenantId are present and not `*` (minimum for search). */
|
|
27
31
|
export function hasSearchableScope(scope: MemoryScope): boolean {
|
|
28
32
|
return (
|
|
29
|
-
!!scope.appId &&
|
|
30
|
-
|
|
33
|
+
!!scope.appId &&
|
|
34
|
+
scope.appId !== "*" &&
|
|
35
|
+
!!scope.tenantId &&
|
|
36
|
+
scope.tenantId !== "*"
|
|
31
37
|
);
|
|
32
38
|
}
|
|
33
39
|
|
|
@@ -42,12 +48,9 @@ export function scopeToSearchParams(scope: MemoryScope): URLSearchParams {
|
|
|
42
48
|
|
|
43
49
|
export function formatScope(scope?: MemoryScope): string {
|
|
44
50
|
if (!scope) return "-";
|
|
45
|
-
return [
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
scope.agentId,
|
|
49
|
-
scope.runId,
|
|
50
|
-
].filter(Boolean).join(" / ");
|
|
51
|
+
return [scope.appId, scope.tenantId, scope.agentId, scope.runId]
|
|
52
|
+
.filter(Boolean)
|
|
53
|
+
.join(" / ");
|
|
51
54
|
}
|
|
52
55
|
|
|
53
56
|
/**
|
|
@@ -124,7 +127,32 @@ export function groupDreamTasksByScope(tasks: DreamTask[]): DreamTaskGroup[] {
|
|
|
124
127
|
return result;
|
|
125
128
|
}
|
|
126
129
|
|
|
127
|
-
|
|
130
|
+
/** How the dream task list is ordered/grouped in the UI. */
|
|
131
|
+
export type DreamTaskSortMode = "time_desc" | "time_asc" | "scope";
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Order dream tasks globally by `createdAt`, ignoring scope.
|
|
135
|
+
*
|
|
136
|
+
* The Dream list API returns tasks scope-major (createdAt desc *within* a
|
|
137
|
+
* scope, but not globally), so a coherent global timeline must be computed
|
|
138
|
+
* client-side. Returns a new array; the input is left untouched. Ties break by
|
|
139
|
+
* `dreamId` so the order is stable across re-renders regardless of direction.
|
|
140
|
+
*/
|
|
141
|
+
export function sortDreamTasksByCreatedAt(
|
|
142
|
+
tasks: DreamTask[],
|
|
143
|
+
direction: "desc" | "asc",
|
|
144
|
+
): DreamTask[] {
|
|
145
|
+
const sign = direction === "asc" ? 1 : -1;
|
|
146
|
+
return [...tasks].sort((a, b) => {
|
|
147
|
+
const diff = dreamTaskCreatedMs(a) - dreamTaskCreatedMs(b);
|
|
148
|
+
if (diff !== 0) return sign * diff;
|
|
149
|
+
return sign * a.dreamId.localeCompare(b.dreamId);
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export function parseJsonObject(
|
|
154
|
+
value: string,
|
|
155
|
+
): Record<string, string> | undefined {
|
|
128
156
|
if (!value.trim()) return undefined;
|
|
129
157
|
const parsed = JSON.parse(value) as unknown;
|
|
130
158
|
if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) {
|
|
@@ -31,7 +31,10 @@ export function convertMetadataValues(
|
|
|
31
31
|
case "double_list":
|
|
32
32
|
case "boolean_list":
|
|
33
33
|
case "date_list": {
|
|
34
|
-
const parts = raw
|
|
34
|
+
const parts = raw
|
|
35
|
+
.split(",")
|
|
36
|
+
.map((s) => s.trim())
|
|
37
|
+
.filter(Boolean);
|
|
35
38
|
if (field.type === "long_list")
|
|
36
39
|
result[field.name] = parts.map((p) => parseInt(p, 10));
|
|
37
40
|
else if (field.type === "double_list")
|
|
@@ -6,7 +6,7 @@ import type { ChangeEvent } from "react";
|
|
|
6
6
|
* 用于 react-hook-form 的 number 类型字段。
|
|
7
7
|
*/
|
|
8
8
|
export function handleNumberInput(
|
|
9
|
-
onChange: (value: number | undefined) => void
|
|
9
|
+
onChange: (value: number | undefined) => void,
|
|
10
10
|
) {
|
|
11
11
|
return (e: ChangeEvent<HTMLInputElement>) => {
|
|
12
12
|
onChange(e.target.value ? Number(e.target.value) : undefined);
|
|
@@ -33,7 +33,9 @@ export function toggleFolder(
|
|
|
33
33
|
folder: { prefix: string },
|
|
34
34
|
): OssSelection {
|
|
35
35
|
if (isFolderSelected(sel, folder.prefix)) {
|
|
36
|
-
return sel.filter(
|
|
36
|
+
return sel.filter(
|
|
37
|
+
(s) => !(s.type === "folder" && s.prefix === folder.prefix),
|
|
38
|
+
);
|
|
37
39
|
}
|
|
38
40
|
return [...sel, { type: "folder", prefix: folder.prefix }];
|
|
39
41
|
}
|
|
@@ -57,14 +57,32 @@ export const queryKeys = {
|
|
|
57
57
|
nextToken?: string,
|
|
58
58
|
limit?: number,
|
|
59
59
|
) =>
|
|
60
|
-
[
|
|
60
|
+
[
|
|
61
|
+
"memory",
|
|
62
|
+
scopeKey,
|
|
63
|
+
"stores",
|
|
64
|
+
memoryStoreName,
|
|
65
|
+
"units",
|
|
66
|
+
scope,
|
|
67
|
+
nextToken,
|
|
68
|
+
limit,
|
|
69
|
+
] as const,
|
|
61
70
|
memoryUnit: (
|
|
62
71
|
scopeKey: string,
|
|
63
72
|
memoryStoreName: string,
|
|
64
73
|
memoryId: string | undefined,
|
|
65
74
|
scope: unknown,
|
|
66
75
|
) =>
|
|
67
|
-
[
|
|
76
|
+
[
|
|
77
|
+
"memory",
|
|
78
|
+
scopeKey,
|
|
79
|
+
"stores",
|
|
80
|
+
memoryStoreName,
|
|
81
|
+
"units",
|
|
82
|
+
"detail",
|
|
83
|
+
memoryId,
|
|
84
|
+
scope,
|
|
85
|
+
] as const,
|
|
68
86
|
memoryRequests: (
|
|
69
87
|
scopeKey: string,
|
|
70
88
|
memoryStoreName: string,
|
|
@@ -262,7 +280,9 @@ export function resetInstanceScopedQueries(
|
|
|
262
280
|
});
|
|
263
281
|
}
|
|
264
282
|
|
|
265
|
-
export function invalidateInstanceScopedQueries(
|
|
283
|
+
export function invalidateInstanceScopedQueries(
|
|
284
|
+
queryClient: QueryClient,
|
|
285
|
+
): void {
|
|
266
286
|
queryClient.invalidateQueries({
|
|
267
287
|
predicate: (query) => isInstanceScopedQueryKey(query.queryKey),
|
|
268
288
|
});
|
|
@@ -292,6 +312,8 @@ export function invalidateCustomPolicyQueries(queryClient: QueryClient): void {
|
|
|
292
312
|
queryClient.invalidateQueries({ queryKey: ["custom-policy"] });
|
|
293
313
|
}
|
|
294
314
|
|
|
295
|
-
export function invalidateEffectivePermissionsQueries(
|
|
315
|
+
export function invalidateEffectivePermissionsQueries(
|
|
316
|
+
queryClient: QueryClient,
|
|
317
|
+
): void {
|
|
296
318
|
queryClient.invalidateQueries({ queryKey: ["effective-permissions"] });
|
|
297
319
|
}
|
|
@@ -149,7 +149,8 @@ export function forwardResponse(
|
|
|
149
149
|
// PARTIAL_SUCCESS also carries meaningful data (e.g. successful items in a
|
|
150
150
|
// mixed-result batch), so we preserve data for both SUCCESS and
|
|
151
151
|
// PARTIAL_SUCCESS responses. Only genuine errors get their data nulled out.
|
|
152
|
-
const preserveData =
|
|
152
|
+
const preserveData =
|
|
153
|
+
resp.code === "SUCCESS" || resp.code === "PARTIAL_SUCCESS";
|
|
153
154
|
const body: Record<string, unknown> = {
|
|
154
155
|
code: resp.code,
|
|
155
156
|
data: preserveData ? resp.data : null,
|