refactor: streamline query requests and session storage
This commit is contained in:
@@ -3,6 +3,7 @@ import { mkdtemp, rm } from "node:fs/promises";
|
||||
import { tmpdir } from "node:os";
|
||||
import { join } from "node:path";
|
||||
|
||||
import { SessionWorkspaceStore } from "../../src/sessions/workspace-store.js";
|
||||
import { SessionTranscriptStore } from "../../src/sessions/transcriptStore.js";
|
||||
|
||||
describe("SessionTranscriptStore", () => {
|
||||
@@ -11,8 +12,7 @@ describe("SessionTranscriptStore", () => {
|
||||
|
||||
beforeEach(async () => {
|
||||
tempDir = await mkdtemp(join(tmpdir(), "tjwater-transcript-"));
|
||||
store = new SessionTranscriptStore(tempDir);
|
||||
await store.initialize();
|
||||
store = new SessionTranscriptStore(new SessionWorkspaceStore(tempDir));
|
||||
});
|
||||
|
||||
afterEach(async () => {
|
||||
|
||||
Reference in New Issue
Block a user