agentdb 1.5.5 → 1.5.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.
@@ -1,4 +1,4 @@
1
- /*! AgentDB Browser Bundle v1.5.4 | MIT License | https://agentdb.ruv.io */
1
+ /*! AgentDB Browser Bundle v1.5.5 | MIT License | https://agentdb.ruv.io */
2
2
  /*! Backward compatible with v1.0.7 API | Uses sql.js WASM SQLite */
3
3
 
4
4
  // We are modularizing this manually because the current modularize setting in Emscripten has some issues:
@@ -193,7 +193,7 @@ else if (typeof exports === 'object'){
193
193
  ;(function(global) {
194
194
  'use strict';
195
195
 
196
- // AgentDB v1.5.4 - v1.0.7 Compatible Browser Bundle
196
+ // AgentDB v1.5.5 - v1.0.7 Compatible Browser Bundle
197
197
 
198
198
  var sqlReady = false;
199
199
  var SQL = null;
@@ -539,7 +539,7 @@ else if (typeof exports === 'object'){
539
539
 
540
540
  // Create AgentDB namespace with all exports
541
541
  var AgentDB = {
542
- version: '1.5.4',
542
+ version: '1.5.5',
543
543
  Database: Database,
544
544
  ready: false,
545
545
 
@@ -577,6 +577,6 @@ else if (typeof exports === 'object'){
577
577
  global.SQLiteVectorDB = Database;
578
578
  }
579
579
 
580
- console.log('AgentDB v1.5.4 loaded (v1.0.7 API compatible)');
580
+ console.log('AgentDB v1.5.5 loaded (v1.0.7 API compatible)');
581
581
 
582
582
  })(typeof window !== 'undefined' ? window : this);
@@ -360,3 +360,19 @@ CREATE TABLE IF NOT EXISTS learning_experiences (
360
360
  CREATE INDEX IF NOT EXISTS idx_learning_experiences_session ON learning_experiences(session_id);
361
361
  CREATE INDEX IF NOT EXISTS idx_learning_experiences_timestamp ON learning_experiences(timestamp DESC);
362
362
  CREATE INDEX IF NOT EXISTS idx_learning_experiences_reward ON learning_experiences(reward DESC);
363
+
364
+ -- Learning sessions table for RL session management
365
+ CREATE TABLE IF NOT EXISTS learning_sessions (
366
+ id TEXT PRIMARY KEY,
367
+ user_id TEXT NOT NULL,
368
+ session_type TEXT NOT NULL,
369
+ config JSON NOT NULL,
370
+ start_time INTEGER NOT NULL DEFAULT (strftime('%s', 'now')),
371
+ end_time INTEGER,
372
+ status TEXT NOT NULL DEFAULT 'active',
373
+ metadata JSON
374
+ );
375
+
376
+ CREATE INDEX IF NOT EXISTS idx_learning_sessions_user ON learning_sessions(user_id);
377
+ CREATE INDEX IF NOT EXISTS idx_learning_sessions_status ON learning_sessions(status);
378
+ CREATE INDEX IF NOT EXISTS idx_learning_sessions_start ON learning_sessions(start_time DESC);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentdb",
3
- "version": "1.5.5",
3
+ "version": "1.5.6",
4
4
  "description": "AgentDB - Frontier Memory Features with MCP Integration: Causal reasoning, reflexion memory, skill library, and automated learning. 150x faster vector search. Full Claude Desktop support via Model Context Protocol.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -360,3 +360,19 @@ CREATE TABLE IF NOT EXISTS learning_experiences (
360
360
  CREATE INDEX IF NOT EXISTS idx_learning_experiences_session ON learning_experiences(session_id);
361
361
  CREATE INDEX IF NOT EXISTS idx_learning_experiences_timestamp ON learning_experiences(timestamp DESC);
362
362
  CREATE INDEX IF NOT EXISTS idx_learning_experiences_reward ON learning_experiences(reward DESC);
363
+
364
+ -- Learning sessions table for RL session management
365
+ CREATE TABLE IF NOT EXISTS learning_sessions (
366
+ id TEXT PRIMARY KEY,
367
+ user_id TEXT NOT NULL,
368
+ session_type TEXT NOT NULL,
369
+ config JSON NOT NULL,
370
+ start_time INTEGER NOT NULL DEFAULT (strftime('%s', 'now')),
371
+ end_time INTEGER,
372
+ status TEXT NOT NULL DEFAULT 'active',
373
+ metadata JSON
374
+ );
375
+
376
+ CREATE INDEX IF NOT EXISTS idx_learning_sessions_user ON learning_sessions(user_id);
377
+ CREATE INDEX IF NOT EXISTS idx_learning_sessions_status ON learning_sessions(status);
378
+ CREATE INDEX IF NOT EXISTS idx_learning_sessions_start ON learning_sessions(start_time DESC);