tokenmaxxing 1.119.0 → 1.120.0
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/package.json +1 -1
- package/src/main.ts +6 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tokenmaxxing",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.120.0",
|
|
4
4
|
"description": "Automatic Claude Code account switching: pool multiple accounts, start each session on its own account, and resume a session on a fresher account when quota fills.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
package/src/main.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
|
|
3
3
|
import { basename } from "node:path";
|
|
4
|
+
import pkg from "../package.json" with { type: "json" };
|
|
4
5
|
import { runSupervisor } from "./entries/supervisor.ts";
|
|
5
6
|
import { runStatusline } from "./entries/statusline.ts";
|
|
6
7
|
import { runSubagentStatusline } from "./entries/subagentstatusline.ts";
|
|
@@ -67,6 +68,7 @@ function printHelp(): void {
|
|
|
67
68
|
${c.cyan("tokenmaxxing uninstall")} [--yes] print the targets, then remove supervisor + settings entries (refused without ${c.cyan("--yes")} when HOME is the login home)
|
|
68
69
|
|
|
69
70
|
${c.cyan("--json")} print one JSON document on stdout instead of text (status, config, check); every document carries ${c.bold("ok")}, failures add ${c.bold("error")}
|
|
71
|
+
${c.cyan("--version")} print the running package's version and exit (${c.cyan("-v")})
|
|
70
72
|
|
|
71
73
|
${c.dim("(aliased as")} ${c.cyan("xx")}${c.dim(")")} - then just run ${c.bold("claude")} as always; it switches accounts near quota automatically.`);
|
|
72
74
|
}
|
|
@@ -206,6 +208,10 @@ async function main(): Promise<number> {
|
|
|
206
208
|
case "--help":
|
|
207
209
|
printHelp();
|
|
208
210
|
return 0;
|
|
211
|
+
case "-v":
|
|
212
|
+
case "--version":
|
|
213
|
+
console.log(pkg.version);
|
|
214
|
+
return 0;
|
|
209
215
|
default:
|
|
210
216
|
emitError({ message: `unknown command: ${sub}` });
|
|
211
217
|
printHelp();
|