Files
learnharness/src/server/stores.ts
T

20 lines
677 B
TypeScript
Raw Normal View History

/**
* THE COMPOSITION ROOT for storage — the single place concrete store
* adapters are wired. Everything else (core, services, agents) codes against
* the port types in core/ports.ts and receives instances through this
* module. Swapping the fs adapter for SQLite later changes exactly this
* file (and the adapter implementations in src/store/).
*/
import { chatStore } from "../store/chats.ts";
import { graphStore } from "../store/graph.ts";
import { jobStore } from "../store/jobs.ts";
/** The wired adapters. Satisfies core/graph.ts's GraphDeps structurally. */
export const stores = {
chatStore,
graphStore,
jobStore,
};
export type Stores = typeof stores;