agentdb 1.3.1 → 1.3.2

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.
package/README.md CHANGED
@@ -351,6 +351,20 @@ It's the missing layer that lets agents **remember what worked, learn what didn'
351
351
  npm install agentdb
352
352
  ```
353
353
 
354
+ ### Browser/CDN Usage
355
+
356
+ For lightweight browser usage (version info and compatibility layer):
357
+
358
+ ```html
359
+ <script src="https://unpkg.com/agentdb@1.3.2/dist/agentdb.min.js"></script>
360
+ <script>
361
+ console.log(AgentDB.info());
362
+ // Full database features require Node.js: npm install agentdb
363
+ </script>
364
+ ```
365
+
366
+ **Note:** The browser bundle provides a compatibility layer. Full AgentDB features (vector database, MCP server, frontier memory) require Node.js environment.
367
+
354
368
  ### For Claude Code / MCP Integration
355
369
 
356
370
  **Quick Setup (Recommended):**
@@ -0,0 +1,42 @@
1
+ /*! AgentDB Browser Bundle v1.3.2 | MIT License | https://agentdb.ruv.io */
2
+ (function(global) {
3
+ 'use strict';
4
+
5
+ var AgentDB = {
6
+ version: '1.3.2',
7
+
8
+ // Note: Full AgentDB functionality requires Node.js environment
9
+ // This browser bundle provides version information and compatibility layer
10
+
11
+ info: function() {
12
+ return {
13
+ name: 'AgentDB',
14
+ version: '1.3.2',
15
+ description: 'Frontier Memory Features with MCP Integration',
16
+ homepage: 'https://agentdb.ruv.io',
17
+ docs: 'https://github.com/ruvnet/agentic-flow/tree/main/packages/agentdb',
18
+ note: 'Full database features require Node.js environment. Use npm install agentdb or npx agentdb.'
19
+ };
20
+ },
21
+
22
+ getInstallCommand: function() {
23
+ return 'npm install agentdb';
24
+ },
25
+
26
+ getMCPCommand: function() {
27
+ return 'npx agentdb@latest mcp start';
28
+ }
29
+ };
30
+
31
+ // Export for different module systems
32
+ if (typeof module !== 'undefined' && module.exports) {
33
+ module.exports = AgentDB;
34
+ } else if (typeof define === 'function' && define.amd) {
35
+ define(function() { return AgentDB; });
36
+ } else {
37
+ global.AgentDB = AgentDB;
38
+ }
39
+
40
+ console.log('AgentDB v1.3.2 loaded. Note: Full database features require Node.js. Run: npm install agentdb');
41
+
42
+ })(typeof window !== 'undefined' ? window : this);
@@ -0,0 +1,3 @@
1
+ export { EmbeddingService } from './dist/controllers/EmbeddingService.js';
2
+ export declare const version = "1.3.2";
3
+ //# sourceMappingURL=browser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAG1E,eAAO,MAAM,OAAO,UAAU,CAAC"}
@@ -0,0 +1,9 @@
1
+ // AgentDB Browser Bundle - Lightweight client
2
+ // Note: Full functionality requires Node.js environment
3
+ // This bundle provides browser-compatible utilities
4
+ export { EmbeddingService } from './dist/controllers/EmbeddingService.js';
5
+ // Browser-compatible version info
6
+ export const version = '1.3.2';
7
+ // Note: SQLite-dependent features require Node.js
8
+ console.log('AgentDB Browser Bundle loaded. Note: Full database features require Node.js environment.');
9
+ //# sourceMappingURL=browser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"browser.js","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AACA,8CAA8C;AAC9C,wDAAwD;AACxD,oDAAoD;AAEpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAE1E,kCAAkC;AAClC,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC;AAE/B,kDAAkD;AAClD,OAAO,CAAC,GAAG,CAAC,0FAA0F,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentdb",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
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",
@@ -21,7 +21,9 @@
21
21
  "./controllers/EmbeddingService": "./dist/controllers/EmbeddingService.js"
22
22
  },
23
23
  "scripts": {
24
- "build": "tsc",
24
+ "build": "npm run build:ts && npm run build:browser",
25
+ "build:ts": "tsc",
26
+ "build:browser": "node scripts/build-browser.js",
25
27
  "dev": "tsx src/cli/agentdb-cli.ts",
26
28
  "test": "vitest",
27
29
  "cli": "node dist/cli/agentdb-cli.js"
@@ -65,6 +67,7 @@
65
67
  "devDependencies": {
66
68
  "@types/better-sqlite3": "^7.6.11",
67
69
  "@types/node": "^22.10.2",
70
+ "esbuild": "^0.25.11",
68
71
  "tsx": "^4.19.2",
69
72
  "typescript": "^5.7.2",
70
73
  "vitest": "^2.1.8"