mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-05 01:50:27 +08:00
feat: Implement CLAUDE.md Manager View with file tree, viewer, and metadata actions
- Added main JavaScript functionality for CLAUDE.md management including file loading, rendering, and editing capabilities. - Created a test HTML file to validate the functionality of the CLAUDE.md manager. - Introduced CLI generation examples and documentation for rules creation via CLI. - Enhanced error handling and notifications for file operations.
This commit is contained in:
@@ -834,8 +834,37 @@ export async function handler(params: Record<string, unknown>): Promise<ToolResu
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Uninstall CodexLens by removing the venv directory
|
||||
* @returns Uninstall result
|
||||
*/
|
||||
async function uninstallCodexLens(): Promise<BootstrapResult> {
|
||||
try {
|
||||
// Check if venv exists
|
||||
if (!existsSync(CODEXLENS_VENV)) {
|
||||
return { success: false, error: 'CodexLens not installed (venv not found)' };
|
||||
}
|
||||
|
||||
console.log('[CodexLens] Uninstalling CodexLens...');
|
||||
console.log(`[CodexLens] Removing directory: ${CODEXLENS_DATA_DIR}`);
|
||||
|
||||
// Remove the entire .codexlens directory
|
||||
const fs = await import('fs');
|
||||
fs.rmSync(CODEXLENS_DATA_DIR, { recursive: true, force: true });
|
||||
|
||||
// Reset bootstrap cache
|
||||
bootstrapChecked = false;
|
||||
bootstrapReady = false;
|
||||
|
||||
console.log('[CodexLens] CodexLens uninstalled successfully');
|
||||
return { success: true, message: 'CodexLens uninstalled successfully' };
|
||||
} catch (err) {
|
||||
return { success: false, error: `Failed to uninstall CodexLens: ${(err as Error).message}` };
|
||||
}
|
||||
}
|
||||
|
||||
// Export for direct usage
|
||||
export { ensureReady, executeCodexLens, checkVenvStatus, bootstrapVenv, checkSemanticStatus, installSemantic };
|
||||
export { ensureReady, executeCodexLens, checkVenvStatus, bootstrapVenv, checkSemanticStatus, installSemantic, uninstallCodexLens };
|
||||
|
||||
// Backward-compatible export for tests
|
||||
export const codexLensTool = {
|
||||
|
||||
Reference in New Issue
Block a user