@tablestore/tablestore-agent-cli 0.1.3 → 0.1.5
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/dashboard-runtime/dashboard/.next/BUILD_ID +1 -1
- package/dist/dashboard-runtime/dashboard/.next/app-path-routes-manifest.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/build-manifest.json +3 -3
- package/dist/dashboard-runtime/dashboard/.next/prerender-manifest.json +3 -195
- package/dist/dashboard-runtime/dashboard/.next/required-server-files.json +4 -4
- package/dist/dashboard-runtime/dashboard/.next/routes-manifest.json +6 -6
- 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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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/app-paths-manifest.json +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/{instances → projects}/page/next-font-manifest.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/{instances → projects}/page.js +8 -8
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/{instances → projects}/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/projects/page_client-reference-manifest.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.html +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.rsc +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.html +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.rsc +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_index.segment.rsc +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- 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 +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/auth/status/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/auth/token/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/auth/token/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/token/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/token/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/use/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/use/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/chunks/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/chunks/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/[docId]/chunks/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/[docId]/chunks/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/[docId]/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/[docId]/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/upload/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/upload/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/retrieve/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/retrieve/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/chat/route.js +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 +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/models/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/test/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/test/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/messages/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/messages/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/requests/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/requests/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/search/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/search/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/units/[memoryId]/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/units/[memoryId]/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/units/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/units/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/index.html +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/index.rsc +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/__PAGE__.segment.rsc +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/_full.segment.rsc +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/_index.segment.rsc +2 -2
- 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_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 +4 -4
- package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/_full.segment.rsc +4 -4
- package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/_head.segment.rsc +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/_index.segment.rsc +2 -2
- 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 +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/onboarding.segment.rsc +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 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/{[root-of-the-server]__0a7o_lg._.js → [root-of-the-server]__07jfil8._.js} +21 -16
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0bfezi5._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/{[root-of-the-server]__0vj8eh_._.js → [root-of-the-server]__0f990w9._.js} +21 -16
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0g9--xh._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0r4amj5._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__12lk-nv._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__12sqoa8._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/{0p91_next_dist_esm_build_templates_app-page_0ybndzm.js → 0p91_next_dist_esm_build_templates_app-page_0c9pavn.js} +3 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__0_bm190._.js → [root-of-the-server]__0ct6ysu._.js} +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__0getqb1._.js → [root-of-the-server]__0k7~7-.._.js} +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0y8rrcu._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0.a5w1p._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0476v7r._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0ce~2ba._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0z0rlpq._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_11fl7_r._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard__next-internal_server_app_(dashboard)_projects_page_actions_0b8.3qe.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_0o4a.29._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0suis9l._.js +6 -2
- 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)_projects_error_tsx_0lm0vqh._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_projects_loading_tsx_0c1mchn._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/middleware-build-manifest.js +3 -3
- package/dist/dashboard-runtime/dashboard/.next/server/next-font-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/next-font-manifest.json +1 -1
- 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-ps54o0cl-hh.js → 0-.-yvgh3s-60.js} +1 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0212ujx60nooy.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0fldq3wpg_379.css +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0ja2he~jl53.n.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0s3mvx9_dr13c.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/{0g_uneyk~9dg0.js → 0sg6z8.ci0l2b.js} +1 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0u-_fvx_r85sr.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0~5hi.pq6~znn.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/{13lz27klh_al4.js → 16lab3t3ovnyq.js} +1 -1
- package/dist/dashboard-runtime/dashboard/package.json +3 -1
- package/dist/dashboard-runtime/dashboard/server.js +1 -1
- package/dist/dashboard-runtime/dashboard/src/components/instance/connect-instance-dialog.tsx +2 -2
- package/dist/dashboard-runtime/dashboard/src/components/instance/connect-instance-form.tsx +62 -9
- package/dist/dashboard-runtime/dashboard/src/components/instance/edit-instance-dialog.tsx +19 -5
- package/dist/dashboard-runtime/dashboard/src/components/layout/breadcrumb-bar.tsx +1 -0
- package/dist/dashboard-runtime/dashboard/src/components/layout/instance-switcher.tsx +41 -8
- package/dist/dashboard-runtime/dashboard/src/components/qa/qa-chat-panel.tsx +35 -3
- package/dist/dashboard-runtime/dashboard/src/hooks/use-instances.ts +32 -10
- package/dist/dashboard-runtime/dashboard/src/lib/server/sdk-client.ts +62 -16
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/index.d.ts +0 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/index.d.ts.map +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/index.js +0 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/index.js.map +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/internal/managed-section-writer.d.ts +17 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/internal/managed-section-writer.d.ts.map +1 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/internal/managed-section-writer.js +39 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/internal/managed-section-writer.js.map +1 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.d.ts +33 -17
- 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 +159 -207
- 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/managed-oss.d.ts.map +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/managed-oss.js +2 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/managed-oss.js.map +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/managed-ots.d.ts.map +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/managed-ots.js +2 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/managed-ots.js.map +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.d.ts +10 -6
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.d.ts.map +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.js +37 -42
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.js.map +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/response.d.ts +5 -3
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/response.d.ts.map +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/response.js +92 -30
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/response.js.map +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/package.json +2 -2
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/config.d.ts.map +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/config.js +89 -11
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/config.js.map +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/index.d.ts +0 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/index.d.ts.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/index.js +0 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/index.js.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/internal/managed-section-writer.d.ts +17 -0
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/internal/managed-section-writer.d.ts.map +1 -0
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/internal/managed-section-writer.js +39 -0
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/internal/managed-section-writer.js.map +1 -0
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.d.ts +33 -17
- 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 +159 -207
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.js.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/managed-oss.d.ts.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/managed-oss.js +2 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/managed-oss.js.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/managed-ots.d.ts.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/managed-ots.js +2 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/managed-ots.js.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.d.ts +10 -6
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.d.ts.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.js +37 -42
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.js.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/response.d.ts +5 -3
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/response.d.ts.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/response.js +92 -30
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/response.js.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/package.json +2 -2
- package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/config.d.ts.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/config.js +89 -11
- package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/config.js.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/index.js +0 -2
- package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/client.js +0 -672
- package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/config.js +0 -70
- package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/core.js +0 -30
- package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/event_listeners.js +0 -199
- package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/filter.js +0 -204
- package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/http/node.js +0 -146
- package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/http/xhr.js +0 -113
- package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/http.js +0 -81
- package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/long.js +0 -21
- package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/metadata.js +0 -65
- package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/protocol/build_proto.sh +0 -4
- package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/protocol/decoder.js +0 -677
- package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/protocol/encoder.js +0 -1593
- package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/protocol/plain_buffer_coded_stream.js +0 -631
- package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/protocol/plain_buffer_consts.js +0 -44
- package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/protocol/plain_buffer_crc8.js +0 -79
- package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/protocol/plain_buffer_stream.js +0 -209
- package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/protocol/plian_buffer_builder.js +0 -252
- package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/protocol/sql.fbs +0 -36
- package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/protocol/sql_generated.js +0 -961
- package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/protocol/tablestore.proto +0 -676
- package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/protocol/tablestore_compiled_proto.js +0 -54728
- package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/protocol/tablestore_filter.proto +0 -45
- package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/protocol/tablestore_search.proto +0 -1010
- package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/request.js +0 -235
- package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/retry/default_retry_policy.js +0 -74
- package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/retry/retry_util.js +0 -94
- package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/search.js +0 -209
- package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/sequential_executor.js +0 -240
- package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/signer.js +0 -70
- package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/sql.js +0 -111
- package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/util-browser.js +0 -756
- package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/util.js +0 -602
- package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/package.json +0 -39
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/instances/page/app-paths-manifest.json +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/instances/page_client-reference-manifest.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/app/chat.html +0 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/chat.meta +0 -16
- package/dist/dashboard-runtime/dashboard/.next/server/app/chat.rsc +0 -38
- package/dist/dashboard-runtime/dashboard/.next/server/app/chat.segments/!KGRhc2hib2FyZCk/chat/__PAGE__.segment.rsc +0 -9
- package/dist/dashboard-runtime/dashboard/.next/server/app/chat.segments/!KGRhc2hib2FyZCk/chat.segment.rsc +0 -7
- package/dist/dashboard-runtime/dashboard/.next/server/app/chat.segments/!KGRhc2hib2FyZCk.segment.rsc +0 -11
- package/dist/dashboard-runtime/dashboard/.next/server/app/chat.segments/_full.segment.rsc +0 -38
- package/dist/dashboard-runtime/dashboard/.next/server/app/chat.segments/_head.segment.rsc +0 -5
- package/dist/dashboard-runtime/dashboard/.next/server/app/chat.segments/_index.segment.rsc +0 -10
- package/dist/dashboard-runtime/dashboard/.next/server/app/chat.segments/_tree.segment.rsc +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/app/instances.html +0 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/instances.meta +0 -16
- package/dist/dashboard-runtime/dashboard/.next/server/app/instances.rsc +0 -38
- package/dist/dashboard-runtime/dashboard/.next/server/app/instances.segments/!KGRhc2hib2FyZCk/instances/__PAGE__.segment.rsc +0 -9
- package/dist/dashboard-runtime/dashboard/.next/server/app/instances.segments/!KGRhc2hib2FyZCk/instances.segment.rsc +0 -7
- package/dist/dashboard-runtime/dashboard/.next/server/app/instances.segments/!KGRhc2hib2FyZCk.segment.rsc +0 -11
- package/dist/dashboard-runtime/dashboard/.next/server/app/instances.segments/_full.segment.rsc +0 -38
- package/dist/dashboard-runtime/dashboard/.next/server/app/instances.segments/_head.segment.rsc +0 -5
- package/dist/dashboard-runtime/dashboard/.next/server/app/instances.segments/_index.segment.rsc +0 -10
- package/dist/dashboard-runtime/dashboard/.next/server/app/instances.segments/_tree.segment.rsc +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/app/knowledge-base/create.html +0 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/knowledge-base/create.meta +0 -17
- package/dist/dashboard-runtime/dashboard/.next/server/app/knowledge-base/create.rsc +0 -38
- package/dist/dashboard-runtime/dashboard/.next/server/app/knowledge-base/create.segments/!KGRhc2hib2FyZCk/knowledge-base/create/__PAGE__.segment.rsc +0 -9
- package/dist/dashboard-runtime/dashboard/.next/server/app/knowledge-base/create.segments/!KGRhc2hib2FyZCk/knowledge-base/create.segment.rsc +0 -5
- package/dist/dashboard-runtime/dashboard/.next/server/app/knowledge-base/create.segments/!KGRhc2hib2FyZCk/knowledge-base.segment.rsc +0 -6
- package/dist/dashboard-runtime/dashboard/.next/server/app/knowledge-base/create.segments/!KGRhc2hib2FyZCk.segment.rsc +0 -11
- package/dist/dashboard-runtime/dashboard/.next/server/app/knowledge-base/create.segments/_full.segment.rsc +0 -38
- package/dist/dashboard-runtime/dashboard/.next/server/app/knowledge-base/create.segments/_head.segment.rsc +0 -5
- package/dist/dashboard-runtime/dashboard/.next/server/app/knowledge-base/create.segments/_index.segment.rsc +0 -10
- package/dist/dashboard-runtime/dashboard/.next/server/app/knowledge-base/create.segments/_tree.segment.rsc +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/app/knowledge-base.html +0 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/knowledge-base.meta +0 -16
- package/dist/dashboard-runtime/dashboard/.next/server/app/knowledge-base.rsc +0 -37
- package/dist/dashboard-runtime/dashboard/.next/server/app/knowledge-base.segments/!KGRhc2hib2FyZCk/knowledge-base/__PAGE__.segment.rsc +0 -9
- package/dist/dashboard-runtime/dashboard/.next/server/app/knowledge-base.segments/!KGRhc2hib2FyZCk/knowledge-base.segment.rsc +0 -6
- package/dist/dashboard-runtime/dashboard/.next/server/app/knowledge-base.segments/!KGRhc2hib2FyZCk.segment.rsc +0 -11
- package/dist/dashboard-runtime/dashboard/.next/server/app/knowledge-base.segments/_full.segment.rsc +0 -37
- package/dist/dashboard-runtime/dashboard/.next/server/app/knowledge-base.segments/_head.segment.rsc +0 -5
- package/dist/dashboard-runtime/dashboard/.next/server/app/knowledge-base.segments/_index.segment.rsc +0 -10
- package/dist/dashboard-runtime/dashboard/.next/server/app/knowledge-base.segments/_tree.segment.rsc +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/app/llm-providers/new.html +0 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/llm-providers/new.meta +0 -17
- package/dist/dashboard-runtime/dashboard/.next/server/app/llm-providers/new.rsc +0 -36
- package/dist/dashboard-runtime/dashboard/.next/server/app/llm-providers/new.segments/!KGRhc2hib2FyZCk/llm-providers/new/__PAGE__.segment.rsc +0 -6
- package/dist/dashboard-runtime/dashboard/.next/server/app/llm-providers/new.segments/!KGRhc2hib2FyZCk/llm-providers/new.segment.rsc +0 -5
- package/dist/dashboard-runtime/dashboard/.next/server/app/llm-providers/new.segments/!KGRhc2hib2FyZCk/llm-providers.segment.rsc +0 -7
- package/dist/dashboard-runtime/dashboard/.next/server/app/llm-providers/new.segments/!KGRhc2hib2FyZCk.segment.rsc +0 -11
- package/dist/dashboard-runtime/dashboard/.next/server/app/llm-providers/new.segments/_full.segment.rsc +0 -36
- package/dist/dashboard-runtime/dashboard/.next/server/app/llm-providers/new.segments/_head.segment.rsc +0 -5
- package/dist/dashboard-runtime/dashboard/.next/server/app/llm-providers/new.segments/_index.segment.rsc +0 -10
- package/dist/dashboard-runtime/dashboard/.next/server/app/llm-providers/new.segments/_tree.segment.rsc +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/app/llm-providers.html +0 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/llm-providers.meta +0 -16
- package/dist/dashboard-runtime/dashboard/.next/server/app/llm-providers.rsc +0 -38
- package/dist/dashboard-runtime/dashboard/.next/server/app/llm-providers.segments/!KGRhc2hib2FyZCk/llm-providers/__PAGE__.segment.rsc +0 -9
- package/dist/dashboard-runtime/dashboard/.next/server/app/llm-providers.segments/!KGRhc2hib2FyZCk/llm-providers.segment.rsc +0 -7
- package/dist/dashboard-runtime/dashboard/.next/server/app/llm-providers.segments/!KGRhc2hib2FyZCk.segment.rsc +0 -11
- package/dist/dashboard-runtime/dashboard/.next/server/app/llm-providers.segments/_full.segment.rsc +0 -38
- package/dist/dashboard-runtime/dashboard/.next/server/app/llm-providers.segments/_head.segment.rsc +0 -5
- package/dist/dashboard-runtime/dashboard/.next/server/app/llm-providers.segments/_index.segment.rsc +0 -10
- package/dist/dashboard-runtime/dashboard/.next/server/app/llm-providers.segments/_tree.segment.rsc +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/app/memory/create.html +0 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/memory/create.meta +0 -17
- package/dist/dashboard-runtime/dashboard/.next/server/app/memory/create.rsc +0 -39
- package/dist/dashboard-runtime/dashboard/.next/server/app/memory/create.segments/!KGRhc2hib2FyZCk/memory/create/__PAGE__.segment.rsc +0 -9
- package/dist/dashboard-runtime/dashboard/.next/server/app/memory/create.segments/!KGRhc2hib2FyZCk/memory/create.segment.rsc +0 -5
- package/dist/dashboard-runtime/dashboard/.next/server/app/memory/create.segments/!KGRhc2hib2FyZCk/memory.segment.rsc +0 -7
- package/dist/dashboard-runtime/dashboard/.next/server/app/memory/create.segments/!KGRhc2hib2FyZCk.segment.rsc +0 -11
- package/dist/dashboard-runtime/dashboard/.next/server/app/memory/create.segments/_full.segment.rsc +0 -39
- package/dist/dashboard-runtime/dashboard/.next/server/app/memory/create.segments/_head.segment.rsc +0 -5
- package/dist/dashboard-runtime/dashboard/.next/server/app/memory/create.segments/_index.segment.rsc +0 -10
- package/dist/dashboard-runtime/dashboard/.next/server/app/memory/create.segments/_tree.segment.rsc +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/app/memory.html +0 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/memory.meta +0 -16
- package/dist/dashboard-runtime/dashboard/.next/server/app/memory.rsc +0 -38
- package/dist/dashboard-runtime/dashboard/.next/server/app/memory.segments/!KGRhc2hib2FyZCk/memory/__PAGE__.segment.rsc +0 -9
- package/dist/dashboard-runtime/dashboard/.next/server/app/memory.segments/!KGRhc2hib2FyZCk/memory.segment.rsc +0 -7
- package/dist/dashboard-runtime/dashboard/.next/server/app/memory.segments/!KGRhc2hib2FyZCk.segment.rsc +0 -11
- package/dist/dashboard-runtime/dashboard/.next/server/app/memory.segments/_full.segment.rsc +0 -38
- package/dist/dashboard-runtime/dashboard/.next/server/app/memory.segments/_head.segment.rsc +0 -5
- package/dist/dashboard-runtime/dashboard/.next/server/app/memory.segments/_index.segment.rsc +0 -10
- package/dist/dashboard-runtime/dashboard/.next/server/app/memory.segments/_tree.segment.rsc +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0hr5-78._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0v1vjve._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard__next-internal_server_app_(dashboard)_instances_page_actions_0h2z.wc.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_instances_error_tsx_0n991op._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_instances_loading_tsx_0vo~r9q._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0--ug1fajm138.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0014~.2un25~~.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/01e~e666-rfuv.css +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/067_.vm1v8kg3.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0jw5s5e8qwbpx.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0l75a30.ubt1z.js +0 -1
- package/dist/dashboard-runtime/node_modules/@protobufjs/aspromise/index.js +0 -52
- package/dist/dashboard-runtime/node_modules/@protobufjs/aspromise/package.json +0 -21
- package/dist/dashboard-runtime/node_modules/@protobufjs/base64/index.js +0 -139
- package/dist/dashboard-runtime/node_modules/@protobufjs/base64/package.json +0 -21
- package/dist/dashboard-runtime/node_modules/@protobufjs/eventemitter/index.js +0 -76
- package/dist/dashboard-runtime/node_modules/@protobufjs/eventemitter/package.json +0 -21
- package/dist/dashboard-runtime/node_modules/@protobufjs/float/index.js +0 -335
- package/dist/dashboard-runtime/node_modules/@protobufjs/float/package.json +0 -26
- package/dist/dashboard-runtime/node_modules/@protobufjs/inquire/index.js +0 -17
- package/dist/dashboard-runtime/node_modules/@protobufjs/inquire/package.json +0 -21
- package/dist/dashboard-runtime/node_modules/@protobufjs/pool/index.js +0 -48
- package/dist/dashboard-runtime/node_modules/@protobufjs/pool/package.json +0 -21
- package/dist/dashboard-runtime/node_modules/@protobufjs/utf8/index.js +0 -105
- package/dist/dashboard-runtime/node_modules/@protobufjs/utf8/package.json +0 -21
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/oss-uploader.d.ts +0 -56
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/oss-uploader.d.ts.map +0 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/oss-uploader.js +0 -120
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/oss-uploader.js.map +0 -1
- package/dist/dashboard-runtime/node_modules/flatbuffers/LICENSE.txt +0 -202
- package/dist/dashboard-runtime/node_modules/flatbuffers/js/flatbuffers.js +0 -1259
- package/dist/dashboard-runtime/node_modules/flatbuffers/js/flatbuffers.mjs +0 -1259
- package/dist/dashboard-runtime/node_modules/flatbuffers/package.json +0 -34
- package/dist/dashboard-runtime/node_modules/flatbuffers/readme.md +0 -58
- package/dist/dashboard-runtime/node_modules/int64-buffer/int64-buffer.js +0 -293
- package/dist/dashboard-runtime/node_modules/int64-buffer/package.json +0 -57
- package/dist/dashboard-runtime/node_modules/protobufjs/LICENSE +0 -39
- package/dist/dashboard-runtime/node_modules/protobufjs/README.md +0 -905
- package/dist/dashboard-runtime/node_modules/protobufjs/bin/pbjs +0 -6
- package/dist/dashboard-runtime/node_modules/protobufjs/bin/pbts +0 -6
- package/dist/dashboard-runtime/node_modules/protobufjs/cli/LICENSE +0 -33
- package/dist/dashboard-runtime/node_modules/protobufjs/cli/README.md +0 -174
- package/dist/dashboard-runtime/node_modules/protobufjs/cli/bin/pbjs +0 -6
- package/dist/dashboard-runtime/node_modules/protobufjs/cli/bin/pbts +0 -6
- package/dist/dashboard-runtime/node_modules/protobufjs/cli/index.d.ts +0 -3
- package/dist/dashboard-runtime/node_modules/protobufjs/cli/index.js +0 -3
- package/dist/dashboard-runtime/node_modules/protobufjs/cli/lib/tsd-jsdoc/LICENSE +0 -21
- package/dist/dashboard-runtime/node_modules/protobufjs/cli/lib/tsd-jsdoc/README.md +0 -23
- package/dist/dashboard-runtime/node_modules/protobufjs/cli/lib/tsd-jsdoc/plugin.js +0 -21
- package/dist/dashboard-runtime/node_modules/protobufjs/cli/lib/tsd-jsdoc/publish.js +0 -705
- package/dist/dashboard-runtime/node_modules/protobufjs/cli/lib/tsd-jsdoc.json +0 -18
- package/dist/dashboard-runtime/node_modules/protobufjs/cli/package.json +0 -10
- package/dist/dashboard-runtime/node_modules/protobufjs/cli/package.standalone.json +0 -32
- package/dist/dashboard-runtime/node_modules/protobufjs/cli/pbjs.d.ts +0 -9
- package/dist/dashboard-runtime/node_modules/protobufjs/cli/pbjs.js +0 -330
- package/dist/dashboard-runtime/node_modules/protobufjs/cli/pbts.d.ts +0 -9
- package/dist/dashboard-runtime/node_modules/protobufjs/cli/pbts.js +0 -197
- package/dist/dashboard-runtime/node_modules/protobufjs/cli/targets/json-module.js +0 -38
- package/dist/dashboard-runtime/node_modules/protobufjs/cli/targets/json.js +0 -8
- package/dist/dashboard-runtime/node_modules/protobufjs/cli/targets/proto.js +0 -326
- package/dist/dashboard-runtime/node_modules/protobufjs/cli/targets/proto2.js +0 -10
- package/dist/dashboard-runtime/node_modules/protobufjs/cli/targets/proto3.js +0 -10
- package/dist/dashboard-runtime/node_modules/protobufjs/cli/targets/static-module.js +0 -29
- package/dist/dashboard-runtime/node_modules/protobufjs/cli/targets/static.js +0 -711
- package/dist/dashboard-runtime/node_modules/protobufjs/cli/util.js +0 -183
- package/dist/dashboard-runtime/node_modules/protobufjs/cli/wrappers/amd.js +0 -7
- package/dist/dashboard-runtime/node_modules/protobufjs/cli/wrappers/closure.js +0 -7
- package/dist/dashboard-runtime/node_modules/protobufjs/cli/wrappers/commonjs.js +0 -7
- package/dist/dashboard-runtime/node_modules/protobufjs/cli/wrappers/default.js +0 -15
- package/dist/dashboard-runtime/node_modules/protobufjs/cli/wrappers/es6.js +0 -5
- package/dist/dashboard-runtime/node_modules/protobufjs/dist/README.md +0 -31
- package/dist/dashboard-runtime/node_modules/protobufjs/dist/light/README.md +0 -31
- package/dist/dashboard-runtime/node_modules/protobufjs/dist/light/protobuf.js +0 -7326
- package/dist/dashboard-runtime/node_modules/protobufjs/dist/light/protobuf.js.map +0 -1
- package/dist/dashboard-runtime/node_modules/protobufjs/dist/light/protobuf.min.js +0 -8
- package/dist/dashboard-runtime/node_modules/protobufjs/dist/light/protobuf.min.js.map +0 -1
- package/dist/dashboard-runtime/node_modules/protobufjs/dist/minimal/README.md +0 -31
- package/dist/dashboard-runtime/node_modules/protobufjs/dist/minimal/protobuf.js +0 -2714
- package/dist/dashboard-runtime/node_modules/protobufjs/dist/minimal/protobuf.js.map +0 -1
- package/dist/dashboard-runtime/node_modules/protobufjs/dist/minimal/protobuf.min.js +0 -8
- package/dist/dashboard-runtime/node_modules/protobufjs/dist/minimal/protobuf.min.js.map +0 -1
- package/dist/dashboard-runtime/node_modules/protobufjs/dist/protobuf.js +0 -8968
- package/dist/dashboard-runtime/node_modules/protobufjs/dist/protobuf.js.map +0 -1
- package/dist/dashboard-runtime/node_modules/protobufjs/dist/protobuf.min.js +0 -8
- package/dist/dashboard-runtime/node_modules/protobufjs/dist/protobuf.min.js.map +0 -1
- package/dist/dashboard-runtime/node_modules/protobufjs/ext/debug/README.md +0 -4
- package/dist/dashboard-runtime/node_modules/protobufjs/ext/debug/index.js +0 -71
- package/dist/dashboard-runtime/node_modules/protobufjs/ext/descriptor/README.md +0 -72
- package/dist/dashboard-runtime/node_modules/protobufjs/ext/descriptor/index.d.ts +0 -191
- package/dist/dashboard-runtime/node_modules/protobufjs/ext/descriptor/index.js +0 -1052
- package/dist/dashboard-runtime/node_modules/protobufjs/ext/descriptor/test.js +0 -54
- package/dist/dashboard-runtime/node_modules/protobufjs/google/LICENSE +0 -27
- package/dist/dashboard-runtime/node_modules/protobufjs/google/README.md +0 -1
- package/dist/dashboard-runtime/node_modules/protobufjs/google/api/annotations.json +0 -83
- package/dist/dashboard-runtime/node_modules/protobufjs/google/api/annotations.proto +0 -11
- package/dist/dashboard-runtime/node_modules/protobufjs/google/api/http.json +0 -86
- package/dist/dashboard-runtime/node_modules/protobufjs/google/api/http.proto +0 -31
- package/dist/dashboard-runtime/node_modules/protobufjs/google/protobuf/api.json +0 -118
- package/dist/dashboard-runtime/node_modules/protobufjs/google/protobuf/api.proto +0 -34
- package/dist/dashboard-runtime/node_modules/protobufjs/google/protobuf/descriptor.json +0 -739
- package/dist/dashboard-runtime/node_modules/protobufjs/google/protobuf/descriptor.proto +0 -286
- package/dist/dashboard-runtime/node_modules/protobufjs/google/protobuf/source_context.json +0 -20
- package/dist/dashboard-runtime/node_modules/protobufjs/google/protobuf/source_context.proto +0 -7
- package/dist/dashboard-runtime/node_modules/protobufjs/google/protobuf/type.json +0 -202
- package/dist/dashboard-runtime/node_modules/protobufjs/google/protobuf/type.proto +0 -89
- package/dist/dashboard-runtime/node_modules/protobufjs/index.d.ts +0 -2739
- package/dist/dashboard-runtime/node_modules/protobufjs/index.js +0 -4
- package/dist/dashboard-runtime/node_modules/protobufjs/light.d.ts +0 -2
- package/dist/dashboard-runtime/node_modules/protobufjs/light.js +0 -4
- package/dist/dashboard-runtime/node_modules/protobufjs/minimal.d.ts +0 -2
- package/dist/dashboard-runtime/node_modules/protobufjs/minimal.js +0 -4
- package/dist/dashboard-runtime/node_modules/protobufjs/node_modules/.bin/pbjs +0 -16
- package/dist/dashboard-runtime/node_modules/protobufjs/node_modules/.bin/pbts +0 -16
- package/dist/dashboard-runtime/node_modules/protobufjs/package.json +0 -122
- package/dist/dashboard-runtime/node_modules/protobufjs/scripts/postinstall.js +0 -35
- package/dist/dashboard-runtime/node_modules/protobufjs/src/common.js +0 -399
- package/dist/dashboard-runtime/node_modules/protobufjs/src/converter.js +0 -293
- package/dist/dashboard-runtime/node_modules/protobufjs/src/decoder.js +0 -128
- package/dist/dashboard-runtime/node_modules/protobufjs/src/encoder.js +0 -100
- package/dist/dashboard-runtime/node_modules/protobufjs/src/enum.js +0 -181
- package/dist/dashboard-runtime/node_modules/protobufjs/src/field.js +0 -374
- package/dist/dashboard-runtime/node_modules/protobufjs/src/index-light.js +0 -104
- package/dist/dashboard-runtime/node_modules/protobufjs/src/index-minimal.js +0 -36
- package/dist/dashboard-runtime/node_modules/protobufjs/src/index.js +0 -12
- package/dist/dashboard-runtime/node_modules/protobufjs/src/mapfield.js +0 -126
- package/dist/dashboard-runtime/node_modules/protobufjs/src/message.js +0 -139
- package/dist/dashboard-runtime/node_modules/protobufjs/src/method.js +0 -160
- package/dist/dashboard-runtime/node_modules/protobufjs/src/namespace.js +0 -434
- package/dist/dashboard-runtime/node_modules/protobufjs/src/object.js +0 -243
- package/dist/dashboard-runtime/node_modules/protobufjs/src/oneof.js +0 -203
- package/dist/dashboard-runtime/node_modules/protobufjs/src/parse.js +0 -820
- package/dist/dashboard-runtime/node_modules/protobufjs/src/reader.js +0 -411
- package/dist/dashboard-runtime/node_modules/protobufjs/src/reader_buffer.js +0 -51
- package/dist/dashboard-runtime/node_modules/protobufjs/src/root.js +0 -363
- package/dist/dashboard-runtime/node_modules/protobufjs/src/roots.js +0 -18
- package/dist/dashboard-runtime/node_modules/protobufjs/src/rpc/service.js +0 -142
- package/dist/dashboard-runtime/node_modules/protobufjs/src/rpc.js +0 -36
- package/dist/dashboard-runtime/node_modules/protobufjs/src/service.js +0 -167
- package/dist/dashboard-runtime/node_modules/protobufjs/src/tokenize.js +0 -403
- package/dist/dashboard-runtime/node_modules/protobufjs/src/type.js +0 -589
- package/dist/dashboard-runtime/node_modules/protobufjs/src/types.js +0 -196
- package/dist/dashboard-runtime/node_modules/protobufjs/src/typescript.jsdoc +0 -15
- package/dist/dashboard-runtime/node_modules/protobufjs/src/util/longbits.js +0 -200
- package/dist/dashboard-runtime/node_modules/protobufjs/src/util/minimal.js +0 -421
- package/dist/dashboard-runtime/node_modules/protobufjs/src/util.js +0 -212
- package/dist/dashboard-runtime/node_modules/protobufjs/src/verifier.js +0 -177
- package/dist/dashboard-runtime/node_modules/protobufjs/src/wrappers.js +0 -102
- package/dist/dashboard-runtime/node_modules/protobufjs/src/writer.js +0 -465
- package/dist/dashboard-runtime/node_modules/protobufjs/src/writer_buffer.js +0 -85
- package/dist/dashboard-runtime/node_modules/protobufjs/tsconfig.json +0 -7
- package/dist/dashboard-runtime/node_modules/tablestore/index.js +0 -2
- package/dist/dashboard-runtime/node_modules/tablestore/lib/client.js +0 -672
- package/dist/dashboard-runtime/node_modules/tablestore/lib/config.js +0 -70
- package/dist/dashboard-runtime/node_modules/tablestore/lib/core.js +0 -30
- package/dist/dashboard-runtime/node_modules/tablestore/lib/event_listeners.js +0 -199
- package/dist/dashboard-runtime/node_modules/tablestore/lib/filter.js +0 -204
- package/dist/dashboard-runtime/node_modules/tablestore/lib/http/node.js +0 -146
- package/dist/dashboard-runtime/node_modules/tablestore/lib/http/xhr.js +0 -113
- package/dist/dashboard-runtime/node_modules/tablestore/lib/http.js +0 -81
- package/dist/dashboard-runtime/node_modules/tablestore/lib/long.js +0 -21
- package/dist/dashboard-runtime/node_modules/tablestore/lib/metadata.js +0 -65
- package/dist/dashboard-runtime/node_modules/tablestore/lib/protocol/build_proto.sh +0 -4
- package/dist/dashboard-runtime/node_modules/tablestore/lib/protocol/decoder.js +0 -677
- package/dist/dashboard-runtime/node_modules/tablestore/lib/protocol/encoder.js +0 -1593
- package/dist/dashboard-runtime/node_modules/tablestore/lib/protocol/plain_buffer_coded_stream.js +0 -631
- package/dist/dashboard-runtime/node_modules/tablestore/lib/protocol/plain_buffer_consts.js +0 -44
- package/dist/dashboard-runtime/node_modules/tablestore/lib/protocol/plain_buffer_crc8.js +0 -79
- package/dist/dashboard-runtime/node_modules/tablestore/lib/protocol/plain_buffer_stream.js +0 -209
- package/dist/dashboard-runtime/node_modules/tablestore/lib/protocol/plian_buffer_builder.js +0 -252
- package/dist/dashboard-runtime/node_modules/tablestore/lib/protocol/sql.fbs +0 -36
- package/dist/dashboard-runtime/node_modules/tablestore/lib/protocol/sql_generated.js +0 -961
- package/dist/dashboard-runtime/node_modules/tablestore/lib/protocol/tablestore.proto +0 -676
- package/dist/dashboard-runtime/node_modules/tablestore/lib/protocol/tablestore_compiled_proto.js +0 -54728
- package/dist/dashboard-runtime/node_modules/tablestore/lib/protocol/tablestore_filter.proto +0 -45
- package/dist/dashboard-runtime/node_modules/tablestore/lib/protocol/tablestore_search.proto +0 -1010
- package/dist/dashboard-runtime/node_modules/tablestore/lib/request.js +0 -235
- package/dist/dashboard-runtime/node_modules/tablestore/lib/retry/default_retry_policy.js +0 -74
- package/dist/dashboard-runtime/node_modules/tablestore/lib/retry/retry_util.js +0 -94
- package/dist/dashboard-runtime/node_modules/tablestore/lib/search.js +0 -209
- package/dist/dashboard-runtime/node_modules/tablestore/lib/sequential_executor.js +0 -240
- package/dist/dashboard-runtime/node_modules/tablestore/lib/signer.js +0 -70
- package/dist/dashboard-runtime/node_modules/tablestore/lib/sql.js +0 -111
- package/dist/dashboard-runtime/node_modules/tablestore/lib/util-browser.js +0 -756
- package/dist/dashboard-runtime/node_modules/tablestore/lib/util.js +0 -602
- package/dist/dashboard-runtime/node_modules/tablestore/package.json +0 -39
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/oss-uploader.d.ts +0 -56
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/oss-uploader.d.ts.map +0 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/oss-uploader.js +0 -120
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/oss-uploader.js.map +0 -1
- /package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/{instances → projects}/page/build-manifest.json +0 -0
- /package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/{instances → projects}/page/react-loadable-manifest.json +0 -0
- /package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/{instances → projects}/page/server-reference-manifest.json +0 -0
- /package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/{instances → projects}/page.js.map +0 -0
- /package/dist/dashboard-runtime/dashboard/.next/static/{w-uHfh2BKcsjuH1pgOcYM → bJGjoMHOZZB7Z_j4dpYws}/_buildManifest.js +0 -0
- /package/dist/dashboard-runtime/dashboard/.next/static/{w-uHfh2BKcsjuH1pgOcYM → bJGjoMHOZZB7Z_j4dpYws}/_clientMiddlewareManifest.js +0 -0
- /package/dist/dashboard-runtime/dashboard/.next/static/{w-uHfh2BKcsjuH1pgOcYM → bJGjoMHOZZB7Z_j4dpYws}/_ssgManifest.js +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import { useState } from "react";
|
|
4
|
-
import { useRouter } from "next/navigation";
|
|
4
|
+
import { usePathname, useRouter } from "next/navigation";
|
|
5
5
|
import { Check, ChevronDown, Plus, Settings2 } from "lucide-react";
|
|
6
6
|
|
|
7
7
|
import { Button } from "@/components/ui/button";
|
|
@@ -17,8 +17,26 @@ import { ConnectInstanceDialog } from "@/components/instance/connect-instance-di
|
|
|
17
17
|
import { useInstances, useSwitchInstance } from "@/hooks/use-instances";
|
|
18
18
|
import { cn } from "@/lib/utils";
|
|
19
19
|
|
|
20
|
+
/**
|
|
21
|
+
* Map the current path to a safe destination after switching the active
|
|
22
|
+
* instance. Pages that address a specific resource by name (knowledge base
|
|
23
|
+
* detail, memory store detail, ...) would render a "not found" state under
|
|
24
|
+
* the new instance, so we fall back to the corresponding list view. Pages
|
|
25
|
+
* that are instance-scoped but not resource-scoped (e.g. the chat homepage
|
|
26
|
+
* or the LLM provider list) stay where they are.
|
|
27
|
+
*/
|
|
28
|
+
function resolveSwitchTarget(pathname: string | null): string | null {
|
|
29
|
+
if (!pathname) return null;
|
|
30
|
+
const kbDetail = pathname.match(/^\/knowledge-base\/[^/]+(?:\/.*)?$/);
|
|
31
|
+
if (kbDetail) return "/knowledge-base";
|
|
32
|
+
const memoryDetail = pathname.match(/^\/memory\/[^/]+(?:\/.*)?$/);
|
|
33
|
+
if (memoryDetail) return "/memory";
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
|
|
20
37
|
export function InstanceSwitcher() {
|
|
21
38
|
const router = useRouter();
|
|
39
|
+
const pathname = usePathname();
|
|
22
40
|
const [connectOpen, setConnectOpen] = useState(false);
|
|
23
41
|
const { data, isLoading } = useInstances();
|
|
24
42
|
const switchMutation = useSwitchInstance();
|
|
@@ -30,7 +48,22 @@ export function InstanceSwitcher() {
|
|
|
30
48
|
if (name === activeName || switchMutation.isPending) return;
|
|
31
49
|
try {
|
|
32
50
|
await switchMutation.mutateAsync(name);
|
|
33
|
-
router.refresh
|
|
51
|
+
// Hard reload (not router.refresh) so every client-side state owned
|
|
52
|
+
// by the dashboard rebuilds against the new instance:
|
|
53
|
+
// - ChatConfigProvider's mounts / provider / model selection
|
|
54
|
+
// - QaChatPanel local drafts and unsent input
|
|
55
|
+
// - any in-memory hook state keyed off the previous instance
|
|
56
|
+
// router.refresh only re-fetches RSC payloads; it leaves the React
|
|
57
|
+
// tree (and thus all of the above) intact, which is what made the
|
|
58
|
+
// dashboard appear to "not actually switch" in production builds.
|
|
59
|
+
// Mirrors the standard Discord / GitHub / Notion workspace-switch UX.
|
|
60
|
+
//
|
|
61
|
+
// When the current page is scoped to a resource that does not exist
|
|
62
|
+
// under the new instance (e.g. /knowledge-base/<name>), redirect to
|
|
63
|
+
// the corresponding list view to avoid the "knowledge base not found"
|
|
64
|
+
// dead-end. Other pages keep the current pathname.
|
|
65
|
+
const target = resolveSwitchTarget(pathname) ?? window.location.pathname;
|
|
66
|
+
window.location.assign(target);
|
|
34
67
|
} catch {
|
|
35
68
|
// Error toast is handled inside the hook.
|
|
36
69
|
}
|
|
@@ -47,19 +80,19 @@ export function InstanceSwitcher() {
|
|
|
47
80
|
disabled={isLoading}
|
|
48
81
|
>
|
|
49
82
|
<span className="max-w-[140px] truncate">
|
|
50
|
-
{activeName ? `*${activeName}` : "
|
|
83
|
+
{activeName ? `*${activeName}` : "选择项目"}
|
|
51
84
|
</span>
|
|
52
85
|
<ChevronDown className="h-3.5 w-3.5 opacity-60" />
|
|
53
86
|
</Button>
|
|
54
87
|
</DropdownMenuTrigger>
|
|
55
88
|
<DropdownMenuContent align="end" className="min-w-[220px]">
|
|
56
89
|
<DropdownMenuLabel className="text-xs font-medium text-muted-foreground">
|
|
57
|
-
|
|
90
|
+
切换项目
|
|
58
91
|
</DropdownMenuLabel>
|
|
59
92
|
|
|
60
93
|
{instances.length === 0 ? (
|
|
61
94
|
<div className="px-2 py-3 text-xs text-muted-foreground">
|
|
62
|
-
|
|
95
|
+
暂无项目,先创建一个。
|
|
63
96
|
</div>
|
|
64
97
|
) : (
|
|
65
98
|
instances.map((item) => {
|
|
@@ -100,17 +133,17 @@ export function InstanceSwitcher() {
|
|
|
100
133
|
className="gap-2"
|
|
101
134
|
>
|
|
102
135
|
<Plus className="h-3.5 w-3.5" />
|
|
103
|
-
|
|
136
|
+
创建新项目
|
|
104
137
|
</DropdownMenuItem>
|
|
105
138
|
<DropdownMenuItem
|
|
106
139
|
onSelect={(event) => {
|
|
107
140
|
event.preventDefault();
|
|
108
|
-
router.push("/
|
|
141
|
+
router.push("/projects");
|
|
109
142
|
}}
|
|
110
143
|
className="gap-2"
|
|
111
144
|
>
|
|
112
145
|
<Settings2 className="h-3.5 w-3.5" />
|
|
113
|
-
|
|
146
|
+
项目管理
|
|
114
147
|
</DropdownMenuItem>
|
|
115
148
|
</DropdownMenuContent>
|
|
116
149
|
</DropdownMenu>
|
|
@@ -11,6 +11,14 @@ import type { ChatMessage } from "@/types/llm-chat";
|
|
|
11
11
|
|
|
12
12
|
import { QaMessage } from "./qa-message";
|
|
13
13
|
|
|
14
|
+
export interface QaChatPanelEmptyState {
|
|
15
|
+
title: string;
|
|
16
|
+
description: string;
|
|
17
|
+
/** Optional CTA shown beneath the empty-state copy. */
|
|
18
|
+
actionLabel?: string;
|
|
19
|
+
onAction?: () => void;
|
|
20
|
+
}
|
|
21
|
+
|
|
14
22
|
interface QaChatPanelProps {
|
|
15
23
|
messages: ChatMessage[];
|
|
16
24
|
isStreaming: boolean;
|
|
@@ -18,12 +26,24 @@ interface QaChatPanelProps {
|
|
|
18
26
|
error: string | null;
|
|
19
27
|
onSend: (text: string) => void;
|
|
20
28
|
onStop: () => void;
|
|
29
|
+
/**
|
|
30
|
+
* Override the built-in empty-state copy. The panel always renders the
|
|
31
|
+
* composer at the bottom, so callers can use this to surface page-level
|
|
32
|
+
* onboarding (e.g. "open settings to pick a model") without hiding the
|
|
33
|
+
* input — matching the ChatGPT / Claude convention.
|
|
34
|
+
*/
|
|
35
|
+
emptyState?: QaChatPanelEmptyState;
|
|
36
|
+
/** Composer placeholder shown when `canSend` is false. */
|
|
37
|
+
disabledPlaceholder?: string;
|
|
21
38
|
}
|
|
22
39
|
|
|
23
40
|
/**
|
|
24
41
|
* Chat surface for the QA playground: scrollable message list on top,
|
|
25
42
|
* sticky composer at the bottom. Handles Enter-to-send / Shift+Enter-for-
|
|
26
43
|
* newline and auto-scrolls to the latest turn.
|
|
44
|
+
*
|
|
45
|
+
* The composer is always mounted, even when the message list is empty, so
|
|
46
|
+
* users can start typing immediately on a fresh session.
|
|
27
47
|
*/
|
|
28
48
|
export function QaChatPanel({
|
|
29
49
|
messages,
|
|
@@ -32,6 +52,8 @@ export function QaChatPanel({
|
|
|
32
52
|
error,
|
|
33
53
|
onSend,
|
|
34
54
|
onStop,
|
|
55
|
+
emptyState,
|
|
56
|
+
disabledPlaceholder,
|
|
35
57
|
}: QaChatPanelProps) {
|
|
36
58
|
const [input, setInput] = useState("");
|
|
37
59
|
const scrollRef = useRef<HTMLDivElement>(null);
|
|
@@ -81,8 +103,18 @@ export function QaChatPanel({
|
|
|
81
103
|
<div className="flex h-full min-h-[320px] items-center justify-center">
|
|
82
104
|
<EmptyState
|
|
83
105
|
icon={MessageSquare}
|
|
84
|
-
title="开始对话"
|
|
85
|
-
description=
|
|
106
|
+
title={emptyState?.title ?? "开始对话"}
|
|
107
|
+
description={
|
|
108
|
+
emptyState?.description ??
|
|
109
|
+
"输入问题,系统会先从知识库检索相关内容,再让大模型基于检索结果回答"
|
|
110
|
+
}
|
|
111
|
+
action={
|
|
112
|
+
emptyState?.actionLabel && emptyState?.onAction ? (
|
|
113
|
+
<Button type="button" onClick={emptyState.onAction}>
|
|
114
|
+
{emptyState.actionLabel}
|
|
115
|
+
</Button>
|
|
116
|
+
) : undefined
|
|
117
|
+
}
|
|
86
118
|
/>
|
|
87
119
|
</div>
|
|
88
120
|
) : (
|
|
@@ -102,7 +134,7 @@ export function QaChatPanel({
|
|
|
102
134
|
placeholder={
|
|
103
135
|
canSend
|
|
104
136
|
? "输入问题,Enter 发送,Shift+Enter 换行"
|
|
105
|
-
: "请先在左侧选择模型..."
|
|
137
|
+
: disabledPlaceholder ?? "请先在左侧选择模型..."
|
|
106
138
|
}
|
|
107
139
|
disabled={!canSend}
|
|
108
140
|
className={cn(
|
|
@@ -24,7 +24,9 @@ import type {
|
|
|
24
24
|
|
|
25
25
|
export const INSTANCES_QUERY_KEY = ["instances"] as const;
|
|
26
26
|
|
|
27
|
-
/** Invalidate every cache whose data depends on the active instance.
|
|
27
|
+
/** Invalidate every cache whose data depends on the active instance.
|
|
28
|
+
* Used after non-switch mutations (connect / import / update / delete) where
|
|
29
|
+
* the current session can keep the existing data while a refetch lands. */
|
|
28
30
|
function invalidateInstanceScopedCaches(queryClient: QueryClient) {
|
|
29
31
|
queryClient.invalidateQueries({ queryKey: INSTANCES_QUERY_KEY });
|
|
30
32
|
queryClient.invalidateQueries({ queryKey: ["knowledge-bases"] });
|
|
@@ -33,6 +35,22 @@ function invalidateInstanceScopedCaches(queryClient: QueryClient) {
|
|
|
33
35
|
queryClient.invalidateQueries({ queryKey: ["auth-status"] });
|
|
34
36
|
}
|
|
35
37
|
|
|
38
|
+
/** Hard-reset every cache whose data is scoped to the active instance.
|
|
39
|
+
* `removeQueries` evicts the entries outright instead of marking them
|
|
40
|
+
* stale, so observers on the next render fetch from scratch — no stale
|
|
41
|
+
* data flash from the previous instance during the brief refetch window.
|
|
42
|
+
* Mirrors the pattern recommended by TanStack Query maintainers for
|
|
43
|
+
* logout / tenant-switch flows. */
|
|
44
|
+
function resetInstanceScopedCaches(queryClient: QueryClient) {
|
|
45
|
+
queryClient.removeQueries({ queryKey: ["knowledge-bases"] });
|
|
46
|
+
queryClient.removeQueries({ queryKey: ["memory-stores"] });
|
|
47
|
+
queryClient.removeQueries({ queryKey: ["llm-providers"] });
|
|
48
|
+
queryClient.removeQueries({ queryKey: ["documents"] });
|
|
49
|
+
queryClient.removeQueries({ queryKey: ["instance"] });
|
|
50
|
+
queryClient.invalidateQueries({ queryKey: INSTANCES_QUERY_KEY });
|
|
51
|
+
queryClient.invalidateQueries({ queryKey: ["auth-status"] });
|
|
52
|
+
}
|
|
53
|
+
|
|
36
54
|
export function useInstances() {
|
|
37
55
|
return useQuery({
|
|
38
56
|
queryKey: INSTANCES_QUERY_KEY,
|
|
@@ -56,10 +74,10 @@ export function useConnectInstance() {
|
|
|
56
74
|
mutationFn: (payload: ConnectInstancePayload) => connectInstance(payload),
|
|
57
75
|
onSuccess: () => {
|
|
58
76
|
invalidateInstanceScopedCaches(queryClient);
|
|
59
|
-
toast.success("
|
|
77
|
+
toast.success("项目已创建");
|
|
60
78
|
},
|
|
61
79
|
onError: (error) => {
|
|
62
|
-
toast.error(error instanceof Error ? error.message : "
|
|
80
|
+
toast.error(error instanceof Error ? error.message : "创建项目失败");
|
|
63
81
|
},
|
|
64
82
|
});
|
|
65
83
|
}
|
|
@@ -85,10 +103,10 @@ export function useUpdateInstance(name: string) {
|
|
|
85
103
|
onSuccess: () => {
|
|
86
104
|
invalidateInstanceScopedCaches(queryClient);
|
|
87
105
|
queryClient.invalidateQueries({ queryKey: ["instance", name] });
|
|
88
|
-
toast.success("
|
|
106
|
+
toast.success("项目已更新");
|
|
89
107
|
},
|
|
90
108
|
onError: (error) => {
|
|
91
|
-
toast.error(error instanceof Error ? error.message : "
|
|
109
|
+
toast.error(error instanceof Error ? error.message : "更新项目失败");
|
|
92
110
|
},
|
|
93
111
|
});
|
|
94
112
|
}
|
|
@@ -99,10 +117,10 @@ export function useDeleteInstance() {
|
|
|
99
117
|
mutationFn: (name: string) => deleteInstance(name),
|
|
100
118
|
onSuccess: () => {
|
|
101
119
|
invalidateInstanceScopedCaches(queryClient);
|
|
102
|
-
toast.success("
|
|
120
|
+
toast.success("项目已删除");
|
|
103
121
|
},
|
|
104
122
|
onError: (error) => {
|
|
105
|
-
toast.error(error instanceof Error ? error.message : "
|
|
123
|
+
toast.error(error instanceof Error ? error.message : "删除项目失败");
|
|
106
124
|
},
|
|
107
125
|
});
|
|
108
126
|
}
|
|
@@ -112,11 +130,15 @@ export function useSwitchInstance() {
|
|
|
112
130
|
return useMutation({
|
|
113
131
|
mutationFn: (name: string) => switchInstance(name),
|
|
114
132
|
onSuccess: () => {
|
|
115
|
-
|
|
116
|
-
|
|
133
|
+
// Switching the active instance is conceptually a tenant change:
|
|
134
|
+
// every instance-scoped cache must be evicted (not just invalidated)
|
|
135
|
+
// so the new instance never inherits the old one's KB / memory /
|
|
136
|
+
// provider rows for even a single render.
|
|
137
|
+
resetInstanceScopedCaches(queryClient);
|
|
138
|
+
toast.success("已切换当前项目");
|
|
117
139
|
},
|
|
118
140
|
onError: (error) => {
|
|
119
|
-
toast.error(error instanceof Error ? error.message : "
|
|
141
|
+
toast.error(error instanceof Error ? error.message : "切换项目失败");
|
|
120
142
|
},
|
|
121
143
|
});
|
|
122
144
|
}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { createHash } from "node:crypto";
|
|
2
2
|
import { type NextRequest } from "next/server";
|
|
3
3
|
|
|
4
|
-
import type {
|
|
4
|
+
import type {
|
|
5
|
+
AppConfig,
|
|
6
|
+
ManagedOssConfig,
|
|
7
|
+
ManagedOtsConfig,
|
|
8
|
+
} from "@tablestore/tablestore-agent-shared";
|
|
5
9
|
import {
|
|
6
10
|
CLIError,
|
|
7
11
|
DEFAULT_REGION,
|
|
@@ -15,6 +19,31 @@ import {
|
|
|
15
19
|
inferRegionFromOtsEndpoint,
|
|
16
20
|
} from "@tablestore/tablestore-agent-sdk";
|
|
17
21
|
|
|
22
|
+
const EMPTY_MANAGED_OTS: ManagedOtsConfig = {
|
|
23
|
+
ots_endpoint: "",
|
|
24
|
+
ots_instance_name: "",
|
|
25
|
+
region: "",
|
|
26
|
+
source: "",
|
|
27
|
+
created_at: "",
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
const EMPTY_MANAGED_OSS: ManagedOssConfig = {
|
|
31
|
+
oss_endpoint: "",
|
|
32
|
+
oss_bucket_name: "",
|
|
33
|
+
region: "",
|
|
34
|
+
source: "",
|
|
35
|
+
created_at: "",
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
// The legacy single-instance schema let `buildAppConfig` re-read the active
|
|
39
|
+
// instance from disk to hydrate `managed_*` whenever the cookie carried only
|
|
40
|
+
// raw credentials. With strict per-instance isolation in shared/sdk that
|
|
41
|
+
// fallback is no longer correct (it could re-hydrate from the wrong
|
|
42
|
+
// instance after a CLI-side switch in another terminal). The cookie issued
|
|
43
|
+
// by `use/route.ts` now projects the per-instance managed_* coordinates
|
|
44
|
+
// onto the flat `oss_*`/`ots_*` fields directly, so the SDK can be
|
|
45
|
+
// constructed from cookie alone.
|
|
46
|
+
|
|
18
47
|
// ---------------------------------------------------------------------------
|
|
19
48
|
// Cookie / token constants
|
|
20
49
|
// ---------------------------------------------------------------------------
|
|
@@ -83,6 +112,12 @@ function buildAppConfig(fields: Record<string, string>): AppConfig {
|
|
|
83
112
|
? inferRegionFromOtsEndpoint(otsEndpoint) ?? ""
|
|
84
113
|
: "";
|
|
85
114
|
|
|
115
|
+
// The cookie issued by `use/route.ts` already projects the per-instance
|
|
116
|
+
// managed_* coordinates onto the flat `oss_*`/`ots_*` fields, so the SDK
|
|
117
|
+
// can resolve every endpoint from the cookie alone. Passing empty
|
|
118
|
+
// managed_* placeholders here keeps the AppConfig shape stable for the
|
|
119
|
+
// few SDK helpers that still touch those fields without re-introducing a
|
|
120
|
+
// disk-backed fallback that could leak across instances.
|
|
86
121
|
return {
|
|
87
122
|
access_key_id: fields.access_key_id ?? "",
|
|
88
123
|
access_key_secret: fields.access_key_secret ?? "",
|
|
@@ -97,20 +132,8 @@ function buildAppConfig(fields: Record<string, string>): AppConfig {
|
|
|
97
132
|
memory_agent_id: "",
|
|
98
133
|
memory_run_id: "",
|
|
99
134
|
timeout: DEFAULT_TIMEOUT,
|
|
100
|
-
managed_ots: {
|
|
101
|
-
|
|
102
|
-
ots_instance_name: "",
|
|
103
|
-
region: "",
|
|
104
|
-
source: "",
|
|
105
|
-
created_at: "",
|
|
106
|
-
},
|
|
107
|
-
managed_oss: {
|
|
108
|
-
oss_endpoint: "",
|
|
109
|
-
oss_bucket_name: "",
|
|
110
|
-
region: "",
|
|
111
|
-
source: "",
|
|
112
|
-
created_at: "",
|
|
113
|
-
},
|
|
135
|
+
managed_ots: { ...EMPTY_MANAGED_OTS },
|
|
136
|
+
managed_oss: { ...EMPTY_MANAGED_OSS },
|
|
114
137
|
verbose: false,
|
|
115
138
|
quiet: false,
|
|
116
139
|
yes: false,
|
|
@@ -176,10 +199,30 @@ interface ClientCacheEntry {
|
|
|
176
199
|
|
|
177
200
|
const clientCache = new Map<string, ClientCacheEntry>();
|
|
178
201
|
|
|
202
|
+
/**
|
|
203
|
+
* Drop every cached client. Called from POST /api/v1/instances/[name]/use
|
|
204
|
+
* after the active instance flips so the next request rebuilds the client
|
|
205
|
+
* with the new instance's OTS / OSS coordinates instead of waiting for the
|
|
206
|
+
* 10-minute TTL on the per-key entry.
|
|
207
|
+
*
|
|
208
|
+
* Without this eviction the next upload could still hit the previous
|
|
209
|
+
* tenant's `NodeAgentStorageClient` and fail with
|
|
210
|
+
* `AccessDeniedError: bucket acl`, because the SDK binds OSS coordinates at
|
|
211
|
+
* construction time and the cache key fingerprint may not change when only
|
|
212
|
+
* the active instance flag flips on disk.
|
|
213
|
+
*/
|
|
214
|
+
export function clearClientCache(): void {
|
|
215
|
+
clientCache.clear();
|
|
216
|
+
}
|
|
217
|
+
|
|
179
218
|
function computeClientCacheKey(
|
|
180
219
|
fields: Record<string, string>,
|
|
181
220
|
source: CredentialSource,
|
|
182
221
|
): string {
|
|
222
|
+
// Raw cookie/env fields uniquely identify a tenant tuple now that the
|
|
223
|
+
// cookie carries the per-instance OSS coordinates directly — there is no
|
|
224
|
+
// longer a hidden disk-fallback that could vary between requests sharing
|
|
225
|
+
// the same fingerprint.
|
|
183
226
|
const raw = [
|
|
184
227
|
source,
|
|
185
228
|
fields.access_key_id ?? "",
|
|
@@ -267,11 +310,14 @@ export function resolveClients(request: NextRequest): ResolvedClients {
|
|
|
267
310
|
);
|
|
268
311
|
}
|
|
269
312
|
|
|
313
|
+
// The cache key is now derived from the raw cookie/env tuple alone
|
|
314
|
+
// (no disk-backed managed_* hydrate), so compute it before constructing
|
|
315
|
+
// the AppConfig — saves one allocation on a cache hit.
|
|
270
316
|
const cacheKey = computeClientCacheKey(fields, source);
|
|
271
317
|
const cached = cacheGet(cacheKey);
|
|
272
318
|
if (cached) return cached;
|
|
273
|
-
|
|
274
319
|
const appConfig = buildAppConfig(fields);
|
|
320
|
+
|
|
275
321
|
const resolved: ResolvedClients = {
|
|
276
322
|
kb: new KnowledgeBaseClient(appConfig),
|
|
277
323
|
memory: new MemoryClient(appConfig),
|
package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,5 @@ export { ensureOtsTarget, getResolvedOtsTarget, loadManagedOtsTarget, saveManage
|
|
|
4
4
|
export { ensureOssTarget, getResolvedOssTarget, loadManagedOssTarget, saveManagedOss, buildPublicOssEndpoint, generateBucketName, } from "./managed-oss.js";
|
|
5
5
|
export { KnowledgeBaseClient, Client } from "./kb-client.js";
|
|
6
6
|
export { MemoryClient, normalizeMemoryMessagesPage } from "./memory-client.js";
|
|
7
|
-
export { buildOssKey, buildOssFullPath, createOssClient, putFileStream, deleteOssObjects, resolveAbsolutePath, } from "./oss-uploader.js";
|
|
8
7
|
export { paginateAll, fetchPage, type PaginatedInvoker, type PaginatedResult, } from "./sdk-pagination.js";
|
|
9
8
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,8BAA8B,EAAE,MAAM,eAAe,CAAC;AAE7F,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,cAAc,EACd,sBAAsB,EACtB,0BAA0B,GAC3B,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,cAAc,EACd,sBAAsB,EACtB,kBAAkB,GACnB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AAE/E,OAAO,EACL,WAAW,EACX,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,8BAA8B,EAAE,MAAM,eAAe,CAAC;AAE7F,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,cAAc,EACd,sBAAsB,EACtB,0BAA0B,GAC3B,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,cAAc,EACd,sBAAsB,EACtB,kBAAkB,GACnB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AAE/E,OAAO,EACL,WAAW,EACX,SAAS,EACT,KAAK,gBAAgB,EACrB,KAAK,eAAe,GACrB,MAAM,qBAAqB,CAAC"}
|
|
@@ -8,6 +8,5 @@ export { ensureOtsTarget, getResolvedOtsTarget, loadManagedOtsTarget, saveManage
|
|
|
8
8
|
export { ensureOssTarget, getResolvedOssTarget, loadManagedOssTarget, saveManagedOss, buildPublicOssEndpoint, generateBucketName, } from "./managed-oss.js";
|
|
9
9
|
export { KnowledgeBaseClient, Client } from "./kb-client.js";
|
|
10
10
|
export { MemoryClient, normalizeMemoryMessagesPage } from "./memory-client.js";
|
|
11
|
-
export { buildOssKey, buildOssFullPath, createOssClient, putFileStream, deleteOssObjects, resolveAbsolutePath, } from "./oss-uploader.js";
|
|
12
11
|
export { paginateAll, fetchPage, } from "./sdk-pagination.js";
|
|
13
12
|
//# sourceMappingURL=index.js.map
|
package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,EAAE;AACF,6EAA6E;AAC7E,oCAAoC;AAEpC,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,8BAA8B,EAAE,MAAM,eAAe,CAAC;AAE7F,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,cAAc,EACd,sBAAsB,EACtB,0BAA0B,GAC3B,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,cAAc,EACd,sBAAsB,EACtB,kBAAkB,GACnB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AAE/E,OAAO,EACL,WAAW,EACX,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,EAAE;AACF,6EAA6E;AAC7E,oCAAoC;AAEpC,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,8BAA8B,EAAE,MAAM,eAAe,CAAC;AAE7F,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,cAAc,EACd,sBAAsB,EACtB,0BAA0B,GAC3B,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,cAAc,EACd,sBAAsB,EACtB,kBAAkB,GACnB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AAE/E,OAAO,EACL,WAAW,EACX,SAAS,GAGV,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Persist a managed_* subsection under the currently active instance.
|
|
3
|
+
*
|
|
4
|
+
* Resolution order:
|
|
5
|
+
* 1. `active_instance` pointing at an existing `[instances.<name>]` block.
|
|
6
|
+
* 2. `[default]` (created lazily when missing).
|
|
7
|
+
*
|
|
8
|
+
* The legacy single-instance schema wrote these tables at the TOML top
|
|
9
|
+
* level, which made them shared by every instance and was the root cause
|
|
10
|
+
* of the multi-tenant `AccessDeniedError: bucket acl` regression — two
|
|
11
|
+
* instances onboarding in sequence would silently overwrite each other's
|
|
12
|
+
* bucket name. Strict per-instance writes paired with the read-side
|
|
13
|
+
* migration in `readConfigFile` keep every instance's managed_* metadata
|
|
14
|
+
* isolated from the others.
|
|
15
|
+
*/
|
|
16
|
+
export declare function writeManagedSectionForActive(fileData: Record<string, unknown>, key: "managed_ots" | "managed_oss", payload: Record<string, unknown>): void;
|
|
17
|
+
//# sourceMappingURL=managed-section-writer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"managed-section-writer.d.ts","sourceRoot":"","sources":["../../src/internal/managed-section-writer.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,4BAA4B,CAC1C,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACjC,GAAG,EAAE,aAAa,GAAG,aAAa,EAClC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC/B,IAAI,CA2BN"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ACTIVE_INSTANCE_KEY, DEFAULT_INSTANCE_NAME, INSTANCES_SECTION, } from "@tablestore/tablestore-agent-shared";
|
|
2
|
+
/**
|
|
3
|
+
* Persist a managed_* subsection under the currently active instance.
|
|
4
|
+
*
|
|
5
|
+
* Resolution order:
|
|
6
|
+
* 1. `active_instance` pointing at an existing `[instances.<name>]` block.
|
|
7
|
+
* 2. `[default]` (created lazily when missing).
|
|
8
|
+
*
|
|
9
|
+
* The legacy single-instance schema wrote these tables at the TOML top
|
|
10
|
+
* level, which made them shared by every instance and was the root cause
|
|
11
|
+
* of the multi-tenant `AccessDeniedError: bucket acl` regression — two
|
|
12
|
+
* instances onboarding in sequence would silently overwrite each other's
|
|
13
|
+
* bucket name. Strict per-instance writes paired with the read-side
|
|
14
|
+
* migration in `readConfigFile` keep every instance's managed_* metadata
|
|
15
|
+
* isolated from the others.
|
|
16
|
+
*/
|
|
17
|
+
export function writeManagedSectionForActive(fileData, key, payload) {
|
|
18
|
+
const active = typeof fileData[ACTIVE_INSTANCE_KEY] === "string"
|
|
19
|
+
? fileData[ACTIVE_INSTANCE_KEY]
|
|
20
|
+
: "";
|
|
21
|
+
if (active && active !== DEFAULT_INSTANCE_NAME) {
|
|
22
|
+
const instancesRaw = fileData[INSTANCES_SECTION] && typeof fileData[INSTANCES_SECTION] === "object"
|
|
23
|
+
? fileData[INSTANCES_SECTION]
|
|
24
|
+
: {};
|
|
25
|
+
const target = instancesRaw[active] && typeof instancesRaw[active] === "object"
|
|
26
|
+
? instancesRaw[active]
|
|
27
|
+
: {};
|
|
28
|
+
target[key] = payload;
|
|
29
|
+
instancesRaw[active] = target;
|
|
30
|
+
fileData[INSTANCES_SECTION] = instancesRaw;
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
const def = fileData.default && typeof fileData.default === "object"
|
|
34
|
+
? fileData.default
|
|
35
|
+
: {};
|
|
36
|
+
def[key] = payload;
|
|
37
|
+
fileData.default = def;
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=managed-section-writer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"managed-section-writer.js","sourceRoot":"","sources":["../../src/internal/managed-section-writer.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,iBAAiB,GAClB,MAAM,qCAAqC,CAAC;AAE7C;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,4BAA4B,CAC1C,QAAiC,EACjC,GAAkC,EAClC,OAAgC;IAEhC,MAAM,MAAM,GACV,OAAO,QAAQ,CAAC,mBAAmB,CAAC,KAAK,QAAQ;QAC/C,CAAC,CAAE,QAAQ,CAAC,mBAAmB,CAAY;QAC3C,CAAC,CAAC,EAAE,CAAC;IAET,IAAI,MAAM,IAAI,MAAM,KAAK,qBAAqB,EAAE,CAAC;QAC/C,MAAM,YAAY,GAChB,QAAQ,CAAC,iBAAiB,CAAC,IAAI,OAAO,QAAQ,CAAC,iBAAiB,CAAC,KAAK,QAAQ;YAC5E,CAAC,CAAE,QAAQ,CAAC,iBAAiB,CAA6C;YAC1E,CAAC,CAAC,EAAE,CAAC;QACT,MAAM,MAAM,GACV,YAAY,CAAC,MAAM,CAAC,IAAI,OAAO,YAAY,CAAC,MAAM,CAAC,KAAK,QAAQ;YAC9D,CAAC,CAAC,YAAY,CAAC,MAAM,CAAC;YACtB,CAAC,CAAC,EAAE,CAAC;QACT,MAAM,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC;QACtB,YAAY,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;QAC9B,QAAQ,CAAC,iBAAiB,CAAC,GAAG,YAAY,CAAC;QAC3C,OAAO;IACT,CAAC;IAED,MAAM,GAAG,GACP,QAAQ,CAAC,OAAO,IAAI,OAAO,QAAQ,CAAC,OAAO,KAAK,QAAQ;QACtD,CAAC,CAAE,QAAQ,CAAC,OAAmC;QAC/C,CAAC,CAAC,EAAE,CAAC;IACT,GAAG,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC;IACnB,QAAQ,CAAC,OAAO,GAAG,GAAG,CAAC;AACzB,CAAC"}
|
package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.d.ts
CHANGED
|
@@ -1,28 +1,45 @@
|
|
|
1
1
|
import type { AppConfig } from "@tablestore/tablestore-agent-shared";
|
|
2
2
|
import type { StandardResponse } from "./types.js";
|
|
3
3
|
/**
|
|
4
|
-
* High-level Knowledge Base client
|
|
4
|
+
* High-level Knowledge Base client built on top of the upstream
|
|
5
|
+
* `@tablestore/agent-storage` SDK. The wrapper preserves the legacy
|
|
6
|
+
* {@link StandardResponse} envelope so that existing CLI / Dashboard code
|
|
7
|
+
* continues to work without changes.
|
|
5
8
|
*
|
|
6
9
|
* Every public method returns a {@link StandardResponse} — even on SDK error
|
|
7
10
|
* (we never throw for remote errors, only for programmer errors / bad config).
|
|
8
|
-
* The Dashboard and CLI both rely on this consistent envelope.
|
|
9
11
|
*/
|
|
10
12
|
export declare class KnowledgeBaseClient {
|
|
11
13
|
private readonly config;
|
|
12
|
-
private sdkInstance;
|
|
13
14
|
constructor(config: AppConfig);
|
|
15
|
+
/**
|
|
16
|
+
* Construct a fresh SDK client for every call.
|
|
17
|
+
*
|
|
18
|
+
* The new `@tablestore/agent-storage` runtime is a thin fetch wrapper with
|
|
19
|
+
* no connection pool, so reconstruction overhead is negligible. Caching
|
|
20
|
+
* the instance turned out to be unsafe: `NodeAgentStorageClient` binds OSS
|
|
21
|
+
* coordinates at construction time, so a cached instance kept serving the
|
|
22
|
+
* previous tenant's bucket after an instance switch (manifesting as
|
|
23
|
+
* `AccessDeniedError: bucket acl`).
|
|
24
|
+
*/
|
|
14
25
|
private getSdk;
|
|
15
26
|
/**
|
|
16
|
-
* Return an SDK client
|
|
17
|
-
*
|
|
27
|
+
* Return an SDK client that is guaranteed to be a {@link NodeAgentStorageClient}
|
|
28
|
+
* (i.e. has OSS configured). When `autoCreate` is true a managed bucket
|
|
29
|
+
* will be provisioned on demand.
|
|
30
|
+
*
|
|
31
|
+
* Always reconstructs the underlying client to avoid the cross-tenant
|
|
32
|
+
* leak described on {@link getSdk}.
|
|
18
33
|
*/
|
|
19
34
|
private sdkWithOss;
|
|
20
35
|
/**
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
36
|
+
* Single funnel for invoking SDK methods. Wraps the bare server response in
|
|
37
|
+
* the standard envelope and converts thrown SDK errors into envelope-form
|
|
38
|
+
* errors (or, for connectivity failures, a thrown {@link NetworkError} that
|
|
39
|
+
* the CLI / Dashboard layer translates into the right exit code / HTTP
|
|
40
|
+
* status).
|
|
24
41
|
*/
|
|
25
|
-
private
|
|
42
|
+
private invoke;
|
|
26
43
|
createKnowledgeBase(request: Record<string, unknown>): Promise<StandardResponse>;
|
|
27
44
|
describeKnowledgeBase(request: Record<string, unknown>): Promise<StandardResponse>;
|
|
28
45
|
deleteKnowledgeBase(request: Record<string, unknown>): Promise<StandardResponse>;
|
|
@@ -31,14 +48,13 @@ export declare class KnowledgeBaseClient {
|
|
|
31
48
|
listKnowledgeBases(request: Record<string, unknown>): Promise<StandardResponse>;
|
|
32
49
|
addDocuments(request: Record<string, unknown>): Promise<StandardResponse>;
|
|
33
50
|
/**
|
|
34
|
-
* Upload local files to the managed OSS bucket and
|
|
35
|
-
* `addDocuments`.
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
* `uploadDocuments`, so we handle the OSS side ourselves with `ali-oss`.
|
|
51
|
+
* Upload local files to the managed OSS bucket and register them via
|
|
52
|
+
* `addDocuments`. Delegates the heavy lifting to
|
|
53
|
+
* {@link NodeAgentStorageClient.uploadDocuments}; the wrapper is only here
|
|
54
|
+
* to preserve the historical `originalName` field — the upstream SDK keys
|
|
55
|
+
* each OSS object off `basename(filePath)`, so when the caller wants the
|
|
56
|
+
* OSS key tail to be the browser-supplied name we materialise a sibling
|
|
57
|
+
* file with that exact basename and forward its path instead.
|
|
42
58
|
*/
|
|
43
59
|
uploadDocuments(request: Record<string, unknown>): Promise<StandardResponse>;
|
|
44
60
|
getDocument(request: Record<string, unknown>): Promise<StandardResponse>;
|
package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kb-client.d.ts","sourceRoot":"","sources":["../src/kb-client.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"kb-client.d.ts","sourceRoot":"","sources":["../src/kb-client.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAYrE,OAAO,KAAK,EAAE,gBAAgB,EAAoB,MAAM,YAAY,CAAC;AA+GrE;;;;;;;;GAQG;AACH,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAY;gBAEvB,MAAM,EAAE,SAAS;IAI7B;;;;;;;;;OASG;YACW,MAAM;IAIpB;;;;;;;OAOG;YACW,UAAU;IAgBxB;;;;;;OAMG;YACW,MAAM;IAYd,mBAAmB,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAKhF,qBAAqB,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAKlF,mBAAmB,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAKhF,mBAAmB,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAKtF,yEAAyE;IACnE,kBAAkB,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAO/E,YAAY,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAK/E;;;;;;;;OAQG;IACG,eAAe,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAiD5E,WAAW,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAKxE,eAAe,CACnB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChC,UAAU,UAAQ,GACjB,OAAO,CAAC,gBAAgB,CAAC;IAStB,aAAa,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAO1E,UAAU,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAKvE,YAAY,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAOzE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAI5E;AAGD,OAAO,EAAE,mBAAmB,IAAI,MAAM,EAAE,CAAC"}
|