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.
- package/bin/claude-accounts +9 -22
- package/package.json +1 -1
package/bin/claude-accounts
CHANGED
|
@@ -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
|
|
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
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
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
|
-
|
|
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.
|
|
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": {
|