Repoint legacy V0 scaffold to data/legacy-graph — the live store owns data/graph exclusively
This commit is contained in:
@@ -16,6 +16,10 @@ export const PATHS = {
|
|||||||
graph: path.join(ROOT, "data", "graph"),
|
graph: path.join(ROOT, "data", "graph"),
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The LIVE graph store (src/store/graph.ts) — owned by the app's emission
|
||||||
|
* pipeline. Line shapes: src/core/contracts.ts.
|
||||||
|
*/
|
||||||
export const LEDGER_FILES = {
|
export const LEDGER_FILES = {
|
||||||
nodes: path.join(PATHS.graph, "nodes.jsonl"),
|
nodes: path.join(PATHS.graph, "nodes.jsonl"),
|
||||||
edges: path.join(PATHS.graph, "edges.jsonl"),
|
edges: path.join(PATHS.graph, "edges.jsonl"),
|
||||||
@@ -23,3 +27,17 @@ export const LEDGER_FILES = {
|
|||||||
mappings: path.join(PATHS.graph, "mappings.jsonl"),
|
mappings: path.join(PATHS.graph, "mappings.jsonl"),
|
||||||
sessions: path.join(PATHS.graph, "sessions.jsonl"),
|
sessions: path.join(PATHS.graph, "sessions.jsonl"),
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The legacy V0 scaffold (src/ledger.ts, src/cli.ts, src/extract/) writes
|
||||||
|
* HERE instead — dormant pre-pivot reference code with its own line shapes
|
||||||
|
* (src/schema.ts). Kept compiling for the future retroactive bootstrap,
|
||||||
|
* which will target the contracts.ts shapes, not these.
|
||||||
|
*/
|
||||||
|
export const LEGACY_LEDGER_FILES = {
|
||||||
|
nodes: path.join(PATHS.data, "legacy-graph", "nodes.jsonl"),
|
||||||
|
edges: path.join(PATHS.data, "legacy-graph", "edges.jsonl"),
|
||||||
|
events: path.join(PATHS.data, "legacy-graph", "events.jsonl"),
|
||||||
|
mappings: path.join(PATHS.data, "legacy-graph", "mappings.jsonl"),
|
||||||
|
sessions: path.join(PATHS.data, "legacy-graph", "sessions.jsonl"),
|
||||||
|
} as const;
|
||||||
|
|||||||
+1
-1
@@ -6,7 +6,7 @@
|
|||||||
import * as fs from "node:fs";
|
import * as fs from "node:fs";
|
||||||
import * as path from "node:path";
|
import * as path from "node:path";
|
||||||
import { randomBytes } from "node:crypto";
|
import { randomBytes } from "node:crypto";
|
||||||
import { LEDGER_FILES } from "../config.ts";
|
import { LEGACY_LEDGER_FILES as LEDGER_FILES } from "../config.ts";
|
||||||
|
|
||||||
export function newId(prefix: string): string {
|
export function newId(prefix: string): string {
|
||||||
return `${prefix}_${randomBytes(5).toString("hex")}`;
|
return `${prefix}_${randomBytes(5).toString("hex")}`;
|
||||||
|
|||||||
Reference in New Issue
Block a user