@stevederico/dotbot 0.20.0 → 0.20.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 CHANGED
@@ -1,3 +1,7 @@
1
+ 0.20.1
2
+
3
+ Read version from package.json
4
+
1
5
  0.20
2
6
 
3
7
  Zero npm dependencies
package/bin/dotbot.js CHANGED
@@ -22,9 +22,17 @@ process.emit = function (event, error) {
22
22
  */
23
23
 
24
24
  import { parseArgs } from 'node:util';
25
+ import { readFileSync } from 'node:fs';
26
+ import { fileURLToPath } from 'node:url';
27
+ import { dirname, join } from 'node:path';
25
28
  import * as readline from 'node:readline';
26
29
  import { createServer } from 'node:http';
27
30
 
31
+ // Read version from package.json
32
+ const __dirname = dirname(fileURLToPath(import.meta.url));
33
+ const pkg = JSON.parse(readFileSync(join(__dirname, '..', 'package.json'), 'utf8'));
34
+ const VERSION = pkg.version;
35
+
28
36
  // Lazy-loaded modules (avoid SQLite import on --help)
29
37
  let stores = null;
30
38
  let coreTools = null;
@@ -49,8 +57,6 @@ async function loadModules() {
49
57
  AI_PROVIDERS = mod.AI_PROVIDERS;
50
58
  agentLoop = mod.agentLoop;
51
59
  }
52
-
53
- const VERSION = '0.19';
54
60
  const DEFAULT_PORT = 3000;
55
61
  const DEFAULT_DB = './dotbot.db';
56
62
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stevederico/dotbot",
3
- "version": "0.20.0",
3
+ "version": "0.20.1",
4
4
  "description": "AI agent CLI and library for Node.js — streaming, multi-provider, tool execution, autonomous tasks",
5
5
  "type": "module",
6
6
  "main": "index.js",