tmuxclihook 0.5.6 → 0.5.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tmuxclihook",
3
- "version": "0.5.6",
3
+ "version": "0.5.7",
4
4
  "description": "交互式 TUI 安装器:环境侦测、AI CLI 侦测、tmux-ai-status hooks 装/卸/修、TPM 软链校验",
5
5
  "type": "module",
6
6
  "bin": {
@@ -20,7 +20,12 @@ IFS=$'\t' read -r SESSION_ID HOOK_CWD <<< "$_hook_fields"
20
20
  SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
21
21
  source "${SCRIPT_DIR}/lib-tmux-ai-status.sh"
22
22
 
23
- resolve_tmux_pane
23
+ # tmux 生命周期伪事件(_refresh / _session-switched)只重建聚合,
24
+ # 不写 per-pane 状态,无需解析 pane——避免每次 refresh 都做快照/候选 BFS。
25
+ case "$EVENT" in
26
+ _refresh|_session-switched) ;;
27
+ *) resolve_tmux_pane ;;
28
+ esac
24
29
  # 同 pane 的并发 hooks 必须完整串行化,否则一个事件可能用过期派生结果覆盖另一个
25
30
  # PermissionRequest 已写入的审批态。
26
31
  if [ -n "$TMUX_PANE" ]; then