batipanel 0.4.41 → 0.4.43

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.41
1
+ 0.4.43
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "batipanel",
3
- "version": "0.4.41",
3
+ "version": "0.4.43",
4
4
  "description": "AI-powered terminal workspace manager — multi-panel tmux layouts with Claude Code, git, monitoring, and more",
5
5
  "bin": {
6
6
  "batipanel": "./bin/cli.sh"
@@ -33,23 +33,29 @@ install_required_tools() {
33
33
  if [ "$OS" = "Darwin" ] && ! command -v brew &>/dev/null; then
34
34
  echo ""
35
35
  echo " Homebrew is required on macOS for installing tools (tmux, etc.)"
36
- local _brew_answer="y"
37
- if [ -z "${npm_lifecycle_event:-}" ]; then
38
- # interactive: ask user
39
- printf " Install Homebrew now? [Y/n] "
40
- if [ -t 0 ]; then
41
- read -r _brew_answer
42
- else
43
- read -r _brew_answer < /dev/tty 2>/dev/null || _brew_answer="y"
44
- fi
36
+ if [ -n "${npm_lifecycle_event:-}" ]; then
37
+ # npm/npx: can't install brew (needs sudo password)
38
+ echo " Install Homebrew first, then retry:"
39
+ echo " /bin/bash -c \"\$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)\""
40
+ echo " npx batipanel"
41
+ exit 1
42
+ fi
43
+ printf " Install Homebrew now? [Y/n] "
44
+ local _brew_answer=""
45
+ if [ -t 0 ]; then
46
+ read -r _brew_answer
47
+ else
48
+ read -r _brew_answer < /dev/tty 2>/dev/null || _brew_answer="y"
45
49
  fi
46
50
  case "$_brew_answer" in
47
51
  [nN]*)
48
52
  echo " Skipped. Install Homebrew manually: https://brew.sh"
49
53
  ;;
50
54
  *)
51
- echo " Installing Homebrew..."
52
- NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
55
+ echo " Installing Homebrew (this may take 1-2 minutes)..."
56
+ echo " You may need to enter your macOS password below."
57
+ echo ""
58
+ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
53
59
  # add brew to PATH for this session
54
60
  if [ -f /opt/homebrew/bin/brew ]; then
55
61
  eval "$(/opt/homebrew/bin/brew shellenv)"