@tablestore/tablestore-agent-cli 0.1.9 → 0.2.1
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/kb/create.d.ts.map +1 -1
- package/dist/commands/kb/create.js +21 -0
- package/dist/commands/kb/create.js.map +1 -1
- package/dist/commands/kb/retrieve.d.ts.map +1 -1
- package/dist/commands/kb/retrieve.js +3 -3
- package/dist/commands/kb/retrieve.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 +1 -0
- package/dist/dashboard-runtime/dashboard/.next/build-manifest.json +5 -5
- package/dist/dashboard-runtime/dashboard/.next/prerender-manifest.json +3 -3
- package/dist/dashboard-runtime/dashboard/.next/routes-manifest.json +6 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/chat/page/build-manifest.json +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/chat/page.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/build-manifest.json +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/documents/page.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/build-manifest.json +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/page.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/build-manifest.json +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/qa/page.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/build-manifest.json +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/retrieval/page.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/build-manifest.json +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/settings/page.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/build-manifest.json +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/create/page.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/build-manifest.json +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/page.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/build-manifest.json +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/[id]/page.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/build-manifest.json +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/new/page.js +2 -2
- 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/build-manifest.json +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/page.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]/messages/page/build-manifest.json +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/messages/page.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/build-manifest.json +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/page.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/build-manifest.json +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/requests/page/react-loadable-manifest.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/requests/page.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]/search/page/build-manifest.json +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/search/page.js +1 -1
- 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/build-manifest.json +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/settings/page.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]/units/page/build-manifest.json +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/units/page.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/create/page/build-manifest.json +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/create/page.js +1 -1
- 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/build-manifest.json +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/page.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/build-manifest.json +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/projects/page.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/page/build-manifest.json +2 -2
- 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/build-manifest.json +2 -2
- 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 +14 -14
- package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_full.segment.rsc +14 -14
- 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 +10 -10
- package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +3 -3
- 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/auth/status/route.js.nft.json +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.nft.json +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.nft.json +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.nft.json +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.nft.json +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.nft.json +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.nft.json +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.nft.json +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.nft.json +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.nft.json +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]/messages/route.js.nft.json +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.nft.json +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]/units/[memoryId]/route.js.nft.json +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/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/oss/list/route/app-paths-manifest.json +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/oss/list/route/build-manifest.json +9 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/oss/list/route/server-reference-manifest.json +4 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/oss/list/route.js +6 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/oss/list/route.js.map +5 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/oss/list/route.js.nft.json +1 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/oss/list/route_client-reference-manifest.js +3 -0
- 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 +14 -14
- 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 +14 -14
- 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 +10 -10
- package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding/page/build-manifest.json +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 +17 -17
- package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/_full.segment.rsc +17 -17
- 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 +10 -10
- package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/_tree.segment.rsc +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/onboarding/__PAGE__.segment.rsc +4 -4
- package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/onboarding.segment.rsc +4 -4
- package/dist/dashboard-runtime/dashboard/.next/server/app/page/build-manifest.json +2 -2
- 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 +1 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/0p91_next_dist_esm_build_templates_app-route_0n~ec7s.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0cee_lo._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0lvi0g-._.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0q8vcw8._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/dashboard__next-internal_server_app_api_v1_oss_list_route_actions_00xq2u..js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/0b1r_app_(dashboard)_knowledge-base_[name]_documents_documents-client_tsx_0g2uxmt._.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/0e95_src_app_(dashboard)_knowledge-base_[name]_settings_settings-client_tsx_13312zk._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0aqzu8w._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0hozzu6._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0jb9ccl._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0jhpb-b._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__13ylf4x._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_01-2v37._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_02bg849._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_04f2u4t._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_09yzbcp._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0db498n._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0ddbh97._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0f4u0.1._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0fj8l5g._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0hnw-ok._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0j-q~ro._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0jghj2_._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0kd7szs._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0l~-9i0._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0mtqe24._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0n4gd_6._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0o665bf._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0ogxvev._.js +7 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0q748rf._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0tr8-3u._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0u4elhp._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0vtm7dh._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0xdioxg._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0xzh5yw._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_12r9c8h._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_12~3vfk._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_13_lb.o._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_00ofp7q._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_065m1.j._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0ejgygh._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0o9jhcn._.js +9 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0xf3ffa._.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)_knowledge-base_create_page_tsx_0916~g-._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_error_tsx_01x7ppm._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_components_0ls1exu._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_components_0ugdjlb._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_components_shared_relative-time_tsx_0b7s9rc._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_components_ui_0-tuf-h._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_components_ui_dropdown-menu_tsx_0c~d-fd._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_components_ui_select_tsx_0ys.i47._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/node_modules__pnpm_08h.f_8._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/node_modules__pnpm_0jns_ph._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/node_modules__pnpm_0pf30rh._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/node_modules__pnpm_0~k~1nt._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/functions-config-manifest.json +1 -0
- package/dist/dashboard-runtime/dashboard/.next/server/middleware-build-manifest.js +5 -5
- package/dist/dashboard-runtime/dashboard/.next/server/pages/404.html +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/pages/500.html +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/server-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/server-reference-manifest.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0-2yqm.ft6yzy.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0.2e8ciiogw04.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/00tz~p479bdgl.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/02i9olo-312mq.js +138 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/062k9jbtd9.lv.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/069zf4m5f.se2.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/06uuhz24tvdt..js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/07cp19da_kfld.js +5 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/086esp1n941jl.js +138 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/08e9vvmr~0bqr.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/08i99xsvs8o5s.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/08qlxn-3d_rtu.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/09uxq~55qug8c.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0__g1ogrdh412.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0ab-ev0u1~ch5.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/{154aheeo3m6bg.js → 0bpginsuceywq.js} +1 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0bw682qzkh2ni.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0cto67_iw~p9z.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0d29.l~3ip181.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0ewpzgu_qf0wf.js +4 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0h77.bqx5ltem.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0ix_suxk3spjj.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0jc31diex030o.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0k79upjc40aky.css +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0lp2g_27uyhuz.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0lrw.bnws62y9.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0mea2ylxe.umh.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/{0dqag6qsw7xv8.js → 0px2r0l_3kp2t.js} +1 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0snnsfosp3~gq.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0t0yqi68~eil6.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0td9nhfbpbmyt.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0tmwptel_4y0o.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0u6_s-0w8.yr..js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0u9wtl06_b72x.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0uv55p7kzteex.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0v9d5wl9nsva3.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0xko7~ja3xuc-.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/{05_578ka0ga8d.js → 12pz6ag1s~te_.js} +1 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/14.dp0-y_mhjo.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/15bzqpm440jvz.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/15wxh8ltqt88_.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/183~u3-4a74db.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/{turbopack-0ybyy.9-.w~ub.js → turbopack-0w.hw6u8qra5z.js} +1 -1
- package/dist/dashboard-runtime/dashboard/package.json +1 -0
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/chat/page.tsx +39 -38
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/error.tsx +1 -1
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/knowledge-base/[name]/documents/documents-client.tsx +0 -1
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/knowledge-base/[name]/layout-client.tsx +191 -40
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/knowledge-base/[name]/qa/page.tsx +18 -19
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/knowledge-base/[name]/retrieval/retrieval-client.tsx +8 -7
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/knowledge-base/[name]/settings/settings-client.tsx +1 -1
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/layout.tsx +3 -10
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/layout.tsx +128 -22
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/search/page.tsx +15 -8
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/projects/page.tsx +1 -1
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/knowledge-bases/[name]/documents/route.ts +44 -3
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/oss/list/route.ts +125 -0
- package/dist/dashboard-runtime/dashboard/src/app/error.tsx +1 -1
- package/dist/dashboard-runtime/dashboard/src/app/globals.css +137 -102
- package/dist/dashboard-runtime/dashboard/src/app/not-found.tsx +1 -1
- package/dist/dashboard-runtime/dashboard/src/app/onboarding/page.tsx +2 -2
- package/dist/dashboard-runtime/dashboard/src/components/chat/add-mount-row.tsx +21 -46
- package/dist/dashboard-runtime/dashboard/src/components/chat/chat-mount-config.tsx +35 -27
- package/dist/dashboard-runtime/dashboard/src/components/chat/mount-empty-state.tsx +87 -0
- package/dist/dashboard-runtime/dashboard/src/components/chat/mount-picker.tsx +87 -0
- package/dist/dashboard-runtime/dashboard/src/components/chat/unified-retrieval-section.tsx +3 -2
- package/dist/dashboard-runtime/dashboard/src/components/documents/doc-chunks-dialog.tsx +49 -25
- package/dist/dashboard-runtime/dashboard/src/components/documents/doc-columns.tsx +57 -46
- package/dist/dashboard-runtime/dashboard/src/components/documents/doc-table.tsx +2 -4
- package/dist/dashboard-runtime/dashboard/src/components/documents/doc-toolbar.tsx +1 -1
- package/dist/dashboard-runtime/dashboard/src/components/documents/doc-upload-dialog.tsx +155 -54
- package/dist/dashboard-runtime/dashboard/src/components/documents/oss-browser.tsx +264 -0
- package/dist/dashboard-runtime/dashboard/src/components/documents/oss-import-tab.tsx +143 -0
- package/dist/dashboard-runtime/dashboard/src/components/instance/connect-instance-form.tsx +60 -60
- package/dist/dashboard-runtime/dashboard/src/components/knowledge-base/kb-create-form.tsx +52 -35
- package/dist/dashboard-runtime/dashboard/src/components/knowledge-base/kb-settings-form.tsx +152 -76
- package/dist/dashboard-runtime/dashboard/src/components/knowledge-base/knowledge-base-retrieval-config.ts +110 -0
- package/dist/dashboard-runtime/dashboard/src/components/knowledge-base/retrieval-result-count-field.tsx +106 -0
- package/dist/dashboard-runtime/dashboard/src/components/knowledge-base/retrieval-result-count.ts +11 -0
- package/dist/dashboard-runtime/dashboard/src/components/layout/detail-sidebar.tsx +411 -0
- package/dist/dashboard-runtime/dashboard/src/components/layout/help-link.tsx +58 -0
- package/dist/dashboard-runtime/dashboard/src/components/layout/page-header.tsx +130 -11
- package/dist/dashboard-runtime/dashboard/src/components/layout/sidebar-instance-card.tsx +203 -0
- package/dist/dashboard-runtime/dashboard/src/components/layout/sidebar-item.tsx +14 -11
- package/dist/dashboard-runtime/dashboard/src/components/layout/sidebar-mobile.tsx +37 -29
- package/dist/dashboard-runtime/dashboard/src/components/layout/sidebar-usage-stats.tsx +26 -0
- package/dist/dashboard-runtime/dashboard/src/components/layout/sidebar.tsx +94 -46
- package/dist/dashboard-runtime/dashboard/src/components/layout/theme-toggle.tsx +161 -41
- package/dist/dashboard-runtime/dashboard/src/components/memory/requests-histogram-chart.tsx +2 -2
- package/dist/dashboard-runtime/dashboard/src/components/qa/qa-chat-panel.tsx +1 -1
- package/dist/dashboard-runtime/dashboard/src/components/retrieval/assemble-retrieval-configuration.ts +22 -3
- package/dist/dashboard-runtime/dashboard/src/components/retrieval/retrieval-form.tsx +110 -20
- package/dist/dashboard-runtime/dashboard/src/components/retrieval/retrieval-params-fields.tsx +114 -56
- package/dist/dashboard-runtime/dashboard/src/components/retrieval/retrieval-rerank-fields.tsx +60 -23
- package/dist/dashboard-runtime/dashboard/src/components/shared/empty-state.tsx +1 -1
- package/dist/dashboard-runtime/dashboard/src/components/shared/error-state.tsx +1 -1
- package/dist/dashboard-runtime/dashboard/src/components/shared/llm-model-selector.tsx +160 -70
- package/dist/dashboard-runtime/dashboard/src/components/shared/relative-time.tsx +30 -6
- package/dist/dashboard-runtime/dashboard/src/components/ui/badge.tsx +16 -5
- package/dist/dashboard-runtime/dashboard/src/components/ui/button.tsx +9 -8
- package/dist/dashboard-runtime/dashboard/src/components/ui/card.tsx +14 -8
- package/dist/dashboard-runtime/dashboard/src/components/ui/chat-bubble.tsx +60 -0
- package/dist/dashboard-runtime/dashboard/src/components/ui/command.tsx +1 -1
- package/dist/dashboard-runtime/dashboard/src/components/ui/data-card.tsx +57 -0
- package/dist/dashboard-runtime/dashboard/src/components/ui/detail-section.tsx +40 -0
- package/dist/dashboard-runtime/dashboard/src/components/ui/dialog.tsx +7 -7
- package/dist/dashboard-runtime/dashboard/src/components/ui/dropdown-menu.tsx +6 -6
- package/dist/dashboard-runtime/dashboard/src/components/ui/empty-state.tsx +42 -0
- package/dist/dashboard-runtime/dashboard/src/components/ui/filter-pill.tsx +90 -0
- package/dist/dashboard-runtime/dashboard/src/components/ui/form.tsx +3 -3
- package/dist/dashboard-runtime/dashboard/src/components/ui/input.tsx +5 -1
- package/dist/dashboard-runtime/dashboard/src/components/ui/item-card.tsx +88 -0
- package/dist/dashboard-runtime/dashboard/src/components/ui/label.tsx +1 -1
- package/dist/dashboard-runtime/dashboard/src/components/ui/memory-row.tsx +63 -0
- package/dist/dashboard-runtime/dashboard/src/components/ui/mini-stat.tsx +48 -0
- package/dist/dashboard-runtime/dashboard/src/components/ui/nav-tab-bar.tsx +60 -0
- package/dist/dashboard-runtime/dashboard/src/components/ui/playground-shell.tsx +69 -0
- package/dist/dashboard-runtime/dashboard/src/components/ui/popover.tsx +1 -1
- package/dist/dashboard-runtime/dashboard/src/components/ui/result-row.tsx +37 -0
- package/dist/dashboard-runtime/dashboard/src/components/ui/scope-tag.tsx +30 -0
- package/dist/dashboard-runtime/dashboard/src/components/ui/select.tsx +6 -5
- package/dist/dashboard-runtime/dashboard/src/components/ui/sheet.tsx +4 -4
- package/dist/dashboard-runtime/dashboard/src/components/ui/sonner.tsx +1 -1
- package/dist/dashboard-runtime/dashboard/src/components/ui/stat-card.tsx +58 -0
- package/dist/dashboard-runtime/dashboard/src/components/ui/table.tsx +13 -6
- package/dist/dashboard-runtime/dashboard/src/components/ui/textarea.tsx +4 -1
- package/dist/dashboard-runtime/dashboard/src/components/ui/tooltip.tsx +1 -1
- package/dist/dashboard-runtime/dashboard/src/components/ui/usage-card.tsx +43 -0
- package/dist/dashboard-runtime/dashboard/src/config/navigation.ts +50 -9
- package/dist/dashboard-runtime/dashboard/src/hooks/use-detail-sidebar-collapsed.ts +86 -0
- package/dist/dashboard-runtime/dashboard/src/hooks/use-oss-import.ts +148 -0
- package/dist/dashboard-runtime/dashboard/src/hooks/use-oss-list.ts +89 -0
- package/dist/dashboard-runtime/dashboard/src/lib/extension-filter.ts +62 -0
- package/dist/dashboard-runtime/dashboard/src/lib/glob-filter.ts +76 -0
- package/dist/dashboard-runtime/dashboard/src/lib/oss-selection.ts +58 -0
- package/dist/dashboard-runtime/dashboard/src/lib/server/oss-client.ts +65 -0
- package/dist/dashboard-runtime/dashboard/src/schemas/knowledge-base.ts +3 -3
- package/dist/dashboard-runtime/dashboard/src/schemas/llm-chat.ts +1 -1
- package/dist/dashboard-runtime/dashboard/src/schemas/retrieval.ts +4 -1
- package/dist/dashboard-runtime/dashboard/src/services/api-client.ts +11 -6
- package/dist/dashboard-runtime/dashboard/src/services/documents.ts +27 -8
- package/dist/dashboard-runtime/dashboard/src/services/oss.ts +36 -0
- package/dist/dashboard-runtime/dashboard/src/types/knowledge-base.ts +1 -1
- package/dist/dashboard-runtime/dashboard/tailwind.config.ts +47 -12
- package/dist/dashboard-runtime/dashboard/vitest.config.mjs +6 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/types.d.ts +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/types.d.ts.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/types.d.ts +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/0lvo_@radix-ui_react-popper_dist_index_mjs_13rqw99._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0-kiaf5._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0_r24-c._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__11yei-s._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0303qx7._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_06l.12l._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_09eom0_._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0cd.__9._.js +0 -7
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0dqi8bq._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0e9y.xc._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0f9u8i2._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0fbjpet._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0i8py_a._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0jlt.cx._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0n5uozy._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0o32d.y._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0suxzcc._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0tyxwr3._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0u9md36._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0v4jb2q._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0vzw0pw._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0z0rlpq._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0zn.ayc._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_13l7w34._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0o4a.29._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0suis9l._.js +0 -9
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_10mc58z._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_knowledge-base_[name]_layout-client_tsx_05momc5._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_components_retrieval_02c2uck._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/node_modules__pnpm_0aw_rgu._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/node_modules__pnpm_0qdd37m._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/node_modules__pnpm_11mc1z9._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0-etecbti5x22.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0-xqk6wfme5fu.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0.yj.t1hbwkg4.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/031-scv-8sah9.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/034uozc1ki09_.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/05hmbxh7h5ct-.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/05ow1qzcjz3pz.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/07iqor2nl~iqc.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/087x52iesmpfe.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/08an3157he_ad.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0aak.679si-3m.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0ai8f~-9ig.gz.js +0 -138
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0c5tcbhzpwen7.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0dheju1t18upn.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0ffr1_o~ss8r8.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0h38qfpz-dmiu.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0hkir82jccgck.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0l1fmyhvp-k49.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0pcp6pjjz7o49.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0pdq-gljpy7gd.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0q6-s11w9.sgo.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0rnm58mg0whfk.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0rxp5ykl1_lyb.js +0 -4
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0sg6z8.ci0l2b.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0v_~favugkv_a.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0x3ysmon_~xsv.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0x7sjde5wit~i.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0yzz97.2e6if6.js +0 -138
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0zbi5n76awxz1.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0~alekqkiwwaq.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0~e2n9bhosscr.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0~i4llb9-utpp.css +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0~n-y9cstar6b.js +0 -5
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/14z_j1qzycpe1.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/17k4h5zgalxqj.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/17m1wc_o0.5iz.js +0 -1
- package/dist/dashboard-runtime/dashboard/src/components/knowledge-base/kb-header.tsx +0 -91
- package/dist/dashboard-runtime/dashboard/src/components/knowledge-base/kb-tab-nav.tsx +0 -62
- package/dist/dashboard-runtime/dashboard/src/components/layout/breadcrumb-bar.tsx +0 -115
- package/dist/dashboard-runtime/dashboard/src/components/memory/memory-header.tsx +0 -46
- package/dist/dashboard-runtime/dashboard/src/components/memory/memory-tab-nav.tsx +0 -54
- /package/dist/dashboard-runtime/dashboard/.next/static/{nPPow7lCVx1fYDGH2XCxQ → doYIl-pd6Sqax3bfUgN3q}/_buildManifest.js +0 -0
- /package/dist/dashboard-runtime/dashboard/.next/static/{nPPow7lCVx1fYDGH2XCxQ → doYIl-pd6Sqax3bfUgN3q}/_clientMiddlewareManifest.js +0 -0
- /package/dist/dashboard-runtime/dashboard/.next/static/{nPPow7lCVx1fYDGH2XCxQ → doYIl-pd6Sqax3bfUgN3q}/_ssgManifest.js +0 -0
package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/knowledge-base/[name]/layout-client.tsx
CHANGED
|
@@ -1,13 +1,49 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { Suspense, useState } from "react";
|
|
4
|
-
import { useParams } from "next/navigation";
|
|
4
|
+
import { useParams, useSearchParams } from "next/navigation";
|
|
5
|
+
import {
|
|
6
|
+
BookOpenText,
|
|
7
|
+
FileText,
|
|
8
|
+
MoreVertical,
|
|
9
|
+
MessagesSquare,
|
|
10
|
+
Search,
|
|
11
|
+
Settings,
|
|
12
|
+
Trash2,
|
|
13
|
+
} from "lucide-react";
|
|
14
|
+
|
|
5
15
|
import { Skeleton } from "@/components/ui/skeleton";
|
|
16
|
+
import {
|
|
17
|
+
DropdownMenu,
|
|
18
|
+
DropdownMenuContent,
|
|
19
|
+
DropdownMenuItem,
|
|
20
|
+
DropdownMenuTrigger,
|
|
21
|
+
} from "@/components/ui/dropdown-menu";
|
|
22
|
+
import { Badge } from "@/components/ui/badge";
|
|
23
|
+
import {
|
|
24
|
+
DetailLayout,
|
|
25
|
+
DetailSidebar,
|
|
26
|
+
DetailSidebarBack,
|
|
27
|
+
DetailSidebarHeader,
|
|
28
|
+
DetailSidebarMenu,
|
|
29
|
+
} from "@/components/layout/detail-sidebar";
|
|
6
30
|
import { useKnowledgeBase } from "@/hooks/use-knowledge-base";
|
|
7
|
-
import { KBHeader } from "@/components/knowledge-base/kb-header";
|
|
8
|
-
import { KBTabNav } from "@/components/knowledge-base/kb-tab-nav";
|
|
9
31
|
import { KBDeleteDialog } from "@/components/knowledge-base/kb-delete-dialog";
|
|
10
|
-
import { SubspaceProvider } from "@/contexts/subspace-context";
|
|
32
|
+
import { SubspaceProvider, useSubspaceOptional } from "@/contexts/subspace-context";
|
|
33
|
+
import { SubspaceSwitcher } from "@/components/knowledge-base/subspace-switcher";
|
|
34
|
+
import { RelativeTime } from "@/components/shared/relative-time";
|
|
35
|
+
import type { KnowledgeBase } from "@/types/knowledge-base";
|
|
36
|
+
|
|
37
|
+
const TABS = [
|
|
38
|
+
{ label: "文档", segment: "documents", icon: <FileText className="h-4 w-4" /> },
|
|
39
|
+
{ label: "检索测试", segment: "retrieval", icon: <Search className="h-4 w-4" /> },
|
|
40
|
+
{
|
|
41
|
+
label: "问答测试",
|
|
42
|
+
segment: "qa",
|
|
43
|
+
icon: <MessagesSquare className="h-4 w-4" />,
|
|
44
|
+
},
|
|
45
|
+
{ label: "设置", segment: "settings", icon: <Settings className="h-4 w-4" /> },
|
|
46
|
+
] as const;
|
|
11
47
|
|
|
12
48
|
export default function KnowledgeBaseDetailLayoutClient({
|
|
13
49
|
children,
|
|
@@ -21,58 +57,173 @@ export default function KnowledgeBaseDetailLayoutClient({
|
|
|
21
57
|
|
|
22
58
|
if (isLoading) {
|
|
23
59
|
return (
|
|
24
|
-
<
|
|
25
|
-
<
|
|
60
|
+
<DetailLayout
|
|
61
|
+
sidebar={<DetailSidebarSkeleton />}
|
|
62
|
+
>
|
|
63
|
+
<div className="space-y-6">
|
|
26
64
|
<Skeleton className="h-10 w-64" />
|
|
27
|
-
<Skeleton className="h-
|
|
28
|
-
<Skeleton className="h-
|
|
65
|
+
<Skeleton className="h-10 w-full" />
|
|
66
|
+
<Skeleton className="h-64 w-full" />
|
|
29
67
|
</div>
|
|
30
|
-
|
|
31
|
-
<Skeleton className="h-64 w-full" />
|
|
32
|
-
</div>
|
|
68
|
+
</DetailLayout>
|
|
33
69
|
);
|
|
34
70
|
}
|
|
35
71
|
|
|
36
72
|
if (!knowledgeBase) {
|
|
37
73
|
return (
|
|
38
|
-
<
|
|
39
|
-
|
|
40
|
-
|
|
74
|
+
<DetailLayout sidebar={<DetailSidebarSkeleton />}>
|
|
75
|
+
<div className="flex items-center justify-center py-20 text-muted-foreground">
|
|
76
|
+
知识库不存在或已被删除
|
|
77
|
+
</div>
|
|
78
|
+
</DetailLayout>
|
|
41
79
|
);
|
|
42
80
|
}
|
|
43
81
|
|
|
44
82
|
return (
|
|
45
|
-
<
|
|
46
|
-
<Suspense
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
<Skeleton className="h-10 w-full" />
|
|
55
|
-
<Skeleton className="h-[400px] w-full" />
|
|
56
|
-
</div>
|
|
57
|
-
}
|
|
58
|
-
>
|
|
59
|
-
<SubspaceProvider knowledgeBaseName={knowledgeBaseName}>
|
|
60
|
-
<div className="space-y-6">
|
|
61
|
-
<KBHeader
|
|
62
|
-
knowledgeBase={knowledgeBase}
|
|
63
|
-
onDelete={() => setShowDeleteDialog(true)}
|
|
64
|
-
/>
|
|
65
|
-
<KBTabNav knowledgeBaseName={knowledgeBaseName} />
|
|
66
|
-
<div>{children}</div>
|
|
67
|
-
</div>
|
|
68
|
-
</SubspaceProvider>
|
|
83
|
+
<SubspaceProvider knowledgeBaseName={knowledgeBaseName}>
|
|
84
|
+
<Suspense fallback={null}>
|
|
85
|
+
<KBDetailShell
|
|
86
|
+
knowledgeBase={knowledgeBase}
|
|
87
|
+
knowledgeBaseName={knowledgeBaseName}
|
|
88
|
+
onRequestDelete={() => setShowDeleteDialog(true)}
|
|
89
|
+
>
|
|
90
|
+
{children}
|
|
91
|
+
</KBDetailShell>
|
|
69
92
|
</Suspense>
|
|
70
|
-
|
|
71
93
|
<KBDeleteDialog
|
|
72
94
|
knowledgeBaseName={knowledgeBaseName}
|
|
73
95
|
open={showDeleteDialog}
|
|
74
96
|
onOpenChange={setShowDeleteDialog}
|
|
75
97
|
/>
|
|
76
|
-
</
|
|
98
|
+
</SubspaceProvider>
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
function KBDetailShell({
|
|
103
|
+
knowledgeBase,
|
|
104
|
+
knowledgeBaseName,
|
|
105
|
+
onRequestDelete,
|
|
106
|
+
children,
|
|
107
|
+
}: {
|
|
108
|
+
knowledgeBase: KnowledgeBase;
|
|
109
|
+
knowledgeBaseName: string;
|
|
110
|
+
onRequestDelete: () => void;
|
|
111
|
+
children: React.ReactNode;
|
|
112
|
+
}) {
|
|
113
|
+
const searchParams = useSearchParams();
|
|
114
|
+
const activeSubspace = useSubspaceOptional()?.subspace ?? null;
|
|
115
|
+
|
|
116
|
+
// Carry the subspace querystring through to each menu link so
|
|
117
|
+
// middle-click / copy-link continues to land on the same scope.
|
|
118
|
+
const params = new URLSearchParams(searchParams.toString());
|
|
119
|
+
if (activeSubspace) params.set("subspace", activeSubspace);
|
|
120
|
+
else params.delete("subspace");
|
|
121
|
+
const qs = params.toString();
|
|
122
|
+
const querySuffix = qs ? `?${qs}` : "";
|
|
123
|
+
|
|
124
|
+
const basePath = `/knowledge-base/${encodeURIComponent(knowledgeBaseName)}`;
|
|
125
|
+
const items = TABS.map((tab) => ({
|
|
126
|
+
href: `${basePath}/${tab.segment}${querySuffix}`,
|
|
127
|
+
label: tab.label,
|
|
128
|
+
icon: tab.icon,
|
|
129
|
+
}));
|
|
130
|
+
|
|
131
|
+
return (
|
|
132
|
+
<DetailLayout
|
|
133
|
+
sidebar={
|
|
134
|
+
<DetailSidebar>
|
|
135
|
+
<DetailSidebarHeader
|
|
136
|
+
icon={<BookOpenText />}
|
|
137
|
+
accent="primary"
|
|
138
|
+
name={knowledgeBase.knowledgeBaseName}
|
|
139
|
+
typeLabel="知识库 · KNOWLEDGE BASE"
|
|
140
|
+
description={knowledgeBase.description}
|
|
141
|
+
actions={
|
|
142
|
+
<DropdownMenu>
|
|
143
|
+
<DropdownMenuTrigger asChild>
|
|
144
|
+
<button
|
|
145
|
+
type="button"
|
|
146
|
+
aria-label="更多操作"
|
|
147
|
+
className="flex h-7 w-7 items-center justify-center rounded-md text-[hsl(var(--muted-foreground))] transition-colors hover:bg-[hsl(var(--background))] hover:text-[hsl(var(--foreground))]"
|
|
148
|
+
>
|
|
149
|
+
<MoreVertical className="h-4 w-4" />
|
|
150
|
+
</button>
|
|
151
|
+
</DropdownMenuTrigger>
|
|
152
|
+
<DropdownMenuContent align="end">
|
|
153
|
+
<DropdownMenuItem
|
|
154
|
+
onSelect={(e) => {
|
|
155
|
+
e.preventDefault();
|
|
156
|
+
onRequestDelete();
|
|
157
|
+
}}
|
|
158
|
+
className="text-[hsl(var(--destructive))] focus:bg-[hsl(var(--danger-soft))] focus:text-[hsl(var(--destructive))] hover:bg-[hsl(var(--danger-soft))] hover:text-[hsl(var(--destructive))]"
|
|
159
|
+
>
|
|
160
|
+
<Trash2 className="h-3.5 w-3.5" />
|
|
161
|
+
删除知识库
|
|
162
|
+
</DropdownMenuItem>
|
|
163
|
+
</DropdownMenuContent>
|
|
164
|
+
</DropdownMenu>
|
|
165
|
+
}
|
|
166
|
+
extra={
|
|
167
|
+
<>
|
|
168
|
+
{knowledgeBase.tags && knowledgeBase.tags.length > 0 ? (
|
|
169
|
+
<div className="-mt-0.5 flex flex-wrap gap-1">
|
|
170
|
+
{knowledgeBase.tags.map((tag) => (
|
|
171
|
+
<Badge
|
|
172
|
+
key={tag}
|
|
173
|
+
variant="primary"
|
|
174
|
+
className="text-[10px]"
|
|
175
|
+
>
|
|
176
|
+
{tag}
|
|
177
|
+
</Badge>
|
|
178
|
+
))}
|
|
179
|
+
</div>
|
|
180
|
+
) : null}
|
|
181
|
+
{knowledgeBase.subspace ? (
|
|
182
|
+
<div className="space-y-1">
|
|
183
|
+
<div className="inline-flex items-center gap-1.5 text-[hsl(var(--success))]">
|
|
184
|
+
<span className="h-1.5 w-1.5 rounded-full bg-current" />
|
|
185
|
+
子空间隔离已开启
|
|
186
|
+
</div>
|
|
187
|
+
<SubspaceSwitcher />
|
|
188
|
+
</div>
|
|
189
|
+
) : null}
|
|
190
|
+
{knowledgeBase.createdAt ? (
|
|
191
|
+
<div>
|
|
192
|
+
创建于 <RelativeTime timestamp={knowledgeBase.createdAt} />
|
|
193
|
+
</div>
|
|
194
|
+
) : null}
|
|
195
|
+
{knowledgeBase.updatedAt ? (
|
|
196
|
+
<div>
|
|
197
|
+
更新于 <RelativeTime timestamp={knowledgeBase.updatedAt} />
|
|
198
|
+
</div>
|
|
199
|
+
) : null}
|
|
200
|
+
</>
|
|
201
|
+
}
|
|
202
|
+
/>
|
|
203
|
+
<DetailSidebarMenu items={items} />
|
|
204
|
+
<DetailSidebarBack href="/knowledge-base" label="返回列表" />
|
|
205
|
+
</DetailSidebar>
|
|
206
|
+
}
|
|
207
|
+
>
|
|
208
|
+
{children}
|
|
209
|
+
</DetailLayout>
|
|
210
|
+
);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
function DetailSidebarSkeleton() {
|
|
214
|
+
return (
|
|
215
|
+
<DetailSidebar>
|
|
216
|
+
<div className="space-y-3 px-4 pt-4 pb-4 border-b border-[hsl(var(--border-light))]">
|
|
217
|
+
<Skeleton className="h-9 w-9 rounded-lg" />
|
|
218
|
+
<Skeleton className="h-4 w-3/4" />
|
|
219
|
+
<Skeleton className="h-3 w-1/2" />
|
|
220
|
+
</div>
|
|
221
|
+
<div className="space-y-1 px-2 py-2">
|
|
222
|
+
<Skeleton className="h-8 w-full" />
|
|
223
|
+
<Skeleton className="h-8 w-full" />
|
|
224
|
+
<Skeleton className="h-8 w-full" />
|
|
225
|
+
<Skeleton className="h-8 w-full" />
|
|
226
|
+
</div>
|
|
227
|
+
</DetailSidebar>
|
|
77
228
|
);
|
|
78
229
|
}
|
package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/knowledge-base/[name]/qa/page.tsx
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { use, useCallback, useState } from "react";
|
|
4
4
|
|
|
5
|
+
import { WorkbenchLayout } from "@/components/layout/detail-sidebar";
|
|
5
6
|
import { QaChatPanel } from "@/components/qa/qa-chat-panel";
|
|
6
7
|
import { QaForm, type QaFormState } from "@/components/qa/qa-form";
|
|
7
8
|
import { useKnowledgeBase } from "@/hooks/use-knowledge-base";
|
|
@@ -51,8 +52,8 @@ export default function QaPlaygroundPage({ params }: PageProps) {
|
|
|
51
52
|
);
|
|
52
53
|
|
|
53
54
|
return (
|
|
54
|
-
<
|
|
55
|
-
|
|
55
|
+
<WorkbenchLayout
|
|
56
|
+
aside={
|
|
56
57
|
<QaForm
|
|
57
58
|
knowledgeBaseName={knowledgeBaseName}
|
|
58
59
|
knowledgeBase={knowledgeBase}
|
|
@@ -60,22 +61,20 @@ export default function QaPlaygroundPage({ params }: PageProps) {
|
|
|
60
61
|
onClearConversation={chat.clear}
|
|
61
62
|
disabled={chat.isStreaming}
|
|
62
63
|
/>
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
<
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
</section>
|
|
79
|
-
</div>
|
|
64
|
+
}
|
|
65
|
+
>
|
|
66
|
+
<QaChatPanel
|
|
67
|
+
messages={chat.messages}
|
|
68
|
+
isStreaming={chat.isStreaming}
|
|
69
|
+
canSend={canSend}
|
|
70
|
+
error={chat.error}
|
|
71
|
+
onSend={chat.send}
|
|
72
|
+
onStop={chat.stop}
|
|
73
|
+
onDelete={chat.deleteMessage}
|
|
74
|
+
onResend={chat.reissueTurn}
|
|
75
|
+
onRegenerate={handleRegenerate}
|
|
76
|
+
onEditSave={handleEditSave}
|
|
77
|
+
/>
|
|
78
|
+
</WorkbenchLayout>
|
|
80
79
|
);
|
|
81
80
|
}
|
|
@@ -4,6 +4,7 @@ import { useState, useCallback } from "react";
|
|
|
4
4
|
import { useParams } from "next/navigation";
|
|
5
5
|
import { toast } from "sonner";
|
|
6
6
|
import { Skeleton } from "@/components/ui/skeleton";
|
|
7
|
+
import { WorkbenchLayout } from "@/components/layout/detail-sidebar";
|
|
7
8
|
import { useKnowledgeBase } from "@/hooks/use-knowledge-base";
|
|
8
9
|
import { useRetrieve } from "@/hooks/use-retrieve";
|
|
9
10
|
import { RetrievalForm } from "@/components/retrieval/retrieval-form";
|
|
@@ -48,20 +49,20 @@ export default function RetrievalClient() {
|
|
|
48
49
|
}
|
|
49
50
|
|
|
50
51
|
return (
|
|
51
|
-
<
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
<WorkbenchLayout
|
|
53
|
+
asideWidth={400}
|
|
54
|
+
aside={
|
|
54
55
|
<RetrievalForm
|
|
55
56
|
knowledgeBaseName={knowledgeBaseName}
|
|
56
57
|
knowledgeBase={knowledgeBase ?? undefined}
|
|
57
58
|
onSubmit={handleSubmit}
|
|
58
59
|
isLoading={retrieve.isPending}
|
|
59
60
|
/>
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
<div>
|
|
61
|
+
}
|
|
62
|
+
>
|
|
63
|
+
<div className="min-h-0 flex-1 overflow-y-auto px-7 py-5 max-md:px-4">
|
|
63
64
|
<RetrievalResults results={results} elapsedMs={elapsedMs} />
|
|
64
65
|
</div>
|
|
65
|
-
</
|
|
66
|
+
</WorkbenchLayout>
|
|
66
67
|
);
|
|
67
68
|
}
|
|
@@ -2,7 +2,6 @@ import { redirect } from 'next/navigation';
|
|
|
2
2
|
|
|
3
3
|
import { listInstances } from '@tablestore/tablestore-agent-shared';
|
|
4
4
|
|
|
5
|
-
import { BreadcrumbBar } from '@/components/layout/breadcrumb-bar';
|
|
6
5
|
import { Sidebar } from '@/components/layout/sidebar';
|
|
7
6
|
import { SidebarMobile } from '@/components/layout/sidebar-mobile';
|
|
8
7
|
import { SidebarOffset } from '@/components/layout/sidebar-offset';
|
|
@@ -45,7 +44,7 @@ export default function DashboardLayout({
|
|
|
45
44
|
}
|
|
46
45
|
|
|
47
46
|
return (
|
|
48
|
-
<div className="min-h-screen">
|
|
47
|
+
<div className="min-h-screen bg-[hsl(var(--background))]">
|
|
49
48
|
{/*
|
|
50
49
|
Skip-to-content link: visually hidden until focused. Keyboard users
|
|
51
50
|
can press Tab once on the page to jump straight to the main region,
|
|
@@ -58,15 +57,9 @@ export default function DashboardLayout({
|
|
|
58
57
|
跳转到主内容
|
|
59
58
|
</a>
|
|
60
59
|
<Sidebar />
|
|
60
|
+
<SidebarMobile />
|
|
61
61
|
<SidebarOffset>
|
|
62
|
-
<
|
|
63
|
-
<BreadcrumbBar />
|
|
64
|
-
<main
|
|
65
|
-
id="main-content"
|
|
66
|
-
tabIndex={-1}
|
|
67
|
-
aria-label="主内容"
|
|
68
|
-
className="mx-auto max-w-350 px-8 py-8 max-md:px-4 animate-in fade-in duration-300"
|
|
69
|
-
>
|
|
62
|
+
<main id="main-content" className="min-h-screen px-7 py-5 max-md:px-4">
|
|
70
63
|
{children}
|
|
71
64
|
</main>
|
|
72
65
|
</SidebarOffset>
|
|
@@ -1,13 +1,51 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { useParams } from "next/navigation";
|
|
3
|
+
import { useParams, useSearchParams } from "next/navigation";
|
|
4
4
|
import { useState } from "react";
|
|
5
|
+
import {
|
|
6
|
+
Brain,
|
|
7
|
+
Database,
|
|
8
|
+
FileClock,
|
|
9
|
+
MessageSquare,
|
|
10
|
+
MoreVertical,
|
|
11
|
+
Search,
|
|
12
|
+
Settings,
|
|
13
|
+
Trash2,
|
|
14
|
+
} from "lucide-react";
|
|
15
|
+
|
|
5
16
|
import { Skeleton } from "@/components/ui/skeleton";
|
|
17
|
+
import {
|
|
18
|
+
DropdownMenu,
|
|
19
|
+
DropdownMenuContent,
|
|
20
|
+
DropdownMenuItem,
|
|
21
|
+
DropdownMenuTrigger,
|
|
22
|
+
} from "@/components/ui/dropdown-menu";
|
|
23
|
+
import {
|
|
24
|
+
DetailLayout,
|
|
25
|
+
DetailSidebar,
|
|
26
|
+
DetailSidebarBack,
|
|
27
|
+
DetailSidebarHeader,
|
|
28
|
+
DetailSidebarMenu,
|
|
29
|
+
} from "@/components/layout/detail-sidebar";
|
|
6
30
|
import { useMemoryStore } from "@/hooks/use-memory-store";
|
|
7
31
|
import { MemoryDeleteDialog } from "@/components/memory/memory-delete-dialog";
|
|
8
|
-
import { MemoryHeader } from "@/components/memory/memory-header";
|
|
9
32
|
import { MemoryScopeBar } from "@/components/memory/memory-scope-bar";
|
|
10
|
-
|
|
33
|
+
|
|
34
|
+
const TABS = [
|
|
35
|
+
{ label: "长期记忆", segment: "units", icon: <Database className="h-4 w-4" /> },
|
|
36
|
+
{ label: "记忆检索", segment: "search", icon: <Search className="h-4 w-4" /> },
|
|
37
|
+
{
|
|
38
|
+
label: "短期记忆",
|
|
39
|
+
segment: "messages",
|
|
40
|
+
icon: <MessageSquare className="h-4 w-4" />,
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
label: "请求审计",
|
|
44
|
+
segment: "requests",
|
|
45
|
+
icon: <FileClock className="h-4 w-4" />,
|
|
46
|
+
},
|
|
47
|
+
{ label: "设置", segment: "settings", icon: <Settings className="h-4 w-4" /> },
|
|
48
|
+
] as const;
|
|
11
49
|
|
|
12
50
|
export default function MemoryDetailLayout({
|
|
13
51
|
children,
|
|
@@ -16,40 +54,89 @@ export default function MemoryDetailLayout({
|
|
|
16
54
|
}) {
|
|
17
55
|
const params = useParams<{ store: string }>();
|
|
18
56
|
const memoryStoreName = decodeURIComponent(params.store);
|
|
57
|
+
const searchParams = useSearchParams();
|
|
19
58
|
const { data: memoryStore, isLoading } = useMemoryStore(memoryStoreName);
|
|
20
59
|
const [showDeleteDialog, setShowDeleteDialog] = useState(false);
|
|
21
60
|
|
|
61
|
+
const querySuffix = searchParams.toString()
|
|
62
|
+
? `?${searchParams.toString()}`
|
|
63
|
+
: "";
|
|
64
|
+
const basePath = `/memory/${encodeURIComponent(memoryStoreName)}`;
|
|
65
|
+
const items = TABS.map((tab) => ({
|
|
66
|
+
href: `${basePath}/${tab.segment}${querySuffix}`,
|
|
67
|
+
label: tab.label,
|
|
68
|
+
icon: tab.icon,
|
|
69
|
+
}));
|
|
70
|
+
|
|
22
71
|
if (isLoading) {
|
|
23
72
|
return (
|
|
24
|
-
<
|
|
25
|
-
<div className="space-y-
|
|
73
|
+
<DetailLayout sidebar={<MemoryDetailSidebarSkeleton />}>
|
|
74
|
+
<div className="space-y-6">
|
|
26
75
|
<Skeleton className="h-10 w-64" />
|
|
27
|
-
<Skeleton className="h-
|
|
76
|
+
<Skeleton className="h-28 w-full" />
|
|
77
|
+
<Skeleton className="h-64 w-full" />
|
|
28
78
|
</div>
|
|
29
|
-
|
|
30
|
-
<Skeleton className="h-10 w-full" />
|
|
31
|
-
<Skeleton className="h-64 w-full" />
|
|
32
|
-
</div>
|
|
79
|
+
</DetailLayout>
|
|
33
80
|
);
|
|
34
81
|
}
|
|
35
82
|
|
|
36
83
|
if (!memoryStore) {
|
|
37
84
|
return (
|
|
38
|
-
<
|
|
39
|
-
|
|
40
|
-
|
|
85
|
+
<DetailLayout sidebar={<MemoryDetailSidebarSkeleton />}>
|
|
86
|
+
<div className="flex items-center justify-center py-20 text-muted-foreground">
|
|
87
|
+
记忆库不存在或已被删除
|
|
88
|
+
</div>
|
|
89
|
+
</DetailLayout>
|
|
41
90
|
);
|
|
42
91
|
}
|
|
43
92
|
|
|
44
93
|
return (
|
|
45
|
-
|
|
46
|
-
<
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
94
|
+
<>
|
|
95
|
+
<DetailLayout
|
|
96
|
+
sidebar={
|
|
97
|
+
<DetailSidebar>
|
|
98
|
+
<DetailSidebarHeader
|
|
99
|
+
icon={<Brain />}
|
|
100
|
+
accent="purple"
|
|
101
|
+
name={memoryStore.memoryStoreName}
|
|
102
|
+
typeLabel="记忆库 · MEMORY STORE"
|
|
103
|
+
description={memoryStore.description}
|
|
104
|
+
actions={
|
|
105
|
+
<DropdownMenu>
|
|
106
|
+
<DropdownMenuTrigger asChild>
|
|
107
|
+
<button
|
|
108
|
+
type="button"
|
|
109
|
+
aria-label="更多操作"
|
|
110
|
+
className="flex h-7 w-7 items-center justify-center rounded-md text-[hsl(var(--muted-foreground))] transition-colors hover:bg-[hsl(var(--background))] hover:text-[hsl(var(--foreground))]"
|
|
111
|
+
>
|
|
112
|
+
<MoreVertical className="h-4 w-4" />
|
|
113
|
+
</button>
|
|
114
|
+
</DropdownMenuTrigger>
|
|
115
|
+
<DropdownMenuContent align="end">
|
|
116
|
+
<DropdownMenuItem
|
|
117
|
+
onSelect={(e) => {
|
|
118
|
+
e.preventDefault();
|
|
119
|
+
setShowDeleteDialog(true);
|
|
120
|
+
}}
|
|
121
|
+
className="text-[hsl(var(--destructive))] focus:bg-[hsl(var(--danger-soft))] focus:text-[hsl(var(--destructive))] hover:bg-[hsl(var(--danger-soft))] hover:text-[hsl(var(--destructive))]"
|
|
122
|
+
>
|
|
123
|
+
<Trash2 className="h-3.5 w-3.5" />
|
|
124
|
+
删除记忆库
|
|
125
|
+
</DropdownMenuItem>
|
|
126
|
+
</DropdownMenuContent>
|
|
127
|
+
</DropdownMenu>
|
|
128
|
+
}
|
|
129
|
+
/>
|
|
130
|
+
<DetailSidebarMenu items={items} />
|
|
131
|
+
<DetailSidebarBack href="/memory" label="返回列表" />
|
|
132
|
+
</DetailSidebar>
|
|
133
|
+
}
|
|
134
|
+
>
|
|
135
|
+
<div className="space-y-6">
|
|
136
|
+
<MemoryScopeBar />
|
|
137
|
+
<div>{children}</div>
|
|
138
|
+
</div>
|
|
139
|
+
</DetailLayout>
|
|
53
140
|
|
|
54
141
|
<MemoryDeleteDialog
|
|
55
142
|
memoryStoreName={memoryStoreName}
|
|
@@ -57,6 +144,25 @@ export default function MemoryDetailLayout({
|
|
|
57
144
|
onOpenChange={setShowDeleteDialog}
|
|
58
145
|
redirectToList
|
|
59
146
|
/>
|
|
60
|
-
|
|
147
|
+
</>
|
|
148
|
+
);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
function MemoryDetailSidebarSkeleton() {
|
|
152
|
+
return (
|
|
153
|
+
<DetailSidebar>
|
|
154
|
+
<div className="space-y-3 px-4 pt-4 pb-4 border-b border-[hsl(var(--border-light))]">
|
|
155
|
+
<Skeleton className="h-9 w-9 rounded-lg" />
|
|
156
|
+
<Skeleton className="h-4 w-3/4" />
|
|
157
|
+
<Skeleton className="h-3 w-1/2" />
|
|
158
|
+
</div>
|
|
159
|
+
<div className="space-y-1 px-2 py-2">
|
|
160
|
+
<Skeleton className="h-8 w-full" />
|
|
161
|
+
<Skeleton className="h-8 w-full" />
|
|
162
|
+
<Skeleton className="h-8 w-full" />
|
|
163
|
+
<Skeleton className="h-8 w-full" />
|
|
164
|
+
<Skeleton className="h-8 w-full" />
|
|
165
|
+
</div>
|
|
166
|
+
</DetailSidebar>
|
|
61
167
|
);
|
|
62
168
|
}
|
|
@@ -8,6 +8,7 @@ import { buildMemoryScope } from "@/lib/memory";
|
|
|
8
8
|
import type { MemorySearchHit } from "@/types/memory";
|
|
9
9
|
import { MemorySearchForm, type MemorySearchValues } from "@/components/memory/memory-search-form";
|
|
10
10
|
import { MemorySearchResults } from "@/components/memory/memory-search-results";
|
|
11
|
+
import { WorkbenchLayout } from "@/components/layout/detail-sidebar";
|
|
11
12
|
|
|
12
13
|
export default function MemorySearchPage() {
|
|
13
14
|
const params = useParams<{ store: string }>();
|
|
@@ -37,13 +38,19 @@ export default function MemorySearchPage() {
|
|
|
37
38
|
}
|
|
38
39
|
|
|
39
40
|
return (
|
|
40
|
-
<
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
41
|
+
<WorkbenchLayout
|
|
42
|
+
asideWidth={400}
|
|
43
|
+
aside={
|
|
44
|
+
<MemorySearchForm
|
|
45
|
+
scope={scope}
|
|
46
|
+
isLoading={search.isPending}
|
|
47
|
+
onSubmit={handleSubmit}
|
|
48
|
+
/>
|
|
49
|
+
}
|
|
50
|
+
>
|
|
51
|
+
<div className="min-h-0 flex-1 overflow-y-auto px-7 py-5 max-md:px-4">
|
|
52
|
+
<MemorySearchResults results={results} elapsedMs={elapsedMs} />
|
|
53
|
+
</div>
|
|
54
|
+
</WorkbenchLayout>
|
|
48
55
|
);
|
|
49
56
|
}
|