@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
@@ -1,5 +1,6 @@
1
1
  import * as fs from "node:fs";
2
- import ts from "typescript";
2
+ import type ts from "typescript";
3
+ import { getTypeScript } from "../config/typescript-module.ts";
3
4
 
4
5
  /**
5
6
  * Whether the identifier at `position` names a top-level declaration that only
@@ -22,6 +23,7 @@ export function isFileLocalTopLevelDeclaration(
22
23
  } catch {
23
24
  return false;
24
25
  }
26
+ const ts = getTypeScript();
25
27
  const sourceFile = ts.createSourceFile(filePath, text, ts.ScriptTarget.Latest, true);
26
28
  if (!ts.isExternalModule(sourceFile)) return false;
27
29
  let offset: number;
@@ -44,6 +46,7 @@ function topLevelDeclarationNameAt(
44
46
  offset: number,
45
47
  sourceFile: ts.SourceFile,
46
48
  ): string | null {
49
+ const ts = getTypeScript();
47
50
  const names: ts.Identifier[] = [];
48
51
  if (
49
52
  ts.isFunctionDeclaration(statement) ||
@@ -63,6 +66,7 @@ function topLevelDeclarationNameAt(
63
66
  }
64
67
 
65
68
  function hasExportModifier(statement: ts.Statement): boolean {
69
+ const ts = getTypeScript();
66
70
  return (
67
71
  ts.canHaveModifiers(statement) &&
68
72
  (ts.getModifiers(statement) ?? []).some(
@@ -75,6 +79,7 @@ function hasExportModifier(statement: ts.Statement): boolean {
75
79
 
76
80
  /** `export { name }`, `export default name`, or `export = name` in this file. */
