getaimeter 0.5.0 → 0.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/config.js +12 -0
- package/package.json +53 -48
- package/watcher.js +711 -474
package/config.js
CHANGED
|
@@ -88,6 +88,18 @@ function getWatchPaths() {
|
|
|
88
88
|
paths.push(geminiDir);
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
+
// 6. Cursor IDE — stores conversations in SQLite at globalStorage/state.vscdb
|
|
92
|
+
// We watch the globalStorage dir; the watcher handles .vscdb files separately
|
|
93
|
+
let cursorGlobal;
|
|
94
|
+
if (platform === 'win32') {
|
|
95
|
+
cursorGlobal = path.join(process.env.APPDATA || '', 'Cursor', 'User', 'globalStorage');
|
|
96
|
+
} else if (platform === 'darwin') {
|
|
97
|
+
cursorGlobal = path.join(os.homedir(), 'Library', 'Application Support', 'Cursor', 'User', 'globalStorage');
|
|
98
|
+
} else {
|
|
99
|
+
cursorGlobal = path.join(os.homedir(), '.config', 'Cursor', 'User', 'globalStorage');
|
|
100
|
+
}
|
|
101
|
+
if (fs.existsSync(cursorGlobal)) paths.push(cursorGlobal);
|
|
102
|
+
|
|
91
103
|
return paths;
|
|
92
104
|
}
|
|
93
105
|
|
package/package.json
CHANGED
|
@@ -1,48 +1,53 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "getaimeter",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Track
|
|
5
|
-
"bin": {
|
|
6
|
-
"aimeter": "cli.js"
|
|
7
|
-
},
|
|
8
|
-
"main": "watcher.js",
|
|
9
|
-
"engines": {
|
|
10
|
-
"node": ">=18"
|
|
11
|
-
},
|
|
12
|
-
"license": "MIT",
|
|
13
|
-
"keywords": [
|
|
14
|
-
"claude",
|
|
15
|
-
"anthropic",
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "getaimeter",
|
|
3
|
+
"version": "0.6.1",
|
|
4
|
+
"description": "Track AI coding costs across Claude, Cursor, Codex, and Gemini. Optimization recommendations that cut costs by 30%.",
|
|
5
|
+
"bin": {
|
|
6
|
+
"aimeter": "cli.js"
|
|
7
|
+
},
|
|
8
|
+
"main": "watcher.js",
|
|
9
|
+
"engines": {
|
|
10
|
+
"node": ">=18"
|
|
11
|
+
},
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"keywords": [
|
|
14
|
+
"claude",
|
|
15
|
+
"anthropic",
|
|
16
|
+
"cursor",
|
|
17
|
+
"codex",
|
|
18
|
+
"gemini",
|
|
19
|
+
"ai",
|
|
20
|
+
"tokens",
|
|
21
|
+
"cost",
|
|
22
|
+
"usage",
|
|
23
|
+
"tracking",
|
|
24
|
+
"monitor",
|
|
25
|
+
"optimization",
|
|
26
|
+
"claude-code",
|
|
27
|
+
"vscode",
|
|
28
|
+
"multi-tool"
|
|
29
|
+
],
|
|
30
|
+
"files": [
|
|
31
|
+
"cli.js",
|
|
32
|
+
"watcher.js",
|
|
33
|
+
"reporter.js",
|
|
34
|
+
"config.js",
|
|
35
|
+
"state.js",
|
|
36
|
+
"service.js",
|
|
37
|
+
"tray.js",
|
|
38
|
+
"tray.ps1",
|
|
39
|
+
"log-viewer.ps1",
|
|
40
|
+
"tray-launcher.vbs",
|
|
41
|
+
"icon.ico",
|
|
42
|
+
"update-check.js",
|
|
43
|
+
"README.md"
|
|
44
|
+
],
|
|
45
|
+
"repository": {
|
|
46
|
+
"type": "git",
|
|
47
|
+
"url": "git+https://github.com/Khavel/AIMeter.git"
|
|
48
|
+
},
|
|
49
|
+
"homepage": "https://getaimeter.com",
|
|
50
|
+
"author": "Alejandro Ceja",
|
|
51
|
+
"preferGlobal": true,
|
|
52
|
+
"dependencies": {}
|
|
53
|
+
}
|