agentdb 1.1.5 → 1.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -37,10 +37,10 @@ CREATE TABLE IF NOT EXISTS causal_edges (
37
37
  updated_at INTEGER NOT NULL DEFAULT (strftime('%s', 'now')),
38
38
  last_validated_at INTEGER,
39
39
 
40
- metadata JSON,
40
+ metadata JSON
41
41
 
42
- FOREIGN KEY(from_memory_id) REFERENCES episodes(id) ON DELETE CASCADE,
43
- FOREIGN KEY(to_memory_id) REFERENCES episodes(id) ON DELETE CASCADE
42
+ -- Note: Foreign keys removed to allow flexible causal edges between any concepts
43
+ -- from_memory_id and to_memory_id can be 0 for abstract causal relationships
44
44
  );
45
45
 
46
46
  CREATE INDEX IF NOT EXISTS idx_causal_edges_from ON causal_edges(from_memory_id, from_memory_type);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentdb",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "description": "AgentDB - Frontier Memory Features: Causal reasoning, reflexion memory, skill library, explainable recall, and automated learning for AI agents. 150x faster vector search with HNSW indexing.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -37,10 +37,10 @@ CREATE TABLE IF NOT EXISTS causal_edges (
37
37
  updated_at INTEGER NOT NULL DEFAULT (strftime('%s', 'now')),
38
38
  last_validated_at INTEGER,
39
39
 
40
- metadata JSON,
40
+ metadata JSON
41
41
 
42
- FOREIGN KEY(from_memory_id) REFERENCES episodes(id) ON DELETE CASCADE,
43
- FOREIGN KEY(to_memory_id) REFERENCES episodes(id) ON DELETE CASCADE
42
+ -- Note: Foreign keys removed to allow flexible causal edges between any concepts
43
+ -- from_memory_id and to_memory_id can be 0 for abstract causal relationships
44
44
  );
45
45
 
46
46
  CREATE INDEX IF NOT EXISTS idx_causal_edges_from ON causal_edges(from_memory_id, from_memory_type);