@askdkc/dsh-lsp-server 0.1.12 → 0.1.14

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 (34) hide show
  1. package/README.md +8 -0
  2. package/lib/code-intelligence-DvhxPnpu.js +890 -0
  3. package/lib/code-intelligence-DvhxPnpu.js.map +1 -0
  4. package/lib/code-intelligence-contracts-CWXTofdI.js +8 -0
  5. package/lib/code-intelligence-contracts-CWXTofdI.js.map +1 -0
  6. package/lib/code-intelligence-contracts.js +3 -0
  7. package/lib/code-intelligence.js +5 -0
  8. package/lib/errors-DtyWAUi0.js.map +1 -1
  9. package/lib/extra-tool.js +135 -7
  10. package/lib/extra-tool.js.map +1 -1
  11. package/lib/grammars/manifest.json +40 -0
  12. package/lib/grammars/tree-sitter-javascript.wasm +0 -0
  13. package/lib/grammars/tree-sitter-tsx.wasm +0 -0
  14. package/lib/grammars/tree-sitter-typescript.wasm +0 -0
  15. package/lib/launch-ByUvgkVv.js.map +1 -1
  16. package/lib/parser-worker.mjs +200 -0
  17. package/lib/provider.js +639 -41
  18. package/lib/provider.js.map +1 -1
  19. package/lib/types/code-intelligence-contracts.d.ts +113 -0
  20. package/lib/types/code-intelligence.d.ts +5 -0
  21. package/lib/types/errors.d.ts +1 -1
  22. package/lib/types/extra-tool.d.ts +2 -1
  23. package/lib/types/provider.d.ts +4 -0
  24. package/lib/types/runtime/webstack-runtime.d.ts +13 -1
  25. package/lib/types/service.d.ts +16 -0
  26. package/lib/types/structure/code-intelligence.d.ts +23 -0
  27. package/lib/types/structure/coordinates.d.ts +14 -0
  28. package/lib/types/structure/engine.d.ts +49 -0
  29. package/lib/types/structure/protocol.d.ts +19 -0
  30. package/lib/types/structure/queries.d.ts +4 -0
  31. package/lib/types/structure/snapshots.d.ts +37 -0
  32. package/lib/types/structure/types.d.ts +147 -0
  33. package/lib/types/structure/worker-pool.d.ts +66 -0
  34. package/package.json +17 -4
package/README.md CHANGED
@@ -4,6 +4,14 @@ A read-only LSP plugin for DeepSeek Harness. It provides code navigation, diagno
4
4
 
5
5
  Markdown and other unsupported documents return an explicit `skipped` diagnostic result, not a tool error or a clean-file claim. `lsp_extra status` reports routing suffixes and server availability. See [diagnostic behavior](docs/usage.md#tools).
6
6
 
7
+ ## Read-only code structure
8
+
9
+ The provider also bundles Tree-sitter WASM grammars for JavaScript, TypeScript, and TSX. Through `lsp_extra`, open a workspace-relative snapshot, use its opaque handle with `structure` (`outline`, `enclosing`, `query`, or bounded `span`) or `semantic` operations, then release the snapshot. Structure and semantic positions use zero-based UTF-16 coordinates; completion keeps its existing one-based coordinates. Only registered query IDs (`declarations`, `calls`, `imports`) are accepted. No edits or arbitrary Tree-sitter queries are exposed.
10
+
11
+ For example, inspect parser availability, open `src/index.ts` with `operation: "snapshot", action: "open", file_path: "src/index.ts"`, pass the returned handle to `operation: "structure", action: "outline"`, and release it with `operation: "snapshot", action: "release"`. Snapshot documents are capped at 2 MiB; outline/query results, source spans, responses, and evaluation budgets are bounded. Unsupported languages or unavailable semantic servers are reported explicitly rather than treated as empty successful results. Tree-sitter cache entries are bounded and released with their snapshots or worker lifetime.
12
+
13
+ The bundled structural grammar set is currently limited to JavaScript, TypeScript, and TSX. PHP, Blade, Svelte, HTML, CSS, and Rust structural grammars and mixed-language injections are not included yet; their existing LSP routing does not imply structural-parser support.
14
+
7
15
  ## Requirements
8
16
 
9
17
  - Node.js 22.19+ (22.x) or 24+