(fn: (db: Database) => void)
| 198 | } |
| 199 | |
| 200 | function writeDb(fn: (db: Database) => void): void { |
| 201 | const db = openTestDb(contextDbPath(), { readwrite: true }); |
| 202 | try { |
| 203 | fn(db); |
| 204 | } finally { |
| 205 | db.close(); |
| 206 | } |
| 207 | } |
| 208 | |
| 209 | function seedMemory(content: string): void { |
| 210 | const projectIdentity = resolveProjectIdentity(realpathSync(pathResolve(h.opencode.env.workdir))); |
no test coverage detected