sdl-mcp-native 0.10.8 → 0.10.10

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 +29 -0
  2. package/package.json +7 -7
package/index.d.ts CHANGED
@@ -15,6 +15,34 @@ export interface NativeClusterAssignment {
15
15
  clusterId: string
16
16
  membershipScore: number
17
17
  }
18
+ /**
19
+ * A single (neighbor index, weight) entry in the directional adjacency the
20
+ * TypeScript layer hands to the native walker.
21
+ */
22
+ export interface NativePprAdjEntry {
23
+ neighbor: number
24
+ weight: number
25
+ }
26
+ /**
27
+ * A single seed contribution to the personalization vector.
28
+ *
29
+ * `node` is an index into the adjacency `Vec<Vec<...>>`. `weight` should
30
+ * already be normalized so the seed vector sums to 1.
31
+ */
32
+ export interface NativePprSeed {
33
+ node: number
34
+ weight: number
35
+ }
36
+ /**
37
+ * A node that received a non-zero PPR score.
38
+ *
39
+ * Returned as a sparse list to keep payload size proportional to touched
40
+ * nodes rather than the full graph.
41
+ */
42
+ export interface NativePprScore {
43
+ node: number
44
+ score: number
45
+ }
18
46
  export interface NativeProcessSymbol {
19
47
  symbolId: string
20
48
  name: string
@@ -253,6 +281,7 @@ export declare function parseFilesAsync(files: Array<NativeFileInput>, threadCou
253
281
  export declare function hashContentNative(content: string): string
254
282
  export declare function generateSymbolIdNative(repoId: string, relPath: string, kind: string, name: string, fingerprint: string): string
255
283
  export declare function computeClusters(symbols: Array<NativeClusterSymbol>, edges: Array<NativeClusterEdge>, minClusterSize: number): Array<NativeClusterAssignment>
284
+ export declare function computePersonalizedPagerank(adjacency: Array<Array<NativePprAdjEntry>>, seeds: Array<NativePprSeed>, alpha: number, epsilon: number, maxNodesTouched: number): Array<NativePprScore>
256
285
  export declare function traceProcesses(symbols: Array<NativeProcessSymbol>, callEdges: Array<NativeProcessCallEdge>, maxDepth: number, entryPatterns: Array<string>): Array<NativeProcess>
257
286
  export declare function scipDecodeStart(filePath: string): ScipDecodeHandle
258
287
  export declare class ScipDecodeHandle {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sdl-mcp-native",
3
- "version": "0.10.8",
3
+ "version": "0.10.10",
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.10.8",
33
- "sdl-mcp-native-darwin-x64": "0.10.8",
34
- "sdl-mcp-native-darwin-arm64": "0.10.8",
35
- "sdl-mcp-native-linux-x64-gnu": "0.10.8",
36
- "sdl-mcp-native-linux-x64-musl": "0.10.8",
37
- "sdl-mcp-native-linux-arm64-gnu": "0.10.8"
32
+ "sdl-mcp-native-win32-x64-msvc": "0.10.10",
33
+ "sdl-mcp-native-darwin-x64": "0.10.10",
34
+ "sdl-mcp-native-darwin-arm64": "0.10.10",
35
+ "sdl-mcp-native-linux-x64-gnu": "0.10.10",
36
+ "sdl-mcp-native-linux-x64-musl": "0.10.10",
37
+ "sdl-mcp-native-linux-arm64-gnu": "0.10.10"
38
38
  },
39
39
  "repository": {
40
40
  "type": "git",