(data: SerializedCallGraph)
| 82 | } |
| 83 | |
| 84 | function deserializeCallGraph(data: SerializedCallGraph): ExtractedCallGraph { |
| 85 | return { |
| 86 | filePath: data.filePath, |
| 87 | functions: new Map(data.functions), |
| 88 | callGraph: new Map(data.callGraph), |
| 89 | llmCalls: new Map(data.llmCalls), |
| 90 | imports: data.imports, |
| 91 | hash: data.hash |
| 92 | }; |
| 93 | } |
| 94 | |
| 95 | /** Initialize call graph persistence with extension context */ |
| 96 | export function initCallGraphPersistence(ctx: { globalState: { get: (key: string) => any; update: (key: string, value: any) => Thenable<void> } }): void { |
no outgoing calls
no test coverage detected