@mrclrchtr/supi-code-intelligence 11.4.0 → 13.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.
Files changed (330) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/README.md +17 -9
  3. package/node_modules/@mrclrchtr/supi-code-runtime/package.json +1 -1
  4. package/node_modules/@mrclrchtr/supi-code-runtime/src/api.ts +1 -0
  5. package/node_modules/@mrclrchtr/supi-code-runtime/src/types.ts +51 -23
  6. package/node_modules/@mrclrchtr/supi-core/package.json +3 -1
  7. package/node_modules/@mrclrchtr/supi-core/src/api.ts +4 -0
  8. package/node_modules/@mrclrchtr/supi-core/src/context/context-tag.ts +1 -1
  9. package/node_modules/@mrclrchtr/supi-core/src/debug-registry.ts +22 -3
  10. package/node_modules/@mrclrchtr/supi-core/src/retired-packages.ts +152 -0
  11. package/node_modules/@mrclrchtr/supi-core/src/session.ts +1 -0
  12. package/node_modules/@mrclrchtr/supi-core/src/shell-hints.ts +46 -0
  13. package/node_modules/@mrclrchtr/supi-core/src/spill.ts +93 -0
  14. package/node_modules/@mrclrchtr/supi-lsp/README.md +21 -16
  15. package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-code-runtime/package.json +1 -1
  16. package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-code-runtime/src/api.ts +1 -0
  17. package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-code-runtime/src/types.ts +51 -23
  18. package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-core/package.json +3 -1
  19. package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-core/src/api.ts +4 -0
  20. package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-core/src/context/context-tag.ts +1 -1
  21. package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-core/src/debug-registry.ts +22 -3
  22. package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-core/src/retired-packages.ts +152 -0
  23. package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-core/src/session.ts +1 -0
  24. package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-core/src/shell-hints.ts +46 -0
  25. package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-core/src/spill.ts +93 -0
  26. package/node_modules/@mrclrchtr/supi-lsp/package.json +8 -8
  27. package/node_modules/@mrclrchtr/supi-lsp/src/api.ts +3 -2
  28. package/node_modules/@mrclrchtr/supi-lsp/src/client/client-diagnostic-cache.ts +102 -47
  29. package/node_modules/@mrclrchtr/supi-lsp/src/client/client-diagnostic-capabilities.ts +13 -3
  30. package/node_modules/@mrclrchtr/supi-lsp/src/client/client-diagnostic-host.ts +8 -0
  31. package/node_modules/@mrclrchtr/supi-lsp/src/client/client-diagnostic-refresh.ts +15 -1
  32. package/node_modules/@mrclrchtr/supi-lsp/src/client/client-diagnostic-request.ts +1 -1
  33. package/node_modules/@mrclrchtr/supi-lsp/src/client/client-diagnostics.ts +71 -13
  34. package/node_modules/@mrclrchtr/supi-lsp/src/client/client-disk-stamp.ts +60 -0
  35. package/node_modules/@mrclrchtr/supi-lsp/src/client/client-document-state.ts +3 -0
  36. package/node_modules/@mrclrchtr/supi-lsp/src/client/client-document-sync.ts +28 -6
  37. package/node_modules/@mrclrchtr/supi-lsp/src/client/client-edit-capture.ts +258 -0
  38. package/node_modules/@mrclrchtr/supi-lsp/src/client/client-file-state.ts +17 -3
  39. package/node_modules/@mrclrchtr/supi-lsp/src/client/client-semantic-input-barrier.ts +53 -4
  40. package/node_modules/@mrclrchtr/supi-lsp/src/client/client.ts +75 -14
  41. package/node_modules/@mrclrchtr/supi-lsp/src/config/capabilities.ts +8 -0
  42. package/node_modules/@mrclrchtr/supi-lsp/src/config/operation-support.ts +48 -79
  43. package/node_modules/@mrclrchtr/supi-lsp/src/config/tsconfig-extends.ts +2 -1
  44. package/node_modules/@mrclrchtr/supi-lsp/src/config/tsconfig-path.ts +2 -2
  45. package/node_modules/@mrclrchtr/supi-lsp/src/config/tsconfig-scope.ts +14 -5
  46. package/node_modules/@mrclrchtr/supi-lsp/src/config/typescript-module.ts +17 -0
  47. package/node_modules/@mrclrchtr/supi-lsp/src/diagnostics/evidence.ts +42 -0
  48. package/node_modules/@mrclrchtr/supi-lsp/src/manager/manager-client-state.ts +2 -17
  49. package/node_modules/@mrclrchtr/supi-lsp/src/manager/manager-removal-ledger.ts +52 -0
  50. package/node_modules/@mrclrchtr/supi-lsp/src/manager/manager.ts +43 -21
  51. package/node_modules/@mrclrchtr/supi-lsp/src/manager/typescript-file-local.ts +6 -1
  52. package/node_modules/@mrclrchtr/supi-lsp/src/provider/lsp-refactor-provider.ts +21 -35
  53. package/node_modules/@mrclrchtr/supi-lsp/src/provider/lsp-semantic-provider.ts +6 -1
  54. package/node_modules/@mrclrchtr/supi-lsp/src/provider/refactor-command-capture.ts +139 -0
  55. package/node_modules/@mrclrchtr/supi-lsp/src/provider/refactor-planning.ts +202 -47
  56. package/node_modules/@mrclrchtr/supi-lsp/src/provider/semantic-symbol-mapper.ts +13 -3
  57. package/node_modules/@mrclrchtr/supi-lsp/src/session/route-boundary.ts +26 -0
  58. package/node_modules/@mrclrchtr/supi-lsp/src/session/runtime-diagnostic-surface.ts +11 -0
  59. package/node_modules/@mrclrchtr/supi-lsp/src/session/runtime-diagnostics.ts +1 -0
  60. package/node_modules/@mrclrchtr/supi-lsp/src/session/runtime-registry.ts +74 -14
  61. package/node_modules/@mrclrchtr/supi-lsp/src/session/runtime-rename.ts +3 -0
  62. package/node_modules/@mrclrchtr/supi-lsp/src/session/runtime-transition-debug.ts +11 -1
  63. package/node_modules/@mrclrchtr/supi-lsp/src/session/workspace-lsp-runtime.ts +24 -1
  64. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-code-runtime/package.json +1 -1
  65. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-code-runtime/src/api.ts +1 -0
  66. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-code-runtime/src/types.ts +51 -23
  67. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-core/package.json +3 -1
  68. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-core/src/api.ts +4 -0
  69. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-core/src/context/context-tag.ts +1 -1
  70. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-core/src/debug-registry.ts +22 -3
  71. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-core/src/retired-packages.ts +152 -0
  72. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-core/src/session.ts +1 -0
  73. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-core/src/shell-hints.ts +46 -0
  74. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-core/src/spill.ts +93 -0
  75. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/web-tree-sitter/debug/web-tree-sitter.cjs +50 -75
  76. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/web-tree-sitter/debug/web-tree-sitter.cjs.map +2 -2
  77. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/web-tree-sitter/debug/web-tree-sitter.js +50 -75
  78. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/web-tree-sitter/debug/web-tree-sitter.js.map +2 -2
  79. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/web-tree-sitter/debug/web-tree-sitter.wasm +0 -0
  80. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/web-tree-sitter/debug/web-tree-sitter.wasm.map +6 -6
  81. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/web-tree-sitter/package.json +1 -1
  82. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/web-tree-sitter/web-tree-sitter.cjs +50 -75
  83. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/web-tree-sitter/web-tree-sitter.cjs.map +2 -2
  84. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/web-tree-sitter/web-tree-sitter.d.cts +7 -7
  85. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/web-tree-sitter/web-tree-sitter.d.cts.map +1 -1
  86. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/web-tree-sitter/web-tree-sitter.d.ts +7 -7
  87. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/web-tree-sitter/web-tree-sitter.d.ts.map +1 -1
  88. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/web-tree-sitter/web-tree-sitter.js +50 -75
  89. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/web-tree-sitter/web-tree-sitter.js.map +2 -2
  90. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/web-tree-sitter/web-tree-sitter.wasm +0 -0
  91. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/web-tree-sitter/web-tree-sitter.wasm.map +5 -5
  92. package/node_modules/@mrclrchtr/supi-tree-sitter/package.json +5 -5
  93. package/node_modules/@mrclrchtr/supi-tree-sitter/resources/grammars/kotlin/tree-sitter-kotlin.wasm.json +1 -1
  94. package/node_modules/@mrclrchtr/supi-tree-sitter/resources/grammars/latex/tree-sitter-latex.wasm.json +1 -1
  95. package/node_modules/@mrclrchtr/supi-tree-sitter/resources/grammars/sql/tree-sitter-sql.wasm.json +1 -1
  96. package/node_modules/@mrclrchtr/supi-tree-sitter/resources/grammars/tsx/tree-sitter-tsx.wasm.json +1 -1
  97. package/node_modules/@mrclrchtr/supi-tree-sitter/resources/grammars/typescript/tree-sitter-typescript.wasm.json +1 -1
  98. package/node_modules/@mrclrchtr/supi-tree-sitter/src/coordinates.ts +16 -2
  99. package/node_modules/@mrclrchtr/supi-tree-sitter/src/session/structural-worker-client.ts +4 -3
  100. package/node_modules/@mrclrchtr/supi-tree-sitter/src/syntax-errors.ts +2 -0
  101. package/node_modules/@mrclrchtr/supi-tree-sitter/src/tool/call-range.ts +94 -0
  102. package/node_modules/@mrclrchtr/supi-tree-sitter/src/tool/call-sites.ts +26 -6
  103. package/node_modules/@mrclrchtr/supi-tree-sitter/src/tool/callees.ts +6 -3
  104. package/node_modules/@mrclrchtr/supi-tree-sitter/src/tool/exports.ts +13 -4
  105. package/node_modules/@mrclrchtr/supi-tree-sitter/src/worker/runtime.ts +1 -9
  106. package/node_modules/fast-xml-parser/CHANGELOG.md +886 -0
  107. package/node_modules/fast-xml-parser/LICENSE +21 -0
  108. package/node_modules/fast-xml-parser/README.md +204 -0
  109. package/node_modules/fast-xml-parser/lib/fxbuilder.min.js +2 -0
  110. package/node_modules/fast-xml-parser/lib/fxbuilder.min.js.map +1 -0
  111. package/node_modules/fast-xml-parser/lib/fxp.cjs +1 -0
  112. package/node_modules/fast-xml-parser/lib/fxp.d.cts +774 -0
  113. package/node_modules/fast-xml-parser/lib/fxp.min.js +2 -0
  114. package/node_modules/fast-xml-parser/lib/fxp.min.js.map +1 -0
  115. package/node_modules/fast-xml-parser/lib/fxparser.min.js +2 -0
  116. package/node_modules/fast-xml-parser/lib/fxparser.min.js.map +1 -0
  117. package/node_modules/fast-xml-parser/lib/fxvalidator.min.js +2 -0
  118. package/node_modules/fast-xml-parser/lib/fxvalidator.min.js.map +1 -0
  119. package/node_modules/fast-xml-parser/node_modules/@nodable/entities/README.md +92 -0
  120. package/node_modules/fast-xml-parser/node_modules/@nodable/entities/package.json +57 -0
  121. package/node_modules/fast-xml-parser/node_modules/@nodable/entities/src/EntityDecoder.js +644 -0
  122. package/node_modules/fast-xml-parser/node_modules/@nodable/entities/src/EntityEncoder.js +239 -0
  123. package/node_modules/fast-xml-parser/node_modules/@nodable/entities/src/all-entities.js +53 -0
  124. package/node_modules/fast-xml-parser/node_modules/@nodable/entities/src/entities.js +1139 -0
  125. package/node_modules/fast-xml-parser/node_modules/@nodable/entities/src/entityTries.js +60 -0
  126. package/node_modules/fast-xml-parser/node_modules/@nodable/entities/src/index.d.ts +358 -0
  127. package/node_modules/fast-xml-parser/node_modules/@nodable/entities/src/index.js +29 -0
  128. package/node_modules/fast-xml-parser/node_modules/fast-xml-builder/CHANGELOG.md +52 -0
  129. package/node_modules/fast-xml-parser/node_modules/fast-xml-builder/LICENSE +21 -0
  130. package/node_modules/fast-xml-parser/node_modules/fast-xml-builder/README.md +77 -0
  131. package/node_modules/fast-xml-parser/node_modules/fast-xml-builder/lib/fxb.cjs +1 -0
  132. package/node_modules/fast-xml-parser/node_modules/fast-xml-builder/lib/fxb.d.cts +270 -0
  133. package/node_modules/fast-xml-parser/node_modules/fast-xml-builder/lib/fxb.min.js +2 -0
  134. package/node_modules/fast-xml-parser/node_modules/fast-xml-builder/lib/fxb.min.js.map +1 -0
  135. package/node_modules/fast-xml-parser/node_modules/fast-xml-builder/package.json +77 -0
  136. package/node_modules/fast-xml-parser/node_modules/fast-xml-builder/src/fxb.d.ts +270 -0
  137. package/node_modules/fast-xml-parser/node_modules/fast-xml-builder/src/fxb.js +609 -0
  138. package/node_modules/fast-xml-parser/node_modules/fast-xml-builder/src/ignoreAttributes.js +18 -0
  139. package/node_modules/fast-xml-parser/node_modules/fast-xml-builder/src/orderedJs2Xml.js +360 -0
  140. package/node_modules/fast-xml-parser/node_modules/fast-xml-builder/src/prettifyJs2Xml.js +0 -0
  141. package/node_modules/fast-xml-parser/node_modules/fast-xml-builder/src/util.js +23 -0
  142. package/node_modules/fast-xml-parser/node_modules/is-unsafe/LICENSE +21 -0
  143. package/node_modules/fast-xml-parser/node_modules/is-unsafe/README.md +632 -0
  144. package/node_modules/fast-xml-parser/node_modules/is-unsafe/package.json +56 -0
  145. package/node_modules/fast-xml-parser/node_modules/is-unsafe/src/contexts/html.js +102 -0
  146. package/node_modules/fast-xml-parser/node_modules/is-unsafe/src/contexts/log.js +98 -0
  147. package/node_modules/fast-xml-parser/node_modules/is-unsafe/src/contexts/nosql.js +114 -0
  148. package/node_modules/fast-xml-parser/node_modules/is-unsafe/src/contexts/redos.js +60 -0
  149. package/node_modules/fast-xml-parser/node_modules/is-unsafe/src/contexts/shell.js +105 -0
  150. package/node_modules/fast-xml-parser/node_modules/is-unsafe/src/contexts/sql-strict.js +47 -0
  151. package/node_modules/fast-xml-parser/node_modules/is-unsafe/src/contexts/sql.js +95 -0
  152. package/node_modules/fast-xml-parser/node_modules/is-unsafe/src/contexts/svg.js +81 -0
  153. package/node_modules/fast-xml-parser/node_modules/is-unsafe/src/contexts/xml.js +79 -0
  154. package/node_modules/fast-xml-parser/node_modules/is-unsafe/src/index.cjs +27 -0
  155. package/node_modules/fast-xml-parser/node_modules/is-unsafe/src/index.d.ts +103 -0
  156. package/node_modules/fast-xml-parser/node_modules/is-unsafe/src/index.js +292 -0
  157. package/node_modules/fast-xml-parser/node_modules/is-unsafe/src/util/decode-entities.js +48 -0
  158. package/node_modules/fast-xml-parser/node_modules/path-expression-matcher/LICENSE +21 -0
  159. package/node_modules/fast-xml-parser/node_modules/path-expression-matcher/README.md +947 -0
  160. package/node_modules/fast-xml-parser/node_modules/path-expression-matcher/lib/pem.cjs +1 -0
  161. package/node_modules/fast-xml-parser/node_modules/path-expression-matcher/lib/pem.d.cts +725 -0
  162. package/node_modules/fast-xml-parser/node_modules/path-expression-matcher/lib/pem.min.js +2 -0
  163. package/node_modules/fast-xml-parser/node_modules/path-expression-matcher/lib/pem.min.js.map +1 -0
  164. package/node_modules/fast-xml-parser/node_modules/path-expression-matcher/package.json +79 -0
  165. package/node_modules/fast-xml-parser/node_modules/path-expression-matcher/src/Expression.js +232 -0
  166. package/node_modules/fast-xml-parser/node_modules/path-expression-matcher/src/ExpressionSet.js +225 -0
  167. package/node_modules/fast-xml-parser/node_modules/path-expression-matcher/src/Matcher.js +663 -0
  168. package/node_modules/fast-xml-parser/node_modules/path-expression-matcher/src/index.d.ts +589 -0
  169. package/node_modules/fast-xml-parser/node_modules/path-expression-matcher/src/index.js +30 -0
  170. package/node_modules/fast-xml-parser/node_modules/strnum/CHANGELOG.md +63 -0
  171. package/node_modules/fast-xml-parser/node_modules/strnum/LICENSE +21 -0
  172. package/node_modules/fast-xml-parser/node_modules/strnum/README.md +113 -0
  173. package/node_modules/fast-xml-parser/node_modules/strnum/node_modules/anynum/LICENSE +21 -0
  174. package/node_modules/fast-xml-parser/node_modules/strnum/node_modules/anynum/README.md +142 -0
  175. package/node_modules/fast-xml-parser/node_modules/strnum/node_modules/anynum/anynum.js +135 -0
  176. package/node_modules/fast-xml-parser/node_modules/strnum/node_modules/anynum/digitTable.js +116 -0
  177. package/node_modules/fast-xml-parser/node_modules/strnum/node_modules/anynum/package.json +42 -0
  178. package/node_modules/fast-xml-parser/node_modules/strnum/package.json +36 -0
  179. package/node_modules/fast-xml-parser/node_modules/strnum/strnum.js +176 -0
  180. package/node_modules/fast-xml-parser/node_modules/xml-naming/LICENSE +21 -0
  181. package/node_modules/fast-xml-parser/node_modules/xml-naming/README.md +287 -0
  182. package/node_modules/fast-xml-parser/node_modules/xml-naming/package.json +56 -0
  183. package/node_modules/fast-xml-parser/node_modules/xml-naming/src/index.d.ts +108 -0
  184. package/node_modules/fast-xml-parser/node_modules/xml-naming/src/index.js +382 -0
  185. package/node_modules/fast-xml-parser/package.json +93 -0
  186. package/node_modules/fast-xml-parser/src/cli/cli.js +97 -0
  187. package/node_modules/fast-xml-parser/src/cli/man.js +17 -0
  188. package/node_modules/fast-xml-parser/src/cli/read.js +43 -0
  189. package/node_modules/fast-xml-parser/src/fxp.d.ts +754 -0
  190. package/node_modules/fast-xml-parser/src/fxp.js +14 -0
  191. package/node_modules/fast-xml-parser/src/ignoreAttributes.js +18 -0
  192. package/node_modules/fast-xml-parser/src/util.js +61 -0
  193. package/node_modules/fast-xml-parser/src/v6/CharsSymbol.js +16 -0
  194. package/node_modules/fast-xml-parser/src/v6/EntitiesParser.js +106 -0
  195. package/node_modules/fast-xml-parser/src/v6/OptionsBuilder.js +61 -0
  196. package/node_modules/fast-xml-parser/src/v6/OutputBuilders/BaseOutputBuilder.js +69 -0
  197. package/node_modules/fast-xml-parser/src/v6/OutputBuilders/JsArrBuilder.js +103 -0
  198. package/node_modules/fast-xml-parser/src/v6/OutputBuilders/JsMinArrBuilder.js +100 -0
  199. package/node_modules/fast-xml-parser/src/v6/OutputBuilders/JsObjBuilder.js +154 -0
  200. package/node_modules/fast-xml-parser/src/v6/OutputBuilders/ParserOptionsBuilder.js +94 -0
  201. package/node_modules/fast-xml-parser/src/v6/Report.js +0 -0
  202. package/node_modules/fast-xml-parser/src/v6/TagPath.js +81 -0
  203. package/node_modules/fast-xml-parser/src/v6/TagPathMatcher.js +13 -0
  204. package/node_modules/fast-xml-parser/src/v6/XMLParser.js +83 -0
  205. package/node_modules/fast-xml-parser/src/v6/Xml2JsParser.js +235 -0
  206. package/node_modules/fast-xml-parser/src/v6/XmlPartReader.js +210 -0
  207. package/node_modules/fast-xml-parser/src/v6/XmlSpecialTagsReader.js +111 -0
  208. package/node_modules/fast-xml-parser/src/v6/inputSource/BufferSource.js +116 -0
  209. package/node_modules/fast-xml-parser/src/v6/inputSource/StringSource.js +121 -0
  210. package/node_modules/fast-xml-parser/src/v6/valueParsers/EntitiesParser.js +105 -0
  211. package/node_modules/fast-xml-parser/src/v6/valueParsers/booleanParser.js +22 -0
  212. package/node_modules/fast-xml-parser/src/v6/valueParsers/booleanParserExt.js +19 -0
  213. package/node_modules/fast-xml-parser/src/v6/valueParsers/currency.js +38 -0
  214. package/node_modules/fast-xml-parser/src/v6/valueParsers/join.js +13 -0
  215. package/node_modules/fast-xml-parser/src/v6/valueParsers/number.js +14 -0
  216. package/node_modules/fast-xml-parser/src/v6/valueParsers/trim.js +6 -0
  217. package/node_modules/fast-xml-parser/src/validator.js +518 -0
  218. package/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js +6 -0
  219. package/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +426 -0
  220. package/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js +164 -0
  221. package/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +907 -0
  222. package/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js +77 -0
  223. package/node_modules/fast-xml-parser/src/xmlparser/node2json.js +177 -0
  224. package/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js +54 -0
  225. package/package.json +10 -8
  226. package/src/analysis/evidence.ts +331 -73
  227. package/src/analysis/health/diagnostics.ts +66 -18
  228. package/src/analysis/health/evidence-reason.ts +44 -0
  229. package/src/analysis/health/server-status.ts +41 -12
  230. package/src/analysis/search/pattern.ts +3 -3
  231. package/src/analysis/target/anchored-structural.ts +4 -1
  232. package/src/analysis/target/anchored.ts +3 -6
  233. package/src/analysis/target/symbol.ts +42 -48
  234. package/src/analysis/target/types.ts +4 -9
  235. package/src/analysis/workspace/cmake-parser.ts +207 -0
  236. package/src/analysis/workspace/cmake.ts +141 -0
  237. package/src/analysis/workspace/maven.ts +310 -0
  238. package/src/analysis/workspace/membership.ts +100 -26
  239. package/src/analysis/workspace/metadata.ts +6 -1
  240. package/src/analysis/workspace/observe.ts +6 -0
  241. package/src/analysis/workspace/types.ts +11 -3
  242. package/src/diagnostics/coverage.ts +49 -0
  243. package/src/diagnostics/evidence.ts +10 -2
  244. package/src/session/find-types.ts +8 -4
  245. package/src/session/find-workflow.ts +11 -16
  246. package/src/session/health-workflow.ts +6 -0
  247. package/src/session/input/common.ts +1 -1
  248. package/src/session/input/health-refactor.ts +48 -34
  249. package/src/session/input/workflows.ts +45 -46
  250. package/src/session/inspect/file-point.ts +2 -2
  251. package/src/session/inspect-types.ts +1 -1
  252. package/src/session/inspect-workflow.ts +3 -3
  253. package/src/session/orientation/collect.ts +42 -7
  254. package/src/session/orientation/context-facts.ts +3 -3
  255. package/src/session/orientation/context-sections.ts +13 -15
  256. package/src/session/orientation/facts.ts +5 -8
  257. package/src/session/orientation-workflow.ts +4 -19
  258. package/src/session/refactor-file-actions.ts +122 -0
  259. package/src/session/refactor-plan-pipeline.ts +152 -0
  260. package/src/session/refactor-plans.ts +18 -15
  261. package/src/session/refactor-types.ts +24 -12
  262. package/src/session/refactor-workflow.ts +68 -243
  263. package/src/session/target-workflow.ts +25 -18
  264. package/src/tool/code_find/execute.ts +6 -7
  265. package/src/tool/code_find/result.ts +5 -7
  266. package/src/tool/code_find/spec.ts +9 -16
  267. package/src/tool/code_find/tui.ts +12 -6
  268. package/src/tool/code_graph/display.ts +5 -6
  269. package/src/tool/code_graph/format.ts +8 -24
  270. package/src/tool/code_graph/result.ts +16 -75
  271. package/src/tool/code_graph/section.ts +21 -33
  272. package/src/tool/code_graph/spec.ts +6 -0
  273. package/src/tool/code_graph/tui.ts +10 -5
  274. package/src/tool/code_health/diagnostic-tui.ts +49 -0
  275. package/src/tool/code_health/guidance.ts +27 -0
  276. package/src/tool/code_health/markdown.ts +60 -8
  277. package/src/tool/code_health/result.ts +20 -9
  278. package/src/tool/code_health/spec.ts +6 -0
  279. package/src/tool/code_health/structured-schema.ts +18 -4
  280. package/src/tool/code_health/structured.ts +22 -18
  281. package/src/tool/code_health/tui.ts +33 -40
  282. package/src/tool/code_inspect/execute.ts +1 -1
  283. package/src/tool/code_inspect/markdown.ts +33 -6
  284. package/src/tool/code_inspect/result.ts +24 -19
  285. package/src/tool/code_inspect/spec.ts +14 -6
  286. package/src/tool/code_inspect/structured.ts +4 -21
  287. package/src/tool/code_inspect/tui.ts +2 -2
  288. package/src/tool/code_orientation/result.ts +53 -100
  289. package/src/tool/code_orientation/spec.ts +8 -0
  290. package/src/tool/code_orientation/structured-schema.ts +16 -12
  291. package/src/tool/code_orientation/structured-workspace.ts +13 -7
  292. package/src/tool/code_orientation/structured.ts +31 -39
  293. package/src/tool/code_orientation/workspace-format.ts +4 -10
  294. package/src/tool/code_orientation/workspace-instructions.ts +4 -5
  295. package/src/tool/code_orientation/workspace-observations.ts +2 -2
  296. package/src/tool/code_orientation/workspace-output.ts +16 -7
  297. package/src/tool/code_orientation/workspace-projects.ts +7 -10
  298. package/src/tool/code_orientation/workspace-sections.ts +13 -19
  299. package/src/tool/code_refactor_apply/result.ts +2 -1
  300. package/src/tool/code_refactor_apply/spec.ts +7 -0
  301. package/src/tool/code_refactor_plan/execute.ts +0 -2
  302. package/src/tool/code_refactor_plan/result.ts +23 -13
  303. package/src/tool/code_refactor_plan/spec.ts +8 -2
  304. package/src/tool/code_refactor_plan/structured.ts +59 -12
  305. package/src/tool/code_refactor_plan/tui.ts +14 -17
  306. package/src/tool/code_resolve/markdown.ts +5 -47
  307. package/src/tool/code_resolve/result.ts +43 -72
  308. package/src/tool/code_resolve/spec.ts +6 -0
  309. package/src/tool/infra/truncate.ts +2 -16
  310. package/src/tool/namespace.ts +14 -0
  311. package/src/tool/refactor-markdown.ts +55 -15
  312. package/src/tool/register.ts +3 -0
  313. package/src/tool/result/candidate-selection.ts +141 -0
  314. package/src/tool/result/display.ts +41 -45
  315. package/src/tool/result/errors.ts +1 -0
  316. package/src/tool/result/model-budget.ts +26 -1
  317. package/src/tool/result/refactor-preview.ts +118 -0
  318. package/src/tool/result/refactor-unavailable.ts +16 -0
  319. package/src/tool/result/refactor.ts +19 -10
  320. package/src/tool/result/structured.ts +2 -1
  321. package/src/tool/result/types.ts +9 -8
  322. package/src/tool/schemas.ts +76 -38
  323. package/src/tool/specs.ts +3 -0
  324. package/src/ui/footer.ts +2 -4
  325. package/src/ui/status-overlay.ts +1 -1
  326. package/src/ui/status-presentation.ts +4 -7
  327. package/src/ui/tui/candidate-selection.ts +40 -95
  328. package/src/ui/tui/common.ts +16 -70
  329. package/src/ui/tui/display.ts +6 -24
  330. package/src/tool/result/candidate-row.ts +0 -49
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrclrchtr/supi-tree-sitter",
3
- "version": "11.4.0",
3
+ "version": "13.0.0",
4
4
  "description": "Structural AST analysis for SuPi code intelligence",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -34,10 +34,10 @@
