tokenmaxxing 1.122.0 → 1.123.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.
|
|
3
|
+
"version": "1.123.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",
|
|
@@ -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
|
-
|
|
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 {
|