- MCP
- code on this site's /mcp
- CLI
- none: the JSON below is the answer
- JSON
- /christopher/abso-core/files/worker/project/memory-store.ts?format=json
10 linesFirst import 100%Last change First import in version 0, 1 version changed it
1import type { Entry, ProjectStore } from "./project-types.ts";
3/** A store that keeps entries in memory, for tests and local runs. */
4export class MemoryStore implements ProjectStore {
5 readonly entries: Entry[] = [];
6 append(entries: readonly Entry[]): void {
7 // A round trip through JSON, so tests catch anything that wouldn't survive storage.
8 for (const e of entries) this.entries.push(JSON.parse(JSON.stringify(e)) as Entry);
9 }
10}