claude-multiacc 1.0.2 → 1.0.3

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.
@@ -546,30 +546,17 @@ run_login_ceremony() { # $1 = config dir, $2 = email hint
546
546
  cat <<'TIP'
547
547
  A browser will open (or a sign-in link will be printed) for the FULL Claude Code
548
548
  login. Sign in as the account you want to add and approve; if a code is shown,
549
- paste it back here. This is the normal login it draws on the subscription, no
550
- API keys, and refreshes itself over time.
549
+ paste it after the "Paste code here" prompt and press Enter. This is the normal
550
+ login — it draws on the subscription, no API keys, and refreshes itself over time.
551
551
  TIP
552
- if [ -t 0 ]; then
553
- if [ "$(machine_kind)" = "mac" ]; then
554
- if [ -n "$hint" ]; then
555
- script -q /dev/null env CLAUDE_CONFIG_DIR="$d" CLAUDE_SHIM_ACTIVE=1 "$real" auth login --claudeai --email "$hint"
556
- else
557
- script -q /dev/null env CLAUDE_CONFIG_DIR="$d" CLAUDE_SHIM_ACTIVE=1 "$real" auth login --claudeai
558
- fi
559
- else
560
- if [ -n "$hint" ]; then
561
- script -q -c "CLAUDE_CONFIG_DIR='$d' CLAUDE_SHIM_ACTIVE=1 '$real' auth login --claudeai --email '$hint'" /dev/null
562
- else
563
- script -q -c "CLAUDE_CONFIG_DIR='$d' CLAUDE_SHIM_ACTIVE=1 '$real' auth login --claudeai" /dev/null
564
- fi
565
- fi
552
+ # Run claude auth login DIRECTLY on the user's terminal (no `script` PTY wrapper):
553
+ # we capture nothing here (the credential is written to .credentials.json), and a
554
+ # PTY layer can suppress the echo of the pasted code. Direct invocation behaves
555
+ # exactly like running `claude auth login` yourself, so the code you paste is shown.
556
+ if [ -n "$hint" ]; then
557
+ CLAUDE_CONFIG_DIR="$d" CLAUDE_SHIM_ACTIVE=1 "$real" auth login --claudeai --email "$hint" || true
566
558
  else
567
- # Headless (tests / automation): no PTY.
568
- if [ -n "$hint" ]; then
569
- CLAUDE_CONFIG_DIR="$d" CLAUDE_SHIM_ACTIVE=1 "$real" auth login --claudeai --email "$hint" || true
570
- else
571
- CLAUDE_CONFIG_DIR="$d" CLAUDE_SHIM_ACTIVE=1 "$real" auth login --claudeai || true
572
- fi
559
+ CLAUDE_CONFIG_DIR="$d" CLAUDE_SHIM_ACTIVE=1 "$real" auth login --claudeai || true
573
560
  fi
574
561
  [ -f "$d/.credentials.json" ]
575
562
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-multiacc",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Multi-account addon for Claude Code: every claude / claude -p runs under a randomly-picked subscription account with the most usage headroom. Mirrors to a deploy server. No API keys.",
5
5
  "type": "module",
6
6
  "bin": {