tokenmaxxing 1.122.0 → 1.124.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tokenmaxxing",
3
- "version": "1.122.0",
3
+ "version": "1.124.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",
@@ -33,7 +33,6 @@
33
33
  },
34
34
  "devDependencies": {
35
35
  "@types/bun": "1.3.14",
36
- "lefthook": "^2.1.14",
37
36
  "typescript": "^5.6.0"
38
37
  },
39
38
  "dependencies": {
@@ -160,8 +160,15 @@ export function stripPositionals(argv: string[]): string[] {
160
160
  return out;
161
161
  }
162
162
 
163
+ const PROJECT_DIR_MAX = 200;
164
+
163
165
  function projectDirForCwd(): string {
164
- return join(paths.claudeDir, "projects", process.cwd().replace(/[^a-zA-Z0-9]/g, "-"));
166
+ const cwd = process.cwd();
167
+ const name = cwd.replace(/[^a-zA-Z0-9]/g, "-");
168
+ if (name.length <= PROJECT_DIR_MAX) return join(paths.claudeDir, "projects", name);
169
+ let hash = 0;
170
+ for (let i = 0; i < cwd.length; i++) hash = ((hash << 5) - hash + cwd.charCodeAt(i)) | 0;
171
+ return join(paths.claudeDir, "projects", `${name.slice(0, PROJECT_DIR_MAX)}-${Math.abs(hash).toString(36)}`);
165
172
  }
166
173
 
167
174
  function transcriptPath(sessionId: string): string {