@ghackk/multi-claude 1.0.14 → 1.0.15

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.
Files changed (2) hide show
  1. package/package.json +33 -33
  2. package/unix/claude-menu.sh +7 -1
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.15",
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 || {