@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 +4 -0
- package/bin/dotbot.js +8 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
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