Append one accomplishment/decision/blocker/note to the project's worklog.
(cwd: string, sessionId: string | null, entry: string, kind: WorklogKind = 'work')
| 435 | */ |
| 436 | private messagesFtsReady = false; |
| 437 | |
| 438 | /** |
| 439 | * FTS5 over conversation text so `/search` can find past turns the way Hermes |
| 440 | * searches its session store. External-content table + triggers; LIKE fallback. |
| 441 | */ |
| 442 | private initMessagesFts(): void { |
| 443 | try { |
| 444 | this.db.exec(` |
| 445 | CREATE VIRTUAL TABLE IF NOT EXISTS messages_fts USING fts5(content, content='messages', content_rowid='id'); |
| 446 | CREATE TRIGGER IF NOT EXISTS messages_ai AFTER INSERT ON messages BEGIN |
no test coverage detected