@ghackk/multi-claude 1.0.14 → 1.0.16

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/claude-menu.ps1 CHANGED
@@ -454,6 +454,11 @@ function Create-Account {
454
454
  pause; return
455
455
  }
456
456
 
457
+ if ($name -notmatch '^[a-zA-Z0-9_-]+$') {
458
+ Write-Host " Name can only contain letters, numbers, hyphens, and underscores." -ForegroundColor Red
459
+ pause; return
460
+ }
461
+
457
462
  $batFile = "$ACCOUNTS_DIR\claude-$name.bat"
458
463
  if (Test-Path $batFile) {
459
464
  Write-Host " Account 'claude-$name' already exists!" -ForegroundColor Yellow
package/package.json CHANGED
@@ -1,33 +1,33 @@
1
- {
2
- "name": "@ghackk/multi-claude",
3
- "version": "1.0.14",
4
- "description": "Run multiple Claude CLI accounts with shared settings, plugins, marketplace sync, and backup/restore",
5
- "bin": {
6
- "multi-claude": "bin/claude-multi.js"
7
- },
8
- "files": [
9
- "bin/",
10
- "claude-menu.ps1",
11
- "claude-menu.bat",
12
- "unix/",
13
- "windows/",
14
- "LICENSE",
15
- "README.md"
16
- ],
17
- "repository": {
18
- "type": "git",
19
- "url": "https://github.com/ghackk/claude-multi-account.git"
20
- },
21
- "keywords": [
22
- "claude",
23
- "claude-code",
24
- "claude-cli",
25
- "multi-account",
26
- "account-manager",
27
- "anthropic",
28
- "cli"
29
- ],
30
- "author": "Gyanesh Kumar (ghackk)",
31
- "license": "MIT",
32
- "homepage": "https://github.com/ghackk/claude-multi-account"
33
- }
1
+ {
2
+ "name": "@ghackk/multi-claude",
3
+ "version": "1.0.16",
4
+ "description": "Run multiple Claude CLI accounts with shared settings, plugins, marketplace sync, and backup/restore",
5
+ "bin": {
6
+ "multi-claude": "bin/claude-multi.js"
7
+ },
8
+ "files": [
9
+ "bin/",
10
+ "claude-menu.ps1",
11
+ "claude-menu.bat",
12
+ "unix/",
13
+ "windows/",
14
+ "LICENSE",
15
+ "README.md"
16
+ ],
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "https://github.com/ghackk/claude-multi-account.git"
20
+ },
21
+ "keywords": [
22
+ "claude",
23
+ "claude-code",
24
+ "claude-cli",
25
+ "multi-account",
26
+ "account-manager",
27
+ "anthropic",
28
+ "cli"
29
+ ],
30
+ "author": "Gyanesh Kumar (ghackk)",
31
+ "license": "MIT",
32
+ "homepage": "https://github.com/ghackk/claude-multi-account"
33
+ }
@@ -413,6 +413,12 @@ create_account() {
413
413
  return
414
414
  fi
415
415
 
416
+ if ! echo "$name" | grep -qE '^[a-zA-Z0-9_-]+$'; then
417
+ echo -e " \033[31mName can only contain letters, numbers, hyphens, and underscores.\033[0m"
418
+ read -p " Press Enter..." _
419
+ return
420
+ fi
421
+
416
422
  local shFile="$ACCOUNTS_DIR/claude-$name.sh"
417
423
  if [ -f "$shFile" ]; then
418
424
  echo -e " \033[33mAccount 'claude-$name' already exists!\033[0m"
@@ -726,7 +732,7 @@ apply_import_token() {
726
732
  rm -rf "$tempDir" "$rawPath" "$zipPath"
727
733
  return 1
728
734
  }
729
- cd "$tempDir" && unzip -qo "$zipPath" 2>/dev/null
735
+ (cd "$tempDir" && unzip -qo "$zipPath" 2>/dev/null)
730
736
  rm -f "$zipPath"
731
737
  else
732
738
  tar -xzf "$rawPath" -C "$tempDir" 2>/dev/null || {