77
81
  function exportedByName(sourceFile: ts.SourceFile, name: string): boolean {
82
+ const ts = getTypeScript();
78
83
  return sourceFile.statements.some((statement) => {
79
84
  if (ts.isExportAssignment(statement)) {
80
85
  return ts.isIdentifier(statement.expression) && statement.expression.text === name;
@@ -0,0 +1,163 @@
1
+ import {
2
+ type CodeQueryPartialMetadata,
3
+ type CodeQueryResult,
4
+ type CodeRequestControl,
5
+ completedCodeQuery,
6
+ partialCodeQuery,
7
+ unavailableCodeQuery,
8
+ } from "@mrclrchtr/supi-code-runtime/api";
9
+ import type { LspClient } from "../client/client.ts";
10
+ import type { SymbolInformation, WorkspaceSymbol } from "../config/types.ts";
11
+ import { nativeTypeScriptRowLimit } from "./workspace-symbol-row-limit.ts";
12
+
13
+ type WorkspaceSymbolLike = SymbolInformation | WorkspaceSymbol;
14
+
15
+ export interface WorkspaceSymbolCollection {
16
+ results: WorkspaceSymbolLike[];
17
+ hasSupport: boolean;
18
+ completedClientCount: number;
19
+ failures: string[];
20
+ /** Results removed by the automatic path policy. */
21
+ excludedCount?: number;
22
+ /** Bounded paths removed by the automatic path policy. */
23
+ excludedExamples?: string[];
24
+ /** Known coverage limits: the server may not have loaded every project in scope. */
25
+ coverageGap?: string;
26
+ /**
27
+ * Row-limit reasons whose cut answers still hold every exact-name declaration.
28
+ * Unlike `failures`, they leave exact-name selection sound.
29
+ */
30
+ exactNameLimits?: string[];
31
+ /** At least one client's answer was cut at its row limit. */
32
+ rowLimited?: boolean;
33
+ }
34
+
35
+ /**
36
+ * Mark a collection whose warm-up never reached a configured project.
37
+ * The server answered only from inferred projects of the opened probe files,
38
+ * so an empty or short result does not prove a symbol is absent.
39
+ */
40
+ export function workspaceSymbolCoverageGap(
41
+ collection: WorkspaceSymbolCollection,
42
+ inferredProbeCount: number,
43
+ ): WorkspaceSymbolCollection {
44
+ const noun = `file${inferredProbeCount === 1 ? "" : "s"}`;
45
+ return {
46
+ ...collection,
47
+ coverageGap:
48
+ `Workspace-symbol coverage is limited: ${inferredProbeCount} opened warm-up ${noun} ` +
49
+ "loaded only inferred projects, not a configured project. Open a project source file and retry.",
50
+ };
51
+ }
52
+
53
+ /**
54
+ * Collect workspace symbols from every running client that supports them.
55
+ *
56
+ * @param scoped - the caller already limits results to a scope, so the
57
+ * row-limit advice must not suggest adding one.
58
+ */
59
+ export async function collectWorkspaceSymbols(
60
+ clients: Iterable<LspClient>,
61
+ query: string,
62
+ control?: CodeRequestControl,
63
+ scoped = false,
64
+ ): Promise<WorkspaceSymbolCollection> {
65
+ const results: WorkspaceSymbolLike[] = [];
66
+ const failures: string[] = [];
67
+ const exactNameLimits: string[] = [];
68
+ let rowLimited = false;
69
+ let hasSupport = false;
70
+ let completedClientCount = 0;
71
+
72
+ for (const client of clients) {
73
+ if (client.status !== "running" || !client.serverCapabilities?.workspaceSymbolProvider) {
74
+ continue;
75
+ }
76
+ hasSupport = true;
77
+ const result = await client.workspaceSymbol(query, control);
78
+ if (result.kind === "unavailable") {
79
+ failures.push(result.reason);
80
+ continue;
81
+ }
82
+ completedClientCount++;
83
+ const rows = result.data ?? [];
84
+ results.push(...rows);
85
+ if (result.kind === "partial") failures.push(result.reason);
86
+ const limit = nativeTypeScriptRowLimit(client, rows, query, scoped);
87
+ rowLimited ||= limit !== null;
88
+ if (limit?.exactNamesComplete) exactNameLimits.push(limit.reason);
89
+ else if (limit) failures.push(limit.reason);
90
+ }
91
+
92
+ return {
93
+ results,
94
+ hasSupport,
95
+ completedClientCount,
96
+ failures,
97
+ ...(exactNameLimits.length > 0 ? { exactNameLimits } : {}),
98
+ ...(rowLimited ? { rowLimited } : {}),
99
+ };
100
+ }
101
+
102
+ /**
103
+ * Join partial-result reasons into one message. A reason that already ends a
104
+ * sentence is followed by a space, so the message never reads `.;`.
105
+ */
106
+ export function joinWorkspaceSymbolReasons(
107
+ reasons: readonly (string | null | undefined)[],
108
+ ): string {
109
+ return reasons
110
+ .filter((reason): reason is string => Boolean(reason))
111
+ .reduce((joined, reason) => {
112
+ if (!joined) return reason;
113
+ return `${joined}${/[.!?]$/.test(joined) ? " " : "; "}${reason}`;
114
+ }, "");
115
+ }
116
+
117
+ function workspaceSymbolExclusionReason(collection: WorkspaceSymbolCollection): string | null {
118
+ const excludedCount = collection.excludedCount ?? 0;
119
+ if (excludedCount === 0) return null;
120
+ const noun = `workspace-symbol result${excludedCount === 1 ? "" : "s"}`;
121
+ // Paths belong to typed metadata so consumers can distinguish observed aliases from navigation.
122
+ return `Automatic path policy excluded ${excludedCount} ${noun}.`;
123
+ }
124
+
125
+ /** Project one multi-client collection into the shared typed query contract. */
126
+ export function workspaceSymbolCollectionResult(
127
+ collection: WorkspaceSymbolCollection,
128
+ ): CodeQueryResult<WorkspaceSymbolLike[]> {
129
+ if (!collection.hasSupport) {
130
+ return unavailableCodeQuery("No active LSP client supports workspace-symbol requests.");
131
+ }
132
+ if (collection.completedClientCount === 0) {
133
+ return unavailableCodeQuery(
134
+ joinWorkspaceSymbolReasons(collection.failures) || "No workspace-symbol request completed.",
135
+ );
136
+ }
137
+ const exclusion = workspaceSymbolExclusionReason(collection);
138
+ const exactNameLimits = collection.exactNameLimits ?? [];
139
+ const reason = joinWorkspaceSymbolReasons([
140
+ ...collection.failures,
141
+ ...exactNameLimits,
142
+ collection.coverageGap,
143
+ exclusion,
144
+ ]);
145
+ if (!reason) return completedCodeQuery(collection.results);
146
+ // Without failures or coverage gaps, the remaining reasons keep in-scope selection sound.
147
+ const sound = collection.failures.length === 0 && !collection.coverageGap;
148
+ const excludedCount = collection.excludedCount ?? 0;
149
+ const metadata: CodeQueryPartialMetadata = {
150
+ ...(excludedCount > 0 && {
151
+ automaticPathExclusion: { excludedCount, examples: [...(collection.excludedExamples ?? [])] },
152
+ }),
153
+ ...(collection.rowLimited && {
154
+ rowLimit: { exactNamesComplete: sound && exactNameLimits.length > 0 },
155
+ }),
156
+ ...(sound && exactNameLimits.length === 0 && { exclusionOnly: true }),
157
+ };
158
+ return partialCodeQuery(
159
+ collection.results,
160
+ reason,
161
+ Object.keys(metadata).length > 0 ? metadata : undefined,
162
+ );
163
+ }
@@ -0,0 +1,72 @@
1
+ import type { LspClient } from "../client/client.ts";
2
+
3
+ /**
4
+ * Rows the native TypeScript server returns at most per query; it sorts by match
5
+ * quality and drops the rest. tsserver behind typescript-language-server has no limit.
6
+ *
7
+ * A cut answer has exactly this many rows. Newer servers skip rows whose name has no
8
+ * single-segment source mapping, which only content-mapped files produce; content
9
+ * mappers need `--runExternalCode`, which the automatic launch does not pass.
10
+ */
11
+ const NATIVE_TYPESCRIPT_WORKSPACE_SYMBOL_LIMIT = 256;
12
+
13
+ /** A TypeScript answer that may be cut at the native server's row limit. */
14
+ export interface WorkspaceSymbolRowLimit {
15
+ readonly reason: string;
16
+ /**
17
+ * The cut answer still holds every declaration whose name equals the query
18
+ * (ignoring case), so only partial-name matches may be missing.
19
+ */
20
+ readonly exactNamesComplete: boolean;
21
+ }
22
+
23
+ /**
24
+ * Describe a TypeScript answer that may be cut at the native server's row limit,
25
+ * or `null` when it is not. An unknown backend (manual launch) counts as possibly
26
+ * native; more rows than the limit prove it is not.
27
+ */
28
+ export function nativeTypeScriptRowLimit(
29
+ client: LspClient,
30
+ rows: readonly { readonly name: string }[],
31
+ query: string,
32
+ scoped: boolean,
33
+ ): WorkspaceSymbolRowLimit | null {
34
+ if (
35
+ client.name !== "typescript" ||
36
+ client.typescriptSelection?.backend === "tsserver" ||
37
+ rows.length !== NATIVE_TYPESCRIPT_WORKSPACE_SYMBOL_LIMIT
38
+ ) {
39
+ return null;
40
+ }
41
+ const prefix = `The TypeScript server returned its limit of ${NATIVE_TYPESCRIPT_WORKSPACE_SYMBOL_LIMIT} workspace symbols`;
42
+ if (exactNamesFirst(rows, query)) {
43
+ return {
44
+ reason: `${prefix}; it includes every declaration named \`${query}\`, but more partial-name matches may exist.`,
45
+ exactNamesComplete: true,
46
+ };
47
+ }
48
+ // The limit applies before scope filtering, so a scope cannot be narrowed around it.
49
+ const next = scoped
50
+ ? "Use a more specific query, or pass an anchor target (file, line, character)."
51
+ : "Use a more specific query or a scope.";
52
+ return {
53
+ reason: `${prefix}; more matches may exist. ${next}`,
54
+ exactNamesComplete: false,
55
+ };
56
+ }
57
+
58
+ /**
59
+ * True when the cut answer provably holds every name equal to the query.
60
+ *
61
+ * typescript-go (`internal/ls/symbols.go`) sorts by match score, then by
62
+ * case-insensitive name, before it cuts. A name equal to the query scores 0 and
63
+ * sorts before every longer score-0 name, which starts with the query. So when
64
+ * all equal names lead the answer and the last row differs, none were cut. An
65
+ * answer in another order proves nothing.
66
+ */
67
+ function exactNamesFirst(rows: readonly { readonly name: string }[], query: string): boolean {
68
+ const folded = query.toLowerCase();
69
+ const equal = (row: { readonly name: string }) => row.name.toLowerCase() === folded;
70
+ const firstOther = rows.findIndex((row) => !equal(row));
71
+ return firstOther >= 0 && !rows.slice(firstOther).some(equal);
72
+ }
@@ -83,7 +83,12 @@ export function createLspSemanticProvider(lsp: WorkspaceLspRuntime): SemanticPro
83
83
  ? await lsp.documentSymbols(filePath, control)
84
84
  : await lsp.documentSymbols(filePath);
85
85
  if (result.kind === "unavailable") return unavailableCodeQuery(result.reason);
86
- const symbols = await mapDocumentSymbols(result.data, filePath);
86
+ // Anchor names against the text the server analyzed, not possibly newer disk content.
87
+ const symbols = await mapDocumentSymbols(
88
+ result.data,
89
+ filePath,
90
+ lsp.getOpenDocumentContent(filePath),
91
+ );
87
92
  return result.kind === "partial"
88
93
  ? partialCodeQuery(symbols, result.reason)
89
94
  : completedCodeQuery(symbols);
@@ -94,13 +94,19 @@ function symbolKindName(kind: number): string {
94
94
  return SYMBOL_KIND_NAMES[kind] ?? "Unknown";
95
95
  }
96
96
 
97
- /** Flatten provider symbols while preserving declaration and name anchors. */
97
+ /**
98
+ * Flatten provider symbols while preserving declaration and name anchors.
99
+ * Name anchors are recovered from `sourceText` (the synchronized open-document
100
+ * text) when given; otherwise from disk, or the server `selectionRange` start.
101
+ */
98
102
  export async function mapDocumentSymbols(
99
103
  symbols: DocumentSymbol[] | SymbolInformation[],
100
104
  filePath: string,
105
+ sourceText?: string | null,
101
106
  ): Promise<DocumentCodeSymbol[]> {
102
107
  return flattenDocumentSymbols(symbols, filePath, null, {
103
- sourceLines: await readSourceLines(filePath),
108
+ sourceLines:
109
+ typeof sourceText === "string" ? splitLines(sourceText) : await readSourceLines(filePath),
104
110
  parent: null,
105
111
  });
106
112
  }
@@ -169,12 +175,16 @@ function isSymbolInformation(
169
175
 
170
176
  async function readSourceLines(filePath: string): Promise<readonly string[] | null> {
171
177
  try {
172
- return (await readFile(filePath, "utf-8")).split(/\r?\n/);
178
+ return splitLines(await readFile(filePath, "utf-8"));
173
179
  } catch {
174
180
  return null;
175
181
  }
176
182
  }
177
183
 
184
+ function splitLines(text: string): readonly string[] {
185
+ return text.split(/\r?\n/);
186
+ }
187
+
178
188
  function resolveDocumentSymbolNameStart(
179
189
  symbol: DocumentSymbol,
180
190
  sourceLines: readonly string[] | null,
@@ -210,6 +210,14 @@ export class LspRuntimeController {
210
210
  this.#capabilityRuntime = runtime;
211
211
  }
212
212
 
213
+ /**
214
+ * Latest published aggregate transition, including transitions published while pending.
215
+ * Read this snapshot instead of recomputing project-server status on every render.
216
+ */
217
+ get latestLifecycleTransition(): LspRuntimeTransition | null {
218
+ return this.#latestLifecycleTransition;
219
+ }
220
+
213
221
  /**
214
222
  * Subscribe to aggregate runtime transitions.
215
223
  *
@@ -367,6 +375,9 @@ export class LspRuntimeController {
367
375
  return supersededStartResult();
368
376
  }
369
377
 
378
+ // Not awaited: the pass loads TypeScript projects for the first symbol query.
379
+ void manager.startWorkspaceSymbolWarmup();
380
+
370
381
  const runtimeOwner = createWorkspaceLspRuntimeOwner(manager);
371
382
  const workspaceRuntime = runtimeOwner.runtime;
372
383
  setWorkspaceLspRuntimeState(this.#cwd, { kind: "ready", runtime: workspaceRuntime });
@@ -40,6 +40,17 @@ export interface WorkspaceLspDiagnosticSurface {
40
40
  getOutstandingDiagnosticSummary(
41
41
  maxSeverity?: number,
42
42
  ): WorkspaceDiagnosticSnapshot<OutstandingDiagnosticSummaryEntry>;
43
+ /**
44
+ * Return absolute paths of tracked files removed from disk within `scope`
45
+ * since a report last showed them.
46
+ *
47
+ * The read does not consume removals. Passive snapshots and background
48
+ * refreshes leave them in place, so a later report can still show them
49
+ * regardless of timing. Recreated files are dropped.
50
+ */
51
+ peekRemovedTrackedFiles(scope?: string | null): readonly string[];
52
+ /** Forget removals after a delivered diagnostic report has shown them. */
53
+ acknowledgeRemovedTrackedFiles(files: readonly string[]): void;
43
54
  /** Run best-effort recovery and retain final diagnostic evidence, including failures. */
44
55
  recoverDiagnostics(options?: {
45
56
  restartIfStillStale?: boolean;
@@ -3,6 +3,7 @@ import type { DiagnosticEvidenceSummary } from "../diagnostics/evidence.ts";
3
3
 
4
4
  export type {
5
5
  DiagnosticEvidenceDocument,
6
+ DiagnosticEvidenceReason,
6
7
  DiagnosticEvidenceStatus,
7
8
  DiagnosticEvidenceSummary,
8
9
  } from "../diagnostics/evidence.ts";
@@ -73,6 +73,7 @@ export type {
73
73
  } from "./runtime-diagnostic-surface.ts";
74
74
  export {
75
75
  type DiagnosticEvidenceDocument,
76
+ type DiagnosticEvidenceReason,
76
77
  type DiagnosticEvidenceStatus,
77
78
  type DiagnosticEvidenceSummary,
78
79
  emptyProcessCrashRecoveryReport,
@@ -113,8 +114,17 @@ function isRange(value: Position | Range): value is Range {
113
114
  );
114
115
  }
115
116
 
116
- function unavailableFileQuery<T>(operation: string, file: string): CodeQueryResult<T> {
117
- return unavailableCodeQuery(`No routed LSP client could complete ${operation} for ${file}.`);
117
+ /** Name the open failure when a route exists; otherwise report the missing route. */
118
+ function unavailableFileQuery<T>(
119
+ operation: string,
120
+ file: string,
121
+ openFailure?: string,
122
+ ): CodeQueryResult<T> {
123
+ return unavailableCodeQuery(
124
+ openFailure
125
+ ? `LSP could not open ${file} for ${operation}: ${openFailure}`
126
+ : `No routed LSP client could complete ${operation} for ${file}.`,
127
+ );
118
128
  }
119
129
 
120
130
  function hasProcessCrashRecovery(report: ProcessCrashRecoveryReport): boolean {
@@ -171,12 +181,16 @@ class DefaultWorkspaceLspRuntime implements WorkspaceLspRuntime {
171
181
  control?: CodeRequestControl,
172
182
  ): Promise<CodeQueryResult<Hover | null>> {
173
183
  const resolvedPath = this.resolveFilePath(filePath);
184
+ let openFailure: string | undefined;
174
185
  const client = await this.manager.ensureFileOpen(resolvedPath, {
175
186
  recoverProcessCrash: true,
176
187
  protectInputs: true,
177
188
  control,
189
+ onOpenFailure: (reason) => {
190
+ openFailure = reason;
191
+ },
178
192
  });
179
- if (!client) return unavailableFileQuery("hover", resolvedPath);
193
+ if (!client) return unavailableFileQuery("hover", resolvedPath, openFailure);
180
194
  return client.hover(resolvedPath, position, control);
181
195
  }
182
196
 
@@ -186,12 +200,16 @@ class DefaultWorkspaceLspRuntime implements WorkspaceLspRuntime {
186
200
  control?: CodeRequestControl,
187
201
  ): Promise<CodeQueryResult<Location | Location[] | LocationLink[] | null>> {
188
202
  const resolvedPath = this.resolveFilePath(filePath);
203
+ let openFailure: string | undefined;
189
204
  const client = await this.manager.ensureFileOpen(resolvedPath, {
190
205
  recoverProcessCrash: true,
191
206
  protectInputs: true,
192
207
  control,
208
+ onOpenFailure: (reason) => {
209
+ openFailure = reason;
210
+ },
193
211
  });
194
- if (!client) return unavailableFileQuery("definition", resolvedPath);
212
+ if (!client) return unavailableFileQuery("definition", resolvedPath, openFailure);
195
213
  return client.definition(resolvedPath, position, control);
196
214
  }
197
215
 
@@ -201,12 +219,16 @@ class DefaultWorkspaceLspRuntime implements WorkspaceLspRuntime {
201
219
  control?: CodeRequestControl,
202
220
  ): Promise<CodeQueryResult<Location[]>> {
203
221
  const resolvedPath = this.resolveFilePath(filePath);
222
+ let openFailure: string | undefined;
204
223
  const client = await this.manager.ensureFileOpen(resolvedPath, {
205
224
  recoverProcessCrash: true,
206
225
  protectInputs: true,
207
226
  control,
227
+ onOpenFailure: (reason) => {
228
+ openFailure = reason;
229
+ },
208
230
  });
209
- if (!client) return unavailableFileQuery("references", resolvedPath);
231
+ if (!client) return unavailableFileQuery("references", resolvedPath, openFailure);
210
232
  return this.withProjectCoverage(
211
233
  client,
212
234
  { file: resolvedPath, position },
@@ -224,12 +246,16 @@ class DefaultWorkspaceLspRuntime implements WorkspaceLspRuntime {
224
246
  control?: CodeRequestControl,
225
247
  ): Promise<CodeQueryResult<Location | Location[] | LocationLink[] | null>> {
226
248
  const resolvedPath = this.resolveFilePath(filePath);
249
+ let openFailure: string | undefined;
227
250
  const client = await this.manager.ensureFileOpen(resolvedPath, {
228
251
  recoverProcessCrash: true,
229
252
  protectInputs: true,
230
253
  control,
254
+ onOpenFailure: (reason) => {
255
+ openFailure = reason;
256
+ },
231
257
  });
232
- if (!client) return unavailableFileQuery("implementation", resolvedPath);
258
+ if (!client) return unavailableFileQuery("implementation", resolvedPath, openFailure);
233
259
  return this.withProjectCoverage(
234
260
  client,
235
261
  { file: resolvedPath, position },
@@ -261,12 +287,16 @@ class DefaultWorkspaceLspRuntime implements WorkspaceLspRuntime {
261
287
  control?: CodeRequestControl,
262
288
  ): Promise<CodeQueryResult<DocumentSymbol[] | SymbolInformation[]>> {
263
289
  const resolvedPath = this.resolveFilePath(filePath);
290
+ let openFailure: string | undefined;
264
291
  const client = await this.manager.ensureFileOpen(resolvedPath, {
265
292
  recoverProcessCrash: true,
266
293
  protectInputs: true,
267
294
  control,
295
+ onOpenFailure: (reason) => {
296
+ openFailure = reason;
297
+ },
268
298
  });
269
- if (!client) return unavailableFileQuery("document symbols", resolvedPath);
299
+ if (!client) return unavailableFileQuery("document symbols", resolvedPath, openFailure);
270
300
  return mapCodeQueryResult(
271
301
  await client.documentSymbols(resolvedPath, control),
272
302
  (data) => data ?? [],
@@ -300,6 +330,10 @@ class DefaultWorkspaceLspRuntime implements WorkspaceLspRuntime {
300
330
  return this.manager.getOpenDocumentVersion(this.resolveFilePath(filePath));
301
331
  }
302
332
 
333
+ getOpenDocumentContent(filePath: string): string | null {
334
+ return this.manager.getOpenDocumentContent(this.resolveFilePath(filePath));
335
+ }
336
+
303
337
  async captureCodeActionEdit(
304
338
  filePath: string,
305
339
  action: CodeAction,
@@ -575,6 +609,16 @@ class DefaultWorkspaceLspRuntime implements WorkspaceLspRuntime {
575
609
  return this.manager.getOutstandingDiagnosticSummarySnapshot(maxSeverity);
576
610
  }
577
611
 
612
+ /** Return retained tracked-file removals without consuming them. */
613
+ peekRemovedTrackedFiles(scope: string | null = null): readonly string[] {
614
+ return this.manager.peekRemovedTrackedFiles(scope);
615
+ }
616
+
617
+ /** Forget retained removals that a delivered report has shown. */
618
+ acknowledgeRemovedTrackedFiles(files: readonly string[]): void {
619
+ this.manager.acknowledgeRemovedTrackedFiles(files);
620
+ }
621
+
578
622
  /** Retry failed routes and run a workspace-wide diagnostic recovery pass. */
579
623
  async recoverDiagnostics(options?: {
580
624
  restartIfStillStale?: boolean;
@@ -592,7 +636,7 @@ class DefaultWorkspaceLspRuntime implements WorkspaceLspRuntime {
592
636
  const outcome = result.refreshFailureReason ? "failed" : "completed";
593
637
  recordDebugEvent({
594
638
  source: "lsp",
595
- level: "debug",
639
+ level: outcome === "failed" ? "warning" : "info",
596
640
  category: "runtime.recovery",
597
641
  message: `LSP diagnostic recovery ${outcome}`,
598
642
  cwd: truncateIdentity(this.manager.getCwd()),
@@ -618,7 +662,7 @@ class DefaultWorkspaceLspRuntime implements WorkspaceLspRuntime {
618
662
  if (isCodeRequestInterruption(error, options?.control)) {
619
663
  recordDebugEvent({
620
664
  source: "lsp",
621
- level: "debug",
665
+ level: "info",
622
666
  category: "runtime.recovery",
623
667
  message: "LSP diagnostic recovery cancelled",
624
668
  cwd: truncateIdentity(this.manager.getCwd()),
@@ -1,4 +1,5 @@
1
1
  import {
2
+ type DebugLevel,
2
3
  recordDebugEvent,
3
4
  truncateDebugIdentity as truncateIdentity,
4
5
  } from "@mrclrchtr/supi-core/debug";
@@ -26,6 +27,15 @@ function boundedServerEntries(
26
27
  }));
27
28
  }
28
29
 
30
+ /**
31
+ * Crashes warn; rare recovery and retirement snapshots are `info` so they persist
32
+ * by default. Frequent startup, readiness, and tracked-file transitions stay `debug`.
33
+ */
34
+ function transitionLevel(kind: LspRuntimeTransition["kind"]): DebugLevel {
35
+ if (kind === "crash") return "warning";
36
+ return kind === "recovery" || kind === "retirement" ? "info" : "debug";
37
+ }
38
+
29
39
  /** Record bounded aggregate telemetry for one runtime transition. */
30
40
  export function recordLspRuntimeTransition(cwd: string, transition: LspRuntimeTransition): void {
31
41
  const readyClients = transition.projectServers.filter(
@@ -37,7 +47,7 @@ export function recordLspRuntimeTransition(cwd: string, transition: LspRuntimeTr
37
47
  );
38
48
  recordDebugEvent({
39
49
  source: "lsp",
40
- level: transition.kind === "crash" ? "warning" : "debug",
50
+ level: transitionLevel(transition.kind),
41
51
  category: "runtime.transition",
42
52
  message: `LSP runtime transition: ${transition.kind}`,
43
53
  cwd: truncateIdentity(cwd),
@@ -187,6 +187,8 @@ export interface WorkspaceLspRuntime extends WorkspaceLspDiagnosticSurface {
187
187
  control?: CodeRequestControl,
188
188
  ): Promise<RoutedMutationResponse<CommandEditCaptureResult | null> | null>;
189
189
  getOpenDocumentVersion(filePath: string): number | null;
190
+ /** Text last synchronized to the server for an open document, or null when not open. */
191
+ getOpenDocumentContent(filePath: string): string | null;
190
192
  /**
191
193
  * Wait for file readiness; an explicit refresh may make one shared route
192
194
  * retry for this call without changing ordinary request recovery limits.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrclrchtr/supi-code-runtime",
3
- "version": "12.0.0",
3
+ "version": "14.0.0",
4
4
  "description": "Shared workspace context and capability contracts for code intelligence",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -14,6 +14,16 @@ export interface CodeQueryPartialMetadata {
14
14
  * answer.
15
15
  */
16
16
  readonly exclusionOnly?: boolean;
17
+ /** A provider cut its answer at a row limit; a narrower scope cannot avoid it. */
18
+ readonly rowLimit?: {
19
+ /**
20
+ * True when every declaration whose name equals the query is still in the
21
+ * result, though partial-name matches may be missing: the provider sorted
22
+ * exact names first. Set only when no provider failed and no coverage gap
23
+ * was observed, so exact-name selection stays sound.
24
+ */
25
+ readonly exactNamesComplete: boolean;
26
+ };
17
27
  }
18
28
 
19
29
  /**
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrclrchtr/supi-core",
3
- "version": "12.0.0",
3
+ "version": "14.0.0",
4
4
  "description": "Shared settings, configuration, reporting, and session infrastructure",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -63,8 +63,10 @@
63
63
  "./project": "./src/project.ts",
64
64
  "./prompt-surface": "./src/prompt-surface.ts",
65
65
  "./report": "./src/report.ts",
66
+ "./retired-packages": "./src/retired-packages.ts",
66
67
  "./session": "./src/session.ts",
67
68
  "./settings": "./src/settings.ts",
69
+ "./spill": "./src/spill.ts",
68
70
  "./spinner-frames": "./src/spinner-frames.ts",
69
71
  "./status-spinner": "./src/status-spinner.ts",
70
72
  "./terminal": "./src/terminal.ts",
@@ -29,10 +29,14 @@ export * from "./prompt-surface.ts";
29
29
  // biome-ignore lint/performance/noReExportAll: intentional convenience barrel
30
30
  export * from "./report.ts";
31
31
  // biome-ignore lint/performance/noReExportAll: intentional convenience barrel
32
+ export * from "./retired-packages.ts";
33
+ // biome-ignore lint/performance/noReExportAll: intentional convenience barrel
32
34
  export * from "./session.ts";
33
35
  // biome-ignore lint/performance/noReExportAll: intentional convenience barrel
34
36
  export * from "./settings.ts";
35
37
  // biome-ignore lint/performance/noReExportAll: intentional convenience barrel
38
+ export * from "./spill.ts";
39
+ // biome-ignore lint/performance/noReExportAll: intentional convenience barrel
36
40
  export * from "./spinner-frames.ts";
37
41
  // biome-ignore lint/performance/noReExportAll: intentional convenience barrel
38
42
  export * from "./status-spinner.ts";
@@ -8,7 +8,7 @@
8
8
  /**
9
9
  * Wrap content in an `<extension-context>` XML tag.
10
10
  *
11
- * @param source - Extension identifier (e.g. "supi-claude-md", "supi-lsp")
11
+ * @param source - Extension identifier (e.g. "supi-lsp")
12
12
  * @param content - The text content to wrap
13
13
  * @param attrs - Optional additional attributes (rendered as key="value")
14
14
  * @returns Formatted XML string