@sean.holung/minicode 0.3.9 → 0.3.11

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 (1229) hide show
  1. package/README.md +9 -0
  2. package/dist/scripts/run-ts-bench-smoke.js +268 -0
  3. package/dist/scripts/ts-bench-adapter.js +251 -0
  4. package/dist/src/agent/config.js +2 -2
  5. package/dist/src/auto-allow.js +28 -0
  6. package/dist/src/benchmark/config.js +197 -0
  7. package/dist/src/benchmark/index.js +2 -0
  8. package/dist/src/benchmark/workspace-changes.js +125 -0
  9. package/dist/src/cli/args.js +13 -0
  10. package/dist/src/cli/benchmark-run.js +432 -0
  11. package/dist/src/cli/permissions-slash-command.js +50 -0
  12. package/dist/src/index.js +9 -2
  13. package/dist/src/indexer/plugin-loader.js +19 -1
  14. package/dist/src/indexer/project-index.js +35 -21
  15. package/dist/src/serve/agent-bridge.js +128 -1
  16. package/dist/src/serve/openai-compat.js +2 -2
  17. package/dist/src/serve/websocket.js +11 -0
  18. package/dist/src/tools/registry.js +10 -2
  19. package/dist/src/ui/app.js +8 -2
  20. package/dist/src/ui/cli-ink.js +13 -2
  21. package/dist/src/ui/components/permission-prompt.js +53 -0
  22. package/dist/src/ui/permission-gate.js +42 -0
  23. package/dist/src/ui/state/ui-store.js +13 -0
  24. package/dist/src/web/app.js +77 -5
  25. package/dist/src/web/index.html +58 -1
  26. package/dist/src/web/style.css +971 -1738
  27. package/dist/tests/agent.test.js +110 -0
  28. package/dist/tests/benchmark-config.test.js +80 -0
  29. package/dist/tests/benchmark-run.test.js +180 -0
  30. package/dist/tests/cli-args.test.js +22 -0
  31. package/dist/tests/cli-oneshot.integration.test.js +5 -0
  32. package/dist/tests/config.test.js +21 -0
  33. package/dist/tests/file-tools.test.js +36 -0
  34. package/dist/tests/harbor-adapter.test.js +57 -0
  35. package/dist/tests/indexer.test.js +1 -1
  36. package/dist/tests/permission-gate-cli.test.js +126 -0
  37. package/dist/tests/permission-gate.test.js +196 -0
  38. package/dist/tests/python-plugin.test.js +357 -0
  39. package/dist/tests/system-prompt.test.js +44 -9
  40. package/dist/tests/ts-bench-adapter.test.js +186 -0
  41. package/dist/tests/workspace-changes.test.js +82 -0
  42. package/node_modules/@minicode/agent-sdk/README.md +286 -90
  43. package/node_modules/@minicode/agent-sdk/dist/src/agent/agent.d.ts +40 -4
  44. package/node_modules/@minicode/agent-sdk/dist/src/agent/agent.d.ts.map +1 -1
  45. package/node_modules/@minicode/agent-sdk/dist/src/agent/agent.js +134 -27
  46. package/node_modules/@minicode/agent-sdk/dist/src/agent/agent.js.map +1 -1
  47. package/node_modules/@minicode/agent-sdk/dist/src/agent/structured-output.d.ts +42 -0
  48. package/node_modules/@minicode/agent-sdk/dist/src/agent/structured-output.d.ts.map +1 -0
  49. package/node_modules/@minicode/agent-sdk/dist/src/agent/structured-output.js +97 -0
  50. package/node_modules/@minicode/agent-sdk/dist/src/agent/structured-output.js.map +1 -0
  51. package/node_modules/@minicode/agent-sdk/dist/src/agent/types.d.ts +97 -2
  52. package/node_modules/@minicode/agent-sdk/dist/src/agent/types.d.ts.map +1 -1
  53. package/node_modules/@minicode/agent-sdk/dist/src/agent/types.js +15 -1
  54. package/node_modules/@minicode/agent-sdk/dist/src/agent/types.js.map +1 -1
  55. package/node_modules/@minicode/agent-sdk/dist/src/index.d.ts +10 -8
  56. package/node_modules/@minicode/agent-sdk/dist/src/index.d.ts.map +1 -1
  57. package/node_modules/@minicode/agent-sdk/dist/src/index.js +10 -6
  58. package/node_modules/@minicode/agent-sdk/dist/src/index.js.map +1 -1
  59. package/node_modules/@minicode/agent-sdk/dist/src/indexer/types.d.ts +8 -3
  60. package/node_modules/@minicode/agent-sdk/dist/src/indexer/types.d.ts.map +1 -1
  61. package/node_modules/@minicode/agent-sdk/dist/src/mcp/client-registry.d.ts +109 -0
  62. package/node_modules/@minicode/agent-sdk/dist/src/mcp/client-registry.d.ts.map +1 -0
  63. package/node_modules/@minicode/agent-sdk/dist/src/mcp/client-registry.js +237 -0
  64. package/node_modules/@minicode/agent-sdk/dist/src/mcp/client-registry.js.map +1 -0
  65. package/node_modules/@minicode/agent-sdk/dist/src/model/client.d.ts +5 -1
  66. package/node_modules/@minicode/agent-sdk/dist/src/model/client.d.ts.map +1 -1
  67. package/node_modules/@minicode/agent-sdk/dist/src/model/client.js +100 -8
  68. package/node_modules/@minicode/agent-sdk/dist/src/model/client.js.map +1 -1
  69. package/node_modules/@minicode/agent-sdk/dist/src/prompt/system-prompt.d.ts +31 -1
  70. package/node_modules/@minicode/agent-sdk/dist/src/prompt/system-prompt.d.ts.map +1 -1
  71. package/node_modules/@minicode/agent-sdk/dist/src/prompt/system-prompt.js +8 -7
  72. package/node_modules/@minicode/agent-sdk/dist/src/prompt/system-prompt.js.map +1 -1
  73. package/node_modules/@minicode/agent-sdk/dist/src/session/session.d.ts +8 -0
  74. package/node_modules/@minicode/agent-sdk/dist/src/session/session.d.ts.map +1 -1
  75. package/node_modules/@minicode/agent-sdk/dist/src/session/session.js +2 -0
  76. package/node_modules/@minicode/agent-sdk/dist/src/session/session.js.map +1 -1
  77. package/node_modules/@minicode/agent-sdk/dist/src/tools/edit-file.d.ts +10 -3
  78. package/node_modules/@minicode/agent-sdk/dist/src/tools/edit-file.d.ts.map +1 -1
  79. package/node_modules/@minicode/agent-sdk/dist/src/tools/edit-file.js +3 -3
  80. package/node_modules/@minicode/agent-sdk/dist/src/tools/edit-file.js.map +1 -1
  81. package/node_modules/@minicode/agent-sdk/dist/src/tools/list-files.d.ts +9 -2
  82. package/node_modules/@minicode/agent-sdk/dist/src/tools/list-files.d.ts.map +1 -1
  83. package/node_modules/@minicode/agent-sdk/dist/src/tools/list-files.js +2 -2
  84. package/node_modules/@minicode/agent-sdk/dist/src/tools/list-files.js.map +1 -1
  85. package/node_modules/@minicode/agent-sdk/dist/src/tools/read-file.d.ts +12 -2
  86. package/node_modules/@minicode/agent-sdk/dist/src/tools/read-file.d.ts.map +1 -1
  87. package/node_modules/@minicode/agent-sdk/dist/src/tools/read-file.js +3 -3
  88. package/node_modules/@minicode/agent-sdk/dist/src/tools/read-file.js.map +1 -1
  89. package/node_modules/@minicode/agent-sdk/dist/src/tools/run-command.d.ts +12 -2
  90. package/node_modules/@minicode/agent-sdk/dist/src/tools/run-command.d.ts.map +1 -1
  91. package/node_modules/@minicode/agent-sdk/dist/src/tools/run-command.js +5 -5
  92. package/node_modules/@minicode/agent-sdk/dist/src/tools/run-command.js.map +1 -1
  93. package/node_modules/@minicode/agent-sdk/dist/src/tools/search.d.ts +10 -2
  94. package/node_modules/@minicode/agent-sdk/dist/src/tools/search.d.ts.map +1 -1
  95. package/node_modules/@minicode/agent-sdk/dist/src/tools/search.js +5 -5
  96. package/node_modules/@minicode/agent-sdk/dist/src/tools/search.js.map +1 -1
  97. package/node_modules/@minicode/agent-sdk/dist/src/tools/write-file.d.ts +10 -3
  98. package/node_modules/@minicode/agent-sdk/dist/src/tools/write-file.d.ts.map +1 -1
  99. package/node_modules/@minicode/agent-sdk/dist/src/tools/write-file.js +3 -3
  100. package/node_modules/@minicode/agent-sdk/dist/src/tools/write-file.js.map +1 -1
  101. package/node_modules/@minicode/agent-sdk/dist/tests/agent.test.js +342 -0
  102. package/node_modules/@minicode/agent-sdk/dist/tests/agent.test.js.map +1 -1
  103. package/node_modules/@minicode/agent-sdk/dist/tests/mcp-client.integration.test.d.ts +2 -0
  104. package/node_modules/@minicode/agent-sdk/dist/tests/mcp-client.integration.test.d.ts.map +1 -0
  105. package/node_modules/@minicode/agent-sdk/dist/tests/mcp-client.integration.test.js +64 -0
  106. package/node_modules/@minicode/agent-sdk/dist/tests/mcp-client.integration.test.js.map +1 -0
  107. package/node_modules/@minicode/agent-sdk/dist/tests/mcp-client.test.d.ts +2 -0
  108. package/node_modules/@minicode/agent-sdk/dist/tests/mcp-client.test.d.ts.map +1 -0
  109. package/node_modules/@minicode/agent-sdk/dist/tests/mcp-client.test.js +350 -0
  110. package/node_modules/@minicode/agent-sdk/dist/tests/mcp-client.test.js.map +1 -0
  111. package/node_modules/@minicode/agent-sdk/dist/tests/model-client-anthropic-structured-output.test.d.ts +2 -0
  112. package/node_modules/@minicode/agent-sdk/dist/tests/model-client-anthropic-structured-output.test.d.ts.map +1 -0
  113. package/node_modules/@minicode/agent-sdk/dist/tests/model-client-anthropic-structured-output.test.js +211 -0
  114. package/node_modules/@minicode/agent-sdk/dist/tests/model-client-anthropic-structured-output.test.js.map +1 -0
  115. package/node_modules/@minicode/agent-sdk/dist/tests/model-client-openai.test.js +88 -0
  116. package/node_modules/@minicode/agent-sdk/dist/tests/model-client-openai.test.js.map +1 -1
  117. package/node_modules/@minicode/agent-sdk/dist/tests/model-client-structured-output.test.d.ts +2 -0
  118. package/node_modules/@minicode/agent-sdk/dist/tests/model-client-structured-output.test.d.ts.map +1 -0
  119. package/node_modules/@minicode/agent-sdk/dist/tests/model-client-structured-output.test.js +171 -0
  120. package/node_modules/@minicode/agent-sdk/dist/tests/model-client-structured-output.test.js.map +1 -0
  121. package/node_modules/@minicode/agent-sdk/dist/tests/session.test.js +34 -0
  122. package/node_modules/@minicode/agent-sdk/dist/tests/session.test.js.map +1 -1
  123. package/node_modules/@minicode/agent-sdk/dist/tests/structured-output.test.d.ts +2 -0
  124. package/node_modules/@minicode/agent-sdk/dist/tests/structured-output.test.d.ts.map +1 -0
  125. package/node_modules/@minicode/agent-sdk/dist/tests/structured-output.test.js +212 -0
  126. package/node_modules/@minicode/agent-sdk/dist/tests/structured-output.test.js.map +1 -0
  127. package/node_modules/@minicode/agent-sdk/dist/tests/system-prompt.test.js +7 -7
  128. package/node_modules/@minicode/agent-sdk/dist/tests/system-prompt.test.js.map +1 -1
  129. package/node_modules/@minicode/agent-sdk/dist/tests/tool-factory-options.test.d.ts +2 -0
  130. package/node_modules/@minicode/agent-sdk/dist/tests/tool-factory-options.test.d.ts.map +1 -0
  131. package/node_modules/@minicode/agent-sdk/dist/tests/tool-factory-options.test.js +72 -0
  132. package/node_modules/@minicode/agent-sdk/dist/tests/tool-factory-options.test.js.map +1 -0
  133. package/node_modules/@minicode/agent-sdk/dist/tsconfig.tsbuildinfo +1 -1
  134. package/node_modules/@minicode/agent-sdk/package.json +5 -2
  135. package/node_modules/ajv/README.md +207 -0
  136. package/node_modules/ajv/dist/core.js +618 -0
  137. package/node_modules/ajv/dist/core.js.map +1 -0
  138. package/node_modules/ajv/lib/core.ts +892 -0
  139. package/node_modules/ajv/package.json +126 -0
  140. package/node_modules/minicode-plugin-python/dist/src/index.d.ts +9 -0
  141. package/node_modules/minicode-plugin-python/dist/src/index.d.ts.map +1 -0
  142. package/node_modules/minicode-plugin-python/dist/src/index.js +679 -0
  143. package/node_modules/minicode-plugin-python/dist/src/index.js.map +1 -0
  144. package/node_modules/minicode-plugin-python/dist/tsconfig.tsbuildinfo +1 -0
  145. package/node_modules/minicode-plugin-python/package.json +37 -0
  146. package/node_modules/node-addon-api/LICENSE.md +9 -0
  147. package/node_modules/node-addon-api/README.md +95 -0
  148. package/node_modules/node-addon-api/common.gypi +21 -0
  149. package/node_modules/node-addon-api/except.gypi +25 -0
  150. package/node_modules/node-addon-api/index.js +14 -0
  151. package/node_modules/node-addon-api/napi-inl.deprecated.h +186 -0
  152. package/node_modules/node-addon-api/napi-inl.h +7165 -0
  153. package/node_modules/node-addon-api/napi.h +3364 -0
  154. package/node_modules/node-addon-api/node_addon_api.gyp +42 -0
  155. package/node_modules/node-addon-api/node_api.gyp +9 -0
  156. package/node_modules/node-addon-api/noexcept.gypi +26 -0
  157. package/node_modules/node-addon-api/nothing.c +0 -0
  158. package/node_modules/node-addon-api/package-support.json +21 -0
  159. package/node_modules/node-addon-api/package.json +480 -0
  160. package/node_modules/node-addon-api/tools/README.md +73 -0
  161. package/node_modules/node-addon-api/tools/check-napi.js +99 -0
  162. package/node_modules/node-addon-api/tools/clang-format.js +71 -0
  163. package/node_modules/node-addon-api/tools/conversion.js +301 -0
  164. package/node_modules/node-gyp-build/LICENSE +21 -0
  165. package/node_modules/node-gyp-build/README.md +58 -0
  166. package/node_modules/node-gyp-build/SECURITY.md +5 -0
  167. package/node_modules/node-gyp-build/bin.js +84 -0
  168. package/node_modules/node-gyp-build/build-test.js +19 -0
  169. package/node_modules/node-gyp-build/index.js +6 -0
  170. package/node_modules/node-gyp-build/node-gyp-build.js +207 -0
  171. package/node_modules/node-gyp-build/optional.js +7 -0
  172. package/node_modules/node-gyp-build/package.json +43 -0
  173. package/node_modules/tree-sitter/LICENSE +21 -0
  174. package/node_modules/tree-sitter/README.md +128 -0
  175. package/node_modules/tree-sitter/binding.gyp +80 -0
  176. package/node_modules/tree-sitter/index.js +916 -0
  177. package/node_modules/tree-sitter/package.json +76 -0
  178. package/node_modules/tree-sitter/src/addon_data.h +47 -0
  179. package/node_modules/tree-sitter/src/binding.cc +35 -0
  180. package/node_modules/tree-sitter/src/conversions.cc +140 -0
  181. package/node_modules/tree-sitter/src/conversions.h +22 -0
  182. package/node_modules/tree-sitter/src/language.cc +106 -0
  183. package/node_modules/tree-sitter/src/language.h +17 -0
  184. package/node_modules/tree-sitter/src/logger.cc +70 -0
  185. package/node_modules/tree-sitter/src/logger.h +19 -0
  186. package/node_modules/tree-sitter/src/lookaheaditerator.cc +122 -0
  187. package/node_modules/tree-sitter/src/lookaheaditerator.h +33 -0
  188. package/node_modules/tree-sitter/src/node.cc +1088 -0
  189. package/node_modules/tree-sitter/src/node.h +30 -0
  190. package/node_modules/tree-sitter/src/parser.cc +306 -0
  191. package/node_modules/tree-sitter/src/parser.h +35 -0
  192. package/node_modules/tree-sitter/src/query.cc +397 -0
  193. package/node_modules/tree-sitter/src/query.h +40 -0
  194. package/node_modules/tree-sitter/src/tree.cc +316 -0
  195. package/node_modules/tree-sitter/src/tree.h +45 -0
  196. package/node_modules/tree-sitter/src/tree_cursor.cc +213 -0
  197. package/node_modules/tree-sitter/src/tree_cursor.h +52 -0
  198. package/node_modules/tree-sitter/tree-sitter.d.ts +1042 -0
  199. package/node_modules/tree-sitter/vendor/tree-sitter/lib/include/tree_sitter/api.h +1478 -0
  200. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/alloc.c +48 -0
  201. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/alloc.h +41 -0
  202. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/array.h +291 -0
  203. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/atomic.h +68 -0
  204. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/clock.h +146 -0
  205. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/error_costs.h +11 -0
  206. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/get_changed_ranges.c +523 -0
  207. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/get_changed_ranges.h +36 -0
  208. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/host.h +21 -0
  209. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/language.c +293 -0
  210. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/language.h +293 -0
  211. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/length.h +52 -0
  212. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/lexer.c +483 -0
  213. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/lexer.h +54 -0
  214. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/lib.c +12 -0
  215. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/node.c +875 -0
  216. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/parser.c +2293 -0
  217. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/parser.h +286 -0
  218. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/point.h +48 -0
  219. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/portable/endian.h +239 -0
  220. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/query.c +4350 -0
  221. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/reduce_action.h +34 -0
  222. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/reusable_node.h +95 -0
  223. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/stack.c +911 -0
  224. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/stack.h +133 -0
  225. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/subtree.c +1034 -0
  226. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/subtree.h +399 -0
  227. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/tree.c +170 -0
  228. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/tree.h +31 -0
  229. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/tree_cursor.c +717 -0
  230. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/tree_cursor.h +48 -0
  231. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/ts_assert.h +11 -0
  232. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/ICU_SHA +1 -0
  233. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/LICENSE +414 -0
  234. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/README.md +29 -0
  235. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/ptypes.h +1 -0
  236. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/umachine.h +448 -0
  237. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/urename.h +1 -0
  238. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/utf.h +1 -0
  239. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/utf16.h +733 -0
  240. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/utf8.h +881 -0
  241. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode.h +75 -0
  242. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm/stdlib-symbols.txt +24 -0
  243. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm/stdlib.c +113 -0
  244. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm/wasm-stdlib.h +1314 -0
  245. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm_store.c +1935 -0
  246. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm_store.h +31 -0
  247. package/node_modules/tree-sitter-python/LICENSE +21 -0
  248. package/node_modules/tree-sitter-python/README.md +24 -0
  249. package/node_modules/tree-sitter-python/binding.gyp +35 -0
  250. package/node_modules/tree-sitter-python/bindings/node/binding.cc +19 -0
  251. package/node_modules/tree-sitter-python/bindings/node/binding_test.js +9 -0
  252. package/node_modules/tree-sitter-python/bindings/node/index.d.ts +27 -0
  253. package/node_modules/tree-sitter-python/bindings/node/index.js +11 -0
  254. package/node_modules/tree-sitter-python/grammar.js +1225 -0
  255. package/node_modules/tree-sitter-python/package.json +60 -0
  256. package/node_modules/tree-sitter-python/prebuilds/darwin-arm64/tree-sitter-python.node +0 -0
  257. package/node_modules/tree-sitter-python/prebuilds/darwin-x64/tree-sitter-python.node +0 -0
  258. package/node_modules/tree-sitter-python/prebuilds/linux-arm64/tree-sitter-python.node +0 -0
  259. package/node_modules/tree-sitter-python/prebuilds/linux-x64/tree-sitter-python.node +0 -0
  260. package/node_modules/tree-sitter-python/prebuilds/win32-arm64/tree-sitter-python.node +0 -0
  261. package/node_modules/tree-sitter-python/prebuilds/win32-x64/tree-sitter-python.node +0 -0
  262. package/node_modules/tree-sitter-python/queries/highlights.scm +137 -0
  263. package/node_modules/tree-sitter-python/queries/tags.scm +14 -0
  264. package/node_modules/tree-sitter-python/src/grammar.json +6435 -0
  265. package/node_modules/tree-sitter-python/src/node-types.json +3746 -0
  266. package/node_modules/tree-sitter-python/src/parser.c +129742 -0
  267. package/node_modules/tree-sitter-python/src/scanner.c +437 -0
  268. package/node_modules/tree-sitter-python/src/tree_sitter/alloc.h +54 -0
  269. package/node_modules/tree-sitter-python/src/tree_sitter/array.h +291 -0
  270. package/node_modules/tree-sitter-python/src/tree_sitter/parser.h +286 -0
  271. package/node_modules/tree-sitter-python/tree-sitter-python.wasm +0 -0
  272. package/node_modules/tree-sitter-python/tree-sitter.json +42 -0
  273. package/package.json +19 -7
  274. package/node_modules/@modelcontextprotocol/sdk/node_modules/ajv/README.md +0 -207
  275. package/node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/core.js +0 -618
  276. package/node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/core.js.map +0 -1
  277. package/node_modules/@modelcontextprotocol/sdk/node_modules/ajv/lib/core.ts +0 -892
  278. package/node_modules/@modelcontextprotocol/sdk/node_modules/ajv/package.json +0 -127
  279. package/node_modules/ajv-formats/node_modules/ajv/.runkit_example.js +0 -23
  280. package/node_modules/ajv-formats/node_modules/ajv/LICENSE +0 -22
  281. package/node_modules/ajv-formats/node_modules/ajv/README.md +0 -207
  282. package/node_modules/ajv-formats/node_modules/ajv/dist/2019.d.ts +0 -19
  283. package/node_modules/ajv-formats/node_modules/ajv/dist/2019.js +0 -61
  284. package/node_modules/ajv-formats/node_modules/ajv/dist/2019.js.map +0 -1
  285. package/node_modules/ajv-formats/node_modules/ajv/dist/2020.d.ts +0 -19
  286. package/node_modules/ajv-formats/node_modules/ajv/dist/2020.js +0 -55
  287. package/node_modules/ajv-formats/node_modules/ajv/dist/2020.js.map +0 -1
  288. package/node_modules/ajv-formats/node_modules/ajv/dist/ajv.d.ts +0 -18
  289. package/node_modules/ajv-formats/node_modules/ajv/dist/ajv.js +0 -50
  290. package/node_modules/ajv-formats/node_modules/ajv/dist/ajv.js.map +0 -1
  291. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.d.ts +0 -40
  292. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.js +0 -156
  293. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.js.map +0 -1
  294. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/index.d.ts +0 -79
  295. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/index.js +0 -697
  296. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/index.js.map +0 -1
  297. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/scope.d.ts +0 -79
  298. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/scope.js +0 -143
  299. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/scope.js.map +0 -1
  300. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/errors.d.ts +0 -13
  301. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/errors.js +0 -123
  302. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/errors.js.map +0 -1
  303. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/index.d.ts +0 -80
  304. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/index.js +0 -242
  305. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/index.js.map +0 -1
  306. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/parse.d.ts +0 -4
  307. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/parse.js +0 -350
  308. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/parse.js.map +0 -1
  309. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/serialize.d.ts +0 -4
  310. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/serialize.js +0 -236
  311. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/serialize.js.map +0 -1
  312. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/types.d.ts +0 -6
  313. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/types.js +0 -14
  314. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/types.js.map +0 -1
  315. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/names.d.ts +0 -20
  316. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/names.js +0 -28
  317. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/names.js.map +0 -1
  318. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/ref_error.d.ts +0 -6
  319. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/ref_error.js +0 -12
  320. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/ref_error.js.map +0 -1
  321. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.d.ts +0 -12
  322. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.js +0 -155
  323. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.js.map +0 -1
  324. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/rules.d.ts +0 -28
  325. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/rules.js +0 -26
  326. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/rules.js.map +0 -1
  327. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/util.d.ts +0 -40
  328. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/util.js +0 -178
  329. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/util.js.map +0 -1
  330. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/applicability.d.ts +0 -6
  331. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/applicability.js +0 -19
  332. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/applicability.js.map +0 -1
  333. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +0 -4
  334. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/boolSchema.js +0 -50
  335. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/boolSchema.js.map +0 -1
  336. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/dataType.d.ts +0 -17
  337. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/dataType.js +0 -203
  338. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/dataType.js.map +0 -1
  339. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/defaults.d.ts +0 -2
  340. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/defaults.js +0 -35
  341. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/defaults.js.map +0 -1
  342. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/index.d.ts +0 -42
  343. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/index.js +0 -520
  344. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/index.js.map +0 -1
  345. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/keyword.d.ts +0 -8
  346. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/keyword.js +0 -124
  347. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/keyword.js.map +0 -1
  348. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/subschema.d.ts +0 -47
  349. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/subschema.js +0 -81
  350. package/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/subschema.js.map +0 -1
  351. package/node_modules/ajv-formats/node_modules/ajv/dist/core.d.ts +0 -174
  352. package/node_modules/ajv-formats/node_modules/ajv/dist/core.js +0 -618
  353. package/node_modules/ajv-formats/node_modules/ajv/dist/core.js.map +0 -1
  354. package/node_modules/ajv-formats/node_modules/ajv/dist/jtd.d.ts +0 -47
  355. package/node_modules/ajv-formats/node_modules/ajv/dist/jtd.js +0 -72
  356. package/node_modules/ajv-formats/node_modules/ajv/dist/jtd.js.map +0 -1
  357. package/node_modules/ajv-formats/node_modules/ajv/dist/refs/data.json +0 -13
  358. package/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +0 -2
  359. package/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +0 -28
  360. package/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map +0 -1
  361. package/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +0 -53
  362. package/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +0 -17
  363. package/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +0 -57
  364. package/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +0 -14
  365. package/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +0 -37
  366. package/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +0 -90
  367. package/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +0 -39
  368. package/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +0 -2
  369. package/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +0 -30
  370. package/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map +0 -1
  371. package/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +0 -48
  372. package/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +0 -17
  373. package/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +0 -51
  374. package/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +0 -14
  375. package/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +0 -37
  376. package/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +0 -15
  377. package/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +0 -90
  378. package/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +0 -55
  379. package/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-draft-06.json +0 -137
  380. package/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-draft-07.json +0 -151
  381. package/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-secure.json +0 -88
  382. package/node_modules/ajv-formats/node_modules/ajv/dist/refs/jtd-schema.d.ts +0 -3
  383. package/node_modules/ajv-formats/node_modules/ajv/dist/refs/jtd-schema.js +0 -118
  384. package/node_modules/ajv-formats/node_modules/ajv/dist/refs/jtd-schema.js.map +0 -1
  385. package/node_modules/ajv-formats/node_modules/ajv/dist/runtime/equal.d.ts +0 -6
  386. package/node_modules/ajv-formats/node_modules/ajv/dist/runtime/equal.js +0 -7
  387. package/node_modules/ajv-formats/node_modules/ajv/dist/runtime/equal.js.map +0 -1
  388. package/node_modules/ajv-formats/node_modules/ajv/dist/runtime/parseJson.d.ts +0 -18
  389. package/node_modules/ajv-formats/node_modules/ajv/dist/runtime/parseJson.js +0 -185
  390. package/node_modules/ajv-formats/node_modules/ajv/dist/runtime/parseJson.js.map +0 -1
  391. package/node_modules/ajv-formats/node_modules/ajv/dist/runtime/quote.d.ts +0 -5
  392. package/node_modules/ajv-formats/node_modules/ajv/dist/runtime/quote.js +0 -30
  393. package/node_modules/ajv-formats/node_modules/ajv/dist/runtime/quote.js.map +0 -1
  394. package/node_modules/ajv-formats/node_modules/ajv/dist/runtime/re2.d.ts +0 -6
  395. package/node_modules/ajv-formats/node_modules/ajv/dist/runtime/re2.js +0 -6
  396. package/node_modules/ajv-formats/node_modules/ajv/dist/runtime/re2.js.map +0 -1
  397. package/node_modules/ajv-formats/node_modules/ajv/dist/runtime/timestamp.d.ts +0 -5
  398. package/node_modules/ajv-formats/node_modules/ajv/dist/runtime/timestamp.js +0 -42
  399. package/node_modules/ajv-formats/node_modules/ajv/dist/runtime/timestamp.js.map +0 -1
  400. package/node_modules/ajv-formats/node_modules/ajv/dist/runtime/ucs2length.d.ts +0 -5
  401. package/node_modules/ajv-formats/node_modules/ajv/dist/runtime/ucs2length.js +0 -24
  402. package/node_modules/ajv-formats/node_modules/ajv/dist/runtime/ucs2length.js.map +0 -1
  403. package/node_modules/ajv-formats/node_modules/ajv/dist/runtime/uri.d.ts +0 -6
  404. package/node_modules/ajv-formats/node_modules/ajv/dist/runtime/uri.js +0 -6
  405. package/node_modules/ajv-formats/node_modules/ajv/dist/runtime/uri.js.map +0 -1
  406. package/node_modules/ajv-formats/node_modules/ajv/dist/runtime/validation_error.d.ts +0 -7
  407. package/node_modules/ajv-formats/node_modules/ajv/dist/runtime/validation_error.js +0 -11
  408. package/node_modules/ajv-formats/node_modules/ajv/dist/runtime/validation_error.js.map +0 -1
  409. package/node_modules/ajv-formats/node_modules/ajv/dist/standalone/index.d.ts +0 -6
  410. package/node_modules/ajv-formats/node_modules/ajv/dist/standalone/index.js +0 -90
  411. package/node_modules/ajv-formats/node_modules/ajv/dist/standalone/index.js.map +0 -1
  412. package/node_modules/ajv-formats/node_modules/ajv/dist/standalone/instance.d.ts +0 -12
  413. package/node_modules/ajv-formats/node_modules/ajv/dist/standalone/instance.js +0 -35
  414. package/node_modules/ajv-formats/node_modules/ajv/dist/standalone/instance.js.map +0 -1
  415. package/node_modules/ajv-formats/node_modules/ajv/dist/types/index.d.ts +0 -183
  416. package/node_modules/ajv-formats/node_modules/ajv/dist/types/index.js +0 -3
  417. package/node_modules/ajv-formats/node_modules/ajv/dist/types/index.js.map +0 -1
  418. package/node_modules/ajv-formats/node_modules/ajv/dist/types/json-schema.d.ts +0 -125
  419. package/node_modules/ajv-formats/node_modules/ajv/dist/types/json-schema.js +0 -3
  420. package/node_modules/ajv-formats/node_modules/ajv/dist/types/json-schema.js.map +0 -1
  421. package/node_modules/ajv-formats/node_modules/ajv/dist/types/jtd-schema.d.ts +0 -174
  422. package/node_modules/ajv-formats/node_modules/ajv/dist/types/jtd-schema.js +0 -3
  423. package/node_modules/ajv-formats/node_modules/ajv/dist/types/jtd-schema.js.map +0 -1
  424. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +0 -8
  425. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +0 -49
  426. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +0 -1
  427. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +0 -6
  428. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +0 -106
  429. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +0 -1
  430. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +0 -3
  431. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/allOf.js +0 -23
  432. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +0 -1
  433. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +0 -4
  434. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +0 -12
  435. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +0 -1
  436. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +0 -7
  437. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/contains.js +0 -95
  438. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +0 -1
  439. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +0 -21
  440. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +0 -85
  441. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +0 -1
  442. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +0 -3
  443. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +0 -11
  444. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map +0 -1
  445. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +0 -6
  446. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/if.js +0 -66
  447. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/if.js.map +0 -1
  448. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +0 -13
  449. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/index.js +0 -44
  450. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/index.js.map +0 -1
  451. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +0 -5
  452. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items.js +0 -52
  453. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items.js.map +0 -1
  454. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +0 -6
  455. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items2020.js +0 -30
  456. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +0 -1
  457. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +0 -4
  458. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/not.js +0 -26
  459. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/not.js.map +0 -1
  460. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +0 -6
  461. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +0 -60
  462. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +0 -1
  463. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +0 -3
  464. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +0 -75
  465. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +0 -1
  466. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +0 -3
  467. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +0 -12
  468. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +0 -1
  469. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +0 -3
  470. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/properties.js +0 -54
  471. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +0 -1
  472. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +0 -6
  473. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +0 -38
  474. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +0 -1
  475. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +0 -3
  476. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +0 -13
  477. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +0 -1
  478. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/code.d.ts +0 -17
  479. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/code.js +0 -131
  480. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/code.js.map +0 -1
  481. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/id.d.ts +0 -3
  482. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/id.js +0 -10
  483. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/id.js.map +0 -1
  484. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/index.d.ts +0 -3
  485. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/index.js +0 -16
  486. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/index.js.map +0 -1
  487. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/ref.d.ts +0 -8
  488. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/ref.js +0 -122
  489. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/ref.js.map +0 -1
  490. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +0 -5
  491. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/index.js +0 -104
  492. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +0 -1
  493. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +0 -10
  494. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/types.js +0 -9
  495. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +0 -1
  496. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft2020.d.ts +0 -3
  497. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft2020.js +0 -23
  498. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft2020.js.map +0 -1
  499. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft7.d.ts +0 -3
  500. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft7.js +0 -17
  501. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft7.js.map +0 -1
  502. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +0 -5
  503. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +0 -30
  504. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map +0 -1
  505. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +0 -5
  506. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +0 -51
  507. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +0 -1
  508. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +0 -3
  509. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/index.js +0 -9
  510. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/index.js.map +0 -1
  511. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +0 -3
  512. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +0 -16
  513. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map +0 -1
  514. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +0 -3
  515. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +0 -10
  516. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map +0 -1
  517. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/errors.d.ts +0 -9
  518. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/errors.js +0 -3
  519. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/errors.js.map +0 -1
  520. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/format.d.ts +0 -8
  521. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/format.js +0 -92
  522. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/format.js.map +0 -1
  523. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/index.d.ts +0 -3
  524. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/index.js +0 -6
  525. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/index.js.map +0 -1
  526. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +0 -6
  527. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +0 -71
  528. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +0 -1
  529. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +0 -5
  530. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/elements.js +0 -24
  531. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/elements.js.map +0 -1
  532. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +0 -6
  533. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/enum.js +0 -43
  534. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +0 -1
  535. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +0 -9
  536. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/error.js +0 -20
  537. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/error.js.map +0 -1
  538. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +0 -10
  539. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/index.js +0 -29
  540. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/index.js.map +0 -1
  541. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +0 -5
  542. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/metadata.js +0 -25
  543. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +0 -1
  544. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +0 -4
  545. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/nullable.js +0 -22
  546. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +0 -1
  547. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +0 -3
  548. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +0 -15
  549. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map +0 -1
  550. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +0 -22
  551. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/properties.js +0 -149
  552. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +0 -1
  553. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +0 -4
  554. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/ref.js +0 -67
  555. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +0 -1
  556. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +0 -10
  557. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/type.js +0 -69
  558. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/type.js.map +0 -1
  559. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +0 -3
  560. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/union.js +0 -12
  561. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/union.js.map +0 -1
  562. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +0 -5
  563. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/values.js +0 -51
  564. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/values.js.map +0 -1
  565. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/metadata.d.ts +0 -3
  566. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/metadata.js +0 -18
  567. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/metadata.js.map +0 -1
  568. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/next.d.ts +0 -3
  569. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/next.js +0 -8
  570. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/next.js.map +0 -1
  571. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +0 -3
  572. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/index.js +0 -7
  573. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map +0 -1
  574. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +0 -6
  575. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +0 -40
  576. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +0 -1
  577. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +0 -6
  578. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +0 -65
  579. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +0 -1
  580. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/const.d.ts +0 -6
  581. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/const.js +0 -25
  582. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/const.js.map +0 -1
  583. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +0 -5
  584. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +0 -12
  585. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map +0 -1
  586. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +0 -8
  587. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/enum.js +0 -48
  588. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/enum.js.map +0 -1
  589. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/index.d.ts +0 -16
  590. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/index.js +0 -33
  591. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/index.js.map +0 -1
  592. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +0 -3
  593. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitContains.js +0 -15
  594. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +0 -1
  595. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +0 -3
  596. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitItems.js +0 -24
  597. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +0 -1
  598. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +0 -3
  599. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitLength.js +0 -27
  600. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +0 -1
  601. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +0 -11
  602. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +0 -27
  603. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +0 -1
  604. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +0 -3
  605. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +0 -24
  606. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +0 -1
  607. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +0 -8
  608. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +0 -26
  609. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +0 -1
  610. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +0 -8
  611. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/pattern.js +0 -33
  612. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +0 -1
  613. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/required.d.ts +0 -8
  614. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/required.js +0 -79
  615. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/required.js.map +0 -1
  616. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +0 -9
  617. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +0 -64
  618. package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +0 -1
  619. package/node_modules/ajv-formats/node_modules/ajv/lib/2019.ts +0 -81
  620. package/node_modules/ajv-formats/node_modules/ajv/lib/2020.ts +0 -75
  621. package/node_modules/ajv-formats/node_modules/ajv/lib/ajv.ts +0 -70
  622. package/node_modules/ajv-formats/node_modules/ajv/lib/compile/codegen/code.ts +0 -169
  623. package/node_modules/ajv-formats/node_modules/ajv/lib/compile/codegen/index.ts +0 -852
  624. package/node_modules/ajv-formats/node_modules/ajv/lib/compile/codegen/scope.ts +0 -215
  625. package/node_modules/ajv-formats/node_modules/ajv/lib/compile/errors.ts +0 -184
  626. package/node_modules/ajv-formats/node_modules/ajv/lib/compile/index.ts +0 -324
  627. package/node_modules/ajv-formats/node_modules/ajv/lib/compile/jtd/parse.ts +0 -411
  628. package/node_modules/ajv-formats/node_modules/ajv/lib/compile/jtd/serialize.ts +0 -277
  629. package/node_modules/ajv-formats/node_modules/ajv/lib/compile/jtd/types.ts +0 -16
  630. package/node_modules/ajv-formats/node_modules/ajv/lib/compile/names.ts +0 -27
  631. package/node_modules/ajv-formats/node_modules/ajv/lib/compile/ref_error.ts +0 -13
  632. package/node_modules/ajv-formats/node_modules/ajv/lib/compile/resolve.ts +0 -149
  633. package/node_modules/ajv-formats/node_modules/ajv/lib/compile/rules.ts +0 -50
  634. package/node_modules/ajv-formats/node_modules/ajv/lib/compile/util.ts +0 -213
  635. package/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/applicability.ts +0 -22
  636. package/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/boolSchema.ts +0 -47
  637. package/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/dataType.ts +0 -230
  638. package/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/defaults.ts +0 -32
  639. package/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/index.ts +0 -582
  640. package/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/keyword.ts +0 -171
  641. package/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/subschema.ts +0 -135
  642. package/node_modules/ajv-formats/node_modules/ajv/lib/core.ts +0 -892
  643. package/node_modules/ajv-formats/node_modules/ajv/lib/jtd.ts +0 -132
  644. package/node_modules/ajv-formats/node_modules/ajv/lib/refs/data.json +0 -13
  645. package/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +0 -28
  646. package/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +0 -53
  647. package/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +0 -17
  648. package/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +0 -57
  649. package/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +0 -14
  650. package/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +0 -37
  651. package/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +0 -90
  652. package/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +0 -39
  653. package/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +0 -30
  654. package/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +0 -48
  655. package/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +0 -17
  656. package/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +0 -51
  657. package/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +0 -14
  658. package/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +0 -37
  659. package/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +0 -15
  660. package/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +0 -90
  661. package/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +0 -55
  662. package/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-draft-06.json +0 -137
  663. package/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-draft-07.json +0 -151
  664. package/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-secure.json +0 -88
  665. package/node_modules/ajv-formats/node_modules/ajv/lib/refs/jtd-schema.ts +0 -130
  666. package/node_modules/ajv-formats/node_modules/ajv/lib/runtime/equal.ts +0 -7
  667. package/node_modules/ajv-formats/node_modules/ajv/lib/runtime/parseJson.ts +0 -177
  668. package/node_modules/ajv-formats/node_modules/ajv/lib/runtime/quote.ts +0 -31
  669. package/node_modules/ajv-formats/node_modules/ajv/lib/runtime/re2.ts +0 -6
  670. package/node_modules/ajv-formats/node_modules/ajv/lib/runtime/timestamp.ts +0 -46
  671. package/node_modules/ajv-formats/node_modules/ajv/lib/runtime/ucs2length.ts +0 -20
  672. package/node_modules/ajv-formats/node_modules/ajv/lib/runtime/uri.ts +0 -6
  673. package/node_modules/ajv-formats/node_modules/ajv/lib/runtime/validation_error.ts +0 -13
  674. package/node_modules/ajv-formats/node_modules/ajv/lib/standalone/index.ts +0 -100
  675. package/node_modules/ajv-formats/node_modules/ajv/lib/standalone/instance.ts +0 -36
  676. package/node_modules/ajv-formats/node_modules/ajv/lib/types/index.ts +0 -244
  677. package/node_modules/ajv-formats/node_modules/ajv/lib/types/json-schema.ts +0 -187
  678. package/node_modules/ajv-formats/node_modules/ajv/lib/types/jtd-schema.ts +0 -273
  679. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +0 -56
  680. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +0 -118
  681. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +0 -22
  682. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +0 -14
  683. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/contains.ts +0 -109
  684. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +0 -112
  685. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +0 -11
  686. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/if.ts +0 -80
  687. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/index.ts +0 -53
  688. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/items.ts +0 -59
  689. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +0 -36
  690. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/not.ts +0 -38
  691. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +0 -82
  692. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +0 -91
  693. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +0 -12
  694. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/properties.ts +0 -57
  695. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +0 -50
  696. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +0 -13
  697. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/code.ts +0 -168
  698. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/core/id.ts +0 -10
  699. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/core/index.ts +0 -16
  700. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/core/ref.ts +0 -129
  701. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/discriminator/index.ts +0 -113
  702. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/discriminator/types.ts +0 -12
  703. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/draft2020.ts +0 -23
  704. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/draft7.ts +0 -17
  705. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +0 -31
  706. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +0 -51
  707. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/dynamic/index.ts +0 -9
  708. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +0 -14
  709. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +0 -10
  710. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/errors.ts +0 -18
  711. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/format/format.ts +0 -120
  712. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/format/index.ts +0 -6
  713. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +0 -89
  714. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/elements.ts +0 -32
  715. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/enum.ts +0 -45
  716. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/error.ts +0 -23
  717. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/index.ts +0 -37
  718. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +0 -24
  719. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +0 -21
  720. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +0 -15
  721. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/properties.ts +0 -184
  722. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/ref.ts +0 -76
  723. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/type.ts +0 -75
  724. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/union.ts +0 -12
  725. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/values.ts +0 -58
  726. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/metadata.ts +0 -17
  727. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/next.ts +0 -8
  728. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +0 -7
  729. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +0 -47
  730. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +0 -85
  731. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/const.ts +0 -28
  732. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +0 -23
  733. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/enum.ts +0 -54
  734. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/index.ts +0 -49
  735. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +0 -16
  736. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +0 -26
  737. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +0 -30
  738. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +0 -42
  739. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +0 -26
  740. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +0 -34
  741. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/pattern.ts +0 -39
  742. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/required.ts +0 -98
  743. package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +0 -79
  744. package/node_modules/ajv-formats/node_modules/ajv/package.json +0 -127
  745. package/node_modules/ajv-formats/node_modules/json-schema-traverse/.eslintrc.yml +0 -27
  746. package/node_modules/ajv-formats/node_modules/json-schema-traverse/.github/FUNDING.yml +0 -2
  747. package/node_modules/ajv-formats/node_modules/json-schema-traverse/.github/workflows/build.yml +0 -28
  748. package/node_modules/ajv-formats/node_modules/json-schema-traverse/.github/workflows/publish.yml +0 -27
  749. package/node_modules/ajv-formats/node_modules/json-schema-traverse/LICENSE +0 -21
  750. package/node_modules/ajv-formats/node_modules/json-schema-traverse/README.md +0 -95
  751. package/node_modules/ajv-formats/node_modules/json-schema-traverse/index.d.ts +0 -40
  752. package/node_modules/ajv-formats/node_modules/json-schema-traverse/index.js +0 -93
  753. package/node_modules/ajv-formats/node_modules/json-schema-traverse/package.json +0 -43
  754. package/node_modules/ajv-formats/node_modules/json-schema-traverse/spec/.eslintrc.yml +0 -6
  755. package/node_modules/ajv-formats/node_modules/json-schema-traverse/spec/fixtures/schema.js +0 -125
  756. package/node_modules/ajv-formats/node_modules/json-schema-traverse/spec/index.spec.js +0 -171
  757. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/.runkit_example.js +0 -0
  758. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/LICENSE +0 -0
  759. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/2019.d.ts +0 -0
  760. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/2019.js +0 -0
  761. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/2019.js.map +0 -0
  762. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/2020.d.ts +0 -0
  763. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/2020.js +0 -0
  764. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/2020.js.map +0 -0
  765. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/ajv.d.ts +0 -0
  766. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/ajv.js +0 -0
  767. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/ajv.js.map +0 -0
  768. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/codegen/code.d.ts +0 -0
  769. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/codegen/code.js +0 -0
  770. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/codegen/code.js.map +0 -0
  771. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/codegen/index.d.ts +0 -0
  772. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/codegen/index.js +0 -0
  773. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/codegen/index.js.map +0 -0
  774. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/codegen/scope.d.ts +0 -0
  775. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/codegen/scope.js +0 -0
  776. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/codegen/scope.js.map +0 -0
  777. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/errors.d.ts +0 -0
  778. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/errors.js +0 -0
  779. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/errors.js.map +0 -0
  780. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/index.d.ts +0 -0
  781. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/index.js +0 -0
  782. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/index.js.map +0 -0
  783. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/jtd/parse.d.ts +0 -0
  784. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/jtd/parse.js +0 -0
  785. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/jtd/parse.js.map +0 -0
  786. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/jtd/serialize.d.ts +0 -0
  787. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/jtd/serialize.js +0 -0
  788. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/jtd/serialize.js.map +0 -0
  789. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/jtd/types.d.ts +0 -0
  790. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/jtd/types.js +0 -0
  791. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/jtd/types.js.map +0 -0
  792. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/names.d.ts +0 -0
  793. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/names.js +0 -0
  794. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/names.js.map +0 -0
  795. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/ref_error.d.ts +0 -0
  796. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/ref_error.js +0 -0
  797. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/ref_error.js.map +0 -0
  798. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/resolve.d.ts +0 -0
  799. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/resolve.js +0 -0
  800. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/resolve.js.map +0 -0
  801. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/rules.d.ts +0 -0
  802. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/rules.js +0 -0
  803. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/rules.js.map +0 -0
  804. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/util.d.ts +0 -0
  805. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/util.js +0 -0
  806. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/util.js.map +0 -0
  807. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/validate/applicability.d.ts +0 -0
  808. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/validate/applicability.js +0 -0
  809. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/validate/applicability.js.map +0 -0
  810. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/validate/boolSchema.d.ts +0 -0
  811. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/validate/boolSchema.js +0 -0
  812. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/validate/boolSchema.js.map +0 -0
  813. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/validate/dataType.d.ts +0 -0
  814. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/validate/dataType.js +0 -0
  815. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/validate/dataType.js.map +0 -0
  816. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/validate/defaults.d.ts +0 -0
  817. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/validate/defaults.js +0 -0
  818. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/validate/defaults.js.map +0 -0
  819. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/validate/index.d.ts +0 -0
  820. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/validate/index.js +0 -0
  821. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/validate/index.js.map +0 -0
  822. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/validate/keyword.d.ts +0 -0
  823. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/validate/keyword.js +0 -0
  824. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/validate/keyword.js.map +0 -0
  825. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/validate/subschema.d.ts +0 -0
  826. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/validate/subschema.js +0 -0
  827. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/validate/subschema.js.map +0 -0
  828. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/core.d.ts +0 -0
  829. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/jtd.d.ts +0 -0
  830. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/jtd.js +0 -0
  831. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/jtd.js.map +0 -0
  832. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/data.json +0 -0
  833. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/json-schema-2019-09/index.d.ts +0 -0
  834. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/json-schema-2019-09/index.js +0 -0
  835. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/json-schema-2019-09/index.js.map +0 -0
  836. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/json-schema-2019-09/meta/applicator.json +0 -0
  837. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/json-schema-2019-09/meta/content.json +0 -0
  838. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/json-schema-2019-09/meta/core.json +0 -0
  839. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/json-schema-2019-09/meta/format.json +0 -0
  840. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/json-schema-2019-09/meta/meta-data.json +0 -0
  841. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/json-schema-2019-09/meta/validation.json +0 -0
  842. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/json-schema-2019-09/schema.json +0 -0
  843. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/json-schema-2020-12/index.d.ts +0 -0
  844. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/json-schema-2020-12/index.js +0 -0
  845. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/json-schema-2020-12/index.js.map +0 -0
  846. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/json-schema-2020-12/meta/applicator.json +0 -0
  847. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/json-schema-2020-12/meta/content.json +0 -0
  848. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/json-schema-2020-12/meta/core.json +0 -0
  849. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/json-schema-2020-12/meta/format-annotation.json +0 -0
  850. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/json-schema-2020-12/meta/meta-data.json +0 -0
  851. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/json-schema-2020-12/meta/unevaluated.json +0 -0
  852. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/json-schema-2020-12/meta/validation.json +0 -0
  853. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/json-schema-2020-12/schema.json +0 -0
  854. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/json-schema-draft-06.json +0 -0
  855. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/json-schema-draft-07.json +0 -0
  856. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/json-schema-secure.json +0 -0
  857. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/jtd-schema.d.ts +0 -0
  858. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/jtd-schema.js +0 -0
  859. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/jtd-schema.js.map +0 -0
  860. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/runtime/equal.d.ts +0 -0
  861. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/runtime/equal.js +0 -0
  862. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/runtime/equal.js.map +0 -0
  863. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/runtime/parseJson.d.ts +0 -0
  864. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/runtime/parseJson.js +0 -0
  865. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/runtime/parseJson.js.map +0 -0
  866. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/runtime/quote.d.ts +0 -0
  867. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/runtime/quote.js +0 -0
  868. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/runtime/quote.js.map +0 -0
  869. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/runtime/re2.d.ts +0 -0
  870. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/runtime/re2.js +0 -0
  871. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/runtime/re2.js.map +0 -0
  872. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/runtime/timestamp.d.ts +0 -0
  873. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/runtime/timestamp.js +0 -0
  874. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/runtime/timestamp.js.map +0 -0
  875. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/runtime/ucs2length.d.ts +0 -0
  876. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/runtime/ucs2length.js +0 -0
  877. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/runtime/ucs2length.js.map +0 -0
  878. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/runtime/uri.d.ts +0 -0
  879. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/runtime/uri.js +0 -0
  880. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/runtime/uri.js.map +0 -0
  881. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/runtime/validation_error.d.ts +0 -0
  882. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/runtime/validation_error.js +0 -0
  883. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/runtime/validation_error.js.map +0 -0
  884. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/standalone/index.d.ts +0 -0
  885. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/standalone/index.js +0 -0
  886. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/standalone/index.js.map +0 -0
  887. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/standalone/instance.d.ts +0 -0
  888. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/standalone/instance.js +0 -0
  889. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/standalone/instance.js.map +0 -0
  890. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/types/index.d.ts +0 -0
  891. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/types/index.js +0 -0
  892. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/types/index.js.map +0 -0
  893. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/types/json-schema.d.ts +0 -0
  894. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/types/json-schema.js +0 -0
  895. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/types/json-schema.js.map +0 -0
  896. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/types/jtd-schema.d.ts +0 -0
  897. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/types/jtd-schema.js +0 -0
  898. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/types/jtd-schema.js.map +0 -0
  899. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/additionalItems.d.ts +0 -0
  900. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/additionalItems.js +0 -0
  901. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/additionalItems.js.map +0 -0
  902. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/additionalProperties.d.ts +0 -0
  903. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/additionalProperties.js +0 -0
  904. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/additionalProperties.js.map +0 -0
  905. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/allOf.d.ts +0 -0
  906. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/allOf.js +0 -0
  907. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/allOf.js.map +0 -0
  908. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/anyOf.d.ts +0 -0
  909. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/anyOf.js +0 -0
  910. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/anyOf.js.map +0 -0
  911. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/contains.d.ts +0 -0
  912. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/contains.js +0 -0
  913. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/contains.js.map +0 -0
  914. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/dependencies.d.ts +0 -0
  915. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/dependencies.js +0 -0
  916. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/dependencies.js.map +0 -0
  917. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/dependentSchemas.d.ts +0 -0
  918. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/dependentSchemas.js +0 -0
  919. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/dependentSchemas.js.map +0 -0
  920. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/if.d.ts +0 -0
  921. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/if.js +0 -0
  922. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/if.js.map +0 -0
  923. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/index.d.ts +0 -0
  924. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/index.js +0 -0
  925. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/index.js.map +0 -0
  926. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/items.d.ts +0 -0
  927. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/items.js +0 -0
  928. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/items.js.map +0 -0
  929. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/items2020.d.ts +0 -0
  930. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/items2020.js +0 -0
  931. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/items2020.js.map +0 -0
  932. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/not.d.ts +0 -0
  933. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/not.js +0 -0
  934. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/not.js.map +0 -0
  935. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/oneOf.d.ts +0 -0
  936. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/oneOf.js +0 -0
  937. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/oneOf.js.map +0 -0
  938. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/patternProperties.d.ts +0 -0
  939. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/patternProperties.js +0 -0
  940. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/patternProperties.js.map +0 -0
  941. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/prefixItems.d.ts +0 -0
  942. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/prefixItems.js +0 -0
  943. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/prefixItems.js.map +0 -0
  944. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/properties.d.ts +0 -0
  945. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/properties.js +0 -0
  946. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/properties.js.map +0 -0
  947. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/propertyNames.d.ts +0 -0
  948. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/propertyNames.js +0 -0
  949. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/propertyNames.js.map +0 -0
  950. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/thenElse.d.ts +0 -0
  951. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/thenElse.js +0 -0
  952. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/thenElse.js.map +0 -0
  953. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/code.d.ts +0 -0
  954. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/code.js +0 -0
  955. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/code.js.map +0 -0
  956. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/core/id.d.ts +0 -0
  957. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/core/id.js +0 -0
  958. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/core/id.js.map +0 -0
  959. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/core/index.d.ts +0 -0
  960. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/core/index.js +0 -0
  961. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/core/index.js.map +0 -0
  962. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/core/ref.d.ts +0 -0
  963. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/core/ref.js +0 -0
  964. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/core/ref.js.map +0 -0
  965. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/discriminator/index.d.ts +0 -0
  966. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/discriminator/index.js +0 -0
  967. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/discriminator/index.js.map +0 -0
  968. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/discriminator/types.d.ts +0 -0
  969. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/discriminator/types.js +0 -0
  970. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/discriminator/types.js.map +0 -0
  971. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/draft2020.d.ts +0 -0
  972. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/draft2020.js +0 -0
  973. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/draft2020.js.map +0 -0
  974. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/draft7.d.ts +0 -0
  975. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/draft7.js +0 -0
  976. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/draft7.js.map +0 -0
  977. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/dynamic/dynamicAnchor.d.ts +0 -0
  978. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/dynamic/dynamicAnchor.js +0 -0
  979. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/dynamic/dynamicAnchor.js.map +0 -0
  980. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/dynamic/dynamicRef.d.ts +0 -0
  981. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/dynamic/dynamicRef.js +0 -0
  982. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/dynamic/dynamicRef.js.map +0 -0
  983. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/dynamic/index.d.ts +0 -0
  984. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/dynamic/index.js +0 -0
  985. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/dynamic/index.js.map +0 -0
  986. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/dynamic/recursiveAnchor.d.ts +0 -0
  987. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/dynamic/recursiveAnchor.js +0 -0
  988. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/dynamic/recursiveAnchor.js.map +0 -0
  989. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/dynamic/recursiveRef.d.ts +0 -0
  990. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/dynamic/recursiveRef.js +0 -0
  991. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/dynamic/recursiveRef.js.map +0 -0
  992. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/errors.d.ts +0 -0
  993. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/errors.js +0 -0
  994. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/errors.js.map +0 -0
  995. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/format/format.d.ts +0 -0
  996. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/format/format.js +0 -0
  997. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/format/format.js.map +0 -0
  998. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/format/index.d.ts +0 -0
  999. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/format/index.js +0 -0
  1000. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/format/index.js.map +0 -0
  1001. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/discriminator.d.ts +0 -0
  1002. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/discriminator.js +0 -0
  1003. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/discriminator.js.map +0 -0
  1004. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/elements.d.ts +0 -0
  1005. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/elements.js +0 -0
  1006. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/elements.js.map +0 -0
  1007. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/enum.d.ts +0 -0
  1008. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/enum.js +0 -0
  1009. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/enum.js.map +0 -0
  1010. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/error.d.ts +0 -0
  1011. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/error.js +0 -0
  1012. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/error.js.map +0 -0
  1013. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/index.d.ts +0 -0
  1014. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/index.js +0 -0
  1015. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/index.js.map +0 -0
  1016. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/metadata.d.ts +0 -0
  1017. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/metadata.js +0 -0
  1018. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/metadata.js.map +0 -0
  1019. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/nullable.d.ts +0 -0
  1020. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/nullable.js +0 -0
  1021. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/nullable.js.map +0 -0
  1022. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/optionalProperties.d.ts +0 -0
  1023. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/optionalProperties.js +0 -0
  1024. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/optionalProperties.js.map +0 -0
  1025. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/properties.d.ts +0 -0
  1026. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/properties.js +0 -0
  1027. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/properties.js.map +0 -0
  1028. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/ref.d.ts +0 -0
  1029. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/ref.js +0 -0
  1030. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/ref.js.map +0 -0
  1031. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/type.d.ts +0 -0
  1032. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/type.js +0 -0
  1033. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/type.js.map +0 -0
  1034. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/union.d.ts +0 -0
  1035. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/union.js +0 -0
  1036. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/union.js.map +0 -0
  1037. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/values.d.ts +0 -0
  1038. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/values.js +0 -0
  1039. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/values.js.map +0 -0
  1040. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/metadata.d.ts +0 -0
  1041. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/metadata.js +0 -0
  1042. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/metadata.js.map +0 -0
  1043. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/next.d.ts +0 -0
  1044. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/next.js +0 -0
  1045. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/next.js.map +0 -0
  1046. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/unevaluated/index.d.ts +0 -0
  1047. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/unevaluated/index.js +0 -0
  1048. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/unevaluated/index.js.map +0 -0
  1049. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +0 -0
  1050. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/unevaluated/unevaluatedItems.js +0 -0
  1051. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/unevaluated/unevaluatedItems.js.map +0 -0
  1052. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +0 -0
  1053. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/unevaluated/unevaluatedProperties.js +0 -0
  1054. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +0 -0
  1055. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/const.d.ts +0 -0
  1056. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/const.js +0 -0
  1057. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/const.js.map +0 -0
  1058. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/dependentRequired.d.ts +0 -0
  1059. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/dependentRequired.js +0 -0
  1060. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/dependentRequired.js.map +0 -0
  1061. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/enum.d.ts +0 -0
  1062. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/enum.js +0 -0
  1063. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/enum.js.map +0 -0
  1064. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/index.d.ts +0 -0
  1065. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/index.js +0 -0
  1066. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/index.js.map +0 -0
  1067. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/limitContains.d.ts +0 -0
  1068. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/limitContains.js +0 -0
  1069. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/limitContains.js.map +0 -0
  1070. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/limitItems.d.ts +0 -0
  1071. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/limitItems.js +0 -0
  1072. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/limitItems.js.map +0 -0
  1073. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/limitLength.d.ts +0 -0
  1074. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/limitLength.js +0 -0
  1075. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/limitLength.js.map +0 -0
  1076. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/limitNumber.d.ts +0 -0
  1077. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/limitNumber.js +0 -0
  1078. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/limitNumber.js.map +0 -0
  1079. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/limitProperties.d.ts +0 -0
  1080. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/limitProperties.js +0 -0
  1081. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/limitProperties.js.map +0 -0
  1082. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/multipleOf.d.ts +0 -0
  1083. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/multipleOf.js +0 -0
  1084. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/multipleOf.js.map +0 -0
  1085. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/pattern.d.ts +0 -0
  1086. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/pattern.js +0 -0
  1087. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/pattern.js.map +0 -0
  1088. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/required.d.ts +0 -0
  1089. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/required.js +0 -0
  1090. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/required.js.map +0 -0
  1091. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/uniqueItems.d.ts +0 -0
  1092. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/uniqueItems.js +0 -0
  1093. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/uniqueItems.js.map +0 -0
  1094. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/2019.ts +0 -0
  1095. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/2020.ts +0 -0
  1096. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/ajv.ts +0 -0
  1097. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/compile/codegen/code.ts +0 -0
  1098. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/compile/codegen/index.ts +0 -0
  1099. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/compile/codegen/scope.ts +0 -0
  1100. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/compile/errors.ts +0 -0
  1101. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/compile/index.ts +0 -0
  1102. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/compile/jtd/parse.ts +0 -0
  1103. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/compile/jtd/serialize.ts +0 -0
  1104. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/compile/jtd/types.ts +0 -0
  1105. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/compile/names.ts +0 -0
  1106. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/compile/ref_error.ts +0 -0
  1107. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/compile/resolve.ts +0 -0
  1108. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/compile/rules.ts +0 -0
  1109. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/compile/util.ts +0 -0
  1110. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/compile/validate/applicability.ts +0 -0
  1111. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/compile/validate/boolSchema.ts +0 -0
  1112. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/compile/validate/dataType.ts +0 -0
  1113. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/compile/validate/defaults.ts +0 -0
  1114. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/compile/validate/index.ts +0 -0
  1115. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/compile/validate/keyword.ts +0 -0
  1116. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/compile/validate/subschema.ts +0 -0
  1117. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/jtd.ts +0 -0
  1118. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/refs/data.json +0 -0
  1119. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/refs/json-schema-2019-09/index.ts +0 -0
  1120. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/refs/json-schema-2019-09/meta/applicator.json +0 -0
  1121. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/refs/json-schema-2019-09/meta/content.json +0 -0
  1122. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/refs/json-schema-2019-09/meta/core.json +0 -0
  1123. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/refs/json-schema-2019-09/meta/format.json +0 -0
  1124. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/refs/json-schema-2019-09/meta/meta-data.json +0 -0
  1125. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/refs/json-schema-2019-09/meta/validation.json +0 -0
  1126. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/refs/json-schema-2019-09/schema.json +0 -0
  1127. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/refs/json-schema-2020-12/index.ts +0 -0
  1128. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/refs/json-schema-2020-12/meta/applicator.json +0 -0
  1129. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/refs/json-schema-2020-12/meta/content.json +0 -0
  1130. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/refs/json-schema-2020-12/meta/core.json +0 -0
  1131. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/refs/json-schema-2020-12/meta/format-annotation.json +0 -0
  1132. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/refs/json-schema-2020-12/meta/meta-data.json +0 -0
  1133. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/refs/json-schema-2020-12/meta/unevaluated.json +0 -0
  1134. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/refs/json-schema-2020-12/meta/validation.json +0 -0
  1135. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/refs/json-schema-2020-12/schema.json +0 -0
  1136. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/refs/json-schema-draft-06.json +0 -0
  1137. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/refs/json-schema-draft-07.json +0 -0
  1138. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/refs/json-schema-secure.json +0 -0
  1139. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/refs/jtd-schema.ts +0 -0
  1140. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/runtime/equal.ts +0 -0
  1141. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/runtime/parseJson.ts +0 -0
  1142. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/runtime/quote.ts +0 -0
  1143. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/runtime/re2.ts +0 -0
  1144. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/runtime/timestamp.ts +0 -0
  1145. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/runtime/ucs2length.ts +0 -0
  1146. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/runtime/uri.ts +0 -0
  1147. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/runtime/validation_error.ts +0 -0
  1148. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/standalone/index.ts +0 -0
  1149. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/standalone/instance.ts +0 -0
  1150. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/types/index.ts +0 -0
  1151. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/types/json-schema.ts +0 -0
  1152. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/types/jtd-schema.ts +0 -0
  1153. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/applicator/additionalItems.ts +0 -0
  1154. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/applicator/additionalProperties.ts +0 -0
  1155. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/applicator/allOf.ts +0 -0
  1156. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/applicator/anyOf.ts +0 -0
  1157. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/applicator/contains.ts +0 -0
  1158. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/applicator/dependencies.ts +0 -0
  1159. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/applicator/dependentSchemas.ts +0 -0
  1160. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/applicator/if.ts +0 -0
  1161. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/applicator/index.ts +0 -0
  1162. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/applicator/items.ts +0 -0
  1163. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/applicator/items2020.ts +0 -0
  1164. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/applicator/not.ts +0 -0
  1165. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/applicator/oneOf.ts +0 -0
  1166. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/applicator/patternProperties.ts +0 -0
  1167. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/applicator/prefixItems.ts +0 -0
  1168. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/applicator/properties.ts +0 -0
  1169. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/applicator/propertyNames.ts +0 -0
  1170. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/applicator/thenElse.ts +0 -0
  1171. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/code.ts +0 -0
  1172. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/core/id.ts +0 -0
  1173. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/core/index.ts +0 -0
  1174. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/core/ref.ts +0 -0
  1175. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/discriminator/index.ts +0 -0
  1176. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/discriminator/types.ts +0 -0
  1177. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/draft2020.ts +0 -0
  1178. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/draft7.ts +0 -0
  1179. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/dynamic/dynamicAnchor.ts +0 -0
  1180. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/dynamic/dynamicRef.ts +0 -0
  1181. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/dynamic/index.ts +0 -0
  1182. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/dynamic/recursiveAnchor.ts +0 -0
  1183. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/dynamic/recursiveRef.ts +0 -0
  1184. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/errors.ts +0 -0
  1185. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/format/format.ts +0 -0
  1186. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/format/index.ts +0 -0
  1187. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/jtd/discriminator.ts +0 -0
  1188. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/jtd/elements.ts +0 -0
  1189. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/jtd/enum.ts +0 -0
  1190. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/jtd/error.ts +0 -0
  1191. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/jtd/index.ts +0 -0
  1192. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/jtd/metadata.ts +0 -0
  1193. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/jtd/nullable.ts +0 -0
  1194. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/jtd/optionalProperties.ts +0 -0
  1195. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/jtd/properties.ts +0 -0
  1196. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/jtd/ref.ts +0 -0
  1197. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/jtd/type.ts +0 -0
  1198. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/jtd/union.ts +0 -0
  1199. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/jtd/values.ts +0 -0
  1200. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/metadata.ts +0 -0
  1201. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/next.ts +0 -0
  1202. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/unevaluated/index.ts +0 -0
  1203. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/unevaluated/unevaluatedItems.ts +0 -0
  1204. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/unevaluated/unevaluatedProperties.ts +0 -0
  1205. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/validation/const.ts +0 -0
  1206. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/validation/dependentRequired.ts +0 -0
  1207. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/validation/enum.ts +0 -0
  1208. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/validation/index.ts +0 -0
  1209. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/validation/limitContains.ts +0 -0
  1210. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/validation/limitItems.ts +0 -0
  1211. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/validation/limitLength.ts +0 -0
  1212. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/validation/limitNumber.ts +0 -0
  1213. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/validation/limitProperties.ts +0 -0
  1214. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/validation/multipleOf.ts +0 -0
  1215. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/validation/pattern.ts +0 -0
  1216. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/validation/required.ts +0 -0
  1217. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/validation/uniqueItems.ts +0 -0
  1218. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/json-schema-traverse → json-schema-traverse}/.eslintrc.yml +0 -0
  1219. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/json-schema-traverse → json-schema-traverse}/.github/FUNDING.yml +0 -0
  1220. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/json-schema-traverse → json-schema-traverse}/.github/workflows/build.yml +0 -0
  1221. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/json-schema-traverse → json-schema-traverse}/.github/workflows/publish.yml +0 -0
  1222. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/json-schema-traverse → json-schema-traverse}/LICENSE +0 -0
  1223. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/json-schema-traverse → json-schema-traverse}/README.md +0 -0
  1224. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/json-schema-traverse → json-schema-traverse}/index.d.ts +0 -0
  1225. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/json-schema-traverse → json-schema-traverse}/index.js +0 -0
  1226. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/json-schema-traverse → json-schema-traverse}/package.json +0 -0
  1227. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/json-schema-traverse → json-schema-traverse}/spec/.eslintrc.yml +0 -0
  1228. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/json-schema-traverse → json-schema-traverse}/spec/fixtures/schema.js +0 -0
  1229. /package/node_modules/{@modelcontextprotocol/sdk/node_modules/json-schema-traverse → json-schema-traverse}/spec/index.spec.js +0 -0
