diff --git a/agent/src/index.ts b/agent/src/index.ts index acd73e311d2..f9d444f5e61 100644 --- a/agent/src/index.ts +++ b/agent/src/index.ts @@ -32,7 +32,7 @@ import yargs from "yargs"; import path from "path"; import { fileURLToPath } from "url"; import { character } from "./character.ts"; -import { DirectClient } from "@ai16z/client-direct"; +import type { DirectClient } from "@ai16z/client-direct"; const __filename = fileURLToPath(import.meta.url); // get the resolved path to the file const __dirname = path.dirname(__filename); // get the name of the directory @@ -181,10 +181,9 @@ function initializeDatabase(dataDir: string) { }); return db; } else { - const filePath = path.resolve( - dataDir, - process.env.SQLITE_FILE ?? "db.sqlite" - ); + const filePath = + process.env.SQLITE_FILE ?? path.resolve(dataDir, "db.sqlite"); + // ":memory:"; const db = new SqliteDatabaseAdapter(new Database(filePath)); return db; }