clawculator 2.6.0 → 2.6.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/bin/clawculator.js +6 -5
- package/package.json +2 -3
package/bin/clawculator.js
CHANGED
|
@@ -66,25 +66,26 @@ async function main() {
|
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
console.log(BANNER);
|
|
69
|
+
|
|
70
|
+
const openclawHome = process.env.OPENCLAW_HOME || path.join(os.homedir(), '.openclaw');
|
|
71
|
+
|
|
69
72
|
if (flags.web) {
|
|
70
|
-
console.log(BANNER);
|
|
71
73
|
const { startWebDashboard } = require('../src/webDashboard');
|
|
72
74
|
startWebDashboard({ openclawHome, port: flags.port });
|
|
73
|
-
return;
|
|
75
|
+
return;
|
|
74
76
|
}
|
|
75
77
|
|
|
76
78
|
if (flags.live) {
|
|
77
|
-
|
|
79
|
+
const D = '\x1b[90m', R = '\x1b[0m';
|
|
78
80
|
console.log(` ${D}💡 Tip: Run this in a tmux pane alongside your main session${R}`);
|
|
79
81
|
console.log(` ${D} tmux split-window -h "npx clawculator --live"${R}\n`);
|
|
80
82
|
const { startLiveDashboard } = require('../src/liveDashboard');
|
|
81
83
|
startLiveDashboard({ openclawHome });
|
|
82
|
-
return;
|
|
84
|
+
return;
|
|
83
85
|
}
|
|
84
86
|
|
|
85
87
|
console.log('\x1b[90mScanning your setup...\x1b[0m\n');
|
|
86
88
|
|
|
87
|
-
const openclawHome = process.env.OPENCLAW_HOME || path.join(os.homedir(), '.openclaw');
|
|
88
89
|
const configPath = flags.config || path.join(openclawHome, 'openclaw.json');
|
|
89
90
|
|
|
90
91
|
// Auto-discover sessions path: find first agent with a sessions.json
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clawculator",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.1",
|
|
4
4
|
"description": "AI cost forensics for OpenClaw and multi-model setups. Your friendly penny pincher. 100% offline. Zero AI. Pure deterministic logic.",
|
|
5
5
|
"main": "src/analyzer.js",
|
|
6
6
|
"bin": {
|
|
@@ -30,8 +30,7 @@
|
|
|
30
30
|
"engines": {
|
|
31
31
|
"node": ">=18.0.0"
|
|
32
32
|
},
|
|
33
|
-
"dependencies": {},
|
|
34
33
|
"optionalDependencies": {
|
|
35
|
-
"better-sqlite3": "^11.
|
|
34
|
+
"better-sqlite3": "^11.10.0"
|
|
36
35
|
}
|
|
37
36
|
}
|