dsh-plugin-codegraph 0.5.3 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -151,9 +151,13 @@ Three details worth knowing:
151
151
  - **The rule table is not duplicated.** The addon receives `LANGUAGE_TABLE` as JSON and builds its matchers from it, so the two engines cannot drift on what a rule says — only on how well they implement it, which is what the parity tests measure.
152
152
  - **Files whose parse tree has errors are left to the JS engine.** The two grammars (WASM 0.20 vs crate 0.23/0.25) recover from malformed input differently — on a real workspace that showed up as one phantom definition and a line off by one — so the addon refuses those files and `walk` extracts them the old way. Correct over fast.
153
153
 
154
+ **It no longer freezes the host.** Before 0.6.0 `extractWorkspace` was a synchronous export: the napi call waited on the whole batch on the JS thread, and rayon only made that wait shorter, never optional. Auto-indexing runs inside the renderer, so that wait was the whole UI — opening a historical conversation could take the desktop down, and a sample of the main thread put 2415 of 2415 frames in `uv_fs_stat` at 47% CPU. The call is an `AsyncTask` now: the work goes to libuv's thread pool and the caller awaits a promise. Across one 1480-file, 644 ms call the event loop ticked 53 times, worst delay 12 ms.
155
+
156
+ **The binaries now arrive with npm.** Five platform packages (`dsh-plugin-codegraph-indexer-*`) are published as this package's `optionalDependencies`, and npm's `os`/`cpu` fields pull exactly the one this machine can `dlopen` — no more copying a `.node` into the package by hand. When it cannot be had (a pruned install, a mirror missing the package, an unsupported platform) the JS path still answers.
157
+
154
158
  `packages/tree-sitter/tests/rust-parity.spec.ts` asserts the two engines produce **byte-identical** extractions on every fixture, and on a real workspace when `CODEGRAPH_PARITY_WORKSPACE` is set.
155
159
 
156
- **Coverage and next.** Four languages today. Python, Go, Java, C/C++, Rust, C# and the rest still go through the JS extractor, which keeps working unchanged; each new language needs its own Rust-side special cases plus a parity run before it ships. Multi-platform binaries (Linux, Windows, both architectures) are not published yet — building the addon is documented in [`crates/indexer-rust/README.md`](crates/indexer-rust/README.md).
160
+ **Coverage and next.** Four languages today. Python, Go, Java, C/C++, Rust, C# and the rest still go through the JS extractor, which keeps working unchanged; each new language needs its own Rust-side special cases plus a parity run before it ships. The five-platform binaries are built by the `build-native` matrix in `.github/workflows/publish.yml`; the build details — especially the `npx -p @napi-rs/cli napi` invocation and the toolchain traps — live in [`crates/indexer-rust/README.md`](crates/indexer-rust/README.md).
157
161
 
158
162
  ## Call resolution never guesses
159
163
 
package/cordis.patch.yml CHANGED
@@ -29,9 +29,3 @@
29
29
  # surface the settings panel reads.
30
30
  - id: codegraph-tool
31
31
  name: 'dsh-plugin-codegraph-tool'
32
-
33
- # Client bundle: one settings tab that shows the workspace's index state and
34
- # offers a rebuild button. Mounted as a row here so `dsh plugin add` brings
35
- # the UI along with the tools.
36
- - id: codegraph-panel
37
- name: 'dsh-plugin-codegraph-panel'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-plugin-codegraph",
3
- "version": "0.5.3",
3
+ "version": "0.6.0",
4
4
  "description": "Structural code intelligence for DeepSeek Harness — gives the agent codegraph and codegraph_index tools to find where a symbol is declared, what calls it, what a change reaches, and how one symbol reaches another, from a tree-sitter index it builds itself",
5
5
  "keywords": [
6
6
  "dsh",
@@ -42,10 +42,10 @@
42
42
  }
43
43
  },
44
44
  "dependencies": {
45
- "dsh-plugin-codegraph-panel": "^0.5.3",
46
- "dsh-plugin-codegraph-service": "^0.5.3",
47
- "dsh-plugin-codegraph-sqlite": "^0.5.3",
48
- "dsh-plugin-codegraph-tool": "^0.5.3",
49
- "dsh-plugin-codegraph-tree-sitter": "^0.5.3"
45
+ "dsh-plugin-codegraph-panel": "^0.6.0",
46
+ "dsh-plugin-codegraph-service": "^0.6.0",
47
+ "dsh-plugin-codegraph-sqlite": "^0.6.0",
48
+ "dsh-plugin-codegraph-tree-sitter": "^0.6.0",
49
+ "dsh-plugin-codegraph-tool": "^0.6.0"
50
50
  }
51
51
  }