feat: add BoxBrain persona runtime APIs

This commit is contained in:
2026-05-11 17:01:19 +09:00
parent c5a3d7e835
commit 3ee6b233ea
13 changed files with 2043 additions and 9 deletions

16
tests/helpers.ts Normal file
View File

@@ -0,0 +1,16 @@
import { IdentityDB } from 'identitydb';
const openDbs: IdentityDB[] = [];
export async function createDb() {
const db = await IdentityDB.connect({ client: 'sqlite', filename: ':memory:' });
await db.initialize();
openDbs.push(db);
return db;
}
export async function closeOpenDbs() {
while (openDbs.length > 0) {
await openDbs.pop()!.close();
}
}