agileflow 2.99.2 → 2.99.4

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/CHANGELOG.md CHANGED
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [2.99.4] - 2026-02-09
11
+
12
+ ### Fixed
13
+ - Fix tmux socket directory creation on macOS
14
+
15
+ ## [2.99.3] - 2026-02-09
16
+
17
+ ### Fixed
18
+ - Auto-heal tmux socket directory after macOS reboot
19
+
10
20
  ## [2.99.2] - 2026-02-09
11
21
 
12
22
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agileflow",
3
- "version": "2.99.2",
3
+ "version": "2.99.4",
4
4
  "description": "AI-driven agile development system for Claude Code, Cursor, Windsurf, and more",
5
5
  "keywords": [
6
6
  "agile",
@@ -122,6 +122,29 @@ if [ "$NO_TMUX" = true ]; then
122
122
  exec claude "$@"
123
123
  fi
124
124
 
125
+ # ── Self-healing: ensure tmux socket directory exists ──────────────────────
126
+ # macOS clears /private/tmp/ on reboot, which removes the tmux socket dir.
127
+ # This causes "error connecting to ... (No such file or directory)" on every
128
+ # tmux command. We fix it automatically so users never see this error.
129
+ # Must run BEFORE any tmux command (including --kill, --attach, --refresh).
130
+ #
131
+ # IMPORTANT: tmux uses $TMUX_TMPDIR, then falls back to /tmp (NOT $TMPDIR).
132
+ # On macOS, $TMPDIR is /var/folders/.../T/ but tmux uses /private/tmp/.
133
+ if command -v tmux &> /dev/null; then
134
+ _TMUX_BASE="${TMUX_TMPDIR:-/tmp}"
135
+ _TMUX_BASE="${_TMUX_BASE%/}"
136
+ _TMUX_SOCK_DIR="${_TMUX_BASE}/tmux-$(id -u)"
137
+ if [ ! -d "$_TMUX_SOCK_DIR" ]; then
138
+ mkdir -p "$_TMUX_SOCK_DIR" 2>/dev/null && chmod 700 "$_TMUX_SOCK_DIR" 2>/dev/null
139
+ if [ ! -d "$_TMUX_SOCK_DIR" ]; then
140
+ echo "Warning: Could not create tmux socket directory ($_TMUX_SOCK_DIR)."
141
+ echo "Running claude without tmux."
142
+ exec claude "$@"
143
+ fi
144
+ fi
145
+ unset _TMUX_BASE _TMUX_SOCK_DIR
146
+ fi
147
+
125
148
  # Generate directory name (used for session name patterns)
126
149
  DIR_NAME=$(basename "$(pwd)")
127
150