@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,631 +0,0 @@
|
|
|
1
|
-
var TableStore = require('../core');
|
|
2
|
-
var Int64buf = require("int64-buffer");
|
|
3
|
-
var inherit = TableStore.util.inherit;
|
|
4
|
-
|
|
5
|
-
TableStore.PlainBufferCodedInputStream = inherit({
|
|
6
|
-
constructor: function (inputStream) {
|
|
7
|
-
this.inputStream = inputStream;
|
|
8
|
-
},
|
|
9
|
-
|
|
10
|
-
readTag: function () {
|
|
11
|
-
return this.inputStream.readTag();
|
|
12
|
-
},
|
|
13
|
-
|
|
14
|
-
checkLastTagWas: function (tag) {
|
|
15
|
-
return this.inputStream.checkLastTagWas(tag);
|
|
16
|
-
},
|
|
17
|
-
|
|
18
|
-
getLastTag: function () {
|
|
19
|
-
return this.inputStream.getLastTag();
|
|
20
|
-
},
|
|
21
|
-
|
|
22
|
-
readHeader: function () {
|
|
23
|
-
return this.inputStream.readInt32();
|
|
24
|
-
},
|
|
25
|
-
|
|
26
|
-
readPrimaryKeyValue: function (cellCheckSum) {
|
|
27
|
-
if (!this.checkLastTagWas(TableStore.plainBufferConsts.TAG_CELL_VALUE)) {
|
|
28
|
-
throw new Error('Expect TAG_CELL_VALUE but it was' + this.getLastTag());
|
|
29
|
-
}
|
|
30
|
-
this.inputStream.readRawLittleEndian32();
|
|
31
|
-
var columnType = this.inputStream.readRawByte();
|
|
32
|
-
|
|
33
|
-
var pkVal = undefined;
|
|
34
|
-
if (columnType === TableStore.plainBufferConsts.VT_INTEGER) {
|
|
35
|
-
var int64 = this.inputStream.readInt64();
|
|
36
|
-
cellCheckSum = TableStore.plainBufferCrc8.crcInt8(cellCheckSum, TableStore.plainBufferConsts.VT_INTEGER);
|
|
37
|
-
cellCheckSum = TableStore.plainBufferCrc8.crcInt64Buf(cellCheckSum, int64.toBuffer());
|
|
38
|
-
this.readTag();
|
|
39
|
-
pkVal = int64;
|
|
40
|
-
} else if (columnType === TableStore.plainBufferConsts.VT_STRING) {
|
|
41
|
-
var value_size = this.inputStream.readInt32();
|
|
42
|
-
var string_value = this.inputStream.readUtfString(value_size);
|
|
43
|
-
cellCheckSum = TableStore.plainBufferCrc8.crcInt8(cellCheckSum, TableStore.plainBufferConsts.VT_STRING);
|
|
44
|
-
cellCheckSum = TableStore.plainBufferCrc8.crcInt32(cellCheckSum, value_size);
|
|
45
|
-
cellCheckSum = TableStore.plainBufferCrc8.crcString(cellCheckSum, string_value);
|
|
46
|
-
this.readTag();
|
|
47
|
-
pkVal = string_value;
|
|
48
|
-
} else if (columnType === TableStore.plainBufferConsts.VT_BLOB) {
|
|
49
|
-
var value_size = this.inputStream.readInt32();
|
|
50
|
-
var binary_value = this.inputStream.readBytes(value_size);
|
|
51
|
-
cellCheckSum = TableStore.plainBufferCrc8.crcInt8(cellCheckSum, TableStore.plainBufferConsts.VT_BLOB);
|
|
52
|
-
cellCheckSum = TableStore.plainBufferCrc8.crcInt32(cellCheckSum, value_size);
|
|
53
|
-
cellCheckSum = TableStore.plainBufferCrc8.crcString(cellCheckSum, binary_value);
|
|
54
|
-
this.readTag();
|
|
55
|
-
pkVal = binary_value;
|
|
56
|
-
} else {
|
|
57
|
-
throw new Error('Unsupported primary key type' + columnType);
|
|
58
|
-
}
|
|
59
|
-
return { pkVal: pkVal, cellCheckSum: cellCheckSum };
|
|
60
|
-
},
|
|
61
|
-
|
|
62
|
-
readColumnValue: function (cellCheckSum) {
|
|
63
|
-
if (!this.checkLastTagWas(TableStore.plainBufferConsts.TAG_CELL_VALUE)) {
|
|
64
|
-
throw new Error('Expect TAG_CELL_VALUE but it was' + this.getLastTag());
|
|
65
|
-
}
|
|
66
|
-
var columnVal = undefined;
|
|
67
|
-
this.inputStream.readRawLittleEndian32();
|
|
68
|
-
var columnType = this.inputStream.readRawByte();
|
|
69
|
-
if (columnType == TableStore.plainBufferConsts.VT_INTEGER) {
|
|
70
|
-
var int64 = this.inputStream.readInt64();
|
|
71
|
-
cellCheckSum = TableStore.plainBufferCrc8.crcInt8(cellCheckSum, TableStore.plainBufferConsts.VT_INTEGER);
|
|
72
|
-
cellCheckSum = TableStore.plainBufferCrc8.crcInt64Buf(cellCheckSum, int64.toBuffer());
|
|
73
|
-
this.readTag();
|
|
74
|
-
columnVal = int64;
|
|
75
|
-
} else if (columnType == TableStore.plainBufferConsts.VT_STRING) {
|
|
76
|
-
var value_size = this.inputStream.readInt32();
|
|
77
|
-
var string_value = this.inputStream.readUtfString(value_size);
|
|
78
|
-
cellCheckSum = TableStore.plainBufferCrc8.crcInt8(cellCheckSum, TableStore.plainBufferConsts.VT_STRING);
|
|
79
|
-
cellCheckSum = TableStore.plainBufferCrc8.crcInt32(cellCheckSum, value_size);
|
|
80
|
-
cellCheckSum = TableStore.plainBufferCrc8.crcString(cellCheckSum, string_value);
|
|
81
|
-
this.readTag();
|
|
82
|
-
columnVal = string_value;
|
|
83
|
-
} else if (columnType == TableStore.plainBufferConsts.VT_BLOB) {
|
|
84
|
-
var value_size = this.inputStream.readInt32();
|
|
85
|
-
var binary_value = this.inputStream.readBytes(value_size);
|
|
86
|
-
cellCheckSum = TableStore.plainBufferCrc8.crcInt8(cellCheckSum, TableStore.plainBufferConsts.VT_BLOB);
|
|
87
|
-
cellCheckSum = TableStore.plainBufferCrc8.crcInt32(cellCheckSum, value_size);
|
|
88
|
-
cellCheckSum = TableStore.plainBufferCrc8.crcString(cellCheckSum, binary_value);
|
|
89
|
-
this.readTag();
|
|
90
|
-
columnVal = binary_value;
|
|
91
|
-
} else if (columnType == TableStore.plainBufferConsts.VT_BOOLEAN) {
|
|
92
|
-
var bool_value = this.inputStream.readBoolean();
|
|
93
|
-
var cellCheckSum = TableStore.plainBufferCrc8.crcInt8(cellCheckSum, TableStore.plainBufferConsts.VT_BOOLEAN);
|
|
94
|
-
var bool_int8 = bool_value == true;
|
|
95
|
-
cellCheckSum = TableStore.plainBufferCrc8.crcInt8(cellCheckSum, bool_int8);
|
|
96
|
-
this.readTag();
|
|
97
|
-
columnVal = bool_value;
|
|
98
|
-
} else if (columnType == TableStore.plainBufferConsts.VT_DOUBLE) {
|
|
99
|
-
var result = this.inputStream.readDoubleAndInt64();
|
|
100
|
-
var int64 = result.int64LE;
|
|
101
|
-
var doubleVal = result.doubleVal;
|
|
102
|
-
cellCheckSum = TableStore.plainBufferCrc8.crcInt8(cellCheckSum, TableStore.plainBufferConsts.VT_DOUBLE);
|
|
103
|
-
cellCheckSum = TableStore.plainBufferCrc8.crcInt64Buf(cellCheckSum, int64.toBuffer());
|
|
104
|
-
this.readTag();
|
|
105
|
-
|
|
106
|
-
columnVal = doubleVal;
|
|
107
|
-
} else {
|
|
108
|
-
throw new Error("Unsupported column type: " + columnType);
|
|
109
|
-
}
|
|
110
|
-
return { columnVal: columnVal, cellCheckSum: cellCheckSum };
|
|
111
|
-
},
|
|
112
|
-
|
|
113
|
-
readSearchVariant: function () {
|
|
114
|
-
let searchVariantType = this.inputStream.readRawByte();
|
|
115
|
-
if (searchVariantType === TableStore.plainBufferConsts.VT_INTEGER) {
|
|
116
|
-
return this.inputStream.readInt64();
|
|
117
|
-
} else if (searchVariantType === TableStore.plainBufferConsts.VT_STRING) {
|
|
118
|
-
let value_size = this.inputStream.readInt32();
|
|
119
|
-
return this.inputStream.readUtfString(value_size);
|
|
120
|
-
} else if (searchVariantType === TableStore.plainBufferConsts.VT_BOOLEAN) {
|
|
121
|
-
return this.inputStream.readBoolean();
|
|
122
|
-
} else if (searchVariantType === TableStore.plainBufferConsts.VT_DOUBLE) {
|
|
123
|
-
let result = this.inputStream.readDoubleAndInt64();
|
|
124
|
-
return result.doubleVal;
|
|
125
|
-
} else {
|
|
126
|
-
throw new Error("Unsupported SearchVariant type: " + searchVariantType);
|
|
127
|
-
}
|
|
128
|
-
},
|
|
129
|
-
|
|
130
|
-
readPrimaryKeyColumn: function (rowCheckSum) {
|
|
131
|
-
if (!this.checkLastTagWas(TableStore.plainBufferConsts.TAG_CELL)) {
|
|
132
|
-
throw new Error("Expect TAG_CELL but it was " + this.getLastTag());
|
|
133
|
-
}
|
|
134
|
-
this.readTag();
|
|
135
|
-
|
|
136
|
-
if (!this.checkLastTagWas(TableStore.plainBufferConsts.TAG_CELL_NAME)) {
|
|
137
|
-
throw new Error("Expect TAG_CELL_NAME but it was " + this.getLastTag());
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
var cellCheckSum = 0;
|
|
141
|
-
var name_size = this.inputStream.readRawLittleEndian32();
|
|
142
|
-
var columnName = this.inputStream.readUtfString(name_size);
|
|
143
|
-
var cellCheckSum = TableStore.plainBufferCrc8.crcString(cellCheckSum, columnName);
|
|
144
|
-
this.readTag();
|
|
145
|
-
|
|
146
|
-
if (!this.checkLastTagWas(TableStore.plainBufferConsts.TAG_CELL_VALUE)) {
|
|
147
|
-
throw new Error("Expect TAG_CELL_VALUE but it was " + this.getLastTag());
|
|
148
|
-
}
|
|
149
|
-
var primaryKeyValue, cellCheckSum;
|
|
150
|
-
var result = this.readPrimaryKeyValue(cellCheckSum);
|
|
151
|
-
primaryKeyValue = result.pkVal;
|
|
152
|
-
cellCheckSum = result.cellCheckSum;
|
|
153
|
-
|
|
154
|
-
if (this.getLastTag() == TableStore.plainBufferConsts.TAG_CELL_CHECKSUM) {
|
|
155
|
-
var checkSum = this.inputStream.readRawByte();
|
|
156
|
-
if (checkSum != cellCheckSum) {
|
|
157
|
-
throw new Error("Checksum mismatch. expected:" + checkSum + ",actual:" + cellCheckSum);
|
|
158
|
-
}
|
|
159
|
-
this.readTag();
|
|
160
|
-
} else {
|
|
161
|
-
throw new Error("Expect TAG_CELL_CHECKSUM but it was " + this.getLastTag());
|
|
162
|
-
}
|
|
163
|
-
var rowCheckSum = TableStore.plainBufferCrc8.crcInt8(rowCheckSum, cellCheckSum);
|
|
164
|
-
return {
|
|
165
|
-
columnName: columnName,
|
|
166
|
-
primaryKeyValue: primaryKeyValue,
|
|
167
|
-
rowCheckSum: rowCheckSum
|
|
168
|
-
};
|
|
169
|
-
},
|
|
170
|
-
|
|
171
|
-
readColumn: function (rowCheckSum) {
|
|
172
|
-
if (!this.checkLastTagWas(TableStore.plainBufferConsts.TAG_CELL)) {
|
|
173
|
-
throw new Error("Expect TAG_CELL but it was " + this.getLastTag());
|
|
174
|
-
}
|
|
175
|
-
this.readTag();
|
|
176
|
-
|
|
177
|
-
if (!this.checkLastTagWas(TableStore.plainBufferConsts.TAG_CELL_NAME)) {
|
|
178
|
-
throw new Error("Expect TAG_CELL_NAME but it was " + this.getLastTag());
|
|
179
|
-
}
|
|
180
|
-
var cellCheckSum = 0;
|
|
181
|
-
var columnName = null;
|
|
182
|
-
var columnValue = null;
|
|
183
|
-
var timestamp = null;
|
|
184
|
-
var name_size = this.inputStream.readRawLittleEndian32();
|
|
185
|
-
var columnName = this.inputStream.readUtfString(name_size);
|
|
186
|
-
var cellCheckSum = TableStore.plainBufferCrc8.crcString(cellCheckSum, columnName);
|
|
187
|
-
this.readTag();
|
|
188
|
-
|
|
189
|
-
if (this.getLastTag() == TableStore.plainBufferConsts.TAG_CELL_VALUE) {
|
|
190
|
-
var columnVal = this.readColumnValue(cellCheckSum);
|
|
191
|
-
columnValue = columnVal.columnVal;
|
|
192
|
-
cellCheckSum = columnVal.cellCheckSum;
|
|
193
|
-
}
|
|
194
|
-
//# skip CELL_TYPE
|
|
195
|
-
if (this.getLastTag() == TableStore.plainBufferConsts.TAG_CELL_TYPE) {
|
|
196
|
-
cell_type = TableStore.plainBufferCrc8.crcInt8(cellCheckSum, cell_type);
|
|
197
|
-
this.readTag();
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
if (this.getLastTag() == TableStore.plainBufferConsts.TAG_CELL_TIMESTAMP) {
|
|
201
|
-
var int64 = this.inputStream.readInt64();
|
|
202
|
-
timestamp = int64;
|
|
203
|
-
cellCheckSum = TableStore.plainBufferCrc8.crcInt64Buf(cellCheckSum, int64.toBuffer());
|
|
204
|
-
this.readTag();
|
|
205
|
-
}
|
|
206
|
-
if (this.getLastTag() == TableStore.plainBufferConsts.TAG_CELL_CHECKSUM) {
|
|
207
|
-
var checkSum = this.inputStream.readRawByte();
|
|
208
|
-
if (checkSum != cellCheckSum) {
|
|
209
|
-
throw new Error("Checksum mismatch.");
|
|
210
|
-
}
|
|
211
|
-
this.readTag();
|
|
212
|
-
} else {
|
|
213
|
-
throw new Error("Expect TAG_CELL_CHECKSUM but it was " + this.getLastTag());
|
|
214
|
-
}
|
|
215
|
-
var rowCheckSum = TableStore.plainBufferCrc8.crcInt8(rowCheckSum, cellCheckSum);
|
|
216
|
-
return {
|
|
217
|
-
columnName: columnName,
|
|
218
|
-
columnValue: columnValue,
|
|
219
|
-
timestamp: timestamp,
|
|
220
|
-
rowCheckSum: rowCheckSum
|
|
221
|
-
};
|
|
222
|
-
},
|
|
223
|
-
|
|
224
|
-
readRowWithoutHeader: function () {
|
|
225
|
-
var rowCheckSum = 0;
|
|
226
|
-
var primaryKey = [];
|
|
227
|
-
var attributes = [];
|
|
228
|
-
|
|
229
|
-
if (this.checkLastTagWas(TableStore.plainBufferConsts.TAG_ROW_PK)) {
|
|
230
|
-
this.readTag();
|
|
231
|
-
|
|
232
|
-
while (this.checkLastTagWas(TableStore.plainBufferConsts.TAG_CELL)) {
|
|
233
|
-
var pkColumn = this.readPrimaryKeyColumn(rowCheckSum);
|
|
234
|
-
primaryKey.push({ name: pkColumn.columnName, value: pkColumn.primaryKeyValue });
|
|
235
|
-
rowCheckSum = pkColumn.rowCheckSum;
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
if (this.checkLastTagWas(TableStore.plainBufferConsts.TAG_ROW_DATA)) {
|
|
240
|
-
this.readTag();
|
|
241
|
-
while (this.checkLastTagWas(TableStore.plainBufferConsts.TAG_CELL)) {
|
|
242
|
-
var attrColumn = this.readColumn(rowCheckSum);
|
|
243
|
-
attributes.push({
|
|
244
|
-
columnName: attrColumn.columnName,
|
|
245
|
-
columnValue: attrColumn.columnValue,
|
|
246
|
-
timestamp: attrColumn.timestamp
|
|
247
|
-
});
|
|
248
|
-
rowCheckSum = attrColumn.rowCheckSum;
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
if (this.checkLastTagWas(TableStore.plainBufferConsts.TAG_DELETE_ROW_MARKER)) {
|
|
252
|
-
this.readTag();
|
|
253
|
-
rowCheckSum = TableStore.plainBufferCrc8.crcInt8(rowCheckSum, 1);
|
|
254
|
-
} else {
|
|
255
|
-
rowCheckSum = TableStore.plainBufferCrc8.crcInt8(rowCheckSum, 0);
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
if (this.checkLastTagWas(TableStore.plainBufferConsts.TAG_ROW_CHECKSUM)) {
|
|
259
|
-
var checkSum = this.inputStream.readRawByte();
|
|
260
|
-
if (checkSum != rowCheckSum) {
|
|
261
|
-
throw new Error("Checksum is mismatch.");
|
|
262
|
-
}
|
|
263
|
-
this.readTag();
|
|
264
|
-
} else {
|
|
265
|
-
throw new Error("Expect TAG_ROW_CHECKSUM but it was " + this.getLastTag());
|
|
266
|
-
}
|
|
267
|
-
//return primaryKey, attributes;
|
|
268
|
-
return { primaryKey: primaryKey, attributes: attributes };
|
|
269
|
-
},
|
|
270
|
-
|
|
271
|
-
readRow: function () {
|
|
272
|
-
if (this.readHeader() != TableStore.plainBufferConsts.HEADER) {
|
|
273
|
-
throw new Error("Invalid header from plain buffer.");
|
|
274
|
-
}
|
|
275
|
-
this.readTag();
|
|
276
|
-
return this.readRowWithoutHeader();
|
|
277
|
-
},
|
|
278
|
-
|
|
279
|
-
readRows: function () {
|
|
280
|
-
if (this.readHeader() != TableStore.plainBufferConsts.HEADER) {
|
|
281
|
-
throw new Error("Invalid header from plain buffer.");
|
|
282
|
-
}
|
|
283
|
-
this.readTag();
|
|
284
|
-
|
|
285
|
-
var rowList = [];
|
|
286
|
-
while (!this.inputStream.isAtEnd()) {
|
|
287
|
-
var result = this.readRowWithoutHeader();
|
|
288
|
-
rowList.push({ primaryKey: result.primaryKey, attributes: result.attributes });
|
|
289
|
-
}
|
|
290
|
-
return rowList;
|
|
291
|
-
},
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
});
|
|
295
|
-
|
|
296
|
-
TableStore.PlainBufferCodedOutputStream = inherit({
|
|
297
|
-
constructor: function (outputStream) {
|
|
298
|
-
this.outputStream = outputStream;
|
|
299
|
-
},
|
|
300
|
-
writeHeader: function () {
|
|
301
|
-
this.outputStream.writeRawLittleEndian32(TableStore.plainBufferConsts.HEADER);
|
|
302
|
-
},
|
|
303
|
-
writeTag: function (tag) {
|
|
304
|
-
this.outputStream.writeRawByte(tag);
|
|
305
|
-
},
|
|
306
|
-
writeCellName: function (name, cellCheckSum) {
|
|
307
|
-
this.writeTag(TableStore.plainBufferConsts.TAG_CELL_NAME);
|
|
308
|
-
this.outputStream.writeRawLittleEndian32(name.length);
|
|
309
|
-
this.outputStream.writeBytes(name);
|
|
310
|
-
cellCheckSum = TableStore.plainBufferCrc8.crcString(cellCheckSum, name);
|
|
311
|
-
return cellCheckSum;
|
|
312
|
-
},
|
|
313
|
-
|
|
314
|
-
writePrimaryKeyValue: function (value, cellCheckSum) {
|
|
315
|
-
this.writeTag(TableStore.plainBufferConsts.TAG_CELL_VALUE);
|
|
316
|
-
if (value === TableStore.INF_MIN) {
|
|
317
|
-
this.outputStream.writeRawLittleEndian32(1);
|
|
318
|
-
this.outputStream.writeRawByte(TableStore.plainBufferConsts.VT_INF_MIN);
|
|
319
|
-
cellCheckSum = TableStore.plainBufferCrc8.crcInt8(cellCheckSum, TableStore.plainBufferConsts.VT_INF_MIN);
|
|
320
|
-
} else if (value === TableStore.INF_MAX) {
|
|
321
|
-
this.outputStream.writeRawLittleEndian32(1);
|
|
322
|
-
this.outputStream.writeRawByte(TableStore.plainBufferConsts.VT_INF_MAX);
|
|
323
|
-
cellCheckSum = TableStore.plainBufferCrc8.crcInt8(cellCheckSum, TableStore.plainBufferConsts.VT_INF_MAX);
|
|
324
|
-
} else if (value === TableStore.PK_AUTO_INCR) {
|
|
325
|
-
this.outputStream.writeRawLittleEndian32(1);
|
|
326
|
-
this.outputStream.writeRawByte(TableStore.plainBufferConsts.VT_AUTO_INCREMENT);
|
|
327
|
-
cellCheckSum = TableStore.plainBufferCrc8.crcInt8(cellCheckSum, TableStore.plainBufferConsts.VT_AUTO_INCREMENT);
|
|
328
|
-
} else if (value instanceof Int64buf.Int64LE) {
|
|
329
|
-
this.outputStream.writeRawLittleEndian32(1 + TableStore.plainBufferConsts.LITTLE_ENDIAN_64_SIZE);
|
|
330
|
-
this.outputStream.writeRawByte(TableStore.plainBufferConsts.VT_INTEGER);
|
|
331
|
-
this.outputStream.writeInt64LE(value);
|
|
332
|
-
cellCheckSum = TableStore.plainBufferCrc8.crcInt8(cellCheckSum, TableStore.plainBufferConsts.VT_INTEGER);
|
|
333
|
-
cellCheckSum = TableStore.plainBufferCrc8.crcInt64Buf(cellCheckSum, value.toBuffer());
|
|
334
|
-
} else if (typeof (value) === 'string') {
|
|
335
|
-
var string_value = value;
|
|
336
|
-
var stringValueLength = TableStore.util.string.byteLength(string_value);
|
|
337
|
-
var prefix_length = TableStore.plainBufferConsts.LITTLE_ENDIAN_32_SIZE + 1;
|
|
338
|
-
this.outputStream.writeRawLittleEndian32(prefix_length + stringValueLength);
|
|
339
|
-
this.outputStream.writeRawByte(TableStore.plainBufferConsts.VT_STRING);
|
|
340
|
-
this.outputStream.writeRawLittleEndian32(stringValueLength);
|
|
341
|
-
|
|
342
|
-
this.outputStream.writeBytes(string_value);
|
|
343
|
-
cellCheckSum = TableStore.plainBufferCrc8.crcInt8(cellCheckSum, TableStore.plainBufferConsts.VT_STRING);
|
|
344
|
-
cellCheckSum = TableStore.plainBufferCrc8.crcInt32(cellCheckSum, stringValueLength);
|
|
345
|
-
cellCheckSum = TableStore.plainBufferCrc8.crcString(cellCheckSum, string_value);
|
|
346
|
-
} else if (value instanceof Buffer) {
|
|
347
|
-
var binary_value = value;
|
|
348
|
-
var prefix_length = TableStore.plainBufferConsts.LITTLE_ENDIAN_32_SIZE + 1;
|
|
349
|
-
|
|
350
|
-
this.outputStream.writeRawLittleEndian32(prefix_length + binary_value.length);
|
|
351
|
-
this.outputStream.writeRawByte(TableStore.plainBufferConsts.VT_BLOB);
|
|
352
|
-
this.outputStream.writeRawLittleEndian32(binary_value.length);
|
|
353
|
-
this.outputStream.writeBytes(binary_value);
|
|
354
|
-
|
|
355
|
-
cellCheckSum = TableStore.plainBufferCrc8.crcInt8(cellCheckSum, TableStore.plainBufferConsts.VT_BLOB);
|
|
356
|
-
cellCheckSum = TableStore.plainBufferCrc8.crcInt32(cellCheckSum, binary_value.length);
|
|
357
|
-
cellCheckSum = TableStore.plainBufferCrc8.crcString(cellCheckSum, binary_value);
|
|
358
|
-
} else {
|
|
359
|
-
throw new Error("Unsupported primary key type: " + typeof (value));
|
|
360
|
-
}
|
|
361
|
-
return cellCheckSum;
|
|
362
|
-
|
|
363
|
-
},
|
|
364
|
-
|
|
365
|
-
writeColumnValueWithChecksum: function (value, cellCheckSum) {
|
|
366
|
-
this.writeTag(TableStore.plainBufferConsts.TAG_CELL_VALUE);
|
|
367
|
-
if (value instanceof Int64buf.Int64LE) {
|
|
368
|
-
this.outputStream.writeRawLittleEndian32(1 + TableStore.plainBufferConsts.LITTLE_ENDIAN_64_SIZE);
|
|
369
|
-
this.outputStream.writeRawByte(TableStore.plainBufferConsts.VT_INTEGER);
|
|
370
|
-
this.outputStream.writeInt64LE(value);
|
|
371
|
-
cellCheckSum = TableStore.plainBufferCrc8.crcInt8(cellCheckSum, TableStore.plainBufferConsts.VT_INTEGER);
|
|
372
|
-
cellCheckSum = TableStore.plainBufferCrc8.crcInt64Buf(cellCheckSum, value.toBuffer());
|
|
373
|
-
} else if (typeof (value) === 'string') {
|
|
374
|
-
var stringValueLength = TableStore.util.string.byteLength(value);
|
|
375
|
-
var prefix_length = TableStore.plainBufferConsts.LITTLE_ENDIAN_32_SIZE + 1;
|
|
376
|
-
this.outputStream.writeRawLittleEndian32(prefix_length + stringValueLength);
|
|
377
|
-
this.outputStream.writeRawByte(TableStore.plainBufferConsts.VT_STRING);
|
|
378
|
-
this.outputStream.writeRawLittleEndian32(stringValueLength);
|
|
379
|
-
this.outputStream.writeBytes(value);
|
|
380
|
-
cellCheckSum = TableStore.plainBufferCrc8.crcInt8(cellCheckSum, TableStore.plainBufferConsts.VT_STRING);
|
|
381
|
-
cellCheckSum = TableStore.plainBufferCrc8.crcInt32(cellCheckSum, stringValueLength);
|
|
382
|
-
cellCheckSum = TableStore.plainBufferCrc8.crcString(cellCheckSum, value);
|
|
383
|
-
} else if (value instanceof Buffer) {
|
|
384
|
-
prefix_length = TableStore.plainBufferConsts.LITTLE_ENDIAN_32_SIZE + 1
|
|
385
|
-
this.outputStream.writeRawLittleEndian32(prefix_length + value.length);
|
|
386
|
-
this.outputStream.writeRawByte(TableStore.plainBufferConsts.VT_BLOB);
|
|
387
|
-
this.outputStream.writeRawLittleEndian32(value.length);
|
|
388
|
-
this.outputStream.writeBytes(value);
|
|
389
|
-
cellCheckSum = TableStore.plainBufferCrc8.crcInt8(cellCheckSum, TableStore.plainBufferConsts.VT_BLOB);
|
|
390
|
-
cellCheckSum = TableStore.plainBufferCrc8.crcInt32(cellCheckSum, value.length);
|
|
391
|
-
cellCheckSum = TableStore.plainBufferCrc8.crcString(cellCheckSum, value);
|
|
392
|
-
} else if (typeof (value) === 'boolean') {
|
|
393
|
-
this.outputStream.writeRawLittleEndian32(2);
|
|
394
|
-
this.outputStream.writeRawByte(TableStore.plainBufferConsts.VT_BOOLEAN);
|
|
395
|
-
this.outputStream.writeBoolean(value);
|
|
396
|
-
cellCheckSum = TableStore.plainBufferCrc8.crcInt8(cellCheckSum, TableStore.plainBufferConsts.VT_BOOLEAN);
|
|
397
|
-
if (value) {
|
|
398
|
-
cellCheckSum = TableStore.plainBufferCrc8.crcInt8(cellCheckSum, 1);
|
|
399
|
-
} else {
|
|
400
|
-
cellCheckSum = TableStore.plainBufferCrc8.crcInt8(cellCheckSum, 0);
|
|
401
|
-
}
|
|
402
|
-
} else if (typeof (value) === 'number') {
|
|
403
|
-
var int64 = TableStore.util.Int64.doubleToRawLongBits(value);
|
|
404
|
-
this.outputStream.writeRawLittleEndian32(1 + TableStore.plainBufferConsts.LITTLE_ENDIAN_64_SIZE);
|
|
405
|
-
this.outputStream.writeRawByte(TableStore.plainBufferConsts.VT_DOUBLE);
|
|
406
|
-
this.outputStream.writeDouble(value);
|
|
407
|
-
cellCheckSum = TableStore.plainBufferCrc8.crcInt8(cellCheckSum, TableStore.plainBufferConsts.VT_DOUBLE);
|
|
408
|
-
cellCheckSum = TableStore.plainBufferCrc8.crcInt64Buf(cellCheckSum, int64.toBuffer());
|
|
409
|
-
} else {
|
|
410
|
-
throw new Error("Unsupported column type " + typeof (value));
|
|
411
|
-
}
|
|
412
|
-
return cellCheckSum;
|
|
413
|
-
},
|
|
414
|
-
|
|
415
|
-
writeColumnValue: function (value) {
|
|
416
|
-
if (value instanceof Int64buf.Int64LE) {
|
|
417
|
-
this.outputStream.writeRawByte(TableStore.plainBufferConsts.VT_INTEGER);
|
|
418
|
-
this.outputStream.writeInt64LE(value);
|
|
419
|
-
} else if (typeof (value) === 'string') {
|
|
420
|
-
this.outputStream.writeRawByte(TableStore.plainBufferConsts.VT_STRING);
|
|
421
|
-
this.outputStream.writeRawLittleEndian32(TableStore.util.string.byteLength(value));
|
|
422
|
-
this.outputStream.writeBytes(value);
|
|
423
|
-
} else if (value instanceof Buffer) {
|
|
424
|
-
this.outputStream.writeRawByte(TableStore.plainBufferConsts.VT_BLOB);
|
|
425
|
-
this.outputStream.writeRawLittleEndian32(value.length);
|
|
426
|
-
this.outputStream.writeBytes(value);
|
|
427
|
-
} else if (typeof (value) === 'boolean') {
|
|
428
|
-
this.outputStream.writeRawByte(TableStore.plainBufferConsts.VT_BOOLEAN);
|
|
429
|
-
this.outputStream.writeBoolean(value);
|
|
430
|
-
} else if (typeof (value) === 'number') {
|
|
431
|
-
this.outputStream.writeRawByte(TableStore.plainBufferConsts.VT_DOUBLE);
|
|
432
|
-
this.outputStream.writeDouble(value);
|
|
433
|
-
} else {
|
|
434
|
-
throw new Error("Unsupported column type: " + typeof (value));
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
},
|
|
438
|
-
|
|
439
|
-
writePrimaryKeyColumn: function (pkName, pkValue, rowCheckSum) {
|
|
440
|
-
var cellCheckSum = 0;
|
|
441
|
-
this.writeTag(TableStore.plainBufferConsts.TAG_CELL);
|
|
442
|
-
cellCheckSum = this.writeCellName(pkName, cellCheckSum);
|
|
443
|
-
cellCheckSum = this.writePrimaryKeyValue(pkValue, cellCheckSum);
|
|
444
|
-
this.writeTag(TableStore.plainBufferConsts.TAG_CELL_CHECKSUM);
|
|
445
|
-
this.outputStream.writeRawByte(cellCheckSum);
|
|
446
|
-
rowCheckSum = TableStore.plainBufferCrc8.crcInt8(rowCheckSum, cellCheckSum);
|
|
447
|
-
return rowCheckSum;
|
|
448
|
-
},
|
|
449
|
-
|
|
450
|
-
writeColumn: function (columnName, columnValue, timestamp, rowCheckSum) {
|
|
451
|
-
var cellCheckSum = 0;
|
|
452
|
-
this.writeTag(TableStore.plainBufferConsts.TAG_CELL);
|
|
453
|
-
cellCheckSum = this.writeCellName(columnName, cellCheckSum);
|
|
454
|
-
cellCheckSum = this.writeColumnValueWithChecksum(columnValue, cellCheckSum);
|
|
455
|
-
|
|
456
|
-
if (timestamp !== undefined && timestamp !== null) {
|
|
457
|
-
this.writeTag(TableStore.plainBufferConsts.TAG_CELL_TIMESTAMP);
|
|
458
|
-
var int64 = TableStore.Long.fromNumber(timestamp);
|
|
459
|
-
this.outputStream.writeInt64LE(int64);
|
|
460
|
-
cellCheckSum = TableStore.plainBufferCrc8.crcInt64Buf(cellCheckSum, int64.toBuffer());
|
|
461
|
-
}
|
|
462
|
-
this.writeTag(TableStore.plainBufferConsts.TAG_CELL_CHECKSUM);
|
|
463
|
-
this.outputStream.writeRawByte(cellCheckSum);
|
|
464
|
-
rowCheckSum = TableStore.plainBufferCrc8.crcInt8(rowCheckSum, cellCheckSum);
|
|
465
|
-
return rowCheckSum;
|
|
466
|
-
},
|
|
467
|
-
|
|
468
|
-
writeUpdateColumn: function (updateType, columnName, columnValue, rowCheckSum) {
|
|
469
|
-
var cellCheckSum = 0;
|
|
470
|
-
this.writeTag(TableStore.plainBufferConsts.TAG_CELL);
|
|
471
|
-
var cellCheckSum = this.writeCellName(columnName, cellCheckSum);
|
|
472
|
-
var timestamp = null;
|
|
473
|
-
if (columnValue != null) {
|
|
474
|
-
if (columnValue instanceof Array) {
|
|
475
|
-
if (columnValue[0] != null) {
|
|
476
|
-
cellCheckSum = this.writeColumnValueWithChecksum(columnValue[0], cellCheckSum);
|
|
477
|
-
}
|
|
478
|
-
if (columnValue[1] != null) {
|
|
479
|
-
timestamp = columnValue[1];
|
|
480
|
-
}
|
|
481
|
-
} else {
|
|
482
|
-
cellCheckSum = this.writeColumnValueWithChecksum(columnValue, cellCheckSum);
|
|
483
|
-
}
|
|
484
|
-
}
|
|
485
|
-
if (updateType === TableStore.UpdateType.DELETE) {
|
|
486
|
-
this.writeTag(TableStore.plainBufferConsts.TAG_CELL_TYPE);
|
|
487
|
-
this.outputStream.writeRawByte(TableStore.plainBufferConsts.DELETE_ONE_VERSION);
|
|
488
|
-
} else if (updateType == TableStore.UpdateType.DELETE_ALL) {
|
|
489
|
-
this.writeTag(TableStore.plainBufferConsts.TAG_CELL_TYPE);
|
|
490
|
-
this.outputStream.writeRawByte(TableStore.plainBufferConsts.DELETE_ALL_VERSION);
|
|
491
|
-
} else if (updateType == TableStore.UpdateType.INCREMENT) {
|
|
492
|
-
this.writeTag(TableStore.plainBufferConsts.TAG_CELL_TYPE);
|
|
493
|
-
this.outputStream.writeRawByte(TableStore.plainBufferConsts.INCREMENT);
|
|
494
|
-
}
|
|
495
|
-
if (timestamp != null) {
|
|
496
|
-
this.writeTag(TableStore.plainBufferConsts.TAG_CELL_TIMESTAMP);
|
|
497
|
-
|
|
498
|
-
var int64 = TableStore.Long.fromNumber(timestamp);
|
|
499
|
-
this.outputStream.writeInt64LE(int64);
|
|
500
|
-
}
|
|
501
|
-
if (timestamp != null) {
|
|
502
|
-
var int64 = TableStore.Long.fromNumber(timestamp);
|
|
503
|
-
cellCheckSum = TableStore.plainBufferCrc8.crcInt64Buf(cellCheckSum, int64.toBuffer());
|
|
504
|
-
}
|
|
505
|
-
if (updateType === TableStore.UpdateType.DELETE) {
|
|
506
|
-
cellCheckSum = TableStore.plainBufferCrc8.crcInt8(cellCheckSum, TableStore.plainBufferConsts.DELETE_ONE_VERSION);
|
|
507
|
-
}
|
|
508
|
-
if (updateType === TableStore.UpdateType.DELETE_ALL) {
|
|
509
|
-
cellCheckSum = TableStore.plainBufferCrc8.crcInt8(cellCheckSum, TableStore.plainBufferConsts.DELETE_ALL_VERSION);
|
|
510
|
-
}
|
|
511
|
-
if (updateType === TableStore.UpdateType.INCREMENT) {
|
|
512
|
-
cellCheckSum = TableStore.plainBufferCrc8.crcInt8(cellCheckSum, TableStore.plainBufferConsts.INCREMENT);
|
|
513
|
-
}
|
|
514
|
-
this.writeTag(TableStore.plainBufferConsts.TAG_CELL_CHECKSUM);
|
|
515
|
-
this.outputStream.writeRawByte(cellCheckSum);
|
|
516
|
-
rowCheckSum = TableStore.plainBufferCrc8.crcInt8(rowCheckSum, cellCheckSum);
|
|
517
|
-
return rowCheckSum;
|
|
518
|
-
},
|
|
519
|
-
|
|
520
|
-
writePrimaryKey: function (primaryKeys, rowCheckSum) {
|
|
521
|
-
if (!(primaryKeys instanceof Array)) {
|
|
522
|
-
throw new Error("Invalid primaryKey, the type of primaryKey should be array.");
|
|
523
|
-
}
|
|
524
|
-
|
|
525
|
-
this.writeTag(TableStore.plainBufferConsts.TAG_ROW_PK);
|
|
526
|
-
for (var i = 0; i < primaryKeys.length; i++) {
|
|
527
|
-
for (var pk in primaryKeys[i]) {
|
|
528
|
-
rowCheckSum = this.writePrimaryKeyColumn(pk, primaryKeys[i][pk], rowCheckSum);
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
return rowCheckSum;
|
|
533
|
-
},
|
|
534
|
-
|
|
535
|
-
writeColumns: function (columns, rowCheckSum) {
|
|
536
|
-
if (!(columns instanceof Array)) {
|
|
537
|
-
throw new Error("Invalid attributeColumns, the type of attributeColumns should be array.");
|
|
538
|
-
}
|
|
539
|
-
|
|
540
|
-
if (columns != null && columns.length != 0) {
|
|
541
|
-
this.writeTag(TableStore.plainBufferConsts.TAG_ROW_DATA);
|
|
542
|
-
for (var i = 0; i < columns.length; i++) {
|
|
543
|
-
for (var k in columns[i]) {
|
|
544
|
-
rowCheckSum = this.writeColumn(k, columns[i][k], columns[i].timestamp, rowCheckSum);
|
|
545
|
-
break;//注意 break不能省略
|
|
546
|
-
}
|
|
547
|
-
}
|
|
548
|
-
}
|
|
549
|
-
return rowCheckSum;
|
|
550
|
-
},
|
|
551
|
-
|
|
552
|
-
writeUpdateColumns: function (attributeColumns, rowCheckSum) {
|
|
553
|
-
if (!(attributeColumns instanceof Array)) {
|
|
554
|
-
throw new Error("Invalid attributeColumns, the type of attributeColumns should be array.");
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
if (attributeColumns.length == 0) {
|
|
558
|
-
return rowCheckSum;
|
|
559
|
-
}
|
|
560
|
-
|
|
561
|
-
this.writeTag(TableStore.plainBufferConsts.TAG_ROW_DATA);
|
|
562
|
-
for (var i = 0; i < attributeColumns.length; i++) {
|
|
563
|
-
for (var updateType in attributeColumns[i]) {
|
|
564
|
-
var columns = attributeColumns[i][updateType];
|
|
565
|
-
for (var attr in columns) {
|
|
566
|
-
if (TableStore.UpdateType.DELETE_ALL === updateType) {
|
|
567
|
-
rowCheckSum = this.writeUpdateColumn(updateType, columns[attr], null, rowCheckSum);
|
|
568
|
-
} else if (TableStore.UpdateType.DELETE === updateType) {
|
|
569
|
-
for (var k in columns[attr]) {
|
|
570
|
-
rowCheckSum = this.writeUpdateColumn(updateType, k, [null, columns[attr][k]], rowCheckSum);
|
|
571
|
-
}
|
|
572
|
-
} else if (TableStore.UpdateType.PUT === updateType) {
|
|
573
|
-
//PUT有可能带timestamp
|
|
574
|
-
if (columns[attr].timestamp !== undefined) {
|
|
575
|
-
for (var k in columns[attr]) {
|
|
576
|
-
rowCheckSum = this.writeUpdateColumn(updateType, k, [columns[attr][k], columns[attr].timestamp], rowCheckSum);
|
|
577
|
-
break;
|
|
578
|
-
}
|
|
579
|
-
} else {
|
|
580
|
-
for (var k in columns[attr]) {
|
|
581
|
-
rowCheckSum = this.writeUpdateColumn(updateType, k, columns[attr][k], rowCheckSum);
|
|
582
|
-
break;
|
|
583
|
-
}
|
|
584
|
-
}
|
|
585
|
-
} else if (TableStore.UpdateType.INCREMENT === updateType) {
|
|
586
|
-
//increment 有可能带timestamp
|
|
587
|
-
if (columns[attr].timestamp !== undefined) {
|
|
588
|
-
for (var k in columns[attr]) {
|
|
589
|
-
rowCheckSum = this.writeUpdateColumn(updateType, k, [columns[attr][k], columns[attr].timestamp], rowCheckSum);
|
|
590
|
-
break;
|
|
591
|
-
}
|
|
592
|
-
} else {
|
|
593
|
-
for (var k in columns[attr]) {
|
|
594
|
-
rowCheckSum = this.writeUpdateColumn(updateType, k, columns[attr][k], rowCheckSum);
|
|
595
|
-
break;
|
|
596
|
-
}
|
|
597
|
-
}
|
|
598
|
-
}
|
|
599
|
-
}
|
|
600
|
-
}
|
|
601
|
-
}
|
|
602
|
-
return rowCheckSum;
|
|
603
|
-
},
|
|
604
|
-
|
|
605
|
-
writeDeleteMarker: function (rowCheckSum) {
|
|
606
|
-
this.writeTag(TableStore.plainBufferConsts.TAG_DELETE_ROW_MARKER);
|
|
607
|
-
return TableStore.plainBufferCrc8.crcInt8(rowCheckSum, 1);
|
|
608
|
-
},
|
|
609
|
-
writeRowChecksum: function (rowCheckSum) {
|
|
610
|
-
this.writeTag(TableStore.plainBufferConsts.TAG_ROW_CHECKSUM);
|
|
611
|
-
this.outputStream.writeRawByte(rowCheckSum);
|
|
612
|
-
},
|
|
613
|
-
writeSearchValue: function(value) {
|
|
614
|
-
if (value instanceof Int64buf.Int64LE) {
|
|
615
|
-
this.outputStream.writeRawByte(TableStore.plainBufferConsts.VT_INTEGER);
|
|
616
|
-
this.outputStream.writeInt64LE(value);
|
|
617
|
-
} else if (typeof (value) === 'string') {
|
|
618
|
-
this.outputStream.writeRawByte(TableStore.plainBufferConsts.VT_STRING);
|
|
619
|
-
this.outputStream.writeRawLittleEndian32(TableStore.util.string.byteLength(value));
|
|
620
|
-
this.outputStream.writeBytes(value);
|
|
621
|
-
} else if (typeof (value) === 'boolean') {
|
|
622
|
-
this.outputStream.writeRawByte(TableStore.plainBufferConsts.VT_BOOLEAN);
|
|
623
|
-
this.outputStream.writeBoolean(value);
|
|
624
|
-
} else if (typeof (value) === 'number') {
|
|
625
|
-
this.outputStream.writeRawByte(TableStore.plainBufferConsts.VT_DOUBLE);
|
|
626
|
-
this.outputStream.writeDouble(value);
|
|
627
|
-
} else {
|
|
628
|
-
throw new Error("Unsupported column type: " + typeof (value));
|
|
629
|
-
}
|
|
630
|
-
}
|
|
631
|
-
});
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
var TableStore=require('../core');
|
|
2
|
-
|
|
3
|
-
TableStore.plainBufferConsts = {
|
|
4
|
-
HEADER: 0x75,
|
|
5
|
-
|
|
6
|
-
// tag type
|
|
7
|
-
TAG_ROW_PK: 0x1,
|
|
8
|
-
TAG_ROW_DATA: 0x2,
|
|
9
|
-
TAG_CELL: 0x3,
|
|
10
|
-
TAG_CELL_NAME: 0x4,
|
|
11
|
-
TAG_CELL_VALUE: 0x5,
|
|
12
|
-
TAG_CELL_TYPE: 0x6,
|
|
13
|
-
TAG_CELL_TIMESTAMP: 0x7,
|
|
14
|
-
TAG_DELETE_ROW_MARKER: 0x8,
|
|
15
|
-
TAG_ROW_CHECKSUM: 0x9,
|
|
16
|
-
TAG_CELL_CHECKSUM: 0x0A,
|
|
17
|
-
TAG_EXTENSION: 0x0B,
|
|
18
|
-
TAG_SEQ_INFO: 0x0C,
|
|
19
|
-
TAG_SEQ_INFO_EPOCH: 0x0D,
|
|
20
|
-
TAG_SEQ_INFO_TS: 0x0E,
|
|
21
|
-
TAG_SEQ_INFO_ROW_INDEX: 0x0F,
|
|
22
|
-
|
|
23
|
-
// cell op type
|
|
24
|
-
DELETE_ALL_VERSION: 0x1,
|
|
25
|
-
DELETE_ONE_VERSION: 0x3,
|
|
26
|
-
INCREMENT: 0x4,
|
|
27
|
-
|
|
28
|
-
// variant type
|
|
29
|
-
VT_INTEGER: 0x0,
|
|
30
|
-
VT_DOUBLE: 0x1,
|
|
31
|
-
VT_BOOLEAN: 0x2,
|
|
32
|
-
VT_STRING: 0x3,
|
|
33
|
-
VT_NULL: 0x6,
|
|
34
|
-
VT_BLOB: 0x7,
|
|
35
|
-
VT_INF_MIN: 0x9,
|
|
36
|
-
VT_INF_MAX: 0xa,
|
|
37
|
-
VT_AUTO_INCREMENT: 0xb,
|
|
38
|
-
|
|
39
|
-
// othber
|
|
40
|
-
LITTLE_ENDIAN_32_SIZE: 4,
|
|
41
|
-
LITTLE_ENDIAN_64_SIZE: 8,
|
|
42
|
-
MAX_BUFFER_SIZE: 64 * 1024 * 1024
|
|
43
|
-
|
|
44
|
-
};
|