@tablestore/tablestore-agent-cli 0.2.1 → 0.2.4
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 +9 -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 +40 -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/build-manifest.json +5 -5
- package/dist/dashboard-runtime/dashboard/.next/prerender-manifest.json +3 -3
- 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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/runtime/context/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/index.html +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/index.rsc +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_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/chunks/0p91_next_dist_esm_build_templates_app-route_0n~ec7s.js +9 -6
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__02p1x3t._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0fglxiw._.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 +1 -1
- 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]__08faq-z._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0c94d.y._.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]__13ylf4x._.js → [root-of-the-server]__0lgg04c._.js} +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__10rkv6z._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_01-2v37._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_01ag-vl._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_09yzbcp._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0atzifq._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0f4u0.1._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0gbt~hy._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0gl7kh7._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0j-q~ro._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0jghj2_._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0jlyg05._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0n4gd_6._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/{_0l~-9i0._.js → _0tdjkbc._.js} +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0tej2s.._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_10u~-xc._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_12r9c8h._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0.glq39._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_00ofp7q._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_05.qn9h._.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_0xf3ffa._.js +1 -1
- 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_(dashboard)_memory_[store]_settings_page_tsx_0y26.xu._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_memory_[store]_units_page_tsx_0.6xnei._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_components_0ls1exu._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_components_0ugdjlb._.js +1 -1
- 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/00wmf85833643.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/02tj1_rhgobzv.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/{0mea2ylxe.umh.js → 02zf3qddfaw~u.js} +1 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/039i70t10axdd.css +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/04bfame9rk.3d.js +5 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/07rwb_uq9qcx4.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/07ygw8215kyvc.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0b5hr027rat4w.js +138 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/{0__g1ogrdh412.js → 0bkm-5yza5~d2.js} +1 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/{0lrw.bnws62y9.js → 0d7d.b.v9noym.js} +1 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/{0cto67_iw~p9z.js → 0fdofp-3kkc4g.js} +1 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0i8hdbek9j-fu.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0ioivx4pbmayb.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0j-v5f_oscvfu.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/{0lp2g_27uyhuz.js → 0je7fmsrz2vok.js} +1 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0jukioxtp1mn3.js +138 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0klidr2i6cd.g.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0k~bkh1586r2i.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0nakvv2p1kjnf.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0t5vdnq4s.2yv.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0un~rqes29pcr.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0v.u57bsjppd_.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/{0fagnytrt.3oe.js → 0veza1g0elxa7.js} +1 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0x3w~yxvm1xsq.js +4 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0x5gol39unrgb.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/12s59v_sk0q-z.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/{06uuhz24tvdt..js → 14~eqof4660i3.js} +1 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/16y3764x-fh1n.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/17mcnyr~1j7ih.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/{turbopack-0w.hw6u8qra5z.js → turbopack-0~gu0g2v-1f11.js} +1 -1
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/chat/page.tsx +5 -0
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/knowledge-base/[name]/documents/documents-client.tsx +4 -1
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/knowledge-base/[name]/layout-client.tsx +62 -26
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/messages/page.tsx +8 -4
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/requests/page.tsx +6 -2
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/requests/request-detail-dialog.tsx +9 -9
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/requests/requests-table.tsx +2 -2
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/search/page.tsx +5 -1
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/settings/page.tsx +56 -17
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/units/page.tsx +11 -7
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/create/page.tsx +1 -1
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/page.tsx +1 -1
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/knowledge-bases/[name]/documents/[docId]/route.ts +67 -0
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/llm/chat/memory-helpers.ts +45 -0
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/llm/chat/route.ts +334 -16
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/logs/client/route.ts +13 -0
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/oss/list/route.ts +1 -0
- package/dist/dashboard-runtime/dashboard/src/app/globals.css +23 -0
- package/dist/dashboard-runtime/dashboard/src/components/chat/chat-config-context.tsx +116 -19
- package/dist/dashboard-runtime/dashboard/src/components/chat/chat-mount-config.tsx +5 -0
- package/dist/dashboard-runtime/dashboard/src/components/chat/memory-bind-section.tsx +372 -0
- package/dist/dashboard-runtime/dashboard/src/components/chat/mount-retrieval-dialog.tsx +360 -0
- package/dist/dashboard-runtime/dashboard/src/components/chat/mount-row.tsx +49 -5
- package/dist/dashboard-runtime/dashboard/src/components/chat/unified-retrieval-section.tsx +61 -26
- package/dist/dashboard-runtime/dashboard/src/components/documents/doc-chunks-dialog.tsx +72 -20
- package/dist/dashboard-runtime/dashboard/src/components/documents/doc-detail-panel.tsx +578 -76
- package/dist/dashboard-runtime/dashboard/src/components/documents/doc-upload-dialog.tsx +9 -81
- package/dist/dashboard-runtime/dashboard/src/components/documents/oss-browser.tsx +42 -26
- package/dist/dashboard-runtime/dashboard/src/components/instance/connect-instance-form.tsx +5 -0
- package/dist/dashboard-runtime/dashboard/src/components/knowledge-base/embedding-config-form.tsx +16 -2
- package/dist/dashboard-runtime/dashboard/src/components/knowledge-base/kb-card.tsx +37 -24
- package/dist/dashboard-runtime/dashboard/src/components/knowledge-base/kb-create-form.tsx +173 -86
- package/dist/dashboard-runtime/dashboard/src/components/knowledge-base/kb-settings-form.tsx +319 -280
- package/dist/dashboard-runtime/dashboard/src/components/layout/detail-sidebar.tsx +47 -18
- package/dist/dashboard-runtime/dashboard/src/components/layout/sidebar-instance-card.tsx +2 -2
- package/dist/dashboard-runtime/dashboard/src/components/memory/memory-add-dialog.tsx +2 -2
- package/dist/dashboard-runtime/dashboard/src/components/memory/memory-create-form.tsx +84 -56
- package/dist/dashboard-runtime/dashboard/src/components/memory/memory-edit-dialog.tsx +2 -2
- package/dist/dashboard-runtime/dashboard/src/components/memory/memory-messages-table.tsx +3 -3
- package/dist/dashboard-runtime/dashboard/src/components/memory/memory-requests-table.tsx +12 -12
- package/dist/dashboard-runtime/dashboard/src/components/memory/memory-scope-bar.tsx +20 -11
- package/dist/dashboard-runtime/dashboard/src/components/memory/memory-search-form.tsx +7 -7
- package/dist/dashboard-runtime/dashboard/src/components/memory/memory-search-results.tsx +6 -6
- package/dist/dashboard-runtime/dashboard/src/components/memory/memory-settings-form.tsx +90 -21
- package/dist/dashboard-runtime/dashboard/src/components/memory/memory-store-card.tsx +1 -1
- package/dist/dashboard-runtime/dashboard/src/components/memory/memory-store-list.tsx +1 -1
- package/dist/dashboard-runtime/dashboard/src/components/memory/memory-unit-detail-panel.tsx +4 -4
- package/dist/dashboard-runtime/dashboard/src/components/memory/memory-unit-table.tsx +2 -2
- package/dist/dashboard-runtime/dashboard/src/components/qa/qa-message.tsx +216 -5
- package/dist/dashboard-runtime/dashboard/src/components/retrieval/retrieval-form.tsx +241 -24
- package/dist/dashboard-runtime/dashboard/src/components/retrieval/retrieval-rerank-fields.tsx +1 -0
- package/dist/dashboard-runtime/dashboard/src/components/retrieval/retrieval-result-card.tsx +52 -4
- package/dist/dashboard-runtime/dashboard/src/components/shared/metadata-field-input.tsx +54 -0
- package/dist/dashboard-runtime/dashboard/src/components/shared/status-badge.tsx +10 -5
- package/dist/dashboard-runtime/dashboard/src/components/ui/nav-tab-bar.tsx +1 -1
- package/dist/dashboard-runtime/dashboard/src/hooks/use-chat-history.ts +60 -5
- package/dist/dashboard-runtime/dashboard/src/hooks/use-document.ts +29 -0
- package/dist/dashboard-runtime/dashboard/src/hooks/use-oss-list.ts +7 -5
- package/dist/dashboard-runtime/dashboard/src/hooks/use-qa-chat.ts +65 -11
- package/dist/dashboard-runtime/dashboard/src/hooks/use-update-document.ts +15 -0
- package/dist/dashboard-runtime/dashboard/src/lib/api-error-toast.ts +62 -0
- package/dist/dashboard-runtime/dashboard/src/lib/constants.ts +8 -0
- package/dist/dashboard-runtime/dashboard/src/lib/metadata-form.ts +88 -0
- package/dist/dashboard-runtime/dashboard/src/lib/query-keys.ts +14 -0
- package/dist/dashboard-runtime/dashboard/src/lib/server/api-helpers.ts +18 -5
- package/dist/dashboard-runtime/dashboard/src/lib/server/llm-client.ts +19 -1
- package/dist/dashboard-runtime/dashboard/src/lib/server/oss-client.ts +45 -16
- package/dist/dashboard-runtime/dashboard/src/schemas/knowledge-base.ts +6 -0
- package/dist/dashboard-runtime/dashboard/src/schemas/llm-chat.ts +20 -0
- package/dist/dashboard-runtime/dashboard/src/schemas/retrieval.ts +46 -27
- package/dist/dashboard-runtime/dashboard/src/services/api-client.ts +31 -2
- package/dist/dashboard-runtime/dashboard/src/services/documents.ts +36 -3
- package/dist/dashboard-runtime/dashboard/src/types/knowledge-base.ts +10 -0
- package/dist/dashboard-runtime/dashboard/src/types/llm-chat.ts +33 -0
- package/dist/dashboard-runtime/dashboard/src/types/retrieval.ts +9 -4
- package/dist/dashboard-runtime/dashboard/tailwind.config.ts +4 -0
- package/dist/dashboard-runtime/dashboard/vitest.config.mjs +5 -2
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.d.ts +1 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.d.ts.map +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.js +4 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.js.map +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/logging.js +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 +21 -5
- 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/kb-client.d.ts +1 -0
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.d.ts.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.js +4 -0
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.js.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/logging.js +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 +21 -5
- package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/types.d.ts.map +1 -1
- package/dist/utils/read-image-input.d.ts +47 -0
- package/dist/utils/read-image-input.d.ts.map +1 -0
- package/dist/utils/read-image-input.js +89 -0
- package/dist/utils/read-image-input.js.map +1 -0
- package/package.json +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0aqzu8w._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0hozzu6._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0kd7szs._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0tr8-3u._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0xzh5yw._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_12~3vfk._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_13_lb.o._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0ejgygh._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_components_ui_0-tuf-h._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/00tz~p479bdgl.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/02i9olo-312mq.js +0 -138
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/062k9jbtd9.lv.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/069zf4m5f.se2.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/07cp19da_kfld.js +0 -5
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/086esp1n941jl.js +0 -138
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/09uxq~55qug8c.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0d29.l~3ip181.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0ewpzgu_qf0wf.js +0 -4
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0jc31diex030o.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0k79upjc40aky.css +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0snnsfosp3~gq.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0t0yqi68~eil6.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0th7u6qvdy3x2.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0tmwptel_4y0o.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0u6_s-0w8.yr..js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0u9wtl06_b72x.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0v9d5wl9nsva3.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0~kfzxrhgbkaz.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/14.dp0-y_mhjo.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/15bzqpm440jvz.js +0 -1
- /package/dist/dashboard-runtime/dashboard/.next/static/{doYIl-pd6Sqax3bfUgN3q → EIbKHHti0Z1ephKfJzCKH}/_buildManifest.js +0 -0
- /package/dist/dashboard-runtime/dashboard/.next/static/{doYIl-pd6Sqax3bfUgN3q → EIbKHHti0Z1ephKfJzCKH}/_clientMiddlewareManifest.js +0 -0
- /package/dist/dashboard-runtime/dashboard/.next/static/{doYIl-pd6Sqax3bfUgN3q → EIbKHHti0Z1ephKfJzCKH}/_ssgManifest.js +0 -0
package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/knowledge-base/[name]/layout-client.tsx
CHANGED
|
@@ -112,6 +112,12 @@ function KBDetailShell({
|
|
|
112
112
|
}) {
|
|
113
113
|
const searchParams = useSearchParams();
|
|
114
114
|
const activeSubspace = useSubspaceOptional()?.subspace ?? null;
|
|
115
|
+
const isMultimodal = knowledgeBase.multimodal === true;
|
|
116
|
+
const hasCaption =
|
|
117
|
+
knowledgeBase.ingestConfiguration?.enableTableFormulaCaption === true;
|
|
118
|
+
const hasSubspace = !!knowledgeBase.subspace;
|
|
119
|
+
const tags = knowledgeBase.tags ?? [];
|
|
120
|
+
const description = knowledgeBase.description;
|
|
115
121
|
|
|
116
122
|
// Carry the subspace querystring through to each menu link so
|
|
117
123
|
// middle-click / copy-link continues to land on the same scope.
|
|
@@ -128,6 +134,20 @@ function KBDetailShell({
|
|
|
128
134
|
icon: tab.icon,
|
|
129
135
|
}));
|
|
130
136
|
|
|
137
|
+
const pillClass =
|
|
138
|
+
"shrink-0 text-[10px] px-1.5 py-0.5 rounded-full bg-emerald-50 text-emerald-700 border border-emerald-200";
|
|
139
|
+
|
|
140
|
+
const nameNode = knowledgeBase.knowledgeBaseName;
|
|
141
|
+
|
|
142
|
+
const hasPills = isMultimodal || hasCaption || hasSubspace;
|
|
143
|
+
const pillsNode = hasPills ? (
|
|
144
|
+
<>
|
|
145
|
+
{isMultimodal ? <span className={pillClass}>多模态</span> : null}
|
|
146
|
+
{hasCaption ? <span className={pillClass}>Caption</span> : null}
|
|
147
|
+
{hasSubspace ? <span className={pillClass}>子空间</span> : null}
|
|
148
|
+
</>
|
|
149
|
+
) : null;
|
|
150
|
+
|
|
131
151
|
return (
|
|
132
152
|
<DetailLayout
|
|
133
153
|
sidebar={
|
|
@@ -135,9 +155,8 @@ function KBDetailShell({
|
|
|
135
155
|
<DetailSidebarHeader
|
|
136
156
|
icon={<BookOpenText />}
|
|
137
157
|
accent="primary"
|
|
138
|
-
name={
|
|
139
|
-
|
|
140
|
-
description={knowledgeBase.description}
|
|
158
|
+
name={nameNode}
|
|
159
|
+
pills={pillsNode}
|
|
141
160
|
actions={
|
|
142
161
|
<DropdownMenu>
|
|
143
162
|
<DropdownMenuTrigger asChild>
|
|
@@ -165,36 +184,53 @@ function KBDetailShell({
|
|
|
165
184
|
}
|
|
166
185
|
extra={
|
|
167
186
|
<>
|
|
168
|
-
{
|
|
169
|
-
<div className="
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
className="text-[10px]"
|
|
175
|
-
>
|
|
176
|
-
{tag}
|
|
177
|
-
</Badge>
|
|
178
|
-
))}
|
|
187
|
+
{description ? (
|
|
188
|
+
<div className="flex items-baseline gap-1.5">
|
|
189
|
+
<span className="shrink-0 text-[hsl(var(--muted-foreground))]">Desc:</span>
|
|
190
|
+
<span className="line-clamp-2 text-[hsl(var(--foreground))]/80">
|
|
191
|
+
{description}
|
|
192
|
+
</span>
|
|
179
193
|
</div>
|
|
180
194
|
) : null}
|
|
181
|
-
{
|
|
182
|
-
<div className="
|
|
183
|
-
<
|
|
184
|
-
|
|
185
|
-
|
|
195
|
+
{tags.length > 0 ? (
|
|
196
|
+
<div className="flex items-baseline gap-1.5">
|
|
197
|
+
<span className="shrink-0 text-[hsl(var(--muted-foreground))]">Tags:</span>
|
|
198
|
+
<div className="flex flex-wrap gap-1">
|
|
199
|
+
{tags.map((tag) => (
|
|
200
|
+
<Badge
|
|
201
|
+
key={tag}
|
|
202
|
+
variant="primary"
|
|
203
|
+
className="text-[10px]"
|
|
204
|
+
>
|
|
205
|
+
{tag}
|
|
206
|
+
</Badge>
|
|
207
|
+
))}
|
|
186
208
|
</div>
|
|
187
|
-
<SubspaceSwitcher />
|
|
188
209
|
</div>
|
|
189
210
|
) : null}
|
|
190
|
-
{
|
|
191
|
-
<div>
|
|
192
|
-
|
|
211
|
+
{hasSubspace ? (
|
|
212
|
+
<div className="flex items-center gap-1.5">
|
|
213
|
+
<span className="shrink-0 text-[hsl(var(--muted-foreground))]">子空间:</span>
|
|
214
|
+
<div className="min-w-0 flex-1">
|
|
215
|
+
<SubspaceSwitcher />
|
|
216
|
+
</div>
|
|
193
217
|
</div>
|
|
194
218
|
) : null}
|
|
195
|
-
{knowledgeBase.updatedAt ? (
|
|
196
|
-
<div>
|
|
197
|
-
|
|
219
|
+
{(knowledgeBase.createdAt || knowledgeBase.updatedAt) ? (
|
|
220
|
+
<div className="flex flex-wrap items-center gap-x-1.5 gap-y-0.5 text-[hsl(var(--muted-foreground))]">
|
|
221
|
+
{knowledgeBase.createdAt ? (
|
|
222
|
+
<span>
|
|
223
|
+
创建 <RelativeTime timestamp={knowledgeBase.createdAt} />
|
|
224
|
+
</span>
|
|
225
|
+
) : null}
|
|
226
|
+
{knowledgeBase.createdAt && knowledgeBase.updatedAt ? (
|
|
227
|
+
<span aria-hidden="true">·</span>
|
|
228
|
+
) : null}
|
|
229
|
+
{knowledgeBase.updatedAt ? (
|
|
230
|
+
<span>
|
|
231
|
+
更新 <RelativeTime timestamp={knowledgeBase.updatedAt} />
|
|
232
|
+
</span>
|
|
233
|
+
) : null}
|
|
198
234
|
</div>
|
|
199
235
|
) : null}
|
|
200
236
|
</>
|
package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/messages/page.tsx
CHANGED
|
@@ -27,7 +27,11 @@ export default function MemoryMessagesPage() {
|
|
|
27
27
|
const params = useParams<{ store: string }>();
|
|
28
28
|
const searchParams = useSearchParams();
|
|
29
29
|
const memoryStoreName = decodeURIComponent(params.store);
|
|
30
|
-
const
|
|
30
|
+
const searchParamsString = searchParams.toString();
|
|
31
|
+
const scope = useMemo(
|
|
32
|
+
() => buildMemoryScope(new URLSearchParams(searchParamsString)),
|
|
33
|
+
[searchParamsString],
|
|
34
|
+
);
|
|
31
35
|
|
|
32
36
|
/* ---- Time filter state (default: last 1 day) ---- */
|
|
33
37
|
const [windowMinutes, setWindowMinutes] = useState(1440);
|
|
@@ -158,7 +162,7 @@ export default function MemoryMessagesPage() {
|
|
|
158
162
|
return (
|
|
159
163
|
<div className="flex flex-col items-center justify-center rounded-xl border border-dashed py-16 text-muted-foreground">
|
|
160
164
|
<MessageSquare className="mb-2 h-5 w-5" />
|
|
161
|
-
<span className="text-sm"
|
|
165
|
+
<span className="text-sm">请先在上方范围栏中填写「应用」</span>
|
|
162
166
|
</div>
|
|
163
167
|
);
|
|
164
168
|
}
|
|
@@ -167,7 +171,7 @@ export default function MemoryMessagesPage() {
|
|
|
167
171
|
return (
|
|
168
172
|
<div className="flex flex-col items-center justify-center rounded-xl border border-dashed py-16 text-muted-foreground">
|
|
169
173
|
<MessageSquare className="mb-2 h-5 w-5" />
|
|
170
|
-
<span className="text-sm"
|
|
174
|
+
<span className="text-sm">请在上方范围栏中为所有字段设置具体值以查询短期记忆</span>
|
|
171
175
|
</div>
|
|
172
176
|
);
|
|
173
177
|
}
|
|
@@ -196,7 +200,7 @@ export default function MemoryMessagesPage() {
|
|
|
196
200
|
<div className="flex flex-col items-center justify-center py-20 text-muted-foreground">
|
|
197
201
|
<MessageSquare className="mb-2 h-5 w-5" />
|
|
198
202
|
<span className="text-sm">
|
|
199
|
-
{filters ? "该时间范围内暂无消息" : "
|
|
203
|
+
{filters ? "该时间范围内暂无消息" : "当前范围下暂无消息记录"}
|
|
200
204
|
</span>
|
|
201
205
|
</div>
|
|
202
206
|
);
|
package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/requests/page.tsx
CHANGED
|
@@ -49,7 +49,11 @@ export default function MemoryRequestsPage() {
|
|
|
49
49
|
const params = useParams<{ store: string }>();
|
|
50
50
|
const searchParams = useSearchParams();
|
|
51
51
|
const memoryStoreName = decodeURIComponent(params.store);
|
|
52
|
-
const
|
|
52
|
+
const searchParamsString = searchParams.toString();
|
|
53
|
+
const scope = useMemo(
|
|
54
|
+
() => buildMemoryScope(new URLSearchParams(searchParamsString)),
|
|
55
|
+
[searchParamsString],
|
|
56
|
+
);
|
|
53
57
|
|
|
54
58
|
/* ---- Time range state ---- */
|
|
55
59
|
const [windowMinutes, setWindowMinutes] = useState(DEFAULT_WINDOW_MIN);
|
|
@@ -185,7 +189,7 @@ export default function MemoryRequestsPage() {
|
|
|
185
189
|
return (
|
|
186
190
|
<div className="flex flex-col items-center justify-center rounded-xl border border-dashed py-16 text-muted-foreground">
|
|
187
191
|
<Search className="mb-2 h-5 w-5" />
|
|
188
|
-
<span className="text-sm"
|
|
192
|
+
<span className="text-sm">请先在上方范围栏中填写「应用」</span>
|
|
189
193
|
</div>
|
|
190
194
|
);
|
|
191
195
|
}
|
|
@@ -38,13 +38,13 @@ export function RequestDetailDialog({
|
|
|
38
38
|
</DialogHeader>
|
|
39
39
|
<div className="grid gap-4 sm:grid-cols-2">
|
|
40
40
|
{[
|
|
41
|
-
["
|
|
42
|
-
["
|
|
43
|
-
["
|
|
41
|
+
["操作", request.operation],
|
|
42
|
+
["请求 ID", request.requestId],
|
|
43
|
+
["目标 ID", request.targetId],
|
|
44
44
|
["响应码", request.responseStatus],
|
|
45
45
|
["耗时", fmtDur(request.latencyMs)],
|
|
46
46
|
["时间", fmtTs(request.createdAt)],
|
|
47
|
-
["
|
|
47
|
+
["入库状态", request.ingestStatus],
|
|
48
48
|
].map(([label, value]) => (
|
|
49
49
|
<div key={String(label)} className="space-y-1">
|
|
50
50
|
<p className="text-xs text-muted-foreground">{String(label)}</p>
|
|
@@ -55,17 +55,17 @@ export function RequestDetailDialog({
|
|
|
55
55
|
))}
|
|
56
56
|
{request.scope && (
|
|
57
57
|
<div className="space-y-1 sm:col-span-2">
|
|
58
|
-
<p className="text-xs text-muted-foreground"
|
|
58
|
+
<p className="text-xs text-muted-foreground">范围</p>
|
|
59
59
|
<div className="grid grid-cols-2 gap-x-4 gap-y-1 text-xs">
|
|
60
|
-
<span className="text-muted-foreground"
|
|
60
|
+
<span className="text-muted-foreground">应用</span>
|
|
61
61
|
<span className="font-mono">{request.scope.appId ?? "-"}</span>
|
|
62
|
-
<span className="text-muted-foreground"
|
|
62
|
+
<span className="text-muted-foreground">租户</span>
|
|
63
63
|
<span className="font-mono">
|
|
64
64
|
{request.scope.tenantId ?? "-"}
|
|
65
65
|
</span>
|
|
66
|
-
<span className="text-muted-foreground"
|
|
66
|
+
<span className="text-muted-foreground">智能体</span>
|
|
67
67
|
<span className="font-mono">{request.scope.agentId ?? "-"}</span>
|
|
68
|
-
<span className="text-muted-foreground"
|
|
68
|
+
<span className="text-muted-foreground">会话</span>
|
|
69
69
|
<span className="font-mono">{request.scope.runId ?? "-"}</span>
|
|
70
70
|
</div>
|
|
71
71
|
</div>
|
|
@@ -127,10 +127,10 @@ export function RequestsTable({
|
|
|
127
127
|
<TableHeader>
|
|
128
128
|
<TableRow>
|
|
129
129
|
<TableHead className="w-[140px]">时间</TableHead>
|
|
130
|
-
<TableHead className="w-[130px]"
|
|
130
|
+
<TableHead className="w-[130px]">操作</TableHead>
|
|
131
131
|
<TableHead className="w-[70px]">状态</TableHead>
|
|
132
132
|
<TableHead className="w-[80px]">耗时</TableHead>
|
|
133
|
-
<TableHead className="w-[200px]"
|
|
133
|
+
<TableHead className="w-[200px]">请求 ID</TableHead>
|
|
134
134
|
<TableHead className="w-[60px]" />
|
|
135
135
|
</TableRow>
|
|
136
136
|
</TableHeader>
|
|
@@ -14,7 +14,11 @@ export default function MemorySearchPage() {
|
|
|
14
14
|
const params = useParams<{ store: string }>();
|
|
15
15
|
const searchParams = useSearchParams();
|
|
16
16
|
const memoryStoreName = decodeURIComponent(params.store);
|
|
17
|
-
const
|
|
17
|
+
const searchParamsString = searchParams.toString();
|
|
18
|
+
const scope = useMemo(
|
|
19
|
+
() => buildMemoryScope(new URLSearchParams(searchParamsString)),
|
|
20
|
+
[searchParamsString],
|
|
21
|
+
);
|
|
18
22
|
const search = useMemorySearch();
|
|
19
23
|
const [results, setResults] = useState<MemorySearchHit[] | null>(null);
|
|
20
24
|
const [elapsedMs, setElapsedMs] = useState<number | undefined>();
|
package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/settings/page.tsx
CHANGED
|
@@ -46,26 +46,65 @@ export default function MemorySettingsPage() {
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
return (
|
|
49
|
-
<div className="
|
|
49
|
+
<div className="grid gap-6 xl:grid-cols-[minmax(0,1fr)_320px]">
|
|
50
50
|
<MemorySettingsForm memoryStore={memoryStore} />
|
|
51
51
|
|
|
52
|
-
<
|
|
53
|
-
<
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
52
|
+
<aside className="space-y-6">
|
|
53
|
+
<section className="rounded-lg border border-[hsl(var(--border))] bg-[hsl(var(--card))] p-5 shadow-sm">
|
|
54
|
+
<SettingsSectionHeader
|
|
55
|
+
title="记忆库信息"
|
|
56
|
+
description="只读元数据,由服务端维护。"
|
|
57
|
+
/>
|
|
58
|
+
<div className="space-y-3">
|
|
59
|
+
<ReadOnlyField
|
|
60
|
+
label="OTS 实例"
|
|
61
|
+
value={memoryStore.otsInstance ?? "-"}
|
|
62
|
+
/>
|
|
63
|
+
<ReadOnlyField
|
|
64
|
+
label="创建时间"
|
|
65
|
+
value={formatTimestamp(memoryStore.createdAt)}
|
|
66
|
+
/>
|
|
67
|
+
<ReadOnlyField
|
|
68
|
+
label="更新时间"
|
|
69
|
+
value={formatTimestamp(memoryStore.updatedAt)}
|
|
70
|
+
/>
|
|
71
|
+
{memoryStore.lastSeenAt && (
|
|
72
|
+
<ReadOnlyField
|
|
73
|
+
label="最近活跃"
|
|
74
|
+
value={formatTimestamp(memoryStore.lastSeenAt)}
|
|
75
|
+
/>
|
|
76
|
+
)}
|
|
58
77
|
</div>
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
78
|
+
</section>
|
|
79
|
+
</aside>
|
|
80
|
+
</div>
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
function SettingsSectionHeader({
|
|
85
|
+
title,
|
|
86
|
+
description,
|
|
87
|
+
}: {
|
|
88
|
+
title: string;
|
|
89
|
+
description: string;
|
|
90
|
+
}) {
|
|
91
|
+
return (
|
|
92
|
+
<header className="mb-4 border-b border-[hsl(var(--border-light))] pb-3">
|
|
93
|
+
<h3 className="text-[15px] font-semibold leading-tight text-[hsl(var(--foreground))]">
|
|
94
|
+
{title}
|
|
95
|
+
</h3>
|
|
96
|
+
<p className="mt-1 text-xs leading-relaxed text-[hsl(var(--muted-foreground))]">
|
|
97
|
+
{description}
|
|
98
|
+
</p>
|
|
99
|
+
</header>
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
function ReadOnlyField({ label, value }: { label: string; value: string }) {
|
|
104
|
+
return (
|
|
105
|
+
<div className="flex items-center justify-between">
|
|
106
|
+
<span className="text-sm text-muted-foreground">{label}</span>
|
|
107
|
+
<span className="text-sm font-medium">{value}</span>
|
|
69
108
|
</div>
|
|
70
109
|
);
|
|
71
110
|
}
|
|
@@ -25,7 +25,11 @@ export default function MemoryUnitsPage() {
|
|
|
25
25
|
const params = useParams<{ store: string }>();
|
|
26
26
|
const searchParams = useSearchParams();
|
|
27
27
|
const memoryStoreName = decodeURIComponent(params.store);
|
|
28
|
-
const
|
|
28
|
+
const searchParamsString = searchParams.toString();
|
|
29
|
+
const scope = useMemo(
|
|
30
|
+
() => buildMemoryScope(new URLSearchParams(searchParamsString)),
|
|
31
|
+
[searchParamsString],
|
|
32
|
+
);
|
|
29
33
|
const wildcard = hasWildcardScope(scope);
|
|
30
34
|
const scopeKey = useMemo(() =>
|
|
31
35
|
`${scope.appId}|${scope.tenantId ?? ""}|${scope.agentId ?? ""}|${scope.runId ?? ""}`,
|
|
@@ -87,7 +91,7 @@ export default function MemoryUnitsPage() {
|
|
|
87
91
|
return;
|
|
88
92
|
}
|
|
89
93
|
if (!canOperateOnUnit(deleteUnit, scope)) {
|
|
90
|
-
toast.error("
|
|
94
|
+
toast.error("当前记忆单元缺少精确范围,无法删除");
|
|
91
95
|
return;
|
|
92
96
|
}
|
|
93
97
|
try {
|
|
@@ -102,11 +106,11 @@ export default function MemoryUnitsPage() {
|
|
|
102
106
|
|
|
103
107
|
async function handleSearchById() {
|
|
104
108
|
if (!searchId.trim()) {
|
|
105
|
-
toast.error("
|
|
109
|
+
toast.error("请输入记忆 ID");
|
|
106
110
|
return;
|
|
107
111
|
}
|
|
108
112
|
if (!scope.appId) {
|
|
109
|
-
toast.error("
|
|
113
|
+
toast.error("请先设置精确的范围");
|
|
110
114
|
return;
|
|
111
115
|
}
|
|
112
116
|
setSearching(true);
|
|
@@ -170,7 +174,7 @@ export default function MemoryUnitsPage() {
|
|
|
170
174
|
</span>
|
|
171
175
|
</TooltipTrigger>
|
|
172
176
|
<TooltipContent side="bottom" className="max-w-[240px]">
|
|
173
|
-
<p
|
|
177
|
+
<p>请在上方范围栏中为所有字段设置具体值后再添加记忆</p>
|
|
174
178
|
</TooltipContent>
|
|
175
179
|
</Tooltip>
|
|
176
180
|
</TooltipProvider>
|
|
@@ -187,7 +191,7 @@ export default function MemoryUnitsPage() {
|
|
|
187
191
|
<Input
|
|
188
192
|
value={searchId}
|
|
189
193
|
onChange={(e) => setSearchId(e.target.value)}
|
|
190
|
-
placeholder="
|
|
194
|
+
placeholder="输入记忆 ID 查询单条记忆..."
|
|
191
195
|
className="max-w-md"
|
|
192
196
|
onKeyDown={(e) => e.key === "Enter" && handleSearchById()}
|
|
193
197
|
/>
|
|
@@ -201,7 +205,7 @@ export default function MemoryUnitsPage() {
|
|
|
201
205
|
|
|
202
206
|
{wildcard && !searchedUnit && (
|
|
203
207
|
<p className="text-xs text-muted-foreground">
|
|
204
|
-
|
|
208
|
+
当前范围含通配符,仅支持只读查询,无法执行新增、查看详情、编辑或删除。
|
|
205
209
|
</p>
|
|
206
210
|
)}
|
|
207
211
|
|
|
@@ -17,6 +17,29 @@ interface RouteContext {
|
|
|
17
17
|
params: Promise<{ name: string; docId: string }>;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
/**
|
|
21
|
+
* Pull the single document object out of whatever shape the upstream SDK
|
|
22
|
+
* happens to return. Observed shapes:
|
|
23
|
+
* - the document object directly
|
|
24
|
+
* - `[doc]` (a one-element array)
|
|
25
|
+
* - `{ documentDetails: [doc] }` / `{ documents: [doc] }`
|
|
26
|
+
* Mirrors the unwrap the CLI's `doc-get` command performs.
|
|
27
|
+
*/
|
|
28
|
+
function unwrapDocument(data: unknown): unknown {
|
|
29
|
+
if (Array.isArray(data)) {
|
|
30
|
+
return data[0] ?? null;
|
|
31
|
+
}
|
|
32
|
+
if (data != null && typeof data === "object") {
|
|
33
|
+
const record = data as Record<string, unknown>;
|
|
34
|
+
const docList =
|
|
35
|
+
(record.documentDetails as unknown) ?? (record.documents as unknown);
|
|
36
|
+
if (Array.isArray(docList) && docList.length > 0) {
|
|
37
|
+
return docList[0];
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return data;
|
|
41
|
+
}
|
|
42
|
+
|
|
20
43
|
export async function GET(request: NextRequest, context: RouteContext) {
|
|
21
44
|
try {
|
|
22
45
|
const { name, docId } = await context.params;
|
|
@@ -34,6 +57,50 @@ export async function GET(request: NextRequest, context: RouteContext) {
|
|
|
34
57
|
if (subspace) req.subspace = subspace;
|
|
35
58
|
|
|
36
59
|
const resp = await kb.getDocument(req);
|
|
60
|
+
if (resp.code === "SUCCESS") {
|
|
61
|
+
return forwardResponse({ ...resp, data: unwrapDocument(resp.data) });
|
|
62
|
+
}
|
|
63
|
+
return forwardResponse(resp);
|
|
64
|
+
} catch (error) {
|
|
65
|
+
return handleApiError(error);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* PUT /api/v1/knowledge-bases/:name/documents/:docId Update document metadata.
|
|
71
|
+
*
|
|
72
|
+
* Backend semantics on `metadata`:
|
|
73
|
+
* omitted → don't touch metadata
|
|
74
|
+
* object → overwrite-update (whole object replaced)
|
|
75
|
+
* explicit null → clear all metadata
|
|
76
|
+
*/
|
|
77
|
+
export async function PUT(request: NextRequest, context: RouteContext) {
|
|
78
|
+
try {
|
|
79
|
+
const { name, docId } = await context.params;
|
|
80
|
+
const auth = requireClients(request);
|
|
81
|
+
if (!("kb" in auth)) return auth;
|
|
82
|
+
const { kb } = auth;
|
|
83
|
+
|
|
84
|
+
let body: Record<string, unknown>;
|
|
85
|
+
try {
|
|
86
|
+
body = (await request.json()) as Record<string, unknown>;
|
|
87
|
+
} catch {
|
|
88
|
+
return forwardResponse({
|
|
89
|
+
code: "BAD_REQUEST",
|
|
90
|
+
data: null,
|
|
91
|
+
message: "Request body must be JSON",
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
const { knowledgeBaseName: _ignoredName, docId: _ignoredDocId, ...rest } = body;
|
|
96
|
+
void _ignoredName;
|
|
97
|
+
void _ignoredDocId;
|
|
98
|
+
|
|
99
|
+
const resp = await kb.updateDocument({
|
|
100
|
+
...rest,
|
|
101
|
+
knowledgeBaseName: name,
|
|
102
|
+
docId,
|
|
103
|
+
});
|
|
37
104
|
return forwardResponse(resp);
|
|
38
105
|
} catch (error) {
|
|
39
106
|
return handleApiError(error);
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { MemorySearchHit } from "@/types/memory";
|
|
2
|
+
|
|
3
|
+
export interface MemoryWriteScope {
|
|
4
|
+
appId: string;
|
|
5
|
+
tenantId: string;
|
|
6
|
+
agentId: string;
|
|
7
|
+
runId: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface MemoryReadScope {
|
|
11
|
+
appId: string;
|
|
12
|
+
tenantId: string;
|
|
13
|
+
agentId: "*";
|
|
14
|
+
runId: "*";
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* 把入站的「完整写 scope」派生成宽松的「读 scope」:
|
|
19
|
+
* appId / tenantId 保留,agentId / runId 强制覆盖为 "*"。
|
|
20
|
+
* 这样一个绑在 (agentId, runId) 上的会话仍能召回同 tenant 下其他
|
|
21
|
+
* agent/run 写入的记忆。
|
|
22
|
+
*/
|
|
23
|
+
export function deriveReadScope(writeScope: MemoryWriteScope): MemoryReadScope {
|
|
24
|
+
return {
|
|
25
|
+
appId: writeScope.appId,
|
|
26
|
+
tenantId: writeScope.tenantId,
|
|
27
|
+
agentId: "*",
|
|
28
|
+
runId: "*",
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* 把 memory 命中渲染成一段中文 prompt 片段,供
|
|
34
|
+
* `buildFinalMessages` 与 RAG 段拼接。零命中时返回空串,
|
|
35
|
+
* 由调用方决定是否拼接。
|
|
36
|
+
*/
|
|
37
|
+
export function formatMemoryBlock(hits: MemorySearchHit[]): string {
|
|
38
|
+
if (!hits.length) return "";
|
|
39
|
+
const lines = hits.map((h) => {
|
|
40
|
+
const id = h.unit.memcell_id;
|
|
41
|
+
const text = h.unit.text ?? "";
|
|
42
|
+
return id ? `- (${id}) ${text}` : `- ${text}`;
|
|
43
|
+
});
|
|
44
|
+
return `\n\n相关历史记忆(共 ${hits.length} 条):\n${lines.join("\n")}`;
|
|
45
|
+
}
|