chore: upgrade @ocas/* to ^0.3.0, migrate better-sqlite3 → node:sqlite
CI / check (pull_request) Failing after 1m13s
CI / check (pull_request) Failing after 1m13s
- @ocas/core and @ocas/fs upgraded from ^0.2.2 to ^0.3.0 - agent-hermes: replace better-sqlite3 with node:sqlite (DatabaseSync) - Remove better-sqlite3 and @types/better-sqlite3 dependencies - Fix remaining bun references in cli test helpers (execFileSync) Refs #28
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import Database from "better-sqlite3";
|
||||
import { describe, expect, test } from 'vitest';
|
||||
import { mkdtemp, rm, writeFile } from "node:fs/promises";
|
||||
import { tmpdir } from "node:os";
|
||||
import { join } from "node:path";
|
||||
import { DatabaseSync } from "node:sqlite";
|
||||
import { createMemoryStore, refs, validate, walk } from "@ocas/core";
|
||||
|
||||
import {
|
||||
@@ -133,10 +133,10 @@ describe("storeHermesSessionDetail", () => {
|
||||
|
||||
// ── SQLite fallback tests ──────────────────────────────────────────
|
||||
|
||||
type TestDb = InstanceType<typeof Database>;
|
||||
type TestDb = DatabaseSync;
|
||||
|
||||
function createTestDb(dbPath: string): TestDb {
|
||||
const db = new Database(dbPath);
|
||||
const db = new DatabaseSync(dbPath);
|
||||
db.exec(`CREATE TABLE sessions (
|
||||
id TEXT PRIMARY KEY,
|
||||
model TEXT NOT NULL,
|
||||
|
||||
Reference in New Issue
Block a user