qraft
Version:
A powerful CLI tool to qraft structured project setups from GitHub template repositories
32 lines • 1.28 kB
TypeScript
import { DirectoryStructure } from './directoryScanner';
import { StructureAnalysis } from './structureAnalyzer';
import { TagDetectionResult } from './tagDetector';
export interface BoxNameSuggestion {
name: string;
confidence: number;
reason: string;
category: 'directory' | 'package' | 'semantic' | 'structure' | 'fallback';
}
export interface BoxNameResult {
primaryName: string;
alternatives: BoxNameSuggestion[];
confidence: number;
derivationPath: string[];
}
export declare class BoxNameDerivation {
deriveBoxName(localPath: string, structure: DirectoryStructure, tags: TagDetectionResult, analysis: StructureAnalysis, providedName?: string): BoxNameResult;
private generateNameSuggestions;
private analyzeNestedStructure;
private analyzeFilePatterns;
private extractPackageName;
private extractDirectoryName;
private sanitizeName;
private fallbackName;
private buildDerivationPath;
getNameSuggestions(localPath: string, structure: DirectoryStructure, tags: TagDetectionResult, analysis: StructureAnalysis, count?: number): BoxNameSuggestion[];
validateName(name: string): {
valid: boolean;
reason?: string | undefined;
};
}
//# sourceMappingURL=boxNameDerivation.d.ts.map