agentdb 1.0.0 → 1.0.1
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 +74 -0
- package/README.md +5 -5
- package/bin/agentdb.js +296 -65
- package/dist/wasm/sql-wasm-debug.js +6989 -0
- package/dist/wasm/sql-wasm-debug.wasm +0 -0
- package/dist/wasm/sql-wasm.js +188 -0
- package/dist/wasm/sql-wasm.wasm +0 -0
- package/dist/wasm-loader.d.ts.map +1 -1
- package/dist/wasm-loader.js +5 -2
- package/dist/wasm-loader.js.map +1 -1
- package/dist/wasm-loader.mjs +5 -2
- package/package.json +26 -5
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to AgentDB will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [1.0.1] - 2025-10-18
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- WASM files now bundled in npm distribution for browser usage
|
|
12
|
+
- Build script automatically copies sql.js WASM files to dist/wasm/
|
|
13
|
+
- Concise CLI help system with command-specific subhelps
|
|
14
|
+
- Support for `--help` and `-h` flags on all commands
|
|
15
|
+
- Comprehensive command-specific help pages for 11 commands
|
|
16
|
+
|
|
17
|
+
### Changed
|
|
18
|
+
- Homepage updated to https://agentdb.ruv.io
|
|
19
|
+
- Main help output reduced by 80% for better readability
|
|
20
|
+
- Help system now hierarchical: brief main help → detailed subhelp
|
|
21
|
+
- WASM loader defaults to bundled files instead of CDN
|
|
22
|
+
|
|
23
|
+
### Fixed
|
|
24
|
+
- Browser examples now work offline with bundled WASM
|
|
25
|
+
- Plugin wizard creates files correctly in ./plugins/ directory
|
|
26
|
+
- All CLI help commands now work consistently
|
|
27
|
+
- Version mismatch risk eliminated between package and CDN
|
|
28
|
+
|
|
29
|
+
### Technical Details
|
|
30
|
+
- WASM bundle includes: sql-wasm.wasm (645KB), sql-wasm.js (48KB), debug variants
|
|
31
|
+
- Total of 1.7MB WASM files included in npm package
|
|
32
|
+
- Build process: `npm run build:wasm` copies files from node_modules/sql.js
|
|
33
|
+
- Files array in package.json already includes dist/ (WASM files included)
|
|
34
|
+
|
|
35
|
+
## [1.0.0] - 2025-10-17
|
|
36
|
+
|
|
37
|
+
### Added
|
|
38
|
+
- Initial release of AgentDB
|
|
39
|
+
- Ultra-fast vector database built on SQLite
|
|
40
|
+
- ReasoningBank integration for AI agents
|
|
41
|
+
- QUIC sync support for distributed operations
|
|
42
|
+
- HNSW index for fast similarity search
|
|
43
|
+
- Learning plugin system with 11 algorithm templates
|
|
44
|
+
- Interactive CLI wizard for plugin creation
|
|
45
|
+
- MCP server for Claude Code integration
|
|
46
|
+
- Browser WASM backend support
|
|
47
|
+
- Native backend with better-sqlite3
|
|
48
|
+
- Comprehensive benchmark suite
|
|
49
|
+
- 10 browser examples for self-learning architectures
|
|
50
|
+
|
|
51
|
+
### Features
|
|
52
|
+
- Vector similarity search (cosine, euclidean, dot product)
|
|
53
|
+
- Product quantization for reduced storage
|
|
54
|
+
- Query caching for improved performance
|
|
55
|
+
- Batch operations for high throughput
|
|
56
|
+
- Export/import functionality (JSON, CSV)
|
|
57
|
+
- Full TypeScript support with type definitions
|
|
58
|
+
- Dual-mode: persistent SQLite files or in-memory
|
|
59
|
+
|
|
60
|
+
### Plugins
|
|
61
|
+
- Decision Transformer (recommended)
|
|
62
|
+
- Q-Learning
|
|
63
|
+
- SARSA
|
|
64
|
+
- Actor-Critic
|
|
65
|
+
- Curiosity-Driven Learning
|
|
66
|
+
- Active Learning
|
|
67
|
+
- Federated Learning
|
|
68
|
+
- Multi-Task Learning
|
|
69
|
+
- Neural Architecture Search
|
|
70
|
+
- Curriculum Learning
|
|
71
|
+
- Adversarial Training
|
|
72
|
+
|
|
73
|
+
[1.0.1]: https://github.com/ruvnet/agentic-flow/compare/agentdb-v1.0.0...agentdb-v1.0.1
|
|
74
|
+
[1.0.0]: https://github.com/ruvnet/agentic-flow/releases/tag/agentdb-v1.0.0
|
package/README.md
CHANGED
|
@@ -15,11 +15,11 @@ When you're building agentic systems, every millisecond, every inference, and ev
|
|
|
15
15
|
|
|
16
16
|
### What AgentDB delivers
|
|
17
17
|
|
|
18
|
-
⚡ **Instant startup** – Memory ready in milliseconds
|
|
19
|
-
🪶 **Minimal footprint** – Run in-memory or persist to disk, with zero config
|
|
20
|
-
🧠 **Built-in reasoning** – Pattern storage, experience tracking, context recall
|
|
21
|
-
🔄 **Live sync** – Agents share discoveries in real time using a lightweight protocol
|
|
22
|
-
🌍 **Universal runtime** – Works in Node.js, browser, edge, or agent hosts
|
|
18
|
+
- ⚡ **Instant startup** – Memory ready in milliseconds
|
|
19
|
+
- 🪶 **Minimal footprint** – Run in-memory or persist to disk, with zero config
|
|
20
|
+
- 🧠 **Built-in reasoning** – Pattern storage, experience tracking, context recall
|
|
21
|
+
- 🔄 **Live sync** – Agents share discoveries in real time using a lightweight protocol
|
|
22
|
+
- 🌍 **Universal runtime** – Works in Node.js, browser, edge, or agent hosts
|
|
23
23
|
|
|
24
24
|
Run anywhere: **Claude Code**, **Cursor**, **GitHub Copilot**, **Node.js**, **browsers**, **edge functions**, and **distributed agent networks**.
|
|
25
25
|
|
package/bin/agentdb.js
CHANGED
|
@@ -26,85 +26,304 @@ const COMMANDS = {
|
|
|
26
26
|
stats: statsCommand,
|
|
27
27
|
};
|
|
28
28
|
|
|
29
|
-
function showHelp() {
|
|
30
|
-
//
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
const { showComprehensiveHelp } = require(helpPath);
|
|
34
|
-
showComprehensiveHelp();
|
|
29
|
+
function showHelp(subcommand) {
|
|
30
|
+
// Show command-specific help if requested
|
|
31
|
+
if (subcommand && COMMANDS[subcommand]) {
|
|
32
|
+
showCommandHelp(subcommand);
|
|
35
33
|
return;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
console.log(`
|
|
39
37
|
█▀█ █▀▀ █▀▀ █▄░█ ▀█▀ █▀▄ █▄▄
|
|
40
38
|
█▀█ █▄█ ██▄ █░▀█ ░█░ █▄▀ █▄█
|
|
41
39
|
|
|
42
|
-
Agent Memory & Vector Database
|
|
40
|
+
AgentDB v${version} - Agent Memory & Vector Database
|
|
41
|
+
Website: https://agentdb.ruv.io
|
|
43
42
|
|
|
44
|
-
USAGE
|
|
45
|
-
npx agentdb
|
|
43
|
+
USAGE
|
|
44
|
+
npx agentdb <command> [options]
|
|
45
|
+
npx agentdb <command> --help (detailed command help)
|
|
46
46
|
|
|
47
|
-
COMMANDS
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
mcp Start MCP server for Claude Code integration
|
|
51
|
-
init <path> Initialize new vector database
|
|
47
|
+
CORE COMMANDS
|
|
48
|
+
init <path> Initialize vector database
|
|
49
|
+
mcp Start MCP server for Claude Code
|
|
52
50
|
benchmark Run performance benchmarks
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
LEARNING PLUGIN COMMANDS:
|
|
56
|
-
create-plugin Create new learning plugin with wizard
|
|
57
|
-
list-plugins List all available plugins
|
|
58
|
-
list-templates List available plugin templates
|
|
59
|
-
plugin-info Get information about a plugin
|
|
60
|
-
use-plugin Load and use a plugin
|
|
61
|
-
test-plugin Test a plugin
|
|
62
|
-
validate-plugin Validate plugin configuration
|
|
63
|
-
|
|
64
|
-
DATABASE COMMANDS:
|
|
65
|
-
import Import vectors from file
|
|
66
|
-
export Export vectors to file
|
|
67
|
-
query Query vector database
|
|
68
|
-
stats Show database statistics
|
|
69
|
-
|
|
70
|
-
ADVANCED COMMANDS:
|
|
71
|
-
optimize Optimize database performance
|
|
72
|
-
train Train a learning plugin
|
|
73
|
-
deploy Deploy plugin to production
|
|
74
|
-
|
|
75
|
-
QUICK START:
|
|
76
|
-
# Create a learning plugin in 2 minutes
|
|
77
|
-
npx agentdb create-plugin
|
|
51
|
+
version Show version information
|
|
78
52
|
|
|
79
|
-
|
|
80
|
-
|
|
53
|
+
PLUGIN COMMANDS
|
|
54
|
+
create-plugin Create learning plugin (interactive wizard)
|
|
55
|
+
list-plugins List available plugins
|
|
56
|
+
list-templates List plugin templates
|
|
57
|
+
plugin-info Show plugin details
|
|
58
|
+
|
|
59
|
+
DATABASE COMMANDS
|
|
60
|
+
import <file> Import vectors from file
|
|
61
|
+
export <file> Export vectors to file
|
|
62
|
+
query <db> Query vector database
|
|
63
|
+
stats <db> Show database statistics
|
|
64
|
+
|
|
65
|
+
QUICK START
|
|
66
|
+
npx agentdb create-plugin # Create plugin
|
|
67
|
+
npx agentdb init ./agents.db # Initialize DB
|
|
68
|
+
npx agentdb mcp # Start MCP server
|
|
69
|
+
npx agentdb benchmark # Run benchmarks
|
|
70
|
+
|
|
71
|
+
HELP & INFO
|
|
72
|
+
npx agentdb help <command> # Command-specific help
|
|
73
|
+
npx agentdb <command> --help # Alternative syntax
|
|
74
|
+
npx agentdb version # Version info
|
|
75
|
+
|
|
76
|
+
DOCUMENTATION
|
|
77
|
+
GitHub: https://github.com/ruvnet/agentic-flow/tree/main/packages/agentdb
|
|
78
|
+
Issues: https://github.com/ruvnet/agentic-flow/issues
|
|
79
|
+
License: MIT OR Apache-2.0
|
|
80
|
+
`);
|
|
81
|
+
}
|
|
81
82
|
|
|
82
|
-
|
|
83
|
+
function showCommandHelp(command) {
|
|
84
|
+
const helps = {
|
|
85
|
+
init: `
|
|
86
|
+
COMMAND: init
|
|
87
|
+
|
|
88
|
+
Initialize a new vector database
|
|
89
|
+
|
|
90
|
+
USAGE
|
|
91
|
+
npx agentdb init <path> [options]
|
|
92
|
+
|
|
93
|
+
ARGUMENTS
|
|
94
|
+
<path> Database file path (e.g., ./vectors.db)
|
|
95
|
+
|
|
96
|
+
OPTIONS
|
|
97
|
+
--dimension <n> Vector dimension (default: 1536)
|
|
98
|
+
--preset <name> Use preset: small, medium, large
|
|
99
|
+
--in-memory Create in-memory database
|
|
100
|
+
|
|
101
|
+
EXAMPLES
|
|
102
|
+
npx agentdb init ./vectors.db
|
|
103
|
+
npx agentdb init ./vectors.db --dimension 768
|
|
104
|
+
npx agentdb init ./vectors.db --preset large
|
|
105
|
+
`,
|
|
106
|
+
mcp: `
|
|
107
|
+
COMMAND: mcp
|
|
108
|
+
|
|
109
|
+
Start Model Context Protocol server for Claude Code integration
|
|
110
|
+
|
|
111
|
+
USAGE
|
|
112
|
+
npx agentdb mcp [options]
|
|
113
|
+
|
|
114
|
+
OPTIONS
|
|
115
|
+
--port <number> Port to listen on (default: 3000)
|
|
116
|
+
--host <string> Host to bind to (default: localhost)
|
|
117
|
+
--log <level> Log level: debug, info, warn, error
|
|
118
|
+
|
|
119
|
+
EXAMPLES
|
|
120
|
+
npx agentdb mcp
|
|
121
|
+
npx agentdb mcp --port 3000
|
|
122
|
+
npx agentdb mcp --log debug
|
|
123
|
+
|
|
124
|
+
CLAUDE DESKTOP CONFIG
|
|
125
|
+
Add to ~/.config/claude/config.json:
|
|
126
|
+
{
|
|
127
|
+
"mcpServers": {
|
|
128
|
+
"agentdb": {
|
|
129
|
+
"command": "npx",
|
|
130
|
+
"args": ["agentdb", "mcp"]
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
`,
|
|
135
|
+
'create-plugin': `
|
|
136
|
+
COMMAND: create-plugin
|
|
137
|
+
|
|
138
|
+
Create a new learning plugin with interactive wizard
|
|
139
|
+
|
|
140
|
+
USAGE
|
|
141
|
+
npx agentdb create-plugin [options]
|
|
142
|
+
|
|
143
|
+
OPTIONS
|
|
144
|
+
-t, --template <name> Use template (see list-templates)
|
|
145
|
+
-n, --name <name> Plugin name (lowercase-hyphenated)
|
|
146
|
+
--no-customize Skip customization (use defaults)
|
|
147
|
+
-o, --output <dir> Output directory (default: ./plugins)
|
|
148
|
+
--force Overwrite existing plugin
|
|
149
|
+
--dry-run Preview without creating files
|
|
150
|
+
|
|
151
|
+
AVAILABLE TEMPLATES
|
|
152
|
+
decision-transformer Sequence modeling RL (recommended)
|
|
153
|
+
q-learning Value-based learning
|
|
154
|
+
sarsa On-policy TD learning
|
|
155
|
+
actor-critic Policy gradient with baseline
|
|
156
|
+
|
|
157
|
+
EXAMPLES
|
|
158
|
+
npx agentdb create-plugin
|
|
159
|
+
npx agentdb create-plugin -t q-learning -n my-agent
|
|
160
|
+
npx agentdb create-plugin --dry-run
|
|
161
|
+
`,
|
|
162
|
+
import: `
|
|
163
|
+
COMMAND: import
|
|
164
|
+
|
|
165
|
+
Import vectors from file into database
|
|
166
|
+
|
|
167
|
+
USAGE
|
|
168
|
+
npx agentdb import <database> <file> [options]
|
|
169
|
+
|
|
170
|
+
ARGUMENTS
|
|
171
|
+
<database> Database path
|
|
172
|
+
<file> Input file (JSON, CSV)
|
|
173
|
+
|
|
174
|
+
OPTIONS
|
|
175
|
+
-f, --format <type> Format: json, csv (default: json)
|
|
176
|
+
-b, --batch-size <n> Batch size (default: 1000)
|
|
177
|
+
-v, --verbose Verbose output
|
|
178
|
+
|
|
179
|
+
EXAMPLES
|
|
180
|
+
npx agentdb import ./db.sqlite vectors.json
|
|
181
|
+
npx agentdb import ./db.sqlite data.csv -f csv -v
|
|
182
|
+
`,
|
|
183
|
+
export: `
|
|
184
|
+
COMMAND: export
|
|
185
|
+
|
|
186
|
+
Export vectors from database to file
|
|
187
|
+
|
|
188
|
+
USAGE
|
|
189
|
+
npx agentdb export <database> <file> [options]
|
|
190
|
+
|
|
191
|
+
ARGUMENTS
|
|
192
|
+
<database> Database path
|
|
193
|
+
<file> Output file
|
|
194
|
+
|
|
195
|
+
OPTIONS
|
|
196
|
+
-f, --format <type> Format: json, csv (default: json)
|
|
197
|
+
-l, --limit <n> Limit number of vectors
|
|
198
|
+
-v, --verbose Verbose output
|
|
199
|
+
|
|
200
|
+
EXAMPLES
|
|
201
|
+
npx agentdb export ./db.sqlite vectors.json
|
|
202
|
+
npx agentdb export ./db.sqlite data.csv -f csv -l 1000
|
|
203
|
+
`,
|
|
204
|
+
query: `
|
|
205
|
+
COMMAND: query
|
|
206
|
+
|
|
207
|
+
Query vector database for similar vectors
|
|
208
|
+
|
|
209
|
+
USAGE
|
|
210
|
+
npx agentdb query <database> <embedding> [options]
|
|
211
|
+
|
|
212
|
+
ARGUMENTS
|
|
213
|
+
<database> Database path
|
|
214
|
+
<embedding> Vector as JSON array or space-separated
|
|
215
|
+
|
|
216
|
+
OPTIONS
|
|
217
|
+
-k, --top-k <n> Results to return (default: 5)
|
|
218
|
+
-m, --metric <name> Metric: cosine, euclidean, dot
|
|
219
|
+
-t, --threshold <n> Min similarity threshold
|
|
220
|
+
-f, --format <type> Output: table, json (default: table)
|
|
221
|
+
-v, --verbose Verbose output
|
|
222
|
+
|
|
223
|
+
EXAMPLES
|
|
224
|
+
npx agentdb query ./db.sqlite "[0.1,0.2,0.3]"
|
|
225
|
+
npx agentdb query ./db.sqlite "0.1 0.2 0.3" -k 10
|
|
226
|
+
`,
|
|
227
|
+
stats: `
|
|
228
|
+
COMMAND: stats
|
|
229
|
+
|
|
230
|
+
Show database statistics and information
|
|
231
|
+
|
|
232
|
+
USAGE
|
|
233
|
+
npx agentdb stats <database> [options]
|
|
234
|
+
|
|
235
|
+
ARGUMENTS
|
|
236
|
+
<database> Database path
|
|
237
|
+
|
|
238
|
+
OPTIONS
|
|
239
|
+
-d, --detailed Show detailed statistics
|
|
240
|
+
-f, --format <type> Output: table, json (default: table)
|
|
241
|
+
|
|
242
|
+
EXAMPLES
|
|
243
|
+
npx agentdb stats ./db.sqlite
|
|
244
|
+
npx agentdb stats ./db.sqlite -d -f json
|
|
245
|
+
`,
|
|
246
|
+
benchmark: `
|
|
247
|
+
COMMAND: benchmark
|
|
248
|
+
|
|
249
|
+
Run comprehensive performance benchmarks
|
|
250
|
+
|
|
251
|
+
USAGE
|
|
252
|
+
npx agentdb benchmark [options]
|
|
253
|
+
|
|
254
|
+
OPTIONS
|
|
255
|
+
--suite <name> Suite: insertion, search, all
|
|
256
|
+
--size <n> Dataset size (default: 10000)
|
|
257
|
+
--dimension <n> Vector dimension (default: 1536)
|
|
258
|
+
|
|
259
|
+
EXAMPLES
|
|
83
260
|
npx agentdb benchmark
|
|
261
|
+
npx agentdb benchmark --suite insertion
|
|
262
|
+
npx agentdb benchmark --size 50000
|
|
263
|
+
`,
|
|
264
|
+
'list-plugins': `
|
|
265
|
+
COMMAND: list-plugins
|
|
266
|
+
|
|
267
|
+
List all available learning plugins
|
|
268
|
+
|
|
269
|
+
USAGE
|
|
270
|
+
npx agentdb list-plugins [options]
|
|
271
|
+
|
|
272
|
+
OPTIONS
|
|
273
|
+
-v, --verbose Show detailed information
|
|
274
|
+
--filter <pattern> Filter by name pattern
|
|
275
|
+
--json Output as JSON
|
|
276
|
+
|
|
277
|
+
EXAMPLES
|
|
278
|
+
npx agentdb list-plugins
|
|
279
|
+
npx agentdb list-plugins --verbose
|
|
280
|
+
npx agentdb list-plugins --filter "q-*"
|
|
281
|
+
`,
|
|
282
|
+
'list-templates': `
|
|
283
|
+
COMMAND: list-templates
|
|
284
|
+
|
|
285
|
+
List all available plugin templates
|
|
286
|
+
|
|
287
|
+
USAGE
|
|
288
|
+
npx agentdb list-templates [options]
|
|
289
|
+
|
|
290
|
+
OPTIONS
|
|
291
|
+
-d, --detailed Show detailed information
|
|
292
|
+
-c, --category <name> Filter by category
|
|
293
|
+
--json Output as JSON
|
|
294
|
+
|
|
295
|
+
EXAMPLES
|
|
296
|
+
npx agentdb list-templates
|
|
297
|
+
npx agentdb list-templates --detailed
|
|
298
|
+
npx agentdb list-templates -c reinforcement-learning
|
|
299
|
+
`,
|
|
300
|
+
'plugin-info': `
|
|
301
|
+
COMMAND: plugin-info
|
|
84
302
|
|
|
85
|
-
|
|
86
|
-
npx agentdb help
|
|
303
|
+
Get detailed information about a plugin
|
|
87
304
|
|
|
88
|
-
|
|
89
|
-
npx agentdb
|
|
90
|
-
npx agentdb list-templates --detailed
|
|
91
|
-
npx agentdb plugin-info my-plugin
|
|
92
|
-
npx agentdb test-plugin my-plugin --coverage
|
|
305
|
+
USAGE
|
|
306
|
+
npx agentdb plugin-info <name> [options]
|
|
93
307
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
Issues: https://github.com/ruvnet/agentic-flow/issues
|
|
97
|
-
Author: @ruvnet (https://github.com/ruvnet)
|
|
98
|
-
Website: https://ruv.io
|
|
99
|
-
Quick Start: docs/PLUGIN_QUICKSTART.md
|
|
100
|
-
API Reference: docs/PLUGIN_API.md
|
|
308
|
+
ARGUMENTS
|
|
309
|
+
<name> Plugin name
|
|
101
310
|
|
|
102
|
-
|
|
103
|
-
|
|
311
|
+
OPTIONS
|
|
312
|
+
--json Output as JSON
|
|
313
|
+
--metrics Include performance metrics
|
|
314
|
+
--dependencies Show dependencies
|
|
104
315
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
316
|
+
EXAMPLES
|
|
317
|
+
npx agentdb plugin-info my-plugin
|
|
318
|
+
npx agentdb plugin-info my-plugin --metrics
|
|
319
|
+
`
|
|
320
|
+
};
|
|
321
|
+
|
|
322
|
+
if (helps[command]) {
|
|
323
|
+
console.log(helps[command]);
|
|
324
|
+
} else {
|
|
325
|
+
console.error(`No detailed help available for: ${command}`);
|
|
326
|
+
console.error(`Run: npx agentdb ${command} --help`);
|
|
108
327
|
}
|
|
109
328
|
}
|
|
110
329
|
|
|
@@ -467,6 +686,18 @@ function parseFlags(flags) {
|
|
|
467
686
|
// Parse command line arguments
|
|
468
687
|
const [,, command = 'help', ...args] = process.argv;
|
|
469
688
|
|
|
689
|
+
// Handle --help and -h flags at root level
|
|
690
|
+
if (command === '--help' || command === '-h') {
|
|
691
|
+
showHelp();
|
|
692
|
+
process.exit(0);
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
// Handle --help flag for any command
|
|
696
|
+
if (args.includes('--help') || args.includes('-h')) {
|
|
697
|
+
showCommandHelp(command);
|
|
698
|
+
process.exit(0);
|
|
699
|
+
}
|
|
700
|
+
|
|
470
701
|
const handler = COMMANDS[command];
|
|
471
702
|
if (handler) {
|
|
472
703
|
// Handle async commands
|
|
@@ -480,6 +711,6 @@ if (handler) {
|
|
|
480
711
|
} else {
|
|
481
712
|
console.error(`❌ Unknown command: ${command}`);
|
|
482
713
|
console.error('');
|
|
483
|
-
console.error('Run "agentdb help" for usage information');
|
|
714
|
+
console.error('Run "npx agentdb help" for usage information');
|
|
484
715
|
process.exit(1);
|
|
485
716
|
}
|