/** * CodeSeeker Instruction Service * Reads and processes CODESEEKER.md files for project-specific instructions * Mirrors Claude Code's CLAUDE.md functionality with cascading instruction system */ export interface ProjectInstruction { source: 'global' | 'project' | 'directory' | 'local' | 'agents'; path: string; content: string; priority: number; } export interface ProjectInstructions { instructions: ProjectInstruction[]; combinedContent: string; hasInstructions: boolean; } export declare class CodeSeekerInstructionService { private logger; private cachedInstructions; constructor(); /** * Load project instructions with cascading priority * Mirrors Claude Code's CLAUDE.md hierarchy: * 1. Global (~/.codeseeker/CODESEEKER.md) - Priority 1 * 2. Project root (CODESEEKER.md) - Priority 2 * 3. Current directory (CODESEEKER.md) - Priority 3 * 4. Local overrides (.codeseeker/CODESEEKER.local.md) - Priority 4 * 5. AGENTS.md (project root or .agents/AGENTS.md) - Priority 5 */ loadProjectInstructions(projectPath: string): Promise; /** * Load global instructions from user's home directory */ private loadGlobalInstructions; /** * Load project root instructions */ private loadProjectRootInstructions; /** * Load directory-specific instructions (if different from project root) */ private loadDirectoryInstructions; /** * Load local override instructions (git-ignored personal settings) */ private loadLocalInstructions; /** * Load AGENTS.md instructions (common AI agent instruction file) * Supports both AGENTS.md and .agents/AGENTS.md patterns */ private loadAgentsInstructions; /** * Combine instructions by priority into a single content string */ private combineInstructions; /** * Get user-friendly title for instruction source */ private getSourceTitle; /** * Check if project has any CODESEEKER.md instructions */ hasInstructions(projectPath: string): Promise; /** * Get instructions summary for display */ getInstructionsSummary(projectPath: string): Promise; /** * Create a sample CODESEEKER.md file for new projects */ createSampleInstructions(projectPath: string): Promise; /** * Clear instruction cache (useful when files change) */ clearCache(): void; /** * Get the combined instructions content for a project */ getInstructionsContent(projectPath: string): Promise; } export default CodeSeekerInstructionService; //# sourceMappingURL=codeseeker-instruction-service.d.ts.map