Create Metagraph Type.Module with Config, BaseNode, BaseEdge entries

Add src/graphs/modules/metagraph.ts exporting Metagraph as Type.Module()
with Config (Union defaults for type, Boolean defaults for multi/allowSelfLoops),
BaseNode (optional created/modified/metadata with Type.Unknown()), and
BaseEdge (type string, optional metadata with Type.Unknown()). Also export
GRAPH_STATUS const and GraphStatus TypeBox schema for sqlite host usage.
Update mod.ts to re-export from modules/metagraph.ts.
This commit is contained in:
2026-05-29 10:55:18 +00:00
parent 2b0badd501
commit 79141d594d
2 changed files with 42 additions and 0 deletions

View File

@@ -1,2 +1,7 @@
export * from "./types.ts";
export * from "./schemaBuilder.ts";
export {
Metagraph,
GRAPH_STATUS,
GraphStatus,
} from "./modules/metagraph.ts";