@@ -0,0 +1,1935 @@
1
+ #include "tree_sitter/api.h"
2
+ #include "./parser.h"
3
+ #include <stdint.h>
4
+
5
+ #ifdef TREE_SITTER_FEATURE_WASM
6
+
7
+ #include "./alloc.h"
8
+ #include "./array.h"
9
+ #include "./atomic.h"
10
+ #include "./language.h"
11
+ #include "./lexer.h"
12
+ #include "./wasm/wasm-stdlib.h"
13
+ #include "./wasm_store.h"
14
+
15
+ #include <string.h>
16
+ #include <wasm.h>
17
+ #include <wasmtime.h>
18
+
19
+ #ifdef _MSC_VER
20
+ #pragma warning(push)
21
+ #pragma warning(disable : 4100)
22
+ #elif defined(__GNUC__) || defined(__clang__)
23
+ #pragma GCC diagnostic push
24
+ #pragma GCC diagnostic ignored "-Wunused-parameter"
25
+ #endif
26
+
27
+ #define array_len(a) (sizeof(a) / sizeof(a[0]))
28
+
29
+ // The following symbols from the C and C++ standard libraries are available
30
+ // for external scanners to use.
31
+ const char *STDLIB_SYMBOLS[] = {
32
+ #include "./stdlib-symbols.txt"
33
+ };
34
+
35
+ // The contents of the `dylink.0` custom section of a wasm module,
36
+ // as specified by the current WebAssembly dynamic linking ABI proposal.
37
+ typedef struct {
38
+ uint32_t memory_size;
39
+ uint32_t memory_align;
40
+ uint32_t table_size;
41
+ uint32_t table_align;
42
+ } WasmDylinkInfo;
43
+
44
+ // WasmLanguageId - A pointer used to identify a language. This language id is
45
+ // reference-counted, so that its ownership can be shared between the language
46
+ // itself and the instances of the language that are held in wasm stores.
47
+ typedef struct {
48
+ volatile uint32_t ref_count;
49
+ volatile uint32_t is_language_deleted;
50
+ } WasmLanguageId;
51
+
52
+ // LanguageWasmModule - Additional data associated with a wasm-backed
53
+ // `TSLanguage`. This data is read-only and does not reference a particular
54
+ // wasm store, so it can be shared by all users of a `TSLanguage`. A pointer to
55
+ // this is stored on the language itself.
56
+ typedef struct {
57
+ volatile uint32_t ref_count;
58
+ WasmLanguageId *language_id;
59
+ wasmtime_module_t *module;
60
+ const char *name;
61
+ char *symbol_name_buffer;
62
+ char *field_name_buffer;
63
+ WasmDylinkInfo dylink_info;
64
+ } LanguageWasmModule;
65
+
66
+ // LanguageWasmInstance - Additional data associated with an instantiation of
67
+ // a `TSLanguage` in a particular wasm store. The wasm store holds one of
68
+ // these structs for each language that it has instantiated.
69
+ typedef struct {
70
+ WasmLanguageId *language_id;
71
+ wasmtime_instance_t instance;
72
+ int32_t external_states_address;
73
+ int32_t lex_main_fn_index;
74
+ int32_t lex_keyword_fn_index;
75
+ int32_t scanner_create_fn_index;
76
+ int32_t scanner_destroy_fn_index;
77
+ int32_t scanner_serialize_fn_index;
78
+ int32_t scanner_deserialize_fn_index;
79
+ int32_t scanner_scan_fn_index;
80
+ } LanguageWasmInstance;
81
+
82
+ typedef struct {
83
+ uint32_t reset_heap;
84
+ uint32_t proc_exit;
85
+ uint32_t abort;
86
+ uint32_t assert_fail;
87
+ uint32_t notify_memory_growth;
88
+ uint32_t debug_message;
89
+ uint32_t at_exit;
90
+ uint32_t args_get;
91
+ uint32_t args_sizes_get;
92
+ } BuiltinFunctionIndices;
93
+
94
+ // TSWasmStore - A struct that allows a given `Parser` to use wasm-backed
95
+ // languages. This struct is mutable, and can only be used by one parser at a
96
+ // time.
97
+ struct TSWasmStore {
98
+ wasm_engine_t *engine;
99
+ wasmtime_store_t *store;
100
+ wasmtime_table_t function_table;
101
+ wasmtime_memory_t memory;
102
+ TSLexer *current_lexer;
103
+ LanguageWasmInstance *current_instance;
104
+ Array(LanguageWasmInstance) language_instances;
105
+ uint32_t current_memory_offset;
106
+ uint32_t current_function_table_offset;
107
+ uint32_t *stdlib_fn_indices;
108
+ BuiltinFunctionIndices builtin_fn_indices;
109
+ wasmtime_global_t stack_pointer_global;
110
+ wasm_globaltype_t *const_i32_type;
111
+ bool has_error;
112
+ uint32_t lexer_address;
113
+ };
114
+
115
+ typedef Array(char) StringData;
116
+
117
+ // LanguageInWasmMemory - The memory layout of a `TSLanguage` when compiled to
118
+ // wasm32. This is used to copy static language data out of the wasm memory.
119
+ typedef struct {
120
+ uint32_t abi_version;
121
+ uint32_t symbol_count;
122
+ uint32_t alias_count;
123
+ uint32_t token_count;
124
+ uint32_t external_token_count;
125
+ uint32_t state_count;
126
+ uint32_t large_state_count;
127
+ uint32_t production_id_count;
128
+ uint32_t field_count;
129
+ uint16_t max_alias_sequence_length;
130
+ int32_t parse_table;
131
+ int32_t small_parse_table;
132
+ int32_t small_parse_table_map;
133
+ int32_t parse_actions;
134
+ int32_t symbol_names;
135
+ int32_t field_names;
136
+ int32_t field_map_slices;
137
+ int32_t field_map_entries;
138
+ int32_t symbol_metadata;
139
+ int32_t public_symbol_map;
140
+ int32_t alias_map;
141
+ int32_t alias_sequences;
142
+ int32_t lex_modes;
143
+ int32_t lex_fn;
144
+ int32_t keyword_lex_fn;
145
+ TSSymbol keyword_capture_token;
146
+ struct {
147
+ int32_t states;
148
+ int32_t symbol_map;
149
+ int32_t create;
150
+ int32_t destroy;
151
+ int32_t scan;
152
+ int32_t serialize;
153
+ int32_t deserialize;
154
+ } external_scanner;
155
+ int32_t primary_state_ids;
156
+ int32_t name;
157
+ int32_t reserved_words;
158
+ uint16_t max_reserved_word_set_size;
159
+ uint32_t supertype_count;
160
+ int32_t supertype_symbols;
161
+ int32_t supertype_map_slices;
162
+ int32_t supertype_map_entries;
163
+ TSLanguageMetadata metadata;
164
+ } LanguageInWasmMemory;
165
+
166
+ // LexerInWasmMemory - The memory layout of a `TSLexer` when compiled to wasm32.
167
+ // This is used to copy mutable lexing state in and out of the wasm memory.
168
+ typedef struct {
169
+ int32_t lookahead;
170
+ TSSymbol result_symbol;
171
+ int32_t advance;
172
+ int32_t mark_end;
173
+ int32_t get_column;
174
+ int32_t is_at_included_range_start;
175
+ int32_t eof;
176
+ } LexerInWasmMemory;
177
+
178
+ // Linear memory layout:
179
+ // [ <-- stack | stdlib statics | lexer | language statics --> | serialization_buffer | heap --> ]
180
+ #define MAX_MEMORY_SIZE (128 * 1024 * 1024 / MEMORY_PAGE_SIZE)
181
+
182
+ /************************
183
+ * WasmDylinkMemoryInfo
184
+ ***********************/
185
+
186
+ static uint8_t read_u8(const uint8_t **p) {
187
+ return *(*p)++;
188
+ }
189
+
190
+ static inline uint64_t read_uleb128(const uint8_t **p, const uint8_t *end) {
191
+ uint64_t value = 0;
192
+ unsigned shift = 0;
193
+ do {
194
+ if (*p == end) return UINT64_MAX;
195
+ value += (uint64_t)(**p & 0x7f) << shift;
196
+ shift += 7;
197
+ } while (*((*p)++) >= 128);
198
+ return value;
199
+ }
200
+
201
+ static bool wasm_dylink_info__parse(
202
+ const uint8_t *bytes,
203
+ size_t length,
204
+ WasmDylinkInfo *info
205
+ ) {
206
+ const uint8_t WASM_MAGIC_NUMBER[4] = {0, 'a', 's', 'm'};
207
+ const uint8_t WASM_VERSION[4] = {1, 0, 0, 0};
208
+ const uint8_t WASM_CUSTOM_SECTION = 0x0;
209
+ const uint8_t WASM_DYLINK_MEM_INFO = 0x1;
210
+
211
+ const uint8_t *p = bytes;
212
+ const uint8_t *end = bytes + length;
213
+
214
+ if (length < 8) return false;
215
+ if (memcmp(p, WASM_MAGIC_NUMBER, 4) != 0) return false;
216
+ p += 4;
217
+ if (memcmp(p, WASM_VERSION, 4) != 0) return false;
218
+ p += 4;
219
+
220
+ while (p < end) {
221
+ uint8_t section_id = read_u8(&p);
222
+ uint32_t section_length = read_uleb128(&p, end);
223
+ const uint8_t *section_end = p + section_length;
224
+ if (section_end > end) return false;
225
+
226
+ if (section_id == WASM_CUSTOM_SECTION) {
227
+ uint32_t name_length = read_uleb128(&p, section_end);
228
+ const uint8_t *name_end = p + name_length;
229
+ if (name_end > section_end) return false;
230
+
231
+ if (name_length == 8 && memcmp(p, "dylink.0", 8) == 0) {
232
+ p = name_end;
233
+ while (p < section_end) {
234
+ uint8_t subsection_type = read_u8(&p);
235
+ uint32_t subsection_size = read_uleb128(&p, section_end);
236
+ const uint8_t *subsection_end = p + subsection_size;
237
+ if (subsection_end > section_end) return false;
238
+ if (subsection_type == WASM_DYLINK_MEM_INFO) {
239
+ info->memory_size = read_uleb128(&p, subsection_end);
240
+ info->memory_align = read_uleb128(&p, subsection_end);
241
+ info->table_size = read_uleb128(&p, subsection_end);
242
+ info->table_align = read_uleb128(&p, subsection_end);
243
+ return true;
244
+ }
245
+ p = subsection_end;
246
+ }
247
+ }
248
+ }
249
+ p = section_end;
250
+ }
251
+ return false;
252
+ }
253
+
254
+ /*******************************************
255
+ * Native callbacks exposed to wasm modules
256
+ *******************************************/
257
+
258
+ static wasm_trap_t *callback__abort(
259
+ void *env,
260
+ wasmtime_caller_t* caller,
261
+ wasmtime_val_raw_t *args_and_results,
262
+ size_t args_and_results_len
263
+ ) {
264
+ return wasmtime_trap_new("wasm module called abort", 24);
265
+ }
266
+
267
+ static wasm_trap_t *callback__debug_message(
268
+ void *env,
269
+ wasmtime_caller_t* caller,
270
+ wasmtime_val_raw_t *args_and_results,
271
+ size_t args_and_results_len
272
+ ) {
273
+ wasmtime_context_t *context = wasmtime_caller_context(caller);
274
+ TSWasmStore *store = env;
275
+ ts_assert(args_and_results_len == 2);
276
+ uint32_t string_address = args_and_results[0].i32;
277
+ uint32_t value = args_and_results[1].i32;
278
+ uint8_t *memory = wasmtime_memory_data(context, &store->memory);
279
+ printf("DEBUG: %s %u\n", &memory[string_address], value);
280
+ return NULL;
281
+ }
282
+
283
+ static wasm_trap_t *callback__noop(
284
+ void *env,
285
+ wasmtime_caller_t* caller,
286
+ wasmtime_val_raw_t *args_and_results,
287
+ size_t args_and_results_len
288
+ ) {
289
+ return NULL;
290
+ }
291
+
292
+ static wasm_trap_t *callback__lexer_advance(
293
+ void *env,
294
+ wasmtime_caller_t* caller,
295
+ wasmtime_val_raw_t *args_and_results,
296
+ size_t args_and_results_len
297
+ ) {
298
+ wasmtime_context_t *context = wasmtime_caller_context(caller);
299
+ ts_assert(args_and_results_len == 2);
300
+
301
+ TSWasmStore *store = env;
302
+ TSLexer *lexer = store->current_lexer;
303
+ bool skip = args_and_results[1].i32;
304
+ lexer->advance(lexer, skip);
305
+
306
+ uint8_t *memory = wasmtime_memory_data(context, &store->memory);
307
+ memcpy(&memory[store->lexer_address], &lexer->lookahead, sizeof(lexer->lookahead));
308
+ return NULL;
309
+ }
310
+
311
+ static wasm_trap_t *callback__lexer_mark_end(
312
+ void *env,
313
+ wasmtime_caller_t* caller,
314
+ wasmtime_val_raw_t *args_and_results,
315
+ size_t args_and_results_len
316
+ ) {
317
+ TSWasmStore *store = env;
318
+ TSLexer *lexer = store->current_lexer;
319
+ lexer->mark_end(lexer);
320
+ return NULL;
321
+ }
322
+
323
+ static wasm_trap_t *callback__lexer_get_column(
324
+ void *env,
325
+ wasmtime_caller_t* caller,
326
+ wasmtime_val_raw_t *args_and_results,
327
+ size_t args_and_results_len
328
+ ) {
329
+ TSWasmStore *store = env;
330
+ TSLexer *lexer = store->current_lexer;
331
+ uint32_t result = lexer->get_column(lexer);
332
+ args_and_results[0].i32 = result;
333
+ return NULL;
334
+ }
335
+
336
+ static wasm_trap_t *callback__lexer_is_at_included_range_start(
337
+ void *env,
338
+ wasmtime_caller_t* caller,
339
+ wasmtime_val_raw_t *args_and_results,
340
+ size_t args_and_results_len
341
+ ) {
342
+ TSWasmStore *store = env;
343
+ TSLexer *lexer = store->current_lexer;
344
+ bool result = lexer->is_at_included_range_start(lexer);
345
+ args_and_results[0].i32 = result;
346
+ return NULL;
347
+ }
348
+
349
+ static wasm_trap_t *callback__lexer_eof(
350
+ void *env,
351
+ wasmtime_caller_t* caller,
352
+ wasmtime_val_raw_t *args_and_results,
353
+ size_t args_and_results_len
354
+ ) {
355
+ TSWasmStore *store = env;
356
+ TSLexer *lexer = store->current_lexer;
357
+ bool result = lexer->eof(lexer);
358
+ args_and_results[0].i32 = result;
359
+ return NULL;
360
+ }
361
+
362
+ typedef struct {
363
+ uint32_t *storage_location;
364
+ wasmtime_func_unchecked_callback_t callback;
365
+ wasm_functype_t *type;
366
+ } FunctionDefinition;
367
+
368
+ static void *copy(const void *data, size_t size) {
369
+ void *result = ts_malloc(size);
370
+ memcpy(result, data, size);
371
+ return result;
372
+ }
373
+
374
+ static void *copy_unsized_static_array(
375
+ const uint8_t *data,
376
+ int32_t start_address,
377
+ const int32_t all_addresses[],
378
+ size_t address_count
379
+ ) {
380
+ int32_t end_address = 0;
381
+ for (unsigned i = 0; i < address_count; i++) {
382
+ if (all_addresses[i] > start_address) {
383
+ if (!end_address || all_addresses[i] < end_address) {
384
+ end_address = all_addresses[i];
385
+ }
386
+ }
387
+ }
388
+
389
+ if (!end_address) return NULL;
390
+ size_t size = end_address - start_address;
391
+ void *result = ts_malloc(size);
392
+ memcpy(result, &data[start_address], size);
393
+ return result;
394
+ }
395
+
396
+ static void *copy_strings(
397
+ const uint8_t *data,
398
+ int32_t array_address,
399
+ size_t count,
400
+ StringData *string_data
401
+ ) {
402
+ const char **result = ts_malloc(count * sizeof(char *));
403
+ for (unsigned i = 0; i < count; i++) {
404
+ int32_t address;
405
+ memcpy(&address, &data[array_address + i * sizeof(address)], sizeof(address));
406
+ if (address == 0) {
407
+ result[i] = (const char *)-1;
408
+ } else {
409
+ const uint8_t *string = &data[address];
410
+ uint32_t len = strlen((const char *)string);
411
+ result[i] = (const char *)(uintptr_t)string_data->size;
412
+ array_extend(string_data, len + 1, string);
413
+ }
414
+ }
415
+ for (unsigned i = 0; i < count; i++) {
416
+ if (result[i] == (const char *)-1) {
417
+ result[i] = NULL;
418
+ } else {
419
+ result[i] = string_data->contents + (uintptr_t)result[i];
420
+ }
421
+ }
422
+ return result;
423
+ }
424
+
425
+ static void *copy_string(
426
+ const uint8_t *data,
427
+ int32_t address
428
+ ) {
429
+ const char *string = (const char *)&data[address];
430
+ size_t len = strlen(string);
431
+ char *result = ts_malloc(len + 1);
432
+ memcpy(result, string, len + 1);
433
+ return result;
434
+ }
435
+
436
+ static bool name_eq(const wasm_name_t *name, const char *string) {
437
+ return strncmp(string, name->data, name->size) == 0;
438
+ }
439
+
440
+ static inline wasm_functype_t* wasm_functype_new_4_0(
441
+ wasm_valtype_t* p1,
442
+ wasm_valtype_t* p2,
443
+ wasm_valtype_t* p3,
444
+ wasm_valtype_t* p4
445
+ ) {
446
+ wasm_valtype_t* ps[4] = {p1, p2, p3, p4};
447
+ wasm_valtype_vec_t params, results;
448
+ wasm_valtype_vec_new(&params, 4, ps);
449
+ wasm_valtype_vec_new_empty(&results);
450
+ return wasm_functype_new(&params, &results);
451
+ }
452
+
453
+ #define format(output, ...) \
454
+ do { \
455
+ size_t message_length = snprintf((char *)NULL, 0, __VA_ARGS__); \
456
+ *output = ts_malloc(message_length + 1); \
457
+ snprintf(*output, message_length + 1, __VA_ARGS__); \
458
+ } while (0)
459
+
460
+ WasmLanguageId *language_id_new(void) {
461
+ WasmLanguageId *self = ts_malloc(sizeof(WasmLanguageId));
462
+ self->is_language_deleted = false;
463
+ self->ref_count = 1;
464
+ return self;
465
+ }
466
+
467
+ WasmLanguageId *language_id_clone(WasmLanguageId *self) {
468
+ atomic_inc(&self->ref_count);
469
+ return self;
470
+ }
471
+
472
+ void language_id_delete(WasmLanguageId *self) {
473
+ if (atomic_dec(&self->ref_count) == 0) {
474
+ ts_free(self);
475
+ }
476
+ }
477
+
478
+ static wasmtime_extern_t get_builtin_extern(
479
+ wasmtime_table_t *table,
480
+ unsigned index
481
+ ) {
482
+ return (wasmtime_extern_t) {
483
+ .kind = WASMTIME_EXTERN_FUNC,
484
+ .of.func = (wasmtime_func_t) {
485
+ .store_id = table->store_id,
486
+ .__private = index
487
+ }
488
+ };
489
+ }
490
+
491
+ static bool ts_wasm_store__provide_builtin_import(
492
+ TSWasmStore *self,
493
+ const wasm_name_t *import_name,
494
+ wasmtime_extern_t *import
495
+ ) {
496
+ wasmtime_error_t *error = NULL;
497
+ wasmtime_context_t *context = wasmtime_store_context(self->store);
498
+
499
+ // Dynamic linking parameters
500
+ if (name_eq(import_name, "__memory_base")) {
501
+ wasmtime_val_t value = WASM_I32_VAL(self->current_memory_offset);
502
+ wasmtime_global_t global;
503
+ error = wasmtime_global_new(context, self->const_i32_type, &value, &global);
504
+ ts_assert(!error);
505
+ *import = (wasmtime_extern_t) {.kind = WASMTIME_EXTERN_GLOBAL, .of.global = global};
506
+ } else if (name_eq(import_name, "__table_base")) {
507
+ wasmtime_val_t value = WASM_I32_VAL(self->current_function_table_offset);
508
+ wasmtime_global_t global;
509
+ error = wasmtime_global_new(context, self->const_i32_type, &value, &global);
510
+ ts_assert(!error);
511
+ *import = (wasmtime_extern_t) {.kind = WASMTIME_EXTERN_GLOBAL, .of.global = global};
512
+ } else if (name_eq(import_name, "__stack_pointer")) {
513
+ *import = (wasmtime_extern_t) {.kind = WASMTIME_EXTERN_GLOBAL, .of.global = self->stack_pointer_global};
514
+ } else if (name_eq(import_name, "__indirect_function_table")) {
515
+ *import = (wasmtime_extern_t) {.kind = WASMTIME_EXTERN_TABLE, .of.table = self->function_table};
516
+ } else if (name_eq(import_name, "memory")) {
517
+ *import = (wasmtime_extern_t) {.kind = WASMTIME_EXTERN_MEMORY, .of.memory = self->memory};
518
+ }
519
+
520
+ // Builtin functions
521
+ else if (name_eq(import_name, "__assert_fail")) {
522
+ *import = get_builtin_extern(&self->function_table, self->builtin_fn_indices.assert_fail);
523
+ } else if (name_eq(import_name, "__cxa_atexit")) {
524
+ *import = get_builtin_extern(&self->function_table, self->builtin_fn_indices.at_exit);
525
+ } else if (name_eq(import_name, "args_get")) {
526
+ *import = get_builtin_extern(&self->function_table, self->builtin_fn_indices.args_get);
527
+ } else if (name_eq(import_name, "args_sizes_get")) {
528
+ *import = get_builtin_extern(&self->function_table, self->builtin_fn_indices.args_sizes_get);
529
+ } else if (name_eq(import_name, "abort")) {
530
+ *import = get_builtin_extern(&self->function_table, self->builtin_fn_indices.abort);
531
+ } else if (name_eq(import_name, "proc_exit")) {
532
+ *import = get_builtin_extern(&self->function_table, self->builtin_fn_indices.proc_exit);
533
+ } else if (name_eq(import_name, "emscripten_notify_memory_growth")) {
534
+ *import = get_builtin_extern(&self->function_table, self->builtin_fn_indices.notify_memory_growth);
535
+ } else if (name_eq(import_name, "tree_sitter_debug_message")) {
536
+ *import = get_builtin_extern(&self->function_table, self->builtin_fn_indices.debug_message);
537
+ } else {
538
+ return false;
539
+ }
540
+
541
+ return true;
542
+ }
543
+
544
+ static bool ts_wasm_store__call_module_initializer(
545
+ TSWasmStore *self,
546
+ const wasm_name_t *export_name,
547
+ wasmtime_extern_t *export,
548
+ wasm_trap_t **trap
549
+ ) {
550
+ if (
551
+ name_eq(export_name, "_initialize") ||
552
+ name_eq(export_name, "__wasm_apply_data_relocs") ||
553
+ name_eq(export_name, "__wasm_call_ctors")
554
+ ) {
555
+ wasmtime_context_t *context = wasmtime_store_context(self->store);
556
+ wasmtime_func_t initialization_func = export->of.func;
557
+ wasmtime_error_t *error = wasmtime_func_call(context, &initialization_func, NULL, 0, NULL, 0, trap);
558
+ ts_assert(!error);
559
+ return true;
560
+ } else {
561
+ return false;
562
+ }
563
+ }
564
+
565
+ TSWasmStore *ts_wasm_store_new(TSWasmEngine *engine, TSWasmError *wasm_error) {
566
+ TSWasmStore *self = ts_calloc(1, sizeof(TSWasmStore));
567
+ wasmtime_store_t *store = wasmtime_store_new(engine, self, NULL);
568
+ wasmtime_context_t *context = wasmtime_store_context(store);
569
+ wasmtime_error_t *error = NULL;
570
+ wasm_trap_t *trap = NULL;
571
+ wasm_message_t message = WASM_EMPTY_VEC;
572
+ wasm_exporttype_vec_t export_types = WASM_EMPTY_VEC;
573
+ wasm_importtype_vec_t import_types = WASM_EMPTY_VEC;
574
+ wasmtime_extern_t *imports = NULL;
575
+ wasmtime_module_t *stdlib_module = NULL;
576
+ wasm_memorytype_t *memory_type = NULL;
577
+ wasm_tabletype_t *table_type = NULL;
578
+
579
+ // Define functions called by scanners via function pointers on the lexer.
580
+ LexerInWasmMemory lexer = {
581
+ .lookahead = 0,
582
+ .result_symbol = 0,
583
+ };
584
+ FunctionDefinition lexer_definitions[] = {
585
+ {
586
+ (uint32_t *)&lexer.advance,
587
+ callback__lexer_advance,
588
+ wasm_functype_new_2_0(wasm_valtype_new_i32(), wasm_valtype_new_i32())
589
+ },
590
+ {
591
+ (uint32_t *)&lexer.mark_end,
592
+ callback__lexer_mark_end,
593
+ wasm_functype_new_1_0(wasm_valtype_new_i32())
594
+ },
595
+ {
596
+ (uint32_t *)&lexer.get_column,
597
+ callback__lexer_get_column,
598
+ wasm_functype_new_1_1(wasm_valtype_new_i32(), wasm_valtype_new_i32())
599
+ },
600
+ {
601
+ (uint32_t *)&lexer.is_at_included_range_start,
602
+ callback__lexer_is_at_included_range_start,
603
+ wasm_functype_new_1_1(wasm_valtype_new_i32(), wasm_valtype_new_i32())
604
+ },
605
+ {
606
+ (uint32_t *)&lexer.eof,
607
+ callback__lexer_eof,
608
+ wasm_functype_new_1_1(wasm_valtype_new_i32(), wasm_valtype_new_i32())
609
+ },
610
+ };
611
+
612
+ // Define builtin functions that can be imported by scanners.
613
+ BuiltinFunctionIndices builtin_fn_indices;
614
+ FunctionDefinition builtin_definitions[] = {
615
+ {
616
+ &builtin_fn_indices.proc_exit,
617
+ callback__abort,
618
+ wasm_functype_new_1_0(wasm_valtype_new_i32())
619
+ },
620
+ {
621
+ &builtin_fn_indices.abort,
622
+ callback__abort,
623
+ wasm_functype_new_0_0()
624
+ },
625
+ {
626
+ &builtin_fn_indices.assert_fail,
627
+ callback__abort,
628
+ wasm_functype_new_4_0(wasm_valtype_new_i32(), wasm_valtype_new_i32(), wasm_valtype_new_i32(), wasm_valtype_new_i32())
629
+ },
630
+ {
631
+ &builtin_fn_indices.notify_memory_growth,
632
+ callback__noop,
633
+ wasm_functype_new_1_0(wasm_valtype_new_i32())
634
+ },
635
+ {
636
+ &builtin_fn_indices.debug_message,
637
+ callback__debug_message,
638
+ wasm_functype_new_2_0(wasm_valtype_new_i32(), wasm_valtype_new_i32())
639
+ },
640
+ {
641
+ &builtin_fn_indices.at_exit,
642
+ callback__noop,
643
+ wasm_functype_new_3_1(wasm_valtype_new_i32(), wasm_valtype_new_i32(), wasm_valtype_new_i32(), wasm_valtype_new_i32())
644
+ },
645
+ {
646
+ &builtin_fn_indices.args_get,
647
+ callback__noop,
648
+ wasm_functype_new_2_1(wasm_valtype_new_i32(), wasm_valtype_new_i32(), wasm_valtype_new_i32())
649
+ },
650
+ {
651
+ &builtin_fn_indices.args_sizes_get,
652
+ callback__noop,
653
+ wasm_functype_new_2_1(wasm_valtype_new_i32(), wasm_valtype_new_i32(), wasm_valtype_new_i32())
654
+ },
655
+ };
656
+
657
+ // Create all of the wasm functions.
658
+ unsigned builtin_definitions_len = array_len(builtin_definitions);
659
+ unsigned lexer_definitions_len = array_len(lexer_definitions);
660
+ for (unsigned i = 0; i < builtin_definitions_len; i++) {
661
+ FunctionDefinition *definition = &builtin_definitions[i];
662
+ wasmtime_func_t func;
663
+ wasmtime_func_new_unchecked(context, definition->type, definition->callback, self, NULL, &func);
664
+ *definition->storage_location = func.__private;
665
+ wasm_functype_delete(definition->type);
666
+ }
667
+ for (unsigned i = 0; i < lexer_definitions_len; i++) {
668
+ FunctionDefinition *definition = &lexer_definitions[i];
669
+ wasmtime_func_t func;
670
+ wasmtime_func_new_unchecked(context, definition->type, definition->callback, self, NULL, &func);
671
+ *definition->storage_location = func.__private;
672
+ wasm_functype_delete(definition->type);
673
+ }
674
+
675
+ // Compile the stdlib module.
676
+ error = wasmtime_module_new(engine, STDLIB_WASM, STDLIB_WASM_LEN, &stdlib_module);
677
+ if (error) {
678
+ wasmtime_error_message(error, &message);
679
+ wasm_error->kind = TSWasmErrorKindCompile;
680
+ format(
681
+ &wasm_error->message,
682
+ "failed to compile wasm stdlib: %.*s",
683
+ (int)message.size, message.data
684
+ );
685
+ goto error;
686
+ }
687
+
688
+ // Retrieve the stdlib module's imports.
689
+ wasmtime_module_imports(stdlib_module, &import_types);
690
+
691
+ // Find the initial number of memory pages needed by the stdlib.
692
+ const wasm_memorytype_t *stdlib_memory_type = NULL;
693
+ for (unsigned i = 0; i < import_types.size; i++) {
694
+ wasm_importtype_t *import_type = import_types.data[i];
695
+ const wasm_name_t *import_name = wasm_importtype_name(import_type);
696
+ if (name_eq(import_name, "memory")) {
697
+ const wasm_externtype_t *type = wasm_importtype_type(import_type);
698
+ stdlib_memory_type = wasm_externtype_as_memorytype_const(type);
699
+ }
700
+ }
701
+ if (!stdlib_memory_type) {
702
+ wasm_error->kind = TSWasmErrorKindCompile;
703
+ format(
704
+ &wasm_error->message,
705
+ "wasm stdlib is missing the 'memory' import"
706
+ );
707
+ goto error;
708
+ }
709
+
710
+ // Initialize store's memory
711
+ uint64_t initial_memory_pages = wasmtime_memorytype_minimum(stdlib_memory_type);
712
+ wasm_limits_t memory_limits = {.min = initial_memory_pages, .max = MAX_MEMORY_SIZE};
713
+ memory_type = wasm_memorytype_new(&memory_limits);
714
+ wasmtime_memory_t memory;
715
+ error = wasmtime_memory_new(context, memory_type, &memory);
716
+ if (error) {
717
+ wasmtime_error_message(error, &message);
718
+ wasm_error->kind = TSWasmErrorKindAllocate;
719
+ format(
720
+ &wasm_error->message,
721
+ "failed to allocate wasm memory: %.*s",
722
+ (int)message.size, message.data
723
+ );
724
+ goto error;
725
+ }
726
+ wasm_memorytype_delete(memory_type);
727
+ memory_type = NULL;
728
+
729
+ // Initialize store's function table
730
+ wasm_limits_t table_limits = {.min = 1, .max = wasm_limits_max_default};
731
+ table_type = wasm_tabletype_new(wasm_valtype_new(WASM_FUNCREF), &table_limits);
732
+ wasmtime_val_t initializer = {.kind = WASMTIME_FUNCREF};
733
+ wasmtime_table_t function_table;
734
+ error = wasmtime_table_new(context, table_type, &initializer, &function_table);
735
+ if (error) {
736
+ wasmtime_error_message(error, &message);
737
+ wasm_error->kind = TSWasmErrorKindAllocate;
738
+ format(
739
+ &wasm_error->message,
740
+ "failed to allocate wasm table: %.*s",
741
+ (int)message.size, message.data
742
+ );
743
+ goto error;
744
+ }
745
+ wasm_tabletype_delete(table_type);
746
+ table_type = NULL;
747
+
748
+ unsigned stdlib_symbols_len = array_len(STDLIB_SYMBOLS);
749
+
750
+ // Define globals for the stack and heap start addresses.
751
+ wasm_globaltype_t *const_i32_type = wasm_globaltype_new(wasm_valtype_new_i32(), WASM_CONST);
752
+ wasm_globaltype_t *var_i32_type = wasm_globaltype_new(wasm_valtype_new_i32(), WASM_VAR);
753
+
754
+ wasmtime_val_t stack_pointer_value = WASM_I32_VAL(0);
755
+ wasmtime_global_t stack_pointer_global;
756
+ error = wasmtime_global_new(context, var_i32_type, &stack_pointer_value, &stack_pointer_global);
757
+ ts_assert(!error);
758
+
759
+ *self = (TSWasmStore) {
760
+ .engine = wasmtime_engine_clone(engine),
761
+ .store = store,
762
+ .memory = memory,
763
+ .function_table = function_table,
764
+ .language_instances = array_new(),
765
+ .stdlib_fn_indices = ts_calloc(stdlib_symbols_len, sizeof(uint32_t)),
766
+ .builtin_fn_indices = builtin_fn_indices,
767
+ .stack_pointer_global = stack_pointer_global,
768
+ .current_memory_offset = 0,
769
+ .current_function_table_offset = 0,
770
+ .const_i32_type = const_i32_type,
771
+ };
772
+
773
+ // Set up the imports for the stdlib module.
774
+ imports = ts_calloc(import_types.size, sizeof(wasmtime_extern_t));
775
+ for (unsigned i = 0; i < import_types.size; i++) {
776
+ wasm_importtype_t *type = import_types.data[i];
777
+ const wasm_name_t *import_name = wasm_importtype_name(type);
778
+ if (!ts_wasm_store__provide_builtin_import(self, import_name, &imports[i])) {
779
+ wasm_error->kind = TSWasmErrorKindInstantiate;
780
+ format(
781
+ &wasm_error->message,
782
+ "unexpected import in wasm stdlib: %.*s\n",
783
+ (int)import_name->size, import_name->data
784
+ );
785
+ goto error;
786
+ }
787
+ }
788
+
789
+ // Instantiate the stdlib module.
790
+ wasmtime_instance_t instance;
791
+ error = wasmtime_instance_new(context, stdlib_module, imports, import_types.size, &instance, &trap);
792
+ ts_free(imports);
793
+ imports = NULL;
794
+ if (error) {
795
+ wasmtime_error_message(error, &message);
796
+ wasm_error->kind = TSWasmErrorKindInstantiate;
797
+ format(
798
+ &wasm_error->message,
799
+ "failed to instantiate wasm stdlib module: %.*s",
800
+ (int)message.size, message.data
801
+ );
802
+ goto error;
803
+ }
804
+ if (trap) {
805
+ wasm_trap_message(trap, &message);
806
+ wasm_error->kind = TSWasmErrorKindInstantiate;
807
+ format(
808
+ &wasm_error->message,
809
+ "trapped when instantiating wasm stdlib module: %.*s",
810
+ (int)message.size, message.data
811
+ );
812
+ goto error;
813
+ }
814
+ wasm_importtype_vec_delete(&import_types);
815
+
816
+ // Process the stdlib module's exports.
817
+ for (unsigned i = 0; i < stdlib_symbols_len; i++) {
818
+ self->stdlib_fn_indices[i] = UINT32_MAX;
819
+ }
820
+ wasmtime_module_exports(stdlib_module, &export_types);
821
+ for (unsigned i = 0; i < export_types.size; i++) {
822
+ wasm_exporttype_t *export_type = export_types.data[i];
823
+ const wasm_name_t *name = wasm_exporttype_name(export_type);
824
+
825
+ char *export_name;
826
+ size_t name_len;
827
+ wasmtime_extern_t export = {.kind = WASM_EXTERN_GLOBAL};
828
+ bool exists = wasmtime_instance_export_nth(context, &instance, i, &export_name, &name_len, &export);
829
+ ts_assert(exists);
830
+
831
+ if (export.kind == WASMTIME_EXTERN_GLOBAL) {
832
+ if (name_eq(name, "__stack_pointer")) {
833
+ self->stack_pointer_global = export.of.global;
834
+ }
835
+ }
836
+
837
+ if (export.kind == WASMTIME_EXTERN_FUNC) {
838
+ if (ts_wasm_store__call_module_initializer(self, name, &export, &trap)) {
839
+ if (trap) {
840
+ wasm_trap_message(trap, &message);
841
+ wasm_error->kind = TSWasmErrorKindInstantiate;
842
+ format(
843
+ &wasm_error->message,
844
+ "trap when calling stdlib relocation function: %.*s\n",
845
+ (int)message.size, message.data
846
+ );
847
+ goto error;
848
+ }
849
+ continue;
850
+ }
851
+
852
+ if (name_eq(name, "reset_heap")) {
853
+ self->builtin_fn_indices.reset_heap = export.of.func.__private;
854
+ continue;
855
+ }
856
+
857
+ for (unsigned j = 0; j < stdlib_symbols_len; j++) {
858
+ if (name_eq(name, STDLIB_SYMBOLS[j])) {
859
+ self->stdlib_fn_indices[j] = export.of.func.__private;
860
+ break;
861
+ }
862
+ }
863
+ }
864
+ }
865
+
866
+ if (self->builtin_fn_indices.reset_heap == UINT32_MAX) {
867
+ wasm_error->kind = TSWasmErrorKindInstantiate;
868
+ format(
869
+ &wasm_error->message,
870
+ "missing malloc reset function in wasm stdlib"
871
+ );
872
+ goto error;
873
+ }
874
+
875
+ for (unsigned i = 0; i < stdlib_symbols_len; i++) {
876
+ if (self->stdlib_fn_indices[i] == UINT32_MAX) {
877
+ wasm_error->kind = TSWasmErrorKindInstantiate;
878
+ format(
879
+ &wasm_error->message,
880
+ "missing exported symbol in wasm stdlib: %s",
881
+ STDLIB_SYMBOLS[i]
882
+ );
883
+ goto error;
884
+ }
885
+ }
886
+
887
+ wasm_exporttype_vec_delete(&export_types);
888
+ wasmtime_module_delete(stdlib_module);
889
+
890
+ // Add all of the lexer callback functions to the function table. Store their function table
891
+ // indices on the in-memory lexer.
892
+ uint64_t table_index;
893
+ error = wasmtime_table_grow(context, &function_table, lexer_definitions_len, &initializer, &table_index);
894
+ if (error) {
895
+ wasmtime_error_message(error, &message);
896
+ wasm_error->kind = TSWasmErrorKindAllocate;
897
+ format(
898
+ &wasm_error->message,
899
+ "failed to grow wasm table to initial size: %.*s",
900
+ (int)message.size, message.data
901
+ );
902
+ goto error;
903
+ }
904
+ for (unsigned i = 0; i < lexer_definitions_len; i++) {
905
+ FunctionDefinition *definition = &lexer_definitions[i];
906
+ wasmtime_func_t func = {function_table.store_id, *definition->storage_location};
907
+ wasmtime_val_t func_val = {.kind = WASMTIME_FUNCREF, .of.funcref = func};
908
+ error = wasmtime_table_set(context, &function_table, table_index, &func_val);
909
+ ts_assert(!error);
910
+ *(int32_t *)(definition->storage_location) = table_index;
911
+ table_index++;
912
+ }
913
+
914
+ self->current_function_table_offset = table_index;
915
+ self->lexer_address = initial_memory_pages * MEMORY_PAGE_SIZE;
916
+ self->current_memory_offset = self->lexer_address + sizeof(LexerInWasmMemory);
917
+
918
+ // Grow the memory enough to hold the builtin lexer and serialization buffer.
919
+ uint32_t new_pages_needed = (self->current_memory_offset - self->lexer_address - 1) / MEMORY_PAGE_SIZE + 1;
920
+ uint64_t prev_memory_size;
921
+ wasmtime_memory_grow(context, &memory, new_pages_needed, &prev_memory_size);
922
+
923
+ uint8_t *memory_data = wasmtime_memory_data(context, &memory);
924
+ memcpy(&memory_data[self->lexer_address], &lexer, sizeof(lexer));
925
+ return self;
926
+
927
+ error:
928
+ ts_free(self);
929
+ if (stdlib_module) wasmtime_module_delete(stdlib_module);
930
+ if (store) wasmtime_store_delete(store);
931
+ if (import_types.size) wasm_importtype_vec_delete(&import_types);
932
+ if (memory_type) wasm_memorytype_delete(memory_type);
933
+ if (table_type) wasm_tabletype_delete(table_type);
934
+ if (trap) wasm_trap_delete(trap);
935
+ if (error) wasmtime_error_delete(error);
936
+ if (message.size) wasm_byte_vec_delete(&message);
937
+ if (export_types.size) wasm_exporttype_vec_delete(&export_types);
938
+ if (imports) ts_free(imports);
939
+ return NULL;
940
+ }
941
+
942
+ void ts_wasm_store_delete(TSWasmStore *self) {
943
+ if (!self) return;
944
+ ts_free(self->stdlib_fn_indices);
945
+ wasm_globaltype_delete(self->const_i32_type);
946
+ wasmtime_store_delete(self->store);
947
+ wasm_engine_delete(self->engine);
948
+ for (unsigned i = 0; i < self->language_instances.size; i++) {
949
+ LanguageWasmInstance *instance = &self->language_instances.contents[i];
950
+ language_id_delete(instance->language_id);
951
+ }
952
+ array_delete(&self->language_instances);
953
+ ts_free(self);
954
+ }
955
+
956
+ size_t ts_wasm_store_language_count(const TSWasmStore *self) {
957
+ size_t result = 0;
958
+ for (unsigned i = 0; i < self->language_instances.size; i++) {
959
+ const WasmLanguageId *id = self->language_instances.contents[i].language_id;
960
+ if (!id->is_language_deleted) {
961
+ result++;
962
+ }
963
+ }
964
+ return result;
965
+ }
966
+
967
+ static uint32_t ts_wasm_store__heap_address(TSWasmStore *self) {
968
+ return self->current_memory_offset + TREE_SITTER_SERIALIZATION_BUFFER_SIZE;
969
+ }
970
+
971
+ static uint32_t ts_wasm_store__serialization_buffer_address(TSWasmStore *self) {
972
+ return self->current_memory_offset;
973
+ }
974
+
975
+ static bool ts_wasm_store__instantiate(
976
+ TSWasmStore *self,
977
+ wasmtime_module_t *module,
978
+ const char *language_name,
979
+ const WasmDylinkInfo *dylink_info,
980
+ wasmtime_instance_t *result,
981
+ int32_t *language_address,
982
+ char **error_message
983
+ ) {
984
+ wasmtime_error_t *error = NULL;
985
+ wasm_trap_t *trap = NULL;
986
+ wasm_message_t message = WASM_EMPTY_VEC;
987
+ char *language_function_name = NULL;
988
+ wasmtime_extern_t *imports = NULL;
989
+ wasmtime_context_t *context = wasmtime_store_context(self->store);
990
+
991
+ // Grow the function table to make room for the new functions.
992
+ wasmtime_val_t initializer = {.kind = WASMTIME_FUNCREF};
993
+ uint64_t prev_table_size;
994
+ error = wasmtime_table_grow(context, &self->function_table, dylink_info->table_size, &initializer, &prev_table_size);
995
+ if (error) {
996
+ format(error_message, "invalid function table size %u", dylink_info->table_size);
997
+ goto error;
998
+ }
999
+
1000
+ // Grow the memory to make room for the new data.
1001
+ uint32_t needed_memory_size = ts_wasm_store__heap_address(self) + dylink_info->memory_size;
1002
+ uint32_t current_memory_size = wasmtime_memory_data_size(context, &self->memory);
1003
+ if (needed_memory_size > current_memory_size) {
1004
+ uint32_t pages_to_grow = (
1005
+ needed_memory_size - current_memory_size + MEMORY_PAGE_SIZE - 1) /
1006
+ MEMORY_PAGE_SIZE;
1007
+ uint64_t prev_memory_size;
1008
+ error = wasmtime_memory_grow(context, &self->memory, pages_to_grow, &prev_memory_size);
1009
+ if (error) {
1010
+ format(error_message, "invalid memory size %u", dylink_info->memory_size);
1011
+ goto error;
1012
+ }
1013
+ }
1014
+
1015
+ // Construct the language function name as string.
1016
+ format(&language_function_name, "tree_sitter_%s", language_name);
1017
+
1018
+ const uint64_t store_id = self->function_table.store_id;
1019
+
1020
+ // Build the imports list for the module.
1021
+ wasm_importtype_vec_t import_types = WASM_EMPTY_VEC;
1022
+ wasmtime_module_imports(module, &import_types);
1023
+ imports = ts_calloc(import_types.size, sizeof(wasmtime_extern_t));
1024
+
1025
+ for (unsigned i = 0; i < import_types.size; i++) {
1026
+ const wasm_importtype_t *import_type = import_types.data[i];
1027
+ const wasm_name_t *import_name = wasm_importtype_name(import_type);
1028
+ if (import_name->size == 0) {
1029
+ format(error_message, "empty import name");
1030
+ goto error;
1031
+ }
1032
+
1033
+ if (ts_wasm_store__provide_builtin_import(self, import_name, &imports[i])) {
1034
+ continue;
1035
+ }
1036
+
1037
+ bool defined_in_stdlib = false;
1038
+ for (unsigned j = 0; j < array_len(STDLIB_SYMBOLS); j++) {
1039
+ if (name_eq(import_name, STDLIB_SYMBOLS[j])) {
1040
+ uint16_t address = self->stdlib_fn_indices[j];
1041
+ imports[i] = (wasmtime_extern_t) {.kind = WASMTIME_EXTERN_FUNC, .of.func = {store_id, address}};
1042
+ defined_in_stdlib = true;
1043
+ break;
1044
+ }
1045
+ }
1046
+
1047
+ if (!defined_in_stdlib) {
1048
+ format(
1049
+ error_message,
1050
+ "invalid import '%.*s'\n",
1051
+ (int)import_name->size, import_name->data
1052
+ );
1053
+ goto error;
1054
+ }
1055
+ }
1056
+
1057
+ wasmtime_instance_t instance;
1058
+ error = wasmtime_instance_new(context, module, imports, import_types.size, &instance, &trap);
1059
+ wasm_importtype_vec_delete(&import_types);
1060
+ ts_free(imports);
1061
+ imports = NULL;
1062
+ if (error) {
1063
+ wasmtime_error_message(error, &message);
1064
+ format(
1065
+ error_message,
1066
+ "error instantiating wasm module: %.*s\n",
1067
+ (int)message.size, message.data
1068
+ );
1069
+ goto error;
1070
+ }
1071
+ if (trap) {
1072
+ wasm_trap_message(trap, &message);
1073
+ format(
1074
+ error_message,
1075
+ "trap when instantiating wasm module: %.*s\n",
1076
+ (int)message.size, message.data
1077
+ );
1078
+ goto error;
1079
+ }
1080
+
1081
+ self->current_memory_offset += dylink_info->memory_size;
1082
+ self->current_function_table_offset += dylink_info->table_size;
1083
+
1084
+ // Process the module's exports.
1085
+ bool found_language = false;
1086
+ wasmtime_extern_t language_extern;
1087
+ wasm_exporttype_vec_t export_types = WASM_EMPTY_VEC;
1088
+ wasmtime_module_exports(module, &export_types);
1089
+ for (unsigned i = 0; i < export_types.size; i++) {
1090
+ wasm_exporttype_t *export_type = export_types.data[i];
1091
+ const wasm_name_t *name = wasm_exporttype_name(export_type);
1092
+
1093
+ size_t name_len;
1094
+ char *export_name;
1095
+ wasmtime_extern_t export = {.kind = WASM_EXTERN_GLOBAL};
1096
+ bool exists = wasmtime_instance_export_nth(context, &instance, i, &export_name, &name_len, &export);
1097
+ ts_assert(exists);
1098
+
1099
+ // If the module exports an initialization or data-relocation function, call it.
1100
+ if (ts_wasm_store__call_module_initializer(self, name, &export, &trap)) {
1101
+ if (trap) {
1102
+ wasm_trap_message(trap, &message);
1103
+ format(
1104
+ error_message,
1105
+ "trap when calling data relocation function: %.*s\n",
1106
+ (int)message.size, message.data
1107
+ );
1108
+ goto error;
1109
+ }
1110
+ }
1111
+
1112
+ // Find the main language function for the module.
1113
+ else if (name_eq(name, language_function_name)) {
1114
+ language_extern = export;
1115
+ found_language = true;
1116
+ }
1117
+ }
1118
+ wasm_exporttype_vec_delete(&export_types);
1119
+
1120
+ if (!found_language) {
1121
+ format(
1122
+ error_message,
1123
+ "module did not contain language function: %s",
1124
+ language_function_name
1125
+ );
1126
+ goto error;
1127
+ }
1128
+
1129
+ // Invoke the language function to get the static address of the language object.
1130
+ wasmtime_func_t language_func = language_extern.of.func;
1131
+ wasmtime_val_t language_address_val;
1132
+ error = wasmtime_func_call(context, &language_func, NULL, 0, &language_address_val, 1, &trap);
1133
+ ts_assert(!error);
1134
+ if (trap) {
1135
+ wasm_trap_message(trap, &message);
1136
+ format(
1137
+ error_message,
1138
+ "trapped when calling language function: %s: %.*s\n",
1139
+ language_function_name, (int)message.size, message.data
1140
+ );
1141
+ goto error;
1142
+ }
1143
+
1144
+ if (language_address_val.kind != WASMTIME_I32) {
1145
+ format(
1146
+ error_message,
1147
+ "language function did not return an integer: %s\n",
1148
+ language_function_name
1149
+ );
1150
+ goto error;
1151
+ }
1152
+
1153
+ ts_free(language_function_name);
1154
+ *result = instance;
1155
+ *language_address = language_address_val.of.i32;
1156
+ return true;
1157
+
1158
+ error:
1159
+ if (language_function_name) ts_free(language_function_name);
1160
+ if (message.size) wasm_byte_vec_delete(&message);
1161
+ if (error) wasmtime_error_delete(error);
1162
+ if (trap) wasm_trap_delete(trap);
1163
+ if (imports) ts_free(imports);
1164
+ return false;
1165
+ }
1166
+
1167
+ static bool ts_wasm_store__sentinel_lex_fn(TSLexer *_lexer, TSStateId state) {
1168
+ return false;
1169
+ }
1170
+
1171
+ const TSLanguage *ts_wasm_store_load_language(
1172
+ TSWasmStore *self,
1173
+ const char *language_name,
1174
+ const char *wasm,
1175
+ uint32_t wasm_len,
1176
+ TSWasmError *wasm_error
1177
+ ) {
1178
+ WasmDylinkInfo dylink_info;
1179
+ wasmtime_module_t *module = NULL;
1180
+ wasmtime_error_t *error = NULL;
1181
+ wasm_error->kind = TSWasmErrorKindNone;
1182
+
1183
+ if (!wasm_dylink_info__parse((const unsigned char *)wasm, wasm_len, &dylink_info)) {
1184
+ wasm_error->kind = TSWasmErrorKindParse;
1185
+ format(&wasm_error->message, "failed to parse dylink section of wasm module");
1186
+ goto error;
1187
+ }
1188
+
1189
+ // Compile the wasm code.
1190
+ error = wasmtime_module_new(self->engine, (const uint8_t *)wasm, wasm_len, &module);
1191
+ if (error) {
1192
+ wasm_message_t message;
1193
+ wasmtime_error_message(error, &message);
1194
+ wasm_error->kind = TSWasmErrorKindCompile;
1195
+ format(&wasm_error->message, "error compiling wasm module: %.*s", (int)message.size, message.data);
1196
+ wasm_byte_vec_delete(&message);
1197
+ goto error;
1198
+ }
1199
+
1200
+ // Instantiate the module in this store.
1201
+ wasmtime_instance_t instance;
1202
+ int32_t language_address;
1203
+ if (!ts_wasm_store__instantiate(
1204
+ self,
1205
+ module,
1206
+ language_name,
1207
+ &dylink_info,
1208
+ &instance,
1209
+ &language_address,
1210
+ &wasm_error->message
1211
+ )) {
1212
+ wasm_error->kind = TSWasmErrorKindInstantiate;
1213
+ goto error;
1214
+ }
1215
+
1216
+ // Copy all of the static data out of the language object in wasm memory,
1217
+ // constructing a native language object.
1218
+ LanguageInWasmMemory wasm_language;
1219
+ wasmtime_context_t *context = wasmtime_store_context(self->store);
1220
+ const uint8_t *memory = wasmtime_memory_data(context, &self->memory);
1221
+ memcpy(&wasm_language, &memory[language_address], sizeof(LanguageInWasmMemory));
1222
+
1223
+ bool has_supertypes =
1224
+ wasm_language.abi_version > LANGUAGE_VERSION_WITH_RESERVED_WORDS &&
1225
+ wasm_language.supertype_count > 0;
1226
+
1227
+ int32_t addresses[] = {
1228
+ wasm_language.parse_table,
1229
+ wasm_language.small_parse_table,
1230
+ wasm_language.small_parse_table_map,
1231
+ wasm_language.parse_actions,
1232
+ wasm_language.symbol_names,
1233
+ wasm_language.field_names,
1234
+ wasm_language.field_map_slices,
1235
+ wasm_language.field_map_entries,
1236
+ wasm_language.symbol_metadata,
1237
+ wasm_language.public_symbol_map,
1238
+ wasm_language.alias_map,
1239
+ wasm_language.alias_sequences,
1240
+ wasm_language.lex_modes,
1241
+ wasm_language.lex_fn,
1242
+ wasm_language.keyword_lex_fn,
1243
+ wasm_language.primary_state_ids,
1244
+ wasm_language.name,
1245
+ wasm_language.reserved_words,
1246
+ has_supertypes ? wasm_language.supertype_symbols : 0,
1247
+ has_supertypes ? wasm_language.supertype_map_entries : 0,
1248
+ has_supertypes ? wasm_language.supertype_map_slices : 0,
1249
+ wasm_language.external_token_count > 0 ? wasm_language.external_scanner.states : 0,
1250
+ wasm_language.external_token_count > 0 ? wasm_language.external_scanner.symbol_map : 0,
1251
+ wasm_language.external_token_count > 0 ? wasm_language.external_scanner.create : 0,
1252
+ wasm_language.external_token_count > 0 ? wasm_language.external_scanner.destroy : 0,
1253
+ wasm_language.external_token_count > 0 ? wasm_language.external_scanner.scan : 0,
1254
+ wasm_language.external_token_count > 0 ? wasm_language.external_scanner.serialize : 0,
1255
+ wasm_language.external_token_count > 0 ? wasm_language.external_scanner.deserialize : 0,
1256
+ language_address,
1257
+ self->current_memory_offset,
1258
+ };
1259
+ uint32_t address_count = array_len(addresses);
1260
+
1261
+ TSLanguage *language = ts_calloc(1, sizeof(TSLanguage));
1262
+ StringData symbol_name_buffer = array_new();
1263
+ StringData field_name_buffer = array_new();
1264
+
1265
+ *language = (TSLanguage) {
1266
+ .abi_version = wasm_language.abi_version,
1267
+ .symbol_count = wasm_language.symbol_count,
1268
+ .alias_count = wasm_language.alias_count,
1269
+ .token_count = wasm_language.token_count,
1270
+ .external_token_count = wasm_language.external_token_count,
1271
+ .state_count = wasm_language.state_count,
1272
+ .large_state_count = wasm_language.large_state_count,
1273
+ .production_id_count = wasm_language.production_id_count,
1274
+ .field_count = wasm_language.field_count,
1275
+ .supertype_count = wasm_language.supertype_count,
1276
+ .max_alias_sequence_length = wasm_language.max_alias_sequence_length,
1277
+ .keyword_capture_token = wasm_language.keyword_capture_token,
1278
+ .metadata = wasm_language.metadata,
1279
+ .parse_table = copy(
1280
+ &memory[wasm_language.parse_table],
1281
+ wasm_language.large_state_count * wasm_language.symbol_count * sizeof(uint16_t)
1282
+ ),
1283
+ .parse_actions = copy_unsized_static_array(
1284
+ memory,
1285
+ wasm_language.parse_actions,
1286
+ addresses,
1287
+ address_count
1288
+ ),
1289
+ .symbol_names = copy_strings(
1290
+ memory,
1291
+ wasm_language.symbol_names,
1292
+ wasm_language.symbol_count + wasm_language.alias_count,
1293
+ &symbol_name_buffer
1294
+ ),
1295
+ .symbol_metadata = copy(
1296
+ &memory[wasm_language.symbol_metadata],
1297
+ (wasm_language.symbol_count + wasm_language.alias_count) * sizeof(TSSymbolMetadata)
1298
+ ),
1299
+ .public_symbol_map = copy(
1300
+ &memory[wasm_language.public_symbol_map],
1301
+ (wasm_language.symbol_count + wasm_language.alias_count) * sizeof(TSSymbol)
1302
+ ),
1303
+ .lex_modes = copy(
1304
+ &memory[wasm_language.lex_modes],
1305
+ wasm_language.state_count * sizeof(TSLexerMode)
1306
+ ),
1307
+ };
1308
+
1309
+ if (language->field_count > 0 && language->production_id_count > 0) {
1310
+ language->field_map_slices = copy(
1311
+ &memory[wasm_language.field_map_slices],
1312
+ wasm_language.production_id_count * sizeof(TSMapSlice)
1313
+ );
1314
+
1315
+ // Determine the number of field map entries by finding the greatest index
1316
+ // in any of the slices.
1317
+ uint32_t field_map_entry_count = 0;
1318
+ for (uint32_t i = 0; i < wasm_language.production_id_count; i++) {
1319
+ TSMapSlice slice = language->field_map_slices[i];
1320
+ uint32_t slice_end = slice.index + slice.length;
1321
+ if (slice_end > field_map_entry_count) {
1322
+ field_map_entry_count = slice_end;
1323
+ }
1324
+ }
1325
+
1326
+ language->field_map_entries = copy(
1327
+ &memory[wasm_language.field_map_entries],
1328
+ field_map_entry_count * sizeof(TSFieldMapEntry)
1329
+ );
1330
+ language->field_names = copy_strings(
1331
+ memory,
1332
+ wasm_language.field_names,
1333
+ wasm_language.field_count + 1,
1334
+ &field_name_buffer
1335
+ );
1336
+ }
1337
+
1338
+ if (has_supertypes) {
1339
+ language->supertype_symbols = copy(
1340
+ &memory[wasm_language.supertype_symbols],
1341
+ wasm_language.supertype_count * sizeof(TSSymbol)
1342
+ );
1343
+
1344
+ // Determine the number of supertype map slices by finding the greatest
1345
+ // supertype ID.
1346
+ int largest_supertype = 0;
1347
+ for (unsigned i = 0; i < language->supertype_count; i++) {
1348
+ TSSymbol supertype = language->supertype_symbols[i];
1349
+ if (supertype > largest_supertype) {
1350
+ largest_supertype = supertype;
1351
+ }
1352
+ }
1353
+
1354
+ language->supertype_map_slices = copy(
1355
+ &memory[wasm_language.supertype_map_slices],
1356
+ (largest_supertype + 1) * sizeof(TSMapSlice)
1357
+ );
1358
+
1359
+ TSSymbol last_supertype = language->supertype_symbols[language->supertype_count - 1];
1360
+ TSMapSlice last_slice = language->supertype_map_slices[last_supertype];
1361
+ uint32_t supertype_map_entry_count = last_slice.index + last_slice.length;
1362
+
1363
+ language->supertype_map_entries = copy(
1364
+ &memory[wasm_language.supertype_map_entries],
1365
+ supertype_map_entry_count * sizeof(char *)
1366
+ );
1367
+ }
1368
+
1369
+ if (language->max_alias_sequence_length > 0 && language->production_id_count > 0) {
1370
+ // The alias map contains symbols, alias counts, and aliases, terminated by a null symbol.
1371
+ int32_t alias_map_size = 0;
1372
+ for (;;) {
1373
+ TSSymbol symbol;
1374
+ memcpy(&symbol, &memory[wasm_language.alias_map + alias_map_size], sizeof(symbol));
1375
+ alias_map_size += sizeof(TSSymbol);
1376
+ if (symbol == 0) break;
1377
+ uint16_t value_count;
1378
+ memcpy(&value_count, &memory[wasm_language.alias_map + alias_map_size], sizeof(value_count));
1379
+ alias_map_size += value_count * sizeof(TSSymbol);
1380
+ }
1381
+ language->alias_map = copy(
1382
+ &memory[wasm_language.alias_map],
1383
+ alias_map_size * sizeof(TSSymbol)
1384
+ );
1385
+ language->alias_sequences = copy(
1386
+ &memory[wasm_language.alias_sequences],
1387
+ wasm_language.production_id_count * wasm_language.max_alias_sequence_length * sizeof(TSSymbol)
1388
+ );
1389
+ }
1390
+
1391
+ if (language->state_count > language->large_state_count) {
1392
+ uint32_t small_state_count = wasm_language.state_count - wasm_language.large_state_count;
1393
+ language->small_parse_table_map = copy(
1394
+ &memory[wasm_language.small_parse_table_map],
1395
+ small_state_count * sizeof(uint32_t)
1396
+ );
1397
+ language->small_parse_table = copy_unsized_static_array(
1398
+ memory,
1399
+ wasm_language.small_parse_table,
1400
+ addresses,
1401
+ address_count
1402
+ );
1403
+ }
1404
+
1405
+ if (language->abi_version >= LANGUAGE_VERSION_WITH_PRIMARY_STATES) {
1406
+ language->primary_state_ids = copy(
1407
+ &memory[wasm_language.primary_state_ids],
1408
+ wasm_language.state_count * sizeof(TSStateId)
1409
+ );
1410
+ }
1411
+
1412
+ if (language->abi_version >= LANGUAGE_VERSION_WITH_RESERVED_WORDS) {
1413
+ language->name = copy_string(memory, wasm_language.name);
1414
+ language->reserved_words = copy(
1415
+ &memory[wasm_language.reserved_words],
1416
+ wasm_language.max_reserved_word_set_size * sizeof(TSSymbol)
1417
+ );
1418
+ language->max_reserved_word_set_size = wasm_language.max_reserved_word_set_size;
1419
+ }
1420
+
1421
+ if (language->external_token_count > 0) {
1422
+ language->external_scanner.symbol_map = copy(
1423
+ &memory[wasm_language.external_scanner.symbol_map],
1424
+ wasm_language.external_token_count * sizeof(TSSymbol)
1425
+ );
1426
+ language->external_scanner.states = (void *)(uintptr_t)wasm_language.external_scanner.states;
1427
+ }
1428
+
1429
+ unsigned name_len = strlen(language_name);
1430
+ char *name = ts_malloc(name_len + 1);
1431
+ memcpy(name, language_name, name_len);
1432
+ name[name_len] = '\0';
1433
+
1434
+ LanguageWasmModule *language_module = ts_malloc(sizeof(LanguageWasmModule));
1435
+ *language_module = (LanguageWasmModule) {
1436
+ .language_id = language_id_new(),
1437
+ .module = module,
1438
+ .name = name,
1439
+ .symbol_name_buffer = symbol_name_buffer.contents,
1440
+ .field_name_buffer = field_name_buffer.contents,
1441
+ .dylink_info = dylink_info,
1442
+ .ref_count = 1,
1443
+ };
1444
+
1445
+ // The lex functions are not used for wasm languages. Use those two fields
1446
+ // to mark this language as WASM-based and to store the language's
1447
+ // WASM-specific data.
1448
+ language->lex_fn = ts_wasm_store__sentinel_lex_fn;
1449
+ language->keyword_lex_fn = (bool (*)(TSLexer *, TSStateId))language_module;
1450
+
1451
+ // Clear out any instances of languages that have been deleted.
1452
+ for (unsigned i = 0; i < self->language_instances.size; i++) {
1453
+ WasmLanguageId *id = self->language_instances.contents[i].language_id;
1454
+ if (id->is_language_deleted) {
1455
+ language_id_delete(id);
1456
+ array_erase(&self->language_instances, i);
1457
+ i--;
1458
+ }
1459
+ }
1460
+
1461
+ // Store this store's instance of this language module.
1462
+ array_push(&self->language_instances, ((LanguageWasmInstance) {
1463
+ .language_id = language_id_clone(language_module->language_id),
1464
+ .instance = instance,
1465
+ .external_states_address = wasm_language.external_scanner.states,
1466
+ .lex_main_fn_index = wasm_language.lex_fn,
1467
+ .lex_keyword_fn_index = wasm_language.keyword_lex_fn,
1468
+ .scanner_create_fn_index = wasm_language.external_scanner.create,
1469
+ .scanner_destroy_fn_index = wasm_language.external_scanner.destroy,
1470
+ .scanner_serialize_fn_index = wasm_language.external_scanner.serialize,
1471
+ .scanner_deserialize_fn_index = wasm_language.external_scanner.deserialize,
1472
+ .scanner_scan_fn_index = wasm_language.external_scanner.scan,
1473
+ }));
1474
+
1475
+ return language;
1476
+
1477
+ error:
1478
+ if (module) wasmtime_module_delete(module);
1479
+ return NULL;
1480
+ }
1481
+
1482
+ bool ts_wasm_store_add_language(
1483
+ TSWasmStore *self,
1484
+ const TSLanguage *language,
1485
+ uint32_t *index
1486
+ ) {
1487
+ wasmtime_context_t *context = wasmtime_store_context(self->store);
1488
+ const LanguageWasmModule *language_module = (void *)language->keyword_lex_fn;
1489
+
1490
+ // Search for this store's instance of the language module. Also clear out any
1491
+ // instances of languages that have been deleted.
1492
+ bool exists = false;
1493
+ for (unsigned i = 0; i < self->language_instances.size; i++) {
1494
+ WasmLanguageId *id = self->language_instances.contents[i].language_id;
1495
+ if (id->is_language_deleted) {
1496
+ language_id_delete(id);
1497
+ array_erase(&self->language_instances, i);
1498
+ i--;
1499
+ } else if (id == language_module->language_id) {
1500
+ exists = true;
1501
+ *index = i;
1502
+ }
1503
+ }
1504
+
1505
+ // If the language module has not been instantiated in this store, then add
1506
+ // it to this store.
1507
+ if (!exists) {
1508
+ *index = self->language_instances.size;
1509
+ char *message;
1510
+ wasmtime_instance_t instance;
1511
+ int32_t language_address;
1512
+ if (!ts_wasm_store__instantiate(
1513
+ self,
1514
+ language_module->module,
1515
+ language_module->name,
1516
+ &language_module->dylink_info,
1517
+ &instance,
1518
+ &language_address,
1519
+ &message
1520
+ )) {
1521
+ ts_free(message);
1522
+ return false;
1523
+ }
1524
+
1525
+ LanguageInWasmMemory wasm_language;
1526
+ const uint8_t *memory = wasmtime_memory_data(context, &self->memory);
1527
+ memcpy(&wasm_language, &memory[language_address], sizeof(LanguageInWasmMemory));
1528
+ array_push(&self->language_instances, ((LanguageWasmInstance) {
1529
+ .language_id = language_id_clone(language_module->language_id),
1530
+ .instance = instance,
1531
+ .external_states_address = wasm_language.external_scanner.states,
1532
+ .lex_main_fn_index = wasm_language.lex_fn,
1533
+ .lex_keyword_fn_index = wasm_language.keyword_lex_fn,
1534
+ .scanner_create_fn_index = wasm_language.external_scanner.create,
1535
+ .scanner_destroy_fn_index = wasm_language.external_scanner.destroy,
1536
+ .scanner_serialize_fn_index = wasm_language.external_scanner.serialize,
1537
+ .scanner_deserialize_fn_index = wasm_language.external_scanner.deserialize,
1538
+ .scanner_scan_fn_index = wasm_language.external_scanner.scan,
1539
+ }));
1540
+ }
1541
+
1542
+ return true;
1543
+ }
1544
+
1545
+ void ts_wasm_store_reset_heap(TSWasmStore *self) {
1546
+ wasmtime_context_t *context = wasmtime_store_context(self->store);
1547
+ wasmtime_func_t func = {
1548
+ self->function_table.store_id,
1549
+ self->builtin_fn_indices.reset_heap
1550
+ };
1551
+ wasm_trap_t *trap = NULL;
1552
+ wasmtime_val_t args[1] = {
1553
+ {.of.i32 = ts_wasm_store__heap_address(self), .kind = WASMTIME_I32},
1554
+ };
1555
+
1556
+ wasmtime_error_t *error = wasmtime_func_call(context, &func, args, 1, NULL, 0, &trap);
1557
+ ts_assert(!error);
1558
+ ts_assert(!trap);
1559
+ }
1560
+
1561
+ bool ts_wasm_store_start(TSWasmStore *self, TSLexer *lexer, const TSLanguage *language) {
1562
+ uint32_t instance_index;
1563
+ if (!ts_wasm_store_add_language(self, language, &instance_index)) return false;
1564
+ self->current_lexer = lexer;
1565
+ self->current_instance = &self->language_instances.contents[instance_index];
1566
+ self->has_error = false;
1567
+ ts_wasm_store_reset_heap(self);
1568
+ return true;
1569
+ }
1570
+
1571
+ void ts_wasm_store_reset(TSWasmStore *self) {
1572
+ self->current_lexer = NULL;
1573
+ self->current_instance = NULL;
1574
+ self->has_error = false;
1575
+ ts_wasm_store_reset_heap(self);
1576
+ }
1577
+
1578
+ static void ts_wasm_store__call(
1579
+ TSWasmStore *self,
1580
+ int32_t function_index,
1581
+ wasmtime_val_raw_t *args_and_results,
1582
+ size_t args_and_results_len
1583
+ ) {
1584
+ wasmtime_context_t *context = wasmtime_store_context(self->store);
1585
+ wasmtime_val_t value;
1586
+ bool succeeded = wasmtime_table_get(context, &self->function_table, function_index, &value);
1587
+ ts_assert(succeeded);
1588
+ ts_assert(value.kind == WASMTIME_FUNCREF);
1589
+ wasmtime_func_t func = value.of.funcref;
1590
+
1591
+ wasm_trap_t *trap = NULL;
1592
+ wasmtime_error_t *error = wasmtime_func_call_unchecked(context, &func, args_and_results, args_and_results_len, &trap);
1593
+ if (error) {
1594
+ // wasm_message_t message;
1595
+ // wasmtime_error_message(error, &message);
1596
+ // fprintf(
1597
+ // stderr,
1598
+ // "error in wasm module: %.*s\n",
1599
+ // (int)message.size, message.data
1600
+ // );
1601
+ wasmtime_error_delete(error);
1602
+ self->has_error = true;
1603
+ } else if (trap) {
1604
+ // wasm_message_t message;
1605
+ // wasm_trap_message(trap, &message);
1606
+ // fprintf(
1607
+ // stderr,
1608
+ // "trap in wasm module: %.*s\n",
1609
+ // (int)message.size, message.data
1610
+ // );
1611
+ wasm_trap_delete(trap);
1612
+ self->has_error = true;
1613
+ }
1614
+ }
1615
+
1616
+ // The data fields of TSLexer, without the function pointers.
1617
+ //
1618
+ // This portion of the struct needs to be copied in and out
1619
+ // of wasm memory before and after calling a scan function.
1620
+ typedef struct {
1621
+ int32_t lookahead;
1622
+ TSSymbol result_symbol;
1623
+ } TSLexerDataPrefix;
1624
+
1625
+ static bool ts_wasm_store__call_lex_function(TSWasmStore *self, unsigned function_index, TSStateId state) {
1626
+ wasmtime_context_t *context = wasmtime_store_context(self->store);
1627
+ uint8_t *memory_data = wasmtime_memory_data(context, &self->memory);
1628
+ memcpy(
1629
+ &memory_data[self->lexer_address],
1630
+ self->current_lexer,
1631
+ sizeof(TSLexerDataPrefix)
1632
+ );
1633
+
1634
+ wasmtime_val_raw_t args[2] = {
1635
+ {.i32 = self->lexer_address},
1636
+ {.i32 = state},
1637
+ };
1638
+ ts_wasm_store__call(self, function_index, args, 2);
1639
+ if (self->has_error) return false;
1640
+ bool result = args[0].i32;
1641
+
1642
+ memcpy(
1643
+ self->current_lexer,
1644
+ &memory_data[self->lexer_address],
1645
+ sizeof(TSLexerDataPrefix)
1646
+ );
1647
+ return result;
1648
+ }
1649
+
1650
+ bool ts_wasm_store_call_lex_main(TSWasmStore *self, TSStateId state) {
1651
+ return ts_wasm_store__call_lex_function(
1652
+ self,
1653
+ self->current_instance->lex_main_fn_index,
1654
+ state
1655
+ );
1656
+ }
1657
+
1658
+ bool ts_wasm_store_call_lex_keyword(TSWasmStore *self, TSStateId state) {
1659
+ return ts_wasm_store__call_lex_function(
1660
+ self,
1661
+ self->current_instance->lex_keyword_fn_index,
1662
+ state
1663
+ );
1664
+ }
1665
+
1666
+ uint32_t ts_wasm_store_call_scanner_create(TSWasmStore *self) {
1667
+ wasmtime_val_raw_t args[1] = {{.i32 = 0}};
1668
+ ts_wasm_store__call(self, self->current_instance->scanner_create_fn_index, args, 1);
1669
+ if (self->has_error) return 0;
1670
+ return args[0].i32;
1671
+ }
1672
+
1673
+ void ts_wasm_store_call_scanner_destroy(TSWasmStore *self, uint32_t scanner_address) {
1674
+ if (self->current_instance) {
1675
+ wasmtime_val_raw_t args[1] = {{.i32 = scanner_address}};
1676
+ ts_wasm_store__call(self, self->current_instance->scanner_destroy_fn_index, args, 1);
1677
+ }
1678
+ }
1679
+
1680
+ bool ts_wasm_store_call_scanner_scan(
1681
+ TSWasmStore *self,
1682
+ uint32_t scanner_address,
1683
+ uint32_t valid_tokens_ix
1684
+ ) {
1685
+ wasmtime_context_t *context = wasmtime_store_context(self->store);
1686
+ uint8_t *memory_data = wasmtime_memory_data(context, &self->memory);
1687
+
1688
+ memcpy(
1689
+ &memory_data[self->lexer_address],
1690
+ self->current_lexer,
1691
+ sizeof(TSLexerDataPrefix)
1692
+ );
1693
+
1694
+ uint32_t valid_tokens_address =
1695
+ self->current_instance->external_states_address +
1696
+ (valid_tokens_ix * sizeof(bool));
1697
+ wasmtime_val_raw_t args[3] = {
1698
+ {.i32 = scanner_address},
1699
+ {.i32 = self->lexer_address},
1700
+ {.i32 = valid_tokens_address}
1701
+ };
1702
+ ts_wasm_store__call(self, self->current_instance->scanner_scan_fn_index, args, 3);
1703
+ if (self->has_error) return false;
1704
+
1705
+ memcpy(
1706
+ self->current_lexer,
1707
+ &memory_data[self->lexer_address],
1708
+ sizeof(TSLexerDataPrefix)
1709
+ );
1710
+ return args[0].i32;
1711
+ }
1712
+
1713
+ uint32_t ts_wasm_store_call_scanner_serialize(
1714
+ TSWasmStore *self,
1715
+ uint32_t scanner_address,
1716
+ char *buffer
1717
+ ) {
1718
+ wasmtime_context_t *context = wasmtime_store_context(self->store);
1719
+ uint8_t *memory_data = wasmtime_memory_data(context, &self->memory);
1720
+ uint32_t serialization_buffer_address = ts_wasm_store__serialization_buffer_address(self);
1721
+
1722
+ wasmtime_val_raw_t args[2] = {
1723
+ {.i32 = scanner_address},
1724
+ {.i32 = serialization_buffer_address},
1725
+ };
1726
+ ts_wasm_store__call(self, self->current_instance->scanner_serialize_fn_index, args, 2);
1727
+ if (self->has_error) return 0;
1728
+
1729
+ uint32_t length = args[0].i32;
1730
+ if (length > TREE_SITTER_SERIALIZATION_BUFFER_SIZE) {
1731
+ self->has_error = true;
1732
+ return 0;
1733
+ }
1734
+
1735
+ if (length > 0) {
1736
+ memcpy(
1737
+ ((Lexer *)self->current_lexer)->debug_buffer,
1738
+ &memory_data[serialization_buffer_address],
1739
+ length
1740
+ );
1741
+ }
1742
+ return length;
1743
+ }
1744
+
1745
+ void ts_wasm_store_call_scanner_deserialize(
1746
+ TSWasmStore *self,
1747
+ uint32_t scanner_address,
1748
+ const char *buffer,
1749
+ unsigned length
1750
+ ) {
1751
+ wasmtime_context_t *context = wasmtime_store_context(self->store);
1752
+ uint8_t *memory_data = wasmtime_memory_data(context, &self->memory);
1753
+ uint32_t serialization_buffer_address = ts_wasm_store__serialization_buffer_address(self);
1754
+
1755
+ if (length > 0) {
1756
+ memcpy(
1757
+ &memory_data[serialization_buffer_address],
1758
+ buffer,
1759
+ length
1760
+ );
1761
+ }
1762
+
1763
+ wasmtime_val_raw_t args[3] = {
1764
+ {.i32 = scanner_address},
1765
+ {.i32 = serialization_buffer_address},
1766
+ {.i32 = length},
1767
+ };
1768
+ ts_wasm_store__call(self, self->current_instance->scanner_deserialize_fn_index, args, 3);
1769
+ }
1770
+
1771
+ bool ts_wasm_store_has_error(const TSWasmStore *self) {
1772
+ return self->has_error;
1773
+ }
1774
+
1775
+ bool ts_language_is_wasm(const TSLanguage *self) {
1776
+ return self->lex_fn == ts_wasm_store__sentinel_lex_fn;
1777
+ }
1778
+
1779
+ static inline LanguageWasmModule *ts_language__wasm_module(const TSLanguage *self) {
1780
+ return (LanguageWasmModule *)self->keyword_lex_fn;
1781
+ }
1782
+
1783
+ void ts_wasm_language_retain(const TSLanguage *self) {
1784
+ LanguageWasmModule *module = ts_language__wasm_module(self);
1785
+ ts_assert(module->ref_count > 0);
1786
+ atomic_inc(&module->ref_count);
1787
+ }
1788
+
1789
+ void ts_wasm_language_release(const TSLanguage *self) {
1790
+ LanguageWasmModule *module = ts_language__wasm_module(self);
1791
+ ts_assert(module->ref_count > 0);
1792
+ if (atomic_dec(&module->ref_count) == 0) {
1793
+ // Update the language id to reflect that the language is deleted. This allows any wasm stores
1794
+ // that hold wasm instances for this language to delete those instances.
1795
+ atomic_inc(&module->language_id->is_language_deleted);
1796
+ language_id_delete(module->language_id);
1797
+
1798
+ ts_free((void *)module->field_name_buffer);
1799
+ ts_free((void *)module->symbol_name_buffer);
1800
+ ts_free((void *)module->name);
1801
+ wasmtime_module_delete(module->module);
1802
+ ts_free(module);
1803
+
1804
+ ts_free((void *)self->alias_map);
1805
+ ts_free((void *)self->alias_sequences);
1806
+ ts_free((void *)self->external_scanner.symbol_map);
1807
+ ts_free((void *)self->field_map_entries);
1808
+ ts_free((void *)self->field_map_slices);
1809
+ ts_free((void *)self->supertype_symbols);
1810
+ ts_free((void *)self->supertype_map_entries);
1811
+ ts_free((void *)self->supertype_map_slices);
1812
+ ts_free((void *)self->field_names);
1813
+ ts_free((void *)self->lex_modes);
1814
+ ts_free((void *)self->name);
1815
+ ts_free((void *)self->reserved_words);
1816
+ ts_free((void *)self->parse_actions);
1817
+ ts_free((void *)self->parse_table);
1818
+ ts_free((void *)self->primary_state_ids);
1819
+ ts_free((void *)self->public_symbol_map);
1820
+ ts_free((void *)self->small_parse_table);
1821
+ ts_free((void *)self->small_parse_table_map);
1822
+ ts_free((void *)self->symbol_metadata);
1823
+ ts_free((void *)self->symbol_names);
1824
+ ts_free((void *)self);
1825
+ }
1826
+ }
1827
+
1828
+ #ifdef _MSC_VER
1829
+ #pragma warning(pop)
1830
+ #elif defined(__GNUC__) || defined(__clang__)
1831
+ #pragma GCC diagnostic pop
1832
+ #endif
1833
+
1834
+ #else
1835
+
1836
+ // If the WASM feature is not enabled, define dummy versions of all of the
1837
+ // wasm-related functions.
1838
+
1839
+ void ts_wasm_store_delete(TSWasmStore *self) {
1840
+ (void)self;
1841
+ }
1842
+
1843
+ bool ts_wasm_store_start(
1844
+ TSWasmStore *self,
1845
+ TSLexer *lexer,
1846
+ const TSLanguage *language
1847
+ ) {
1848
+ (void)self;
1849
+ (void)lexer;
1850
+ (void)language;
1851
+ return false;
1852
+ }
1853
+
1854
+ void ts_wasm_store_reset(TSWasmStore *self) {
1855
+ (void)self;
1856
+ }
1857
+
1858
+ bool ts_wasm_store_call_lex_main(TSWasmStore *self, TSStateId state) {
1859
+ (void)self;
1860
+ (void)state;
1861
+ return false;
1862
+ }
1863
+
1864
+ bool ts_wasm_store_call_lex_keyword(TSWasmStore *self, TSStateId state) {
1865
+ (void)self;
1866
+ (void)state;
1867
+ return false;
1868
+ }
1869
+
1870
+ uint32_t ts_wasm_store_call_scanner_create(TSWasmStore *self) {
1871
+ (void)self;
1872
+ return 0;
1873
+ }
1874
+
1875
+ void ts_wasm_store_call_scanner_destroy(
1876
+ TSWasmStore *self,
1877
+ uint32_t scanner_address
1878
+ ) {
1879
+ (void)self;
1880
+ (void)scanner_address;
1881
+ }
1882
+
1883
+ bool ts_wasm_store_call_scanner_scan(
1884
+ TSWasmStore *self,
1885
+ uint32_t scanner_address,
1886
+ uint32_t valid_tokens_ix
1887
+ ) {
1888
+ (void)self;
1889
+ (void)scanner_address;
1890
+ (void)valid_tokens_ix;
1891
+ return false;
1892
+ }
1893
+
1894
+ uint32_t ts_wasm_store_call_scanner_serialize(
1895
+ TSWasmStore *self,
1896
+ uint32_t scanner_address,
1897
+ char *buffer
1898
+ ) {
1899
+ (void)self;
1900
+ (void)scanner_address;
1901
+ (void)buffer;
1902
+ return 0;
1903
+ }
1904
+
1905
+ void ts_wasm_store_call_scanner_deserialize(
1906
+ TSWasmStore *self,
1907
+ uint32_t scanner_address,
1908
+ const char *buffer,
1909
+ unsigned length
1910
+ ) {
1911
+ (void)self;
1912
+ (void)scanner_address;
1913
+ (void)buffer;
1914
+ (void)length;
1915
+ }
1916
+
1917
+ bool ts_wasm_store_has_error(const TSWasmStore *self) {
1918
+ (void)self;
1919
+ return false;
1920
+ }
1921
+
1922
+ bool ts_language_is_wasm(const TSLanguage *self) {
1923
+ (void)self;
1924
+ return false;
1925
+ }
1926
+
1927
+ void ts_wasm_language_retain(const TSLanguage *self) {
1928
+ (void)self;
1929
+ }
1930
+
1931
+ void ts_wasm_language_release(const TSLanguage *self) {
1932
+ (void)self;
1933
+ }
1934
+
1935
+ #endif