Weekly dead-code-agent execution: removed scripts/fix-duplication.mjs and src/services/memory/db-adapter.js

Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
google-labs-jules[bot]andPR0M3TH3AN committed 2026-02-17 14:33:14 +00:00
1 parent 199c34648b
commit 825d596a59
16 files changed
+445 -237

No files matched your search

-32
View File
@@ -1,32 +0,0 @@
import fs from 'fs';
const fix = (filePath) => {
let content = fs.readFileSync(filePath, 'utf8');
const header = '| # | Agent Name | Prompt File |\n|---|------------|-------------|';
const parts = content.split(header);
if (parts.length < 2) return; // Should not happen
const pre = parts[0];
const post = parts[1];
const lines = post.split('\n');
const tableLines = [];
let i = 0;
// Skip initial empty lines if any (though usually generateTable doesn't add them at start)
while(i < lines.length && lines[i].trim() === '') i++;
// Capture rows
while(i < lines.length && lines[i].trim().startsWith('|')) {
tableLines.push(lines[i]);
i++;
}
const newContent = pre + header + '\n' + tableLines.join('\n') + '\n';
fs.writeFileSync(filePath, newContent);
console.log(`Fixed ${filePath}`);
};
fix('src/prompts/daily-scheduler.md');
fix('src/prompts/weekly-scheduler.md');