Fix database setup, test encryption and repositories - all working

Co-authored-by: southseact-3d <217551146+southseact-3d@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-09 19:37:28 +00:00
parent 650d849ad2
commit fd6d2d641b
7 changed files with 539 additions and 20 deletions

View File

@@ -32,11 +32,14 @@ function initDatabase(databasePath, options = {}) {
// Initialize database with options
const dbOptions = {
verbose: options.verbose ? console.log : null,
fileMustExist: false,
timeout: options.timeout || 5000,
...options
};
// Add verbose if it's a function
if (options.verbose && typeof options.verbose === 'function') {
dbOptions.verbose = options.verbose;
}
db = new Database(databasePath, dbOptions);