@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/components/retrieval/retrieval-params-fields.tsx
CHANGED
|
@@ -4,7 +4,6 @@ import { useEffect, useRef } from "react";
|
|
|
4
4
|
import type { UseFormReturn } from "react-hook-form";
|
|
5
5
|
import { Check, ChevronDown, HelpCircle, Info } from "lucide-react";
|
|
6
6
|
|
|
7
|
-
import { Input } from "@/components/ui/input";
|
|
8
7
|
import { Button } from "@/components/ui/button";
|
|
9
8
|
import { useSubspaceOptional } from "@/contexts/subspace-context";
|
|
10
9
|
import {
|
|
@@ -27,6 +26,7 @@ import {
|
|
|
27
26
|
TooltipTrigger,
|
|
28
27
|
} from "@/components/ui/tooltip";
|
|
29
28
|
import { TagInput } from "@/components/shared/tag-input";
|
|
29
|
+
import { RetrievalResultCountField } from "@/components/knowledge-base/retrieval-result-count-field";
|
|
30
30
|
import { FilterBuilder, type FilterBuilderHandle } from "./filter-builder";
|
|
31
31
|
import { RetrievalRerankFields } from "./retrieval-rerank-fields";
|
|
32
32
|
import type { RetrievalInput } from "@/schemas/retrieval";
|
|
@@ -58,6 +58,7 @@ export interface RetrievalParamsFieldsProps {
|
|
|
58
58
|
* label. Used for verbose explanations that would otherwise wrap the
|
|
59
59
|
* label across multiple lines and break left/right column alignment. */
|
|
60
60
|
topKHint?: string;
|
|
61
|
+
topKMode?: "split" | "single";
|
|
61
62
|
}
|
|
62
63
|
|
|
63
64
|
export function RetrievalParamsFields({
|
|
@@ -66,11 +67,13 @@ export function RetrievalParamsFields({
|
|
|
66
67
|
filterRef,
|
|
67
68
|
topKLabel = "返回数量",
|
|
68
69
|
topKHint,
|
|
70
|
+
topKMode = "split",
|
|
69
71
|
}: RetrievalParamsFieldsProps) {
|
|
70
72
|
const currentSearchType = form.watch("searchType");
|
|
73
|
+
const denseEnabled = !!currentSearchType?.includes("DENSE_VECTOR");
|
|
74
|
+
const fullTextEnabled = !!currentSearchType?.includes("FULL_TEXT");
|
|
71
75
|
const hybrid =
|
|
72
|
-
|
|
73
|
-
!!currentSearchType?.includes("FULL_TEXT");
|
|
76
|
+
denseEnabled && fullTextEnabled;
|
|
74
77
|
const metadataFields = knowledgeBase?.metadata ?? [];
|
|
75
78
|
|
|
76
79
|
// Pre-fill the subspace field with the active scope, but only once per
|
|
@@ -114,59 +117,14 @@ export function RetrievalParamsFields({
|
|
|
114
117
|
/>
|
|
115
118
|
)}
|
|
116
119
|
|
|
117
|
-
<div className="grid gap-4 sm:grid-cols-2">
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
{topKHint ? (
|
|
126
|
-
<TooltipProvider delayDuration={150}>
|
|
127
|
-
<Tooltip>
|
|
128
|
-
<TooltipTrigger asChild>
|
|
129
|
-
<button
|
|
130
|
-
type="button"
|
|
131
|
-
tabIndex={-1}
|
|
132
|
-
aria-label="字段说明"
|
|
133
|
-
className="inline-flex h-5 w-5 items-center justify-center rounded text-muted-foreground/60 transition-colors hover:bg-[hsl(var(--muted))] hover:text-foreground"
|
|
134
|
-
>
|
|
135
|
-
<HelpCircle className="h-3.5 w-3.5" />
|
|
136
|
-
</button>
|
|
137
|
-
</TooltipTrigger>
|
|
138
|
-
<TooltipContent
|
|
139
|
-
side="top"
|
|
140
|
-
sideOffset={6}
|
|
141
|
-
className="z-[60] max-w-[240px] border border-[hsl(var(--border))] bg-[hsl(var(--popover))] px-3 py-2 text-xs leading-relaxed text-[hsl(var(--popover-foreground))] shadow-md"
|
|
142
|
-
>
|
|
143
|
-
{topKHint}
|
|
144
|
-
</TooltipContent>
|
|
145
|
-
</Tooltip>
|
|
146
|
-
</TooltipProvider>
|
|
147
|
-
) : null}
|
|
148
|
-
</div>
|
|
149
|
-
<FormControl>
|
|
150
|
-
<Input
|
|
151
|
-
type="number"
|
|
152
|
-
min={1}
|
|
153
|
-
max={100}
|
|
154
|
-
className="h-9"
|
|
155
|
-
{...field}
|
|
156
|
-
onChange={(event) =>
|
|
157
|
-
field.onChange(
|
|
158
|
-
event.target.value
|
|
159
|
-
? Number(event.target.value)
|
|
160
|
-
: undefined,
|
|
161
|
-
)
|
|
162
|
-
}
|
|
163
|
-
/>
|
|
164
|
-
</FormControl>
|
|
165
|
-
<FormMessage />
|
|
166
|
-
</FormItem>
|
|
167
|
-
)}
|
|
168
|
-
/>
|
|
169
|
-
|
|
120
|
+
<div className={topKMode === "single" ? "grid gap-4 sm:grid-cols-2" : "space-y-4"}>
|
|
121
|
+
{topKMode === "single" ? (
|
|
122
|
+
<TopKNumberField
|
|
123
|
+
form={form}
|
|
124
|
+
label={topKLabel}
|
|
125
|
+
hint={topKHint}
|
|
126
|
+
/>
|
|
127
|
+
) : null}
|
|
170
128
|
<FormField
|
|
171
129
|
control={form.control}
|
|
172
130
|
name="searchType"
|
|
@@ -202,6 +160,44 @@ export function RetrievalParamsFields({
|
|
|
202
160
|
/>
|
|
203
161
|
</div>
|
|
204
162
|
|
|
163
|
+
{topKMode === "split" ? (
|
|
164
|
+
<div className="space-y-3">
|
|
165
|
+
<div className="space-y-1">
|
|
166
|
+
<p className="text-sm font-medium text-[hsl(var(--foreground))]">
|
|
167
|
+
返回数量
|
|
168
|
+
</p>
|
|
169
|
+
<p className="text-xs text-[hsl(var(--muted-foreground))]">
|
|
170
|
+
控制每路召回参与排序的候选数,以及 Rerank 后实际返回的片段数。
|
|
171
|
+
</p>
|
|
172
|
+
</div>
|
|
173
|
+
<div className="grid grid-cols-[repeat(auto-fit,minmax(min(260px,100%),1fr))] gap-3">
|
|
174
|
+
<RetrievalResultCountField
|
|
175
|
+
control={form.control}
|
|
176
|
+
name="denseTopK"
|
|
177
|
+
label="向量召回数"
|
|
178
|
+
description="向量检索参与后续排序的候选片段数。"
|
|
179
|
+
max={100}
|
|
180
|
+
muted={!denseEnabled}
|
|
181
|
+
/>
|
|
182
|
+
<RetrievalResultCountField
|
|
183
|
+
control={form.control}
|
|
184
|
+
name="fullTextTopK"
|
|
185
|
+
label="全文召回数"
|
|
186
|
+
description="全文检索参与后续排序的候选片段数。"
|
|
187
|
+
max={100}
|
|
188
|
+
muted={!fullTextEnabled}
|
|
189
|
+
/>
|
|
190
|
+
</div>
|
|
191
|
+
<RetrievalResultCountField
|
|
192
|
+
control={form.control}
|
|
193
|
+
name="rerankTopK"
|
|
194
|
+
label="重排序返回数"
|
|
195
|
+
description="Rerank 后保留并返回的片段数。"
|
|
196
|
+
max={200}
|
|
197
|
+
/>
|
|
198
|
+
</div>
|
|
199
|
+
) : null}
|
|
200
|
+
|
|
205
201
|
<div className="space-y-2">
|
|
206
202
|
<FormField
|
|
207
203
|
control={form.control}
|
|
@@ -279,3 +275,65 @@ export function RetrievalParamsFields({
|
|
|
279
275
|
</>
|
|
280
276
|
);
|
|
281
277
|
}
|
|
278
|
+
|
|
279
|
+
function TopKNumberField({
|
|
280
|
+
form,
|
|
281
|
+
label,
|
|
282
|
+
hint,
|
|
283
|
+
}: {
|
|
284
|
+
form: UseFormReturn<RetrievalInput>;
|
|
285
|
+
label: string;
|
|
286
|
+
hint?: string;
|
|
287
|
+
}) {
|
|
288
|
+
return (
|
|
289
|
+
<FormField
|
|
290
|
+
control={form.control}
|
|
291
|
+
name="topK"
|
|
292
|
+
render={({ field }) => (
|
|
293
|
+
<FormItem className="space-y-1.5">
|
|
294
|
+
<div className="flex items-center gap-1">
|
|
295
|
+
<FormLabel className="leading-tight">{label}</FormLabel>
|
|
296
|
+
{hint ? (
|
|
297
|
+
<TooltipProvider delayDuration={150}>
|
|
298
|
+
<Tooltip>
|
|
299
|
+
<TooltipTrigger asChild>
|
|
300
|
+
<button
|
|
301
|
+
type="button"
|
|
302
|
+
tabIndex={-1}
|
|
303
|
+
aria-label="字段说明"
|
|
304
|
+
className="inline-flex h-5 w-5 items-center justify-center rounded text-muted-foreground/60 transition-colors hover:bg-[hsl(var(--muted))] hover:text-foreground"
|
|
305
|
+
>
|
|
306
|
+
<HelpCircle className="h-3.5 w-3.5" />
|
|
307
|
+
</button>
|
|
308
|
+
</TooltipTrigger>
|
|
309
|
+
<TooltipContent
|
|
310
|
+
side="top"
|
|
311
|
+
sideOffset={6}
|
|
312
|
+
className="z-[60] max-w-[240px] border border-[hsl(var(--border))] bg-[hsl(var(--popover))] px-3 py-2 text-xs leading-relaxed text-[hsl(var(--popover-foreground))] shadow-md"
|
|
313
|
+
>
|
|
314
|
+
{hint}
|
|
315
|
+
</TooltipContent>
|
|
316
|
+
</Tooltip>
|
|
317
|
+
</TooltipProvider>
|
|
318
|
+
) : null}
|
|
319
|
+
</div>
|
|
320
|
+
<FormControl>
|
|
321
|
+
<input
|
|
322
|
+
type="number"
|
|
323
|
+
min={0}
|
|
324
|
+
max={100}
|
|
325
|
+
className="flex h-9 w-full rounded-md border border-[hsl(var(--border))] bg-[hsl(var(--card))] px-3 py-1 text-sm transition-colors focus-visible:border-[hsl(var(--primary))] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[hsl(var(--primary)/0.2)]"
|
|
326
|
+
{...field}
|
|
327
|
+
onChange={(event) =>
|
|
328
|
+
field.onChange(
|
|
329
|
+
event.target.value ? Number(event.target.value) : undefined,
|
|
330
|
+
)
|
|
331
|
+
}
|
|
332
|
+
/>
|
|
333
|
+
</FormControl>
|
|
334
|
+
<FormMessage />
|
|
335
|
+
</FormItem>
|
|
336
|
+
)}
|
|
337
|
+
/>
|
|
338
|
+
);
|
|
339
|
+
}
|
package/dist/dashboard-runtime/dashboard/src/components/retrieval/retrieval-rerank-fields.tsx
CHANGED
|
@@ -19,6 +19,7 @@ import {
|
|
|
19
19
|
SelectTrigger,
|
|
20
20
|
SelectValue,
|
|
21
21
|
} from "@/components/ui/select";
|
|
22
|
+
import { Slider } from "@/components/ui/slider";
|
|
22
23
|
import type { RetrievalInput } from "@/schemas/retrieval";
|
|
23
24
|
|
|
24
25
|
interface RerankFieldsProps {
|
|
@@ -106,32 +107,63 @@ function RrfFields({ form }: { form: UseFormReturn<RetrievalInput> }) {
|
|
|
106
107
|
}
|
|
107
108
|
|
|
108
109
|
function WeightFields({ form }: { form: UseFormReturn<RetrievalInput> }) {
|
|
110
|
+
// WEIGHT rerank weights are bounded 0–1 floats — the previous "0 ~ 1"
|
|
111
|
+
// FormDescription read as a clunky bottom caption. A slider with the
|
|
112
|
+
// numeric value pinned inline next to the label communicates the
|
|
113
|
+
// range visually and gives instant tactile feedback, no caption needed.
|
|
109
114
|
return (
|
|
110
|
-
<RerankPanel cols={
|
|
111
|
-
<
|
|
112
|
-
|
|
113
|
-
name="weightDense"
|
|
114
|
-
label="向量权重"
|
|
115
|
-
step={0.1}
|
|
116
|
-
min={0}
|
|
117
|
-
max={1}
|
|
118
|
-
placeholder="0.5"
|
|
119
|
-
description="0 ~ 1"
|
|
120
|
-
/>
|
|
121
|
-
<NumField
|
|
122
|
-
form={form}
|
|
123
|
-
name="weightFullText"
|
|
124
|
-
label="全文权重"
|
|
125
|
-
step={0.1}
|
|
126
|
-
min={0}
|
|
127
|
-
max={1}
|
|
128
|
-
placeholder="0.5"
|
|
129
|
-
description="0 ~ 1"
|
|
130
|
-
/>
|
|
115
|
+
<RerankPanel cols={1}>
|
|
116
|
+
<WeightSliderField form={form} name="weightDense" label="向量权重" />
|
|
117
|
+
<WeightSliderField form={form} name="weightFullText" label="全文权重" />
|
|
131
118
|
</RerankPanel>
|
|
132
119
|
);
|
|
133
120
|
}
|
|
134
121
|
|
|
122
|
+
function WeightSliderField({
|
|
123
|
+
form,
|
|
124
|
+
name,
|
|
125
|
+
label,
|
|
126
|
+
}: {
|
|
127
|
+
form: UseFormReturn<RetrievalInput>;
|
|
128
|
+
name: "weightDense" | "weightFullText";
|
|
129
|
+
label: string;
|
|
130
|
+
}) {
|
|
131
|
+
return (
|
|
132
|
+
<FormField
|
|
133
|
+
control={form.control}
|
|
134
|
+
name={name}
|
|
135
|
+
render={({ field }) => {
|
|
136
|
+
const value =
|
|
137
|
+
typeof field.value === "number" && Number.isFinite(field.value)
|
|
138
|
+
? field.value
|
|
139
|
+
: 0.5;
|
|
140
|
+
return (
|
|
141
|
+
<FormItem>
|
|
142
|
+
<div className="flex items-center justify-between gap-3">
|
|
143
|
+
<FormLabel>{label}</FormLabel>
|
|
144
|
+
<span className="rounded bg-[hsl(var(--secondary))] px-2 py-0.5 text-xs font-medium tabular-nums text-[hsl(var(--foreground))]">
|
|
145
|
+
{value.toFixed(2)}
|
|
146
|
+
</span>
|
|
147
|
+
</div>
|
|
148
|
+
<FormControl>
|
|
149
|
+
<Slider
|
|
150
|
+
min={0}
|
|
151
|
+
max={1}
|
|
152
|
+
step={0.05}
|
|
153
|
+
value={[value]}
|
|
154
|
+
onValueChange={(values) => field.onChange(values[0] ?? 0)}
|
|
155
|
+
onBlur={field.onBlur}
|
|
156
|
+
aria-label={label}
|
|
157
|
+
/>
|
|
158
|
+
</FormControl>
|
|
159
|
+
<FormMessage />
|
|
160
|
+
</FormItem>
|
|
161
|
+
);
|
|
162
|
+
}}
|
|
163
|
+
/>
|
|
164
|
+
);
|
|
165
|
+
}
|
|
166
|
+
|
|
135
167
|
/** Providers currently wired up on the server side. Kept inline because the
|
|
136
168
|
* list is short and the settings page uses the same hard-coded catalogue. */
|
|
137
169
|
const PROVIDER_OPTIONS: { value: string; label: string }[] = [
|
|
@@ -185,10 +217,15 @@ function RerankPanel({
|
|
|
185
217
|
cols = 3,
|
|
186
218
|
children,
|
|
187
219
|
}: {
|
|
188
|
-
cols?: 2 | 3;
|
|
220
|
+
cols?: 1 | 2 | 3;
|
|
189
221
|
children: React.ReactNode;
|
|
190
222
|
}) {
|
|
191
|
-
const colClass =
|
|
223
|
+
const colClass =
|
|
224
|
+
cols === 1
|
|
225
|
+
? "grid-cols-1"
|
|
226
|
+
: cols === 2
|
|
227
|
+
? "sm:grid-cols-2"
|
|
228
|
+
: "sm:grid-cols-3";
|
|
192
229
|
return (
|
|
193
230
|
<div className={"grid gap-3 px-0.5 pt-1 " + colClass}>{children}</div>
|
|
194
231
|
);
|
|
@@ -25,7 +25,7 @@ export function EmptyState({
|
|
|
25
25
|
<Icon className="text-primary" size={36} strokeWidth={1.75} />
|
|
26
26
|
</div>
|
|
27
27
|
)}
|
|
28
|
-
<h3 className="mb-2
|
|
28
|
+
<h3 className="mb-2 text-base font-semibold text-foreground">
|
|
29
29
|
{title}
|
|
30
30
|
</h3>
|
|
31
31
|
<p className="mb-6 max-w-sm text-sm text-muted-foreground">
|
|
@@ -31,7 +31,7 @@ export function ErrorState({ error, onRetry }: ErrorStateProps) {
|
|
|
31
31
|
strokeWidth={1.75}
|
|
32
32
|
/>
|
|
33
33
|
</div>
|
|
34
|
-
<h3 className="mb-2
|
|
34
|
+
<h3 className="mb-2 text-base font-semibold text-foreground">
|
|
35
35
|
Failed to load data
|
|
36
36
|
</h3>
|
|
37
37
|
<p className="mb-1 max-w-md text-sm text-muted-foreground">
|
|
@@ -1,11 +1,23 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import { useEffect, useMemo } from "react";
|
|
4
|
-
import { Loader2, RefreshCw } from "lucide-react";
|
|
3
|
+
import { useEffect, useMemo, useState } from "react";
|
|
4
|
+
import { Check, ChevronsUpDown, Loader2, Plus, RefreshCw } from "lucide-react";
|
|
5
5
|
|
|
6
6
|
import { Button } from "@/components/ui/button";
|
|
7
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
Command,
|
|
9
|
+
CommandEmpty,
|
|
10
|
+
CommandGroup,
|
|
11
|
+
CommandInput,
|
|
12
|
+
CommandItem,
|
|
13
|
+
CommandList,
|
|
14
|
+
} from "@/components/ui/command";
|
|
8
15
|
import { Label } from "@/components/ui/label";
|
|
16
|
+
import {
|
|
17
|
+
Popover,
|
|
18
|
+
PopoverContent,
|
|
19
|
+
PopoverTrigger,
|
|
20
|
+
} from "@/components/ui/popover";
|
|
9
21
|
import {
|
|
10
22
|
Select,
|
|
11
23
|
SelectContent,
|
|
@@ -15,18 +27,15 @@ import {
|
|
|
15
27
|
} from "@/components/ui/select";
|
|
16
28
|
import { useLLMProviders } from "@/hooks/use-llm-providers";
|
|
17
29
|
import { useLLMProviderModels } from "@/hooks/use-llm-provider-models";
|
|
30
|
+
import { cn } from "@/lib/utils";
|
|
18
31
|
|
|
19
32
|
interface LLMModelSelectorProps {
|
|
20
33
|
providerId: string;
|
|
21
34
|
model: string;
|
|
22
35
|
onProviderChange: (providerId: string, defaultModel?: string) => void;
|
|
23
36
|
onModelChange: (model: string) => void;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* model id (useful when the provider's model list isn't exhaustive).
|
|
27
|
-
* Defaults to false; the chat config drawer keeps the dropdown only,
|
|
28
|
-
* while the QA tester opts in.
|
|
29
|
-
*/
|
|
37
|
+
/** @deprecated Free-text typing is now part of the unified combobox in
|
|
38
|
+
* every surface; this flag is ignored. Kept for callsite compatibility. */
|
|
30
39
|
allowFreeText?: boolean;
|
|
31
40
|
/** Auto-select the first provider on mount when no providerId is set. */
|
|
32
41
|
autoSelectFirst?: boolean;
|
|
@@ -37,17 +46,19 @@ interface LLMModelSelectorProps {
|
|
|
37
46
|
}
|
|
38
47
|
|
|
39
48
|
/**
|
|
40
|
-
* Reusable Provider + Model selector.
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
49
|
+
* Reusable Provider + Model selector. The provider stays a plain Select
|
|
50
|
+
* (the list is small and authoritative), but the model widget is a
|
|
51
|
+
* typeable combobox: it filters known model ids as the user types and
|
|
52
|
+
* always offers a `使用 "<typed>"` row so callers can submit a model
|
|
53
|
+
* the upstream `/models` endpoint did not return — useful when a
|
|
54
|
+
* provider exposes a partial list, or when the user wants to test a
|
|
55
|
+
* preview / private model id.
|
|
44
56
|
*/
|
|
45
57
|
export function LLMModelSelector({
|
|
46
58
|
providerId,
|
|
47
59
|
model,
|
|
48
60
|
onProviderChange,
|
|
49
61
|
onModelChange,
|
|
50
|
-
allowFreeText = false,
|
|
51
62
|
autoSelectFirst = false,
|
|
52
63
|
providerLabel = "Provider",
|
|
53
64
|
modelLabel = "Model",
|
|
@@ -101,7 +112,7 @@ export function LLMModelSelector({
|
|
|
101
112
|
providersLoading
|
|
102
113
|
? "加载中..."
|
|
103
114
|
: providers.length === 0
|
|
104
|
-
? "
|
|
115
|
+
? "请先在「模型提供商」中创建配置"
|
|
105
116
|
: "选择 Provider"
|
|
106
117
|
}
|
|
107
118
|
/>
|
|
@@ -135,62 +146,141 @@ export function LLMModelSelector({
|
|
|
135
146
|
刷新列表
|
|
136
147
|
</Button>
|
|
137
148
|
</div>
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
<SelectTrigger className="flex-1">
|
|
146
|
-
<SelectValue placeholder="选择或输入模型名" />
|
|
147
|
-
</SelectTrigger>
|
|
148
|
-
<SelectContent>
|
|
149
|
-
{modelOptions.length === 0 ? (
|
|
150
|
-
<div className="px-3 py-2 text-xs text-muted-foreground">
|
|
151
|
-
点击「刷新列表」拉取可用模型
|
|
152
|
-
</div>
|
|
153
|
-
) : (
|
|
154
|
-
modelOptions.map((id) => (
|
|
155
|
-
<SelectItem key={id} value={id}>
|
|
156
|
-
{id}
|
|
157
|
-
</SelectItem>
|
|
158
|
-
))
|
|
159
|
-
)}
|
|
160
|
-
</SelectContent>
|
|
161
|
-
</Select>
|
|
162
|
-
<Input
|
|
163
|
-
placeholder="或手动输入"
|
|
164
|
-
value={model}
|
|
165
|
-
onChange={(e) => onModelChange(e.target.value)}
|
|
166
|
-
className="flex-1"
|
|
167
|
-
/>
|
|
168
|
-
</div>
|
|
169
|
-
) : (
|
|
170
|
-
<Select
|
|
171
|
-
value={model}
|
|
172
|
-
onValueChange={onModelChange}
|
|
173
|
-
disabled={!providerId}
|
|
174
|
-
>
|
|
175
|
-
<SelectTrigger>
|
|
176
|
-
<SelectValue placeholder="选择模型" />
|
|
177
|
-
</SelectTrigger>
|
|
178
|
-
<SelectContent>
|
|
179
|
-
{modelOptions.length === 0 ? (
|
|
180
|
-
<SelectItem value="__empty" disabled>
|
|
181
|
-
无可用模型
|
|
182
|
-
</SelectItem>
|
|
183
|
-
) : (
|
|
184
|
-
modelOptions.map((id) => (
|
|
185
|
-
<SelectItem key={id} value={id}>
|
|
186
|
-
{id}
|
|
187
|
-
</SelectItem>
|
|
188
|
-
))
|
|
189
|
-
)}
|
|
190
|
-
</SelectContent>
|
|
191
|
-
</Select>
|
|
192
|
-
)}
|
|
149
|
+
<LLMModelCombobox
|
|
150
|
+
value={model}
|
|
151
|
+
options={modelOptions}
|
|
152
|
+
onChange={onModelChange}
|
|
153
|
+
disabled={!providerId}
|
|
154
|
+
fetching={modelsFetching}
|
|
155
|
+
/>
|
|
193
156
|
</div>
|
|
194
157
|
</div>
|
|
195
158
|
);
|
|
196
159
|
}
|
|
160
|
+
|
|
161
|
+
interface LLMModelComboboxProps {
|
|
162
|
+
value: string;
|
|
163
|
+
options: string[];
|
|
164
|
+
onChange: (model: string) => void;
|
|
165
|
+
disabled?: boolean;
|
|
166
|
+
fetching?: boolean;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Typeable model picker with custom-value escape hatch. Built on
|
|
171
|
+
* Popover + Command (cmdk) so the input filters the known list as the
|
|
172
|
+
* user types; if no exact match exists, an "use <typed>" row appears at
|
|
173
|
+
* the bottom of the list, letting the user commit a model id the
|
|
174
|
+
* upstream `/models` endpoint never returned.
|
|
175
|
+
*/
|
|
176
|
+
function LLMModelCombobox({
|
|
177
|
+
value,
|
|
178
|
+
options,
|
|
179
|
+
onChange,
|
|
180
|
+
disabled,
|
|
181
|
+
fetching,
|
|
182
|
+
}: LLMModelComboboxProps) {
|
|
183
|
+
const [open, setOpen] = useState(false);
|
|
184
|
+
const [query, setQuery] = useState("");
|
|
185
|
+
|
|
186
|
+
// We do our own filtering so we can show a "use custom" row even when
|
|
187
|
+
// the typed value doesn't match any existing option.
|
|
188
|
+
const trimmed = query.trim();
|
|
189
|
+
const filtered = useMemo(() => {
|
|
190
|
+
if (!trimmed) return options;
|
|
191
|
+
const lower = trimmed.toLowerCase();
|
|
192
|
+
return options.filter((opt) => opt.toLowerCase().includes(lower));
|
|
193
|
+
}, [options, trimmed]);
|
|
194
|
+
const hasExactMatch = options.some(
|
|
195
|
+
(opt) => opt.toLowerCase() === trimmed.toLowerCase(),
|
|
196
|
+
);
|
|
197
|
+
const showCustom = trimmed.length > 0 && !hasExactMatch;
|
|
198
|
+
|
|
199
|
+
const commit = (next: string) => {
|
|
200
|
+
onChange(next);
|
|
201
|
+
setQuery("");
|
|
202
|
+
setOpen(false);
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
return (
|
|
206
|
+
<Popover open={open} onOpenChange={setOpen}>
|
|
207
|
+
<PopoverTrigger asChild>
|
|
208
|
+
<Button
|
|
209
|
+
type="button"
|
|
210
|
+
variant="outline"
|
|
211
|
+
role="combobox"
|
|
212
|
+
aria-expanded={open}
|
|
213
|
+
disabled={disabled}
|
|
214
|
+
className="w-full justify-between font-normal"
|
|
215
|
+
>
|
|
216
|
+
<span
|
|
217
|
+
className={cn(
|
|
218
|
+
"truncate text-left",
|
|
219
|
+
!value && "text-[hsl(var(--subtle))]",
|
|
220
|
+
)}
|
|
221
|
+
>
|
|
222
|
+
{value || "选择或输入模型名"}
|
|
223
|
+
</span>
|
|
224
|
+
<ChevronsUpDown className="h-4 w-4 shrink-0 opacity-50" />
|
|
225
|
+
</Button>
|
|
226
|
+
</PopoverTrigger>
|
|
227
|
+
<PopoverContent
|
|
228
|
+
align="start"
|
|
229
|
+
// cmdk's Command primitive sizes to its content, so widen the
|
|
230
|
+
// popover to match the trigger width for visual continuity.
|
|
231
|
+
className="w-[var(--radix-popover-trigger-width)] p-0"
|
|
232
|
+
>
|
|
233
|
+
<Command shouldFilter={false}>
|
|
234
|
+
<CommandInput
|
|
235
|
+
placeholder="搜索或输入模型名"
|
|
236
|
+
value={query}
|
|
237
|
+
onValueChange={setQuery}
|
|
238
|
+
/>
|
|
239
|
+
<CommandList>
|
|
240
|
+
{filtered.length === 0 && !showCustom ? (
|
|
241
|
+
<CommandEmpty>
|
|
242
|
+
{fetching
|
|
243
|
+
? "正在拉取模型列表..."
|
|
244
|
+
: options.length === 0
|
|
245
|
+
? "点击「刷新列表」拉取可用模型"
|
|
246
|
+
: "无匹配结果"}
|
|
247
|
+
</CommandEmpty>
|
|
248
|
+
) : null}
|
|
249
|
+
{filtered.length > 0 && (
|
|
250
|
+
<CommandGroup heading={showCustom ? "可选模型" : undefined}>
|
|
251
|
+
{filtered.map((id) => (
|
|
252
|
+
<CommandItem
|
|
253
|
+
key={id}
|
|
254
|
+
value={id}
|
|
255
|
+
onSelect={() => commit(id)}
|
|
256
|
+
>
|
|
257
|
+
<Check
|
|
258
|
+
className={cn(
|
|
259
|
+
"h-4 w-4",
|
|
260
|
+
value === id ? "opacity-100" : "opacity-0",
|
|
261
|
+
)}
|
|
262
|
+
/>
|
|
263
|
+
<span className="truncate">{id}</span>
|
|
264
|
+
</CommandItem>
|
|
265
|
+
))}
|
|
266
|
+
</CommandGroup>
|
|
267
|
+
)}
|
|
268
|
+
{showCustom && (
|
|
269
|
+
<CommandGroup heading="使用自定义">
|
|
270
|
+
<CommandItem
|
|
271
|
+
value={`__custom__${trimmed}`}
|
|
272
|
+
onSelect={() => commit(trimmed)}
|
|
273
|
+
>
|
|
274
|
+
<Plus className="h-4 w-4 text-[hsl(var(--primary))]" />
|
|
275
|
+
<span className="truncate">
|
|
276
|
+
使用 "{trimmed}"
|
|
277
|
+
</span>
|
|
278
|
+
</CommandItem>
|
|
279
|
+
</CommandGroup>
|
|
280
|
+
)}
|
|
281
|
+
</CommandList>
|
|
282
|
+
</Command>
|
|
283
|
+
</PopoverContent>
|
|
284
|
+
</Popover>
|
|
285
|
+
);
|
|
286
|
+
}
|
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
|
|
2
1
|
"use client";
|
|
3
2
|
|
|
4
3
|
import { useSyncExternalStore } from "react";
|
|
5
4
|
import { formatDistanceToNow, format } from "date-fns";
|
|
6
5
|
import { zhCN } from "date-fns/locale";
|
|
7
6
|
|
|
7
|
+
import {
|
|
8
|
+
Tooltip,
|
|
9
|
+
TooltipContent,
|
|
10
|
+
TooltipProvider,
|
|
11
|
+
TooltipTrigger,
|
|
12
|
+
} from "@/components/ui/tooltip";
|
|
13
|
+
|
|
8
14
|
// Shared singleton timer — all RelativeTime instances share one tick
|
|
9
15
|
let tick = 0;
|
|
10
16
|
const listeners: Set<() => void> = new Set();
|
|
@@ -39,21 +45,39 @@ interface RelativeTimeProps {
|
|
|
39
45
|
timestamp: number;
|
|
40
46
|
}
|
|
41
47
|
|
|
48
|
+
/**
|
|
49
|
+
* Shows a relative-time label (e.g. "2 小时前") with a styled tooltip
|
|
50
|
+
* exposing the absolute local-timezone timestamp on hover. Replaces
|
|
51
|
+
* the previous native `title` attribute, which had a 1.5 s delay and
|
|
52
|
+
* unstyled OS tooltip; the shadcn Tooltip surfaces instantly with the
|
|
53
|
+
* dashboard's own typography + shadow tokens.
|
|
54
|
+
*/
|
|
42
55
|
export function RelativeTime({ timestamp }: RelativeTimeProps) {
|
|
43
56
|
useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
|
|
44
57
|
|
|
45
|
-
const
|
|
58
|
+
const date = new Date(timestamp);
|
|
59
|
+
const relativeText = formatDistanceToNow(date, {
|
|
46
60
|
addSuffix: true,
|
|
47
61
|
locale: zhCN,
|
|
48
62
|
});
|
|
49
63
|
|
|
50
|
-
|
|
64
|
+
// `format` from date-fns uses the runtime's local timezone implicitly;
|
|
65
|
+
// showing the timezone offset tag (e.g. UTC+8) makes that explicit so
|
|
66
|
+
// users in different regions can interpret the value unambiguously.
|
|
67
|
+
const localText = format(date, "yyyy-MM-dd HH:mm:ss (OOOO)", {
|
|
51
68
|
locale: zhCN,
|
|
52
69
|
});
|
|
53
70
|
|
|
54
71
|
return (
|
|
55
|
-
<
|
|
56
|
-
|
|
57
|
-
|
|
72
|
+
<TooltipProvider delayDuration={150}>
|
|
73
|
+
<Tooltip>
|
|
74
|
+
<TooltipTrigger asChild>
|
|
75
|
+
<span className="cursor-default text-sm text-muted-foreground">
|
|
76
|
+
{relativeText}
|
|
77
|
+
</span>
|
|
78
|
+
</TooltipTrigger>
|
|
79
|
+
<TooltipContent side="top">{localText}</TooltipContent>
|
|
80
|
+
</Tooltip>
|
|
81
|
+
</TooltipProvider>
|
|
58
82
|
);
|
|
59
83
|
}
|