batipanel 0.4.38 → 0.4.39

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.38
1
+ 0.4.39
package/bin/cli.sh CHANGED
@@ -4,12 +4,25 @@ set -euo pipefail
4
4
 
5
5
  BATIPANEL_HOME="${BATIPANEL_HOME:-$HOME/.batipanel}"
6
6
 
7
- if [ -f "$BATIPANEL_HOME/bin/start.sh" ]; then
8
- exec bash "$BATIPANEL_HOME/bin/start.sh" "$@"
9
- else
7
+ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
8
+
9
+ if [ ! -f "$BATIPANEL_HOME/bin/start.sh" ]; then
10
+ # not installed yet (manual run without postinstall)
10
11
  echo "batipanel is not installed yet. Running installer..."
11
- SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
12
12
  bash "$SCRIPT_DIR/install.sh"
13
+ fi
14
+
15
+ # check if postinstall just ran (flag file created by install.sh under npm)
16
+ if [ -f "$BATIPANEL_HOME/.just-installed" ]; then
17
+ rm -f "$BATIPANEL_HOME/.just-installed"
13
18
  echo ""
14
- echo "Run 'batipanel' or 'b' to start."
19
+ echo -e " \033[2m───────────────────────────────────\033[0m"
20
+ echo -e " \033[1mNext step\033[0m \033[2m— activate your shell:\033[0m"
21
+ echo ""
22
+ echo -e " \033[36mexec \$SHELL -l\033[0m"
23
+ echo ""
24
+ echo -e " \033[2mor just open a new terminal window.\033[0m"
25
+ echo -e " \033[2m───────────────────────────────────\033[0m"
26
+ else
27
+ exec bash "$BATIPANEL_HOME/bin/start.sh" "$@"
15
28
  fi
package/install.sh CHANGED
@@ -144,6 +144,10 @@ else
144
144
  fi
145
145
 
146
146
  # === activate prompt theme ===
147
+ # npm/npx: create flag for cli.sh to show activation message
148
+ if [ -n "${npm_lifecycle_event:-}" ]; then
149
+ touch "$BATIPANEL_HOME/.just-installed"
150
+ fi
147
151
  # don't exec $SHELL — it breaks /dev/tty when run from curl|bash or subshells
148
152
  if [ -z "${npm_lifecycle_event:-}" ] && [ -z "${BATIPANEL_WEB_INSTALL:-}" ]; then
149
153
  echo ""
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "batipanel",
3
- "version": "0.4.38",
3
+ "version": "0.4.39",
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"