2026-08-31 19:51:17 +03:00
|
|
|
import type { GraphSnapshot } from "../core/contracts.ts";
|
2026-08-31 22:36:41 +03:00
|
|
|
import { graphSnapshot } from "../core/graph.ts";
|
2026-08-31 20:00:12 +03:00
|
|
|
import { stores } from "./stores.ts";
|
2026-08-31 19:51:17 +03:00
|
|
|
|
|
|
|
|
/**
|
2026-08-31 22:36:41 +03:00
|
|
|
* Server-side graph entry for the home view (GET /api/graph). A PURE READ:
|
|
|
|
|
* the extraction pipeline (the sole graph writer) is triggered by quiz
|
|
|
|
|
* answers in sessions (turn-service), never from here — the home view
|
|
|
|
|
* reflects whatever the pipeline has merged so far.
|
2026-08-31 19:51:17 +03:00
|
|
|
*/
|
|
|
|
|
export function graphView(): GraphSnapshot {
|
2026-08-31 20:00:12 +03:00
|
|
|
return graphSnapshot(stores);
|
2026-08-31 19:51:17 +03:00
|
|
|
}
|