feat(tmux): add shared muse tmux socket manager with CLI and agent [TOOL tmux.*] integration

This commit is contained in:
operator
2026-10-05 16:11:19 +00:00
parent 07c67e5da3
commit 0ca0fd0c1a
5 changed files with 346 additions and 1 deletions
+7
View File
@@ -24,6 +24,7 @@ show_usage() {
echo ""
echo "Common commands:"
echo " chat [--thread <id>] Launch interactive conversational shell / REPL"
echo " tmux <cmd> [args...] Manage shared Muse tmux sessions (new, send, capture, ls, kill)"
echo " status Check agent status, sessions, and unread"
echo " threads List active threads and sidechats"
echo " history --thread <id> View message history"
@@ -106,6 +107,12 @@ if [[ "${POSITIONAL[0]}" == "chat" ]]; then
exec python3 "$NETVM_BIN/muse-chat-repl.py" "$ACCOUNT" "${shift_args[@]}"
fi
# If subcommand is 'tmux', dispatch to shared muse-tmux manager
if [[ "${POSITIONAL[0]}" == "tmux" ]]; then
shift_args=("${POSITIONAL[@]:1}")
exec python3 "$NETVM_BIN/muse-tmux.py" "${shift_args[@]}"
fi
# Execute command; if auth fails and auto-cdp fails, offer interactive OTP sign-in if running interactively
set +e
"$NETVM_BIN/muse-cli-node" "$ACCOUNT" "${POSITIONAL[@]}"