@nanocollective/nanocoder
Version:
A local-first CLI coding agent that brings the power of agentic coding tools like Claude Code and Gemini CLI to local models or controlled APIs like OpenRouter
44 lines • 1.27 kB
TypeScript
export interface ExistingRules {
source: string;
content: string;
type: 'agents' | 'rules' | 'instructions';
}
export declare class ExistingRulesExtractor {
private projectPath;
private skipAgentsMd;
private static readonly AI_CONFIG_FILES;
constructor(projectPath: string, skipAgentsMd?: boolean);
/**
* Find and extract content from existing AI configuration files
*/
extractExistingRules(): ExistingRules[];
/**
* Clean content and extract only AI-relevant information
*/
private cleanAndExtractRelevantContent;
/**
* Extract AI agent specific sections
*/
private extractAIAgentSections;
/**
* Extract rules file content
*/
private extractRulesSections;
/**
* Extract general instructions from any file
*/
private extractGeneralInstructions;
/**
* Extract key paragraphs based on content analysis
*/
private extractKeyParagraphs;
/**
* Determine the type of configuration file
*/
private determineFileType;
/**
* Merge existing rules into a single consolidated section
*/
static mergeExistingRules(existingRules: ExistingRules[]): string;
}
//# sourceMappingURL=existing-rules-extractor.d.ts.map