tokenmaxxing 1.9.0 → 1.9.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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
3
  "name": "tokenmaxxing",
4
- "version": "1.9.0",
4
+ "version": "1.9.1",
5
5
  "description": "Pool Claude Code and Codex logins, switch on pace pressure, and expose safe ops tools to agent clients.",
6
6
  "author": {
7
7
  "name": "anaclumos",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tokenmaxxing",
3
- "version": "1.9.0",
3
+ "version": "1.9.1",
4
4
  "description": "Automatic Claude Code account switching: pool multiple accounts and hot-swap when quota fills, resuming your session on the fresh account.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -95,9 +95,12 @@ export async function fetchCodexUsage(input: { auth: CodexAuthJson }): Promise<C
95
95
  });
96
96
  }
97
97
 
98
+ const LIMIT_LABEL_ABBREVIATIONS = new Map([["reserve", "rsrv"]]);
99
+
98
100
  export function codexLimitLabel(input: { limitName: string }): string {
99
101
  const tokens = familyTokens(input.limitName).filter((t) => Number.isNaN(Number(t)));
100
- return tokens.at(-1) ?? input.limitName.trim().toLowerCase();
102
+ const label = tokens.at(-1) ?? input.limitName.trim().toLowerCase();
103
+ return LIMIT_LABEL_ABBREVIATIONS.get(label) ?? label;
101
104
  }
102
105
 
103
106
  const SESSION_WINDOW_MAX_S = 6 * 3600;