Commit Graph

5 Commits

Author SHA1 Message Date
c999e24242 Merge branch 'feat/drift/metagraph-module'
# Conflicts:
#	src/graphs/mod.ts
2026-05-29 10:55:28 +00:00
79141d594d 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.
2026-05-29 10:55:18 +00:00
62ba181b7e remove SchemaBuilder — replaced by Type.Module() per ADR-009 2026-05-29 10:53:36 +00:00
bb544469fd fix: use import type for GraphConfig, remove verbatim-module-syntax exclusion
The verbatim-module-syntax lint rule was correctly flagging that
GraphConfig is only used in a type position (typeof GraphConfig). Since
typeof resolves purely at the type level, import type works fine here
and is the correct form. No lint exclusion needed.

Also: deno fmt across all files (markdown line wrapping).
2026-05-28 13:38:42 +00:00
8c68dd6b07 feat: deno-first storage package with sqlite host and graph schemas
Scaffolded @alkdev/storage from @ade/storage_sqlite and @ade/core/graphs:
- graphs/ module: TypeBox schema types + SchemaBuilder (from @ade/core/graphs)
- sqlite/ module: Drizzle table defs, relations, injectable client (from @ade/storage_sqlite)
- pg/ module: placeholder for Postgres host
- deno.json configured for JSR with subpath exports (./graphs, ./sqlite, ./pg)
- Imports swapped: @sinclair/typebox → @alkdev/typebox, drizzle-typebox → @alkdev/drizzlebox
- Client is now injectable (no hardcoded env vars or module-level side effects)
- no-slow-types lint excluded (Drizzle generics); --allow-slow-types on publish
2026-05-28 12:19:48 +00:00