@mrclrchtr/supi-code-intelligence 12.0.0 → 14.0.0
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/CHANGELOG.md +35 -0
- package/README.md +7 -5
- package/node_modules/@mrclrchtr/supi-code-runtime/package.json +1 -1
- package/node_modules/@mrclrchtr/supi-code-runtime/src/query-result.ts +10 -0
- package/node_modules/@mrclrchtr/supi-core/package.json +3 -1
- package/node_modules/@mrclrchtr/supi-core/src/api.ts +4 -0
- package/node_modules/@mrclrchtr/supi-core/src/context/context-tag.ts +1 -1
- package/node_modules/@mrclrchtr/supi-core/src/debug-registry.ts +78 -13
- package/node_modules/@mrclrchtr/supi-core/src/footer-registry.ts +41 -9
- package/node_modules/@mrclrchtr/supi-core/src/retired-packages.ts +152 -0
- package/node_modules/@mrclrchtr/supi-core/src/session.ts +3 -0
- package/node_modules/@mrclrchtr/supi-core/src/shell-hints.ts +46 -0
- package/node_modules/@mrclrchtr/supi-core/src/side-run.ts +46 -0
- package/node_modules/@mrclrchtr/supi-core/src/spill.ts +93 -0
- package/node_modules/@mrclrchtr/supi-lsp/README.md +6 -2
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-code-runtime/package.json +1 -1
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-code-runtime/src/query-result.ts +10 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-core/package.json +3 -1
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-core/src/api.ts +4 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-core/src/context/context-tag.ts +1 -1
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-core/src/debug-registry.ts +78 -13
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-core/src/footer-registry.ts +41 -9
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-core/src/retired-packages.ts +152 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-core/src/session.ts +3 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-core/src/shell-hints.ts +46 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-core/src/side-run.ts +46 -0
- package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-core/src/spill.ts +93 -0
- package/node_modules/@mrclrchtr/supi-lsp/package.json +8 -8
- package/node_modules/@mrclrchtr/supi-lsp/src/api.ts +1 -0
- package/node_modules/@mrclrchtr/supi-lsp/src/client/client-diagnostic-cache.ts +102 -47
- package/node_modules/@mrclrchtr/supi-lsp/src/client/client-diagnostic-host.ts +8 -0
- package/node_modules/@mrclrchtr/supi-lsp/src/client/client-diagnostic-refresh.ts +20 -1
- package/node_modules/@mrclrchtr/supi-lsp/src/client/client-diagnostic-request.ts +4 -1
- package/node_modules/@mrclrchtr/supi-lsp/src/client/client-diagnostic-timing.ts +14 -1
- package/node_modules/@mrclrchtr/supi-lsp/src/client/client-diagnostic-typescript.ts +8 -1
- package/node_modules/@mrclrchtr/supi-lsp/src/client/client-diagnostics.ts +50 -4
- package/node_modules/@mrclrchtr/supi-lsp/src/client/client-disk-stamp.ts +60 -0
- package/node_modules/@mrclrchtr/supi-lsp/src/client/client-document-state.ts +3 -0
- package/node_modules/@mrclrchtr/supi-lsp/src/client/client-document-sync.ts +21 -1
- package/node_modules/@mrclrchtr/supi-lsp/src/client/client-file-state.ts +17 -3
- package/node_modules/@mrclrchtr/supi-lsp/src/client/client-input-admission.ts +7 -1
- package/node_modules/@mrclrchtr/supi-lsp/src/client/client-semantic-input-barrier.ts +53 -4
- package/node_modules/@mrclrchtr/supi-lsp/src/client/client.ts +12 -3
- package/node_modules/@mrclrchtr/supi-lsp/src/client/transport.ts +24 -8
- package/node_modules/@mrclrchtr/supi-lsp/src/config/server-config.ts +5 -0
- package/node_modules/@mrclrchtr/supi-lsp/src/config/tsconfig-extends.ts +2 -1
- package/node_modules/@mrclrchtr/supi-lsp/src/config/tsconfig-path.ts +2 -2
- package/node_modules/@mrclrchtr/supi-lsp/src/config/tsconfig-scope.ts +17 -5
- package/node_modules/@mrclrchtr/supi-lsp/src/config/typescript-module.ts +17 -0
- package/node_modules/@mrclrchtr/supi-lsp/src/debug-telemetry.ts +64 -0
- package/node_modules/@mrclrchtr/supi-lsp/src/diagnostics/evidence.ts +42 -0
- package/node_modules/@mrclrchtr/supi-lsp/src/manager/manager-client-state.ts +2 -17
- package/node_modules/@mrclrchtr/supi-lsp/src/manager/manager-project-info.ts +3 -0
- package/node_modules/@mrclrchtr/supi-lsp/src/manager/manager-removal-ledger.ts +52 -0
- package/node_modules/@mrclrchtr/supi-lsp/src/manager/manager-typescript-coverage.ts +27 -2
- package/node_modules/@mrclrchtr/supi-lsp/src/manager/manager-workspace-symbol.ts +16 -112
- package/node_modules/@mrclrchtr/supi-lsp/src/manager/manager.ts +561 -103
- package/node_modules/@mrclrchtr/supi-lsp/src/manager/typescript-file-local.ts +6 -1
- package/node_modules/@mrclrchtr/supi-lsp/src/manager/workspace-symbol-collection.ts +163 -0
- package/node_modules/@mrclrchtr/supi-lsp/src/manager/workspace-symbol-row-limit.ts +72 -0
- package/node_modules/@mrclrchtr/supi-lsp/src/provider/lsp-semantic-provider.ts +6 -1
- package/node_modules/@mrclrchtr/supi-lsp/src/provider/semantic-symbol-mapper.ts +13 -3
- package/node_modules/@mrclrchtr/supi-lsp/src/session/runtime-controller.ts +11 -0
- package/node_modules/@mrclrchtr/supi-lsp/src/session/runtime-diagnostic-surface.ts +11 -0
- package/node_modules/@mrclrchtr/supi-lsp/src/session/runtime-diagnostics.ts +1 -0
- package/node_modules/@mrclrchtr/supi-lsp/src/session/runtime-registry.ts +53 -9
- package/node_modules/@mrclrchtr/supi-lsp/src/session/runtime-transition-debug.ts +11 -1
- package/node_modules/@mrclrchtr/supi-lsp/src/session/workspace-lsp-runtime.ts +2 -0
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-code-runtime/package.json +1 -1
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-code-runtime/src/query-result.ts +10 -0
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-core/package.json +3 -1
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-core/src/api.ts +4 -0
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-core/src/context/context-tag.ts +1 -1
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-core/src/debug-registry.ts +78 -13
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-core/src/footer-registry.ts +41 -9
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-core/src/retired-packages.ts +152 -0
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-core/src/session.ts +3 -0
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-core/src/shell-hints.ts +46 -0
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-core/src/side-run.ts +46 -0
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-core/src/spill.ts +93 -0
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/web-tree-sitter/debug/web-tree-sitter.cjs +50 -75
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/web-tree-sitter/debug/web-tree-sitter.cjs.map +2 -2
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/web-tree-sitter/debug/web-tree-sitter.js +50 -75
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/web-tree-sitter/debug/web-tree-sitter.js.map +2 -2
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/web-tree-sitter/debug/web-tree-sitter.wasm +0 -0
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/web-tree-sitter/debug/web-tree-sitter.wasm.map +6 -6
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/web-tree-sitter/package.json +1 -1
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/web-tree-sitter/web-tree-sitter.cjs +50 -75
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/web-tree-sitter/web-tree-sitter.cjs.map +2 -2
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/web-tree-sitter/web-tree-sitter.d.cts +7 -7
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/web-tree-sitter/web-tree-sitter.d.cts.map +1 -1
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/web-tree-sitter/web-tree-sitter.d.ts +7 -7
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/web-tree-sitter/web-tree-sitter.d.ts.map +1 -1
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/web-tree-sitter/web-tree-sitter.js +50 -75
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/web-tree-sitter/web-tree-sitter.js.map +2 -2
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/web-tree-sitter/web-tree-sitter.wasm +0 -0
- package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/web-tree-sitter/web-tree-sitter.wasm.map +5 -5
- package/node_modules/@mrclrchtr/supi-tree-sitter/package.json +5 -5
- package/node_modules/@mrclrchtr/supi-tree-sitter/resources/grammars/kotlin/tree-sitter-kotlin.wasm.json +1 -1
- package/node_modules/@mrclrchtr/supi-tree-sitter/resources/grammars/latex/tree-sitter-latex.wasm.json +1 -1
- package/node_modules/@mrclrchtr/supi-tree-sitter/resources/grammars/sql/tree-sitter-sql.wasm +0 -0
- package/node_modules/@mrclrchtr/supi-tree-sitter/resources/grammars/sql/tree-sitter-sql.wasm.json +3 -3
- package/node_modules/@mrclrchtr/supi-tree-sitter/resources/grammars/tsx/tree-sitter-tsx.wasm.json +1 -1
- package/node_modules/@mrclrchtr/supi-tree-sitter/resources/grammars/typescript/tree-sitter-typescript.wasm.json +1 -1
- package/node_modules/@mrclrchtr/supi-tree-sitter/src/session/structural-worker-client.ts +1 -1
- package/node_modules/fast-xml-parser/CHANGELOG.md +886 -0
- package/node_modules/fast-xml-parser/LICENSE +21 -0
- package/node_modules/fast-xml-parser/README.md +204 -0
- package/node_modules/fast-xml-parser/lib/fxbuilder.min.js +2 -0
- package/node_modules/fast-xml-parser/lib/fxbuilder.min.js.map +1 -0
- package/node_modules/fast-xml-parser/lib/fxp.cjs +1 -0
- package/node_modules/fast-xml-parser/lib/fxp.d.cts +774 -0
- package/node_modules/fast-xml-parser/lib/fxp.min.js +2 -0
- package/node_modules/fast-xml-parser/lib/fxp.min.js.map +1 -0
- package/node_modules/fast-xml-parser/lib/fxparser.min.js +2 -0
- package/node_modules/fast-xml-parser/lib/fxparser.min.js.map +1 -0
- package/node_modules/fast-xml-parser/lib/fxvalidator.min.js +2 -0
- package/node_modules/fast-xml-parser/lib/fxvalidator.min.js.map +1 -0
- package/node_modules/fast-xml-parser/node_modules/@nodable/entities/README.md +92 -0
- package/node_modules/fast-xml-parser/node_modules/@nodable/entities/package.json +57 -0
- package/node_modules/fast-xml-parser/node_modules/@nodable/entities/src/EntityDecoder.js +644 -0
- package/node_modules/fast-xml-parser/node_modules/@nodable/entities/src/EntityEncoder.js +239 -0
- package/node_modules/fast-xml-parser/node_modules/@nodable/entities/src/all-entities.js +53 -0
- package/node_modules/fast-xml-parser/node_modules/@nodable/entities/src/entities.js +1139 -0
- package/node_modules/fast-xml-parser/node_modules/@nodable/entities/src/entityTries.js +60 -0
- package/node_modules/fast-xml-parser/node_modules/@nodable/entities/src/index.d.ts +358 -0
- package/node_modules/fast-xml-parser/node_modules/@nodable/entities/src/index.js +29 -0
- package/node_modules/fast-xml-parser/node_modules/fast-xml-builder/CHANGELOG.md +52 -0
- package/node_modules/fast-xml-parser/node_modules/fast-xml-builder/LICENSE +21 -0
- package/node_modules/fast-xml-parser/node_modules/fast-xml-builder/README.md +77 -0
- package/node_modules/fast-xml-parser/node_modules/fast-xml-builder/lib/fxb.cjs +1 -0
- package/node_modules/fast-xml-parser/node_modules/fast-xml-builder/lib/fxb.d.cts +270 -0
- package/node_modules/fast-xml-parser/node_modules/fast-xml-builder/lib/fxb.min.js +2 -0
- package/node_modules/fast-xml-parser/node_modules/fast-xml-builder/lib/fxb.min.js.map +1 -0
- package/node_modules/fast-xml-parser/node_modules/fast-xml-builder/package.json +77 -0
- package/node_modules/fast-xml-parser/node_modules/fast-xml-builder/src/fxb.d.ts +270 -0
- package/node_modules/fast-xml-parser/node_modules/fast-xml-builder/src/fxb.js +609 -0
- package/node_modules/fast-xml-parser/node_modules/fast-xml-builder/src/ignoreAttributes.js +18 -0
- package/node_modules/fast-xml-parser/node_modules/fast-xml-builder/src/orderedJs2Xml.js +360 -0
- package/node_modules/fast-xml-parser/node_modules/fast-xml-builder/src/prettifyJs2Xml.js +0 -0
- package/node_modules/fast-xml-parser/node_modules/fast-xml-builder/src/util.js +23 -0
- package/node_modules/fast-xml-parser/node_modules/is-unsafe/LICENSE +21 -0
- package/node_modules/fast-xml-parser/node_modules/is-unsafe/README.md +632 -0
- package/node_modules/fast-xml-parser/node_modules/is-unsafe/package.json +56 -0
- package/node_modules/fast-xml-parser/node_modules/is-unsafe/src/contexts/html.js +102 -0
- package/node_modules/fast-xml-parser/node_modules/is-unsafe/src/contexts/log.js +98 -0
- package/node_modules/fast-xml-parser/node_modules/is-unsafe/src/contexts/nosql.js +114 -0
- package/node_modules/fast-xml-parser/node_modules/is-unsafe/src/contexts/redos.js +60 -0
- package/node_modules/fast-xml-parser/node_modules/is-unsafe/src/contexts/shell.js +105 -0
- package/node_modules/fast-xml-parser/node_modules/is-unsafe/src/contexts/sql-strict.js +47 -0
- package/node_modules/fast-xml-parser/node_modules/is-unsafe/src/contexts/sql.js +95 -0
- package/node_modules/fast-xml-parser/node_modules/is-unsafe/src/contexts/svg.js +81 -0
- package/node_modules/fast-xml-parser/node_modules/is-unsafe/src/contexts/xml.js +79 -0
- package/node_modules/fast-xml-parser/node_modules/is-unsafe/src/index.cjs +27 -0
- package/node_modules/fast-xml-parser/node_modules/is-unsafe/src/index.d.ts +103 -0
- package/node_modules/fast-xml-parser/node_modules/is-unsafe/src/index.js +292 -0
- package/node_modules/fast-xml-parser/node_modules/is-unsafe/src/util/decode-entities.js +48 -0
- package/node_modules/fast-xml-parser/node_modules/path-expression-matcher/LICENSE +21 -0
- package/node_modules/fast-xml-parser/node_modules/path-expression-matcher/README.md +947 -0
- package/node_modules/fast-xml-parser/node_modules/path-expression-matcher/lib/pem.cjs +1 -0
- package/node_modules/fast-xml-parser/node_modules/path-expression-matcher/lib/pem.d.cts +725 -0
- package/node_modules/fast-xml-parser/node_modules/path-expression-matcher/lib/pem.min.js +2 -0
- package/node_modules/fast-xml-parser/node_modules/path-expression-matcher/lib/pem.min.js.map +1 -0
- package/node_modules/fast-xml-parser/node_modules/path-expression-matcher/package.json +79 -0
- package/node_modules/fast-xml-parser/node_modules/path-expression-matcher/src/Expression.js +232 -0
- package/node_modules/fast-xml-parser/node_modules/path-expression-matcher/src/ExpressionSet.js +225 -0
- package/node_modules/fast-xml-parser/node_modules/path-expression-matcher/src/Matcher.js +663 -0
- package/node_modules/fast-xml-parser/node_modules/path-expression-matcher/src/index.d.ts +589 -0
- package/node_modules/fast-xml-parser/node_modules/path-expression-matcher/src/index.js +30 -0
- package/node_modules/fast-xml-parser/node_modules/strnum/CHANGELOG.md +63 -0
- package/node_modules/fast-xml-parser/node_modules/strnum/LICENSE +21 -0
- package/node_modules/fast-xml-parser/node_modules/strnum/README.md +113 -0
- package/node_modules/fast-xml-parser/node_modules/strnum/node_modules/anynum/LICENSE +21 -0
- package/node_modules/fast-xml-parser/node_modules/strnum/node_modules/anynum/README.md +142 -0
- package/node_modules/fast-xml-parser/node_modules/strnum/node_modules/anynum/anynum.js +135 -0
- package/node_modules/fast-xml-parser/node_modules/strnum/node_modules/anynum/digitTable.js +116 -0
- package/node_modules/fast-xml-parser/node_modules/strnum/node_modules/anynum/package.json +42 -0
- package/node_modules/fast-xml-parser/node_modules/strnum/package.json +36 -0
- package/node_modules/fast-xml-parser/node_modules/strnum/strnum.js +176 -0
- package/node_modules/fast-xml-parser/node_modules/xml-naming/LICENSE +21 -0
- package/node_modules/fast-xml-parser/node_modules/xml-naming/README.md +287 -0
- package/node_modules/fast-xml-parser/node_modules/xml-naming/package.json +56 -0
- package/node_modules/fast-xml-parser/node_modules/xml-naming/src/index.d.ts +108 -0
- package/node_modules/fast-xml-parser/node_modules/xml-naming/src/index.js +382 -0
- package/node_modules/fast-xml-parser/package.json +93 -0
- package/node_modules/fast-xml-parser/src/cli/cli.js +97 -0
- package/node_modules/fast-xml-parser/src/cli/man.js +17 -0
- package/node_modules/fast-xml-parser/src/cli/read.js +43 -0
- package/node_modules/fast-xml-parser/src/fxp.d.ts +754 -0
- package/node_modules/fast-xml-parser/src/fxp.js +14 -0
- package/node_modules/fast-xml-parser/src/ignoreAttributes.js +18 -0
- package/node_modules/fast-xml-parser/src/util.js +61 -0
- package/node_modules/fast-xml-parser/src/v6/CharsSymbol.js +16 -0
- package/node_modules/fast-xml-parser/src/v6/EntitiesParser.js +106 -0
- package/node_modules/fast-xml-parser/src/v6/OptionsBuilder.js +61 -0
- package/node_modules/fast-xml-parser/src/v6/OutputBuilders/BaseOutputBuilder.js +69 -0
- package/node_modules/fast-xml-parser/src/v6/OutputBuilders/JsArrBuilder.js +103 -0
- package/node_modules/fast-xml-parser/src/v6/OutputBuilders/JsMinArrBuilder.js +100 -0
- package/node_modules/fast-xml-parser/src/v6/OutputBuilders/JsObjBuilder.js +154 -0
- package/node_modules/fast-xml-parser/src/v6/OutputBuilders/ParserOptionsBuilder.js +94 -0
- package/node_modules/fast-xml-parser/src/v6/Report.js +0 -0
- package/node_modules/fast-xml-parser/src/v6/TagPath.js +81 -0
- package/node_modules/fast-xml-parser/src/v6/TagPathMatcher.js +13 -0
- package/node_modules/fast-xml-parser/src/v6/XMLParser.js +83 -0
- package/node_modules/fast-xml-parser/src/v6/Xml2JsParser.js +235 -0
- package/node_modules/fast-xml-parser/src/v6/XmlPartReader.js +210 -0
- package/node_modules/fast-xml-parser/src/v6/XmlSpecialTagsReader.js +111 -0
- package/node_modules/fast-xml-parser/src/v6/inputSource/BufferSource.js +116 -0
- package/node_modules/fast-xml-parser/src/v6/inputSource/StringSource.js +121 -0
- package/node_modules/fast-xml-parser/src/v6/valueParsers/EntitiesParser.js +105 -0
- package/node_modules/fast-xml-parser/src/v6/valueParsers/booleanParser.js +22 -0
- package/node_modules/fast-xml-parser/src/v6/valueParsers/booleanParserExt.js +19 -0
- package/node_modules/fast-xml-parser/src/v6/valueParsers/currency.js +38 -0
- package/node_modules/fast-xml-parser/src/v6/valueParsers/join.js +13 -0
- package/node_modules/fast-xml-parser/src/v6/valueParsers/number.js +14 -0
- package/node_modules/fast-xml-parser/src/v6/valueParsers/trim.js +6 -0
- package/node_modules/fast-xml-parser/src/validator.js +518 -0
- package/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js +6 -0
- package/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +426 -0
- package/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js +164 -0
- package/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +907 -0
- package/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js +77 -0
- package/node_modules/fast-xml-parser/src/xmlparser/node2json.js +177 -0
- package/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js +54 -0
- package/package.json +10 -8
- package/src/analysis/evidence.ts +331 -73
- package/src/analysis/health/diagnostics.ts +66 -18
- package/src/analysis/health/evidence-reason.ts +44 -0
- package/src/analysis/health/server-status.ts +32 -9
- package/src/analysis/health/signals.ts +1 -0
- package/src/analysis/instruction-files.ts +11 -7
- package/src/analysis/search/exclusions.ts +18 -4
- package/src/analysis/search/pattern.ts +3 -3
- package/src/analysis/target/anchored.ts +3 -6
- package/src/analysis/target/file-outline-omissions.ts +17 -2
- package/src/analysis/target/symbol-selection.ts +100 -0
- package/src/analysis/target/symbol.ts +83 -49
- package/src/analysis/target/types.ts +12 -10
- package/src/analysis/workspace/cmake-parser.ts +207 -0
- package/src/analysis/workspace/cmake.ts +141 -0
- package/src/analysis/workspace/maven.ts +310 -0
- package/src/analysis/workspace/membership.ts +100 -26
- package/src/analysis/workspace/metadata.ts +6 -1
- package/src/analysis/workspace/observe.ts +6 -0
- package/src/analysis/workspace/types.ts +11 -3
- package/src/app/app.ts +37 -21
- package/src/diagnostics/coverage.ts +49 -0
- package/src/diagnostics/evidence.ts +10 -2
- package/src/extension.ts +1 -2
- package/src/headless.ts +4 -2
- package/src/session/health-types.ts +2 -0
- package/src/session/health-workflow.ts +6 -0
- package/src/session/input/common.ts +1 -1
- package/src/session/orientation/collect.ts +42 -7
- package/src/session/orientation/context-facts.ts +3 -3
- package/src/session/orientation/context-sections.ts +13 -15
- package/src/session/orientation/facts.ts +5 -8
- package/src/session/orientation-types.ts +5 -0
- package/src/session/orientation-workflow.ts +12 -17
- package/src/session/target-workflow.ts +38 -25
- package/src/tool/code_find/render.ts +10 -11
- package/src/tool/code_find/result.ts +11 -8
- package/src/tool/code_graph/display.ts +5 -6
- package/src/tool/code_graph/format.ts +8 -24
- package/src/tool/code_graph/result.ts +16 -75
- package/src/tool/code_graph/section.ts +21 -33
- package/src/tool/code_graph/structured.ts +3 -0
- package/src/tool/code_graph/tui.ts +10 -5
- package/src/tool/code_health/diagnostic-tui.ts +49 -0
- package/src/tool/code_health/guidance.ts +27 -0
- package/src/tool/code_health/markdown.ts +63 -9
- package/src/tool/code_health/result.ts +20 -9
- package/src/tool/code_health/structured-schema.ts +15 -0
- package/src/tool/code_health/structured.ts +9 -1
- package/src/tool/code_health/tui.ts +33 -40
- package/src/tool/code_inspect/result.ts +23 -18
- package/src/tool/code_inspect/structured.ts +2 -19
- package/src/tool/code_orientation/markdown.ts +6 -1
- package/src/tool/code_orientation/result.ts +53 -100
- package/src/tool/code_orientation/structured-schema.ts +16 -12
- package/src/tool/code_orientation/structured-workspace.ts +13 -7
- package/src/tool/code_orientation/structured.ts +31 -39
- package/src/tool/code_orientation/workspace-format.ts +4 -10
- package/src/tool/code_orientation/workspace-instructions.ts +4 -5
- package/src/tool/code_orientation/workspace-observations.ts +2 -2
- package/src/tool/code_orientation/workspace-output.ts +16 -7
- package/src/tool/code_orientation/workspace-projects.ts +7 -10
- package/src/tool/code_orientation/workspace-sections.ts +13 -19
- package/src/tool/code_resolve/markdown.ts +4 -46
- package/src/tool/code_resolve/result.ts +45 -73
- package/src/tool/code_resolve/structured.ts +6 -1
- package/src/tool/infra/truncate.ts +2 -16
- package/src/tool/result/candidate-selection.ts +157 -0
- package/src/tool/result/display.ts +41 -45
- package/src/tool/result/errors.ts +1 -0
- package/src/tool/result/model-budget.ts +26 -1
- package/src/tool/result/refactor.ts +11 -8
- package/src/tool/result/structured.ts +2 -1
- package/src/tool/result/types.ts +9 -8
- package/src/tool/schemas.ts +15 -20
- package/src/ui/footer.ts +147 -44
- package/src/ui/status-overlay.ts +13 -8
- package/src/ui/status-presentation.ts +4 -7
- package/src/ui/tui/candidate-selection.ts +40 -95
- package/src/ui/tui/common.ts +16 -70
- package/src/ui/tui/display.ts +6 -24
- package/src/tool/result/candidate-row.ts +0 -49
|
@@ -363,29 +363,17 @@ var Tree = class _Tree {
|
|
|
363
363
|
};
|
|
364
364
|
|
|
365
365
|
// src/tree_cursor.ts
|
|
366
|
-
var finalizer3 = newFinalizer((
|
|
367
|
-
|
|
366
|
+
var finalizer3 = newFinalizer((handles) => {
|
|
367
|
+
marshalTreeCursor({ handles });
|
|
368
|
+
C._ts_tree_cursor_delete_wasm(0);
|
|
368
369
|
});
|
|
369
370
|
var TreeCursor = class _TreeCursor {
|
|
370
371
|
static {
|
|
371
372
|
__name(this, "TreeCursor");
|
|
372
373
|
}
|
|
373
374
|
/** @internal */
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
// Internal handle for Wasm
|
|
377
|
-
/** @internal */
|
|
378
|
-
// @ts-expect-error: never read
|
|
379
|
-
[1] = 0;
|
|
380
|
-
// Internal handle for Wasm
|
|
381
|
-
/** @internal */
|
|
382
|
-
// @ts-expect-error: never read
|
|
383
|
-
[2] = 0;
|
|
384
|
-
// Internal handle for Wasm
|
|
385
|
-
/** @internal */
|
|
386
|
-
// @ts-expect-error: never read
|
|
387
|
-
[3] = 0;
|
|
388
|
-
// Internal handle for Wasm
|
|
375
|
+
handles = [0, 0, 0, 0];
|
|
376
|
+
// Internal handles for Wasm, shared with the finalizer.
|
|
389
377
|
/** @internal */
|
|
390
378
|
tree;
|
|
391
379
|
/** @internal */
|
|
@@ -393,21 +381,20 @@ var TreeCursor = class _TreeCursor {
|
|
|
393
381
|
assertInternal(internal);
|
|
394
382
|
this.tree = tree;
|
|
395
383
|
unmarshalTreeCursor(this);
|
|
396
|
-
finalizer3?.register(this, this.
|
|
384
|
+
finalizer3?.register(this, this.handles, this);
|
|
397
385
|
}
|
|
398
386
|
/** Creates a deep copy of the tree cursor. This allocates new memory. */
|
|
399
387
|
copy() {
|
|
400
|
-
|
|
388
|
+
marshalTreeCursor(this);
|
|
401
389
|
C._ts_tree_cursor_copy_wasm(this.tree[0]);
|
|
402
|
-
|
|
403
|
-
return copy;
|
|
390
|
+
return new _TreeCursor(INTERNAL, this.tree);
|
|
404
391
|
}
|
|
405
392
|
/** Delete the tree cursor, freeing its resources. */
|
|
406
393
|
delete() {
|
|
407
394
|
finalizer3?.unregister(this);
|
|
408
395
|
marshalTreeCursor(this);
|
|
409
396
|
C._ts_tree_cursor_delete_wasm(this.tree[0]);
|
|
410
|
-
this
|
|
397
|
+
this.handles.fill(0);
|
|
411
398
|
}
|
|
412
399
|
/** Get the tree cursor's current {@link Node}. */
|
|
413
400
|
get currentNode() {
|
|
@@ -618,10 +605,10 @@ var TreeCursor = class _TreeCursor {
|
|
|
618
605
|
}
|
|
619
606
|
/**
|
|
620
607
|
* Move this cursor to the first child of its current node that contains or
|
|
621
|
-
* starts after the given
|
|
608
|
+
* starts after the given position.
|
|
622
609
|
*
|
|
623
|
-
* This returns
|
|
624
|
-
* `
|
|
610
|
+
* This returns `true` if the cursor successfully moved to a child node, and returns
|
|
611
|
+
* `false` if no such child was found.
|
|
625
612
|
*/
|
|
626
613
|
gotoFirstChildForPosition(goalPosition) {
|
|
627
614
|
marshalTreeCursor(this);
|
|
@@ -637,8 +624,9 @@ var TreeCursor = class _TreeCursor {
|
|
|
637
624
|
reset(node) {
|
|
638
625
|
marshalNode(node);
|
|
639
626
|
marshalTreeCursor(this, TRANSFER_BUFFER + SIZE_OF_NODE);
|
|
640
|
-
C._ts_tree_cursor_reset_wasm(
|
|
627
|
+
C._ts_tree_cursor_reset_wasm(node.tree[0]);
|
|
641
628
|
unmarshalTreeCursor(this);
|
|
629
|
+
this.tree = node.tree;
|
|
642
630
|
}
|
|
643
631
|
/**
|
|
644
632
|
* Re-initialize a tree cursor to the same position as another cursor.
|
|
@@ -651,6 +639,7 @@ var TreeCursor = class _TreeCursor {
|
|
|
651
639
|
marshalTreeCursor(cursor, TRANSFER_BUFFER + SIZE_OF_CURSOR);
|
|
652
640
|
C._ts_tree_cursor_reset_to_wasm(this.tree[0], cursor.tree[0]);
|
|
653
641
|
unmarshalTreeCursor(this);
|
|
642
|
+
this.tree = cursor.tree;
|
|
654
643
|
}
|
|
655
644
|
};
|
|
656
645
|
|
|
@@ -1011,16 +1000,14 @@ var Node = class {
|
|
|
1011
1000
|
if (!Array.isArray(types)) types = [types];
|
|
1012
1001
|
const symbols = [];
|
|
1013
1002
|
const typesBySymbol = this.tree.language.types;
|
|
1014
|
-
for (const node_type of types) {
|
|
1015
|
-
if (node_type == "ERROR") {
|
|
1016
|
-
symbols.push(65535);
|
|
1017
|
-
}
|
|
1018
|
-
}
|
|
1019
1003
|
for (let i2 = 0, n = typesBySymbol.length; i2 < n; i2++) {
|
|
1020
1004
|
if (types.includes(typesBySymbol[i2])) {
|
|
1021
1005
|
symbols.push(i2);
|
|
1022
1006
|
}
|
|
1023
1007
|
}
|
|
1008
|
+
if (types.includes("ERROR")) {
|
|
1009
|
+
symbols.push(65535);
|
|
1010
|
+
}
|
|
1024
1011
|
const symbolsAddress = C._malloc(SIZE_OF_INT * symbols.length);
|
|
1025
1012
|
for (let i2 = 0, n = symbols.length; i2 < n; i2++) {
|
|
1026
1013
|
C.setValue(symbolsAddress + i2 * SIZE_OF_INT, symbols[i2], "i32");
|
|
@@ -1175,31 +1162,9 @@ var Node = class {
|
|
|
1175
1162
|
* you want to keep and continue to use after an edit.
|
|
1176
1163
|
*/
|
|
1177
1164
|
edit(edit) {
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
let subbedPointColumn;
|
|
1182
|
-
if (this.startPosition.row > edit.oldEndPosition.row) {
|
|
1183
|
-
subbedPointRow = this.startPosition.row - edit.oldEndPosition.row;
|
|
1184
|
-
subbedPointColumn = this.startPosition.column;
|
|
1185
|
-
} else {
|
|
1186
|
-
subbedPointRow = 0;
|
|
1187
|
-
subbedPointColumn = this.startPosition.column;
|
|
1188
|
-
if (this.startPosition.column >= edit.oldEndPosition.column) {
|
|
1189
|
-
subbedPointColumn = this.startPosition.column - edit.oldEndPosition.column;
|
|
1190
|
-
}
|
|
1191
|
-
}
|
|
1192
|
-
if (subbedPointRow > 0) {
|
|
1193
|
-
this.startPosition.row += subbedPointRow;
|
|
1194
|
-
this.startPosition.column = subbedPointColumn;
|
|
1195
|
-
} else {
|
|
1196
|
-
this.startPosition.column += subbedPointColumn;
|
|
1197
|
-
}
|
|
1198
|
-
} else if (this.startIndex > edit.startIndex) {
|
|
1199
|
-
this.startIndex = edit.newEndIndex;
|
|
1200
|
-
this.startPosition.row = edit.newEndPosition.row;
|
|
1201
|
-
this.startPosition.column = edit.newEndPosition.column;
|
|
1202
|
-
}
|
|
1165
|
+
const { point, index } = edit.editPoint(this.startPosition, this.startIndex);
|
|
1166
|
+
this.startPosition = point;
|
|
1167
|
+
this.startIndex = index;
|
|
1203
1168
|
}
|
|
1204
1169
|
/** Get the S-expression representation of this node. */
|
|
1205
1170
|
toString() {
|
|
@@ -1257,18 +1222,18 @@ function unmarshalNode(tree, address = TRANSFER_BUFFER) {
|
|
|
1257
1222
|
return result;
|
|
1258
1223
|
}
|
|
1259
1224
|
__name(unmarshalNode, "unmarshalNode");
|
|
1260
|
-
function marshalTreeCursor(
|
|
1261
|
-
C.setValue(address + 0 * SIZE_OF_INT,
|
|
1262
|
-
C.setValue(address + 1 * SIZE_OF_INT,
|
|
1263
|
-
C.setValue(address + 2 * SIZE_OF_INT,
|
|
1264
|
-
C.setValue(address + 3 * SIZE_OF_INT,
|
|
1225
|
+
function marshalTreeCursor({ handles }, address = TRANSFER_BUFFER) {
|
|
1226
|
+
C.setValue(address + 0 * SIZE_OF_INT, handles[0], "i32");
|
|
1227
|
+
C.setValue(address + 1 * SIZE_OF_INT, handles[1], "i32");
|
|
1228
|
+
C.setValue(address + 2 * SIZE_OF_INT, handles[2], "i32");
|
|
1229
|
+
C.setValue(address + 3 * SIZE_OF_INT, handles[3], "i32");
|
|
1265
1230
|
}
|
|
1266
1231
|
__name(marshalTreeCursor, "marshalTreeCursor");
|
|
1267
|
-
function unmarshalTreeCursor(
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1232
|
+
function unmarshalTreeCursor({ handles }) {
|
|
1233
|
+
handles[0] = C.getValue(TRANSFER_BUFFER + 0 * SIZE_OF_INT, "i32");
|
|
1234
|
+
handles[1] = C.getValue(TRANSFER_BUFFER + 1 * SIZE_OF_INT, "i32");
|
|
1235
|
+
handles[2] = C.getValue(TRANSFER_BUFFER + 2 * SIZE_OF_INT, "i32");
|
|
1236
|
+
handles[3] = C.getValue(TRANSFER_BUFFER + 3 * SIZE_OF_INT, "i32");
|
|
1272
1237
|
}
|
|
1273
1238
|
__name(unmarshalTreeCursor, "unmarshalTreeCursor");
|
|
1274
1239
|
function marshalPoint(address, point) {
|
|
@@ -3328,6 +3293,7 @@ async function Module2(moduleArg = {}) {
|
|
|
3328
3293
|
var _ts_language_symbol_name = Module["_ts_language_symbol_name"] = makeInvalidEarlyAccess("_ts_language_symbol_name");
|
|
3329
3294
|
var _ts_language_symbol_for_name = Module["_ts_language_symbol_for_name"] = makeInvalidEarlyAccess("_ts_language_symbol_for_name");
|
|
3330
3295
|
var _strncmp = Module["_strncmp"] = makeInvalidEarlyAccess("_strncmp");
|
|
3296
|
+
var _strlen = Module["_strlen"] = makeInvalidEarlyAccess("_strlen");
|
|
3331
3297
|
var _ts_language_symbol_type = Module["_ts_language_symbol_type"] = makeInvalidEarlyAccess("_ts_language_symbol_type");
|
|
3332
3298
|
var _ts_language_field_name_for_id = Module["_ts_language_field_name_for_id"] = makeInvalidEarlyAccess("_ts_language_field_name_for_id");
|
|
3333
3299
|
var _ts_lookahead_iterator_new = Module["_ts_lookahead_iterator_new"] = makeInvalidEarlyAccess("_ts_lookahead_iterator_new");
|
|
@@ -3449,7 +3415,6 @@ async function Module2(moduleArg = {}) {
|
|
|
3449
3415
|
var _memcpy = Module["_memcpy"] = makeInvalidEarlyAccess("_memcpy");
|
|
3450
3416
|
var _memmove = Module["_memmove"] = makeInvalidEarlyAccess("_memmove");
|
|
3451
3417
|
var _fflush = makeInvalidEarlyAccess("_fflush");
|
|
3452
|
-
var _strlen = Module["_strlen"] = makeInvalidEarlyAccess("_strlen");
|
|
3453
3418
|
var _iswalpha = Module["_iswalpha"] = makeInvalidEarlyAccess("_iswalpha");
|
|
3454
3419
|
var _iswblank = Module["_iswblank"] = makeInvalidEarlyAccess("_iswblank");
|
|
3455
3420
|
var _iswdigit = Module["_iswdigit"] = makeInvalidEarlyAccess("_iswdigit");
|
|
@@ -3489,6 +3454,7 @@ async function Module2(moduleArg = {}) {
|
|
|
3489
3454
|
Module["_ts_language_symbol_name"] = _ts_language_symbol_name = createExportWrapper("ts_language_symbol_name", 2);
|
|
3490
3455
|
Module["_ts_language_symbol_for_name"] = _ts_language_symbol_for_name = createExportWrapper("ts_language_symbol_for_name", 4);
|
|
3491
3456
|
Module["_strncmp"] = _strncmp = createExportWrapper("strncmp", 3);
|
|
3457
|
+
Module["_strlen"] = _strlen = createExportWrapper("strlen", 1);
|
|
3492
3458
|
Module["_ts_language_symbol_type"] = _ts_language_symbol_type = createExportWrapper("ts_language_symbol_type", 2);
|
|
3493
3459
|
Module["_ts_language_field_name_for_id"] = _ts_language_field_name_for_id = createExportWrapper("ts_language_field_name_for_id", 2);
|
|
3494
3460
|
Module["_ts_lookahead_iterator_new"] = _ts_lookahead_iterator_new = createExportWrapper("ts_lookahead_iterator_new", 2);
|
|
@@ -3610,7 +3576,6 @@ async function Module2(moduleArg = {}) {
|
|
|
3610
3576
|
Module["_memcpy"] = _memcpy = createExportWrapper("memcpy", 3);
|
|
3611
3577
|
Module["_memmove"] = _memmove = createExportWrapper("memmove", 3);
|
|
3612
3578
|
_fflush = createExportWrapper("fflush", 1);
|
|
3613
|
-
Module["_strlen"] = _strlen = createExportWrapper("strlen", 1);
|
|
3614
3579
|
Module["_iswalpha"] = _iswalpha = createExportWrapper("iswalpha", 1);
|
|
3615
3580
|
Module["_iswblank"] = _iswblank = createExportWrapper("iswblank", 1);
|
|
3616
3581
|
Module["_iswdigit"] = _iswdigit = createExportWrapper("iswdigit", 1);
|
|
@@ -4233,6 +4198,10 @@ function parsePattern(index, stepType, stepValueId, captureNames, stringValues,
|
|
|
4233
4198
|
}
|
|
4234
4199
|
}
|
|
4235
4200
|
__name(parsePattern, "parsePattern");
|
|
4201
|
+
function indexForByteOffset(source, byteOffset) {
|
|
4202
|
+
return new TextEncoder().encodeInto(source, new Uint8Array(byteOffset)).read;
|
|
4203
|
+
}
|
|
4204
|
+
__name(indexForByteOffset, "indexForByteOffset");
|
|
4236
4205
|
var finalizer5 = newFinalizer((address) => {
|
|
4237
4206
|
C._ts_query_delete(address);
|
|
4238
4207
|
});
|
|
@@ -4247,6 +4216,8 @@ var Query = class {
|
|
|
4247
4216
|
exceededMatchLimit;
|
|
4248
4217
|
/** @internal */
|
|
4249
4218
|
textPredicates;
|
|
4219
|
+
/** @internal */
|
|
4220
|
+
source;
|
|
4250
4221
|
/** The names of the captures used in the query. */
|
|
4251
4222
|
captureNames;
|
|
4252
4223
|
/** The quantifiers of the captures used in the query. */
|
|
@@ -4385,6 +4356,7 @@ var Query = class {
|
|
|
4385
4356
|
this.captureNames = captureNames;
|
|
4386
4357
|
this.captureQuantifiers = captureQuantifiers;
|
|
4387
4358
|
this.textPredicates = textPredicates;
|
|
4359
|
+
this.source = source;
|
|
4388
4360
|
this.predicates = predicates;
|
|
4389
4361
|
this.setProperties = setProperties;
|
|
4390
4362
|
this.assertedProperties = assertedProperties;
|
|
@@ -4621,23 +4593,25 @@ var Query = class {
|
|
|
4621
4593
|
didExceedMatchLimit() {
|
|
4622
4594
|
return this.exceededMatchLimit;
|
|
4623
4595
|
}
|
|
4624
|
-
/** Get the
|
|
4596
|
+
/** Get the index where the given pattern starts in the query's source. */
|
|
4625
4597
|
startIndexForPattern(patternIndex) {
|
|
4626
4598
|
if (patternIndex >= this.predicates.length) {
|
|
4627
4599
|
throw new Error(
|
|
4628
4600
|
`Pattern index is ${patternIndex} but the pattern count is ${this.predicates.length}`
|
|
4629
4601
|
);
|
|
4630
4602
|
}
|
|
4631
|
-
|
|
4603
|
+
const byteOffset = C._ts_query_start_byte_for_pattern(this[0], patternIndex);
|
|
4604
|
+
return indexForByteOffset(this.source, byteOffset);
|
|
4632
4605
|
}
|
|
4633
|
-
/** Get the
|
|
4606
|
+
/** Get the index where the given pattern ends in the query's source. */
|
|
4634
4607
|
endIndexForPattern(patternIndex) {
|
|
4635
4608
|
if (patternIndex >= this.predicates.length) {
|
|
4636
4609
|
throw new Error(
|
|
4637
4610
|
`Pattern index is ${patternIndex} but the pattern count is ${this.predicates.length}`
|
|
4638
4611
|
);
|
|
4639
4612
|
}
|
|
4640
|
-
|
|
4613
|
+
const byteOffset = C._ts_query_end_byte_for_pattern(this[0], patternIndex);
|
|
4614
|
+
return indexForByteOffset(this.source, byteOffset);
|
|
4641
4615
|
}
|
|
4642
4616
|
/** Get the number of patterns in the query. */
|
|
4643
4617
|
patternCount() {
|
|
@@ -4656,13 +4630,14 @@ var Query = class {
|
|
|
4656
4630
|
return C._ts_query_is_pattern_non_local(this[0], patternIndex) === 1;
|
|
4657
4631
|
}
|
|
4658
4632
|
/**
|
|
4659
|
-
* Check if
|
|
4633
|
+
* Check if the step at the given index in the query's source is 'definite'.
|
|
4660
4634
|
*
|
|
4661
4635
|
* A query step is 'definite' if its parent pattern will be guaranteed to
|
|
4662
4636
|
* match successfully once it reaches the step.
|
|
4663
4637
|
*/
|
|
4664
|
-
isPatternGuaranteedAtStep(
|
|
4665
|
-
|
|
4638
|
+
isPatternGuaranteedAtStep(index) {
|
|
4639
|
+
const byteOffset = C.lengthBytesUTF8(this.source.slice(0, index));
|
|
4640
|
+
return C._ts_query_is_pattern_guaranteed_at_step(this[0], byteOffset) === 1;
|
|
4666
4641
|
}
|
|
4667
4642
|
};
|
|
4668
4643
|
export {
|