system prompt backend

This commit is contained in:
Storme-bit
2026-04-19 02:32:38 -07:00
parent 9c903a56ae
commit a0154e15e6
4 changed files with 25 additions and 27 deletions

View File

@@ -34,6 +34,10 @@ function getDB() {
db.exec(`ALTER TABLE projects ADD COLUMN notes TEXT`); // ← add this
} catch {}
try {
db.exec(`ALTER TABLE projects ADD COLUMN system_prompt TEXT`);
} catch {}
// Sync FTS index with any existing episodes data
db.exec(`INSERT OR REPLACE INTO episodes_fts(rowid, user_message, ai_response)
SELECT id, user_message, ai_response FROM episodes`);