@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
package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.js
CHANGED
|
@@ -1,52 +1,132 @@
|
|
|
1
1
|
import { promises as fsp } from "node:fs";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
2
|
+
import { basename, dirname, join } from "node:path";
|
|
3
|
+
import { AgentStorageClient, } from "@tablestore/agent-storage";
|
|
4
|
+
import { NodeAgentStorageClient } from "@tablestore/agent-storage/node";
|
|
4
5
|
import { CLIError } from "@tablestore/tablestore-agent-shared";
|
|
5
6
|
import { ensureOtsTarget } from "./managed-ots.js";
|
|
6
7
|
import { ensureOssTarget, getResolvedOssTarget, } from "./managed-oss.js";
|
|
7
8
|
import { wrapResponse, handleServiceAvailabilityError, } from "./response.js";
|
|
8
|
-
import { buildOssFullPath, buildOssKey, createOssClient, deleteOssObjects, putFileStream, resolveAbsolutePath, } from "./oss-uploader.js";
|
|
9
9
|
const KB_UNAVAILABLE_MESSAGE = "当前不支持知识库服务";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
// ---------------------------------------------------------------------------
|
|
11
|
+
// Filename sanitisation for `originalName`
|
|
12
|
+
// ---------------------------------------------------------------------------
|
|
13
|
+
//
|
|
14
|
+
// The Dashboard upload route passes the browser-supplied file name in
|
|
15
|
+
// `originalName` so that the OSS object key keeps a human-readable tail even
|
|
16
|
+
// though the tmp file on disk is prefixed with a random token to avoid
|
|
17
|
+
// per-request collisions. The new `@tablestore/agent-storage` SDK does not
|
|
18
|
+
// expose a name-override knob — it simply uses `basename(filePath)` when
|
|
19
|
+
// composing the OSS key. To preserve the existing CLI/Dashboard behaviour we
|
|
20
|
+
// rename (hard-link first, fall back to copy) the tmp file to a sibling path
|
|
21
|
+
// whose basename is `originalName`, and forward that path to the SDK.
|
|
22
|
+
//
|
|
23
|
+
// `originalName` is sanitised defensively because it ultimately comes from a
|
|
24
|
+
// browser; any embedded path separators or control characters are stripped so
|
|
25
|
+
// the resulting OSS key cannot escape its expected layout.
|
|
26
|
+
function sanitizeOriginalName(name) {
|
|
27
|
+
const base = basename(name);
|
|
28
|
+
// eslint-disable-next-line no-control-regex
|
|
29
|
+
const cleaned = base.replace(/[\x00-\x1f]/g, "").trim();
|
|
30
|
+
return cleaned.length > 0 ? cleaned : base;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Materialise a sibling file whose basename equals `originalName`. Tries
|
|
34
|
+
* `link` first to avoid copying bytes; falls back to `copyFile` when the
|
|
35
|
+
* filesystem rejects hard links (e.g. across devices). Returns the path that
|
|
36
|
+
* should be passed to the SDK.
|
|
37
|
+
*/
|
|
38
|
+
async function materializeRenamedSibling(absolutePath, originalName) {
|
|
39
|
+
const safeName = sanitizeOriginalName(originalName);
|
|
40
|
+
const target = join(dirname(absolutePath), safeName);
|
|
41
|
+
if (target === absolutePath)
|
|
42
|
+
return absolutePath;
|
|
43
|
+
try {
|
|
44
|
+
const stat = await fsp.stat(target);
|
|
45
|
+
if (stat.isFile())
|
|
46
|
+
return target;
|
|
47
|
+
}
|
|
48
|
+
catch {
|
|
49
|
+
// missing — fall through to create
|
|
50
|
+
}
|
|
51
|
+
try {
|
|
52
|
+
await fsp.link(absolutePath, target);
|
|
53
|
+
return target;
|
|
54
|
+
}
|
|
55
|
+
catch {
|
|
56
|
+
await fsp.copyFile(absolutePath, target);
|
|
57
|
+
return target;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
function buildBaseOptions(config, ots) {
|
|
61
|
+
return {
|
|
62
|
+
endpoint: ots.otsEndpoint,
|
|
63
|
+
instanceName: ots.otsInstanceName,
|
|
14
64
|
accessKeyId: config.access_key_id,
|
|
15
65
|
accessKeySecret: config.access_key_secret,
|
|
16
|
-
|
|
17
|
-
|
|
66
|
+
region: ots.region,
|
|
67
|
+
// Use v4 signing to keep parity with the historical `tablestore` SDK
|
|
68
|
+
// behaviour and to support newer endpoints uniformly.
|
|
69
|
+
signVersion: "v4",
|
|
18
70
|
};
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
71
|
+
}
|
|
72
|
+
async function buildSdkClient(config) {
|
|
73
|
+
const ots = await ensureOtsTarget(config);
|
|
74
|
+
const oss = getResolvedOssTarget(config);
|
|
75
|
+
const base = buildBaseOptions(config, ots);
|
|
76
|
+
if (oss) {
|
|
77
|
+
return new NodeAgentStorageClient({
|
|
78
|
+
...base,
|
|
79
|
+
ossEndpoint: oss.ossEndpoint,
|
|
80
|
+
ossBucketName: oss.ossBucketName,
|
|
81
|
+
});
|
|
22
82
|
}
|
|
23
|
-
return new
|
|
83
|
+
return new AgentStorageClient(base);
|
|
84
|
+
}
|
|
85
|
+
async function buildSdkClientWithOss(config, oss) {
|
|
86
|
+
const ots = await ensureOtsTarget(config);
|
|
87
|
+
return new NodeAgentStorageClient({
|
|
88
|
+
...buildBaseOptions(config, ots),
|
|
89
|
+
ossEndpoint: oss.ossEndpoint,
|
|
90
|
+
ossBucketName: oss.ossBucketName,
|
|
91
|
+
});
|
|
24
92
|
}
|
|
25
93
|
// ---------------------------------------------------------------------------
|
|
26
94
|
// KnowledgeBase Client
|
|
27
95
|
// ---------------------------------------------------------------------------
|
|
28
96
|
/**
|
|
29
|
-
* High-level Knowledge Base client
|
|
97
|
+
* High-level Knowledge Base client built on top of the upstream
|
|
98
|
+
* `@tablestore/agent-storage` SDK. The wrapper preserves the legacy
|
|
99
|
+
* {@link StandardResponse} envelope so that existing CLI / Dashboard code
|
|
100
|
+
* continues to work without changes.
|
|
30
101
|
*
|
|
31
102
|
* Every public method returns a {@link StandardResponse} — even on SDK error
|
|
32
103
|
* (we never throw for remote errors, only for programmer errors / bad config).
|
|
33
|
-
* The Dashboard and CLI both rely on this consistent envelope.
|
|
34
104
|
*/
|
|
35
105
|
export class KnowledgeBaseClient {
|
|
36
106
|
config;
|
|
37
|
-
sdkInstance = null;
|
|
38
107
|
constructor(config) {
|
|
39
108
|
this.config = config;
|
|
40
109
|
}
|
|
110
|
+
/**
|
|
111
|
+
* Construct a fresh SDK client for every call.
|
|
112
|
+
*
|
|
113
|
+
* The new `@tablestore/agent-storage` runtime is a thin fetch wrapper with
|
|
114
|
+
* no connection pool, so reconstruction overhead is negligible. Caching
|
|
115
|
+
* the instance turned out to be unsafe: `NodeAgentStorageClient` binds OSS
|
|
116
|
+
* coordinates at construction time, so a cached instance kept serving the
|
|
117
|
+
* previous tenant's bucket after an instance switch (manifesting as
|
|
118
|
+
* `AccessDeniedError: bucket acl`).
|
|
119
|
+
*/
|
|
41
120
|
async getSdk() {
|
|
42
|
-
|
|
43
|
-
this.sdkInstance = await buildSdkClient(this.config);
|
|
44
|
-
}
|
|
45
|
-
return this.sdkInstance;
|
|
121
|
+
return buildSdkClient(this.config);
|
|
46
122
|
}
|
|
47
123
|
/**
|
|
48
|
-
* Return an SDK client
|
|
49
|
-
*
|
|
124
|
+
* Return an SDK client that is guaranteed to be a {@link NodeAgentStorageClient}
|
|
125
|
+
* (i.e. has OSS configured). When `autoCreate` is true a managed bucket
|
|
126
|
+
* will be provisioned on demand.
|
|
127
|
+
*
|
|
128
|
+
* Always reconstructs the underlying client to avoid the cross-tenant
|
|
129
|
+
* leak described on {@link getSdk}.
|
|
50
130
|
*/
|
|
51
131
|
async sdkWithOss(autoCreate) {
|
|
52
132
|
if (!autoCreate) {
|
|
@@ -54,37 +134,21 @@ export class KnowledgeBaseClient {
|
|
|
54
134
|
if (target === null) {
|
|
55
135
|
throw new CLIError("BAD_REQUEST", "OSS bucket is required for this operation. Configure oss_endpoint / oss_bucket_name.");
|
|
56
136
|
}
|
|
57
|
-
return this.
|
|
137
|
+
return buildSdkClientWithOss(this.config, target);
|
|
58
138
|
}
|
|
59
139
|
const target = await ensureOssTarget(this.config);
|
|
60
|
-
|
|
61
|
-
this.config.oss_bucket_name !== target.ossBucketName) {
|
|
62
|
-
const updatedConfig = {
|
|
63
|
-
...this.config,
|
|
64
|
-
oss_endpoint: target.ossEndpoint,
|
|
65
|
-
oss_bucket_name: target.ossBucketName,
|
|
66
|
-
};
|
|
67
|
-
return buildSdkClient(updatedConfig);
|
|
68
|
-
}
|
|
69
|
-
return this.getSdk();
|
|
140
|
+
return buildSdkClientWithOss(this.config, target);
|
|
70
141
|
}
|
|
71
142
|
/**
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
*
|
|
143
|
+
* Single funnel for invoking SDK methods. Wraps the bare server response in
|
|
144
|
+
* the standard envelope and converts thrown SDK errors into envelope-form
|
|
145
|
+
* errors (or, for connectivity failures, a thrown {@link NetworkError} that
|
|
146
|
+
* the CLI / Dashboard layer translates into the right exit code / HTTP
|
|
147
|
+
* status).
|
|
75
148
|
*/
|
|
76
|
-
async
|
|
149
|
+
async invoke(fn) {
|
|
77
150
|
try {
|
|
78
|
-
const
|
|
79
|
-
if (typeof method !== "function") {
|
|
80
|
-
throw new CLIError("BAD_REQUEST", `tablestore SDK method not available: ${methodName}. ` +
|
|
81
|
-
"Please upgrade the 'tablestore' npm package to >=5.6.5.");
|
|
82
|
-
}
|
|
83
|
-
// tablestore SDK signatures are uniformly (params, callback). Callers
|
|
84
|
-
// that want to pass auxiliary fields should merge them into `request`
|
|
85
|
-
// via `extra` so we never put a non-function in the callback slot.
|
|
86
|
-
const mergedRequest = extra ? { ...request, ...extra } : request;
|
|
87
|
-
const result = await method.call(sdk, mergedRequest);
|
|
151
|
+
const result = await fn();
|
|
88
152
|
return wrapResponse(result);
|
|
89
153
|
}
|
|
90
154
|
catch (error) {
|
|
@@ -96,221 +160,109 @@ export class KnowledgeBaseClient {
|
|
|
96
160
|
// -- Knowledge Base -------------------------------------------------------
|
|
97
161
|
async createKnowledgeBase(request) {
|
|
98
162
|
const sdk = await this.getSdk();
|
|
99
|
-
return this.
|
|
163
|
+
return this.invoke(() => sdk.createKnowledgeBase(request));
|
|
100
164
|
}
|
|
101
165
|
async describeKnowledgeBase(request) {
|
|
102
166
|
const sdk = await this.getSdk();
|
|
103
|
-
return this.
|
|
167
|
+
return this.invoke(() => sdk.describeKnowledgeBase(request));
|
|
104
168
|
}
|
|
105
169
|
async deleteKnowledgeBase(request) {
|
|
106
170
|
const sdk = await this.getSdk();
|
|
107
|
-
return this.
|
|
171
|
+
return this.invoke(() => sdk.deleteKnowledgeBase(request));
|
|
108
172
|
}
|
|
109
173
|
async updateKnowledgeBase(request) {
|
|
110
174
|
const sdk = await this.getSdk();
|
|
111
|
-
return this.
|
|
175
|
+
return this.invoke(() => sdk.updateKnowledgeBase(request));
|
|
112
176
|
}
|
|
113
177
|
/** Note: upstream SDK method is named `listKnowledgeBase` (singular). */
|
|
114
178
|
async listKnowledgeBases(request) {
|
|
115
179
|
const sdk = await this.getSdk();
|
|
116
|
-
return this.
|
|
180
|
+
return this.invoke(() => sdk.listKnowledgeBase(request));
|
|
117
181
|
}
|
|
118
182
|
// -- Documents ------------------------------------------------------------
|
|
119
183
|
async addDocuments(request) {
|
|
120
|
-
const sdk = await this.
|
|
121
|
-
return this.
|
|
184
|
+
const sdk = await this.getSdk();
|
|
185
|
+
return this.invoke(() => sdk.addDocuments(request));
|
|
122
186
|
}
|
|
123
187
|
/**
|
|
124
|
-
* Upload local files to the managed OSS bucket and
|
|
125
|
-
* `addDocuments`.
|
|
126
|
-
*
|
|
127
|
-
*
|
|
128
|
-
*
|
|
129
|
-
*
|
|
130
|
-
*
|
|
131
|
-
* `uploadDocuments`, so we handle the OSS side ourselves with `ali-oss`.
|
|
188
|
+
* Upload local files to the managed OSS bucket and register them via
|
|
189
|
+
* `addDocuments`. Delegates the heavy lifting to
|
|
190
|
+
* {@link NodeAgentStorageClient.uploadDocuments}; the wrapper is only here
|
|
191
|
+
* to preserve the historical `originalName` field — the upstream SDK keys
|
|
192
|
+
* each OSS object off `basename(filePath)`, so when the caller wants the
|
|
193
|
+
* OSS key tail to be the browser-supplied name we materialise a sibling
|
|
194
|
+
* file with that exact basename and forward its path instead.
|
|
132
195
|
*/
|
|
133
196
|
async uploadDocuments(request) {
|
|
134
|
-
const kbName = typeof request.knowledgeBaseName === "string" ? request.knowledgeBaseName : "";
|
|
135
|
-
if (!kbName) {
|
|
136
|
-
return {
|
|
137
|
-
code: "BAD_REQUEST",
|
|
138
|
-
data: null,
|
|
139
|
-
message: "knowledgeBaseName is required",
|
|
140
|
-
requestId: randomUUID(),
|
|
141
|
-
};
|
|
142
|
-
}
|
|
143
197
|
const docsRaw = request.documents;
|
|
144
|
-
if (!Array.isArray(docsRaw)
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
requestId: randomUUID(),
|
|
150
|
-
};
|
|
198
|
+
if (!Array.isArray(docsRaw)) {
|
|
199
|
+
// Hand off to the SDK so the caller still sees the canonical
|
|
200
|
+
// server-side validation envelope; we do not duplicate the check here.
|
|
201
|
+
const sdk = await this.sdkWithOss(true);
|
|
202
|
+
return this.invoke(() => sdk.uploadDocuments(request));
|
|
151
203
|
}
|
|
152
204
|
const docs = docsRaw;
|
|
153
|
-
const
|
|
154
|
-
const ossTarget = await ensureOssTarget(this.config);
|
|
155
|
-
const otsTarget = await ensureOtsTarget(this.config);
|
|
156
|
-
const ossClient = createOssClient(this.config, ossTarget);
|
|
157
|
-
const sdk = await this.sdkWithOss(true);
|
|
158
|
-
const details = [];
|
|
159
|
-
let succeeded = 0;
|
|
160
|
-
let failed = 0;
|
|
205
|
+
const rewritten = [];
|
|
161
206
|
for (const doc of docs) {
|
|
162
207
|
const filePath = typeof doc.filePath === "string" ? doc.filePath : undefined;
|
|
163
|
-
if (!filePath) {
|
|
164
|
-
details.push({ status: "failed", failureReason: "filePath is required" });
|
|
165
|
-
failed++;
|
|
166
|
-
continue;
|
|
167
|
-
}
|
|
168
|
-
// Optional human-readable name used as the tail of the OSS key. The
|
|
169
|
-
// Dashboard passes the browser-supplied file name here so that the
|
|
170
|
-
// random prefix it adds to the tmp basename never leaks into OSS.
|
|
171
208
|
const originalName = typeof doc.originalName === "string" && doc.originalName.length > 0
|
|
172
209
|
? doc.originalName
|
|
173
210
|
: undefined;
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
try {
|
|
179
|
-
const stat = await fsp.stat(absolutePath);
|
|
180
|
-
if (!stat.isFile()) {
|
|
181
|
-
details.push({
|
|
182
|
-
filePath,
|
|
183
|
-
status: "failed",
|
|
184
|
-
failureReason: "not a regular file",
|
|
185
|
-
});
|
|
186
|
-
failed++;
|
|
187
|
-
continue;
|
|
188
|
-
}
|
|
189
|
-
size = stat.size;
|
|
190
|
-
}
|
|
191
|
-
catch (err) {
|
|
192
|
-
details.push({
|
|
193
|
-
filePath,
|
|
194
|
-
status: "failed",
|
|
195
|
-
failureReason: `stat failed: ${String(err)}`,
|
|
196
|
-
});
|
|
197
|
-
failed++;
|
|
211
|
+
if (!filePath || !originalName) {
|
|
212
|
+
const next = { ...doc };
|
|
213
|
+
delete next.originalName;
|
|
214
|
+
rewritten.push(next);
|
|
198
215
|
continue;
|
|
199
216
|
}
|
|
200
|
-
|
|
201
|
-
kbName,
|
|
202
|
-
subspace,
|
|
203
|
-
absolutePath,
|
|
204
|
-
fileName: originalName,
|
|
205
|
-
});
|
|
206
|
-
const fullOssPath = buildOssFullPath(ossTarget.ossBucketName, ossKey);
|
|
217
|
+
let renamedPath;
|
|
207
218
|
try {
|
|
208
|
-
await
|
|
219
|
+
renamedPath = await materializeRenamedSibling(filePath, originalName);
|
|
209
220
|
}
|
|
210
221
|
catch (err) {
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
}
|
|
217
|
-
failed++;
|
|
218
|
-
continue;
|
|
222
|
+
return {
|
|
223
|
+
code: "INTERNAL_SERVER_ERROR",
|
|
224
|
+
data: null,
|
|
225
|
+
message: `Failed to prepare upload for ${originalName}: ${err instanceof Error ? err.message : String(err)}`,
|
|
226
|
+
requestId: "",
|
|
227
|
+
};
|
|
219
228
|
}
|
|
220
|
-
const
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
{
|
|
224
|
-
ossKey: fullOssPath,
|
|
225
|
-
...(doc.metadata !== undefined ? { metadata: doc.metadata } : {}),
|
|
226
|
-
},
|
|
227
|
-
],
|
|
228
|
-
};
|
|
229
|
-
if (subspace)
|
|
230
|
-
addReq.subspace = subspace;
|
|
231
|
-
const addResp = await this.invokeOnSdk(sdk, "addDocuments", addReq);
|
|
232
|
-
if (addResp.code !== "SUCCESS" && addResp.code !== "PARTIAL_SUCCESS") {
|
|
233
|
-
await deleteOssObjects(ossClient, [ossKey]);
|
|
234
|
-
details.push({
|
|
235
|
-
filePath,
|
|
236
|
-
ossKey: fullOssPath,
|
|
237
|
-
status: "failed",
|
|
238
|
-
failureReason: addResp.message,
|
|
239
|
-
});
|
|
240
|
-
failed++;
|
|
241
|
-
continue;
|
|
242
|
-
}
|
|
243
|
-
// Merge the per-document detail returned by addDocuments so the caller
|
|
244
|
-
// sees the assigned docId, eTag, etc. Falls back to a synthetic entry
|
|
245
|
-
// when the upstream response omits documentDetails.
|
|
246
|
-
const innerArray = addResp.data !== null && typeof addResp.data === "object"
|
|
247
|
-
? addResp.data.documentDetails
|
|
248
|
-
: undefined;
|
|
249
|
-
const innerDetail = Array.isArray(innerArray) && innerArray.length > 0 ? innerArray[0] : undefined;
|
|
250
|
-
if (innerDetail && innerDetail.status === "failed") {
|
|
251
|
-
await deleteOssObjects(ossClient, [ossKey]);
|
|
252
|
-
details.push({
|
|
253
|
-
...innerDetail,
|
|
254
|
-
filePath,
|
|
255
|
-
ossKey: fullOssPath,
|
|
256
|
-
});
|
|
257
|
-
failed++;
|
|
258
|
-
continue;
|
|
259
|
-
}
|
|
260
|
-
details.push({
|
|
261
|
-
...(innerDetail ?? {}),
|
|
262
|
-
filePath,
|
|
263
|
-
ossKey: fullOssPath,
|
|
264
|
-
status: innerDetail?.status ?? "succeed",
|
|
265
|
-
});
|
|
266
|
-
succeeded++;
|
|
229
|
+
const next = { ...doc, filePath: renamedPath };
|
|
230
|
+
delete next.originalName;
|
|
231
|
+
rewritten.push(next);
|
|
267
232
|
}
|
|
268
|
-
const
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
? "INTERNAL_SERVER_ERROR"
|
|
272
|
-
: "PARTIAL_SUCCESS";
|
|
273
|
-
const message = code === "SUCCESS"
|
|
274
|
-
? "succeed"
|
|
275
|
-
: `${failed} of ${docs.length} document(s) failed`;
|
|
276
|
-
return {
|
|
277
|
-
code,
|
|
278
|
-
data: { documentDetails: details },
|
|
279
|
-
message,
|
|
280
|
-
requestId: randomUUID(),
|
|
281
|
-
};
|
|
233
|
+
const sdk = await this.sdkWithOss(true);
|
|
234
|
+
const sdkRequest = { ...request, documents: rewritten };
|
|
235
|
+
return this.invoke(() => sdk.uploadDocuments(sdkRequest));
|
|
282
236
|
}
|
|
283
237
|
async getDocument(request) {
|
|
284
238
|
const sdk = await this.getSdk();
|
|
285
|
-
return this.
|
|
239
|
+
return this.invoke(() => sdk.getDocument(request));
|
|
286
240
|
}
|
|
287
241
|
async deleteDocuments(request, deleteFile = false) {
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
// is not implemented yet; current CLI/Dashboard callers pass false.
|
|
293
|
-
void deleteFile;
|
|
242
|
+
if (deleteFile) {
|
|
243
|
+
const sdk = await this.sdkWithOss(false);
|
|
244
|
+
return this.invoke(() => sdk.deleteDocuments(request, true));
|
|
245
|
+
}
|
|
294
246
|
const sdk = await this.getSdk();
|
|
295
|
-
return this.
|
|
247
|
+
return this.invoke(() => sdk.deleteDocuments(request));
|
|
296
248
|
}
|
|
297
249
|
async listDocuments(request) {
|
|
298
250
|
const sdk = await this.getSdk();
|
|
299
|
-
return this.
|
|
251
|
+
return this.invoke(() => sdk.listDocuments(request));
|
|
300
252
|
}
|
|
301
253
|
// -- Chunks ---------------------------------------------------------------
|
|
302
254
|
async listChunks(request) {
|
|
303
255
|
const sdk = await this.getSdk();
|
|
304
|
-
return this.
|
|
256
|
+
return this.invoke(() => sdk.listChunks(request));
|
|
305
257
|
}
|
|
306
258
|
async updateChunks(request) {
|
|
307
259
|
const sdk = await this.getSdk();
|
|
308
|
-
return this.
|
|
260
|
+
return this.invoke(() => sdk.updateChunks(request));
|
|
309
261
|
}
|
|
310
262
|
// -- Retrieve -------------------------------------------------------------
|
|
311
263
|
async retrieve(request) {
|
|
312
264
|
const sdk = await this.getSdk();
|
|
313
|
-
return this.
|
|
265
|
+
return this.invoke(() => sdk.retrieve(request));
|
|
314
266
|
}
|
|
315
267
|
}
|
|
316
268
|
// Kept as a convenience alias — the CLI historically imports `Client`.
|
package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kb-client.js","sourceRoot":"","sources":["../src/kb-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,GAAG,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"kb-client.js","sourceRoot":"","sources":["../src/kb-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,GAAG,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEpD,OAAO,EACL,kBAAkB,GAEnB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAGxE,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAE/D,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EACL,eAAe,EACf,oBAAoB,GACrB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,YAAY,EACZ,8BAA8B,GAC/B,MAAM,eAAe,CAAC;AAGvB,MAAM,sBAAsB,GAAG,YAAY,CAAC;AAE5C,8EAA8E;AAC9E,2CAA2C;AAC3C,8EAA8E;AAC9E,EAAE;AACF,sEAAsE;AACtE,6EAA6E;AAC7E,uEAAuE;AACvE,2EAA2E;AAC3E,yEAAyE;AACzE,6EAA6E;AAC7E,6E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C,GAAG,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,CAAC;IACvD,CAAC;IAED,4EAA4E;IAE5E,KAAK,CAAC,UAAU,CAAC,OAAgC;QAC/C,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,EAAE,CAAC;QAChC,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC;IACpD,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,OAAgC;QACjD,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,EAAE,CAAC;QAChC,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC;IACtD,CAAC;IAED,4EAA4E;IAE5E,KAAK,CAAC,QAAQ,CAAC,OAAgC;QAC7C,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,EAAE,CAAC;QAChC,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC;IAClD,CAAC;CACF;AAED,uEAAuE;AACvE,OAAO,EAAE,mBAAmB,IAAI,MAAM,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"managed-oss.d.ts","sourceRoot":"","sources":["../src/managed-oss.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAoB,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"managed-oss.d.ts","sourceRoot":"","sources":["../src/managed-oss.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAoB,MAAM,qCAAqC,CAAC;AAW/F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAMnD,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAE7D;AAED,wBAAgB,kBAAkB,IAAI,MAAM,CAE3C;AAMD,wBAAgB,cAAc,CAAC,MAAM,EAAE,gBAAgB,GAAG,IAAI,CAe7D;AAED,wBAAgB,oBAAoB,IAAI,gBAAgB,GAAG,IAAI,CAY9D;AAMD,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,GAAG,gBAAgB,GAAG,IAAI,CAmC3F;AAqHD,wBAAsB,eAAe,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAYrF"}
|
package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/managed-oss.js
CHANGED
|
@@ -2,6 +2,7 @@ import { randomBytes } from "node:crypto";
|
|
|
2
2
|
import OSS from "ali-oss";
|
|
3
3
|
import { CLIError, loadConfig, defaultRegion, readConfigFile, writeConfigFile, } from "@tablestore/tablestore-agent-shared";
|
|
4
4
|
import { getResolvedOtsTarget } from "./managed-ots.js";
|
|
5
|
+
import { writeManagedSectionForActive } from "./internal/managed-section-writer.js";
|
|
5
6
|
// ---------------------------------------------------------------------------
|
|
6
7
|
// OSS endpoint helpers
|
|
7
8
|
// ---------------------------------------------------------------------------
|
|
@@ -23,7 +24,7 @@ export function saveManagedOss(target) {
|
|
|
23
24
|
source: target.source,
|
|
24
25
|
created_at: new Date().toISOString(),
|
|
25
26
|
};
|
|
26
|
-
fileData
|
|
27
|
+
writeManagedSectionForActive(fileData, "managed_oss", managedSection);
|
|
27
28
|
writeConfigFile(fileData);
|
|
28
29
|
}
|
|
29
30
|
export function loadManagedOssTarget() {
|
package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/managed-oss.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"managed-oss.js","sourceRoot":"","sources":["../src/managed-oss.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,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QAAQ,EAAE,CAAC;gBACrE,MAAM,KAAK,CAAC;YACd,CAAC;YACD,MAAM,UAAU,GACd,SAAS,KAAK,qBAAqB;gBACnC,SAAS,KAAK,yBAAyB;gBACvC,YAAY,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;YACnC,IAAI,UAAU,EAAE,CAAC;gBACf,SAAS,GAAG,KAAK,CAAC;gBAClB,SAAS;YACX,CAAC;YACD,MAAM,IAAI,QAAQ,CAChB,WAAW,EACX,oCAAoC;gBAClC,qFAAqF,CACxF,CAAC;QACJ,CAAC;IACH,CAAC;IAED,MAAM,IAAI,QAAQ,CAChB,UAAU,EACV,mDAAmD,SAAS,EAAE,CAC/D,CAAC;AACJ,CAAC;AAED,8EAA8E;AAC9E,SAAS;AACT,8EAA8E;AAE9E,MAAM,CAAC,KAAK,UAAU,eAAe,CAAC,SAAoB;IACxD,IAAI,CAAC,SAAS,CAAC,aAAa,IAAI,CAAC,SAAS,CAAC,iBAAiB,EAAE,CAAC;QAC7D,MAAM,IAAI,QAAQ,CAChB,cAAc,EACd,kDAAkD,CACnD,CAAC;IACJ,CAAC;IAED,MAAM,QAAQ,GAAG,oBAAoB,CAAC,SAAS,CAAC,CAAC;IACjD,IAAI,QAAQ,KAAK,IAAI;QAAE,OAAO,QAAQ,CAAC;IAEvC,OAAO,sBAAsB,CAAC,SAAS,CAAC,CAAC;AAC3C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"managed-ots.d.ts","sourceRoot":"","sources":["../src/managed-ots.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAoB,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"managed-ots.d.ts","sourceRoot":"","sources":["../src/managed-ots.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAoB,MAAM,qCAAqC,CAAC;AAU/F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAkEnD,wBAAgB,sBAAsB,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAEnF;AAED,wBAAgB,0BAA0B,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAc1E;AAMD,wBAAgB,cAAc,CAAC,MAAM,EAAE,gBAAgB,GAAG,IAAI,CAe7D;AAED,wBAAgB,oBAAoB,IAAI,gBAAgB,GAAG,IAAI,CAa9D;AAMD,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,GAAG,gBAAgB,GAAG,IAAI,CAwC3F;AAoOD,wBAAsB,eAAe,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAYrF"}
|
package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/managed-ots.js
CHANGED
|
@@ -2,6 +2,7 @@ import * as Tablestore20201209 from "@alicloud/tablestore20201209";
|
|
|
2
2
|
import OpenApi from "@alicloud/openapi-client";
|
|
3
3
|
import Util from "@alicloud/tea-util";
|
|
4
4
|
import { CLIError, loadConfig, defaultRegion, readConfigFile, writeConfigFile, } from "@tablestore/tablestore-agent-shared";
|
|
5
|
+
import { writeManagedSectionForActive } from "./internal/managed-section-writer.js";
|
|
5
6
|
function resolveControlPlaneClientCtor() {
|
|
6
7
|
const candidate = Tablestore20201209.default;
|
|
7
8
|
if (typeof candidate === "function") {
|
|
@@ -52,7 +53,7 @@ export function saveManagedOts(target) {
|
|
|
52
53
|
source: target.source,
|
|
53
54
|
created_at: new Date().toISOString().replace("+00:00", "Z"),
|
|
54
55
|
};
|
|
55
|
-
fileData
|
|
56
|
+
writeManagedSectionForActive(fileData, "managed_ots", managedSection);
|
|
56
57
|
writeConfigFile(fileData);
|
|
57
58
|
}
|
|
58
59
|
export function loadManagedOtsTarget() {
|