tinker-agent 1.0.14 → 1.0.15
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/bin/agent-bridge-tmux +3 -3
- package/package.json +1 -1
package/bin/agent-bridge-tmux
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
set -e
|
|
5
5
|
|
|
6
6
|
AGENT_TYPE="${AGENT_TYPE:-worker}"
|
|
7
|
-
STATUS_FILE="/tmp/agent-bridge-status
|
|
7
|
+
STATUS_FILE="/tmp/agent-bridge-status"
|
|
8
8
|
|
|
9
9
|
# Check if we're already inside tmux
|
|
10
10
|
if [ -n "$TMUX" ]; then
|
|
@@ -41,14 +41,14 @@ tmux set-option -g status-right-length 300
|
|
|
41
41
|
tmux set-option -t "$SESSION" status-left-length 30
|
|
42
42
|
tmux set-option -t "$SESSION" status-right-length 300
|
|
43
43
|
tmux set-option -t "$SESSION" status-left "#[fg=cyan,bold]🤖 $AGENT_TYPE #[fg=cyan]│ "
|
|
44
|
-
tmux set-option -t "$SESSION" status-right "#[fg=green]#(cat $STATUS_FILE 2>/dev/null || echo '❓') #[fg=cyan]│ #[fg=white]%H:%M:%S"
|
|
44
|
+
tmux set-option -t "$SESSION" status-right "#[fg=yellow]#(cat ${STATUS_FILE}.cmd 2>/dev/null) #[fg=cyan]│ #[fg=green]#(cat $STATUS_FILE 2>/dev/null || echo '❓') #[fg=cyan]│ #[fg=white]%H:%M:%S"
|
|
45
45
|
tmux set-option -t "$SESSION" window-status-format ""
|
|
46
46
|
tmux set-option -t "$SESSION" window-status-current-format ""
|
|
47
47
|
tmux set-option -t "$SESSION" remain-on-exit off
|
|
48
48
|
tmux set-option -t "$SESSION" mouse on
|
|
49
49
|
|
|
50
50
|
# Run agent-bridge in tmux session
|
|
51
|
-
tmux send-keys -t "$SESSION" "export
|
|
51
|
+
tmux send-keys -t "$SESSION" "export AGENT_TYPE='$AGENT_TYPE' && export INSIDE_TMUX=1 && agent-bridge" C-m
|
|
52
52
|
|
|
53
53
|
# Attach or wait
|
|
54
54
|
if [ -t 0 ]; then
|