@tablestore/tablestore-agent-cli 0.2.11 → 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/dashboard.d.ts.map +1 -1
- package/dist/commands/dashboard.js +3 -0
- package/dist/commands/dashboard.js.map +1 -1
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +10 -11
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/memory-items.d.ts +3 -0
- package/dist/commands/memory-items.d.ts.map +1 -0
- package/dist/commands/memory-items.js +375 -0
- package/dist/commands/memory-items.js.map +1 -0
- package/dist/commands/memory.d.ts.map +1 -1
- package/dist/commands/memory.js +135 -196
- 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 +11 -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 +4 -4
- package/dist/dashboard-runtime/dashboard/.next/routes-manifest.json +86 -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/app-paths-manifest.json +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/connectivity/route/build-manifest.json +9 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/connectivity/route/server-reference-manifest.json +4 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/connectivity/route.js +6 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/connectivity/route.js.map +5 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/connectivity/route.js.nft.json +1 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/connectivity/route_client-reference-manifest.js +3 -0
- 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 +11 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/0e95__next-internal_server_app_api_v1_instances_connectivity_route_actions_0hc.k~w.js +3 -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-pbmiq._.js +3 -0
- 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]__0tc-.6s._.js +1 -1
- 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]__0w56nne._.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/_00.la1c._.js +3 -0
- 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/_0251rsp._.js +1 -1
- 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/_05__-74._.js +3 -0
- 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/_0k7q0ug._.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/_0vfgz-v._.js +3 -0
- 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_0x60pxf._.js +1 -1
- 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_0y49vhd._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_10dsqx~._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_api-keys_page_tsx_0lb6fu7._.js +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 +9 -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/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 +195 -2
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/dream/page.tsx +15 -2
- 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/(dashboard)/projects/page.tsx +3 -0
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/instances/connectivity/route.ts +66 -0
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/llm/chat/file-memory-curator.ts +58 -56
- 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]/dream-tasks/[dreamId]/actions/apply/route.ts +39 -6
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/file-memory/[action]/route.ts +22 -28
- 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/app/onboarding/page.tsx +1 -3
- 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/mount-picker.tsx +5 -1
- package/dist/dashboard-runtime/dashboard/src/components/chat/wiki-bind-section.tsx +153 -0
- package/dist/dashboard-runtime/dashboard/src/components/instance/instance-connectivity-dot.tsx +96 -0
- package/dist/dashboard-runtime/dashboard/src/components/instance/project-card.tsx +5 -1
- package/dist/dashboard-runtime/dashboard/src/components/knowledge-base/subspace-gate.tsx +23 -5
- package/dist/dashboard-runtime/dashboard/src/components/knowledge-base/subspace-switcher.tsx +23 -5
- package/dist/dashboard-runtime/dashboard/src/components/layout/instance-switcher.tsx +13 -1
- package/dist/dashboard-runtime/dashboard/src/components/layout/sidebar-instance-card.tsx +29 -4
- package/dist/dashboard-runtime/dashboard/src/components/memory/file-details-panel.tsx +4 -4
- package/dist/dashboard-runtime/dashboard/src/components/memory/file-editor.tsx +9 -4
- package/dist/dashboard-runtime/dashboard/src/components/memory/file-version-history.tsx +107 -57
- 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 +539 -139
- package/dist/dashboard-runtime/dashboard/src/components/memory/memory-dream-plan-approval-dialog.tsx +172 -0
- package/dist/dashboard-runtime/dashboard/src/components/memory/memory-files-browser.tsx +104 -56
- package/dist/dashboard-runtime/dashboard/src/components/memory/memory-scope-bar.tsx +266 -82
- package/dist/dashboard-runtime/dashboard/src/components/memory/scope-combobox.tsx +184 -76
- 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 +72 -87
- package/dist/dashboard-runtime/dashboard/src/components/qa/wiki-evidence-block.tsx +326 -0
- package/dist/dashboard-runtime/dashboard/src/components/shared/llm-model-selector.tsx +5 -1
- package/dist/dashboard-runtime/dashboard/src/components/ui/dialog.tsx +1 -1
- 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/contexts/subspace-context.tsx +144 -30
- package/dist/dashboard-runtime/dashboard/src/hooks/use-approve-dream-plan.ts +25 -0
- package/dist/dashboard-runtime/dashboard/src/hooks/use-chat-history.ts +625 -44
- package/dist/dashboard-runtime/dashboard/src/hooks/use-file-memory.ts +73 -72
- package/dist/dashboard-runtime/dashboard/src/hooks/use-instances.ts +40 -0
- package/dist/dashboard-runtime/dashboard/src/hooks/use-qa-chat.ts +329 -94
- package/dist/dashboard-runtime/dashboard/src/hooks/use-subspace-history.ts +64 -75
- 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 +453 -24
- package/dist/dashboard-runtime/dashboard/src/i18n/locales/zh.ts +420 -16
- package/dist/dashboard-runtime/dashboard/src/lib/browser-file-memory.ts +53 -341
- 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-scope-history.ts +165 -0
- package/dist/dashboard-runtime/dashboard/src/lib/memory-storage-mode.ts +25 -4
- package/dist/dashboard-runtime/dashboard/src/lib/memory.ts +13 -0
- package/dist/dashboard-runtime/dashboard/src/lib/query-keys.ts +103 -14
- 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 +51 -3
- package/dist/dashboard-runtime/dashboard/src/lib/server/instance-connectivity.ts +136 -0
- package/dist/dashboard-runtime/dashboard/src/lib/server/sdk-client.ts +28 -3
- package/dist/dashboard-runtime/dashboard/src/lib/subspace-history.ts +151 -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/file-memory.ts +48 -56
- package/dist/dashboard-runtime/dashboard/src/services/instances.ts +5 -0
- package/dist/dashboard-runtime/dashboard/src/services/memory.ts +45 -5
- package/dist/dashboard-runtime/dashboard/src/services/wiki.ts +145 -0
- package/dist/dashboard-runtime/dashboard/src/types/file-memory.ts +96 -43
- package/dist/dashboard-runtime/dashboard/src/types/instance.ts +17 -0
- package/dist/dashboard-runtime/dashboard/src/types/llm-chat.ts +72 -9
- package/dist/dashboard-runtime/dashboard/src/types/memory.ts +25 -3
- 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/@img/sharp-darwin-arm64/lib/sharp-darwin-arm64.node +0 -0
- package/dist/dashboard-runtime/node_modules/@img/{sharp-linux-x64 → sharp-darwin-arm64}/package.json +7 -13
- package/dist/dashboard-runtime/node_modules/@img/{sharp-libvips-linux-x64 → sharp-libvips-darwin-arm64}/README.md +2 -2
- package/dist/dashboard-runtime/node_modules/@img/{sharp-libvips-linux-x64 → sharp-libvips-darwin-arm64}/lib/glib-2.0/include/glibconfig.h +8 -9
- package/dist/dashboard-runtime/node_modules/@img/{sharp-libvips-linux-x64/lib/libvips-cpp.so.8.17.3 → sharp-libvips-darwin-arm64/lib/libvips-cpp.8.17.3.dylib} +0 -0
- package/dist/dashboard-runtime/node_modules/@img/{sharp-libvips-linux-x64 → sharp-libvips-darwin-arm64}/package.json +5 -11
- 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 +11 -57
- 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 +42 -103
- 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 +57 -36
- 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/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/package.json +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/main.js +0 -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 +11 -57
- 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 +42 -103
- 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 +57 -36
- 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/node_modules/@tablestore/tablestore-agent-sdk/package.json +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/output.d.ts.map +1 -1
- package/dist/output.js +1 -0
- package/dist/output.js.map +1 -1
- package/package.json +3 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0dzh4cj._.js +0 -40
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0k7ex0r._.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]__01f7est._.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]__0cj2gsm._.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/_02waf76._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_05bw0~2._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_071hi50._.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/_0ez3yia._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0hy21o9._.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/_0wce254._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0xrd8-1._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0y7vx.d._.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/_13ctfae._.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_0sr_ner._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0-~e5~2eoun8n.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/01xcynczarvq~.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/01xuyqw7ivp3n.js +0 -138
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/026lyw-ynx1og.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/029zyc1pxa~4m.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/05vzt~ml0z7~9.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/07twdccs42b_-.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/08h7wustf~cl4.js +0 -4
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/08nzc9sye_0~h.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/08o2~c-80nbla.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0_osn.dm_85jw.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0aj~rx1m.91ur.js +0 -5
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0dx_8pb_z_xy6.css +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0hnqmb1a7y7x1.js +0 -138
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0k9guaejnlc0r.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0ll488v66ycn1.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0ogrq_r43je48.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0pxisu-1mnehf.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0r6utd8g~.cc1.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0vn5pp.3keyh5.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0wbozn0wq-4ls.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0zatcw.k613lh.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0~a4ig2x9z8uq.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/12iur8ibdfi5_.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/13kxz9vygidrz.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/14.8mq880kjoc.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/165fwg-5at5cq.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/17b4md7atp39z.js +0 -1
- package/dist/dashboard-runtime/node_modules/@img/sharp-linux-x64/lib/sharp-linux-x64.node +0 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/file-memory.d.ts +0 -153
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/file-memory.d.ts.map +0 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/file-memory.js +0 -451
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/file-memory.js.map +0 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/oss-uploader.d.ts +0 -56
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/oss-uploader.d.ts.map +0 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/oss-uploader.js +0 -120
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/oss-uploader.js.map +0 -1
- package/dist/dashboard-runtime/node_modules/semver/node_modules/.bin/semver +0 -21
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/file-memory.d.ts +0 -153
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/file-memory.d.ts.map +0 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/file-memory.js +0 -451
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/file-memory.js.map +0 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/oss-uploader.d.ts +0 -56
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/oss-uploader.d.ts.map +0 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/oss-uploader.js +0 -120
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/oss-uploader.js.map +0 -1
- /package/dist/dashboard-runtime/dashboard/.next/static/{AgybWIwFBY3-L1V2Copiq → bKUtNfKb47TOc1cpUk74A}/_buildManifest.js +0 -0
- /package/dist/dashboard-runtime/dashboard/.next/static/{AgybWIwFBY3-L1V2Copiq → bKUtNfKb47TOc1cpUk74A}/_clientMiddlewareManifest.js +0 -0
- /package/dist/dashboard-runtime/dashboard/.next/static/{AgybWIwFBY3-L1V2Copiq → bKUtNfKb47TOc1cpUk74A}/_ssgManifest.js +0 -0
- /package/dist/dashboard-runtime/node_modules/@img/{sharp-libvips-linux-x64 → sharp-libvips-darwin-arm64}/lib/index.js +0 -0
- /package/dist/dashboard-runtime/node_modules/@img/{sharp-libvips-linux-x64 → sharp-libvips-darwin-arm64}/versions.json +0 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[418026,a=>{"use strict";var b=a.i(232835);a.s(["CircleAlert",()=>b.default])},131173,a=>{"use strict";var b=a.i(971938);let c=new Set(["ready","failed","conflict"]);a.s(["useWikiBuildPolling",0,function(a,d,e=!0){let f=(0,b.useRef)(d),g=(0,b.useRef)(null);f.current=d,(0,b.useEffect)(()=>{let b=function({getVisibility:a,subscribeVisibility:b,refetch:d}){let e,f,g,h=0,i=!1,j=0,k=!1,l=()=>!!(i&&e&&!c.has(e)),m=()=>{void 0!==f&&clearTimeout(f),f=void 0},n=()=>{var b;if(k||void 0!==f||g===j||"hidden"===a()||!l())return;let c=j;f=setTimeout(()=>{f=void 0,c===j&&o()},(b=h,Math.min(2e3*2**Math.max(0,b),1e4)))},o=async()=>{if(k||"hidden"===a()||!l())return;let b=j;if(g!==b){g=b,h+=1;try{await d()}catch{}finally{g===b&&(g=void 0),b===j&&n()}}},p=b(()=>{m(),"visible"===a()&&l()&&o()});return{update(b,c){if(k)return;let d=l();(e=b,i=c,!d&&l()&&(j+=1,h=0,m()),l()&&"hidden"!==a())?n():m()},cleanup(){k=!0,j+=1,m(),p()}}}({getVisibility:()=>"u"<typeof document?"visible":document.visibilityState,subscribeVisibility:a=>"u"<typeof document?()=>{}:(document.addEventListener("visibilitychange",a),()=>document.removeEventListener("visibilitychange",a)),refetch:()=>f.current()});return g.current=b,b.update(a,e),()=>{b.cleanup(),g.current=null}},[]),(0,b.useEffect)(()=>{g.current?.update(a,e)},[e,a])}])},35213,a=>{"use strict";var b=a.i(634020),c=a.i(971938),d=a.i(412583),e=a.i(880470);let f=(0,a.i(750053).default)("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]);var g=a.i(263265),h=a.i(521989),i=a.i(776192),j=a.i(36890),k=a.i(408970),l=a.i(543320),m=a.i(564486);function n(a,b){return`${a}\0${b}`}function o(a){let b=new Set,c=[];for(let d of a){let a=n(d.dreamId,d.actionId);if(!b.has(a)&&(b.add(a),c.push({dreamId:d.dreamId,actionId:d.actionId}),100===c.length))break}return c}function p(a){return{scopeKey:a,selected:new Set}}function q(a,b){if("submission_failed"===b.type)return a;if("clear"===b.type)return p(b.scopeKey);if("scope_changed"===b.type)return a.scopeKey===b.scopeKey?a:p(b.scopeKey);let c=a.scopeKey===b.scopeKey?a:p(b.scopeKey);if("hint"===b.type&&c.confirmation)return c;if("confirm"===b.type)return{...c,confirmation:{scopeKey:b.scopeKey,memoryStoreName:b.memoryStoreName,scope:{...b.scope},clientToken:b.clientToken,dreamActionRefs:o(b.dreamActionRefs)}};let d=new Set(c.selected);if("toggle"===b.type&&d.has(b.key))d.delete(b.key);else{if(d.has(b.key)||d.size>=100)return c;d.add(b.key)}return{scopeKey:b.scopeKey,selected:d}}let r={pending:"wiki.buildStatus.pending",processing:"wiki.buildStatus.processing",accepting_output:"wiki.buildStatus.acceptingOutput",sealing:"wiki.buildStatus.sealing",validating:"wiki.buildStatus.validating",indexing:"wiki.buildStatus.indexing",publishing:"wiki.buildStatus.publishing",ready:"wiki.buildStatus.ready",failed:"wiki.buildStatus.failed",conflict:"wiki.buildStatus.conflict"};function s({title:a,artifacts:c,error:e,loading:f,hasNextPage:g,fetchingNextPage:h,onLoadMore:k,selected:m,onToggle:o,memoryStoreName:p}){let{t:q}=(0,l.useI18n)();return(0,b.jsxs)("section",{className:"rounded-lg border bg-background/60 p-3",children:[(0,b.jsx)("h4",{className:"text-sm font-medium",children:a}),e?(0,b.jsx)("p",{className:"mt-2 text-xs text-danger",children:q("wiki.build.artifactLoadFailed")}):null,f?(0,b.jsx)("p",{className:"mt-2 text-xs text-muted-foreground",children:q("common.loading")}):null,(0,b.jsxs)("div",{className:"mt-2 space-y-2",children:[c.map(a=>{let c=n(a.dreamId,a.actionId),e=m.has(c);return(0,b.jsx)("div",{className:"rounded border p-2 text-xs",children:(0,b.jsxs)("div",{className:"flex items-start gap-2",children:[(0,b.jsx)(j.Checkbox,{checked:e,disabled:!e&&m.size>=100,onCheckedChange:()=>o(a),"aria-label":q("wiki.build.selectArtifact",{name:a.name})}),(0,b.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,b.jsx)("span",{className:"font-medium",children:a.name}),(0,b.jsx)("p",{className:"mt-1 text-muted-foreground",children:a.description}),(0,b.jsx)(d.default,{className:"mt-1 inline-block text-primary hover:underline",href:`/memory/${encodeURIComponent(p)}/dream/${encodeURIComponent(a.dreamId)}`,children:q("wiki.build.openDream")})]})]})},c)}),f||c.length||e?null:(0,b.jsx)("p",{className:"text-xs text-muted-foreground",children:q("wiki.build.noArtifacts")})]}),g?(0,b.jsx)(i.Button,{className:"mt-2",size:"sm",variant:"outline",disabled:h,onClick:k,children:q("wiki.build.loadMoreArtifacts")}):null]})}function t({build:a}){let c,d,{t:e}=(0,l.useI18n)(),f=(c=Date.parse(a.createdAt),d=Date.parse(a.finishedAt??a.updatedAt),Number.isFinite(c)&&Number.isFinite(d)&&d>=c?d-c:void 0),g=void 0===f?void 0:Math.floor(f/1e3),h=void 0===g?void 0:e("wiki.build.elapsedValue",{minutes:Math.floor(g/60),seconds:g%60}),i=[[e("wiki.build.status"),e(r[a.status])],[e("wiki.build.step"),a.step],[e("wiki.build.progress"),a.progress],[e("wiki.build.elapsed"),h],[e("wiki.build.pageCount"),a.pageCount],[e("wiki.build.totalBytes"),a.totalBytes],[e("wiki.build.createdAt"),a.createdAt],[e("wiki.build.updatedAt"),a.updatedAt],[e("wiki.build.finishedAt"),a.finishedAt],[e("wiki.build.errorMessage"),a.errorMessage]],j=[[e("wiki.build.changesAdded"),a.changes.added],[e("wiki.build.changesModified"),a.changes.modified],[e("wiki.build.changesDeleted"),a.changes.deleted],[e("wiki.build.changesAffectedPages"),a.changes.affectedPages]],k=a.quality?[[e("wiki.build.qualitySourceCoverage"),`${Math.round(100*a.quality.sourceCoverage)}%`],[e("wiki.build.qualityGroundedPageRate"),`${Math.round(100*a.quality.groundedPageRate)}%`],[e("wiki.build.qualityBrokenLinks"),a.quality.brokenLinkCount],[e("wiki.build.qualityOrphanPages"),a.quality.orphanPageCount],[e("wiki.build.qualityUncitedPages"),a.quality.uncitedPageCount],[e("wiki.build.qualityDuplicateTitles"),a.quality.duplicateTitleCount]]:[];return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("dl",{className:"mt-3 grid gap-2 text-sm sm:grid-cols-[160px_1fr]",children:i.map(([a,c])=>(0,b.jsxs)("div",{className:"contents",children:[(0,b.jsx)("dt",{className:"text-muted-foreground",children:a}),(0,b.jsx)("dd",{className:"break-all font-mono",children:c??"-"})]},a))}),(0,b.jsxs)("div",{className:"mt-4 rounded-md border bg-muted/20 p-3 text-xs text-muted-foreground",children:[(0,b.jsx)("p",{children:e("wiki.build.incrementalAnalysis")}),(0,b.jsx)("p",{className:"mt-1",children:e("wiki.build.completePublication")})]}),(0,b.jsx)(u,{fields:j}),k.length?(0,b.jsx)(u,{fields:k}):null]})}function u({fields:a}){return(0,b.jsx)("dl",{className:"mt-4 grid gap-2 text-sm sm:grid-cols-2 lg:grid-cols-4",children:a.map(([a,c])=>(0,b.jsxs)("div",{className:"rounded-md border p-3",children:[(0,b.jsx)("dt",{className:"text-xs text-muted-foreground",children:a}),(0,b.jsx)("dd",{className:"mt-1 font-mono",children:c})]},a))})}a.s(["WikiBuildPanel",0,function({memoryStoreName:a,scope:d,build:j,onBuildStarted:r}){var u;let{t:v}=(0,l.useI18n)(),w=(0,e.useSearchParams)(),x=(0,k.useIngestWiki)(),y=(0,k.useWikiSources)(a,d,{limit:100}),z=(0,k.useWikiArtifacts)(a,d,{kind:"skill",limit:100}),A=(0,k.useWikiArtifacts)(a,d,{kind:"profile",limit:100}),B=JSON.stringify([a,d.appId,d.tenantId,d.agentId]),[C,D]=(0,c.useReducer)(q,B,p),E=(0,c.useRef)(void 0),F=C.scopeKey===B,G=F?C.selected:new Set,H=F?C.confirmation:void 0;(0,c.useEffect)(()=>{E.current=void 0,D({type:"scope_changed",scopeKey:B})},[B]);let I=(0,c.useMemo)(()=>y.data?.pages.flatMap(a=>a.sources)??[],[y.data]),J=(0,c.useMemo)(()=>z.data?.pages.flatMap(a=>a.artifacts)??[],[z.data]),K=(0,c.useMemo)(()=>A.data?.pages.flatMap(a=>a.artifacts)??[],[A.data]),L=(0,c.useMemo)(()=>[...J,...K],[K,J]),M=o(L.filter(a=>G.has(n(a.dreamId,a.actionId))).map(({dreamId:a,actionId:b})=>({dreamId:a,actionId:b}))),N=w.get("dreamId")?.trim()||void 0,O=w.get("actionId")?.trim()||void 0;(0,c.useEffect)(()=>{let a=N&&O?n(N,O):void 0;!a||E.current===a||function(a,b){if(!a.dreamId||!a.actionId)return;let c=b.find(b=>b.dreamId===a.dreamId&&b.actionId===a.actionId);return c?{dreamId:c.dreamId,actionId:c.actionId}:void 0}({dreamId:N,actionId:O},L)&&(E.current=a,D({type:"hint",scopeKey:B,key:a}))},[L,O,N,B]);let P=I.reduce((a,b)=>a+b.contentSizeBytes,0),Q=y.isLoading||z.isLoading||A.isLoading,R=(u={rawSourceCount:I.length,selectedRefCount:M.length,confirmation:H},!!(u.confirmation?.dreamActionRefs.length||u.rawSourceCount>0||u.selectedRefCount>0));function S(a){D({type:"toggle",scopeKey:B,key:n(a.dreamId,a.actionId)})}async function T(){if(!H){let b;return void D({type:"confirm",scopeKey:B,memoryStoreName:a,scope:d,clientToken:(b="u">typeof crypto&&"randomUUID"in crypto?crypto.randomUUID():`${Date.now()}-${Math.random().toString(36).slice(2)}`,`wiki-build-${b}`),dreamActionRefs:M})}try{var b,c,e;let a=await x.mutateAsync((b=H.memoryStoreName,c=H.scope,e=H.clientToken,{memoryStoreName:b,scope:c,clientToken:e,dreamActionRefs:o(H.dreamActionRefs)}));r(a.status),g.toast.success(v(a.skipped?"wiki.build.ingestSkipped":a.reused?"wiki.build.ingestReused":"wiki.build.ingestSubmitted")),D({type:"clear",scopeKey:B})}catch(a){D({type:"submission_failed"}),(0,m.showApiError)(a,{fallbackTitle:v("wiki.build.ingestFailed")})}}return(0,b.jsxs)("div",{className:"space-y-4",children:[(0,b.jsxs)("section",{className:"rounded-xl border border-warning/30 bg-warning-soft/30 p-4",children:[(0,b.jsx)("h3",{className:"font-semibold",children:v("wiki.build.ingestTitle")}),(0,b.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:v("wiki.build.ingestWarning")}),(0,b.jsxs)("div",{className:"mt-3 rounded-lg border bg-background/60 p-3",children:[(0,b.jsx)("p",{className:"text-sm font-medium",children:v("wiki.build.rawSources")}),(0,b.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:v("wiki.build.rawSourceSummary",{count:I.length,bytes:P})}),(0,b.jsx)("div",{className:"mt-2 flex flex-wrap gap-1.5",children:I.map(a=>(0,b.jsx)(h.Badge,{variant:"secondary",children:a.path},a.path))})]}),(0,b.jsxs)("div",{className:"mt-3 grid gap-3 lg:grid-cols-2",children:[(0,b.jsx)(s,{title:v("wiki.build.skillArtifacts"),artifacts:J,error:z.error,loading:z.isLoading,hasNextPage:z.hasNextPage,fetchingNextPage:z.isFetchingNextPage,onLoadMore:()=>void z.fetchNextPage(),selected:G,onToggle:S,memoryStoreName:a}),(0,b.jsx)(s,{title:v("wiki.build.profileArtifacts"),artifacts:K,error:A.error,loading:A.isLoading,hasNextPage:A.hasNextPage,fetchingNextPage:A.isFetchingNextPage,onLoadMore:()=>void A.fetchNextPage(),selected:G,onToggle:S,memoryStoreName:a})]}),(0,b.jsx)("p",{className:"mt-3 text-xs text-muted-foreground",children:v("wiki.build.artifactSelectionSummary",{count:M.length,max:100})}),Q||R?null:(0,b.jsx)("p",{className:"mt-2 text-sm text-warning",children:v("wiki.build.noBuildInput")}),H?(0,b.jsx)("p",{className:"mt-3 text-sm font-medium text-warning",children:v("wiki.build.ingestConfirm")}):null,(0,b.jsxs)(i.Button,{className:"mt-3",onClick:T,disabled:x.isPending||Q||!R,children:[(0,b.jsx)(f,{className:"h-4 w-4"}),x.isPending?v("wiki.build.ingesting"):H?v("wiki.build.confirmButton"):v("wiki.build.ingestButton")]})]}),(0,b.jsxs)("section",{className:"rounded-xl border p-4",children:[(0,b.jsx)("h3",{className:"font-semibold",children:v("wiki.build.latestTitle")}),j?(0,b.jsx)(t,{build:j}):(0,b.jsx)("p",{className:"mt-3 text-sm text-muted-foreground",children:v("wiki.build.none")})]})]})}],35213)},394678,a=>{"use strict";var b=a.i(634020),c=a.i(971938),d=a.i(263265),e=a.i(776192),f=a.i(843836),g=a.i(172518),h=a.i(962491),i=a.i(470535),j=a.i(408970),k=a.i(543320);function l(a){return new TextEncoder().encode(a).byteLength}a.s(["WikiEditDialog",0,function({memoryStoreName:a,scope:m,wiki:n,open:o,onOpenChange:p}){let{t:q}=(0,k.useI18n)(),r=(0,j.useUpdateWiki)(),[s,t]=(0,c.useState)(null);async function u(b){let c,e;if(b.preventDefault(),r.isPending)return;let f=new FormData(b.currentTarget),g=String(f.get("name")??"").trim(),h=String(f.get("summary")??""),i=g.trim()?l(g.trim())>256?"nameTooLong":l(h)>4096?"summaryTooLong":null:"nameRequired";if(i)return void t(i);let j={memoryStoreName:a,scope:m,...(c={},(e=g.trim())!==n.name&&(c.name=e),h!==(n.summary??"")&&(c.summary=h),c)};if(2===Object.keys(j).length)return void p(!1);try{await r.mutateAsync(j),d.toast.success(q("wiki.edit.success")),p(!1)}catch(a){d.toast.error(a instanceof Error?a.message:q("wiki.edit.failed"))}}let v=s?q("nameRequired"===s?"wiki.edit.nameRequired":"nameTooLong"===s?"wiki.edit.nameTooLong":"wiki.edit.summaryTooLong"):null;return(0,b.jsx)(f.Dialog,{open:o,onOpenChange:a=>{a||t(null),p(a)},children:(0,b.jsxs)(f.DialogContent,{children:[(0,b.jsxs)(f.DialogHeader,{children:[(0,b.jsx)(f.DialogTitle,{children:q("wiki.edit.title")}),(0,b.jsx)(f.DialogDescription,{children:q("wiki.edit.description")})]}),(0,b.jsxs)("form",{onSubmit:u,className:"space-y-4",children:[(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(h.Label,{htmlFor:"wiki-edit-name",children:q("wiki.edit.name")}),(0,b.jsx)(g.Input,{id:"wiki-edit-name",name:"name",defaultValue:n.name,disabled:r.isPending,onChange:()=>t(null)})]}),(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(h.Label,{htmlFor:"wiki-edit-summary",children:q("wiki.edit.summary")}),(0,b.jsx)(i.Textarea,{id:"wiki-edit-summary",name:"summary",rows:4,defaultValue:n.summary??"",disabled:r.isPending,onChange:()=>t(null)})]}),v?(0,b.jsx)("p",{role:"alert",className:"text-sm text-destructive",children:v}):null,(0,b.jsxs)(f.DialogFooter,{children:[(0,b.jsx)(e.Button,{type:"button",variant:"outline",disabled:r.isPending,onClick:()=>p(!1),children:q("common.cancel")}),(0,b.jsx)(e.Button,{type:"submit",disabled:r.isPending,children:r.isPending?q("wiki.edit.submitting"):q("wiki.edit.submit")})]})]},`${m.appId}:${m.tenantId}:${m.agentId}:${n.updatedAt}`)]})})}])},511248,a=>{"use strict";var b=a.i(634020),c=a.i(971938),d=a.i(521989),e=a.i(776192),f=a.i(408970),g=a.i(543320);a.s(["WikiOverview",0,function({memoryStoreName:a,scope:h,enabled:i}){let{t:j}=(0,g.useI18n)(),k=(0,f.useWikiPages)(a,h,{limit:100,enabled:i}),l=(0,c.useMemo)(()=>k.data?.pages.flatMap(a=>a.pages)??[],[k.data]),m=(0,c.useMemo)(()=>{let a=new Map;for(let b of l){let c=b.type||j("wiki.overview.unknownType");a.set(c,(a.get(c)??0)+1)}return[...a.entries()].sort(([a],[b])=>a.localeCompare(b))},[l,j]);return i?k.isLoading?(0,b.jsx)("p",{className:"text-sm text-muted-foreground",children:j("common.loading")}):k.error?(0,b.jsxs)("div",{className:"space-y-2 text-sm text-danger",children:[(0,b.jsx)("p",{children:k.error.message}),(0,b.jsx)(e.Button,{variant:"outline",size:"sm",onClick:k.resetWikiPages,children:j("wiki.pages.resetFromFirst")})]}):(0,b.jsxs)("div",{className:"grid gap-4 lg:grid-cols-2",children:[(0,b.jsxs)("section",{className:"rounded-xl border p-4",children:[(0,b.jsx)("h3",{className:"font-semibold",children:j("wiki.overview.loadedMetadata")}),(0,b.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:j("wiki.overview.loadedMetadataHint",{count:l.length})}),(0,b.jsx)("div",{className:"mt-3 flex flex-wrap gap-2",children:m.length>0?m.map(([a,c])=>(0,b.jsxs)(d.Badge,{variant:"secondary",children:[a,": ",c]},a)):(0,b.jsx)("span",{className:"text-sm text-muted-foreground",children:j("wiki.overview.noLoadedPages")})})]}),(0,b.jsxs)("section",{className:"rounded-xl border p-4",children:[(0,b.jsx)("h3",{className:"font-semibold",children:j("wiki.overview.recentLoadedPages")}),(0,b.jsxs)("ul",{className:"mt-3 space-y-2 text-sm",children:[l.slice(0,8).map(a=>(0,b.jsx)("li",{className:"truncate font-mono",children:a.path},a.path)),0===l.length?(0,b.jsx)("li",{className:"text-muted-foreground",children:j("wiki.overview.noLoadedPages")}):null]})]})]}):(0,b.jsx)("p",{className:"text-sm text-muted-foreground",children:j("wiki.detail.noReadableBuild")})}])},78348,a=>{"use strict";function b(a){return a.startsWith("/wiki/")?a.slice(6):a.replace(/^\/+/,"")}function c(...a){let b=[],d=new Set;for(let c of a)for(let a of c)d.has(a.path)||(d.add(a.path),b.push(a));return b}a.s(["buildWikiPageTree",0,function(a){let d={type:"dir",name:"",rel:"",children:[]};for(let e of c(a)){let a={rel:b(e.path),originalPath:e.path,size:0},c=a.rel.split("/").filter(Boolean);if(0===c.length)continue;let f=d;for(let a=0;a<c.length-1;a+=1){let b=c[a],d=c.slice(0,a+1).join("/"),e=f.children.find(a=>"dir"===a.type&&a.name===b);e||(e={type:"dir",name:b,rel:d,children:[]},f.children.push(e)),f=e}let g=c.at(-1);f.children.some(a=>"file"===a.type&&a.name===g)||f.children.push({type:"file",name:g,...a})}return!function a(b){for(let c of(b.sort((a,b)=>a.type!==b.type?"dir"===a.type?-1:1:a.name.localeCompare(b.name)),b))"dir"===c.type&&a(c.children)}(d.children),d},"expandWikiPageAncestors",0,function(a,c){let d,e=new Set(a),f=!1;for(let a of(d=b(c).split("/").filter(Boolean).slice(0,-1)).map((a,b)=>d.slice(0,b+1).join("/")))f=e.delete(a)||f;return f?e:a},"flattenWikiPageTree",0,function(a,b){let c=[],d=(a,e)=>{for(let f of a)c.push({node:f,depth:e}),"dir"!==f.type||b.has(f.rel)||d(f.children,e+1)};return d(a.children,0),c},"mergeWikiPages",0,c,"toggleWikiDirectory",0,function(a,b){let c=new Set(a);return c.has(b)?c.delete(b):c.add(b),c}])},663605,a=>a.a(async(b,c)=>{try{var d=a.i(634020),e=a.i(971938),f=a.i(201927),g=a.i(907704),h=a.i(219974),i=a.i(831113),j=a.i(141420),k=a.i(160318),l=a.i(613562),m=a.i(521989),n=a.i(776192),o=a.i(172518),p=a.i(408970),q=a.i(543320),r=a.i(78348),s=a.i(353141),t=a.i(364565),u=b([l]);[l]=u.then?(await u)():u;let z={draft:"",submitted:""};function v(a,b){return"draft"===b.type?{...a,draft:b.value}:{...a,submitted:a.draft.trim()}}function w({page:a,onOpenPage:b}){let{t:c}=(0,q.useI18n)();return(0,d.jsxs)("article",{children:[(0,d.jsx)("h2",{className:"text-xl font-semibold",children:a.title||a.path}),(0,d.jsx)("p",{className:"mt-1 break-all font-mono text-xs text-muted-foreground",children:a.path}),(0,d.jsx)("div",{className:"mt-3 flex flex-wrap gap-2",children:a.type?(0,d.jsx)(m.Badge,{variant:"secondary",children:a.type}):null}),a.description?(0,d.jsx)("p",{className:"mt-3 text-sm text-muted-foreground",children:a.description}):null,(0,d.jsx)(l.Markdown,{className:"mt-5",children:a.content??""}),(0,d.jsx)(x,{title:c("wiki.pages.sources"),values:a.sources}),(0,d.jsx)(x,{title:c("wiki.pages.incomingLinks"),values:a.incomingLinks,onOpen:b}),(0,d.jsx)(x,{title:c("wiki.pages.outgoingLinks"),values:a.outgoingLinks,onOpen:b}),(0,d.jsx)("p",{className:"mt-3 text-xs text-muted-foreground",children:c("wiki.pages.linksHint")})]})}function x({title:a,values:b,onOpen:c}){return b?.length?(0,d.jsxs)("section",{className:"mt-5 border-t pt-3",children:[(0,d.jsx)("h3",{className:"text-sm font-semibold",children:a}),(0,d.jsx)("div",{className:"mt-2 flex flex-wrap gap-2",children:b.map(a=>c?(0,d.jsx)("button",{type:"button",className:"rounded bg-muted px-2 py-1 font-mono text-xs hover:text-primary",onClick:()=>c(a),children:a},a):(0,d.jsx)("code",{className:"rounded bg-muted px-2 py-1 text-xs",children:a},a))})]}):null}function y({error:a}){let{t:b}=(0,q.useI18n)(),c=a instanceof s.ApiClientError?a:void 0;return(0,d.jsxs)("div",{className:"mt-3 rounded-md border border-danger/30 bg-danger-soft p-3 text-sm text-danger",children:[(0,d.jsx)("p",{children:c?.displayMessage??a.message}),c?.requestId?(0,d.jsxs)("p",{className:"mt-1 font-mono text-xs",children:[b("wiki.detail.requestId"),": ",c.requestId]}):null,c?.details?.upstreamRequestId?(0,d.jsxs)("p",{className:"mt-1 font-mono text-xs",children:[b("wiki.detail.upstreamRequestId"),":"," ",c.details.upstreamRequestId]}):null]})}a.s(["WikiPagesPanel",0,function(a){let{t:b}=(0,q.useI18n)(),[c,k]=(0,e.useState)(new Set),l=(0,p.useWikiPages)(a.memoryStoreName,a.scope,{limit:100,enabled:a.enabled}),m=(0,e.useMemo)(()=>(0,r.mergeWikiPages)(...l.data?.pages.map(a=>a.pages)??[]),[l.data]),o=(0,e.useMemo)(()=>(0,r.buildWikiPageTree)(m),[m]),s=(0,e.useMemo)(()=>(0,r.flattenWikiPageTree)(o,c),[c,o]),u=(0,p.useWikiPage)(a.memoryStoreName,a.scope,a.enabled&&a.selectedPagePath?{path:a.selectedPagePath}:void 0);return((0,e.useEffect)(()=>{let b=a.selectedPagePath;b&&k(a=>(0,r.expandWikiPageAncestors)(a,b))},[a.selectedPagePath]),a.enabled)?(0,d.jsxs)("div",{className:"grid min-h-[480px] gap-4 lg:grid-cols-[320px_1fr]",children:[(0,d.jsxs)("aside",{className:"rounded-xl border p-3",children:[(0,d.jsx)("p",{className:"mb-2 text-xs text-muted-foreground",children:b("wiki.pages.metadataOnly")}),(0,d.jsx)("p",{className:"mb-2 text-[11px] text-muted-foreground",children:b("wiki.pages.loadedTreeLimitation")}),(0,d.jsx)("ul",{className:"space-y-1",role:"tree",children:s.map(({node:e,depth:l})=>{let m={paddingLeft:`${12*l+8}px`};if("dir"===e.type){let a=!c.has(e.rel);return(0,d.jsx)("li",{role:"none",children:(0,d.jsxs)("button",{type:"button",role:"treeitem","aria-expanded":a,"aria-selected":!1,"aria-label":b(a?"wiki.pages.collapseDirectory":"wiki.pages.expandDirectory",{name:e.name}),className:"flex w-full items-center gap-1 rounded-md py-1.5 pr-2 text-left text-sm hover:bg-muted",style:m,onClick:()=>k(a=>(0,r.toggleWikiDirectory)(a,e.rel)),children:[a?(0,d.jsx)(f.ChevronDown,{className:"h-3.5 w-3.5 shrink-0"}):(0,d.jsx)(g.ChevronRight,{className:"h-3.5 w-3.5 shrink-0"}),a?(0,d.jsx)(j.FolderOpen,{className:"h-3.5 w-3.5 shrink-0 text-primary"}):(0,d.jsx)(i.Folder,{className:"h-3.5 w-3.5 shrink-0 text-primary"}),(0,d.jsx)("span",{className:"truncate font-mono",children:e.name})]})},`dir:${e.rel}`)}let n=a.selectedPagePath===e.originalPath;return(0,d.jsx)("li",{role:"none",children:(0,d.jsxs)("button",{type:"button",role:"treeitem","aria-current":n?"page":void 0,"aria-selected":n,"aria-label":n?b("wiki.pages.selectedPage",{name:e.name}):void 0,className:(0,t.cn)("flex w-full items-center gap-1.5 rounded-md py-1.5 pr-2 text-left text-sm hover:bg-muted",n&&"bg-primary-soft text-primary"),style:m,title:b("wiki.pages.fullPath",{path:e.originalPath}),onClick:()=>a.onOpenPage(e.originalPath),children:[(0,d.jsx)("span",{className:"h-3.5 w-3.5 shrink-0"}),(0,d.jsx)(h.FileText,{className:"h-3.5 w-3.5 shrink-0"}),(0,d.jsx)("span",{className:"truncate font-mono",children:e.name})]})},`file:${e.originalPath}`)})}),l.hasNextPage?(0,d.jsx)(n.Button,{className:"mt-3 w-full",variant:"outline",size:"sm",disabled:l.isFetchingNextPage,onClick:()=>l.fetchNextPage(),children:l.isFetchingNextPage?b("common.loading"):b("wiki.pages.loadMore")}):null,l.error?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(y,{error:l.error}),(0,d.jsx)(n.Button,{className:"mt-2",variant:"outline",size:"sm",onClick:l.resetWikiPages,children:b("wiki.pages.resetFromFirst")})]}):null]}),(0,d.jsxs)("section",{className:"min-w-0 rounded-xl border p-5",children:[u.isLoading?(0,d.jsx)("p",{className:"text-sm text-muted-foreground",children:b("common.loading")}):null,u.error?(0,d.jsx)(y,{error:u.error}):null,u.data?(0,d.jsx)(w,{page:u.data,onOpenPage:a.onOpenPage}):a.selectedPagePath||u.isLoading?null:(0,d.jsx)("p",{className:"text-sm text-muted-foreground",children:b("wiki.pages.selectHint")})]})]}):(0,d.jsx)("p",{className:"text-sm text-muted-foreground",children:b("wiki.detail.noReadableBuild")})},"WikiSearchPanel",0,function(a){let{t:b}=(0,q.useI18n)(),[c,f]=(0,e.useReducer)(v,z),g=(0,p.useSearchWikiPages)(a.memoryStoreName,a.scope,{query:c.submitted,limit:50,enabled:a.enabled&&c.submitted.length>0});return(0,d.jsxs)("div",{className:"space-y-4",children:[(0,d.jsxs)("form",{className:"flex gap-2",onSubmit:function(b){b.preventDefault(),a.enabled&&f({type:"submit"})},children:[(0,d.jsx)(o.Input,{value:c.draft,onChange:a=>f({type:"draft",value:a.target.value}),placeholder:b("wiki.search.placeholder")}),(0,d.jsxs)(n.Button,{type:"submit",disabled:!a.enabled||!c.draft.trim()||g.isFetching,children:[(0,d.jsx)(k.Search,{className:"h-4 w-4"})," ",b("wiki.search.submit")]})]}),a.enabled?null:(0,d.jsx)("p",{className:"text-sm text-muted-foreground",children:b("wiki.detail.noReadableBuild")}),a.enabled&&g.error?(0,d.jsx)(y,{error:g.error}):null,(0,d.jsx)("ol",{className:"space-y-2",children:a.enabled?g.data?.pages.map(c=>(0,d.jsx)("li",{children:(0,d.jsxs)("button",{type:"button",className:"w-full rounded-xl border p-3 text-left hover:bg-muted",onClick:()=>{(0,a.onOpenPage)(c.path)},children:[(0,d.jsx)("span",{className:"font-medium",children:c.title||c.path}),(0,d.jsx)("span",{className:"ml-2 font-mono text-xs text-muted-foreground",children:c.path}),void 0!==c.score?(0,d.jsx)(m.Badge,{className:"ml-2",variant:"secondary",children:b("wiki.search.score",{score:c.score})}):null,c.description?(0,d.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:c.description}):null]})},c.path)):null}),a.enabled&&c.submitted&&!g.isFetching&&g.data?.pages.length===0?(0,d.jsx)("p",{className:"text-sm text-muted-foreground",children:b("wiki.search.empty")}):null]})}]),c()}catch(a){c(a)}},!1),77626,a=>{"use strict";var b=a.i(634020),c=a.i(971938),d=a.i(221685),e=a.i(126211),f=a.i(655295),g=a.i(263265),h=a.i(776192),i=a.i(470535),j=a.i(408970),k=a.i(543320),l=a.i(564486),m=a.i(353141);function n(a){if(!(!a||a.includes("/.wiki/")))return a}function o(a,b){return a instanceof m.ApiClientError?{code:a.code,message:n(a.message),requestId:a.requestId,httpStatus:a.status,upstreamCode:a.details?.upstreamCode,upstreamRequestId:a.details?.upstreamRequestId}:{code:b,message:n(a instanceof Error?a.message:void 0)}}async function p(a,b){let c=a.filter(a=>/\.(md|txt)$/i.test(a.name)).map((a,b)=>({file:a,index:b,path:a.name})),d=Array(c.length),e=(await Promise.all(c.map(async({file:a,index:b,path:c})=>{try{return{index:b,path:c,content:await a.text()}}catch{return d[b]={path:c,ok:!1,error:{code:"FILE_READ_FAILED"}},null}}))).filter(a=>null!==a);for(let a=0;a<e.length;a+=20){let c=e.slice(a,a+20);try{let a=await b(c.map(({path:a,content:b})=>({path:a,content:b})));c.forEach((b,c)=>{let e=a.results[c];d[b.index]=e?.ok&&e.path===b.path?{path:b.path,ok:!0}:{path:b.path,ok:!1,error:e?.error?{...e.error,message:n(e.error.message)}:{code:"INVALID_BATCH_RESPONSE"}}})}catch(b){let a=o(b,"UPLOAD_FAILED");for(let b of c)d[b.index]={path:b.path,ok:!1,error:a}}}return d.filter(a=>void 0!==a)}function q(a,b){let c=[],d=n(a.message),e=a.upstreamCode??a.code;return d&&c.push(`[${e}] ${d}`),void 0!==a.httpStatus&&c.push(`HTTP ${a.httpStatus}`),b&&a.upstreamCode&&(a.code!==a.upstreamCode&&c.push(`${b.code}: ${a.code}`),c.push(`${b.upstreamCode}: ${a.upstreamCode}`)),b&&a.requestId&&c.push(`${b.requestId}: ${a.requestId}`),b&&a.upstreamRequestId&&a.upstreamRequestId!==a.requestId&&c.push(`${b.upstreamRequestId}: ${a.upstreamRequestId}`),c.length?c.join(" · "):void 0}function r({error:a,fallbackTitle:c,refreshLabel:d,onRefresh:e,labels:f}){let g=q(o(a,"SOURCE_READ_FAILED"),f);return(0,b.jsxs)("div",{className:"mt-3 rounded-md border border-danger/30 bg-danger-soft p-3 text-sm text-danger",children:[(0,b.jsx)("p",{className:"font-medium",children:c}),g?(0,b.jsx)("p",{className:"mt-1 break-words",children:g}):null,(0,b.jsx)(h.Button,{className:"mt-2",type:"button",variant:"outline",size:"sm",onClick:()=>void e(),children:d})]})}function s(a,b){if(a instanceof m.ApiClientError&&409===a.status){let c=q(o(a,"LOCK_CONFLICT"),b.labels);g.toast.error(b.conflictMessage,{...c?{description:c}:{},action:{label:b.refreshLabel,onClick:()=>void b.onRefresh()}});return}(0,l.showApiError)(a,{fallbackTitle:b.fallbackTitle})}a.s(["WikiSourcesPanel",0,function({memoryStoreName:a,scope:l}){let{t:m}=(0,k.useI18n)(),n=(0,j.useWikiSources)(a,l,{limit:100}),o=(0,c.useMemo)(()=>n.data?.pages.flatMap(a=>a.sources)??[],[n.data]),[t,u]=(0,c.useState)(),v=(0,j.useWikiSource)(a,l,t),[w,x]=(0,c.useState)(""),y=(0,j.useAddWikiSources)(),z=(0,j.useUpdateWikiSource)(),A=(0,j.useRemoveWikiSource)(),B={code:m("wiki.sources.errorCode"),upstreamCode:m("wiki.sources.upstreamCode"),requestId:m("wiki.detail.requestId"),upstreamRequestId:m("wiki.detail.upstreamRequestId")};async function C(b){let c=Array.from(b.target.files??[]).filter(a=>/\.(md|txt)$/i.test(a.name));for(let d of(b.target.value="",await p(c,b=>y.mutateAsync({memoryStoreName:a,scope:l,sources:b}))))if(d.ok)g.toast.success(m("wiki.sources.fileAdded",{path:d.path}));else{let a=m("wiki.sources.fileFailed",{path:d.path,code:d.error.upstreamCode??d.error.code}),b=q(d.error,B);b?g.toast.error(a,{description:b}):g.toast.error(a)}}async function D(){if(v.data&&t)try{var b;await z.mutateAsync((b=v.data,{memoryStoreName:a,scope:l,path:b.path,content:w,expectedVersionId:b.latestVersionId})),g.toast.success(m("wiki.sources.saved"))}catch(a){s(a,{fallbackTitle:m("wiki.sources.saveFailed"),conflictMessage:m("wiki.sources.conflict"),refreshLabel:m("wiki.sources.refresh"),onRefresh:()=>void v.refetch(),labels:B})}}async function E(){if(v.data&&t)try{var b;await A.mutateAsync((b=v.data,{memoryStoreName:a,scope:l,path:b.path,expectedVersionId:b.latestVersionId})),g.toast.success(m("wiki.sources.deleted")),u(void 0)}catch(a){s(a,{fallbackTitle:m("wiki.sources.deleteFailed"),conflictMessage:m("wiki.sources.conflict"),refreshLabel:m("wiki.sources.refresh"),onRefresh:()=>void v.refetch(),labels:B})}}return(0,c.useEffect)(()=>{x(v.data?.content??"")},[v.data]),(0,b.jsxs)("div",{className:"grid min-h-[420px] gap-4 lg:grid-cols-[300px_1fr]",children:[(0,b.jsxs)("aside",{className:"rounded-xl border p-3",children:[(0,b.jsxs)("label",{className:"flex cursor-pointer items-center justify-center gap-2 rounded-md border border-dashed px-3 py-2 text-sm font-medium hover:bg-muted",children:[(0,b.jsx)(d.FilePlus2,{className:"h-4 w-4"}),m("wiki.sources.addFiles"),(0,b.jsx)("input",{className:"sr-only",type:"file",accept:".md,.txt,text/markdown,text/plain",multiple:!0,onChange:C})]}),(0,b.jsx)("p",{className:"mt-2 text-xs text-muted-foreground",children:m("wiki.sources.addHint")}),(0,b.jsx)("ul",{className:"mt-3 space-y-1",children:o.map(a=>(0,b.jsx)("li",{children:(0,b.jsx)("button",{type:"button",className:"w-full truncate rounded-md px-2 py-1.5 text-left font-mono text-sm hover:bg-muted",onClick:()=>u(a.path),children:a.path})},a.path))}),n.hasNextPage?(0,b.jsx)(h.Button,{className:"mt-3 w-full",type:"button",variant:"outline",size:"sm",disabled:n.isFetchingNextPage,onClick:()=>void n.fetchNextPage(),children:n.isFetchingNextPage?m("common.loading"):m("wiki.sources.loadMore")}):null,n.isLoading?(0,b.jsx)("p",{className:"mt-3 text-sm text-muted-foreground",children:m("common.loading")}):null,n.error?(0,b.jsx)(r,{error:n.error,fallbackTitle:m("wiki.sources.listFailed"),refreshLabel:m("wiki.sources.refresh"),onRefresh:()=>void n.refetch(),labels:B}):null]}),(0,b.jsx)("section",{className:"rounded-xl border p-4",children:t?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("h3",{className:"break-all font-mono font-semibold",children:t}),(0,b.jsx)("p",{className:"text-xs text-muted-foreground",children:m("wiki.sources.version",{version:v.data?.latestVersionId??"-"})})]}),(0,b.jsxs)("div",{className:"flex gap-2",children:[(0,b.jsxs)(h.Button,{variant:"outline",size:"sm",onClick:E,disabled:!v.data||A.isPending,children:[(0,b.jsx)(f.Trash2,{className:"h-4 w-4"})," ",m("wiki.sources.delete")]}),(0,b.jsxs)(h.Button,{size:"sm",onClick:D,disabled:!v.data||z.isPending,children:[(0,b.jsx)(e.Save,{className:"h-4 w-4"})," ",m("wiki.sources.save")]})]})]}),v.isLoading?(0,b.jsx)("p",{className:"mt-4 text-sm text-muted-foreground",children:m("common.loading")}):(0,b.jsx)(i.Textarea,{className:"mt-4 min-h-80 font-mono",value:w,onChange:a=>x(a.target.value)}),v.error?(0,b.jsx)(r,{error:v.error,fallbackTitle:m("wiki.sources.readFailed"),refreshLabel:m("wiki.sources.refresh"),onRefresh:()=>void v.refetch(),labels:B}):null]}):(0,b.jsx)("p",{className:"text-sm text-muted-foreground",children:m("wiki.sources.selectHint")})})]})}])},784974,a=>a.a(async(b,c)=>{try{var d=a.i(634020),e=a.i(971938),f=a.i(412583),g=a.i(700623),h=a.i(418026),i=a.i(112537),j=a.i(521989),k=a.i(776192),l=a.i(604395),m=a.i(16038),n=a.i(408970),o=a.i(131173),p=a.i(543320),q=a.i(870307),r=a.i(353141),s=a.i(35213),t=a.i(394678),u=a.i(511248),v=a.i(663605),w=a.i(77626),x=b([v]);[v]=x.then?(await x)():x;let A={draft:"wiki.status.draft",ready:"wiki.status.ready",deleting:"wiki.status.deleting",deleted:"wiki.status.deleted"};function y({label:a,value:b}){return(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsx)("dt",{className:"text-xs text-muted-foreground",children:a}),(0,d.jsx)("dd",{className:"mt-1 truncate font-mono",title:void 0===b?"-":String(b),children:b??"-"})]})}function z({error:a}){let{t:b}=(0,p.useI18n)(),c=a instanceof r.ApiClientError?a:void 0,e=c?.status===409;return(0,d.jsxs)("div",{className:"rounded-xl border border-danger/30 bg-danger-soft p-8 text-center",children:[(0,d.jsx)(h.CircleAlert,{className:"mx-auto h-8 w-8 text-danger"}),(0,d.jsx)("h2",{className:"mt-3 font-semibold",children:b("wiki.detail.loadFailed")}),(0,d.jsx)("p",{className:"mt-1 text-sm",children:e?b("wiki.detail.scopeConflict"):c?.displayMessage??a?.message??b("wiki.detail.notFound")}),c?.requestId?(0,d.jsxs)("p",{className:"mt-2 font-mono text-xs",children:[b("wiki.detail.requestId"),": ",c.requestId]}):null,c?.details?.upstreamRequestId?(0,d.jsxs)("p",{className:"mt-1 font-mono text-xs",children:[b("wiki.detail.upstreamRequestId"),":"," ",c.details.upstreamRequestId]}):null]})}a.s(["WikiDetail",0,function({memoryStoreName:a,scope:b,runContext:c,initialTab:h,selectedPagePath:r,onOpenPage:x}){let{t:B}=(0,p.useI18n)(),C=(0,n.useWiki)(a,b),[D,E]=(0,e.useState)(r?"pages":h??"overview"),[F,G]=(0,e.useState)(!1),H=C.data?.latestBuild,I=c?(0,d.jsx)(k.Button,{asChild:!0,variant:"ghost",size:"sm",children:(0,d.jsxs)(f.default,{href:(0,q.buildScopeWorkspaceHref)(a,{...b,runId:c}),children:[(0,d.jsx)(g.ArrowLeft,{className:"h-4 w-4"})," ",B("wiki.detail.backToScope")]})}):null;if((0,o.useWikiBuildPolling)(H?.status,async()=>{await C.refetch()},!!H),C.isLoading)return(0,d.jsxs)("div",{className:"space-y-4",children:[I,(0,d.jsx)(l.Skeleton,{className:"h-[520px] rounded-xl"})]});if(C.error||!C.data)return(0,d.jsxs)("div",{className:"space-y-4",children:[I,(0,d.jsx)(z,{error:C.error})]});let J=C.data,K="ready"===J.status;function L(a){var b;(b={setTab:E,onOpenPage:x}).setTab("pages"),b.onOpenPage(a)}return(0,d.jsxs)("div",{className:"space-y-4",children:[I,(0,d.jsxs)("header",{className:"rounded-xl border bg-muted/20 p-4",children:[(0,d.jsxs)("div",{className:"mb-3 border-b pb-3",children:[(0,d.jsx)("p",{className:"text-xs font-semibold uppercase tracking-wide text-[hsl(var(--primary))]",children:B("wiki.detail.agentWikiTitle")}),(0,d.jsxs)("p",{className:"mt-1 break-all font-mono text-xs text-muted-foreground",children:[b.appId," ",(0,d.jsx)("span",{"aria-hidden":"true",children:">"})," ",b.tenantId," ",(0,d.jsx)("span",{"aria-hidden":"true",children:">"})," ",b.agentId]}),(0,d.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:B("wiki.detail.sharedRuns")}),c?(0,d.jsx)("p",{className:"mt-1 text-[11px] text-muted-foreground",children:B("wiki.detail.runContext",{runId:c})}):null]}),(0,d.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsx)("h3",{className:"text-lg font-semibold",children:J.name}),(0,d.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:J.summary||B("wiki.list.noSummary")})]}),(0,d.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,d.jsxs)(k.Button,{variant:"outline",size:"sm",onClick:()=>G(!0),children:[(0,d.jsx)(i.Pencil,{className:"h-4 w-4"})," ",B("wiki.list.edit")]}),(0,d.jsx)(j.Badge,{variant:"secondary",children:B(A[J.status])}),J.hasPendingChanges?(0,d.jsx)(j.Badge,{variant:"warning",children:B("wiki.detail.dirty")}):null]})]}),(0,d.jsxs)("dl",{className:"mt-3 grid gap-x-5 gap-y-2 border-t pt-3 text-xs sm:grid-cols-3",children:[(0,d.jsx)(y,{label:B("wiki.detail.pageCount"),value:J.pageCount}),(0,d.jsx)(y,{label:B("wiki.detail.createdAt"),value:J.createdAt}),(0,d.jsx)(y,{label:B("wiki.detail.updatedAt"),value:J.updatedAt})]}),H?.errorMessage&&("failed"===H.status||"conflict"===H.status)?(0,d.jsx)("div",{className:"mt-3 rounded-md border border-danger/30 bg-danger-soft p-3 text-sm text-danger",children:(0,d.jsx)("p",{children:H.errorMessage})}):null]}),(0,d.jsx)(t.WikiEditDialog,{memoryStoreName:a,scope:b,wiki:J,open:F,onOpenChange:G}),(0,d.jsxs)(m.Tabs,{className:"space-y-3",value:D,onValueChange:a=>E(a),children:[(0,d.jsx)(m.TabsList,{className:"h-9 max-w-full justify-start overflow-x-auto",children:["overview","sources","pages","search","build"].map(a=>(0,d.jsx)(m.TabsTrigger,{value:a,children:B(`wiki.detail.tabs.${a}`)},a))}),(0,d.jsx)(m.TabsContent,{value:"overview",children:(0,d.jsx)(u.WikiOverview,{memoryStoreName:a,scope:b,enabled:K})}),(0,d.jsx)(m.TabsContent,{value:"sources",children:(0,d.jsx)(w.WikiSourcesPanel,{memoryStoreName:a,scope:b})}),(0,d.jsx)(m.TabsContent,{value:"pages",children:(0,d.jsx)(v.WikiPagesPanel,{memoryStoreName:a,scope:b,enabled:K,selectedPagePath:r,onOpenPage:L})}),(0,d.jsx)(m.TabsContent,{value:"search",children:(0,d.jsx)(v.WikiSearchPanel,{memoryStoreName:a,scope:b,enabled:K,onOpenPage:L})}),(0,d.jsx)(m.TabsContent,{value:"build",children:(0,d.jsx)(s.WikiBuildPanel,{memoryStoreName:a,scope:b,build:H,onBuildStarted:()=>{C.refetch()}})})]})]})},"readWikiDetailTab",0,function(a){return"overview"===a||"sources"===a||"pages"===a||"search"===a||"build"===a?a:void 0}]),c()}catch(a){c(a)}},!1),27694,a=>a.a(async(b,c)=>{try{var d=a.i(634020),e=a.i(971938),f=a.i(880470),g=a.i(342210),h=a.i(140613),i=a.i(784974),j=a.i(543320),k=b([i]);function l(a){let b=a?.trim()??"";return b&&"*"!==b?b:null}function m(a){let b=l(a.appId),c=l(a.tenantId??null),d=l(a.agentId??null);return b&&c&&d?{appId:b,tenantId:c,agentId:d}:null}function n(a){let b=m({appId:a.get("appId")??"",tenantId:a.get("tenantId")??void 0,agentId:a.get("agentId")??void 0});if(!b)return null;let c=a.get("path")?.trim()||void 0,d=l(a.get("runId"))??void 0;return{scope:b,...d?{runContext:d}:{},...c?{path:c}:{}}}function o(a,b,c,d){let e=new URLSearchParams([["appId",b.appId],["tenantId",b.tenantId],["agentId",b.agentId],["runId",d??"*"]]);return c&&e.set("path",c),`/memory/${encodeURIComponent(a)}/wiki?${e.toString()}`}function p(a,b,c,d,e){a(o(b,c,d,e))}[i]=k.then?(await k)():k,a.s(["buildWikiPageHref",0,o,"default",0,function(){let{t:a}=(0,j.useI18n)(),b=(0,f.useParams)(),c=(0,f.useRouter)(),k=(0,f.useSearchParams)(),l=k.toString(),q=(0,e.useMemo)(()=>n(new URLSearchParams(l)),[l]),r=decodeURIComponent(b.store),s=(0,e.useMemo)(()=>({appId:k.get("appId")??"*",tenantId:k.get("tenantId")??"*",agentId:k.get("agentId")??"*",runId:k.get("runId")??"*"}),[k]);return(0,d.jsxs)("div",{className:"space-y-4",children:[(0,d.jsx)("div",{className:"flex items-center justify-between gap-3",children:(0,d.jsxs)("div",{children:[(0,d.jsx)("h2",{className:"text-lg font-semibold",children:a("wiki.list.title")}),(0,d.jsx)("p",{className:"text-xs text-muted-foreground",children:a("wiki.list.description")})]})}),q?(0,d.jsx)(i.WikiDetail,{memoryStoreName:r,scope:q.scope,runContext:q.runContext,initialTab:(0,i.readWikiDetailTab)(k.get("tab")),selectedPagePath:q.path,onOpenPage:a=>p(a=>c.replace(a),r,q.scope,a,q.runContext)}):(0,d.jsxs)("div",{className:"rounded-xl border border-dashed border-[hsl(var(--border))] px-6 py-12 text-center",children:[(0,d.jsx)(g.BookOpen,{className:"mx-auto mb-3 h-9 w-9 text-muted-foreground"}),(0,d.jsx)("h2",{className:"font-semibold",children:a("wiki.list.agentScopeTitle")}),(0,d.jsx)("p",{className:"mx-auto mt-2 max-w-xl text-sm text-muted-foreground",children:a("wiki.list.agentScopeRequired")}),(0,d.jsxs)("div",{className:"mx-auto mt-4 flex max-w-md flex-col items-center gap-2",children:[(0,d.jsx)("span",{className:"text-xs font-medium text-muted-foreground",children:a("wiki.list.chooseAgent")}),(0,d.jsx)(h.ScopeCombobox,{memoryStoreName:r,currentScope:s,maxLevel:"agent",placeholder:a("wiki.list.chooseAgent"),onPick:a=>{let b=m(a);b&&c.replace(o(r,b,void 0,"*"))}})]})]})]})},"readWikiDetailRoute",0,n,"replaceWikiPageRoute",0,p,"toWikiAgentScope",0,m]),c()}catch(a){c(a)}},!1)];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=_0gyu-mm._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[105305,a=>{"use strict";var b=a.i(971938);a.i(525704);var c=a.i(153179),d=a.i(634020),e=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((a,e)=>{let f=(0,c.createSlot)(`Primitive.${e}`),g=b.forwardRef((a,b)=>{let{asChild:c,...g}=a;return(0,d.jsx)(c?f:e,{...g,ref:b})});return g.displayName=`Primitive.${e}`,{...a,[e]:g}},{});a.s(["Primitive",0,e])},962491,a=>{"use strict";var b=a.i(634020),c=a.i(971938),d=a.i(105305),e=c.forwardRef((a,c)=>(0,b.jsx)(d.Primitive.label,{...a,ref:c,onMouseDown:b=>{b.target.closest("button, input, select, textarea")||(a.onMouseDown?.(b),!b.defaultPrevented&&b.detail>1&&b.preventDefault())}}));e.displayName="Label";var f=a.i(142261),g=a.i(364565);let h=(0,f.cva)("text-sm font-medium leading-none text-[hsl(var(--foreground))] peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),i=c.forwardRef(({className:a,...c},d)=>(0,b.jsx)(e,{ref:d,className:(0,g.cn)(h(),a),...c}));i.displayName=e.displayName,a.s(["Label",0,i],962491)},364565,a=>{"use strict";var b=a.i(239337),c=a.i(601302);a.s(["cn",0,function(...a){return(0,c.twMerge)((0,b.clsx)(a))},"extractFileName",0,function(a){let b=a.split("/");return b[b.length-1]||a}])},268189,a=>{"use strict";var b=a.i(971938);function c(a,b){if("function"==typeof a)return a(b);null!=a&&(a.current=b)}function d(...a){return b=>{let d=!1,e=a.map(a=>{let e=c(a,b);return d||"function"!=typeof e||(d=!0),e});if(d)return()=>{for(let b=0;b<e.length;b++){let d=e[b];"function"==typeof d?d():c(a[b],null)}}}}a.s(["composeRefs",0,d,"useComposedRefs",0,function(...a){return b.useCallback(d(...a),a)}])},142261,a=>{"use strict";var b=a.i(239337);let c=a=>"boolean"==typeof a?`${a}`:0===a?"0":a,d=b.clsx;a.s(["cva",0,(a,b)=>e=>{var f;if((null==b?void 0:b.variants)==null)return d(a,null==e?void 0:e.class,null==e?void 0:e.className);let{variants:g,defaultVariants:h}=b,i=Object.keys(g).map(a=>{let b=null==e?void 0:e[a],d=null==h?void 0:h[a];if(null===b)return null;let f=c(b)||c(d);return g[a][f]}),j=e&&Object.entries(e).reduce((a,b)=>{let[c,d]=b;return void 0===d||(a[c]=d),a},{});return d(a,i,null==b||null==(f=b.compoundVariants)?void 0:f.reduce((a,b)=>{let{class:c,className:d,...e}=b;return Object.entries(e).every(a=>{let[b,c]=a;return Array.isArray(c)?c.includes({...h,...j}[b]):({...h,...j})[b]===c})?[...a,c,d]:a},[]),null==e?void 0:e.class,null==e?void 0:e.className)}])},776192,153179,a=>{"use strict";var b=a.i(634020),c=a.i(971938),d=a.i(268189),e=Symbol.for("react.lazy"),f=c[" use ".trim().toString()];function g(a){var b;return null!=a&&"object"==typeof a&&"$$typeof"in a&&a.$$typeof===e&&"_payload"in a&&"object"==typeof(b=a._payload)&&null!==b&&"then"in b}function h(a){var e;let h,i=(e=a,(h=c.forwardRef((a,b)=>{let{children:e,...h}=a;if(g(e)&&"function"==typeof f&&(e=f(e._payload)),c.isValidElement(e)){var i;let a,f,g=(i=e,(f=(a=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in a&&a.isReactWarning)?i.ref:(f=(a=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in a&&a.isReactWarning)?i.props.ref:i.props.ref||i.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}}(h,e.props);return e.type!==c.Fragment&&(j.ref=b?(0,d.composeRefs)(b,g):g),c.cloneElement(e,j)}return c.Children.count(e)>1?c.Children.only(null):null})).displayName=`${e}.SlotClone`,h),j=c.forwardRef((a,d)=>{let{children:e,...h}=a;g(e)&&"function"==typeof f&&(e=f(e._payload));let j=c.Children.toArray(e),l=j.find(k);if(l){let a=l.props.children,e=j.map(b=>b!==l?b:c.Children.count(a)>1?c.Children.only(null):c.isValidElement(a)?a.props.children:null);return(0,b.jsx)(i,{...h,ref:d,children:c.isValidElement(a)?c.cloneElement(a,void 0,e):null})}return(0,b.jsx)(i,{...h,ref:d,children:e})});return j.displayName=`${a}.Slot`,j}var i=h("Slot"),j=Symbol("radix.slottable");function k(a){return c.isValidElement(a)&&"function"==typeof a.type&&"__radixId"in a.type&&a.type.__radixId===j}a.s(["Slot",0,i,"createSlot",0,h],153179);var l=a.i(142261),m=a.i(364565);let n=(0,l.cva)("inline-flex items-center justify-center gap-1.5 whitespace-nowrap rounded-md text-sm font-medium transition-colors 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))] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))] shadow-sm hover:opacity-90",destructive:"bg-[hsl(var(--destructive))] text-[hsl(var(--destructive-foreground))] shadow-sm hover:opacity-90",outline:"border border-[hsl(var(--border))] bg-[hsl(var(--card))] text-[hsl(var(--foreground))] shadow-sm hover:border-[hsl(var(--primary))] hover:text-[hsl(var(--primary))]",secondary:"bg-[hsl(var(--secondary))] text-[hsl(var(--secondary-foreground))] shadow-sm hover:opacity-80",ghost:"hover:bg-[hsl(var(--accent))] hover:text-[hsl(var(--accent-foreground))]",link:"text-[hsl(var(--primary))] underline-offset-4 hover:underline"},size:{default:"h-8 px-3 py-1",sm:"h-7 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-4",icon:"h-8 w-8"}},defaultVariants:{variant:"default",size:"default"}}),o=c.forwardRef(({className:a,variant:c,size:d,asChild:e=!1,...f},g)=>(0,b.jsx)(e?i:"button",{className:(0,m.cn)(n({variant:c,size:d,className:a})),ref:g,...f}));o.displayName="Button",a.s(["Button",0,o],776192)},750053,a=>{"use strict";var b=a.i(971938);let c=(...a)=>a.filter((a,b,c)=>!!a&&""!==a.trim()&&c.indexOf(a)===b).join(" ").trim(),d=a=>{let b=a.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,b,c)=>c?c.toUpperCase():b.toLowerCase());return b.charAt(0).toUpperCase()+b.slice(1)};var e={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let f=(0,b.createContext)({}),g=(0,b.forwardRef)(({color:a,size:d,strokeWidth:g,absoluteStrokeWidth:h,className:i="",children:j,iconNode:k,...l},m)=>{let{size:n=24,strokeWidth:o=2,absoluteStrokeWidth:p=!1,color:q="currentColor",className:r=""}=(0,b.useContext)(f)??{},s=h??p?24*Number(g??o)/Number(d??n):g??o;return(0,b.createElement)("svg",{ref:m,...e,width:d??n??e.width,height:d??n??e.height,stroke:a??q,strokeWidth:s,className:c("lucide",r,i),...!j&&!(a=>{for(let b in a)if(b.startsWith("aria-")||"role"===b||"title"===b)return!0;return!1})(l)&&{"aria-hidden":"true"},...l},[...k.map(([a,c])=>(0,b.createElement)(a,c)),...Array.isArray(j)?j:[j]])});a.s(["default",0,(a,e)=>{let f=(0,b.forwardRef)(({className:f,...h},i)=>(0,b.createElement)(g,{ref:i,iconNode:e,className:c(`lucide-${d(a).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${a}`,f),...h}));return f.displayName=d(a),f}],750053)},172518,a=>{"use strict";var b=a.i(634020),c=a.i(971938),d=a.i(364565);let e=c.forwardRef(({className:a,type:c,...e},f)=>(0,b.jsx)("input",{type:c,className:(0,d.cn)("flex h-8 w-full rounded-md border border-[hsl(var(--border))] bg-[hsl(var(--card))] px-3 py-1 text-sm transition-colors","file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground","placeholder:text-[hsl(var(--subtle))]","focus-visible:outline-none focus-visible:border-[hsl(var(--primary))] focus-visible:ring-2 focus-visible:ring-[hsl(var(--primary)/0.2)] focus-visible:ring-offset-0","disabled:cursor-not-allowed disabled:bg-[hsl(var(--secondary))] disabled:text-[hsl(var(--muted-foreground))]",a),ref:f,...e}));e.displayName="Input",a.s(["Input",0,e])},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)},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])}])},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)},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)}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=_0jt60z2._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[637102,a=>{"use strict";let b=(0,a.i(750053).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"}]]);a.s(["AlertTriangle",0,b],637102)},968826,a=>{"use strict";let b=(0,a.i(750053).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"}]]);a.s(["RefreshCw",0,b],968826)},36890,a=>{"use strict";var b=a.i(634020),c=a.i(971938),d=a.i(268189),e=a.i(484694),f=a.i(559653),g=a.i(483370),h=a.i(420251),i=a.i(866394),j=a.i(798392),k=a.i(558036),l="Checkbox",[m,n]=(0,e.createContextScope)(l),[o,p]=m(l);function q(a){let{__scopeCheckbox:d,checked:e,children:f,defaultChecked:h,disabled:i,form:j,name:k,onCheckedChange:m,required:n,value:p="on",internal_do_not_use_render:q}=a,[r,s]=(0,g.useControllableState)({prop:e,defaultProp:h??!1,onChange:m,caller:l}),[t,u]=c.useState(null),[v,w]=c.useState(null),x=c.useRef(!1),z=!t||!!j||!!t.closest("form"),A={checked:r,disabled:i,setChecked:s,control:t,setControl:u,name:k,form:j,value:p,hasConsumerStoppedPropagationRef:x,required:n,defaultChecked:!y(h)&&h,isFormControl:z,bubbleInput:v,setBubbleInput:w};return(0,b.jsx)(o,{scope:d,...A,children:"function"==typeof q?q(A):f})}var r="CheckboxTrigger",s=c.forwardRef(({__scopeCheckbox:a,onKeyDown:e,onClick:g,...h},i)=>{let{control:j,value:l,disabled:m,checked:n,required:o,setControl:q,setChecked:s,hasConsumerStoppedPropagationRef:t,isFormControl:u,bubbleInput:v}=p(r,a),w=(0,d.useComposedRefs)(i,q),x=c.useRef(n);return c.useEffect(()=>{let a=j?.form;if(a){let b=()=>s(x.current);return a.addEventListener("reset",b),()=>a.removeEventListener("reset",b)}},[j,s]),(0,b.jsx)(k.Primitive.button,{type:"button",role:"checkbox","aria-checked":y(n)?"mixed":n,"aria-required":o,"data-state":z(n),"data-disabled":m?"":void 0,disabled:m,value:l,...h,ref:w,onKeyDown:(0,f.composeEventHandlers)(e,a=>{"Enter"===a.key&&a.preventDefault()}),onClick:(0,f.composeEventHandlers)(g,a=>{s(a=>!!y(a)||!a),v&&u&&(t.current=a.isPropagationStopped(),t.current||a.stopPropagation())})})});s.displayName=r;var t=c.forwardRef((a,c)=>{let{__scopeCheckbox:d,name:e,checked:f,defaultChecked:g,required:h,disabled:i,value:j,onCheckedChange:k,form:l,...m}=a;return(0,b.jsx)(q,{__scopeCheckbox:d,checked:f,defaultChecked:g,disabled:i,required:h,onCheckedChange:k,name:e,form:l,value:j,internal_do_not_use_render:({isFormControl:a})=>(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(s,{...m,ref:c,__scopeCheckbox:d}),a&&(0,b.jsx)(x,{__scopeCheckbox:d})]})})});t.displayName=l;var u="CheckboxIndicator",v=c.forwardRef((a,c)=>{let{__scopeCheckbox:d,forceMount:e,...f}=a,g=p(u,d);return(0,b.jsx)(j.Presence,{present:e||y(g.checked)||!0===g.checked,children:(0,b.jsx)(k.Primitive.span,{"data-state":z(g.checked),"data-disabled":g.disabled?"":void 0,...f,ref:c,style:{pointerEvents:"none",...a.style}})})});v.displayName=u;var w="CheckboxBubbleInput",x=c.forwardRef(({__scopeCheckbox:a,...e},f)=>{let{control:g,hasConsumerStoppedPropagationRef:j,checked:l,defaultChecked:m,required:n,disabled:o,name:q,value:r,form:s,bubbleInput:t,setBubbleInput:u}=p(w,a),v=(0,d.useComposedRefs)(f,u),x=(0,h.usePrevious)(l),z=(0,i.useSize)(g);c.useEffect(()=>{if(!t)return;let a=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,b=!j.current;if(x!==l&&a){let c=new Event("click",{bubbles:b});t.indeterminate=y(l),a.call(t,!y(l)&&l),t.dispatchEvent(c)}},[t,x,l,j]);let A=c.useRef(!y(l)&&l);return(0,b.jsx)(k.Primitive.input,{type:"checkbox","aria-hidden":!0,defaultChecked:m??A.current,required:n,disabled:o,name:q,value:r,form:s,...e,tabIndex:-1,ref:v,style:{...e.style,...z,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function y(a){return"indeterminate"===a}function z(a){return y(a)?"indeterminate":a?"checked":"unchecked"}x.displayName=w;var A=a.i(53520),B=a.i(364565);let C=c.forwardRef(({className:a,...c},d)=>(0,b.jsx)(t,{ref:d,className:(0,B.cn)("grid place-content-center peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",a),...c,children:(0,b.jsx)(v,{className:(0,B.cn)("grid place-content-center text-current"),children:(0,b.jsx)(A.Check,{className:"h-4 w-4"})})}));C.displayName=t.displayName,a.s(["Checkbox",0,C],36890)},350681,a=>{"use strict";var b=a.i(634020),c=a.i(971938),d=a.i(48972),e=a.i(559653),f=a.i(268189),g=a.i(484694),h=a.i(483370),i=a.i(274974),j=a.i(420251),k=a.i(866394),l=a.i(558036),m=a.i(917021),n=["PageUp","PageDown"],o=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],p={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},q="Slider",[r,s,t]=(0,m.createCollection)(q),[u,v]=(0,g.createContextScope)(q,[t]),[w,x]=u(q),y=c.forwardRef((a,f)=>{let{name:g,min:i=0,max:j=100,step:k=1,orientation:l="horizontal",disabled:m=!1,minStepsBetweenThumbs:p=0,defaultValue:q=[i],value:s,onValueChange:t=()=>{},onValueCommit:u=()=>{},inverted:v=!1,form:x,...y}=a,z=c.useRef(new Set),A=c.useRef(0),D="horizontal"===l,[E=[],F]=(0,h.useControllableState)({prop:s,defaultProp:q,onChange:a=>{let b=[...z.current];b[A.current]?.focus(),t(a)}}),G=c.useRef(E);function H(a,b,{commit:c}={commit:!1}){let e,f=(String(k).split(".")[1]||"").length,g=Math.round((Math.round((a-i)/k)*k+i)*(e=Math.pow(10,f)))/e,h=(0,d.clamp)(g,[i,j]);F((a=[])=>{let d=function(a=[],b,c){let d=[...a];return d[c]=b,d.sort((a,b)=>a-b)}(a,h,b);if(!function(a,b){if(b>0)return Math.min(...a.slice(0,-1).map((b,c)=>a[c+1]-b))>=b;return!0}(d,p*k))return a;{A.current=d.indexOf(h);let b=String(d)!==String(a);return b&&c&&u(d),b?d:a}})}return(0,b.jsx)(w,{scope:a.__scopeSlider,name:g,disabled:m,min:i,max:j,valueIndexToChangeRef:A,thumbs:z.current,values:E,orientation:l,form:x,children:(0,b.jsx)(r.Provider,{scope:a.__scopeSlider,children:(0,b.jsx)(r.Slot,{scope:a.__scopeSlider,children:(0,b.jsx)(D?B:C,{"aria-disabled":m,"data-disabled":m?"":void 0,...y,ref:f,onPointerDown:(0,e.composeEventHandlers)(y.onPointerDown,()=>{m||(G.current=E)}),min:i,max:j,inverted:v,onSlideStart:m?void 0:function(a){let b=function(a,b){if(1===a.length)return 0;let c=a.map(a=>Math.abs(a-b)),d=Math.min(...c);return c.indexOf(d)}(E,a);H(a,b)},onSlideMove:m?void 0:function(a){H(a,A.current)},onSlideEnd:m?void 0:function(){let a=G.current[A.current];E[A.current]!==a&&u(E)},onHomeKeyDown:()=>!m&&H(i,0,{commit:!0}),onEndKeyDown:()=>!m&&H(j,E.length-1,{commit:!0}),onStepKeyDown:({event:a,direction:b})=>{if(!m){let c=n.includes(a.key)||a.shiftKey&&o.includes(a.key),d=A.current;H(E[d]+k*(c?10:1)*b,d,{commit:!0})}}})})})})});y.displayName=q;var[z,A]=u(q,{startEdge:"left",endEdge:"right",size:"width",direction:1}),B=c.forwardRef((a,d)=>{let{min:e,max:g,dir:h,inverted:j,onSlideStart:k,onSlideMove:l,onSlideEnd:m,onStepKeyDown:n,...o}=a,[q,r]=c.useState(null),s=(0,f.useComposedRefs)(d,a=>r(a)),t=c.useRef(void 0),u=(0,i.useDirection)(h),v="ltr"===u,w=v&&!j||!v&&j;function x(a){let b=t.current||q.getBoundingClientRect(),c=N([0,b.width],w?[e,g]:[g,e]);return t.current=b,c(a-b.left)}return(0,b.jsx)(z,{scope:a.__scopeSlider,startEdge:w?"left":"right",endEdge:w?"right":"left",direction:w?1:-1,size:"width",children:(0,b.jsx)(D,{dir:u,"data-orientation":"horizontal",...o,ref:s,style:{...o.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:a=>{let b=x(a.clientX);k?.(b)},onSlideMove:a=>{let b=x(a.clientX);l?.(b)},onSlideEnd:()=>{t.current=void 0,m?.()},onStepKeyDown:a=>{let b=p[w?"from-left":"from-right"].includes(a.key);n?.({event:a,direction:b?-1:1})}})})}),C=c.forwardRef((a,d)=>{let{min:e,max:g,inverted:h,onSlideStart:i,onSlideMove:j,onSlideEnd:k,onStepKeyDown:l,...m}=a,n=c.useRef(null),o=(0,f.useComposedRefs)(d,n),q=c.useRef(void 0),r=!h;function s(a){let b=q.current||n.current.getBoundingClientRect(),c=N([0,b.height],r?[g,e]:[e,g]);return q.current=b,c(a-b.top)}return(0,b.jsx)(z,{scope:a.__scopeSlider,startEdge:r?"bottom":"top",endEdge:r?"top":"bottom",size:"height",direction:r?1:-1,children:(0,b.jsx)(D,{"data-orientation":"vertical",...m,ref:o,style:{...m.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:a=>{let b=s(a.clientY);i?.(b)},onSlideMove:a=>{let b=s(a.clientY);j?.(b)},onSlideEnd:()=>{q.current=void 0,k?.()},onStepKeyDown:a=>{let b=p[r?"from-bottom":"from-top"].includes(a.key);l?.({event:a,direction:b?-1:1})}})})}),D=c.forwardRef((a,c)=>{let{__scopeSlider:d,onSlideStart:f,onSlideMove:g,onSlideEnd:h,onHomeKeyDown:i,onEndKeyDown:j,onStepKeyDown:k,...m}=a,p=x(q,d);return(0,b.jsx)(l.Primitive.span,{...m,ref:c,onKeyDown:(0,e.composeEventHandlers)(a.onKeyDown,a=>{"Home"===a.key?(i(a),a.preventDefault()):"End"===a.key?(j(a),a.preventDefault()):n.concat(o).includes(a.key)&&(k(a),a.preventDefault())}),onPointerDown:(0,e.composeEventHandlers)(a.onPointerDown,a=>{let b=a.target;b.setPointerCapture(a.pointerId),a.preventDefault(),p.thumbs.has(b)?b.focus():f(a)}),onPointerMove:(0,e.composeEventHandlers)(a.onPointerMove,a=>{a.target.hasPointerCapture(a.pointerId)&&g(a)}),onPointerUp:(0,e.composeEventHandlers)(a.onPointerUp,a=>{let b=a.target;b.hasPointerCapture(a.pointerId)&&(b.releasePointerCapture(a.pointerId),h(a))})})}),E="SliderTrack",F=c.forwardRef((a,c)=>{let{__scopeSlider:d,...e}=a,f=x(E,d);return(0,b.jsx)(l.Primitive.span,{"data-disabled":f.disabled?"":void 0,"data-orientation":f.orientation,...e,ref:c})});F.displayName=E;var G="SliderRange",H=c.forwardRef((a,d)=>{let{__scopeSlider:e,...g}=a,h=x(G,e),i=A(G,e),j=c.useRef(null),k=(0,f.useComposedRefs)(d,j),m=h.values.length,n=h.values.map(a=>M(a,h.min,h.max)),o=m>1?Math.min(...n):0,p=100-Math.max(...n);return(0,b.jsx)(l.Primitive.span,{"data-orientation":h.orientation,"data-disabled":h.disabled?"":void 0,...g,ref:k,style:{...a.style,[i.startEdge]:o+"%",[i.endEdge]:p+"%"}})});H.displayName=G;var I="SliderThumb",J=c.forwardRef((a,d)=>{let e=s(a.__scopeSlider),[g,h]=c.useState(null),i=(0,f.useComposedRefs)(d,a=>h(a)),j=c.useMemo(()=>g?e().findIndex(a=>a.ref.current===g):-1,[e,g]);return(0,b.jsx)(K,{...a,ref:i,index:j})}),K=c.forwardRef((a,d)=>{var g,h,i,j,m;let n,o,{__scopeSlider:p,index:q,name:s,...t}=a,u=x(I,p),v=A(I,p),[w,y]=c.useState(null),z=(0,f.useComposedRefs)(d,a=>y(a)),B=!w||u.form||!!w.closest("form"),C=(0,k.useSize)(w),D=u.values[q],E=void 0===D?0:M(D,u.min,u.max),F=(g=q,(h=u.values.length)>2?`Value ${g+1} of ${h}`:2===h?["Minimum","Maximum"][g]:void 0),G=C?.[v.size],H=G?(i=G,j=E,m=v.direction,o=N([0,50],[0,n=i/2]),(n-o(j)*m)*m):0;return c.useEffect(()=>{if(w)return u.thumbs.add(w),()=>{u.thumbs.delete(w)}},[w,u.thumbs]),(0,b.jsxs)("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[v.startEdge]:`calc(${E}% + ${H}px)`},children:[(0,b.jsx)(r.ItemSlot,{scope:a.__scopeSlider,children:(0,b.jsx)(l.Primitive.span,{role:"slider","aria-label":a["aria-label"]||F,"aria-valuemin":u.min,"aria-valuenow":D,"aria-valuemax":u.max,"aria-orientation":u.orientation,"data-orientation":u.orientation,"data-disabled":u.disabled?"":void 0,tabIndex:u.disabled?void 0:0,...t,ref:z,style:void 0===D?{display:"none"}:a.style,onFocus:(0,e.composeEventHandlers)(a.onFocus,()=>{u.valueIndexToChangeRef.current=q})})}),B&&(0,b.jsx)(L,{name:s??(u.name?u.name+(u.values.length>1?"[]":""):void 0),form:u.form,value:D},q)]})});J.displayName=I;var L=c.forwardRef(({__scopeSlider:a,value:d,...e},g)=>{let h=c.useRef(null),i=(0,f.useComposedRefs)(h,g),k=(0,j.usePrevious)(d);return c.useEffect(()=>{let a=h.current;if(!a)return;let b=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value").set;if(k!==d&&b){let c=new Event("input",{bubbles:!0});b.call(a,d),a.dispatchEvent(c)}},[k,d]),(0,b.jsx)(l.Primitive.input,{style:{display:"none"},...e,ref:i,defaultValue:d})});function M(a,b,c){return(0,d.clamp)(100/(c-b)*(a-b),[0,100])}function N(a,b){return c=>{if(a[0]===a[1]||b[0]===b[1])return b[0];let d=(b[1]-b[0])/(a[1]-a[0]);return b[0]+d*(c-a[0])}}L.displayName="RadioBubbleInput";var O=a.i(364565);let P=c.forwardRef(({className:a,...c},d)=>(0,b.jsxs)(y,{ref:d,className:(0,O.cn)("relative flex w-full touch-none select-none items-center",a),...c,children:[(0,b.jsx)(F,{className:"relative h-1.5 w-full grow overflow-hidden rounded-full bg-[hsl(var(--muted))]",children:(0,b.jsx)(H,{className:"absolute h-full bg-[hsl(var(--primary))]"})}),(0,b.jsx)(J,{className:"block h-4 w-4 rounded-full border border-[hsl(var(--primary))] bg-[hsl(var(--background))] shadow-sm ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"})]}));P.displayName=y.displayName,a.s(["Slider",0,P],350681)},223301,a=>{"use strict";var b=a.i(634020),c=a.i(971938),d=a.i(364565);let e=c.forwardRef(({className:a,...c},e)=>(0,b.jsx)("div",{className:"relative w-full overflow-auto",children:(0,b.jsx)("table",{ref:e,className:(0,d.cn)("w-full caption-bottom text-sm",a),...c})}));e.displayName="Table";let f=c.forwardRef(({className:a,...c},e)=>(0,b.jsx)("thead",{ref:e,className:(0,d.cn)("[&_tr]:border-b [&_tr]:border-[hsl(var(--border))] [&_tr]:bg-[hsl(var(--secondary))]",a),...c}));f.displayName="TableHeader";let g=c.forwardRef(({className:a,...c},e)=>(0,b.jsx)("tbody",{ref:e,className:(0,d.cn)("[&_tr:last-child]:border-0",a),...c}));g.displayName="TableBody",c.forwardRef(({className:a,...c},e)=>(0,b.jsx)("tfoot",{ref:e,className:(0,d.cn)("border-t border-[hsl(var(--border))] bg-[hsl(var(--secondary)/0.5)] font-medium [&>tr]:last:border-b-0",a),...c})).displayName="TableFooter";let h=c.forwardRef(({className:a,...c},e)=>(0,b.jsx)("tr",{ref:e,className:(0,d.cn)("border-b border-[hsl(var(--border-light))] transition-colors hover:bg-[hsl(var(--secondary)/0.5)] data-[state=selected]:bg-[hsl(var(--primary-soft))]",a),...c}));h.displayName="TableRow";let i=c.forwardRef(({className:a,...c},e)=>(0,b.jsx)("th",{ref:e,className:(0,d.cn)("h-9 px-3 text-left align-middle text-xs font-medium text-[hsl(var(--muted-foreground))] [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...c}));i.displayName="TableHead";let j=c.forwardRef(({className:a,...c},e)=>(0,b.jsx)("td",{ref:e,className:(0,d.cn)("px-3 py-2 align-middle text-sm [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...c}));j.displayName="TableCell",c.forwardRef(({className:a,...c},e)=>(0,b.jsx)("caption",{ref:e,className:(0,d.cn)("mt-4 text-sm text-[hsl(var(--muted-foreground))]",a),...c})).displayName="TableCaption",a.s(["Table",0,e,"TableBody",0,g,"TableCell",0,j,"TableHead",0,i,"TableHeader",0,f,"TableRow",0,h])},887617,a=>{"use strict";var b=a.i(634020),c=a.i(971938),d=a.i(968826),e=a.i(776192),f=a.i(364565),g=a.i(543320);a.s(["RefreshButton",0,function({loading:a,onClick:h,title:i,className:j,size:k="icon",label:l,variant:m="ghost"}){let{t:n}=(0,g.useI18n)(),o=i??n("common.refresh"),p=(0,c.useRef)(null),q=(0,c.useRef)(null),r=(0,c.useRef)(a),s=()=>{let a=p.current;if(!a||q.current)return;let b=a.animate([{transform:"rotate(0deg)"},{transform:"rotate(360deg)"}],{duration:800,easing:"linear",iterations:1,fill:"none"});q.current=b,b.addEventListener("finish",()=>{q.current=null,r.current&&s()}),b.addEventListener("cancel",()=>{q.current=null})};(0,c.useEffect)(()=>{r.current=a},[a]),(0,c.useEffect)(()=>{a&&s()},[a]),(0,c.useEffect)(()=>()=>{q.current?.cancel(),q.current=null},[]);let t="icon"!==k&&!!l;return(0,b.jsxs)(e.Button,{type:"button",variant:m,size:k,onClick:()=>{a||(s(),h())},title:o,"aria-label":l??o,"aria-busy":a||void 0,className:(0,f.cn)("group text-muted-foreground transition-colors duration-150","hover:text-foreground active:scale-[0.96]","ghost"===m&&"hover:bg-[hsl(var(--accent))]",j),children:[(0,b.jsx)("span",{ref:p,"aria-hidden":!0,className:(0,f.cn)("inline-flex transform-gpu",t&&"mr-1.5"),children:(0,b.jsx)(d.RefreshCw,{className:"sm"===k?"h-3.5 w-3.5":"h-4 w-4"})}),t&&l]})}])},726436,a=>{"use strict";var b=a.i(983366),c=a.i(421347),d=a.i(225377),e=a.i(739096);a.s(["useMemoryUnit",0,function(a,f,g,h=!0){let{context:i,ready:j}=(0,e.useRuntimeContext)();return(0,b.useQuery)({queryKey:d.queryKeys.memoryUnit(i.dataScopeKey,a,f,g),queryFn:()=>(0,c.getMemoryUnit)({memoryStoreName:a,memoryId:f,scope:g}),enabled:j&&h&&!!a&&!!g?.appId&&!!f&&"-"!==f})}])},601170,a=>{"use strict";var b=a.i(634020),c=a.i(1078),d=a.i(543320);a.s(["MemoryDreamDisabled",0,function(){let{t:a}=(0,d.useI18n)();return(0,b.jsxs)("div",{className:"flex flex-col items-center justify-center rounded-lg border border-dashed border-[hsl(var(--border))] bg-[hsl(var(--surface))] px-8 py-16 text-center",children:[(0,b.jsx)("div",{className:"mb-4 flex h-14 w-14 items-center justify-center rounded-2xl bg-[hsl(var(--primary-soft))] ring-1 ring-[hsl(var(--primary)/0.18)]",children:(0,b.jsx)(c.Sparkles,{className:"h-7 w-7 text-[hsl(var(--primary))]",strokeWidth:1.75})}),(0,b.jsx)("h3",{className:"text-base font-semibold text-[hsl(var(--foreground))]",children:a("memory.dream.disabledTitle")}),(0,b.jsxs)("p",{className:"mt-2 max-w-md text-sm leading-relaxed text-[hsl(var(--muted-foreground))]",children:[a("memory.dream.disabledPrefix"),(0,b.jsx)("code",{className:"mx-1 rounded bg-[hsl(var(--muted))] px-1.5 py-0.5 font-mono text-xs",children:"DREAMING_ENABLED=true"}),a("memory.dream.disabledSuffix")]})]})}])},109734,a=>{"use strict";var b=a.i(634020),c=a.i(971938),d=a.i(188619),e=a.i(414151),f=a.i(364565);let g=d.Root;d.Trigger,d.Close;let h=d.Portal,i=c.forwardRef(({className:a,...c},e)=>(0,b.jsx)(d.Overlay,{ref:e,className:(0,f.cn)("fixed inset-0 z-50 bg-black/30 backdrop-blur-sm duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",a),...c}));i.displayName=d.Overlay.displayName;let j={top:"inset-x-0 top-0 border-b data-[state=open]:slide-in-from-top data-[state=closed]:slide-out-to-top",bottom:"inset-x-0 bottom-0 border-t data-[state=open]:slide-in-from-bottom data-[state=closed]:slide-out-to-bottom",left:"inset-y-0 left-0 h-full w-3/4 max-w-sm border-r data-[state=open]:slide-in-from-left data-[state=closed]:slide-out-to-left",right:"inset-y-0 right-0 h-full w-3/4 max-w-md border-l data-[state=open]:slide-in-from-right data-[state=closed]:slide-out-to-right"},k=c.forwardRef(({className:a,children:c,side:g="right",...k},l)=>(0,b.jsxs)(h,{children:[(0,b.jsx)(i,{}),(0,b.jsxs)(d.Content,{ref:l,className:(0,f.cn)("fixed z-50 flex flex-col gap-4 bg-[hsl(var(--card))] p-6 shadow-md border-[hsl(var(--border))]","duration-300 ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out",j[g],a),...k,children:[c,(0,b.jsxs)(d.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[(0,b.jsx)(e.X,{className:"h-4 w-4"}),(0,b.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));k.displayName=d.Content.displayName;let l=({className:a,...c})=>(0,b.jsx)("div",{className:(0,f.cn)("flex flex-col space-y-1.5 text-left",a),...c});l.displayName="SheetHeader";let m=({className:a,...c})=>(0,b.jsx)("div",{className:(0,f.cn)("mt-auto flex flex-col-reverse gap-2 sm:flex-row sm:justify-end sm:space-x-2",a),...c});m.displayName="SheetFooter";let n=c.forwardRef(({className:a,...c},e)=>(0,b.jsx)(d.Title,{ref:e,className:(0,f.cn)("text-base font-semibold leading-tight",a),...c}));n.displayName=d.Title.displayName;let o=c.forwardRef(({className:a,...c},e)=>(0,b.jsx)(d.Description,{ref:e,className:(0,f.cn)("text-sm text-[hsl(var(--muted-foreground))]",a),...c}));o.displayName=d.Description.displayName,a.s(["Sheet",0,g,"SheetContent",0,k,"SheetDescription",0,o,"SheetFooter",0,m,"SheetHeader",0,l,"SheetTitle",0,n])},80024,a=>{"use strict";let b=new Set(["completed","completed_with_failures","failed","cancelled"]);a.s(["DREAM_TERMINAL_STATUSES",0,b])}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=_0k7q0ug._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[637102,a=>{"use strict";let b=(0,a.i(750053).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"}]]);a.s(["AlertTriangle",0,b],637102)},968826,a=>{"use strict";let b=(0,a.i(750053).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"}]]);a.s(["RefreshCw",0,b],968826)},502482,a=>{"use strict";var b=a.i(634020),c=a.i(412583),d=a.i(880470),e=a.i(907704),f=a.i(543320),g=a.i(414796),h=a.i(364565);let i=new Set(Object.keys(g.messages.header.segments));a.s(["PageHeader",0,function({title:a,description:g,hideBreadcrumb:j,children:k,className:l}){let m=(0,d.usePathname)()??"/",{t:n}=(0,f.useI18n)(),o=j?[]:function(a,b){if(/^\/knowledge-base\/[^/]+(?:\/.*)?$/.test(a)||/^\/memory\/[^/]+(?:\/.*)?$/.test(a))return[];let c=a.split("/").filter(Boolean);if(0===c.length)return[];let d=[],e="";return c.forEach((a,f)=>{e+=`/${a}`;let g=decodeURIComponent(a),h=i.has(g)?b(`header.segments.${g}`):g;d.push({label:h,href:f<c.length-1?e:void 0})}),d}(m,n);return(0,b.jsxs)("div",{className:(0,h.cn)("mb-5 flex flex-col gap-2",l),children:[o.length>1&&(0,b.jsxs)("nav",{"aria-label":n("header.breadcrumb"),className:"flex items-center gap-1 text-[13px] text-[hsl(var(--muted-foreground))]",children:[(0,b.jsx)(c.default,{href:"/",className:"transition-colors hover:text-[hsl(var(--foreground))]",children:n("common.home")}),o.map((a,d)=>(0,b.jsxs)("span",{className:"flex items-center gap-1",children:[(0,b.jsx)(e.ChevronRight,{className:"h-3 w-3 opacity-60"}),a.href?(0,b.jsx)(c.default,{href:a.href,className:"transition-colors hover:text-[hsl(var(--foreground))]",children:a.label}):(0,b.jsx)("span",{className:"font-medium text-[hsl(var(--foreground))]",children:a.label})]},`${a.label}-${d}`))]}),(0,b.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,b.jsxs)("div",{className:"space-y-1",children:[(0,b.jsx)("h1",{className:"text-xl font-semibold leading-tight text-[hsl(var(--foreground))]",children:a}),g&&(0,b.jsx)("p",{className:"text-[13px] text-[hsl(var(--muted-foreground))]",children:g})]}),k&&(0,b.jsx)("div",{className:"flex shrink-0 items-center gap-2",children:k})]})]})}])},796572,a=>{"use strict";var b=a.i(493417);function c(a){let b=new Date(a);return isNaN(b.getTime())?null:b}a.s(["formatDateTime",0,function(a,d="zh",e={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}){if(!a)return"-";let f=c(a);return f?f.toLocaleString(b.LOCALE_HTML_LANG[d],e):"string"==typeof a?a:"-"},"formatTimeOfDay",0,function(a,d="zh",e={hour:"2-digit",minute:"2-digit",second:"2-digit"}){if(!a)return"-";let f=c(a);return f?f.toLocaleTimeString(b.LOCALE_HTML_LANG[d],e):"string"==typeof a?a:"-"}])},223301,a=>{"use strict";var b=a.i(634020),c=a.i(971938),d=a.i(364565);let e=c.forwardRef(({className:a,...c},e)=>(0,b.jsx)("div",{className:"relative w-full overflow-auto",children:(0,b.jsx)("table",{ref:e,className:(0,d.cn)("w-full caption-bottom text-sm",a),...c})}));e.displayName="Table";let f=c.forwardRef(({className:a,...c},e)=>(0,b.jsx)("thead",{ref:e,className:(0,d.cn)("[&_tr]:border-b [&_tr]:border-[hsl(var(--border))] [&_tr]:bg-[hsl(var(--secondary))]",a),...c}));f.displayName="TableHeader";let g=c.forwardRef(({className:a,...c},e)=>(0,b.jsx)("tbody",{ref:e,className:(0,d.cn)("[&_tr:last-child]:border-0",a),...c}));g.displayName="TableBody",c.forwardRef(({className:a,...c},e)=>(0,b.jsx)("tfoot",{ref:e,className:(0,d.cn)("border-t border-[hsl(var(--border))] bg-[hsl(var(--secondary)/0.5)] font-medium [&>tr]:last:border-b-0",a),...c})).displayName="TableFooter";let h=c.forwardRef(({className:a,...c},e)=>(0,b.jsx)("tr",{ref:e,className:(0,d.cn)("border-b border-[hsl(var(--border-light))] transition-colors hover:bg-[hsl(var(--secondary)/0.5)] data-[state=selected]:bg-[hsl(var(--primary-soft))]",a),...c}));h.displayName="TableRow";let i=c.forwardRef(({className:a,...c},e)=>(0,b.jsx)("th",{ref:e,className:(0,d.cn)("h-9 px-3 text-left align-middle text-xs font-medium text-[hsl(var(--muted-foreground))] [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...c}));i.displayName="TableHead";let j=c.forwardRef(({className:a,...c},e)=>(0,b.jsx)("td",{ref:e,className:(0,d.cn)("px-3 py-2 align-middle text-sm [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...c}));j.displayName="TableCell",c.forwardRef(({className:a,...c},e)=>(0,b.jsx)("caption",{ref:e,className:(0,d.cn)("mt-4 text-sm text-[hsl(var(--muted-foreground))]",a),...c})).displayName="TableCaption",a.s(["Table",0,e,"TableBody",0,g,"TableCell",0,j,"TableHead",0,i,"TableHeader",0,f,"TableRow",0,h])},887617,a=>{"use strict";var b=a.i(634020),c=a.i(971938),d=a.i(968826),e=a.i(776192),f=a.i(364565),g=a.i(543320);a.s(["RefreshButton",0,function({loading:a,onClick:h,title:i,className:j,size:k="icon",label:l,variant:m="ghost"}){let{t:n}=(0,g.useI18n)(),o=i??n("common.refresh"),p=(0,c.useRef)(null),q=(0,c.useRef)(null),r=(0,c.useRef)(a),s=()=>{let a=p.current;if(!a||q.current)return;let b=a.animate([{transform:"rotate(0deg)"},{transform:"rotate(360deg)"}],{duration:800,easing:"linear",iterations:1,fill:"none"});q.current=b,b.addEventListener("finish",()=>{q.current=null,r.current&&s()}),b.addEventListener("cancel",()=>{q.current=null})};(0,c.useEffect)(()=>{r.current=a},[a]),(0,c.useEffect)(()=>{a&&s()},[a]),(0,c.useEffect)(()=>()=>{q.current?.cancel(),q.current=null},[]);let t="icon"!==k&&!!l;return(0,b.jsxs)(e.Button,{type:"button",variant:m,size:k,onClick:()=>{a||(s(),h())},title:o,"aria-label":l??o,"aria-busy":a||void 0,className:(0,f.cn)("group text-muted-foreground transition-colors duration-150","hover:text-foreground active:scale-[0.96]","ghost"===m&&"hover:bg-[hsl(var(--accent))]",j),children:[(0,b.jsx)("span",{ref:p,"aria-hidden":!0,className:(0,f.cn)("inline-flex transform-gpu",t&&"mr-1.5"),children:(0,b.jsx)(d.RefreshCw,{className:"sm"===k?"h-3.5 w-3.5":"h-4 w-4"})}),t&&l]})}])},87491,a=>{"use strict";let b=(0,a.i(750053).default)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);a.s(["Eye",0,b],87491)},726436,a=>{"use strict";var b=a.i(983366),c=a.i(421347),d=a.i(225377),e=a.i(739096);a.s(["useMemoryUnit",0,function(a,f,g,h=!0){let{context:i,ready:j}=(0,e.useRuntimeContext)();return(0,b.useQuery)({queryKey:d.queryKeys.memoryUnit(i.dataScopeKey,a,f,g),queryFn:()=>(0,c.getMemoryUnit)({memoryStoreName:a,memoryId:f,scope:g}),enabled:j&&h&&!!a&&!!g?.appId&&!!f&&"-"!==f})}])},219974,a=>{"use strict";let b=(0,a.i(750053).default)("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);a.s(["FileText",0,b],219974)},149086,a=>{"use strict";var b=a.i(333646),c=a.i(568474),d=class extends b.QueryObserver{constructor(a,b){super(a,b)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(a){super.setOptions({...a,behavior:(0,c.infiniteQueryBehavior)()})}getOptimisticResult(a){return a.behavior=(0,c.infiniteQueryBehavior)(),super.getOptimisticResult(a)}fetchNextPage(a){return this.fetch({...a,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(a){return this.fetch({...a,meta:{fetchMore:{direction:"backward"}}})}createResult(a,b){let{state:d}=a,e=super.createResult(a,b),{isFetching:f,isRefetching:g,isError:h,isRefetchError:i}=e,j=d.fetchMeta?.fetchMore?.direction,k=h&&"forward"===j,l=f&&"forward"===j,m=h&&"backward"===j,n=f&&"backward"===j;return{...e,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,c.hasNextPage)(b,d.data),hasPreviousPage:(0,c.hasPreviousPage)(b,d.data),isFetchNextPageError:k,isFetchingNextPage:l,isFetchPreviousPageError:m,isFetchingPreviousPage:n,isRefetchError:i&&!k&&!m,isRefetching:g&&!l&&!n}}},e=a.i(458710);a.s(["useInfiniteQuery",0,function(a,b){return(0,e.useBaseQuery)(a,d,b)}],149086)},831113,a=>{"use strict";let b=(0,a.i(750053).default)("folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);a.s(["Folder",0,b],831113)},141420,a=>{"use strict";let b=(0,a.i(750053).default)("folder-open",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);a.s(["FolderOpen",0,b],141420)},126211,a=>{"use strict";let b=(0,a.i(750053).default)("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);a.s(["Save",0,b],126211)},221685,a=>{"use strict";let b=(0,a.i(750053).default)("file-plus-corner",[["path",{d:"M11.35 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v5.35",key:"17jvcc"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M14 19h6",key:"bvotb8"}],["path",{d:"M17 16v6",key:"18yu1i"}]]);a.s(["FilePlus2",0,b],221685)},881619,a=>{"use strict";let b=(0,a.i(750053).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);a.s(["Loader2",0,b],881619)},112537,a=>{"use strict";let b=(0,a.i(750053).default)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);a.s(["Pencil",0,b],112537)},558648,a=>{"use strict";let b=(0,a.i(750053).default)("list-ordered",[["path",{d:"M11 5h10",key:"1cz7ny"}],["path",{d:"M11 12h10",key:"1438ji"}],["path",{d:"M11 19h10",key:"11t30w"}],["path",{d:"M4 4h1v5",key:"10yrso"}],["path",{d:"M4 9h2",key:"r1h2o0"}],["path",{d:"M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02",key:"xtkcd5"}]]);a.s(["ListOrdered",0,b],558648)},766248,a=>{"use strict";var b=a.i(149086),c=a.i(933596),d=a.i(983366),e=a.i(895487),f=a.i(225377),g=a.i(739096),h=a.i(353141);function i(a,b,c){return(0,h.apiPost)(`/api/v1/memory/stores/${encodeURIComponent(a)}/file-memory/${b}`,c)}function j(a,b){return i(a,"add",b)}function k(a,b){return i(a,"update",b)}function l(a,b){return i(a,"delete",b)}function m(a,b){return i(a,"version-redact",b)}function n(a){return!!(a&&a.appId&&a.tenantId&&a.agentId&&a.runId&&!Object.values(a).includes("*"))}function o(a){let b=(0,g.useDataScopeKey)(),d=(0,e.useQueryClient)();return(0,c.useMutation)({mutationFn:({memoryStoreName:b,...c})=>a(b,c),onSuccess:(a,c)=>d.invalidateQueries({queryKey:f.fileMemoryQueryKeys.root(b,c.memoryStoreName,c.scope)})})}a.s(["useAddItem",0,function(){return o(j)},"useDeleteItem",0,function(){return o(l)},"useItem",0,function(a,b,c){let e=(0,g.useDataScopeKey)(),h=c?.itemId??c?.path??"";return(0,d.useQuery)({queryKey:f.fileMemoryQueryKeys.item(e,a??"",b,h),queryFn:()=>i(a,"get",{scope:b,...c,view:"full"}),enabled:!!a&&n(b)&&!!h})},"useItemVersion",0,function(a,b,c){let e=(0,g.useDataScopeKey)();return(0,d.useQuery)({queryKey:f.fileMemoryQueryKeys.version(e,a??"",b,c??""),queryFn:()=>i(a,"version-get",{scope:b,versionId:c,view:"full"}),enabled:!!a&&n(b)&&!!c})},"useItemVersions",0,function(a,c,d,e={}){let h=(0,g.useDataScopeKey)();return(0,b.useInfiniteQuery)({queryKey:f.fileMemoryQueryKeys.versions(h,a??"",c,d??""),queryFn:({pageParam:b})=>i(a,"versions-list",{scope:c,itemId:d,...e,..."string"==typeof b?{nextToken:b}:{}}),getNextPageParam:a=>a.nextToken??void 0,initialPageParam:void 0,enabled:!!a&&n(c)&&!!d})},"useItems",0,function(a,c,d={}){let e=(0,g.useDataScopeKey)();return(0,b.useInfiniteQuery)({queryKey:f.fileMemoryQueryKeys.list(e,a??"",c,d.pathPrefix),queryFn:({pageParam:b})=>i(a,"list",{scope:c,...d.pathPrefix?{pathPrefix:d.pathPrefix}:{},...void 0!==d.depth?{depth:d.depth}:{},...d.view?{view:d.view}:{},...d.limit?{limit:d.limit}:{},..."string"==typeof b?{nextToken:b}:{}}),getNextPageParam:a=>a.nextToken??void 0,initialPageParam:void 0,enabled:!1!==d.enabled&&!!a&&n(c)})},"useRedactItemVersion",0,function(){return o(m)},"useUpdateItem",0,function(){return o(k)}],766248)},701187,a=>{"use strict";var b=a.i(634020),c=a.i(971938),d=a.i(637102),e=a.i(219974),f=a.i(881619),g=a.i(470535),h=a.i(543320),i=a.i(364565);function j(a){let b=a.trim().normalize("NFC");return`/${b.replace(/^\/+/,"")}`}a.s(["FileEditor",0,function({path:a,content:j,dirty:k,readOnly:l,loading:m,error:n,conflict:o,onChange:p}){let{t:q}=(0,h.useI18n)(),r=(0,c.useMemo)(()=>new TextEncoder().encode(j).byteLength,[j]);return a?m?(0,b.jsxs)("div",{className:"flex h-full items-center justify-center gap-2 text-sm text-muted-foreground",children:[(0,b.jsx)(f.Loader2,{className:"h-4 w-4 animate-spin"}),q("common.loading")]}):n?(0,b.jsx)("div",{className:"flex h-full items-center justify-center p-8 text-sm text-[hsl(var(--destructive))]",children:q("memory.files.readFailed",{error:n})}):(0,b.jsxs)("div",{className:"flex h-full min-h-0 flex-col",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between border-b border-[hsl(var(--border))] px-3 py-2",children:[(0,b.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[(0,b.jsx)(e.FileText,{className:"h-4 w-4 shrink-0 text-[hsl(var(--primary))]"}),(0,b.jsx)("span",{className:"truncate font-mono text-xs",title:a,children:a}),k?(0,b.jsx)("span",{className:"shrink-0 rounded-full bg-amber-500/15 px-2 py-0.5 text-[10px] font-medium text-amber-700 dark:text-amber-300",children:q("memory.files.unsaved")}):null]}),(0,b.jsx)("span",{className:(0,i.cn)("shrink-0 text-[10px] text-muted-foreground",r>102400&&"text-[hsl(var(--destructive))]"),children:q("memory.files.byteCount",{count:r,limit:102400})})]}),o?(0,b.jsxs)("div",{className:"flex items-start gap-2 border-b border-amber-500/30 bg-amber-500/10 px-3 py-2 text-xs text-amber-800 dark:text-amber-200",children:[(0,b.jsx)(d.AlertTriangle,{className:"mt-0.5 h-3.5 w-3.5 shrink-0"}),(0,b.jsx)("span",{children:q("memory.files.versionConflict")})]}):null,(0,b.jsx)(g.Textarea,{"aria-label":q("memory.files.editorLabel"),value:j,onChange:a=>p(a.target.value),readOnly:l,spellCheck:!1,className:"min-h-0 flex-1 resize-none rounded-none border-0 bg-transparent p-4 font-mono text-xs leading-5 shadow-none focus-visible:ring-0",placeholder:q("memory.files.editorPlaceholder")})]}):(0,b.jsxs)("div",{className:"flex h-full flex-col items-center justify-center gap-2 p-8 text-center text-muted-foreground",children:[(0,b.jsx)(e.FileText,{className:"h-9 w-9 opacity-30"}),(0,b.jsx)("p",{className:"text-sm",children:q("memory.files.selectFile")})]})},"normalizeFileMemoryPath",0,j,"validateFileMemoryContent",0,function(a){return new TextEncoder().encode(a).byteLength>102400?"content-too-large":null},"validateFileMemoryPath",0,function(a){let b=j(a);if("/"===b)return"path-required";let c=b.slice(1).split("/");return b.includes("\\")||b.includes("\0")||c.some(a=>!a||"."===a||".."===a)?"path-traversal":new TextEncoder().encode(b).byteLength>1024?"path-too-large":null}])}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=_0kaclzw._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[16772,a=>{"use strict";let b=(0,a.i(750053).default)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);a.s(["Copy",0,b],16772)},310215,a=>{"use strict";var b=a.i(634020);a.s(["EmptyState",0,function({icon:a,title:c,description:d,action:e,illustration:f}){return(0,b.jsxs)("div",{className:"flex flex-col items-center justify-center py-16 px-4 text-center",children:[f??(0,b.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,b.jsx)(a,{className:"text-primary",size:36,strokeWidth:1.75})}),(0,b.jsx)("h3",{className:"mb-2 text-base font-semibold text-foreground",children:c}),(0,b.jsx)("p",{className:"mb-6 max-w-sm text-sm text-muted-foreground",children:d}),e&&(0,b.jsx)("div",{children:e})]})}])},473524,a=>{"use strict";var b=a.i(634020),c=a.i(971938),d=a.i(364565);let e=c.forwardRef(({className:a,...c},e)=>(0,b.jsx)("div",{ref:e,className:(0,d.cn)("rounded-lg border border-[hsl(var(--border))] bg-[hsl(var(--card))] text-[hsl(var(--card-foreground))] shadow-sm",a),...c}));e.displayName="Card";let f=c.forwardRef(({className:a,...c},e)=>(0,b.jsx)("div",{ref:e,className:(0,d.cn)("flex flex-col space-y-1 px-5 pt-5 pb-3 border-b border-[hsl(var(--border-light))]",a),...c}));f.displayName="CardHeader";let g=c.forwardRef(({className:a,...c},e)=>(0,b.jsx)("div",{ref:e,className:(0,d.cn)("text-base font-semibold leading-tight",a),...c}));g.displayName="CardTitle";let h=c.forwardRef(({className:a,...c},e)=>(0,b.jsx)("div",{ref:e,className:(0,d.cn)("text-sm text-[hsl(var(--muted-foreground))]",a),...c}));h.displayName="CardDescription";let i=c.forwardRef(({className:a,...c},e)=>(0,b.jsx)("div",{ref:e,className:(0,d.cn)("px-5 py-4",a),...c}));i.displayName="CardContent";let j=c.forwardRef(({className:a,...c},e)=>(0,b.jsx)("div",{ref:e,className:(0,d.cn)("flex items-center px-5 py-3 border-t border-[hsl(var(--border-light))]",a),...c}));j.displayName="CardFooter";let k=c.forwardRef(({className:a,...c},e)=>(0,b.jsx)("div",{ref:e,className:(0,d.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",a),...c}));k.displayName="CardInteractive",a.s(["Card",0,e,"CardContent",0,i,"CardDescription",0,h,"CardFooter",0,j,"CardHeader",0,f,"CardInteractive",0,k,"CardTitle",0,g])},350681,a=>{"use strict";var b=a.i(634020),c=a.i(971938),d=a.i(48972),e=a.i(559653),f=a.i(268189),g=a.i(484694),h=a.i(483370),i=a.i(274974),j=a.i(420251),k=a.i(866394),l=a.i(558036),m=a.i(917021),n=["PageUp","PageDown"],o=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],p={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},q="Slider",[r,s,t]=(0,m.createCollection)(q),[u,v]=(0,g.createContextScope)(q,[t]),[w,x]=u(q),y=c.forwardRef((a,f)=>{let{name:g,min:i=0,max:j=100,step:k=1,orientation:l="horizontal",disabled:m=!1,minStepsBetweenThumbs:p=0,defaultValue:q=[i],value:s,onValueChange:t=()=>{},onValueCommit:u=()=>{},inverted:v=!1,form:x,...y}=a,z=c.useRef(new Set),A=c.useRef(0),D="horizontal"===l,[E=[],F]=(0,h.useControllableState)({prop:s,defaultProp:q,onChange:a=>{let b=[...z.current];b[A.current]?.focus(),t(a)}}),G=c.useRef(E);function H(a,b,{commit:c}={commit:!1}){let e,f=(String(k).split(".")[1]||"").length,g=Math.round((Math.round((a-i)/k)*k+i)*(e=Math.pow(10,f)))/e,h=(0,d.clamp)(g,[i,j]);F((a=[])=>{let d=function(a=[],b,c){let d=[...a];return d[c]=b,d.sort((a,b)=>a-b)}(a,h,b);if(!function(a,b){if(b>0)return Math.min(...a.slice(0,-1).map((b,c)=>a[c+1]-b))>=b;return!0}(d,p*k))return a;{A.current=d.indexOf(h);let b=String(d)!==String(a);return b&&c&&u(d),b?d:a}})}return(0,b.jsx)(w,{scope:a.__scopeSlider,name:g,disabled:m,min:i,max:j,valueIndexToChangeRef:A,thumbs:z.current,values:E,orientation:l,form:x,children:(0,b.jsx)(r.Provider,{scope:a.__scopeSlider,children:(0,b.jsx)(r.Slot,{scope:a.__scopeSlider,children:(0,b.jsx)(D?B:C,{"aria-disabled":m,"data-disabled":m?"":void 0,...y,ref:f,onPointerDown:(0,e.composeEventHandlers)(y.onPointerDown,()=>{m||(G.current=E)}),min:i,max:j,inverted:v,onSlideStart:m?void 0:function(a){let b=function(a,b){if(1===a.length)return 0;let c=a.map(a=>Math.abs(a-b)),d=Math.min(...c);return c.indexOf(d)}(E,a);H(a,b)},onSlideMove:m?void 0:function(a){H(a,A.current)},onSlideEnd:m?void 0:function(){let a=G.current[A.current];E[A.current]!==a&&u(E)},onHomeKeyDown:()=>!m&&H(i,0,{commit:!0}),onEndKeyDown:()=>!m&&H(j,E.length-1,{commit:!0}),onStepKeyDown:({event:a,direction:b})=>{if(!m){let c=n.includes(a.key)||a.shiftKey&&o.includes(a.key),d=A.current;H(E[d]+k*(c?10:1)*b,d,{commit:!0})}}})})})})});y.displayName=q;var[z,A]=u(q,{startEdge:"left",endEdge:"right",size:"width",direction:1}),B=c.forwardRef((a,d)=>{let{min:e,max:g,dir:h,inverted:j,onSlideStart:k,onSlideMove:l,onSlideEnd:m,onStepKeyDown:n,...o}=a,[q,r]=c.useState(null),s=(0,f.useComposedRefs)(d,a=>r(a)),t=c.useRef(void 0),u=(0,i.useDirection)(h),v="ltr"===u,w=v&&!j||!v&&j;function x(a){let b=t.current||q.getBoundingClientRect(),c=N([0,b.width],w?[e,g]:[g,e]);return t.current=b,c(a-b.left)}return(0,b.jsx)(z,{scope:a.__scopeSlider,startEdge:w?"left":"right",endEdge:w?"right":"left",direction:w?1:-1,size:"width",children:(0,b.jsx)(D,{dir:u,"data-orientation":"horizontal",...o,ref:s,style:{...o.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:a=>{let b=x(a.clientX);k?.(b)},onSlideMove:a=>{let b=x(a.clientX);l?.(b)},onSlideEnd:()=>{t.current=void 0,m?.()},onStepKeyDown:a=>{let b=p[w?"from-left":"from-right"].includes(a.key);n?.({event:a,direction:b?-1:1})}})})}),C=c.forwardRef((a,d)=>{let{min:e,max:g,inverted:h,onSlideStart:i,onSlideMove:j,onSlideEnd:k,onStepKeyDown:l,...m}=a,n=c.useRef(null),o=(0,f.useComposedRefs)(d,n),q=c.useRef(void 0),r=!h;function s(a){let b=q.current||n.current.getBoundingClientRect(),c=N([0,b.height],r?[g,e]:[e,g]);return q.current=b,c(a-b.top)}return(0,b.jsx)(z,{scope:a.__scopeSlider,startEdge:r?"bottom":"top",endEdge:r?"top":"bottom",size:"height",direction:r?1:-1,children:(0,b.jsx)(D,{"data-orientation":"vertical",...m,ref:o,style:{...m.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:a=>{let b=s(a.clientY);i?.(b)},onSlideMove:a=>{let b=s(a.clientY);j?.(b)},onSlideEnd:()=>{q.current=void 0,k?.()},onStepKeyDown:a=>{let b=p[r?"from-bottom":"from-top"].includes(a.key);l?.({event:a,direction:b?-1:1})}})})}),D=c.forwardRef((a,c)=>{let{__scopeSlider:d,onSlideStart:f,onSlideMove:g,onSlideEnd:h,onHomeKeyDown:i,onEndKeyDown:j,onStepKeyDown:k,...m}=a,p=x(q,d);return(0,b.jsx)(l.Primitive.span,{...m,ref:c,onKeyDown:(0,e.composeEventHandlers)(a.onKeyDown,a=>{"Home"===a.key?(i(a),a.preventDefault()):"End"===a.key?(j(a),a.preventDefault()):n.concat(o).includes(a.key)&&(k(a),a.preventDefault())}),onPointerDown:(0,e.composeEventHandlers)(a.onPointerDown,a=>{let b=a.target;b.setPointerCapture(a.pointerId),a.preventDefault(),p.thumbs.has(b)?b.focus():f(a)}),onPointerMove:(0,e.composeEventHandlers)(a.onPointerMove,a=>{a.target.hasPointerCapture(a.pointerId)&&g(a)}),onPointerUp:(0,e.composeEventHandlers)(a.onPointerUp,a=>{let b=a.target;b.hasPointerCapture(a.pointerId)&&(b.releasePointerCapture(a.pointerId),h(a))})})}),E="SliderTrack",F=c.forwardRef((a,c)=>{let{__scopeSlider:d,...e}=a,f=x(E,d);return(0,b.jsx)(l.Primitive.span,{"data-disabled":f.disabled?"":void 0,"data-orientation":f.orientation,...e,ref:c})});F.displayName=E;var G="SliderRange",H=c.forwardRef((a,d)=>{let{__scopeSlider:e,...g}=a,h=x(G,e),i=A(G,e),j=c.useRef(null),k=(0,f.useComposedRefs)(d,j),m=h.values.length,n=h.values.map(a=>M(a,h.min,h.max)),o=m>1?Math.min(...n):0,p=100-Math.max(...n);return(0,b.jsx)(l.Primitive.span,{"data-orientation":h.orientation,"data-disabled":h.disabled?"":void 0,...g,ref:k,style:{...a.style,[i.startEdge]:o+"%",[i.endEdge]:p+"%"}})});H.displayName=G;var I="SliderThumb",J=c.forwardRef((a,d)=>{let e=s(a.__scopeSlider),[g,h]=c.useState(null),i=(0,f.useComposedRefs)(d,a=>h(a)),j=c.useMemo(()=>g?e().findIndex(a=>a.ref.current===g):-1,[e,g]);return(0,b.jsx)(K,{...a,ref:i,index:j})}),K=c.forwardRef((a,d)=>{var g,h,i,j,m;let n,o,{__scopeSlider:p,index:q,name:s,...t}=a,u=x(I,p),v=A(I,p),[w,y]=c.useState(null),z=(0,f.useComposedRefs)(d,a=>y(a)),B=!w||u.form||!!w.closest("form"),C=(0,k.useSize)(w),D=u.values[q],E=void 0===D?0:M(D,u.min,u.max),F=(g=q,(h=u.values.length)>2?`Value ${g+1} of ${h}`:2===h?["Minimum","Maximum"][g]:void 0),G=C?.[v.size],H=G?(i=G,j=E,m=v.direction,o=N([0,50],[0,n=i/2]),(n-o(j)*m)*m):0;return c.useEffect(()=>{if(w)return u.thumbs.add(w),()=>{u.thumbs.delete(w)}},[w,u.thumbs]),(0,b.jsxs)("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[v.startEdge]:`calc(${E}% + ${H}px)`},children:[(0,b.jsx)(r.ItemSlot,{scope:a.__scopeSlider,children:(0,b.jsx)(l.Primitive.span,{role:"slider","aria-label":a["aria-label"]||F,"aria-valuemin":u.min,"aria-valuenow":D,"aria-valuemax":u.max,"aria-orientation":u.orientation,"data-orientation":u.orientation,"data-disabled":u.disabled?"":void 0,tabIndex:u.disabled?void 0:0,...t,ref:z,style:void 0===D?{display:"none"}:a.style,onFocus:(0,e.composeEventHandlers)(a.onFocus,()=>{u.valueIndexToChangeRef.current=q})})}),B&&(0,b.jsx)(L,{name:s??(u.name?u.name+(u.values.length>1?"[]":""):void 0),form:u.form,value:D},q)]})});J.displayName=I;var L=c.forwardRef(({__scopeSlider:a,value:d,...e},g)=>{let h=c.useRef(null),i=(0,f.useComposedRefs)(h,g),k=(0,j.usePrevious)(d);return c.useEffect(()=>{let a=h.current;if(!a)return;let b=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value").set;if(k!==d&&b){let c=new Event("input",{bubbles:!0});b.call(a,d),a.dispatchEvent(c)}},[k,d]),(0,b.jsx)(l.Primitive.input,{style:{display:"none"},...e,ref:i,defaultValue:d})});function M(a,b,c){return(0,d.clamp)(100/(c-b)*(a-b),[0,100])}function N(a,b){return c=>{if(a[0]===a[1]||b[0]===b[1])return b[0];let d=(b[1]-b[0])/(a[1]-a[0]);return b[0]+d*(c-a[0])}}L.displayName="RadioBubbleInput";var O=a.i(364565);let P=c.forwardRef(({className:a,...c},d)=>(0,b.jsxs)(y,{ref:d,className:(0,O.cn)("relative flex w-full touch-none select-none items-center",a),...c,children:[(0,b.jsx)(F,{className:"relative h-1.5 w-full grow overflow-hidden rounded-full bg-[hsl(var(--muted))]",children:(0,b.jsx)(H,{className:"absolute h-full bg-[hsl(var(--primary))]"})}),(0,b.jsx)(J,{className:"block h-4 w-4 rounded-full border border-[hsl(var(--primary))] bg-[hsl(var(--background))] shadow-sm ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"})]}));P.displayName=y.displayName,a.s(["Slider",0,P],350681)},99947,a=>{"use strict";let b=(0,a.i(750053).default)("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]]);a.s(["Upload",0,b],99947)},199016,a=>{"use strict";var b=a.i(634020),c=a.i(971938),d=a.i(71562),e=a.i(771071),f=a.i(53520),g=a.i(750053);let h=(0,g.default)("code-xml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]);var i=a.i(16772);let j=(0,g.default)("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);var k=a.i(160318),l=a.i(99947),m=a.i(414151),n=a.i(263265),o=a.i(776192),p=a.i(172518),q=a.i(692942),r=a.i(84252),s=a.i(434841),t=a.i(436965),u=a.i(418236),v=a.i(493078),w=a.i(543320),x=a.i(15325);function y(a,b,c){let d=(0,v.assembleRetrievalConfiguration)(b,void 0)??{};c&&(d.filter=c);let e={knowledgeBaseName:a,retrievalQuery:"IMAGE"===b.queryType&&b.imageInput?{type:"IMAGE",imageBase64:b.imageInput,...b.query?{text:b.query}:{}}:{type:"TEXT",text:b.query??""}};return b.subspace?.length&&(e.subspace=b.subspace),Object.keys(d).length>0&&(e.retrievalConfiguration=d),e}function z(a,b){let c=b?.retrievalConfiguration?.searchType??["DENSE_VECTOR"],d=b?.retrievalConfiguration?.rerankingConfiguration,e=b?.retrievalConfiguration?.denseVectorSearchConfiguration,f=b?.retrievalConfiguration?.fullTextSearchConfiguration,g=d?.rrfConfiguration,h=d?.weightConfiguration,i=d?.modelConfiguration,j=c.includes("DENSE_VECTOR")&&c.includes("FULL_TEXT"),k=d?.type==="RRF"||d?.type==="WEIGHT"?j?d.type:"MODEL":d?.type==="MODEL"?"MODEL":"WEIGHT",l=e?.numberOfResults??d?.numberOfResults??20,m=f?.numberOfResults??d?.numberOfResults??20,n=d?.numberOfResults??20;return{knowledgeBaseName:a,queryType:"TEXT",query:"",imageInput:"",subspace:[],topK:n,denseTopK:l,fullTextTopK:m,rerankTopK:n,searchType:c,rerankType:k,rrfK:g?.k??60,rrfDenseWeight:g?.denseVectorSearchWeight??.5,rrfFullTextWeight:g?.fullTextSearchWeight??.5,weightDense:h?.denseVectorSearchWeight??.5,weightFullText:h?.fullTextSearchWeight??.5,modelProvider:i?.provider??"bailian",modelName:i?.model??"gte-rerank-v2"}}function A({buildRequestJson:a}){let{t:d}=(0,w.useI18n)(),[e,g]=(0,c.useState)(!1),[j,k]=(0,c.useState)(!1),l=e?JSON.stringify(a(),null,2):"",m=async()=>{try{await navigator.clipboard.writeText(l),k(!0),n.toast.success(d("retrieval.form.copiedRequestBody")),setTimeout(()=>k(!1),1500)}catch{n.toast.error(d("retrieval.form.copyFailed"))}};return(0,b.jsxs)(r.Popover,{open:e,onOpenChange:g,children:[(0,b.jsx)(s.TooltipProvider,{delayDuration:200,children:(0,b.jsxs)(s.Tooltip,{children:[(0,b.jsx)(s.TooltipTrigger,{asChild:!0,children:(0,b.jsx)(r.PopoverTrigger,{asChild:!0,children:(0,b.jsx)(o.Button,{type:"button",variant:"ghost",size:"icon",className:"h-7 w-7 text-[hsl(var(--muted-foreground))] hover:text-[hsl(var(--foreground))]","aria-label":d("retrieval.form.viewRequestBody"),children:(0,b.jsx)(h,{className:"h-3.5 w-3.5"})})})}),(0,b.jsx)(s.TooltipContent,{side:"left",children:d("retrieval.form.viewCopyRequestBody")})]})}),(0,b.jsxs)(r.PopoverContent,{align:"end",sideOffset:6,className:"w-[420px] max-w-[90vw] p-0",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between border-b border-[hsl(var(--border-light))] px-3 py-2",children:[(0,b.jsx)("span",{className:"text-xs font-semibold text-[hsl(var(--foreground))]",children:d("retrieval.form.requestBodyPreview")}),(0,b.jsx)(o.Button,{type:"button",variant:"ghost",size:"sm",className:"h-6 gap-1 px-2 text-xs",onClick:m,children:j?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(f.Check,{className:"h-3 w-3"})," ",d("retrieval.form.copied")]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(i.Copy,{className:"h-3 w-3"})," ",d("retrieval.form.copy")]})})]}),(0,b.jsx)("pre",{className:"max-h-80 overflow-auto px-3 py-2 font-mono text-[11px] leading-snug text-[hsl(var(--foreground))]",children:l})]})]})}a.s(["RetrievalForm",0,function({knowledgeBaseName:a,knowledgeBase:f,onSubmit:g,isLoading:h}){let{t:i}=(0,w.useI18n)(),r=(0,c.useRef)(null),s=(0,c.useRef)(null),[v,B]=(0,c.useState)(""),[C,D]=(0,c.useState)(!1),E=(0,d.useForm)({resolver:(0,e.zodResolver)(x.retrievalSchema),defaultValues:z(a,f)}),F=f?.multimodal===!0,G=E.watch("queryType")??"TEXT",H=F?G:"TEXT";return(0,b.jsx)(q.Form,{...E,children:(0,b.jsxs)("form",{onSubmit:E.handleSubmit(function(b){g(y(a,b,r.current?.getFilter()))}),className:"space-y-5",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,b.jsx)("h3",{className:"text-base font-semibold",children:i("retrieval.form.title")}),(0,b.jsx)(A,{buildRequestJson:()=>y(a,E.getValues(),r.current?.getFilter())})]}),F&&(0,b.jsx)(q.FormField,{control:E.control,name:"queryType",render:({field:a})=>(0,b.jsxs)(q.FormItem,{children:[(0,b.jsx)(q.FormLabel,{children:i("retrieval.form.queryType")}),(0,b.jsx)(q.FormControl,{children:(0,b.jsxs)(t.ToggleGroup,{type:"single",value:a.value??"TEXT",onValueChange:b=>{b&&b!==a.value&&(a.onChange(b),E.setValue("query",""),E.setValue("imageInput",""))},className:"grid w-full grid-cols-2 gap-0 overflow-hidden rounded-lg border border-border bg-[hsl(var(--muted)/0.4)] p-0 sm:max-w-md",children:[(0,b.jsx)(t.ToggleGroupItem,{value:"TEXT",className:"h-9",children:"TEXT"}),(0,b.jsx)(t.ToggleGroupItem,{value:"IMAGE",className:"h-9",children:"IMAGE"})]})})]})}),"TEXT"===H?(0,b.jsx)(q.FormField,{control:E.control,name:"query",render:({field:a})=>(0,b.jsxs)(q.FormItem,{children:[(0,b.jsx)(q.FormLabel,{children:i("retrieval.form.queryContent")}),(0,b.jsx)(q.FormControl,{children:(0,b.jsxs)("div",{className:"relative",children:[(0,b.jsx)(k.Search,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-[hsl(var(--muted-foreground))]"}),(0,b.jsx)(p.Input,{placeholder:i("retrieval.form.queryPlaceholder"),className:"pl-9",maxLength:128,...a})]})}),(0,b.jsx)(q.FormMessage,{})]})}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(q.FormField,{control:E.control,name:"imageInput",render:({field:a})=>{let c=["image/jpeg","image/png","image/webp","image/bmp","image/tiff"],d=b=>{if(!c.includes(b.type))return void n.toast.error(i("retrieval.form.unsupportedFormat"));let d=new FileReader;d.onload=()=>{a.onChange(d.result),B(b.name||"pasted-image")},d.onerror=()=>{n.toast.error(i("retrieval.form.imageReadFailed"))},d.readAsDataURL(b)};return(0,b.jsxs)(q.FormItem,{children:[(0,b.jsx)(q.FormLabel,{children:i("retrieval.form.imageInput")}),(0,b.jsx)(q.FormControl,{children:(0,b.jsxs)("div",{onPaste:a=>{let b=a.clipboardData?.items;if(b){for(let c of Array.from(b))if(c.type.startsWith("image/")){a.preventDefault();let b=c.getAsFile();b&&d(b);return}}},tabIndex:0,className:"outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 rounded-md",children:[(0,b.jsx)("input",{ref:s,type:"file",accept:"image/jpeg,image/png,image/webp,image/bmp,image/tiff",className:"hidden",onChange:a=>{let b=a.target.files?.[0];b&&d(b)}}),a.value?(0,b.jsxs)("div",{className:"group border border-border rounded-md overflow-hidden",children:[(0,b.jsxs)("div",{className:"relative flex justify-center bg-muted/30 p-3",children:[(0,b.jsx)("img",{src:a.value,alt:i("retrieval.form.selectedImageAlt"),className:"max-h-[200px] max-w-full rounded object-contain"}),(0,b.jsxs)("div",{className:"absolute inset-0 bg-black/40 opacity-0 group-hover:opacity-100 transition-opacity flex items-center justify-center gap-3",children:[(0,b.jsxs)("button",{type:"button",onClick:()=>s.current?.click(),className:"px-3 py-1.5 rounded bg-white/90 text-sm font-medium text-foreground hover:bg-white flex items-center gap-1.5",children:[(0,b.jsx)(l.Upload,{className:"w-3.5 h-3.5"}),i("retrieval.form.reselect")]}),(0,b.jsxs)("button",{type:"button",onClick:()=>{a.onChange(""),B(""),s.current&&(s.current.value="")},className:"px-3 py-1.5 rounded bg-white/90 text-sm font-medium text-destructive hover:bg-white flex items-center gap-1.5",children:[(0,b.jsx)(m.X,{className:"w-3.5 h-3.5"}),i("retrieval.form.remove")]})]})]}),(0,b.jsxs)("div",{className:"px-3 py-2 border-t border-border flex items-center gap-2 text-sm text-muted-foreground",children:[(0,b.jsx)(j,{className:"w-3.5 h-3.5"}),(0,b.jsx)("span",{className:"truncate",children:v})]})]}):(0,b.jsxs)("div",{onClick:()=>s.current?.click(),onDragOver:a=>{a.preventDefault(),D(!0)},onDragLeave:()=>D(!1),onDrop:a=>{a.preventDefault(),D(!1);let b=a.dataTransfer.files[0];b&&d(b)},className:`border-2 border-dashed rounded-lg p-8 flex flex-col items-center gap-3 cursor-pointer transition-colors ${C?"border-primary bg-accent/50":"border-border hover:border-primary/50 hover:bg-accent/50"}`,children:[(0,b.jsx)(l.Upload,{className:"w-8 h-8 text-muted-foreground"}),(0,b.jsx)("p",{className:"text-sm text-muted-foreground",children:i("retrieval.form.dropImageHere")}),(0,b.jsx)("p",{className:"text-xs text-muted-foreground/70",children:i("retrieval.form.supportedFormats")})]})]},G)}),(0,b.jsx)(q.FormMessage,{})]})}}),(0,b.jsx)(q.FormField,{control:E.control,name:"query",render:({field:a})=>(0,b.jsxs)(q.FormItem,{children:[(0,b.jsx)(q.FormLabel,{children:i("retrieval.form.supplementaryText")}),(0,b.jsx)(q.FormControl,{children:(0,b.jsx)(p.Input,{placeholder:i("retrieval.form.supplementaryPlaceholder"),maxLength:128,...a})}),(0,b.jsx)(q.FormMessage,{})]})})]}),(0,b.jsx)(u.RetrievalParamsFields,{form:E,knowledgeBase:f,filterRef:r}),(0,b.jsxs)(o.Button,{type:"submit",disabled:h,className:"w-full",children:[(0,b.jsx)(k.Search,{className:"mr-2 h-4 w-4"}),h?i("retrieval.form.searching"):i("retrieval.form.execute")]})]})})},"assembleRetrievalRequest",0,y,"retrievalDefaultsFromKB",0,z],199016)},325535,a=>{"use strict";var b=a.i(634020),c=a.i(971938),d=a.i(880470),e=a.i(263265),f=a.i(604395),g=a.i(99443),h=a.i(133280),i=a.i(933596),j=a.i(353141);async function k(a){let{knowledgeBaseName:b,...c}=a;return(0,j.apiPost)(`/api/v1/knowledge-bases/${encodeURIComponent(b)}/retrieve`,c)}var l=a.i(199016);let m=(0,a.i(750053).default)("file-search",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["circle",{cx:"11.5",cy:"14.5",r:"2.5",key:"1bq0ko"}],["path",{d:"M13.3 16.3 15 18",key:"2quom7"}]]);var n=a.i(310215),o=a.i(473524),p=a.i(521989),q=a.i(843836),r=a.i(867558),s=a.i(543320),t=a.i(364565);function u({result:a,rank:d}){let{t:e}=(0,s.useI18n)(),[f,g]=(0,c.useState)(null),h=a.ossKey?(0,t.extractFileName)(a.ossKey):e("retrieval.common.unknownFile"),i=a.chunkType?.toLowerCase()==="image",j=a.imageBase64?a.imageBase64.startsWith("data:")?a.imageBase64:`${r.IMAGE_FALLBACK_DATA_PREFIX}${a.imageBase64}`:void 0;return(0,b.jsxs)(o.Card,{className:"transition-shadow hover:shadow-sm",children:[(0,b.jsxs)(o.CardContent,{className:"p-4 space-y-3",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)("span",{className:"flex h-6 w-6 items-center justify-center rounded-full bg-[hsl(var(--primary-50))] text-xs font-semibold text-primary",children:d}),(0,b.jsx)(p.Badge,{variant:"outline",className:"font-mono text-xs",children:a.score.toFixed(4)}),a.chunkType&&(0,b.jsx)(p.Badge,{variant:i?"default":"secondary",className:"text-xs",children:a.chunkType.toUpperCase()})]}),a.subspace&&(0,b.jsx)(p.Badge,{variant:"secondary",className:"text-xs",children:a.subspace})]}),(0,b.jsxs)("div",{className:"flex items-center gap-3 text-xs text-muted-foreground",children:[(0,b.jsx)("span",{className:"font-medium text-foreground",children:h}),(0,b.jsxs)("span",{children:["Chunk #",a.chunkId]})]}),i&&a.imageBase64&&j&&(0,b.jsx)("img",{src:j,alt:e("retrieval.results.resultImageAlt"),className:"max-w-[200px] rounded-md cursor-pointer hover:opacity-80 transition-opacity",onClick:()=>g(j)}),a.content&&(0,b.jsx)("p",{className:`leading-relaxed text-foreground/90 whitespace-pre-wrap ${i?"text-xs":"text-sm line-clamp-6"}`,children:a.content}),a.metadata&&Object.keys(a.metadata).length>0&&(0,b.jsx)("div",{className:"flex flex-wrap gap-1.5 pt-1",children:Object.entries(a.metadata).map(([a,c])=>(0,b.jsxs)(p.Badge,{variant:"secondary",className:"text-xs font-normal",children:[a,": ",String(c)]},a))})]}),(0,b.jsx)(q.Dialog,{open:!!f,onOpenChange:()=>g(null),children:(0,b.jsxs)(q.DialogContent,{className:"max-w-[90vw] max-h-[90vh] p-2 flex items-center justify-center border-none bg-black/90 data-[state=open]:animate-none data-[state=closed]:animate-none duration-0",children:[(0,b.jsx)(q.DialogTitle,{className:"sr-only",children:e("retrieval.common.imageZoomTitle")}),f&&(0,b.jsx)("img",{src:f,alt:e("retrieval.common.imageZoomAlt"),className:"max-w-full max-h-[85vh] object-contain"})]})})]})}function v({results:a,elapsedMs:c}){let{t:d}=(0,s.useI18n)();return null===a?null:0===a.length?(0,b.jsx)(n.EmptyState,{icon:m,title:d("retrieval.results.noResultsTitle"),description:d("retrieval.results.noResultsDesc")}):(0,b.jsxs)("div",{className:"space-y-4",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,b.jsx)("span",{children:d("retrieval.results.count",{count:a.length})}),void 0!==c&&(0,b.jsxs)("span",{children:["· ",d("retrieval.results.elapsed",{ms:c})]})]}),(0,b.jsx)("div",{className:"space-y-3",children:a.map((a,c)=>(0,b.jsx)(u,{result:a,rank:c+1},`${a.docId}-${a.chunkId}`))})]})}a.s(["default",0,function(){let a=decodeURIComponent((0,d.useParams)().name),{data:j,isLoading:m}=(0,h.useKnowledgeBase)(a),n=(0,i.useMutation)({mutationFn:a=>k(a)}),{t:o}=(0,s.useI18n)(),[p,q]=(0,c.useState)(null),[r,t]=(0,c.useState)(),u=(0,c.useCallback)(async a=>{let b=Date.now();try{let c=await n.mutateAsync(a);q(c.retrievalResults),t(Date.now()-b)}catch(b){let a=b instanceof Error?b.message:o("common.unknownError");e.toast.error(a)}},[n,o]);return m?(0,b.jsxs)("div",{className:"space-y-4",children:[(0,b.jsx)(f.Skeleton,{className:"h-8 w-48"}),(0,b.jsx)(f.Skeleton,{className:"h-64 w-full"})]}):(0,b.jsx)(g.WorkbenchLayout,{asideWidth:400,aside:(0,b.jsx)(l.RetrievalForm,{knowledgeBaseName:a,knowledgeBase:j??void 0,onSubmit:u,isLoading:n.isPending}),children:(0,b.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto px-7 py-5 max-md:px-4",children:(0,b.jsx)(v,{results:p,elapsedMs:r})})})}],325535)}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=_0lstkpb._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[470535,a=>{"use strict";var b=a.i(634020),c=a.i(971938),d=a.i(364565);let e=c.forwardRef(({className:a,...c},e)=>(0,b.jsx)("textarea",{className:(0,d.cn)("flex min-h-[64px] w-full rounded-md border border-[hsl(var(--border))] bg-[hsl(var(--card))] px-3 py-2 text-sm transition-colors","placeholder:text-[hsl(var(--subtle))]","focus-visible:outline-none focus-visible:border-[hsl(var(--primary))] focus-visible:ring-2 focus-visible:ring-[hsl(var(--primary)/0.2)] focus-visible:ring-offset-0","disabled:cursor-not-allowed disabled:bg-[hsl(var(--secondary))] disabled:text-[hsl(var(--muted-foreground))]",a),ref:e,...c}));e.displayName="Textarea",a.s(["Textarea",0,e])},1078,a=>{"use strict";let b=(0,a.i(750053).default)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]);a.s(["Sparkles",0,b],1078)},607378,a=>{"use strict";var b=a.i(971938);let c=null;function d(){return null!==c?c:(c=!1,!1)}function e(a){return()=>{}}function f(){return d()}function g(){return!1}a.s(["useSidebarCollapsed",0,function(){let a=(0,b.useSyncExternalStore)(e,f,g),h=(0,b.useCallback)(a=>{c=a;try{window.localStorage.setItem("sidebar.collapsed",a?"1":"0")}catch{}window.dispatchEvent(new CustomEvent("sidebar-collapsed-change",{detail:a}))},[]),i=(0,b.useCallback)(()=>{h(!d())},[h]);return{collapsed:a,setCollapsed:h,toggle:i}}])},933596,a=>{"use strict";var b=a.i(971938),c=a.i(391862),d=a.i(564339),e=a.i(956241),f=a.i(35686),g=class extends e.Subscribable{#a;#b=void 0;#c;#d;constructor(a,b){super(),this.#a=a,this.setOptions(b),this.bindMethods(),this.#e()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(a){let b=this.options;this.options=this.#a.defaultMutationOptions(a),(0,f.shallowEqualObjects)(this.options,b)||this.#a.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#c,observer:this}),b?.mutationKey&&this.options.mutationKey&&(0,f.hashKey)(b.mutationKey)!==(0,f.hashKey)(this.options.mutationKey)?this.reset():this.#c?.state.status==="pending"&&this.#c.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#c?.removeObserver(this)}onMutationUpdate(a){this.#e(),this.#f(a)}getCurrentResult(){return this.#b}reset(){this.#c?.removeObserver(this),this.#c=void 0,this.#e(),this.#f()}mutate(a,b){return this.#d=b,this.#c?.removeObserver(this),this.#c=this.#a.getMutationCache().build(this.#a,this.options),this.#c.addObserver(this),this.#c.execute(a)}#e(){let a=this.#c?.state??(0,c.getDefaultState)();this.#b={...a,isPending:"pending"===a.status,isSuccess:"success"===a.status,isError:"error"===a.status,isIdle:"idle"===a.status,mutate:this.mutate,reset:this.reset}}#f(a){d.notifyManager.batch(()=>{if(this.#d&&this.hasListeners()){let b=this.#b.variables,c=this.#b.context,d={client:this.#a,meta:this.options.meta,mutationKey:this.options.mutationKey};if(a?.type==="success"){try{this.#d.onSuccess?.(a.data,b,c,d)}catch(a){Promise.reject(a)}try{this.#d.onSettled?.(a.data,null,b,c,d)}catch(a){Promise.reject(a)}}else if(a?.type==="error"){try{this.#d.onError?.(a.error,b,c,d)}catch(a){Promise.reject(a)}try{this.#d.onSettled?.(void 0,a.error,b,c,d)}catch(a){Promise.reject(a)}}}this.listeners.forEach(a=>{a(this.#b)})})}},h=a.i(895487);a.s(["useMutation",0,function(a,c){let e=(0,h.useQueryClient)(c),[i]=b.useState(()=>new g(e,a));b.useEffect(()=>{i.setOptions(a)},[i,a]);let j=b.useSyncExternalStore(b.useCallback(a=>i.subscribe(d.notifyManager.batchCalls(a)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),k=b.useCallback((a,b)=>{i.mutate(a,b).catch(f.noop)},[i]);if(j.error&&(0,f.shouldThrowError)(i.options.throwOnError,[j.error]))throw j.error;return{...j,mutate:k,mutateAsync:j.mutate}}],933596)},598909,(a,b,c)=>{"use strict";let d;Object.defineProperty(c,"__esModule",{value:!0});var e={getAssetToken:function(){return i},getAssetTokenQuery:function(){return j},getDeploymentId:function(){return g},getDeploymentIdQuery:function(){return h}};for(var f in e)Object.defineProperty(c,f,{enumerable:!0,get:e[f]});function g(){return d}function h(a=!1){return d?`${a?"&":"?"}dpl=${d}`:""}function i(){return!1}function j(a=!1){return""}d=void 0},907704,a=>{"use strict";let b=(0,a.i(750053).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);a.s(["ChevronRight",0,b],907704)},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])},123028,a=>{"use strict";let b=(0,a.i(750053).default)("database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);a.s(["Database",0,b],123028)},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)},935850,a=>{"use strict";var b=a.i(971938),c=a.i(543320);a.s(["useLocaleRevalidation",0,function(a){let{locale:d}=(0,c.useI18n)(),e=(0,b.useRef)(d);(0,b.useEffect)(()=>{if(d===e.current)return;e.current=d;let b=Object.keys(a.formState.errors);0!==b.length&&a.trigger(b)},[d])}])},16038,a=>{"use strict";var b=a.i(634020),c=a.i(971938),d=a.i(559653),e=a.i(484694),f=a.i(356620),g=a.i(798392),h=a.i(558036),i=a.i(274974),j=a.i(483370),k=a.i(359231),l="Tabs",[m,n]=(0,e.createContextScope)(l,[f.createRovingFocusGroupScope]),o=(0,f.createRovingFocusGroupScope)(),[p,q]=m(l),r=c.forwardRef((a,c)=>{let{__scopeTabs:d,value:e,onValueChange:f,defaultValue:g,orientation:m="horizontal",dir:n,activationMode:o="automatic",...q}=a,r=(0,i.useDirection)(n),[s,t]=(0,j.useControllableState)({prop:e,onChange:f,defaultProp:g??"",caller:l});return(0,b.jsx)(p,{scope:d,baseId:(0,k.useId)(),value:s,onValueChange:t,orientation:m,dir:r,activationMode:o,children:(0,b.jsx)(h.Primitive.div,{dir:r,"data-orientation":m,...q,ref:c})})});r.displayName=l;var s="TabsList",t=c.forwardRef((a,c)=>{let{__scopeTabs:d,loop:e=!0,...g}=a,i=q(s,d),j=o(d);return(0,b.jsx)(f.Root,{asChild:!0,...j,orientation:i.orientation,dir:i.dir,loop:e,children:(0,b.jsx)(h.Primitive.div,{role:"tablist","aria-orientation":i.orientation,...g,ref:c})})});t.displayName=s;var u="TabsTrigger",v=c.forwardRef((a,c)=>{let{__scopeTabs:e,value:g,disabled:i=!1,...j}=a,k=q(u,e),l=o(e),m=y(k.baseId,g),n=z(k.baseId,g),p=g===k.value;return(0,b.jsx)(f.Item,{asChild:!0,...l,focusable:!i,active:p,children:(0,b.jsx)(h.Primitive.button,{type:"button",role:"tab","aria-selected":p,"aria-controls":n,"data-state":p?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:m,...j,ref:c,onMouseDown:(0,d.composeEventHandlers)(a.onMouseDown,a=>{i||0!==a.button||!1!==a.ctrlKey?a.preventDefault():k.onValueChange(g)}),onKeyDown:(0,d.composeEventHandlers)(a.onKeyDown,a=>{[" ","Enter"].includes(a.key)&&k.onValueChange(g)}),onFocus:(0,d.composeEventHandlers)(a.onFocus,()=>{let a="manual"!==k.activationMode;p||i||!a||k.onValueChange(g)})})})});v.displayName=u;var w="TabsContent",x=c.forwardRef((a,d)=>{let{__scopeTabs:e,value:f,forceMount:i,children:j,...k}=a,l=q(w,e),m=y(l.baseId,f),n=z(l.baseId,f),o=f===l.value,p=c.useRef(o);return c.useEffect(()=>{let a=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(a)},[]),(0,b.jsx)(g.Presence,{present:i||o,children:({present:c})=>(0,b.jsx)(h.Primitive.div,{"data-state":o?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":m,hidden:!c,id:n,tabIndex:0,...k,ref:d,style:{...a.style,animationDuration:p.current?"0s":void 0},children:c&&j})})});function y(a,b){return`${a}-trigger-${b}`}function z(a,b){return`${a}-content-${b}`}x.displayName=w;var A=a.i(364565);let B=c.forwardRef(({className:a,...c},d)=>(0,b.jsx)(t,{ref:d,className:(0,A.cn)("inline-flex h-10 items-center justify-center rounded-lg border border-[hsl(var(--border))] bg-[hsl(var(--secondary))] p-1 text-muted-foreground shadow-[inset_0_1px_2px_rgba(15,23,42,0.04)]",a),...c}));B.displayName=t.displayName;let C=c.forwardRef(({className:a,...c},d)=>(0,b.jsx)(v,{ref:d,className:(0,A.cn)("inline-flex h-8 items-center justify-center gap-1.5 whitespace-nowrap rounded-md px-3.5 text-sm font-medium","ring-offset-[hsl(var(--background))] transition-all duration-150","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50","hover:text-foreground","data-[state=active]:bg-[hsl(var(--background))]","data-[state=active]:text-[hsl(var(--primary))]","data-[state=active]:shadow-[0_1px_2px_rgba(15,23,42,0.08),0_0_0_1px_hsl(var(--border))]","data-[state=active]:font-semibold",a),...c}));C.displayName=v.displayName;let D=c.forwardRef(({className:a,...c},d)=>(0,b.jsx)(x,{ref:d,className:(0,A.cn)("mt-3 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",a),...c}));D.displayName=x.displayName,a.s(["Tabs",0,r,"TabsContent",0,D,"TabsList",0,B,"TabsTrigger",0,C],16038)},998437,a=>{"use strict";let b=(0,a.i(750053).default)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);a.s(["Zap",0,b],998437)},882725,a=>{"use strict";let b=(0,a.i(750053).default)("chevrons-up-down",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]);a.s(["ChevronsUpDown",0,b],882725)},869045,a=>{"use strict";let b=(0,a.i(750053).default)("circle-question-mark",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);a.s(["HelpCircle",0,b],869045)},465173,a=>{"use strict";let b=(0,a.i(750053).default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);a.s(["ChevronLeft",0,b],465173)},688189,a=>{"use strict";let b=(0,a.i(750053).default)("message-square",[["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"}]]);a.s(["MessageSquare",0,b],688189)},310581,a=>{"use strict";let b=(0,a.i(750053).default)("settings-2",[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);a.s(["Settings2",0,b],310581)},163426,547259,a=>{"use strict";var b=a.i(750053);let c=(0,b.default)("key-round",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);a.s(["KeyRound",0,c],163426);let d=(0,b.default)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);a.s(["Lock",0,d],547259)},421184,173575,a=>{"use strict";var b=a.i(634020),c=a.i(843836),d=a.i(947161),e=a.i(128974),f=a.i(543320),g=a.i(419446);a.s(["ConnectInstanceDialog",0,function({open:a,onOpenChange:h,onSuccess:i}){let{t:j}=(0,f.useI18n)(),k=(0,d.useConnectInstance)(),l=(0,d.useImportInstance)(),m=k.isPending||l.isPending;async function n(a){let b=(0,e.isImportPayload)(a)?await l.mutateAsync(a):await k.mutateAsync(a);i?.(b),h(!1)}return(0,b.jsx)(c.Dialog,{open:a,onOpenChange:h,children:(0,b.jsxs)(c.DialogContent,{className:"max-w-xl",children:[(0,b.jsxs)(c.DialogHeader,{children:[(0,b.jsx)(c.DialogTitle,{children:j("instance.connect.title")}),(0,b.jsx)(c.DialogDescription,{children:j("instance.connect.description")})]}),(0,b.jsx)(g.ConnectInstanceForm,{mode:"create",onSubmit:n,busy:m})]})})}],421184);var h=a.i(434841),i=a.i(364565);a.s(["InstanceConnectivityDot",0,function({status:a,className:c}){let{t:d}=(0,f.useI18n)(),e=function(a,b){if(!a)return b("instance.connectivity.checking");if(!a.configured)return b("instance.connectivity.notConfigured");if(!0===a.reachable)return void 0===a.latencyMs?b("instance.connectivity.reachable"):b("instance.connectivity.reachableLatency",{latency:a.latencyMs});if(!1===a.reachable){let c=function(a,b){switch(a){case"timeout":return b("instance.connectivity.reasonTimeout");case"dns":return b("instance.connectivity.reasonDns");case"connection":return b("instance.connectivity.reasonConnection");case"tls":return b("instance.connectivity.reasonTls");default:return b("instance.connectivity.reasonNetwork")}}(a.reason,b);return a.message?b("instance.connectivity.unreachableDetail",{reason:c,detail:a.message}):b("instance.connectivity.unreachable",{reason:c})}return b("instance.connectivity.checking")}(a,d);return(0,b.jsx)(h.TooltipProvider,{delayDuration:250,children:(0,b.jsxs)(h.Tooltip,{children:[(0,b.jsx)(h.TooltipTrigger,{asChild:!0,children:(0,b.jsx)("span",{role:"status","aria-label":e,className:(0,i.cn)("inline-block h-1.5 w-1.5 shrink-0 rounded-full",a&&a.configured&&null!==a.reachable?!1===a.reachable?"bg-red-500":"bg-emerald-500/70":"bg-muted-foreground/35",c)})}),(0,b.jsx)(h.TooltipContent,{side:"top",className:"max-w-[320px]",children:e})]})})}],173575)}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=_0qw41co._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[470535,a=>{"use strict";var b=a.i(634020),c=a.i(971938),d=a.i(364565);let e=c.forwardRef(({className:a,...c},e)=>(0,b.jsx)("textarea",{className:(0,d.cn)("flex min-h-[64px] w-full rounded-md border border-[hsl(var(--border))] bg-[hsl(var(--card))] px-3 py-2 text-sm transition-colors","placeholder:text-[hsl(var(--subtle))]","focus-visible:outline-none focus-visible:border-[hsl(var(--primary))] focus-visible:ring-2 focus-visible:ring-[hsl(var(--primary)/0.2)] focus-visible:ring-offset-0","disabled:cursor-not-allowed disabled:bg-[hsl(var(--secondary))] disabled:text-[hsl(var(--muted-foreground))]",a),ref:e,...c}));e.displayName="Textarea",a.s(["Textarea",0,e])},1078,a=>{"use strict";let b=(0,a.i(750053).default)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]);a.s(["Sparkles",0,b],1078)},935850,a=>{"use strict";var b=a.i(971938),c=a.i(543320);a.s(["useLocaleRevalidation",0,function(a){let{locale:d}=(0,c.useI18n)(),e=(0,b.useRef)(d);(0,b.useEffect)(()=>{if(d===e.current)return;e.current=d;let b=Object.keys(a.formState.errors);0!==b.length&&a.trigger(b)},[d])}])},16038,a=>{"use strict";var b=a.i(634020),c=a.i(971938),d=a.i(559653),e=a.i(484694),f=a.i(356620),g=a.i(798392),h=a.i(558036),i=a.i(274974),j=a.i(483370),k=a.i(359231),l="Tabs",[m,n]=(0,e.createContextScope)(l,[f.createRovingFocusGroupScope]),o=(0,f.createRovingFocusGroupScope)(),[p,q]=m(l),r=c.forwardRef((a,c)=>{let{__scopeTabs:d,value:e,onValueChange:f,defaultValue:g,orientation:m="horizontal",dir:n,activationMode:o="automatic",...q}=a,r=(0,i.useDirection)(n),[s,t]=(0,j.useControllableState)({prop:e,onChange:f,defaultProp:g??"",caller:l});return(0,b.jsx)(p,{scope:d,baseId:(0,k.useId)(),value:s,onValueChange:t,orientation:m,dir:r,activationMode:o,children:(0,b.jsx)(h.Primitive.div,{dir:r,"data-orientation":m,...q,ref:c})})});r.displayName=l;var s="TabsList",t=c.forwardRef((a,c)=>{let{__scopeTabs:d,loop:e=!0,...g}=a,i=q(s,d),j=o(d);return(0,b.jsx)(f.Root,{asChild:!0,...j,orientation:i.orientation,dir:i.dir,loop:e,children:(0,b.jsx)(h.Primitive.div,{role:"tablist","aria-orientation":i.orientation,...g,ref:c})})});t.displayName=s;var u="TabsTrigger",v=c.forwardRef((a,c)=>{let{__scopeTabs:e,value:g,disabled:i=!1,...j}=a,k=q(u,e),l=o(e),m=y(k.baseId,g),n=z(k.baseId,g),p=g===k.value;return(0,b.jsx)(f.Item,{asChild:!0,...l,focusable:!i,active:p,children:(0,b.jsx)(h.Primitive.button,{type:"button",role:"tab","aria-selected":p,"aria-controls":n,"data-state":p?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:m,...j,ref:c,onMouseDown:(0,d.composeEventHandlers)(a.onMouseDown,a=>{i||0!==a.button||!1!==a.ctrlKey?a.preventDefault():k.onValueChange(g)}),onKeyDown:(0,d.composeEventHandlers)(a.onKeyDown,a=>{[" ","Enter"].includes(a.key)&&k.onValueChange(g)}),onFocus:(0,d.composeEventHandlers)(a.onFocus,()=>{let a="manual"!==k.activationMode;p||i||!a||k.onValueChange(g)})})})});v.displayName=u;var w="TabsContent",x=c.forwardRef((a,d)=>{let{__scopeTabs:e,value:f,forceMount:i,children:j,...k}=a,l=q(w,e),m=y(l.baseId,f),n=z(l.baseId,f),o=f===l.value,p=c.useRef(o);return c.useEffect(()=>{let a=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(a)},[]),(0,b.jsx)(g.Presence,{present:i||o,children:({present:c})=>(0,b.jsx)(h.Primitive.div,{"data-state":o?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":m,hidden:!c,id:n,tabIndex:0,...k,ref:d,style:{...a.style,animationDuration:p.current?"0s":void 0},children:c&&j})})});function y(a,b){return`${a}-trigger-${b}`}function z(a,b){return`${a}-content-${b}`}x.displayName=w;var A=a.i(364565);let B=c.forwardRef(({className:a,...c},d)=>(0,b.jsx)(t,{ref:d,className:(0,A.cn)("inline-flex h-10 items-center justify-center rounded-lg border border-[hsl(var(--border))] bg-[hsl(var(--secondary))] p-1 text-muted-foreground shadow-[inset_0_1px_2px_rgba(15,23,42,0.04)]",a),...c}));B.displayName=t.displayName;let C=c.forwardRef(({className:a,...c},d)=>(0,b.jsx)(v,{ref:d,className:(0,A.cn)("inline-flex h-8 items-center justify-center gap-1.5 whitespace-nowrap rounded-md px-3.5 text-sm font-medium","ring-offset-[hsl(var(--background))] transition-all duration-150","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50","hover:text-foreground","data-[state=active]:bg-[hsl(var(--background))]","data-[state=active]:text-[hsl(var(--primary))]","data-[state=active]:shadow-[0_1px_2px_rgba(15,23,42,0.08),0_0_0_1px_hsl(var(--border))]","data-[state=active]:font-semibold",a),...c}));C.displayName=v.displayName;let D=c.forwardRef(({className:a,...c},d)=>(0,b.jsx)(x,{ref:d,className:(0,A.cn)("mt-3 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",a),...c}));D.displayName=x.displayName,a.s(["Tabs",0,r,"TabsContent",0,D,"TabsList",0,B,"TabsTrigger",0,C],16038)},307714,a=>{"use strict";var b=a.i(634020),c=a.i(1078),d=a.i(419446),e=a.i(947161),f=a.i(128974),g=a.i(543320);a.s(["default",0,function(){let{t:a}=(0,g.useI18n)(),h=(0,e.useConnectInstance)(),i=(0,e.useImportInstance)(),j=h.isPending||i.isPending;async function k(a){(0,f.isImportPayload)(a)?await i.mutateAsync(a):await h.mutateAsync(a),window.location.replace("/")}return(0,b.jsxs)("div",{className:"flex flex-col gap-10",children:[(0,b.jsxs)("header",{className:"flex flex-col items-center gap-3 text-center",children:[(0,b.jsx)("div",{className:"flex h-12 w-12 items-center justify-center rounded-xl bg-primary/10 text-primary",children:(0,b.jsx)(c.Sparkles,{className:"h-6 w-6"})}),(0,b.jsx)("h1",{className:"text-2xl font-semibold tracking-tight",children:a("onboarding.title")}),(0,b.jsx)("p",{className:"max-w-md text-sm text-muted-foreground",children:a("onboarding.description")})]}),(0,b.jsx)("div",{className:"rounded-lg border border-[hsl(var(--border))] bg-[hsl(var(--card))] p-6 shadow-sm sm:p-8",children:(0,b.jsx)(d.ConnectInstanceForm,{mode:"create",onSubmit:k,busy:j,submitLabel:a("onboarding.submitLabel")})}),(0,b.jsx)("p",{className:"text-center text-xs text-muted-foreground",children:a("onboarding.footer")})]})}])}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=_0vfgz-v._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[637102,a=>{"use strict";let b=(0,a.i(750053).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"}]]);a.s(["AlertTriangle",0,b],637102)},968826,a=>{"use strict";let b=(0,a.i(750053).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"}]]);a.s(["RefreshCw",0,b],968826)},502482,a=>{"use strict";var b=a.i(634020),c=a.i(412583),d=a.i(880470),e=a.i(907704),f=a.i(543320),g=a.i(414796),h=a.i(364565);let i=new Set(Object.keys(g.messages.header.segments));a.s(["PageHeader",0,function({title:a,description:g,hideBreadcrumb:j,children:k,className:l}){let m=(0,d.usePathname)()??"/",{t:n}=(0,f.useI18n)(),o=j?[]:function(a,b){if(/^\/knowledge-base\/[^/]+(?:\/.*)?$/.test(a)||/^\/memory\/[^/]+(?:\/.*)?$/.test(a))return[];let c=a.split("/").filter(Boolean);if(0===c.length)return[];let d=[],e="";return c.forEach((a,f)=>{e+=`/${a}`;let g=decodeURIComponent(a),h=i.has(g)?b(`header.segments.${g}`):g;d.push({label:h,href:f<c.length-1?e:void 0})}),d}(m,n);return(0,b.jsxs)("div",{className:(0,h.cn)("mb-5 flex flex-col gap-2",l),children:[o.length>1&&(0,b.jsxs)("nav",{"aria-label":n("header.breadcrumb"),className:"flex items-center gap-1 text-[13px] text-[hsl(var(--muted-foreground))]",children:[(0,b.jsx)(c.default,{href:"/",className:"transition-colors hover:text-[hsl(var(--foreground))]",children:n("common.home")}),o.map((a,d)=>(0,b.jsxs)("span",{className:"flex items-center gap-1",children:[(0,b.jsx)(e.ChevronRight,{className:"h-3 w-3 opacity-60"}),a.href?(0,b.jsx)(c.default,{href:a.href,className:"transition-colors hover:text-[hsl(var(--foreground))]",children:a.label}):(0,b.jsx)("span",{className:"font-medium text-[hsl(var(--foreground))]",children:a.label})]},`${a.label}-${d}`))]}),(0,b.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,b.jsxs)("div",{className:"space-y-1",children:[(0,b.jsx)("h1",{className:"text-xl font-semibold leading-tight text-[hsl(var(--foreground))]",children:a}),g&&(0,b.jsx)("p",{className:"text-[13px] text-[hsl(var(--muted-foreground))]",children:g})]}),k&&(0,b.jsx)("div",{className:"flex shrink-0 items-center gap-2",children:k})]})]})}])},324567,a=>{"use strict";var b=a.i(634020),c=a.i(971938),d=a.i(843836),e=a.i(776192),f=a.i(172518),g=a.i(543320);a.s(["ConfirmDialog",0,function({open:a,onOpenChange:h,title:i,description:j,confirmText:k,cancelText:l,variant:m="default",onConfirm:n,confirmInput:o,children:p}){let{t:q}=(0,g.useI18n)(),[r,s]=(0,c.useState)(""),t=void 0!==o&&""!==o,u=t&&r!==o,v=(0,c.useCallback)(()=>{u||(n(),s(""))},[u,n]),w=(0,c.useCallback)(a=>{a||s(""),h(a)},[h]);return(0,b.jsx)(d.Dialog,{open:a,onOpenChange:w,children:(0,b.jsxs)(d.DialogContent,{className:"sm:max-w-120",children:[(0,b.jsxs)(d.DialogHeader,{children:[(0,b.jsx)(d.DialogTitle,{children:i}),(0,b.jsx)(d.DialogDescription,{className:"break-all",children:j})]}),t&&(0,b.jsxs)("div",{className:"py-2",children:[(0,b.jsx)("p",{className:"mb-2 text-sm text-muted-foreground",children:q("common.confirmInputPrompt",{value:o??""})}),(0,b.jsx)(f.Input,{value:r,onChange:a=>s(a.target.value),placeholder:o,autoFocus:!0})]}),p&&(0,b.jsx)("div",{className:"py-1",children:p}),(0,b.jsxs)(d.DialogFooter,{children:[(0,b.jsx)(e.Button,{variant:"outline",onClick:()=>w(!1),children:l??q("common.cancel")}),(0,b.jsx)(e.Button,{variant:"danger"===m?"destructive":"default",onClick:v,disabled:u,children:k??q("common.confirm")})]})]})})}])},383643,a=>{"use strict";a.s(["newId",0,function(a="id"){return"u">typeof crypto&&"randomUUID"in crypto?crypto.randomUUID():`${a}_${Date.now()}_${Math.random().toString(36).slice(2)}`}])},285540,a=>{"use strict";var b=a.i(383643);let c="__default__";function d(){return(0,b.newId)("run")}let e=["units","search","messages","tasks","requests","dream","settings"],f=["units","settings"],g=["longTerm","shortTerm","extract","consolidate"],h=["files"],i=["units","search","settings"],j=["units","settings"];function k(a){return"filemem"===a?"filemem":"file+ots"===a||"oss+ots"===a?"file+ots":"ots"}function l(a){return"file"===a?{inputType:a,storageStructures:["file"]}:{inputType:a,storageStructures:["structured"]}}function m(a){let b=k(a),c="filemem"!==b;return{mode:b,files:"ots"!==b,structured:c,writableFiles:"filemem"===b,forceLocalRetrieval:"filemem"===b,structuredAutoSave:c,supportsExtraction:c,detailSegments:[...c?e:f],cardShortcuts:[...c?g:h],cardActions:[...c?i:j]}}a.s(["FILEMEM_DEFAULT_RUN_ID",0,c,"memoryStorageSelectionForInput",0,l,"normalizeMemoryRunId",0,function(a,b,e=d){return"filemem"===a?c:b&&b!==c?b:e()},"normalizeStorageMode",0,k,"resolveMemoryDetailSegment",0,function(a,b){let{detailSegments:c}=m(a);return c.includes(b)?b:"units"},"resolveRetrievalMode",0,function(a,b){let c="boolean"==typeof b?b?"file+ots":"ots":k(b);return"filemem"===c?"local":"ots"===c?"search":"local"===a?"local":"search"},"storageModeCapabilities",0,m,"storageModeLabel",0,function(a,b){let c=k(a);return b?b("filemem"===c?"memory.storageMode.writableFileLabel":"file+ots"===c?"memory.storageMode.projectedFileLabel":"memory.storageMode.apiOnlyLabel"):"filemem"===c?"Writable File Memory":"file+ots"===c?"Read-only File Projection":"API-only Memory"},"storageModeToSelection",0,function(a){let b=k(a);return"filemem"===b?l("file"):"file+ots"===b?{inputType:"short-term",storageStructures:["structured","file"]}:l("short-term")},"storageSelectionToMode",0,function(a){let b=new Set(a.storageStructures),c=b.size!==a.storageStructures.length;if(!c&&"file"===a.inputType&&1===b.size&&b.has("file"))return"filemem";if(!c&&"short-term"===a.inputType&&b.has("structured")){if(1===b.size)return"ots";if(2===b.size&&b.has("file"))return"file+ots"}throw Error("Invalid memory input and storage structure combination")},"toggleMemoryFileStorage",0,function(a){return"file"===a.inputType?l("file"):a.storageStructures.includes("file")?l("short-term"):{inputType:"short-term",storageStructures:["structured","file"]}}])},96193,a=>{"use strict";let b=(0,a.i(750053).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"}]]);a.s(["FolderTree",0,b],96193)},754540,a=>{"use strict";var b=a.i(634020),c=a.i(637102),d=a.i(968826),e=a.i(776192),f=a.i(353141);a.s(["ErrorState",0,function({error:a,title:g,onRetry:h}){let i=function(a){if(!(a instanceof f.ApiClientError))return null;let{status:b}=a;return 401===b||403===b?"Please check your AccessKey credentials in the project settings.":503===b||"NETWORK_ERROR"===a.code?"The service may be unreachable. Verify the endpoint address and network connectivity.":null}(a);return(0,b.jsxs)("div",{className:"flex flex-col items-center justify-center py-16 px-4 text-center",children:[(0,b.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,b.jsx)(c.AlertTriangle,{className:"text-destructive",size:36,strokeWidth:1.75})}),(0,b.jsx)("h3",{className:"mb-2 text-base font-semibold text-foreground",children:g??"Failed to load data"}),(0,b.jsx)("p",{className:"mb-1 max-w-md text-sm text-muted-foreground",children:a.message}),i&&(0,b.jsx)("p",{className:"mb-6 max-w-md text-xs text-muted-foreground/80",children:i}),!i&&(0,b.jsx)("div",{className:"mb-6"}),h&&(0,b.jsxs)(e.Button,{variant:"outline",size:"sm",onClick:h,children:[(0,b.jsx)(d.RefreshCw,{className:"mr-2 h-4 w-4"}),"Retry"]})]})}])},160318,a=>{"use strict";let b=(0,a.i(750053).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);a.s(["Search",0,b],160318)},604395,a=>{"use strict";var b=a.i(634020),c=a.i(971938),d=a.i(364565);a.s(["Skeleton",0,function({className:a,delay:c,style:e,...f}){return(0,b.jsx)("div",{className:(0,d.cn)("animate-pulse rounded-md bg-primary/10",a),style:{animationDelay:c?`${c}ms`:void 0,...e},...f})},"SkeletonGroup",0,function({children:a,stagger:d=80,className:e,...f}){let g=c.Children.toArray(a);return(0,b.jsx)("div",{className:e,...f,children:g.map((a,b)=>{if(!c.isValidElement(a))return a;let e=a.props.delay??0;return c.cloneElement(a,{delay:e+b*d})})})}])},655295,a=>{"use strict";let b=(0,a.i(750053).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"}]]);a.s(["Trash2",0,b],655295)},624215,a=>{"use strict";let b=(0,a.i(750053).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"}]]);a.s(["Settings",0,b],624215)},310215,a=>{"use strict";var b=a.i(634020);a.s(["EmptyState",0,function({icon:a,title:c,description:d,action:e,illustration:f}){return(0,b.jsxs)("div",{className:"flex flex-col items-center justify-center py-16 px-4 text-center",children:[f??(0,b.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,b.jsx)(a,{className:"text-primary",size:36,strokeWidth:1.75})}),(0,b.jsx)("h3",{className:"mb-2 text-base font-semibold text-foreground",children:c}),(0,b.jsx)("p",{className:"mb-6 max-w-sm text-sm text-muted-foreground",children:d}),e&&(0,b.jsx)("div",{children:e})]})}])},473524,a=>{"use strict";var b=a.i(634020),c=a.i(971938),d=a.i(364565);let e=c.forwardRef(({className:a,...c},e)=>(0,b.jsx)("div",{ref:e,className:(0,d.cn)("rounded-lg border border-[hsl(var(--border))] bg-[hsl(var(--card))] text-[hsl(var(--card-foreground))] shadow-sm",a),...c}));e.displayName="Card",c.forwardRef(({className:a,...c},e)=>(0,b.jsx)("div",{ref:e,className:(0,d.cn)("flex flex-col space-y-1 px-5 pt-5 pb-3 border-b border-[hsl(var(--border-light))]",a),...c})).displayName="CardHeader",c.forwardRef(({className:a,...c},e)=>(0,b.jsx)("div",{ref:e,className:(0,d.cn)("text-base font-semibold leading-tight",a),...c})).displayName="CardTitle",c.forwardRef(({className:a,...c},e)=>(0,b.jsx)("div",{ref:e,className:(0,d.cn)("text-sm text-[hsl(var(--muted-foreground))]",a),...c})).displayName="CardDescription";let f=c.forwardRef(({className:a,...c},e)=>(0,b.jsx)("div",{ref:e,className:(0,d.cn)("px-5 py-4",a),...c}));f.displayName="CardContent",c.forwardRef(({className:a,...c},e)=>(0,b.jsx)("div",{ref:e,className:(0,d.cn)("flex items-center px-5 py-3 border-t border-[hsl(var(--border-light))]",a),...c})).displayName="CardFooter";let g=c.forwardRef(({className:a,...c},e)=>(0,b.jsx)("div",{ref:e,className:(0,d.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",a),...c}));g.displayName="CardInteractive",a.s(["Card",0,e,"CardContent",0,f,"CardInteractive",0,g])},59058,a=>{"use strict";let b=(0,a.i(750053).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"}]]);a.s(["MoreHorizontal",0,b],59058)},382461,997798,a=>{"use strict";var b=a.i(634020),c=a.i(160318),d=a.i(414151),e=a.i(364565),f=a.i(543320);a.s(["SearchInput",0,function({value:a,onChange:g,placeholder:h,className:i}){let{t:j}=(0,f.useI18n)();return(0,b.jsxs)("div",{className:(0,e.cn)("relative flex items-center",i),children:[(0,b.jsx)(c.Search,{className:"absolute left-3 pointer-events-none text-muted-foreground",size:16}),(0,b.jsx)("input",{type:"text",value:a,onChange:a=>g(a.target.value),placeholder:h??j("common.search"),className:(0,e.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")}),a&&(0,b.jsx)("button",{type:"button",onClick:()=>g(""),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":j("common.clearSearch"),children:(0,b.jsx)(d.X,{size:14})})]})}],382461);var g=a.i(971938);a.s(["useDebounce",0,function(a,b=300){let[c,d]=(0,g.useState)(a);return(0,g.useEffect)(()=>{let c=setTimeout(()=>{d(a)},b);return()=>{clearTimeout(c)}},[a,b]),c}],997798)},401605,a=>{"use strict";let b=(0,a.i(750053).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"}]]);a.s(["ListChecks",0,b],401605)},98791,a=>{"use strict";var b=a.i(634020),c=a.i(880470),d=a.i(263265),e=a.i(324567),f=a.i(933596),g=a.i(895487),h=a.i(421347),i=a.i(225377),j=a.i(543320);a.s(["MemoryDeleteDialog",0,function({memoryStoreName:a,open:k,onOpenChange:l,redirectToList:m=!1}){let n,o=(0,c.useRouter)(),p=(n=(0,g.useQueryClient)(),(0,f.useMutation)({mutationFn:a=>(0,h.deleteMemoryStore)(a),onSuccess:()=>{(0,i.invalidateMemoryQueries)(n)}})),{t:q}=(0,j.useI18n)();async function r(){if(a)try{await p.mutateAsync(a),d.toast.success(q("memory.list.deleteSuccess")),l(!1),m&&o.push("/memory")}catch(a){d.toast.error(a instanceof Error?a.message:q("memory.list.deleteFailed"))}}return(0,b.jsx)(e.ConfirmDialog,{open:k,onOpenChange:l,title:q("memory.list.deleteTitle"),description:q("memory.list.deleteConfirm",{name:a??""}),confirmInput:a??void 0,confirmText:q("common.delete"),variant:"danger",onConfirm:r})}],98791)},455429,a=>{"use strict";var b=a.i(634020),c=a.i(412583),d=a.i(25825),e=a.i(776192),f=a.i(502482),g=a.i(971938),h=a.i(147845),i=a.i(1078),j=a.i(604395),k=a.i(310215),l=a.i(754540),m=a.i(382461),n=a.i(997798),o=a.i(610220),p=a.i(543320),q=a.i(98791),r=a.i(880470),s=a.i(123028),t=a.i(96193),u=a.i(401605),v=a.i(688189),w=a.i(59058),x=a.i(160318),y=a.i(624215);let z=(0,a.i(750053).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 A=a.i(655295),B=a.i(473524),C=a.i(224666),D=a.i(364565),E=a.i(285540);function F({segment:a,storePath:c,router:d,icon:e,label:f,title:g}){return(0,b.jsxs)("button",{type:"button",title:g,onClick:b=>{b.preventDefault(),b.stopPropagation(),d.push(`${c}/${a}`)},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:[e,f]})}let G=(0,g.memo)(function({memoryStore:a,onDelete:d}){let f=(0,r.useRouter)(),{t:g}=(0,p.useI18n)(),{memoryStoreName:j}=a,k=`/memory/${encodeURIComponent(j)}`,l=`${k}/units`,m=(0,E.storageModeCapabilities)(a.storageMode),n=(0,E.storageModeToSelection)(a.storageMode),o="short-term"===n.inputType?g("memory.create.shortTermInputLabel"):g("memory.create.fileInputLabel"),q=n.storageStructures.map(a=>"structured"===a?g("memory.create.structuredStorageLabel"):g("memory.create.fileStorageLabel")).join(" + "),G={longTerm:{segment:"units",icon:(0,b.jsx)(s.Database,{className:"h-3.5 w-3.5"}),label:g("memory.card.longTerm"),title:g("memory.card.longTermTitle")},shortTerm:{segment:"messages",icon:(0,b.jsx)(v.MessageSquare,{className:"h-3.5 w-3.5"}),label:g("memory.card.shortTerm"),title:g("memory.card.shortTermTitle")},extract:{segment:"tasks",icon:(0,b.jsx)(u.ListChecks,{className:"h-3.5 w-3.5"}),label:g("memory.card.extract"),title:g("memory.card.extractTitle")},consolidate:{segment:"dream",icon:(0,b.jsx)(i.Sparkles,{className:"h-3.5 w-3.5"}),label:g("memory.card.consolidate"),title:g("memory.card.consolidateTitle")},files:{segment:"units",icon:(0,b.jsx)(t.FolderTree,{className:"h-3.5 w-3.5"}),label:g("memory.detail.tabFiles"),title:g("memory.detail.tabFiles")}},H={units:{icon:m.structured?(0,b.jsx)(z,{className:"mr-2 h-4 w-4"}):(0,b.jsx)(t.FolderTree,{className:"mr-2 h-4 w-4"}),label:m.structured?g("memory.detail.tabUnits"):g("memory.detail.tabFiles")},search:{icon:(0,b.jsx)(x.Search,{className:"mr-2 h-4 w-4"}),label:g("memory.detail.tabSearch")},settings:{icon:(0,b.jsx)(y.Settings,{className:"mr-2 h-4 w-4"}),label:g("memory.detail.tabSettings")}};return(0,b.jsx)(c.default,{href:l,className:"no-underline",children:(0,b.jsx)(B.CardInteractive,{className:"group relative flex h-[180px] cursor-pointer flex-col",children:(0,b.jsxs)(B.CardContent,{className:"flex flex-col flex-1 min-h-0 p-5",children:[(0,b.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,b.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-2",children:[(0,b.jsx)(h.Brain,{className:"h-4 w-4 shrink-0 text-primary"}),(0,b.jsx)("h3",{className:"min-w-0 truncate text-base font-semibold text-foreground",children:j})]}),(0,b.jsx)("div",{className:"opacity-0 transition-opacity duration-150 delay-75 group-hover:opacity-100 focus-within:opacity-100",onClick:a=>a.preventDefault(),children:(0,b.jsxs)(C.DropdownMenu,{children:[(0,b.jsx)(C.DropdownMenuTrigger,{asChild:!0,children:(0,b.jsx)(e.Button,{variant:"ghost",size:"icon",className:"h-8 w-8",children:(0,b.jsx)(w.MoreHorizontal,{className:"h-4 w-4"})})}),(0,b.jsxs)(C.DropdownMenuContent,{align:"end",children:[m.cardActions.map(a=>{let c=H[a];return(0,b.jsxs)(C.DropdownMenuItem,{onClick:()=>f.push(`${k}/${a}`),children:[c.icon,c.label]},a)}),(0,b.jsxs)(C.DropdownMenuItem,{className:"text-[hsl(var(--destructive))] focus:text-[hsl(var(--destructive))]",onClick:()=>d?.(j),children:[(0,b.jsx)(A.Trash2,{className:"mr-2 h-4 w-4"}),g("common.delete")]})]})]})})]}),(0,b.jsxs)("div",{className:"mt-3 flex flex-wrap gap-1.5 text-[10px]",children:[(0,b.jsxs)("span",{className:"inline-flex rounded-full border border-slate-200 bg-slate-50 px-2 py-0.5 text-slate-600",title:`${g("memory.card.inputType")}: ${o}`,children:[g("memory.card.inputType"),": ",o]}),(0,b.jsxs)("span",{className:(0,D.cn)("inline-flex rounded-full border px-2 py-0.5",m.files?"border-violet-200 bg-violet-50 text-violet-700":"border-slate-200 bg-slate-50 text-slate-600"),title:`${g("memory.card.storageStructure")}: ${q}`,children:[g("memory.card.storageStructure"),": ",q]})]}),(0,b.jsx)("div",{className:"mt-auto flex items-center gap-1 pt-4 text-xs text-muted-foreground min-w-0",children:m.cardShortcuts.map(a=>{let c=G[a];return(0,b.jsx)(F,{segment:c.segment,storePath:k,router:f,icon:c.icon,label:c.label,title:c.title},a)})})]})})})},(a,b)=>a.memoryStore===b.memoryStore||a.memoryStore.memoryStoreName===b.memoryStore.memoryStoreName&&a.memoryStore.storageMode===b.memoryStore.storageMode&&a.onDelete===b.onDelete);function H(){let{t:a}=(0,p.useI18n)(),{data:f,isLoading:i,error:r,refetch:s}=(0,o.useMemoryStores)(),[t,u]=(0,g.useState)(""),[v,w]=(0,g.useState)(null),x=(0,n.useDebounce)(t,300),y=(0,g.useMemo)(()=>{let a=f?.items??[];if(!x)return a;let b=x.toLowerCase();return a.filter(a=>a.memoryStoreName.toLowerCase().includes(b)||a.description?.toLowerCase().includes(b))},[f?.items,x]);return i?(0,b.jsx)("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:Array.from({length:6}).map((a,c)=>(0,b.jsx)(j.Skeleton,{className:"h-[180px] rounded-lg",delay:80*c},c))}):r?(0,b.jsx)(l.ErrorState,{error:r,onRetry:()=>s()}):f?.items?.length?(0,b.jsxs)("div",{className:"space-y-6",children:[(0,b.jsxs)("div",{className:"flex items-center gap-3",children:[(0,b.jsx)(m.SearchInput,{placeholder:a("memory.list.searchPlaceholder"),value:t,onChange:u,className:"max-w-sm"}),(0,b.jsx)("span",{className:"text-sm text-muted-foreground",children:a("memory.list.count",{count:y.length})})]}),0===y.length?(0,b.jsx)(k.EmptyState,{icon:h.Brain,title:a("memory.list.noMatchTitle"),description:a("memory.list.noMatchDescription")}):(0,b.jsx)("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:y.map(a=>(0,b.jsx)(G,{memoryStore:a,onDelete:w},a.memoryStoreName))}),(0,b.jsx)(q.MemoryDeleteDialog,{memoryStoreName:v,open:!!v,onOpenChange:a=>{a||w(null)}})]}):(0,b.jsx)(k.EmptyState,{icon:h.Brain,title:a("memory.list.emptyTitle"),description:a("memory.list.emptyDescription"),illustration:(0,b.jsx)(I,{}),action:(0,b.jsx)(e.Button,{asChild:!0,children:(0,b.jsxs)(c.default,{href:"/memory/create",children:[(0,b.jsx)(d.Plus,{className:"mr-2 h-4 w-4"}),a("memory.list.create")]})})})}function I(){return(0,b.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,b.jsx)(i.Sparkles,{className:"pointer-events-none absolute right-2 top-2 h-3 w-3 text-[hsl(var(--primary)/0.45)]"}),(0,b.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,b.jsx)(h.Brain,{className:"h-7 w-7 text-[hsl(var(--primary))]",strokeWidth:1.75})})]})}G.displayName="MemoryStoreCard",a.s(["default",0,function(){let{t:a}=(0,p.useI18n)();return(0,b.jsxs)("div",{className:"space-y-6",children:[(0,b.jsx)(f.PageHeader,{title:a("memory.list.title"),description:a("memory.list.description"),children:(0,b.jsx)(e.Button,{asChild:!0,children:(0,b.jsxs)(c.default,{href:"/memory/create",children:[(0,b.jsx)(d.Plus,{className:"mr-2 h-4 w-4"}),a("memory.list.create")]})})}),(0,b.jsx)(H,{})]})}],455429)}];
|
|
1
|
+
module.exports=[637102,a=>{"use strict";let b=(0,a.i(750053).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"}]]);a.s(["AlertTriangle",0,b],637102)},968826,a=>{"use strict";let b=(0,a.i(750053).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"}]]);a.s(["RefreshCw",0,b],968826)},502482,a=>{"use strict";var b=a.i(634020),c=a.i(412583),d=a.i(880470),e=a.i(907704),f=a.i(543320),g=a.i(414796),h=a.i(364565);let i=new Set(Object.keys(g.messages.header.segments));a.s(["PageHeader",0,function({title:a,description:g,hideBreadcrumb:j,children:k,className:l}){let m=(0,d.usePathname)()??"/",{t:n}=(0,f.useI18n)(),o=j?[]:function(a,b){if(/^\/knowledge-base\/[^/]+(?:\/.*)?$/.test(a)||/^\/memory\/[^/]+(?:\/.*)?$/.test(a))return[];let c=a.split("/").filter(Boolean);if(0===c.length)return[];let d=[],e="";return c.forEach((a,f)=>{e+=`/${a}`;let g=decodeURIComponent(a),h=i.has(g)?b(`header.segments.${g}`):g;d.push({label:h,href:f<c.length-1?e:void 0})}),d}(m,n);return(0,b.jsxs)("div",{className:(0,h.cn)("mb-5 flex flex-col gap-2",l),children:[o.length>1&&(0,b.jsxs)("nav",{"aria-label":n("header.breadcrumb"),className:"flex items-center gap-1 text-[13px] text-[hsl(var(--muted-foreground))]",children:[(0,b.jsx)(c.default,{href:"/",className:"transition-colors hover:text-[hsl(var(--foreground))]",children:n("common.home")}),o.map((a,d)=>(0,b.jsxs)("span",{className:"flex items-center gap-1",children:[(0,b.jsx)(e.ChevronRight,{className:"h-3 w-3 opacity-60"}),a.href?(0,b.jsx)(c.default,{href:a.href,className:"transition-colors hover:text-[hsl(var(--foreground))]",children:a.label}):(0,b.jsx)("span",{className:"font-medium text-[hsl(var(--foreground))]",children:a.label})]},`${a.label}-${d}`))]}),(0,b.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,b.jsxs)("div",{className:"space-y-1",children:[(0,b.jsx)("h1",{className:"text-xl font-semibold leading-tight text-[hsl(var(--foreground))]",children:a}),g&&(0,b.jsx)("p",{className:"text-[13px] text-[hsl(var(--muted-foreground))]",children:g})]}),k&&(0,b.jsx)("div",{className:"flex shrink-0 items-center gap-2",children:k})]})]})}])},324567,a=>{"use strict";var b=a.i(634020),c=a.i(971938),d=a.i(843836),e=a.i(776192),f=a.i(172518),g=a.i(543320);a.s(["ConfirmDialog",0,function({open:a,onOpenChange:h,title:i,description:j,confirmText:k,cancelText:l,variant:m="default",onConfirm:n,confirmInput:o,children:p}){let{t:q}=(0,g.useI18n)(),[r,s]=(0,c.useState)(""),t=void 0!==o&&""!==o,u=t&&r!==o,v=(0,c.useCallback)(()=>{u||(n(),s(""))},[u,n]),w=(0,c.useCallback)(a=>{a||s(""),h(a)},[h]);return(0,b.jsx)(d.Dialog,{open:a,onOpenChange:w,children:(0,b.jsxs)(d.DialogContent,{className:"sm:max-w-120",children:[(0,b.jsxs)(d.DialogHeader,{children:[(0,b.jsx)(d.DialogTitle,{children:i}),(0,b.jsx)(d.DialogDescription,{className:"break-all",children:j})]}),t&&(0,b.jsxs)("div",{className:"py-2",children:[(0,b.jsx)("p",{className:"mb-2 text-sm text-muted-foreground",children:q("common.confirmInputPrompt",{value:o??""})}),(0,b.jsx)(f.Input,{value:r,onChange:a=>s(a.target.value),placeholder:o,autoFocus:!0})]}),p&&(0,b.jsx)("div",{className:"py-1",children:p}),(0,b.jsxs)(d.DialogFooter,{children:[(0,b.jsx)(e.Button,{variant:"outline",onClick:()=>w(!1),children:l??q("common.cancel")}),(0,b.jsx)(e.Button,{variant:"danger"===m?"destructive":"default",onClick:v,disabled:u,children:k??q("common.confirm")})]})]})})}])},383643,a=>{"use strict";a.s(["newId",0,function(a="id"){return"u">typeof crypto&&"randomUUID"in crypto?crypto.randomUUID():`${a}_${Date.now()}_${Math.random().toString(36).slice(2)}`}])},285540,a=>{"use strict";var b=a.i(383643);let c="__default__";function d(){return(0,b.newId)("run")}let e=["scope","units","search","messages","tasks","requests","dream","wiki","settings"],f=["units","wiki","settings"],g=["longTerm","shortTerm","extract","consolidate"],h=["files"],i=["units","search","settings"],j=["units","settings"];function k(a){return l(a)??"ots"}function l(a){return"ots"===a?"ots":"file+ots"===a||"oss+ots"===a?"file+ots":"filemem"===a?"filemem":null}function m(a){return"file"===a?{inputType:a,storageStructures:["file"]}:{inputType:a,storageStructures:["structured"]}}function n(a){let b=k(a),c="filemem"!==b;return{mode:b,files:"ots"!==b,structured:c,writableFiles:"filemem"===b,forceLocalRetrieval:"filemem"===b,structuredAutoSave:c,supportsExtraction:c,detailSegments:[...c?e:f],cardShortcuts:[...c?g:h],cardActions:[...c?i:j]}}a.s(["FILEMEM_DEFAULT_RUN_ID",0,c,"memoryStorageSelectionForInput",0,m,"normalizeMemoryRunId",0,function(a,b,e=d){return"filemem"===a?c:b&&b!==c?b:e()},"normalizeStorageMode",0,k,"parseKnownStorageMode",0,l,"resolveMemoryDetailSegment",0,function(a,b){let{detailSegments:c}=n(a);return c.includes(b)?b:"units"},"resolveRetrievalMode",0,function(a,b){let c="boolean"==typeof b?b?"file+ots":"ots":k(b);return"filemem"===c?"local":"ots"===c?"search":"local"===a?"local":"search"},"storageModeCapabilities",0,n,"storageModeLabel",0,function(a,b){let c=k(a);return b?b("filemem"===c?"memory.storageMode.writableFileLabel":"file+ots"===c?"memory.storageMode.projectedFileLabel":"memory.storageMode.apiOnlyLabel"):"filemem"===c?"Writable File Memory":"file+ots"===c?"Read-only File Projection":"API-only Memory"},"storageModeToSelection",0,function(a){let b=k(a);return"filemem"===b?m("file"):"file+ots"===b?{inputType:"short-term",storageStructures:["structured","file"]}:m("short-term")},"storageSelectionToMode",0,function(a){let b=new Set(a.storageStructures),c=b.size!==a.storageStructures.length;if(!c&&"file"===a.inputType&&1===b.size&&b.has("file"))return"filemem";if(!c&&"short-term"===a.inputType&&b.has("structured")){if(1===b.size)return"ots";if(2===b.size&&b.has("file"))return"file+ots"}throw Error("Invalid memory input and storage structure combination")},"toggleMemoryFileStorage",0,function(a){return"file"===a.inputType?m("file"):a.storageStructures.includes("file")?m("short-term"):{inputType:"short-term",storageStructures:["structured","file"]}}])},96193,a=>{"use strict";let b=(0,a.i(750053).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"}]]);a.s(["FolderTree",0,b],96193)},754540,a=>{"use strict";var b=a.i(634020),c=a.i(637102),d=a.i(968826),e=a.i(776192),f=a.i(353141);a.s(["ErrorState",0,function({error:a,title:g,onRetry:h}){let i=function(a){if(!(a instanceof f.ApiClientError))return null;let{status:b}=a;return 401===b||403===b?"Please check your AccessKey credentials in the project settings.":503===b||"NETWORK_ERROR"===a.code?"The service may be unreachable. Verify the endpoint address and network connectivity.":null}(a);return(0,b.jsxs)("div",{className:"flex flex-col items-center justify-center py-16 px-4 text-center",children:[(0,b.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,b.jsx)(c.AlertTriangle,{className:"text-destructive",size:36,strokeWidth:1.75})}),(0,b.jsx)("h3",{className:"mb-2 text-base font-semibold text-foreground",children:g??"Failed to load data"}),(0,b.jsx)("p",{className:"mb-1 max-w-md text-sm text-muted-foreground",children:a.message}),i&&(0,b.jsx)("p",{className:"mb-6 max-w-md text-xs text-muted-foreground/80",children:i}),!i&&(0,b.jsx)("div",{className:"mb-6"}),h&&(0,b.jsxs)(e.Button,{variant:"outline",size:"sm",onClick:h,children:[(0,b.jsx)(d.RefreshCw,{className:"mr-2 h-4 w-4"}),"Retry"]})]})}])},160318,a=>{"use strict";let b=(0,a.i(750053).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);a.s(["Search",0,b],160318)},604395,a=>{"use strict";var b=a.i(634020),c=a.i(971938),d=a.i(364565);a.s(["Skeleton",0,function({className:a,delay:c,style:e,...f}){return(0,b.jsx)("div",{className:(0,d.cn)("animate-pulse rounded-md bg-primary/10",a),style:{animationDelay:c?`${c}ms`:void 0,...e},...f})},"SkeletonGroup",0,function({children:a,stagger:d=80,className:e,...f}){let g=c.Children.toArray(a);return(0,b.jsx)("div",{className:e,...f,children:g.map((a,b)=>{if(!c.isValidElement(a))return a;let e=a.props.delay??0;return c.cloneElement(a,{delay:e+b*d})})})}])},655295,a=>{"use strict";let b=(0,a.i(750053).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"}]]);a.s(["Trash2",0,b],655295)},624215,a=>{"use strict";let b=(0,a.i(750053).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"}]]);a.s(["Settings",0,b],624215)},310215,a=>{"use strict";var b=a.i(634020);a.s(["EmptyState",0,function({icon:a,title:c,description:d,action:e,illustration:f}){return(0,b.jsxs)("div",{className:"flex flex-col items-center justify-center py-16 px-4 text-center",children:[f??(0,b.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,b.jsx)(a,{className:"text-primary",size:36,strokeWidth:1.75})}),(0,b.jsx)("h3",{className:"mb-2 text-base font-semibold text-foreground",children:c}),(0,b.jsx)("p",{className:"mb-6 max-w-sm text-sm text-muted-foreground",children:d}),e&&(0,b.jsx)("div",{children:e})]})}])},473524,a=>{"use strict";var b=a.i(634020),c=a.i(971938),d=a.i(364565);let e=c.forwardRef(({className:a,...c},e)=>(0,b.jsx)("div",{ref:e,className:(0,d.cn)("rounded-lg border border-[hsl(var(--border))] bg-[hsl(var(--card))] text-[hsl(var(--card-foreground))] shadow-sm",a),...c}));e.displayName="Card";let f=c.forwardRef(({className:a,...c},e)=>(0,b.jsx)("div",{ref:e,className:(0,d.cn)("flex flex-col space-y-1 px-5 pt-5 pb-3 border-b border-[hsl(var(--border-light))]",a),...c}));f.displayName="CardHeader";let g=c.forwardRef(({className:a,...c},e)=>(0,b.jsx)("div",{ref:e,className:(0,d.cn)("text-base font-semibold leading-tight",a),...c}));g.displayName="CardTitle";let h=c.forwardRef(({className:a,...c},e)=>(0,b.jsx)("div",{ref:e,className:(0,d.cn)("text-sm text-[hsl(var(--muted-foreground))]",a),...c}));h.displayName="CardDescription";let i=c.forwardRef(({className:a,...c},e)=>(0,b.jsx)("div",{ref:e,className:(0,d.cn)("px-5 py-4",a),...c}));i.displayName="CardContent";let j=c.forwardRef(({className:a,...c},e)=>(0,b.jsx)("div",{ref:e,className:(0,d.cn)("flex items-center px-5 py-3 border-t border-[hsl(var(--border-light))]",a),...c}));j.displayName="CardFooter";let k=c.forwardRef(({className:a,...c},e)=>(0,b.jsx)("div",{ref:e,className:(0,d.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",a),...c}));k.displayName="CardInteractive",a.s(["Card",0,e,"CardContent",0,i,"CardDescription",0,h,"CardFooter",0,j,"CardHeader",0,f,"CardInteractive",0,k,"CardTitle",0,g])},59058,a=>{"use strict";let b=(0,a.i(750053).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"}]]);a.s(["MoreHorizontal",0,b],59058)},382461,997798,a=>{"use strict";var b=a.i(634020),c=a.i(160318),d=a.i(414151),e=a.i(364565),f=a.i(543320);a.s(["SearchInput",0,function({value:a,onChange:g,placeholder:h,className:i}){let{t:j}=(0,f.useI18n)();return(0,b.jsxs)("div",{className:(0,e.cn)("relative flex items-center",i),children:[(0,b.jsx)(c.Search,{className:"absolute left-3 pointer-events-none text-muted-foreground",size:16}),(0,b.jsx)("input",{type:"text",value:a,onChange:a=>g(a.target.value),placeholder:h??j("common.search"),className:(0,e.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")}),a&&(0,b.jsx)("button",{type:"button",onClick:()=>g(""),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":j("common.clearSearch"),children:(0,b.jsx)(d.X,{size:14})})]})}],382461);var g=a.i(971938);a.s(["useDebounce",0,function(a,b=300){let[c,d]=(0,g.useState)(a);return(0,g.useEffect)(()=>{let c=setTimeout(()=>{d(a)},b);return()=>{clearTimeout(c)}},[a,b]),c}],997798)},401605,a=>{"use strict";let b=(0,a.i(750053).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"}]]);a.s(["ListChecks",0,b],401605)},98791,a=>{"use strict";var b=a.i(634020),c=a.i(880470),d=a.i(263265),e=a.i(324567),f=a.i(933596),g=a.i(895487),h=a.i(421347),i=a.i(225377),j=a.i(543320);a.s(["MemoryDeleteDialog",0,function({memoryStoreName:a,open:k,onOpenChange:l,redirectToList:m=!1}){let n,o=(0,c.useRouter)(),p=(n=(0,g.useQueryClient)(),(0,f.useMutation)({mutationFn:a=>(0,h.deleteMemoryStore)(a),onSuccess:()=>{(0,i.invalidateMemoryQueries)(n)}})),{t:q}=(0,j.useI18n)();async function r(){if(a)try{await p.mutateAsync(a),d.toast.success(q("memory.list.deleteSuccess")),l(!1),m&&o.push("/memory")}catch(a){d.toast.error(a instanceof Error?a.message:q("memory.list.deleteFailed"))}}return(0,b.jsx)(e.ConfirmDialog,{open:k,onOpenChange:l,title:q("memory.list.deleteTitle"),description:q("memory.list.deleteConfirm",{name:a??""}),confirmInput:a??void 0,confirmText:q("common.delete"),variant:"danger",onConfirm:r})}],98791)},455429,a=>{"use strict";var b=a.i(634020),c=a.i(412583),d=a.i(25825),e=a.i(776192),f=a.i(502482),g=a.i(971938),h=a.i(147845),i=a.i(1078),j=a.i(604395),k=a.i(310215),l=a.i(754540),m=a.i(382461),n=a.i(997798),o=a.i(610220),p=a.i(543320),q=a.i(98791),r=a.i(880470),s=a.i(123028),t=a.i(96193),u=a.i(401605),v=a.i(688189),w=a.i(59058),x=a.i(160318),y=a.i(624215);let z=(0,a.i(750053).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 A=a.i(655295),B=a.i(473524),C=a.i(224666),D=a.i(364565),E=a.i(285540);function F({segment:a,storePath:c,router:d,icon:e,label:f,title:g}){return(0,b.jsxs)("button",{type:"button",title:g,onClick:b=>{b.preventDefault(),b.stopPropagation(),d.push(`${c}/${a}`)},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:[e,f]})}let G=(0,g.memo)(function({memoryStore:a,onDelete:d}){let f=(0,r.useRouter)(),{t:g}=(0,p.useI18n)(),{memoryStoreName:j}=a,k=`/memory/${encodeURIComponent(j)}`,l=`${k}/units`,m=(0,E.storageModeCapabilities)(a.storageMode),n=(0,E.storageModeToSelection)(a.storageMode),o="short-term"===n.inputType?g("memory.create.shortTermInputLabel"):g("memory.create.fileInputLabel"),q=n.storageStructures.map(a=>"structured"===a?g("memory.create.structuredStorageLabel"):g("memory.create.fileStorageLabel")).join(" + "),G={longTerm:{segment:"units",icon:(0,b.jsx)(s.Database,{className:"h-3.5 w-3.5"}),label:g("memory.card.longTerm"),title:g("memory.card.longTermTitle")},shortTerm:{segment:"messages",icon:(0,b.jsx)(v.MessageSquare,{className:"h-3.5 w-3.5"}),label:g("memory.card.shortTerm"),title:g("memory.card.shortTermTitle")},extract:{segment:"tasks",icon:(0,b.jsx)(u.ListChecks,{className:"h-3.5 w-3.5"}),label:g("memory.card.extract"),title:g("memory.card.extractTitle")},consolidate:{segment:"dream",icon:(0,b.jsx)(i.Sparkles,{className:"h-3.5 w-3.5"}),label:g("memory.card.consolidate"),title:g("memory.card.consolidateTitle")},files:{segment:"units",icon:(0,b.jsx)(t.FolderTree,{className:"h-3.5 w-3.5"}),label:g("memory.detail.tabFiles"),title:g("memory.detail.tabFiles")}},H={units:{icon:m.structured?(0,b.jsx)(z,{className:"mr-2 h-4 w-4"}):(0,b.jsx)(t.FolderTree,{className:"mr-2 h-4 w-4"}),label:m.structured?g("memory.detail.tabUnits"):g("memory.detail.tabFiles")},search:{icon:(0,b.jsx)(x.Search,{className:"mr-2 h-4 w-4"}),label:g("memory.detail.tabSearch")},settings:{icon:(0,b.jsx)(y.Settings,{className:"mr-2 h-4 w-4"}),label:g("memory.detail.tabSettings")}};return(0,b.jsx)(c.default,{href:l,className:"no-underline",children:(0,b.jsx)(B.CardInteractive,{className:"group relative flex h-[180px] cursor-pointer flex-col",children:(0,b.jsxs)(B.CardContent,{className:"flex flex-col flex-1 min-h-0 p-5",children:[(0,b.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,b.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-2",children:[(0,b.jsx)(h.Brain,{className:"h-4 w-4 shrink-0 text-primary"}),(0,b.jsx)("h3",{className:"min-w-0 truncate text-base font-semibold text-foreground",children:j})]}),(0,b.jsx)("div",{className:"opacity-0 transition-opacity duration-150 delay-75 group-hover:opacity-100 focus-within:opacity-100",onClick:a=>a.preventDefault(),children:(0,b.jsxs)(C.DropdownMenu,{children:[(0,b.jsx)(C.DropdownMenuTrigger,{asChild:!0,children:(0,b.jsx)(e.Button,{variant:"ghost",size:"icon",className:"h-8 w-8",children:(0,b.jsx)(w.MoreHorizontal,{className:"h-4 w-4"})})}),(0,b.jsxs)(C.DropdownMenuContent,{align:"end",children:[m.cardActions.map(a=>{let c=H[a];return(0,b.jsxs)(C.DropdownMenuItem,{onClick:()=>f.push(`${k}/${a}`),children:[c.icon,c.label]},a)}),(0,b.jsxs)(C.DropdownMenuItem,{className:"text-[hsl(var(--destructive))] focus:text-[hsl(var(--destructive))]",onClick:()=>d?.(j),children:[(0,b.jsx)(A.Trash2,{className:"mr-2 h-4 w-4"}),g("common.delete")]})]})]})})]}),(0,b.jsxs)("div",{className:"mt-3 flex flex-wrap gap-1.5 text-[10px]",children:[(0,b.jsxs)("span",{className:"inline-flex rounded-full border border-slate-200 bg-slate-50 px-2 py-0.5 text-slate-600",title:`${g("memory.card.inputType")}: ${o}`,children:[g("memory.card.inputType"),": ",o]}),(0,b.jsxs)("span",{className:(0,D.cn)("inline-flex rounded-full border px-2 py-0.5",m.files?"border-violet-200 bg-violet-50 text-violet-700":"border-slate-200 bg-slate-50 text-slate-600"),title:`${g("memory.card.storageStructure")}: ${q}`,children:[g("memory.card.storageStructure"),": ",q]})]}),(0,b.jsx)("div",{className:"mt-auto flex items-center gap-1 pt-4 text-xs text-muted-foreground min-w-0",children:m.cardShortcuts.map(a=>{let c=G[a];return(0,b.jsx)(F,{segment:c.segment,storePath:k,router:f,icon:c.icon,label:c.label,title:c.title},a)})})]})})})},(a,b)=>a.memoryStore===b.memoryStore||a.memoryStore.memoryStoreName===b.memoryStore.memoryStoreName&&a.memoryStore.storageMode===b.memoryStore.storageMode&&a.onDelete===b.onDelete);function H(){let{t:a}=(0,p.useI18n)(),{data:f,isLoading:i,error:r,refetch:s}=(0,o.useMemoryStores)(),[t,u]=(0,g.useState)(""),[v,w]=(0,g.useState)(null),x=(0,n.useDebounce)(t,300),y=(0,g.useMemo)(()=>{let a=f?.items??[];if(!x)return a;let b=x.toLowerCase();return a.filter(a=>a.memoryStoreName.toLowerCase().includes(b)||a.description?.toLowerCase().includes(b))},[f?.items,x]);return i?(0,b.jsx)("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:Array.from({length:6}).map((a,c)=>(0,b.jsx)(j.Skeleton,{className:"h-[180px] rounded-lg",delay:80*c},c))}):r?(0,b.jsx)(l.ErrorState,{error:r,onRetry:()=>s()}):f?.items?.length?(0,b.jsxs)("div",{className:"space-y-6",children:[(0,b.jsxs)("div",{className:"flex items-center gap-3",children:[(0,b.jsx)(m.SearchInput,{placeholder:a("memory.list.searchPlaceholder"),value:t,onChange:u,className:"max-w-sm"}),(0,b.jsx)("span",{className:"text-sm text-muted-foreground",children:a("memory.list.count",{count:y.length})})]}),0===y.length?(0,b.jsx)(k.EmptyState,{icon:h.Brain,title:a("memory.list.noMatchTitle"),description:a("memory.list.noMatchDescription")}):(0,b.jsx)("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:y.map(a=>(0,b.jsx)(G,{memoryStore:a,onDelete:w},a.memoryStoreName))}),(0,b.jsx)(q.MemoryDeleteDialog,{memoryStoreName:v,open:!!v,onOpenChange:a=>{a||w(null)}})]}):(0,b.jsx)(k.EmptyState,{icon:h.Brain,title:a("memory.list.emptyTitle"),description:a("memory.list.emptyDescription"),illustration:(0,b.jsx)(I,{}),action:(0,b.jsx)(e.Button,{asChild:!0,children:(0,b.jsxs)(c.default,{href:"/memory/create",children:[(0,b.jsx)(d.Plus,{className:"mr-2 h-4 w-4"}),a("memory.list.create")]})})})}function I(){return(0,b.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,b.jsx)(i.Sparkles,{className:"pointer-events-none absolute right-2 top-2 h-3 w-3 text-[hsl(var(--primary)/0.45)]"}),(0,b.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,b.jsx)(h.Brain,{className:"h-7 w-7 text-[hsl(var(--primary))]",strokeWidth:1.75})})]})}G.displayName="MemoryStoreCard",a.s(["default",0,function(){let{t:a}=(0,p.useI18n)();return(0,b.jsxs)("div",{className:"space-y-6",children:[(0,b.jsx)(f.PageHeader,{title:a("memory.list.title"),description:a("memory.list.description"),children:(0,b.jsx)(e.Button,{asChild:!0,children:(0,b.jsxs)(c.default,{href:"/memory/create",children:[(0,b.jsx)(d.Plus,{className:"mr-2 h-4 w-4"}),a("memory.list.create")]})})}),(0,b.jsx)(H,{})]})}],455429)}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=_0ww5s91._.js.map
|