@tablestore/tablestore-agent-cli 0.3.1 → 0.4.0
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/memory.d.ts.map +1 -1
- package/dist/commands/memory.js +20 -16
- 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 +10 -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/required-server-files.json +3 -3
- package/dist/dashboard-runtime/dashboard/.next/routes-manifest.json +80 -0
- 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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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]/scope/page/app-paths-manifest.json +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/scope/page/build-manifest.json +18 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/scope/page/next-font-manifest.json +8 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/scope/page/react-loadable-manifest.json +1 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/scope/page/server-reference-manifest.json +4 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/scope/page.js +23 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/scope/page.js.map +5 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/scope/page.js.nft.json +1 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/scope/page_client-reference-manifest.js +3 -0
- 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.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.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.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/[store]/wiki/page/app-paths-manifest.json +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/wiki/page/build-manifest.json +18 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/wiki/page/next-font-manifest.json +8 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/wiki/page/react-loadable-manifest.json +1 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/wiki/page/server-reference-manifest.json +4 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/wiki/page.js +23 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/wiki/page.js.map +5 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/wiki/page.js.nft.json +1 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/wiki/page_client-reference-manifest.js +3 -0
- 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.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.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_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 +16 -16
- package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_full.segment.rsc +16 -16
- 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 -11
- package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +4 -4
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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/connectivity/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/connectivity/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/route.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-kb-sync/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-tasks/[dreamId]/actions/apply/route.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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/[action]/route.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/[action]/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/messages/route.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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/[store]/wikis/artifacts/route/app-paths-manifest.json +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/artifacts/route/build-manifest.json +9 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/artifacts/route/server-reference-manifest.json +4 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/artifacts/route.js +6 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/artifacts/route.js.map +5 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/artifacts/route.js.nft.json +1 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/artifacts/route_client-reference-manifest.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/ingest/route/app-paths-manifest.json +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/ingest/route/build-manifest.json +9 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/ingest/route/server-reference-manifest.json +4 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/ingest/route.js +6 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/ingest/route.js.map +5 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/ingest/route.js.nft.json +1 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/ingest/route_client-reference-manifest.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/page/route/app-paths-manifest.json +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/page/route/build-manifest.json +9 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/page/route/server-reference-manifest.json +4 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/page/route.js +6 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/page/route.js.map +5 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/page/route.js.nft.json +1 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/page/route_client-reference-manifest.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/pages/route/app-paths-manifest.json +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/pages/route/build-manifest.json +9 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/pages/route/server-reference-manifest.json +4 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/pages/route.js +6 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/pages/route.js.map +5 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/pages/route.js.nft.json +1 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/pages/route_client-reference-manifest.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/route/app-paths-manifest.json +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/route/build-manifest.json +9 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/route/server-reference-manifest.json +4 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/route.js +6 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/route.js.map +5 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/route.js.nft.json +1 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/route_client-reference-manifest.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/search/route/app-paths-manifest.json +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/search/route/build-manifest.json +9 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/search/route/server-reference-manifest.json +4 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/search/route.js +6 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/search/route.js.map +5 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/search/route.js.nft.json +1 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/search/route_client-reference-manifest.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/source/route/app-paths-manifest.json +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/source/route/build-manifest.json +9 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/source/route/server-reference-manifest.json +4 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/source/route.js +6 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/source/route.js.map +5 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/source/route.js.nft.json +1 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/source/route_client-reference-manifest.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/sources/route/app-paths-manifest.json +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/sources/route/build-manifest.json +9 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/sources/route/server-reference-manifest.json +4 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/sources/route.js +6 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/sources/route.js.map +5 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/sources/route.js.nft.json +1 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/sources/route_client-reference-manifest.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/route.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +15 -15
- 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 +15 -15
- 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 -11
- 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.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 +18 -18
- package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/_full.segment.rsc +18 -18
- 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 -11
- 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_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app-paths-manifest.json +10 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/0ndq_server_app_api_v1_memory_stores_[store]_wikis_artifacts_route_actions_0doape5.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/0ndq_server_app_api_v1_memory_stores_[store]_wikis_ingest_route_actions_0ppwgam.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/0ndq_server_app_api_v1_memory_stores_[store]_wikis_page_route_actions_0odivj9.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/0ndq_server_app_api_v1_memory_stores_[store]_wikis_pages_route_actions_0s15y9a.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/0ndq_server_app_api_v1_memory_stores_[store]_wikis_route_actions_0dbjn9p.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/0ndq_server_app_api_v1_memory_stores_[store]_wikis_search_route_actions_108iypz.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/0ndq_server_app_api_v1_memory_stores_[store]_wikis_source_route_actions_0vmf0n5.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/0ndq_server_app_api_v1_memory_stores_[store]_wikis_sources_route_actions_0i4~w4-.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/0p91_next_dist_esm_build_templates_app-route_0n~ec7s.js +24 -17
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0.hvkwy._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__03~qmfv._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0_g86ij._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0db9xtg._.js +40 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0ejcow5._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0es0s_~._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0f~3a2d._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0is6qso._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0n.tvh_._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0ohui_o._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0ssi0g0._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0u03tze._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0ua_nqs._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0wpch_g._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0ypo~ko._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/{[root-of-the-server]__0sa.9zr._.js → [root-of-the-server]__0yqtnx6._.js} +9 -9
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__11rxx0.._.js +40 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__11wq90l._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__120vi1p._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__13q2wbt._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__13~-fxp._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/0b1r_app_(dashboard)_knowledge-base_[name]_documents_documents-client_tsx_0g2uxmt._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/0e95__next-internal_server_app_(dashboard)_memory_[store]_scope_page_actions_0n2kkfu.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/0e95__next-internal_server_app_(dashboard)_memory_[store]_wiki_page_actions_01zih-8.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/0p91_next_dist_esm_build_templates_app-page_07x7aai.js +4 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/0p91_next_dist_esm_build_templates_app-page_0u~m_xi.js +4 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__05kcz99._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__06l7w~r._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__07fsbff._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0_6myqa._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0cn05tt._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0d-z.x1._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0i9tlv5._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0ov6305._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/{_02waf76._.js → _00.la1c._.js} +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_019ufsh._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_01r6jx1._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_04rasxw._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_04wdnle._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/{_0thp9l5._.js → _05__-74._.js} +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_05wwgdw._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_06.3nzk._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_06ofr7j._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0bn79mh._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0cpcl4p._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0d_nd-j._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0f.xs7l._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0fz3kge._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0gyu-mm._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0jt60z2._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0kaclzw._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0lstkpb._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0qw41co._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/{_0t.h859._.js → _0vfgz-v._.js} +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0ww5s91._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_119lxvo._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/{dashboard_src_0jrh7xy._.js → dashboard_src_0bhjp9s._.js} +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0xaihln._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_api-keys_page_tsx_0lb6fu7._.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_components_memory_memory-files-browser_tsx_0o2~94-._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_components_ui_01evqg6._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_i18n_i18n-context_tsx_0c39ewr._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/node_modules__pnpm_0..ymrl._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/node_modules__pnpm_12_d6fg._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/functions-config-manifest.json +8 -0
- package/dist/dashboard-runtime/dashboard/.next/server/middleware-build-manifest.js +3 -3
- package/dist/dashboard-runtime/dashboard/.next/server/next-font-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/next-font-manifest.json +2 -0
- 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/01nixb3ddw4hy.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/01u9hj_9~5-vg.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/02q3tpry1ajx9.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/03rx12c5dxw_4.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/057-rg6~0wki8.css +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/07q8af71w17xl.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/07v6llp0fv6iq.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/09hfvw~51z.9o.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0axnv6wy1_hr7.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0bbcwyy.xvpd0.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/{0eafb9pun~54k.js → 0cfrd_r4jr_ip.js} +2 -2
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0dpj.6wcf.qn8.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0f-mf~9z.~82q.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0gt8u.o_c_nix.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0hh2728tmgrdk.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0idn9fvygbi9d.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0idr-.ttn_21z.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/{0amex7bwxnme9.js → 0jjiw-agnutux.js} +1 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0k6m5~gmu0f8w.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0k_rtgxnq8bsz.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0nq2xdnij7nqt.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0nw7q~w~vg.-y.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0o-j8g9gp_c1r.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0pm6vv5wntle..js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0qr499bd44k.g.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0sx_fx5r7nq4b.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0tbu6y0a22ok8.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0u7fh6be6noif.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0vfuo2829nn25.js +4 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0wcf_hdt9arma.js +5 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0xash~4j8pl87.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0xi6y8g4l~vzr.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0y45-~ia9sqr0.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/10684vn7g6wln.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/1204oli3aouy7.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/13gbu.62oz207.js +138 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/14t.r5~ls3k0x.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/15043qe~kvq-v.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/168xs92lu3o~y.js +1 -0
- package/dist/dashboard-runtime/dashboard/package.json +1 -1
- package/dist/dashboard-runtime/dashboard/server.js +1 -1
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/chat/page.tsx +14 -0
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/dream/[dreamId]/page.tsx +66 -58
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/dream/page.tsx +6 -6
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/layout.tsx +36 -9
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/scope/page.tsx +51 -0
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/wiki/page.tsx +157 -0
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/llm/chat/file-memory-curator.ts +1 -4
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/llm/chat/file-memory-helpers.ts +6 -6
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/llm/chat/memory-helpers.ts +50 -0
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/llm/chat/memory-retrieval.ts +160 -0
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/llm/chat/memory-security.ts +26 -0
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/llm/chat/route.ts +477 -285
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/llm/chat/server-file-memory.ts +113 -0
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/llm/chat/wiki-retrieval.ts +656 -0
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/_scope.ts +67 -0
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/file-memory/_helpers.ts +5 -23
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/wikis/_helpers.ts +317 -0
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/wikis/artifacts/route.ts +194 -0
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/wikis/ingest/route.ts +60 -0
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/wikis/page/route.ts +55 -0
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/wikis/pages/route.ts +61 -0
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/wikis/route.ts +89 -0
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/wikis/search/route.ts +58 -0
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/wikis/source/route.ts +230 -0
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/wikis/sources/route.ts +295 -0
- package/dist/dashboard-runtime/dashboard/src/components/api-keys/custom-policy-editor.tsx +2 -1
- package/dist/dashboard-runtime/dashboard/src/components/api-keys/permission-rule-dialog.tsx +17 -10
- package/dist/dashboard-runtime/dashboard/src/components/chat/chat-config-context.tsx +181 -32
- package/dist/dashboard-runtime/dashboard/src/components/chat/chat-scope-entry-hydrator.tsx +116 -0
- package/dist/dashboard-runtime/dashboard/src/components/chat/memory-bind-section.tsx +37 -15
- package/dist/dashboard-runtime/dashboard/src/components/chat/wiki-bind-section.tsx +153 -0
- package/dist/dashboard-runtime/dashboard/src/components/memory/memory-dream-actions-table.tsx +13 -0
- package/dist/dashboard-runtime/dashboard/src/components/memory/memory-dream-create-dialog.tsx +359 -144
- package/dist/dashboard-runtime/dashboard/src/components/memory/memory-scope-bar.tsx +108 -76
- package/dist/dashboard-runtime/dashboard/src/components/memory/scope-combobox.tsx +31 -50
- package/dist/dashboard-runtime/dashboard/src/components/memory/scope-hierarchy-picker.tsx +274 -0
- package/dist/dashboard-runtime/dashboard/src/components/memory/scope-workspace-cards.tsx +475 -0
- package/dist/dashboard-runtime/dashboard/src/components/memory/scope-workspace.tsx +197 -0
- package/dist/dashboard-runtime/dashboard/src/components/qa/answer-evidence-block.tsx +145 -0
- package/dist/dashboard-runtime/dashboard/src/components/qa/memory-evidence-content.tsx +106 -0
- package/dist/dashboard-runtime/dashboard/src/components/qa/qa-message.tsx +68 -84
- package/dist/dashboard-runtime/dashboard/src/components/qa/wiki-evidence-block.tsx +326 -0
- package/dist/dashboard-runtime/dashboard/src/components/wiki/wiki-build-panel.tsx +640 -0
- package/dist/dashboard-runtime/dashboard/src/components/wiki/wiki-detail.tsx +302 -0
- package/dist/dashboard-runtime/dashboard/src/components/wiki/wiki-edit-dialog.tsx +195 -0
- package/dist/dashboard-runtime/dashboard/src/components/wiki/wiki-overview.tsx +104 -0
- package/dist/dashboard-runtime/dashboard/src/components/wiki/wiki-pages-panel.tsx +424 -0
- package/dist/dashboard-runtime/dashboard/src/components/wiki/wiki-sources-panel.tsx +506 -0
- package/dist/dashboard-runtime/dashboard/src/hooks/use-chat-history.ts +625 -44
- package/dist/dashboard-runtime/dashboard/src/hooks/use-qa-chat.ts +329 -94
- package/dist/dashboard-runtime/dashboard/src/hooks/use-wiki-build-polling.ts +151 -0
- package/dist/dashboard-runtime/dashboard/src/hooks/use-wikis.ts +291 -0
- package/dist/dashboard-runtime/dashboard/src/i18n/locales/en.ts +389 -35
- package/dist/dashboard-runtime/dashboard/src/i18n/locales/zh.ts +356 -25
- package/dist/dashboard-runtime/dashboard/src/lib/browser-file-memory.ts +46 -340
- package/dist/dashboard-runtime/dashboard/src/lib/chat-scope-entry.ts +59 -0
- package/dist/dashboard-runtime/dashboard/src/lib/dream-create-options.ts +27 -0
- package/dist/dashboard-runtime/dashboard/src/lib/file-memory-core.ts +744 -0
- package/dist/dashboard-runtime/dashboard/src/lib/memory-storage-mode.ts +25 -4
- package/dist/dashboard-runtime/dashboard/src/lib/query-keys.ts +93 -0
- package/dist/dashboard-runtime/dashboard/src/lib/retrieval-security.ts +54 -0
- package/dist/dashboard-runtime/dashboard/src/lib/scope-hierarchy.ts +167 -0
- package/dist/dashboard-runtime/dashboard/src/lib/scope-workspace.ts +123 -0
- package/dist/dashboard-runtime/dashboard/src/lib/server/api-helpers.ts +46 -3
- package/dist/dashboard-runtime/dashboard/src/lib/server/sdk-client.ts +3 -0
- package/dist/dashboard-runtime/dashboard/src/lib/wiki-metadata-limits.ts +133 -0
- package/dist/dashboard-runtime/dashboard/src/lib/wiki-page-tree.ts +153 -0
- package/dist/dashboard-runtime/dashboard/src/schemas/llm-chat.ts +121 -21
- package/dist/dashboard-runtime/dashboard/src/services/wiki.ts +145 -0
- package/dist/dashboard-runtime/dashboard/src/types/llm-chat.ts +72 -9
- package/dist/dashboard-runtime/dashboard/src/types/memory.ts +4 -29
- package/dist/dashboard-runtime/dashboard/src/types/wiki.ts +200 -0
- package/dist/dashboard-runtime/dashboard/tsconfig.tsbuildinfo +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/CHANGELOG.md +175 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/LICENSE +201 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/README.md +203 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/package.json +3 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/core/auth/request-context.js +21 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/core/auth/sign-base.js +70 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/core/auth/sign-v2.js +13 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/core/auth/sign-v4.js +51 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/core/client/agent-storage-client.js +196 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/core/errors/client-error.js +10 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/core/errors/service-error.js +16 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/core/http/headers.js +31 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/core/http/md5.js +9 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/core/http/ots-json-client.js +155 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/core/models/base.js +19 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/core/models/chunk.js +67 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/core/models/document.js +163 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/core/models/enums.js +31 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/core/models/file.js +27 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/core/models/knowledge-base.js +118 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/core/models/memory.js +711 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/core/models/metadata-filter.js +123 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/core/models/retrieve.js +152 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/core/models/unset.js +8 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/core/models/wiki.js +2 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/core/serialization/to-json-request.js +9 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/core/version.js +5 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/index.js +93 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/node/client/node-agent-storage-client.js +134 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/node/fs/file-path.js +73 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/node/fs/file-reader.js +13 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/node/oss/oss-uploader.js +30 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/node.js +5 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/auth/request-context.d.ts +12 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/auth/request-context.js +17 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/auth/sign-base.d.ts +12 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/auth/sign-base.js +63 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/auth/sign-v2.d.ts +6 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/auth/sign-v2.js +9 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/auth/sign-v4.d.ts +15 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/auth/sign-v4.js +47 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/client/agent-storage-client.d.ts +78 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/client/agent-storage-client.js +192 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/errors/client-error.d.ts +3 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/errors/client-error.js +6 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/errors/service-error.d.ts +10 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/errors/service-error.js +12 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/http/headers.d.ts +14 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/http/headers.js +27 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/http/md5.d.ts +1 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/http/md5.js +6 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/http/ots-json-client.d.ts +27 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/http/ots-json-client.js +151 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/models/base.d.ts +5 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/models/base.js +15 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/models/chunk.d.ts +47 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/models/chunk.js +61 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/models/document.d.ts +107 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/models/document.js +151 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/models/enums.d.ts +24 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/models/enums.js +28 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/models/file.d.ts +364 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/models/file.js +24 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/models/knowledge-base.d.ts +97 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/models/knowledge-base.js +108 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/models/memory.d.ts +1018 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/models/memory.js +684 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/models/metadata-filter.d.ts +74 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/models/metadata-filter.js +118 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/models/retrieve.d.ts +113 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/models/retrieve.js +140 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/models/unset.d.ts +3 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/models/unset.js +4 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/models/wiki.d.ts +118 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/models/wiki.js +1 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/serialization/to-json-request.d.ts +2 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/serialization/to-json-request.js +6 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/version.d.ts +2 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/version.js +2 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/index.d.ts +17 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/index.js +16 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/node/client/node-agent-storage-client.d.ts +39 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/node/client/node-agent-storage-client.js +130 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/node/fs/file-path.d.ts +12 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/node/fs/file-path.js +34 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/node/fs/file-reader.d.ts +8 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/node/fs/file-reader.js +9 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/node/oss/oss-uploader.d.ts +17 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/node/oss/oss-uploader.js +23 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/node.d.ts +1 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/node.js +1 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/package.json +67 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/index.d.ts +1 -0
- 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 +1 -0
- 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/abortable-fetch.d.ts +13 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/internal/abortable-fetch.d.ts.map +1 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/internal/abortable-fetch.js +40 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/internal/abortable-fetch.js.map +1 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.d.ts +1 -1
- 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 +21 -9
- 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/memory-client.d.ts +7 -7
- 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 +27 -20
- 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 +55 -37
- 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/tsconfig.tsbuildinfo +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/types.d.ts +6 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/types.d.ts.map +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/wiki-client.d.ts +18 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/wiki-client.d.ts.map +1 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/wiki-client.js +100 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/wiki-client.js.map +1 -0
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/index.d.ts +1 -0
- 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 +1 -0
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/index.js.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/internal/abortable-fetch.d.ts +13 -0
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/internal/abortable-fetch.d.ts.map +1 -0
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/internal/abortable-fetch.js +40 -0
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/internal/abortable-fetch.js.map +1 -0
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.d.ts +1 -1
- 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 +21 -9
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.js.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.d.ts +7 -7
- 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 +27 -20
- 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 +55 -37
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/response.js.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/types.d.ts +6 -0
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/types.d.ts.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/wiki-client.d.ts +18 -0
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/wiki-client.d.ts.map +1 -0
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/wiki-client.js +100 -0
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/wiki-client.js.map +1 -0
- package/dist/output.d.ts.map +1 -1
- package/dist/output.js +1 -0
- package/dist/output.js.map +1 -1
- package/package.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0-wmyic._.js +0 -40
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0.li3cj._.js +0 -40
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0y0w3mg._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0.ooo1s._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0b5cw4e._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0p1cst6._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0xza7lz._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0.6x0yu._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0.pa1e6._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_01snuz~._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_06_hoj_._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0_aw2vr._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0brqbty._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0csuit-._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0eps5jg._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0ez3yia._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0odjvc.._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0pwlb77._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0wce254._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_12l8jkb._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0_z9696._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0grv2wq._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/node_modules__pnpm_0jns_ph._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/node_modules__pnpm_0ymj2~2._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0-xwobg-a6si1.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/01bokygf48bnj.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/026lyw-ynx1og.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/04a.1c2rygy08.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/05.2q9f0yx4e_.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/05_iqjh-v2gej.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/07twdccs42b_-.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/09v-qczj__g1x.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0_8~9zgfm5f.8.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0_zw2y~vb_52n.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0a2f-mxepv-y7.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0apfhv-v7oy7u.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0bxt5icwb83xt.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0dpi1comd-thc.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0eerrv808~6bh.js +0 -4
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0j6agpotrd_n4.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0jbcdgtcgqemd.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0jp7zmwvyv0bn.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0k8mhea24d_kj.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0krt75we1wtcy.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0ogrq_r43je48.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0prl9yrb8ksp8.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0r4azm.3hswcs.js +0 -138
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0r6utd8g~.cc1.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0uj7ezedkm6ou.css +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0x5qtkdg2trq9.js +0 -5
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0zatcw.k613lh.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0zhfdjby7cj-q.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0~naqbx3873~r.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/13__t3s3ipfzl.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/14.8mq880kjoc.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/16uky1ro-t_~9.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/18absak_u0d85.js +0 -138
- /package/dist/dashboard-runtime/dashboard/.next/static/{8G6beqTEKH_-N0JljpgWT → bKUtNfKb47TOc1cpUk74A}/_buildManifest.js +0 -0
- /package/dist/dashboard-runtime/dashboard/.next/static/{8G6beqTEKH_-N0JljpgWT → bKUtNfKb47TOc1cpUk74A}/_clientMiddlewareManifest.js +0 -0
- /package/dist/dashboard-runtime/dashboard/.next/static/{8G6beqTEKH_-N0JljpgWT → bKUtNfKb47TOc1cpUk74A}/_ssgManifest.js +0 -0
package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/node_modules__pnpm_0..ymrl._.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[420251,a=>{"use strict";var b=a.i(971938);a.s(["usePrevious",0,function(a){let c=b.useRef({value:a,previous:a});return b.useMemo(()=>(c.current.value!==a&&(c.current.previous=c.current.value,c.current.value=a),c.current.previous),[a])}])},225896,a=>{"use strict";let b=(0,a.i(750053).default)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);a.s(["ChevronUp",0,b],225896)},201927,a=>{"use strict";let b=(0,a.i(750053).default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);a.s(["ChevronDown",0,b],201927)},579583,a=>{"use strict";var b=a.i(971938),c=a.i(558036),d=a.i(634020),e=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),f=b.forwardRef((a,b)=>(0,d.jsx)(c.Primitive.span,{...a,ref:b,style:{...e,...a.style}}));f.displayName="VisuallyHidden",a.s(["Root",0,f,"VISUALLY_HIDDEN_STYLES",0,e])},53520,a=>{"use strict";let b=(0,a.i(750053).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);a.s(["Check",0,b],53520)},917021,274974,a=>{"use strict";var b=a.i(971938),c=a.i(484694),d=a.i(268189),e=a.i(597058),f=a.i(634020),g=new WeakMap;function h(a,b){var c,d;let e,f,g;if("at"in Array.prototype)return Array.prototype.at.call(a,b);let h=(c=a,d=b,e=c.length,(g=(f=i(d))>=0?f:e+f)<0||g>=e?-1:g);return -1===h?void 0:a[h]}function i(a){return a!=a||0===a?0:Math.trunc(a)}(class a extends Map{#a;constructor(a){super(a),this.#a=[...super.keys()],g.set(this,!0)}set(a,b){return g.get(this)&&(this.has(a)?this.#a[this.#a.indexOf(a)]=a:this.#a.push(a)),super.set(a,b),this}insert(a,b,c){let d,e=this.has(b),f=this.#a.length,g=i(a),h=g>=0?g:f+g,j=h<0||h>=f?-1:h;if(j===this.size||e&&j===this.size-1||-1===j)return this.set(b,c),this;let k=this.size+ +!e;g<0&&h++;let l=[...this.#a],m=!1;for(let a=h;a<k;a++)if(h===a){let f=l[a];l[a]===b&&(f=l[a+1]),e&&this.delete(b),d=this.get(f),this.set(b,c)}else{m||l[a-1]!==b||(m=!0);let c=l[m?a:a-1],e=d;d=this.get(c),this.delete(c),this.set(c,e)}return this}with(b,c,d){let e=new a(this);return e.insert(b,c,d),e}before(a){let b=this.#a.indexOf(a)-1;if(!(b<0))return this.entryAt(b)}setBefore(a,b,c){let d=this.#a.indexOf(a);return -1===d?this:this.insert(d,b,c)}after(a){let b=this.#a.indexOf(a);if(-1!==(b=-1===b||b===this.size-1?-1:b+1))return this.entryAt(b)}setAfter(a,b,c){let d=this.#a.indexOf(a);return -1===d?this:this.insert(d+1,b,c)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#a=[],super.clear()}delete(a){let b=super.delete(a);return b&&this.#a.splice(this.#a.indexOf(a),1),b}deleteAt(a){let b=this.keyAt(a);return void 0!==b&&this.delete(b)}at(a){let b=h(this.#a,a);if(void 0!==b)return this.get(b)}entryAt(a){let b=h(this.#a,a);if(void 0!==b)return[b,this.get(b)]}indexOf(a){return this.#a.indexOf(a)}keyAt(a){return h(this.#a,a)}from(a,b){let c=this.indexOf(a);if(-1===c)return;let d=c+b;return d<0&&(d=0),d>=this.size&&(d=this.size-1),this.at(d)}keyFrom(a,b){let c=this.indexOf(a);if(-1===c)return;let d=c+b;return d<0&&(d=0),d>=this.size&&(d=this.size-1),this.keyAt(d)}find(a,b){let c=0;for(let d of this){if(Reflect.apply(a,b,[d,c,this]))return d;c++}}findIndex(a,b){let c=0;for(let d of this){if(Reflect.apply(a,b,[d,c,this]))return c;c++}return -1}filter(b,c){let d=[],e=0;for(let a of this)Reflect.apply(b,c,[a,e,this])&&d.push(a),e++;return new a(d)}map(b,c){let d=[],e=0;for(let a of this)d.push([a[0],Reflect.apply(b,c,[a,e,this])]),e++;return new a(d)}reduce(...a){let[b,c]=a,d=0,e=c??this.at(0);for(let c of this)e=0===d&&1===a.length?c:Reflect.apply(b,this,[e,c,d,this]),d++;return e}reduceRight(...a){let[b,c]=a,d=c??this.at(-1);for(let c=this.size-1;c>=0;c--){let e=this.at(c);d=c===this.size-1&&1===a.length?e:Reflect.apply(b,this,[d,e,c,this])}return d}toSorted(b){return new a([...this.entries()].sort(b))}toReversed(){let b=new a;for(let a=this.size-1;a>=0;a--){let c=this.keyAt(a),d=this.get(c);b.set(c,d)}return b}toSpliced(...b){let c=[...this.entries()];return c.splice(...b),new a(c)}slice(b,c){let d=new a,e=this.size-1;if(void 0===b)return d;b<0&&(b+=this.size),void 0!==c&&c>0&&(e=c-1);for(let a=b;a<=e;a++){let b=this.keyAt(a),c=this.get(b);d.set(b,c)}return d}every(a,b){let c=0;for(let d of this){if(!Reflect.apply(a,b,[d,c,this]))return!1;c++}return!0}some(a,b){let c=0;for(let d of this){if(Reflect.apply(a,b,[d,c,this]))return!0;c++}return!1}}),a.s(["createCollection",0,function(a){let g=a+"CollectionProvider",[h,i]=(0,c.createContextScope)(g),[j,k]=h(g,{collectionRef:{current:null},itemMap:new Map}),l=a=>{let{scope:c,children:d}=a,e=b.default.useRef(null),g=b.default.useRef(new Map).current;return(0,f.jsx)(j,{scope:c,itemMap:g,collectionRef:e,children:d})};l.displayName=g;let m=a+"CollectionSlot",n=(0,e.createSlot)(m),o=b.default.forwardRef((a,b)=>{let{scope:c,children:e}=a,g=k(m,c),h=(0,d.useComposedRefs)(b,g.collectionRef);return(0,f.jsx)(n,{ref:h,children:e})});o.displayName=m;let p=a+"CollectionItemSlot",q="data-radix-collection-item",r=(0,e.createSlot)(p),s=b.default.forwardRef((a,c)=>{let{scope:e,children:g,...h}=a,i=b.default.useRef(null),j=(0,d.useComposedRefs)(c,i),l=k(p,e);return b.default.useEffect(()=>(l.itemMap.set(i,{ref:i,...h}),()=>void l.itemMap.delete(i))),(0,f.jsx)(r,{...{[q]:""},ref:j,children:g})});return s.displayName=p,[{Provider:l,Slot:o,ItemSlot:s},function(c){let d=k(a+"CollectionConsumer",c);return b.default.useCallback(()=>{let a=d.collectionRef.current;if(!a)return[];let b=Array.from(a.querySelectorAll(`[${q}]`));return Array.from(d.itemMap.values()).sort((a,c)=>b.indexOf(a.ref.current)-b.indexOf(c.ref.current))},[d.collectionRef,d.itemMap])},i]}],917021);var j=b.createContext(void 0);a.s(["useDirection",0,function(a){let c=b.useContext(j);return a||c||"ltr"}],274974)},798392,a=>{"use strict";var b=a.i(971938),c=a.i(268189),d=a.i(139166),e=a=>{var e;let g,h,{present:i,children:j}=a,k=function(a){var c,e;let[g,h]=b.useState(),i=b.useRef(null),j=b.useRef(a),k=b.useRef("none"),[l,m]=(c=a?"mounted":"unmounted",e={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},b.useReducer((a,b)=>e[a][b]??a,c));return b.useEffect(()=>{let a=f(i.current);k.current="mounted"===l?a:"none"},[l]),(0,d.useLayoutEffect)(()=>{let b=i.current,c=j.current;if(c!==a){let d=k.current,e=f(b);a?m("MOUNT"):"none"===e||b?.display==="none"?m("UNMOUNT"):c&&d!==e?m("ANIMATION_OUT"):m("UNMOUNT"),j.current=a}},[a,m]),(0,d.useLayoutEffect)(()=>{if(g){let a,b=g.ownerDocument.defaultView??window,c=c=>{let d=f(i.current).includes(CSS.escape(c.animationName));if(c.target===g&&d&&(m("ANIMATION_END"),!j.current)){let c=g.style.animationFillMode;g.style.animationFillMode="forwards",a=b.setTimeout(()=>{"forwards"===g.style.animationFillMode&&(g.style.animationFillMode=c)})}},d=a=>{a.target===g&&(k.current=f(i.current))};return g.addEventListener("animationstart",d),g.addEventListener("animationcancel",c),g.addEventListener("animationend",c),()=>{b.clearTimeout(a),g.removeEventListener("animationstart",d),g.removeEventListener("animationcancel",c),g.removeEventListener("animationend",c)}}m("ANIMATION_END")},[g,m]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:b.useCallback(a=>{i.current=a?getComputedStyle(a):null,h(a)},[])}}(i),l="function"==typeof j?j({present:k.isPresent}):b.Children.only(j),m=(0,c.useComposedRefs)(k.ref,(e=l,(h=(g=Object.getOwnPropertyDescriptor(e.props,"ref")?.get)&&"isReactWarning"in g&&g.isReactWarning)?e.ref:(h=(g=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in g&&g.isReactWarning)?e.props.ref:e.props.ref||e.ref));return"function"==typeof j||k.isPresent?b.cloneElement(l,{ref:m}):null};function f(a){return a?.animationName||"none"}e.displayName="Presence",a.s(["Presence",0,e])},356620,a=>{"use strict";var b=a.i(971938),c=a.i(559653),d=a.i(917021),e=a.i(268189),f=a.i(484694),g=a.i(359231),h=a.i(558036),i=a.i(385909),j=a.i(483370),k=a.i(274974),l=a.i(634020),m="rovingFocusGroup.onEntryFocus",n={bubbles:!1,cancelable:!0},o="RovingFocusGroup",[p,q,r]=(0,d.createCollection)(o),[s,t]=(0,f.createContextScope)(o,[r]),[u,v]=s(o),w=b.forwardRef((a,b)=>(0,l.jsx)(p.Provider,{scope:a.__scopeRovingFocusGroup,children:(0,l.jsx)(p.Slot,{scope:a.__scopeRovingFocusGroup,children:(0,l.jsx)(x,{...a,ref:b})})}));w.displayName=o;var x=b.forwardRef((a,d)=>{let{__scopeRovingFocusGroup:f,orientation:g,loop:p=!1,dir:r,currentTabStopId:s,defaultCurrentTabStopId:t,onCurrentTabStopIdChange:v,onEntryFocus:w,preventScrollOnEntryFocus:x=!1,...y}=a,z=b.useRef(null),A=(0,e.useComposedRefs)(d,z),C=(0,k.useDirection)(r),[D,E]=(0,j.useControllableState)({prop:s,defaultProp:t??null,onChange:v,caller:o}),[F,G]=b.useState(!1),H=(0,i.useCallbackRef)(w),I=q(f),J=b.useRef(!1),[K,L]=b.useState(0);return b.useEffect(()=>{let a=z.current;if(a)return a.addEventListener(m,H),()=>a.removeEventListener(m,H)},[H]),(0,l.jsx)(u,{scope:f,orientation:g,dir:C,loop:p,currentTabStopId:D,onItemFocus:b.useCallback(a=>E(a),[E]),onItemShiftTab:b.useCallback(()=>G(!0),[]),onFocusableItemAdd:b.useCallback(()=>L(a=>a+1),[]),onFocusableItemRemove:b.useCallback(()=>L(a=>a-1),[]),children:(0,l.jsx)(h.Primitive.div,{tabIndex:F||0===K?-1:0,"data-orientation":g,...y,ref:A,style:{outline:"none",...a.style},onMouseDown:(0,c.composeEventHandlers)(a.onMouseDown,()=>{J.current=!0}),onFocus:(0,c.composeEventHandlers)(a.onFocus,a=>{let b=!J.current;if(a.target===a.currentTarget&&b&&!F){let b=new CustomEvent(m,n);if(a.currentTarget.dispatchEvent(b),!b.defaultPrevented){let a=I().filter(a=>a.focusable);B([a.find(a=>a.active),a.find(a=>a.id===D),...a].filter(Boolean).map(a=>a.ref.current),x)}}J.current=!1}),onBlur:(0,c.composeEventHandlers)(a.onBlur,()=>G(!1))})})}),y="RovingFocusGroupItem",z=b.forwardRef((a,d)=>{let{__scopeRovingFocusGroup:e,focusable:f=!0,active:i=!1,tabStopId:j,children:k,...m}=a,n=(0,g.useId)(),o=j||n,r=v(y,e),s=r.currentTabStopId===o,t=q(e),{onFocusableItemAdd:u,onFocusableItemRemove:w,currentTabStopId:x}=r;return b.useEffect(()=>{if(f)return u(),()=>w()},[f,u,w]),(0,l.jsx)(p.ItemSlot,{scope:e,id:o,focusable:f,active:i,children:(0,l.jsx)(h.Primitive.span,{tabIndex:s?0:-1,"data-orientation":r.orientation,...m,ref:d,onMouseDown:(0,c.composeEventHandlers)(a.onMouseDown,a=>{f?r.onItemFocus(o):a.preventDefault()}),onFocus:(0,c.composeEventHandlers)(a.onFocus,()=>r.onItemFocus(o)),onKeyDown:(0,c.composeEventHandlers)(a.onKeyDown,a=>{if("Tab"===a.key&&a.shiftKey)return void r.onItemShiftTab();if(a.target!==a.currentTarget)return;let b=function(a,b,c){var d;let e=(d=a.key,"rtl"!==c?d:"ArrowLeft"===d?"ArrowRight":"ArrowRight"===d?"ArrowLeft":d);if(!("vertical"===b&&["ArrowLeft","ArrowRight"].includes(e))&&!("horizontal"===b&&["ArrowUp","ArrowDown"].includes(e)))return A[e]}(a,r.orientation,r.dir);if(void 0!==b){if(a.metaKey||a.ctrlKey||a.altKey||a.shiftKey)return;a.preventDefault();let e=t().filter(a=>a.focusable).map(a=>a.ref.current);if("last"===b)e.reverse();else if("prev"===b||"next"===b){var c,d;"prev"===b&&e.reverse();let f=e.indexOf(a.currentTarget);e=r.loop?(c=e,d=f+1,c.map((a,b)=>c[(d+b)%c.length])):e.slice(f+1)}setTimeout(()=>B(e))}}),children:"function"==typeof k?k({isCurrentTabStop:s,hasTabStop:null!=x}):k})})});z.displayName=y;var A={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function B(a,b=!1){let c=document.activeElement;for(let d of a)if(d===c||(d.focus({preventScroll:b}),document.activeElement!==c))return}a.s(["Item",0,z,"Root",0,w,"createRovingFocusGroupScope",0,t])},244401,a=>{"use strict";let b=(0,a.i(750053).default)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);a.s(["Info",0,b],244401)}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=node_modules__pnpm_0..ymrl._.js.map
|
package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/node_modules__pnpm_12_d6fg._.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[559653,a=>{"use strict";a.s(["composeEventHandlers",0,function(a,b,{checkForDefaultPrevented:c=!0}={}){return function(d){if(a?.(d),!1===c||!d.defaultPrevented)return b?.(d)}}])},484694,a=>{"use strict";var b=a.i(971938),c=a.i(634020);a.s(["createContext",0,function(a,d){let e=b.createContext(d),f=a=>{let{children:d,...f}=a,g=b.useMemo(()=>f,Object.values(f));return(0,c.jsx)(e.Provider,{value:g,children:d})};return f.displayName=a+"Provider",[f,function(c){let f=b.useContext(e);if(f)return f;if(void 0!==d)return d;throw Error(`\`${c}\` must be used within \`${a}\``)}]},"createContextScope",0,function(a,d=[]){let e=[],f=()=>{let c=e.map(a=>b.createContext(a));return function(d){let e=d?.[a]||c;return b.useMemo(()=>({[`__scope${a}`]:{...d,[a]:e}}),[d,e])}};return f.scopeName=a,[function(d,f){let g=b.createContext(f),h=e.length;e=[...e,f];let i=d=>{let{scope:e,children:f,...i}=d,j=e?.[a]?.[h]||g,k=b.useMemo(()=>i,Object.values(i));return(0,c.jsx)(j.Provider,{value:k,children:f})};return i.displayName=d+"Provider",[i,function(c,e){let i=e?.[a]?.[h]||g,j=b.useContext(i);if(j)return j;if(void 0!==f)return f;throw Error(`\`${c}\` must be used within \`${d}\``)}]},function(...a){let c=a[0];if(1===a.length)return c;let d=()=>{let d=a.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(a){let e=d.reduce((b,{useScope:c,scopeName:d})=>{let e=c(a)[`__scope${d}`];return{...b,...e}},{});return b.useMemo(()=>({[`__scope${c.scopeName}`]:e}),[e])}};return d.scopeName=c.scopeName,d}(f,...d)]}])},558036,597058,a=>{"use strict";var b=a.i(971938),c=a.i(525704),d=a.i(268189),e=a.i(634020);function f(a){var c;let f,g=(c=a,(f=b.forwardRef((a,c)=>{let{children:e,...f}=a;if(b.isValidElement(e)){var g;let a,h,i=(g=e,(h=(a=Object.getOwnPropertyDescriptor(g.props,"ref")?.get)&&"isReactWarning"in a&&a.isReactWarning)?g.ref:(h=(a=Object.getOwnPropertyDescriptor(g,"ref")?.get)&&"isReactWarning"in a&&a.isReactWarning)?g.props.ref:g.props.ref||g.ref),j=function(a,b){let c={...b};for(let d in b){let e=a[d],f=b[d];/^on[A-Z]/.test(d)?e&&f?c[d]=(...a)=>{let b=f(...a);return e(...a),b}:e&&(c[d]=e):"style"===d?c[d]={...e,...f}:"className"===d&&(c[d]=[e,f].filter(Boolean).join(" "))}return{...a,...c}}(f,e.props);return e.type!==b.Fragment&&(j.ref=c?(0,d.composeRefs)(c,i):i),b.cloneElement(e,j)}return b.Children.count(e)>1?b.Children.only(null):null})).displayName=`${c}.SlotClone`,f),i=b.forwardRef((a,c)=>{let{children:d,...f}=a,i=b.Children.toArray(d),j=i.find(h);if(j){let a=j.props.children,d=i.map(c=>c!==j?c:b.Children.count(a)>1?b.Children.only(null):b.isValidElement(a)?a.props.children:null);return(0,e.jsx)(g,{...f,ref:c,children:b.isValidElement(a)?b.cloneElement(a,void 0,d):null})}return(0,e.jsx)(g,{...f,ref:c,children:d})});return i.displayName=`${a}.Slot`,i}var g=Symbol("radix.slottable");function h(a){return b.isValidElement(a)&&"function"==typeof a.type&&"__radixId"in a.type&&a.type.__radixId===g}a.s(["createSlot",0,f,"createSlottable",0,function(a){let b=({children:a})=>(0,e.jsx)(e.Fragment,{children:a});return b.displayName=`${a}.Slottable`,b.__radixId=g,b}],597058);var i=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((a,c)=>{let d=f(`Primitive.${c}`),g=b.forwardRef((a,b)=>{let{asChild:f,...g}=a;return(0,e.jsx)(f?d:c,{...g,ref:b})});return g.displayName=`Primitive.${c}`,{...a,[c]:g}},{});a.s(["Primitive",0,i,"dispatchDiscreteCustomEvent",0,function(a,b){a&&c.flushSync(()=>a.dispatchEvent(b))}],558036)},385909,a=>{"use strict";var b=a.i(971938);a.s(["useCallbackRef",0,function(a){let c=b.useRef(a);return b.useEffect(()=>{c.current=a}),b.useMemo(()=>(...a)=>c.current?.(...a),[])}])},359231,a=>{"use strict";var b=a.i(971938),c=a.i(139166),d=b[" useId ".trim().toString()]||(()=>void 0),e=0;a.s(["useId",0,function(a){let[f,g]=b.useState(d());return(0,c.useLayoutEffect)(()=>{a||g(a=>a??String(e++))},[a]),a||(f?`radix-${f}`:"")}])},143504,62310,a=>{"use strict";var b,c=a.i(971938),d=a.i(559653),e=a.i(558036),f=a.i(268189),g=a.i(385909),h=a.i(634020),i="dismissableLayer.update",j=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),k=c.forwardRef((a,k)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:p,onFocusOutside:q,onInteractOutside:r,onDismiss:s,...t}=a,u=c.useContext(j),[v,w]=c.useState(null),x=v?.ownerDocument??globalThis?.document,[,y]=c.useState({}),z=(0,f.useComposedRefs)(k,a=>w(a)),A=Array.from(u.layers),[B]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),C=A.indexOf(B),D=v?A.indexOf(v):-1,E=u.layersWithOutsidePointerEventsDisabled.size>0,F=D>=C,G=function(a,b=globalThis?.document){let d=(0,g.useCallbackRef)(a),e=c.useRef(!1),f=c.useRef(()=>{});return c.useEffect(()=>{let a=a=>{if(a.target&&!e.current){let c=function(){m("dismissableLayer.pointerDownOutside",d,e,{discrete:!0})},e={originalEvent:a};"touch"===a.pointerType?(b.removeEventListener("click",f.current),f.current=c,b.addEventListener("click",f.current,{once:!0})):c()}else b.removeEventListener("click",f.current);e.current=!1},c=window.setTimeout(()=>{b.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(c),b.removeEventListener("pointerdown",a),b.removeEventListener("click",f.current)}},[b,d]),{onPointerDownCapture:()=>e.current=!0}}(a=>{let b=a.target,c=[...u.branches].some(a=>a.contains(b));F&&!c&&(p?.(a),r?.(a),a.defaultPrevented||s?.())},x),H=function(a,b=globalThis?.document){let d=(0,g.useCallbackRef)(a),e=c.useRef(!1);return c.useEffect(()=>{let a=a=>{a.target&&!e.current&&m("dismissableLayer.focusOutside",d,{originalEvent:a},{discrete:!1})};return b.addEventListener("focusin",a),()=>b.removeEventListener("focusin",a)},[b,d]),{onFocusCapture:()=>e.current=!0,onBlurCapture:()=>e.current=!1}}(a=>{let b=a.target;![...u.branches].some(a=>a.contains(b))&&(q?.(a),r?.(a),a.defaultPrevented||s?.())},x);return!function(a,b=globalThis?.document){let d=(0,g.useCallbackRef)(a);c.useEffect(()=>{let a=a=>{"Escape"===a.key&&d(a)};return b.addEventListener("keydown",a,{capture:!0}),()=>b.removeEventListener("keydown",a,{capture:!0})},[d,b])}(a=>{D===u.layers.size-1&&(o?.(a),!a.defaultPrevented&&s&&(a.preventDefault(),s()))},x),c.useEffect(()=>{if(v)return n&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(b=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(v)),u.layers.add(v),l(),()=>{n&&1===u.layersWithOutsidePointerEventsDisabled.size&&(x.body.style.pointerEvents=b)}},[v,x,n,u]),c.useEffect(()=>()=>{v&&(u.layers.delete(v),u.layersWithOutsidePointerEventsDisabled.delete(v),l())},[v,u]),c.useEffect(()=>{let a=()=>y({});return document.addEventListener(i,a),()=>document.removeEventListener(i,a)},[]),(0,h.jsx)(e.Primitive.div,{...t,ref:z,style:{pointerEvents:E?F?"auto":"none":void 0,...a.style},onFocusCapture:(0,d.composeEventHandlers)(a.onFocusCapture,H.onFocusCapture),onBlurCapture:(0,d.composeEventHandlers)(a.onBlurCapture,H.onBlurCapture),onPointerDownCapture:(0,d.composeEventHandlers)(a.onPointerDownCapture,G.onPointerDownCapture)})});function l(){let a=new CustomEvent(i);document.dispatchEvent(a)}function m(a,b,c,{discrete:d}){let f=c.originalEvent.target,g=new CustomEvent(a,{bubbles:!1,cancelable:!0,detail:c});b&&f.addEventListener(a,b,{once:!0}),d?(0,e.dispatchDiscreteCustomEvent)(f,g):f.dispatchEvent(g)}k.displayName="DismissableLayer",c.forwardRef((a,b)=>{let d=c.useContext(j),g=c.useRef(null),i=(0,f.useComposedRefs)(b,g);return c.useEffect(()=>{let a=g.current;if(a)return d.branches.add(a),()=>{d.branches.delete(a)}},[d.branches]),(0,h.jsx)(e.Primitive.div,{...a,ref:i})}).displayName="DismissableLayerBranch",a.s(["DismissableLayer",0,k],143504);var n=a.i(525704),o=a.i(139166),p=c.forwardRef((a,b)=>{let{container:d,...f}=a,[g,i]=c.useState(!1);(0,o.useLayoutEffect)(()=>i(!0),[]);let j=d||g&&globalThis?.document?.body;return j?n.default.createPortal((0,h.jsx)(e.Primitive.div,{...f,ref:b}),j):null});p.displayName="Portal",a.s(["Portal",0,p],62310)},483370,139166,a=>{"use strict";var b=a.i(971938),c=globalThis?.document?b.useLayoutEffect:()=>{};a.s(["useLayoutEffect",0,c],139166),b[" useEffectEvent ".trim().toString()],b[" useInsertionEffect ".trim().toString()];var d=b[" useInsertionEffect ".trim().toString()]||c;Symbol("RADIX:SYNC_STATE"),a.s(["useControllableState",0,function({prop:a,defaultProp:c,onChange:e=()=>{},caller:f}){let[g,h,i]=function({defaultProp:a,onChange:c}){let[e,f]=b.useState(a),g=b.useRef(e),h=b.useRef(c);return d(()=>{h.current=c},[c]),b.useEffect(()=>{g.current!==e&&(h.current?.(e),g.current=e)},[e,g]),[e,f,h]}({defaultProp:c,onChange:e}),j=void 0!==a,k=j?a:g;{let c=b.useRef(void 0!==a);b.useEffect(()=>{let a=c.current;if(a!==j){let b=j?"controlled":"uncontrolled";console.warn(`${f} is changing from ${a?"controlled":"uncontrolled"} to ${b}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}c.current=j},[j,f])}return[k,b.useCallback(b=>{if(j){let c="function"==typeof b?b(a):b;c!==a&&i.current?.(c)}else h(b)},[j,a,h,i])]}],483370)}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=node_modules__pnpm_12_d6fg._.js.map
|
|
@@ -45,6 +45,14 @@
|
|
|
45
45
|
"/api/v1/memory/stores/[store]/tasks/[requestId]": {},
|
|
46
46
|
"/api/v1/memory/stores/[store]/units": {},
|
|
47
47
|
"/api/v1/memory/stores/[store]/units/[memoryId]": {},
|
|
48
|
+
"/api/v1/memory/stores/[store]/wikis": {},
|
|
49
|
+
"/api/v1/memory/stores/[store]/wikis/artifacts": {},
|
|
50
|
+
"/api/v1/memory/stores/[store]/wikis/ingest": {},
|
|
51
|
+
"/api/v1/memory/stores/[store]/wikis/page": {},
|
|
52
|
+
"/api/v1/memory/stores/[store]/wikis/pages": {},
|
|
53
|
+
"/api/v1/memory/stores/[store]/wikis/search": {},
|
|
54
|
+
"/api/v1/memory/stores/[store]/wikis/source": {},
|
|
55
|
+
"/api/v1/memory/stores/[store]/wikis/sources": {},
|
|
48
56
|
"/api/v1/oss/list": {},
|
|
49
57
|
"/api/v1/runtime/context": {}
|
|
50
58
|
}
|
|
@@ -7,9 +7,9 @@ globalThis.__BUILD_MANIFEST = {
|
|
|
7
7
|
"static/chunks/03~yq9q893hmn.js"
|
|
8
8
|
],
|
|
9
9
|
"lowPriorityFiles": [
|
|
10
|
-
"static/
|
|
11
|
-
"static/
|
|
12
|
-
"static/
|
|
10
|
+
"static/bKUtNfKb47TOc1cpUk74A/_buildManifest.js",
|
|
11
|
+
"static/bKUtNfKb47TOc1cpUk74A/_ssgManifest.js",
|
|
12
|
+
"static/bKUtNfKb47TOc1cpUk74A/_clientMiddlewareManifest.js"
|
|
13
13
|
],
|
|
14
14
|
"rootMainFiles": [
|
|
15
15
|
"static/chunks/0fn_vxxgj3hl1.js",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
self.__NEXT_FONT_MANIFEST="{\n \"app\": {\n \"[project]/dashboard/src/app/(dashboard)/api-keys/page\": [],\n \"[project]/dashboard/src/app/(dashboard)/chat/page\": [],\n \"[project]/dashboard/src/app/(dashboard)/knowledge-base/[name]/documents/page\": [],\n \"[project]/dashboard/src/app/(dashboard)/knowledge-base/[name]/page\": [],\n \"[project]/dashboard/src/app/(dashboard)/knowledge-base/[name]/qa/page\": [],\n \"[project]/dashboard/src/app/(dashboard)/knowledge-base/[name]/retrieval/page\": [],\n \"[project]/dashboard/src/app/(dashboard)/knowledge-base/[name]/settings/page\": [],\n \"[project]/dashboard/src/app/(dashboard)/knowledge-base/create/page\": [],\n \"[project]/dashboard/src/app/(dashboard)/knowledge-base/page\": [],\n \"[project]/dashboard/src/app/(dashboard)/llm-providers/[id]/page\": [],\n \"[project]/dashboard/src/app/(dashboard)/llm-providers/new/page\": [],\n \"[project]/dashboard/src/app/(dashboard)/llm-providers/page\": [],\n \"[project]/dashboard/src/app/(dashboard)/memory/[store]/dream/[dreamId]/page\": [],\n \"[project]/dashboard/src/app/(dashboard)/memory/[store]/dream/page\": [],\n \"[project]/dashboard/src/app/(dashboard)/memory/[store]/messages/page\": [],\n \"[project]/dashboard/src/app/(dashboard)/memory/[store]/page\": [],\n \"[project]/dashboard/src/app/(dashboard)/memory/[store]/requests/page\": [],\n \"[project]/dashboard/src/app/(dashboard)/memory/[store]/search/page\": [],\n \"[project]/dashboard/src/app/(dashboard)/memory/[store]/settings/page\": [],\n \"[project]/dashboard/src/app/(dashboard)/memory/[store]/tasks/page\": [],\n \"[project]/dashboard/src/app/(dashboard)/memory/[store]/units/page\": [],\n \"[project]/dashboard/src/app/(dashboard)/memory/create/page\": [],\n \"[project]/dashboard/src/app/(dashboard)/memory/page\": [],\n \"[project]/dashboard/src/app/(dashboard)/projects/page\": [],\n \"[project]/dashboard/src/app/_not-found/page\": [],\n \"[project]/dashboard/src/app/onboarding/page\": [],\n \"[project]/dashboard/src/app/page\": []\n },\n \"appUsingSizeAdjust\": false,\n \"pages\": {},\n \"pagesUsingSizeAdjust\": false\n}"
|
|
1
|
+
self.__NEXT_FONT_MANIFEST="{\n \"app\": {\n \"[project]/dashboard/src/app/(dashboard)/api-keys/page\": [],\n \"[project]/dashboard/src/app/(dashboard)/chat/page\": [],\n \"[project]/dashboard/src/app/(dashboard)/knowledge-base/[name]/documents/page\": [],\n \"[project]/dashboard/src/app/(dashboard)/knowledge-base/[name]/page\": [],\n \"[project]/dashboard/src/app/(dashboard)/knowledge-base/[name]/qa/page\": [],\n \"[project]/dashboard/src/app/(dashboard)/knowledge-base/[name]/retrieval/page\": [],\n \"[project]/dashboard/src/app/(dashboard)/knowledge-base/[name]/settings/page\": [],\n \"[project]/dashboard/src/app/(dashboard)/knowledge-base/create/page\": [],\n \"[project]/dashboard/src/app/(dashboard)/knowledge-base/page\": [],\n \"[project]/dashboard/src/app/(dashboard)/llm-providers/[id]/page\": [],\n \"[project]/dashboard/src/app/(dashboard)/llm-providers/new/page\": [],\n \"[project]/dashboard/src/app/(dashboard)/llm-providers/page\": [],\n \"[project]/dashboard/src/app/(dashboard)/memory/[store]/dream/[dreamId]/page\": [],\n \"[project]/dashboard/src/app/(dashboard)/memory/[store]/dream/page\": [],\n \"[project]/dashboard/src/app/(dashboard)/memory/[store]/messages/page\": [],\n \"[project]/dashboard/src/app/(dashboard)/memory/[store]/page\": [],\n \"[project]/dashboard/src/app/(dashboard)/memory/[store]/requests/page\": [],\n \"[project]/dashboard/src/app/(dashboard)/memory/[store]/scope/page\": [],\n \"[project]/dashboard/src/app/(dashboard)/memory/[store]/search/page\": [],\n \"[project]/dashboard/src/app/(dashboard)/memory/[store]/settings/page\": [],\n \"[project]/dashboard/src/app/(dashboard)/memory/[store]/tasks/page\": [],\n \"[project]/dashboard/src/app/(dashboard)/memory/[store]/units/page\": [],\n \"[project]/dashboard/src/app/(dashboard)/memory/[store]/wiki/page\": [],\n \"[project]/dashboard/src/app/(dashboard)/memory/create/page\": [],\n \"[project]/dashboard/src/app/(dashboard)/memory/page\": [],\n \"[project]/dashboard/src/app/(dashboard)/projects/page\": [],\n \"[project]/dashboard/src/app/_not-found/page\": [],\n \"[project]/dashboard/src/app/onboarding/page\": [],\n \"[project]/dashboard/src/app/page\": []\n },\n \"appUsingSizeAdjust\": false,\n \"pages\": {},\n \"pagesUsingSizeAdjust\": false\n}"
|
|
@@ -17,10 +17,12 @@
|
|
|
17
17
|
"[project]/dashboard/src/app/(dashboard)/memory/[store]/messages/page": [],
|
|
18
18
|
"[project]/dashboard/src/app/(dashboard)/memory/[store]/page": [],
|
|
19
19
|
"[project]/dashboard/src/app/(dashboard)/memory/[store]/requests/page": [],
|
|
20
|
+
"[project]/dashboard/src/app/(dashboard)/memory/[store]/scope/page": [],
|
|
20
21
|
"[project]/dashboard/src/app/(dashboard)/memory/[store]/search/page": [],
|
|
21
22
|
"[project]/dashboard/src/app/(dashboard)/memory/[store]/settings/page": [],
|
|
22
23
|
"[project]/dashboard/src/app/(dashboard)/memory/[store]/tasks/page": [],
|
|
23
24
|
"[project]/dashboard/src/app/(dashboard)/memory/[store]/units/page": [],
|
|
25
|
+
"[project]/dashboard/src/app/(dashboard)/memory/[store]/wiki/page": [],
|
|
24
26
|
"[project]/dashboard/src/app/(dashboard)/memory/create/page": [],
|
|
25
27
|
"[project]/dashboard/src/app/(dashboard)/memory/page": [],
|
|
26
28
|
"[project]/dashboard/src/app/(dashboard)/projects/page": [],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="zh-CN" class=" "><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/
|
|
1
|
+
<!DOCTYPE html><html lang="zh-CN" class=" "><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/057-rg6~0wki8.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/0fn_vxxgj3hl1.js"/><script src="/_next/static/chunks/0nub30_v6jr4i.js" async=""></script><script src="/_next/static/chunks/11znyrrfxjgq3.js" async=""></script><script src="/_next/static/chunks/0bj-t.iuykai_.js" async=""></script><script src="/_next/static/chunks/04v.gjub-9gol.js" async=""></script><script src="/_next/static/chunks/turbopack-16lf31ozmjkmf.js" async=""></script><script src="/_next/static/chunks/05d8-45s941bx.js" async=""></script><script src="/_next/static/chunks/0o-j8g9gp_c1r.js" async=""></script><script src="/_next/static/chunks/0tz4oo5y_4wam.js" async=""></script><script src="/_next/static/chunks/07v6llp0fv6iq.js" async=""></script><script src="/_next/static/chunks/0nvwdxs-j_2ld.js" async=""></script><script src="/_next/static/chunks/0r44f~_t6m0hu.js" async=""></script><meta name="robots" content="noindex"/><title>Agent Storage</title><meta name="description" content="A dashboard for managing Tablestore Agent Storage."/><script src="/_next/static/chunks/03~yq9q893hmn.js" noModule=""></script></head><body class="min-h-screen font-sans antialiased text-foreground"><div hidden=""><!--$--><!--/$--></div><script>((a,b,c,d,e,f,g,h)=>{let i=document.documentElement,j=["light","dark"];function k(b){var c;(Array.isArray(a)?a:[a]).forEach(a=>{let c="class"===a,d=c&&f?e.map(a=>f[a]||a):e;c?(i.classList.remove(...d),i.classList.add(f&&f[b]?f[b]:b)):i.setAttribute(a,b)}),c=b,h&&j.includes(c)&&(i.style.colorScheme=c)}if(d)k(d);else try{let a=localStorage.getItem(b)||c,d=g&&"system"===a?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":a;k(d)}catch(a){}})("class","theme","system",null,["light","dark"],null,true,true)</script><div class="flex min-h-screen flex-col items-center justify-center gap-4"><h2 class="text-2xl font-semibold tracking-tight text-foreground">页面不存在</h2><p class="text-sm text-muted-foreground">您访问的页面不存在或已被移除。</p><a class="rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground shadow-sm transition-colors hover:bg-primary/90" href="/">返回首页</a></div><!--$--><!--/$--><section aria-label="Notifications alt+T" tabindex="-1" aria-live="polite" aria-relevant="additions text" aria-atomic="false"></section><script src="/_next/static/chunks/0fn_vxxgj3hl1.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[412278,[\"/_next/static/chunks/05d8-45s941bx.js\",\"/_next/static/chunks/0o-j8g9gp_c1r.js\",\"/_next/static/chunks/0tz4oo5y_4wam.js\",\"/_next/static/chunks/07v6llp0fv6iq.js\"],\"ThemeProvider\"]\n3:I[515793,[\"/_next/static/chunks/05d8-45s941bx.js\",\"/_next/static/chunks/0o-j8g9gp_c1r.js\",\"/_next/static/chunks/0tz4oo5y_4wam.js\",\"/_next/static/chunks/07v6llp0fv6iq.js\"],\"LocaleProvider\"]\n4:I[785290,[\"/_next/static/chunks/05d8-45s941bx.js\",\"/_next/static/chunks/0o-j8g9gp_c1r.js\",\"/_next/static/chunks/0tz4oo5y_4wam.js\",\"/_next/static/chunks/07v6llp0fv6iq.js\"],\"QueryProvider\"]\n5:I[433362,[\"/_next/static/chunks/05d8-45s941bx.js\",\"/_next/static/chunks/0o-j8g9gp_c1r.js\",\"/_next/static/chunks/0tz4oo5y_4wam.js\",\"/_next/static/chunks/07v6llp0fv6iq.js\"],\"ClientErrorReporter\"]\n6:I[902063,[\"/_next/static/chunks/05d8-45s941bx.js\",\"/_next/static/chunks/0o-j8g9gp_c1r.js\",\"/_next/static/chunks/0tz4oo5y_4wam.js\",\"/_next/static/chunks/07v6llp0fv6iq.js\"],\"default\"]\n7:I[910445,[\"/_next/static/chunks/05d8-45s941bx.js\",\"/_next/static/chunks/0o-j8g9gp_c1r.js\",\"/_next/static/chunks/0tz4oo5y_4wam.js\",\"/_next/static/chunks/07v6llp0fv6iq.js\",\"/_next/static/chunks/0nvwdxs-j_2ld.js\"],\"default\"]\n8:I[259666,[\"/_next/static/chunks/05d8-45s941bx.js\",\"/_next/static/chunks/0o-j8g9gp_c1r.js\",\"/_next/static/chunks/0tz4oo5y_4wam.js\",\"/_next/static/chunks/07v6llp0fv6iq.js\"],\"default\"]\n9:I[148912,[\"/_next/static/chunks/05d8-45s941bx.js\",\"/_next/static/chunks/0o-j8g9gp_c1r.js\",\"/_next/static/chunks/0tz4oo5y_4wam.js\",\"/_next/static/chunks/07v6llp0fv6iq.js\",\"/_next/static/chunks/0r44f~_t6m0hu.js\"],\"default\"]\na:I[187014,[\"/_next/static/chunks/05d8-45s941bx.js\",\"/_next/static/chunks/0o-j8g9gp_c1r.js\",\"/_next/static/chunks/0tz4oo5y_4wam.js\",\"/_next/static/chunks/07v6llp0fv6iq.js\"],\"Toaster\"]\nb:I[687919,[\"/_next/static/chunks/05d8-45s941bx.js\",\"/_next/static/chunks/0o-j8g9gp_c1r.js\",\"/_next/static/chunks/0tz4oo5y_4wam.js\",\"/_next/static/chunks/07v6llp0fv6iq.js\"],\"ClientPageRoot\"]\ne:I[62711,[\"/_next/static/chunks/05d8-45s941bx.js\",\"/_next/static/chunks/0o-j8g9gp_c1r.js\",\"/_next/static/chunks/0tz4oo5y_4wam.js\",\"/_next/static/chunks/07v6llp0fv6iq.js\"],\"OutletBoundary\"]\nf:\"$Sreact.suspense\"\n12:I[62711,[\"/_next/static/chunks/05d8-45s941bx.js\",\"/_next/static/chunks/0o-j8g9gp_c1r.js\",\"/_next/static/chunks/0tz4oo5y_4wam.js\",\"/_next/static/chunks/07v6llp0fv6iq.js\"],\"ViewportBoundary\"]\n14:I[62711,[\"/_next/static/chunks/05d8-45s941bx.js\",\"/_next/static/chunks/0o-j8g9gp_c1r.js\",\"/_next/static/chunks/0tz4oo5y_4wam.js\",\"/_next/static/chunks/07v6llp0fv6iq.js\"],\"MetadataBoundary\"]\n16:I[514743,[\"/_next/static/chunks/05d8-45s941bx.js\",\"/_next/static/chunks/0o-j8g9gp_c1r.js\",\"/_next/static/chunks/0tz4oo5y_4wam.js\",\"/_next/static/chunks/07v6llp0fv6iq.js\"],\"default\",1]\n:HL[\"/_next/static/chunks/057-rg6~0wki8.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",16],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/057-rg6~0wki8.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/05d8-45s941bx.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/0o-j8g9gp_c1r.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/_next/static/chunks/0tz4oo5y_4wam.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-3\",{\"src\":\"/_next/static/chunks/07v6llp0fv6iq.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"zh-CN\",\"className\":\" \",\"suppressHydrationWarning\":true,\"children\":[\"$\",\"body\",null,{\"className\":\"min-h-screen font-sans antialiased text-foreground\",\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"children\":[\"$\",\"$L4\",null,{\"children\":[[\"$\",\"$L5\",null,{}],[\"$\",\"$L6\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$7\",\"errorStyles\":[],\"errorScripts\":[[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/0nvwdxs-j_2ld.js\",\"async\":true}]],\"template\":[\"$\",\"$L8\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"$L9\",null,{}],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}],[\"$\",\"$La\",null,{\"position\":\"top-right\",\"richColors\":true,\"closeButton\":true}]]}]}]}]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L6\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L8\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"$Lb\",null,{\"Component\":\"$9\",\"serverProvidedParams\":{\"searchParams\":{},\"params\":{},\"promises\":[\"$@c\",\"$@d\"]}}],[[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/0r44f~_t6m0hu.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"$Le\",null,{\"children\":[\"$\",\"$f\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@10\"}]}]]}],{},null,false,null]},null,false,\"$@11\"]},null,false,null],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$L12\",null,{\"children\":\"$L13\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L14\",null,{\"children\":[\"$\",\"$f\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L15\"}]}]}],null]}],false]],\"m\":\"$undefined\",\"G\":[\"$16\",[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/057-rg6~0wki8.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"bKUtNfKb47TOc1cpUk74A\"}\n"])</script><script>self.__next_f.push([1,"17:[]\n11:\"$W17\"\nc:{}\nd:\"$0:f:0:1:1:children:1:children:0:props:children:0:props:serverProvidedParams:params\"\n"])</script><script>self.__next_f.push([1,"13:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"10:null\n15:[[\"$\",\"title\",\"0\",{\"children\":\"Agent Storage\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"A dashboard for managing Tablestore Agent Storage.\"}]]\n"])</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/0fn_vxxgj3hl1.js"/><script src="/_next/static/chunks/0nub30_v6jr4i.js" async=""></script><script src="/_next/static/chunks/11znyrrfxjgq3.js" async=""></script><script src="/_next/static/chunks/0bj-t.iuykai_.js" async=""></script><script src="/_next/static/chunks/04v.gjub-9gol.js" async=""></script><script src="/_next/static/chunks/turbopack-16lf31ozmjkmf.js" async=""></script><script src="/_next/static/chunks/16k45xpo0_c4l.js" async=""></script><script src="/_next/static/chunks/0tz4oo5y_4wam.js" async=""></script><title>500: This page couldn’t load</title><style>:root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }</style><script src="/_next/static/chunks/03~yq9q893hmn.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;display:flex;align-items:center;justify-content:center"><div style="margin-top:-32px;max-width:325px;padding:32px 28px;text-align:left"><svg width="32" height="32" viewBox="-0.2 -1.5 32 32" fill="none" style="margin-bottom:24px"><path d="M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z" fill="var(--next-error-title)"></path></svg><h1 style="font-size:24px;font-weight:500;letter-spacing:-0.02em;line-height:32px;margin:0 0 12px 0;color:var(--next-error-title)">This page couldn’t load</h1><p style="font-size:14px;font-weight:400;line-height:21px;margin:0 0 20px 0;color:var(--next-error-message)">A server error occurred. Reload to try again.</p><form style="margin:0"><button type="submit" style="display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 12px;font-size:14px;font-weight:500;line-height:20px;border-radius:6px;cursor:pointer;color:var(--next-error-btn-text);background:var(--next-error-btn-bg);border:var(--next-error-btn-border)">Reload</button></form></div></div><!--$--><!--/$--><script src="/_next/static/chunks/0fn_vxxgj3hl1.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[902063,[\"/_next/static/chunks/16k45xpo0_c4l.js\",\"/_next/static/chunks/0tz4oo5y_4wam.js\"],\"default\"]\n3:I[259666,[\"/_next/static/chunks/16k45xpo0_c4l.js\",\"/_next/static/chunks/0tz4oo5y_4wam.js\"],\"default\"]\n4:I[62711,[\"/_next/static/chunks/16k45xpo0_c4l.js\",\"/_next/static/chunks/0tz4oo5y_4wam.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n8:I[62711,[\"/_next/static/chunks/16k45xpo0_c4l.js\",\"/_next/static/chunks/0tz4oo5y_4wam.js\"],\"ViewportBoundary\"]\na:I[62711,[\"/_next/static/chunks/16k45xpo0_c4l.js\",\"/_next/static/chunks/0tz4oo5y_4wam.js\"],\"MetadataBoundary\"]\nc:I[514743,[\"/_next/static/chunks/16k45xpo0_c4l.js\",\"/_next/static/chunks/0tz4oo5y_4wam.js\"],\"default\",1]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]}],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"title\",null,{\"children\":\"500: This page couldn’t load\"}],[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"marginTop\":\"-32px\",\"maxWidth\":\"325px\",\"padding\":\"32px 28px\",\"textAlign\":\"left\"},\"children\":[[\"$\",\"svg\",null,{\"width\":\"32\",\"height\":\"32\",\"viewBox\":\"-0.2 -1.5 32 32\",\"fill\":\"none\",\"style\":{\"marginBottom\":\"24px\"},\"children\":[\"$\",\"path\",null,{\"d\":\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\",\"fill\":\"var(--next-error-title)\"}]}],[\"$\",\"h1\",null,{\"style\":{\"fontSize\":\"24px\",\"fontWeight\":500,\"letterSpacing\":\"-0.02em\",\"lineHeight\":\"32px\",\"margin\":\"0 0 12px 0\",\"color\":\"var(--next-error-title)\"},\"children\":\"This page couldn’t load\"}],[\"$\",\"p\",null,{\"style\":{\"fontSize\":\"14px\",\"fontWeight\":400,\"lineHeight\":\"21px\",\"margin\":\"0 0 20px 0\",\"color\":\"var(--next-error-message)\"},\"children\":\"A server error occurred. Reload to try again.\"}],[\"$\",\"form\",null,{\"style\":{\"margin\":0},\"children\":[\"$\",\"button\",null,{\"type\":\"submit\",\"style\":{\"display\":\"inline-flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"height\":\"32px\",\"padding\":\"0 12px\",\"fontSize\":\"14px\",\"fontWeight\":500,\"lineHeight\":\"20px\",\"borderRadius\":\"6px\",\"cursor\":\"pointer\",\"color\":\"var(--next-error-btn-text)\",\"background\":\"var(--next-error-btn-bg)\",\"border\":\"var(--next-error-btn-border)\"},\"children\":\"Reload\"}]}]]}]}]}]]}],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,null]},null,false,\"$@7\"],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],null]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",[]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"
|
|
1
|
+
<!DOCTYPE html><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/0fn_vxxgj3hl1.js"/><script src="/_next/static/chunks/0nub30_v6jr4i.js" async=""></script><script src="/_next/static/chunks/11znyrrfxjgq3.js" async=""></script><script src="/_next/static/chunks/0bj-t.iuykai_.js" async=""></script><script src="/_next/static/chunks/04v.gjub-9gol.js" async=""></script><script src="/_next/static/chunks/turbopack-16lf31ozmjkmf.js" async=""></script><script src="/_next/static/chunks/16k45xpo0_c4l.js" async=""></script><script src="/_next/static/chunks/0tz4oo5y_4wam.js" async=""></script><title>500: This page couldn’t load</title><style>:root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }</style><script src="/_next/static/chunks/03~yq9q893hmn.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;display:flex;align-items:center;justify-content:center"><div style="margin-top:-32px;max-width:325px;padding:32px 28px;text-align:left"><svg width="32" height="32" viewBox="-0.2 -1.5 32 32" fill="none" style="margin-bottom:24px"><path d="M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z" fill="var(--next-error-title)"></path></svg><h1 style="font-size:24px;font-weight:500;letter-spacing:-0.02em;line-height:32px;margin:0 0 12px 0;color:var(--next-error-title)">This page couldn’t load</h1><p style="font-size:14px;font-weight:400;line-height:21px;margin:0 0 20px 0;color:var(--next-error-message)">A server error occurred. Reload to try again.</p><form style="margin:0"><button type="submit" style="display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 12px;font-size:14px;font-weight:500;line-height:20px;border-radius:6px;cursor:pointer;color:var(--next-error-btn-text);background:var(--next-error-btn-bg);border:var(--next-error-btn-border)">Reload</button></form></div></div><!--$--><!--/$--><script src="/_next/static/chunks/0fn_vxxgj3hl1.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[902063,[\"/_next/static/chunks/16k45xpo0_c4l.js\",\"/_next/static/chunks/0tz4oo5y_4wam.js\"],\"default\"]\n3:I[259666,[\"/_next/static/chunks/16k45xpo0_c4l.js\",\"/_next/static/chunks/0tz4oo5y_4wam.js\"],\"default\"]\n4:I[62711,[\"/_next/static/chunks/16k45xpo0_c4l.js\",\"/_next/static/chunks/0tz4oo5y_4wam.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n8:I[62711,[\"/_next/static/chunks/16k45xpo0_c4l.js\",\"/_next/static/chunks/0tz4oo5y_4wam.js\"],\"ViewportBoundary\"]\na:I[62711,[\"/_next/static/chunks/16k45xpo0_c4l.js\",\"/_next/static/chunks/0tz4oo5y_4wam.js\"],\"MetadataBoundary\"]\nc:I[514743,[\"/_next/static/chunks/16k45xpo0_c4l.js\",\"/_next/static/chunks/0tz4oo5y_4wam.js\"],\"default\",1]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]}],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"title\",null,{\"children\":\"500: This page couldn’t load\"}],[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"marginTop\":\"-32px\",\"maxWidth\":\"325px\",\"padding\":\"32px 28px\",\"textAlign\":\"left\"},\"children\":[[\"$\",\"svg\",null,{\"width\":\"32\",\"height\":\"32\",\"viewBox\":\"-0.2 -1.5 32 32\",\"fill\":\"none\",\"style\":{\"marginBottom\":\"24px\"},\"children\":[\"$\",\"path\",null,{\"d\":\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\",\"fill\":\"var(--next-error-title)\"}]}],[\"$\",\"h1\",null,{\"style\":{\"fontSize\":\"24px\",\"fontWeight\":500,\"letterSpacing\":\"-0.02em\",\"lineHeight\":\"32px\",\"margin\":\"0 0 12px 0\",\"color\":\"var(--next-error-title)\"},\"children\":\"This page couldn’t load\"}],[\"$\",\"p\",null,{\"style\":{\"fontSize\":\"14px\",\"fontWeight\":400,\"lineHeight\":\"21px\",\"margin\":\"0 0 20px 0\",\"color\":\"var(--next-error-message)\"},\"children\":\"A server error occurred. Reload to try again.\"}],[\"$\",\"form\",null,{\"style\":{\"margin\":0},\"children\":[\"$\",\"button\",null,{\"type\":\"submit\",\"style\":{\"display\":\"inline-flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"height\":\"32px\",\"padding\":\"0 12px\",\"fontSize\":\"14px\",\"fontWeight\":500,\"lineHeight\":\"20px\",\"borderRadius\":\"6px\",\"cursor\":\"pointer\",\"color\":\"var(--next-error-btn-text)\",\"background\":\"var(--next-error-btn-bg)\",\"border\":\"var(--next-error-btn-border)\"},\"children\":\"Reload\"}]}]]}]}]}]]}],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,null]},null,false,\"$@7\"],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],null]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",[]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"bKUtNfKb47TOc1cpUk74A\"}\n"])</script><script>self.__next_f.push([1,"d:[]\n7:\"$Wd\"\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"6:null\nb:[]\n"])</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
self.__RSC_SERVER_MANIFEST="{\n \"node\": {},\n \"edge\": {},\n \"encryptionKey\": \"
|
|
1
|
+
self.__RSC_SERVER_MANIFEST="{\n \"node\": {},\n \"edge\": {},\n \"encryptionKey\": \"hQ7MQKYJCme7oPf1/5hmiOp3fg4nw+XbM6tYsOd9DXE=\"\n}"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,802447,e=>{"use strict";var t=e.i(44501),r=e.i(101685),a=e.i(967225),s=e.i(942595),o=e.i(107663),n=e.i(821122);let i=(0,e.i(801685).default)("message-square-plus",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M12 8v6",key:"1ib9pf"}],["path",{d:"M9 11h6",key:"1fldmi"}]]);var l=e.i(330363),d=e.i(515793),m=e.i(876490);function c({sessions:e,activeSessionId:r,onNewSession:a,onSelectSession:o,onDeleteSession:n,onClearAll:m}){let{t:p}=(0,d.useI18n)();return(0,t.jsxs)("aside",{className:"flex h-full w-64 shrink-0 flex-col border-r border-[hsl(var(--border))] bg-[hsl(var(--surface))]",children:[(0,t.jsx)("div",{className:"border-b border-[hsl(var(--border))] p-3",children:(0,t.jsxs)(s.Button,{type:"button",onClick:a,className:"w-full justify-start gap-2",variant:"outline",children:[(0,t.jsx)(i,{className:"h-4 w-4"}),p("chat.history.newChat")]})}),(0,t.jsx)("div",{className:"flex-1 overflow-y-auto",children:0===e.length?(0,t.jsx)("p",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:p("chat.history.empty")}):(0,t.jsx)("ul",{className:"space-y-0.5 p-2",children:e.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(u,{session:e,active:e.id===r,onSelect:()=>o(e.id),onDelete:()=>n(e.id)})},e.id))})}),e.length>0?(0,t.jsx)("div",{className:"border-t border-[hsl(var(--border))] p-2",children:(0,t.jsxs)(s.Button,{type:"button",variant:"ghost",size:"sm",onClick:m,className:"w-full justify-start gap-2 text-muted-foreground hover:text-[hsl(var(--destructive))]",children:[(0,t.jsx)(l.Trash2,{className:"h-3.5 w-3.5"}),p("chat.history.clearAll")]})}):null]})}function u({session:e,active:r,onSelect:a,onDelete:o}){let{t:n}=(0,d.useI18n)(),i=e.config.mounts.length;return(0,t.jsxs)("div",{className:(0,m.cn)("group flex items-center gap-1 rounded-md px-2 py-1.5 text-sm transition-colors",r?"bg-[hsl(var(--accent))] text-foreground":"text-foreground/80 hover:bg-[hsl(var(--accent)/0.6)]"),children:[(0,t.jsxs)("button",{type:"button",onClick:a,className:"flex min-w-0 flex-1 flex-col items-start text-left",children:[(0,t.jsx)("span",{className:"w-full truncate font-medium",children:e.title}),(0,t.jsxs)("span",{className:"flex items-center gap-1.5 text-[11px] text-muted-foreground",children:[(0,t.jsx)("span",{children:function(e,t){let r=Math.floor((Date.now()-e)/6e4);if(r<1)return t("chat.history.justNow");if(r<60)return t("chat.history.minutesAgo",{count:r});let a=Math.floor(r/60);if(a<24)return t("chat.history.hoursAgo",{count:a});let s=Math.floor(a/24);return s<7?t("chat.history.daysAgo",{count:s}):new Date(e).toLocaleDateString()}(e.updatedAt,n)}),i>0?(0,t.jsxs)("span",{children:["· ",i," KB"]}):null]})]}),(0,t.jsx)(s.Button,{type:"button",variant:"ghost",size:"icon",onClick:e=>{e.stopPropagation(),o()},className:"h-6 w-6 opacity-0 group-hover:opacity-100",title:n("chat.history.delete"),children:(0,t.jsx)(l.Trash2,{className:"h-3 w-3 text-muted-foreground"})})]})}var p=e.i(506703),h=e.i(144308),g=e.i(723888),y=e.i(766476),f=e.i(247932),v=e.i(433042),x=e.i(906962),b=e.i(828772);let w={providerId:"",model:"",systemPrompt:"",temperature:void 0,aggregateTopK:20,perKbTopK:20,retrieval:{searchType:["DENSE_VECTOR","FULL_TEXT"],rerankType:"WEIGHT",weightDense:.7,weightFullText:.3},mounts:[],wikiEnabled:!1,wikiTopK:3};function N(e){if(e)return JSON.stringify([e.memoryStoreName,e.storageMode??null,e.scope.appId,e.scope.tenantId,e.scope.agentId,e.scope.runId])}function j(e,t){return{id:t,...e,scope:{...e.scope,runId:(0,b.normalizeMemoryRunId)(e.storageMode,e.scope.runId)}}}function S(e){return(e?.storageMode==="ots"||e?.storageMode==="file+ots"||e?.storageMode==="filemem")&&!!e&&!!e.memoryStoreName.trim()&&Object.values(e.scope).every(e=>{let t=e.trim();return t.length>0&&"*"!==t})}function k(e){return"number"==typeof e&&Number.isInteger(e)&&e>=1&&e<=10?e:3}let T=["providerId","model","systemPrompt","temperature","aggregateTopK","perKbTopK","retrieval","mounts"];function I(e,t){switch(t.type){case"SET_PROVIDER":return{...e,providerId:t.providerId,model:t.model};case"SET_MODEL":return{...e,model:t.model};case"SET_SYSTEM_PROMPT":return{...e,systemPrompt:t.value};case"SET_TEMPERATURE":return{...e,temperature:t.value};case"SET_AGGREGATE_TOP_K":return{...e,aggregateTopK:t.value};case"SET_PER_KB_TOP_K":return{...e,perKbTopK:t.value};case"SET_RETRIEVAL":return{...e,retrieval:t.value};case"ADD_MOUNT":if(e.mounts.some(e=>e.knowledgeBaseName===t.mount.knowledgeBaseName))return e;return{...e,mounts:[...e.mounts,t.mount]};case"UPDATE_MOUNT":return{...e,mounts:e.mounts.map(e=>e.id===t.id?{...e,...t.patch}:e)};case"RESET_MOUNT_RETRIEVAL":return{...e,mounts:e.mounts.map(e=>{if(e.id!==t.id)return e;let{retrieval:r,topK:a,...s}=e;return s})};case"REMOVE_MOUNT":return{...e,mounts:e.mounts.filter(e=>e.id!==t.id)};case"REORDER_MOUNTS":{let r=new Map(e.mounts.map(e=>[e.id,e])),a=t.ids.map(e=>r.get(e)).filter(e=>!!e);return{...e,mounts:a}}case"HYDRATE":{let r=t.state,{memory:a,wikiEnabled:s,wikiTopK:o}=r,n=Object.fromEntries(T.filter(e=>Object.prototype.hasOwnProperty.call(r,e)).map(e=>[e,r[e]]));if(!Object.prototype.hasOwnProperty.call(r,"memory")){let t=Object.prototype.hasOwnProperty.call(r,"wikiEnabled")?!0===s:e.wikiEnabled;return{...e,...n,wikiEnabled:t&&S(e.memory),...Object.prototype.hasOwnProperty.call(r,"wikiTopK")?{wikiTopK:k(o)}:{}}}if(!a)return{...e,...n,memory:void 0,wikiEnabled:!1,wikiTopK:k(o)};let i=j(a,a.id);return{...e,...n,memory:i,wikiEnabled:!0===s&&S(i),wikiTopK:k(o)}}case"SET_MEMORY":{if(!t.binding)return{...e,memory:void 0,wikiEnabled:!1};let r=j(t.binding,e.memory?.id??(0,x.newId)("memory"));return{...e,memory:r,wikiEnabled:!!S(r)&&N(e.memory)===N(r)&&e.wikiEnabled}}case"UPDATE_MEMORY":{if(!e.memory)return e;let{scope:r,...a}=t.patch,s={...e.memory,...a,scope:{...e.memory.scope,...r??{}}},o=j(s,s.id);return{...e,memory:o,wikiEnabled:!!S(o)&&N(e.memory)===N(o)&&e.wikiEnabled}}case"SET_WIKI_ENABLED":return{...e,wikiEnabled:t.enabled&&S(e.memory)};case"SET_WIKI_TOP_K":return k(t.topK)===t.topK?{...e,wikiTopK:t.topK}:e;case"RESET":return w;default:return e}}let E=(0,r.createContext)(null);function K({children:e}){let[a,s]=(0,r.useReducer)(I,w),o=(0,r.useMemo)(()=>({...a,setProvider:(e,t)=>s({type:"SET_PROVIDER",providerId:e,model:t}),setModel:e=>s({type:"SET_MODEL",model:e}),setSystemPrompt:e=>s({type:"SET_SYSTEM_PROMPT",value:e}),setTemperature:e=>s({type:"SET_TEMPERATURE",value:e}),setAggregateTopK:e=>s({type:"SET_AGGREGATE_TOP_K",value:e}),setPerKbTopK:e=>s({type:"SET_PER_KB_TOP_K",value:e}),setRetrieval:e=>s({type:"SET_RETRIEVAL",value:e}),addMount:e=>s({type:"ADD_MOUNT",mount:e}),updateMount:(e,t)=>s({type:"UPDATE_MOUNT",id:e,patch:t}),resetMountRetrieval:e=>s({type:"RESET_MOUNT_RETRIEVAL",id:e}),removeMount:e=>s({type:"REMOVE_MOUNT",id:e}),reorderMounts:e=>s({type:"REORDER_MOUNTS",ids:e}),setMemory:e=>s({type:"SET_MEMORY",binding:e}),updateMemory:e=>s({type:"UPDATE_MEMORY",patch:e}),setWikiEnabled:e=>s({type:"SET_WIKI_ENABLED",enabled:e}),setWikiTopK:e=>s({type:"SET_WIKI_TOP_K",topK:e}),hydrate:e=>s({type:"HYDRATE",state:e}),reset:()=>s({type:"RESET"}),toSessionConfig:()=>({providerId:a.providerId||void 0,model:a.model||void 0,systemPrompt:a.systemPrompt||void 0,temperature:a.temperature,aggregateTopK:a.aggregateTopK,perKbTopK:a.perKbTopK,retrieval:a.retrieval,mounts:a.mounts,memory:a.memory,...a.wikiEnabled&&S(a.memory)?{wiki:{enabled:!0,topK:a.wikiTopK}}:{}})}),[a]);return(0,t.jsx)(E.Provider,{value:o,children:e})}function M(){let e=(0,r.useContext)(E);if(!e)throw Error("useChatConfig must be used within a ChatConfigProvider");return e}var C=e.i(550657),B=e.i(851024),_=e.i(109012),A=e.i(358204),D=e.i(377163),R=e.i(153139),P=e.i(636766);function F({kbs:e,onPick:a,children:s,align:o="start"}){let{t:n}=(0,d.useI18n)(),[i,l]=(0,r.useState)(!1),m=t=>{let r=e.find(e=>e.knowledgeBaseName===t);r&&(a(r),l(!1))};return(0,t.jsxs)(P.Popover,{open:i,onOpenChange:l,modal:!0,children:[(0,t.jsx)(P.PopoverTrigger,{asChild:!0,children:s}),(0,t.jsx)(P.PopoverContent,{align:o,sideOffset:6,className:"w-[var(--radix-popover-trigger-width)] min-w-[260px] p-0",children:(0,t.jsxs)(R.Command,{children:[(0,t.jsx)(R.CommandInput,{placeholder:n("chat.mount.searchKbPlaceholder")}),(0,t.jsxs)(R.CommandList,{children:[(0,t.jsx)(R.CommandEmpty,{children:n("chat.mount.noMatchingKb")}),e.length>0?(0,t.jsx)(R.CommandGroup,{children:e.map(e=>(0,t.jsxs)(R.CommandItem,{value:e.knowledgeBaseName,onSelect:m,children:[(0,t.jsx)(D.Database,{className:"text-[hsl(var(--muted-foreground))]"}),(0,t.jsx)("span",{className:"truncate",children:e.knowledgeBaseName})]},e.knowledgeBaseName))}):null]})]})})]})}function O({kbs:e,onAdd:r}){let{t:a}=(0,d.useI18n)();return 0===e.length?null:(0,t.jsx)(F,{kbs:e,onPick:r,align:"start",children:(0,t.jsxs)("button",{type:"button",className:"group flex w-full items-center justify-center gap-1.5 rounded-md border border-dashed border-[hsl(var(--border))] bg-transparent px-3 py-2 text-xs font-medium text-[hsl(var(--muted-foreground))] transition-colors hover:border-[hsl(var(--primary)/0.5)] hover:bg-[hsl(var(--primary-soft))] hover:text-[hsl(var(--primary))] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[hsl(var(--primary)/0.3)] focus-visible:ring-offset-1 focus-visible:ring-offset-[hsl(var(--background))]",children:[(0,t.jsx)(A.Plus,{className:"h-3.5 w-3.5 transition-transform group-hover:rotate-90"}),a("chat.mount.addMore"),(0,t.jsxs)("span",{className:"text-[hsl(var(--muted-foreground))]/70 group-hover:text-[hsl(var(--primary))]/70",children:["(",e.length,")"]})]})})}var L=e.i(861403),W=e.i(18722),U=e.i(882652),V=e.i(229025),q=e.i(234752),z=e.i(187014),H=e.i(754614),G=e.i(162769),Q=e.i(166473),X=e.i(433253),Y=e.i(949456);function $(e){let{open:r,onOpenChange:a,memoryStoreName:s,scope:o}=e,{t:n}=(0,d.useI18n)();return(0,t.jsx)(X.Dialog,{open:r,onOpenChange:a,children:(0,t.jsxs)(X.DialogContent,{className:"flex h-[86vh] max-h-[900px] w-[95vw] max-w-[1400px] flex-col overflow-hidden",children:[(0,t.jsxs)(X.DialogHeader,{children:[(0,t.jsxs)(X.DialogTitle,{className:"flex items-center gap-2",children:[(0,t.jsx)(V.FolderTree,{className:"h-4 w-4"}),n("chat.filesDialog.title")]}),(0,t.jsx)(X.DialogDescription,{children:n("chat.filesDialog.description")})]}),(0,t.jsx)(Y.MemoryFilesBrowser,{memoryStoreName:s,scope:o,enabled:r,className:"min-h-0 flex-1"})]})})}var J=e.i(192988),Z=e.i(858620);function ee(){var e,a;let{t:s}=(0,d.useI18n)(),o=M(),n=o.memory,i=n?.storageMode==="ots"||n?.storageMode==="file+ots"||n?.storageMode==="filemem",l=(e=n?.scope)&&[e.appId,e.tenantId,e.agentId,e.runId].every(e=>e.trim().length>0&&"*"!==e.trim())?n.scope:void 0,m=S(n)?l:void 0,c=(0,Z.useWiki)(i?n?.memoryStoreName:void 0,m),u=!!m&&(a=c.data,a?.status==="ready"),p=o.wikiEnabled&&!!m,[h,f]=(0,r.useState)(String(o.wikiTopK));(0,r.useEffect)(()=>f(String(o.wikiTopK)),[o.wikiTopK]);let v=n?i?l?c.isLoading?s("common.loading"):c.error?s("chat.wikiBind.loadFailed"):c.data?u?void 0:s("chat.wikiBind.notReady"):s("chat.wikiBind.notFound"):s("chat.wikiBind.requiresExactScope"):s("chat.wikiBind.requiresKnownStorageMode"):s("chat.wikiBind.requiresMemory");return(0,t.jsxs)("div",{className:"space-y-3 border-t border-[hsl(var(--border-light))] pt-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(y.Label,{className:"text-xs font-medium uppercase tracking-wider text-muted-foreground",children:s("chat.wikiBind.title")}),(0,t.jsx)("p",{className:"mt-1 text-[11px] leading-relaxed text-muted-foreground",children:s("chat.wikiBind.description")})]}),m&&c.data?(0,t.jsxs)("div",{className:"flex items-center gap-3 rounded-md border border-[hsl(var(--border))] bg-[hsl(var(--muted)/0.3)] px-3 py-2",children:[(0,t.jsx)(J.BookOpen,{className:"h-3.5 w-3.5 shrink-0 text-[hsl(var(--primary))]"}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{className:"truncate text-sm font-medium",children:c.data.name}),(0,t.jsx)("p",{className:"text-[11px] text-muted-foreground",children:s(u?"chat.wikiBind.ready":"chat.wikiBind.notReady")})]}),(0,t.jsx)(G.Switch,{checked:p,disabled:!p&&!u,onCheckedChange:e=>o.setWikiEnabled(e&&u),"aria-label":s("chat.wikiBind.toggle")})]}):(0,t.jsx)(G.Switch,{checked:!1,disabled:!0,onCheckedChange:()=>void 0,"aria-label":s("chat.wikiBind.toggle")}),p?(0,t.jsxs)("details",{className:"rounded-md border border-[hsl(var(--border))] px-3 py-2",children:[(0,t.jsx)("summary",{className:"cursor-pointer text-xs font-medium text-muted-foreground",children:s("chat.wikiBind.advanced")}),(0,t.jsxs)("div",{className:"mt-2 flex items-center justify-end gap-2",children:[(0,t.jsx)(y.Label,{className:"text-xs text-muted-foreground",children:s("chat.wikiBind.topK")}),(0,t.jsx)(g.Input,{type:"number",min:1,max:10,step:1,className:"h-8 w-16",value:h,onChange:e=>f(e.target.value),onBlur:function(){var e;let t,r=(e=o.wikiTopK??3,Number.isFinite(t=Number(h))&&0!==h.trim().length?Math.min(10,Math.max(1,Math.trunc(t))):e);f(String(r)),o.setWikiTopK(r)},"aria-label":s("chat.wikiBind.topK")})]})]}):null,v?(0,t.jsx)(et,{children:v}):null]})}function et({children:e}){return(0,t.jsx)("p",{className:"rounded-md border border-dashed border-[hsl(var(--border))] px-3 py-2 text-xs text-muted-foreground",children:e})}var er=e.i(674978);function ea(){let{t:e}=(0,d.useI18n)(),a=M(),{data:s,isLoading:o,isSuccess:n}=(0,H.useMemoryStores)(),i=s?.items??[],l=a.memory,m=(0,r.useId)(),c=l?i.find(e=>e.memoryStoreName===l.memoryStoreName):void 0,u=!!c,p=(0,b.parseKnownStorageMode)(c?.storageMode),h=(0,b.normalizeStorageMode)(c?.storageMode??l?.storageMode),f=(0,b.storageModeCapabilities)(h),v=f.structuredAutoSave||f.writableFiles,x=l?.retrievalMode;return(0,r.useEffect)(()=>{if(!l||!n||!c)return;let e=(0,b.resolveRetrievalMode)(x,h),t=p??void 0,r={...x!==e?{retrievalMode:e}:{},...l.storageMode!==t?{storageMode:t}:{}};Object.keys(r).length>0&&a.updateMemory(r)},[l?.memoryStoreName,l?.storageMode,x,p,h,n,u]),(0,t.jsxs)("div",{className:"space-y-3 border-t border-[hsl(var(--border))] pt-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(y.Label,{className:"text-sm font-medium",children:e("chat.memoryBind.title")}),(0,t.jsx)("p",{className:"mt-0.5 text-xs text-muted-foreground",children:l?e("chat.memoryBind.descBound",{topK:l.topK??5}):e("chat.memoryBind.descUnbound")})]}),l&&(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(y.Label,{htmlFor:m,className:"text-xs text-muted-foreground",title:e("chat.memoryBind.topKTitle"),children:"Top-K"}),(0,t.jsx)(g.Input,{id:m,type:"number",min:1,max:50,className:"h-8 w-20",value:l.topK??5,onChange:e=>{let t=parseInt(e.target.value,10),r=Number.isFinite(t)&&t>=1&&t<=50?t:5;a.updateMemory({topK:r})}})]})]}),l?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ei,{value:l.memoryStoreName,stores:i,onChange:e=>{let t=i.find(t=>t.memoryStoreName===e)?.storageMode,r=(0,b.parseKnownStorageMode)(t),s=(0,b.normalizeStorageMode)(t);a.updateMemory({memoryStoreName:e,storageMode:r??void 0,retrievalMode:(0,b.resolveRetrievalMode)(l.retrievalMode,s)})},onUnbind:()=>a.setMemory(void 0)}),(0,t.jsx)(es,{mode:(0,b.resolveRetrievalMode)(l.retrievalMode,h),storageMode:h,fileMemoryAllowed:f.files,onChange:e=>a.updateMemory({retrievalMode:e}),memoryStoreName:l.memoryStoreName,scope:l.scope}),(0,t.jsx)(el,{memoryStoreName:l.memoryStoreName,appId:l.scope.appId,tenantId:l.scope.tenantId,agentId:l.scope.agentId,runId:l.scope.runId,autoSave:l.autoSave,autoSaveAllowed:v,fileAutoSave:f.writableFiles,onScopeChange:e=>a.updateMemory({scope:e}),onAutoSaveChange:e=>a.updateMemory({autoSave:e})}),(0,t.jsx)(ee,{})]}):(0,t.jsx)(en,{stores:i,isLoading:o,onBind:()=>{let e=(0,b.parseKnownStorageMode)(i[0]?.storageMode);a.setMemory({memoryStoreName:i[0]?.memoryStoreName??"",...null!==e?{storageMode:e}:{},scope:{appId:"",tenantId:"",agentId:"",runId:""},autoSave:!0,topK:5})}})]})}function es(e){let{mode:a,storageMode:o,fileMemoryAllowed:n,onChange:i,memoryStoreName:l,scope:m}=e,{t:c}=(0,d.useI18n)(),[u,p]=(0,r.useState)(!1),h=!!m.appId&&!!m.tenantId&&!!m.agentId&&!!m.runId;return(0,r.useEffect)(()=>{l&&h||p(!1)},[l,h]),(0,t.jsxs)("div",{className:"space-y-2 border-t border-[hsl(var(--border-light))] pt-3",children:[(0,t.jsx)(y.Label,{className:"text-xs font-medium uppercase tracking-wider text-muted-foreground",children:c("chat.memoryBind.retrievalModeLabel")}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,t.jsx)(eo,{active:"search"===a,disabled:"filemem"===o,title:c("chat.memoryBind.modeSearchTitle"),desc:c("chat.memoryBind.modeSearchDesc"),onClick:()=>i("search")}),(0,t.jsx)(eo,{active:"local"===a,disabled:!n,title:c("chat.memoryBind.modeLocalTitle"),desc:c("filemem"===o?"chat.memoryBind.modeLocalDescWritable":n?"chat.memoryBind.modeLocalDescEnabled":"chat.memoryBind.modeLocalDescDisabled"),onClick:()=>i("local")})]}),"local"===a?(0,t.jsxs)("div",{className:"space-y-2 rounded-md border border-[hsl(var(--border))] bg-[hsl(var(--muted)/0.25)] p-2.5",children:[(0,t.jsx)("p",{className:"text-[11px] leading-relaxed text-muted-foreground",children:c("chat.memoryBind.localHint")}),(0,t.jsxs)(s.Button,{type:"button",variant:"outline",size:"sm",className:"h-8 w-full",disabled:!l||!h,onClick:()=>p(!0),title:c(h?"chat.memoryBind.viewFiles":"chat.memoryBind.viewFilesHint"),children:[(0,t.jsx)(V.FolderTree,{className:"h-3.5 w-3.5"}),c("chat.memoryBind.viewFiles")]}),l&&h?(0,t.jsx)($,{open:u,onOpenChange:p,memoryStoreName:l,scope:m}):null]}):null]})}function eo(e){return(0,t.jsxs)("button",{type:"button",onClick:e.onClick,disabled:e.disabled,"aria-pressed":e.active,className:(0,m.cn)("flex flex-col items-start gap-0.5 rounded-md border px-3 py-2 text-left transition-colors",e.disabled?"cursor-not-allowed border-[hsl(var(--border))] opacity-50":e.active?"border-[hsl(var(--primary)/0.5)] bg-[hsl(var(--primary-soft))]":"border-[hsl(var(--border))] hover:bg-[hsl(var(--muted)/0.4)]"),children:[(0,t.jsx)("span",{className:"text-sm font-medium text-foreground",children:e.title}),(0,t.jsx)("span",{className:"text-[11px] text-muted-foreground",children:e.desc})]})}function en(e){let{stores:r,isLoading:a,onBind:o}=e,{t:n}=(0,d.useI18n)(),i=!a&&0===r.length;return(0,t.jsxs)("div",{className:"animate-home-reveal relative overflow-hidden rounded-lg border border-dashed border-[hsl(var(--primary)/0.35)] bg-gradient-to-br from-[hsl(var(--primary-soft))] via-[hsl(var(--surface))] to-[hsl(var(--surface))] px-5 py-6 text-center",role:"region","aria-label":n("chat.memoryBind.bindStoreAria"),children:[(0,t.jsx)(q.Sparkles,{className:"pointer-events-none absolute right-3 top-3 h-3.5 w-3.5 text-[hsl(var(--primary)/0.45)]","aria-hidden":!0}),(0,t.jsx)("div",{className:"mx-auto mb-3 flex h-12 w-12 items-center justify-center rounded-xl bg-[hsl(var(--primary-soft))] ring-1 ring-[hsl(var(--primary)/0.18)]",children:(0,t.jsx)(W.Brain,{className:"h-6 w-6 text-[hsl(var(--primary))]"})}),(0,t.jsx)("h3",{className:"text-sm font-semibold text-[hsl(var(--foreground))]",children:n(i?"chat.memoryBind.emptyNoStoresTitle":"chat.memoryBind.emptyBindTitle")}),(0,t.jsx)("p",{className:"mx-auto mt-1 max-w-[320px] text-xs leading-relaxed text-[hsl(var(--muted-foreground))]",children:n(i?"chat.memoryBind.emptyNoStoresDesc":"chat.memoryBind.emptyBindDesc")}),(0,t.jsxs)("div",{className:"mt-4 flex flex-col items-center gap-2",children:[i?(0,t.jsx)(s.Button,{asChild:!0,size:"default",className:"h-9 px-4",children:(0,t.jsxs)(L.default,{href:"/memory/create",children:[(0,t.jsx)(W.Brain,{className:"h-4 w-4"}),n("chat.memoryBind.createStore")]})}):(0,t.jsxs)(s.Button,{type:"button",size:"default",className:"h-9 px-4",disabled:a,onClick:o,children:[(0,t.jsx)(A.Plus,{className:"h-4 w-4"}),n("chat.memoryBind.bindStore")]}),i||a?null:(0,t.jsxs)("p",{className:"text-[11px] text-[hsl(var(--muted-foreground))]",children:[n("chat.memoryBind.selectFromExistingPrefix")," ",(0,t.jsx)("span",{className:"font-medium text-[hsl(var(--foreground))]",children:r.length})," ",n("chat.memoryBind.selectFromExistingSuffix")]})]})]})}function ei(e){let{t:r}=(0,d.useI18n)();return(0,t.jsxs)("div",{className:"flex items-center gap-2 rounded-md border border-[hsl(var(--border))] bg-[hsl(var(--muted)/0.3)] px-3 py-2",children:[(0,t.jsx)(W.Brain,{className:"h-3.5 w-3.5 shrink-0 text-[hsl(var(--primary))]"}),(0,t.jsxs)(Q.Select,{value:e.value,onValueChange:e.onChange,children:[(0,t.jsx)(Q.SelectTrigger,{className:"h-8 flex-1 border-0 bg-transparent px-1 text-sm font-medium shadow-none hover:bg-[hsl(var(--muted)/0.5)] focus:ring-0 focus:ring-offset-0",children:(0,t.jsx)(Q.SelectValue,{placeholder:r("chat.memoryBind.selectStorePlaceholder")})}),(0,t.jsx)(Q.SelectContent,{children:e.stores.map(e=>(0,t.jsx)(Q.SelectItem,{value:e.memoryStoreName,children:e.memoryStoreName},e.memoryStoreName))})]}),(0,t.jsx)(s.Button,{type:"button",variant:"ghost",size:"icon",className:"h-7 w-7",onClick:e.onUnbind,title:r("chat.memoryBind.unbind"),children:(0,t.jsx)(l.Trash2,{className:"h-3.5 w-3.5 text-muted-foreground"})})]})}function el(e){let{t:r}=(0,d.useI18n)();return(0,t.jsxs)("div",{className:"space-y-4 border-t border-[hsl(var(--border-light))] pt-3",children:[(0,t.jsxs)("div",{className:"space-y-2.5",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(y.Label,{className:"text-xs font-medium uppercase tracking-wider text-muted-foreground",children:r("chat.memoryBind.writeScope")}),(0,t.jsxs)("p",{className:"mt-1 text-[11px] leading-relaxed text-muted-foreground",children:[r("chat.memoryBind.writeScopeDesc")," ",(0,t.jsx)("code",{className:"rounded bg-muted px-1 py-0.5 font-mono text-[10px]",children:"*"}),r("chat.memoryBind.writeScopeDescSuffix")]})]}),(0,t.jsx)(er.ScopeCombobox,{memoryStoreName:e.memoryStoreName,placeholder:r("chat.memoryBind.selectExistingScope"),className:"shrink-0",onPick:t=>e.onScopeChange({appId:t.appId??"",tenantId:t.tenantId??"",agentId:t.agentId??"",runId:t.runId??""})})]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,t.jsx)(ed,{label:r("chat.memoryBind.appField"),value:e.appId,onChange:t=>e.onScopeChange({appId:t})}),(0,t.jsx)(ed,{label:r("chat.memoryBind.tenantField"),value:e.tenantId,onChange:t=>e.onScopeChange({tenantId:t})}),(0,t.jsx)("div",{className:"col-span-2",children:(0,t.jsx)(ed,{label:r("chat.memoryBind.agentField"),value:e.agentId,onChange:t=>e.onScopeChange({agentId:t})})})]})]}),(0,t.jsxs)("div",{className:"flex flex-row items-center justify-between gap-4 rounded-md border border-[hsl(var(--border))] p-3",children:[(0,t.jsxs)("div",{className:"space-y-0.5",children:[(0,t.jsx)(y.Label,{className:"text-sm",children:r("chat.memoryBind.autoSave")}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:r(e.fileAutoSave?"chat.memoryBind.autoSaveFilememDesc":"chat.memoryBind.autoSaveDesc")})]}),(0,t.jsx)(G.Switch,{checked:e.autoSave,disabled:!e.autoSaveAllowed,onCheckedChange:e.onAutoSaveChange})]}),(0,t.jsx)(em,{runId:e.runId})]})}function ed(e){let a=(0,r.useId)(),s=!e.value;return(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)(y.Label,{htmlFor:a,className:"text-xs",children:e.label}),(0,t.jsx)(g.Input,{id:a,value:e.value,onChange:t=>e.onChange(t.target.value),"aria-invalid":s,className:(0,m.cn)("h-9",s&&"border-[hsl(var(--destructive))]")})]})}function em({runId:e}){let{t:a}=(0,d.useI18n)(),[o,n]=(0,r.useState)(!1);async function i(){if(e)try{await navigator.clipboard.writeText(e),n(!0),z.toast.success(a("chat.memoryBind.runIdCopied")),setTimeout(()=>n(!1),1500)}catch{z.toast.error(a("chat.memoryBind.runIdCopyFailed"))}}return(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)(y.Label,{className:"text-xs font-medium uppercase tracking-wider text-muted-foreground",children:a("chat.memoryBind.runIdLabel")}),(0,t.jsx)("span",{className:"text-[10px] text-muted-foreground",title:a("chat.memoryBind.runIdTitle"),children:a("chat.memoryBind.runIdAuto")})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("code",{className:"flex-1 truncate rounded-md border border-[hsl(var(--border))] bg-[hsl(var(--muted)/0.35)] px-2.5 py-1.5 font-mono text-[11px] text-muted-foreground",children:e||"—"}),(0,t.jsx)(s.Button,{type:"button",variant:"ghost",size:"icon",className:"h-8 w-8 shrink-0","aria-label":a("chat.memoryBind.copyRunId"),disabled:!e,onClick:i,children:o?(0,t.jsx)(p.Check,{className:"h-3.5 w-3.5 text-[hsl(var(--primary))]"}):(0,t.jsx)(U.Copy,{className:"h-3.5 w-3.5"})})]})]})}function ec({kbs:e,onAdd:r}){let{t:a}=(0,d.useI18n)(),o=0===e.length;return(0,t.jsxs)("div",{className:"animate-home-reveal relative overflow-hidden rounded-lg border border-dashed border-[hsl(var(--primary)/0.35)] bg-gradient-to-br from-[hsl(var(--primary-soft))] via-[hsl(var(--surface))] to-[hsl(var(--surface))] px-5 py-6 text-center",role:"region","aria-label":a("chat.mount.mountKbAria"),children:[(0,t.jsx)(q.Sparkles,{className:"pointer-events-none absolute right-3 top-3 h-3.5 w-3.5 text-[hsl(var(--primary)/0.45)]","aria-hidden":!0}),(0,t.jsx)("div",{className:"mx-auto mb-3 flex h-12 w-12 items-center justify-center rounded-xl bg-[hsl(var(--primary-soft))] ring-1 ring-[hsl(var(--primary)/0.18)]",children:(0,t.jsx)(D.Database,{className:"h-6 w-6 text-[hsl(var(--primary))]"})}),(0,t.jsx)("h3",{className:"text-sm font-semibold text-[hsl(var(--foreground))]",children:a(o?"chat.mount.emptyNoKbTitle":"chat.mount.emptyMountTitle")}),(0,t.jsx)("p",{className:"mx-auto mt-1 max-w-[320px] text-xs leading-relaxed text-[hsl(var(--muted-foreground))]",children:a(o?"chat.mount.emptyNoKbDesc":"chat.mount.emptyMountDesc")}),(0,t.jsxs)("div",{className:"mt-4 flex flex-col items-center gap-2",children:[o?(0,t.jsx)(s.Button,{asChild:!0,size:"default",className:"h-9 px-4",children:(0,t.jsxs)(L.default,{href:"/knowledge-base/create",children:[(0,t.jsx)(D.Database,{className:"h-4 w-4"}),a("chat.mount.createKb")]})}):(0,t.jsx)(F,{kbs:e,onPick:r,align:"center",children:(0,t.jsxs)(s.Button,{type:"button",size:"default",className:"h-9 px-4",children:[(0,t.jsx)(A.Plus,{className:"h-4 w-4"}),a("chat.mount.mountKb")]})}),o?null:(0,t.jsxs)("p",{className:"text-[11px] text-[hsl(var(--muted-foreground))]",children:[a("chat.mount.selectFromExistingPrefix")," ",(0,t.jsx)("span",{className:"font-medium text-[hsl(var(--foreground))]",children:e.length})," ",a("chat.mount.selectFromExistingSuffix")]})]})]})}var eu=e.i(480883),ep=e.i(988310),eh=e.i(843754),eg=e.i(983823),ey=e.i(533153),ef=e.i(321562),ev=e.i(585684),ex=e.i(74540);function eb(e,t,r){return{retrieval:e.retrieval??{...t},topK:e.topK??r}}function ew(e,t){return t&&"MODEL"===e.rerankType?{...e,modelProvider:"bailian",modelName:"qwen3-vl-rerank"}:e}let eN=["searchType","rerankType","rrfK","rrfDenseWeight","rrfFullTextWeight","weightDense","weightFullText","modelName","modelProvider"];function ej({mount:e,knowledgeBase:a,open:o,onOpenChange:n}){let{t:i}=(0,d.useI18n)(),l=M(),m=void 0===e.retrieval&&void 0===e.topK,c=!!a.multimodal,u=(0,r.useRef)(null),p=(0,r.useMemo)(()=>eb(e,l.retrieval,l.perKbTopK),[e,l.retrieval,l.perKbTopK]),h=(0,eu.useForm)({resolver:(0,ep.zodResolver)(ex.retrievalSchema),defaultValues:{knowledgeBaseName:a.knowledgeBaseName,queryType:"TEXT",query:"__mount_dialog_placeholder__",subspace:[],topK:p.topK,searchType:p.retrieval.searchType??["DENSE_VECTOR","FULL_TEXT"],rerankType:p.retrieval.rerankType,rrfK:p.retrieval.rrfK,rrfDenseWeight:p.retrieval.rrfDenseWeight,rrfFullTextWeight:p.retrieval.rrfFullTextWeight,weightDense:p.retrieval.weightDense,weightFullText:p.retrieval.weightFullText,modelName:p.retrieval.modelName,modelProvider:p.retrieval.modelProvider}});(0,r.useEffect)(()=>{h.reset({knowledgeBaseName:a.knowledgeBaseName,queryType:"TEXT",query:"__mount_dialog_placeholder__",subspace:[],topK:p.topK,searchType:p.retrieval.searchType??["DENSE_VECTOR","FULL_TEXT"],rerankType:p.retrieval.rerankType,rrfK:p.retrieval.rrfK,rrfDenseWeight:p.retrieval.rrfDenseWeight,rrfFullTextWeight:p.retrieval.rrfFullTextWeight,weightDense:p.retrieval.weightDense,weightFullText:p.retrieval.weightFullText,modelName:p.retrieval.modelName,modelProvider:p.retrieval.modelProvider})},[p,a.knowledgeBaseName]);let g=()=>{if(m)return;let t=h.getValues(),r={};for(let e of eN){let a=t[e];void 0===a||Array.isArray(a)&&0===a.length||(r[e]=a)}r=ew(r,c),l.updateMount(e.id,{retrieval:r,topK:"number"==typeof t.topK&&t.topK>=0?t.topK:20})},y=h.watch("rerankType");return(0,r.useEffect)(()=>{if(m||"MODEL"!==y)return;let e=!1;c?("bailian"!==h.getValues("modelProvider")&&(h.setValue("modelProvider","bailian"),e=!0),"qwen3-vl-rerank"!==h.getValues("modelName")&&(h.setValue("modelName","qwen3-vl-rerank"),e=!0)):(h.getValues("modelProvider")||(h.setValue("modelProvider","bailian"),e=!0),h.getValues("modelName")||(h.setValue("modelName","gte-rerank-v2"),e=!0)),e&&g()},[y,c,m]),(0,t.jsx)(X.Dialog,{open:o,onOpenChange:n,children:(0,t.jsxs)(X.DialogContent,{className:"sm:max-w-[560px] max-h-[85vh] overflow-y-auto data-[state=open]:animate-none data-[state=closed]:animate-none duration-0",children:[(0,t.jsxs)(X.DialogHeader,{children:[(0,t.jsx)(X.DialogTitle,{className:"pr-8",children:i("chat.retrievalDialog.title")}),(0,t.jsxs)(X.DialogDescription,{className:"break-all",children:[a.knowledgeBaseName,c?(0,t.jsx)("span",{className:"ml-2 inline-flex items-center rounded bg-[hsl(var(--secondary))] px-1.5 py-0.5 text-[10px] font-medium tracking-wide text-[hsl(var(--secondary-foreground))]",children:i("chat.retrievalDialog.multimodalBadge")}):null]})]}),(0,t.jsxs)("div",{className:"flex items-start gap-2 rounded-md px-3 py-2 text-xs "+(m?"border border-dashed border-[hsl(var(--border))] bg-[hsl(var(--muted)/0.4)] text-muted-foreground":"border border-[hsl(var(--primary)/0.3)] bg-[hsl(var(--primary)/0.06)] text-[hsl(var(--foreground))]"),children:[(0,t.jsx)(eh.Info,{className:"mt-0.5 h-3.5 w-3.5 shrink-0"}),(0,t.jsx)("div",{className:"flex-1 leading-relaxed",children:m?(0,t.jsxs)("span",{children:[i("chat.retrievalDialog.inheritCurrentPrefix"),(0,t.jsx)("span",{className:"font-medium",children:i("chat.retrievalDialog.inheritLabel")}),i("chat.retrievalDialog.inheritSuffix")]}):(0,t.jsxs)("span",{children:[i("chat.retrievalDialog.inheritCurrentPrefix"),(0,t.jsx)("span",{className:"font-medium",children:i("chat.retrievalDialog.customLabel")}),i("chat.retrievalDialog.customSuffix")]})})]}),c&&!m&&"MODEL"===h.watch("rerankType")?(0,t.jsxs)("div",{className:"flex items-start gap-2 rounded-md border border-[hsl(var(--border))] bg-[hsl(var(--muted)/0.5)] px-3 py-2 text-xs text-muted-foreground",children:[(0,t.jsx)(eh.Info,{className:"mt-0.5 h-3.5 w-3.5 shrink-0"}),(0,t.jsxs)("span",{children:[i("chat.retrievalDialog.multimodalLockPrefix")," ",(0,t.jsx)("span",{className:"font-medium text-[hsl(var(--foreground))]",children:"qwen3-vl-rerank"}),i("chat.retrievalDialog.multimodalLockSuffix")]})]}):null,(0,t.jsx)(ef.Form,{...h,children:(0,t.jsx)("form",{onSubmit:e=>e.preventDefault(),onBlur:g,className:"space-y-4 "+(m?"pointer-events-none select-none opacity-60":""),"aria-disabled":m,children:(0,t.jsx)("fieldset",{disabled:m,className:"space-y-4 contents",children:(0,t.jsx)(ev.RetrievalParamsFields,{form:h,filterRef:u,topKLabel:i("chat.retrievalDialog.topKLabel"),topKHint:i("chat.retrievalDialog.topKHint"),topKMode:"single"})})})}),(0,t.jsxs)(X.DialogFooter,{className:"sm:justify-between",children:[(0,t.jsxs)(s.Button,{type:"button",variant:"ghost",size:"sm",onClick:()=>{l.resetMountRetrieval(e.id)},disabled:m,className:"gap-1.5",children:[(0,t.jsx)(eg.RotateCcw,{className:"h-3.5 w-3.5"}),i("chat.retrievalDialog.resetToDefault")]}),m?(0,t.jsxs)(s.Button,{type:"button",size:"sm",onClick:()=>{let t=eb(e,l.retrieval,l.perKbTopK),r=ew(t.retrieval,c);l.updateMount(e.id,{retrieval:r,topK:t.topK})},className:"gap-1.5",children:[(0,t.jsx)(ey.Pencil,{className:"h-3.5 w-3.5"}),i("chat.retrievalDialog.useCustom")]}):(0,t.jsx)(s.Button,{type:"button",variant:"secondary",size:"sm",onClick:()=>n(!1),children:i("common.done")})]})]})})}function eS({mount:e,subspaceEnabled:o,knowledgeBase:n}){let{t:i}=(0,d.useI18n)(),m=M(),[c,u]=(0,r.useState)((e.subspace??[]).join(", ")),[p,h]=(0,r.useState)(!1);return(0,t.jsxs)("div",{className:"flex items-center gap-2 rounded-md border border-[hsl(var(--border))] bg-[hsl(var(--muted)/0.3)] px-3 py-2",children:[(0,t.jsx)("span",{className:"flex-1 truncate text-sm font-medium",title:e.knowledgeBaseName,children:e.knowledgeBaseName}),o?(0,t.jsx)(g.Input,{value:c,onChange:e=>u(e.target.value),onBlur:()=>{let t=c.split(",").map(e=>e.trim()).filter(Boolean),r=e.subspace??[];t.length===r.length&&t.every((e,t)=>e===r[t])||m.updateMount(e.id,{subspace:t.length?t:void 0})},onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),e.target.blur())},placeholder:i("chat.mount.subspacePlaceholder"),className:"h-8 w-44 text-xs"}):null,(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(s.Button,{type:"button",variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>h(!0),disabled:!n,title:i(n?"chat.mount.settingsTitle":"chat.mount.settingsLoading"),children:(0,t.jsx)(a.Settings2,{className:"h-3.5 w-3.5 text-muted-foreground"})}),e.retrieval?(0,t.jsx)("span",{"aria-hidden":!0,className:"pointer-events-none absolute -top-0.5 -right-0.5 h-2 w-2 rounded-full bg-primary"}):null]}),(0,t.jsx)(s.Button,{type:"button",variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>m.removeMount(e.id),title:i("chat.mount.remove"),children:(0,t.jsx)(l.Trash2,{className:"h-3.5 w-3.5 text-muted-foreground"})}),n?(0,t.jsx)(ej,{mount:e,knowledgeBase:n,open:p,onOpenChange:h}):null]})}var ek=e.i(820268),eT=e.i(64209);let eI=["searchType","rerankType","rrfK","rrfDenseWeight","rrfFullTextWeight","weightDense","weightFullText","modelName","modelProvider"];function eE({disabled:e,singleKb:a}){let{t:s}=(0,d.useI18n)(),o=M(),n=(0,r.useRef)(null),i=(0,eu.useForm)({resolver:(0,ep.zodResolver)(ex.retrievalSchema),defaultValues:{knowledgeBaseName:a?.knowledgeBaseName??"__unified__",queryType:"TEXT",query:"__unified_placeholder__",subspace:[],topK:o.perKbTopK,searchType:o.retrieval.searchType??["DENSE_VECTOR","FULL_TEXT"],rerankType:o.retrieval.rerankType,rrfK:o.retrieval.rrfK,rrfDenseWeight:o.retrieval.rrfDenseWeight,rrfFullTextWeight:o.retrieval.rrfFullTextWeight,weightDense:o.retrieval.weightDense,weightFullText:o.retrieval.weightFullText,modelName:o.retrieval.modelName,modelProvider:o.retrieval.modelProvider}});(0,r.useEffect)(()=>{i.reset({knowledgeBaseName:a?.knowledgeBaseName??"__unified__",queryType:"TEXT",query:"__unified_placeholder__",subspace:[],topK:o.perKbTopK,searchType:o.retrieval.searchType??["DENSE_VECTOR","FULL_TEXT"],rerankType:o.retrieval.rerankType,rrfK:o.retrieval.rrfK,rrfDenseWeight:o.retrieval.rrfDenseWeight,rrfFullTextWeight:o.retrieval.rrfFullTextWeight,weightDense:o.retrieval.weightDense,weightFullText:o.retrieval.weightFullText,modelName:o.retrieval.modelName,modelProvider:o.retrieval.modelProvider})},[o.retrieval,o.perKbTopK,a?.knowledgeBaseName]);let l=()=>{let e=i.getValues(),t={};for(let r of eI){let a=e[r];void 0===a||Array.isArray(a)&&0===a.length||(t[r]=a)}o.setRetrieval(t),o.setPerKbTopK("number"==typeof e.topK&&e.topK>=0?e.topK:20)},m=i.watch("rerankType");(0,r.useEffect)(()=>{if("MODEL"!==m)return;let e=!1;i.getValues("modelProvider")||(i.setValue("modelProvider","bailian"),e=!0),i.getValues("modelName")||(i.setValue("modelName","gte-rerank-v2"),e=!0),e&&l()},[m]);let[c,u]=(0,r.useState)(!1);return(0,t.jsxs)(eT.Collapsible,{open:!e&&c,onOpenChange:t=>{e||u(t)},className:"space-y-3 border-t border-[hsl(var(--border))] pt-4"+(e?" pointer-events-none opacity-50":""),"aria-disabled":e,children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)(y.Label,{className:"text-sm font-medium",children:s("chat.config.unifiedTitle")}),(0,t.jsx)("p",{className:"mt-0.5 text-xs text-muted-foreground",children:s("chat.config.unifiedDesc")})]}),!e&&(0,t.jsx)(eT.CollapsibleTrigger,{type:"button","aria-label":s(c?"chat.config.unifiedCollapse":"chat.config.unifiedExpand"),className:"inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-[hsl(var(--accent))] hover:text-[hsl(var(--accent-foreground))]",children:(0,t.jsx)(ek.ChevronDown,{className:"h-4 w-4 transition-transform duration-150"+(c?" rotate-180":"")})})]}),e?(0,t.jsxs)("div",{className:"flex items-start gap-2 rounded-md border border-dashed border-[hsl(var(--border))] bg-[hsl(var(--muted)/0.4)] px-3 py-3 text-xs text-muted-foreground",children:[(0,t.jsx)(eh.Info,{className:"mt-0.5 h-3.5 w-3.5 shrink-0"}),(0,t.jsx)("span",{children:s("chat.config.unifiedDisabledHint")})]}):(0,t.jsx)(eT.CollapsibleContent,{children:(0,t.jsx)(ef.Form,{...i,children:(0,t.jsx)("form",{onSubmit:e=>e.preventDefault(),onBlur:l,className:"space-y-4",children:(0,t.jsx)(ev.RetrievalParamsFields,{form:i,knowledgeBase:a,filterRef:n,topKLabel:s("chat.config.topKLabel"),topKHint:s("chat.config.topKHintUnified"),topKMode:"single"})})})})]})}function eK({open:e,onOpenChange:a,onSave:o}){let{t:n}=(0,d.useI18n)(),i=M(),{data:l}=(0,f.useKnowledgeBases)(),m=l?.items??[],c=m.filter(e=>!i.mounts.some(t=>t.knowledgeBaseName===e.knowledgeBaseName)),[u,v]=(0,r.useState)(String(i.aggregateTopK));(0,r.useEffect)(()=>{v(String(i.aggregateTopK))},[i.aggregateTopK]);let[b,w]=(0,r.useState)(!1),N=(0,r.useRef)(null);return(0,r.useEffect)(()=>()=>{N.current&&clearTimeout(N.current)},[]),(0,t.jsx)(h.Sheet,{open:e,onOpenChange:a,children:(0,t.jsxs)(h.SheetContent,{side:"right",className:"flex w-full flex-col gap-0 p-0 sm:max-w-[520px]",children:[(0,t.jsxs)(h.SheetHeader,{className:"border-b border-[hsl(var(--border))] px-6 py-4",children:[(0,t.jsx)(h.SheetTitle,{children:n("chat.config.title")}),(0,t.jsx)(h.SheetDescription,{children:n("chat.config.description")})]}),(0,t.jsxs)("div",{className:"flex-1 space-y-5 overflow-y-auto px-6 py-5",children:[(0,t.jsx)(C.LLMModelSelector,{providerId:i.providerId,model:i.model,onProviderChange:(e,t)=>{i.setProvider(e,t??"")},onModelChange:e=>i.setModel(e)}),(0,t.jsx)(B.SystemPromptInput,{value:i.systemPrompt,onChange:e=>i.setSystemPrompt(e),placeholder:n("chat.config.systemPromptPlaceholder"),label:"System Prompt"}),(0,t.jsx)(_.TemperatureSlider,{value:i.temperature??.7,onChange:e=>i.setTemperature(e),label:"Temperature"}),(0,t.jsxs)("div",{className:"space-y-3 border-t border-[hsl(var(--border))] pt-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(y.Label,{className:"text-sm font-medium",children:n("chat.config.mountedKb")}),(0,t.jsx)("p",{className:"mt-0.5 text-xs text-muted-foreground",children:n("chat.config.mountedKbDesc",{topK:i.aggregateTopK})})]}),(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(y.Label,{className:"text-xs text-muted-foreground",title:n("chat.config.aggregateTopKTitle"),children:n("chat.config.aggregateTopK")}),(0,t.jsx)(g.Input,{type:"text",inputMode:"numeric",value:u,onChange:e=>v(e.target.value),onBlur:()=>{let e=parseInt(u,10);Number.isFinite(e)&&e>=1&&e<=200?(i.setAggregateTopK(e),v(String(e))):(i.setAggregateTopK(20),v(String(20)))},className:"h-8 w-20"})]})]}),0===i.mounts.length?(0,t.jsx)(ec,{kbs:m,onAdd:e=>i.addMount({id:(0,x.newId)("mount"),knowledgeBaseName:e.knowledgeBaseName})}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"space-y-2",children:i.mounts.map(e=>{let r=m.find(t=>t.knowledgeBaseName===e.knowledgeBaseName);return(0,t.jsx)(eS,{mount:e,subspaceEnabled:r?.subspace===!0,knowledgeBase:r},e.id)})}),(0,t.jsx)(O,{kbs:c,onAdd:e=>i.addMount({id:(0,x.newId)("mount"),knowledgeBaseName:e.knowledgeBaseName})})]})]}),(0,t.jsx)(eE,{disabled:0===i.mounts.length,singleKb:1===i.mounts.length?m.find(e=>e.knowledgeBaseName===i.mounts[0].knowledgeBaseName):void 0}),(0,t.jsx)(ea,{})]}),(0,t.jsxs)(h.SheetFooter,{className:"gap-2 border-t border-[hsl(var(--border))] bg-[hsl(var(--surface))] px-6 py-3 sm:items-center sm:justify-between sm:space-x-0",children:[(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:n("chat.config.footerHint")}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(s.Button,{type:"button",variant:"ghost",onClick:()=>a(!1),children:n("common.close")}),(0,t.jsx)(s.Button,{type:"button",onClick:()=>{o(),w(!0),N.current&&clearTimeout(N.current),N.current=setTimeout(()=>w(!1),2e3)},disabled:b,children:b?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(p.Check,{className:"mr-1.5 h-4 w-4"}),n("chat.config.saved")]}):n("chat.config.saveConfig")})]})]})]})})}var eM=e.i(465581),eC=e.i(749448);function eB(e){var a;let s,o,n,i,l=(a=new URLSearchParams((0,eM.useSearchParams)().toString()),s=a.get("memoryStoreName")?.trim()??"",o=a.get("storageMode"),n=(0,eC.parseExactScope)(a),i=a.get("wiki"),s&&("ots"===o||"file+ots"===o)&&n&&("auto"===i||"off"===i)?{memoryStoreName:s,storageMode:o,scope:n,wiki:i}:null),d=(0,r.useRef)({activeSessionId:e.activeSessionId,messageCount:e.messageCount});d.current={activeSessionId:e.activeSessionId,messageCount:e.messageCount};let m=JSON.stringify([e.projectIdentity,l?[l.memoryStoreName,l.storageMode,l.scope.appId,l.scope.tenantId,l.scope.agentId,l.scope.runId,l.wiki]:null]),c=(0,r.useRef)({identity:m,handled:!1});return(c.current.identity!==m&&(c.current={identity:m,handled:!1}),e.activeInstanceReady&&l)?(0,t.jsx)(e_,{entry:l,identity:m,latestChatRef:d,handledRef:c}):null}function e_({entry:e,identity:t,latestChatRef:a,handledRef:s}){let o=M(),n=(0,Z.useWiki)(e.memoryStoreName,e.scope);return(0,r.useEffect)(()=>{var r;if("pending"===n.status||s.current.identity!==t)return;let i=a.current,l=(r={entry:e,activeSessionId:i.activeSessionId,messageCount:i.messageCount,wikiReady:n.data?.status==="ready",handled:s.current.handled}).handled||r.activeSessionId||r.messageCount>0?{action:"ignore"}:{action:"hydrate",enableWiki:"auto"===r.entry.wiki&&r.wikiReady};s.current.handled=!0,"ignore"!==l.action&&(o.setMemory({memoryStoreName:e.memoryStoreName,storageMode:e.storageMode,scope:e.scope,autoSave:!0,topK:5,retrievalMode:(0,b.resolveRetrievalMode)(void 0,e.storageMode)}),o.setWikiEnabled(l.enableWiki))},[o,e,s,t,a,n.data?.status,n.status]),null}var eA=e.i(16346);let eD="tsagent.chat.sessions.v1";function eR(e){return e&&e.length>0?e:null}function eP(e){let t;return`tsagent.chat.sessions.v2.${(t=eR(e))?`project.${encodeURIComponent(t)}`:"unbound"}`}function eF(e){return!!e&&"object"==typeof e&&!Array.isArray(e)}function eO(e){return"number"==typeof e&&Number.isFinite(e)}function eL(e){if(!eF(e)||"string"!=typeof e.docId||!eO(e.chunkId)||"string"!=typeof e.ossKey||!eO(e.score)||"string"!=typeof e.content||"string"!=typeof e.chunkType)return null;let t={docId:e.docId,chunkId:e.chunkId,ossKey:e.ossKey,score:e.score,content:e.content,chunkType:e.chunkType};return"string"==typeof e.imageBase64&&(t.imageBase64=e.imageBase64),"string"==typeof e.subspace&&(t.subspace=e.subspace),"string"==typeof e.knowledgeBaseName&&(t.knowledgeBaseName=e.knowledgeBaseName),t}function eW(e){if(!eF(e)||"string"!=typeof e.knowledgeBaseName||!Array.isArray(e.chunks))return null;let t={knowledgeBaseName:e.knowledgeBaseName,chunks:e.chunks.map(eL).filter(e=>null!==e)};return"string"==typeof e.error&&(t.error=e.error),t}function eU(e){return eF(e)&&"string"==typeof e.messageId&&eO(e.timestampMs)?{messageId:e.messageId,timestampMs:e.timestampMs}:null}function eV(e){if(!eF(e))return null;let t=function(e){if(!eF(e)||"string"!=typeof e.text)return null;let t={text:e.text};"string"==typeof e.id&&(t.id=e.id),"string"==typeof e.memoryId&&(t.memoryId=e.memoryId),"string"==typeof e.conversation_key&&(t.conversation_key=e.conversation_key);let r=function(e){if(!eF(e)||"string"!=typeof e.appId)return;let t={appId:e.appId};return"string"==typeof e.tenantId&&(t.tenantId=e.tenantId),"string"==typeof e.agentId&&(t.agentId=e.agentId),"string"==typeof e.runId&&(t.runId=e.runId),t}(e.scope);return r&&(t.scope=r),"string"==typeof e.memcell_id&&(t.memcell_id=e.memcell_id),"string"==typeof e.unit_type&&(t.unit_type=e.unit_type),Array.isArray(e.source_turn_ids)&&(t.source_turn_ids=e.source_turn_ids.filter(e=>"string"==typeof e)),Array.isArray(e.source_turn_refs)&&(t.source_turn_refs=e.source_turn_refs.map(eU).filter(e=>null!==e)),"string"==typeof e.search_text&&(t.search_text=e.search_text),eO(e.salience)&&(t.salience=e.salience),eO(e.version)&&(t.version=e.version),"boolean"==typeof e.deleted&&(t.deleted=e.deleted),"string"==typeof e.created_at&&(t.created_at=e.created_at),"string"==typeof e.updated_at&&(t.updated_at=e.updated_at),eO(e.score)&&(t.score=e.score),("string"==typeof e.createdAt||eO(e.createdAt))&&(t.createdAt=e.createdAt),("string"==typeof e.updatedAt||eO(e.updatedAt))&&(t.updatedAt=e.updatedAt),t}(e.unit);if(!t)return null;let r={unit:t};return eO(e.score)&&(r.score=e.score),eO(e.similarity)&&(r.similarity=e.similarity),"string"==typeof e.source&&(r.source=e.source),r}function eq(e){if(!e||"object"!=typeof e)return null;let t=(0,eA.normalizeRequiredWikiMetadata)(e.wikiName),r=(0,eA.normalizeRequiredWikiMetadata)(e.path);return"string"==typeof e.reference&&/^W[1-6]$/.test(e.reference)&&t&&r&&"boolean"==typeof e.truncated&&Number.isInteger(e.injectedChars)&&!(e.injectedChars<0)&&!(e.injectedChars>8e3)?(0,eA.clampWikiEvidence)({reference:e.reference,wikiName:t,path:r,..."string"==typeof e.title?{title:e.title}:{},..."string"==typeof e.type?{type:e.type}:{},..."string"==typeof e.description?{description:e.description}:{},..."number"==typeof e.score?{score:e.score}:{},...Array.isArray(e.sources)?{sources:e.sources.slice(0,eA.MAX_WIKI_SOURCES).filter(e=>"string"==typeof e)}:{},truncated:e.truncated,injectedChars:e.injectedChars}):null}function ez(e){if(!e||"object"!=typeof e)return null;let t=(0,eA.normalizeRequiredWikiMetadata)(e.code),r=(0,eA.normalizeRequiredWikiMetadata)(e.message);return t&&r&&("validate"===e.stage||"search"===e.stage||"read"===e.stage||"budget"===e.stage)?(0,eA.clampWikiRetrievalError)({code:t,message:r,..."string"==typeof e.requestId?{requestId:e.requestId}:{},..."number"==typeof e.httpStatus?{httpStatus:e.httpStatus}:{},stage:e.stage,..."string"==typeof e.path?{path:e.path}:{}}):null}function eH(e){if(!e||"object"!=typeof e)return null;let t=(0,eA.normalizeRequiredWikiMetadata)(e.wikiName);return t&&Array.isArray(e.pages)?(0,eA.clampWikiRetrievalGroup)({wikiName:t,pages:e.pages.slice(0,eA.MAX_WIKI_EVIDENCE).map(eq).filter(e=>null!==e),...Array.isArray(e.errors)?{errors:e.errors.slice(0,eA.MAX_WIKI_ERRORS).map(ez).filter(e=>null!==e)}:{}}):null}function eG(e){return e&&"object"==typeof e?"string"!=typeof e.appId||"string"!=typeof e.tenantId||"string"!=typeof e.agentId||"string"!=typeof e.runId?null:{appId:e.appId,tenantId:e.tenantId,agentId:e.agentId,runId:e.runId}:null}function eQ(e){return e.flatMap(e=>{if(!eF(e))return[];let{id:t,role:r,content:a,createdAt:s}=e;if("string"!=typeof t||"user"!==r&&"assistant"!==r&&"system"!==r||"string"!=typeof a||!eO(s))return[];let o={id:t,role:r,content:a,createdAt:s};"string"==typeof e.reasoning&&(o.reasoning=e.reasoning),eO(e.reasoningStartedAt)&&(o.reasoningStartedAt=e.reasoningStartedAt),eO(e.reasoningCompletedAt)&&(o.reasoningCompletedAt=e.reasoningCompletedAt),"boolean"==typeof e.usingRag&&(o.usingRag=e.usingRag),"boolean"==typeof e.queryRewriteFailed&&(o.queryRewriteFailed=e.queryRewriteFailed),"string"==typeof e.queryRewriteError&&(o.queryRewriteError=e.queryRewriteError),"string"==typeof e.retrievalQuery&&(o.retrievalQuery=e.retrievalQuery),"boolean"==typeof e.retrievalQueryRewritten&&(o.retrievalQueryRewritten=e.retrievalQueryRewritten),Array.isArray(e.retrievedChunks)&&(o.retrievedChunks=e.retrievedChunks.map(eL).filter(e=>null!==e)),Array.isArray(e.retrievalGroups)&&(o.retrievalGroups=e.retrievalGroups.map(eW).filter(e=>null!==e)),Array.isArray(e.memoryHits)&&(o.memoryHits=e.memoryHits.map(eV).filter(e=>null!==e)),"string"==typeof e.memoryQuery&&(o.memoryQuery=e.memoryQuery),"string"==typeof e.wikiQuery&&(o.wikiQuery=e.wikiQuery),Number.isInteger(e.wikiCount)&&e.wikiCount>=0&&(o.wikiCount=e.wikiCount),"boolean"==typeof e.wikiRetrievalDone&&(o.wikiRetrievalDone=e.wikiRetrievalDone),Array.isArray(e.wikiEvidence)&&(o.wikiEvidence=e.wikiEvidence.slice(0,eA.MAX_WIKI_EVIDENCE).map(eq).filter(e=>null!==e)),Array.isArray(e.wikiRetrievalGroups)&&(o.wikiRetrievalGroups=e.wikiRetrievalGroups.slice(0,eA.MAX_WIKI_GROUPS).map(eH).filter(e=>null!==e)),Number.isInteger(e.wikiTotalContextChars)&&e.wikiTotalContextChars>=0&&(o.wikiTotalContextChars=e.wikiTotalContextChars),"string"==typeof e.wikiMemoryStoreName&&(o.wikiMemoryStoreName=e.wikiMemoryStoreName);let n=eG(e.wikiScope);n&&(o.wikiScope=n);let i=function(e){if(Array.isArray(e))return e.flatMap(e=>eF(e)&&"string"==typeof e.rel&&eO(e.size)?[{rel:e.rel,size:e.size,..."string"==typeof e.sha256?{sha256:e.sha256}:{}}]:[])}(e.memoryFiles);i&&(o.memoryFiles=i);let l=function(e){if(!eF(e)||"boolean"!=typeof e.ok||!eO(e.listed)||!eO(e.loaded)||!eO(e.reused)||!eO(e.totalBytes)||"boolean"!=typeof e.truncated)return;let t={ok:e.ok,listed:e.listed,loaded:e.loaded,reused:e.reused,totalBytes:e.totalBytes,truncated:e.truncated};return"string"==typeof e.error&&(t.error=e.error),t}(e.memoryFilesCache);l&&(o.memoryFilesCache=l),"string"==typeof e.memoryFilesStoreName&&(o.memoryFilesStoreName=e.memoryFilesStoreName),"boolean"==typeof e.memoryFilesWritable&&(o.memoryFilesWritable=e.memoryFilesWritable);let d=eG(e.memoryFilesScope);return d&&(o.memoryFilesScope=d),("saving"===e.memorySaveStatus||"saved"===e.memorySaveStatus||"unchanged"===e.memorySaveStatus||"error"===e.memorySaveStatus)&&(o.memorySaveStatus=e.memorySaveStatus),"string"==typeof e.memorySavePath&&(o.memorySavePath=e.memorySavePath),eO(e.memorySaveCount)&&(o.memorySaveCount=e.memorySaveCount),"string"==typeof e.memorySaveError&&(o.memorySaveError=e.memorySaveError),"string"==typeof e.turnId&&(o.turnId=e.turnId),("streaming"===e.status||"done"===e.status||"error"===e.status)&&(o.status=e.status),"string"==typeof e.errorMessage&&(o.errorMessage=e.errorMessage),"saving"===o.memorySaveStatus&&(delete o.memorySaveStatus,delete o.memorySavePath,delete o.memorySaveCount,delete o.memorySaveError),[o]})}let eX=BigInt("14695981039346656037"),eY=BigInt("1099511628211");function e$(e){if(!e||"object"!=typeof e||Array.isArray(e))return;let t={};return Array.isArray(e.searchType)&&(t.searchType=e.searchType.filter(e=>"DENSE_VECTOR"===e||"FULL_TEXT"===e)),("RRF"===e.rerankType||"WEIGHT"===e.rerankType||"MODEL"===e.rerankType)&&(t.rerankType=e.rerankType),eO(e.rrfK)&&(t.rrfK=e.rrfK),eO(e.rrfDenseWeight)&&(t.rrfDenseWeight=e.rrfDenseWeight),eO(e.rrfFullTextWeight)&&(t.rrfFullTextWeight=e.rrfFullTextWeight),eO(e.weightDense)&&(t.weightDense=e.weightDense),eO(e.weightFullText)&&(t.weightFullText=e.weightFullText),"string"==typeof e.modelName&&(t.modelName=e.modelName),"string"==typeof e.modelProvider&&(t.modelProvider=e.modelProvider),t}function eJ(e,t,r){var a;let s=e&&"object"==typeof e&&!Array.isArray(e)?e:{},o=function(e,t,r=!0){if(!e||"object"!=typeof e||"string"!=typeof e.memoryStoreName||!e.memoryStoreName)return;let a=e.scope;if(!a||"string"!=typeof a.appId||"string"!=typeof a.tenantId||"string"!=typeof a.agentId||"string"!=typeof a.runId||!a.appId||!a.tenantId||!a.agentId)return;let s=r?(0,b.normalizeMemoryRunId)(e.storageMode,a.runId,()=>(function(e){let t=eX;for(let r of new TextEncoder().encode(e))t^=BigInt(r),t=BigInt.asUintN(64,t*eY);return`run_legacy_${t.toString(16).padStart(16,"0")}`})(JSON.stringify([t,e.memoryStoreName,a.appId,a.tenantId,a.agentId]))):a.runId;return{id:"string"==typeof e.id&&e.id?e.id:(0,x.newId)("memory"),memoryStoreName:e.memoryStoreName,..."ots"===e.storageMode||"file+ots"===e.storageMode||"filemem"===e.storageMode?{storageMode:e.storageMode}:{},scope:{appId:a.appId,tenantId:a.tenantId,agentId:a.agentId,runId:s},...Number.isInteger(e.topK)&&e.topK>0?{topK:e.topK}:{},autoSave:!1!==e.autoSave,..."local"===e.retrievalMode||"search"===e.retrievalMode?{retrievalMode:e.retrievalMode}:{}}}(s.memory,t,r),n={mounts:Array.isArray(a=s.mounts)?a.flatMap(e=>{if(!e||"object"!=typeof e||"string"!=typeof e.id||"string"!=typeof e.knowledgeBaseName)return[];let t={id:e.id,knowledgeBaseName:e.knowledgeBaseName};Array.isArray(e.subspace)&&e.subspace.length>0&&e.subspace.every(e=>"string"==typeof e)&&(t.subspace=e.subspace);let r=e$(e.retrieval);return r&&(t.retrieval=r),eO(e.topK)&&(t.topK=e.topK),[t]}):[]};"string"==typeof s.providerId&&(n.providerId=s.providerId),"string"==typeof s.model&&(n.model=s.model),"string"==typeof s.systemPrompt&&(n.systemPrompt=s.systemPrompt),eO(s.temperature)&&(n.temperature=s.temperature),eO(s.aggregateTopK)&&(n.aggregateTopK=s.aggregateTopK),eO(s.perKbTopK)&&(n.perKbTopK=s.perKbTopK);let i=e$(s.retrieval);i&&(n.retrieval=i),o&&(n.memory=o);let l=function(e,t){if(t&&eF(e)&&!0===e.enabled&&Number.isInteger(e.topK)&&!(e.topK<1)&&!(e.topK>10))return{enabled:!0,topK:e.topK}}(s.wiki,o?.storageMode!==void 0);return l&&(n.wiki=l),n}function eZ(e){let t=eP(e);try{let r=window.localStorage.getItem(t),a=null===r,s=a?window.localStorage.getItem(eD):r,o=s?JSON.parse(s):[],n=Array.isArray(o)?o:[],i=a?n.filter(t=>!!t&&"object"==typeof t&&eR(t.activeInstance)===e):n,l=(!Array.isArray(i)?[]:i.filter(e=>!!e&&"object"==typeof e&&"string"==typeof e.id&&"string"==typeof e.title&&eO(e.updatedAt)&&Array.isArray(e.messages)).map(e=>({id:e.id,title:e.title,updatedAt:e.updatedAt,activeInstance:eR(e.activeInstance),config:eJ(e.config,e.id,!0),messages:eQ(e.messages)}))).filter(t=>eR(t.activeInstance)===eR(e)).sort((e,t)=>t.updatedAt-e.updatedAt);return{token:a?`legacy\0${JSON.stringify(i)}`:`v2\0${s??""}`,sessions:l}}catch{return{token:"storage-error",sessions:[]}}}function e0(e){return eZ(e).sessions}function e1(e,t){!function(e,t){let r=t;for(let t=0;t<3;t+=1)try{let t=JSON.stringify(r);window.localStorage.setItem(e,t);try{window.dispatchEvent(new StorageEvent("storage",{key:e}))}catch{window.dispatchEvent(new Event("storage"))}return}catch(t){if(!function(e){if(!e||"object"!=typeof e)return!1;let t=e.name;return"QuotaExceededError"===t||"NS_ERROR_DOM_QUOTA_REACHED"===t}(t)||r.length<=1)return;let e=Math.max(1,Math.floor(.75*r.length));r=r.slice(0,e)}}(eP(e),t)}let e2=new Map,e5=[];function e3(){return e5}var e4=e.i(440596);function e6(e){let t=e&&e.length>0?e:"__none__";return`tsagent.chat.lastConfig.${t}`}function e8(e){try{let t=window.localStorage.getItem(e6(e));if(!t)return{};let r=JSON.parse(t);if(!r||"object"!=typeof r)return{};let{providerId:a,model:s}=r;return{providerId:"string"==typeof a?a:void 0,model:"string"==typeof s?s:void 0}}catch{return{}}}var e7=e.i(164204),e9=e.i(115210),te=e.i(567730),tt=e.i(786196),tr=e.i(247570);async function ta(e,t){let r=Date.now()+18e4;for(;;){let a=await (0,e7.getDreamTask)(e,t);if(e9.DREAM_TERMINAL_STATUSES.has(a.status)||Date.now()>r)return a;await new Promise(e=>setTimeout(e,2500))}}function ts(){var e;let i,l,m,u,p,h,g,y,f,{t:w}=(0,d.useI18n)(),N=M(),j=(0,te.useActiveInstance)(),k=j.activeInstance,T=(i=eR(j.activeInstance),l=j.ready?eP(i):null,m=(0,r.useCallback)(e=>(function(e,t){if(!e)return()=>{};let r=r=>{r.key&&r.key!==e&&r.key!==eD||t()};return window.addEventListener("storage",r),()=>{window.removeEventListener("storage",r)}})(l,e),[l]),u=(0,r.useCallback)(()=>j.ready?function(e){let t=eR(e),r=eP(t),{token:a,sessions:s}=eZ(t),o=e2.get(r);return o?.token===a?o.snapshot:(e2.set(r,{token:a,snapshot:s}),s)}(i):e5,[i,j.ready]),p=(0,r.useSyncExternalStore)(m,u,e3),h=(0,r.useCallback)(e=>{j.ready&&function(e,t){if("string"!=typeof e.id||"string"!=typeof e.title||!eO(e.updatedAt)||!Array.isArray(e.messages))return;let r=eR(t),a=e0(r),s={id:e.id,title:e.title,updatedAt:e.updatedAt,activeInstance:r,config:eJ(e.config,e.id,!1),messages:eQ(e.messages)};s.messages.length>200&&(s.messages=s.messages.slice(-200));let o=a.findIndex(e=>e.id===s.id);o>=0?a[o]=s:a.push(s),e1(r,a.sort((e,t)=>t.updatedAt-e.updatedAt).slice(0,50))}(e,i)},[i,j.ready]),g=(0,r.useCallback)(e=>{if(j.ready){let t,r;r=e0(t=eR(i)).filter(t=>t.id!==e),e1(t,r)}},[i,j.ready]),y=(0,r.useCallback)(()=>{j.ready&&e1(eR(i),[])},[i,j.ready]),f=(0,r.useCallback)(e=>{var t;return j.ready?(t=e,e0(eR(i)).find(e=>e.id===t)??null):null},[i,j.ready]),(0,r.useMemo)(()=>({sessions:p,upsert:h,remove:g,clear:y,get:f}),[p,h,g,y,f])),[I,E]=(0,r.useState)(null),[K,C]=(0,r.useState)(!1),B=(0,r.useRef)(!1),_=(0,r.useCallback)((e,t)=>{if(!j.ready||t.requireSent&&!B.current)return;let r=I??(0,x.newId)("session");I||E(r);let a=t.preserveTitle?T.get(r):null,s={id:r,title:a?.title??function(e,t="新对话"){let r=e.find(e=>"user"===e.role);if(!r)return t;let a=r.content.replace(/\s+/g," ").trim();return a?a.length>24?`${a.slice(0,24)}…`:a:t}(e,w("chat.history.newChat")),updatedAt:Date.now(),activeInstance:k,config:N.toSessionConfig(),messages:e};T.upsert(s),N.providerId&&function(e,t){if(t.providerId)try{window.localStorage.setItem(e6(e),JSON.stringify({providerId:t.providerId,model:t.model??""}))}catch{}}(k,{providerId:N.providerId,model:N.model})},[I,N,T,k,j.ready,w]),A=(0,r.useCallback)(e=>{_(e,{requireSent:!0,preserveTitle:!1})},[_]),D=(0,r.useMemo)(()=>(function(e){if(e.mounts.length)return{knowledgeBases:e.mounts.map(t=>{let r=t.retrieval??e.retrieval,a=t.topK??e.perKbTopK,s=(0,v.assembleRetrievalConfiguration)(r,a);return{knowledgeBaseName:t.knowledgeBaseName,...t.subspace?.length?{subspace:t.subspace}:{},...s?{retrievalConfiguration:s}:{},topK:a}}),topK:e.aggregateTopK}})(N),[N]),R=(0,r.useMemo)(()=>(function(e){let t=e.memory;if(!t)return;let{appId:r,tenantId:a,agentId:s}=t.scope,o="filemem"===t.storageMode?b.FILEMEM_DEFAULT_RUN_ID:t.scope.runId;if(r&&a&&s&&o)return{memoryStoreName:t.memoryStoreName,scope:{appId:r,tenantId:a,agentId:s,runId:o},...t.storageMode?{storageMode:t.storageMode}:{},..."number"==typeof t.topK?{topK:t.topK}:{},autoSave:t.autoSave,...t.retrievalMode?{retrievalMode:t.retrievalMode}:{}}})(N),[N]),P=(0,r.useMemo)(()=>(function(e){if(!e.wikiEnabled||!S(e.memory))return;let t=e.memory;return{memoryStoreName:t.memoryStoreName,scope:t.scope,topK:e.wikiTopK}})(N),[N]),F=(0,e4.useQaChat)({dataScopeKey:j.dataScopeKey,activeInstance:k,providerId:N.providerId,model:N.model,systemPrompt:N.systemPrompt,temperature:N.temperature,rag:D,memory:R,wiki:P,onPersist:A}),O=(0,r.useCallback)(e=>{if(!j.ready)return;let t=T.get(e);t&&(t.activeInstance??null)===k&&(E(e),B.current=t.messages.length>0,F.setMessages(t.messages),N.hydrate({providerId:t.config.providerId??"",model:t.config.model??"",systemPrompt:t.config.systemPrompt??"",temperature:t.config.temperature,aggregateTopK:t.config.aggregateTopK??20,perKbTopK:t.config.perKbTopK??20,retrieval:t.config.retrieval??{},memory:t.config.memory,mounts:t.config.mounts??[],wikiEnabled:t.config.wiki?.enabled===!0,wikiTopK:t.config.wiki?.topK??3}))},[T,F.setMessages,N.hydrate,k,j.ready]),L=(0,r.useCallback)(()=>{E(null),B.current=!1,F.clear();let e=e8(k);N.setProvider(e.providerId??"",e.model??"")},[F.clear,k,N.setProvider]),W=(0,r.useCallback)(e=>{T.remove(e),I===e&&(E(null),B.current=!1,F.clear())},[T,I,F]),U=(0,r.useCallback)(()=>{T.clear(),E(null),B.current=!1,F.clear()},[T,F.clear]),V=(0,r.useCallback)(e=>{B.current=!0,F.send(e)},[F]),q=(0,r.useCallback)((e,t)=>{B.current=!0,F.editUserMessage(e,t),F.reissueTurn(e)},[F]),H=(0,r.useCallback)(e=>{let t=(0,tt.findUserAnchorAbove)(F.messages,e);t&&(B.current=!0,F.reissueTurn(t.id))},[F]),G=(0,r.useMemo)(()=>N.mounts?.[0]?.knowledgeBaseName??null,[N.mounts]),Q=(e={hasMemory:!!R,mountedKbCount:(N.mounts??[]).length}).hasMemory&&e.mountedKbCount>=1,[X,Y]=(0,r.useState)(null),$=(0,r.useCallback)(async e=>{if(X)return;if(!R)return void z.toast.error(w("chat.page.bindMemoryFirst"));if(!G)return void z.toast.error(w("chat.page.mountKbFirst"));let t="skill"===e?w("chat.page.typeSkill"):w("chat.page.typeProfile");Y(e);let r={id:z.toast.loading(w("chat.page.depositLoading",{type:t})),duration:5e3};try{let a=await (0,e7.createDreamTask)(R.memoryStoreName,{scopes:[R.scope],taskType:e}),s=await ta(R.memoryStoreName,a.dreamId);if(!e9.DREAM_TERMINAL_STATUSES.has(s.status))return void z.toast.message(w("chat.page.depositSlow",{type:t}),r);if("failed"===s.status||"cancelled"===s.status)return void z.toast.error("failed"===s.status?w("chat.page.depositTaskFailed",{type:t}):w("chat.page.depositTaskCancelled",{type:t}),r);let o=await (0,e7.depositDreamToKb)(R.memoryStoreName,{dreamId:a.dreamId,knowledgeBaseName:G,kinds:[e]}),n=o.deposited.find(t=>t.kind===e);if(o.failures.length>0){let e=o.failures[0]?.error??"";z.toast.error(w("chat.page.depositFailedReason",{type:t,reason:e}),r)}else n?z.toast.success(w("chat.page.depositSuccess",{count:n.count,type:t,kbName:G}),r):z.toast.info(w("chat.page.depositNone",{type:t}),r)}catch(e){z.toast.error(e instanceof Error?e.message:w("chat.page.depositFailed",{type:t}),r)}finally{Y(null)}},[X,R,G,w]),J=(0,r.useCallback)(()=>void $("skill"),[$]),Z=(0,r.useCallback)(()=>void $("profile"),[$]),ee=(0,r.useCallback)(()=>{B.current=F.messages.length>0||B.current,_(F.messages,{requireSent:!1,preserveTitle:!0})},[F.messages,_]),et=(0,r.useRef)({activeInstance:null,ready:!1,dataScopeKey:tr.PENDING_DATA_SCOPE_KEY,configRevision:""});(0,r.useEffect)(()=>{let e=et.current;e.ready&&j.ready&&e.dataScopeKey!==j.dataScopeKey&&(N.reset(),E(null),B.current=!1,F.clear()),j.ready&&(et.current=j)},[j.dataScopeKey,j.ready]),(0,r.useEffect)(()=>{if(I||N.providerId)return;let e=e8(k);e.providerId&&N.setProvider(e.providerId,e.model??"")},[k,I,N.providerId]);let er=I?T.get(I):null,ea=j.ready&&!!(N.providerId&&N.model),es=er?.title??w("chat.page.newChatTitle"),eo=N.mounts.length,en=!I&&N.mounts.length>0?w("chat.page.mountsCarryover",{count:N.mounts.length}):null;return(0,t.jsxs)(o.AppShellLayout,{children:[(0,t.jsx)(eB,{activeSessionId:I,messageCount:F.messages.length,activeInstanceReady:j.ready,projectIdentity:j.dataScopeKey}),(0,t.jsx)(c,{sessions:T.sessions,activeSessionId:I,onNewSession:L,onSelectSession:O,onDeleteSession:W,onClearAll:U}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col bg-[hsl(var(--card))]",children:[(0,t.jsxs)("header",{className:"flex h-14 shrink-0 items-center justify-between gap-3 border-b border-[hsl(var(--border))] px-5",children:[(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("h1",{className:"truncate text-sm font-semibold text-[hsl(var(--foreground))]",children:es}),(0,t.jsx)("p",{className:"mt-0.5 truncate text-xs text-[hsl(var(--muted-foreground))]",children:N.providerId&&N.model?(0,t.jsxs)(t.Fragment,{children:[w("chat.page.headerStats",{model:N.model,count:eo,topK:N.aggregateTopK}),N.memory?w("chat.page.headerMemory",{name:N.memory.memoryStoreName}):"",N.wikiEnabled?` \xb7 ${w("chat.wikiBind.enabled")}`:""]}):w("chat.page.headerNoConfig")})]}),(0,t.jsx)(s.Button,{type:"button",variant:"ghost",size:"icon",onClick:()=>C(!0),title:w("chat.page.configTitle"),children:(0,t.jsx)(a.Settings2,{className:"h-4 w-4"})})]}),(0,t.jsx)(n.QaChatPanel,{messages:F.messages,isStreaming:F.isStreaming,canSend:ea,error:F.error,onSend:V,onStop:F.stop,onDelete:F.deleteMessage,onResend:F.reissueTurn,onRegenerate:H,onEditSave:q,dreamDeposit:{eligible:Q,running:X,onSummarizeSkill:J,onExtractProfile:Z},emptyState:{title:ea?w("chat.page.emptyTitleReady"):w("chat.page.emptyTitleStart"),description:en?w("chat.page.emptyDescCarryover",{carryover:en}):ea?w("chat.page.emptyDescReady"):w("chat.page.emptyDescStart"),actionLabel:w("chat.page.emptyAction"),onAction:()=>C(!0)},disabledPlaceholder:w("chat.page.disabledPlaceholder")})]}),(0,t.jsx)(eK,{open:K,onOpenChange:C,onSave:ee})]})}e.s(["default",0,function(){return(0,t.jsx)(K,{children:(0,t.jsx)(ts,{})})}],802447)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,309823,e=>{"use strict";let t=(0,e.i(801685).default)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);e.s(["AlertTriangle",0,t],309823)},730068,e=>{"use strict";let t=(0,e.i(801685).default)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);e.s(["RefreshCw",0,t],730068)},323516,e=>{"use strict";var t=e.i(44501),r=e.i(861403),s=e.i(465581),a=e.i(979980),i=e.i(515793),l=e.i(856717),o=e.i(876490);let n=new Set(Object.keys(l.messages.header.segments));e.s(["PageHeader",0,function({title:e,description:l,hideBreadcrumb:c,children:m,className:d}){let u=(0,s.usePathname)()??"/",{t:h}=(0,i.useI18n)(),f=c?[]:function(e,t){if(/^\/knowledge-base\/[^/]+(?:\/.*)?$/.test(e)||/^\/memory\/[^/]+(?:\/.*)?$/.test(e))return[];let r=e.split("/").filter(Boolean);if(0===r.length)return[];let s=[],a="";return r.forEach((e,i)=>{a+=`/${e}`;let l=decodeURIComponent(e),o=n.has(l)?t(`header.segments.${l}`):l;s.push({label:o,href:i<r.length-1?a:void 0})}),s}(u,h);return(0,t.jsxs)("div",{className:(0,o.cn)("mb-5 flex flex-col gap-2",d),children:[f.length>1&&(0,t.jsxs)("nav",{"aria-label":h("header.breadcrumb"),className:"flex items-center gap-1 text-[13px] text-[hsl(var(--muted-foreground))]",children:[(0,t.jsx)(r.default,{href:"/",className:"transition-colors hover:text-[hsl(var(--foreground))]",children:h("common.home")}),f.map((e,s)=>(0,t.jsxs)("span",{className:"flex items-center gap-1",children:[(0,t.jsx)(a.ChevronRight,{className:"h-3 w-3 opacity-60"}),e.href?(0,t.jsx)(r.default,{href:e.href,className:"transition-colors hover:text-[hsl(var(--foreground))]",children:e.label}):(0,t.jsx)("span",{className:"font-medium text-[hsl(var(--foreground))]",children:e.label})]},`${e.label}-${s}`))]}),(0,t.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("h1",{className:"text-xl font-semibold leading-tight text-[hsl(var(--foreground))]",children:e}),l&&(0,t.jsx)("p",{className:"text-[13px] text-[hsl(var(--muted-foreground))]",children:l})]}),m&&(0,t.jsx)("div",{className:"flex shrink-0 items-center gap-2",children:m})]})]})}])},12251,e=>{"use strict";var t=e.i(44501),r=e.i(101685),s=e.i(433253),a=e.i(942595),i=e.i(723888),l=e.i(515793);e.s(["ConfirmDialog",0,function({open:e,onOpenChange:o,title:n,description:c,confirmText:m,cancelText:d,variant:u="default",onConfirm:h,confirmInput:f,children:x}){let{t:p}=(0,l.useI18n)(),[y,g]=(0,r.useState)(""),v=void 0!==f&&""!==f,j=v&&y!==f,b=(0,r.useCallback)(()=>{j||(h(),g(""))},[j,h]),N=(0,r.useCallback)(e=>{e||g(""),o(e)},[o]);return(0,t.jsx)(s.Dialog,{open:e,onOpenChange:N,children:(0,t.jsxs)(s.DialogContent,{className:"sm:max-w-120",children:[(0,t.jsxs)(s.DialogHeader,{children:[(0,t.jsx)(s.DialogTitle,{children:n}),(0,t.jsx)(s.DialogDescription,{className:"break-all",children:c})]}),v&&(0,t.jsxs)("div",{className:"py-2",children:[(0,t.jsx)("p",{className:"mb-2 text-sm text-muted-foreground",children:p("common.confirmInputPrompt",{value:f??""})}),(0,t.jsx)(i.Input,{value:y,onChange:e=>g(e.target.value),placeholder:f,autoFocus:!0})]}),x&&(0,t.jsx)("div",{className:"py-1",children:x}),(0,t.jsxs)(s.DialogFooter,{children:[(0,t.jsx)(a.Button,{variant:"outline",onClick:()=>N(!1),children:d??p("common.cancel")}),(0,t.jsx)(a.Button,{variant:"danger"===u?"destructive":"default",onClick:b,disabled:j,children:m??p("common.confirm")})]})]})})}])},828772,906962,e=>{"use strict";function t(e="id"){return"u">typeof crypto&&"randomUUID"in crypto?crypto.randomUUID():`${e}_${Date.now()}_${Math.random().toString(36).slice(2)}`}e.s(["newId",0,t],906962);let r="__default__";function s(){return t("run")}let a=["scope","units","search","messages","tasks","requests","dream","wiki","settings"],i=["units","wiki","settings"],l=["longTerm","shortTerm","extract","consolidate"],o=["files"],n=["units","search","settings"],c=["units","settings"];function m(e){return d(e)??"ots"}function d(e){return"ots"===e?"ots":"file+ots"===e||"oss+ots"===e?"file+ots":"filemem"===e?"filemem":null}function u(e){return"file"===e?{inputType:e,storageStructures:["file"]}:{inputType:e,storageStructures:["structured"]}}function h(e){let t=m(e),r="filemem"!==t;return{mode:t,files:"ots"!==t,structured:r,writableFiles:"filemem"===t,forceLocalRetrieval:"filemem"===t,structuredAutoSave:r,supportsExtraction:r,detailSegments:[...r?a:i],cardShortcuts:[...r?l:o],cardActions:[...r?n:c]}}e.s(["FILEMEM_DEFAULT_RUN_ID",0,r,"memoryStorageSelectionForInput",0,u,"normalizeMemoryRunId",0,function(e,t,a=s){return"filemem"===e?r:t&&t!==r?t:a()},"normalizeStorageMode",0,m,"parseKnownStorageMode",0,d,"resolveMemoryDetailSegment",0,function(e,t){let{detailSegments:r}=h(e);return r.includes(t)?t:"units"},"resolveRetrievalMode",0,function(e,t){let r="boolean"==typeof t?t?"file+ots":"ots":m(t);return"filemem"===r?"local":"ots"===r?"search":"local"===e?"local":"search"},"storageModeCapabilities",0,h,"storageModeLabel",0,function(e,t){let r=m(e);return t?t("filemem"===r?"memory.storageMode.writableFileLabel":"file+ots"===r?"memory.storageMode.projectedFileLabel":"memory.storageMode.apiOnlyLabel"):"filemem"===r?"Writable File Memory":"file+ots"===r?"Read-only File Projection":"API-only Memory"},"storageModeToSelection",0,function(e){let t=m(e);return"filemem"===t?u("file"):"file+ots"===t?{inputType:"short-term",storageStructures:["structured","file"]}:u("short-term")},"storageSelectionToMode",0,function(e){let t=new Set(e.storageStructures),r=t.size!==e.storageStructures.length;if(!r&&"file"===e.inputType&&1===t.size&&t.has("file"))return"filemem";if(!r&&"short-term"===e.inputType&&t.has("structured")){if(1===t.size)return"ots";if(2===t.size&&t.has("file"))return"file+ots"}throw Error("Invalid memory input and storage structure combination")},"toggleMemoryFileStorage",0,function(e){return"file"===e.inputType?u("file"):e.storageStructures.includes("file")?u("short-term"):{inputType:"short-term",storageStructures:["structured","file"]}}],828772)},229025,e=>{"use strict";let t=(0,e.i(801685).default)("folder-tree",[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]]);e.s(["FolderTree",0,t],229025)},278932,e=>{"use strict";var t=e.i(44501),r=e.i(309823),s=e.i(730068),a=e.i(942595),i=e.i(593321);e.s(["ErrorState",0,function({error:e,title:l,onRetry:o}){let n=function(e){if(!(e instanceof i.ApiClientError))return null;let{status:t}=e;return 401===t||403===t?"Please check your AccessKey credentials in the project settings.":503===t||"NETWORK_ERROR"===e.code?"The service may be unreachable. Verify the endpoint address and network connectivity.":null}(e);return(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center py-16 px-4 text-center",children:[(0,t.jsx)("div",{className:"mb-5 flex h-20 w-20 items-center justify-center rounded-full bg-destructive/10 ring-8 ring-destructive/5",children:(0,t.jsx)(r.AlertTriangle,{className:"text-destructive",size:36,strokeWidth:1.75})}),(0,t.jsx)("h3",{className:"mb-2 text-base font-semibold text-foreground",children:l??"Failed to load data"}),(0,t.jsx)("p",{className:"mb-1 max-w-md text-sm text-muted-foreground",children:e.message}),n&&(0,t.jsx)("p",{className:"mb-6 max-w-md text-xs text-muted-foreground/80",children:n}),!n&&(0,t.jsx)("div",{className:"mb-6"}),o&&(0,t.jsxs)(a.Button,{variant:"outline",size:"sm",onClick:o,children:[(0,t.jsx)(s.RefreshCw,{className:"mr-2 h-4 w-4"}),"Retry"]})]})}])},396416,e=>{"use strict";let t=(0,e.i(801685).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["Search",0,t],396416)},831211,e=>{"use strict";var t=e.i(44501),r=e.i(101685),s=e.i(876490);e.s(["Skeleton",0,function({className:e,delay:r,style:a,...i}){return(0,t.jsx)("div",{className:(0,s.cn)("animate-pulse rounded-md bg-primary/10",e),style:{animationDelay:r?`${r}ms`:void 0,...a},...i})},"SkeletonGroup",0,function({children:e,stagger:s=80,className:a,...i}){let l=r.Children.toArray(e);return(0,t.jsx)("div",{className:a,...i,children:l.map((e,t)=>{if(!r.isValidElement(e))return e;let a=e.props.delay??0;return r.cloneElement(e,{delay:a+t*s})})})}])},330363,e=>{"use strict";let t=(0,e.i(801685).default)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);e.s(["Trash2",0,t],330363)},867530,e=>{"use strict";let t=(0,e.i(801685).default)("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);e.s(["Settings",0,t],867530)},799877,e=>{"use strict";var t=e.i(44501);e.s(["EmptyState",0,function({icon:e,title:r,description:s,action:a,illustration:i}){return(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center py-16 px-4 text-center",children:[i??(0,t.jsx)("div",{className:"mb-5 flex h-20 w-20 items-center justify-center rounded-full bg-[hsl(var(--primary)/0.08)] ring-8 ring-[hsl(var(--primary)/0.04)]",children:(0,t.jsx)(e,{className:"text-primary",size:36,strokeWidth:1.75})}),(0,t.jsx)("h3",{className:"mb-2 text-base font-semibold text-foreground",children:r}),(0,t.jsx)("p",{className:"mb-6 max-w-sm text-sm text-muted-foreground",children:s}),a&&(0,t.jsx)("div",{children:a})]})}])},810414,e=>{"use strict";var t=e.i(44501),r=e.i(101685),s=e.i(876490);let a=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)("div",{ref:a,className:(0,s.cn)("rounded-lg border border-[hsl(var(--border))] bg-[hsl(var(--card))] text-[hsl(var(--card-foreground))] shadow-sm",e),...r}));a.displayName="Card";let i=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)("div",{ref:a,className:(0,s.cn)("flex flex-col space-y-1 px-5 pt-5 pb-3 border-b border-[hsl(var(--border-light))]",e),...r}));i.displayName="CardHeader";let l=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)("div",{ref:a,className:(0,s.cn)("text-base font-semibold leading-tight",e),...r}));l.displayName="CardTitle";let o=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)("div",{ref:a,className:(0,s.cn)("text-sm text-[hsl(var(--muted-foreground))]",e),...r}));o.displayName="CardDescription";let n=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)("div",{ref:a,className:(0,s.cn)("px-5 py-4",e),...r}));n.displayName="CardContent";let c=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)("div",{ref:a,className:(0,s.cn)("flex items-center px-5 py-3 border-t border-[hsl(var(--border-light))]",e),...r}));c.displayName="CardFooter";let m=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)("div",{ref:a,className:(0,s.cn)("rounded-lg border border-[hsl(var(--border))] bg-[hsl(var(--card))] text-[hsl(var(--card-foreground))] shadow-sm","transition-[transform,box-shadow,border-color] duration-200 ease-[cubic-bezier(0.34,1.56,0.64,1)]","hover:border-[hsl(var(--primary))] hover:shadow-primary-soft",e),...r}));m.displayName="CardInteractive",e.s(["Card",0,a,"CardContent",0,n,"CardDescription",0,o,"CardFooter",0,c,"CardHeader",0,i,"CardInteractive",0,m,"CardTitle",0,l])},486221,e=>{"use strict";let t=(0,e.i(801685).default)("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);e.s(["MoreHorizontal",0,t],486221)},90035,951989,e=>{"use strict";var t=e.i(44501),r=e.i(396416),s=e.i(546398),a=e.i(876490),i=e.i(515793);e.s(["SearchInput",0,function({value:e,onChange:l,placeholder:o,className:n}){let{t:c}=(0,i.useI18n)();return(0,t.jsxs)("div",{className:(0,a.cn)("relative flex items-center",n),children:[(0,t.jsx)(r.Search,{className:"absolute left-3 pointer-events-none text-muted-foreground",size:16}),(0,t.jsx)("input",{type:"text",value:e,onChange:e=>l(e.target.value),placeholder:o??c("common.search"),className:(0,a.cn)("h-9 w-full rounded-md border border-input bg-background pl-9 pr-8 text-sm","placeholder:text-muted-foreground/60","focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-1")}),e&&(0,t.jsx)("button",{type:"button",onClick:()=>l(""),className:"absolute right-2 inline-flex items-center justify-center rounded-full p-0.5 text-gray-400 hover:text-gray-600 transition-colors","aria-label":c("common.clearSearch"),children:(0,t.jsx)(s.X,{size:14})})]})}],90035);var l=e.i(101685);e.s(["useDebounce",0,function(e,t=300){let[r,s]=(0,l.useState)(e);return(0,l.useEffect)(()=>{let r=setTimeout(()=>{s(e)},t);return()=>{clearTimeout(r)}},[e,t]),r}],951989)},68090,e=>{"use strict";let t=(0,e.i(801685).default)("list-checks",[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]]);e.s(["ListChecks",0,t],68090)},470821,e=>{"use strict";var t=e.i(44501),r=e.i(465581),s=e.i(187014),a=e.i(12251),i=e.i(137500),l=e.i(712984),o=e.i(164204),n=e.i(247570),c=e.i(515793);e.s(["MemoryDeleteDialog",0,function({memoryStoreName:e,open:m,onOpenChange:d,redirectToList:u=!1}){let h,f=(0,r.useRouter)(),x=(h=(0,l.useQueryClient)(),(0,i.useMutation)({mutationFn:e=>(0,o.deleteMemoryStore)(e),onSuccess:()=>{(0,n.invalidateMemoryQueries)(h)}})),{t:p}=(0,c.useI18n)();async function y(){if(e)try{await x.mutateAsync(e),s.toast.success(p("memory.list.deleteSuccess")),d(!1),u&&f.push("/memory")}catch(e){s.toast.error(e instanceof Error?e.message:p("memory.list.deleteFailed"))}}return(0,t.jsx)(a.ConfirmDialog,{open:m,onOpenChange:d,title:p("memory.list.deleteTitle"),description:p("memory.list.deleteConfirm",{name:e??""}),confirmInput:e??void 0,confirmText:p("common.delete"),variant:"danger",onConfirm:y})}],470821)},421090,e=>{"use strict";var t=e.i(44501),r=e.i(861403),s=e.i(358204),a=e.i(942595),i=e.i(323516),l=e.i(101685),o=e.i(18722),n=e.i(234752),c=e.i(831211),m=e.i(799877),d=e.i(278932),u=e.i(90035),h=e.i(951989),f=e.i(754614),x=e.i(515793),p=e.i(470821),y=e.i(465581),g=e.i(377163),v=e.i(229025),j=e.i(68090),b=e.i(237769),N=e.i(486221),w=e.i(396416),S=e.i(867530);let k=(0,e.i(801685).default)("table-properties",[["path",{d:"M15 3v18",key:"14nvp0"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 9H3",key:"1338ky"}],["path",{d:"M21 15H3",key:"9uk58r"}]]);var M=e.i(330363),C=e.i(810414),T=e.i(801709),D=e.i(876490),I=e.i(828772);function R({segment:e,storePath:r,router:s,icon:a,label:i,title:l}){return(0,t.jsxs)("button",{type:"button",title:l,onClick:t=>{t.preventDefault(),t.stopPropagation(),s.push(`${r}/${e}`)},className:"inline-flex items-center gap-1 rounded px-1.5 py-0.5 transition-colors hover:bg-[hsl(var(--accent))] hover:text-foreground",children:[a,i]})}let F=(0,l.memo)(function({memoryStore:e,onDelete:s}){let i=(0,y.useRouter)(),{t:l}=(0,x.useI18n)(),{memoryStoreName:c}=e,m=`/memory/${encodeURIComponent(c)}`,d=`${m}/units`,u=(0,I.storageModeCapabilities)(e.storageMode),h=(0,I.storageModeToSelection)(e.storageMode),f="short-term"===h.inputType?l("memory.create.shortTermInputLabel"):l("memory.create.fileInputLabel"),p=h.storageStructures.map(e=>"structured"===e?l("memory.create.structuredStorageLabel"):l("memory.create.fileStorageLabel")).join(" + "),F={longTerm:{segment:"units",icon:(0,t.jsx)(g.Database,{className:"h-3.5 w-3.5"}),label:l("memory.card.longTerm"),title:l("memory.card.longTermTitle")},shortTerm:{segment:"messages",icon:(0,t.jsx)(b.MessageSquare,{className:"h-3.5 w-3.5"}),label:l("memory.card.shortTerm"),title:l("memory.card.shortTermTitle")},extract:{segment:"tasks",icon:(0,t.jsx)(j.ListChecks,{className:"h-3.5 w-3.5"}),label:l("memory.card.extract"),title:l("memory.card.extractTitle")},consolidate:{segment:"dream",icon:(0,t.jsx)(n.Sparkles,{className:"h-3.5 w-3.5"}),label:l("memory.card.consolidate"),title:l("memory.card.consolidateTitle")},files:{segment:"units",icon:(0,t.jsx)(v.FolderTree,{className:"h-3.5 w-3.5"}),label:l("memory.detail.tabFiles"),title:l("memory.detail.tabFiles")}},$={units:{icon:u.structured?(0,t.jsx)(k,{className:"mr-2 h-4 w-4"}):(0,t.jsx)(v.FolderTree,{className:"mr-2 h-4 w-4"}),label:u.structured?l("memory.detail.tabUnits"):l("memory.detail.tabFiles")},search:{icon:(0,t.jsx)(w.Search,{className:"mr-2 h-4 w-4"}),label:l("memory.detail.tabSearch")},settings:{icon:(0,t.jsx)(S.Settings,{className:"mr-2 h-4 w-4"}),label:l("memory.detail.tabSettings")}};return(0,t.jsx)(r.default,{href:d,className:"no-underline",children:(0,t.jsx)(C.CardInteractive,{className:"group relative flex h-[180px] cursor-pointer flex-col",children:(0,t.jsxs)(C.CardContent,{className:"flex flex-col flex-1 min-h-0 p-5",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-2",children:[(0,t.jsx)(o.Brain,{className:"h-4 w-4 shrink-0 text-primary"}),(0,t.jsx)("h3",{className:"min-w-0 truncate text-base font-semibold text-foreground",children:c})]}),(0,t.jsx)("div",{className:"opacity-0 transition-opacity duration-150 delay-75 group-hover:opacity-100 focus-within:opacity-100",onClick:e=>e.preventDefault(),children:(0,t.jsxs)(T.DropdownMenu,{children:[(0,t.jsx)(T.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsx)(a.Button,{variant:"ghost",size:"icon",className:"h-8 w-8",children:(0,t.jsx)(N.MoreHorizontal,{className:"h-4 w-4"})})}),(0,t.jsxs)(T.DropdownMenuContent,{align:"end",children:[u.cardActions.map(e=>{let r=$[e];return(0,t.jsxs)(T.DropdownMenuItem,{onClick:()=>i.push(`${m}/${e}`),children:[r.icon,r.label]},e)}),(0,t.jsxs)(T.DropdownMenuItem,{className:"text-[hsl(var(--destructive))] focus:text-[hsl(var(--destructive))]",onClick:()=>s?.(c),children:[(0,t.jsx)(M.Trash2,{className:"mr-2 h-4 w-4"}),l("common.delete")]})]})]})})]}),(0,t.jsxs)("div",{className:"mt-3 flex flex-wrap gap-1.5 text-[10px]",children:[(0,t.jsxs)("span",{className:"inline-flex rounded-full border border-slate-200 bg-slate-50 px-2 py-0.5 text-slate-600",title:`${l("memory.card.inputType")}: ${f}`,children:[l("memory.card.inputType"),": ",f]}),(0,t.jsxs)("span",{className:(0,D.cn)("inline-flex rounded-full border px-2 py-0.5",u.files?"border-violet-200 bg-violet-50 text-violet-700":"border-slate-200 bg-slate-50 text-slate-600"),title:`${l("memory.card.storageStructure")}: ${p}`,children:[l("memory.card.storageStructure"),": ",p]})]}),(0,t.jsx)("div",{className:"mt-auto flex items-center gap-1 pt-4 text-xs text-muted-foreground min-w-0",children:u.cardShortcuts.map(e=>{let r=F[e];return(0,t.jsx)(R,{segment:r.segment,storePath:m,router:i,icon:r.icon,label:r.label,title:r.title},e)})})]})})})},(e,t)=>e.memoryStore===t.memoryStore||e.memoryStore.memoryStoreName===t.memoryStore.memoryStoreName&&e.memoryStore.storageMode===t.memoryStore.storageMode&&e.onDelete===t.onDelete);function $(){let{t:e}=(0,x.useI18n)(),{data:i,isLoading:n,error:y,refetch:g}=(0,f.useMemoryStores)(),[v,j]=(0,l.useState)(""),[b,N]=(0,l.useState)(null),w=(0,h.useDebounce)(v,300),S=(0,l.useMemo)(()=>{let e=i?.items??[];if(!w)return e;let t=w.toLowerCase();return e.filter(e=>e.memoryStoreName.toLowerCase().includes(t)||e.description?.toLowerCase().includes(t))},[i?.items,w]);return n?(0,t.jsx)("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:Array.from({length:6}).map((e,r)=>(0,t.jsx)(c.Skeleton,{className:"h-[180px] rounded-lg",delay:80*r},r))}):y?(0,t.jsx)(d.ErrorState,{error:y,onRetry:()=>g()}):i?.items?.length?(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(u.SearchInput,{placeholder:e("memory.list.searchPlaceholder"),value:v,onChange:j,className:"max-w-sm"}),(0,t.jsx)("span",{className:"text-sm text-muted-foreground",children:e("memory.list.count",{count:S.length})})]}),0===S.length?(0,t.jsx)(m.EmptyState,{icon:o.Brain,title:e("memory.list.noMatchTitle"),description:e("memory.list.noMatchDescription")}):(0,t.jsx)("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:S.map(e=>(0,t.jsx)(F,{memoryStore:e,onDelete:N},e.memoryStoreName))}),(0,t.jsx)(p.MemoryDeleteDialog,{memoryStoreName:b,open:!!b,onOpenChange:e=>{e||N(null)}})]}):(0,t.jsx)(m.EmptyState,{icon:o.Brain,title:e("memory.list.emptyTitle"),description:e("memory.list.emptyDescription"),illustration:(0,t.jsx)(z,{}),action:(0,t.jsx)(a.Button,{asChild:!0,children:(0,t.jsxs)(r.default,{href:"/memory/create",children:[(0,t.jsx)(s.Plus,{className:"mr-2 h-4 w-4"}),e("memory.list.create")]})})})}function z(){return(0,t.jsxs)("div",{className:"animate-home-reveal relative mb-5 flex h-24 w-24 items-center justify-center overflow-hidden rounded-2xl border border-dashed border-[hsl(var(--primary)/0.35)] bg-gradient-to-br from-[hsl(var(--primary-soft))] via-[hsl(var(--surface))] to-[hsl(var(--surface))]","aria-hidden":!0,children:[(0,t.jsx)(n.Sparkles,{className:"pointer-events-none absolute right-2 top-2 h-3 w-3 text-[hsl(var(--primary)/0.45)]"}),(0,t.jsx)("span",{className:"flex h-14 w-14 items-center justify-center rounded-xl bg-[hsl(var(--primary-soft))] ring-1 ring-[hsl(var(--primary)/0.18)]",children:(0,t.jsx)(o.Brain,{className:"h-7 w-7 text-[hsl(var(--primary))]",strokeWidth:1.75})})]})}F.displayName="MemoryStoreCard",e.s(["default",0,function(){let{t:e}=(0,x.useI18n)();return(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsx)(i.PageHeader,{title:e("memory.list.title"),description:e("memory.list.description"),children:(0,t.jsx)(a.Button,{asChild:!0,children:(0,t.jsxs)(r.default,{href:"/memory/create",children:[(0,t.jsx)(s.Plus,{className:"mr-2 h-4 w-4"}),e("memory.list.create")]})})}),(0,t.jsx)($,{})]})}],421090)}]);
|