agentdb 1.3.0 → 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 +43 -12
- package/dist/agentdb.min.js +42 -0
- package/dist/browser.d.ts +3 -0
- package/dist/browser.d.ts.map +1 -0
- package/dist/browser.js +9 -0
- package/dist/browser.js.map +1 -0
- package/package.json +5 -2
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):**
|
|
@@ -359,7 +373,7 @@ npm install agentdb
|
|
|
359
373
|
claude mcp add agentdb npx agentdb@latest mcp start
|
|
360
374
|
```
|
|
361
375
|
|
|
362
|
-
This automatically configures Claude Code with all
|
|
376
|
+
This automatically configures Claude Code with all 29 AgentDB tools.
|
|
363
377
|
|
|
364
378
|
**Manual Setup:**
|
|
365
379
|
|
|
@@ -379,24 +393,41 @@ Add AgentDB to your Claude Desktop config (`~/.config/claude/claude_desktop_conf
|
|
|
379
393
|
**Available MCP Tools (29 total - v1.3.0):**
|
|
380
394
|
|
|
381
395
|
*Core Vector DB Tools (5):*
|
|
382
|
-
- `agentdb_init
|
|
396
|
+
- `agentdb_init` - Initialize database with schema
|
|
397
|
+
- `agentdb_insert` - Insert single vector with metadata
|
|
398
|
+
- `agentdb_insert_batch` - Batch insert with transactions (141x faster)
|
|
399
|
+
- `agentdb_search` - Semantic k-NN vector search with filters
|
|
400
|
+
- `agentdb_delete` - Delete vectors by ID or filters
|
|
383
401
|
|
|
384
402
|
*Core AgentDB Tools (5 - NEW v1.3.0):*
|
|
385
|
-
- `agentdb_stats
|
|
403
|
+
- `agentdb_stats` - Comprehensive database statistics
|
|
404
|
+
- `agentdb_pattern_store` - Store reasoning patterns with embeddings
|
|
405
|
+
- `agentdb_pattern_search` - Search reasoning patterns semantically
|
|
406
|
+
- `agentdb_pattern_stats` - Pattern analytics and top task types
|
|
407
|
+
- `agentdb_clear_cache` - Cache management for optimal performance
|
|
386
408
|
|
|
387
409
|
*Frontier Memory Tools (9):*
|
|
388
|
-
- `reflexion_store
|
|
389
|
-
- `
|
|
390
|
-
- `
|
|
410
|
+
- `reflexion_store` - Store episode with self-critique
|
|
411
|
+
- `reflexion_retrieve` - Retrieve relevant past episodes
|
|
412
|
+
- `skill_create` - Create reusable skill
|
|
413
|
+
- `skill_search` - Search for applicable skills
|
|
414
|
+
- `causal_add_edge` - Add causal relationship
|
|
415
|
+
- `causal_query` - Query causal effects
|
|
391
416
|
- `recall_with_certificate` - Utility-based retrieval with provenance
|
|
392
|
-
- `learner_discover` - Automated pattern discovery
|
|
393
|
-
- `db_stats` - Database statistics
|
|
417
|
+
- `learner_discover` - Automated causal pattern discovery
|
|
418
|
+
- `db_stats` - Database statistics showing record counts
|
|
394
419
|
|
|
395
420
|
*Learning System Tools (10 - NEW v1.3.0):*
|
|
396
|
-
- `learning_start_session
|
|
397
|
-
- `
|
|
398
|
-
- `
|
|
399
|
-
- `
|
|
421
|
+
- `learning_start_session` - Start RL session with algorithm selection
|
|
422
|
+
- `learning_end_session` - End session and save learned policy
|
|
423
|
+
- `learning_predict` - Get AI action recommendations
|
|
424
|
+
- `learning_feedback` - Submit action feedback for learning
|
|
425
|
+
- `learning_train` - Train policy with batch learning
|
|
426
|
+
- `learning_metrics` - Get performance metrics and trends
|
|
427
|
+
- `learning_transfer` - Transfer knowledge between tasks
|
|
428
|
+
- `learning_explain` - Explainable AI recommendations
|
|
429
|
+
- `experience_record` - Record tool execution experience
|
|
430
|
+
- `reward_signal` - Calculate reward signals for learning
|
|
400
431
|
|
|
401
432
|
[📚 Full MCP Tools Guide](docs/MCP_TOOLS.md) | [🔄 Migration Guide v1.3.0](MIGRATION_v1.3.0.md)
|
|
402
433
|
|
|
@@ -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 @@
|
|
|
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"}
|
package/dist/browser.js
ADDED
|
@@ -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.
|
|
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": "
|
|
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"
|