@codemcp/knowledge-core
Version:
Core functionality for agentic knowledge guidance system
22 lines (21 loc) • 883 B
TypeScript
/**
* Symlink management utilities for local_folder sources
*/
/**
* Create symlinks for local_folder source paths
* @param sourcePaths - Array of local paths to link
* @param targetDir - Directory where symlinks should be created (.knowledge/docsets/{id})
* @param projectRoot - Project root directory for resolving relative paths
*/
export declare function createSymlinks(sourcePaths: string[], targetDir: string, projectRoot: string): Promise<void>;
/**
* Validate that symlinks exist and point to valid targets
* @param targetDir - Directory containing symlinks
* @returns True if all symlinks are valid
*/
export declare function validateSymlinks(targetDir: string): Promise<boolean>;
/**
* Remove all symlinks in a directory
* @param targetDir - Directory containing symlinks to remove
*/
export declare function removeSymlinks(targetDir: string): Promise<void>;