tokenmaxxing 1.81.0 → 1.82.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.81.0",
3
+ "version": "1.82.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",
@@ -509,11 +509,13 @@ export async function runSupervisor(argv: string[]): Promise<number> {
509
509
  noticeSid = m.sessionId;
510
510
  const accounts = loadAccounts(claudePool).accounts;
511
511
  const label = accounts.find((a) => a.id === m.accountId)?.label ?? m.accountId.slice(0, 8);
512
- const walled = accounts.some((a) => a.id === seat?.id && a.enforcedUntil != null && a.enforcedUntil > Date.now());
512
+ const walledUntil = accounts.find((a) => a.id === seat?.id)?.enforcedUntil ?? 0;
513
513
  const transcript = transcriptPath(m.sessionId);
514
514
  const resumable = existsSync(transcript);
515
515
  let compacted = false;
516
- if (m.compact && seat && resumable && !walled) {
516
+ if (m.compact && seat && resumable && walledUntil > Date.now()) {
517
+ log("supervisor.compact_skipped", { sid: m.sessionId.slice(0, 8), seat: seat.id.slice(0, 8), until: walledUntil });
518
+ } else if (m.compact && seat && resumable) {
517
519
  say(`\n\x1b[36m↻ tokenmaxxing: compacting the conversation on ${seat.label} before the move...\x1b[0m\n`, `tokenmaxxing: compacting the conversation on ${seat.label} before the move.`);
518
520
  const compactEnv: Record<string, string | undefined> = { ...childEnv, TOKENMAXXING_PROBE: "1", CLAUDE_SECURESTORAGE_CONFIG_DIR: storeDirFor(seat.id) };
519
521
  delete compactEnv.TOKENMAXXING_SUPERVISED;