UNPKG

arela

Version:

AI-powered CTO with multi-agent orchestration, code summarization, visual testing (web + mobile) for blazing fast development.

46 lines 1.5 kB
/** * Group endpoints and calls by slice */ import { ApiEndpoint, ApiCall, EndpointMatch, SliceGroup, DriftIssue } from './types'; /** * Group endpoints by slice */ export declare function groupEndpointsBySlice(endpoints: ApiEndpoint[]): Map<string, ApiEndpoint[]>; /** * Group calls by slice */ export declare function groupCallsBySlice(calls: ApiCall[]): Map<string, ApiCall[]>; /** * Group matches by slice */ export declare function groupMatchesBySlice(matches: EndpointMatch[]): Map<string, EndpointMatch[]>; /** * Group drift issues by slice */ export declare function groupDriftBySlice(drift: DriftIssue[]): Map<string, DriftIssue[]>; /** * Create slice groups with all related data */ export declare function createSliceGroups(endpointsBySlice: Map<string, ApiEndpoint[]>, callsBySlice: Map<string, ApiCall[]>, matchesBySlice: Map<string, EndpointMatch[]>, driftBySlice: Map<string, DriftIssue[]>): SliceGroup[]; /** * Extract slice name from API path/URL * Examples: * /api/users/123 → users * /api/workouts/456 → workouts * /api/nutrition/meals → nutrition */ export declare function extractSlice(path: string): string; /** * Get slice statistics */ export declare function getSliceStats(groups: SliceGroup[]): { totalSlices: number; sliceDetails: Array<{ name: string; endpointCount: number; callCount: number; matchCount: number; driftCount: number; }>; }; //# sourceMappingURL=slice-grouper.d.ts.map