@sdsrs/code-graph 0.106.0 → 0.107.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.
|
@@ -26,7 +26,14 @@ const TOP_AFFECTED = 15;
|
|
|
26
26
|
/// ecosystem is one edit here and one in domain.rs — not a hunt through
|
|
27
27
|
/// hand-written boolean chains.
|
|
28
28
|
const PASCAL_TEST_EXTS = ['cs', 'vb', 'fs', 'java', 'kt', 'scala', 'swift', 'php'];
|
|
29
|
-
|
|
29
|
+
// `Spec` means TEST only in ScalaTest/Kotest. Elsewhere it is a production noun
|
|
30
|
+
// (OpenApiSpec.cs, WireSpec.java), so it gets its own narrower extension set.
|
|
31
|
+
const SPEC_TEST_EXTS = ['scala', 'kt'];
|
|
32
|
+
const PASCAL_TEST_STEM_EXTS = [
|
|
33
|
+
['Test', PASCAL_TEST_EXTS],
|
|
34
|
+
['Tests', PASCAL_TEST_EXTS],
|
|
35
|
+
['Spec', SPEC_TEST_EXTS],
|
|
36
|
+
];
|
|
30
37
|
const INFIX_TEST_EXTS = ['go', 'rs', 'py', 'dart'];
|
|
31
38
|
|
|
32
39
|
/// File-level test classifier — mirrors `domain::is_test_path` (Rust). This is
|
|
@@ -48,13 +55,16 @@ function isTestPath(p) {
|
|
|
48
55
|
) return true;
|
|
49
56
|
// PascalCase test-class convention. Case-SENSITIVE and pinned to a known
|
|
50
57
|
// extension so `src/latest.cs` and `src/mytests.rs` stay production.
|
|
51
|
-
if (
|
|
58
|
+
if (PASCAL_TEST_STEM_EXTS.some(([stem, exts]) => exts.some((ext) => p.endsWith(`${stem}.${ext}`)))) {
|
|
52
59
|
return true;
|
|
53
60
|
}
|
|
54
61
|
if (INFIX_TEST_EXTS.some((ext) => p.endsWith(`_test.${ext}`))) return true;
|
|
55
|
-
// pytest naming conventions.
|
|
56
|
-
|
|
57
|
-
|
|
62
|
+
// pytest naming conventions. Case-SENSITIVE like the PascalCase leg above:
|
|
63
|
+
// pytest matches `python_files` without normcase and finds conftest by the
|
|
64
|
+
// literal basename, so `api/Test_Signup.py` is a production module. Keeps this
|
|
65
|
+
// mirror identical to `is_test_node_sql`'s case-sensitive GLOB.
|
|
66
|
+
if (p.endsWith('.py') &&
|
|
67
|
+
(p.startsWith('test_') || p.includes('/test_') || p.endsWith('conftest.py'))) {
|
|
58
68
|
return true;
|
|
59
69
|
}
|
|
60
70
|
return (
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sdsrs/code-graph",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.107.0",
|
|
4
4
|
"description": "MCP server that indexes codebases into an AST knowledge graph with semantic search, call graph traversal, and HTTP route tracing",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"node": ">=16"
|
|
37
37
|
},
|
|
38
38
|
"optionalDependencies": {
|
|
39
|
-
"@sdsrs/code-graph-linux-x64": "0.
|
|
40
|
-
"@sdsrs/code-graph-linux-arm64": "0.
|
|
41
|
-
"@sdsrs/code-graph-darwin-x64": "0.
|
|
42
|
-
"@sdsrs/code-graph-darwin-arm64": "0.
|
|
43
|
-
"@sdsrs/code-graph-win32-x64": "0.
|
|
39
|
+
"@sdsrs/code-graph-linux-x64": "0.107.0",
|
|
40
|
+
"@sdsrs/code-graph-linux-arm64": "0.107.0",
|
|
41
|
+
"@sdsrs/code-graph-darwin-x64": "0.107.0",
|
|
42
|
+
"@sdsrs/code-graph-darwin-arm64": "0.107.0",
|
|
43
|
+
"@sdsrs/code-graph-win32-x64": "0.107.0"
|
|
44
44
|
}
|
|
45
45
|
}
|