sdl-mcp-native 0.7.2 → 0.8.1

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 (2) hide show
  1. package/index.d.ts +36 -20
  2. package/package.json +7 -7
package/index.d.ts CHANGED
@@ -3,6 +3,36 @@
3
3
 
4
4
  /* auto-generated by NAPI-RS */
5
5
 
6
+ export interface NativeClusterSymbol {
7
+ symbolId: string
8
+ }
9
+ export interface NativeClusterEdge {
10
+ fromSymbolId: string
11
+ toSymbolId: string
12
+ }
13
+ export interface NativeClusterAssignment {
14
+ symbolId: string
15
+ clusterId: string
16
+ membershipScore: number
17
+ }
18
+ export interface NativeProcessSymbol {
19
+ symbolId: string
20
+ name: string
21
+ }
22
+ export interface NativeProcessCallEdge {
23
+ callerId: string
24
+ calleeId: string
25
+ }
26
+ export interface NativeProcessStep {
27
+ symbolId: string
28
+ stepOrder: number
29
+ }
30
+ export interface NativeProcess {
31
+ processId: string
32
+ entrySymbolId: string
33
+ steps: Array<NativeProcessStep>
34
+ depth: number
35
+ }
6
36
  /** Input file descriptor passed from TypeScript to Rust. */
7
37
  export interface NativeFileInput {
8
38
  /** Relative path from repo root (forward slashes). */
@@ -48,6 +78,10 @@ export interface NativeParsedSymbol {
48
78
  invariantsJson: string
49
79
  /** JSON-encoded side-effects array. */
50
80
  sideEffectsJson: string
81
+ /** JSON-encoded role tags inferred from name/path heuristics. */
82
+ roleTagsJson: string
83
+ /** Search-oriented text including identifier splits, summary, tags, and path hints. */
84
+ searchText: string
51
85
  }
52
86
  /** Extracted import statement. */
53
87
  export interface NativeParsedImport {
@@ -95,26 +129,8 @@ export interface NativeParsedFile {
95
129
  /** Parse error message, if any. */
96
130
  parseError?: string
97
131
  }
98
- /**
99
- * Parse and extract symbols/imports/calls from a batch of files.
100
- *
101
- * This is the primary entry point called from TypeScript.
102
- * Uses Rayon for parallel processing across files.
103
- *
104
- * Returns NativeParsedFile[] with per-file results.
105
- */
106
132
  export declare function parseFiles(files: Array<NativeFileInput>, threadCount: number): Array<NativeParsedFile>
107
- /**
108
- * SHA-256 hash of a string, returned as lowercase hex.
109
- *
110
- * Exact parity with TypeScript `hashContent()` in `util/hashing.ts`.
111
- * Exported for cross-validation in parity tests.
112
- */
113
133
  export declare function hashContentNative(content: string): string
114
- /**
115
- * Generate a stable symbol ID.
116
- *
117
- * Exact parity with TypeScript `generateSymbolId()` in `util/hashing.ts`.
118
- * Exported for cross-validation in parity tests.
119
- */
120
134
  export declare function generateSymbolIdNative(repoId: string, relPath: string, kind: string, name: string, fingerprint: string): string
135
+ export declare function computeClusters(symbols: Array<NativeClusterSymbol>, edges: Array<NativeClusterEdge>, minClusterSize: number): Array<NativeClusterAssignment>
136
+ export declare function traceProcesses(symbols: Array<NativeProcessSymbol>, callEdges: Array<NativeProcessCallEdge>, maxDepth: number, entryPatterns: Array<string>): Array<NativeProcess>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sdl-mcp-native",
3
- "version": "0.7.2",
3
+ "version": "0.8.1",
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.7.2",
33
- "sdl-mcp-native-darwin-x64": "0.7.2",
34
- "sdl-mcp-native-darwin-arm64": "0.7.2",
35
- "sdl-mcp-native-linux-x64-gnu": "0.7.2",
36
- "sdl-mcp-native-linux-x64-musl": "0.7.2",
37
- "sdl-mcp-native-linux-arm64-gnu": "0.7.2"
32
+ "sdl-mcp-native-win32-x64-msvc": "0.8.1",
33
+ "sdl-mcp-native-darwin-x64": "0.8.1",
34
+ "sdl-mcp-native-darwin-arm64": "0.8.1",
35
+ "sdl-mcp-native-linux-x64-gnu": "0.8.1",
36
+ "sdl-mcp-native-linux-x64-musl": "0.8.1",
37
+ "sdl-mcp-native-linux-arm64-gnu": "0.8.1"
38
38
  },
39
39
  "repository": {
40
40
  "type": "git",