You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gpt-pilot/scripts/lib/extension-source-classifier...

15 lines
434 B
TypeScript

export type BundledExtensionSourceClassification = {
normalizedPath: string;
isCodeFile: boolean;
isRuntimeApiBarrel: boolean;
isPublicApiBarrel: boolean;
isTestLike: boolean;
isInfraArtifact: boolean;
isProductionSource: boolean;
};
export function normalizeExtensionSourcePath(filePath: string): string;
export function classifyBundledExtensionSourcePath(
filePath: string,
): BundledExtensionSourceClassification;