@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.
- package/README.md +9 -0
- package/dist/scripts/run-ts-bench-smoke.js +268 -0
- package/dist/scripts/ts-bench-adapter.js +251 -0
- package/dist/src/agent/config.js +2 -2
- package/dist/src/auto-allow.js +28 -0
- package/dist/src/benchmark/config.js +197 -0
- package/dist/src/benchmark/index.js +2 -0
- package/dist/src/benchmark/workspace-changes.js +125 -0
- package/dist/src/cli/args.js +13 -0
- package/dist/src/cli/benchmark-run.js +432 -0
- package/dist/src/cli/permissions-slash-command.js +50 -0
- package/dist/src/index.js +9 -2
- package/dist/src/indexer/plugin-loader.js +19 -1
- package/dist/src/indexer/project-index.js +35 -21
- package/dist/src/serve/agent-bridge.js +128 -1
- package/dist/src/serve/openai-compat.js +2 -2
- package/dist/src/serve/websocket.js +11 -0
- package/dist/src/tools/registry.js +10 -2
- package/dist/src/ui/app.js +8 -2
- package/dist/src/ui/cli-ink.js +13 -2
- package/dist/src/ui/components/permission-prompt.js +53 -0
- package/dist/src/ui/permission-gate.js +42 -0
- package/dist/src/ui/state/ui-store.js +13 -0
- package/dist/src/web/app.js +77 -5
- package/dist/src/web/index.html +58 -1
- package/dist/src/web/style.css +971 -1738
- package/dist/tests/agent.test.js +110 -0
- package/dist/tests/benchmark-config.test.js +80 -0
- package/dist/tests/benchmark-run.test.js +180 -0
- package/dist/tests/cli-args.test.js +22 -0
- package/dist/tests/cli-oneshot.integration.test.js +5 -0
- package/dist/tests/config.test.js +21 -0
- package/dist/tests/file-tools.test.js +36 -0
- package/dist/tests/harbor-adapter.test.js +57 -0
- package/dist/tests/indexer.test.js +1 -1
- package/dist/tests/permission-gate-cli.test.js +126 -0
- package/dist/tests/permission-gate.test.js +196 -0
- package/dist/tests/python-plugin.test.js +357 -0
- package/dist/tests/system-prompt.test.js +44 -9
- package/dist/tests/ts-bench-adapter.test.js +186 -0
- package/dist/tests/workspace-changes.test.js +82 -0
- package/node_modules/@minicode/agent-sdk/README.md +286 -90
- package/node_modules/@minicode/agent-sdk/dist/src/agent/agent.d.ts +40 -4
- package/node_modules/@minicode/agent-sdk/dist/src/agent/agent.d.ts.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/src/agent/agent.js +134 -27
- package/node_modules/@minicode/agent-sdk/dist/src/agent/agent.js.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/src/agent/structured-output.d.ts +42 -0
- package/node_modules/@minicode/agent-sdk/dist/src/agent/structured-output.d.ts.map +1 -0
- package/node_modules/@minicode/agent-sdk/dist/src/agent/structured-output.js +97 -0
- package/node_modules/@minicode/agent-sdk/dist/src/agent/structured-output.js.map +1 -0
- package/node_modules/@minicode/agent-sdk/dist/src/agent/types.d.ts +97 -2
- package/node_modules/@minicode/agent-sdk/dist/src/agent/types.d.ts.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/src/agent/types.js +15 -1
- package/node_modules/@minicode/agent-sdk/dist/src/agent/types.js.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/src/index.d.ts +10 -8
- package/node_modules/@minicode/agent-sdk/dist/src/index.d.ts.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/src/index.js +10 -6
- package/node_modules/@minicode/agent-sdk/dist/src/index.js.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/src/indexer/types.d.ts +8 -3
- package/node_modules/@minicode/agent-sdk/dist/src/indexer/types.d.ts.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/src/mcp/client-registry.d.ts +109 -0
- package/node_modules/@minicode/agent-sdk/dist/src/mcp/client-registry.d.ts.map +1 -0
- package/node_modules/@minicode/agent-sdk/dist/src/mcp/client-registry.js +237 -0
- package/node_modules/@minicode/agent-sdk/dist/src/mcp/client-registry.js.map +1 -0
- package/node_modules/@minicode/agent-sdk/dist/src/model/client.d.ts +5 -1
- package/node_modules/@minicode/agent-sdk/dist/src/model/client.d.ts.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/src/model/client.js +100 -8
- package/node_modules/@minicode/agent-sdk/dist/src/model/client.js.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/src/prompt/system-prompt.d.ts +31 -1
- package/node_modules/@minicode/agent-sdk/dist/src/prompt/system-prompt.d.ts.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/src/prompt/system-prompt.js +8 -7
- package/node_modules/@minicode/agent-sdk/dist/src/prompt/system-prompt.js.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/src/session/session.d.ts +8 -0
- package/node_modules/@minicode/agent-sdk/dist/src/session/session.d.ts.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/src/session/session.js +2 -0
- package/node_modules/@minicode/agent-sdk/dist/src/session/session.js.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/src/tools/edit-file.d.ts +10 -3
- package/node_modules/@minicode/agent-sdk/dist/src/tools/edit-file.d.ts.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/src/tools/edit-file.js +3 -3
- package/node_modules/@minicode/agent-sdk/dist/src/tools/edit-file.js.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/src/tools/list-files.d.ts +9 -2
- package/node_modules/@minicode/agent-sdk/dist/src/tools/list-files.d.ts.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/src/tools/list-files.js +2 -2
- package/node_modules/@minicode/agent-sdk/dist/src/tools/list-files.js.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/src/tools/read-file.d.ts +12 -2
- package/node_modules/@minicode/agent-sdk/dist/src/tools/read-file.d.ts.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/src/tools/read-file.js +3 -3
- package/node_modules/@minicode/agent-sdk/dist/src/tools/read-file.js.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/src/tools/run-command.d.ts +12 -2
- package/node_modules/@minicode/agent-sdk/dist/src/tools/run-command.d.ts.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/src/tools/run-command.js +5 -5
- package/node_modules/@minicode/agent-sdk/dist/src/tools/run-command.js.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/src/tools/search.d.ts +10 -2
- package/node_modules/@minicode/agent-sdk/dist/src/tools/search.d.ts.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/src/tools/search.js +5 -5
- package/node_modules/@minicode/agent-sdk/dist/src/tools/search.js.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/src/tools/write-file.d.ts +10 -3
- package/node_modules/@minicode/agent-sdk/dist/src/tools/write-file.d.ts.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/src/tools/write-file.js +3 -3
- package/node_modules/@minicode/agent-sdk/dist/src/tools/write-file.js.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/tests/agent.test.js +342 -0
- package/node_modules/@minicode/agent-sdk/dist/tests/agent.test.js.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/tests/mcp-client.integration.test.d.ts +2 -0
- package/node_modules/@minicode/agent-sdk/dist/tests/mcp-client.integration.test.d.ts.map +1 -0
- package/node_modules/@minicode/agent-sdk/dist/tests/mcp-client.integration.test.js +64 -0
- package/node_modules/@minicode/agent-sdk/dist/tests/mcp-client.integration.test.js.map +1 -0
- package/node_modules/@minicode/agent-sdk/dist/tests/mcp-client.test.d.ts +2 -0
- package/node_modules/@minicode/agent-sdk/dist/tests/mcp-client.test.d.ts.map +1 -0
- package/node_modules/@minicode/agent-sdk/dist/tests/mcp-client.test.js +350 -0
- package/node_modules/@minicode/agent-sdk/dist/tests/mcp-client.test.js.map +1 -0
- package/node_modules/@minicode/agent-sdk/dist/tests/model-client-anthropic-structured-output.test.d.ts +2 -0
- package/node_modules/@minicode/agent-sdk/dist/tests/model-client-anthropic-structured-output.test.d.ts.map +1 -0
- package/node_modules/@minicode/agent-sdk/dist/tests/model-client-anthropic-structured-output.test.js +211 -0
- package/node_modules/@minicode/agent-sdk/dist/tests/model-client-anthropic-structured-output.test.js.map +1 -0
- package/node_modules/@minicode/agent-sdk/dist/tests/model-client-openai.test.js +88 -0
- package/node_modules/@minicode/agent-sdk/dist/tests/model-client-openai.test.js.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/tests/model-client-structured-output.test.d.ts +2 -0
- package/node_modules/@minicode/agent-sdk/dist/tests/model-client-structured-output.test.d.ts.map +1 -0
- package/node_modules/@minicode/agent-sdk/dist/tests/model-client-structured-output.test.js +171 -0
- package/node_modules/@minicode/agent-sdk/dist/tests/model-client-structured-output.test.js.map +1 -0
- package/node_modules/@minicode/agent-sdk/dist/tests/session.test.js +34 -0
- package/node_modules/@minicode/agent-sdk/dist/tests/session.test.js.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/tests/structured-output.test.d.ts +2 -0
- package/node_modules/@minicode/agent-sdk/dist/tests/structured-output.test.d.ts.map +1 -0
- package/node_modules/@minicode/agent-sdk/dist/tests/structured-output.test.js +212 -0
- package/node_modules/@minicode/agent-sdk/dist/tests/structured-output.test.js.map +1 -0
- package/node_modules/@minicode/agent-sdk/dist/tests/system-prompt.test.js +7 -7
- package/node_modules/@minicode/agent-sdk/dist/tests/system-prompt.test.js.map +1 -1
- package/node_modules/@minicode/agent-sdk/dist/tests/tool-factory-options.test.d.ts +2 -0
- package/node_modules/@minicode/agent-sdk/dist/tests/tool-factory-options.test.d.ts.map +1 -0
- package/node_modules/@minicode/agent-sdk/dist/tests/tool-factory-options.test.js +72 -0
- package/node_modules/@minicode/agent-sdk/dist/tests/tool-factory-options.test.js.map +1 -0
- package/node_modules/@minicode/agent-sdk/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@minicode/agent-sdk/package.json +5 -2
- package/node_modules/ajv/README.md +207 -0
- package/node_modules/ajv/dist/core.js +618 -0
- package/node_modules/ajv/dist/core.js.map +1 -0
- package/node_modules/ajv/lib/core.ts +892 -0
- package/node_modules/ajv/package.json +126 -0
- package/node_modules/minicode-plugin-python/dist/src/index.d.ts +9 -0
- package/node_modules/minicode-plugin-python/dist/src/index.d.ts.map +1 -0
- package/node_modules/minicode-plugin-python/dist/src/index.js +679 -0
- package/node_modules/minicode-plugin-python/dist/src/index.js.map +1 -0
- package/node_modules/minicode-plugin-python/dist/tsconfig.tsbuildinfo +1 -0
- package/node_modules/minicode-plugin-python/package.json +37 -0
- package/node_modules/node-addon-api/LICENSE.md +9 -0
- package/node_modules/node-addon-api/README.md +95 -0
- package/node_modules/node-addon-api/common.gypi +21 -0
- package/node_modules/node-addon-api/except.gypi +25 -0
- package/node_modules/node-addon-api/index.js +14 -0
- package/node_modules/node-addon-api/napi-inl.deprecated.h +186 -0
- package/node_modules/node-addon-api/napi-inl.h +7165 -0
- package/node_modules/node-addon-api/napi.h +3364 -0
- package/node_modules/node-addon-api/node_addon_api.gyp +42 -0
- package/node_modules/node-addon-api/node_api.gyp +9 -0
- package/node_modules/node-addon-api/noexcept.gypi +26 -0
- package/node_modules/node-addon-api/nothing.c +0 -0
- package/node_modules/node-addon-api/package-support.json +21 -0
- package/node_modules/node-addon-api/package.json +480 -0
- package/node_modules/node-addon-api/tools/README.md +73 -0
- package/node_modules/node-addon-api/tools/check-napi.js +99 -0
- package/node_modules/node-addon-api/tools/clang-format.js +71 -0
- package/node_modules/node-addon-api/tools/conversion.js +301 -0
- package/node_modules/node-gyp-build/LICENSE +21 -0
- package/node_modules/node-gyp-build/README.md +58 -0
- package/node_modules/node-gyp-build/SECURITY.md +5 -0
- package/node_modules/node-gyp-build/bin.js +84 -0
- package/node_modules/node-gyp-build/build-test.js +19 -0
- package/node_modules/node-gyp-build/index.js +6 -0
- package/node_modules/node-gyp-build/node-gyp-build.js +207 -0
- package/node_modules/node-gyp-build/optional.js +7 -0
- package/node_modules/node-gyp-build/package.json +43 -0
- package/node_modules/tree-sitter/LICENSE +21 -0
- package/node_modules/tree-sitter/README.md +128 -0
- package/node_modules/tree-sitter/binding.gyp +80 -0
- package/node_modules/tree-sitter/index.js +916 -0
- package/node_modules/tree-sitter/package.json +76 -0
- package/node_modules/tree-sitter/src/addon_data.h +47 -0
- package/node_modules/tree-sitter/src/binding.cc +35 -0
- package/node_modules/tree-sitter/src/conversions.cc +140 -0
- package/node_modules/tree-sitter/src/conversions.h +22 -0
- package/node_modules/tree-sitter/src/language.cc +106 -0
- package/node_modules/tree-sitter/src/language.h +17 -0
- package/node_modules/tree-sitter/src/logger.cc +70 -0
- package/node_modules/tree-sitter/src/logger.h +19 -0
- package/node_modules/tree-sitter/src/lookaheaditerator.cc +122 -0
- package/node_modules/tree-sitter/src/lookaheaditerator.h +33 -0
- package/node_modules/tree-sitter/src/node.cc +1088 -0
- package/node_modules/tree-sitter/src/node.h +30 -0
- package/node_modules/tree-sitter/src/parser.cc +306 -0
- package/node_modules/tree-sitter/src/parser.h +35 -0
- package/node_modules/tree-sitter/src/query.cc +397 -0
- package/node_modules/tree-sitter/src/query.h +40 -0
- package/node_modules/tree-sitter/src/tree.cc +316 -0
- package/node_modules/tree-sitter/src/tree.h +45 -0
- package/node_modules/tree-sitter/src/tree_cursor.cc +213 -0
- package/node_modules/tree-sitter/src/tree_cursor.h +52 -0
- package/node_modules/tree-sitter/tree-sitter.d.ts +1042 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/include/tree_sitter/api.h +1478 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/alloc.c +48 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/alloc.h +41 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/array.h +291 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/atomic.h +68 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/clock.h +146 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/error_costs.h +11 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/get_changed_ranges.c +523 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/get_changed_ranges.h +36 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/host.h +21 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/language.c +293 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/language.h +293 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/length.h +52 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/lexer.c +483 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/lexer.h +54 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/lib.c +12 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/node.c +875 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/parser.c +2293 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/parser.h +286 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/point.h +48 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/portable/endian.h +239 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/query.c +4350 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/reduce_action.h +34 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/reusable_node.h +95 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/stack.c +911 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/stack.h +133 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/subtree.c +1034 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/subtree.h +399 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/tree.c +170 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/tree.h +31 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/tree_cursor.c +717 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/tree_cursor.h +48 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/ts_assert.h +11 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/ICU_SHA +1 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/LICENSE +414 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/README.md +29 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/ptypes.h +1 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/umachine.h +448 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/urename.h +1 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/utf.h +1 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/utf16.h +733 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/utf8.h +881 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode.h +75 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm/stdlib-symbols.txt +24 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm/stdlib.c +113 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm/wasm-stdlib.h +1314 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm_store.c +1935 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm_store.h +31 -0
- package/node_modules/tree-sitter-python/LICENSE +21 -0
- package/node_modules/tree-sitter-python/README.md +24 -0
- package/node_modules/tree-sitter-python/binding.gyp +35 -0
- package/node_modules/tree-sitter-python/bindings/node/binding.cc +19 -0
- package/node_modules/tree-sitter-python/bindings/node/binding_test.js +9 -0
- package/node_modules/tree-sitter-python/bindings/node/index.d.ts +27 -0
- package/node_modules/tree-sitter-python/bindings/node/index.js +11 -0
- package/node_modules/tree-sitter-python/grammar.js +1225 -0
- package/node_modules/tree-sitter-python/package.json +60 -0
- package/node_modules/tree-sitter-python/prebuilds/darwin-arm64/tree-sitter-python.node +0 -0
- package/node_modules/tree-sitter-python/prebuilds/darwin-x64/tree-sitter-python.node +0 -0
- package/node_modules/tree-sitter-python/prebuilds/linux-arm64/tree-sitter-python.node +0 -0
- package/node_modules/tree-sitter-python/prebuilds/linux-x64/tree-sitter-python.node +0 -0
- package/node_modules/tree-sitter-python/prebuilds/win32-arm64/tree-sitter-python.node +0 -0
- package/node_modules/tree-sitter-python/prebuilds/win32-x64/tree-sitter-python.node +0 -0
- package/node_modules/tree-sitter-python/queries/highlights.scm +137 -0
- package/node_modules/tree-sitter-python/queries/tags.scm +14 -0
- package/node_modules/tree-sitter-python/src/grammar.json +6435 -0
- package/node_modules/tree-sitter-python/src/node-types.json +3746 -0
- package/node_modules/tree-sitter-python/src/parser.c +129742 -0
- package/node_modules/tree-sitter-python/src/scanner.c +437 -0
- package/node_modules/tree-sitter-python/src/tree_sitter/alloc.h +54 -0
- package/node_modules/tree-sitter-python/src/tree_sitter/array.h +291 -0
- package/node_modules/tree-sitter-python/src/tree_sitter/parser.h +286 -0
- package/node_modules/tree-sitter-python/tree-sitter-python.wasm +0 -0
- package/node_modules/tree-sitter-python/tree-sitter.json +42 -0
- package/package.json +19 -7
- package/node_modules/@modelcontextprotocol/sdk/node_modules/ajv/README.md +0 -207
- package/node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/core.js +0 -618
- package/node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/core.js.map +0 -1
- package/node_modules/@modelcontextprotocol/sdk/node_modules/ajv/lib/core.ts +0 -892
- package/node_modules/@modelcontextprotocol/sdk/node_modules/ajv/package.json +0 -127
- package/node_modules/ajv-formats/node_modules/ajv/.runkit_example.js +0 -23
- package/node_modules/ajv-formats/node_modules/ajv/LICENSE +0 -22
- package/node_modules/ajv-formats/node_modules/ajv/README.md +0 -207
- package/node_modules/ajv-formats/node_modules/ajv/dist/2019.d.ts +0 -19
- package/node_modules/ajv-formats/node_modules/ajv/dist/2019.js +0 -61
- package/node_modules/ajv-formats/node_modules/ajv/dist/2019.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/2020.d.ts +0 -19
- package/node_modules/ajv-formats/node_modules/ajv/dist/2020.js +0 -55
- package/node_modules/ajv-formats/node_modules/ajv/dist/2020.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/ajv.d.ts +0 -18
- package/node_modules/ajv-formats/node_modules/ajv/dist/ajv.js +0 -50
- package/node_modules/ajv-formats/node_modules/ajv/dist/ajv.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.d.ts +0 -40
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.js +0 -156
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/index.d.ts +0 -79
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/index.js +0 -697
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/index.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/scope.d.ts +0 -79
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/scope.js +0 -143
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/scope.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/errors.d.ts +0 -13
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/errors.js +0 -123
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/errors.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/index.d.ts +0 -80
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/index.js +0 -242
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/index.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/parse.d.ts +0 -4
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/parse.js +0 -350
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/parse.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/serialize.d.ts +0 -4
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/serialize.js +0 -236
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/serialize.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/types.d.ts +0 -6
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/types.js +0 -14
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/types.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/names.d.ts +0 -20
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/names.js +0 -28
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/names.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/ref_error.d.ts +0 -6
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/ref_error.js +0 -12
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/ref_error.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.d.ts +0 -12
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.js +0 -155
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/rules.d.ts +0 -28
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/rules.js +0 -26
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/rules.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/util.d.ts +0 -40
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/util.js +0 -178
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/util.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/applicability.d.ts +0 -6
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/applicability.js +0 -19
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/applicability.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +0 -4
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/boolSchema.js +0 -50
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/boolSchema.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/dataType.d.ts +0 -17
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/dataType.js +0 -203
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/dataType.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/defaults.d.ts +0 -2
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/defaults.js +0 -35
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/defaults.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/index.d.ts +0 -42
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/index.js +0 -520
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/index.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/keyword.d.ts +0 -8
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/keyword.js +0 -124
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/keyword.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/subschema.d.ts +0 -47
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/subschema.js +0 -81
- package/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/subschema.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/core.d.ts +0 -174
- package/node_modules/ajv-formats/node_modules/ajv/dist/core.js +0 -618
- package/node_modules/ajv-formats/node_modules/ajv/dist/core.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/jtd.d.ts +0 -47
- package/node_modules/ajv-formats/node_modules/ajv/dist/jtd.js +0 -72
- package/node_modules/ajv-formats/node_modules/ajv/dist/jtd.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/refs/data.json +0 -13
- package/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +0 -2
- package/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +0 -28
- package/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +0 -53
- package/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +0 -17
- package/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +0 -57
- package/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +0 -14
- package/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +0 -37
- package/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +0 -90
- package/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +0 -39
- package/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +0 -2
- package/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +0 -30
- package/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +0 -48
- package/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +0 -17
- package/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +0 -51
- package/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +0 -14
- package/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +0 -37
- package/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +0 -15
- package/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +0 -90
- package/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +0 -55
- package/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-draft-06.json +0 -137
- package/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-draft-07.json +0 -151
- package/node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-secure.json +0 -88
- package/node_modules/ajv-formats/node_modules/ajv/dist/refs/jtd-schema.d.ts +0 -3
- package/node_modules/ajv-formats/node_modules/ajv/dist/refs/jtd-schema.js +0 -118
- package/node_modules/ajv-formats/node_modules/ajv/dist/refs/jtd-schema.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/runtime/equal.d.ts +0 -6
- package/node_modules/ajv-formats/node_modules/ajv/dist/runtime/equal.js +0 -7
- package/node_modules/ajv-formats/node_modules/ajv/dist/runtime/equal.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/runtime/parseJson.d.ts +0 -18
- package/node_modules/ajv-formats/node_modules/ajv/dist/runtime/parseJson.js +0 -185
- package/node_modules/ajv-formats/node_modules/ajv/dist/runtime/parseJson.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/runtime/quote.d.ts +0 -5
- package/node_modules/ajv-formats/node_modules/ajv/dist/runtime/quote.js +0 -30
- package/node_modules/ajv-formats/node_modules/ajv/dist/runtime/quote.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/runtime/re2.d.ts +0 -6
- package/node_modules/ajv-formats/node_modules/ajv/dist/runtime/re2.js +0 -6
- package/node_modules/ajv-formats/node_modules/ajv/dist/runtime/re2.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/runtime/timestamp.d.ts +0 -5
- package/node_modules/ajv-formats/node_modules/ajv/dist/runtime/timestamp.js +0 -42
- package/node_modules/ajv-formats/node_modules/ajv/dist/runtime/timestamp.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/runtime/ucs2length.d.ts +0 -5
- package/node_modules/ajv-formats/node_modules/ajv/dist/runtime/ucs2length.js +0 -24
- package/node_modules/ajv-formats/node_modules/ajv/dist/runtime/ucs2length.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/runtime/uri.d.ts +0 -6
- package/node_modules/ajv-formats/node_modules/ajv/dist/runtime/uri.js +0 -6
- package/node_modules/ajv-formats/node_modules/ajv/dist/runtime/uri.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/runtime/validation_error.d.ts +0 -7
- package/node_modules/ajv-formats/node_modules/ajv/dist/runtime/validation_error.js +0 -11
- package/node_modules/ajv-formats/node_modules/ajv/dist/runtime/validation_error.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/standalone/index.d.ts +0 -6
- package/node_modules/ajv-formats/node_modules/ajv/dist/standalone/index.js +0 -90
- package/node_modules/ajv-formats/node_modules/ajv/dist/standalone/index.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/standalone/instance.d.ts +0 -12
- package/node_modules/ajv-formats/node_modules/ajv/dist/standalone/instance.js +0 -35
- package/node_modules/ajv-formats/node_modules/ajv/dist/standalone/instance.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/types/index.d.ts +0 -183
- package/node_modules/ajv-formats/node_modules/ajv/dist/types/index.js +0 -3
- package/node_modules/ajv-formats/node_modules/ajv/dist/types/index.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/types/json-schema.d.ts +0 -125
- package/node_modules/ajv-formats/node_modules/ajv/dist/types/json-schema.js +0 -3
- package/node_modules/ajv-formats/node_modules/ajv/dist/types/json-schema.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/types/jtd-schema.d.ts +0 -174
- package/node_modules/ajv-formats/node_modules/ajv/dist/types/jtd-schema.js +0 -3
- package/node_modules/ajv-formats/node_modules/ajv/dist/types/jtd-schema.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +0 -8
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +0 -49
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +0 -6
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +0 -106
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +0 -3
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/allOf.js +0 -23
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +0 -4
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +0 -12
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +0 -7
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/contains.js +0 -95
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +0 -21
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +0 -85
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +0 -3
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +0 -11
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +0 -6
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/if.js +0 -66
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/if.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +0 -13
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/index.js +0 -44
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/index.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +0 -5
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items.js +0 -52
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +0 -6
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items2020.js +0 -30
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +0 -4
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/not.js +0 -26
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/not.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +0 -6
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +0 -60
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +0 -3
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +0 -75
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +0 -3
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +0 -12
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +0 -3
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/properties.js +0 -54
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +0 -6
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +0 -38
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +0 -3
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +0 -13
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/code.d.ts +0 -17
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/code.js +0 -131
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/code.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/id.d.ts +0 -3
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/id.js +0 -10
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/id.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/index.d.ts +0 -3
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/index.js +0 -16
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/index.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/ref.d.ts +0 -8
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/ref.js +0 -122
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/ref.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +0 -5
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/index.js +0 -104
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +0 -10
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/types.js +0 -9
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft2020.d.ts +0 -3
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft2020.js +0 -23
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft2020.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft7.d.ts +0 -3
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft7.js +0 -17
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft7.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +0 -5
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +0 -30
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +0 -5
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +0 -51
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +0 -3
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/index.js +0 -9
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/index.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +0 -3
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +0 -16
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +0 -3
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +0 -10
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/errors.d.ts +0 -9
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/errors.js +0 -3
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/errors.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/format.d.ts +0 -8
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/format.js +0 -92
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/format.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/index.d.ts +0 -3
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/index.js +0 -6
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/index.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +0 -6
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +0 -71
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +0 -5
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/elements.js +0 -24
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/elements.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +0 -6
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/enum.js +0 -43
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +0 -9
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/error.js +0 -20
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/error.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +0 -10
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/index.js +0 -29
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/index.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +0 -5
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/metadata.js +0 -25
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +0 -4
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/nullable.js +0 -22
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +0 -3
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +0 -15
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +0 -22
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/properties.js +0 -149
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +0 -4
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/ref.js +0 -67
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +0 -10
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/type.js +0 -69
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/type.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +0 -3
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/union.js +0 -12
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/union.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +0 -5
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/values.js +0 -51
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/values.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/metadata.d.ts +0 -3
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/metadata.js +0 -18
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/metadata.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/next.d.ts +0 -3
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/next.js +0 -8
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/next.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +0 -3
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/index.js +0 -7
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +0 -6
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +0 -40
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +0 -6
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +0 -65
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/const.d.ts +0 -6
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/const.js +0 -25
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/const.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +0 -5
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +0 -12
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +0 -8
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/enum.js +0 -48
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/enum.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/index.d.ts +0 -16
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/index.js +0 -33
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/index.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +0 -3
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitContains.js +0 -15
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +0 -3
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitItems.js +0 -24
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +0 -3
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitLength.js +0 -27
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +0 -11
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +0 -27
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +0 -3
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +0 -24
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +0 -8
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +0 -26
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +0 -8
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/pattern.js +0 -33
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/required.d.ts +0 -8
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/required.js +0 -79
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/required.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +0 -9
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +0 -64
- package/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +0 -1
- package/node_modules/ajv-formats/node_modules/ajv/lib/2019.ts +0 -81
- package/node_modules/ajv-formats/node_modules/ajv/lib/2020.ts +0 -75
- package/node_modules/ajv-formats/node_modules/ajv/lib/ajv.ts +0 -70
- package/node_modules/ajv-formats/node_modules/ajv/lib/compile/codegen/code.ts +0 -169
- package/node_modules/ajv-formats/node_modules/ajv/lib/compile/codegen/index.ts +0 -852
- package/node_modules/ajv-formats/node_modules/ajv/lib/compile/codegen/scope.ts +0 -215
- package/node_modules/ajv-formats/node_modules/ajv/lib/compile/errors.ts +0 -184
- package/node_modules/ajv-formats/node_modules/ajv/lib/compile/index.ts +0 -324
- package/node_modules/ajv-formats/node_modules/ajv/lib/compile/jtd/parse.ts +0 -411
- package/node_modules/ajv-formats/node_modules/ajv/lib/compile/jtd/serialize.ts +0 -277
- package/node_modules/ajv-formats/node_modules/ajv/lib/compile/jtd/types.ts +0 -16
- package/node_modules/ajv-formats/node_modules/ajv/lib/compile/names.ts +0 -27
- package/node_modules/ajv-formats/node_modules/ajv/lib/compile/ref_error.ts +0 -13
- package/node_modules/ajv-formats/node_modules/ajv/lib/compile/resolve.ts +0 -149
- package/node_modules/ajv-formats/node_modules/ajv/lib/compile/rules.ts +0 -50
- package/node_modules/ajv-formats/node_modules/ajv/lib/compile/util.ts +0 -213
- package/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/applicability.ts +0 -22
- package/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/boolSchema.ts +0 -47
- package/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/dataType.ts +0 -230
- package/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/defaults.ts +0 -32
- package/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/index.ts +0 -582
- package/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/keyword.ts +0 -171
- package/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/subschema.ts +0 -135
- package/node_modules/ajv-formats/node_modules/ajv/lib/core.ts +0 -892
- package/node_modules/ajv-formats/node_modules/ajv/lib/jtd.ts +0 -132
- package/node_modules/ajv-formats/node_modules/ajv/lib/refs/data.json +0 -13
- package/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +0 -28
- package/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +0 -53
- package/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +0 -17
- package/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +0 -57
- package/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +0 -14
- package/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +0 -37
- package/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +0 -90
- package/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +0 -39
- package/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +0 -30
- package/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +0 -48
- package/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +0 -17
- package/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +0 -51
- package/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +0 -14
- package/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +0 -37
- package/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +0 -15
- package/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +0 -90
- package/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +0 -55
- package/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-draft-06.json +0 -137
- package/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-draft-07.json +0 -151
- package/node_modules/ajv-formats/node_modules/ajv/lib/refs/json-schema-secure.json +0 -88
- package/node_modules/ajv-formats/node_modules/ajv/lib/refs/jtd-schema.ts +0 -130
- package/node_modules/ajv-formats/node_modules/ajv/lib/runtime/equal.ts +0 -7
- package/node_modules/ajv-formats/node_modules/ajv/lib/runtime/parseJson.ts +0 -177
- package/node_modules/ajv-formats/node_modules/ajv/lib/runtime/quote.ts +0 -31
- package/node_modules/ajv-formats/node_modules/ajv/lib/runtime/re2.ts +0 -6
- package/node_modules/ajv-formats/node_modules/ajv/lib/runtime/timestamp.ts +0 -46
- package/node_modules/ajv-formats/node_modules/ajv/lib/runtime/ucs2length.ts +0 -20
- package/node_modules/ajv-formats/node_modules/ajv/lib/runtime/uri.ts +0 -6
- package/node_modules/ajv-formats/node_modules/ajv/lib/runtime/validation_error.ts +0 -13
- package/node_modules/ajv-formats/node_modules/ajv/lib/standalone/index.ts +0 -100
- package/node_modules/ajv-formats/node_modules/ajv/lib/standalone/instance.ts +0 -36
- package/node_modules/ajv-formats/node_modules/ajv/lib/types/index.ts +0 -244
- package/node_modules/ajv-formats/node_modules/ajv/lib/types/json-schema.ts +0 -187
- package/node_modules/ajv-formats/node_modules/ajv/lib/types/jtd-schema.ts +0 -273
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +0 -56
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +0 -118
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +0 -22
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +0 -14
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/contains.ts +0 -109
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +0 -112
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +0 -11
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/if.ts +0 -80
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/index.ts +0 -53
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/items.ts +0 -59
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +0 -36
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/not.ts +0 -38
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +0 -82
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +0 -91
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +0 -12
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/properties.ts +0 -57
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +0 -50
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +0 -13
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/code.ts +0 -168
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/core/id.ts +0 -10
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/core/index.ts +0 -16
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/core/ref.ts +0 -129
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/discriminator/index.ts +0 -113
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/discriminator/types.ts +0 -12
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/draft2020.ts +0 -23
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/draft7.ts +0 -17
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +0 -31
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +0 -51
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/dynamic/index.ts +0 -9
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +0 -14
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +0 -10
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/errors.ts +0 -18
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/format/format.ts +0 -120
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/format/index.ts +0 -6
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +0 -89
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/elements.ts +0 -32
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/enum.ts +0 -45
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/error.ts +0 -23
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/index.ts +0 -37
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +0 -24
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +0 -21
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +0 -15
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/properties.ts +0 -184
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/ref.ts +0 -76
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/type.ts +0 -75
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/union.ts +0 -12
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/values.ts +0 -58
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/metadata.ts +0 -17
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/next.ts +0 -8
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +0 -7
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +0 -47
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +0 -85
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/const.ts +0 -28
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +0 -23
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/enum.ts +0 -54
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/index.ts +0 -49
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +0 -16
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +0 -26
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +0 -30
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +0 -42
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +0 -26
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +0 -34
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/pattern.ts +0 -39
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/required.ts +0 -98
- package/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +0 -79
- package/node_modules/ajv-formats/node_modules/ajv/package.json +0 -127
- package/node_modules/ajv-formats/node_modules/json-schema-traverse/.eslintrc.yml +0 -27
- package/node_modules/ajv-formats/node_modules/json-schema-traverse/.github/FUNDING.yml +0 -2
- package/node_modules/ajv-formats/node_modules/json-schema-traverse/.github/workflows/build.yml +0 -28
- package/node_modules/ajv-formats/node_modules/json-schema-traverse/.github/workflows/publish.yml +0 -27
- package/node_modules/ajv-formats/node_modules/json-schema-traverse/LICENSE +0 -21
- package/node_modules/ajv-formats/node_modules/json-schema-traverse/README.md +0 -95
- package/node_modules/ajv-formats/node_modules/json-schema-traverse/index.d.ts +0 -40
- package/node_modules/ajv-formats/node_modules/json-schema-traverse/index.js +0 -93
- package/node_modules/ajv-formats/node_modules/json-schema-traverse/package.json +0 -43
- package/node_modules/ajv-formats/node_modules/json-schema-traverse/spec/.eslintrc.yml +0 -6
- package/node_modules/ajv-formats/node_modules/json-schema-traverse/spec/fixtures/schema.js +0 -125
- package/node_modules/ajv-formats/node_modules/json-schema-traverse/spec/index.spec.js +0 -171
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/.runkit_example.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/LICENSE +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/2019.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/2019.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/2019.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/2020.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/2020.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/2020.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/ajv.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/ajv.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/ajv.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/codegen/code.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/codegen/code.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/codegen/code.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/codegen/index.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/codegen/index.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/codegen/index.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/codegen/scope.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/codegen/scope.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/codegen/scope.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/errors.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/errors.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/errors.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/index.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/index.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/index.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/jtd/parse.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/jtd/parse.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/jtd/parse.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/jtd/serialize.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/jtd/serialize.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/jtd/serialize.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/jtd/types.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/jtd/types.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/jtd/types.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/names.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/names.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/names.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/ref_error.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/ref_error.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/ref_error.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/resolve.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/resolve.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/resolve.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/rules.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/rules.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/rules.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/util.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/util.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/util.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/validate/applicability.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/validate/applicability.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/validate/applicability.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/validate/boolSchema.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/validate/boolSchema.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/validate/boolSchema.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/validate/dataType.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/validate/dataType.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/validate/dataType.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/validate/defaults.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/validate/defaults.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/validate/defaults.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/validate/index.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/validate/index.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/validate/index.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/validate/keyword.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/validate/keyword.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/validate/keyword.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/validate/subschema.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/validate/subschema.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/compile/validate/subschema.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/core.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/jtd.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/jtd.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/jtd.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/data.json +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/json-schema-2019-09/index.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/json-schema-2019-09/index.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/json-schema-2019-09/index.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/json-schema-2019-09/meta/applicator.json +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/json-schema-2019-09/meta/content.json +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/json-schema-2019-09/meta/core.json +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/json-schema-2019-09/meta/format.json +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/json-schema-2019-09/meta/meta-data.json +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/json-schema-2019-09/meta/validation.json +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/json-schema-2019-09/schema.json +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/json-schema-2020-12/index.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/json-schema-2020-12/index.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/json-schema-2020-12/index.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/json-schema-2020-12/meta/applicator.json +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/json-schema-2020-12/meta/content.json +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/json-schema-2020-12/meta/core.json +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/json-schema-2020-12/meta/format-annotation.json +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/json-schema-2020-12/meta/meta-data.json +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/json-schema-2020-12/meta/unevaluated.json +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/json-schema-2020-12/meta/validation.json +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/json-schema-2020-12/schema.json +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/json-schema-draft-06.json +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/json-schema-draft-07.json +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/json-schema-secure.json +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/jtd-schema.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/jtd-schema.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/refs/jtd-schema.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/runtime/equal.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/runtime/equal.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/runtime/equal.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/runtime/parseJson.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/runtime/parseJson.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/runtime/parseJson.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/runtime/quote.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/runtime/quote.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/runtime/quote.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/runtime/re2.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/runtime/re2.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/runtime/re2.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/runtime/timestamp.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/runtime/timestamp.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/runtime/timestamp.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/runtime/ucs2length.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/runtime/ucs2length.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/runtime/ucs2length.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/runtime/uri.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/runtime/uri.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/runtime/uri.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/runtime/validation_error.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/runtime/validation_error.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/runtime/validation_error.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/standalone/index.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/standalone/index.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/standalone/index.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/standalone/instance.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/standalone/instance.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/standalone/instance.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/types/index.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/types/index.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/types/index.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/types/json-schema.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/types/json-schema.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/types/json-schema.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/types/jtd-schema.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/types/jtd-schema.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/types/jtd-schema.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/additionalItems.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/additionalItems.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/additionalItems.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/additionalProperties.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/additionalProperties.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/additionalProperties.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/allOf.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/allOf.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/allOf.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/anyOf.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/anyOf.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/anyOf.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/contains.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/contains.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/contains.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/dependencies.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/dependencies.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/dependencies.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/dependentSchemas.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/dependentSchemas.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/dependentSchemas.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/if.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/if.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/if.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/index.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/index.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/index.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/items.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/items.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/items.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/items2020.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/items2020.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/items2020.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/not.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/not.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/not.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/oneOf.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/oneOf.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/oneOf.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/patternProperties.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/patternProperties.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/patternProperties.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/prefixItems.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/prefixItems.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/prefixItems.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/properties.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/properties.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/properties.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/propertyNames.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/propertyNames.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/propertyNames.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/thenElse.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/thenElse.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/applicator/thenElse.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/code.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/code.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/code.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/core/id.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/core/id.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/core/id.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/core/index.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/core/index.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/core/index.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/core/ref.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/core/ref.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/core/ref.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/discriminator/index.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/discriminator/index.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/discriminator/index.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/discriminator/types.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/discriminator/types.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/discriminator/types.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/draft2020.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/draft2020.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/draft2020.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/draft7.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/draft7.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/draft7.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/dynamic/dynamicAnchor.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/dynamic/dynamicAnchor.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/dynamic/dynamicAnchor.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/dynamic/dynamicRef.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/dynamic/dynamicRef.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/dynamic/dynamicRef.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/dynamic/index.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/dynamic/index.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/dynamic/index.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/dynamic/recursiveAnchor.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/dynamic/recursiveAnchor.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/dynamic/recursiveAnchor.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/dynamic/recursiveRef.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/dynamic/recursiveRef.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/dynamic/recursiveRef.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/errors.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/errors.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/errors.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/format/format.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/format/format.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/format/format.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/format/index.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/format/index.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/format/index.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/discriminator.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/discriminator.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/discriminator.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/elements.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/elements.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/elements.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/enum.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/enum.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/enum.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/error.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/error.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/error.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/index.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/index.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/index.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/metadata.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/metadata.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/metadata.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/nullable.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/nullable.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/nullable.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/optionalProperties.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/optionalProperties.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/optionalProperties.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/properties.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/properties.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/properties.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/ref.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/ref.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/ref.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/type.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/type.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/type.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/union.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/union.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/union.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/values.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/values.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/jtd/values.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/metadata.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/metadata.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/metadata.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/next.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/next.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/next.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/unevaluated/index.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/unevaluated/index.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/unevaluated/index.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/unevaluated/unevaluatedItems.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/unevaluated/unevaluatedItems.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/unevaluated/unevaluatedProperties.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/const.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/const.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/const.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/dependentRequired.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/dependentRequired.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/dependentRequired.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/enum.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/enum.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/enum.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/index.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/index.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/index.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/limitContains.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/limitContains.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/limitContains.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/limitItems.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/limitItems.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/limitItems.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/limitLength.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/limitLength.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/limitLength.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/limitNumber.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/limitNumber.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/limitNumber.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/limitProperties.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/limitProperties.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/limitProperties.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/multipleOf.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/multipleOf.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/multipleOf.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/pattern.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/pattern.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/pattern.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/required.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/required.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/required.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/uniqueItems.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/uniqueItems.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/dist/vocabularies/validation/uniqueItems.js.map +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/2019.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/2020.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/ajv.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/compile/codegen/code.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/compile/codegen/index.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/compile/codegen/scope.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/compile/errors.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/compile/index.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/compile/jtd/parse.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/compile/jtd/serialize.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/compile/jtd/types.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/compile/names.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/compile/ref_error.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/compile/resolve.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/compile/rules.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/compile/util.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/compile/validate/applicability.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/compile/validate/boolSchema.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/compile/validate/dataType.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/compile/validate/defaults.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/compile/validate/index.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/compile/validate/keyword.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/compile/validate/subschema.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/jtd.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/refs/data.json +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/refs/json-schema-2019-09/index.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/refs/json-schema-2019-09/meta/applicator.json +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/refs/json-schema-2019-09/meta/content.json +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/refs/json-schema-2019-09/meta/core.json +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/refs/json-schema-2019-09/meta/format.json +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/refs/json-schema-2019-09/meta/meta-data.json +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/refs/json-schema-2019-09/meta/validation.json +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/refs/json-schema-2019-09/schema.json +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/refs/json-schema-2020-12/index.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/refs/json-schema-2020-12/meta/applicator.json +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/refs/json-schema-2020-12/meta/content.json +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/refs/json-schema-2020-12/meta/core.json +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/refs/json-schema-2020-12/meta/format-annotation.json +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/refs/json-schema-2020-12/meta/meta-data.json +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/refs/json-schema-2020-12/meta/unevaluated.json +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/refs/json-schema-2020-12/meta/validation.json +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/refs/json-schema-2020-12/schema.json +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/refs/json-schema-draft-06.json +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/refs/json-schema-draft-07.json +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/refs/json-schema-secure.json +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/refs/jtd-schema.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/runtime/equal.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/runtime/parseJson.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/runtime/quote.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/runtime/re2.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/runtime/timestamp.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/runtime/ucs2length.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/runtime/uri.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/runtime/validation_error.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/standalone/index.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/standalone/instance.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/types/index.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/types/json-schema.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/types/jtd-schema.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/applicator/additionalItems.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/applicator/additionalProperties.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/applicator/allOf.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/applicator/anyOf.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/applicator/contains.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/applicator/dependencies.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/applicator/dependentSchemas.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/applicator/if.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/applicator/index.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/applicator/items.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/applicator/items2020.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/applicator/not.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/applicator/oneOf.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/applicator/patternProperties.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/applicator/prefixItems.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/applicator/properties.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/applicator/propertyNames.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/applicator/thenElse.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/code.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/core/id.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/core/index.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/core/ref.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/discriminator/index.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/discriminator/types.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/draft2020.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/draft7.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/dynamic/dynamicAnchor.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/dynamic/dynamicRef.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/dynamic/index.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/dynamic/recursiveAnchor.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/dynamic/recursiveRef.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/errors.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/format/format.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/format/index.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/jtd/discriminator.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/jtd/elements.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/jtd/enum.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/jtd/error.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/jtd/index.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/jtd/metadata.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/jtd/nullable.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/jtd/optionalProperties.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/jtd/properties.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/jtd/ref.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/jtd/type.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/jtd/union.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/jtd/values.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/metadata.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/next.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/unevaluated/index.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/unevaluated/unevaluatedItems.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/unevaluated/unevaluatedProperties.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/validation/const.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/validation/dependentRequired.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/validation/enum.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/validation/index.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/validation/limitContains.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/validation/limitItems.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/validation/limitLength.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/validation/limitNumber.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/validation/limitProperties.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/validation/multipleOf.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/validation/pattern.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/validation/required.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/ajv → ajv}/lib/vocabularies/validation/uniqueItems.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/json-schema-traverse → json-schema-traverse}/.eslintrc.yml +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/json-schema-traverse → json-schema-traverse}/.github/FUNDING.yml +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/json-schema-traverse → json-schema-traverse}/.github/workflows/build.yml +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/json-schema-traverse → json-schema-traverse}/.github/workflows/publish.yml +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/json-schema-traverse → json-schema-traverse}/LICENSE +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/json-schema-traverse → json-schema-traverse}/README.md +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/json-schema-traverse → json-schema-traverse}/index.d.ts +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/json-schema-traverse → json-schema-traverse}/index.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/json-schema-traverse → json-schema-traverse}/package.json +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/json-schema-traverse → json-schema-traverse}/spec/.eslintrc.yml +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/json-schema-traverse → json-schema-traverse}/spec/fixtures/schema.js +0 -0
- /package/node_modules/{@modelcontextprotocol/sdk/node_modules/json-schema-traverse → json-schema-traverse}/spec/index.spec.js +0 -0
|
@@ -0,0 +1,2293 @@
|
|
|
1
|
+
#include <time.h>
|
|
2
|
+
#include <stdio.h>
|
|
3
|
+
#include <limits.h>
|
|
4
|
+
#include <stdbool.h>
|
|
5
|
+
#include <inttypes.h>
|
|
6
|
+
#include "tree_sitter/api.h"
|
|
7
|
+
#include "./alloc.h"
|
|
8
|
+
#include "./array.h"
|
|
9
|
+
#include "./atomic.h"
|
|
10
|
+
#include "./clock.h"
|
|
11
|
+
#include "./error_costs.h"
|
|
12
|
+
#include "./get_changed_ranges.h"
|
|
13
|
+
#include "./language.h"
|
|
14
|
+
#include "./length.h"
|
|
15
|
+
#include "./lexer.h"
|
|
16
|
+
#include "./reduce_action.h"
|
|
17
|
+
#include "./reusable_node.h"
|
|
18
|
+
#include "./stack.h"
|
|
19
|
+
#include "./subtree.h"
|
|
20
|
+
#include "./tree.h"
|
|
21
|
+
#include "./ts_assert.h"
|
|
22
|
+
#include "./wasm_store.h"
|
|
23
|
+
|
|
24
|
+
#define LOG(...) \
|
|
25
|
+
if (self->lexer.logger.log || self->dot_graph_file) { \
|
|
26
|
+
snprintf(self->lexer.debug_buffer, TREE_SITTER_SERIALIZATION_BUFFER_SIZE, __VA_ARGS__); \
|
|
27
|
+
ts_parser__log(self); \
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
#define LOG_LOOKAHEAD(symbol_name, size) \
|
|
31
|
+
if (self->lexer.logger.log || self->dot_graph_file) { \
|
|
32
|
+
char *buf = self->lexer.debug_buffer; \
|
|
33
|
+
const char *symbol = symbol_name; \
|
|
34
|
+
int off = snprintf( \
|
|
35
|
+
buf, \
|
|
36
|
+
TREE_SITTER_SERIALIZATION_BUFFER_SIZE, \
|
|
37
|
+
"lexed_lookahead sym:" \
|
|
38
|
+
); \
|
|
39
|
+
for ( \
|
|
40
|
+
int i = 0; \
|
|
41
|
+
symbol[i] != '\0' \
|
|
42
|
+
&& off < TREE_SITTER_SERIALIZATION_BUFFER_SIZE; \
|
|
43
|
+
i++ \
|
|
44
|
+
) { \
|
|
45
|
+
switch (symbol[i]) { \
|
|
46
|
+
case '\t': buf[off++] = '\\'; buf[off++] = 't'; break; \
|
|
47
|
+
case '\n': buf[off++] = '\\'; buf[off++] = 'n'; break; \
|
|
48
|
+
case '\v': buf[off++] = '\\'; buf[off++] = 'v'; break; \
|
|
49
|
+
case '\f': buf[off++] = '\\'; buf[off++] = 'f'; break; \
|
|
50
|
+
case '\r': buf[off++] = '\\'; buf[off++] = 'r'; break; \
|
|
51
|
+
case '\\': buf[off++] = '\\'; buf[off++] = '\\'; break; \
|
|
52
|
+
default: buf[off++] = symbol[i]; break; \
|
|
53
|
+
} \
|
|
54
|
+
} \
|
|
55
|
+
snprintf( \
|
|
56
|
+
buf + off, \
|
|
57
|
+
TREE_SITTER_SERIALIZATION_BUFFER_SIZE - off, \
|
|
58
|
+
", size:%u", \
|
|
59
|
+
size \
|
|
60
|
+
); \
|
|
61
|
+
ts_parser__log(self); \
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
#define LOG_STACK() \
|
|
65
|
+
if (self->dot_graph_file) { \
|
|
66
|
+
ts_stack_print_dot_graph(self->stack, self->language, self->dot_graph_file); \
|
|
67
|
+
fputs("\n\n", self->dot_graph_file); \
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
#define LOG_TREE(tree) \
|
|
71
|
+
if (self->dot_graph_file) { \
|
|
72
|
+
ts_subtree_print_dot_graph(tree, self->language, self->dot_graph_file); \
|
|
73
|
+
fputs("\n", self->dot_graph_file); \
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
#define SYM_NAME(symbol) ts_language_symbol_name(self->language, symbol)
|
|
77
|
+
|
|
78
|
+
#define TREE_NAME(tree) SYM_NAME(ts_subtree_symbol(tree))
|
|
79
|
+
|
|
80
|
+
static const unsigned MAX_VERSION_COUNT = 6;
|
|
81
|
+
static const unsigned MAX_VERSION_COUNT_OVERFLOW = 4;
|
|
82
|
+
static const unsigned MAX_SUMMARY_DEPTH = 16;
|
|
83
|
+
static const unsigned MAX_COST_DIFFERENCE = 18 * ERROR_COST_PER_SKIPPED_TREE;
|
|
84
|
+
static const unsigned OP_COUNT_PER_PARSER_TIMEOUT_CHECK = 100;
|
|
85
|
+
|
|
86
|
+
typedef struct {
|
|
87
|
+
Subtree token;
|
|
88
|
+
Subtree last_external_token;
|
|
89
|
+
uint32_t byte_index;
|
|
90
|
+
} TokenCache;
|
|
91
|
+
|
|
92
|
+
struct TSParser {
|
|
93
|
+
Lexer lexer;
|
|
94
|
+
Stack *stack;
|
|
95
|
+
SubtreePool tree_pool;
|
|
96
|
+
const TSLanguage *language;
|
|
97
|
+
TSWasmStore *wasm_store;
|
|
98
|
+
ReduceActionSet reduce_actions;
|
|
99
|
+
Subtree finished_tree;
|
|
100
|
+
SubtreeArray trailing_extras;
|
|
101
|
+
SubtreeArray trailing_extras2;
|
|
102
|
+
SubtreeArray scratch_trees;
|
|
103
|
+
TokenCache token_cache;
|
|
104
|
+
ReusableNode reusable_node;
|
|
105
|
+
void *external_scanner_payload;
|
|
106
|
+
FILE *dot_graph_file;
|
|
107
|
+
TSClock end_clock;
|
|
108
|
+
TSDuration timeout_duration;
|
|
109
|
+
unsigned accept_count;
|
|
110
|
+
unsigned operation_count;
|
|
111
|
+
const volatile size_t *cancellation_flag;
|
|
112
|
+
Subtree old_tree;
|
|
113
|
+
TSRangeArray included_range_differences;
|
|
114
|
+
TSParseOptions parse_options;
|
|
115
|
+
TSParseState parse_state;
|
|
116
|
+
unsigned included_range_difference_index;
|
|
117
|
+
bool has_scanner_error;
|
|
118
|
+
bool canceled_balancing;
|
|
119
|
+
bool has_error;
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
typedef struct {
|
|
123
|
+
unsigned cost;
|
|
124
|
+
unsigned node_count;
|
|
125
|
+
int dynamic_precedence;
|
|
126
|
+
bool is_in_error;
|
|
127
|
+
} ErrorStatus;
|
|
128
|
+
|
|
129
|
+
typedef enum {
|
|
130
|
+
ErrorComparisonTakeLeft,
|
|
131
|
+
ErrorComparisonPreferLeft,
|
|
132
|
+
ErrorComparisonNone,
|
|
133
|
+
ErrorComparisonPreferRight,
|
|
134
|
+
ErrorComparisonTakeRight,
|
|
135
|
+
} ErrorComparison;
|
|
136
|
+
|
|
137
|
+
typedef struct {
|
|
138
|
+
const char *string;
|
|
139
|
+
uint32_t length;
|
|
140
|
+
} TSStringInput;
|
|
141
|
+
|
|
142
|
+
// StringInput
|
|
143
|
+
|
|
144
|
+
static const char *ts_string_input_read(
|
|
145
|
+
void *_self,
|
|
146
|
+
uint32_t byte,
|
|
147
|
+
TSPoint point,
|
|
148
|
+
uint32_t *length
|
|
149
|
+
) {
|
|
150
|
+
(void)point;
|
|
151
|
+
TSStringInput *self = (TSStringInput *)_self;
|
|
152
|
+
if (byte >= self->length) {
|
|
153
|
+
*length = 0;
|
|
154
|
+
return "";
|
|
155
|
+
} else {
|
|
156
|
+
*length = self->length - byte;
|
|
157
|
+
return self->string + byte;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
// Parser - Private
|
|
162
|
+
|
|
163
|
+
static void ts_parser__log(TSParser *self) {
|
|
164
|
+
if (self->lexer.logger.log) {
|
|
165
|
+
self->lexer.logger.log(
|
|
166
|
+
self->lexer.logger.payload,
|
|
167
|
+
TSLogTypeParse,
|
|
168
|
+
self->lexer.debug_buffer
|
|
169
|
+
);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
if (self->dot_graph_file) {
|
|
173
|
+
fprintf(self->dot_graph_file, "graph {\nlabel=\"");
|
|
174
|
+
for (char *chr = &self->lexer.debug_buffer[0]; *chr != 0; chr++) {
|
|
175
|
+
if (*chr == '"' || *chr == '\\') fputc('\\', self->dot_graph_file);
|
|
176
|
+
fputc(*chr, self->dot_graph_file);
|
|
177
|
+
}
|
|
178
|
+
fprintf(self->dot_graph_file, "\"\n}\n\n");
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
static bool ts_parser__breakdown_top_of_stack(
|
|
183
|
+
TSParser *self,
|
|
184
|
+
StackVersion version
|
|
185
|
+
) {
|
|
186
|
+
bool did_break_down = false;
|
|
187
|
+
bool pending = false;
|
|
188
|
+
|
|
189
|
+
do {
|
|
190
|
+
StackSliceArray pop = ts_stack_pop_pending(self->stack, version);
|
|
191
|
+
if (!pop.size) break;
|
|
192
|
+
|
|
193
|
+
did_break_down = true;
|
|
194
|
+
pending = false;
|
|
195
|
+
for (uint32_t i = 0; i < pop.size; i++) {
|
|
196
|
+
StackSlice slice = pop.contents[i];
|
|
197
|
+
TSStateId state = ts_stack_state(self->stack, slice.version);
|
|
198
|
+
Subtree parent = *array_front(&slice.subtrees);
|
|
199
|
+
|
|
200
|
+
for (uint32_t j = 0, n = ts_subtree_child_count(parent); j < n; j++) {
|
|
201
|
+
Subtree child = ts_subtree_children(parent)[j];
|
|
202
|
+
pending = ts_subtree_child_count(child) > 0;
|
|
203
|
+
|
|
204
|
+
if (ts_subtree_is_error(child)) {
|
|
205
|
+
state = ERROR_STATE;
|
|
206
|
+
} else if (!ts_subtree_extra(child)) {
|
|
207
|
+
state = ts_language_next_state(self->language, state, ts_subtree_symbol(child));
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
ts_subtree_retain(child);
|
|
211
|
+
ts_stack_push(self->stack, slice.version, child, pending, state);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
for (uint32_t j = 1; j < slice.subtrees.size; j++) {
|
|
215
|
+
Subtree tree = slice.subtrees.contents[j];
|
|
216
|
+
ts_stack_push(self->stack, slice.version, tree, false, state);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
ts_subtree_release(&self->tree_pool, parent);
|
|
220
|
+
array_delete(&slice.subtrees);
|
|
221
|
+
|
|
222
|
+
LOG("breakdown_top_of_stack tree:%s", TREE_NAME(parent));
|
|
223
|
+
LOG_STACK();
|
|
224
|
+
}
|
|
225
|
+
} while (pending);
|
|
226
|
+
|
|
227
|
+
return did_break_down;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
static void ts_parser__breakdown_lookahead(
|
|
231
|
+
TSParser *self,
|
|
232
|
+
Subtree *lookahead,
|
|
233
|
+
TSStateId state,
|
|
234
|
+
ReusableNode *reusable_node
|
|
235
|
+
) {
|
|
236
|
+
bool did_descend = false;
|
|
237
|
+
Subtree tree = reusable_node_tree(reusable_node);
|
|
238
|
+
while (ts_subtree_child_count(tree) > 0 && ts_subtree_parse_state(tree) != state) {
|
|
239
|
+
LOG("state_mismatch sym:%s", TREE_NAME(tree));
|
|
240
|
+
reusable_node_descend(reusable_node);
|
|
241
|
+
tree = reusable_node_tree(reusable_node);
|
|
242
|
+
did_descend = true;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
if (did_descend) {
|
|
246
|
+
ts_subtree_release(&self->tree_pool, *lookahead);
|
|
247
|
+
*lookahead = tree;
|
|
248
|
+
ts_subtree_retain(*lookahead);
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
static ErrorComparison ts_parser__compare_versions(
|
|
253
|
+
TSParser *self,
|
|
254
|
+
ErrorStatus a,
|
|
255
|
+
ErrorStatus b
|
|
256
|
+
) {
|
|
257
|
+
(void)self;
|
|
258
|
+
if (!a.is_in_error && b.is_in_error) {
|
|
259
|
+
if (a.cost < b.cost) {
|
|
260
|
+
return ErrorComparisonTakeLeft;
|
|
261
|
+
} else {
|
|
262
|
+
return ErrorComparisonPreferLeft;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
if (a.is_in_error && !b.is_in_error) {
|
|
267
|
+
if (b.cost < a.cost) {
|
|
268
|
+
return ErrorComparisonTakeRight;
|
|
269
|
+
} else {
|
|
270
|
+
return ErrorComparisonPreferRight;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
if (a.cost < b.cost) {
|
|
275
|
+
if ((b.cost - a.cost) * (1 + a.node_count) > MAX_COST_DIFFERENCE) {
|
|
276
|
+
return ErrorComparisonTakeLeft;
|
|
277
|
+
} else {
|
|
278
|
+
return ErrorComparisonPreferLeft;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
if (b.cost < a.cost) {
|
|
283
|
+
if ((a.cost - b.cost) * (1 + b.node_count) > MAX_COST_DIFFERENCE) {
|
|
284
|
+
return ErrorComparisonTakeRight;
|
|
285
|
+
} else {
|
|
286
|
+
return ErrorComparisonPreferRight;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
if (a.dynamic_precedence > b.dynamic_precedence) return ErrorComparisonPreferLeft;
|
|
291
|
+
if (b.dynamic_precedence > a.dynamic_precedence) return ErrorComparisonPreferRight;
|
|
292
|
+
return ErrorComparisonNone;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
static ErrorStatus ts_parser__version_status(
|
|
296
|
+
TSParser *self,
|
|
297
|
+
StackVersion version
|
|
298
|
+
) {
|
|
299
|
+
unsigned cost = ts_stack_error_cost(self->stack, version);
|
|
300
|
+
bool is_paused = ts_stack_is_paused(self->stack, version);
|
|
301
|
+
if (is_paused) cost += ERROR_COST_PER_SKIPPED_TREE;
|
|
302
|
+
return (ErrorStatus) {
|
|
303
|
+
.cost = cost,
|
|
304
|
+
.node_count = ts_stack_node_count_since_error(self->stack, version),
|
|
305
|
+
.dynamic_precedence = ts_stack_dynamic_precedence(self->stack, version),
|
|
306
|
+
.is_in_error = is_paused || ts_stack_state(self->stack, version) == ERROR_STATE
|
|
307
|
+
};
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
static bool ts_parser__better_version_exists(
|
|
311
|
+
TSParser *self,
|
|
312
|
+
StackVersion version,
|
|
313
|
+
bool is_in_error,
|
|
314
|
+
unsigned cost
|
|
315
|
+
) {
|
|
316
|
+
if (self->finished_tree.ptr && ts_subtree_error_cost(self->finished_tree) <= cost) {
|
|
317
|
+
return true;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
Length position = ts_stack_position(self->stack, version);
|
|
321
|
+
ErrorStatus status = {
|
|
322
|
+
.cost = cost,
|
|
323
|
+
.is_in_error = is_in_error,
|
|
324
|
+
.dynamic_precedence = ts_stack_dynamic_precedence(self->stack, version),
|
|
325
|
+
.node_count = ts_stack_node_count_since_error(self->stack, version),
|
|
326
|
+
};
|
|
327
|
+
|
|
328
|
+
for (StackVersion i = 0, n = ts_stack_version_count(self->stack); i < n; i++) {
|
|
329
|
+
if (i == version ||
|
|
330
|
+
!ts_stack_is_active(self->stack, i) ||
|
|
331
|
+
ts_stack_position(self->stack, i).bytes < position.bytes) continue;
|
|
332
|
+
ErrorStatus status_i = ts_parser__version_status(self, i);
|
|
333
|
+
switch (ts_parser__compare_versions(self, status, status_i)) {
|
|
334
|
+
case ErrorComparisonTakeRight:
|
|
335
|
+
return true;
|
|
336
|
+
case ErrorComparisonPreferRight:
|
|
337
|
+
if (ts_stack_can_merge(self->stack, i, version)) return true;
|
|
338
|
+
break;
|
|
339
|
+
default:
|
|
340
|
+
break;
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
return false;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
static bool ts_parser__call_main_lex_fn(TSParser *self, TSLexerMode lex_mode) {
|
|
348
|
+
if (ts_language_is_wasm(self->language)) {
|
|
349
|
+
return ts_wasm_store_call_lex_main(self->wasm_store, lex_mode.lex_state);
|
|
350
|
+
} else {
|
|
351
|
+
return self->language->lex_fn(&self->lexer.data, lex_mode.lex_state);
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
static bool ts_parser__call_keyword_lex_fn(TSParser *self) {
|
|
356
|
+
if (ts_language_is_wasm(self->language)) {
|
|
357
|
+
return ts_wasm_store_call_lex_keyword(self->wasm_store, 0);
|
|
358
|
+
} else {
|
|
359
|
+
return self->language->keyword_lex_fn(&self->lexer.data, 0);
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
static void ts_parser__external_scanner_create(
|
|
364
|
+
TSParser *self
|
|
365
|
+
) {
|
|
366
|
+
if (self->language && self->language->external_scanner.states) {
|
|
367
|
+
if (ts_language_is_wasm(self->language)) {
|
|
368
|
+
self->external_scanner_payload = (void *)(uintptr_t)ts_wasm_store_call_scanner_create(
|
|
369
|
+
self->wasm_store
|
|
370
|
+
);
|
|
371
|
+
if (ts_wasm_store_has_error(self->wasm_store)) {
|
|
372
|
+
self->has_scanner_error = true;
|
|
373
|
+
}
|
|
374
|
+
} else if (self->language->external_scanner.create) {
|
|
375
|
+
self->external_scanner_payload = self->language->external_scanner.create();
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
static void ts_parser__external_scanner_destroy(
|
|
381
|
+
TSParser *self
|
|
382
|
+
) {
|
|
383
|
+
if (
|
|
384
|
+
self->language &&
|
|
385
|
+
self->external_scanner_payload &&
|
|
386
|
+
self->language->external_scanner.destroy &&
|
|
387
|
+
!ts_language_is_wasm(self->language)
|
|
388
|
+
) {
|
|
389
|
+
self->language->external_scanner.destroy(
|
|
390
|
+
self->external_scanner_payload
|
|
391
|
+
);
|
|
392
|
+
}
|
|
393
|
+
self->external_scanner_payload = NULL;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
static unsigned ts_parser__external_scanner_serialize(
|
|
397
|
+
TSParser *self
|
|
398
|
+
) {
|
|
399
|
+
if (ts_language_is_wasm(self->language)) {
|
|
400
|
+
return ts_wasm_store_call_scanner_serialize(
|
|
401
|
+
self->wasm_store,
|
|
402
|
+
(uintptr_t)self->external_scanner_payload,
|
|
403
|
+
self->lexer.debug_buffer
|
|
404
|
+
);
|
|
405
|
+
} else {
|
|
406
|
+
uint32_t length = self->language->external_scanner.serialize(
|
|
407
|
+
self->external_scanner_payload,
|
|
408
|
+
self->lexer.debug_buffer
|
|
409
|
+
);
|
|
410
|
+
ts_assert(length <= TREE_SITTER_SERIALIZATION_BUFFER_SIZE);
|
|
411
|
+
return length;
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
static void ts_parser__external_scanner_deserialize(
|
|
416
|
+
TSParser *self,
|
|
417
|
+
Subtree external_token
|
|
418
|
+
) {
|
|
419
|
+
const char *data = NULL;
|
|
420
|
+
uint32_t length = 0;
|
|
421
|
+
if (external_token.ptr) {
|
|
422
|
+
data = ts_external_scanner_state_data(&external_token.ptr->external_scanner_state);
|
|
423
|
+
length = external_token.ptr->external_scanner_state.length;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
if (ts_language_is_wasm(self->language)) {
|
|
427
|
+
ts_wasm_store_call_scanner_deserialize(
|
|
428
|
+
self->wasm_store,
|
|
429
|
+
(uintptr_t)self->external_scanner_payload,
|
|
430
|
+
data,
|
|
431
|
+
length
|
|
432
|
+
);
|
|
433
|
+
if (ts_wasm_store_has_error(self->wasm_store)) {
|
|
434
|
+
self->has_scanner_error = true;
|
|
435
|
+
}
|
|
436
|
+
} else {
|
|
437
|
+
self->language->external_scanner.deserialize(
|
|
438
|
+
self->external_scanner_payload,
|
|
439
|
+
data,
|
|
440
|
+
length
|
|
441
|
+
);
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
static bool ts_parser__external_scanner_scan(
|
|
446
|
+
TSParser *self,
|
|
447
|
+
TSStateId external_lex_state
|
|
448
|
+
) {
|
|
449
|
+
if (ts_language_is_wasm(self->language)) {
|
|
450
|
+
bool result = ts_wasm_store_call_scanner_scan(
|
|
451
|
+
self->wasm_store,
|
|
452
|
+
(uintptr_t)self->external_scanner_payload,
|
|
453
|
+
external_lex_state * self->language->external_token_count
|
|
454
|
+
);
|
|
455
|
+
if (ts_wasm_store_has_error(self->wasm_store)) {
|
|
456
|
+
self->has_scanner_error = true;
|
|
457
|
+
}
|
|
458
|
+
return result;
|
|
459
|
+
} else {
|
|
460
|
+
const bool *valid_external_tokens = ts_language_enabled_external_tokens(
|
|
461
|
+
self->language,
|
|
462
|
+
external_lex_state
|
|
463
|
+
);
|
|
464
|
+
return self->language->external_scanner.scan(
|
|
465
|
+
self->external_scanner_payload,
|
|
466
|
+
&self->lexer.data,
|
|
467
|
+
valid_external_tokens
|
|
468
|
+
);
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
static bool ts_parser__can_reuse_first_leaf(
|
|
473
|
+
TSParser *self,
|
|
474
|
+
TSStateId state,
|
|
475
|
+
Subtree tree,
|
|
476
|
+
TableEntry *table_entry
|
|
477
|
+
) {
|
|
478
|
+
TSSymbol leaf_symbol = ts_subtree_leaf_symbol(tree);
|
|
479
|
+
TSStateId leaf_state = ts_subtree_leaf_parse_state(tree);
|
|
480
|
+
TSLexerMode current_lex_mode = ts_language_lex_mode_for_state(self->language, state);
|
|
481
|
+
TSLexerMode leaf_lex_mode = ts_language_lex_mode_for_state(self->language, leaf_state);
|
|
482
|
+
|
|
483
|
+
// At the end of a non-terminal extra node, the lexer normally returns
|
|
484
|
+
// NULL, which indicates that the parser should look for a reduce action
|
|
485
|
+
// at symbol `0`. Avoid reusing tokens in this situation to ensure that
|
|
486
|
+
// the same thing happens when incrementally reparsing.
|
|
487
|
+
if (current_lex_mode.lex_state == (uint16_t)(-1)) return false;
|
|
488
|
+
|
|
489
|
+
// If the token was created in a state with the same set of lookaheads, it is reusable.
|
|
490
|
+
if (
|
|
491
|
+
table_entry->action_count > 0 &&
|
|
492
|
+
memcmp(&leaf_lex_mode, ¤t_lex_mode, sizeof(TSLexerMode)) == 0 &&
|
|
493
|
+
(
|
|
494
|
+
leaf_symbol != self->language->keyword_capture_token ||
|
|
495
|
+
(!ts_subtree_is_keyword(tree) && ts_subtree_parse_state(tree) == state)
|
|
496
|
+
)
|
|
497
|
+
) return true;
|
|
498
|
+
|
|
499
|
+
// Empty tokens are not reusable in states with different lookaheads.
|
|
500
|
+
if (ts_subtree_size(tree).bytes == 0 && leaf_symbol != ts_builtin_sym_end) return false;
|
|
501
|
+
|
|
502
|
+
// If the current state allows external tokens or other tokens that conflict with this
|
|
503
|
+
// token, this token is not reusable.
|
|
504
|
+
return current_lex_mode.external_lex_state == 0 && table_entry->is_reusable;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
static Subtree ts_parser__lex(
|
|
508
|
+
TSParser *self,
|
|
509
|
+
StackVersion version,
|
|
510
|
+
TSStateId parse_state
|
|
511
|
+
) {
|
|
512
|
+
TSLexerMode lex_mode = ts_language_lex_mode_for_state(self->language, parse_state);
|
|
513
|
+
if (lex_mode.lex_state == (uint16_t)-1) {
|
|
514
|
+
LOG("no_lookahead_after_non_terminal_extra");
|
|
515
|
+
return NULL_SUBTREE;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
const Length start_position = ts_stack_position(self->stack, version);
|
|
519
|
+
const Subtree external_token = ts_stack_last_external_token(self->stack, version);
|
|
520
|
+
|
|
521
|
+
bool found_external_token = false;
|
|
522
|
+
bool error_mode = parse_state == ERROR_STATE;
|
|
523
|
+
bool skipped_error = false;
|
|
524
|
+
bool called_get_column = false;
|
|
525
|
+
int32_t first_error_character = 0;
|
|
526
|
+
Length error_start_position = length_zero();
|
|
527
|
+
Length error_end_position = length_zero();
|
|
528
|
+
uint32_t lookahead_end_byte = 0;
|
|
529
|
+
uint32_t external_scanner_state_len = 0;
|
|
530
|
+
bool external_scanner_state_changed = false;
|
|
531
|
+
ts_lexer_reset(&self->lexer, start_position);
|
|
532
|
+
|
|
533
|
+
for (;;) {
|
|
534
|
+
bool found_token = false;
|
|
535
|
+
Length current_position = self->lexer.current_position;
|
|
536
|
+
ColumnData column_data = self->lexer.column_data;
|
|
537
|
+
|
|
538
|
+
if (lex_mode.external_lex_state != 0) {
|
|
539
|
+
LOG(
|
|
540
|
+
"lex_external state:%d, row:%u, column:%u",
|
|
541
|
+
lex_mode.external_lex_state,
|
|
542
|
+
current_position.extent.row,
|
|
543
|
+
current_position.extent.column
|
|
544
|
+
);
|
|
545
|
+
ts_lexer_start(&self->lexer);
|
|
546
|
+
ts_parser__external_scanner_deserialize(self, external_token);
|
|
547
|
+
found_token = ts_parser__external_scanner_scan(self, lex_mode.external_lex_state);
|
|
548
|
+
if (self->has_scanner_error) return NULL_SUBTREE;
|
|
549
|
+
ts_lexer_finish(&self->lexer, &lookahead_end_byte);
|
|
550
|
+
|
|
551
|
+
if (found_token) {
|
|
552
|
+
external_scanner_state_len = ts_parser__external_scanner_serialize(self);
|
|
553
|
+
external_scanner_state_changed = !ts_external_scanner_state_eq(
|
|
554
|
+
ts_subtree_external_scanner_state(external_token),
|
|
555
|
+
self->lexer.debug_buffer,
|
|
556
|
+
external_scanner_state_len
|
|
557
|
+
);
|
|
558
|
+
|
|
559
|
+
// Avoid infinite loops caused by the external scanner returning empty tokens.
|
|
560
|
+
// Empty tokens are needed in some circumstances, e.g. indent/dedent tokens
|
|
561
|
+
// in Python. Ignore the following classes of empty tokens:
|
|
562
|
+
//
|
|
563
|
+
// * Tokens produced during error recovery. When recovering from an error,
|
|
564
|
+
// all tokens are allowed, so it's easy to accidentally return unwanted
|
|
565
|
+
// empty tokens.
|
|
566
|
+
// * Tokens that are marked as 'extra' in the grammar. These don't change
|
|
567
|
+
// the parse state, so they would definitely cause an infinite loop.
|
|
568
|
+
if (
|
|
569
|
+
self->lexer.token_end_position.bytes <= current_position.bytes &&
|
|
570
|
+
!external_scanner_state_changed
|
|
571
|
+
) {
|
|
572
|
+
TSSymbol symbol = self->language->external_scanner.symbol_map[self->lexer.data.result_symbol];
|
|
573
|
+
TSStateId next_parse_state = ts_language_next_state(self->language, parse_state, symbol);
|
|
574
|
+
bool token_is_extra = (next_parse_state == parse_state);
|
|
575
|
+
if (error_mode || !ts_stack_has_advanced_since_error(self->stack, version) || token_is_extra) {
|
|
576
|
+
LOG(
|
|
577
|
+
"ignore_empty_external_token symbol:%s",
|
|
578
|
+
SYM_NAME(self->language->external_scanner.symbol_map[self->lexer.data.result_symbol])
|
|
579
|
+
);
|
|
580
|
+
found_token = false;
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
if (found_token) {
|
|
586
|
+
found_external_token = true;
|
|
587
|
+
called_get_column = self->lexer.did_get_column;
|
|
588
|
+
break;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
ts_lexer_reset(&self->lexer, current_position);
|
|
592
|
+
self->lexer.column_data = column_data;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
LOG(
|
|
596
|
+
"lex_internal state:%d, row:%u, column:%u",
|
|
597
|
+
lex_mode.lex_state,
|
|
598
|
+
current_position.extent.row,
|
|
599
|
+
current_position.extent.column
|
|
600
|
+
);
|
|
601
|
+
ts_lexer_start(&self->lexer);
|
|
602
|
+
found_token = ts_parser__call_main_lex_fn(self, lex_mode);
|
|
603
|
+
ts_lexer_finish(&self->lexer, &lookahead_end_byte);
|
|
604
|
+
if (found_token) break;
|
|
605
|
+
|
|
606
|
+
if (!error_mode) {
|
|
607
|
+
error_mode = true;
|
|
608
|
+
lex_mode = ts_language_lex_mode_for_state(self->language, ERROR_STATE);
|
|
609
|
+
ts_lexer_reset(&self->lexer, start_position);
|
|
610
|
+
continue;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
if (!skipped_error) {
|
|
614
|
+
LOG("skip_unrecognized_character");
|
|
615
|
+
skipped_error = true;
|
|
616
|
+
error_start_position = self->lexer.token_start_position;
|
|
617
|
+
error_end_position = self->lexer.token_start_position;
|
|
618
|
+
first_error_character = self->lexer.data.lookahead;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
if (self->lexer.current_position.bytes == error_end_position.bytes) {
|
|
622
|
+
if (self->lexer.data.eof(&self->lexer.data)) {
|
|
623
|
+
self->lexer.data.result_symbol = ts_builtin_sym_error;
|
|
624
|
+
break;
|
|
625
|
+
}
|
|
626
|
+
self->lexer.data.advance(&self->lexer.data, false);
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
error_end_position = self->lexer.current_position;
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
Subtree result;
|
|
633
|
+
if (skipped_error) {
|
|
634
|
+
Length padding = length_sub(error_start_position, start_position);
|
|
635
|
+
Length size = length_sub(error_end_position, error_start_position);
|
|
636
|
+
uint32_t lookahead_bytes = lookahead_end_byte - error_end_position.bytes;
|
|
637
|
+
result = ts_subtree_new_error(
|
|
638
|
+
&self->tree_pool,
|
|
639
|
+
first_error_character,
|
|
640
|
+
padding,
|
|
641
|
+
size,
|
|
642
|
+
lookahead_bytes,
|
|
643
|
+
parse_state,
|
|
644
|
+
self->language
|
|
645
|
+
);
|
|
646
|
+
} else {
|
|
647
|
+
bool is_keyword = false;
|
|
648
|
+
TSSymbol symbol = self->lexer.data.result_symbol;
|
|
649
|
+
Length padding = length_sub(self->lexer.token_start_position, start_position);
|
|
650
|
+
Length size = length_sub(self->lexer.token_end_position, self->lexer.token_start_position);
|
|
651
|
+
uint32_t lookahead_bytes = lookahead_end_byte - self->lexer.token_end_position.bytes;
|
|
652
|
+
|
|
653
|
+
if (found_external_token) {
|
|
654
|
+
symbol = self->language->external_scanner.symbol_map[symbol];
|
|
655
|
+
} else if (symbol == self->language->keyword_capture_token && symbol != 0) {
|
|
656
|
+
uint32_t end_byte = self->lexer.token_end_position.bytes;
|
|
657
|
+
ts_lexer_reset(&self->lexer, self->lexer.token_start_position);
|
|
658
|
+
ts_lexer_start(&self->lexer);
|
|
659
|
+
|
|
660
|
+
is_keyword = ts_parser__call_keyword_lex_fn(self);
|
|
661
|
+
|
|
662
|
+
if (
|
|
663
|
+
is_keyword &&
|
|
664
|
+
self->lexer.token_end_position.bytes == end_byte &&
|
|
665
|
+
(
|
|
666
|
+
ts_language_has_actions(self->language, parse_state, self->lexer.data.result_symbol) ||
|
|
667
|
+
ts_language_is_reserved_word(self->language, parse_state, self->lexer.data.result_symbol)
|
|
668
|
+
)
|
|
669
|
+
) {
|
|
670
|
+
symbol = self->lexer.data.result_symbol;
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
result = ts_subtree_new_leaf(
|
|
675
|
+
&self->tree_pool,
|
|
676
|
+
symbol,
|
|
677
|
+
padding,
|
|
678
|
+
size,
|
|
679
|
+
lookahead_bytes,
|
|
680
|
+
parse_state,
|
|
681
|
+
found_external_token,
|
|
682
|
+
called_get_column,
|
|
683
|
+
is_keyword,
|
|
684
|
+
self->language
|
|
685
|
+
);
|
|
686
|
+
|
|
687
|
+
if (found_external_token) {
|
|
688
|
+
MutableSubtree mut_result = ts_subtree_to_mut_unsafe(result);
|
|
689
|
+
ts_external_scanner_state_init(
|
|
690
|
+
&mut_result.ptr->external_scanner_state,
|
|
691
|
+
self->lexer.debug_buffer,
|
|
692
|
+
external_scanner_state_len
|
|
693
|
+
);
|
|
694
|
+
mut_result.ptr->has_external_scanner_state_change = external_scanner_state_changed;
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
LOG_LOOKAHEAD(
|
|
699
|
+
SYM_NAME(ts_subtree_symbol(result)),
|
|
700
|
+
ts_subtree_total_size(result).bytes
|
|
701
|
+
);
|
|
702
|
+
return result;
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
static Subtree ts_parser__get_cached_token(
|
|
706
|
+
TSParser *self,
|
|
707
|
+
TSStateId state,
|
|
708
|
+
size_t position,
|
|
709
|
+
Subtree last_external_token,
|
|
710
|
+
TableEntry *table_entry
|
|
711
|
+
) {
|
|
712
|
+
TokenCache *cache = &self->token_cache;
|
|
713
|
+
if (
|
|
714
|
+
cache->token.ptr && cache->byte_index == position &&
|
|
715
|
+
ts_subtree_external_scanner_state_eq(cache->last_external_token, last_external_token)
|
|
716
|
+
) {
|
|
717
|
+
ts_language_table_entry(self->language, state, ts_subtree_symbol(cache->token), table_entry);
|
|
718
|
+
if (ts_parser__can_reuse_first_leaf(self, state, cache->token, table_entry)) {
|
|
719
|
+
ts_subtree_retain(cache->token);
|
|
720
|
+
return cache->token;
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
return NULL_SUBTREE;
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
static void ts_parser__set_cached_token(
|
|
727
|
+
TSParser *self,
|
|
728
|
+
uint32_t byte_index,
|
|
729
|
+
Subtree last_external_token,
|
|
730
|
+
Subtree token
|
|
731
|
+
) {
|
|
732
|
+
TokenCache *cache = &self->token_cache;
|
|
733
|
+
if (token.ptr) ts_subtree_retain(token);
|
|
734
|
+
if (last_external_token.ptr) ts_subtree_retain(last_external_token);
|
|
735
|
+
if (cache->token.ptr) ts_subtree_release(&self->tree_pool, cache->token);
|
|
736
|
+
if (cache->last_external_token.ptr) ts_subtree_release(&self->tree_pool, cache->last_external_token);
|
|
737
|
+
cache->token = token;
|
|
738
|
+
cache->byte_index = byte_index;
|
|
739
|
+
cache->last_external_token = last_external_token;
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
static bool ts_parser__has_included_range_difference(
|
|
743
|
+
const TSParser *self,
|
|
744
|
+
uint32_t start_position,
|
|
745
|
+
uint32_t end_position
|
|
746
|
+
) {
|
|
747
|
+
return ts_range_array_intersects(
|
|
748
|
+
&self->included_range_differences,
|
|
749
|
+
self->included_range_difference_index,
|
|
750
|
+
start_position,
|
|
751
|
+
end_position
|
|
752
|
+
);
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
static Subtree ts_parser__reuse_node(
|
|
756
|
+
TSParser *self,
|
|
757
|
+
StackVersion version,
|
|
758
|
+
TSStateId *state,
|
|
759
|
+
uint32_t position,
|
|
760
|
+
Subtree last_external_token,
|
|
761
|
+
TableEntry *table_entry
|
|
762
|
+
) {
|
|
763
|
+
Subtree result;
|
|
764
|
+
while ((result = reusable_node_tree(&self->reusable_node)).ptr) {
|
|
765
|
+
uint32_t byte_offset = reusable_node_byte_offset(&self->reusable_node);
|
|
766
|
+
uint32_t end_byte_offset = byte_offset + ts_subtree_total_bytes(result);
|
|
767
|
+
|
|
768
|
+
// Do not reuse an EOF node if the included ranges array has changes
|
|
769
|
+
// later on in the file.
|
|
770
|
+
if (ts_subtree_is_eof(result)) end_byte_offset = UINT32_MAX;
|
|
771
|
+
|
|
772
|
+
if (byte_offset > position) {
|
|
773
|
+
LOG("before_reusable_node symbol:%s", TREE_NAME(result));
|
|
774
|
+
break;
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
if (byte_offset < position) {
|
|
778
|
+
LOG("past_reusable_node symbol:%s", TREE_NAME(result));
|
|
779
|
+
if (end_byte_offset <= position || !reusable_node_descend(&self->reusable_node)) {
|
|
780
|
+
reusable_node_advance(&self->reusable_node);
|
|
781
|
+
}
|
|
782
|
+
continue;
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
if (!ts_subtree_external_scanner_state_eq(self->reusable_node.last_external_token, last_external_token)) {
|
|
786
|
+
LOG("reusable_node_has_different_external_scanner_state symbol:%s", TREE_NAME(result));
|
|
787
|
+
reusable_node_advance(&self->reusable_node);
|
|
788
|
+
continue;
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
const char *reason = NULL;
|
|
792
|
+
if (ts_subtree_has_changes(result)) {
|
|
793
|
+
reason = "has_changes";
|
|
794
|
+
} else if (ts_subtree_is_error(result)) {
|
|
795
|
+
reason = "is_error";
|
|
796
|
+
} else if (ts_subtree_missing(result)) {
|
|
797
|
+
reason = "is_missing";
|
|
798
|
+
} else if (ts_subtree_is_fragile(result)) {
|
|
799
|
+
reason = "is_fragile";
|
|
800
|
+
} else if (ts_parser__has_included_range_difference(self, byte_offset, end_byte_offset)) {
|
|
801
|
+
reason = "contains_different_included_range";
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
if (reason) {
|
|
805
|
+
LOG("cant_reuse_node_%s tree:%s", reason, TREE_NAME(result));
|
|
806
|
+
if (!reusable_node_descend(&self->reusable_node)) {
|
|
807
|
+
reusable_node_advance(&self->reusable_node);
|
|
808
|
+
ts_parser__breakdown_top_of_stack(self, version);
|
|
809
|
+
*state = ts_stack_state(self->stack, version);
|
|
810
|
+
}
|
|
811
|
+
continue;
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
TSSymbol leaf_symbol = ts_subtree_leaf_symbol(result);
|
|
815
|
+
ts_language_table_entry(self->language, *state, leaf_symbol, table_entry);
|
|
816
|
+
if (!ts_parser__can_reuse_first_leaf(self, *state, result, table_entry)) {
|
|
817
|
+
LOG(
|
|
818
|
+
"cant_reuse_node symbol:%s, first_leaf_symbol:%s",
|
|
819
|
+
TREE_NAME(result),
|
|
820
|
+
SYM_NAME(leaf_symbol)
|
|
821
|
+
);
|
|
822
|
+
reusable_node_advance_past_leaf(&self->reusable_node);
|
|
823
|
+
break;
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
LOG("reuse_node symbol:%s", TREE_NAME(result));
|
|
827
|
+
ts_subtree_retain(result);
|
|
828
|
+
return result;
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
return NULL_SUBTREE;
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
// Determine if a given tree should be replaced by an alternative tree.
|
|
835
|
+
//
|
|
836
|
+
// The decision is based on the trees' error costs (if any), their dynamic precedence,
|
|
837
|
+
// and finally, as a default, by a recursive comparison of the trees' symbols.
|
|
838
|
+
static bool ts_parser__select_tree(TSParser *self, Subtree left, Subtree right) {
|
|
839
|
+
if (!left.ptr) return true;
|
|
840
|
+
if (!right.ptr) return false;
|
|
841
|
+
|
|
842
|
+
if (ts_subtree_error_cost(right) < ts_subtree_error_cost(left)) {
|
|
843
|
+
LOG("select_smaller_error symbol:%s, over_symbol:%s", TREE_NAME(right), TREE_NAME(left));
|
|
844
|
+
return true;
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
if (ts_subtree_error_cost(left) < ts_subtree_error_cost(right)) {
|
|
848
|
+
LOG("select_smaller_error symbol:%s, over_symbol:%s", TREE_NAME(left), TREE_NAME(right));
|
|
849
|
+
return false;
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
if (ts_subtree_dynamic_precedence(right) > ts_subtree_dynamic_precedence(left)) {
|
|
853
|
+
LOG("select_higher_precedence symbol:%s, prec:%" PRId32 ", over_symbol:%s, other_prec:%" PRId32,
|
|
854
|
+
TREE_NAME(right), ts_subtree_dynamic_precedence(right), TREE_NAME(left),
|
|
855
|
+
ts_subtree_dynamic_precedence(left));
|
|
856
|
+
return true;
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
if (ts_subtree_dynamic_precedence(left) > ts_subtree_dynamic_precedence(right)) {
|
|
860
|
+
LOG("select_higher_precedence symbol:%s, prec:%" PRId32 ", over_symbol:%s, other_prec:%" PRId32,
|
|
861
|
+
TREE_NAME(left), ts_subtree_dynamic_precedence(left), TREE_NAME(right),
|
|
862
|
+
ts_subtree_dynamic_precedence(right));
|
|
863
|
+
return false;
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
if (ts_subtree_error_cost(left) > 0) return true;
|
|
867
|
+
|
|
868
|
+
int comparison = ts_subtree_compare(left, right, &self->tree_pool);
|
|
869
|
+
switch (comparison) {
|
|
870
|
+
case -1:
|
|
871
|
+
LOG("select_earlier symbol:%s, over_symbol:%s", TREE_NAME(left), TREE_NAME(right));
|
|
872
|
+
return false;
|
|
873
|
+
break;
|
|
874
|
+
case 1:
|
|
875
|
+
LOG("select_earlier symbol:%s, over_symbol:%s", TREE_NAME(right), TREE_NAME(left));
|
|
876
|
+
return true;
|
|
877
|
+
default:
|
|
878
|
+
LOG("select_existing symbol:%s, over_symbol:%s", TREE_NAME(left), TREE_NAME(right));
|
|
879
|
+
return false;
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
// Determine if a given tree's children should be replaced by an alternative
|
|
884
|
+
// array of children.
|
|
885
|
+
static bool ts_parser__select_children(
|
|
886
|
+
TSParser *self,
|
|
887
|
+
Subtree left,
|
|
888
|
+
const SubtreeArray *children
|
|
889
|
+
) {
|
|
890
|
+
array_assign(&self->scratch_trees, children);
|
|
891
|
+
|
|
892
|
+
// Create a temporary subtree using the scratch trees array. This node does
|
|
893
|
+
// not perform any allocation except for possibly growing the array to make
|
|
894
|
+
// room for its own heap data. The scratch tree is never explicitly released,
|
|
895
|
+
// so the same 'scratch trees' array can be reused again later.
|
|
896
|
+
MutableSubtree scratch_tree = ts_subtree_new_node(
|
|
897
|
+
ts_subtree_symbol(left),
|
|
898
|
+
&self->scratch_trees,
|
|
899
|
+
0,
|
|
900
|
+
self->language
|
|
901
|
+
);
|
|
902
|
+
|
|
903
|
+
return ts_parser__select_tree(
|
|
904
|
+
self,
|
|
905
|
+
left,
|
|
906
|
+
ts_subtree_from_mut(scratch_tree)
|
|
907
|
+
);
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
static void ts_parser__shift(
|
|
911
|
+
TSParser *self,
|
|
912
|
+
StackVersion version,
|
|
913
|
+
TSStateId state,
|
|
914
|
+
Subtree lookahead,
|
|
915
|
+
bool extra
|
|
916
|
+
) {
|
|
917
|
+
bool is_leaf = ts_subtree_child_count(lookahead) == 0;
|
|
918
|
+
Subtree subtree_to_push = lookahead;
|
|
919
|
+
if (extra != ts_subtree_extra(lookahead) && is_leaf) {
|
|
920
|
+
MutableSubtree result = ts_subtree_make_mut(&self->tree_pool, lookahead);
|
|
921
|
+
ts_subtree_set_extra(&result, extra);
|
|
922
|
+
subtree_to_push = ts_subtree_from_mut(result);
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
ts_stack_push(self->stack, version, subtree_to_push, !is_leaf, state);
|
|
926
|
+
if (ts_subtree_has_external_tokens(subtree_to_push)) {
|
|
927
|
+
ts_stack_set_last_external_token(
|
|
928
|
+
self->stack, version, ts_subtree_last_external_token(subtree_to_push)
|
|
929
|
+
);
|
|
930
|
+
}
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
static StackVersion ts_parser__reduce(
|
|
934
|
+
TSParser *self,
|
|
935
|
+
StackVersion version,
|
|
936
|
+
TSSymbol symbol,
|
|
937
|
+
uint32_t count,
|
|
938
|
+
int dynamic_precedence,
|
|
939
|
+
uint16_t production_id,
|
|
940
|
+
bool is_fragile,
|
|
941
|
+
bool end_of_non_terminal_extra
|
|
942
|
+
) {
|
|
943
|
+
uint32_t initial_version_count = ts_stack_version_count(self->stack);
|
|
944
|
+
|
|
945
|
+
// Pop the given number of nodes from the given version of the parse stack.
|
|
946
|
+
// If stack versions have previously merged, then there may be more than one
|
|
947
|
+
// path back through the stack. For each path, create a new parent node to
|
|
948
|
+
// contain the popped children, and push it onto the stack in place of the
|
|
949
|
+
// children.
|
|
950
|
+
StackSliceArray pop = ts_stack_pop_count(self->stack, version, count);
|
|
951
|
+
uint32_t removed_version_count = 0;
|
|
952
|
+
uint32_t halted_version_count = ts_stack_halted_version_count(self->stack);
|
|
953
|
+
for (uint32_t i = 0; i < pop.size; i++) {
|
|
954
|
+
StackSlice slice = pop.contents[i];
|
|
955
|
+
StackVersion slice_version = slice.version - removed_version_count;
|
|
956
|
+
|
|
957
|
+
// This is where new versions are added to the parse stack. The versions
|
|
958
|
+
// will all be sorted and truncated at the end of the outer parsing loop.
|
|
959
|
+
// Allow the maximum version count to be temporarily exceeded, but only
|
|
960
|
+
// by a limited threshold.
|
|
961
|
+
if (slice_version > MAX_VERSION_COUNT + MAX_VERSION_COUNT_OVERFLOW + halted_version_count) {
|
|
962
|
+
ts_stack_remove_version(self->stack, slice_version);
|
|
963
|
+
ts_subtree_array_delete(&self->tree_pool, &slice.subtrees);
|
|
964
|
+
removed_version_count++;
|
|
965
|
+
while (i + 1 < pop.size) {
|
|
966
|
+
LOG("aborting reduce with too many versions")
|
|
967
|
+
StackSlice next_slice = pop.contents[i + 1];
|
|
968
|
+
if (next_slice.version != slice.version) break;
|
|
969
|
+
ts_subtree_array_delete(&self->tree_pool, &next_slice.subtrees);
|
|
970
|
+
i++;
|
|
971
|
+
}
|
|
972
|
+
continue;
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
// Extra tokens on top of the stack should not be included in this new parent
|
|
976
|
+
// node. They will be re-pushed onto the stack after the parent node is
|
|
977
|
+
// created and pushed.
|
|
978
|
+
SubtreeArray children = slice.subtrees;
|
|
979
|
+
ts_subtree_array_remove_trailing_extras(&children, &self->trailing_extras);
|
|
980
|
+
|
|
981
|
+
MutableSubtree parent = ts_subtree_new_node(
|
|
982
|
+
symbol, &children, production_id, self->language
|
|
983
|
+
);
|
|
984
|
+
|
|
985
|
+
// This pop operation may have caused multiple stack versions to collapse
|
|
986
|
+
// into one, because they all diverged from a common state. In that case,
|
|
987
|
+
// choose one of the arrays of trees to be the parent node's children, and
|
|
988
|
+
// delete the rest of the tree arrays.
|
|
989
|
+
while (i + 1 < pop.size) {
|
|
990
|
+
StackSlice next_slice = pop.contents[i + 1];
|
|
991
|
+
if (next_slice.version != slice.version) break;
|
|
992
|
+
i++;
|
|
993
|
+
|
|
994
|
+
SubtreeArray next_slice_children = next_slice.subtrees;
|
|
995
|
+
ts_subtree_array_remove_trailing_extras(&next_slice_children, &self->trailing_extras2);
|
|
996
|
+
|
|
997
|
+
if (ts_parser__select_children(
|
|
998
|
+
self,
|
|
999
|
+
ts_subtree_from_mut(parent),
|
|
1000
|
+
&next_slice_children
|
|
1001
|
+
)) {
|
|
1002
|
+
ts_subtree_array_clear(&self->tree_pool, &self->trailing_extras);
|
|
1003
|
+
ts_subtree_release(&self->tree_pool, ts_subtree_from_mut(parent));
|
|
1004
|
+
array_swap(&self->trailing_extras, &self->trailing_extras2);
|
|
1005
|
+
parent = ts_subtree_new_node(
|
|
1006
|
+
symbol, &next_slice_children, production_id, self->language
|
|
1007
|
+
);
|
|
1008
|
+
} else {
|
|
1009
|
+
array_clear(&self->trailing_extras2);
|
|
1010
|
+
ts_subtree_array_delete(&self->tree_pool, &next_slice.subtrees);
|
|
1011
|
+
}
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
TSStateId state = ts_stack_state(self->stack, slice_version);
|
|
1015
|
+
TSStateId next_state = ts_language_next_state(self->language, state, symbol);
|
|
1016
|
+
if (end_of_non_terminal_extra && next_state == state) {
|
|
1017
|
+
parent.ptr->extra = true;
|
|
1018
|
+
}
|
|
1019
|
+
if (is_fragile || pop.size > 1 || initial_version_count > 1) {
|
|
1020
|
+
parent.ptr->fragile_left = true;
|
|
1021
|
+
parent.ptr->fragile_right = true;
|
|
1022
|
+
parent.ptr->parse_state = TS_TREE_STATE_NONE;
|
|
1023
|
+
} else {
|
|
1024
|
+
parent.ptr->parse_state = state;
|
|
1025
|
+
}
|
|
1026
|
+
parent.ptr->dynamic_precedence += dynamic_precedence;
|
|
1027
|
+
|
|
1028
|
+
// Push the parent node onto the stack, along with any extra tokens that
|
|
1029
|
+
// were previously on top of the stack.
|
|
1030
|
+
ts_stack_push(self->stack, slice_version, ts_subtree_from_mut(parent), false, next_state);
|
|
1031
|
+
for (uint32_t j = 0; j < self->trailing_extras.size; j++) {
|
|
1032
|
+
ts_stack_push(self->stack, slice_version, self->trailing_extras.contents[j], false, next_state);
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
for (StackVersion j = 0; j < slice_version; j++) {
|
|
1036
|
+
if (j == version) continue;
|
|
1037
|
+
if (ts_stack_merge(self->stack, j, slice_version)) {
|
|
1038
|
+
removed_version_count++;
|
|
1039
|
+
break;
|
|
1040
|
+
}
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
// Return the first new stack version that was created.
|
|
1045
|
+
return ts_stack_version_count(self->stack) > initial_version_count
|
|
1046
|
+
? initial_version_count
|
|
1047
|
+
: STACK_VERSION_NONE;
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
static void ts_parser__accept(
|
|
1051
|
+
TSParser *self,
|
|
1052
|
+
StackVersion version,
|
|
1053
|
+
Subtree lookahead
|
|
1054
|
+
) {
|
|
1055
|
+
ts_assert(ts_subtree_is_eof(lookahead));
|
|
1056
|
+
ts_stack_push(self->stack, version, lookahead, false, 1);
|
|
1057
|
+
|
|
1058
|
+
StackSliceArray pop = ts_stack_pop_all(self->stack, version);
|
|
1059
|
+
for (uint32_t i = 0; i < pop.size; i++) {
|
|
1060
|
+
SubtreeArray trees = pop.contents[i].subtrees;
|
|
1061
|
+
|
|
1062
|
+
Subtree root = NULL_SUBTREE;
|
|
1063
|
+
for (uint32_t j = trees.size - 1; j + 1 > 0; j--) {
|
|
1064
|
+
Subtree tree = trees.contents[j];
|
|
1065
|
+
if (!ts_subtree_extra(tree)) {
|
|
1066
|
+
ts_assert(!tree.data.is_inline);
|
|
1067
|
+
uint32_t child_count = ts_subtree_child_count(tree);
|
|
1068
|
+
const Subtree *children = ts_subtree_children(tree);
|
|
1069
|
+
for (uint32_t k = 0; k < child_count; k++) {
|
|
1070
|
+
ts_subtree_retain(children[k]);
|
|
1071
|
+
}
|
|
1072
|
+
array_splice(&trees, j, 1, child_count, children);
|
|
1073
|
+
root = ts_subtree_from_mut(ts_subtree_new_node(
|
|
1074
|
+
ts_subtree_symbol(tree),
|
|
1075
|
+
&trees,
|
|
1076
|
+
tree.ptr->production_id,
|
|
1077
|
+
self->language
|
|
1078
|
+
));
|
|
1079
|
+
ts_subtree_release(&self->tree_pool, tree);
|
|
1080
|
+
break;
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
ts_assert(root.ptr);
|
|
1085
|
+
self->accept_count++;
|
|
1086
|
+
|
|
1087
|
+
if (self->finished_tree.ptr) {
|
|
1088
|
+
if (ts_parser__select_tree(self, self->finished_tree, root)) {
|
|
1089
|
+
ts_subtree_release(&self->tree_pool, self->finished_tree);
|
|
1090
|
+
self->finished_tree = root;
|
|
1091
|
+
} else {
|
|
1092
|
+
ts_subtree_release(&self->tree_pool, root);
|
|
1093
|
+
}
|
|
1094
|
+
} else {
|
|
1095
|
+
self->finished_tree = root;
|
|
1096
|
+
}
|
|
1097
|
+
}
|
|
1098
|
+
|
|
1099
|
+
ts_stack_remove_version(self->stack, pop.contents[0].version);
|
|
1100
|
+
ts_stack_halt(self->stack, version);
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
static bool ts_parser__do_all_potential_reductions(
|
|
1104
|
+
TSParser *self,
|
|
1105
|
+
StackVersion starting_version,
|
|
1106
|
+
TSSymbol lookahead_symbol
|
|
1107
|
+
) {
|
|
1108
|
+
uint32_t initial_version_count = ts_stack_version_count(self->stack);
|
|
1109
|
+
|
|
1110
|
+
bool can_shift_lookahead_symbol = false;
|
|
1111
|
+
StackVersion version = starting_version;
|
|
1112
|
+
for (unsigned i = 0; true; i++) {
|
|
1113
|
+
uint32_t version_count = ts_stack_version_count(self->stack);
|
|
1114
|
+
if (version >= version_count) break;
|
|
1115
|
+
|
|
1116
|
+
bool merged = false;
|
|
1117
|
+
for (StackVersion j = initial_version_count; j < version; j++) {
|
|
1118
|
+
if (ts_stack_merge(self->stack, j, version)) {
|
|
1119
|
+
merged = true;
|
|
1120
|
+
break;
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1123
|
+
if (merged) continue;
|
|
1124
|
+
|
|
1125
|
+
TSStateId state = ts_stack_state(self->stack, version);
|
|
1126
|
+
bool has_shift_action = false;
|
|
1127
|
+
array_clear(&self->reduce_actions);
|
|
1128
|
+
|
|
1129
|
+
TSSymbol first_symbol, end_symbol;
|
|
1130
|
+
if (lookahead_symbol != 0) {
|
|
1131
|
+
first_symbol = lookahead_symbol;
|
|
1132
|
+
end_symbol = lookahead_symbol + 1;
|
|
1133
|
+
} else {
|
|
1134
|
+
first_symbol = 1;
|
|
1135
|
+
end_symbol = self->language->token_count;
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
for (TSSymbol symbol = first_symbol; symbol < end_symbol; symbol++) {
|
|
1139
|
+
TableEntry entry;
|
|
1140
|
+
ts_language_table_entry(self->language, state, symbol, &entry);
|
|
1141
|
+
for (uint32_t j = 0; j < entry.action_count; j++) {
|
|
1142
|
+
TSParseAction action = entry.actions[j];
|
|
1143
|
+
switch (action.type) {
|
|
1144
|
+
case TSParseActionTypeShift:
|
|
1145
|
+
case TSParseActionTypeRecover:
|
|
1146
|
+
if (!action.shift.extra && !action.shift.repetition) has_shift_action = true;
|
|
1147
|
+
break;
|
|
1148
|
+
case TSParseActionTypeReduce:
|
|
1149
|
+
if (action.reduce.child_count > 0)
|
|
1150
|
+
ts_reduce_action_set_add(&self->reduce_actions, (ReduceAction) {
|
|
1151
|
+
.symbol = action.reduce.symbol,
|
|
1152
|
+
.count = action.reduce.child_count,
|
|
1153
|
+
.dynamic_precedence = action.reduce.dynamic_precedence,
|
|
1154
|
+
.production_id = action.reduce.production_id,
|
|
1155
|
+
});
|
|
1156
|
+
break;
|
|
1157
|
+
default:
|
|
1158
|
+
break;
|
|
1159
|
+
}
|
|
1160
|
+
}
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
StackVersion reduction_version = STACK_VERSION_NONE;
|
|
1164
|
+
for (uint32_t j = 0; j < self->reduce_actions.size; j++) {
|
|
1165
|
+
ReduceAction action = self->reduce_actions.contents[j];
|
|
1166
|
+
|
|
1167
|
+
reduction_version = ts_parser__reduce(
|
|
1168
|
+
self, version, action.symbol, action.count,
|
|
1169
|
+
action.dynamic_precedence, action.production_id,
|
|
1170
|
+
true, false
|
|
1171
|
+
);
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
if (has_shift_action) {
|
|
1175
|
+
can_shift_lookahead_symbol = true;
|
|
1176
|
+
} else if (reduction_version != STACK_VERSION_NONE && i < MAX_VERSION_COUNT) {
|
|
1177
|
+
ts_stack_renumber_version(self->stack, reduction_version, version);
|
|
1178
|
+
continue;
|
|
1179
|
+
} else if (lookahead_symbol != 0) {
|
|
1180
|
+
ts_stack_remove_version(self->stack, version);
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1183
|
+
if (version == starting_version) {
|
|
1184
|
+
version = version_count;
|
|
1185
|
+
} else {
|
|
1186
|
+
version++;
|
|
1187
|
+
}
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
return can_shift_lookahead_symbol;
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
static bool ts_parser__recover_to_state(
|
|
1194
|
+
TSParser *self,
|
|
1195
|
+
StackVersion version,
|
|
1196
|
+
unsigned depth,
|
|
1197
|
+
TSStateId goal_state
|
|
1198
|
+
) {
|
|
1199
|
+
StackSliceArray pop = ts_stack_pop_count(self->stack, version, depth);
|
|
1200
|
+
StackVersion previous_version = STACK_VERSION_NONE;
|
|
1201
|
+
|
|
1202
|
+
for (unsigned i = 0; i < pop.size; i++) {
|
|
1203
|
+
StackSlice slice = pop.contents[i];
|
|
1204
|
+
|
|
1205
|
+
if (slice.version == previous_version) {
|
|
1206
|
+
ts_subtree_array_delete(&self->tree_pool, &slice.subtrees);
|
|
1207
|
+
array_erase(&pop, i--);
|
|
1208
|
+
continue;
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1211
|
+
if (ts_stack_state(self->stack, slice.version) != goal_state) {
|
|
1212
|
+
ts_stack_halt(self->stack, slice.version);
|
|
1213
|
+
ts_subtree_array_delete(&self->tree_pool, &slice.subtrees);
|
|
1214
|
+
array_erase(&pop, i--);
|
|
1215
|
+
continue;
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
SubtreeArray error_trees = ts_stack_pop_error(self->stack, slice.version);
|
|
1219
|
+
if (error_trees.size > 0) {
|
|
1220
|
+
ts_assert(error_trees.size == 1);
|
|
1221
|
+
Subtree error_tree = error_trees.contents[0];
|
|
1222
|
+
uint32_t error_child_count = ts_subtree_child_count(error_tree);
|
|
1223
|
+
if (error_child_count > 0) {
|
|
1224
|
+
array_splice(&slice.subtrees, 0, 0, error_child_count, ts_subtree_children(error_tree));
|
|
1225
|
+
for (unsigned j = 0; j < error_child_count; j++) {
|
|
1226
|
+
ts_subtree_retain(slice.subtrees.contents[j]);
|
|
1227
|
+
}
|
|
1228
|
+
}
|
|
1229
|
+
ts_subtree_array_delete(&self->tree_pool, &error_trees);
|
|
1230
|
+
}
|
|
1231
|
+
|
|
1232
|
+
ts_subtree_array_remove_trailing_extras(&slice.subtrees, &self->trailing_extras);
|
|
1233
|
+
|
|
1234
|
+
if (slice.subtrees.size > 0) {
|
|
1235
|
+
Subtree error = ts_subtree_new_error_node(&slice.subtrees, true, self->language);
|
|
1236
|
+
ts_stack_push(self->stack, slice.version, error, false, goal_state);
|
|
1237
|
+
} else {
|
|
1238
|
+
array_delete(&slice.subtrees);
|
|
1239
|
+
}
|
|
1240
|
+
|
|
1241
|
+
for (unsigned j = 0; j < self->trailing_extras.size; j++) {
|
|
1242
|
+
Subtree tree = self->trailing_extras.contents[j];
|
|
1243
|
+
ts_stack_push(self->stack, slice.version, tree, false, goal_state);
|
|
1244
|
+
}
|
|
1245
|
+
|
|
1246
|
+
previous_version = slice.version;
|
|
1247
|
+
}
|
|
1248
|
+
|
|
1249
|
+
return previous_version != STACK_VERSION_NONE;
|
|
1250
|
+
}
|
|
1251
|
+
|
|
1252
|
+
static void ts_parser__recover(
|
|
1253
|
+
TSParser *self,
|
|
1254
|
+
StackVersion version,
|
|
1255
|
+
Subtree lookahead
|
|
1256
|
+
) {
|
|
1257
|
+
bool did_recover = false;
|
|
1258
|
+
unsigned previous_version_count = ts_stack_version_count(self->stack);
|
|
1259
|
+
Length position = ts_stack_position(self->stack, version);
|
|
1260
|
+
StackSummary *summary = ts_stack_get_summary(self->stack, version);
|
|
1261
|
+
unsigned node_count_since_error = ts_stack_node_count_since_error(self->stack, version);
|
|
1262
|
+
unsigned current_error_cost = ts_stack_error_cost(self->stack, version);
|
|
1263
|
+
|
|
1264
|
+
// When the parser is in the error state, there are two strategies for recovering with a
|
|
1265
|
+
// given lookahead token:
|
|
1266
|
+
// 1. Find a previous state on the stack in which that lookahead token would be valid. Then,
|
|
1267
|
+
// create a new stack version that is in that state again. This entails popping all of the
|
|
1268
|
+
// subtrees that have been pushed onto the stack since that previous state, and wrapping
|
|
1269
|
+
// them in an ERROR node.
|
|
1270
|
+
// 2. Wrap the lookahead token in an ERROR node, push that ERROR node onto the stack, and
|
|
1271
|
+
// move on to the next lookahead token, remaining in the error state.
|
|
1272
|
+
//
|
|
1273
|
+
// First, try the strategy 1. Upon entering the error state, the parser recorded a summary
|
|
1274
|
+
// of the previous parse states and their depths. Look at each state in the summary, to see
|
|
1275
|
+
// if the current lookahead token would be valid in that state.
|
|
1276
|
+
if (summary && !ts_subtree_is_error(lookahead)) {
|
|
1277
|
+
for (unsigned i = 0; i < summary->size; i++) {
|
|
1278
|
+
StackSummaryEntry entry = summary->contents[i];
|
|
1279
|
+
|
|
1280
|
+
if (entry.state == ERROR_STATE) continue;
|
|
1281
|
+
if (entry.position.bytes == position.bytes) continue;
|
|
1282
|
+
unsigned depth = entry.depth;
|
|
1283
|
+
if (node_count_since_error > 0) depth++;
|
|
1284
|
+
|
|
1285
|
+
// Do not recover in ways that create redundant stack versions.
|
|
1286
|
+
bool would_merge = false;
|
|
1287
|
+
for (unsigned j = 0; j < previous_version_count; j++) {
|
|
1288
|
+
if (
|
|
1289
|
+
ts_stack_state(self->stack, j) == entry.state &&
|
|
1290
|
+
ts_stack_position(self->stack, j).bytes == position.bytes
|
|
1291
|
+
) {
|
|
1292
|
+
would_merge = true;
|
|
1293
|
+
break;
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1296
|
+
if (would_merge) continue;
|
|
1297
|
+
|
|
1298
|
+
// Do not recover if the result would clearly be worse than some existing stack version.
|
|
1299
|
+
unsigned new_cost =
|
|
1300
|
+
current_error_cost +
|
|
1301
|
+
entry.depth * ERROR_COST_PER_SKIPPED_TREE +
|
|
1302
|
+
(position.bytes - entry.position.bytes) * ERROR_COST_PER_SKIPPED_CHAR +
|
|
1303
|
+
(position.extent.row - entry.position.extent.row) * ERROR_COST_PER_SKIPPED_LINE;
|
|
1304
|
+
if (ts_parser__better_version_exists(self, version, false, new_cost)) break;
|
|
1305
|
+
|
|
1306
|
+
// If the current lookahead token is valid in some previous state, recover to that state.
|
|
1307
|
+
// Then stop looking for further recoveries.
|
|
1308
|
+
if (ts_language_has_actions(self->language, entry.state, ts_subtree_symbol(lookahead))) {
|
|
1309
|
+
if (ts_parser__recover_to_state(self, version, depth, entry.state)) {
|
|
1310
|
+
did_recover = true;
|
|
1311
|
+
LOG("recover_to_previous state:%u, depth:%u", entry.state, depth);
|
|
1312
|
+
LOG_STACK();
|
|
1313
|
+
break;
|
|
1314
|
+
}
|
|
1315
|
+
}
|
|
1316
|
+
}
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
// In the process of attempting to recover, some stack versions may have been created
|
|
1320
|
+
// and subsequently halted. Remove those versions.
|
|
1321
|
+
for (unsigned i = previous_version_count; i < ts_stack_version_count(self->stack); i++) {
|
|
1322
|
+
if (!ts_stack_is_active(self->stack, i)) {
|
|
1323
|
+
LOG("removed paused version:%u", i);
|
|
1324
|
+
ts_stack_remove_version(self->stack, i--);
|
|
1325
|
+
LOG_STACK();
|
|
1326
|
+
}
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
// If the parser is still in the error state at the end of the file, just wrap everything
|
|
1330
|
+
// in an ERROR node and terminate.
|
|
1331
|
+
if (ts_subtree_is_eof(lookahead)) {
|
|
1332
|
+
LOG("recover_eof");
|
|
1333
|
+
SubtreeArray children = array_new();
|
|
1334
|
+
Subtree parent = ts_subtree_new_error_node(&children, false, self->language);
|
|
1335
|
+
ts_stack_push(self->stack, version, parent, false, 1);
|
|
1336
|
+
ts_parser__accept(self, version, lookahead);
|
|
1337
|
+
return;
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1340
|
+
// If strategy 1 succeeded, a new stack version will have been created which is able to handle
|
|
1341
|
+
// the current lookahead token. Now, in addition, try strategy 2 described above: skip the
|
|
1342
|
+
// current lookahead token by wrapping it in an ERROR node.
|
|
1343
|
+
|
|
1344
|
+
// Don't pursue this additional strategy if there are already too many stack versions.
|
|
1345
|
+
if (did_recover && ts_stack_version_count(self->stack) > MAX_VERSION_COUNT) {
|
|
1346
|
+
ts_stack_halt(self->stack, version);
|
|
1347
|
+
ts_subtree_release(&self->tree_pool, lookahead);
|
|
1348
|
+
return;
|
|
1349
|
+
}
|
|
1350
|
+
|
|
1351
|
+
if (
|
|
1352
|
+
did_recover &&
|
|
1353
|
+
ts_subtree_has_external_scanner_state_change(lookahead)
|
|
1354
|
+
) {
|
|
1355
|
+
ts_stack_halt(self->stack, version);
|
|
1356
|
+
ts_subtree_release(&self->tree_pool, lookahead);
|
|
1357
|
+
return;
|
|
1358
|
+
}
|
|
1359
|
+
|
|
1360
|
+
// Do not recover if the result would clearly be worse than some existing stack version.
|
|
1361
|
+
unsigned new_cost =
|
|
1362
|
+
current_error_cost + ERROR_COST_PER_SKIPPED_TREE +
|
|
1363
|
+
ts_subtree_total_bytes(lookahead) * ERROR_COST_PER_SKIPPED_CHAR +
|
|
1364
|
+
ts_subtree_total_size(lookahead).extent.row * ERROR_COST_PER_SKIPPED_LINE;
|
|
1365
|
+
if (ts_parser__better_version_exists(self, version, false, new_cost)) {
|
|
1366
|
+
ts_stack_halt(self->stack, version);
|
|
1367
|
+
ts_subtree_release(&self->tree_pool, lookahead);
|
|
1368
|
+
return;
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1371
|
+
// If the current lookahead token is an extra token, mark it as extra. This means it won't
|
|
1372
|
+
// be counted in error cost calculations.
|
|
1373
|
+
unsigned n;
|
|
1374
|
+
const TSParseAction *actions = ts_language_actions(self->language, 1, ts_subtree_symbol(lookahead), &n);
|
|
1375
|
+
if (n > 0 && actions[n - 1].type == TSParseActionTypeShift && actions[n - 1].shift.extra) {
|
|
1376
|
+
MutableSubtree mutable_lookahead = ts_subtree_make_mut(&self->tree_pool, lookahead);
|
|
1377
|
+
ts_subtree_set_extra(&mutable_lookahead, true);
|
|
1378
|
+
lookahead = ts_subtree_from_mut(mutable_lookahead);
|
|
1379
|
+
}
|
|
1380
|
+
|
|
1381
|
+
// Wrap the lookahead token in an ERROR.
|
|
1382
|
+
LOG("skip_token symbol:%s", TREE_NAME(lookahead));
|
|
1383
|
+
SubtreeArray children = array_new();
|
|
1384
|
+
array_reserve(&children, 1);
|
|
1385
|
+
array_push(&children, lookahead);
|
|
1386
|
+
MutableSubtree error_repeat = ts_subtree_new_node(
|
|
1387
|
+
ts_builtin_sym_error_repeat,
|
|
1388
|
+
&children,
|
|
1389
|
+
0,
|
|
1390
|
+
self->language
|
|
1391
|
+
);
|
|
1392
|
+
|
|
1393
|
+
// If other tokens have already been skipped, so there is already an ERROR at the top of the
|
|
1394
|
+
// stack, then pop that ERROR off the stack and wrap the two ERRORs together into one larger
|
|
1395
|
+
// ERROR.
|
|
1396
|
+
if (node_count_since_error > 0) {
|
|
1397
|
+
StackSliceArray pop = ts_stack_pop_count(self->stack, version, 1);
|
|
1398
|
+
|
|
1399
|
+
// TODO: Figure out how to make this condition occur.
|
|
1400
|
+
// See https://github.com/atom/atom/issues/18450#issuecomment-439579778
|
|
1401
|
+
// If multiple stack versions have merged at this point, just pick one of the errors
|
|
1402
|
+
// arbitrarily and discard the rest.
|
|
1403
|
+
if (pop.size > 1) {
|
|
1404
|
+
for (unsigned i = 1; i < pop.size; i++) {
|
|
1405
|
+
ts_subtree_array_delete(&self->tree_pool, &pop.contents[i].subtrees);
|
|
1406
|
+
}
|
|
1407
|
+
while (ts_stack_version_count(self->stack) > pop.contents[0].version + 1) {
|
|
1408
|
+
ts_stack_remove_version(self->stack, pop.contents[0].version + 1);
|
|
1409
|
+
}
|
|
1410
|
+
}
|
|
1411
|
+
|
|
1412
|
+
ts_stack_renumber_version(self->stack, pop.contents[0].version, version);
|
|
1413
|
+
array_push(&pop.contents[0].subtrees, ts_subtree_from_mut(error_repeat));
|
|
1414
|
+
error_repeat = ts_subtree_new_node(
|
|
1415
|
+
ts_builtin_sym_error_repeat,
|
|
1416
|
+
&pop.contents[0].subtrees,
|
|
1417
|
+
0,
|
|
1418
|
+
self->language
|
|
1419
|
+
);
|
|
1420
|
+
}
|
|
1421
|
+
|
|
1422
|
+
// Push the new ERROR onto the stack.
|
|
1423
|
+
ts_stack_push(self->stack, version, ts_subtree_from_mut(error_repeat), false, ERROR_STATE);
|
|
1424
|
+
if (ts_subtree_has_external_tokens(lookahead)) {
|
|
1425
|
+
ts_stack_set_last_external_token(
|
|
1426
|
+
self->stack, version, ts_subtree_last_external_token(lookahead)
|
|
1427
|
+
);
|
|
1428
|
+
}
|
|
1429
|
+
|
|
1430
|
+
bool has_error = true;
|
|
1431
|
+
for (unsigned i = 0; i < ts_stack_version_count(self->stack); i++) {
|
|
1432
|
+
ErrorStatus status = ts_parser__version_status(self, i);
|
|
1433
|
+
if (!status.is_in_error) {
|
|
1434
|
+
has_error = false;
|
|
1435
|
+
break;
|
|
1436
|
+
}
|
|
1437
|
+
}
|
|
1438
|
+
self->has_error = has_error;
|
|
1439
|
+
}
|
|
1440
|
+
|
|
1441
|
+
static void ts_parser__handle_error(
|
|
1442
|
+
TSParser *self,
|
|
1443
|
+
StackVersion version,
|
|
1444
|
+
Subtree lookahead
|
|
1445
|
+
) {
|
|
1446
|
+
uint32_t previous_version_count = ts_stack_version_count(self->stack);
|
|
1447
|
+
|
|
1448
|
+
// Perform any reductions that can happen in this state, regardless of the lookahead. After
|
|
1449
|
+
// skipping one or more invalid tokens, the parser might find a token that would have allowed
|
|
1450
|
+
// a reduction to take place.
|
|
1451
|
+
ts_parser__do_all_potential_reductions(self, version, 0);
|
|
1452
|
+
uint32_t version_count = ts_stack_version_count(self->stack);
|
|
1453
|
+
Length position = ts_stack_position(self->stack, version);
|
|
1454
|
+
|
|
1455
|
+
// Push a discontinuity onto the stack. Merge all of the stack versions that
|
|
1456
|
+
// were created in the previous step.
|
|
1457
|
+
bool did_insert_missing_token = false;
|
|
1458
|
+
for (StackVersion v = version; v < version_count;) {
|
|
1459
|
+
if (!did_insert_missing_token) {
|
|
1460
|
+
TSStateId state = ts_stack_state(self->stack, v);
|
|
1461
|
+
for (
|
|
1462
|
+
TSSymbol missing_symbol = 1;
|
|
1463
|
+
missing_symbol < (uint16_t)self->language->token_count;
|
|
1464
|
+
missing_symbol++
|
|
1465
|
+
) {
|
|
1466
|
+
TSStateId state_after_missing_symbol = ts_language_next_state(
|
|
1467
|
+
self->language, state, missing_symbol
|
|
1468
|
+
);
|
|
1469
|
+
if (state_after_missing_symbol == 0 || state_after_missing_symbol == state) {
|
|
1470
|
+
continue;
|
|
1471
|
+
}
|
|
1472
|
+
|
|
1473
|
+
if (ts_language_has_reduce_action(
|
|
1474
|
+
self->language,
|
|
1475
|
+
state_after_missing_symbol,
|
|
1476
|
+
ts_subtree_leaf_symbol(lookahead)
|
|
1477
|
+
)) {
|
|
1478
|
+
// In case the parser is currently outside of any included range, the lexer will
|
|
1479
|
+
// snap to the beginning of the next included range. The missing token's padding
|
|
1480
|
+
// must be assigned to position it within the next included range.
|
|
1481
|
+
ts_lexer_reset(&self->lexer, position);
|
|
1482
|
+
ts_lexer_mark_end(&self->lexer);
|
|
1483
|
+
Length padding = length_sub(self->lexer.token_end_position, position);
|
|
1484
|
+
uint32_t lookahead_bytes = ts_subtree_total_bytes(lookahead) + ts_subtree_lookahead_bytes(lookahead);
|
|
1485
|
+
|
|
1486
|
+
StackVersion version_with_missing_tree = ts_stack_copy_version(self->stack, v);
|
|
1487
|
+
Subtree missing_tree = ts_subtree_new_missing_leaf(
|
|
1488
|
+
&self->tree_pool, missing_symbol,
|
|
1489
|
+
padding, lookahead_bytes,
|
|
1490
|
+
self->language
|
|
1491
|
+
);
|
|
1492
|
+
ts_stack_push(
|
|
1493
|
+
self->stack, version_with_missing_tree,
|
|
1494
|
+
missing_tree, false,
|
|
1495
|
+
state_after_missing_symbol
|
|
1496
|
+
);
|
|
1497
|
+
|
|
1498
|
+
if (ts_parser__do_all_potential_reductions(
|
|
1499
|
+
self, version_with_missing_tree,
|
|
1500
|
+
ts_subtree_leaf_symbol(lookahead)
|
|
1501
|
+
)) {
|
|
1502
|
+
LOG(
|
|
1503
|
+
"recover_with_missing symbol:%s, state:%u",
|
|
1504
|
+
SYM_NAME(missing_symbol),
|
|
1505
|
+
ts_stack_state(self->stack, version_with_missing_tree)
|
|
1506
|
+
);
|
|
1507
|
+
did_insert_missing_token = true;
|
|
1508
|
+
break;
|
|
1509
|
+
}
|
|
1510
|
+
}
|
|
1511
|
+
}
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1514
|
+
ts_stack_push(self->stack, v, NULL_SUBTREE, false, ERROR_STATE);
|
|
1515
|
+
v = (v == version) ? previous_version_count : v + 1;
|
|
1516
|
+
}
|
|
1517
|
+
|
|
1518
|
+
for (unsigned i = previous_version_count; i < version_count; i++) {
|
|
1519
|
+
bool did_merge = ts_stack_merge(self->stack, version, previous_version_count);
|
|
1520
|
+
ts_assert(did_merge);
|
|
1521
|
+
}
|
|
1522
|
+
|
|
1523
|
+
ts_stack_record_summary(self->stack, version, MAX_SUMMARY_DEPTH);
|
|
1524
|
+
|
|
1525
|
+
// Begin recovery with the current lookahead node, rather than waiting for the
|
|
1526
|
+
// next turn of the parse loop. This ensures that the tree accounts for the
|
|
1527
|
+
// current lookahead token's "lookahead bytes" value, which describes how far
|
|
1528
|
+
// the lexer needed to look ahead beyond the content of the token in order to
|
|
1529
|
+
// recognize it.
|
|
1530
|
+
if (ts_subtree_child_count(lookahead) > 0) {
|
|
1531
|
+
ts_parser__breakdown_lookahead(self, &lookahead, ERROR_STATE, &self->reusable_node);
|
|
1532
|
+
}
|
|
1533
|
+
ts_parser__recover(self, version, lookahead);
|
|
1534
|
+
|
|
1535
|
+
LOG_STACK();
|
|
1536
|
+
}
|
|
1537
|
+
|
|
1538
|
+
static bool ts_parser__check_progress(TSParser *self, Subtree *lookahead, const uint32_t *position, unsigned operations) {
|
|
1539
|
+
self->operation_count += operations;
|
|
1540
|
+
if (self->operation_count >= OP_COUNT_PER_PARSER_TIMEOUT_CHECK) {
|
|
1541
|
+
self->operation_count = 0;
|
|
1542
|
+
}
|
|
1543
|
+
if (position != NULL) {
|
|
1544
|
+
self->parse_state.current_byte_offset = *position;
|
|
1545
|
+
self->parse_state.has_error = self->has_error;
|
|
1546
|
+
}
|
|
1547
|
+
if (
|
|
1548
|
+
self->operation_count == 0 &&
|
|
1549
|
+
(
|
|
1550
|
+
// TODO(amaanq): remove cancellation flag & clock checks before 0.26
|
|
1551
|
+
(self->cancellation_flag && atomic_load(self->cancellation_flag)) ||
|
|
1552
|
+
(!clock_is_null(self->end_clock) && clock_is_gt(clock_now(), self->end_clock)) ||
|
|
1553
|
+
(self->parse_options.progress_callback && self->parse_options.progress_callback(&self->parse_state))
|
|
1554
|
+
)
|
|
1555
|
+
) {
|
|
1556
|
+
if (lookahead && lookahead->ptr) {
|
|
1557
|
+
ts_subtree_release(&self->tree_pool, *lookahead);
|
|
1558
|
+
}
|
|
1559
|
+
return false;
|
|
1560
|
+
}
|
|
1561
|
+
return true;
|
|
1562
|
+
}
|
|
1563
|
+
|
|
1564
|
+
static bool ts_parser__advance(
|
|
1565
|
+
TSParser *self,
|
|
1566
|
+
StackVersion version,
|
|
1567
|
+
bool allow_node_reuse
|
|
1568
|
+
) {
|
|
1569
|
+
TSStateId state = ts_stack_state(self->stack, version);
|
|
1570
|
+
uint32_t position = ts_stack_position(self->stack, version).bytes;
|
|
1571
|
+
Subtree last_external_token = ts_stack_last_external_token(self->stack, version);
|
|
1572
|
+
|
|
1573
|
+
bool did_reuse = true;
|
|
1574
|
+
Subtree lookahead = NULL_SUBTREE;
|
|
1575
|
+
TableEntry table_entry = {.action_count = 0};
|
|
1576
|
+
|
|
1577
|
+
// If possible, reuse a node from the previous syntax tree.
|
|
1578
|
+
if (allow_node_reuse) {
|
|
1579
|
+
lookahead = ts_parser__reuse_node(
|
|
1580
|
+
self, version, &state, position, last_external_token, &table_entry
|
|
1581
|
+
);
|
|
1582
|
+
}
|
|
1583
|
+
|
|
1584
|
+
// If no node from the previous syntax tree could be reused, then try to
|
|
1585
|
+
// reuse the token previously returned by the lexer.
|
|
1586
|
+
if (!lookahead.ptr) {
|
|
1587
|
+
did_reuse = false;
|
|
1588
|
+
lookahead = ts_parser__get_cached_token(
|
|
1589
|
+
self, state, position, last_external_token, &table_entry
|
|
1590
|
+
);
|
|
1591
|
+
}
|
|
1592
|
+
|
|
1593
|
+
bool needs_lex = !lookahead.ptr;
|
|
1594
|
+
for (;;) {
|
|
1595
|
+
// Otherwise, re-run the lexer.
|
|
1596
|
+
if (needs_lex) {
|
|
1597
|
+
needs_lex = false;
|
|
1598
|
+
lookahead = ts_parser__lex(self, version, state);
|
|
1599
|
+
if (self->has_scanner_error) return false;
|
|
1600
|
+
|
|
1601
|
+
if (lookahead.ptr) {
|
|
1602
|
+
ts_parser__set_cached_token(self, position, last_external_token, lookahead);
|
|
1603
|
+
ts_language_table_entry(self->language, state, ts_subtree_symbol(lookahead), &table_entry);
|
|
1604
|
+
}
|
|
1605
|
+
|
|
1606
|
+
// When parsing a non-terminal extra, a null lookahead indicates the
|
|
1607
|
+
// end of the rule. The reduction is stored in the EOF table entry.
|
|
1608
|
+
// After the reduction, the lexer needs to be run again.
|
|
1609
|
+
else {
|
|
1610
|
+
ts_language_table_entry(self->language, state, ts_builtin_sym_end, &table_entry);
|
|
1611
|
+
}
|
|
1612
|
+
}
|
|
1613
|
+
|
|
1614
|
+
// If a cancellation flag, timeout, or progress callback was provided, then check every
|
|
1615
|
+
// time a fixed number of parse actions has been processed.
|
|
1616
|
+
if (!ts_parser__check_progress(self, &lookahead, &position, 1)) {
|
|
1617
|
+
return false;
|
|
1618
|
+
}
|
|
1619
|
+
|
|
1620
|
+
// Process each parse action for the current lookahead token in
|
|
1621
|
+
// the current state. If there are multiple actions, then this is
|
|
1622
|
+
// an ambiguous state. REDUCE actions always create a new stack
|
|
1623
|
+
// version, whereas SHIFT actions update the existing stack version
|
|
1624
|
+
// and terminate this loop.
|
|
1625
|
+
bool did_reduce = false;
|
|
1626
|
+
StackVersion last_reduction_version = STACK_VERSION_NONE;
|
|
1627
|
+
for (uint32_t i = 0; i < table_entry.action_count; i++) {
|
|
1628
|
+
TSParseAction action = table_entry.actions[i];
|
|
1629
|
+
|
|
1630
|
+
switch (action.type) {
|
|
1631
|
+
case TSParseActionTypeShift: {
|
|
1632
|
+
if (action.shift.repetition) break;
|
|
1633
|
+
TSStateId next_state;
|
|
1634
|
+
if (action.shift.extra) {
|
|
1635
|
+
next_state = state;
|
|
1636
|
+
LOG("shift_extra");
|
|
1637
|
+
} else {
|
|
1638
|
+
next_state = action.shift.state;
|
|
1639
|
+
LOG("shift state:%u", next_state);
|
|
1640
|
+
}
|
|
1641
|
+
|
|
1642
|
+
if (ts_subtree_child_count(lookahead) > 0) {
|
|
1643
|
+
ts_parser__breakdown_lookahead(self, &lookahead, state, &self->reusable_node);
|
|
1644
|
+
next_state = ts_language_next_state(self->language, state, ts_subtree_symbol(lookahead));
|
|
1645
|
+
}
|
|
1646
|
+
|
|
1647
|
+
ts_parser__shift(self, version, next_state, lookahead, action.shift.extra);
|
|
1648
|
+
if (did_reuse) reusable_node_advance(&self->reusable_node);
|
|
1649
|
+
return true;
|
|
1650
|
+
}
|
|
1651
|
+
|
|
1652
|
+
case TSParseActionTypeReduce: {
|
|
1653
|
+
bool is_fragile = table_entry.action_count > 1;
|
|
1654
|
+
bool end_of_non_terminal_extra = lookahead.ptr == NULL;
|
|
1655
|
+
LOG("reduce sym:%s, child_count:%u", SYM_NAME(action.reduce.symbol), action.reduce.child_count);
|
|
1656
|
+
StackVersion reduction_version = ts_parser__reduce(
|
|
1657
|
+
self, version, action.reduce.symbol, action.reduce.child_count,
|
|
1658
|
+
action.reduce.dynamic_precedence, action.reduce.production_id,
|
|
1659
|
+
is_fragile, end_of_non_terminal_extra
|
|
1660
|
+
);
|
|
1661
|
+
did_reduce = true;
|
|
1662
|
+
if (reduction_version != STACK_VERSION_NONE) {
|
|
1663
|
+
last_reduction_version = reduction_version;
|
|
1664
|
+
}
|
|
1665
|
+
break;
|
|
1666
|
+
}
|
|
1667
|
+
|
|
1668
|
+
case TSParseActionTypeAccept: {
|
|
1669
|
+
LOG("accept");
|
|
1670
|
+
ts_parser__accept(self, version, lookahead);
|
|
1671
|
+
return true;
|
|
1672
|
+
}
|
|
1673
|
+
|
|
1674
|
+
case TSParseActionTypeRecover: {
|
|
1675
|
+
if (ts_subtree_child_count(lookahead) > 0) {
|
|
1676
|
+
ts_parser__breakdown_lookahead(self, &lookahead, ERROR_STATE, &self->reusable_node);
|
|
1677
|
+
}
|
|
1678
|
+
|
|
1679
|
+
ts_parser__recover(self, version, lookahead);
|
|
1680
|
+
if (did_reuse) reusable_node_advance(&self->reusable_node);
|
|
1681
|
+
return true;
|
|
1682
|
+
}
|
|
1683
|
+
}
|
|
1684
|
+
}
|
|
1685
|
+
|
|
1686
|
+
// If a reduction was performed, then replace the current stack version
|
|
1687
|
+
// with one of the stack versions created by a reduction, and continue
|
|
1688
|
+
// processing this version of the stack with the same lookahead symbol.
|
|
1689
|
+
if (last_reduction_version != STACK_VERSION_NONE) {
|
|
1690
|
+
ts_stack_renumber_version(self->stack, last_reduction_version, version);
|
|
1691
|
+
LOG_STACK();
|
|
1692
|
+
state = ts_stack_state(self->stack, version);
|
|
1693
|
+
|
|
1694
|
+
// At the end of a non-terminal extra rule, the lexer will return a
|
|
1695
|
+
// null subtree, because the parser needs to perform a fixed reduction
|
|
1696
|
+
// regardless of the lookahead node. After performing that reduction,
|
|
1697
|
+
// (and completing the non-terminal extra rule) run the lexer again based
|
|
1698
|
+
// on the current parse state.
|
|
1699
|
+
if (!lookahead.ptr) {
|
|
1700
|
+
needs_lex = true;
|
|
1701
|
+
} else {
|
|
1702
|
+
ts_language_table_entry(
|
|
1703
|
+
self->language,
|
|
1704
|
+
state,
|
|
1705
|
+
ts_subtree_leaf_symbol(lookahead),
|
|
1706
|
+
&table_entry
|
|
1707
|
+
);
|
|
1708
|
+
}
|
|
1709
|
+
|
|
1710
|
+
continue;
|
|
1711
|
+
}
|
|
1712
|
+
|
|
1713
|
+
// A reduction was performed, but was merged into an existing stack version.
|
|
1714
|
+
// This version can be discarded.
|
|
1715
|
+
if (did_reduce) {
|
|
1716
|
+
if (lookahead.ptr) {
|
|
1717
|
+
ts_subtree_release(&self->tree_pool, lookahead);
|
|
1718
|
+
}
|
|
1719
|
+
ts_stack_halt(self->stack, version);
|
|
1720
|
+
return true;
|
|
1721
|
+
}
|
|
1722
|
+
|
|
1723
|
+
// If the current lookahead token is a keyword that is not valid, but the
|
|
1724
|
+
// default word token *is* valid, then treat the lookahead token as the word
|
|
1725
|
+
// token instead.
|
|
1726
|
+
if (
|
|
1727
|
+
ts_subtree_is_keyword(lookahead) &&
|
|
1728
|
+
ts_subtree_symbol(lookahead) != self->language->keyword_capture_token &&
|
|
1729
|
+
!ts_language_is_reserved_word(self->language, state, ts_subtree_symbol(lookahead))
|
|
1730
|
+
) {
|
|
1731
|
+
ts_language_table_entry(
|
|
1732
|
+
self->language,
|
|
1733
|
+
state,
|
|
1734
|
+
self->language->keyword_capture_token,
|
|
1735
|
+
&table_entry
|
|
1736
|
+
);
|
|
1737
|
+
if (table_entry.action_count > 0) {
|
|
1738
|
+
LOG(
|
|
1739
|
+
"switch from_keyword:%s, to_word_token:%s",
|
|
1740
|
+
TREE_NAME(lookahead),
|
|
1741
|
+
SYM_NAME(self->language->keyword_capture_token)
|
|
1742
|
+
);
|
|
1743
|
+
|
|
1744
|
+
MutableSubtree mutable_lookahead = ts_subtree_make_mut(&self->tree_pool, lookahead);
|
|
1745
|
+
ts_subtree_set_symbol(&mutable_lookahead, self->language->keyword_capture_token, self->language);
|
|
1746
|
+
lookahead = ts_subtree_from_mut(mutable_lookahead);
|
|
1747
|
+
continue;
|
|
1748
|
+
}
|
|
1749
|
+
}
|
|
1750
|
+
|
|
1751
|
+
// If the current lookahead token is not valid and the previous subtree on
|
|
1752
|
+
// the stack was reused from an old tree, then it wasn't actually valid to
|
|
1753
|
+
// reuse that previous subtree. Remove it from the stack, and in its place,
|
|
1754
|
+
// push each of its children. Then try again to process the current lookahead.
|
|
1755
|
+
if (ts_parser__breakdown_top_of_stack(self, version)) {
|
|
1756
|
+
state = ts_stack_state(self->stack, version);
|
|
1757
|
+
ts_subtree_release(&self->tree_pool, lookahead);
|
|
1758
|
+
needs_lex = true;
|
|
1759
|
+
continue;
|
|
1760
|
+
}
|
|
1761
|
+
|
|
1762
|
+
// Otherwise, there is definitely an error in this version of the parse stack.
|
|
1763
|
+
// Mark this version as paused and continue processing any other stack
|
|
1764
|
+
// versions that exist. If some other version advances successfully, then
|
|
1765
|
+
// this version can simply be removed. But if all versions end up paused,
|
|
1766
|
+
// then error recovery is needed.
|
|
1767
|
+
LOG("detect_error lookahead:%s", TREE_NAME(lookahead));
|
|
1768
|
+
ts_stack_pause(self->stack, version, lookahead);
|
|
1769
|
+
return true;
|
|
1770
|
+
}
|
|
1771
|
+
}
|
|
1772
|
+
|
|
1773
|
+
static unsigned ts_parser__condense_stack(TSParser *self) {
|
|
1774
|
+
bool made_changes = false;
|
|
1775
|
+
unsigned min_error_cost = UINT_MAX;
|
|
1776
|
+
for (StackVersion i = 0; i < ts_stack_version_count(self->stack); i++) {
|
|
1777
|
+
// Prune any versions that have been marked for removal.
|
|
1778
|
+
if (ts_stack_is_halted(self->stack, i)) {
|
|
1779
|
+
ts_stack_remove_version(self->stack, i);
|
|
1780
|
+
i--;
|
|
1781
|
+
continue;
|
|
1782
|
+
}
|
|
1783
|
+
|
|
1784
|
+
// Keep track of the minimum error cost of any stack version so
|
|
1785
|
+
// that it can be returned.
|
|
1786
|
+
ErrorStatus status_i = ts_parser__version_status(self, i);
|
|
1787
|
+
if (!status_i.is_in_error && status_i.cost < min_error_cost) {
|
|
1788
|
+
min_error_cost = status_i.cost;
|
|
1789
|
+
}
|
|
1790
|
+
|
|
1791
|
+
// Examine each pair of stack versions, removing any versions that
|
|
1792
|
+
// are clearly worse than another version. Ensure that the versions
|
|
1793
|
+
// are ordered from most promising to least promising.
|
|
1794
|
+
for (StackVersion j = 0; j < i; j++) {
|
|
1795
|
+
ErrorStatus status_j = ts_parser__version_status(self, j);
|
|
1796
|
+
|
|
1797
|
+
switch (ts_parser__compare_versions(self, status_j, status_i)) {
|
|
1798
|
+
case ErrorComparisonTakeLeft:
|
|
1799
|
+
made_changes = true;
|
|
1800
|
+
ts_stack_remove_version(self->stack, i);
|
|
1801
|
+
i--;
|
|
1802
|
+
j = i;
|
|
1803
|
+
break;
|
|
1804
|
+
|
|
1805
|
+
case ErrorComparisonPreferLeft:
|
|
1806
|
+
case ErrorComparisonNone:
|
|
1807
|
+
if (ts_stack_merge(self->stack, j, i)) {
|
|
1808
|
+
made_changes = true;
|
|
1809
|
+
i--;
|
|
1810
|
+
j = i;
|
|
1811
|
+
}
|
|
1812
|
+
break;
|
|
1813
|
+
|
|
1814
|
+
case ErrorComparisonPreferRight:
|
|
1815
|
+
made_changes = true;
|
|
1816
|
+
if (ts_stack_merge(self->stack, j, i)) {
|
|
1817
|
+
i--;
|
|
1818
|
+
j = i;
|
|
1819
|
+
} else {
|
|
1820
|
+
ts_stack_swap_versions(self->stack, i, j);
|
|
1821
|
+
}
|
|
1822
|
+
break;
|
|
1823
|
+
|
|
1824
|
+
case ErrorComparisonTakeRight:
|
|
1825
|
+
made_changes = true;
|
|
1826
|
+
ts_stack_remove_version(self->stack, j);
|
|
1827
|
+
i--;
|
|
1828
|
+
j--;
|
|
1829
|
+
break;
|
|
1830
|
+
}
|
|
1831
|
+
}
|
|
1832
|
+
}
|
|
1833
|
+
|
|
1834
|
+
// Enforce a hard upper bound on the number of stack versions by
|
|
1835
|
+
// discarding the least promising versions.
|
|
1836
|
+
while (ts_stack_version_count(self->stack) > MAX_VERSION_COUNT) {
|
|
1837
|
+
ts_stack_remove_version(self->stack, MAX_VERSION_COUNT);
|
|
1838
|
+
made_changes = true;
|
|
1839
|
+
}
|
|
1840
|
+
|
|
1841
|
+
// If the best-performing stack version is currently paused, or all
|
|
1842
|
+
// versions are paused, then resume the best paused version and begin
|
|
1843
|
+
// the error recovery process. Otherwise, remove the paused versions.
|
|
1844
|
+
if (ts_stack_version_count(self->stack) > 0) {
|
|
1845
|
+
bool has_unpaused_version = false;
|
|
1846
|
+
for (StackVersion i = 0, n = ts_stack_version_count(self->stack); i < n; i++) {
|
|
1847
|
+
if (ts_stack_is_paused(self->stack, i)) {
|
|
1848
|
+
if (!has_unpaused_version && self->accept_count < MAX_VERSION_COUNT) {
|
|
1849
|
+
LOG("resume version:%u", i);
|
|
1850
|
+
min_error_cost = ts_stack_error_cost(self->stack, i);
|
|
1851
|
+
Subtree lookahead = ts_stack_resume(self->stack, i);
|
|
1852
|
+
ts_parser__handle_error(self, i, lookahead);
|
|
1853
|
+
has_unpaused_version = true;
|
|
1854
|
+
} else {
|
|
1855
|
+
ts_stack_remove_version(self->stack, i);
|
|
1856
|
+
made_changes = true;
|
|
1857
|
+
i--;
|
|
1858
|
+
n--;
|
|
1859
|
+
}
|
|
1860
|
+
} else {
|
|
1861
|
+
has_unpaused_version = true;
|
|
1862
|
+
}
|
|
1863
|
+
}
|
|
1864
|
+
}
|
|
1865
|
+
|
|
1866
|
+
if (made_changes) {
|
|
1867
|
+
LOG("condense");
|
|
1868
|
+
LOG_STACK();
|
|
1869
|
+
}
|
|
1870
|
+
|
|
1871
|
+
return min_error_cost;
|
|
1872
|
+
}
|
|
1873
|
+
|
|
1874
|
+
static bool ts_parser__balance_subtree(TSParser *self) {
|
|
1875
|
+
Subtree finished_tree = self->finished_tree;
|
|
1876
|
+
|
|
1877
|
+
// If we haven't canceled balancing in progress before, then we want to clear the tree stack and
|
|
1878
|
+
// push the initial finished tree onto it. Otherwise, if we're resuming balancing after a
|
|
1879
|
+
// cancellation, we don't want to clear the tree stack.
|
|
1880
|
+
if (!self->canceled_balancing) {
|
|
1881
|
+
array_clear(&self->tree_pool.tree_stack);
|
|
1882
|
+
if (ts_subtree_child_count(finished_tree) > 0 && finished_tree.ptr->ref_count == 1) {
|
|
1883
|
+
array_push(&self->tree_pool.tree_stack, ts_subtree_to_mut_unsafe(finished_tree));
|
|
1884
|
+
}
|
|
1885
|
+
}
|
|
1886
|
+
|
|
1887
|
+
while (self->tree_pool.tree_stack.size > 0) {
|
|
1888
|
+
if (!ts_parser__check_progress(self, NULL, NULL, 1)) {
|
|
1889
|
+
return false;
|
|
1890
|
+
}
|
|
1891
|
+
|
|
1892
|
+
MutableSubtree tree = self->tree_pool.tree_stack.contents[
|
|
1893
|
+
self->tree_pool.tree_stack.size - 1
|
|
1894
|
+
];
|
|
1895
|
+
|
|
1896
|
+
if (tree.ptr->repeat_depth > 0) {
|
|
1897
|
+
Subtree child1 = ts_subtree_children(tree)[0];
|
|
1898
|
+
Subtree child2 = ts_subtree_children(tree)[tree.ptr->child_count - 1];
|
|
1899
|
+
long repeat_delta = (long)ts_subtree_repeat_depth(child1) - (long)ts_subtree_repeat_depth(child2);
|
|
1900
|
+
if (repeat_delta > 0) {
|
|
1901
|
+
unsigned n = (unsigned)repeat_delta;
|
|
1902
|
+
|
|
1903
|
+
for (unsigned i = n / 2; i > 0; i /= 2) {
|
|
1904
|
+
ts_subtree_compress(tree, i, self->language, &self->tree_pool.tree_stack);
|
|
1905
|
+
n -= i;
|
|
1906
|
+
|
|
1907
|
+
// We scale the operation count increment in `ts_parser__check_progress` proportionately to the compression
|
|
1908
|
+
// size since larger values of i take longer to process. Shifting by 4 empirically provides good check
|
|
1909
|
+
// intervals (e.g. 193 operations when i=3100) to prevent blocking during large compressions.
|
|
1910
|
+
uint8_t operations = i >> 4 > 0 ? i >> 4 : 1;
|
|
1911
|
+
if (!ts_parser__check_progress(self, NULL, NULL, operations)) {
|
|
1912
|
+
return false;
|
|
1913
|
+
}
|
|
1914
|
+
}
|
|
1915
|
+
}
|
|
1916
|
+
}
|
|
1917
|
+
|
|
1918
|
+
(void)array_pop(&self->tree_pool.tree_stack);
|
|
1919
|
+
|
|
1920
|
+
for (uint32_t i = 0; i < tree.ptr->child_count; i++) {
|
|
1921
|
+
Subtree child = ts_subtree_children(tree)[i];
|
|
1922
|
+
if (ts_subtree_child_count(child) > 0 && child.ptr->ref_count == 1) {
|
|
1923
|
+
array_push(&self->tree_pool.tree_stack, ts_subtree_to_mut_unsafe(child));
|
|
1924
|
+
}
|
|
1925
|
+
}
|
|
1926
|
+
}
|
|
1927
|
+
|
|
1928
|
+
return true;
|
|
1929
|
+
}
|
|
1930
|
+
|
|
1931
|
+
static bool ts_parser_has_outstanding_parse(TSParser *self) {
|
|
1932
|
+
return (
|
|
1933
|
+
self->canceled_balancing ||
|
|
1934
|
+
self->external_scanner_payload ||
|
|
1935
|
+
ts_stack_state(self->stack, 0) != 1 ||
|
|
1936
|
+
ts_stack_node_count_since_error(self->stack, 0) != 0
|
|
1937
|
+
);
|
|
1938
|
+
}
|
|
1939
|
+
|
|
1940
|
+
// Parser - Public
|
|
1941
|
+
|
|
1942
|
+
TSParser *ts_parser_new(void) {
|
|
1943
|
+
TSParser *self = ts_calloc(1, sizeof(TSParser));
|
|
1944
|
+
ts_lexer_init(&self->lexer);
|
|
1945
|
+
array_init(&self->reduce_actions);
|
|
1946
|
+
array_reserve(&self->reduce_actions, 4);
|
|
1947
|
+
self->tree_pool = ts_subtree_pool_new(32);
|
|
1948
|
+
self->stack = ts_stack_new(&self->tree_pool);
|
|
1949
|
+
self->finished_tree = NULL_SUBTREE;
|
|
1950
|
+
self->reusable_node = reusable_node_new();
|
|
1951
|
+
self->dot_graph_file = NULL;
|
|
1952
|
+
self->cancellation_flag = NULL;
|
|
1953
|
+
self->timeout_duration = 0;
|
|
1954
|
+
self->language = NULL;
|
|
1955
|
+
self->has_scanner_error = false;
|
|
1956
|
+
self->has_error = false;
|
|
1957
|
+
self->canceled_balancing = false;
|
|
1958
|
+
self->external_scanner_payload = NULL;
|
|
1959
|
+
self->end_clock = clock_null();
|
|
1960
|
+
self->operation_count = 0;
|
|
1961
|
+
self->old_tree = NULL_SUBTREE;
|
|
1962
|
+
self->included_range_differences = (TSRangeArray) array_new();
|
|
1963
|
+
self->included_range_difference_index = 0;
|
|
1964
|
+
ts_parser__set_cached_token(self, 0, NULL_SUBTREE, NULL_SUBTREE);
|
|
1965
|
+
return self;
|
|
1966
|
+
}
|
|
1967
|
+
|
|
1968
|
+
void ts_parser_delete(TSParser *self) {
|
|
1969
|
+
if (!self) return;
|
|
1970
|
+
|
|
1971
|
+
ts_parser_set_language(self, NULL);
|
|
1972
|
+
ts_stack_delete(self->stack);
|
|
1973
|
+
if (self->reduce_actions.contents) {
|
|
1974
|
+
array_delete(&self->reduce_actions);
|
|
1975
|
+
}
|
|
1976
|
+
if (self->included_range_differences.contents) {
|
|
1977
|
+
array_delete(&self->included_range_differences);
|
|
1978
|
+
}
|
|
1979
|
+
if (self->old_tree.ptr) {
|
|
1980
|
+
ts_subtree_release(&self->tree_pool, self->old_tree);
|
|
1981
|
+
self->old_tree = NULL_SUBTREE;
|
|
1982
|
+
}
|
|
1983
|
+
ts_wasm_store_delete(self->wasm_store);
|
|
1984
|
+
ts_lexer_delete(&self->lexer);
|
|
1985
|
+
ts_parser__set_cached_token(self, 0, NULL_SUBTREE, NULL_SUBTREE);
|
|
1986
|
+
ts_subtree_pool_delete(&self->tree_pool);
|
|
1987
|
+
reusable_node_delete(&self->reusable_node);
|
|
1988
|
+
array_delete(&self->trailing_extras);
|
|
1989
|
+
array_delete(&self->trailing_extras2);
|
|
1990
|
+
array_delete(&self->scratch_trees);
|
|
1991
|
+
ts_free(self);
|
|
1992
|
+
}
|
|
1993
|
+
|
|
1994
|
+
const TSLanguage *ts_parser_language(const TSParser *self) {
|
|
1995
|
+
return self->language;
|
|
1996
|
+
}
|
|
1997
|
+
|
|
1998
|
+
bool ts_parser_set_language(TSParser *self, const TSLanguage *language) {
|
|
1999
|
+
ts_parser_reset(self);
|
|
2000
|
+
ts_language_delete(self->language);
|
|
2001
|
+
self->language = NULL;
|
|
2002
|
+
|
|
2003
|
+
if (language) {
|
|
2004
|
+
if (
|
|
2005
|
+
language->abi_version > TREE_SITTER_LANGUAGE_VERSION ||
|
|
2006
|
+
language->abi_version < TREE_SITTER_MIN_COMPATIBLE_LANGUAGE_VERSION
|
|
2007
|
+
) return false;
|
|
2008
|
+
|
|
2009
|
+
if (ts_language_is_wasm(language)) {
|
|
2010
|
+
if (
|
|
2011
|
+
!self->wasm_store ||
|
|
2012
|
+
!ts_wasm_store_start(self->wasm_store, &self->lexer.data, language)
|
|
2013
|
+
) return false;
|
|
2014
|
+
}
|
|
2015
|
+
}
|
|
2016
|
+
|
|
2017
|
+
self->language = ts_language_copy(language);
|
|
2018
|
+
return true;
|
|
2019
|
+
}
|
|
2020
|
+
|
|
2021
|
+
TSLogger ts_parser_logger(const TSParser *self) {
|
|
2022
|
+
return self->lexer.logger;
|
|
2023
|
+
}
|
|
2024
|
+
|
|
2025
|
+
void ts_parser_set_logger(TSParser *self, TSLogger logger) {
|
|
2026
|
+
self->lexer.logger = logger;
|
|
2027
|
+
}
|
|
2028
|
+
|
|
2029
|
+
void ts_parser_print_dot_graphs(TSParser *self, int fd) {
|
|
2030
|
+
if (self->dot_graph_file) {
|
|
2031
|
+
fclose(self->dot_graph_file);
|
|
2032
|
+
}
|
|
2033
|
+
|
|
2034
|
+
if (fd >= 0) {
|
|
2035
|
+
#ifdef _WIN32
|
|
2036
|
+
self->dot_graph_file = _fdopen(fd, "a");
|
|
2037
|
+
#else
|
|
2038
|
+
self->dot_graph_file = fdopen(fd, "a");
|
|
2039
|
+
#endif
|
|
2040
|
+
} else {
|
|
2041
|
+
self->dot_graph_file = NULL;
|
|
2042
|
+
}
|
|
2043
|
+
}
|
|
2044
|
+
|
|
2045
|
+
const size_t *ts_parser_cancellation_flag(const TSParser *self) {
|
|
2046
|
+
return (const size_t *)self->cancellation_flag;
|
|
2047
|
+
}
|
|
2048
|
+
|
|
2049
|
+
void ts_parser_set_cancellation_flag(TSParser *self, const size_t *flag) {
|
|
2050
|
+
self->cancellation_flag = (const volatile size_t *)flag;
|
|
2051
|
+
}
|
|
2052
|
+
|
|
2053
|
+
uint64_t ts_parser_timeout_micros(const TSParser *self) {
|
|
2054
|
+
return duration_to_micros(self->timeout_duration);
|
|
2055
|
+
}
|
|
2056
|
+
|
|
2057
|
+
void ts_parser_set_timeout_micros(TSParser *self, uint64_t timeout_micros) {
|
|
2058
|
+
self->timeout_duration = duration_from_micros(timeout_micros);
|
|
2059
|
+
}
|
|
2060
|
+
|
|
2061
|
+
bool ts_parser_set_included_ranges(
|
|
2062
|
+
TSParser *self,
|
|
2063
|
+
const TSRange *ranges,
|
|
2064
|
+
uint32_t count
|
|
2065
|
+
) {
|
|
2066
|
+
return ts_lexer_set_included_ranges(&self->lexer, ranges, count);
|
|
2067
|
+
}
|
|
2068
|
+
|
|
2069
|
+
const TSRange *ts_parser_included_ranges(const TSParser *self, uint32_t *count) {
|
|
2070
|
+
return ts_lexer_included_ranges(&self->lexer, count);
|
|
2071
|
+
}
|
|
2072
|
+
|
|
2073
|
+
void ts_parser_reset(TSParser *self) {
|
|
2074
|
+
ts_parser__external_scanner_destroy(self);
|
|
2075
|
+
if (self->wasm_store) {
|
|
2076
|
+
ts_wasm_store_reset(self->wasm_store);
|
|
2077
|
+
}
|
|
2078
|
+
|
|
2079
|
+
if (self->old_tree.ptr) {
|
|
2080
|
+
ts_subtree_release(&self->tree_pool, self->old_tree);
|
|
2081
|
+
self->old_tree = NULL_SUBTREE;
|
|
2082
|
+
}
|
|
2083
|
+
|
|
2084
|
+
reusable_node_clear(&self->reusable_node);
|
|
2085
|
+
ts_lexer_reset(&self->lexer, length_zero());
|
|
2086
|
+
ts_stack_clear(self->stack);
|
|
2087
|
+
ts_parser__set_cached_token(self, 0, NULL_SUBTREE, NULL_SUBTREE);
|
|
2088
|
+
if (self->finished_tree.ptr) {
|
|
2089
|
+
ts_subtree_release(&self->tree_pool, self->finished_tree);
|
|
2090
|
+
self->finished_tree = NULL_SUBTREE;
|
|
2091
|
+
}
|
|
2092
|
+
self->accept_count = 0;
|
|
2093
|
+
self->has_scanner_error = false;
|
|
2094
|
+
self->has_error = false;
|
|
2095
|
+
self->canceled_balancing = false;
|
|
2096
|
+
self->parse_options = (TSParseOptions) {0};
|
|
2097
|
+
self->parse_state = (TSParseState) {0};
|
|
2098
|
+
}
|
|
2099
|
+
|
|
2100
|
+
TSTree *ts_parser_parse(
|
|
2101
|
+
TSParser *self,
|
|
2102
|
+
const TSTree *old_tree,
|
|
2103
|
+
TSInput input
|
|
2104
|
+
) {
|
|
2105
|
+
TSTree *result = NULL;
|
|
2106
|
+
if (!self->language || !input.read) return NULL;
|
|
2107
|
+
|
|
2108
|
+
if (ts_language_is_wasm(self->language)) {
|
|
2109
|
+
if (!self->wasm_store) return NULL;
|
|
2110
|
+
ts_wasm_store_start(self->wasm_store, &self->lexer.data, self->language);
|
|
2111
|
+
}
|
|
2112
|
+
|
|
2113
|
+
ts_lexer_set_input(&self->lexer, input);
|
|
2114
|
+
array_clear(&self->included_range_differences);
|
|
2115
|
+
self->included_range_difference_index = 0;
|
|
2116
|
+
|
|
2117
|
+
self->operation_count = 0;
|
|
2118
|
+
if (self->timeout_duration) {
|
|
2119
|
+
self->end_clock = clock_after(clock_now(), self->timeout_duration);
|
|
2120
|
+
} else {
|
|
2121
|
+
self->end_clock = clock_null();
|
|
2122
|
+
}
|
|
2123
|
+
|
|
2124
|
+
if (ts_parser_has_outstanding_parse(self)) {
|
|
2125
|
+
LOG("resume_parsing");
|
|
2126
|
+
if (self->canceled_balancing) goto balance;
|
|
2127
|
+
} else {
|
|
2128
|
+
ts_parser__external_scanner_create(self);
|
|
2129
|
+
if (self->has_scanner_error) goto exit;
|
|
2130
|
+
|
|
2131
|
+
if (old_tree) {
|
|
2132
|
+
ts_subtree_retain(old_tree->root);
|
|
2133
|
+
self->old_tree = old_tree->root;
|
|
2134
|
+
ts_range_array_get_changed_ranges(
|
|
2135
|
+
old_tree->included_ranges, old_tree->included_range_count,
|
|
2136
|
+
self->lexer.included_ranges, self->lexer.included_range_count,
|
|
2137
|
+
&self->included_range_differences
|
|
2138
|
+
);
|
|
2139
|
+
reusable_node_reset(&self->reusable_node, old_tree->root);
|
|
2140
|
+
LOG("parse_after_edit");
|
|
2141
|
+
LOG_TREE(self->old_tree);
|
|
2142
|
+
for (unsigned i = 0; i < self->included_range_differences.size; i++) {
|
|
2143
|
+
TSRange *range = &self->included_range_differences.contents[i];
|
|
2144
|
+
LOG("different_included_range %u - %u", range->start_byte, range->end_byte);
|
|
2145
|
+
}
|
|
2146
|
+
} else {
|
|
2147
|
+
reusable_node_clear(&self->reusable_node);
|
|
2148
|
+
LOG("new_parse");
|
|
2149
|
+
}
|
|
2150
|
+
}
|
|
2151
|
+
|
|
2152
|
+
uint32_t position = 0, last_position = 0, version_count = 0;
|
|
2153
|
+
do {
|
|
2154
|
+
for (
|
|
2155
|
+
StackVersion version = 0;
|
|
2156
|
+
version_count = ts_stack_version_count(self->stack),
|
|
2157
|
+
version < version_count;
|
|
2158
|
+
version++
|
|
2159
|
+
) {
|
|
2160
|
+
bool allow_node_reuse = version_count == 1;
|
|
2161
|
+
while (ts_stack_is_active(self->stack, version)) {
|
|
2162
|
+
LOG(
|
|
2163
|
+
"process version:%u, version_count:%u, state:%d, row:%u, col:%u",
|
|
2164
|
+
version,
|
|
2165
|
+
ts_stack_version_count(self->stack),
|
|
2166
|
+
ts_stack_state(self->stack, version),
|
|
2167
|
+
ts_stack_position(self->stack, version).extent.row,
|
|
2168
|
+
ts_stack_position(self->stack, version).extent.column
|
|
2169
|
+
);
|
|
2170
|
+
|
|
2171
|
+
if (!ts_parser__advance(self, version, allow_node_reuse)) {
|
|
2172
|
+
if (self->has_scanner_error) goto exit;
|
|
2173
|
+
return NULL;
|
|
2174
|
+
}
|
|
2175
|
+
|
|
2176
|
+
LOG_STACK();
|
|
2177
|
+
|
|
2178
|
+
position = ts_stack_position(self->stack, version).bytes;
|
|
2179
|
+
if (position > last_position || (version > 0 && position == last_position)) {
|
|
2180
|
+
last_position = position;
|
|
2181
|
+
break;
|
|
2182
|
+
}
|
|
2183
|
+
}
|
|
2184
|
+
}
|
|
2185
|
+
|
|
2186
|
+
// After advancing each version of the stack, re-sort the versions by their cost,
|
|
2187
|
+
// removing any versions that are no longer worth pursuing.
|
|
2188
|
+
unsigned min_error_cost = ts_parser__condense_stack(self);
|
|
2189
|
+
|
|
2190
|
+
// If there's already a finished parse tree that's better than any in-progress version,
|
|
2191
|
+
// then terminate parsing. Clear the parse stack to remove any extra references to subtrees
|
|
2192
|
+
// within the finished tree, ensuring that these subtrees can be safely mutated in-place
|
|
2193
|
+
// for rebalancing.
|
|
2194
|
+
if (self->finished_tree.ptr && ts_subtree_error_cost(self->finished_tree) < min_error_cost) {
|
|
2195
|
+
ts_stack_clear(self->stack);
|
|
2196
|
+
break;
|
|
2197
|
+
}
|
|
2198
|
+
|
|
2199
|
+
while (self->included_range_difference_index < self->included_range_differences.size) {
|
|
2200
|
+
TSRange *range = &self->included_range_differences.contents[self->included_range_difference_index];
|
|
2201
|
+
if (range->end_byte <= position) {
|
|
2202
|
+
self->included_range_difference_index++;
|
|
2203
|
+
} else {
|
|
2204
|
+
break;
|
|
2205
|
+
}
|
|
2206
|
+
}
|
|
2207
|
+
} while (version_count != 0);
|
|
2208
|
+
|
|
2209
|
+
balance:
|
|
2210
|
+
ts_assert(self->finished_tree.ptr);
|
|
2211
|
+
if (!ts_parser__balance_subtree(self)) {
|
|
2212
|
+
self->canceled_balancing = true;
|
|
2213
|
+
return false;
|
|
2214
|
+
}
|
|
2215
|
+
self->canceled_balancing = false;
|
|
2216
|
+
LOG("done");
|
|
2217
|
+
LOG_TREE(self->finished_tree);
|
|
2218
|
+
|
|
2219
|
+
result = ts_tree_new(
|
|
2220
|
+
self->finished_tree,
|
|
2221
|
+
self->language,
|
|
2222
|
+
self->lexer.included_ranges,
|
|
2223
|
+
self->lexer.included_range_count
|
|
2224
|
+
);
|
|
2225
|
+
self->finished_tree = NULL_SUBTREE;
|
|
2226
|
+
|
|
2227
|
+
exit:
|
|
2228
|
+
ts_parser_reset(self);
|
|
2229
|
+
return result;
|
|
2230
|
+
}
|
|
2231
|
+
|
|
2232
|
+
TSTree *ts_parser_parse_with_options(
|
|
2233
|
+
TSParser *self,
|
|
2234
|
+
const TSTree *old_tree,
|
|
2235
|
+
TSInput input,
|
|
2236
|
+
TSParseOptions parse_options
|
|
2237
|
+
) {
|
|
2238
|
+
self->parse_options = parse_options;
|
|
2239
|
+
self->parse_state.payload = parse_options.payload;
|
|
2240
|
+
TSTree *result = ts_parser_parse(self, old_tree, input);
|
|
2241
|
+
// Reset parser options before further parse calls.
|
|
2242
|
+
self->parse_options = (TSParseOptions) {0};
|
|
2243
|
+
return result;
|
|
2244
|
+
}
|
|
2245
|
+
|
|
2246
|
+
TSTree *ts_parser_parse_string(
|
|
2247
|
+
TSParser *self,
|
|
2248
|
+
const TSTree *old_tree,
|
|
2249
|
+
const char *string,
|
|
2250
|
+
uint32_t length
|
|
2251
|
+
) {
|
|
2252
|
+
return ts_parser_parse_string_encoding(self, old_tree, string, length, TSInputEncodingUTF8);
|
|
2253
|
+
}
|
|
2254
|
+
|
|
2255
|
+
TSTree *ts_parser_parse_string_encoding(
|
|
2256
|
+
TSParser *self,
|
|
2257
|
+
const TSTree *old_tree,
|
|
2258
|
+
const char *string,
|
|
2259
|
+
uint32_t length,
|
|
2260
|
+
TSInputEncoding encoding
|
|
2261
|
+
) {
|
|
2262
|
+
TSStringInput input = {string, length};
|
|
2263
|
+
return ts_parser_parse(self, old_tree, (TSInput) {
|
|
2264
|
+
&input,
|
|
2265
|
+
ts_string_input_read,
|
|
2266
|
+
encoding,
|
|
2267
|
+
NULL,
|
|
2268
|
+
});
|
|
2269
|
+
}
|
|
2270
|
+
|
|
2271
|
+
void ts_parser_set_wasm_store(TSParser *self, TSWasmStore *store) {
|
|
2272
|
+
if (self->language && ts_language_is_wasm(self->language)) {
|
|
2273
|
+
// Copy the assigned language into the new store.
|
|
2274
|
+
const TSLanguage *copy = ts_language_copy(self->language);
|
|
2275
|
+
ts_parser_set_language(self, copy);
|
|
2276
|
+
ts_language_delete(copy);
|
|
2277
|
+
}
|
|
2278
|
+
|
|
2279
|
+
ts_wasm_store_delete(self->wasm_store);
|
|
2280
|
+
self->wasm_store = store;
|
|
2281
|
+
}
|
|
2282
|
+
|
|
2283
|
+
TSWasmStore *ts_parser_take_wasm_store(TSParser *self) {
|
|
2284
|
+
if (self->language && ts_language_is_wasm(self->language)) {
|
|
2285
|
+
ts_parser_set_language(self, NULL);
|
|
2286
|
+
}
|
|
2287
|
+
|
|
2288
|
+
TSWasmStore *result = self->wasm_store;
|
|
2289
|
+
self->wasm_store = NULL;
|
|
2290
|
+
return result;
|
|
2291
|
+
}
|
|
2292
|
+
|
|
2293
|
+
#undef LOG
|