feat(tmux): add shared muse tmux socket manager with CLI and agent [TOOL tmux.*] integration
This commit is contained in:
@@ -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[@]}"
|
||||
|
||||
Reference in New Issue
Block a user