arela
Version:
AI-powered CTO with multi-agent orchestration, code summarization, visual testing (web + mobile) for blazing fast development.
39 lines • 1.06 kB
TypeScript
/**
* Flow Tracer Module
* Traces execution paths through the codebase using AST-like pattern matching
* Identifies function calls, data flow, and dependencies
*/
export interface TraceNode {
id: string;
name: string;
type: 'function' | 'import' | 'variable' | 'class' | 'async_operation';
file: string;
line: number;
dependencies: string[];
calledBy: string[];
calls: string[];
asyncOperations: string[];
dataFlows: Array<{
from: string;
to: string;
type: string;
}>;
}
export interface ExecutionPath {
startPoint: string;
endPoint: string;
path: string[];
depth: number;
hasAsyncCalls: boolean;
potentialIssues: string[];
}
export interface TraceResult {
nodes: TraceNode[];
executionPaths: ExecutionPath[];
tracingDuration: number;
}
/**
* Trace execution paths from entry points through the codebase
*/
export declare function traceExecutionPaths(cwd: string, entryPointName: string): Promise<TraceResult>;
//# sourceMappingURL=tracer.d.ts.map