@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.
Files changed (307) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/README.md +7 -5
  3. package/node_modules/@mrclrchtr/supi-code-runtime/package.json +1 -1
  4. package/node_modules/@mrclrchtr/supi-code-runtime/src/query-result.ts +10 -0
  5. package/node_modules/@mrclrchtr/supi-core/package.json +3 -1
  6. package/node_modules/@mrclrchtr/supi-core/src/api.ts +4 -0
  7. package/node_modules/@mrclrchtr/supi-core/src/context/context-tag.ts +1 -1
  8. package/node_modules/@mrclrchtr/supi-core/src/debug-registry.ts +78 -13
  9. package/node_modules/@mrclrchtr/supi-core/src/footer-registry.ts +41 -9
  10. package/node_modules/@mrclrchtr/supi-core/src/retired-packages.ts +152 -0
  11. package/node_modules/@mrclrchtr/supi-core/src/session.ts +3 -0
  12. package/node_modules/@mrclrchtr/supi-core/src/shell-hints.ts +46 -0
  13. package/node_modules/@mrclrchtr/supi-core/src/side-run.ts +46 -0
  14. package/node_modules/@mrclrchtr/supi-core/src/spill.ts +93 -0
  15. package/node_modules/@mrclrchtr/supi-lsp/README.md +6 -2
  16. package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-code-runtime/package.json +1 -1
  17. package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-code-runtime/src/query-result.ts +10 -0
  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 +78 -13
  22. package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-core/src/footer-registry.ts +41 -9
  23. package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-core/src/retired-packages.ts +152 -0
  24. package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-core/src/session.ts +3 -0
  25. package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-core/src/shell-hints.ts +46 -0
  26. package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-core/src/side-run.ts +46 -0
  27. package/node_modules/@mrclrchtr/supi-lsp/node_modules/@mrclrchtr/supi-core/src/spill.ts +93 -0
  28. package/node_modules/@mrclrchtr/supi-lsp/package.json +8 -8
  29. package/node_modules/@mrclrchtr/supi-lsp/src/api.ts +1 -0
  30. package/node_modules/@mrclrchtr/supi-lsp/src/client/client-diagnostic-cache.ts +102 -47
  31. package/node_modules/@mrclrchtr/supi-lsp/src/client/client-diagnostic-host.ts +8 -0
  32. package/node_modules/@mrclrchtr/supi-lsp/src/client/client-diagnostic-refresh.ts +20 -1
  33. package/node_modules/@mrclrchtr/supi-lsp/src/client/client-diagnostic-request.ts +4 -1
  34. package/node_modules/@mrclrchtr/supi-lsp/src/client/client-diagnostic-timing.ts +14 -1
  35. package/node_modules/@mrclrchtr/supi-lsp/src/client/client-diagnostic-typescript.ts +8 -1
  36. package/node_modules/@mrclrchtr/supi-lsp/src/client/client-diagnostics.ts +50 -4
  37. package/node_modules/@mrclrchtr/supi-lsp/src/client/client-disk-stamp.ts +60 -0
  38. package/node_modules/@mrclrchtr/supi-lsp/src/client/client-document-state.ts +3 -0
  39. package/node_modules/@mrclrchtr/supi-lsp/src/client/client-document-sync.ts +21 -1
  40. package/node_modules/@mrclrchtr/supi-lsp/src/client/client-file-state.ts +17 -3
  41. package/node_modules/@mrclrchtr/supi-lsp/src/client/client-input-admission.ts +7 -1
  42. package/node_modules/@mrclrchtr/supi-lsp/src/client/client-semantic-input-barrier.ts +53 -4
  43. package/node_modules/@mrclrchtr/supi-lsp/src/client/client.ts +12 -3
  44. package/node_modules/@mrclrchtr/supi-lsp/src/client/transport.ts +24 -8
  45. package/node_modules/@mrclrchtr/supi-lsp/src/config/server-config.ts +5 -0
  46. package/node_modules/@mrclrchtr/supi-lsp/src/config/tsconfig-extends.ts +2 -1
  47. package/node_modules/@mrclrchtr/supi-lsp/src/config/tsconfig-path.ts +2 -2
  48. package/node_modules/@mrclrchtr/supi-lsp/src/config/tsconfig-scope.ts +17 -5
  49. package/node_modules/@mrclrchtr/supi-lsp/src/config/typescript-module.ts +17 -0
  50. package/node_modules/@mrclrchtr/supi-lsp/src/debug-telemetry.ts +64 -0
  51. package/node_modules/@mrclrchtr/supi-lsp/src/diagnostics/evidence.ts +42 -0
  52. package/node_modules/@mrclrchtr/supi-lsp/src/manager/manager-client-state.ts +2 -17
  53. package/node_modules/@mrclrchtr/supi-lsp/src/manager/manager-project-info.ts +3 -0
  54. package/node_modules/@mrclrchtr/supi-lsp/src/manager/manager-removal-ledger.ts +52 -0
  55. package/node_modules/@mrclrchtr/supi-lsp/src/manager/manager-typescript-coverage.ts +27 -2
  56. package/node_modules/@mrclrchtr/supi-lsp/src/manager/manager-workspace-symbol.ts +16 -112
  57. package/node_modules/@mrclrchtr/supi-lsp/src/manager/manager.ts +561 -103
  58. package/node_modules/@mrclrchtr/supi-lsp/src/manager/typescript-file-local.ts +6 -1
  59. package/node_modules/@mrclrchtr/supi-lsp/src/manager/workspace-symbol-collection.ts +163 -0
  60. package/node_modules/@mrclrchtr/supi-lsp/src/manager/workspace-symbol-row-limit.ts +72 -0
  61. package/node_modules/@mrclrchtr/supi-lsp/src/provider/lsp-semantic-provider.ts +6 -1
  62. package/node_modules/@mrclrchtr/supi-lsp/src/provider/semantic-symbol-mapper.ts +13 -3
  63. package/node_modules/@mrclrchtr/supi-lsp/src/session/runtime-controller.ts +11 -0
  64. package/node_modules/@mrclrchtr/supi-lsp/src/session/runtime-diagnostic-surface.ts +11 -0
  65. package/node_modules/@mrclrchtr/supi-lsp/src/session/runtime-diagnostics.ts +1 -0
  66. package/node_modules/@mrclrchtr/supi-lsp/src/session/runtime-registry.ts +53 -9
  67. package/node_modules/@mrclrchtr/supi-lsp/src/session/runtime-transition-debug.ts +11 -1
  68. package/node_modules/@mrclrchtr/supi-lsp/src/session/workspace-lsp-runtime.ts +2 -0
  69. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-code-runtime/package.json +1 -1
  70. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-code-runtime/src/query-result.ts +10 -0
  71. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-core/package.json +3 -1
  72. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-core/src/api.ts +4 -0
  73. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-core/src/context/context-tag.ts +1 -1
  74. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-core/src/debug-registry.ts +78 -13
  75. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-core/src/footer-registry.ts +41 -9
  76. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-core/src/retired-packages.ts +152 -0
  77. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-core/src/session.ts +3 -0
  78. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-core/src/shell-hints.ts +46 -0
  79. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-core/src/side-run.ts +46 -0
  80. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/@mrclrchtr/supi-core/src/spill.ts +93 -0
  81. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/web-tree-sitter/debug/web-tree-sitter.cjs +50 -75
  82. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/web-tree-sitter/debug/web-tree-sitter.cjs.map +2 -2
  83. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/web-tree-sitter/debug/web-tree-sitter.js +50 -75
  84. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/web-tree-sitter/debug/web-tree-sitter.js.map +2 -2
  85. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/web-tree-sitter/debug/web-tree-sitter.wasm +0 -0
  86. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/web-tree-sitter/debug/web-tree-sitter.wasm.map +6 -6
  87. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/web-tree-sitter/package.json +1 -1
  88. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/web-tree-sitter/web-tree-sitter.cjs +50 -75
  89. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/web-tree-sitter/web-tree-sitter.cjs.map +2 -2
  90. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/web-tree-sitter/web-tree-sitter.d.cts +7 -7
  91. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/web-tree-sitter/web-tree-sitter.d.cts.map +1 -1
  92. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/web-tree-sitter/web-tree-sitter.d.ts +7 -7
  93. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/web-tree-sitter/web-tree-sitter.d.ts.map +1 -1
  94. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/web-tree-sitter/web-tree-sitter.js +50 -75
  95. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/web-tree-sitter/web-tree-sitter.js.map +2 -2
  96. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/web-tree-sitter/web-tree-sitter.wasm +0 -0
  97. package/node_modules/@mrclrchtr/supi-tree-sitter/node_modules/web-tree-sitter/web-tree-sitter.wasm.map +5 -5
  98. package/node_modules/@mrclrchtr/supi-tree-sitter/package.json +5 -5
  99. package/node_modules/@mrclrchtr/supi-tree-sitter/resources/grammars/kotlin/tree-sitter-kotlin.wasm.json +1 -1
  100. package/node_modules/@mrclrchtr/supi-tree-sitter/resources/grammars/latex/tree-sitter-latex.wasm.json +1 -1
  101. package/node_modules/@mrclrchtr/supi-tree-sitter/resources/grammars/sql/tree-sitter-sql.wasm +0 -0
  102. package/node_modules/@mrclrchtr/supi-tree-sitter/resources/grammars/sql/tree-sitter-sql.wasm.json +3 -3
  103. package/node_modules/@mrclrchtr/supi-tree-sitter/resources/grammars/tsx/tree-sitter-tsx.wasm.json +1 -1
  104. package/node_modules/@mrclrchtr/supi-tree-sitter/resources/grammars/typescript/tree-sitter-typescript.wasm.json +1 -1
  105. package/node_modules/@mrclrchtr/supi-tree-sitter/src/session/structural-worker-client.ts +1 -1
  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 +32 -9
  230. package/src/analysis/health/signals.ts +1 -0
  231. package/src/analysis/instruction-files.ts +11 -7
  232. package/src/analysis/search/exclusions.ts +18 -4
  233. package/src/analysis/search/pattern.ts +3 -3
  234. package/src/analysis/target/anchored.ts +3 -6
  235. package/src/analysis/target/file-outline-omissions.ts +17 -2
  236. package/src/analysis/target/symbol-selection.ts +100 -0
  237. package/src/analysis/target/symbol.ts +83 -49
  238. package/src/analysis/target/types.ts +12 -10
  239. package/src/analysis/workspace/cmake-parser.ts +207 -0
  240. package/src/analysis/workspace/cmake.ts +141 -0
  241. package/src/analysis/workspace/maven.ts +310 -0
  242. package/src/analysis/workspace/membership.ts +100 -26
  243. package/src/analysis/workspace/metadata.ts +6 -1
  244. package/src/analysis/workspace/observe.ts +6 -0
  245. package/src/analysis/workspace/types.ts +11 -3
  246. package/src/app/app.ts +37 -21
  247. package/src/diagnostics/coverage.ts +49 -0
  248. package/src/diagnostics/evidence.ts +10 -2
  249. package/src/extension.ts +1 -2
  250. package/src/headless.ts +4 -2
  251. package/src/session/health-types.ts +2 -0
  252. package/src/session/health-workflow.ts +6 -0
  253. package/src/session/input/common.ts +1 -1
  254. package/src/session/orientation/collect.ts +42 -7
  255. package/src/session/orientation/context-facts.ts +3 -3
  256. package/src/session/orientation/context-sections.ts +13 -15
  257. package/src/session/orientation/facts.ts +5 -8
  258. package/src/session/orientation-types.ts +5 -0
  259. package/src/session/orientation-workflow.ts +12 -17
  260. package/src/session/target-workflow.ts +38 -25
  261. package/src/tool/code_find/render.ts +10 -11
  262. package/src/tool/code_find/result.ts +11 -8
  263. package/src/tool/code_graph/display.ts +5 -6
  264. package/src/tool/code_graph/format.ts +8 -24
  265. package/src/tool/code_graph/result.ts +16 -75
  266. package/src/tool/code_graph/section.ts +21 -33
  267. package/src/tool/code_graph/structured.ts +3 -0
  268. package/src/tool/code_graph/tui.ts +10 -5
  269. package/src/tool/code_health/diagnostic-tui.ts +49 -0
  270. package/src/tool/code_health/guidance.ts +27 -0
  271. package/src/tool/code_health/markdown.ts +63 -9
  272. package/src/tool/code_health/result.ts +20 -9
  273. package/src/tool/code_health/structured-schema.ts +15 -0
  274. package/src/tool/code_health/structured.ts +9 -1
  275. package/src/tool/code_health/tui.ts +33 -40
  276. package/src/tool/code_inspect/result.ts +23 -18
  277. package/src/tool/code_inspect/structured.ts +2 -19
  278. package/src/tool/code_orientation/markdown.ts +6 -1
  279. package/src/tool/code_orientation/result.ts +53 -100
  280. package/src/tool/code_orientation/structured-schema.ts +16 -12
  281. package/src/tool/code_orientation/structured-workspace.ts +13 -7
  282. package/src/tool/code_orientation/structured.ts +31 -39
  283. package/src/tool/code_orientation/workspace-format.ts +4 -10
  284. package/src/tool/code_orientation/workspace-instructions.ts +4 -5
  285. package/src/tool/code_orientation/workspace-observations.ts +2 -2
  286. package/src/tool/code_orientation/workspace-output.ts +16 -7
  287. package/src/tool/code_orientation/workspace-projects.ts +7 -10
  288. package/src/tool/code_orientation/workspace-sections.ts +13 -19
  289. package/src/tool/code_resolve/markdown.ts +4 -46
  290. package/src/tool/code_resolve/result.ts +45 -73
  291. package/src/tool/code_resolve/structured.ts +6 -1
  292. package/src/tool/infra/truncate.ts +2 -16
  293. package/src/tool/result/candidate-selection.ts +157 -0
  294. package/src/tool/result/display.ts +41 -45
  295. package/src/tool/result/errors.ts +1 -0
  296. package/src/tool/result/model-budget.ts +26 -1
  297. package/src/tool/result/refactor.ts +11 -8
  298. package/src/tool/result/structured.ts +2 -1
  299. package/src/tool/result/types.ts +9 -8
  300. package/src/tool/schemas.ts +15 -20
  301. package/src/ui/footer.ts +147 -44
  302. package/src/ui/status-overlay.ts +13 -8
  303. package/src/ui/status-presentation.ts +4 -7
  304. package/src/ui/tui/candidate-selection.ts +40 -95
  305. package/src/ui/tui/common.ts +16 -70
  306. package/src/ui/tui/display.ts +6 -24
  307. 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((address) => {
367
- C._ts_tree_cursor_delete_wasm(address);
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
- // @ts-expect-error: never read
375
- [0] = 0;
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.tree[0], 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
- const copy = new _TreeCursor(INTERNAL, this.tree);
388
+ marshalTreeCursor(this);
401
389
  C._ts_tree_cursor_copy_wasm(this.tree[0]);
402
- unmarshalTreeCursor(copy);
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[0] = this[1] = this[2] = 0;
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 byte offset.
608
+ * starts after the given position.
622
609
  *
623
- * This returns the index of the child node if one was found, and returns
624
- * `null` if no such child was found.
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(this.tree[0]);
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
- if (this.startIndex >= edit.oldEndIndex) {
1179
- this.startIndex = edit.newEndIndex + (this.startIndex - edit.oldEndIndex);
1180
- let subbedPointRow;
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(cursor, address = TRANSFER_BUFFER) {
1261
- C.setValue(address + 0 * SIZE_OF_INT, cursor[0], "i32");
1262
- C.setValue(address + 1 * SIZE_OF_INT, cursor[1], "i32");
1263
- C.setValue(address + 2 * SIZE_OF_INT, cursor[2], "i32");
1264
- C.setValue(address + 3 * SIZE_OF_INT, cursor[3], "i32");
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(cursor) {
1268
- cursor[0] = C.getValue(TRANSFER_BUFFER + 0 * SIZE_OF_INT, "i32");
1269
- cursor[1] = C.getValue(TRANSFER_BUFFER + 1 * SIZE_OF_INT, "i32");
1270
- cursor[2] = C.getValue(TRANSFER_BUFFER + 2 * SIZE_OF_INT, "i32");
1271
- cursor[3] = C.getValue(TRANSFER_BUFFER + 3 * SIZE_OF_INT, "i32");
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 byte offset where the given pattern starts in the query's source. */
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
- return C._ts_query_start_byte_for_pattern(this[0], patternIndex);
4603
+ const byteOffset = C._ts_query_start_byte_for_pattern(this[0], patternIndex);
4604
+ return indexForByteOffset(this.source, byteOffset);
4632
4605
  }
4633
- /** Get the byte offset where the given pattern ends in the query's source. */
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
- return C._ts_query_end_byte_for_pattern(this[0], patternIndex);
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 a given step in a query is 'definite'.
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(byteIndex) {
4665
- return C._ts_query_is_pattern_guaranteed_at_step(this[0], byteIndex) === 1;
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 {