dsh-plugin-codegraph-tree-sitter 0.6.2 → 0.6.3
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/lib/index.d.ts +8 -0
- package/lib/index.js +19 -1
- package/package.json +7 -7
package/lib/index.d.ts
CHANGED
|
@@ -67,6 +67,14 @@ export declare const DEFAULT_INDEXER_ID = "codegraph-tree-sitter";
|
|
|
67
67
|
* Directory segments never descended into by default. Includes this package's own `.codegraph`
|
|
68
68
|
* output — without it, a watcher would treat its own `writeGraph()` as an in-scope change and
|
|
69
69
|
* rebuild forever.
|
|
70
|
+
*
|
|
71
|
+
* `target` is here for a reason that cost real file descriptors to learn: this plugin is developed
|
|
72
|
+
* in its own repository, and `crates/indexer-rust/target/` holds thousands of cargo artefacts
|
|
73
|
+
* across ~1000 directories. Without the exclusion the walk descends into every one of them, and on
|
|
74
|
+
* macOS each watched file pins a descriptor — a single workspace accumulated 9.7k open handles,
|
|
75
|
+
* which is what makes a host's `spawn()` fail with `EBADF` long before any real limit is reached.
|
|
76
|
+
* `.scratch` and `vendor` cover the same shape of accident for working copies and dependency
|
|
77
|
+
* checkouts.
|
|
70
78
|
*/
|
|
71
79
|
export declare const DEFAULT_EXCLUDE: string[];
|
|
72
80
|
/** Default ceiling on a single file's size before it is skipped. */
|
package/lib/index.js
CHANGED
|
@@ -71,8 +71,26 @@ export const DEFAULT_INDEXER_ID = 'codegraph-tree-sitter';
|
|
|
71
71
|
* Directory segments never descended into by default. Includes this package's own `.codegraph`
|
|
72
72
|
* output — without it, a watcher would treat its own `writeGraph()` as an in-scope change and
|
|
73
73
|
* rebuild forever.
|
|
74
|
+
*
|
|
75
|
+
* `target` is here for a reason that cost real file descriptors to learn: this plugin is developed
|
|
76
|
+
* in its own repository, and `crates/indexer-rust/target/` holds thousands of cargo artefacts
|
|
77
|
+
* across ~1000 directories. Without the exclusion the walk descends into every one of them, and on
|
|
78
|
+
* macOS each watched file pins a descriptor — a single workspace accumulated 9.7k open handles,
|
|
79
|
+
* which is what makes a host's `spawn()` fail with `EBADF` long before any real limit is reached.
|
|
80
|
+
* `.scratch` and `vendor` cover the same shape of accident for working copies and dependency
|
|
81
|
+
* checkouts.
|
|
74
82
|
*/
|
|
75
|
-
export const DEFAULT_EXCLUDE = [
|
|
83
|
+
export const DEFAULT_EXCLUDE = [
|
|
84
|
+
'node_modules',
|
|
85
|
+
'dist',
|
|
86
|
+
'build',
|
|
87
|
+
'coverage',
|
|
88
|
+
'.git',
|
|
89
|
+
'.codegraph',
|
|
90
|
+
'target',
|
|
91
|
+
'.scratch',
|
|
92
|
+
'vendor',
|
|
93
|
+
];
|
|
76
94
|
/** Default ceiling on a single file's size before it is skipped. */
|
|
77
95
|
export const DEFAULT_MAX_FILE_BYTES = 2_000_000;
|
|
78
96
|
/** Default ceiling on how many files one run indexes. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-plugin-codegraph-tree-sitter",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.3",
|
|
4
4
|
"description": "Self-built code-graph indexer for DeepSeek Harness — parses a workspace with web-tree-sitter and writes schema version 4 to .codegraph/codegraph.db, the same on-disk format the codegraph CLI writes, so no external indexer is required",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dsh",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@deepseek-ai/schemastery": "^3.18.1",
|
|
52
52
|
"tree-sitter-wasms": "^0.1.13",
|
|
53
53
|
"web-tree-sitter": "^0.25.10",
|
|
54
|
-
"dsh-plugin-codegraph-service": "^0.6.
|
|
54
|
+
"dsh-plugin-codegraph-service": "^0.6.3"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"@deepseek-ai/cordis": ">=4.0.1",
|
|
@@ -59,11 +59,11 @@
|
|
|
59
59
|
"@deepseek-ai/dsh-invariants": ">=0.1.0-rc.6"
|
|
60
60
|
},
|
|
61
61
|
"optionalDependencies": {
|
|
62
|
-
"dsh-plugin-codegraph-indexer-darwin-arm64": "0.6.
|
|
63
|
-
"dsh-plugin-codegraph-indexer-darwin-x64": "0.6.
|
|
64
|
-
"dsh-plugin-codegraph-indexer-linux-x64-gnu": "0.6.
|
|
65
|
-
"dsh-plugin-codegraph-indexer-linux-arm64-gnu": "0.6.
|
|
66
|
-
"dsh-plugin-codegraph-indexer-win32-x64-msvc": "0.6.
|
|
62
|
+
"dsh-plugin-codegraph-indexer-darwin-arm64": "0.6.3",
|
|
63
|
+
"dsh-plugin-codegraph-indexer-darwin-x64": "0.6.3",
|
|
64
|
+
"dsh-plugin-codegraph-indexer-linux-x64-gnu": "0.6.3",
|
|
65
|
+
"dsh-plugin-codegraph-indexer-linux-arm64-gnu": "0.6.3",
|
|
66
|
+
"dsh-plugin-codegraph-indexer-win32-x64-msvc": "0.6.3"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@deepseek-ai/cordis": "^4.0.1",
|