agentdb 1.3.3 → 1.3.4

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.3.3 | MIT License | https://agentdb.ruv.io */
1
+ /*! AgentDB Browser Bundle v1.3.4 | 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,12 +193,10 @@ else if (typeof exports === 'object'){
193
193
  ;(function(global) {
194
194
  'use strict';
195
195
 
196
- // AgentDB v1.3.3 - v1.0.7 Compatible Browser Bundle
197
- var AgentDB = {
198
- version: '1.3.3',
196
+ // AgentDB v1.3.4 - v1.0.7 Compatible Browser Bundle
199
197
 
200
- // Backward compatible Database class
201
- Database: function(data) {
198
+ // Backward compatible Database class (v1.0.7 API)
199
+ function Database(data) {
202
200
  var db = null;
203
201
  var SQL = global.SQL || (typeof module !== 'undefined' && module.exports ? module.exports.SQL : null);
204
202
 
@@ -262,18 +260,34 @@ else if (typeof exports === 'object'){
262
260
  )
263
261
  `);
264
262
  }
263
+ }
264
+
265
+ // Create AgentDB namespace with all exports
266
+ var AgentDB = {
267
+ version: '1.3.4',
268
+ Database: Database,
269
+
270
+ // Additional exports for compatibility
271
+ SQLiteVectorDB: Database, // Alias for newer demos
272
+ createVectorDB: function(config) {
273
+ return new Database(config?.data);
265
274
  }
266
275
  };
267
276
 
268
277
  // Export for different module systems
269
278
  if (typeof module !== 'undefined' && module.exports) {
270
279
  module.exports = AgentDB;
280
+ module.exports.Database = Database;
281
+ module.exports.SQLiteVectorDB = Database;
271
282
  } else if (typeof define === 'function' && define.amd) {
272
283
  define(function() { return AgentDB; });
273
284
  } else {
274
285
  global.AgentDB = AgentDB;
286
+ // Also export directly for ES6 imports
287
+ global.Database = Database;
288
+ global.SQLiteVectorDB = Database;
275
289
  }
276
290
 
277
- console.log('AgentDB v1.3.3 loaded (v1.0.7 API compatible)');
291
+ console.log('AgentDB v1.3.4 loaded (v1.0.7 API compatible)');
278
292
 
279
293
  })(typeof window !== 'undefined' ? window : this);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentdb",
3
- "version": "1.3.3",
3
+ "version": "1.3.4",
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",