agentdb 1.0.2 → 1.0.3

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,12 @@ 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.3] - 2025-10-18
9
+
10
+ ### Fixed
11
+ - CLI now properly recognizes `--version` and `-v` flags (previously only `version` command worked)
12
+ - Added version flag handling in bin/agentdb.js before command routing
13
+
8
14
  ## [1.0.2] - 2025-10-18
9
15
 
10
16
  ### Added
package/bin/agentdb.js CHANGED
@@ -686,6 +686,12 @@ function parseFlags(flags) {
686
686
  // Parse command line arguments
687
687
  const [,, command = 'help', ...args] = process.argv;
688
688
 
689
+ // Handle --version and -v flags at root level
690
+ if (command === '--version' || command === '-v') {
691
+ showVersion();
692
+ process.exit(0);
693
+ }
694
+
689
695
  // Handle --help and -h flags at root level
690
696
  if (command === '--help' || command === '-h') {
691
697
  showHelp();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentdb",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Ultra-fast agent memory and vector database with ReasoningBank for AI agents. Built on SQLite with QUIC sync. From ruv.io - Advanced AI Infrastructure.",
5
5
  "keywords": [
6
6
  "agent",