Scope memories by API token and add shared-token e2e coverage

This commit is contained in:
Agent Zero
2026-04-01 23:30:58 -04:00
parent 98baa27c90
commit 026ae27366
17 changed files with 1096 additions and 428 deletions

View File

@@ -0,0 +1,8 @@
ALTER TABLE memories
ADD COLUMN IF NOT EXISTS auth_scope VARCHAR(255) NOT NULL DEFAULT 'public';
CREATE INDEX IF NOT EXISTS idx_memories_auth_scope
ON memories (auth_scope);
CREATE INDEX IF NOT EXISTS idx_memories_auth_scope_agent
ON memories (auth_scope, agent_id);