wip: [01-stabilize] paused at task 1/1 - OCR Hallucination Immune logic via Semantic delta window and fret-isolation
This commit is contained in:
19
.agent/services/claude-mem/scripts/wipe-chroma.cjs
Normal file
19
.agent/services/claude-mem/scripts/wipe-chroma.cjs
Normal file
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env node
|
||||
/**
|
||||
* Wipes the Chroma data directory so backfillAllProjects rebuilds it on next worker start.
|
||||
* Chroma is always rebuildable from SQLite — this is safe.
|
||||
*/
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const os = require('os');
|
||||
|
||||
const chromaDir = path.join(os.homedir(), '.claude-mem', 'chroma');
|
||||
|
||||
if (fs.existsSync(chromaDir)) {
|
||||
const before = fs.readdirSync(chromaDir);
|
||||
console.log(`Wiping ${chromaDir} (${before.length} items)...`);
|
||||
fs.rmSync(chromaDir, { recursive: true, force: true });
|
||||
console.log('Done. Chroma will rebuild from SQLite on next worker restart.');
|
||||
} else {
|
||||
console.log('Chroma directory does not exist, nothing to wipe.');
|
||||
}
|
||||
Reference in New Issue
Block a user