sdl-mcp-native 0.8.5 → 0.8.7
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/index.d.ts +37 -8
- package/package.json +7 -7
package/index.d.ts
CHANGED
|
@@ -51,6 +51,35 @@ export interface NativeRange {
|
|
|
51
51
|
endLine: number
|
|
52
52
|
endCol: number
|
|
53
53
|
}
|
|
54
|
+
/**
|
|
55
|
+
* A single parameter in a function/method signature.
|
|
56
|
+
*
|
|
57
|
+
* Typed fields replace the previous JSON-encoded `signature_json: String` so
|
|
58
|
+
* that callers receive structured data rather than opaque text that must be
|
|
59
|
+
* re-parsed on the TypeScript side.
|
|
60
|
+
*/
|
|
61
|
+
export interface NativeSymbolSignatureParam {
|
|
62
|
+
/** Parameter name as it appears in source. */
|
|
63
|
+
name: string
|
|
64
|
+
/** Declared type annotation, if present (e.g. `"string"`, `"Request | null"`). */
|
|
65
|
+
typeName?: string
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Structured representation of a function or method signature.
|
|
69
|
+
*
|
|
70
|
+
* `None` fields are omitted rather than serialised as empty arrays/strings,
|
|
71
|
+
* keeping the napi payload compact. The struct is `None` on the parent symbol
|
|
72
|
+
* when there are no params, no return type, and no generics (e.g. plain
|
|
73
|
+
* variables or class declarations).
|
|
74
|
+
*/
|
|
75
|
+
export interface NativeSymbolSignature {
|
|
76
|
+
/** Parameter list. `None` when the symbol has no parameters. */
|
|
77
|
+
params?: Array<NativeSymbolSignatureParam>
|
|
78
|
+
/** Return type annotation, if present (e.g. `"Promise<User>"`). */
|
|
79
|
+
returns?: string
|
|
80
|
+
/** Generic type parameters (e.g. `["T", "U extends Serializable"]`). */
|
|
81
|
+
generics?: Array<string>
|
|
82
|
+
}
|
|
54
83
|
/** Extracted symbol from AST analysis. */
|
|
55
84
|
export interface NativeParsedSymbol {
|
|
56
85
|
/** Stable symbol ID: sha256("{repoId}:{relPath}:{kind}:{name}:{astFingerprint}"). */
|
|
@@ -70,16 +99,16 @@ export interface NativeParsedSymbol {
|
|
|
70
99
|
visibility: string
|
|
71
100
|
/** Source range. */
|
|
72
101
|
range: NativeRange
|
|
73
|
-
/**
|
|
74
|
-
|
|
102
|
+
/** Parsed signature object. */
|
|
103
|
+
signature?: NativeSymbolSignature
|
|
75
104
|
/** One-line summary from JSDoc or auto-generated. */
|
|
76
105
|
summary: string
|
|
77
|
-
/**
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
|
|
106
|
+
/** Invariants array. */
|
|
107
|
+
invariants: Array<string>
|
|
108
|
+
/** Side-effects array. */
|
|
109
|
+
sideEffects: Array<string>
|
|
110
|
+
/** Role tags inferred from name/path heuristics. */
|
|
111
|
+
roleTags: Array<string>
|
|
83
112
|
/** Search-oriented text including identifier splits, summary, tags, and path hints. */
|
|
84
113
|
searchText: string
|
|
85
114
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sdl-mcp-native",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.7",
|
|
4
4
|
"description": "Native Rust indexer for SDL-MCP with tree-sitter parsing and Rayon parallelism",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"main": "index.js",
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
"version": "napi version"
|
|
30
30
|
},
|
|
31
31
|
"optionalDependencies": {
|
|
32
|
-
"sdl-mcp-native-win32-x64-msvc": "0.8.
|
|
33
|
-
"sdl-mcp-native-darwin-x64": "0.8.
|
|
34
|
-
"sdl-mcp-native-darwin-arm64": "0.8.
|
|
35
|
-
"sdl-mcp-native-linux-x64-gnu": "0.8.
|
|
36
|
-
"sdl-mcp-native-linux-x64-musl": "0.8.
|
|
37
|
-
"sdl-mcp-native-linux-arm64-gnu": "0.8.
|
|
32
|
+
"sdl-mcp-native-win32-x64-msvc": "0.8.7",
|
|
33
|
+
"sdl-mcp-native-darwin-x64": "0.8.7",
|
|
34
|
+
"sdl-mcp-native-darwin-arm64": "0.8.7",
|
|
35
|
+
"sdl-mcp-native-linux-x64-gnu": "0.8.7",
|
|
36
|
+
"sdl-mcp-native-linux-x64-musl": "0.8.7",
|
|
37
|
+
"sdl-mcp-native-linux-arm64-gnu": "0.8.7"
|
|
38
38
|
},
|
|
39
39
|
"repository": {
|
|
40
40
|
"type": "git",
|