ai-battery 0.1.20 → 0.1.21
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/LICENSE +21 -21
- package/README.md +369 -365
- package/bin/ai-battery-hud +0 -0
- package/bin/ai-battery-hud.js +0 -0
- package/bin/ai-battery-hud.ps1 +2 -2
- package/bin/ai-battery-run +80 -16
- package/bin/ai-battery-run-win.js +0 -0
- package/bin/ai-battery.js +0 -0
- package/bin/codex-wrapper-win.cjs +167 -167
- package/docs/RELEASING.md +64 -62
- package/docs/claude-statusline-preview.svg +37 -37
- package/docs/terminal-preview.svg +44 -44
- package/lib/cli.js +22 -10
- package/lib/platforms/process-scanner.js +7 -4
- package/lib/platforms/windows/codex-runner.js +49 -8
- package/lib/platforms/windows/hud/controls.ps1 +403 -403
- package/lib/platforms/windows/hud/dock.ps1 +731 -731
- package/lib/platforms/windows/hud/main.ps1 +1277 -1277
- package/lib/platforms/windows/hud/native.ps1 +169 -169
- package/lib/platforms/windows/hud/rendering.ps1 +382 -382
- package/lib/platforms/windows/hud/snapshot.ps1 +358 -358
- package/lib/platforms/windows/hud/windowing.ps1 +331 -331
- package/package.json +75 -76
- package/scripts/windows-rowpty-smoke.ps1 +766 -766
- package/scripts/wsl-windows-rowpty-smoke.sh +0 -0
- package/vendor/rowpty/RowPty.cs +2668 -2668
- package/lib/README.md +0 -20
package/package.json
CHANGED
|
@@ -1,76 +1,75 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "ai-battery",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Tiny terminal battery meter for local Codex and Claude Code usage.",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"keywords": [
|
|
7
|
-
"ai",
|
|
8
|
-
"battery",
|
|
9
|
-
"codex",
|
|
10
|
-
"claude",
|
|
11
|
-
"statusline",
|
|
12
|
-
"tui",
|
|
13
|
-
"usage"
|
|
14
|
-
],
|
|
15
|
-
"bin": {
|
|
16
|
-
"ai-battery": "bin/ai-battery.js",
|
|
17
|
-
"ai-battery-hud": "bin/ai-battery-hud.js",
|
|
18
|
-
"ai-battery-run": "bin/ai-battery-run",
|
|
19
|
-
"ai-battery-run-win": "bin/ai-battery-run-win.js",
|
|
20
|
-
"claudex-battery": "bin/ai-battery.js",
|
|
21
|
-
"claudex-battery-hud": "bin/ai-battery-hud.js",
|
|
22
|
-
"claudex-battery-run": "bin/ai-battery-run"
|
|
23
|
-
},
|
|
24
|
-
"files": [
|
|
25
|
-
"bin/ai-battery.js",
|
|
26
|
-
"bin/codex-wrapper.sh",
|
|
27
|
-
"bin/codex-wrapper-win.cjs",
|
|
28
|
-
"bin/ai-battery-run",
|
|
29
|
-
"bin/ai-battery-run-win.js",
|
|
30
|
-
"bin/terminal-compositor.js",
|
|
31
|
-
"bin/ai-battery-hud",
|
|
32
|
-
"bin/ai-battery-hud.js",
|
|
33
|
-
"bin/ai-battery-macos-status.applescript",
|
|
34
|
-
"bin/ai-battery-hud.ps1",
|
|
35
|
-
"lib/**/*.js",
|
|
36
|
-
"lib/**/*.ps1",
|
|
37
|
-
"scripts/windows-rowpty-smoke.ps1",
|
|
38
|
-
"scripts/windows-fullscreen-smoke.mjs",
|
|
39
|
-
"scripts/windows-codex-fullscreen-check.mjs",
|
|
40
|
-
"scripts/wsl-windows-rowpty-smoke.sh",
|
|
41
|
-
"vendor/rowpty/RowPty.cs",
|
|
42
|
-
"docs/*.svg",
|
|
43
|
-
"docs/RELEASING.md",
|
|
44
|
-
"README.md"
|
|
45
|
-
],
|
|
46
|
-
"scripts": {
|
|
47
|
-
"start": "node ./bin/ai-battery.js",
|
|
48
|
-
"sync:rowpty": "node ./scripts/sync-rowpty.mjs",
|
|
49
|
-
"smoke:win": "powershell -NoProfile -ExecutionPolicy Bypass -File ./scripts/windows-rowpty-smoke.ps1",
|
|
50
|
-
"smoke:composite": "node ./scripts/windows-fullscreen-smoke.mjs",
|
|
51
|
-
"smoke:fullscreen": "node ./scripts/windows-fullscreen-smoke.mjs --native",
|
|
52
|
-
"smoke:codex-fullscreen-win": "node ./scripts/windows-codex-fullscreen-check.mjs",
|
|
53
|
-
"smoke:wsl-win": "bash ./scripts/wsl-windows-rowpty-smoke.sh",
|
|
54
|
-
"check": "node --check ./bin/ai-battery.js && node --check ./bin/ai-battery-hud.js && node --check ./bin/ai-battery-run-win.js && node --check ./lib/hud/launcher.js && node --check ./lib/platforms/windows/codex-runner.js && node --test",
|
|
55
|
-
"test": "node --test"
|
|
56
|
-
},
|
|
57
|
-
"engines": {
|
|
58
|
-
"node": ">=18"
|
|
59
|
-
},
|
|
60
|
-
"dependencies": {
|
|
61
|
-
"@xterm/headless": "6.0.0"
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
"
|
|
68
|
-
|
|
69
|
-
"
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "ai-battery",
|
|
3
|
+
"version": "0.1.21",
|
|
4
|
+
"description": "Tiny terminal battery meter for local Codex and Claude Code usage.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"ai",
|
|
8
|
+
"battery",
|
|
9
|
+
"codex",
|
|
10
|
+
"claude",
|
|
11
|
+
"statusline",
|
|
12
|
+
"tui",
|
|
13
|
+
"usage"
|
|
14
|
+
],
|
|
15
|
+
"bin": {
|
|
16
|
+
"ai-battery": "bin/ai-battery.js",
|
|
17
|
+
"ai-battery-hud": "bin/ai-battery-hud.js",
|
|
18
|
+
"ai-battery-run": "bin/ai-battery-run",
|
|
19
|
+
"ai-battery-run-win": "bin/ai-battery-run-win.js",
|
|
20
|
+
"claudex-battery": "bin/ai-battery.js",
|
|
21
|
+
"claudex-battery-hud": "bin/ai-battery-hud.js",
|
|
22
|
+
"claudex-battery-run": "bin/ai-battery-run"
|
|
23
|
+
},
|
|
24
|
+
"files": [
|
|
25
|
+
"bin/ai-battery.js",
|
|
26
|
+
"bin/codex-wrapper.sh",
|
|
27
|
+
"bin/codex-wrapper-win.cjs",
|
|
28
|
+
"bin/ai-battery-run",
|
|
29
|
+
"bin/ai-battery-run-win.js",
|
|
30
|
+
"bin/terminal-compositor.js",
|
|
31
|
+
"bin/ai-battery-hud",
|
|
32
|
+
"bin/ai-battery-hud.js",
|
|
33
|
+
"bin/ai-battery-macos-status.applescript",
|
|
34
|
+
"bin/ai-battery-hud.ps1",
|
|
35
|
+
"lib/**/*.js",
|
|
36
|
+
"lib/**/*.ps1",
|
|
37
|
+
"scripts/windows-rowpty-smoke.ps1",
|
|
38
|
+
"scripts/windows-fullscreen-smoke.mjs",
|
|
39
|
+
"scripts/windows-codex-fullscreen-check.mjs",
|
|
40
|
+
"scripts/wsl-windows-rowpty-smoke.sh",
|
|
41
|
+
"vendor/rowpty/RowPty.cs",
|
|
42
|
+
"docs/*.svg",
|
|
43
|
+
"docs/RELEASING.md",
|
|
44
|
+
"README.md"
|
|
45
|
+
],
|
|
46
|
+
"scripts": {
|
|
47
|
+
"start": "node ./bin/ai-battery.js",
|
|
48
|
+
"sync:rowpty": "node ./scripts/sync-rowpty.mjs",
|
|
49
|
+
"smoke:win": "powershell -NoProfile -ExecutionPolicy Bypass -File ./scripts/windows-rowpty-smoke.ps1",
|
|
50
|
+
"smoke:composite": "node ./scripts/windows-fullscreen-smoke.mjs",
|
|
51
|
+
"smoke:fullscreen": "node ./scripts/windows-fullscreen-smoke.mjs --native",
|
|
52
|
+
"smoke:codex-fullscreen-win": "node ./scripts/windows-codex-fullscreen-check.mjs",
|
|
53
|
+
"smoke:wsl-win": "bash ./scripts/wsl-windows-rowpty-smoke.sh",
|
|
54
|
+
"check": "node --check ./bin/ai-battery.js && node --check ./bin/ai-battery-hud.js && node --check ./bin/ai-battery-run-win.js && node --check ./lib/hud/launcher.js && node --check ./lib/platforms/windows/codex-runner.js && node --test",
|
|
55
|
+
"test": "node --test"
|
|
56
|
+
},
|
|
57
|
+
"engines": {
|
|
58
|
+
"node": ">=18"
|
|
59
|
+
},
|
|
60
|
+
"dependencies": {
|
|
61
|
+
"@xterm/headless": "6.0.0"
|
|
62
|
+
},
|
|
63
|
+
"optionalDependencies": {
|
|
64
|
+
"node-pty": "1.1.0"
|
|
65
|
+
},
|
|
66
|
+
"license": "MIT",
|
|
67
|
+
"repository": {
|
|
68
|
+
"type": "git",
|
|
69
|
+
"url": "git+https://github.com/hojin-v/ai-battery.git"
|
|
70
|
+
},
|
|
71
|
+
"bugs": {
|
|
72
|
+
"url": "https://github.com/hojin-v/ai-battery/issues"
|
|
73
|
+
},
|
|
74
|
+
"homepage": "https://github.com/hojin-v/ai-battery#readme"
|
|
75
|
+
}
|