agentdb 1.0.4 → 1.0.7

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/CHANGELOG.md CHANGED
@@ -5,6 +5,51 @@ All notable changes to AgentDB will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.0.7] - 2025-10-18
9
+
10
+ ### Fixed
11
+ - **Browser Bundle:** Removed better-sqlite3 dependency from browser builds completely
12
+ - Made NativeBackend import fully dynamic to prevent bundling Node.js dependencies
13
+ - Browser bundle size reduced to 89KB (down from 196KB in v1.0.5)
14
+ - Fixed "Failed to resolve module specifier 'better-sqlite3'" error in browser WASM
15
+
16
+ ### Changed
17
+ - NativeBackend now uses lazy loading with require() instead of static imports
18
+ - Removed require.resolve() check from backend detection for browser compatibility
19
+ - Added native-backend paths to esbuild external list for browser builds
20
+
21
+ ## [1.0.6] - 2025-10-18
22
+
23
+ ### Added
24
+ - **Claude Code Setup Guide** - Complete documentation for MCP integration
25
+ - Quick setup command: `claude mcp add agentdb npx agentdb@1.0.5 mcp`
26
+ - Updated README with all 20 MCP tools listed (10 core + 10 learning)
27
+ - Direct link to comprehensive Claude Code setup guide
28
+
29
+ ### Changed
30
+ - README now shows quick setup command first (better UX)
31
+ - Improved MCP tools documentation with descriptions
32
+ - Added link to detailed setup guide in docs/
33
+
34
+ ## [1.0.5] - 2025-10-18
35
+
36
+ ### Added
37
+ - **Browser Bundle:** Added `dist/agentdb.min.js` and `dist/agentdb.js` for CDN usage
38
+ - Browser bundles support direct import via unpkg/jsDelivr
39
+ - Source maps included for debugging (`agentdb.min.js.map`, `agentdb.js.map`)
40
+ - New build script: `npm run build:browser` using esbuild
41
+ - Browser example: `examples/browser-wasm-real.html` with actual WASM implementation
42
+
43
+ ### Changed
44
+ - Build process now includes browser bundle generation
45
+ - Package size optimized: 196KB minified, 380KB development bundle
46
+ - WASM backend fully functional in browser environments
47
+
48
+ ### Fixed
49
+ - Browser examples now can use real AgentDB WASM instead of simulation
50
+ - CDN loading from unpkg.com now supported
51
+ - Removed Node-only dependencies from browser bundle
52
+
8
53
  ## [1.0.4] - 2025-10-18
9
54
 
10
55
  ### Fixed
package/README.md CHANGED
@@ -73,28 +73,55 @@ It's the missing layer that lets agents **remember what worked, learn what didn'
73
73
  npm install agentdb
74
74
  ```
75
75
 
76
- ### For Claude Desktop / MCP Integration
76
+ ### For Claude Code / MCP Integration
77
77
 
78
- Add AgentDB as an MCP server in your Claude Desktop config:
78
+ **Quick Setup (Recommended):**
79
+
80
+ ```bash
81
+ claude mcp add agentdb npx agentdb@1.0.5 mcp
82
+ ```
83
+
84
+ This automatically configures Claude Code with all 20 AgentDB tools (10 core + 10 learning tools).
85
+
86
+ **Manual Setup:**
87
+
88
+ Add AgentDB to your Claude Desktop config (`~/.config/claude/claude_desktop_config.json`):
79
89
 
80
90
  ```json
81
91
  {
82
92
  "mcpServers": {
83
93
  "agentdb": {
84
94
  "command": "npx",
85
- "args": ["agentdb", "mcp"]
95
+ "args": ["agentdb@1.0.5", "mcp"]
86
96
  }
87
97
  }
88
98
  }
89
99
  ```
90
100
 
91
- **Available MCP Tools:**
101
+ **Available MCP Tools (20 total):**
102
+
103
+ *Core Tools (10):*
92
104
  - `agentdb_init` - Initialize vector database
93
105
  - `agentdb_insert` / `agentdb_insert_batch` - Store vectors
94
- - `agentdb_search` - Semantic search
95
- - `agentdb_pattern_store` / `agentdb_pattern_search` - ReasoningBank
106
+ - `agentdb_search` - Semantic similarity search
107
+ - `agentdb_pattern_store` / `agentdb_pattern_search` - ReasoningBank patterns
96
108
  - `agentdb_stats` - Database metrics
97
- - ...and 5 more tools
109
+ - `agentdb_delete` - Delete vectors
110
+ - `agentdb_pattern_stats` - Pattern statistics
111
+ - `agentdb_clear_cache` - Clear query cache
112
+
113
+ *Learning Tools (10):*
114
+ - `learning_start_session` / `learning_end_session` - Session management
115
+ - `learning_predict` - AI-recommended actions with confidence
116
+ - `learning_feedback` - Provide user feedback
117
+ - `learning_train` - Train policies on experience
118
+ - `learning_metrics` - Performance metrics
119
+ - `learning_transfer` - Transfer learning between tasks
120
+ - `learning_explain` - Explain AI predictions
121
+ - `experience_record` - Record tool executions
122
+ - `reward_signal` - Calculate multi-dimensional rewards
123
+
124
+ [📚 Full Claude Code Setup Guide](docs/CLAUDE_CODE_SETUP.md)
98
125
 
99
126
  ### CLI Usage
100
127