batipanel 0.4.40 → 0.4.42

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.40
1
+ 0.4.42
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "batipanel",
3
- "version": "0.4.40",
3
+ "version": "0.4.42",
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,20 +33,23 @@ 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
- printf " Install Homebrew now? [Y/n] "
37
- local _brew_answer=""
38
- if [ -t 0 ]; then
39
- read -r _brew_answer
40
- else
41
- read -r _brew_answer < /dev/tty 2>/dev/null || _brew_answer="y"
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
42
45
  fi
43
46
  case "$_brew_answer" in
44
47
  [nN]*)
45
48
  echo " Skipped. Install Homebrew manually: https://brew.sh"
46
49
  ;;
47
50
  *)
48
- echo " Installing Homebrew..."
49
- /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
51
+ echo " Installing Homebrew (this may take 1-2 minutes)..."
52
+ NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
50
53
  # add brew to PATH for this session
51
54
  if [ -f /opt/homebrew/bin/brew ]; then
52
55
  eval "$(/opt/homebrew/bin/brew shellenv)"