34
34
  "!__tests__"
35
35
  ],
36
36
  "dependencies": {
37
- "jiti": "^2.7.0",
38
- "web-tree-sitter": "^0.27.0",
39
- "@mrclrchtr/supi-code-runtime": "11.4.0",
40
- "@mrclrchtr/supi-core": "11.4.0"
37
+ "jiti": "2.7.0",
38
+ "web-tree-sitter": "0.27.2",
39
+ "@mrclrchtr/supi-code-runtime": "13.0.0",
40
+ "@mrclrchtr/supi-core": "13.0.0"
41
41
  },
42
42
  "bundledDependencies": [
43
43
  "@mrclrchtr/supi-code-runtime",
@@ -6,7 +6,7 @@
6
6
  "releaseAsset": "https://github.com/fwcd/tree-sitter-kotlin/releases/download/0.3.8/tree-sitter-kotlin.wasm"
7
7
  },
8
8
  "generatedWith": {
9
- "treeSitterCli": "0.27.1"
9
+ "treeSitterCli": "0.27.2"
10
10
  },
11
11
  "sha256": "7f522f2e3ef633735b3e2bdea165071b5ad0a99d6201e84acab49017590f812a"
12
12
  }
@@ -5,7 +5,7 @@
5
5
  "repository": "https://github.com/latex-lsp/tree-sitter-latex"
