batipanel 0.4.39 → 0.4.40

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.39
1
+ 0.4.40
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "batipanel",
3
- "version": "0.4.39",
3
+ "version": "0.4.40",
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"
@@ -29,6 +29,34 @@ install_required_tools() {
29
29
 
30
30
  _setup_brew_path
31
31
 
32
+ # macOS: install Homebrew if missing (needed for tmux and other tools)
33
+ if [ "$OS" = "Darwin" ] && ! command -v brew &>/dev/null; then
34
+ echo ""
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"
42
+ fi
43
+ case "$_brew_answer" in
44
+ [nN]*)
45
+ echo " Skipped. Install Homebrew manually: https://brew.sh"
46
+ ;;
47
+ *)
48
+ echo " Installing Homebrew..."
49
+ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
50
+ # add brew to PATH for this session
51
+ if [ -f /opt/homebrew/bin/brew ]; then
52
+ eval "$(/opt/homebrew/bin/brew shellenv)"
53
+ elif [ -f /usr/local/bin/brew ]; then
54
+ eval "$(/usr/local/bin/brew shellenv)"
55
+ fi
56
+ ;;
57
+ esac
58
+ fi
59
+
32
60
  # required: tmux
33
61
  if ! command -v tmux &>/dev/null; then
34
62
  echo "Installing tmux..."
@@ -44,7 +72,8 @@ install_required_tools() {
44
72
  echo ""
45
73
  echo "tmux is required but could not be installed."
46
74
  if [ "$OS" = "Darwin" ]; then
47
- echo "Install via Homebrew: brew install tmux"
75
+ echo " Install Homebrew first: https://brew.sh"
76
+ echo " Then: brew install tmux"
48
77
  else
49
78
  echo "Install via package manager: sudo apt install tmux (or equivalent)"
50
79
  fi