@tablestore/tablestore-agent-cli 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (549) hide show
  1. package/dist/dashboard-runtime/dashboard/.next/BUILD_ID +1 -1
  2. package/dist/dashboard-runtime/dashboard/.next/app-path-routes-manifest.json +1 -1
  3. package/dist/dashboard-runtime/dashboard/.next/build-manifest.json +3 -3
  4. package/dist/dashboard-runtime/dashboard/.next/prerender-manifest.json +27 -27
  5. package/dist/dashboard-runtime/dashboard/.next/required-server-files.json +4 -4
  6. package/dist/dashboard-runtime/dashboard/.next/routes-manifest.json +6 -6
  7. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/chat/page.js.nft.json +1 -1
  8. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/chat/page_client-reference-manifest.js +1 -1
  9. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/documents/page_client-reference-manifest.js +1 -1
  10. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/page_client-reference-manifest.js +1 -1
  11. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/qa/page_client-reference-manifest.js +1 -1
  12. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/retrieval/page_client-reference-manifest.js +1 -1
  13. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/settings/page_client-reference-manifest.js +1 -1
  14. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/create/page_client-reference-manifest.js +1 -1
  15. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/page_client-reference-manifest.js +1 -1
  16. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/[id]/page_client-reference-manifest.js +1 -1
  17. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/new/page_client-reference-manifest.js +1 -1
  18. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/page_client-reference-manifest.js +1 -1
  19. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/messages/page_client-reference-manifest.js +1 -1
  20. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/page_client-reference-manifest.js +1 -1
  21. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/requests/page_client-reference-manifest.js +1 -1
  22. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/search/page_client-reference-manifest.js +1 -1
  23. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/settings/page_client-reference-manifest.js +1 -1
  24. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/units/page_client-reference-manifest.js +1 -1
  25. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/create/page_client-reference-manifest.js +1 -1
  26. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/page_client-reference-manifest.js +1 -1
  27. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/projects/page/app-paths-manifest.json +3 -0
  28. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/{instances → projects}/page/next-font-manifest.json +1 -1
  29. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/{instances → projects}/page.js +8 -8
  30. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/{instances → projects}/page.js.nft.json +1 -1
  31. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/projects/page_client-reference-manifest.js +3 -0
  32. package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.html +1 -1
  33. package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.rsc +1 -1
  34. package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  35. package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  36. package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  37. package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  38. package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  39. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.html +1 -1
  40. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.rsc +1 -1
  41. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
  42. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  43. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
  44. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  45. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  46. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  47. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/auth/status/route.js +1 -1
  48. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/auth/status/route.js.nft.json +1 -1
  49. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/auth/token/route.js +1 -1
  50. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/auth/token/route.js.nft.json +1 -1
  51. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/route.js +1 -1
  52. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/route.js.nft.json +1 -1
  53. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/token/route.js +1 -1
  54. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/token/route.js.nft.json +1 -1
  55. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/use/route.js +1 -1
  56. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/use/route.js.nft.json +1 -1
  57. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/route.js +1 -1
  58. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/route.js.nft.json +1 -1
  59. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/chunks/route.js +1 -1
  60. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/chunks/route.js.nft.json +1 -1
  61. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/[docId]/chunks/route.js +1 -1
  62. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/[docId]/chunks/route.js.nft.json +1 -1
  63. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/[docId]/route.js +1 -1
  64. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/[docId]/route.js.nft.json +1 -1
  65. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/route.js +1 -1
  66. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/route.js.nft.json +1 -1
  67. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/upload/route.js +1 -1
  68. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/upload/route.js.nft.json +1 -1
  69. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/retrieve/route.js +1 -1
  70. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/retrieve/route.js.nft.json +1 -1
  71. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/route.js +1 -1
  72. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/route.js.nft.json +1 -1
  73. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/route.js +1 -1
  74. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/route.js.nft.json +1 -1
  75. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/chat/route.js +1 -1
  76. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/chat/route.js.nft.json +1 -1
  77. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/models/route.js +1 -1
  78. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/models/route.js.nft.json +1 -1
  79. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/route.js +1 -1
  80. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/route.js.nft.json +1 -1
  81. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/test/route.js +1 -1
  82. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/test/route.js.nft.json +1 -1
  83. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/route.js +1 -1
  84. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/route.js.nft.json +1 -1
  85. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/messages/route.js +1 -1
  86. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/messages/route.js.nft.json +1 -1
  87. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/requests/route.js +1 -1
  88. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/requests/route.js.nft.json +1 -1
  89. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/route.js +1 -1
  90. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/route.js.nft.json +1 -1
  91. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/search/route.js +1 -1
  92. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/search/route.js.nft.json +1 -1
  93. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/units/[memoryId]/route.js +1 -1
  94. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/units/[memoryId]/route.js.nft.json +1 -1
  95. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/units/route.js +1 -1
  96. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/units/route.js.nft.json +1 -1
  97. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/route.js +1 -1
  98. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/route.js.nft.json +1 -1
  99. package/dist/dashboard-runtime/dashboard/.next/server/app/chat.html +1 -2
  100. package/dist/dashboard-runtime/dashboard/.next/server/app/chat.meta +2 -0
  101. package/dist/dashboard-runtime/dashboard/.next/server/app/chat.rsc +24 -27
  102. package/dist/dashboard-runtime/dashboard/.next/server/app/chat.segments/!KGRhc2hib2FyZCk/chat/__PAGE__.segment.rsc +2 -2
  103. package/dist/dashboard-runtime/dashboard/.next/server/app/chat.segments/!KGRhc2hib2FyZCk/chat.segment.rsc +2 -2
  104. package/dist/dashboard-runtime/dashboard/.next/server/app/chat.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -9
  105. package/dist/dashboard-runtime/dashboard/.next/server/app/chat.segments/_full.segment.rsc +24 -27
  106. package/dist/dashboard-runtime/dashboard/.next/server/app/chat.segments/_head.segment.rsc +1 -1
  107. package/dist/dashboard-runtime/dashboard/.next/server/app/chat.segments/_index.segment.rsc +1 -1
  108. package/dist/dashboard-runtime/dashboard/.next/server/app/chat.segments/_tree.segment.rsc +1 -1
  109. package/dist/dashboard-runtime/dashboard/.next/server/app/index.html +1 -1
  110. package/dist/dashboard-runtime/dashboard/.next/server/app/index.rsc +1 -1
  111. package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/__PAGE__.segment.rsc +1 -1
  112. package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/_full.segment.rsc +1 -1
  113. package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/_head.segment.rsc +1 -1
  114. package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/_index.segment.rsc +1 -1
  115. package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/_tree.segment.rsc +1 -1
  116. package/dist/dashboard-runtime/dashboard/.next/server/app/knowledge-base/create.html +1 -2
  117. package/dist/dashboard-runtime/dashboard/.next/server/app/knowledge-base/create.meta +2 -0
  118. package/dist/dashboard-runtime/dashboard/.next/server/app/knowledge-base/create.rsc +24 -27
  119. package/dist/dashboard-runtime/dashboard/.next/server/app/knowledge-base/create.segments/!KGRhc2hib2FyZCk/knowledge-base/create/__PAGE__.segment.rsc +2 -2
  120. package/dist/dashboard-runtime/dashboard/.next/server/app/knowledge-base/create.segments/!KGRhc2hib2FyZCk/knowledge-base/create.segment.rsc +1 -1
  121. package/dist/dashboard-runtime/dashboard/.next/server/app/knowledge-base/create.segments/!KGRhc2hib2FyZCk/knowledge-base.segment.rsc +1 -1
  122. package/dist/dashboard-runtime/dashboard/.next/server/app/knowledge-base/create.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -9
  123. package/dist/dashboard-runtime/dashboard/.next/server/app/knowledge-base/create.segments/_full.segment.rsc +24 -27
  124. package/dist/dashboard-runtime/dashboard/.next/server/app/knowledge-base/create.segments/_head.segment.rsc +1 -1
  125. package/dist/dashboard-runtime/dashboard/.next/server/app/knowledge-base/create.segments/_index.segment.rsc +1 -1
  126. package/dist/dashboard-runtime/dashboard/.next/server/app/knowledge-base/create.segments/_tree.segment.rsc +1 -1
  127. package/dist/dashboard-runtime/dashboard/.next/server/app/knowledge-base.html +1 -2
  128. package/dist/dashboard-runtime/dashboard/.next/server/app/knowledge-base.meta +2 -0
  129. package/dist/dashboard-runtime/dashboard/.next/server/app/knowledge-base.rsc +23 -26
  130. package/dist/dashboard-runtime/dashboard/.next/server/app/knowledge-base.segments/!KGRhc2hib2FyZCk/knowledge-base/__PAGE__.segment.rsc +2 -2
  131. package/dist/dashboard-runtime/dashboard/.next/server/app/knowledge-base.segments/!KGRhc2hib2FyZCk/knowledge-base.segment.rsc +1 -1
  132. package/dist/dashboard-runtime/dashboard/.next/server/app/knowledge-base.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -9
  133. package/dist/dashboard-runtime/dashboard/.next/server/app/knowledge-base.segments/_full.segment.rsc +23 -26
  134. package/dist/dashboard-runtime/dashboard/.next/server/app/knowledge-base.segments/_head.segment.rsc +1 -1
  135. package/dist/dashboard-runtime/dashboard/.next/server/app/knowledge-base.segments/_index.segment.rsc +1 -1
  136. package/dist/dashboard-runtime/dashboard/.next/server/app/knowledge-base.segments/_tree.segment.rsc +1 -1
  137. package/dist/dashboard-runtime/dashboard/.next/server/app/llm-providers/new.html +1 -2
  138. package/dist/dashboard-runtime/dashboard/.next/server/app/llm-providers/new.meta +2 -0
  139. package/dist/dashboard-runtime/dashboard/.next/server/app/llm-providers/new.rsc +21 -25
  140. package/dist/dashboard-runtime/dashboard/.next/server/app/llm-providers/new.segments/!KGRhc2hib2FyZCk/llm-providers/new/__PAGE__.segment.rsc +2 -2
  141. package/dist/dashboard-runtime/dashboard/.next/server/app/llm-providers/new.segments/!KGRhc2hib2FyZCk/llm-providers/new.segment.rsc +1 -1
  142. package/dist/dashboard-runtime/dashboard/.next/server/app/llm-providers/new.segments/!KGRhc2hib2FyZCk/llm-providers.segment.rsc +2 -2
  143. package/dist/dashboard-runtime/dashboard/.next/server/app/llm-providers/new.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -9
  144. package/dist/dashboard-runtime/dashboard/.next/server/app/llm-providers/new.segments/_full.segment.rsc +21 -25
  145. package/dist/dashboard-runtime/dashboard/.next/server/app/llm-providers/new.segments/_head.segment.rsc +1 -1
  146. package/dist/dashboard-runtime/dashboard/.next/server/app/llm-providers/new.segments/_index.segment.rsc +1 -1
  147. package/dist/dashboard-runtime/dashboard/.next/server/app/llm-providers/new.segments/_tree.segment.rsc +1 -1
  148. package/dist/dashboard-runtime/dashboard/.next/server/app/llm-providers.html +1 -1
  149. package/dist/dashboard-runtime/dashboard/.next/server/app/llm-providers.meta +2 -0
  150. package/dist/dashboard-runtime/dashboard/.next/server/app/llm-providers.rsc +23 -27
  151. package/dist/dashboard-runtime/dashboard/.next/server/app/llm-providers.segments/!KGRhc2hib2FyZCk/llm-providers/__PAGE__.segment.rsc +2 -2
  152. package/dist/dashboard-runtime/dashboard/.next/server/app/llm-providers.segments/!KGRhc2hib2FyZCk/llm-providers.segment.rsc +2 -2
  153. package/dist/dashboard-runtime/dashboard/.next/server/app/llm-providers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -9
  154. package/dist/dashboard-runtime/dashboard/.next/server/app/llm-providers.segments/_full.segment.rsc +23 -27
  155. package/dist/dashboard-runtime/dashboard/.next/server/app/llm-providers.segments/_head.segment.rsc +1 -1
  156. package/dist/dashboard-runtime/dashboard/.next/server/app/llm-providers.segments/_index.segment.rsc +1 -1
  157. package/dist/dashboard-runtime/dashboard/.next/server/app/llm-providers.segments/_tree.segment.rsc +1 -1
  158. package/dist/dashboard-runtime/dashboard/.next/server/app/memory/create.html +1 -2
  159. package/dist/dashboard-runtime/dashboard/.next/server/app/memory/create.meta +2 -0
  160. package/dist/dashboard-runtime/dashboard/.next/server/app/memory/create.rsc +26 -28
  161. package/dist/dashboard-runtime/dashboard/.next/server/app/memory/create.segments/!KGRhc2hib2FyZCk/memory/create/__PAGE__.segment.rsc +2 -2
  162. package/dist/dashboard-runtime/dashboard/.next/server/app/memory/create.segments/!KGRhc2hib2FyZCk/memory/create.segment.rsc +1 -1
  163. package/dist/dashboard-runtime/dashboard/.next/server/app/memory/create.segments/!KGRhc2hib2FyZCk/memory.segment.rsc +2 -2
  164. package/dist/dashboard-runtime/dashboard/.next/server/app/memory/create.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -9
  165. package/dist/dashboard-runtime/dashboard/.next/server/app/memory/create.segments/_full.segment.rsc +26 -28
  166. package/dist/dashboard-runtime/dashboard/.next/server/app/memory/create.segments/_head.segment.rsc +1 -1
  167. package/dist/dashboard-runtime/dashboard/.next/server/app/memory/create.segments/_index.segment.rsc +1 -1
  168. package/dist/dashboard-runtime/dashboard/.next/server/app/memory/create.segments/_tree.segment.rsc +1 -1
  169. package/dist/dashboard-runtime/dashboard/.next/server/app/memory.html +1 -2
  170. package/dist/dashboard-runtime/dashboard/.next/server/app/memory.meta +2 -0
  171. package/dist/dashboard-runtime/dashboard/.next/server/app/memory.rsc +24 -27
  172. package/dist/dashboard-runtime/dashboard/.next/server/app/memory.segments/!KGRhc2hib2FyZCk/memory/__PAGE__.segment.rsc +2 -2
  173. package/dist/dashboard-runtime/dashboard/.next/server/app/memory.segments/!KGRhc2hib2FyZCk/memory.segment.rsc +2 -2
  174. package/dist/dashboard-runtime/dashboard/.next/server/app/memory.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -9
  175. package/dist/dashboard-runtime/dashboard/.next/server/app/memory.segments/_full.segment.rsc +24 -27
  176. package/dist/dashboard-runtime/dashboard/.next/server/app/memory.segments/_head.segment.rsc +1 -1
  177. package/dist/dashboard-runtime/dashboard/.next/server/app/memory.segments/_index.segment.rsc +1 -1
  178. package/dist/dashboard-runtime/dashboard/.next/server/app/memory.segments/_tree.segment.rsc +1 -1
  179. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding/page_client-reference-manifest.js +1 -1
  180. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.html +1 -1
  181. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.rsc +3 -3
  182. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/_full.segment.rsc +3 -3
  183. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/_head.segment.rsc +1 -1
  184. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/_index.segment.rsc +1 -1
  185. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/_tree.segment.rsc +1 -1
  186. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/onboarding/__PAGE__.segment.rsc +2 -2
  187. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/onboarding.segment.rsc +2 -2
  188. package/dist/dashboard-runtime/dashboard/.next/server/app/projects.html +1 -0
  189. package/dist/dashboard-runtime/dashboard/.next/server/app/{instances.meta → projects.meta} +5 -3
  190. package/dist/dashboard-runtime/dashboard/.next/server/app/projects.rsc +34 -0
  191. package/dist/dashboard-runtime/dashboard/.next/server/app/{instances.segments/!KGRhc2hib2FyZCk/instances → projects.segments/!KGRhc2hib2FyZCk/projects}/__PAGE__.segment.rsc +2 -2
  192. package/dist/dashboard-runtime/dashboard/.next/server/app/{instances.segments/!KGRhc2hib2FyZCk/instances.segment.rsc → projects.segments/!KGRhc2hib2FyZCk/projects.segment.rsc} +2 -2
  193. package/dist/dashboard-runtime/dashboard/.next/server/app/projects.segments/!KGRhc2hib2FyZCk.segment.rsc +4 -0
  194. package/dist/dashboard-runtime/dashboard/.next/server/app/projects.segments/_full.segment.rsc +34 -0
  195. package/dist/dashboard-runtime/dashboard/.next/server/app/{instances.segments → projects.segments}/_head.segment.rsc +1 -1
  196. package/dist/dashboard-runtime/dashboard/.next/server/app/{instances.segments → projects.segments}/_index.segment.rsc +1 -1
  197. package/dist/dashboard-runtime/dashboard/.next/server/app/projects.segments/_tree.segment.rsc +3 -0
  198. package/dist/dashboard-runtime/dashboard/.next/server/app-paths-manifest.json +1 -1
  199. package/dist/dashboard-runtime/dashboard/.next/server/chunks/{[root-of-the-server]__0a7o_lg._.js → [root-of-the-server]__07jfil8._.js} +21 -16
  200. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0bfezi5._.js +1 -1
  201. package/dist/dashboard-runtime/dashboard/.next/server/chunks/{[root-of-the-server]__0vj8eh_._.js → [root-of-the-server]__0f990w9._.js} +21 -16
  202. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0g9--xh._.js +1 -1
  203. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0r4amj5._.js +1 -1
  204. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__12lk-nv._.js +1 -1
  205. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__12sqoa8._.js +1 -1
  206. 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
  207. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__0_bm190._.js → [root-of-the-server]__0ct6ysu._.js} +2 -2
  208. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__0getqb1._.js → [root-of-the-server]__0k7~7-.._.js} +1 -1
  209. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0y8rrcu._.js +1 -1
  210. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0.a5w1p._.js +1 -1
  211. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0476v7r._.js +3 -0
  212. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0ce~2ba._.js +1 -1
  213. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0z0rlpq._.js +1 -1
  214. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_11fl7_r._.js +3 -0
  215. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard__next-internal_server_app_(dashboard)_projects_page_actions_0b8.3qe.js +3 -0
  216. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_065m1.j._.js +1 -1
  217. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0o4a.29._.js +1 -1
  218. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0suis9l._.js +6 -2
  219. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0y49vhd._.js +1 -1
  220. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_10dsqx~._.js +1 -1
  221. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_projects_error_tsx_0lm0vqh._.js +3 -0
  222. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_projects_loading_tsx_0c1mchn._.js +3 -0
  223. package/dist/dashboard-runtime/dashboard/.next/server/middleware-build-manifest.js +3 -3
  224. package/dist/dashboard-runtime/dashboard/.next/server/next-font-manifest.js +1 -1
  225. package/dist/dashboard-runtime/dashboard/.next/server/next-font-manifest.json +1 -1
  226. package/dist/dashboard-runtime/dashboard/.next/server/pages/404.html +1 -1
  227. package/dist/dashboard-runtime/dashboard/.next/server/pages/500.html +1 -1
  228. package/dist/dashboard-runtime/dashboard/.next/server/server-reference-manifest.js +1 -1
  229. package/dist/dashboard-runtime/dashboard/.next/server/server-reference-manifest.json +1 -1
  230. package/dist/dashboard-runtime/dashboard/.next/static/chunks/{0-ps54o0cl-hh.js → 0-.-yvgh3s-60.js} +1 -1
  231. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0212ujx60nooy.js +1 -0
  232. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0ja2he~jl53.n.js +1 -0
  233. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0s3mvx9_dr13c.js +1 -0
  234. package/dist/dashboard-runtime/dashboard/.next/static/chunks/{0g_uneyk~9dg0.js → 0sg6z8.ci0l2b.js} +1 -1
  235. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0u-_fvx_r85sr.js +1 -0
  236. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0~5hi.pq6~znn.js +1 -0
  237. package/dist/dashboard-runtime/dashboard/.next/static/chunks/{13lz27klh_al4.js → 16lab3t3ovnyq.js} +1 -1
  238. package/dist/dashboard-runtime/dashboard/package.json +3 -1
  239. package/dist/dashboard-runtime/dashboard/server.js +1 -1
  240. package/dist/dashboard-runtime/dashboard/src/components/instance/connect-instance-dialog.tsx +2 -2
  241. package/dist/dashboard-runtime/dashboard/src/components/instance/connect-instance-form.tsx +62 -9
  242. package/dist/dashboard-runtime/dashboard/src/components/instance/edit-instance-dialog.tsx +19 -5
  243. package/dist/dashboard-runtime/dashboard/src/components/layout/breadcrumb-bar.tsx +1 -0
  244. package/dist/dashboard-runtime/dashboard/src/components/layout/instance-switcher.tsx +41 -8
  245. package/dist/dashboard-runtime/dashboard/src/components/qa/qa-chat-panel.tsx +35 -3
  246. package/dist/dashboard-runtime/dashboard/src/hooks/use-instances.ts +32 -10
  247. package/dist/dashboard-runtime/dashboard/src/lib/server/sdk-client.ts +62 -16
  248. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/index.d.ts +0 -1
  249. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/index.d.ts.map +1 -1
  250. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/index.js +0 -1
  251. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/index.js.map +1 -1
  252. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/internal/managed-section-writer.d.ts +17 -0
  253. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/internal/managed-section-writer.d.ts.map +1 -0
  254. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/internal/managed-section-writer.js +39 -0
  255. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/internal/managed-section-writer.js.map +1 -0
  256. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.d.ts +33 -17
  257. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.d.ts.map +1 -1
  258. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.js +159 -207
  259. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.js.map +1 -1
  260. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/managed-oss.d.ts.map +1 -1
  261. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/managed-oss.js +2 -1
  262. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/managed-oss.js.map +1 -1
  263. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/managed-ots.d.ts.map +1 -1
  264. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/managed-ots.js +2 -1
  265. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/managed-ots.js.map +1 -1
  266. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.d.ts +10 -6
  267. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.d.ts.map +1 -1
  268. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.js +37 -42
  269. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.js.map +1 -1
  270. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/response.d.ts +5 -3
  271. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/response.d.ts.map +1 -1
  272. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/response.js +92 -30
  273. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/response.js.map +1 -1
  274. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/tsconfig.tsbuildinfo +1 -1
  275. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/package.json +2 -2
  276. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/config.d.ts.map +1 -1
  277. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/config.js +89 -11
  278. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/config.js.map +1 -1
  279. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/tsconfig.tsbuildinfo +1 -1
  280. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/index.d.ts +0 -1
  281. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/index.d.ts.map +1 -1
  282. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/index.js +0 -1
  283. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/index.js.map +1 -1
  284. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/internal/managed-section-writer.d.ts +17 -0
  285. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/internal/managed-section-writer.d.ts.map +1 -0
  286. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/internal/managed-section-writer.js +39 -0
  287. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/internal/managed-section-writer.js.map +1 -0
  288. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.d.ts +33 -17
  289. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.d.ts.map +1 -1
  290. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.js +159 -207
  291. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.js.map +1 -1
  292. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/managed-oss.d.ts.map +1 -1
  293. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/managed-oss.js +2 -1
  294. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/managed-oss.js.map +1 -1
  295. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/managed-ots.d.ts.map +1 -1
  296. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/managed-ots.js +2 -1
  297. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/managed-ots.js.map +1 -1
  298. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.d.ts +10 -6
  299. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.d.ts.map +1 -1
  300. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.js +37 -42
  301. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.js.map +1 -1
  302. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/response.d.ts +5 -3
  303. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/response.d.ts.map +1 -1
  304. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/response.js +92 -30
  305. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/response.js.map +1 -1
  306. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/tsconfig.tsbuildinfo +1 -1
  307. package/dist/node_modules/@tablestore/tablestore-agent-sdk/package.json +2 -2
  308. package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/config.d.ts.map +1 -1
  309. package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/config.js +89 -11
  310. package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/config.js.map +1 -1
  311. package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/tsconfig.tsbuildinfo +1 -1
  312. package/package.json +3 -3
  313. package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/index.js +0 -2
  314. package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/client.js +0 -672
  315. package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/config.js +0 -70
  316. package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/core.js +0 -30
  317. package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/event_listeners.js +0 -199
  318. package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/filter.js +0 -204
  319. package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/http/node.js +0 -146
  320. package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/http/xhr.js +0 -113
  321. package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/http.js +0 -81
  322. package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/long.js +0 -21
  323. package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/metadata.js +0 -65
  324. package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/protocol/build_proto.sh +0 -4
  325. package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/protocol/decoder.js +0 -677
  326. package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/protocol/encoder.js +0 -1593
  327. package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/protocol/plain_buffer_coded_stream.js +0 -631
  328. package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/protocol/plain_buffer_consts.js +0 -44
  329. package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/protocol/plain_buffer_crc8.js +0 -79
  330. package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/protocol/plain_buffer_stream.js +0 -209
  331. package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/protocol/plian_buffer_builder.js +0 -252
  332. package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/protocol/sql.fbs +0 -36
  333. package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/protocol/sql_generated.js +0 -961
  334. package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/protocol/tablestore.proto +0 -676
  335. package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/protocol/tablestore_compiled_proto.js +0 -54728
  336. package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/protocol/tablestore_filter.proto +0 -45
  337. package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/protocol/tablestore_search.proto +0 -1010
  338. package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/request.js +0 -235
  339. package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/retry/default_retry_policy.js +0 -74
  340. package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/retry/retry_util.js +0 -94
  341. package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/search.js +0 -209
  342. package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/sequential_executor.js +0 -240
  343. package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/signer.js +0 -70
  344. package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/sql.js +0 -111
  345. package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/util-browser.js +0 -756
  346. package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/lib/util.js +0 -602
  347. package/dist/dashboard-runtime/dashboard/.next/node_modules/tablestore-c965f3f5727f9a6d/package.json +0 -39
  348. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/instances/page/app-paths-manifest.json +0 -3
  349. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/instances/page_client-reference-manifest.js +0 -3
  350. package/dist/dashboard-runtime/dashboard/.next/server/app/instances.html +0 -1
  351. package/dist/dashboard-runtime/dashboard/.next/server/app/instances.rsc +0 -38
  352. package/dist/dashboard-runtime/dashboard/.next/server/app/instances.segments/!KGRhc2hib2FyZCk.segment.rsc +0 -11
  353. package/dist/dashboard-runtime/dashboard/.next/server/app/instances.segments/_full.segment.rsc +0 -38
  354. package/dist/dashboard-runtime/dashboard/.next/server/app/instances.segments/_tree.segment.rsc +0 -3
  355. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0hr5-78._.js +0 -3
  356. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0v1vjve._.js +0 -3
  357. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard__next-internal_server_app_(dashboard)_instances_page_actions_0h2z.wc.js +0 -3
  358. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_instances_error_tsx_0n991op._.js +0 -3
  359. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_instances_loading_tsx_0vo~r9q._.js +0 -3
  360. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0--ug1fajm138.js +0 -1
  361. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0014~.2un25~~.js +0 -1
  362. package/dist/dashboard-runtime/dashboard/.next/static/chunks/067_.vm1v8kg3.js +0 -1
  363. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0jw5s5e8qwbpx.js +0 -1
  364. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0l75a30.ubt1z.js +0 -1
  365. package/dist/dashboard-runtime/node_modules/@protobufjs/aspromise/index.js +0 -52
  366. package/dist/dashboard-runtime/node_modules/@protobufjs/aspromise/package.json +0 -21
  367. package/dist/dashboard-runtime/node_modules/@protobufjs/base64/index.js +0 -139
  368. package/dist/dashboard-runtime/node_modules/@protobufjs/base64/package.json +0 -21
  369. package/dist/dashboard-runtime/node_modules/@protobufjs/eventemitter/index.js +0 -76
  370. package/dist/dashboard-runtime/node_modules/@protobufjs/eventemitter/package.json +0 -21
  371. package/dist/dashboard-runtime/node_modules/@protobufjs/float/index.js +0 -335
  372. package/dist/dashboard-runtime/node_modules/@protobufjs/float/package.json +0 -26
  373. package/dist/dashboard-runtime/node_modules/@protobufjs/inquire/index.js +0 -17
  374. package/dist/dashboard-runtime/node_modules/@protobufjs/inquire/package.json +0 -21
  375. package/dist/dashboard-runtime/node_modules/@protobufjs/pool/index.js +0 -48
  376. package/dist/dashboard-runtime/node_modules/@protobufjs/pool/package.json +0 -21
  377. package/dist/dashboard-runtime/node_modules/@protobufjs/utf8/index.js +0 -105
  378. package/dist/dashboard-runtime/node_modules/@protobufjs/utf8/package.json +0 -21
  379. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/oss-uploader.d.ts +0 -56
  380. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/oss-uploader.d.ts.map +0 -1
  381. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/oss-uploader.js +0 -120
  382. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/oss-uploader.js.map +0 -1
  383. package/dist/dashboard-runtime/node_modules/flatbuffers/LICENSE.txt +0 -202
  384. package/dist/dashboard-runtime/node_modules/flatbuffers/js/flatbuffers.js +0 -1259
  385. package/dist/dashboard-runtime/node_modules/flatbuffers/js/flatbuffers.mjs +0 -1259
  386. package/dist/dashboard-runtime/node_modules/flatbuffers/package.json +0 -34
  387. package/dist/dashboard-runtime/node_modules/flatbuffers/readme.md +0 -58
  388. package/dist/dashboard-runtime/node_modules/int64-buffer/int64-buffer.js +0 -293
  389. package/dist/dashboard-runtime/node_modules/int64-buffer/package.json +0 -57
  390. package/dist/dashboard-runtime/node_modules/protobufjs/LICENSE +0 -39
  391. package/dist/dashboard-runtime/node_modules/protobufjs/README.md +0 -905
  392. package/dist/dashboard-runtime/node_modules/protobufjs/bin/pbjs +0 -6
  393. package/dist/dashboard-runtime/node_modules/protobufjs/bin/pbts +0 -6
  394. package/dist/dashboard-runtime/node_modules/protobufjs/cli/LICENSE +0 -33
  395. package/dist/dashboard-runtime/node_modules/protobufjs/cli/README.md +0 -174
  396. package/dist/dashboard-runtime/node_modules/protobufjs/cli/bin/pbjs +0 -6
  397. package/dist/dashboard-runtime/node_modules/protobufjs/cli/bin/pbts +0 -6
  398. package/dist/dashboard-runtime/node_modules/protobufjs/cli/index.d.ts +0 -3
  399. package/dist/dashboard-runtime/node_modules/protobufjs/cli/index.js +0 -3
  400. package/dist/dashboard-runtime/node_modules/protobufjs/cli/lib/tsd-jsdoc/LICENSE +0 -21
  401. package/dist/dashboard-runtime/node_modules/protobufjs/cli/lib/tsd-jsdoc/README.md +0 -23
  402. package/dist/dashboard-runtime/node_modules/protobufjs/cli/lib/tsd-jsdoc/plugin.js +0 -21
  403. package/dist/dashboard-runtime/node_modules/protobufjs/cli/lib/tsd-jsdoc/publish.js +0 -705
  404. package/dist/dashboard-runtime/node_modules/protobufjs/cli/lib/tsd-jsdoc.json +0 -18
  405. package/dist/dashboard-runtime/node_modules/protobufjs/cli/package.json +0 -10
  406. package/dist/dashboard-runtime/node_modules/protobufjs/cli/package.standalone.json +0 -32
  407. package/dist/dashboard-runtime/node_modules/protobufjs/cli/pbjs.d.ts +0 -9
  408. package/dist/dashboard-runtime/node_modules/protobufjs/cli/pbjs.js +0 -330
  409. package/dist/dashboard-runtime/node_modules/protobufjs/cli/pbts.d.ts +0 -9
  410. package/dist/dashboard-runtime/node_modules/protobufjs/cli/pbts.js +0 -197
  411. package/dist/dashboard-runtime/node_modules/protobufjs/cli/targets/json-module.js +0 -38
  412. package/dist/dashboard-runtime/node_modules/protobufjs/cli/targets/json.js +0 -8
  413. package/dist/dashboard-runtime/node_modules/protobufjs/cli/targets/proto.js +0 -326
  414. package/dist/dashboard-runtime/node_modules/protobufjs/cli/targets/proto2.js +0 -10
  415. package/dist/dashboard-runtime/node_modules/protobufjs/cli/targets/proto3.js +0 -10
  416. package/dist/dashboard-runtime/node_modules/protobufjs/cli/targets/static-module.js +0 -29
  417. package/dist/dashboard-runtime/node_modules/protobufjs/cli/targets/static.js +0 -711
  418. package/dist/dashboard-runtime/node_modules/protobufjs/cli/util.js +0 -183
  419. package/dist/dashboard-runtime/node_modules/protobufjs/cli/wrappers/amd.js +0 -7
  420. package/dist/dashboard-runtime/node_modules/protobufjs/cli/wrappers/closure.js +0 -7
  421. package/dist/dashboard-runtime/node_modules/protobufjs/cli/wrappers/commonjs.js +0 -7
  422. package/dist/dashboard-runtime/node_modules/protobufjs/cli/wrappers/default.js +0 -15
  423. package/dist/dashboard-runtime/node_modules/protobufjs/cli/wrappers/es6.js +0 -5
  424. package/dist/dashboard-runtime/node_modules/protobufjs/dist/README.md +0 -31
  425. package/dist/dashboard-runtime/node_modules/protobufjs/dist/light/README.md +0 -31
  426. package/dist/dashboard-runtime/node_modules/protobufjs/dist/light/protobuf.js +0 -7326
  427. package/dist/dashboard-runtime/node_modules/protobufjs/dist/light/protobuf.js.map +0 -1
  428. package/dist/dashboard-runtime/node_modules/protobufjs/dist/light/protobuf.min.js +0 -8
  429. package/dist/dashboard-runtime/node_modules/protobufjs/dist/light/protobuf.min.js.map +0 -1
  430. package/dist/dashboard-runtime/node_modules/protobufjs/dist/minimal/README.md +0 -31
  431. package/dist/dashboard-runtime/node_modules/protobufjs/dist/minimal/protobuf.js +0 -2714
  432. package/dist/dashboard-runtime/node_modules/protobufjs/dist/minimal/protobuf.js.map +0 -1
  433. package/dist/dashboard-runtime/node_modules/protobufjs/dist/minimal/protobuf.min.js +0 -8
  434. package/dist/dashboard-runtime/node_modules/protobufjs/dist/minimal/protobuf.min.js.map +0 -1
  435. package/dist/dashboard-runtime/node_modules/protobufjs/dist/protobuf.js +0 -8968
  436. package/dist/dashboard-runtime/node_modules/protobufjs/dist/protobuf.js.map +0 -1
  437. package/dist/dashboard-runtime/node_modules/protobufjs/dist/protobuf.min.js +0 -8
  438. package/dist/dashboard-runtime/node_modules/protobufjs/dist/protobuf.min.js.map +0 -1
  439. package/dist/dashboard-runtime/node_modules/protobufjs/ext/debug/README.md +0 -4
  440. package/dist/dashboard-runtime/node_modules/protobufjs/ext/debug/index.js +0 -71
  441. package/dist/dashboard-runtime/node_modules/protobufjs/ext/descriptor/README.md +0 -72
  442. package/dist/dashboard-runtime/node_modules/protobufjs/ext/descriptor/index.d.ts +0 -191
  443. package/dist/dashboard-runtime/node_modules/protobufjs/ext/descriptor/index.js +0 -1052
  444. package/dist/dashboard-runtime/node_modules/protobufjs/ext/descriptor/test.js +0 -54
  445. package/dist/dashboard-runtime/node_modules/protobufjs/google/LICENSE +0 -27
  446. package/dist/dashboard-runtime/node_modules/protobufjs/google/README.md +0 -1
  447. package/dist/dashboard-runtime/node_modules/protobufjs/google/api/annotations.json +0 -83
  448. package/dist/dashboard-runtime/node_modules/protobufjs/google/api/annotations.proto +0 -11
  449. package/dist/dashboard-runtime/node_modules/protobufjs/google/api/http.json +0 -86
  450. package/dist/dashboard-runtime/node_modules/protobufjs/google/api/http.proto +0 -31
  451. package/dist/dashboard-runtime/node_modules/protobufjs/google/protobuf/api.json +0 -118
  452. package/dist/dashboard-runtime/node_modules/protobufjs/google/protobuf/api.proto +0 -34
  453. package/dist/dashboard-runtime/node_modules/protobufjs/google/protobuf/descriptor.json +0 -739
  454. package/dist/dashboard-runtime/node_modules/protobufjs/google/protobuf/descriptor.proto +0 -286
  455. package/dist/dashboard-runtime/node_modules/protobufjs/google/protobuf/source_context.json +0 -20
  456. package/dist/dashboard-runtime/node_modules/protobufjs/google/protobuf/source_context.proto +0 -7
  457. package/dist/dashboard-runtime/node_modules/protobufjs/google/protobuf/type.json +0 -202
  458. package/dist/dashboard-runtime/node_modules/protobufjs/google/protobuf/type.proto +0 -89
  459. package/dist/dashboard-runtime/node_modules/protobufjs/index.d.ts +0 -2739
  460. package/dist/dashboard-runtime/node_modules/protobufjs/index.js +0 -4
  461. package/dist/dashboard-runtime/node_modules/protobufjs/light.d.ts +0 -2
  462. package/dist/dashboard-runtime/node_modules/protobufjs/light.js +0 -4
  463. package/dist/dashboard-runtime/node_modules/protobufjs/minimal.d.ts +0 -2
  464. package/dist/dashboard-runtime/node_modules/protobufjs/minimal.js +0 -4
  465. package/dist/dashboard-runtime/node_modules/protobufjs/node_modules/.bin/pbjs +0 -16
  466. package/dist/dashboard-runtime/node_modules/protobufjs/node_modules/.bin/pbts +0 -16
  467. package/dist/dashboard-runtime/node_modules/protobufjs/package.json +0 -122
  468. package/dist/dashboard-runtime/node_modules/protobufjs/scripts/postinstall.js +0 -35
  469. package/dist/dashboard-runtime/node_modules/protobufjs/src/common.js +0 -399
  470. package/dist/dashboard-runtime/node_modules/protobufjs/src/converter.js +0 -293
  471. package/dist/dashboard-runtime/node_modules/protobufjs/src/decoder.js +0 -128
  472. package/dist/dashboard-runtime/node_modules/protobufjs/src/encoder.js +0 -100
  473. package/dist/dashboard-runtime/node_modules/protobufjs/src/enum.js +0 -181
  474. package/dist/dashboard-runtime/node_modules/protobufjs/src/field.js +0 -374
  475. package/dist/dashboard-runtime/node_modules/protobufjs/src/index-light.js +0 -104
  476. package/dist/dashboard-runtime/node_modules/protobufjs/src/index-minimal.js +0 -36
  477. package/dist/dashboard-runtime/node_modules/protobufjs/src/index.js +0 -12
  478. package/dist/dashboard-runtime/node_modules/protobufjs/src/mapfield.js +0 -126
  479. package/dist/dashboard-runtime/node_modules/protobufjs/src/message.js +0 -139
  480. package/dist/dashboard-runtime/node_modules/protobufjs/src/method.js +0 -160
  481. package/dist/dashboard-runtime/node_modules/protobufjs/src/namespace.js +0 -434
  482. package/dist/dashboard-runtime/node_modules/protobufjs/src/object.js +0 -243
  483. package/dist/dashboard-runtime/node_modules/protobufjs/src/oneof.js +0 -203
  484. package/dist/dashboard-runtime/node_modules/protobufjs/src/parse.js +0 -820
  485. package/dist/dashboard-runtime/node_modules/protobufjs/src/reader.js +0 -411
  486. package/dist/dashboard-runtime/node_modules/protobufjs/src/reader_buffer.js +0 -51
  487. package/dist/dashboard-runtime/node_modules/protobufjs/src/root.js +0 -363
  488. package/dist/dashboard-runtime/node_modules/protobufjs/src/roots.js +0 -18
  489. package/dist/dashboard-runtime/node_modules/protobufjs/src/rpc/service.js +0 -142
  490. package/dist/dashboard-runtime/node_modules/protobufjs/src/rpc.js +0 -36
  491. package/dist/dashboard-runtime/node_modules/protobufjs/src/service.js +0 -167
  492. package/dist/dashboard-runtime/node_modules/protobufjs/src/tokenize.js +0 -403
  493. package/dist/dashboard-runtime/node_modules/protobufjs/src/type.js +0 -589
  494. package/dist/dashboard-runtime/node_modules/protobufjs/src/types.js +0 -196
  495. package/dist/dashboard-runtime/node_modules/protobufjs/src/typescript.jsdoc +0 -15
  496. package/dist/dashboard-runtime/node_modules/protobufjs/src/util/longbits.js +0 -200
  497. package/dist/dashboard-runtime/node_modules/protobufjs/src/util/minimal.js +0 -421
  498. package/dist/dashboard-runtime/node_modules/protobufjs/src/util.js +0 -212
  499. package/dist/dashboard-runtime/node_modules/protobufjs/src/verifier.js +0 -177
  500. package/dist/dashboard-runtime/node_modules/protobufjs/src/wrappers.js +0 -102
  501. package/dist/dashboard-runtime/node_modules/protobufjs/src/writer.js +0 -465
  502. package/dist/dashboard-runtime/node_modules/protobufjs/src/writer_buffer.js +0 -85
  503. package/dist/dashboard-runtime/node_modules/protobufjs/tsconfig.json +0 -7
  504. package/dist/dashboard-runtime/node_modules/tablestore/index.js +0 -2
  505. package/dist/dashboard-runtime/node_modules/tablestore/lib/client.js +0 -672
  506. package/dist/dashboard-runtime/node_modules/tablestore/lib/config.js +0 -70
  507. package/dist/dashboard-runtime/node_modules/tablestore/lib/core.js +0 -30
  508. package/dist/dashboard-runtime/node_modules/tablestore/lib/event_listeners.js +0 -199
  509. package/dist/dashboard-runtime/node_modules/tablestore/lib/filter.js +0 -204
  510. package/dist/dashboard-runtime/node_modules/tablestore/lib/http/node.js +0 -146
  511. package/dist/dashboard-runtime/node_modules/tablestore/lib/http/xhr.js +0 -113
  512. package/dist/dashboard-runtime/node_modules/tablestore/lib/http.js +0 -81
  513. package/dist/dashboard-runtime/node_modules/tablestore/lib/long.js +0 -21
  514. package/dist/dashboard-runtime/node_modules/tablestore/lib/metadata.js +0 -65
  515. package/dist/dashboard-runtime/node_modules/tablestore/lib/protocol/build_proto.sh +0 -4
  516. package/dist/dashboard-runtime/node_modules/tablestore/lib/protocol/decoder.js +0 -677
  517. package/dist/dashboard-runtime/node_modules/tablestore/lib/protocol/encoder.js +0 -1593
  518. package/dist/dashboard-runtime/node_modules/tablestore/lib/protocol/plain_buffer_coded_stream.js +0 -631
  519. package/dist/dashboard-runtime/node_modules/tablestore/lib/protocol/plain_buffer_consts.js +0 -44
  520. package/dist/dashboard-runtime/node_modules/tablestore/lib/protocol/plain_buffer_crc8.js +0 -79
  521. package/dist/dashboard-runtime/node_modules/tablestore/lib/protocol/plain_buffer_stream.js +0 -209
  522. package/dist/dashboard-runtime/node_modules/tablestore/lib/protocol/plian_buffer_builder.js +0 -252
  523. package/dist/dashboard-runtime/node_modules/tablestore/lib/protocol/sql.fbs +0 -36
  524. package/dist/dashboard-runtime/node_modules/tablestore/lib/protocol/sql_generated.js +0 -961
  525. package/dist/dashboard-runtime/node_modules/tablestore/lib/protocol/tablestore.proto +0 -676
  526. package/dist/dashboard-runtime/node_modules/tablestore/lib/protocol/tablestore_compiled_proto.js +0 -54728
  527. package/dist/dashboard-runtime/node_modules/tablestore/lib/protocol/tablestore_filter.proto +0 -45
  528. package/dist/dashboard-runtime/node_modules/tablestore/lib/protocol/tablestore_search.proto +0 -1010
  529. package/dist/dashboard-runtime/node_modules/tablestore/lib/request.js +0 -235
  530. package/dist/dashboard-runtime/node_modules/tablestore/lib/retry/default_retry_policy.js +0 -74
  531. package/dist/dashboard-runtime/node_modules/tablestore/lib/retry/retry_util.js +0 -94
  532. package/dist/dashboard-runtime/node_modules/tablestore/lib/search.js +0 -209
  533. package/dist/dashboard-runtime/node_modules/tablestore/lib/sequential_executor.js +0 -240
  534. package/dist/dashboard-runtime/node_modules/tablestore/lib/signer.js +0 -70
  535. package/dist/dashboard-runtime/node_modules/tablestore/lib/sql.js +0 -111
  536. package/dist/dashboard-runtime/node_modules/tablestore/lib/util-browser.js +0 -756
  537. package/dist/dashboard-runtime/node_modules/tablestore/lib/util.js +0 -602
  538. package/dist/dashboard-runtime/node_modules/tablestore/package.json +0 -39
  539. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/oss-uploader.d.ts +0 -56
  540. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/oss-uploader.d.ts.map +0 -1
  541. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/oss-uploader.js +0 -120
  542. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/oss-uploader.js.map +0 -1
  543. /package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/{instances → projects}/page/build-manifest.json +0 -0
  544. /package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/{instances → projects}/page/react-loadable-manifest.json +0 -0
  545. /package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/{instances → projects}/page/server-reference-manifest.json +0 -0
  546. /package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/{instances → projects}/page.js.map +0 -0
  547. /package/dist/dashboard-runtime/dashboard/.next/static/{w-uHfh2BKcsjuH1pgOcYM → 5v9SZKIfkbolPwH_qGQog}/_buildManifest.js +0 -0
  548. /package/dist/dashboard-runtime/dashboard/.next/static/{w-uHfh2BKcsjuH1pgOcYM → 5v9SZKIfkbolPwH_qGQog}/_clientMiddlewareManifest.js +0 -0
  549. /package/dist/dashboard-runtime/dashboard/.next/static/{w-uHfh2BKcsjuH1pgOcYM → 5v9SZKIfkbolPwH_qGQog}/_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
- };