6
6
  },
7
7
  "generatedWith": {
8
- "treeSitterCli": "0.27.1"
8
+ "treeSitterCli": "0.27.2"
9
9
  },
10
10
  "patches": [
11
11
  {
@@ -5,7 +5,7 @@
5
5
  "repository": "https://github.com/derekstride/tree-sitter-sql"
6
6
  },
7
7
  "generatedWith": {
8
- "treeSitterCli": "0.27.1"
8
+ "treeSitterCli": "0.27.2"
9
9
  },
10
10
  "sha256": "e03fb5079e88cfe0807056c284fd2b0589cee35df9bbb3d07e72f2f4178de8de",
11
11
  "trust": {
@@ -8,7 +8,7 @@
8
8
  }
9
9
  },
10
10
  "generatedWith": {
11
- "treeSitterCli": "0.27.1"
11
+ "treeSitterCli": "0.27.2"
12
12
  },
13
13
  "patches": [
14
14
  {
@@ -8,7 +8,7 @@
8
8
  }
9
9
  },
10
10
  "generatedWith": {
11
- "treeSitterCli": "0.27.1"
11
+ "treeSitterCli": "0.27.2"
12
12
  },
13
13
  "patches": [
14
14
  {
@@ -100,7 +100,21 @@ export function validatePublicPositionBounds(
100
100
  return null;
101
101
  }
102
102
 
103
- /** Split source into logical lines without CRLF line-ending bytes. */
103
+ /**
104
+ * Split source into Tree-sitter rows, dropping the `\r` of CRLF endings.
105
+ * Tree-sitter rows break only on `\n`, so a lone `\r` is not a line break here.
106
+ * LSP treats a lone `\r` as a line break, so structural lines after one differ from LSP lines.
107
+ */
104
108
  export function splitSourceLines(source: string): string[] {
105
- return source.replace(/\r\n?/g, "\n").split("\n");
109
+ if (lastSplit?.source === source) return lastSplit.lines;
110
+ const lines = source.split(/\r?\n/);
111
+ lastSplit = { source, lines };
112
+ return lines;
106
113
  }
114
+
115
+ /**
116
+ * Single-entry cache: range conversion calls this once per node on the same
117
+ * source, so re-splitting each time made extraction quadratic in file size.
118
+ * Callers must not mutate the returned array.
119
+ */
120
+ let lastSplit: { source: string; lines: string[] } | undefined;
@@ -331,8 +331,9 @@ export class StructuralWorkerClient {
331
331
  try {
332
332
  throwIfCodeRequestInterrupted(active.control);
333
333
  } catch (error) {
334
+ // Keep the chunk handshake alive so the Worker can send its terminal message
335
+ // instead of waiting for the hard stop.
334
336
  this.#interrupt(active, error);
335
- return;
336
337
  }
337
338
  active.chunks.push(Uint8Array.from(message.payload));
338
339
  active.nextSequence += 1;
@@ -433,7 +434,7 @@ export class StructuralWorkerClient {
433
434
  return;
434
435
  }
435
436
  const worker = this.#worker;
436
- if (this.#active !== request || !worker) return;
437
+ if (this.#active !== request || !worker || request.hardStopTimer) return;
437
438
  Atomics.store(request.cancellationFlag, 0, 1);
438
439
  if (
439
440
  !this.#send(worker, {
@@ -494,7 +495,7 @@ export class StructuralWorkerClient {
494
495
  {
495
496
  operationId: request.control?.operationId,
496
497
  source: "tree-sitter",
497
- level: "debug",
498
+ level: outcome === "failed" ? "warning" : "info",
498
499
  category: "structural.worker.restart.timing",
499
500
  message: `Structural Worker restart ${outcome}`,
500
501
  data: { outcome, cacheReset: true },
@@ -4,7 +4,9 @@ import type { GrammarId, SourceRange } from "./types.ts";
4
4
 
5
5
  /** Return whether a parsed tree contains an explicit or recovered syntax error. */
6
6
  export function hasSyntaxErrors(root: SyntaxNodeLike): boolean {
7
+ // web-tree-sitter's hasError already covers ERROR and missing descendants.
7
8
  if (root.hasError === true) return true;
9
+ if (root.hasError === false) return false;
8
10
  if (root.type === "ERROR" || root.isMissing === true) return true;
9
11
  return (root.children ?? []).some(hasSyntaxErrors);
10
12
  }
@@ -0,0 +1,94 @@
1
+ // Callee ranges for grammars whose call queries capture the whole call node.
2
+
3
+ import { tsPointToPublic } from "../coordinates.ts";
4
+ import type { SyntaxNodeLike } from "../syntax-node.ts";
5
+ import type { GrammarId, SourceRange } from "../types.ts";
6
+
7
+ /**
8
+ * Return the callee range for a whole-call capture, so call-site ranges cover the
9
+ * callee expression in every grammar (`a.b` in `a.b(1)`), as JS/TS, Python, Go,
10
+ * and Rust queries capture directly. Returns `null` when the capture already is
11
+ * the callee or no narrower callee exists.
12
+ */
13
+ export function calleeRangeForCallNode(
14
+ node: SyntaxNodeLike,
15
+ grammarId: GrammarId,
16
+ source: string,
17
+ ): SourceRange | null {
18
+ const end = calleeEnd(node, grammarId);
19
+ if (!end) return null;
20
+ const start = tsPointToPublic(node.startPosition, source);
21
+ const publicEnd = tsPointToPublic(end, source);
22
+ return {
23
+ startLine: start.line,
24
+ startCharacter: start.character,
25
+ endLine: publicEnd.line,
26
+ endCharacter: publicEnd.character,
27
+ };
28
+ }
29
+
30
+ /**
31
+ * Find the syntax node for one query capture by walking up from the leaf at its start.
32
+ * Returns `null` when no ancestor has the capture's type and range.
33
+ */
34
+ export function findCaptureNode(
35
+ root: SyntaxNodeLike & {
36
+ descendantForPosition(point: { row: number; column: number }): SyntaxNodeLike | null;
37
+ },
38
+ capture: { nodeType: string; range: SourceRange },
39
+ ): SyntaxNodeLike | null {
40
+ const { range } = capture;
41
+ let node = root.descendantForPosition({
42
+ row: range.startLine - 1,
43
+ column: range.startCharacter - 1,
44
+ });
45
+ while (node) {
46
+ if (
47
+ node.type === capture.nodeType &&
48
+ node.startPosition.row === range.startLine - 1 &&
49
+ node.startPosition.column === range.startCharacter - 1 &&
50
+ node.endPosition.row === range.endLine - 1 &&
51
+ node.endPosition.column === range.endCharacter - 1
52
+ ) {
53
+ return node;
54
+ }
55
+ node = node.parent;
56
+ }
57
+ return null;
58
+ }
59
+
60
+ function calleeEnd(
61
+ node: SyntaxNodeLike,
62
+ grammarId: GrammarId,
63
+ ): { row: number; column: number } | null {
64
+ switch (grammarId) {
65
+ case "java":
66
+ return node.type === "method_invocation"
67
+ ? (node.childForFieldName("name")?.endPosition ?? null)
68
+ : null;
69
+ case "kotlin":
70
+ return node.type === "call_expression" ? (kotlinCallee(node)?.endPosition ?? null) : null;
71
+ case "ruby":
72
+ return node.type === "call"
73
+ ? ((node.childForFieldName("method") ?? node.childForFieldName("receiver"))?.endPosition ??
74
+ null)
75
+ : null;
76
+ default:
77
+ return null;
78
+ }
79
+ }
80
+
81
+ /**
82
+ * Kotlin nests `f(x) { }` as an outer call (lambda-only suffix) wrapping `f(x)`.
83
+ * Treat both as one call so they share the callee `f`; `f(1)(2)` keeps `f(1)` as
84
+ * the outer callee because its suffix has value arguments.
85
+ */
86
+ function kotlinCallee(node: SyntaxNodeLike): SyntaxNodeLike | null {
87
+ const callee = node.children[0];
88
+ if (!callee) return null;
89
+ const suffix = node.children.find((child) => child.type === "call_suffix");
90
+ const lambdaOnly =
91
+ suffix !== undefined && !suffix.children.some((child) => child.type === "value_arguments");
92
+ if (callee.type === "call_expression" && lambdaOnly) return kotlinCallee(callee);
93
+ return callee;
94
+ }
@@ -1,10 +1,17 @@
1
1
  /** File-wide call-site extraction using per-grammar tree-sitter queries. */
2
2
 
3
3
  import type { CodeRequestControl } from "@mrclrchtr/supi-code-runtime/api";
4
- import type { CallSiteMatch, GrammarId, TreeSitterResult } from "../types.ts";
4
+ import type {
5
+ CallSiteMatch,
6
+ GrammarId,
7
+ QueryCapture,
8
+ SourceRange,
9
+ TreeSitterResult,
10
+ } from "../types.ts";
5
11
  import { isTypeOnlyImportCapture } from "../worker/call-context.ts";
6
12
  import { queryParsedFile, type TreeSitterRuntime } from "../worker/runtime.ts";
7
13
  import { normalizeCallName } from "./call-name.ts";
14
+ import { calleeRangeForCallNode, findCaptureNode } from "./call-range.ts";
8
15
 
9
16
  // ── Per-grammar call-site queries ─────────────────────────────────────
10
17
 
@@ -90,17 +97,19 @@ export async function extractCallSites(
90
97
  const name = normalizeCallName(capture.text, grammarId, capture.nodeType);
91
98
  if (name.length === 0) continue;
92
99
 
100
+ const range = callSiteRange(tree.rootNode, capture, grammarId, source);
101
+
93
102
  // Collapse duplicate captures only when they identify the same source range.
94
- const key = `${capture.range.startLine}:${capture.range.startCharacter}:${capture.range.endLine}:${capture.range.endCharacter}`;
103
+ const key = `${range.startLine}:${range.startCharacter}:${range.endLine}:${range.endCharacter}`;
95
104
  if (seen.has(key)) continue;
96
105
  seen.add(key);
97
106
 
98
107
  matches.push({
99
108
  name,
100
- startLine: capture.range.startLine,
101
- startCharacter: capture.range.startCharacter,
102
- endLine: capture.range.endLine,
103
- endCharacter: capture.range.endCharacter,
109
+ startLine: range.startLine,
110
+ startCharacter: range.startCharacter,
111
+ endLine: range.endLine,
112
+ endCharacter: range.endCharacter,
104
113
  });
105
114
  }
106
115
 
@@ -111,3 +120,14 @@ export async function extractCallSites(
111
120
  tree.delete();
112
121
  }
113
122
  }
123
+
124
+ /** Narrow whole-call captures to their callee so ranges match the other grammars. */
125
+ function callSiteRange(
126
+ root: Parameters<typeof findCaptureNode>[0],
127
+ capture: QueryCapture,
128
+ grammarId: GrammarId,
129
+ source: string,
130
+ ): SourceRange {
131
+ const node = findCaptureNode(root, capture);
132
+ return (node && calleeRangeForCallNode(node, grammarId, source)) ?? capture.range;
133
+ }
@@ -9,6 +9,7 @@ import type { GrammarId, SourceRange, TreeSitterResult } from "../types.ts";
9
9
  import { isTypeOnlyImportCapture } from "../worker/call-context.ts";
10
10
  import { queryParsedFile, type TreeSitterRuntime } from "../worker/runtime.ts";
11
11
  import { normalizeCallName } from "./call-name.ts";
12
+ import { calleeRangeForCallNode } from "./call-range.ts";
12
13
  import { createCalleeDisplayName, createSourceLineStarts } from "./callee-display-name.ts";
13
14
  import { extractScopeName } from "./scope.ts";
14
15
 
@@ -387,11 +388,13 @@ function filterCalleeCaptures(
387
388
 
388
389
  if (isTypeOnlyImportCapture(enclosingNode, capture, grammarId)) continue;
389
390
  const name = normalizeCallName(capture.text, grammarId, capture.nodeType);
390
- const rangeKey = sourceRangeKey(capture.range);
391
+ const syntaxNode = syntaxNodes.get(captureNodeKey(capture));
392
+ const range =
393
+ (syntaxNode && calleeRangeForCallNode(syntaxNode, grammarId, source)) ?? capture.range;
394
+ const rangeKey = sourceRangeKey(range);
391
395
  if (name.length === 0 || seenRanges.has(rangeKey)) continue;
392
396
  seenRanges.add(rangeKey);
393
397
 
394
- const syntaxNode = syntaxNodes.get(captureNodeKey(capture));
395
398
  const displayName = syntaxNode
396
399
  ? createCalleeDisplayName({
397
400
  node: syntaxNode,
@@ -404,7 +407,7 @@ function filterCalleeCaptures(
404
407
  callees.push({
405
408
  name,
406
409
  ...(displayName === undefined ? {} : { displayName }),
407
- range: capture.range,
410
+ range,
408
411
  });
409
412
  }
410
413
 
@@ -91,9 +91,11 @@ const DECLARATION_EXPORT_NODE_TYPES = new Set([
91
91
  "type_alias_declaration",
92
92
  "enum_declaration",
93
93
  "lexical_declaration",
94
+ "variable_declaration",
94
95
  "ambient_declaration",
95
96
  "internal_module",
96
97
  "module",
98
+ "import_alias",
97
99
  ]);
98
100
 
99
101
  function extractDeclarationExport(
@@ -101,7 +103,7 @@ function extractDeclarationExport(
101
103
  source: string,
102
104
  exports: ExportRecord[],
103
105
  ): void {
104
- if (decl.type === "lexical_declaration") {
106
+ if (decl.type === "lexical_declaration" || decl.type === "variable_declaration") {
105
107
  extractLexicalDeclarationExports(decl, source, exports);
106
108
  return;
107
109
  }
@@ -111,7 +113,11 @@ function extractDeclarationExport(
111
113
  return;
112
114
  }
113
115
 
114
- const name = getDeclarationName(decl);
116
+ // `export import X = Y.Z` exports the alias `X`, which may name a value, type, or namespace.
117
+ const name =
118
+ decl.type === "import_alias"
119
+ ? (decl.children.find((child) => child.type === "identifier")?.text ?? null)
120
+ : getDeclarationName(decl);
115
121
  if (!name) return;
116
122
 
117
123
  exports.push({
@@ -143,7 +149,7 @@ function extractAmbientDeclarationExport(
143
149
  const nested = decl.children.find((child) => child.type !== "declare" && child.type !== ";");
144
150
  if (!nested) return;
145
151
 
146
- if (nested.type === "lexical_declaration") {
152
+ if (nested.type === "lexical_declaration" || nested.type === "variable_declaration") {
147
153
  extractLexicalDeclarationExports(nested, source, exports);
148
154
  return;
149
155
  }
@@ -177,6 +183,8 @@ function exportKindForDeclaration(type: string): string {
177
183
  case "internal_module":
178
184
  case "module":
179
185
  return "namespace";
186
+ case "import_alias":
187
+ return "alias";
180
188
  default:
181
189
  return type.replace(/_declaration$/, "");
182
190
  }
@@ -217,8 +225,9 @@ function extractDefaultExport(node: SyntaxNodeLike, source: string, exports: Exp
217
225
  });
218
226
  }
219
227
 
228
+ /** Return the `from "module"` specifier; a string value such as `export default "x"` is not one. */
220
229
  function findStringChild(node: SyntaxNodeLike): SyntaxNodeLike | undefined {
221
- return node.children.find((child) => child.type === "string");
230
+ return node.childForFieldName("source") ?? undefined;
222
231
  }
223
232
 
224
233
  function extractReExport(
@@ -13,11 +13,7 @@ import {
13
13
  type StructuralTimingEvent,
14
14
  startStructuralTiming,
15
15
  } from "../session/structural-timing.ts";
16
- import {
17
- collectSyntaxErrorRanges,
18
- hasSyntaxErrors,
19
- withSyntaxCompleteness,
20
- } from "../syntax-errors.ts";
16
+ import { withSyntaxCompleteness } from "../syntax-errors.ts";
21
17
  import type { GrammarId, QueryCapture, TreeSitterResult } from "../types.ts";
22
18
  import {
23
19
  ParsedFileReadError,
@@ -172,8 +168,6 @@ export class TreeSitterRuntime {
172
168
  source: string;
173
169
  resolvedPath: string;
174
170
  grammarId: GrammarId;
175
- hasSyntaxErrors: boolean;
176
- errorRanges: ReturnType<typeof collectSyntaxErrorRanges>;
177
171
  };
178
172
  }
179
173
  | Exclude<TreeSitterResult<never>, { kind: "success" | "partial" }>
@@ -249,8 +243,6 @@ export class TreeSitterRuntime {
249
243
  source: parsed.source,
250
244
  resolvedPath: parsed.resolvedPath,
251
245
  grammarId: parsed.grammarId,
252
- hasSyntaxErrors: hasSyntaxErrors(parsed.tree.rootNode),
253
- errorRanges: collectSyntaxErrorRanges(parsed.tree.rootNode, parsed.source),
254
246
  },
255
247
  };
256
248
  } catch (err: unknown) {