devsmind-mcp 2.0.4 → 2.1.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.
@@ -0,0 +1,38 @@
1
+ interface ParsedNodeId {
2
+ repo: string;
3
+ filePath: string;
4
+ symbolName: string;
5
+ className?: string;
6
+ memberName?: string;
7
+ }
8
+ /** A used reference that resolves to a real repo file but has no node — a Phase-1 gap. */
9
+ export interface MissingRef {
10
+ sourceNodeId: string;
11
+ name: string;
12
+ targetFile: string;
13
+ }
14
+ /**
15
+ * Parses a DevsMind node ID into constituent parts
16
+ */
17
+ export declare function parseNodeId(id: string): ParsedNodeId | null;
18
+ /**
19
+ * Locally analyzes the source file and resolves references to candidate nodes
20
+ */
21
+ export declare function resolveConnectionsLocally(sourceNodeId: string, sourceFilePath: string, candidateNodes: {
22
+ id: string;
23
+ name: string;
24
+ type: string;
25
+ file_path: string;
26
+ }[], devmindPath: string, onMissing?: (rec: MissingRef) => void): string[];
27
+ /**
28
+ * Derive a node's identity/type/code directly from its declaration in a file — deterministic,
29
+ * no LLM. Used by `--fill-missing` to create nodes that Phase-1 extraction skipped. Returns
30
+ * null when the file isn't TS/JS or the symbol can't be located.
31
+ */
32
+ export declare function extractNodeFromFile(filePath: string, symbolName: string): {
33
+ name: string;
34
+ type: string;
35
+ signature: string | null;
36
+ codeSnapshot: string;
37
+ } | null;
38
+ export {};