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 +1 -1
- package/scripts/tmux-ai-status +6 -1
package/package.json
CHANGED
package/scripts/tmux-ai-status
CHANGED
|
@@ -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
|
-
|
|
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
|