arela
Version:
AI-powered CTO with multi-agent orchestration, code summarization, visual testing (web + mobile) for blazing fast development.
62 lines • 1.86 kB
TypeScript
/**
* Multi-repo coordination - handles analysis across multiple repositories
* Particularly focuses on API contract matching between frontend and backend
*/
import { ApiDrift } from "./types.js";
export interface ApiCallPattern {
method: string;
url: string;
file: string;
line: number;
}
export interface ApiEndpointPattern {
method: string;
path: string;
file: string;
line: number;
}
/**
* Detect API calls in frontend code (fetch, axios, etc.)
*/
export declare function detectApiCalls(imports: Array<{
from: string;
to: string | null;
}>, files: Array<{
path: string;
content?: string;
}>): ApiCallPattern[];
/**
* Detect API endpoints in backend code (Express, Fastify, etc.)
*/
export declare function detectApiEndpoints(files: Array<{
path: string;
content?: string;
}>): ApiEndpointPattern[];
/**
* Match API calls to endpoints and detect drift
*/
export declare function matchApiCalls(frontendCalls: ApiCallPattern[], backendEndpoints: ApiEndpointPattern[]): ApiDrift[];
/**
* Calculate API drift percentage
*/
export declare function calculateApiDriftPercentage(driftResults: ApiDrift[]): number;
/**
* Get unimplemented endpoints (backend endpoints not called by frontend)
*/
export declare function getUnimplementedEndpoints(frontendCalls: ApiCallPattern[], backendEndpoints: ApiEndpointPattern[]): ApiEndpointPattern[];
/**
* Analyze repository relationships for multi-repo analysis
*/
export interface RepositoryRelationship {
frontendRepo: string;
backendRepo: string;
apiCallCount: number;
matchedEndpoints: number;
driftPercentage: number;
criticalMismatches: number;
}
export declare function analyzeRepoRelationships(repoAnalyses: Array<{
path: string;
name: string;
}>): RepositoryRelationship[];
//# sourceMappingURL=multi-repo.d.ts.map