Purge legacy pre-pivot scaffold (decided: extractor/merger-only architecture)

Delete src/extract/ (pi-session normalize/extract/merge stubs), src/ledger.ts,
src/schema.ts, src/derive.ts, src/queries/, src/cli.ts (npm run ingest/graph/
what-next), data/legacy-graph/, data/agent/ (pi agentDir vestige), and their
config.ts/package.json references.

The retroactive-bootstrap goal is dropped: the live chat store (AI SDK
UIMessages) is the only session format now, and the old pi JSONLs in
data/sessions/ stay on disk, inert. contracts.ts is the single schema.
This commit is contained in:
Amos
2026-08-31 19:35:20 +03:00
parent 8dd14b5235
commit bfb31568fc
11 changed files with 0 additions and 654 deletions
-16
View File
@@ -11,8 +11,6 @@ export const PATHS = {
data: path.join(ROOT, "data"),
/** Chat sessions (AI SDK UIMessage transcripts, one JSON file per chat). */
chats: path.join(ROOT, "data", "chats"),
/** Old pi session JSONLs — retroactive bootstrap input only. */
sessions: path.join(ROOT, "data", "sessions"),
graph: path.join(ROOT, "data", "graph"),
} as const;
@@ -27,17 +25,3 @@ export const LEDGER_FILES = {
mappings: path.join(PATHS.graph, "mappings.jsonl"),
sessions: path.join(PATHS.graph, "sessions.jsonl"),
} 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;