Files
openclaw/src/plugin-sdk/sqlite-runtime-testing.ts
T
2026-08-12 00:04:39 -07:00

31 lines
1.1 KiB
TypeScript

// Private local-only SQLite lifecycle helpers for first-party tests.
import {
appendTranscriptEvent,
type SessionTranscriptAccessScope,
type TranscriptEvent,
} from "../config/sessions/session-accessor.js";
/** Appends a raw SQLite transcript event for first-party tests only. */
export async function appendSqliteSessionTranscriptEventForTest(
params: SessionTranscriptAccessScope & { event: TranscriptEvent },
): Promise<void> {
await appendTranscriptEvent(params, params.event);
}
export { formatSqliteSessionFileMarker } from "../config/sessions/legacy-sqlite-marker.js";
export {
appendSqliteTrajectoryRuntimeEvents,
loadSqliteTrajectoryRuntimeEvents,
type SqliteTrajectoryRuntimeScope,
} from "../trajectory/runtime-store.sqlite.js";
export { type TrajectoryEvent as SqliteTrajectoryRuntimeEventForTest } from "../trajectory/types.js";
export {
closeOpenClawAgentDatabasesForTest,
openOpenClawAgentDatabase,
} from "../state/openclaw-agent-db.js";
export {
closeOpenClawStateDatabaseForTest,
openOpenClawStateDatabase,
} from "../state/openclaw-state-db.js";