mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-12-04 06:21:59 +09:00
Re-applies dskarasev's #1426 on current main. SQLiteBackend: a memory.db created by the CLI's memory-initializer DDL has no access_level, version or "references" column. CREATE TABLE IF NOT EXISTS left that table alone, so every store() failed with "table memory_entries has no column named access_level". initialize() now adds the missing columns (and access_count / last_accessed_at for older DDLs) with createDefaultEntry() defaults. memory_store: accepts an optional `metadata` object and persists it on both write paths (AgentDB bridge and sql.js fallback), which both hard-coded '{}'. Arrays, null and scalars are rejected at the MCP boundary. Tests: sqlite-backend-legacy-schema.test.ts (fails on main with the no-such-column error) and memory-store-metadata-1426.test.ts (sql.js path, bridge path, input check; 6 of 7 fail on main). Co-Authored-By: dskarasev <dskarasev@users.noreply.github.com> Co-Authored-By: claude-flow <ruv@ruv.net>