Skip to content

armgit / muxin

Public Imported from GitHub
0

All your machines, one app. For you and your AI agents: agent sessions, desktops, files, logs and GitHub across your Macs, Linux and Windows machines, with an MCP server.

Muxin: Muxen's new name, and Homebrew

Adib Hannac7843d58a27d
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index c039d41..b67cae5 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -90,7 +90,7 @@ jobs:
- uses: actions/upload-artifact@v7
with:
name: macos
- path: dist/Muxen-*-macos.dmg
+ path: dist/Muxin-*-macos.dmg
if-no-files-found: error
# Intel and Arm, each built on its own kind of machine. The oldest Ubuntu
@@ -122,13 +122,13 @@ jobs:
- run: scripts/package-linux.sh --skip-agents
- name: It runs here
run: |
- tar -xzf dist/Muxen-*-linux-${{ matrix.arch }}.tar.gz -C "$RUNNER_TEMP"
- "$RUNNER_TEMP/Muxen/muxen" --version
- "$RUNNER_TEMP/Muxen/agents/muxen-agent-linux-${{ matrix.arch }}" hash
+ tar -xzf dist/Muxin-*-linux-${{ matrix.arch }}.tar.gz -C "$RUNNER_TEMP"
+ "$RUNNER_TEMP/Muxin/muxin" --version
+ "$RUNNER_TEMP/Muxin/agents/muxen-agent-linux-${{ matrix.arch }}" hash
- uses: actions/upload-artifact@v7
with:
name: linux-${{ matrix.arch }}
- path: dist/Muxen-*-linux-${{ matrix.arch }}.tar.gz
+ path: dist/Muxin-*-linux-${{ matrix.arch }}.tar.gz
if-no-files-found: error
# x64 and Arm, each built on its own kind of machine.
@@ -170,15 +170,15 @@ jobs:
- name: It runs here
shell: pwsh
run: |
- dist\windows\Muxen\muxen.exe --version
+ dist\windows\Muxin\muxin.exe --version
if ($LASTEXITCODE) { exit $LASTEXITCODE }
- dist\windows\Muxen\agents\muxen-agent-windows-${{ matrix.agent }}.exe hash
+ dist\windows\Muxin\agents\muxen-agent-windows-${{ matrix.agent }}.exe hash
- uses: actions/upload-artifact@v7
with:
name: windows-${{ matrix.arch }}
path: |
- dist/Muxen-*-windows-${{ matrix.arch }}.zip
- dist/Muxen-*-windows-${{ matrix.arch }}-setup.exe
+ dist/Muxin-*-windows-${{ matrix.arch }}.zip
+ dist/Muxin-*-windows-${{ matrix.arch }}-setup.exe
if-no-files-found: error
# A draft release with every file and their checksums, for a tag.
@@ -195,11 +195,11 @@ jobs:
merge-multiple: true
- name: Checksums
working-directory: dist
- run: sha256sum Muxen-* > SHA256SUMS.txt && cat SHA256SUMS.txt
+ run: sha256sum Muxin-* > SHA256SUMS.txt && cat SHA256SUMS.txt
- name: Draft release
env:
GH_TOKEN: ${{ github.token }}
run: |
signed=$([ "$SIGNED" = true ] && echo "" || echo " (unsigned test build)")
- gh release create "$GITHUB_REF_NAME" dist/Muxen-* dist/SHA256SUMS.txt \
- --draft --title "Muxen ${GITHUB_REF_NAME#v}$signed" --generate-notes
+ gh release create "$GITHUB_REF_NAME" dist/Muxin-* dist/SHA256SUMS.txt \
+ --draft --title "Muxin ${GITHUB_REF_NAME#v}$signed" --generate-notes
diff --git a/AGENTS.md b/AGENTS.md
index e3f2b6e..8512b19 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -1,12 +1,12 @@
-# Working with Muxen as an agent
+# Working with Muxin as an agent
-Muxen is one app for all of the user's machines (reached over `ssh`, or directly for `host = "local"`): agent sessions, desktops, files, GitHub, workspaces, cloud machines, and the self-hosted GitHub Actions runners installed on them.
+Muxin is one app for all of the user's machines (reached over `ssh`, or directly for `host = "local"`): agent sessions, desktops, files, GitHub, workspaces, cloud machines, and the self-hosted GitHub Actions runners installed on them.
-Use the MCP tools when they're connected: start the server with `muxen mcp`, and see the README for setup. Otherwise use the CLI with `--json`. Both front the same API and return the same shapes.
+Use the MCP tools when they're connected: start the server with `muxin mcp`, and see the README for setup. Otherwise use the CLI with `--json`. Both front the same API and return the same shapes.
## Ground rules
-1. **Start with `status`** (`muxen status --json`) and read `attention` first. It lists what's wrong, most severe first, with the `machine_id` or `runner_id` each item is about.
+1. **Start with `status`** (`muxin status --json`) and read `attention` first. It lists what's wrong, most severe first, with the `machine_id` or `runner_id` each item is about.
2. **The state may be stale.** `status` uses the last machine check. Look at `last_check_at` and each machine's `checked_at`. Call `check_machines` (or `status` with `refresh: true`) when you need it fresh. Checks are read-only.
3. **Confirm before changing real things.** `install_runners` and `runner_action` with `stop`, `restart` or `remove` run commands on the user's machines and register or deregister runners on GitHub. Do them when the user asked for exactly that; otherwise say what you'd do and ask. `add_machine`, `remove_machine`, `rename_machine` and `connect_machine` only edit `config.toml`.
4. **Use the hints.** Errors have a `code`:
@@ -34,7 +34,7 @@ Use the MCP tools when they're connected: start the server with `muxen mcp`, and
**"Add my server and put two runners on it."**
-1. Call `list_ssh_hosts` to find the user's alias, or ask for `user@host`. Its `tailnet` list has the computers on the user's Tailscale network, each with the `host` to add it by; one added that way is reachable from anywhere. Its `network` list has computers on the local network that aren't in Muxen yet; `ssh: false` is a Mac with Remote Login off, which the user turns on in System Settings › General › Sharing before it can be added.
+1. Call `list_ssh_hosts` to find the user's alias, or ask for `user@host`. Its `tailnet` list has the computers on the user's Tailscale network, each with the `host` to add it by; one added that way is reachable from anywhere. Its `network` list has computers on the local network that aren't in Muxin yet; `ssh: false` is a Mac with Remote Login off, which the user turns on in System Settings › General › Sharing before it can be added.
2. Call `add_machine(name, host)`. Its result includes the first check. If the status is `offline`, the machine isn't reachable with key-based ssh. Show the error and stop.
3. Make sure a GitHub scope is watched (`status.github.watching`). If none is, ask which org or repo to use and call `github_scopes(add: [...])`. A failure there usually needs `admin:org`; show the hint.
4. Call `install_runners(machine_id, count: 2)`. Pass `scope` if more than one org or repo is watched. The default `mode: "auto"` picks a service where possible, else Docker containers (Linux without passwordless sudo), else a background run.sh; the log says which. Use `mode: "docker"` when the user wants isolated runners; only pass `docker_socket: true` if they explicitly want jobs to use Docker and trust the workflows (it's root-equivalent on the host).
@@ -87,11 +87,11 @@ A workspace is a persistent folder on one of the user's machines, optionally a g
2. Run the tests with `workspace_exec`. Fix things with `workspace_write_file` or `workspace_exec`, and review with `workspace_changes`.
3. Confirm with the user, then `workspace_sync(direction: "pull")`. Only pass `delete: true` when they want deletions mirrored into their checkout.
-The CLI equivalents are `muxen workspace create|ls|show|exec|cat|write|files|changes|sync|rm|allow`, aliased as `muxen ws`. `ws exec` exits with the command's own exit code.
+The CLI equivalents are `muxin workspace create|ls|show|exec|cat|write|files|changes|sync|rm|allow`, aliased as `muxin ws`. `ws exec` exits with the command's own exit code.
## Agent sessions: other agents running on the user's machines
-The user runs AI agent CLIs (Claude Code, Codex, OpenCode, Gemini CLI, Amp) or shells in persistent sessions on their machines (held by Muxen's agent there) and watches them in the app. Ids look like `beelink/claude-3f9a`.
+The user runs AI agent CLIs (Claude Code, Codex, OpenCode, Gemini CLI, Amp) or shells in persistent sessions on their machines (held by Muxin's agent there) and watches them in the app. Ids look like `beelink/claude-3f9a`.
- `session_list` shows every session (agent, folder, `status`, `busy` = printed output in the last few seconds) and which agent CLIs each machine has. Its `git` says what the work in a session's folder changed: `branch`, the files, lines and `commits` since the default branch (`base`), `uncommitted` files, whether it's a `worktree`, and the branch's `pull` request with its `checks`.
- `session_action(id, action)` asks a session's agent to `commit`, `commit_push`, open or update the `pull_request`, `review` its branch, `fix_comments` (the pull request's review comments), resolve `conflicts`, or write a `recap`, by typing that action's prompt (the user can change them in Settings). Only when the user asked for it.
@@ -100,19 +100,19 @@ The user runs AI agent CLIs (Claude Code, Codex, OpenCode, Gemini CLI, Amp) or s
- `session_send` types text and presses Enter. `session_start` starts one (optionally with a `prompt`); `session_stop` ends it. `session_rename` changes its title (the agent on the machine keeps it; an empty title goes back to the original).
- These are the user's sessions. Start, type into or stop one only when they asked; reading is fine.
-The CLI equivalents are `muxen session ls|start|read|question|answer|send|do|attach|restart|rename|stop`.
+The CLI equivalents are `muxin session ls|start|read|question|answer|send|do|attach|restart|rename|stop`.
## Usage and cost
- `agent_usage(days?, machine_id?)` says what Claude Code and Codex used over the last N days (default 7), from their own logs on each machine: tokens (input, output, cache reads and writes) and requests by model and machine, and the cost at Anthropic's and OpenAI's API list prices (`null` for a model whose price isn't known). With a Claude or ChatGPT plan the user doesn't pay per token: say it's what the same use would cost through the API. Read-only.
-- The CLI equivalent is `muxen usage [--days N] [--machine X]`.
+- The CLI equivalent is `muxin usage [--days N] [--machine X]`.
## GitHub and the user's code
- `github_inbox` shows what needs the user: review requests, assigned issues, their open PRs. `github_repos` lists their repositories, favorites first (`favorite: true`: the ones they work on most). `github_favorite` stars or unstars one; only when asked.
-- Muxen uses one GitHub account at a time. `github_accounts` shows which (`using`) and the alternatives: accounts the GitHub CLI here is signed in to, and other machines' `gh` logins. `github_use_account` switches (only when asked); it changes whose repositories and runners Muxen sees.
+- Muxin uses one GitHub account at a time. `github_accounts` shows which (`using`) and the alternatives: accounts the GitHub CLI here is signed in to, and other machines' `gh` logins. `github_use_account` switches (only when asked); it changes whose repositories and runners Muxin sees.
- `github_repo` gives a repository's open issues, PRs, recent Actions runs, and its checkouts on the user's machines. `github_item` gives an issue or PR in full (description, comments; for PRs also checks and reviews), from its URL or `owner/name#123`.
-- `muxen edit <machine>:<folder>` opens a folder of a machine's in the user's editor here (Zed, Cursor or VS Code, over ssh). It opens a window on the user's screen: only when asked.
+- `muxin edit <machine>:<folder>` opens a folder of a machine's in the user's editor here (Zed, Cursor or VS Code, over ssh). It opens a window on the user's screen: only when asked.
- `local_checkouts` lists git checkouts on the machines (branch, ahead/behind, uncommitted files). `git_sync` runs fetch, pull (fast-forward only) or push in one; only when asked.
- To work on an issue: find a checkout with `local_checkouts` and make a worktree of it (`workspace_create(machine_id, worktree_of: <its folder>, branch: "issue-123-short-name")`), or create a workspace with a clone of the repo (`workspace_create(repo, branch: ...)`; for a pull request `ref: "pull/123/head"` checks out its code, forks included). Then `session_start` an agent in that folder with the issue's URL and text as the prompt, or work there yourself with `workspace_exec`.
- Before an agent commits or pushes on a machine, `git_status(machine_id)` says whether that works (`can_commit`, `push`). `git_setup` fixes it (identity from the user's GitHub account, credentials through the machine's GitHub CLI); only when asked, since it changes the machine's global git config.
@@ -120,17 +120,17 @@ The CLI equivalents are `muxen session ls|start|read|question|answer|send|do|att
## Connections and desktops
-- A machine can be disconnected on purpose (`status: "disconnected"`): Muxen doesn't connect to it, check it or read its sessions (they keep running there), and anything that would reach it fails with "<name> is disconnected. Connect to it first." `connect_machine(machine_id)` connects again (and checks it); `connect_machine(machine_id, connected: false)` disconnects. Only when asked.
+- A machine can be disconnected on purpose (`status: "disconnected"`): Muxin doesn't connect to it, check it or read its sessions (they keep running there), and anything that would reach it fails with "<name> is disconnected. Connect to it first." `connect_machine(machine_id)` connects again (and checks it); `connect_machine(machine_id, connected: false)` disconnects. Only when asked.
-- `machine_connection` says how Muxen reaches a machine: `direct` (QUIC), `ssh` (one live ssh connection) or `none`, with a measured round trip and the `network` it goes over ("Local network", "Tailscale", ...). `direct_connection(machine_id, enabled)` pairs for direct connections (it installs a user service on the machine; only when asked).
-- Tailscale, when it's on this computer, keeps machines reachable away from home: Muxen uses the local network when the machine is on it and Tailscale otherwise, and switches by itself when the network changes. A machine's `tailnet` (in `get_machine` and `machine_connection`) says whether Tailscale sees it online and whether traffic goes peer-to-peer (`path: "direct"`) or through a slower relay (`"relay"`). An `unreachable.kind` of `"tailscale-off"` means Tailscale is off or signed out on this computer: tell the user to turn it on; Muxen never changes Tailscale's settings.
-- `machine_ports(machine_id)` lists what's listening on a machine: each port with its program or Docker container, and for web servers (`web: true`) their status and page title. To show the user a server running there, they open it from the machine's page in the app (Servers › Open, at `localhost` on their computer) or run `muxen forward <machine> <port>`; you can check it from the machine itself with `workspace_exec(command: "curl -sS localhost:<port>")`.
+- `machine_connection` says how Muxin reaches a machine: `direct` (QUIC), `ssh` (one live ssh connection) or `none`, with a measured round trip and the `network` it goes over ("Local network", "Tailscale", ...). `direct_connection(machine_id, enabled)` pairs for direct connections (it installs a user service on the machine; only when asked).
+- Tailscale, when it's on this computer, keeps machines reachable away from home: Muxin uses the local network when the machine is on it and Tailscale otherwise, and switches by itself when the network changes. A machine's `tailnet` (in `get_machine` and `machine_connection`) says whether Tailscale sees it online and whether traffic goes peer-to-peer (`path: "direct"`) or through a slower relay (`"relay"`). An `unreachable.kind` of `"tailscale-off"` means Tailscale is off or signed out on this computer: tell the user to turn it on; Muxin never changes Tailscale's settings.
+- `machine_ports(machine_id)` lists what's listening on a machine: each port with its program or Docker container, and for web servers (`web: true`) their status and page title. To show the user a server running there, they open it from the machine's page in the app (Servers › Open, at `localhost` on their computer) or run `muxin forward <machine> <port>`; you can check it from the machine itself with `workspace_exec(command: "curl -sS localhost:<port>")`.
- `desktop_screenshot(machine_id)` returns a picture of the machine's screen (Linux with X11, Macs, and Windows with someone signed in). `desktop_input(machine_id, events)` clicks, types, scrolls and presses keys there, in that picture's pixels: look first, act, then look again. It's the user's real screen: only when asked, and never type passwords.
-- A machine can have several monitors. `desktop_displays(machine_id)` lists them (each with an `id`; Muxen's virtual ones have `virtual: true`); pass `display` to `desktop_screenshot` and `desktop_input` to use one. `desktop_add_display(machine_id, width?, height?, name?)` adds a virtual monitor to the desktop (Linux and Macs), as if another screen were plugged in, and `desktop_remove_display(machine_id, display)` takes it away. `desktop_set_display(machine_id, display, width?, height?, scale?)` changes a monitor's resolution (one of its `modes`) or the desktop's scale on it (`scales`; on Linux X11 one scale for all monitors): a 4K monitor at scale 2 reads like 1080p and stays sharp. They change the user's real desktop: only when asked.
+- A machine can have several monitors. `desktop_displays(machine_id)` lists them (each with an `id`; Muxin's virtual ones have `virtual: true`); pass `display` to `desktop_screenshot` and `desktop_input` to use one. `desktop_add_display(machine_id, width?, height?, name?)` adds a virtual monitor to the desktop (Linux and Macs), as if another screen were plugged in, and `desktop_remove_display(machine_id, display)` takes it away. `desktop_set_display(machine_id, display, width?, height?, scale?)` changes a monitor's resolution (one of its `modes`) or the desktop's scale on it (`scales`; on Linux X11 one scale for all monitors): a 4K monitor at scale 2 reads like 1080p and stays sharp. They change the user's real desktop: only when asked.
## Cloud machines
-Muxen can create DigitalOcean droplets in the user's account and add them to the user's machines (signed in from Settings › Cloud: an API token, the browser, or doctl).
+Muxin can create DigitalOcean droplets in the user's account and add them to the user's machines (signed in from Settings › Cloud: an API token, the browser, or doctl).
- `cloud_options` shows the sign-in, regions, sizes with hourly and monthly prices, and the defaults.
- `cloud_create(name, region?, size?)` creates one, sets it up (the user's account and SSH key; Docker, git, gh; Node with Claude Code and Codex; Tailscale, as the user's settings say) and adds it to the user's machines. **It costs money every hour it exists:** tell the user the size and price and get their OK first.
@@ -139,15 +139,15 @@ Muxen can create DigitalOcean droplets in the user's account and add them to the
- `cloud_destroy(machine_id)` deletes the droplet and everything on it. Confirm first and make sure work there is pushed.
- A cloud machine's `cloud` field (in `get_machine`) has its region, size, price, cost so far and how long it has been idle.
-The CLI equivalents are `muxen cloud options|create|usage|power|destroy|login|logout`.
+The CLI equivalents are `muxin cloud options|create|usage|power|destroy|login|logout`.
## VMs on the user's machines
-Muxen can make a VM on one of the user's machines and add it to them, shown under that machine: Windows (11, 10, Server 2025 or 2022) in Docker with KVM on a Linux x86-64 machine, or Linux (Ubuntu, Debian, Fedora, Alpine, Arch) as a container with ssh on any machine with Docker, this computer included. Muxen sets up ssh with this computer's key and its agent there, so sessions, files, `workspace_exec` and the desktop work like on any machine.
+Muxin can make a VM on one of the user's machines and add it to them, shown under that machine: Windows (11, 10, Server 2025 or 2022) in Docker with KVM on a Linux x86-64 machine, or Linux (Ubuntu, Debian, Fedora, Alpine, Arch) as a container with ssh on any machine with Docker, this computer included. Muxin sets up ssh with this computer's key and its agent there, so sessions, files, `workspace_exec` and the desktop work like on any machine.
- `vm_options` lists the machines that can run VMs (and which systems, or why not), the system ids and the defaults.
- `vm_create(name, system, host?, cpus?, memory_gb?, disk_gb?)` makes one; the result names the new `machine_id`. Linux is ready in under a minute. Windows downloads and installs itself, 15-30 minutes the first time: pass `wait: false` and poll `get_operation`. Until it answers, its `unreachable.kind` is `"installing"`.
-- `machine_power(machine_id, "on"|"off")` starts or stops it (Windows gets two minutes to shut down cleanly); `vm_destroy(machine_id)` deletes its container and disk and removes it from Muxen. A machine's `vm` field says Muxen made it (and so can destroy it).
+- `machine_power(machine_id, "on"|"off")` starts or stops it (Windows gets two minutes to shut down cleanly); `vm_destroy(machine_id)` deletes its container and disk and removes it from Muxin. A machine's `vm` field says Muxin made it (and so can destroy it).
- It uses the user's machine, memory and disk: make one when asked, or when a task needs a fresh machine (a clean Windows to test an installer on, say), and destroy it when the task is done unless the user wants it kept. Copy out anything worth keeping first.
- Each VM gets a UDP port on its host forwarded to it (its `direct_address`), so `direct_connection(machine_id, true)` works for it like for any machine. A Linux VM's CPU, memory and uptime are its container's own limits.
- A Windows VM's account password is in the user's Keychain (the app's Copy password button); you don't need it: ssh uses the key.
@@ -159,11 +159,11 @@ Muxen can make a VM on one of the user's machines and add it to them, shown unde
3. Work there: `workspace_create(machine_id: "win-test")` and `workspace_exec`, or `copy_files` and `session_start`.
4. `vm_destroy("win-test")` when you're done, unless the user wants it kept.
-The CLI equivalents are `muxen vm options|create|destroy` and `muxen power <machine> on|off`.
+The CLI equivalents are `muxin vm options|create|destroy` and `muxin power <machine> on|off`.
## Schedules
-A schedule runs a command, or starts an agent session, on one machine at set times. It's kept on that machine and run by Muxen's agent through the machine's own scheduler (cron on Linux, launchd on a Mac, Task Scheduler on Windows), so it runs whether or not Muxen is open anywhere. Times are the machine's own.
+A schedule runs a command, or starts an agent session, on one machine at set times. It's kept on that machine and run by Muxin's agent through the machine's own scheduler (cron on Linux, launchd on a Mac, Task Scheduler on Windows), so it runs whether or not Muxin is open anywhere. Times are the machine's own.
- `schedule_list(machine_id?)` lists them with `when_text`, `what`, `enabled`, `running` and `last_run`; `problem` says when a machine can't run them (no cron, as in a container).
- `schedule_save(machine_id, name, when, command | agent + prompt, folder?)` creates one (or changes it, with `id`). `when` is `{every: "minutes"|"hours", n}`, `{every: "day"|"weekdays", at: "09:00"}` or `{every: "week", days: ["mon", "thu"], at}`. An agent schedule starts a session the user sees like any other, waiting for them when it's done; for an agent run that finishes by itself, schedule a command such as `claude -p "..."`.
@@ -171,7 +171,7 @@ A schedule runs a command, or starts an agent session, on one machine at set tim
- `schedule_delete(machine_id, schedule_id)` removes one with its history.
- They run unattended on the user's machines: create one only when asked, and say what it runs and when.
-The CLI equivalents are `muxen schedule ls|add|rm|run|log`.
+The CLI equivalents are `muxin schedule ls|add|rm|run|log`.
## Several machines at once
@@ -179,36 +179,36 @@ The CLI equivalents are `muxen schedule ls|add|rm|run|log`.
- `status.attention` and `get_machine`'s diagnostics include `reboot-required` (a Linux machine's updates want a restart) and `failed-services` (systemd units that failed, by name). Read their logs (`logs_read(kind: "service")`) before suggesting a fix.
- A machine can run on another of the user's machines: `get_machine`'s `parent` names that machine, with `relation` `"vm"`, `"container"` or `"inside"` (kind unknown), or `"through"` when ssh only goes through it (a jump host). `container` is the Docker container it runs in there, and `containerState` that container's state. When it can't be reached because of that, `unreachable.kind` is `"host-down"` (the machine it's on is off) or `"stopped"` (its container isn't running): start that machine, or its container.
- `machine_power(machine_id, "on"|"off")` starts or stops the container a VM runs in (stopping gives it two minutes to shut down cleanly), or powers a cloud machine. It changes the user's machines: only when asked.
-- `wake_machine(machine_id)` sends Wake on LAN to a machine that's asleep or off, from this computer and from online machines on its network. It works once Muxen has seen the machine's network card (while it was on) and when the machine is set up to wake that way. Muxen checks it again after 20 and 40 seconds.
-- The CLI equivalents are `muxen run --on a,b -- <command>` (`--all` for every machine online; it exits 1 when any failed), `muxen wake <machine>` and `muxen power <machine> on|off`.
+- `wake_machine(machine_id)` sends Wake on LAN to a machine that's asleep or off, from this computer and from online machines on its network. It works once Muxin has seen the machine's network card (while it was on) and when the machine is set up to wake that way. Muxin checks it again after 20 and 40 seconds.
+- The CLI equivalents are `muxin run --on a,b -- <command>` (`--all` for every machine online; it exits 1 when any failed), `muxin wake <machine>` and `muxin power <machine> on|off`.
## Logs
- `log_sources(machine_id)` lists what a machine has to read: its system log (`kind: "system"`; `"kernel"` on Linux), log files (`readable: false` for root-only ones), Docker containers and running services (`user: true` for the user's own units).
- `logs_read(machine_id, kind, target?, lines?, filter?)` returns a log's last lines (200 by default): a file's path, a container's name or id, a unit as `target`. Use it to find out why something failed before guessing. Read-only.
-- The CLI equivalent is `muxen logs <machine> [--list | --kernel | --file <path> | --unit <name> [--user] | --container <name>] [-n N] [--grep X] [--follow]`.
+- The CLI equivalent is `muxin logs <machine> [--list | --kernel | --file <path> | --unit <name> [--user] | --container <name>] [-n N] [--grep X] [--follow]`.
## Services and containers
- `machine_services(machine_id)` lists a machine's services (systemd on Linux, with `at_boot` and `user: true` for the user's own; Homebrew's on a Mac) and Docker containers, failed ones first.
-- `service_action(machine_id, name, action)` starts, stops or restarts one, or `enable`/`disable` whether a systemd service starts at boot. It changes the user's machine: only when asked, and say so before stopping anything that could cut the machine off (ssh, tailscaled, the network). The system's services need root: when sudo wants a password it fails with a hint to use the Muxen app, which asks for it; pass that on.
+- `service_action(machine_id, name, action)` starts, stops or restarts one, or `enable`/`disable` whether a systemd service starts at boot. It changes the user's machine: only when asked, and say so before stopping anything that could cut the machine off (ssh, tailscaled, the network). The system's services need root: when sudo wants a password it fails with a hint to use the Muxin app, which asks for it; pass that on.
- Each running service and container has `cpu` (percent of one core) and `memory` (bytes); `machine_services` also lists Docker `images` and Compose projects (`compose`, with their files).
- `docker_run(machine_id, image, name?, ports?, env?, volumes?, restart?, command?)`, `docker_pull(machine_id, image)` and `compose_action(machine_id, project, "up" | "down" | "restart" | "pull")` (with `service`: `"start" | "stop" | "restart"` that one service) run as operations and wait by default (their `log_tail` has Docker's output). They change the user's machine: only when asked. `service_action` removes a container (`remove`) too.
- `compose_project(machine_id, project)` describes a Compose project's parts: each service's image, ports, what it waits for (`depends_on`), networks, volumes and mounted files, health check, and its containers' state. Read it before changing a project. The app draws the same as a picture (Services › Compose, a project).
-- `machine_processes(machine_id)` lists the busiest few hundred processes (pid, user, name, command, `cpu` in percent of one core, `memory` in bytes, `seconds` running, `gpu_memory` on NVIDIA, `yours`) and the machine's `gpus` (name, `busy` percent, memory used and total). `process_signal(machine_id, pid, signal: "stop"|"kill")` ends one: only when asked, and name the process first. Another user's process needs root; when sudo wants a password it fails with a hint to use the Muxen app.
+- `machine_processes(machine_id)` lists the busiest few hundred processes (pid, user, name, command, `cpu` in percent of one core, `memory` in bytes, `seconds` running, `gpu_memory` on NVIDIA, `yours`) and the machine's `gpus` (name, `busy` percent, memory used and total). `process_signal(machine_id, pid, signal: "stop"|"kill")` ends one: only when asked, and name the process first. Another user's process needs root; when sudo wants a password it fails with a hint to use the Muxin app.
- Read a failing service's log first with `logs_read(machine_id, kind: "service", target: "<unit>")`; a Compose project's with `kind: "compose", target: "<project>"`.
-- The CLI equivalents are `muxen services <machine> [start|stop|restart|enable|disable <name> [--container]]`, `muxen ps <machine>` and `muxen kill <machine> <pid> [--force]`.
+- The CLI equivalents are `muxin services <machine> [start|stop|restart|enable|disable <name> [--container]]`, `muxin ps <machine>` and `muxin kill <machine> <pid> [--force]`.
## Files
- `list_files(machine_id, path)` lists a folder on any Linux or macOS machine, this computer included.
-- `copy_files(from, paths, to, to_dir)` copies files and folders from one machine to another, through Muxen, so the machines don't need to reach each other. Files with the same names in `to_dir` are replaced: `list_files` it first, and confirm with the user before overwriting. It waits by default; with `wait: false`, poll `get_operation`, and `cancel_operation` stops a copy.
-- The CLI equivalents are `muxen files <machine>:<folder>` and `muxen cp <machine>:<path>... <machine>:<folder>`.
+- `copy_files(from, paths, to, to_dir)` copies files and folders from one machine to another, through Muxin, so the machines don't need to reach each other. Files with the same names in `to_dir` are replaced: `list_files` it first, and confirm with the user before overwriting. It waits by default; with `wait: false`, poll `get_operation`, and `cancel_operation` stops a copy.
+- The CLI equivalents are `muxin files <machine>:<folder>` and `muxin cp <machine>:<path>... <machine>:<folder>`.
- Text copied on the user's Mac is shared with machines that have a desktop, and back, when the user has that on (Settings › Clipboard). Don't rely on it to move data; use `copy_files`.
## Don'ts
- Don't edit `config.toml` or `state.json` by hand while the tools can do it.
-- Don't pass tokens around. Muxen gets registration tokens itself from the user's `gh` login.
+- Don't pass tokens around. Muxin gets registration tokens itself from the user's `gh` login.
- Don't use `delete_files: true` unless the user wants the runner's folder gone.
- Don't leave workspaces behind, and don't turn workspaces on for a machine (`workspace_allow`) unless the user asks.
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 60c499b..7eea62d 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -1,4 +1,4 @@
-# Contributing to Muxen
+# Contributing to Muxin
Thanks for helping. Bug reports, fixes and new features are all welcome.
@@ -6,7 +6,7 @@ Thanks for helping. Bug reports, fixes and new features are all welcome.
- **Bugs:** open an issue with what you did, what you expected and what
happened. Say which OS the app runs on and which OS the machine runs on.
- `muxen status --json` and the app's log help.
+ `muxin status --json` and the app's log help.
- **Bigger changes:** open an issue first, so we can agree on the approach
before you spend time on it.
- **Security problems:** don't open an issue; see [SECURITY.md](SECURITY.md).
@@ -46,6 +46,6 @@ README's "Develop" section).
## License
-Muxen is under the [Apache License 2.0](LICENSE). By sending a contribution,
+Muxin is under the [Apache License 2.0](LICENSE). By sending a contribution,
you agree that it's under the same license (as its section 5 says), and that
you have the right to send it.
diff --git a/Cargo.lock b/Cargo.lock
index 8399ffc..0b280dc 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3576,8 +3576,30 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "743fb55ba31b18fb1ecef6bdc9aa2743314978ac084044301a7eee33fb99a20d"
[[package]]
-name = "muxen"
-version = "0.5.0"
+name = "muxen-agent"
+version = "0.2.8"
+dependencies = [
+ "alacritty_terminal",
+ "anyhow",
+ "base64 0.22.1",
+ "cc",
+ "jpeg-encoder",
+ "libc",
+ "portable-pty",
+ "quinn",
+ "rcgen",
+ "ring",
+ "rustls",
+ "serde_json",
+ "socket2",
+ "tokio",
+ "windows-sys 0.61.2",
+ "x11rb",
+]
+
+[[package]]
+name = "muxin"
+version = "0.5.1"
dependencies = [
"alacritty_terminal",
"anyhow",
@@ -3612,28 +3634,6 @@ dependencies = [
"winresource",
]
-[[package]]
-name = "muxen-agent"
-version = "0.2.8"
-dependencies = [
- "alacritty_terminal",
- "anyhow",
- "base64 0.22.1",
- "cc",
- "jpeg-encoder",
- "libc",
- "portable-pty",
- "quinn",
- "rcgen",
- "ring",
- "rustls",
- "serde_json",
- "socket2",
- "tokio",
- "windows-sys 0.61.2",
- "x11rb",
-]
-
[[package]]
name = "naga"
version = "25.0.1"
diff --git a/Cargo.toml b/Cargo.toml
index e91d122..b94035c 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
-name = "muxen"
-version = "0.5.0"
+name = "muxin"
+version = "0.5.1"
edition = "2024"
description = "All your machines, one app. For you and your AI agents."
license = "Apache-2.0"
diff --git a/NOTICE b/NOTICE
index 74fd9de..32a51a8 100644
--- a/NOTICE
+++ b/NOTICE
@@ -1,4 +1,4 @@
-Muxen
+Muxin
Copyright 2026 Lumary Labs LLC
This product includes third-party components under their own licenses; see
diff --git a/README.md b/README.md
index d6f40d6..04400e1 100644
--- a/README.md
+++ b/README.md
@@ -1,13 +1,13 @@
<p align="center">
- <img src="assets/brand/icon-512.png" width="128" height="128" alt="Muxen">
+ <img src="assets/brand/icon-512.png" width="128" height="128" alt="Muxin">
</p>
-<h1 align="center">Muxen</h1>
+<h1 align="center">Muxin</h1>
<p align="center">One app for all your machines, run by you <b>or by your AI agents</b>.<br>
<a href="https://muxin.dev">muxin.dev</a> · free and open source (Apache-2.0)</p>
-Point it at the machines you own (a Mac Studio under the desk, a NUC, a Linux box, a few MacBooks, a Windows laptop) and Muxen becomes the hub for all of them:
+Point it at the machines you own (a Mac Studio under the desk, a NUC, a Linux box, a few MacBooks, a Windows laptop) and Muxin becomes the hub for all of them:
- **Agent sessions:** Claude Code, Codex, OpenCode, Gemini CLI, Amp, Pi or a shell on any machine, in a real terminal, still running after you close the app.
- **Desktops:** see a Linux machine's screen live and use it, beside an agent's terminal or in its own window.
@@ -19,25 +19,33 @@ Point it at the machines you own (a Mac Studio under the desk, a NUC, a Linux bo
Agents can also **borrow a machine as a work environment**: an [agent workspace](#agent-workspaces) is a persistent folder (optionally a git checkout) on one of your machines where an agent runs commands, edits files and syncs code.
- **Native and fast.** The window is built with [GPUI](https://www.gpui.rs), the GPU-accelerated UI framework behind the Zed editor. It runs on macOS, Linux and Windows.
-- **Agent-first.** Every capability is available as an MCP server (`muxen mcp`) and as scriptable commands with `--json`. Claude Code, Codex and other agents can check your machines, explain problems and fix them.
-- **Uses what you already have.** Machines are first reached with your system `ssh`, so your keys, agent and `~/.ssh/config` aliases just work; after that Muxen talks to its own small agent there, directly or through [Tailscale](#tailscale-and-moving-between-networks). GitHub access uses your `gh` login.
+- **Agent-first.** Every capability is available as an MCP server (`muxin mcp`) and as scriptable commands with `--json`. Claude Code, Codex and other agents can check your machines, explain problems and fix them.
+- **Uses what you already have.** Machines are first reached with your system `ssh`, so your keys, agent and `~/.ssh/config` aliases just work; after that Muxin talks to its own small agent there, directly or through [Tailscale](#tailscale-and-moving-between-networks). GitHub access uses your `gh` login.
## Install
Download the app from the [latest release](https://github.com/LumaryLabsLLC/muxin/releases/latest):
-- **macOS** 12 or later, Apple silicon and Intel: `Muxen-<version>-macos.dmg`. Open it and drag Muxen to Applications. It's signed and notarized.
-- **Linux** with glibc 2.35 or newer (Ubuntu 22.04, Debian 12, Fedora 36 and later): `Muxen-<version>-linux-x86_64.tar.gz`, or `linux-aarch64` on Arm. Unpack it and run `./Muxen/install.sh`, which installs it for you, no root needed.
-- **Windows 11**: `Muxen-<version>-windows-x64-setup.exe`, or `windows-arm64` on Windows on Arm. The installer isn't signed yet, so Windows may say "Windows protected your PC": click **More info**, then **Run anyway**.
+- **macOS** 12 or later, Apple silicon and Intel: `Muxin-<version>-macos.dmg`. Open it and drag Muxin to Applications. It's signed and notarized.
+- **Linux** with glibc 2.35 or newer (Ubuntu 22.04, Debian 12, Fedora 36 and later): `Muxin-<version>-linux-x86_64.tar.gz`, or `linux-aarch64` on Arm. Unpack it and run `./Muxin/install.sh`, which installs it for you, no root needed.
+- **Windows 11**: `Muxin-<version>-windows-x64-setup.exe`, or `windows-arm64` on Windows on Arm. The installer isn't signed yet, so Windows may say "Windows protected your PC": click **More info**, then **Run anyway**.
+
+Or with [Homebrew](https://brew.sh), on macOS and Linux:
+
+```sh
+brew install --cask lumarylabsllc/tap/muxin
+```
`SHA256SUMS.txt` in each release has the files' checksums.
+Muxin was called Muxen before 0.5.1. Updating keeps your settings, machines and sessions, and the `muxen` command still works. On a Mac, the old Muxen app goes to the Trash the first time Muxin opens.
+
### Build from source
```sh
git clone https://github.com/LumaryLabsLLC/muxin && cd muxin
cargo build --release
-./target/release/muxen # opens the window
+./target/release/muxin # opens the window
```
Requirements:
@@ -55,12 +63,12 @@ cargo build --release --no-default-features
There's nothing else to set up. Fonts and icons are compiled into the binary.
-To run `muxen` from a terminal, use **Settings › General › Command line › Install**, or `muxen shell-command install`. On macOS it links `/usr/local/bin/muxen` to the app (macOS asks for your password when that folder needs it), on Linux `~/.local/bin/muxen`, and on Windows it adds Muxen's folder to your user PATH. `muxen shell-command remove` takes it out again.
+To run `muxin` from a terminal, use **Settings › General › Command line › Install**, or `muxin shell-command install`. On macOS it links `/usr/local/bin/muxin` to the app (macOS asks for your password when that folder needs it), on Linux `~/.local/bin/muxin`, and on Windows it adds Muxin's folder to your user PATH. `muxen`, its name from before, runs it too. `muxin shell-command remove` takes it out again.
-To get a real app with the Muxen icon:
+To get a real app with the Muxin icon:
-- **macOS:** `./scripts/bundle-macos.sh` builds `dist/Muxen.app`, signed with the Developer ID when it's in your keychain. Drag it to Applications. Agents can still use the binary inside it: `Muxen.app/Contents/MacOS/muxen mcp`.
-- **Linux:** `./scripts/package-linux.sh` makes a tarball; its `install.sh` puts Muxen in `~/.local` with an entry in your app menu.
+- **macOS:** `./scripts/bundle-macos.sh` builds `dist/Muxin.app`, signed with the Developer ID when it's in your keychain. Drag it to Applications. Agents can still use the binary inside it: `Muxin.app/Contents/MacOS/muxin mcp`.
+- **Linux:** `./scripts/package-linux.sh` makes a tarball; its `install.sh` puts Muxin in `~/.local` with an entry in your app menu.
- **Windows:** `scripts\package-windows.ps1` makes the installer.
Releases (a notarized DMG, and for Linux and Windows a tarball and an installer each for Intel/AMD and Arm) are built by GitHub Actions from a version tag: see [RELEASING.md](RELEASING.md).
@@ -68,32 +76,32 @@ Releases (a notarized DMG, and for Linux and Windows a tarball and an installer
## Quick start
```sh
-muxen --demo # explore simulated machines first; nothing real is touched
-muxen # your machines: starts with this computer in config.toml
-muxen add-machine --name "Mac Studio" --host [email protected]
-muxen watch acme # live runner status and jobs for the acme org
-muxen install mac-studio --count 2 # two runners, registered with acme, as services
-muxen status
+muxin --demo # explore simulated machines first; nothing real is touched
+muxin # your machines: starts with this computer in config.toml
+muxin add-machine --name "Mac Studio" --host [email protected]
+muxin watch acme # live runner status and jobs for the acme org
+muxin install mac-studio --count 2 # two runners, registered with acme, as services
+muxin status
```
## The app
- **Overview:** the day in one line (machines online, agents working, runners busy), a few notices for what needs a look (each with a button that fixes or explains it), a card per machine with what's running on it (its agents, desktop and runners) and live CPU, memory and disk, and every agent session across your machines. The Jobs page shows how busy your runners have been over the last few minutes.
-- **Machines and runners:** install runners on a machine, and start, stop, restart, show logs for or remove each one. A machine that's off or out of reach says so in plain words (offline, Remote Login off, ssh key not accepted, Tailscale off on this Mac, …), with when it was last seen and what to do; Muxen picks it back up by itself when it returns.
+- **Machines and runners:** install runners on a machine, and start, stop, restart, show logs for or remove each one. A machine that's off or out of reach says so in plain words (offline, Remote Login off, ssh key not accepted, Tailscale off on this Mac, …), with when it was last seen and what to do; Muxin picks it back up by itself when it returns.
- **Adding machines (⌘N):** suggestions from your `~/.ssh/config`, your Tailscale network, and this network (machines advertising ssh over Bonjour, and Macs that would be addable once Remote Login is on).
- **Agent sessions (⌘T):** a real terminal on any machine running Claude Code, Codex, OpenCode, Gemini CLI, Amp, Pi or a shell. Sessions are listed under their machine in the sidebar (a spinner while the agent works, a colored dot when it wants you), with its open desktop and one line for its runners, and keep running when you close the app. Terminal font size, line height and a blinking cursor are in Settings.
- **Usage (⌃5):** what Claude Code and Codex used on all your machines today or over the last 7, 30 or 90 days, read from their own logs there: tokens and requests by day, model, machine and folder, and what it would cost at Anthropic's and OpenAI's API list prices. With a Claude or ChatGPT plan you don't pay per token; it's what the same use would cost through the API.
- **Run (⌃6):** one command on several machines at once (`df -h /`, `brew upgrade`, `git -C ~/code/api pull`), each one's output side by side as it comes, and its exit status. It runs in your login shell from your home folder; right-click a machine › **Run a command…** to start with just that one.
-- **Open in your editor:** sessions, workspaces, GitHub checkouts and Compose projects have a button that lists the editors on this computer (Zed, Cursor, VS Code) and opens their folder in the one you pick, over the editor's own ssh support. Settings › General › Editor picks which comes first (and which `muxen edit` uses).
+- **Open in your editor:** sessions, workspaces, GitHub checkouts and Compose projects have a button that lists the editors on this computer (Zed, Cursor, VS Code) and opens their folder in the one you pick, over the editor's own ssh support. Settings › General › Editor picks which comes first (and which `muxin edit` uses).
- **What's running:** a machine's **Services › Processes** lists its busiest processes (CPU, memory, how long they've run, GPU memory on NVIDIA) and stops or kills one; its page shows its GPU (NVIDIA, AMD on Linux, Apple), how busy it is and its memory.
-- **Fleet warnings and Wake:** a machine's page and the Overview say when it wants a reboot (Linux updates) or has failed services. A machine that's asleep or off has a **Wake** button (Wake on LAN, sent from this computer and from your machines on its network) once Muxen has seen its network card.
+- **Fleet warnings and Wake:** a machine's page and the Overview say when it wants a reboot (Linux updates) or has failed services. A machine that's asleep or off has a **Wake** button (Wake on LAN, sent from this computer and from your machines on its network) once Muxin has seen its network card.
- **Copy files:** a two-pane dialog to copy files and folders from one machine to another (see [Files and the clipboard](#files-and-the-clipboard)); or drop files from the Finder onto a machine in the sidebar.
- **Activity (⌘J):** one timeline of everything happening on your machines: operations started in the app (with live output) and every command agents ran in workspaces, filterable by kind or failures.
- **Workspaces:** see what agents are doing on your machines (every command, its exit code and output), review a workspace's git changes, copy a shell command to step in, or destroy it.
- **Jobs:** queued and running self-hosted jobs, and which queued jobs no online runner can take.
- **Appearance:** follow the system, or pin light or dark, each with its own theme. Built-in themes:
- - dark: Muxen Graphite, macOS Dark, Gruvbox Dark, Catppuccin Mocha / Macchiato / Frappé, Tokyo Night, Nord, Rosé Pine, Solarized Dark, Dracula, Everforest Dark, Kanagawa Wave, GitHub Dark;
- - light: Muxen Paper, macOS Light, Gruvbox Light, Catppuccin Latte, Tokyo Night Day, Nord Light, Rosé Pine Dawn, Solarized Light, Everforest Light, Kanagawa Lotus, GitHub Light.
+ - dark: Muxin Graphite, macOS Dark, Gruvbox Dark, Catppuccin Mocha / Macchiato / Frappé, Tokyo Night, Nord, Rosé Pine, Solarized Dark, Dracula, Everforest Dark, Kanagawa Wave, GitHub Dark;
+ - light: Muxin Paper, macOS Light, Gruvbox Light, Catppuccin Latte, Tokyo Night Day, Nord Light, Rosé Pine Dawn, Solarized Light, Everforest Light, Kanagawa Lotus, GitHub Light.
The macOS themes also switch to the system fonts (SF Pro, and SF Mono when it's installed). The choice is saved in `config.toml` (`[ui]`).
@@ -101,9 +109,9 @@ Keyboard: ⌘P goes to any machine, session or desktop by name, and ⇧⌘P (or
## Your settings: `config.toml`
-Muxen keeps everything you set in one file, `config.toml`, in `~/.config/muxin/` (`%APPDATA%\muxin\` on Windows), or in `$MUXIN_HOME` if that's set. Run `muxen paths` to see where it is. Older versions kept `fleet.toml`, `settings.json` and `ui.json` in `~/.config/muxen/`; the first run brings them into `config.toml` and leaves the old folder as it was.
+Muxin keeps everything you set in one file, `config.toml`, in `~/.config/muxin/` (`%APPDATA%\muxin\` on Windows), or in `$MUXIN_HOME` if that's set. Run `muxin paths` to see where it is. Older versions kept `fleet.toml`, `settings.json` and `ui.json` in `~/.config/muxen/`; the first run brings them into `config.toml` and leaves the old folder as it was.
-- `[[machine]]` tables list your machines. Edit them by hand if you like: Muxen also edits them when you add machines or install runners, and keeps your comments.
+- `[[machine]]` tables list your machines. Edit them by hand if you like: Muxin also edits them when you add machines or install runners, and keeps your comments.
- `[settings]` holds the watched GitHub orgs and repos, the polling intervals, whether the clipboard is shared, and cloud machine options.
- `[ui]` holds the app's look: theme, icons, terminal font and size, shortcuts, favorite machines.
- `state.json` holds the last machine check, and what Tailscale last said about each machine.
@@ -126,13 +134,13 @@ name = "StudioNAS" # no runners: shown under "Other machines"
host = "nas"
```
-A machine that runs on another one is shown under it: a VM or container reached through that machine (`ProxyJump` to its own address or `127.0.0.1`), or at its address on another port. Muxen works this out from `~/.ssh/config`, what each machine reports about itself (a VM says so), and the Docker containers that publish the port ssh goes to. When it can't be reached, it says whether the machine it's on is off or its container is stopped, and it can start or stop that container (`muxen power win11 on`).
+A machine that runs on another one is shown under it: a VM or container reached through that machine (`ProxyJump` to its own address or `127.0.0.1`), or at its address on another port. Muxin works this out from `~/.ssh/config`, what each machine reports about itself (a VM says so), and the Docker containers that publish the port ssh goes to. When it can't be reached, it says whether the machine it's on is off or its container is stopped, and it can start or stop that container (`muxin power win11 on`).
Runners installed in the usual places are discovered automatically: `~/actions-runner*`, `~/actions-runner/*`, `~/runners/*`, `/opt/actions-runner*` and `C:\actions-runner\*`. A runner is found from its `.runner` file and its running `Runner.Listener` / `Runner.Worker` processes.
## GitHub
-Watch an org or a repo in Settings, or with `muxen watch acme` (or `acme/api`). Muxen then reads live runner status (online, busy) and the queued and running jobs of the most recently pushed repos.
+Watch an org or a repo in Settings, or with `muxin watch acme` (or `acme/api`). Muxin then reads live runner status (online, busy) and the queued and running jobs of the most recently pushed repos.
The token comes from `MUXEN_GITHUB_TOKEN`, `GITHUB_TOKEN`, `GH_TOKEN`, or `gh auth token`. Polling uses conditional requests, so unchanged responses don't count against your rate limit.
@@ -142,34 +150,34 @@ Reading and registering **org** runners needs an org admin token with the `admin
gh auth refresh -h github.com -s admin:org
```
-Repo runners need admin access to the repo. For GitHub Enterprise Server, set the API URL in Settings or run `muxen settings --api-url https://HOST/api/v3`.
+Repo runners need admin access to the repo. For GitHub Enterprise Server, set the API URL in Settings or run `muxin settings --api-url https://HOST/api/v3`.
## Use it from AI agents
-Muxen ships an [MCP](https://modelcontextprotocol.io) server. Print setup snippets that point at your binary:
+Muxin ships an [MCP](https://modelcontextprotocol.io) server. Print setup snippets that point at your binary:
```sh
-muxen mcp --print-config
+muxin mcp --print-config
```
**Claude Code**
```sh
-claude mcp add muxen -- /path/to/muxen mcp
+claude mcp add muxin -- /path/to/muxin mcp
```
**Codex** (`~/.codex/config.toml`)
```toml
-[mcp_servers.muxen]
-command = "/path/to/muxen"
+[mcp_servers.muxin]
+command = "/path/to/muxin"
args = ["mcp"]
```
**Other MCP clients** (Claude Desktop, Cursor, …)
```json
-{ "mcpServers": { "muxen": { "command": "/path/to/muxen", "args": ["mcp"] } } }
+{ "mcpServers": { "muxin": { "command": "/path/to/muxin", "args": ["mcp"] } } }
```
Add `"--demo"` after `"mcp"` to let an agent practice on the simulated machines.
@@ -237,36 +245,36 @@ Every command takes `--json`. In that mode stdout carries JSON only, and errors
- `2`: bad input, or the thing wasn't found.
```sh
-muxen status [--refresh] # overview + what needs attention
-muxen machines | machine <id>
-muxen runners [--machine <id>] [--state offline]
-muxen jobs
-muxen add-machine --name <name> --host <ssh-host> [--no-check]
-muxen remove-machine <id>
-muxen rename-machine <id> <new name> # the id stays the same
-muxen ports beelink # what's listening there (web servers first)
-muxen forward beelink 3000 # its port 3000 at localhost:3000 here, until Ctrl-C
-muxen run --on beelink,mac-studio -- df -h / # one command on several machines (--all: every one online)
-muxen ps beelink [-n 20] # its busiest processes and its GPUs
-muxen kill beelink 4242 [--force] # stop a process (--force: SIGKILL)
-muxen wake beelink # Wake on LAN
-muxen power win11 off # a VM in Docker on another machine (or a cloud machine): on or off
-muxen vm create win-test --system windows-11 --on beelink # a VM on one of your machines
-muxen schedule add beelink --name Tests --every day --at 09:00 --command "make test"
-muxen usage [--days 30] [--machine beelink] # what the agents used, and the cost at API prices
-muxen edit beelink:~/code/api [--editor zed] [--print] # open a folder there in your editor
-muxen disconnect <id> # stop connecting to it (its sessions go on there)
-muxen connect <id> # connect again, and check it
-muxen install <machine-id> [--scope acme] [--count N | --name a --name b] [--label gpu] [--mode auto|service|background|docker] [--image IMAGE] [--docker-socket] [--no-wait]
-muxen runner <start|stop|restart|logs|remove> <runner-id> [--delete-files]
-muxen watch <org|owner/repo>... / unwatch ...
-muxen settings [--poll 20] [--scan-repos 10] [--check-interval 15]
-muxen ssh-hosts # ~/.ssh/config, your tailnet, and this network
-muxen files <machine>[:<folder>] # what's in a folder (alias: ls)
-muxen cp <machine>:<path>... <machine>:<folder> # copy between machines
-muxen connection <machine> [--direct on|off]
-muxen check [--json] # one-shot full report
-muxen workspace … # agent workspaces, see below (alias: ws)
+muxin status [--refresh] # overview + what needs attention
+muxin machines | machine <id>
+muxin runners [--machine <id>] [--state offline]
+muxin jobs
+muxin add-machine --name <name> --host <ssh-host> [--no-check]
+muxin remove-machine <id>
+muxin rename-machine <id> <new name> # the id stays the same
+muxin ports beelink # what's listening there (web servers first)
+muxin forward beelink 3000 # its port 3000 at localhost:3000 here, until Ctrl-C
+muxin run --on beelink,mac-studio -- df -h / # one command on several machines (--all: every one online)
+muxin ps beelink [-n 20] # its busiest processes and its GPUs
+muxin kill beelink 4242 [--force] # stop a process (--force: SIGKILL)
+muxin wake beelink # Wake on LAN
+muxin power win11 off # a VM in Docker on another machine (or a cloud machine): on or off
+muxin vm create win-test --system windows-11 --on beelink # a VM on one of your machines
+muxin schedule add beelink --name Tests --every day --at 09:00 --command "make test"
+muxin usage [--days 30] [--machine beelink] # what the agents used, and the cost at API prices
+muxin edit beelink:~/code/api [--editor zed] [--print] # open a folder there in your editor
+muxin disconnect <id> # stop connecting to it (its sessions go on there)
+muxin connect <id> # connect again, and check it
+muxin install <machine-id> [--scope acme] [--count N | --name a --name b] [--label gpu] [--mode auto|service|background|docker] [--image IMAGE] [--docker-socket] [--no-wait]
+muxin runner <start|stop|restart|logs|remove> <runner-id> [--delete-files]
+muxin watch <org|owner/repo>... / unwatch ...
+muxin settings [--poll 20] [--scan-repos 10] [--check-interval 15]
+muxin ssh-hosts # ~/.ssh/config, your tailnet, and this network
+muxin files <machine>[:<folder>] # what's in a folder (alias: ls)
+muxin cp <machine>:<path>... <machine>:<folder> # copy between machines
+muxin connection <machine> [--direct on|off]
+muxin check [--json] # one-shot full report
+muxin workspace … # agent workspaces, see below (alias: ws)
```
Ids:
@@ -294,28 +302,28 @@ Think of [Amp's Orbs](https://ampcode.com/news/agents-in-orbs), but on your own
The machine can be named, or picked for you: the least-loaded online machine that allows workspaces, optionally matching a platform such as `linux` or `darwin-arm64`. Private GitHub repos are cloned with your `gh` login; the token is passed through the environment for that one command and never written to disk or logs.
-Every command an agent runs is recorded with its exit code, duration and the end of its output. You can see that history in the app's Workspaces page, or open a terminal in any workspace with `muxen workspace shell <id>`.
+Every command an agent runs is recorded with its exit code, duration and the end of its output. You can see that history in the app's Workspaces page, or open a terminal in any workspace with `muxin workspace shell <id>`.
```sh
-muxen ws create --platform linux --repo acme/api --ref main
-muxen ws create --docker --image node:22 --repo acme/web # an isolated container
-muxen ws create --machine beelink --worktree-of ~/code/api --branch fix-login # a worktree of a checkout there
-muxen ws exec ws-7f3a2c -- cargo test # exits with the command's exit code
-muxen ws exec ws-7f3a2c --background -- npm run dev
-muxen ws cat ws-7f3a2c .muxen/logs/1.log
-echo 'hello' | muxen ws write ws-7f3a2c notes.txt
-muxen ws files ws-7f3a2c src --depth 1
-muxen ws changes ws-7f3a2c
-muxen ws sync ws-7f3a2c ~/code/api --push # or --pull, add --delete to mirror deletions
-muxen ws shell ws-7f3a2c # an interactive shell in the workspace, for you
-muxen ws ls
-muxen ws rm ws-7f3a2c [--keep-files]
-muxen ws allow studionas --off # forbid workspaces on a machine
+muxin ws create --platform linux --repo acme/api --ref main
+muxin ws create --docker --image node:22 --repo acme/web # an isolated container
+muxin ws create --machine beelink --worktree-of ~/code/api --branch fix-login # a worktree of a checkout there
+muxin ws exec ws-7f3a2c -- cargo test # exits with the command's exit code
+muxin ws exec ws-7f3a2c --background -- npm run dev
+muxin ws cat ws-7f3a2c .muxen/logs/1.log
+echo 'hello' | muxin ws write ws-7f3a2c notes.txt
+muxin ws files ws-7f3a2c src --depth 1
+muxin ws changes ws-7f3a2c
+muxin ws sync ws-7f3a2c ~/code/api --push # or --pull, add --delete to mirror deletions
+muxin ws shell ws-7f3a2c # an interactive shell in the workspace, for you
+muxin ws ls
+muxin ws rm ws-7f3a2c [--keep-files]
+muxin ws allow studionas --off # forbid workspaces on a machine
```
`ws exec` passes the command's stdout and stderr through and exits with its exit code (124 if it timed out), so it composes in scripts. With `--json` it prints the full result instead.
-**Safety.** Host workspace commands run as the ssh user on your machine, with that user's permissions; they aren't sandboxed. Use Docker isolation for code you don't trust. Workspaces are on by default for every machine with a host. Turn them off per machine with `workspaces = false` in `config.toml`, the toggle on the machine's page in the app, or `muxen workspace allow <machine> --off`. Nothing is deleted automatically: workspaces stay until you or an agent destroys them. Folders live under `~/muxen/workspaces/<id>` on each machine (`workspace_root` in `config.toml` changes that).
+**Safety.** Host workspace commands run as the ssh user on your machine, with that user's permissions; they aren't sandboxed. Use Docker isolation for code you don't trust. Workspaces are on by default for every machine with a host. Turn them off per machine with `workspaces = false` in `config.toml`, the toggle on the machine's page in the app, or `muxin workspace allow <machine> --off`. Nothing is deleted automatically: workspaces stay until you or an agent destroys them. Folders live under `~/muxen/workspaces/<id>` on each machine (`workspace_root` in `config.toml` changes that).
## Your GitHub, and handing issues to agents
@@ -324,84 +332,84 @@ The GitHub page is built for the loop of picking an issue, handing it to an agen
- **For you:** pull requests waiting for your review, issues assigned to you, and your open pull requests.
- **Repositories:** everything you own, collaborate on or reach through your orgs, with each one's open issues, pull requests and GitHub Actions runs. Star the ones you work on to keep them at the top, and show the list as one list or grouped by owner (you, then your organizations, then repositories other people shared with you).
- **On your machines:** each machine's agent finds git checkouts in your code folders (`~/Developer`, `~/code`, `~/src`, … set in `config.toml` as `code_folders` under `[settings]`) and links them to their GitHub repository, with branch, commits ahead/behind and uncommitted changes. Fetch, Pull and Push from there.
-- **Fix with agent:** on any issue (or **Review with agent** on a pull request), one click opens a new session in that repository's checkout on the machine you pick (this computer first), with the issue's link, title and description as the agent's first message. Right-click an issue or pull request for **Fix in a new workspace…**: pick any machine and agent, and Muxen clones the repository there (an issue gets its own branch, like `issue-910-content-excalidraw`; a pull request checks out its branch, forks included), then starts the agent in it.
+- **Fix with agent:** on any issue (or **Review with agent** on a pull request), one click opens a new session in that repository's checkout on the machine you pick (this computer first), with the issue's link, title and description as the agent's first message. Right-click an issue or pull request for **Fix in a new workspace…**: pick any machine and agent, and Muxin clones the repository there (an issue gets its own branch, like `issue-910-content-excalidraw`; a pull request checks out its branch, forks included), then starts the agent in it.
-Muxen uses the GitHub CLI's login (`gh auth login`) or `GITHUB_TOKEN`. Settings has a **Sign in with GitHub** button that runs the CLI's browser sign-in; each machine's page shows whether its own `gh` is signed in (agents there use it for issues and pull requests) and can sign it in too.
+Muxin uses the GitHub CLI's login (`gh auth login`) or `GITHUB_TOKEN`. Settings has a **Sign in with GitHub** button that runs the CLI's browser sign-in; each machine's page shows whether its own `gh` is signed in (agents there use it for issues and pull requests) and can sign it in too.
**Git on each machine.** A machine's page has a Git card: whether its GitHub CLI is signed in, who commits there, and how pushes reach GitHub. When something's missing, one click fixes it: **Use my GitHub identity** sets git's name and email to your GitHub name and private noreply address, and **Use the GitHub CLI** runs `gh auth setup-git` so pushes use the machine's `gh` login. Agents working there can then commit and push.
```sh
-muxen git status beelink
-muxen git setup beelink --identity --credentials
+muxin git status beelink
+muxin git setup beelink --identity --credentials
```
**Permissions.** Watching an organization's runners needs the `admin:org` permission on your GitHub login. Settings shows when it's missing, with a **Grant access** button that runs `gh auth refresh -s admin:org` in a terminal (it finishes in your browser), and lists your organizations so watching one is a click.
-**More than one account.** Click your name at the top of the GitHub page to switch. The menu lists every account the GitHub CLI here is signed in to, plus each machine's own `gh` login: with a work laptop signed in to your work account, pick "@you-at-work · Work MacBook" and Muxen sees that account's repositories, inbox and runners (the token is fetched over ssh when needed and kept in memory only). Fix with agent then prefers checkouts on that machine. Switching doesn't change which account `gh` uses in your terminal. "Add another account…" runs `gh auth login`.
+**More than one account.** Click your name at the top of the GitHub page to switch. The menu lists every account the GitHub CLI here is signed in to, plus each machine's own `gh` login: with a work laptop signed in to your work account, pick "@you-at-work · Work MacBook" and Muxin sees that account's repositories, inbox and runners (the token is fetched over ssh when needed and kept in memory only). Fix with agent then prefers checkouts on that machine. Switching doesn't change which account `gh` uses in your terminal. "Add another account…" runs `gh auth login`.
```sh
-muxen github inbox # what needs you
-muxen github repos # favorites first (★)
-muxen github favorite ZenNotes/zennotes # --remove to unstar
-muxen github accounts
-muxen github use work-login # or: --machine work-macbook
-muxen github repo ZenNotes/zennotes # issues, PRs, runs, and where it's checked out
-muxen github issue ZenNotes/zennotes#632 # or the issue's URL
-muxen checkouts --repo ZenNotes/zennotes
-muxen checkouts --machine beelink --path ~/code/api --git pull
+muxin github inbox # what needs you
+muxin github repos # favorites first (★)
+muxin github favorite ZenNotes/zennotes # --remove to unstar
+muxin github accounts
+muxin github use work-login # or: --machine work-macbook
+muxin github repo ZenNotes/zennotes # issues, PRs, runs, and where it's checked out
+muxin github issue ZenNotes/zennotes#632 # or the issue's URL
+muxin checkouts --repo ZenNotes/zennotes
+muxin checkouts --machine beelink --path ~/code/api --git pull
```
## Agent sessions
Start an AI agent on one of your machines and come back to it whenever you like, from the app, from your own terminal, or through another agent.
-- **Keeps running.** Sessions live in Muxen's agent on the machine (`~/.muxen/bin/muxen-agent`), a small background program that holds each session's terminal, the way tmux would. Closing the app, sleeping your laptop or losing the network only detaches; the agent keeps working until you end the session, and reopening it shows the screen as it is with its recent scrollback. A restart of the machine ends its sessions, as with tmux.
-- **Nothing to install.** When Muxen connects to a machine it uploads the agent build for that OS and CPU (macOS, Linux and Windows, x86_64 and arm64; a few MB) and keeps it up to date.
-- **Split panes.** ⌘D splits a terminal to the right, ⇧⌘D below it (or the buttons in its header): a new shell on the same machine, in the same folder. ⌥⌘← and ⌥⌘→ move between panes, or click one. Each pane is a session of its own, so it keeps running like any other; type `exit` to close it, or × on its bar to take it out of the split. Splits come back when you reopen Muxen.
-- **A real terminal in the app.** Everything goes to the agent: Esc, Ctrl-C, Tab, arrows, Option/Shift+Enter for newlines. ⌘C copies a selection, ⌘V pastes, the wheel scrolls back. Nerd Font icons (Neovim's file icons, prompt glyphs) show with any terminal font: Muxen brings the symbols. Right-click a machine for a new terminal or agent session.
-- **Names you choose.** Right-click a machine or a session and pick **Rename…** (or ⇧⌘P › Rename on its page). A machine keeps its id, so its runners, sessions and favorites stay with it; `config.toml` gets `id = "<old id>"` when the new name would give a different one. A session's title is kept by the agent on its machine (`~/.muxen/titles.json`), so every Muxen sees it; an empty title goes back to the one it started with.
-- **Your environment.** The agent starts in your login shell, in the folder you pick, so nvm/fnm/asdf and the CLI's own login work as they do in your terminal. Muxen finds which agent CLIs each machine has: `claude`, `codex`, `opencode`, `gemini`, `amp`.
-- **What it changed.** Each session shows its branch, the lines and files it changed since the default branch, its commits and uncommitted files, and the branch's pull request with its checks (click it to open it on GitHub). Muxen looks when a session stops working, and at least every minute while sessions run.
+- **Keeps running.** Sessions live in Muxin's agent on the machine (`~/.muxen/bin/muxen-agent`), a small background program that holds each session's terminal, the way tmux would. Closing the app, sleeping your laptop or losing the network only detaches; the agent keeps working until you end the session, and reopening it shows the screen as it is with its recent scrollback. A restart of the machine ends its sessions, as with tmux.
+- **Nothing to install.** When Muxin connects to a machine it uploads the agent build for that OS and CPU (macOS, Linux and Windows, x86_64 and arm64; a few MB) and keeps it up to date.
+- **Split panes.** ⌘D splits a terminal to the right, ⇧⌘D below it (or the buttons in its header): a new shell on the same machine, in the same folder. ⌥⌘← and ⌥⌘→ move between panes, or click one. Each pane is a session of its own, so it keeps running like any other; type `exit` to close it, or × on its bar to take it out of the split. Splits come back when you reopen Muxin.
+- **A real terminal in the app.** Everything goes to the agent: Esc, Ctrl-C, Tab, arrows, Option/Shift+Enter for newlines. ⌘C copies a selection, ⌘V pastes, the wheel scrolls back. Nerd Font icons (Neovim's file icons, prompt glyphs) show with any terminal font: Muxin brings the symbols. Right-click a machine for a new terminal or agent session.
+- **Names you choose.** Right-click a machine or a session and pick **Rename…** (or ⇧⌘P › Rename on its page). A machine keeps its id, so its runners, sessions and favorites stay with it; `config.toml` gets `id = "<old id>"` when the new name would give a different one. A session's title is kept by the agent on its machine (`~/.muxen/titles.json`), so every Muxin sees it; an empty title goes back to the one it started with.
+- **Your environment.** The agent starts in your login shell, in the folder you pick, so nvm/fnm/asdf and the CLI's own login work as they do in your terminal. Muxin finds which agent CLIs each machine has: `claude`, `codex`, `opencode`, `gemini`, `amp`.
+- **What it changed.** Each session shows its branch, the lines and files it changed since the default branch, its commits and uncommitted files, and the branch's pull request with its checks (click it to open it on GitHub). Muxin looks when a session stops working, and at least every minute while sessions run.
- **Actions.** A session's **Actions** button (or its right-click menu) asks its agent to commit, commit and push, open or update the pull request, review the changes, fix the review comments, resolve conflicts or write a recap. Each one types a prompt into the agent; change any of them in **Settings › Prompts** (`[settings.prompts]` in `config.toml`), where `{branch}`, `{base}` and `{pull}` are filled in.
- **Agents can drive agents.** `session_start`, `session_read` (the screen as text), `session_question` and `session_answer` (what it asks, and an answer), `session_send` (type into it), `session_action` and `session_stop` are MCP tools and CLI commands too.
```sh
-muxen session ls # every session, and which agents each machine has
-muxen session start beelink claude --cwd ~/code/api --prompt "fix the failing test"
-muxen session read beelink/claude-3f9a # what's on its screen
-muxen session send beelink/claude-3f9a "yes" # type, then Enter (--no-enter to skip it)
-muxen session do beelink/claude-3f9a pull_request # an action: commit, commit_push, pull_request, review, fix_comments, conflicts, recap
-muxen session question beelink/claude-3f9a # what it's asking, and the options' keys
-muxen session answer beelink/claude-3f9a 1 # pick one
-muxen session attach beelink/claude-3f9a # open it in this terminal; detach with Ctrl-] then d
-muxen session restart beelink/claude-3f9a
-muxen session rename beelink/claude-3f9a "API server" # "" goes back to the original title
-muxen session stop beelink/claude-3f9a
+muxin session ls # every session, and which agents each machine has
+muxin session start beelink claude --cwd ~/code/api --prompt "fix the failing test"
+muxin session read beelink/claude-3f9a # what's on its screen
+muxin session send beelink/claude-3f9a "yes" # type, then Enter (--no-enter to skip it)
+muxin session do beelink/claude-3f9a pull_request # an action: commit, commit_push, pull_request, review, fix_comments, conflicts, recap
+muxin session question beelink/claude-3f9a # what it's asking, and the options' keys
+muxin session answer beelink/claude-3f9a 1 # pick one
+muxin session attach beelink/claude-3f9a # open it in this terminal; detach with Ctrl-] then d
+muxin session restart beelink/claude-3f9a
+muxin session rename beelink/claude-3f9a "API server" # "" goes back to the original title
+muxin session stop beelink/claude-3f9a
```
Build the agent for every platform with `scripts/build-agents.sh` (needs `cargo-zigbuild` and Zig for the Linux builds); `scripts/bundle-macos.sh` runs it and ships the builds inside the app.
## Connections and desktops
-Muxen first reaches a machine with `ssh`, installs its small agent there, and from then on talks to that agent over **one live connection** instead of a new ssh connection per request: requests take milliseconds instead of ~0.4 s, terminals open instantly, and the sidebar updates the moment a session changes.
+Muxin first reaches a machine with `ssh`, installs its small agent there, and from then on talks to that agent over **one live connection** instead of a new ssh connection per request: requests take milliseconds instead of ~0.4 s, terminals open instantly, and the sidebar updates the moment a session changes.
- **Over ssh** (the default): one ssh connection per machine, kept open and reconnected when it drops.
-- **Direct**: on a machine's page, **Connect directly** pairs the app with its agent (each trusts only the other's certificate, swapped over ssh) and runs the agent's listener as a user service there (systemd or launchd) on UDP port 47821. Muxen then connects over QUIC, falling back to ssh whenever the direct connection is down.
+- **Direct**: on a machine's page, **Connect directly** pairs the app with its agent (each trusts only the other's certificate, swapped over ssh) and runs the agent's listener as a user service there (systemd or launchd) on UDP port 47821. Muxin then connects over QUIC, falling back to ssh whenever the direct connection is down.
- `MUXEN_NO_LINK=1` turns all of this off: one ssh connection per request, as before.
-- **Disconnect** (a machine's right-click menu, or its Connection section) stops all of it for that machine: Muxen closes the connection and stops checking it and reading its sessions, which keep running there. It shows as Disconnected until you **Connect** (its page, its menu, or search). It's kept in `config.toml` as `disconnected = true`.
+- **Disconnect** (a machine's right-click menu, or its Connection section) stops all of it for that machine: Muxin closes the connection and stops checking it and reading its sessions, which keep running there. It shows as Disconnected until you **Connect** (its page, its menu, or search). It's kept in `config.toml` as `disconnected = true`.
-**Servers.** A machine's page lists what's listening there: web servers first, with their page's title (a dev server, a Docker container's site), then its other ports. **Open** puts one on this computer at `localhost` (the same port number when it's free) and opens it in your browser; no desktop needed. Each connection goes through the machine's live connection, so it works over ssh or direct alike, even for servers that listen only on the machine itself. Open ports are listed under their machine in the sidebar (click to open, × to close) and come back when Muxen starts. **Open a port** takes any port number. From a terminal: `muxen ports <machine>` and `muxen forward <machine> <port>`.
+**Servers.** A machine's page lists what's listening there: web servers first, with their page's title (a dev server, a Docker container's site), then its other ports. **Open** puts one on this computer at `localhost` (the same port number when it's free) and opens it in your browser; no desktop needed. Each connection goes through the machine's live connection, so it works over ssh or direct alike, even for servers that listen only on the machine itself. Open ports are listed under their machine in the sidebar (click to open, × to close) and come back when Muxin starts. **Open a port** takes any port number. From a terminal: `muxin ports <machine>` and `muxin forward <machine> <port>`.
**Desktop.** On a Linux machine with an X11 desktop, a Mac, or a Windows PC someone is signed in to, **Show desktop** (on its page, or its right-click menu) shows its screen live and sends your mouse and keyboard to it. On Linux ⌘ works as Ctrl; on a Mac it stays ⌘. An open desktop is listed under its machine in the sidebar (and keeps streaming while you look elsewhere); close it there.
-**Monitors, real and virtual.** A machine with more than one monitor gets a picker above its desktop: show one monitor at a time (on Linux, or all of them). **Add monitor** (or **Add virtual monitor…** in the machine's right-click menu) plugs in a monitor that isn't there, the way [DeskPad](https://github.com/Stengo/DeskPad) does on a Mac: pick a name and a size (720p to 4K), and it joins the desktop like a real one, to the right of the others. Windows move onto it, the machine's own tools (System Settings, RustDesk) see it, and while the machine's desktop is open, Muxen lists it under the Desktop item in the sidebar to open it directly. It starts at the main monitor's size and offers every common one (720p to 4K). Above a monitor, pick its resolution, and on Linux desktops that offer it, its scale: 200% makes things twice as big and just as sharp, so a 4K monitor reads like 1080p (the stream is always the screen's own size, so it stays crisp). Right-click a monitor (in the picker or the sidebar) to rename or remove it, and in the all-screens view, click a monitor's name to open it. On Cinnamon each virtual monitor gets copies of the main monitor's panels (menu, clock, dock with the same pinned apps), so it's usable on its own. It stays until you remove it (**Remove monitor**) or the machine restarts. Handy on a machine with no screen (a dummy HDMI plug, a server), or to give an agent a monitor of its own. On a Mac it's a CGVirtualDisplay. On Linux (X11) it's a software dummy plug: Muxen plugs a made-up monitor (at the size you picked) into a video output with nothing connected, and the desktop sets it up like a real one. That takes root, so when sudo wants a password Muxen asks for yours, only then, sends it to sudo over its encrypted connection, and keeps it in memory only until you quit. Nothing is installed.
+**Monitors, real and virtual.** A machine with more than one monitor gets a picker above its desktop: show one monitor at a time (on Linux, or all of them). **Add monitor** (or **Add virtual monitor…** in the machine's right-click menu) plugs in a monitor that isn't there, the way [DeskPad](https://github.com/Stengo/DeskPad) does on a Mac: pick a name and a size (720p to 4K), and it joins the desktop like a real one, to the right of the others. Windows move onto it, the machine's own tools (System Settings, RustDesk) see it, and while the machine's desktop is open, Muxin lists it under the Desktop item in the sidebar to open it directly. It starts at the main monitor's size and offers every common one (720p to 4K). Above a monitor, pick its resolution, and on Linux desktops that offer it, its scale: 200% makes things twice as big and just as sharp, so a 4K monitor reads like 1080p (the stream is always the screen's own size, so it stays crisp). Right-click a monitor (in the picker or the sidebar) to rename or remove it, and in the all-screens view, click a monitor's name to open it. On Cinnamon each virtual monitor gets copies of the main monitor's panels (menu, clock, dock with the same pinned apps), so it's usable on its own. It stays until you remove it (**Remove monitor**) or the machine restarts. Handy on a machine with no screen (a dummy HDMI plug, a server), or to give an agent a monitor of its own. On a Mac it's a CGVirtualDisplay. On Linux (X11) it's a software dummy plug: Muxin plugs a made-up monitor (at the size you picked) into a video output with nothing connected, and the desktop sets it up like a real one. That takes root, so when sudo wants a password Muxin asks for yours, only then, sends it to sudo over its encrypted connection, and keeps it in memory only until you quit. Nothing is installed.
```sh
-muxen desktop displays beelink # its monitors (virtual ones marked)
-muxen desktop add beelink --size 2560x1440 # another monitor, "Display 2"
-muxen desktop shot beelink --display DisplayPort-0 # a screenshot of just that one
-muxen desktop set beelink HDMI-A-0 --size 3840x2160 --scale 2 # 4K, things twice as big
-muxen desktop remove beelink DisplayPort-0
+muxin desktop displays beelink # its monitors (virtual ones marked)
+muxin desktop add beelink --size 2560x1440 # another monitor, "Display 2"
+muxin desktop shot beelink --display DisplayPort-0 # a screenshot of just that one
+muxin desktop set beelink HDMI-A-0 --size 3840x2160 --scale 2 # 4K, things twice as big
+muxin desktop remove beelink DisplayPort-0
```
- **Macs** ask once, on their own screen, to allow `muxen-agent` under Privacy & Security › Screen Recording (to see it) and Accessibility (to control it). The screen goes over ssh to the agent's background service in your session there, so no other network permission is needed. Release builds sign the agent with a Developer ID, so the permissions survive updates.
@@ -413,10 +421,10 @@ muxen desktop remove beelink DisplayPort-0
- Only changed parts of the screen are sent (captured through shared memory, compressed on all of the machine's cores), so a still screen costs nothing.
```sh
-muxen connection beelink # how it's reached, and how fast
-muxen connection beelink --direct on # pair and connect directly
-muxen desktop shot beelink -o screen.jpg
-muxen desktop input beelink '[{"type":"click","x":100,"y":200},{"type":"text","text":"hello"}]'
+muxin connection beelink # how it's reached, and how fast
+muxin connection beelink --direct on # pair and connect directly
+muxin desktop shot beelink -o screen.jpg
+muxin desktop input beelink '[{"type":"click","x":100,"y":200},{"type":"text","text":"hello"}]'
```
AI agents get the same: `machine_connection`, `direct_connection`, `desktop_screenshot` (an image they can look at) and `desktop_input`.
@@ -425,12 +433,12 @@ AI agents get the same: `machine_connection`, `direct_connection`, `desktop_scre
## Tailscale and moving between networks
-If [Tailscale](https://tailscale.com) is on your Mac, Muxen uses it to keep machines reachable away from home, with nothing to set up: it only reads Tailscale's status and never changes its settings.
+If [Tailscale](https://tailscale.com) is on your Mac, Muxin uses it to keep machines reachable away from home, with nothing to set up: it only reads Tailscale's status and never changes its settings.
- **Home network first.** A paired machine is tried on its local-network address first, and through its Tailscale address a moment later; the first to answer wins. At home that's the local network; at a café it's Tailscale.
- **Moving.** When your Mac changes networks, connections that no longer work are rebuilt the best way from where you are, and ones that went through Tailscale move back to the local network when you're home again. Open terminals and desktops carry on.
- **ssh too.** If a machine's host only works at home (a local IP in `config.toml` or your ssh config), ssh goes to its tailnet address instead when the usual one doesn't answer.
-- **Offline answers.** Tailscale's view tells Muxen when a machine is back, whether Tailscale lost it too, or that Tailscale is off on this Mac (with **Open Tailscale**).
+- **Offline answers.** Tailscale's view tells Muxin when a machine is back, whether Tailscale lost it too, or that Tailscale is off on this Mac (with **Open Tailscale**).
- **The Connection card** says which way it goes (Local network, or Tailscale peer-to-peer or through a relay), whether the machine is on your tailnet, and offers **Set up Tailscale** on Linux machines that aren't (the install command, typed in a shell there for you to run).
- **Adding machines:** the Add machine dialog lists the computers on your tailnet; one added by its tailnet name is reachable from anywhere.
@@ -438,23 +446,23 @@ If [Tailscale](https://tailscale.com) is on your Mac, Muxen uses it to keep mach
A machine's logs, live: **Logs** on its page (or right-click it, or ⌘P › Logs) opens them, and they stay under the machine in the sidebar until you close them.
-- **System:** the systemd journal and the kernel's messages on Linux, the unified log on a Mac. Without the `systemd-journal` group Linux shows only your own; Muxen says so.
+- **System:** the systemd journal and the kernel's messages on Linux, the unified log on a Mac. Without the `systemd-journal` group Linux shows only your own; Muxin says so.
- **Files:** `/var/log`, `~/Library/Logs`, and log files written lately under your home folder (an app's `storage/logs`, a runner's `_diag`), newest first, or any path you type. Root-only ones are marked.
- **Docker** containers, and running **services** (systemd units, yours and the system's).
- The last 500 lines, then new ones as they're written; a filter, Pause, Follow (scrolling up stops it) and Copy. Errors are red and warnings amber.
```sh
-muxen logs beelink --list # what there is
-muxen logs beelink --unit nginx -n 100 # a service's last lines
-muxen logs beelink --file '~/app/storage/logs/laravel.log' --grep error
-muxen logs beelink --container postgres --follow # keep printing (Ctrl-C to stop)
+muxin logs beelink --list # what there is
+muxin logs beelink --unit nginx -n 100 # a service's last lines
+muxin logs beelink --file '~/app/storage/logs/laravel.log' --grep error
+muxin logs beelink --container postgres --follow # keep printing (Ctrl-C to stop)
```
## Services and containers
A machine's services, and its Docker containers: **Services** on its page (or right-click it, or ⌘P › Services). Failed ones come first, then running ones; Find narrows the list.
-- **Linux:** systemd services, the system's and your own ("yours"), with whether each starts at boot (click **At boot** to change it). **Start**, **Stop**, **Restart**. The system's take root: when sudo wants your password, Muxen asks for it there, once, and keeps it in memory until you quit.
+- **Linux:** systemd services, the system's and your own ("yours"), with whether each starts at boot (click **At boot** to change it). **Start**, **Stop**, **Restart**. The system's take root: when sudo wants your password, Muxin asks for it there, once, and keeps it in memory until you quit.
- **A Mac:** Homebrew's services (`brew services`: Postgres, Redis, nginx, ...).
- **What they use:** CPU and memory for each running service and container; sort by them to find what's busy.
- **Docker, all of it:**
@@ -462,45 +470,45 @@ A machine's services, and its Docker containers: **Services** on its page (or ri
- **Compose:** each project Docker knows, with **Up**, **Down**, **Restart**, **Pull**, its log, and **Edit** (its compose file in your editor, in a terminal on the machine). **New project** makes `~/compose/<name>/compose.yaml` to start from. Click a project to see it three ways: a **Picture** (its services as boxes, an arrow to what each waits for, green when it waits until that's healthy; the ports each opens on the machine, its networks as colored tags, the files it mounts, its volumes at the right; each box with the image, state, health, CPU and memory), a **List** (the same as a table, with Start, Stop and Restart for each service, then its volumes, mounted files and networks), and its **Logs** (every service's lines in time order, each in its color, with a chip to show one service's).
- **Images:** pull one, run it, remove it, or remove every unused one.
- Pulls, runs and Compose up/down run as operations: their output shows as they go, and in Activity.
-- Stop, Restart, Remove and Down ask first, and say so when stopping one (ssh, Tailscale, the network) could cut Muxen off from the machine. The log button opens its log in **Logs**.
+- Stop, Restart, Remove and Down ask first, and say so when stopping one (ssh, Tailscale, the network) could cut Muxin off from the machine. The log button opens its log in **Logs**.
- **Processes:** the machine's busiest few hundred processes, with CPU (percent of one core), memory, how long each has run and who runs it; **Stop** sends SIGTERM, **Kill** SIGKILL (both ask first). Another user's takes root, as for system services. NVIDIA, AMD (Linux) and Apple GPUs show above the list, with how busy and how much memory.
```sh
-muxen services beelink # services and containers
-muxen services beelink restart nginx
-muxen services beelink stop postgres --container
+muxin services beelink # services and containers
+muxin services beelink restart nginx
+muxin services beelink stop postgres --container
```
## Files and the clipboard
**Copying files.** **Copy files** on a machine's page (or its right-click menu) opens two panes: the machine with the files on the left, where they go on the right, each a folder you can browse. Pick files and folders, pick a folder, copy. Dropping files from the Finder onto a machine in the sidebar opens it ready to send them there.
-- Files go through Muxen as a tar stream between the two machines' agents, so the machines never need to reach each other or share ssh keys. Folders come along whole, with permissions and links. Your Mac is a machine like the others, so this uploads and downloads too.
+- Files go through Muxin as a tar stream between the two machines' agents, so the machines never need to reach each other or share ssh keys. Folders come along whole, with permissions and links. Your Mac is a machine like the others, so this uploads and downloads too.
- Files with the same names in the destination folder are replaced; the dialog says so first.
- Progress, speed and **Stop** are in Activity.
- Both ends hold back to what the other can take, so a slow machine doesn't pile data up anywhere.
```sh
-muxen files beelink:~/build
-muxen cp beelink:~/build/app.tar.gz adibs-macbook-pro:~/Downloads
-muxen cp adibs-macbook-pro:~/Projects/site beelink:~/www --no-wait
+muxin files beelink:~/build
+muxin cp beelink:~/build/app.tar.gz adibs-macbook-pro:~/Downloads
+muxin cp adibs-macbook-pro:~/Projects/site beelink:~/www --no-wait
```
**Shared clipboard.** Text you copy on your Mac can be pasted on your Linux desktops and other Macs, and what you copy there lands on your Mac (and on the other machines). Passwords copied from password managers (marked private on the clipboard) stay on your Mac. Turn it off in Settings › Clipboard.
## Cloud machines
-Need a machine you don't have? Muxen can make one in your DigitalOcean account. Connect in **Settings › Cloud** with an API token (kept in the macOS Keychain), the browser sign-in, or `doctl`'s login. Then pick **New cloud machine…** in the Add machine dialog: a name, a region (the nearest is preselected) and a size with its price. Muxen creates the droplet with your user and SSH key, installs what you chose (Docker, git and the GitHub CLI; Node with Claude Code and Codex; Tailscale), and adds it to your machines. Then it's like any other machine: terminals, agent sessions, files, workspaces.
+Need a machine you don't have? Muxin can make one in your DigitalOcean account. Connect in **Settings › Cloud** with an API token (kept in the macOS Keychain), the browser sign-in, or `doctl`'s login. Then pick **New cloud machine…** in the Add machine dialog: a name, a region (the nearest is preselected) and a size with its price. Muxin creates the droplet with your user and SSH key, installs what you chose (Docker, git and the GitHub CLI; Node with Claude Code and Codex; Tailscale), and adds it to your machines. Then it's like any other machine: terminals, agent sessions, files, workspaces.
-DigitalOcean bills a droplet by the second while it exists, **powered on or off**, up to its monthly price; only destroying it stops the charges. Each cloud machine's page shows its rate, what it has cost this month and since it was created, and what this month comes to if you keep it, with **Power on/off** and **Destroy**. **Settings › Cloud › Usage and cost** adds them up: what you're paying per hour now, this month so far (machines destroyed this month included), the month's total if nothing changes, and your whole DigitalOcean bill this month (when Muxen may read it: sign in again in the browser, or use a token with `billing:read`). Settings › Cloud also says what happens when one sits idle: nothing, a reminder, power off, or destroy, after the hours you choose.
+DigitalOcean bills a droplet by the second while it exists, **powered on or off**, up to its monthly price; only destroying it stops the charges. Each cloud machine's page shows its rate, what it has cost this month and since it was created, and what this month comes to if you keep it, with **Power on/off** and **Destroy**. **Settings › Cloud › Usage and cost** adds them up: what you're paying per hour now, this month so far (machines destroyed this month included), the month's total if nothing changes, and your whole DigitalOcean bill this month (when Muxin may read it: sign in again in the browser, or use a token with `billing:read`). Settings › Cloud also says what happens when one sits idle: nothing, a reminder, power off, or destroy, after the hours you choose.
```sh
-muxen cloud login --token dop_v1_...
-muxen cloud options
-muxen cloud create dev-1 --size s-2vcpu-4gb
-muxen cloud usage # what they cost
-muxen cloud destroy dev-1
+muxin cloud login --token dop_v1_...
+muxin cloud options
+muxin cloud create dev-1 --size s-2vcpu-4gb
+muxin cloud usage # what they cost
+muxin cloud destroy dev-1
```
## VMs on your machines
@@ -510,31 +518,31 @@ Need a clean Windows to try an installer, or a throwaway Linux? **New VM…** (i
- **Windows** 11, 10, Server 2025 or 2022, in Docker with KVM ([dockur/windows](https://github.com/dockur/windows)) on a Linux machine (x86-64). It downloads Windows and installs it by itself, 15 to 30 minutes the first time, then turns on OpenSSH with your key. Watch the install from its page. It runs unactivated until you enter a key.
- **Linux** (Ubuntu, Debian, Fedora, Alpine or Arch) as a container with ssh, on any machine with Docker, this Mac included. Ready in under a minute. It shares its host's kernel (no systemd).
-It joins your machines under the one it runs on, with Muxen's agent: sessions, files, the desktop and workspaces work like anywhere, and a UDP port on its host is forwarded to it, so **Connect directly** works too. **Stop** and **Start** it from its page; **Destroy** deletes its container and disk. Your AI agents can do the same through MCP: make a Windows VM for a test, use it, destroy it.
+It joins your machines under the one it runs on, with Muxin's agent: sessions, files, the desktop and workspaces work like anywhere, and a UDP port on its host is forwarded to it, so **Connect directly** works too. **Stop** and **Start** it from its page; **Destroy** deletes its container and disk. Your AI agents can do the same through MCP: make a Windows VM for a test, use it, destroy it.
```sh
-muxen vm options # where VMs can run, and what
-muxen vm create win-test --system windows-11 --on beelink
-muxen vm create scratch --system ubuntu-24.04 # on the machine with the most free memory
-muxen power win-test off
-muxen vm destroy win-test
+muxin vm options # where VMs can run, and what
+muxin vm create win-test --system windows-11 --on beelink
+muxin vm create scratch --system ubuntu-24.04 # on the machine with the most free memory
+muxin power win-test off
+muxin vm destroy win-test
```
## Schedules
-A schedule runs a command, or starts an agent session, on one of your machines at set times: every few minutes, every hour, every day, weekdays, or some days of the week, in that machine's own time. It's kept on the machine and run by its own scheduler (cron, launchd or Task Scheduler), so it runs even when Muxen isn't open. The **Schedules** page lists them with their last run, runs one now, pauses one, and shows each run's output. An agent schedule ("every morning, go through new issues") starts a session you find under the machine, waiting for you.
+A schedule runs a command, or starts an agent session, on one of your machines at set times: every few minutes, every hour, every day, weekdays, or some days of the week, in that machine's own time. It's kept on the machine and run by its own scheduler (cron, launchd or Task Scheduler), so it runs even when Muxin isn't open. The **Schedules** page lists them with their last run, runs one now, pauses one, and shows each run's output. An agent schedule ("every morning, go through new issues") starts a session you find under the machine, waiting for you.
```sh
-muxen schedule add beelink --name "Disk report" --every weekdays --at 09:00 --command "df -h /"
-muxen schedule add beelink --name Triage --every day --at 08:30 --agent claude --prompt "Label new issues in acme/api"
-muxen schedule ls
-muxen schedule log beelink s-ab12cd
+muxin schedule add beelink --name "Disk report" --every weekdays --at 09:00 --command "df -h /"
+muxin schedule add beelink --name Triage --every day --at 08:30 --agent claude --prompt "Label new issues in acme/api"
+muxin schedule ls
+muxin schedule log beelink s-ab12cd
```
## How checks and installs work
- **Checks are read-only.** A small script is sent over `ssh` (`sh` on macOS and Linux, PowerShell on Windows), or run directly for `host = "local"`. It reports CPU, memory, disk, uptime and load, and finds the installed runners, their versions, their services and whether they're running. Checks run on a schedule (every 15 minutes by default) or on request.
-- **Installs only happen when you ask.** Muxen checks the machine, gets a short-lived registration token from GitHub, and installs each runner in one of these modes (`--mode` / `mode`, default `auto`):
+- **Installs only happen when you ask.** Muxin checks the machine, gets a short-lived registration token from GitHub, and installs each runner in one of these modes (`--mode` / `mode`, default `auto`):
- **service:** downloads the latest `actions-runner` for the machine's platform into `~/actions-runner/<name>`, runs `config.sh --unattended`, and installs a service: launchd on macOS (the user must be logged in), systemd on Linux (needs **passwordless sudo** for `svc.sh`), a Windows service on Windows.
- **docker:** one container per runner, `muxen-<name>`, from GitHub's official image (`ghcr.io/actions/actions-runner:<latest runner version>`, or `--image`). The runner's files live in a named volume of the same name, registration happens in a throwaway container that reads the token from stdin (so it never shows up in `docker inspect` or a process list), and the container runs with `--restart unless-stopped`, so it comes back with the Docker daemon. No sudo needed; the user just has to be in the `docker` group. The runners get the `docker` label, and jobs run in a clean Ubuntu userland. `--docker-socket` shares the host's Docker socket so jobs can use Docker; that's root-equivalent access to the machine, so only use it for trusted workflows.
- **background:** `run.sh` started with `nohup`; no root needed, but it doesn't come back after a reboot (`--no-service` is the same).
@@ -546,17 +554,17 @@ muxen schedule log beelink s-ab12cd
## Windows
-**Windows machines** are managed like the others, over OpenSSH (Settings › System › Optional features › OpenSSH Server, then key-based login; an administrator account for services and runners). Muxen installs its agent in `%USERPROFILE%\.muxen\bin` and works with PowerShell or cmd as sshd's shell:
+**Windows machines** are managed like the others, over OpenSSH (Settings › System › Optional features › OpenSSH Server, then key-based login; an administrator account for services and runners). Muxin installs its agent in `%USERPROFILE%\.muxen\bin` and works with PowerShell or cmd as sshd's shell:
-- **Sessions** keep running after Muxen closes (ConPTY, in the agent's session server).
-- **Desktop and clipboard:** the screen, mouse and keyboard of whoever is signed in; Muxen starts its helper in their session through a one-off scheduled task (no window flashes).
+- **Sessions** keep running after Muxin closes (ConPTY, in the agent's session server).
+- **Desktop and clipboard:** the screen, mouse and keyboard of whoever is signed in; Muxin starts its helper in their session through a one-off scheduled task (no window flashes).
- **Pages:** Processes and GPUs, Services (Windows services; "at boot" is the startup type), Servers, Logs (the System, Application and Security event logs, a service's events, files), Usage, Copy files, git, Run (PowerShell), workspaces (sync copies through the agent; it doesn't delete).
- **Checks** report admin rights, Docker, the network card (for Wake on LAN), pending reboots and failed services.
- **Direct connections** run `listen` as a scheduled task at sign-in, with a Windows Firewall rule for the agent.
Not yet on Windows: Docker runners and Docker workspaces, adding virtual monitors.
-**The app on Windows** is built on Windows (GPUI compiles its shaders with the Windows SDK's `fxc.exe`): install Rust and Visual Studio's C++ build tools with the Windows SDK, run `scripts/build-agents.sh` on a Mac or Linux (it makes the Windows agent too, with `cargo-zigbuild`), then `scripts\package-windows.ps1` on Windows. That makes `dist\Muxen-<version>-windows-x64-setup.exe` (`arm64` on Windows on Arm: an installer, with [Inno Setup](https://jrsoftware.org/isinfo.php): for this user, no administrator needed, a Start menu entry, optionally `muxen` on the PATH, an uninstaller) and `dist\Muxen-<version>-windows-x64.zip` (`muxen.exe` and its `agents\`). Started from Explorer it shows no console window; from a terminal it's the same CLI as elsewhere. Secrets go in Windows' Credential Manager.
+**The app on Windows** is built on Windows (GPUI compiles its shaders with the Windows SDK's `fxc.exe`): install Rust and Visual Studio's C++ build tools with the Windows SDK, run `scripts/build-agents.sh` on a Mac or Linux (it makes the Windows agent too, with `cargo-zigbuild`), then `scripts\package-windows.ps1` on Windows. That makes `dist\Muxin-<version>-windows-x64-setup.exe` (`arm64` on Windows on Arm: an installer, with [Inno Setup](https://jrsoftware.org/isinfo.php): for this user, no administrator needed, a Start menu entry, optionally `muxin` on the PATH, an uninstaller) and `dist\Muxin-<version>-windows-x64.zip` (`muxin.exe` and its `agents\`). Started from Explorer it shows no console window; from a terminal it's the same CLI as elsewhere. Secrets go in Windows' Credential Manager.
## Develop
@@ -586,6 +594,6 @@ Issues and pull requests are welcome: see [CONTRIBUTING.md](CONTRIBUTING.md). To
## License
-Muxen is open source under the [Apache License 2.0](LICENSE), copyright 2026 Lumary Labs LLC (see `NOTICE`). The Muxen name and logo are Lumary Labs' trademarks; the license doesn't cover them.
+Muxin is open source under the [Apache License 2.0](LICENSE), copyright 2026 Lumary Labs LLC (see `NOTICE`). The Muxin name and logo are Lumary Labs' trademarks; the license doesn't cover them.
It includes third-party components under their own licenses, listed in `THIRD_PARTY_NOTICES.md`: the Geist fonts (SIL Open Font License, `assets/fonts/OFL.txt`), the Lucide icons (ISC, `assets/icons/LICENSE.txt`), the Phosphor, Hugeicons and Fluent icons (MIT), the MingCute icons (Apache-2.0) and the Solar icons (CC BY 4.0), with their licenses in `assets/icons/`, GPUI (Apache-2.0) and the Rust crates in `Cargo.lock`.
diff --git a/RELEASING.md b/RELEASING.md
index 8226915..2b0346b 100644
--- a/RELEASING.md
+++ b/RELEASING.md
@@ -1,4 +1,4 @@
-# Releasing Muxen
+# Releasing Muxin
A release is a version tag (`v1.2.3`). Pushing one runs the **release** workflow
(`.github/workflows/release.yml`), which builds every platform and puts the
@@ -6,19 +6,19 @@ files in a **draft** GitHub release on this repository to look over and publish.
| File | What it is |
|---|---|
-| `Muxen-<version>-macos.dmg` | The app for Apple silicon and Intel Macs (macOS 12 or later), signed with the Developer ID and notarized |
-| `Muxen-<version>-linux-x86_64.tar.gz` | The app for Linux on Intel and AMD (glibc 2.35 or newer: Ubuntu 22.04, Debian 12, Fedora 36 and later), with `install.sh` |
-| `Muxen-<version>-linux-aarch64.tar.gz` | The same for Linux on Arm |
-| `Muxen-<version>-windows-x64-setup.exe` | The Windows installer (for the user, no administrator needed) |
-| `Muxen-<version>-windows-x64.zip` | The same, unpacked |
-| `Muxen-<version>-windows-arm64-setup.exe` | The installer for Windows on Arm (which runs the x64 one too, emulated) |
-| `Muxen-<version>-windows-arm64.zip` | The same, unpacked |
+| `Muxin-<version>-macos.dmg` | The app for Apple silicon and Intel Macs (macOS 12 or later), signed with the Developer ID and notarized |
+| `Muxin-<version>-linux-x86_64.tar.gz` | The app for Linux on Intel and AMD (glibc 2.35 or newer: Ubuntu 22.04, Debian 12, Fedora 36 and later), with `install.sh` |
+| `Muxin-<version>-linux-aarch64.tar.gz` | The same for Linux on Arm |
+| `Muxin-<version>-windows-x64-setup.exe` | The Windows installer (for the user, no administrator needed) |
+| `Muxin-<version>-windows-x64.zip` | The same, unpacked |
+| `Muxin-<version>-windows-arm64-setup.exe` | The installer for Windows on Arm (which runs the x64 one too, emulated) |
+| `Muxin-<version>-windows-arm64.zip` | The same, unpacked |
| `SHA256SUMS.txt` | Their checksums |
Each one carries the agent for every platform (`agents/`), which the app
installs on the machines it connects to. The Arm builds are made on GitHub's
Arm machines (`ubuntu-22.04-arm`, `windows-11-arm`), and each Linux and Windows
-build runs its `muxen --version` and agent there before it's kept.
+build runs its `muxin --version` and agent there before it's kept.
## Making a release
@@ -31,7 +31,7 @@ The script sets the version in `Cargo.toml` and `Cargo.lock`, commits it, tags
the commit `v0.2.0` and pushes both. Leave out `--push` to look first; then
`git push origin HEAD v0.2.0`.
-You can also run it on a branch that `main` follows, like `muxen`. Then `--push`
+You can also run it on a branch that `main` follows, like `muxin`. Then `--push`
moves `main` up to it too, here and on GitHub. If `main` has commits the branch
doesn't, it stays where it is and the script says so.
@@ -41,6 +41,7 @@ Then:
gh run watch # the build: about 30 minutes
gh release view v0.2.0 # the draft and its files
gh release edit v0.2.0 --draft=false # publish it
+scripts/homebrew.sh 0.2.0 --push # then the Homebrew cask
```
If a job fails for a reason outside the code, like a dropped connection to
@@ -50,6 +51,15 @@ The draft is made once every platform has built.
Published releases are public: anyone can download them from the repository's
Releases page.
+## Homebrew
+
+`brew install --cask lumarylabsllc/tap/muxin` installs Muxin on macOS and Linux
+from [LumaryLabsLLC/homebrew-tap](https://github.com/LumaryLabsLLC/homebrew-tap).
+Its cask, `Casks/muxin.rb`, points at a release's files by their checksums, so
+it moves up only once the release is published: `scripts/homebrew.sh <version>
+--push` writes it from the release's `SHA256SUMS.txt`, commits and pushes it.
+`brew upgrade --cask muxin` gets it from then on.
+
To try the pipeline without a release, run the workflow by hand (Actions ›
release › Run workflow, or `gh workflow run release`). It builds the same files
and keeps them on the run as artifacts.
@@ -96,10 +106,10 @@ again.
| Platform | Command | Output |
|---|---|---|
-| macOS | `scripts/bundle-macos.sh` | `dist/Muxen.app`, for this Mac (what you use day to day) |
-| macOS release | `scripts/bundle-macos.sh --release && scripts/notarize-macos.sh` | a universal, notarized `dist/Muxen-<version>-macos.dmg` |
+| macOS | `scripts/bundle-macos.sh` | `dist/Muxin.app`, for this Mac (what you use day to day) |
+| macOS release | `scripts/bundle-macos.sh --release && scripts/notarize-macos.sh` | a universal, notarized `dist/Muxin-<version>-macos.dmg` |
| Agents | `scripts/build-agents.sh` | `dist/agents/`, every platform (needs zig and cargo-zigbuild) |
-| Linux | `scripts/package-linux.sh` | `dist/Muxen-<version>-linux-<arch>.tar.gz` |
+| Linux | `scripts/package-linux.sh` | `dist/Muxin-<version>-linux-<arch>.tar.gz` |
| Windows | `scripts\package-windows.ps1` | the installer and zip (agents from a Mac or Linux first) |
## Not done yet
diff --git a/SECURITY.md b/SECURITY.md
index 552dad9..e5f1170 100644
--- a/SECURITY.md
+++ b/SECURITY.md
@@ -1,6 +1,6 @@
# Security
-Muxen runs commands on your machines and holds your connections to them, so we
+Muxin runs commands on your machines and holds your connections to them, so we
take security problems seriously.
## Reporting a problem
@@ -16,5 +16,5 @@ you when it's released if you'd like.
## What's covered
-The app, its command line and MCP server (`muxen`), and the agent it installs
+The app, its command line and MCP server (`muxin`), and the agent it installs
on machines (`muxen-agent`), in the latest release.
diff --git a/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.md
index 866bcfa..7a9e4ab 100644
--- a/THIRD_PARTY_NOTICES.md
+++ b/THIRD_PARTY_NOTICES.md
@@ -1,7 +1,7 @@
# Third-party notices
-Muxen includes the following third-party components. Their licenses
-must ship with every copy of Muxen.
+Muxin includes the following third-party components. Their licenses
+must ship with every copy of Muxin.
| Component | License | Notice |
|---|---|---|
@@ -21,8 +21,8 @@ must ship with every copy of Muxen.
| Rust crates listed in `Cargo.lock` | MIT and/or Apache-2.0 (mostly), see each crate | Generate the full list before each release, e.g. with `cargo about generate` |
The agent logos are trademarks of their owners (Anthropic, OpenAI, Google,
-SST, Sourcegraph, Earendil), as is DigitalOcean's. Muxen shows them only to identify which CLI a session
+SST, Sourcegraph, Earendil), as is DigitalOcean's. Muxin shows them only to identify which CLI a session
runs, or that a machine is a DigitalOcean droplet; check each owner's brand guidelines before using them in marketing.
Before shipping a release, regenerate the crate list and include the license
-texts in the app bundle (for example `Muxen.app/Contents/Resources/`).
+texts in the app bundle (for example `Muxin.app/Contents/Resources/`).
diff --git a/assets/brand/Muxen.icns b/assets/brand/Muxin.icns
similarity index 100%
rename from assets/brand/Muxen.icns
rename to assets/brand/Muxin.icns
diff --git a/assets/brand/muxen.ico b/assets/brand/muxin.ico
similarity index 100%
rename from assets/brand/muxen.ico
rename to assets/brand/muxin.ico
diff --git a/assets/linux/install.sh b/assets/linux/install.sh
index 633a8c2..09eb1ca 100755
--- a/assets/linux/install.sh
+++ b/assets/linux/install.sh
@@ -1,34 +1,48 @@
#!/bin/sh
-# Installs Muxen for you (no root needed): the app in ~/.local/share/muxen-app,
-# the `muxen` command in ~/.local/bin, and Muxen in your desktop's app menu.
-# Run it again to update. `./install.sh --uninstall` takes it all out again
-# (your settings in ~/.config/muxin stay).
+# Installs Muxin for you (no root needed): the app in ~/.local/share/muxin-app,
+# the `muxin` command in ~/.local/bin (and `muxen`, its name from before), and
+# Muxin in your desktop's app menu. Run it again to update; it replaces an
+# install from when it was called Muxen. `./install.sh --uninstall` takes it
+# all out again (your settings in ~/.config/muxin stay).
set -eu
here=$(cd "$(dirname "$0")" && pwd)
data=${XDG_DATA_HOME:-$HOME/.local/share}
-dest=$data/muxen-app
+dest=$data/muxin-app
bin=$HOME/.local/bin
-entry=$data/applications/muxen.desktop
-icon=$data/icons/hicolor/512x512/apps/muxen.png
+entry=$data/applications/muxin.desktop
+icon=$data/icons/hicolor/512x512/apps/muxin.png
+
+# From before the rename: the app's folder, its menu entry and icon, and the
+# muxen command when it ran that copy.
+old=$data/muxen-app
+[ "$(readlink "$bin/muxen" 2>/dev/null)" = "$old/muxen" ] && rm -f "$bin/muxen"
+rm -rf "$old" "$data/applications/muxen.desktop" "$data/icons/hicolor/512x512/apps/muxen.png"
if [ "${1:-}" = --uninstall ]; then
- [ "$(readlink "$bin/muxen" 2>/dev/null)" = "$dest/muxen" ] && rm -f "$bin/muxen"
+ for name in muxin muxen; do
+ [ "$(readlink "$bin/$name" 2>/dev/null)" = "$dest/muxin" ] && rm -f "$bin/$name"
+ done
rm -rf "$dest" "$entry" "$icon"
- echo "Muxen is uninstalled. Your settings are still in ~/.config/muxin."
+ echo "Muxin is uninstalled. Your settings are still in ~/.config/muxin."
exit 0
fi
rm -rf "$dest"
mkdir -p "$dest" "$bin" "$(dirname "$entry")" "$(dirname "$icon")"
-cp -R "$here/muxen" "$here/agents" "$dest/"
-ln -sf "$dest/muxen" "$bin/muxen"
-cp "$here/muxen.png" "$icon"
-sed "s|^Exec=.*|Exec=$dest/muxen|" "$here/muxen.desktop" > "$entry"
+cp -R "$here/muxin" "$here/agents" "$dest/"
+ln -sf "$dest/muxin" "$bin/muxin"
+# muxen too, unless something else has that name.
+case "$(readlink "$bin/muxen" 2>/dev/null)" in
+ */muxin | */muxen) ln -sf "$dest/muxin" "$bin/muxen" ;;
+ "") [ -e "$bin/muxen" ] || ln -s "$dest/muxin" "$bin/muxen" ;;
+esac
+cp "$here/muxin.png" "$icon"
+sed "s|^Exec=.*|Exec=$dest/muxin|" "$here/muxin.desktop" > "$entry"
command -v update-desktop-database >/dev/null && update-desktop-database "$(dirname "$entry")" 2>/dev/null || true
-echo "Muxen is installed: open it from your app menu, or run \`muxen\`."
+echo "Muxin is installed: open it from your app menu, or run \`muxin\`."
case ":$PATH:" in
*":$bin:"*) ;;
- *) echo "To use \`muxen\` in a terminal, add $bin to your PATH." ;;
+ *) echo "To use \`muxin\` in a terminal, add $bin to your PATH." ;;
esac
diff --git a/assets/linux/muxen.desktop b/assets/linux/muxin.desktop
similarity index 77%
rename from assets/linux/muxen.desktop
rename to assets/linux/muxin.desktop
index 4e0e4c4..1e0e17c 100644
--- a/assets/linux/muxen.desktop
+++ b/assets/linux/muxin.desktop
@@ -1,11 +1,11 @@
[Desktop Entry]
Type=Application
-Name=Muxen
+Name=Muxin
GenericName=Machines
Comment=All your machines, one app
-Exec=muxen
-Icon=muxen
+Exec=muxin
+Icon=muxin
Terminal=false
-StartupWMClass=muxen
+StartupWMClass=muxin
Categories=Development;Network;RemoteAccess;
Keywords=ssh;servers;agents;runners;
diff --git a/build.rs b/build.rs
index 5b7680e..5a3ec78 100644
--- a/build.rs
+++ b/build.rs
@@ -2,13 +2,13 @@
//! its name in the executable's properties. Nothing to do elsewhere.
fn main() {
- println!("cargo:rerun-if-changed=assets/brand/muxen.ico");
+ println!("cargo:rerun-if-changed=assets/brand/muxin.ico");
#[cfg(windows)]
if std::env::var("CARGO_CFG_TARGET_OS").as_deref() == Ok("windows") {
let mut res = winresource::WindowsResource::new();
- res.set_icon_with_id("assets/brand/muxen.ico", "1");
- res.set("ProductName", "Muxen");
- res.set("FileDescription", "Muxen");
+ res.set_icon_with_id("assets/brand/muxin.ico", "1");
+ res.set("ProductName", "Muxin");
+ res.set("FileDescription", "Muxin");
res.set("CompanyName", "Lumary Labs");
if let Err(e) = res.compile() {
println!("cargo:warning=couldn't embed the icon: {e}");
diff --git a/scripts/bundle-macos.sh b/scripts/bundle-macos.sh
index d33a914..fc9b1a4 100755
--- a/scripts/bundle-macos.sh
+++ b/scripts/bundle-macos.sh
@@ -1,7 +1,9 @@
#!/bin/sh
-# Builds Muxen.app (release build + Info.plist + icon) into dist/.
+# Builds Muxin.app (release build + Info.plist + icon) into dist/.
# The bundle runs the same binary: with no arguments it opens the window, and
-# `Muxen.app/Contents/MacOS/muxen mcp` still works for agents.
+# `Muxin.app/Contents/MacOS/muxin mcp` still works for agents. Its bundle id
+# stays com.lumarylabs.muxen (from when it was called Muxen), so macOS keeps
+# its Keychain items and permissions across the rename.
#
# --universal one app for Apple silicon and Intel Macs.
# --release --universal, signed for notarization: hardened runtime and a
@@ -24,18 +26,18 @@ for arg in "$@"; do
esac
done
version=$(sed -n 's/^version = "\(.*\)"/\1/p' Cargo.toml | head -n1)
-app=dist/Muxen.app
+app=dist/Muxin.app
if [ -n "$universal" ]; then
cargo build --release --locked --target aarch64-apple-darwin
cargo build --release --locked --target x86_64-apple-darwin
mkdir -p target/universal
- lipo -create -output target/universal/muxen \
- target/aarch64-apple-darwin/release/muxen target/x86_64-apple-darwin/release/muxen
- binary=target/universal/muxen
+ lipo -create -output target/universal/muxin \
+ target/aarch64-apple-darwin/release/muxin target/x86_64-apple-darwin/release/muxin
+ binary=target/universal/muxin
else
cargo build --release
- binary=target/release/muxen
+ binary=target/release/muxin
fi
# The agent builds the app installs on each machine it connects to.
if [ -z "$skip_agents" ]; then
@@ -44,8 +46,8 @@ fi
ls dist/agents/muxen-agent-* >/dev/null 2>&1 || { echo "error: no agent builds in dist/agents" >&2; exit 1; }
rm -rf "$app"
mkdir -p "$app/Contents/MacOS" "$app/Contents/Resources/agents"
-cp "$binary" "$app/Contents/MacOS/muxen"
-cp assets/brand/Muxen.icns "$app/Contents/Resources/Muxen.icns"
+cp "$binary" "$app/Contents/MacOS/muxin"
+cp assets/brand/Muxin.icns "$app/Contents/Resources/Muxin.icns"
cp dist/agents/muxen-agent-* "$app/Contents/Resources/agents/"
# Its license, and the third-party ones that must ship with every copy.
cp LICENSE NOTICE THIRD_PARTY_NOTICES.md "$app/Contents/Resources/"
@@ -55,11 +57,11 @@ cat > "$app/Contents/Info.plist" <<PLIST
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
- <key>CFBundleName</key><string>Muxen</string>
- <key>CFBundleDisplayName</key><string>Muxen</string>
+ <key>CFBundleName</key><string>Muxin</string>
+ <key>CFBundleDisplayName</key><string>Muxin</string>
<key>CFBundleIdentifier</key><string>com.lumarylabs.muxen</string>
- <key>CFBundleExecutable</key><string>muxen</string>
- <key>CFBundleIconFile</key><string>Muxen</string>
+ <key>CFBundleExecutable</key><string>muxin</string>
+ <key>CFBundleIconFile</key><string>Muxin</string>
<key>CFBundlePackageType</key><string>APPL</string>
<key>CFBundleShortVersionString</key><string>$version</string>
<key>CFBundleVersion</key><string>$version</string>
@@ -67,7 +69,7 @@ cat > "$app/Contents/Info.plist" <<PLIST
<key>LSApplicationCategoryType</key><string>public.app-category.developer-tools</string>
<key>NSHighResolutionCapable</key><true/>
<key>NSHumanReadableCopyright</key><string>© Lumary Labs LLC</string>
- <key>NSLocalNetworkUsageDescription</key><string>Muxen connects straight to your machines on your local network: faster than going through ssh or a VPN, and needed to show their desktops smoothly.</string>
+ <key>NSLocalNetworkUsageDescription</key><string>Muxin connects straight to your machines on your local network: faster than going through ssh or a VPN, and needed to show their desktops smoothly.</string>
</dict>
</plist>
PLIST
diff --git a/scripts/homebrew.sh b/scripts/homebrew.sh
new file mode 100755
index 0000000..6b07410
--- /dev/null
+++ b/scripts/homebrew.sh
@@ -0,0 +1,107 @@
+#!/bin/sh
+# Brings Muxin's Homebrew cask up to a published release: Casks/muxin.rb in
+# LumaryLabsLLC/homebrew-tap, with the release's version and the checksums
+# from its SHA256SUMS.txt. One cask for macOS (the app, in Applications) and
+# Linux (the app in Homebrew's folder, with an entry in the app menu); both
+# put `muxin` (and `muxen`, its name from before) in the PATH.
+#
+# scripts/homebrew.sh 0.5.1 # write it in a clone of the tap and commit
+# scripts/homebrew.sh 0.5.1 --push # and push it
+#
+# HOMEBREW_TAP_DIR=<folder> uses a clone you already have. For a local test,
+# MUXIN_CASK_URL replaces the download folder and MUXIN_SUMS_FILE the
+# checksums. See RELEASING.md.
+set -eu
+
+cd "$(dirname "$0")/.."
+usage="usage: scripts/homebrew.sh <version> [--push]"
+version=${1:?$usage}
+version=${version#v}
+push=
+case "${2:-}" in
+ --push) push=1 ;;
+ "") ;;
+ *) echo "$usage" >&2; exit 2 ;;
+esac
+
+sums=$(if [ -n "${MUXIN_SUMS_FILE:-}" ]; then cat "$MUXIN_SUMS_FILE"; else gh release download "v$version" -p SHA256SUMS.txt -O -; fi)
+sha() { echo "$sums" | awk -v f="$1" '$2 == f || $2 == "*" f { print $1 }'; }
+macos=$(sha "Muxin-$version-macos.dmg")
+x86_64=$(sha "Muxin-$version-linux-x86_64.tar.gz")
+aarch64=$(sha "Muxin-$version-linux-aarch64.tar.gz")
+[ -n "$macos" ] && [ -n "$x86_64" ] && [ -n "$aarch64" ] || {
+ echo "error: v$version's SHA256SUMS.txt doesn't have the macOS and Linux files" >&2
+ exit 1
+}
+base=${MUXIN_CASK_URL:-'https://github.com/LumaryLabsLLC/muxin/releases/download/v#{version}'}
+
+tap=${HOMEBREW_TAP_DIR:-}
+if [ -z "$tap" ]; then
+ tap=$(mktemp -d)
+ gh repo clone LumaryLabsLLC/homebrew-tap "$tap" -- --quiet
+fi
+mkdir -p "$tap/Casks"
+cat > "$tap/Casks/muxin.rb" <<EOF
+cask "muxin" do
+ arch arm: "aarch64", intel: "x86_64"
+
+ version "$version"
+ sha256 arm: "$macos",
+ intel: "$macos",
+ arm64_linux: "$aarch64",
+ x86_64_linux: "$x86_64"
+
+ on_macos do
+ url "$base/Muxin-#{version}-macos.dmg"
+
+ app "Muxin.app"
+ binary "#{appdir}/Muxin.app/Contents/MacOS/muxin"
+ binary "#{appdir}/Muxin.app/Contents/MacOS/muxin", target: "muxen"
+ end
+ on_linux do
+ url "$base/Muxin-#{version}-linux-#{arch}.tar.gz"
+
+ binary "Muxin/muxin"
+ binary "Muxin/muxin", target: "muxen"
+ artifact "Muxin/muxin.desktop", target: "~/.local/share/applications/muxin.desktop"
+
+ preflight_steps do
+ inreplace "Muxin/muxin.desktop", "Exec=muxin", "Exec={{HOMEBREW_PREFIX}}/bin/muxin"
+ inreplace "Muxin/muxin.desktop", "Icon=muxin", "Icon={{staged_path}}/Muxin/muxin.png"
+ end
+ end
+
+ name "Muxin"
+ desc "All your machines in one app, for you and your AI agents"
+ homepage "https://muxin.dev/"
+
+ livecheck do
+ url :url
+ strategy :github_latest
+ end
+
+ zap trash: [
+ "~/.cache/muxen",
+ "~/.config/muxen",
+ "~/.config/muxin",
+ "~/.muxen",
+ "~/Library/Caches/muxen",
+ "~/Library/Preferences/com.lumarylabs.muxen.plist",
+ ]
+end
+EOF
+echo "▸ $tap/Casks/muxin.rb: $version"
+
+cd "$tap"
+if git diff --quiet -- Casks/muxin.rb && git ls-files --error-unmatch Casks/muxin.rb >/dev/null 2>&1; then
+ echo "▸ already at $version"
+ exit 0
+fi
+git add Casks/muxin.rb
+git commit --quiet -m "muxin $version"
+if [ -n "$push" ]; then
+ git push --quiet origin HEAD
+ echo "▸ pushed: brew upgrade --cask muxin gets it"
+else
+ echo "Push it from $tap: git push origin HEAD"
+fi
diff --git a/scripts/muxen.iss b/scripts/muxin.iss
similarity index 63%
rename from scripts/muxen.iss
rename to scripts/muxin.iss
index 60433c8..fc0451b 100644
--- a/scripts/muxen.iss
+++ b/scripts/muxin.iss
@@ -1,7 +1,8 @@
-; Muxen's Windows installer (Inno Setup 6), made by scripts\package-windows.ps1
-; from dist\windows\Muxen. Installs for this user (no administrator needed)
-; in %LOCALAPPDATA%\Programs\Muxen, with a Start menu entry, and optionally a
-; desktop shortcut and `muxen` on the PATH.
+; Muxin's Windows installer (Inno Setup 6), made by scripts\package-windows.ps1
+; from dist\windows\Muxin. Installs for this user (no administrator needed)
+; in %LOCALAPPDATA%\Programs\Muxin, with a Start menu entry, and optionally a
+; desktop shortcut and `muxin` on the PATH. The AppId is the one from when it
+; was called Muxen, so it updates that install in its folder.
#ifndef AppVersion
#define AppVersion "0.1.0"
@@ -13,19 +14,19 @@
[Setup]
AppId={{6F0B8E52-3C8E-4C8C-9E5B-6C4D2A9B7E31}
-AppName=Muxen
+AppName=Muxin
AppVersion={#AppVersion}
-AppVerName=Muxen {#AppVersion}
+AppVerName=Muxin {#AppVersion}
AppPublisher=Lumary Labs
AppPublisherURL=https://muxin.dev
-DefaultDirName={localappdata}\Programs\Muxen
-DefaultGroupName=Muxen
+DefaultDirName={localappdata}\Programs\Muxin
+DefaultGroupName=Muxin
DisableProgramGroupPage=yes
PrivilegesRequired=lowest
OutputDir=..\dist
-OutputBaseFilename=Muxen-Setup-{#Arch}
-SetupIconFile=..\assets\brand\muxen.ico
-UninstallDisplayIcon={app}\muxen.exe
+OutputBaseFilename=Muxin-Setup-{#Arch}
+SetupIconFile=..\assets\brand\muxin.ico
+UninstallDisplayIcon={app}\muxin.exe
Compression=lzma2/max
SolidCompression=yes
#if Arch == "arm64"
@@ -41,22 +42,29 @@ CloseApplications=yes
[Tasks]
Name: "desktopicon"; Description: "Add a desktop shortcut"; GroupDescription: "Shortcuts:"; Flags: unchecked
-Name: "addtopath"; Description: "Add the muxen command to the PATH (for terminals and AI agents)"; GroupDescription: "Command line:"
+Name: "addtopath"; Description: "Add the muxin command to the PATH (for terminals and AI agents)"; GroupDescription: "Command line:"
[Files]
-Source: "..\dist\windows\Muxen\muxen.exe"; DestDir: "{app}"; Flags: ignoreversion
-Source: "..\dist\windows\Muxen\agents\*"; DestDir: "{app}\agents"; Flags: ignoreversion
-Source: "..\dist\windows\Muxen\README.md"; DestDir: "{app}"; Flags: ignoreversion
-Source: "..\dist\windows\Muxen\LICENSE"; DestDir: "{app}"; Flags: ignoreversion
-Source: "..\dist\windows\Muxen\NOTICE"; DestDir: "{app}"; Flags: ignoreversion
-Source: "..\dist\windows\Muxen\THIRD_PARTY_NOTICES.md"; DestDir: "{app}"; Flags: ignoreversion
+Source: "..\dist\windows\Muxin\muxin.exe"; DestDir: "{app}"; Flags: ignoreversion
+Source: "..\dist\windows\Muxin\muxen.cmd"; DestDir: "{app}"; Flags: ignoreversion
+Source: "..\dist\windows\Muxin\agents\*"; DestDir: "{app}\agents"; Flags: ignoreversion
+Source: "..\dist\windows\Muxin\README.md"; DestDir: "{app}"; Flags: ignoreversion
+Source: "..\dist\windows\Muxin\LICENSE"; DestDir: "{app}"; Flags: ignoreversion
+Source: "..\dist\windows\Muxin\NOTICE"; DestDir: "{app}"; Flags: ignoreversion
+Source: "..\dist\windows\Muxin\THIRD_PARTY_NOTICES.md"; DestDir: "{app}"; Flags: ignoreversion
+
+; From when it was called Muxen: its program and shortcuts.
+[InstallDelete]
+Type: files; Name: "{app}\muxen.exe"
+Type: files; Name: "{autoprograms}\Muxen.lnk"
+Type: files; Name: "{autodesktop}\Muxen.lnk"
[Icons]
-Name: "{autoprograms}\Muxen"; Filename: "{app}\muxen.exe"
-Name: "{autodesktop}\Muxen"; Filename: "{app}\muxen.exe"; Tasks: desktopicon
+Name: "{autoprograms}\Muxin"; Filename: "{app}\muxin.exe"
+Name: "{autodesktop}\Muxin"; Filename: "{app}\muxin.exe"; Tasks: desktopicon
[Run]
-Filename: "{app}\muxen.exe"; Description: "Open Muxen"; Flags: nowait postinstall skipifsilent
+Filename: "{app}\muxin.exe"; Description: "Open Muxin"; Flags: nowait postinstall skipifsilent
[Code]
const
diff --git a/scripts/notarize-macos.sh b/scripts/notarize-macos.sh
index 05bf01f..6c572fe 100755
--- a/scripts/notarize-macos.sh
+++ b/scripts/notarize-macos.sh
@@ -1,6 +1,6 @@
#!/bin/sh
-# Notarizes dist/Muxen.app (built by scripts/bundle-macos.sh --release), staples
-# it, and packs it into dist/Muxen-<version>-macos.dmg, itself signed, notarized
+# Notarizes dist/Muxin.app (built by scripts/bundle-macos.sh --release), staples
+# it, and packs it into dist/Muxin-<version>-macos.dmg, itself signed, notarized
# and stapled, so it opens without a warning even offline.
#
# --no-notarize only make the DMG, as it is (for a test build: macOS warns
@@ -21,9 +21,9 @@ case "${1:-}" in
"") ;;
*) echo "usage: $0 [--no-notarize]" >&2; exit 2 ;;
esac
-app=dist/Muxen.app
+app=dist/Muxin.app
version=$(sed -n 's/^version = "\(.*\)"/\1/p' Cargo.toml | head -n1)
-dmg=dist/Muxen-$version-macos.dmg
+dmg=dist/Muxin-$version-macos.dmg
[ -d "$app" ] || { echo "error: no $app: run scripts/bundle-macos.sh --release first" >&2; exit 1; }
if [ -n "${APPLE_API_KEY_PATH:-}" ]; then
@@ -66,17 +66,17 @@ trap 'rm -rf "$work"' EXIT
# The app first, so it's stapled (and opens offline) once it's out of the DMG.
if [ -n "$notarize" ]; then
codesign --verify --strict "$app"
- ditto -c -k --keepParent "$app" "$work/Muxen.zip"
- notarize "$work/Muxen.zip" "$@"
+ ditto -c -k --keepParent "$app" "$work/Muxin.zip"
+ notarize "$work/Muxin.zip" "$@"
staple "$app"
fi
# Then the DMG: the app and a link to Applications to drag it to.
mkdir "$work/dmg"
-ditto "$app" "$work/dmg/Muxen.app"
+ditto "$app" "$work/dmg/Muxin.app"
ln -s /Applications "$work/dmg/Applications"
rm -f "$dmg"
-hdiutil create -quiet -volname "Muxen $version" -srcfolder "$work/dmg" -fs HFS+ -format UDZO "$dmg"
+hdiutil create -quiet -volname "Muxin $version" -srcfolder "$work/dmg" -fs HFS+ -format UDZO "$dmg"
if [ -n "$notarize" ]; then
identity=${MUXEN_SIGN_IDENTITY:-$(security find-identity -v -p codesigning 2>/dev/null | sed -n 's/.*"\(Developer ID Application: [^"]*\)".*/\1/p' | head -n1)}
codesign --force --timestamp -s "$identity" "$dmg"
diff --git a/scripts/package-linux.sh b/scripts/package-linux.sh
index 0b9ec57..5afcc22 100755
--- a/scripts/package-linux.sh
+++ b/scripts/package-linux.sh
@@ -1,5 +1,5 @@
#!/bin/sh
-# Builds Muxen for Linux and packs it: dist/Muxen-<version>-linux-<arch>.tar.gz,
+# Builds Muxin for Linux and packs it: dist/Muxin-<version>-linux-<arch>.tar.gz,
# with the app, the agent builds it sets up on each machine (agents/, made by
# scripts/build-agents.sh), a desktop entry and an install.sh that puts it in
# ~/.local for the user.
@@ -23,15 +23,15 @@ cargo build --release --locked
ls dist/agents/muxen-agent-* >/dev/null 2>&1 || { echo "error: no agent builds in dist/agents" >&2; exit 1; }
root=dist/linux
-out=$root/Muxen
+out=$root/Muxin
rm -rf "$root"
mkdir -p "$out/agents"
-cp target/release/muxen "$out/"
+cp target/release/muxin "$out/"
cp dist/agents/muxen-agent-* "$out/agents/"
-cp assets/brand/icon-512.png "$out/muxen.png"
-cp assets/linux/muxen.desktop assets/linux/install.sh "$out/"
+cp assets/brand/icon-512.png "$out/muxin.png"
+cp assets/linux/muxin.desktop assets/linux/install.sh "$out/"
cp README.md LICENSE NOTICE THIRD_PARTY_NOTICES.md "$out/"
-tarball=dist/Muxen-$version-linux-$arch.tar.gz
-tar -czf "$tarball" -C "$root" Muxen
+tarball=dist/Muxin-$version-linux-$arch.tar.gz
+tar -czf "$tarball" -C "$root" Muxin
echo "Built $tarball ($(du -h "$tarball" | cut -f1))"
diff --git a/scripts/package-windows.ps1 b/scripts/package-windows.ps1
index 5f61a59..0ee080a 100644
--- a/scripts/package-windows.ps1
+++ b/scripts/package-windows.ps1
@@ -1,8 +1,9 @@
-# Builds Muxen for Windows and packs it: dist\Muxen-<version>-windows-<arch>-setup.exe
-# (an installer, with Inno Setup) and dist\Muxen-<version>-windows-<arch>.zip, both
-# with muxen.exe and, beside it in agents\, the agent builds it sets up on each
-# machine (made on a Mac or Linux by scripts/build-agents.sh). <arch> is what
-# Rust builds for here: x64, or arm64 on Windows on Arm.
+# Builds Muxin for Windows and packs it: dist\Muxin-<version>-windows-<arch>-setup.exe
+# (an installer, with Inno Setup) and dist\Muxin-<version>-windows-<arch>.zip, both
+# with muxin.exe (and muxen.cmd, its name from before) and, beside it in
+# agents\, the agent builds it sets up on each machine (made on a Mac or Linux
+# by scripts/build-agents.sh). <arch> is what Rust builds for here: x64, or
+# arm64 on Windows on Arm.
#
# Needs: Rust, Visual Studio's C++ build tools and the Windows SDK (for
# GPUI's shaders and the icon).
@@ -28,13 +29,15 @@ if (-not $SkipBuild) {
$agents = @(Get-ChildItem dist\agents -Filter 'muxen-agent-*' -ErrorAction SilentlyContinue)
if ($agents.Count -eq 0) { throw 'No agent builds in dist\agents: run scripts/build-agents.sh on a Mac or Linux first.' }
$root = 'dist\windows'
-$out = Join-Path $root 'Muxen'
+$out = Join-Path $root 'Muxin'
Remove-Item -Recurse -Force $root -ErrorAction SilentlyContinue
New-Item -ItemType Directory -Force (Join-Path $out 'agents') | Out-Null
-Copy-Item target\release\muxen.exe $out
+Copy-Item target\release\muxin.exe $out
+# `muxen` keeps working where something still runs it.
+Set-Content -Path (Join-Path $out 'muxen.cmd') -Value '@"%~dp0muxin.exe" %*' -Encoding ascii
$agents | Copy-Item -Destination (Join-Path $out 'agents')
Copy-Item README.md, LICENSE, NOTICE, THIRD_PARTY_NOTICES.md $out
-$zip = "dist\Muxen-$version-windows-$arch.zip"
+$zip = "dist\Muxin-$version-windows-$arch.zip"
Compress-Archive -Path $out -DestinationPath $zip -Force
"Built $zip ($([math]::Round((Get-Item $zip).Length / 1MB, 1)) MB)"
@@ -42,9 +45,9 @@ Compress-Archive -Path $out -DestinationPath $zip -Force
$iscc = @(Get-Command ISCC.exe -ErrorAction SilentlyContinue | Select-Object -ExpandProperty Source) +
@("$env:LOCALAPPDATA\Programs\Inno Setup 6\ISCC.exe", "${env:ProgramFiles(x86)}\Inno Setup 6\ISCC.exe") | Where-Object { $_ -and (Test-Path $_) } | Select-Object -First 1
if ($iscc) {
- & $iscc /Q "/DAppVersion=$version" "/DArch=$arch" "/FMuxen-$version-windows-$arch-setup" scripts\muxen.iss
+ & $iscc /Q "/DAppVersion=$version" "/DArch=$arch" "/FMuxin-$version-windows-$arch-setup" scripts\muxin.iss
if ($LASTEXITCODE) { exit $LASTEXITCODE }
- $setup = "dist\Muxen-$version-windows-$arch-setup.exe"
+ $setup = "dist\Muxin-$version-windows-$arch-setup.exe"
"Built $setup ($([math]::Round((Get-Item $setup).Length / 1MB, 1)) MB)"
} else {
'No Inno Setup here, so no installer (winget install JRSoftware.InnoSetup).'
diff --git a/scripts/release.sh b/scripts/release.sh
index 90bb2ac..5aeaac0 100755
--- a/scripts/release.sh
+++ b/scripts/release.sh
@@ -38,10 +38,10 @@ if [ "$current" != "$version" ]; then
mv Cargo.toml.new Cargo.toml
cargo update --workspace --quiet
git add Cargo.toml Cargo.lock
- git commit --quiet -m "Muxen $version"
+ git commit --quiet -m "Muxin $version"
echo "▸ version $current → $version"
fi
-git tag -a "v$version" -m "Muxen $version"
+git tag -a "v$version" -m "Muxin $version"
echo "▸ tagged v$version on $(git rev-parse --short HEAD)"
if [ -n "$push" ]; then
diff --git a/src/api.rs b/src/api.rs
index b18d68e..320fe21 100644
--- a/src/api.rs
+++ b/src/api.rs
@@ -1,5 +1,5 @@
-//! The agent-facing API: one layer behind both the MCP server (`muxen mcp`)
-//! and the scriptable CLI (`muxen status --json`, `muxen install`, ...).
+//! The agent-facing API: one layer behind both the MCP server (`muxin mcp`)
+//! and the scriptable CLI (`muxin status --json`, `muxin install`, ...).
//!
//! Responses are compact and explicit on purpose: stable ids, plain state
//! strings, a one-line `summary` where it helps, and operation logs capped to a
@@ -422,7 +422,7 @@ pub struct MachineSummary {
/// and whether traffic to it goes peer-to-peer or through a relay.
#[serde(skip_serializing_if = "Option::is_none")]
pub tailnet: Option<crate::fleet::model::TailnetDevice>,
- /// A cloud machine Muxen created: provider, droplet id, region, size,
+ /// A cloud machine Muxin created: provider, droplet id, region, size,
/// USD an hour, what it has cost so far and since when it's been idle.
#[serde(skip_serializing_if = "Option::is_none")]
pub cloud: Option<CloudOut>,
@@ -430,7 +430,7 @@ pub struct MachineSummary {
/// through (relation "through"), with the container it runs in.
#[serde(skip_serializing_if = "Option::is_none")]
pub parent: Option<crate::fleet::model::ParentMachine>,
- /// A VM Muxen made with vm_create (vm_destroy deletes it): host, os,
+ /// A VM Muxin made with vm_create (vm_destroy deletes it): host, os,
/// version (the system id), container, created_at.
#[serde(skip_serializing_if = "Option::is_none")]
pub vm: Option<crate::config::VmRef>,
@@ -557,7 +557,7 @@ pub struct OperationOut {
pub started_at: DateTime<Utc>,
pub finished_at: Option<DateTime<Utc>>,
pub error: Option<String>,
- /// The last lines of output. "▸ " lines are Muxen's steps, "✓ " successes,
+ /// The last lines of output. "▸ " lines are Muxin's steps, "✓ " successes,
/// "error: "/"warning: " problems; anything else is output from the machine.
pub log_tail: Vec<String>,
pub log_lines: usize,
@@ -620,7 +620,7 @@ pub struct SshHostsResponse {
/// Computers on the user's tailnet (when Tailscale is installed and on
/// here), online ones first.
pub tailnet: Vec<TailnetHost>,
- /// Computers on this local network that aren't in Muxen yet: ones
+ /// Computers on this local network that aren't in Muxin yet: ones
/// advertising ssh (`ssh: true`, add by `host`), and Macs with Remote
/// Login off (`ssh: false`: it needs turning on there first).
pub network: Vec<crate::fleet::discover::NetworkHost>,
@@ -639,7 +639,7 @@ pub struct TailnetHost {
pub os: String,
/// Whether Tailscale sees it online.
pub online: bool,
- /// Already in Muxen, as this machine.
+ /// Already in Muxin, as this machine.
#[serde(skip_serializing_if = "Option::is_none")]
pub machine_id: Option<String>,
}
@@ -925,11 +925,11 @@ pub fn status_from(s: &Snapshot, surface: Surface) -> StatusResponse {
Some(match g.detected.first() {
Some(d) => surface.say(
format!("Not watching GitHub yet. Runner configs mention \"{d}\": call github_scopes with add=[\"{d}\"]."),
- format!("Not watching GitHub yet. Runner configs mention \"{d}\": run `muxen watch {d}`."),
+ format!("Not watching GitHub yet. Runner configs mention \"{d}\": run `muxin watch {d}`."),
),
None => surface.say(
"Not watching GitHub yet: call github_scopes with add=[\"<org>\"] or [\"owner/repo\"].",
- "Not watching GitHub yet: run `muxen watch <org>` (or owner/repo).",
+ "Not watching GitHub yet: run `muxin watch <org>` (or owner/repo).",
),
})
} else {
@@ -1002,7 +1002,7 @@ pub fn status_from(s: &Snapshot, surface: Surface) -> StatusResponse {
hint: never_checked.then(|| {
surface.say(
"No machine has been checked yet; call check_machines (or status with refresh=true).",
- "No machine has been checked yet; run `muxen status --refresh` (or `muxen check`).",
+ "No machine has been checked yet; run `muxin status --refresh` (or `muxin check`).",
)
}),
demo: s.demo,
@@ -1061,7 +1061,7 @@ pub async fn jobs(engine: &Arc<Engine>, surface: Surface) -> ApiResult<JobsRespo
hint: (!s.github.configured && !s.demo).then(|| {
surface.say(
"Jobs come from GitHub: call github_scopes with add=[\"<org>\"] first.",
- "Jobs come from GitHub: run `muxen watch <org>` first.",
+ "Jobs come from GitHub: run `muxin watch <org>` first.",
)
}),
})
@@ -1074,7 +1074,7 @@ pub fn operations(engine: &Arc<Engine>) -> Vec<OperationOut> {
pub fn operation(engine: &Arc<Engine>, req: OperationRequest) -> ApiResult<OperationOut> {
let s = engine.current();
let o = s.operations.iter().find(|o| o.id == req.operation_id).ok_or_else(|| {
- ApiError::not_found(format!("No operation {} in this Muxen process.", req.operation_id))
+ ApiError::not_found(format!("No operation {} in this Muxin process.", req.operation_id))
.with_hint("Operation ids are per process; list_operations shows the ones this server started.")
})?;
Ok(operation_out(o, req.tail.unwrap_or(DEFAULT_TAIL)))
@@ -1197,18 +1197,18 @@ pub async fn add_machine(engine: &Arc<Engine>, req: AddMachineRequest, surface:
let next = match machine.as_ref().map(|m| m.summary.status.as_str()) {
Some("online") => surface.say(
format!("Machine is reachable. Install runners with install_runners(machine_id=\"{id}\", count=N)."),
- format!("Machine is reachable. Install runners with `muxen install {id} --count N`."),
+ format!("Machine is reachable. Install runners with `muxin install {id} --count N`."),
),
Some("offline") => surface.say(
"The machine didn't answer over ssh. Make sure key-based `ssh <host>` works without a password prompt, then call check_machines.",
- "The machine didn't answer over ssh. Make sure key-based `ssh <host>` works without a password prompt, then run `muxen check`.",
+ "The machine didn't answer over ssh. Make sure key-based `ssh <host>` works without a password prompt, then run `muxin check`.",
),
- _ => surface.say(format!("Call check_machines(machine_id=\"{id}\") to check it."), "Run `muxen check` to check it.".to_string()),
+ _ => surface.say(format!("Call check_machines(machine_id=\"{id}\") to check it."), "Run `muxin check` to check it.".to_string()),
};
Ok(AddMachineResponse { machine_id: id, machine, next })
}
-/// Disconnects from a machine (Muxen stops connecting to it, checking it and
+/// Disconnects from a machine (Muxin stops connecting to it, checking it and
/// looking at its sessions, which go on there) or connects again (and checks
/// it, waiting for that).
pub async fn connect_machine(engine: &Arc<Engine>, req: ConnectMachineRequest) -> ApiResult<MachineSummary> {
@@ -1253,7 +1253,7 @@ pub async fn install_runners(engine: &Arc<Engine>, req: InstallRunnersRequest, s
[] => {
return Err(ApiError::invalid("Say which GitHub org or repo to register the runners with (scope).").with_hint(surface.say(
"Watch it first with github_scopes(add=[\"<org>\"]), or pass scope=\"<org>\" / \"owner/repo\".",
- "Watch it first with `muxen watch <org>`, or pass --scope <org> / owner/repo.",
+ "Watch it first with `muxin watch <org>`, or pass --scope <org> / owner/repo.",
)));
}
many => return Err(ApiError::invalid(format!("Several orgs/repos are watched ({}); pass scope.", many.join(", ")))),
@@ -1366,7 +1366,7 @@ pub struct CloudMachineRequest {
pub wait: bool,
}
-/// Destroys a cloud machine: deletes the droplet and removes it from Muxen.
+/// Destroys a cloud machine: deletes the droplet and removes it from Muxin.
pub async fn cloud_destroy(engine: &Arc<Engine>, req: CloudMachineRequest, surface: Surface, on_line: impl FnMut(&str)) -> ApiResult<ActionResponse> {
let s = freshen(engine).await;
let m = find_machine(&s, &req.machine_id)?.clone();
@@ -1502,7 +1502,7 @@ pub async fn vm_create(engine: &Arc<Engine>, req: VmCreateRequest, surface: Surf
finish_action(engine, op, req.wait, req.timeout_secs.unwrap_or(600), DEFAULT_TAIL, Some(id), Vec::new(), surface, on_line).await
}
-/// Destroys a VM Muxen made: its container and disk, and the machine in Muxen.
+/// Destroys a VM Muxin made: its container and disk, and the machine in Muxin.
pub async fn vm_destroy(engine: &Arc<Engine>, req: CloudMachineRequest, surface: Surface, on_line: impl FnMut(&str)) -> ApiResult<ActionResponse> {
let s = freshen(engine).await;
let m = find_machine(&s, &req.machine_id)?.clone();
@@ -1561,7 +1561,7 @@ async fn finish_action(
next: (!finished).then(|| {
surface.say(
format!("Still running. Poll get_operation(operation_id={op}) until status isn't \"running\"."),
- "Still running in the background; this command stopped waiting. Check the result with `muxen status`.",
+ "Still running in the background; this command stopped waiting. Check the result with `muxin status`.",
)
}),
operation: operation_out(&operation, tail),
@@ -1681,7 +1681,7 @@ const HISTORY_IN_GET: usize = 20;
#[derive(Debug, Default, Deserialize)]
#[serde(default, deny_unknown_fields)]
pub struct WorkspaceCreateRequest {
- /// Machine id to use. Omit to let Muxen pick the least-loaded online machine that allows workspaces.
+ /// Machine id to use. Omit to let Muxin pick the least-loaded online machine that allows workspaces.
pub machine_id: Option<String>,
/// When picking a machine: platform prefix it must match, e.g. "linux", "linux-x64", "darwin-arm64", "windows".
pub platform: Option<String>,
@@ -2025,7 +2025,7 @@ fn ws_error(message: String, surface: Surface) -> ApiError {
} else if m.contains("doesn't allow") || m.contains("not allowed") || m.contains("disabled") {
err = err.with_hint(surface.say(
"Turn workspaces on for that machine (workspace_allow, the toggle in the app, or `workspaces = true` in config.toml), or pick another machine.",
- "Turn workspaces on for that machine (`muxen workspace allow <machine-id>`, the toggle in the app, or `workspaces = true` in config.toml), or pick another machine.",
+ "Turn workspaces on for that machine (`muxin workspace allow <machine-id>`, the toggle in the app, or `workspaces = true` in config.toml), or pick another machine.",
));
} else if m.contains("rsync") {
err = err.with_hint("Install rsync on both this computer and the machine.");
@@ -2035,7 +2035,7 @@ fn ws_error(message: String, surface: Surface) -> ApiError {
err
}
-/// The current workspaces, including ones other Muxen processes created.
+/// The current workspaces, including ones other Muxin processes created.
fn current_workspaces(engine: &Arc<Engine>) -> Vec<WorkspaceInfo> {
engine.refresh_from_disk();
engine.workspaces()
@@ -2053,12 +2053,12 @@ fn find_workspace(engine: &Arc<Engine>, id: &str, surface: Surface) -> ApiResult
return Ok((*one).clone());
}
Err(ApiError::not_found(format!("No workspace \"{id}\".")).with_hint(if all.is_empty() {
- surface.say("There are no workspaces; create one with workspace_create.", "There are no workspaces; create one with `muxen workspace create`.")
+ surface.say("There are no workspaces; create one with workspace_create.", "There are no workspaces; create one with `muxin workspace create`.")
} else {
let known = all.iter().map(|w| w.id.as_str()).collect::<Vec<_>>().join(", ");
surface.say(
&format!("Known workspaces: {known}. Or create one with workspace_create."),
- &format!("Known workspaces: {known}. Or create one with `muxen workspace create`."),
+ &format!("Known workspaces: {known}. Or create one with `muxin workspace create`."),
)
}))
}
@@ -2125,7 +2125,7 @@ pub async fn workspace_create(engine: &Arc<Engine>, req: WorkspaceCreateRequest,
return Err(ApiError::invalid(format!("{} doesn't allow workspaces.", m.name))
.with_hint(surface.say(
format!("Turn them on with workspace_allow(machine_id=\"{}\", allowed=true) if the user agrees, or pick another machine.", m.id),
- format!("Turn them on with `muxen workspace allow {}`, or pick another machine.", m.id),
+ format!("Turn them on with `muxin workspace allow {}`, or pick another machine.", m.id),
)));
}
Some(m.id.clone())
@@ -2157,7 +2157,7 @@ pub async fn workspace_create(engine: &Arc<Engine>, req: WorkspaceCreateRequest,
let id = &created.id;
let next = surface.say(
format!("Run commands with workspace_exec(workspace_id=\"{id}\", command=...). Review edits with workspace_changes. Call workspace_destroy(workspace_id=\"{id}\") when the task is done."),
- format!("Run commands with `muxen workspace exec {id} -- <command>`; review edits with `muxen workspace changes {id}`; destroy it with `muxen workspace rm {id}` when done."),
+ format!("Run commands with `muxin workspace exec {id} -- <command>`; review edits with `muxin workspace changes {id}`; destroy it with `muxin workspace rm {id}` when done."),
);
Ok(WorkspaceCreated { workspace: workspace_out(&created, 0), next })
}
@@ -2198,7 +2198,7 @@ pub async fn workspace_exec(engine: &Arc<Engine>, req: WorkspaceExecRequest, by:
let next = if let Some(log) = &result.log_path {
Some(surface.say(
format!("Running in the background (pid {pid}). Read its output with workspace_read_file(path=\"{log}\") or workspace_exec(command=\"tail -n 50 {log}\")."),
- format!("Running in the background (pid {pid}). Read its output with `muxen workspace cat {} {log}`.", w.id),
+ format!("Running in the background (pid {pid}). Read its output with `muxin workspace cat {} {log}`.", w.id),
))
} else if result.timed_out {
Some(surface.say(
@@ -2424,7 +2424,7 @@ mod tests {
let s = engine.current();
assert!(status_from(&s, Surface::Mcp).hint.unwrap().contains("check_machines"));
let cli = status_from(&s, Surface::Cli).hint.unwrap();
- assert!(cli.contains("muxen status --refresh") && !cli.contains("check_machines"), "{cli}");
+ assert!(cli.contains("muxin status --refresh") && !cli.contains("check_machines"), "{cli}");
}
#[test]
@@ -2442,7 +2442,7 @@ mod tests {
assert_eq!(ws_error("No workspace \"ws-x\".".into(), Surface::Mcp).code, "not_found");
assert_eq!(ws_error("ssh: connect to host x port 22: Operation timed out".into(), Surface::Mcp).code, "unreachable");
assert_eq!(ws_error("Workspaces aren't implemented yet.".into(), Surface::Mcp).code, "internal");
- assert!(ws_error("Mac Studio doesn't allow workspaces.".into(), Surface::Cli).hint.unwrap().contains("muxen workspace allow"));
+ assert!(ws_error("Mac Studio doesn't allow workspaces.".into(), Surface::Cli).hint.unwrap().contains("muxin workspace allow"));
let e = ws_error("Mac Studio doesn't allow workspaces.".into(), Surface::Mcp);
assert_eq!(e.code, "invalid");
assert!(e.hint.unwrap().contains("workspace_allow"));
@@ -2468,7 +2468,7 @@ mod tests {
assert_eq!(workspace_exec(&engine, bad_env, "test", Surface::Mcp).await.unwrap_err().code, "invalid");
// Valid input, unknown workspace.
let missing = workspace_exec(&engine, exec("ls", None, Some("src")), "test", Surface::Cli).await.unwrap_err();
- assert!(missing.hint.as_deref().unwrap_or_default().contains("muxen workspace create"), "{missing:?}");
+ assert!(missing.hint.as_deref().unwrap_or_default().contains("muxin workspace create"), "{missing:?}");
assert_eq!(missing.code, "not_found");
let read = WorkspaceReadRequest { workspace_id: "ws-nope".into(), path: "/etc/hosts".into(), max_bytes: None };
@@ -2628,7 +2628,7 @@ fn default_true() -> bool {
pub struct SessionHostOut {
pub machine_id: String,
pub machine: String,
- /// The Muxen agent's version there, once it's set up.
+ /// The Muxin agent's version there, once it's set up.
pub agent: Option<String>,
/// Agent CLIs found on the machine.
pub agents: Vec<String>,
@@ -2719,14 +2719,14 @@ async fn resolve_session(engine: &Arc<Engine>, id: &str) -> ApiResult<SessionInf
let m = find_machine(&engine.current(), machine)?.clone();
let found = engine.refresh_sessions(&m.id).await.map_err(session_error)?;
return found.sessions.into_iter().find(|s| s.name == name).ok_or_else(|| {
- ApiError::not_found(format!("No session \"{name}\" on {}.", m.name)).with_hint("List sessions with session_list (`muxen session ls`).")
+ ApiError::not_found(format!("No session \"{name}\" on {}.", m.name)).with_hint("List sessions with session_list (`muxin session ls`).")
});
}
let all = sessions_list(engine, SessionListRequest::default()).await?;
let matches: Vec<SessionInfo> = all.sessions.into_iter().filter(|s| s.name == id).collect();
match matches.len() {
1 => Ok(matches.into_iter().next().unwrap()),
- 0 => Err(ApiError::not_found(format!("No session \"{id}\".")).with_hint("Session ids look like <machine-id>/<name>; list them with session_list (`muxen session ls`).")),
+ 0 => Err(ApiError::not_found(format!("No session \"{id}\".")).with_hint("Session ids look like <machine-id>/<name>; list them with session_list (`muxin session ls`).")),
_ => Err(ApiError::invalid(format!("\"{id}\" is on more than one machine; use <machine-id>/{id}."))),
}
}
@@ -2756,7 +2756,7 @@ pub async fn session_start(engine: &Arc<Engine>, req: SessionStartRequest) -> Ap
}
/// Asks a session's agent to commit, open a pull request, review, ...: types
-/// that action's prompt (the user's, else Muxen's) into it.
+/// that action's prompt (the user's, else Muxin's) into it.
pub async fn session_action(engine: &Arc<Engine>, req: SessionActionRequest) -> ApiResult<SessionActionOut> {
let s = resolve_session(engine, &req.session_id).await?;
let action = req.action.trim().to_string();
@@ -2770,7 +2770,7 @@ pub async fn session_send(engine: &Arc<Engine>, req: SessionSendRequest) -> ApiR
}
let s = resolve_session(engine, &req.session_id).await?;
if s.status != "running" {
- return Err(ApiError::invalid(format!("{} has exited.", s.id)).with_hint("Restart it with session_restart (`muxen session restart`)."));
+ return Err(ApiError::invalid(format!("{} has exited.", s.id)).with_hint("Restart it with session_restart (`muxin session restart`)."));
}
engine.control_session(&s.id, Control::Send { text: &req.text, enter: req.enter }).await.map_err(session_error)?;
Ok(SessionDoneOut { session_id: s.id, done: "sent".into() })
@@ -2846,7 +2846,7 @@ fn github_error(message: String) -> ApiError {
let lower = message.to_ascii_lowercase();
let mut err = ApiError::new("github", message);
if lower.contains("no github token") || lower.contains("rejected the token") || lower.contains("bad credentials") {
- err = err.with_hint("Sign in to GitHub: `gh auth login` (Muxen uses the GitHub CLI's login), or set GITHUB_TOKEN.");
+ err = err.with_hint("Sign in to GitHub: `gh auth login` (Muxin uses the GitHub CLI's login), or set GITHUB_TOKEN.");
}
err
}
@@ -2908,13 +2908,13 @@ pub struct FavoriteRequest {
#[derive(Debug, Serialize)]
pub struct AccountsOut {
- /// The account Muxen uses now: for the GitHub page, managing runners,
+ /// The account Muxin uses now: for the GitHub page, managing runners,
/// and cloning into workspaces.
pub using: Option<String>,
/// "gh", or the environment variable the token came from (then switching
/// between the GitHub CLI's accounts isn't possible); "" when none was found.
pub token_source: String,
- /// When Muxen uses another machine's GitHub CLI login: that machine's id.
+ /// When Muxin uses another machine's GitHub CLI login: that machine's id.
pub machine_id: Option<String>,
/// The accounts the GitHub CLI here is signed in to.
pub accounts: Vec<crate::github::Account>,
@@ -2976,7 +2976,7 @@ pub async fn github_repos(engine: &Arc<Engine>) -> ApiResult<Vec<hub::Repo>> {
Ok(repos)
}
-/// The GitHub CLI's accounts, and which one Muxen uses (read fresh, so a
+/// The GitHub CLI's accounts, and which one Muxin uses (read fresh, so a
/// permission granted a moment ago shows).
pub async fn github_accounts(engine: &Arc<Engine>) -> ApiResult<AccountsOut> {
if engine.is_demo() {
@@ -3035,13 +3035,13 @@ pub async fn github_accounts(engine: &Arc<Engine>) -> ApiResult<AccountsOut> {
Ok(AccountsOut { using: viewer.ok().map(|v| v.login), token_source, machine_id, accounts, machines, scopes, orgs: orgs.unwrap_or_default(), grant_command })
}
-/// Switches Muxen to another of the GitHub CLI's accounts (not the CLI's own active account).
+/// Switches Muxin to another of the GitHub CLI's accounts (not the CLI's own active account).
pub async fn github_use_account(engine: &Arc<Engine>, req: UseAccountRequest) -> ApiResult<AccountsOut> {
let login = req.login.trim().trim_start_matches('@').to_string();
let mut settings = engine.settings();
let source = engine.github().token_source().await;
if !source.is_empty() && source != "gh" {
- return Err(ApiError::invalid(format!("Muxen is using the token in ${source}. Unset it to switch between the GitHub CLI's accounts.")));
+ return Err(ApiError::invalid(format!("Muxin is using the token in ${source}. Unset it to switch between the GitHub CLI's accounts.")));
}
let previous = settings.clone();
if let Some(id) = req.machine_id.as_deref().filter(|m| !m.is_empty()) {
@@ -3084,11 +3084,11 @@ pub async fn github_use_account(engine: &Arc<Engine>, req: UseAccountRequest) ->
Some(u) if u.eq_ignore_ascii_case(&wanted) => Ok(out),
Some(u) => {
let _ = engine.update_settings(previous);
- Err(ApiError::invalid(format!("That login turned out to be {u}, not {wanted}, so Muxen kept the previous one. Check which account gh is signed in to there.")))
+ Err(ApiError::invalid(format!("That login turned out to be {u}, not {wanted}, so Muxin kept the previous one. Check which account gh is signed in to there.")))
}
None => {
let _ = engine.update_settings(previous);
- Err(ApiError::new("github", "GitHub didn't accept that login, so Muxen kept the previous one.").with_hint("gh auth login"))
+ Err(ApiError::new("github", "GitHub didn't accept that login, so Muxin kept the previous one.").with_hint("gh auth login"))
}
}
}
@@ -3253,7 +3253,7 @@ pub struct DirectRequest {
pub enabled: bool,
}
-/// How Muxen reaches a machine: directly (QUIC), a live ssh link, or none.
+/// How Muxin reaches a machine: directly (QUIC), a live ssh link, or none.
pub async fn machine_connection(engine: &Arc<Engine>, machine_id: &str) -> ApiResult<crate::fleet::connection::Connection> {
let m = find_machine(&engine.current(), machine_id)?.clone();
engine.connection(&m.id).await.map_err(|e| ApiError::new("unreachable", e))
@@ -3311,7 +3311,7 @@ pub struct AddDisplayRequest {
fn display_error(e: crate::fleet::desktop::AddDisplayError) -> ApiError {
match e {
crate::fleet::desktop::AddDisplayError::NeedsPassword(why) => ApiError::invalid(why)
- .with_hint("Ask the user to add or remove this monitor from the Muxen app (the machine's desktop › Add monitor); it asks for their password there."),
+ .with_hint("Ask the user to add or remove this monitor from the Muxin app (the machine's desktop › Add monitor); it asks for their password there."),
crate::fleet::desktop::AddDisplayError::Failed(why) => ApiError::new("operation_failed", why),
}
}
@@ -3356,7 +3356,7 @@ pub struct RemoveDisplayRequest {
pub display: String,
}
-/// Removes a virtual monitor Muxen added.
+/// Removes a virtual monitor Muxin added.
pub async fn desktop_remove_display(engine: &Arc<Engine>, req: RemoveDisplayRequest) -> ApiResult<serde_json::Value> {
let m = find_machine(&engine.current(), &req.machine_id)?.clone();
engine.remove_display(&m.id, &req.display).await.map_err(display_error)?;
@@ -3444,7 +3444,7 @@ pub async fn service_action(engine: &Arc<Engine>, req: ServiceActionRequest) ->
.ok_or_else(|| ApiError::new("not_found", format!("{} has no service or container called {}.", m.name, req.name)))?;
engine.service_action(&m.id, &service, action).await.map_err(|e| match e {
crate::fleet::desktop::AddDisplayError::NeedsPassword(_) => {
- ApiError::new("invalid", format!("{} wants the user's password for that (sudo).", m.name)).with_hint("Do it from the Muxen app (machine › Services), which asks for it.")
+ ApiError::new("invalid", format!("{} wants the user's password for that (sudo).", m.name)).with_hint("Do it from the Muxin app (machine › Services), which asks for it.")
}
crate::fleet::desktop::AddDisplayError::Failed(why) => ApiError::new("operation_failed", why),
})?;
@@ -3639,7 +3639,7 @@ pub async fn process_signal(engine: &Arc<Engine>, req: ProcessSignalRequest) ->
};
let process = crate::fleet::services::Service { kind: "process".into(), target: req.pid.to_string(), name: req.pid.to_string(), ..Default::default() };
engine.service_action(&m.id, &process, action).await.map_err(|e| match e {
- crate::fleet::desktop::AddDisplayError::NeedsPassword(_) => ApiError::new("invalid", format!("{} wants the user's password for that: it's another user's process (sudo).", m.name)).with_hint("Do it from the Muxen app (machine › Services › Processes), which asks for it."),
+ crate::fleet::desktop::AddDisplayError::NeedsPassword(_) => ApiError::new("invalid", format!("{} wants the user's password for that: it's another user's process (sudo).", m.name)).with_hint("Do it from the Muxin app (machine › Services › Processes), which asks for it."),
crate::fleet::desktop::AddDisplayError::Failed(e) => ApiError::new("operation_failed", e),
})?;
Ok(serde_json::json!({ "machine_id": m.id, "pid": req.pid, "done": if action == "kill" { "killed" } else { "stopped" } }))
@@ -3707,7 +3707,7 @@ pub struct WakeRequest {
pub async fn wake_machine(engine: &Arc<Engine>, req: WakeRequest) -> ApiResult<serde_json::Value> {
let m = find_machine(&engine.current(), &req.machine_id)?.clone();
let from = engine.wake(&m.id).await.map_err(|e| ApiError::new("operation_failed", e))?;
- Ok(serde_json::json!({ "machine_id": m.id, "sent_from": from, "next": "Muxen checks it again in 20 and 40 seconds; call get_machine then." }))
+ Ok(serde_json::json!({ "machine_id": m.id, "sent_from": from, "next": "Muxin checks it again in 20 and 40 seconds; call get_machine then." }))
}
#[derive(Debug, Deserialize)]
diff --git a/src/cli.rs b/src/cli.rs
index 9b83a63..b77c2fd 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -50,7 +50,7 @@ pub fn status(s: &StatusResponse) -> String {
pub fn machines(list: &[MachineSummary]) -> String {
if list.is_empty() {
- return "No machines. Add one with `muxen add-machine --name <name> --host <ssh-host>`.\n".into();
+ return "No machines. Add one with `muxin add-machine --name <name> --host <ssh-host>`.\n".into();
}
let rows: Vec<Vec<String>> = list
.iter()
@@ -267,7 +267,7 @@ pub fn schedules(list: &Vec<crate::fleet::schedules::MachineSchedules>) -> Strin
}
}
if out.is_empty() {
- out.push_str("No schedules. Add one with `muxen schedule add <machine> --name ... --every day --at 09:00 --command ...`.\n");
+ out.push_str("No schedules. Add one with `muxin schedule add <machine> --name ... --every day --at 09:00 --command ...`.\n");
}
out
}
@@ -325,7 +325,7 @@ pub fn cloud_options(o: &crate::cloud::CloudOptions) -> String {
match (&o.account, o.signed_in) {
(Some(a), _) => out.push_str(&format!("DigitalOcean: {} ({method})\n", a.email)),
(None, true) => out.push_str(&format!("DigitalOcean: signed in ({method})\n")),
- (None, false) => out.push_str("DigitalOcean: not signed in. Run `muxen cloud login --token TOKEN` (or --doctl, --browser).\n"),
+ (None, false) => out.push_str("DigitalOcean: not signed in. Run `muxin cloud login --token TOKEN` (or --doctl, --browser).\n"),
}
if let Some(e) = &o.error {
out.push_str(&format!(" {e}\n"));
@@ -417,7 +417,7 @@ pub fn settings(s: &SettingsOut) -> String {
pub fn workspaces(r: &WorkspacesResponse) -> String {
let mut out = format!("{}\n", r.summary);
if r.workspaces.is_empty() {
- out.push_str("Create one with `muxen workspace create [--machine <id>] [--repo owner/repo]`.\n");
+ out.push_str("Create one with `muxin workspace create [--machine <id>] [--repo owner/repo]`.\n");
return out;
}
out.push('\n');
@@ -448,7 +448,7 @@ pub fn workspaces(r: &WorkspacesResponse) -> String {
pub fn workspace_created(r: &WorkspaceCreated) -> String {
let w = &r.workspace;
format!(
- "✓ {} ({}) on {} · {}\n shell: {}\nRun commands with `muxen workspace exec {} -- <command>`; destroy it with `muxen workspace rm {}`.\n",
+ "✓ {} ({}) on {} · {}\n shell: {}\nRun commands with `muxin workspace exec {} -- <command>`; destroy it with `muxin workspace rm {}`.\n",
w.id, w.name, w.machine_name, w.path, w.shell, w.id, w.id
)
}
@@ -556,7 +556,7 @@ fn table(headers: &[&str], rows: &[Vec<String>]) -> String {
pub fn sessions(r: &crate::api::SessionsOut) -> String {
let mut out = String::new();
if r.sessions.is_empty() {
- out.push_str("No agent sessions. Start one with `muxen session start <machine> claude [--cwd ~/code/app]`.\n");
+ out.push_str("No agent sessions. Start one with `muxin session start <machine> claude [--cwd ~/code/app]`.\n");
} else {
let rows: Vec<Vec<String>> = r
.sessions
@@ -587,7 +587,7 @@ pub fn sessions(r: &crate::api::SessionsOut) -> String {
pub fn session_started(s: &crate::fleet::sessions::SessionInfo) -> String {
format!(
- "Started {} ({}) in {}.\nWatch it in the Muxen app, or attach here: {}\n",
+ "Started {} ({}) in {}.\nWatch it in the Muxin app, or attach here: {}\n",
s.id, s.agent_name, s.cwd, s.attach_command
)
}
@@ -631,10 +631,10 @@ pub fn github_repos(r: &[crate::github::hub::Repo]) -> String {
pub fn github_accounts(a: &crate::api::AccountsOut) -> String {
let mut out = match (&a.using, a.token_source.as_str()) {
(Some(l), "gh") => match a.machines.iter().find(|m| Some(&m.machine_id) == a.machine_id.as_ref()) {
- Some(m) => format!("Muxen uses {l} (the GitHub CLI login on {}).\n", m.machine),
- None => format!("Muxen uses {l}.\n"),
+ Some(m) => format!("Muxin uses {l} (the GitHub CLI login on {}).\n", m.machine),
+ None => format!("Muxin uses {l}.\n"),
},
- (Some(l), var) => format!("Muxen uses {l} (the token in ${var}).\n"),
+ (Some(l), var) => format!("Muxin uses {l} (the token in ${var}).\n"),
(None, _) => "Not signed in to GitHub. Run `gh auth login`.\n".into(),
};
if !a.accounts.is_empty() {
@@ -666,7 +666,7 @@ pub fn github_accounts(a: &crate::api::AccountsOut) -> String {
out.push_str(&table(&["ACCOUNT", "MACHINE", "ID"], &rows));
}
if !a.accounts.is_empty() || !a.machines.is_empty() {
- out.push_str("\nSwitch with `muxen github use <login>` or `--machine <id>`; add an account with `gh auth login`.\n");
+ out.push_str("\nSwitch with `muxin github use <login>` or `--machine <id>`; add an account with `gh auth login`.\n");
}
out
}
@@ -730,7 +730,7 @@ pub fn connection(c: &crate::fleet::connection::Connection) -> String {
out.push_str(&format!(" note {n}\n"));
}
if !c.direct {
- out.push_str(&format!("\nConnect directly with `muxen connection {} --direct on`.\n", c.machine_id));
+ out.push_str(&format!("\nConnect directly with `muxin connection {} --direct on`.\n", c.machine_id));
}
out
}
@@ -755,12 +755,12 @@ pub fn git_setup(g: &crate::api::GitSetupOut) -> String {
(Some(n), Some(e)) => format!(" (sets {n} <{e}>)"),
_ => String::new(),
};
- fixes.push(format!("muxen git setup {} --identity{who}", g.machine_id));
+ fixes.push(format!("muxin git setup {} --identity{who}", g.machine_id));
}
if g.push != "gh" {
fixes.push(match &g.gh_account {
- Some(_) => format!("muxen git setup {} --credentials", g.machine_id),
- None => format!("sign in to gh on {} (gh auth login), then: muxen git setup {} --credentials", g.machine_id, g.machine_id),
+ Some(_) => format!("muxin git setup {} --credentials", g.machine_id),
+ None => format!("sign in to gh on {} (gh auth login), then: muxin git setup {} --credentials", g.machine_id, g.machine_id),
});
}
if !fixes.is_empty() {
diff --git a/src/cloud/auth.rs b/src/cloud/auth.rs
index 718c98f..b926fcf 100644
--- a/src/cloud/auth.rs
+++ b/src/cloud/auth.rs
@@ -1,9 +1,9 @@
-//! How Muxen signs in to DigitalOcean, as the user chose in Settings › Cloud:
+//! How Muxin signs in to DigitalOcean, as the user chose in Settings › Cloud:
//!
//! - "token": a personal access token the user pasted, kept in the Keychain.
//! - "doctl": the token DigitalOcean's CLI saved when the user ran `doctl auth init`.
//! - "oauth": the browser sign-in (OAuth), with its tokens kept in the Keychain.
-//! Muxen is a public OAuth client: no secret ships in the app. Each sign-in
+//! Muxin is a public OAuth client: no secret ships in the app. Each sign-in
//! proves itself with PKCE, and DigitalOcean sends the browser back to a
//! local port. Access tokens last an hour and refresh by themselves; each
//! refresh token works once.
@@ -18,7 +18,7 @@ use super::secrets;
pub const TOKEN: &str = "digitalocean-token";
const OAUTH: &str = "digitalocean-oauth";
-/// Muxen's OAuth client at DigitalOcean: registered by Lumary Labs on
+/// Muxin's OAuth client at DigitalOcean: registered by Lumary Labs on
/// 2026-10-09 as a public client ("Muxen", https://muxin.dev, loopback
/// callbacks at /digitalocean), so it's no secret. `MUXEN_DO_CLIENT_ID` at build
/// time overrides it.
@@ -27,7 +27,7 @@ const CLIENT_ID: &str = "df4228c4a87c9e8d950e0a519d5f41796c0131356c188e5dcabe2e1
/// The callback path; DigitalOcean matches loopback callbacks on any port.
const CALLBACK_PATH: &str = "/digitalocean";
-/// What Muxen asks to do in the account, and nothing more.
+/// What Muxin asks to do in the account, and nothing more.
const SCOPES: &str = "account:read regions:read sizes:read ssh_key:read ssh_key:create droplet:create droplet:read droplet:update droplet:delete actions:read billing:read";
fn client_id() -> Option<&'static str> {
@@ -45,12 +45,12 @@ struct OAuthTokens {
refresh_token: String,
/// Unix seconds.
expires_at: i64,
- /// What DigitalOcean granted, space-separated ("" from before Muxen kept it).
+ /// What DigitalOcean granted, space-separated ("" from before Muxin kept it).
#[serde(default)]
scope: String,
}
-/// The permissions the browser sign-in was granted, when Muxen knows them.
+/// The permissions the browser sign-in was granted, when Muxin knows them.
pub fn granted_scopes(dir: &std::path::Path) -> Option<String> {
let tokens: OAuthTokens = serde_json::from_str(&secrets::get(dir, OAUTH)?).ok()?;
Some(tokens.scope).filter(|s| !s.is_empty())
@@ -165,7 +165,7 @@ async fn oauth_token(dir: &Path) -> Result<String, String> {
if fresh_enough(&tokens) {
return Ok(tokens.access_token);
}
- let id = client_id().ok_or("This build of Muxen can't sign in with DigitalOcean.")?;
+ let id = client_id().ok_or("This build of Muxin can't sign in with DigitalOcean.")?;
let fresh = exchange(&[("grant_type", "refresh_token"), ("refresh_token", &tokens.refresh_token), ("client_id", id)])
.await
.map_err(|_| "The DigitalOcean sign-in expired. Sign in again in Settings › Cloud.".to_string())?;
@@ -211,7 +211,7 @@ async fn exchange(params: &[(&str, &str)]) -> Result<OAuthTokens, String> {
/// to five minutes for it to send the browser back here, and keeps the tokens.
pub async fn oauth_sign_in(dir: &Path, open: impl FnOnce(&str)) -> Result<(), String> {
use tokio::io::{AsyncReadExt, AsyncWriteExt};
- let id = client_id().ok_or("This build of Muxen can't sign in with DigitalOcean yet. Use an API token or doctl.")?;
+ let id = client_id().ok_or("This build of Muxin can't sign in with DigitalOcean yet. Use an API token or doctl.")?;
// Any free port: DigitalOcean matches loopback callbacks on any port.
let listener = tokio::net::TcpListener::bind(("127.0.0.1", 0)).await.map_err(|e| format!("Couldn't wait for DigitalOcean's answer: {e}"))?;
let port = listener.local_addr().map_err(|e| e.to_string())?.port();
@@ -246,10 +246,10 @@ pub async fn oauth_sign_in(dir: &Path, open: impl FnOnce(&str)) -> Result<(), St
continue;
}
let (ok, body) = match (query("code"), query("state")) {
- (Some(code), Some(s)) if s == state => (Ok(code), "Signed in. You can close this tab and go back to Muxen."),
- _ => (Err(query("error_description").unwrap_or_else(|| "The sign-in was cancelled.".into())), "The sign-in didn't finish. Go back to Muxen and try again."),
+ (Some(code), Some(s)) if s == state => (Ok(code), "Signed in. You can close this tab and go back to Muxin."),
+ _ => (Err(query("error_description").unwrap_or_else(|| "The sign-in was cancelled.".into())), "The sign-in didn't finish. Go back to Muxin and try again."),
};
- let page = format!("<!doctype html><meta charset=utf-8><title>Muxen</title><body style=\"font:15px -apple-system,system-ui;padding:40px\">{body}</body>");
+ let page = format!("<!doctype html><meta charset=utf-8><title>Muxin</title><body style=\"font:15px -apple-system,system-ui;padding:40px\">{body}</body>");
let _ = sock.write_all(format!("HTTP/1.1 200 OK\r\ncontent-type: text/html; charset=utf-8\r\ncontent-length: {}\r\nconnection: close\r\n\r\n{page}", page.len()).as_bytes()).await;
return ok;
}
diff --git a/src/cloud/digitalocean.rs b/src/cloud/digitalocean.rs
index ed88f04..7765c68 100644
--- a/src/cloud/digitalocean.rs
+++ b/src/cloud/digitalocean.rs
@@ -1,4 +1,4 @@
-//! DigitalOcean's API (v2), for the few things Muxen does there: who's signed
+//! DigitalOcean's API (v2), for the few things Muxin does there: who's signed
//! in, which regions and sizes exist, the account's SSH keys, and creating,
//! reading, powering and destroying droplets.
diff --git a/src/cloud/mod.rs b/src/cloud/mod.rs
index 0288bf2..ae546c7 100644
--- a/src/cloud/mod.rs
+++ b/src/cloud/mod.rs
@@ -1,4 +1,4 @@
-//! Cloud machines: droplets Muxen creates in the user's DigitalOcean account,
+//! Cloud machines: droplets Muxin creates in the user's DigitalOcean account,
//! sets up, and adds to your machines (see ops::cloud for the operations).
pub mod auth;
@@ -21,7 +21,7 @@ pub struct CloudOptions {
/// "token" | "oauth" | "doctl"
pub method: String,
pub signed_in: bool,
- /// The browser sign-in is built into this copy of Muxen.
+ /// The browser sign-in is built into this copy of Muxin.
pub oauth_available: bool,
pub account: Option<Account>,
pub regions: Vec<Region>,
diff --git a/src/cloud/secrets.rs b/src/cloud/secrets.rs
index 51e2381..43470f5 100644
--- a/src/cloud/secrets.rs
+++ b/src/cloud/secrets.rs
@@ -1,10 +1,12 @@
-//! Secrets Muxen keeps for the user (cloud tokens): in the macOS Keychain, in
+//! Secrets Muxin keeps for the user (cloud tokens): in the macOS Keychain, in
//! Windows' Credential Manager, or elsewhere in a file only the user can
//! read, next to config.toml.
use std::path::{Path, PathBuf};
#[cfg(any(target_os = "macos", windows))]
+// The app was called Muxen when these were first saved; the name stays so
+// sign-ins made then keep working.
const SERVICE: &str = "Muxen";
/// Stores a secret under a name ("digitalocean-token").
diff --git a/src/cloud/setup.rs b/src/cloud/setup.rs
index 87548c2..cba3a23 100644
--- a/src/cloud/setup.rs
+++ b/src/cloud/setup.rs
@@ -82,7 +82,7 @@ pub fn script(user: &str, extras: &[String]) -> String {
let extras = resolve(extras);
let mut s = String::from(
r#"#!/bin/bash
-# Set up by Muxen. Progress: /var/log/muxen-setup.log
+# Set up by Muxin. Progress: /var/log/muxen-setup.log
exec >>/var/log/muxen-setup.log 2>&1
export DEBIAN_FRONTEND=noninteractive
step() { echo "muxen-step: $*"; }
diff --git a/src/cloud/usage.rs b/src/cloud/usage.rs
index 44fe8ee..aca9494 100644
--- a/src/cloud/usage.rs
+++ b/src/cloud/usage.rs
@@ -20,12 +20,12 @@ pub struct CloudUsage {
/// This month if the ones that exist are kept until it ends.
pub month_if_kept: f64,
pub machines: Vec<UsageLine>,
- /// The whole DigitalOcean account's bill this month, when Muxen may read it.
+ /// The whole DigitalOcean account's bill this month, when Muxin may read it.
pub account: Option<Balance>,
/// Why `account` is missing.
#[serde(skip_serializing_if = "Option::is_none")]
pub account_error: Option<String>,
- /// Signing in again (in the browser) would let Muxen read the bill.
+ /// Signing in again (in the browser) would let Muxin read the bill.
pub account_needs_sign_in: bool,
pub billing: &'static str,
}
diff --git a/src/config.rs b/src/config.rs
index 6093826..8e871d0 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -26,7 +26,7 @@ pub struct Paths {
/// Where settings are kept: config.toml.
pub settings: PathBuf,
pub state: PathBuf,
- /// Agent workspaces, shared by every Muxen process (see fleet::workspaces).
+ /// Agent workspaces, shared by every Muxin process (see fleet::workspaces).
pub workspaces: PathBuf,
/// Cloud machines destroyed lately (see DestroyedCloud). Its own file, so
/// the processes that write state.json don't save over each other's.
@@ -65,7 +65,7 @@ fn config_base() -> Option<PathBuf> {
}
}
-/// Muxen used to keep `fleet.toml`, `settings.json` and `ui.json` in
+/// Muxin used to keep `fleet.toml`, `settings.json` and `ui.json` in
/// `~/.config/muxen` (and before that `~/.config/openrunner`). The first time,
/// they become one config.toml in `dir`, and the rest of the old folder (pairing
/// keys, workspaces) is copied along. The old folder is left as it was.
@@ -93,7 +93,7 @@ fn migrate(dir: &Path, base: Option<&Path>) {
}
}
match write_atomic(&config, text.as_bytes()) {
- Ok(()) => tracing::info!("moved Muxen's settings from {} into {}", display_path(&old), display_path(&config)),
+ Ok(()) => tracing::info!("moved Muxin's settings from {} into {}", display_path(&old), display_path(&config)),
Err(e) => tracing::warn!("couldn't write {}: {e:#}", display_path(&config)),
}
}
@@ -148,7 +148,7 @@ fn snake_case(s: &str) -> String {
// ---------------------------------------------------------------------------
// config.toml sections
-const CONFIG_HEADER: &str = "# Muxen: settings, look and machines. The app writes [settings] and [ui];\n# change them here or in Settings. Comments on machines are kept.\n\n";
+const CONFIG_HEADER: &str = "# Muxin: settings, look and machines. The app writes [settings] and [ui];\n# change them here or in Settings. Comments on machines are kept.\n\n";
/// Reads one section of config.toml (`[settings]`, `[ui]`), defaults if it's
/// missing or doesn't read.
@@ -291,14 +291,14 @@ pub struct MachineSpec {
pub ssh_options: Vec<String>,
#[serde(default)]
pub notes: Option<String>,
- /// A cloud machine Muxen created (and can power off or destroy).
+ /// A cloud machine Muxin created (and can power off or destroy).
#[serde(default)]
pub cloud: Option<CloudRef>,
- /// A VM (or Linux container) Muxen created in Docker on another of the
+ /// A VM (or Linux container) Muxin created in Docker on another of the
/// user's machines (and can start, stop or destroy).
#[serde(default)]
pub vm: Option<VmRef>,
- /// Disconnected on purpose: Muxen doesn't connect to it, check it or look
+ /// Disconnected on purpose: Muxin doesn't connect to it, check it or look
/// at its sessions until it's connected again (its sessions go on there).
#[serde(default)]
pub disconnected: bool,
@@ -327,7 +327,7 @@ pub struct CloudRef {
pub created_at: String,
}
-/// Where a VM Muxen made runs, as config.toml records it:
+/// Where a VM Muxin made runs, as config.toml records it:
/// `vm = { host = "beelink", os = "windows", version = "11", container = "muxen-win-dev", created_at = "..." }`.
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
#[serde(deny_unknown_fields)]
@@ -364,7 +364,7 @@ pub fn add_cloud_history(path: &Path, entry: DestroyedCloud) -> Result<()> {
write_atomic(path, serde_json::to_string_pretty(&all)?.as_bytes())
}
-/// A cloud machine Muxen destroyed, kept so this month's costs still count it.
+/// A cloud machine Muxin destroyed, kept so this month's costs still count it.
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct DestroyedCloud {
@@ -393,13 +393,13 @@ impl MachineSpec {
!self.host.trim().is_empty()
}
- /// Muxen may reach it: it has a host and isn't disconnected.
+ /// Muxin may reach it: it has a host and isn't disconnected.
pub fn is_connected(&self) -> bool {
self.is_checkable() && !self.disconnected
}
/// Err for a machine disconnected on purpose: what the user sees instead
- /// of Muxen reaching it.
+ /// of Muxin reaching it.
pub fn refuse_if_disconnected(&self) -> Result<(), String> {
if self.disconnected {
return Err(format!("{} is disconnected. Connect to it first.", self.name));
@@ -472,11 +472,11 @@ pub fn assign_machine_id(name: &str, explicit_id: &str, taken: &mut HashSet<Stri
pub fn default_inventory() -> String {
let host = local_hostname();
format!(
- r#"# Muxen: your settings and machines. Settings and the app's look go in
-# [settings] and [ui], which Muxen adds when you change them.
+ r#"# Muxin: your settings and machines. Settings and the app's look go in
+# [settings] and [ui], which Muxin adds when you change them.
#
-# Each [[machine]] is a computer Muxen connects to: for agent sessions, its
-# desktop, files, workspaces, or the GitHub Actions runners on it. Muxen
+# Each [[machine]] is a computer Muxin connects to: for agent sessions, its
+# desktop, files, workspaces, or the GitHub Actions runners on it. Muxin
# checks machines over SSH (or directly when host = "local") and reads CPU,
# memory, disk, uptime and which runners are installed. Checks are read-only.
#
@@ -532,16 +532,16 @@ pub struct Settings {
pub check_interval_minutes: u32,
/// Where to look for git checkouts on every machine: "dir" or "dir:depth".
pub code_folders: Vec<String>,
- /// Repositories the user starred in Muxen ("owner/name"), in the order added.
+ /// Repositories the user starred in Muxin ("owner/name"), in the order added.
pub favorite_repos: Vec<String>,
/// Text copied here can be pasted on the machines (Linux desktops, Macs), and back.
pub share_clipboard: bool,
/// The editor machines' folders open in: "zed", "cursor", "vscode", or "" for the first one installed.
pub editor: String,
- /// Cloud machines: how Muxen signs in, what new ones come with, what happens when they sit idle.
+ /// Cloud machines: how Muxin signs in, what new ones come with, what happens when they sit idle.
pub cloud: CloudSettings,
/// Session actions' prompts the user changed, by action ("commit", "review", ...;
- /// see fleet::sessions::actions). The others use Muxen's own.
+ /// see fleet::sessions::actions). The others use Muxin's own.
#[serde(skip_serializing_if = "std::collections::BTreeMap::is_empty")]
pub prompts: std::collections::BTreeMap<String, String>,
}
@@ -549,7 +549,7 @@ pub struct Settings {
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
#[serde(default)]
pub struct CloudSettings {
- /// How Muxen signs in to DigitalOcean: "token" (kept in the Keychain), "oauth" (browser sign-in) or "doctl" (its CLI's login).
+ /// How Muxin signs in to DigitalOcean: "token" (kept in the Keychain), "oauth" (browser sign-in) or "doctl" (its CLI's login).
pub digitalocean_auth: String,
/// Defaults for new machines; empty picks for you.
pub region: String,
diff --git a/src/demo.rs b/src/demo.rs
index 42ee649..1d83474 100644
--- a/src/demo.rs
+++ b/src/demo.rs
@@ -1,4 +1,4 @@
-//! `muxen --demo`: simulated machines with jobs arriving, running and
+//! `muxin --demo`: simulated machines with jobs arriving, running and
//! finishing, so the app can be explored without any real machines.
use std::sync::Mutex;
diff --git a/src/fleet/build.rs b/src/fleet/build.rs
index afdf423..85763fd 100644
--- a/src/fleet/build.rs
+++ b/src/fleet/build.rs
@@ -435,7 +435,7 @@ fn parents(input: &Inputs) -> HashMap<String, ParentMachine> {
};
let mut out = HashMap::new();
- // A VM Muxen made says where it runs.
+ // A VM Muxin made says where it runs.
for spec in specs {
let Some(vm) = &spec.vm else { continue };
let Some(host) = specs.iter().find(|o| o.id == vm.host && o.id != spec.id) else { continue };
@@ -494,7 +494,7 @@ fn parents(input: &Inputs) -> HashMap<String, ParentMachine> {
out
}
-/// A VM Muxen made that hasn't answered yet: it's still installing (for a
+/// A VM Muxin made that hasn't answered yet: it's still installing (for a
/// couple of hours after it was made; after that, something's wrong).
fn installing_reason(spec: &MachineSpec, p: &ProbeResult, now: DateTime<Utc>) -> Option<Unreachable> {
let vm = spec.vm.as_ref()?;
@@ -792,7 +792,7 @@ fn machine_diagnostics(out: &mut Vec<Diagnostic>, spec: &MachineSpec, probe: Opt
}
}
if p.reboot_required {
- out.push(diag("warning", "reboot-required", "Updates are waiting for a reboot.".into(), Some("sudo reboot # its sessions end; Muxen reconnects when it's back".into()), None));
+ out.push(diag("warning", "reboot-required", "Updates are waiting for a reboot.".into(), Some("sudo reboot # its sessions end; Muxin reconnects when it's back".into()), None));
}
if !p.failed_units.is_empty() {
let n = p.failed_units.len();
diff --git a/src/fleet/command.rs b/src/fleet/command.rs
index 39f74d8..157ae25 100644
--- a/src/fleet/command.rs
+++ b/src/fleet/command.rs
@@ -1,4 +1,4 @@
-//! Running one command on several machines at once (the Run page, `muxen
+//! Running one command on several machines at once (the Run page, `muxin
//! run`): an operation per machine, in the user's login shell from their
//! home folder, its output streamed into the operation's log.
diff --git a/src/fleet/connection.rs b/src/fleet/connection.rs
index 05feedb..8190768 100644
--- a/src/fleet/connection.rs
+++ b/src/fleet/connection.rs
@@ -1,4 +1,4 @@
-//! How Muxen reaches each machine: directly (QUIC, once paired), over a
+//! How Muxin reaches each machine: directly (QUIC, once paired), over a
//! live ssh link, or one ssh call at a time; and turning direct connections on
//! and off.
@@ -38,7 +38,7 @@ pub struct Connection {
impl Engine {
/// Disconnects from a machine or connects to it again. Disconnected,
- /// Muxen closes its link and stops checking it and looking at its
+ /// Muxin closes its link and stops checking it and looking at its
/// sessions (they go on there) until it's connected again; it's saved in
/// config.toml (`disconnected = true`), so it lasts. Connecting checks it.
pub fn set_connected(self: &Arc<Self>, machine_id: &str, connected: bool) -> Result<(), String> {
@@ -64,7 +64,7 @@ impl Engine {
Ok(())
}
- /// How Muxen reaches the machine right now (measured, connecting if needed).
+ /// How Muxin reaches the machine right now (measured, connecting if needed).
pub async fn connection(self: &Arc<Self>, machine_id: &str) -> Result<Connection, String> {
let (spec, _) = self.machine(machine_id).ok_or_else(|| format!("No machine called {machine_id}."))?;
let paired = direct::paired(&spec.id);
@@ -114,7 +114,7 @@ impl Engine {
let shut_in = parent.as_ref().is_some_and(|p| p.inside()) && spec.direct_address.as_deref().is_none_or(|a| a.trim().is_empty());
if out.direct && out.via == "ssh" && shut_in {
let host = parent.map(|p| p.name).unwrap_or_default();
- out.note = Some(format!("{host} doesn't forward a UDP port to it, so it's ssh. VMs Muxen makes now get one."));
+ out.note = Some(format!("{host} doesn't forward a UDP port to it, so it's ssh. VMs Muxin makes now get one."));
} else if out.direct && out.via == "ssh" {
// A Mac blocks the agent's network until Local Network access is allowed there.
let mac = self.current().machines.iter().any(|m| m.id == spec.id && m.platform.starts_with("darwin"));
@@ -139,7 +139,7 @@ impl Engine {
out.network = l.network().map(str::to_string);
out.peer = l.peer().map(|a| a.ip().to_string());
} else {
- out.note = Some("Not reachable on this network: allow Muxen in Privacy & Security › Local Network, then reopen it.".into());
+ out.note = Some("Not reachable on this network: allow Muxin in Privacy & Security › Local Network, then reopen it.".into());
}
}
if out.via == "direct" && out.network.as_deref() == Some("Tailscale") {
@@ -150,7 +150,7 @@ impl Engine {
Ok(out)
}
- /// Pairs with the machine's agent so Muxen connects to it directly
+ /// Pairs with the machine's agent so Muxin connects to it directly
/// (QUIC) instead of through ssh; or undoes that.
pub async fn set_direct(self: &Arc<Self>, machine_id: &str, enabled: bool) -> Result<Connection, String> {
let (spec, probe) = self.machine(machine_id).ok_or_else(|| format!("No machine called {machine_id}."))?;
diff --git a/src/fleet/desktop.rs b/src/fleet/desktop.rs
index 8570d77..5980d88 100644
--- a/src/fleet/desktop.rs
+++ b/src/fleet/desktop.rs
@@ -201,7 +201,7 @@ impl Engine {
} else {
super::sessions::agent::ensure(&spec, probe.as_ref()).await?;
let reply = super::sessions::agent::ctl(&spec, &json!({ "op": "displays" })).await?;
- serde_json::from_value(reply["displays"].clone()).map_err(|_| format!("{} gave a list of displays Muxen can't read.", spec.name))?
+ serde_json::from_value(reply["displays"].clone()).map_err(|_| format!("{} gave a list of displays Muxin can't read.", spec.name))?
};
self.set_displays(&spec.id, found.clone());
Ok(found)
@@ -227,7 +227,7 @@ impl Engine {
}
/// What to call one of a machine's displays (kept on the machine, so every
- /// Muxen sees it). An empty name goes back to its own.
+ /// Muxin sees it). An empty name goes back to its own.
pub async fn rename_display(self: &Arc<Self>, machine_id: &str, display: &str, name: &str) -> Result<(), String> {
let (spec, probe) = self.machine(machine_id).ok_or_else(|| format!("No machine called {machine_id}."))?;
if self.demo_world().is_some() {
@@ -261,12 +261,12 @@ impl Engine {
}
/// The user's password on a machine, for adding and removing its virtual
- /// monitors (Linux asks sudo). Kept in memory while Muxen runs, nowhere else.
+ /// monitors (Linux asks sudo). Kept in memory while Muxin runs, nowhere else.
pub fn remember_password(&self, machine_id: &str, password: String) {
passwords().lock().unwrap().insert(machine_id.to_string(), password);
}
- /// Removes a virtual monitor Muxen added.
+ /// Removes a virtual monitor Muxin added.
pub async fn remove_display(self: &Arc<Self>, machine_id: &str, display: &str) -> Result<(), AddDisplayError> {
let (spec, probe) = self.machine(machine_id).ok_or_else(|| format!("No machine called {machine_id}."))?;
if self.demo_world().is_some() {
diff --git a/src/fleet/direct.rs b/src/fleet/direct.rs
index f5ae1b2..8058dac 100644
--- a/src/fleet/direct.rs
+++ b/src/fleet/direct.rs
@@ -3,7 +3,7 @@
//! accept only each other's, by SHA-256 fingerprint; the fingerprints are
//! swapped over ssh when pairing (see agent/src/direct.rs).
//!
-//! Files, in Muxen's config folder: `identity/cert.der` and
+//! Files, in Muxin's config folder: `identity/cert.der` and
//! `identity/key.der` (this app), `direct.json` (paired machines).
use std::collections::HashMap;
@@ -50,7 +50,7 @@ pub struct Paired {
static DIR: OnceLock<PathBuf> = OnceLock::new();
-/// Where Muxen keeps its files (set once, at startup).
+/// Where Muxin keeps its files (set once, at startup).
pub fn init(config_dir: PathBuf) {
let _ = DIR.set(config_dir);
}
@@ -68,7 +68,7 @@ pub fn paired(machine_id: &str) -> Option<Paired> {
}
pub fn save(machine_id: &str, entry: Option<Paired>) -> Result<(), String> {
- let path = store().ok_or("Muxen's config folder isn't set")?;
+ let path = store().ok_or("Muxin's config folder isn't set")?;
let mut all = load();
match entry {
Some(e) => all.insert(machine_id.to_string(), e),
@@ -96,7 +96,7 @@ pub fn fingerprint(der: &[u8]) -> String {
/// This app's certificate and key, made on first use.
fn identity() -> Result<(CertificateDer<'static>, PrivateKeyDer<'static>), String> {
- let dir = DIR.get().ok_or("Muxen's config folder isn't set")?.join("identity");
+ let dir = DIR.get().ok_or("Muxin's config folder isn't set")?.join("identity");
let (cert_path, key_path) = (dir.join("cert.der"), dir.join("key.der"));
if let (Ok(cert), Ok(key)) = (std::fs::read(&cert_path), std::fs::read(&key_path)) {
return Ok((CertificateDer::from(cert), PrivateKeyDer::Pkcs8(PrivatePkcs8KeyDer::from(key))));
diff --git a/src/fleet/editor.rs b/src/fleet/editor.rs
index 225ba43..7303e3f 100644
--- a/src/fleet/editor.rs
+++ b/src/fleet/editor.rs
@@ -1,6 +1,6 @@
//! Opening a machine's folder in your editor: Zed, VS Code or Cursor on
//! this computer, over their own remote-ssh support (the machine's ssh
-//! alias, as Muxen reaches it), or directly for this computer's folders.
+//! alias, as Muxin reaches it), or directly for this computer's folders.
use std::path::PathBuf;
use std::sync::Arc;
@@ -11,7 +11,7 @@ use serde::Serialize;
use super::Engine;
use crate::config::MachineSpec;
-/// An editor Muxen can open folders in.
+/// An editor Muxin can open folders in.
#[derive(Debug, Clone, PartialEq, Serialize)]
pub struct Editor {
/// "zed", "vscode" or "cursor".
@@ -22,7 +22,7 @@ pub struct Editor {
pub cli: PathBuf,
}
-/// The editors this computer has, in the order Muxen prefers them.
+/// The editors this computer has, in the order Muxin prefers them.
pub fn installed() -> Vec<Editor> {
let home = dirs::home_dir().unwrap_or_default();
let apps = |name: &str| [PathBuf::from("/Applications").join(name), home.join("Applications").join(name)];
@@ -156,7 +156,7 @@ impl Engine {
pub async fn editor_command(self: &Arc<Self>, machine_id: &str, path: &str, editor: &str, run: bool) -> Result<(String, Vec<String>), String> {
let (spec, _) = self.machine(machine_id).ok_or_else(|| format!("No machine called {machine_id}."))?;
let chosen = if editor.is_empty() { self.settings().editor } else { editor.to_string() };
- let editor = pick(&chosen).ok_or("No editor found here: Muxen opens folders in Zed, Cursor or VS Code.")?;
+ let editor = pick(&chosen).ok_or("No editor found here: Muxin opens folders in Zed, Cursor or VS Code.")?;
if self.demo_world().is_some() {
return Err("The demo doesn't open editors.".into());
}
diff --git a/src/fleet/engine.rs b/src/fleet/engine.rs
index cb46bd6..af8fa14 100644
--- a/src/fleet/engine.rs
+++ b/src/fleet/engine.rs
@@ -50,7 +50,7 @@ struct State {
last_publish: Option<Instant>,
publish_scheduled: bool,
/// Modification times of the files we last read or wrote, so changes made
- /// by another Muxen process (the window, the CLI, an agent's MCP
+ /// by another Muxin process (the window, the CLI, an agent's MCP
/// server) are noticed. See `sync_from_disk`.
settings_mtime: Option<SystemTime>,
state_mtime: Option<SystemTime>,
@@ -339,7 +339,7 @@ impl Engine {
(*self.current()).clone()
}
- /// Picks up what other Muxen processes wrote to the shared config
+ /// Picks up what other Muxin processes wrote to the shared config
/// directory: config.toml edits (machines and settings), and newer machine
/// checks in state.json. Cheap when nothing changed (three `stat` calls).
pub fn refresh_from_disk(&self) {
@@ -385,7 +385,7 @@ impl Engine {
Some((spec, st.probes.get(id).cloned()))
}
- /// Re-reads config.toml right away (after Muxen edited it) and publishes.
+ /// Re-reads config.toml right away (after Muxin edited it) and publishes.
/// Publishes the snapshot again (when something outside the state changed, like idle times).
#[cfg_attr(not(feature = "gui"), allow(dead_code))]
pub(crate) fn republish(&self) {
@@ -747,7 +747,7 @@ impl Engine {
_ = tokio::time::sleep(poll) => {}
_ = self.sync_now.notified() => {}
}
- // Pick up config.toml edits (and settings/checks from other Muxen
+ // Pick up config.toml edits (and settings/checks from other Muxin
// processes) without waiting for the next full check.
let before = self.state.lock().unwrap().inventory.machines.len();
self.refresh_from_disk();
@@ -1216,7 +1216,7 @@ fn mtime(path: &Path) -> Option<SystemTime> {
std::fs::metadata(path).and_then(|m| m.modified()).ok()
}
-/// Writes a starter config.toml (this computer only) the first time Muxen runs.
+/// Writes a starter config.toml (this computer only) the first time Muxin runs.
pub fn ensure_inventory(paths: &Paths) {
if paths.inventory.exists() {
return;
@@ -1231,7 +1231,7 @@ pub fn ensure_inventory(paths: &Paths) {
mod tests {
use super::*;
- /// Two Muxen processes (say, the window and an agent's MCP server) share one config dir.
+ /// Two Muxin processes (say, the window and an agent's MCP server) share one config dir.
#[tokio::test(flavor = "multi_thread")]
async fn picks_up_changes_from_other_processes() {
let dir = std::env::temp_dir().join(format!("muxen-xproc-{}", std::process::id()));
diff --git a/src/fleet/engine/roaming.rs b/src/fleet/engine/roaming.rs
index f841571..eac9ad4 100644
--- a/src/fleet/engine/roaming.rs
+++ b/src/fleet/engine/roaming.rs
@@ -106,7 +106,7 @@ impl Engine {
}
}
}
- // While Tailscale is off, what it last said is kept: it's how Muxen
+ // While Tailscale is off, what it last said is kept: it's how Muxin
// knows a machine is reached through it.
let known: Vec<String> = st.inventory.machines.iter().map(|m| m.id.clone()).collect();
let before = st.tailnet.len();
diff --git a/src/fleet/files.rs b/src/fleet/files.rs
index 9ecc53e..1db0212 100644
--- a/src/fleet/files.rs
+++ b/src/fleet/files.rs
@@ -78,7 +78,7 @@ impl Engine {
if self.demo_world().is_some() {
return Ok(demo_listing(&spec, path));
}
- let l = self.files_link(&spec).await.ok_or_else(|| format!("Browsing {} needs Muxen's agent there.", spec.name))?;
+ let l = self.files_link(&spec).await.ok_or_else(|| format!("Browsing {} needs Muxin's agent there.", spec.name))?;
let r = l.request(json!({ "op": "files", "path": if path.trim().is_empty() { "~" } else { path } }), Duration::from_secs(20)).await?;
if r["ok"].as_bool() != Some(true) {
return Err(r["error"].as_str().unwrap_or("Couldn't list that folder.").to_string());
@@ -424,7 +424,7 @@ fn demo_listing(spec: &MachineSpec, path: &str) -> Listing {
let abs = if abs.len() > 1 { abs.trim_end_matches('/').to_string() } else { abs };
let (folders, files): (&[&str], &[&str]) = match abs.strip_prefix(home).map(|r| r.trim_start_matches('/')) {
Some("") => (&[".config", "code", "Documents", "Downloads", "notes"], &["todo.md"]),
- Some("code") => (&["api", "checkout", "desktop", "infra", "ios-app", "muxen", "web"], &[]),
+ Some("code") => (&["api", "checkout", "desktop", "infra", "ios-app", "muxin", "web"], &[]),
Some(p) if p.starts_with("code/") && !p["code/".len()..].contains('/') => (&[".github", "docs", "src", "tests"], &["README.md", "package.json"]),
_ => (&[], &[]),
};
diff --git a/src/fleet/link.rs b/src/fleet/link.rs
index 3e72931..265017e 100644
--- a/src/fleet/link.rs
+++ b/src/fleet/link.rs
@@ -162,7 +162,7 @@ impl Link {
let _ = rx.wait_for(|down| *down).await;
}
- /// Whether Muxen dropped it on purpose, rather than losing the machine.
+ /// Whether Muxin dropped it on purpose, rather than losing the machine.
pub fn retired(&self) -> bool {
self.retired.load(Ordering::Relaxed)
}
diff --git a/src/fleet/logs.rs b/src/fleet/logs.rs
index a07420c..bfee72e 100644
--- a/src/fleet/logs.rs
+++ b/src/fleet/logs.rs
@@ -79,7 +79,7 @@ impl Engine {
}
super::sessions::agent::ensure(&spec, probe.as_ref()).await?;
let reply = super::sessions::agent::ctl(&spec, &json!({ "op": "log_sources" })).await?;
- serde_json::from_value(reply).map_err(|_| format!("{} listed its logs in a way Muxen can't read.", spec.name))
+ serde_json::from_value(reply).map_err(|_| format!("{} listed its logs in a way Muxin can't read.", spec.name))
}
/// A log's last `lines` (holding `filter`, ignoring case, when given).
diff --git a/src/fleet/model.rs b/src/fleet/model.rs
index 02975ea..e56ff93 100644
--- a/src/fleet/model.rs
+++ b/src/fleet/model.rs
@@ -65,7 +65,7 @@ pub struct TailnetDevice {
pub path: String,
/// The relay's region code (e.g. "mia"), when relayed.
pub relay: Option<String>,
- /// When Muxen read this from Tailscale.
+ /// When Muxin read this from Tailscale.
pub read_at: DateTime<Utc>,
}
@@ -189,7 +189,7 @@ pub struct Machine {
/// "runner" when it hosts runners, otherwise "other".
pub kind: String,
/// "online" | "offline" | "unchecked" | "manual" | "disconnected" (on
- /// purpose: Muxen leaves it alone until it's connected again)
+ /// purpose: Muxin leaves it alone until it's connected again)
pub status: String,
pub checking: bool,
pub notes: Option<String>,
@@ -201,7 +201,7 @@ pub struct Machine {
pub workspaces_allowed: bool,
/// Agent CLIs found on the machine ("claude", "codex", ...), from the last session check.
pub agents: Vec<String>,
- /// The Muxen agent's version there (it runs agent sessions), once set up.
+ /// The Muxin agent's version there (it runs agent sessions), once set up.
pub agent_version: Option<String>,
/// Why sessions aren't available here, when they aren't.
pub sessions_error: Option<String>,
@@ -211,20 +211,20 @@ pub struct Machine {
pub unreachable: Option<Unreachable>,
/// It on the user's tailnet, as Tailscale last saw it.
pub tailnet: Option<TailnetDevice>,
- /// A cloud machine Muxen created: where it runs and what it costs.
+ /// A cloud machine Muxin created: where it runs and what it costs.
pub cloud: Option<CloudInfo>,
/// Its monitors, virtual ones included, as last listed (empty until then).
pub displays: Vec<DisplayInfo>,
/// Another of the user's machines it runs on (a VM or container there),
/// or is reached through (a jump host).
pub parent: Option<ParentMachine>,
- /// A VM Muxen made (and can destroy): its host, system and container.
+ /// A VM Muxin made (and can destroy): its host, system and container.
pub vm: Option<crate::config::VmRef>,
/// Where a direct connection reaches it (a forwarded port), from config.toml.
pub direct_address: Option<String>,
}
-/// The machine another one runs on or is reached through, as Muxen worked it
+/// The machine another one runs on or is reached through, as Muxin worked it
/// out from ~/.ssh/config, the machines' checks and their Docker containers.
#[derive(Debug, Clone, Serialize, PartialEq)]
#[serde(rename_all = "camelCase")]
@@ -259,7 +259,7 @@ impl ParentMachine {
}
impl Machine {
- /// Muxen can't use it now: it's offline, or disconnected on purpose.
+ /// Muxin can't use it now: it's offline, or disconnected on purpose.
pub fn is_down(&self) -> bool {
matches!(self.status.as_str(), "offline" | "disconnected")
}
@@ -269,7 +269,7 @@ impl Machine {
}
}
-/// One of a machine's monitors: a real one, or a virtual one Muxen added.
+/// One of a machine's monitors: a real one, or a virtual one Muxin added.
#[derive(Debug, Clone, Serialize, serde::Deserialize, PartialEq)]
pub struct DisplayInfo {
/// What to pass as `display`: a RandR monitor's name on Linux ("all": the
@@ -285,7 +285,7 @@ pub struct DisplayInfo {
/// The main (primary) display.
#[serde(default)]
pub main: bool,
- /// A virtual monitor Muxen added (and can remove).
+ /// A virtual monitor Muxin added (and can remove).
#[serde(default, rename = "virtual")]
pub is_virtual: bool,
/// The sizes it can be set to, biggest first (empty: it can't be, or
@@ -364,7 +364,7 @@ pub struct Probe {
pub load: Vec<f64>,
/// Docker server version, when the machine's user can use Docker.
pub docker: Option<String>,
- /// Linux: "root" | "passwordless" | "password" — whether Muxen can install systemd services.
+ /// Linux: "root" | "passwordless" | "password" — whether Muxin can install systemd services.
pub sudo: Option<String>,
/// The last time a check reached the machine.
pub last_seen_at: Option<DateTime<Utc>>,
@@ -379,7 +379,7 @@ pub struct Unreachable {
/// Tailscale is off or signed out, and the machine is on the tailnet) |
/// "powered-off" (a cloud machine) | "host-down" (the machine it runs on or
/// is reached through is off) | "stopped" (its container there isn't
- /// running) | "installing" (a VM Muxen just made) | "error"
+ /// running) | "installing" (a VM Muxin just made) | "error"
pub kind: String,
/// e.g. "Beelink is offline".
pub title: String,
diff --git a/src/fleet/ports.rs b/src/fleet/ports.rs
index 38ebb39..d981a40 100644
--- a/src/fleet/ports.rs
+++ b/src/fleet/ports.rs
@@ -102,7 +102,7 @@ impl Engine {
}
super::sessions::agent::ensure(&spec, probe.as_ref()).await?;
let reply = super::sessions::agent::ctl(&spec, &json!({ "op": "ports" })).await?;
- serde_json::from_value(reply["ports"].clone()).map_err(|_| format!("{} listed its ports in a way Muxen can't read.", spec.name))
+ serde_json::from_value(reply["ports"].clone()).map_err(|_| format!("{} listed its ports in a way Muxin can't read.", spec.name))
}
/// Just the ports something listens on there (a quick look, no asking).
@@ -113,7 +113,7 @@ impl Engine {
}
super::sessions::agent::ensure(&spec, probe.as_ref()).await?;
let reply = super::sessions::agent::ctl(&spec, &json!({ "op": "listening" })).await?;
- serde_json::from_value(reply["ports"].clone()).map_err(|_| format!("{} listed its ports in a way Muxen can't read.", spec.name))
+ serde_json::from_value(reply["ports"].clone()).map_err(|_| format!("{} listed its ports in a way Muxin can't read.", spec.name))
}
/// The ports forwarded to this computer.
diff --git a/src/fleet/procs.rs b/src/fleet/procs.rs
index 64d52cc..8d9ba21 100644
--- a/src/fleet/procs.rs
+++ b/src/fleet/procs.rs
@@ -33,7 +33,7 @@ pub struct Process {
/// Its GPU memory (NVIDIA), bytes.
#[serde(default)]
pub gpu_memory: Option<u64>,
- /// The user Muxen's agent runs as owns it (no password to stop it).
+ /// The user Muxin's agent runs as owns it (no password to stop it).
#[serde(default)]
pub yours: bool,
}
@@ -81,7 +81,7 @@ impl Engine {
}
super::sessions::agent::ensure(&spec, probe.as_ref()).await?;
let reply = super::sessions::agent::ctl(&spec, &json!({ "op": "processes" })).await?;
- serde_json::from_value(reply).map_err(|_| format!("{} listed its processes in a way Muxen can't read.", spec.name))
+ serde_json::from_value(reply).map_err(|_| format!("{} listed its processes in a way Muxin can't read.", spec.name))
}
/// Just a machine's GPUs (for its page).
@@ -92,7 +92,7 @@ impl Engine {
}
super::sessions::agent::ensure(&spec, probe.as_ref()).await?;
let reply = super::sessions::agent::ctl(&spec, &json!({ "op": "gpus" })).await?;
- serde_json::from_value(reply["gpus"].clone()).map_err(|_| format!("{} listed its GPUs in a way Muxen can't read.", spec.name))
+ serde_json::from_value(reply["gpus"].clone()).map_err(|_| format!("{} listed its GPUs in a way Muxin can't read.", spec.name))
}
}
diff --git a/src/fleet/report.rs b/src/fleet/report.rs
index cd87809..e31c996 100644
--- a/src/fleet/report.rs
+++ b/src/fleet/report.rs
@@ -1,4 +1,4 @@
-//! Plain-text report for `muxen check`.
+//! Plain-text report for `muxin check`.
use std::fmt::Write;
diff --git a/src/fleet/schedules.rs b/src/fleet/schedules.rs
index 3258ba8..970cac2 100644
--- a/src/fleet/schedules.rs
+++ b/src/fleet/schedules.rs
@@ -1,6 +1,6 @@
//! Schedules: a command or an agent session that runs on one of the user's
//! machines at set times. Each one lives on its machine, kept and run there
-//! by Muxen's agent through the machine's own scheduler (agent/src/schedules.rs),
+//! by Muxin's agent through the machine's own scheduler (agent/src/schedules.rs),
//! so it runs whether or not this app is open.
use std::sync::Arc;
@@ -49,7 +49,7 @@ pub struct What {
#[serde(skip_serializing_if = "Option::is_none")]
pub title: Option<String>,
/// The session's command line and the text typed in once it's up
- /// (worked out by Muxen; the agent runs them as given).
+ /// (worked out by Muxin; the agent runs them as given).
#[serde(skip_serializing_if = "Option::is_none")]
pub run: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
@@ -233,7 +233,7 @@ impl Engine {
/// A schedule's runs, and one run's output (the newest, or the one that `started` then).
pub async fn schedule_log(self: &Arc<Self>, machine_id: &str, id: &str, started: Option<i64>) -> Result<ScheduleLog, String> {
let reply = Box::pin(self.schedule_ctl(machine_id, json!({ "op": "schedule_log", "schedule_id": id, "started": started }))).await?;
- serde_json::from_value(reply).map_err(|e| format!("The machine answered in a way Muxen can't read: {e}"))
+ serde_json::from_value(reply).map_err(|e| format!("The machine answered in a way Muxin can't read: {e}"))
}
async fn schedule_ctl(self: &Arc<Self>, machine_id: &str, request: Value) -> Result<Value, String> {
diff --git a/src/fleet/services.rs b/src/fleet/services.rs
index 56ea1a3..569343c 100644
--- a/src/fleet/services.rs
+++ b/src/fleet/services.rs
@@ -287,7 +287,7 @@ impl Service {
super::logs::LogSource { kind: kind.into(), target: self.target.clone(), name: self.name.clone(), detail: self.detail.clone(), user: self.user, ..Default::default() }
}
- /// Whether stopping it could cut Muxen off from the machine.
+ /// Whether stopping it could cut Muxin off from the machine.
pub fn keeps_muxen_connected(&self) -> bool {
let n = self.name.to_lowercase();
["ssh", "sshd", "tailscaled", "networkmanager", "systemd-networkd", "networking", "systemd-resolved", "muxen-agent", "dbus", "wpa_supplicant"].contains(&n.as_str())
@@ -312,7 +312,7 @@ impl Engine {
}
super::sessions::agent::ensure(&spec, probe.as_ref()).await?;
let reply = super::sessions::agent::ctl(&spec, &json!({ "op": "compose_describe", "project": project.name, "files": project.files })).await?;
- serde_json::from_value(reply).map_err(|_| format!("{} described {} in a way Muxen can't read.", spec.name, project.name))
+ serde_json::from_value(reply).map_err(|_| format!("{} described {} in a way Muxin can't read.", spec.name, project.name))
}
/// A machine's services and containers; with what they use when `stats`
@@ -324,7 +324,7 @@ impl Engine {
}
super::sessions::agent::ensure(&spec, probe.as_ref()).await?;
let reply = super::sessions::agent::ctl(&spec, &json!({ "op": "services", "stats": stats })).await?;
- serde_json::from_value(reply).map_err(|_| format!("{} listed its services in a way Muxen can't read.", spec.name))
+ serde_json::from_value(reply).map_err(|_| format!("{} listed its services in a way Muxin can't read.", spec.name))
}
/// Starts, stops or restarts one (`enable`, `disable`: whether a systemd
diff --git a/src/fleet/sessions/actions.rs b/src/fleet/sessions/actions.rs
index 540ed26..bf00296 100644
--- a/src/fleet/sessions/actions.rs
+++ b/src/fleet/sessions/actions.rs
@@ -14,7 +14,7 @@ pub struct SessionAction {
pub id: &'static str,
pub label: &'static str,
pub icon: &'static str,
- /// Muxen's own prompt.
+ /// Muxin's own prompt.
pub prompt: &'static str,
/// What it needs to make sense.
pub needs: Needs,
@@ -107,7 +107,7 @@ impl SessionAction {
}
}
-/// An action's prompt (the user's, else Muxen's) with the session's branch,
+/// An action's prompt (the user's, else Muxin's) with the session's branch,
/// base and pull request filled in.
pub fn prompt(action: &SessionAction, custom: Option<&str>, git: Option<&GitStatus>) -> String {
let text = custom.map(str::trim).filter(|t| !t.is_empty()).unwrap_or(action.prompt);
diff --git a/src/fleet/sessions/agent.rs b/src/fleet/sessions/agent.rs
index 46005a2..caa5e4d 100644
--- a/src/fleet/sessions/agent.rs
+++ b/src/fleet/sessions/agent.rs
@@ -1,5 +1,5 @@
//! Setting up and talking to `muxen-agent` (the `agent/` crate) on a
-//! machine. Muxen ships a build per OS and CPU; when it connects to a
+//! machine. Muxin ships a build per OS and CPU; when it connects to a
//! machine it makes sure `~/.muxen/bin/muxen-agent` is that exact
//! build (uploading it over ssh when it isn't), then runs `muxen-agent
//! ctl` for every session request.
@@ -60,7 +60,7 @@ pub fn builds_dir() -> Option<PathBuf> {
/// Where the build for `target` is.
fn build_path(target: &str) -> Result<PathBuf, String> {
- let dir = builds_dir().ok_or("Muxen can't find its agent builds (run scripts/build-agents.sh in a source checkout).")?;
+ let dir = builds_dir().ok_or("Muxin can't find its agent builds (run scripts/build-agents.sh in a source checkout).")?;
let exe = if target.starts_with("windows") { ".exe" } else { "" };
Ok(dir.join(format!("muxen-agent-{target}{exe}")))
}
@@ -68,7 +68,7 @@ fn build_path(target: &str) -> Result<PathBuf, String> {
/// The build for `target` and its hash (what `muxen-agent hash` prints).
fn build(target: &str) -> Result<(Vec<u8>, String), String> {
let path = build_path(target)?;
- let bytes = std::fs::read(&path).map_err(|_| format!("Muxen has no agent build for {target} machines yet."))?;
+ let bytes = std::fs::read(&path).map_err(|_| format!("Muxin has no agent build for {target} machines yet."))?;
let hash = format!("{:016x}", fnv(&bytes));
Ok((bytes, hash))
}
@@ -124,13 +124,13 @@ fn verified() -> &'static Mutex<HashMap<String, String>> {
VERIFIED.get_or_init(Default::default)
}
-/// Makes sure the machine runs this Muxen's agent build, installing it if
+/// Makes sure the machine runs this Muxin's agent build, installing it if
/// not. Cheap after the first time per machine.
pub async fn ensure(spec: &MachineSpec, probe: Option<&ProbeResult>) -> Result<(), String> {
spec.refuse_if_disconnected()?;
let target = target(probe).ok_or_else(|| match probe {
- Some(p) => format!("Muxen has no agent for {}-{} machines yet.", p.os.as_deref().unwrap_or("?"), p.arch.as_deref().unwrap_or("?")),
- None => format!("Muxen hasn't reached {} yet, so it doesn't know which agent build it needs. Refresh it first.", spec.name),
+ Some(p) => format!("Muxin has no agent for {}-{} machines yet.", p.os.as_deref().unwrap_or("?"), p.arch.as_deref().unwrap_or("?")),
+ None => format!("Muxin hasn't reached {} yet, so it doesn't know which agent build it needs. Refresh it first.", spec.name),
})?;
let (bytes, hash) = build(&target)?;
if verified().lock().unwrap().get(&spec.id) == Some(&hash) {
diff --git a/src/fleet/sessions/mod.rs b/src/fleet/sessions/mod.rs
index dc256f8..29fba5a 100644
--- a/src/fleet/sessions/mod.rs
+++ b/src/fleet/sessions/mod.rs
@@ -1,8 +1,8 @@
//! Agent sessions: terminals on fleet machines running an AI agent (Claude Code,
//! Codex, OpenCode, Pi, ...) or a plain shell.
//!
-//! Sessions live in Muxen's own agent on each machine (`muxen-agent`,
-//! the `agent/` crate), which Muxen installs when it connects. The agent
+//! Sessions live in Muxin's own agent on each machine (`muxen-agent`,
+//! the `agent/` crate), which Muxin installs when it connects. The agent
//! keeps them running when the window closes or the network drops, and anyone
//! can attach: the app's terminal, the CLI, or the user's own terminal. The
//! agent is the source of truth; the engine keeps the last discovery per
@@ -33,7 +33,7 @@ pub const REFRESH_EVERY: Duration = Duration::from_secs(8);
/// interactive shell on the machine, so not on every refresh).
const AGENTS_EVERY: chrono::Duration = chrono::Duration::minutes(10);
-/// An agent CLI Muxen knows how to start.
+/// An agent CLI Muxin knows how to start.
pub struct AgentKind {
pub id: &'static str,
pub name: &'static str,
@@ -390,7 +390,7 @@ impl Engine {
self.set_direct_status(id, "running");
Ok(String::new())
}
- _ => Err(format!("{id} runs only in the Muxen window, so it can't be read or typed into from here.")),
+ _ => Err(format!("{id} runs only in the Muxin window, so it can't be read or typed into from here.")),
};
}
let (machine_id, name) = split_id(id)?;
@@ -426,7 +426,7 @@ impl Engine {
}
/// Gives a session a new title (kept by the agent on its machine, so every
- /// Muxen sees it). An empty title goes back to the one it started with.
+ /// Muxin sees it). An empty title goes back to the one it started with.
pub async fn rename_session(self: &Arc<Self>, id: &str, title: &str) -> Result<SessionInfo, String> {
let title = clean_title(title)?;
if let Some(d) = self.direct_session(id) {
diff --git a/src/fleet/usage.rs b/src/fleet/usage.rs
index b1453b2..5de6251 100644
--- a/src/fleet/usage.rs
+++ b/src/fleet/usage.rs
@@ -183,7 +183,7 @@ impl Engine {
}
super::sessions::agent::ensure(&spec, probe.as_ref()).await?;
let reply = super::sessions::agent::ctl(&spec, &json!({ "op": "usage", "days": days })).await?;
- let mut u: MachineUsage = serde_json::from_value(reply).map_err(|_| format!("{} told its usage in a way Muxen can't read.", spec.name))?;
+ let mut u: MachineUsage = serde_json::from_value(reply).map_err(|_| format!("{} told its usage in a way Muxin can't read.", spec.name))?;
u.machine_id = spec.id.clone();
Ok(u)
}
diff --git a/src/fleet/wake.rs b/src/fleet/wake.rs
index ff66979..595a06e 100644
--- a/src/fleet/wake.rs
+++ b/src/fleet/wake.rs
@@ -30,8 +30,8 @@ impl Engine {
/// Sends the wake signal; says from where. Checks it again in a little while.
pub async fn wake(self: &Arc<Self>, machine_id: &str) -> Result<String, String> {
let (spec, probe) = self.machine(machine_id).ok_or_else(|| format!("No machine called {machine_id}."))?;
- let probe = probe.ok_or_else(|| format!("Muxen hasn't reached {} yet, so it doesn't know its network card.", spec.name))?;
- let mac = probe.mac.clone().ok_or_else(|| format!("Muxen doesn't know {}'s network card yet: it learns it the next time the machine is on.", spec.name))?;
+ let probe = probe.ok_or_else(|| format!("Muxin hasn't reached {} yet, so it doesn't know its network card.", spec.name))?;
+ let mac = probe.mac.clone().ok_or_else(|| format!("Muxin doesn't know {}'s network card yet: it learns it the next time the machine is on.", spec.name))?;
if self.demo_world().is_some() {
return Ok("this computer".into());
}
diff --git a/src/fleet/workspaces/mod.rs b/src/fleet/workspaces/mod.rs
index 98844f1..4a74994 100644
--- a/src/fleet/workspaces/mod.rs
+++ b/src/fleet/workspaces/mod.rs
@@ -57,7 +57,7 @@ const DEFAULT_ROOT_WINDOWS: &str = "~\\muxen\\workspaces";
pub const EXEC_TIMEOUT_DEFAULT: u64 = 600;
pub const EXEC_TIMEOUT_MAX: u64 = 3600;
-/// Extra time Muxen waits beyond the command's own timeout before hanging up.
+/// Extra time Muxin waits beyond the command's own timeout before hanging up.
const EXEC_GRACE: u64 = 30;
const FILE_TIMEOUT: Duration = Duration::from_secs(60);
const CREATE_TIMEOUT: Duration = Duration::from_secs(15 * 60);
@@ -188,7 +188,7 @@ impl Engine {
let docker = match clean_opt(iso.isolation).map(|s| s.to_ascii_lowercase()).as_deref() {
None | Some("host") | Some("none") => false,
Some("docker") | Some("container") => true,
- Some(other) => return Err(format!("\"{other}\" isn't an isolation Muxen knows. Use \"host\" or \"docker\".")),
+ Some(other) => return Err(format!("\"{other}\" isn't an isolation Muxin knows. Use \"host\" or \"docker\".")),
};
let image_req = clean_opt(iso.image);
if !docker && image_req.is_some() {
@@ -239,11 +239,11 @@ impl Engine {
.find(|x| x.id == m || x.name.eq_ignore_ascii_case(&m))
.ok_or_else(|| format!("Machine \"{m}\" not found. Known machines: {}.", machine_names(&snap.machines)))?;
if found.host.is_empty() {
- return Err(format!("{} has no host in config.toml, so Muxen can't reach it.", found.name));
+ return Err(format!("{} has no host in config.toml, so Muxin can't reach it.", found.name));
}
if !found.workspaces_allowed {
return Err(format!(
- "Workspaces are turned off for {}. Turn them on from its page in Muxen, or remove `workspaces = false` from its entry in config.toml.",
+ "Workspaces are turned off for {}. Turn them on from its page in Muxin, or remove `workspaces = false` from its entry in config.toml.",
found.name
));
}
@@ -538,7 +538,7 @@ impl Engine {
.await
.is_ok_and(|s| s.success());
if !have_rsync {
- return Err("rsync isn't installed on this computer, so Muxen can't sync folders.".into());
+ return Err("rsync isn't installed on this computer, so Muxin can't sync folders.".into());
}
match direction {
SyncDirection::Push if !local.is_dir() => return Err(format!("{} isn't a folder on this computer.", local.display())),
@@ -699,7 +699,7 @@ impl Engine {
fn workspace_machine(&self, rec: &WorkspaceRecord) -> Result<MachineSpec, String> {
let (spec, _) = self.machine(&rec.info.machine_id).ok_or_else(|| {
format!(
- "Machine {} not found in config.toml anymore, so Muxen can't reach workspace {}. Destroy it with keepFiles to forget it.",
+ "Machine {} not found in config.toml anymore, so Muxin can't reach workspace {}. Destroy it with keepFiles to forget it.",
rec.info.machine_name, rec.info.id
)
})?;
@@ -1196,7 +1196,7 @@ struct Repo {
/// "api" for acme/api.
short_name: String,
host: String,
- /// https on the GitHub host Muxen has a token for.
+ /// https on the GitHub host Muxin has a token for.
on_github: bool,
}
@@ -1209,7 +1209,7 @@ pub(crate) fn github_web_host(api_url: &str) -> String {
fn normalize_repo(raw: &str, gh_host: &str) -> Result<Repo, String> {
let raw = raw.trim();
if raw.starts_with('-') || raw.chars().any(|c| c.is_whitespace() || c.is_control()) {
- return Err(format!("\"{raw}\" isn't a repository Muxen can clone."));
+ return Err(format!("\"{raw}\" isn't a repository Muxin can clone."));
}
let short = |s: &str| {
s.trim_end_matches('/').rsplit(['/', ':']).next().unwrap_or(s).trim_end_matches(".git").to_string()
diff --git a/src/fleet/workspaces/registry.rs b/src/fleet/workspaces/registry.rs
index db89104..d811985 100644
--- a/src/fleet/workspaces/registry.rs
+++ b/src/fleet/workspaces/registry.rs
@@ -1,4 +1,4 @@
-//! `workspaces.json`: the workspaces every Muxen process shares (the
+//! `workspaces.json`: the workspaces every Muxin process shares (the
//! window, the CLI, each agent's MCP server). Writers take a lock file, re-read,
//! change, and write atomically, so two processes never drop each other's edits.
@@ -105,7 +105,7 @@ impl Lock {
continue;
}
if started.elapsed() > LOCK_WAIT {
- return Err(format!("{} is locked by another Muxen process.", display_path(path)));
+ return Err(format!("{} is locked by another Muxin process.", display_path(path)));
}
std::thread::sleep(Duration::from_millis(15));
}
diff --git a/src/fleet/workspaces/tests.rs b/src/fleet/workspaces/tests.rs
index 7af3555..884a593 100644
--- a/src/fleet/workspaces/tests.rs
+++ b/src/fleet/workspaces/tests.rs
@@ -352,7 +352,7 @@ async fn local_end_to_end() {
let local = tmp.join("local-copy");
let summary = engine.workspace_sync(&info.id, local.to_str().unwrap(), SyncDirection::Pull, false).await.unwrap();
assert!(local.join("README.md").exists(), "{summary}");
- assert!(!local.join(".muxen").exists(), "Muxen's own folder isn't synced");
+ assert!(!local.join(".muxen").exists(), "Muxin's own folder isn't synced");
std::fs::write(local.join("pushed.txt"), "from local\n").unwrap();
engine.workspace_sync(&info.id, local.to_str().unwrap(), SyncDirection::Push, false).await.unwrap();
assert!(root.join(&info.id).join("pushed.txt").exists());
diff --git a/src/github/hub.rs b/src/github/hub.rs
index 96f0c50..4b813de 100644
--- a/src/github/hub.rs
+++ b/src/github/hub.rs
@@ -34,7 +34,7 @@ pub struct Repo {
pub html_url: String,
/// Owned by an organization (else by a person: you, or someone who shared it with you).
pub owner_is_org: bool,
- /// Starred in Muxen (not GitHub's stars).
+ /// Starred in Muxin (not GitHub's stars).
pub favorite: bool,
}
diff --git a/src/main.rs b/src/main.rs
index db9b2f7..f1a59aa 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -8,6 +8,8 @@ mod github;
mod mcp;
mod ops;
mod probe;
+#[cfg(feature = "gui")]
+mod renamed;
mod shell_command;
#[cfg(feature = "gui")]
mod ui;
@@ -27,10 +29,10 @@ use crate::config::{Paths, display_path};
use crate::fleet::Engine;
/// One app for all your machines: agent sessions, desktops, files, GitHub,
-/// workspaces and self-hosted runners. Agents can drive it too (`muxen mcp`,
+/// workspaces and self-hosted runners. Agents can drive it too (`muxin mcp`,
/// or any command with --json).
#[derive(Parser)]
-#[command(name = "muxen", version, about, args_conflicts_with_subcommands = true)]
+#[command(name = "muxin", version, about, args_conflicts_with_subcommands = true)]
struct Cli {
#[command(subcommand)]
command: Option<Command>,
@@ -55,7 +57,7 @@ enum Command {
RemoveMachine(MachineArgs),
/// Give a machine a new name (its id stays the same)
RenameMachine(RenameMachineArgs),
- /// Stop connecting to a machine (its sessions go on there) until `muxen connect`
+ /// Stop connecting to a machine (its sessions go on there) until `muxin connect`
Disconnect(MachineArgs),
/// Connect to a machine again (and check it)
Connect(MachineArgs),
@@ -77,10 +79,10 @@ enum Command {
Settings(SettingsArgs),
/// Host aliases from ~/.ssh/config, for add-machine
SshHosts(AgentArgs),
- /// What's in a folder on a machine: `muxen files beelink:~/build`
+ /// What's in a folder on a machine: `muxin files beelink:~/build`
#[command(alias = "ls")]
Files(FilesArgs),
- /// Copy files and folders between machines: `muxen cp beelink:~/build/app.tar.gz mac-studio:~/Downloads`
+ /// Copy files and folders between machines: `muxin cp beelink:~/build/app.tar.gz mac-studio:~/Downloads`
Cp(CpArgs),
/// Agent workspaces: persistent work environments on your machines
#[command(alias = "ws", subcommand)]
@@ -93,7 +95,7 @@ enum Command {
/// Whether git on a machine can commit and push, and setting that up
#[command(subcommand)]
Git(GitCommand),
- /// How Muxen reaches a machine (direct, ssh link); --direct on|off to change it
+ /// How Muxin reaches a machine (direct, ssh link); --direct on|off to change it
Connection(ConnectionArgs),
/// A machine's desktop: a screenshot, or mouse and keyboard input
#[command(subcommand)]
@@ -138,9 +140,9 @@ enum Command {
Check(CheckArgs),
/// Write a starter config.toml
Init(InitArgs),
- /// Print where Muxen keeps its files
+ /// Print where Muxin keeps its files
Paths(CommonArgs),
- /// Put `muxen` in your PATH (macOS: /usr/local/bin, Linux: ~/.local/bin,
+ /// Put `muxin` in your PATH (macOS: /usr/local/bin, Linux: ~/.local/bin,
/// Windows: this folder in your user PATH), or take it out
ShellCommand(ShellCommandArgs),
}
@@ -331,7 +333,7 @@ struct CancelRunArgs {
#[command(flatten)]
agent: AgentArgs,
- /// The job's id (from `muxen jobs --json`)
+ /// The job's id (from `muxin jobs --json`)
job_id: u64,
/// Return right away with the operation id
@@ -404,9 +406,9 @@ enum GithubCommand {
Repos(AgentArgs),
/// A repository's open issues and PRs, recent runs, and local checkouts
Repo(GhRepoArgs),
- /// The GitHub CLI accounts you're signed in to, and which one Muxen uses
+ /// The GitHub CLI accounts you're signed in to, and which one Muxin uses
Accounts(AgentArgs),
- /// Switch Muxen to another of the GitHub CLI's accounts
+ /// Switch Muxin to another of the GitHub CLI's accounts
Use(GhUseArgs),
/// Add a repository to your favorites (listed first), or remove it with --remove
#[command(alias = "fav")]
@@ -428,7 +430,7 @@ struct GhRepoArgs {
enum ScheduleCommand {
/// The schedules on your machines (--on one), with their last runs
Ls(ScheduleLsArgs),
- /// Add one, e.g. `muxen schedule add beelink --name Tests --every day --at 09:00 --command "make test"`
+ /// Add one, e.g. `muxin schedule add beelink --name Tests --every day --at 09:00 --command "make test"`
Add(ScheduleAddArgs),
/// Delete one
Rm(ScheduleRefArgs),
@@ -487,7 +489,7 @@ struct ScheduleRefArgs {
/// `--every` and `--at` as a schedule's `when`.
fn parse_every(every: &str, at: Option<String>) -> Result<muxen_when::When, String> {
let e = every.trim().to_ascii_lowercase();
- let num = |s: &str| s.parse::<u32>().map_err(|_| format!("\"{every}\" isn't a schedule Muxen knows."));
+ let num = |s: &str| s.parse::<u32>().map_err(|_| format!("\"{every}\" isn't a schedule Muxin knows."));
let (kind, n, days): (&str, Option<u32>, Vec<String>) = if let Some(m) = e.strip_suffix('m').filter(|m| m.chars().all(|c| c.is_ascii_digit())) {
("minutes", Some(num(m)?), Vec::new())
} else if let Some(h) = e.strip_suffix('h').filter(|h| h.chars().all(|c| c.is_ascii_digit())) {
@@ -518,7 +520,7 @@ enum VmCommand {
Options(AgentArgs),
/// Create a VM and add it to your machines (Windows installs itself: 15-30 minutes)
Create(VmCreateArgs),
- /// Delete a VM Muxen made: its container, its disk, and the machine in Muxen
+ /// Delete a VM Muxin made: its container, its disk, and the machine in Muxin
Destroy(CloudMachineArgs),
}
@@ -526,7 +528,7 @@ enum VmCommand {
struct VmCreateArgs {
#[command(flatten)]
agent: AgentArgs,
- /// Its name in Muxen
+ /// Its name in Muxin
name: String,
/// windows-11, windows-10, windows-server-2025, windows-server-2022, ubuntu-26.04,
/// ubuntu-24.04, debian-13, fedora, alpine or arch
@@ -559,7 +561,7 @@ enum CloudCommand {
Usage(AgentArgs),
/// Create a droplet, set it up, and add it to your machines (it costs money while it exists)
Create(CloudCreateArgs),
- /// Delete a cloud machine's droplet and remove it from Muxen
+ /// Delete a cloud machine's droplet and remove it from Muxin
Destroy(CloudMachineArgs),
/// Power a cloud machine on or off (DigitalOcean still bills it while off)
Power(CloudPowerArgs),
@@ -635,7 +637,7 @@ enum DesktopCommand {
Displays(MachineArgs),
/// Add a virtual monitor (like plugging in another screen)
Add(DesktopAddArgs),
- /// Remove a virtual monitor Muxen added
+ /// Remove a virtual monitor Muxin added
Remove(DesktopRemoveArgs),
/// Change a monitor's resolution or scale
Set(DesktopSetArgs),
@@ -776,7 +778,7 @@ struct DesktopSetArgs {
agent: AgentArgs,
/// Machine id or name
machine: String,
- /// The display's id (see `muxen desktop displays`)
+ /// The display's id (see `muxin desktop displays`)
display: String,
/// Its resolution, e.g. 3840x2160 (one it offers)
#[arg(long)]
@@ -806,7 +808,7 @@ struct DesktopRemoveArgs {
agent: AgentArgs,
/// Machine id or name
machine: String,
- /// The display's id (see `muxen desktop displays`)
+ /// The display's id (see `muxin desktop displays`)
display: String,
}
@@ -819,7 +821,7 @@ struct DesktopShotArgs {
/// Where to save it (default: <machine>-desktop.jpg)
#[arg(short, long)]
output: Option<std::path::PathBuf>,
- /// One of its displays (see `muxen desktop displays`)
+ /// One of its displays (see `muxin desktop displays`)
#[arg(long)]
display: Option<String>,
}
@@ -832,7 +834,7 @@ struct DesktopInputArgs {
machine: String,
/// The events, as JSON
events: String,
- /// One of its displays (see `muxen desktop displays`)
+ /// One of its displays (see `muxin desktop displays`)
#[arg(long)]
display: Option<String>,
}
@@ -907,7 +909,7 @@ struct GitSetupArgs {
struct GhUseArgs {
#[command(flatten)]
agent: AgentArgs,
- /// A GitHub login (see `muxen github accounts`)
+ /// A GitHub login (see `muxin github accounts`)
#[arg(required_unless_present = "machine")]
login: Option<String>,
/// Use this machine's GitHub CLI login instead
@@ -1022,7 +1024,7 @@ struct SessionAnswerArgs {
agent: AgentArgs,
/// Session id (<machine-id>/<name>) or unique name
session_id: String,
- /// The option's key, as `muxen session question` shows it (1, 2, … or #0, #1, …)
+ /// The option's key, as `muxin session question` shows it (1, 2, … or #0, #1, …)
choice: String,
}
@@ -1338,7 +1340,7 @@ fn main() -> ExitCode {
// Logs always go to stderr: stdout is reserved for --json output and MCP messages.
tracing_subscriber::fmt()
.with_env_filter(
- tracing_subscriber::EnvFilter::try_from_env("MUXEN_LOG").unwrap_or_else(|_| "muxen=info".into()),
+ tracing_subscriber::EnvFilter::try_from_env("MUXEN_LOG").unwrap_or_else(|_| "muxin=info".into()),
)
.with_writer(std::io::stderr)
.with_ansi(std::io::stderr().is_terminal())
@@ -1382,7 +1384,7 @@ fn main() -> ExitCode {
}
Some(Command::Disconnect(a)) => {
let req = api::ConnectMachineRequest { machine_id: a.machine_id, connected: false };
- run(&runtime, &a.agent, async move |e| api::connect_machine(&e, req).await, |m| format!("Disconnected from {}. Its sessions go on there; `muxen connect {}` connects again.\n", m.name, m.id))
+ run(&runtime, &a.agent, async move |e| api::connect_machine(&e, req).await, |m| format!("Disconnected from {}. Its sessions go on there; `muxin connect {}` connects again.\n", m.name, m.id))
}
Some(Command::RenameMachine(a)) => {
let req = api::RenameMachineRequest { machine_id: a.machine_id, name: a.name };
@@ -1496,7 +1498,7 @@ fn main() -> ExitCode {
}
Some(Command::Wake(a)) => {
let req = api::WakeRequest { machine_id: a.machine_id };
- run(&runtime, &a.agent, async move |e| api::wake_machine(&e, req).await, |v| format!("Sent the wake signal from {}. Muxen checks it again in 20 and 40 seconds.\n", v["sent_from"].as_str().unwrap_or("here")))
+ run(&runtime, &a.agent, async move |e| api::wake_machine(&e, req).await, |v| format!("Sent the wake signal from {}. Muxin checks it again in 20 and 40 seconds.\n", v["sent_from"].as_str().unwrap_or("here")))
}
Some(Command::Edit(a)) => {
let (machine, path) = a.target.split_once(':').map(|(m, p)| (m.to_string(), p.to_string())).unwrap_or((a.target.clone(), "~".into()));
@@ -1557,7 +1559,7 @@ fn main() -> ExitCode {
}
ScheduleCommand::Run(a) => {
let req = api::ScheduleRequest { machine_id: a.machine, schedule_id: a.id, started: None };
- run(&runtime, &a.agent, async move |e| api::schedule_run(&e, req).await, |_| "✓ Started. See it with `muxen schedule log`.\n".to_string())
+ run(&runtime, &a.agent, async move |e| api::schedule_run(&e, req).await, |_| "✓ Started. See it with `muxin schedule log`.\n".to_string())
}
ScheduleCommand::Log(a) => {
let req = api::ScheduleRequest { machine_id: a.machine, schedule_id: a.id, started: None };
@@ -1633,8 +1635,8 @@ fn main() -> ExitCode {
}
(Ok(s), false) => {
let line = match s.state {
- "installed" => format!("muxen is installed: {}", s.path),
- "missing" => format!("Not installed (it would go in {}). Run `muxen shell-command install`.", s.path),
+ "installed" => format!("muxin is installed: {}", s.path),
+ "missing" => format!("Not installed (it would go in {}). Run `muxin shell-command install`.", s.path),
"other" => format!("{} is something else{}", s.path, s.target.as_deref().map(|t| format!(" (-> {t})")).unwrap_or_default()),
_ => "Not available here.".to_string(),
};
@@ -1660,7 +1662,7 @@ fn main() -> ExitCode {
/// Windows: started from Explorer or the Start menu, the window comes with a
/// console of its own (a terminal window). Start again without one: a
-/// console that has no window, which every ssh and PowerShell Muxen starts
+/// console that has no window, which every ssh and PowerShell Muxin starts
/// then shares instead of each opening a window. True when it did (this
/// process should end).
#[cfg(windows)]
@@ -1706,15 +1708,15 @@ fn open(args: OpenArgs, runtime: &tokio::runtime::Runtime) -> u8 {
#[cfg(not(feature = "gui"))]
{
let _ = (engine, args.view);
- eprintln!("This build of Muxen has no window (built without the `gui` feature).");
- eprintln!("Use the commands (`muxen --help`) or the MCP server (`muxen mcp`).");
+ eprintln!("This build of Muxin has no window (built without the `gui` feature).");
+ eprintln!("Use the commands (`muxin --help`) or the MCP server (`muxin mcp`).");
2
}
}
/// Runs one agent-facing command: JSON or human output on stdout, errors with a
/// code (0 ok, 1 failed, 2 bad input / not found).
-/// `muxen cp <machine>:<path>... <machine>:<folder>`
+/// `muxin cp <machine>:<path>... <machine>:<folder>`
fn cp(a: CpArgs, runtime: &tokio::runtime::Runtime) -> u8 {
let place = |s: &str| s.split_once(':').map(|(m, p)| (m.to_string(), p.to_string()));
let (dest, sources) = a.paths.split_last().expect("clap requires two");
@@ -1868,7 +1870,7 @@ fn workspace(cmd: WorkspaceCommand, runtime: &tokio::runtime::Runtime) -> u8 {
/// `workspace exec`: passes the command's output through and exits with its exit code
/// (124 when it timed out, like `timeout(1)`), so it composes in scripts.
-/// `muxen run`: each machine's output under its name; exits 1 when any failed.
+/// `muxin run`: each machine's output under its name; exits 1 when any failed.
fn fleet_run(a: FleetRunArgs, runtime: &tokio::runtime::Runtime) -> u8 {
let _guard = runtime.enter();
let engine = Engine::new(a.agent.common.paths(), a.agent.demo);
@@ -1940,9 +1942,9 @@ fn workspace_exec(a: WsExecArgs, runtime: &tokio::runtime::Runtime) -> u8 {
if let Some(log) = &out.log_path {
eprintln!("started in the background (pid {}), log: {log}", out.background_pid.map(|p| p.to_string()).unwrap_or_else(|| "?".into()));
} else if out.timed_out {
- eprintln!("muxen: timed out after {}s", out.duration_ms / 1000);
+ eprintln!("muxin: timed out after {}s", out.duration_ms / 1000);
} else if out.truncated {
- eprintln!("muxen: output was truncated (the middle was dropped)");
+ eprintln!("muxin: output was truncated (the middle was dropped)");
}
}
match (out.exit_code, out.timed_out) {
@@ -2138,7 +2140,7 @@ fn services(a: ServicesArgs, runtime: &tokio::runtime::Runtime) -> u8 {
run(runtime, &a.agent, async move |e| api::service_action(&e, req).await, |v| format!("{} {}.\n", past(v["action"].as_str().unwrap_or("")), v["name"].as_str().unwrap_or("")))
}
(Some(_), None) => {
- eprintln!("error: which service or container? muxen services <machine> <action> <name>");
+ eprintln!("error: which service or container? muxin services <machine> <action> <name>");
2
}
}
@@ -2262,7 +2264,7 @@ fn session(cmd: SessionCommand, runtime: &tokio::runtime::Runtime) -> u8 {
run(runtime, &a.agent, async move |e| api::session_question(&e, req).await, |q| {
let mut out: String = q.text.iter().map(|l| format!("{l}\n")).collect();
if q.options.is_empty() {
- out.push_str("(waiting for a message: muxen session send)\n");
+ out.push_str("(waiting for a message: muxin session send)\n");
}
for o in &q.options {
let mark = if q.selected.as_deref() == Some(o.key.as_str()) { "›" } else { " " };
@@ -2359,7 +2361,7 @@ fn init(args: InitArgs) -> u8 {
return 1;
}
println!("Wrote {}", display_path(&paths.inventory));
- println!("Add your machines, then run `muxen` to open the dashboard.");
+ println!("Add your machines, then run `muxin` to open the dashboard.");
0
}
@@ -2383,7 +2385,7 @@ mod tests {
#[test]
fn parses_workspace_commands() {
- let cli = Cli::try_parse_from(["muxen", "ws", "exec", "ws-abc123", "--env", "A=1", "--", "npm", "test"]).unwrap();
+ let cli = Cli::try_parse_from(["muxin", "ws", "exec", "ws-abc123", "--env", "A=1", "--", "npm", "test"]).unwrap();
match cli.command {
Some(Command::Workspace(WorkspaceCommand::Exec(a))) => {
assert_eq!(a.workspace_id, "ws-abc123");
@@ -2392,8 +2394,8 @@ mod tests {
}
_ => panic!("expected workspace exec"),
}
- assert!(Cli::try_parse_from(["muxen", "workspace", "sync", "ws-1", "."]).is_err(), "needs --push or --pull");
- assert!(Cli::try_parse_from(["muxen", "workspace", "sync", "ws-1", ".", "--push", "--pull"]).is_err());
- assert!(Cli::try_parse_from(["muxen", "workspace", "create", "--platform", "linux", "--repo", "acme/api", "--ref", "main", "--json"]).is_ok());
+ assert!(Cli::try_parse_from(["muxin", "workspace", "sync", "ws-1", "."]).is_err(), "needs --push or --pull");
+ assert!(Cli::try_parse_from(["muxin", "workspace", "sync", "ws-1", ".", "--push", "--pull"]).is_err());
+ assert!(Cli::try_parse_from(["muxin", "workspace", "create", "--platform", "linux", "--repo", "acme/api", "--ref", "main", "--json"]).is_ok());
}
}
diff --git a/src/mcp.rs b/src/mcp.rs
index 77c78a0..77d6886 100644
--- a/src/mcp.rs
+++ b/src/mcp.rs
@@ -1,4 +1,4 @@
-//! `muxen mcp`: a Model Context Protocol server over stdio, so agents
+//! `muxin mcp`: a Model Context Protocol server over stdio, so agents
//! (Claude Code, Codex, any MCP client) can see and work with the user's machines.
//!
//! Transport: newline-delimited JSON-RPC 2.0 on stdin/stdout. Stdout carries
@@ -19,7 +19,7 @@ use crate::fleet::Engine;
const PROTOCOL_VERSIONS: &[&str] = &["2025-06-18", "2025-03-26", "2024-11-05"];
const INSTRUCTIONS: &str = "\
-Muxen is one app for all of the user's machines (reached with the system ssh, or directly for \
+Muxin is one app for all of the user's machines (reached with the system ssh, or directly for \
host \"local\"): agent sessions, desktops, files, GitHub, workspaces, cloud machines, and the \
self-hosted GitHub Actions runners on them.
@@ -49,8 +49,8 @@ done: nothing is deleted automatically. Commands run as the user on a real machi
anything there you wouldn't do in their own terminal without asking.
Agent sessions: long-running terminals on the user's machines, each running an AI agent CLI (Claude \
-Code, Codex, OpenCode, Gemini CLI, Amp, Pi) or a plain shell, kept alive by Muxen's agent on \
-the machine so they survive disconnects. The user watches and types into them in the Muxen app. session_list shows them \
+Code, Codex, OpenCode, Gemini CLI, Amp, Pi) or a plain shell, kept alive by Muxin's agent on \
+the machine so they survive disconnects. The user watches and types into them in the Muxin app. session_list shows them \
(and which agents each machine has); session_start starts one, optionally with a first prompt; \
session_read returns its screen as text; session_send types into it; session_stop ends it. \
Sessions belong to the user: only start, type into or stop one when they asked you to.
@@ -160,7 +160,7 @@ async fn handle(engine: &Arc<Engine>, session: &Session, method: &str, params: V
Ok(json!({
"protocolVersion": version,
"capabilities": { "tools": { "listChanged": false } },
- "serverInfo": { "name": "muxen", "title": "Muxen", "version": env!("CARGO_PKG_VERSION") },
+ "serverInfo": { "name": "muxin", "title": "Muxin", "version": env!("CARGO_PKG_VERSION") },
"instructions": INSTRUCTIONS,
}))
}
@@ -437,7 +437,7 @@ pub fn tools() -> Vec<Value> {
}),
json!({
"name": "add_machine",
- "description": "Add a machine to Muxen (written to config.toml, comments preserved) and check it. `host` is anything the system ssh accepts (user@host, an ~/.ssh/config alias; see list_ssh_hosts) or \"local\" for this computer. Key-based ssh must work without a password prompt. Doesn't install anything.",
+ "description": "Add a machine to Muxin (written to config.toml, comments preserved) and check it. `host` is anything the system ssh accepts (user@host, an ~/.ssh/config alias; see list_ssh_hosts) or \"local\" for this computer. Key-based ssh must work without a password prompt. Doesn't install anything.",
"inputSchema": schema(json!({
"name": { "type": "string", "description": "Display name, e.g. \"Mac Studio\"." },
"host": { "type": "string", "description": "ssh destination or \"local\"." },
@@ -462,7 +462,7 @@ pub fn tools() -> Vec<Value> {
}),
json!({
"name": "connect_machine",
- "description": "Disconnect from a machine (connected: false) or connect to it again. Disconnected, Muxen closes its connection and stops checking it and reading its sessions (status \"disconnected\"); its sessions keep running there, and anything that would reach it fails with \"<name> is disconnected\". Connecting checks it again. Saved in config.toml; nothing on the machine changes. Only when asked.",
+ "description": "Disconnect from a machine (connected: false) or connect to it again. Disconnected, Muxin closes its connection and stops checking it and reading its sessions (status \"disconnected\"); its sessions keep running there, and anything that would reach it fails with \"<name> is disconnected\". Connecting checks it again. Saved in config.toml; nothing on the machine changes. Only when asked.",
"inputSchema": schema(json!({
"machine_id": { "type": "string", "description": MACHINE_ID },
"connected": { "type": "boolean", "description": "false disconnects; true (the default) connects." }
@@ -527,7 +527,7 @@ pub fn tools() -> Vec<Value> {
}),
json!({
"name": "cloud_destroy",
- "description": "Destroy a cloud machine Muxen created: deletes the droplet (everything on it is lost) and removes it from Muxen. Confirm with the user first; make sure work there is pushed.",
+ "description": "Destroy a cloud machine Muxin created: deletes the droplet (everything on it is lost) and removes it from Muxin. Confirm with the user first; make sure work there is pushed.",
"inputSchema": schema(json!({ "machine_id": { "type": "string" }, "wait": { "type": "boolean" } }), &["machine_id"]),
"annotations": annotations("Destroy cloud machine", false, true, true, true),
}),
@@ -545,7 +545,7 @@ pub fn tools() -> Vec<Value> {
}),
json!({
"name": "schedule_list",
- "description": "Schedules on the user's machines (or one): commands or agent sessions that run there at set times, kept and run by Muxen's agent through the machine's own scheduler (cron, launchd, Task Scheduler), so they run whether or not Muxen is open. Each with `when` (and `when_text`, in the machine's own time), `what`, `enabled`, `running` and `last_run` (ok, exit_code, or the agent session it started). `problem` says when a machine can't run them (no cron). Read-only.",
+ "description": "Schedules on the user's machines (or one): commands or agent sessions that run there at set times, kept and run by Muxin's agent through the machine's own scheduler (cron, launchd, Task Scheduler), so they run whether or not Muxin is open. Each with `when` (and `when_text`, in the machine's own time), `what`, `enabled`, `running` and `last_run` (ok, exit_code, or the agent session it started). `problem` says when a machine can't run them (no cron). Read-only.",
"inputSchema": schema(json!({ "machine_id": { "type": "string", "description": MACHINE_ID } }), &[]),
"annotations": annotations("List schedules", true, false, true, false),
}),
@@ -596,9 +596,9 @@ pub fn tools() -> Vec<Value> {
}),
json!({
"name": "vm_create",
- "description": "Create a VM on one of the user's machines and add it to them (shown under that machine). Windows (dockur/windows with KVM) downloads and installs itself, 15-30 minutes the first time: call with wait: false and poll get_operation. Linux is a container with ssh, ready in under a minute (it shares the host's kernel, no systemd). Muxen sets up ssh with this computer's key and its agent, so sessions, files, workspace_exec and the desktop work like on any machine. `host` defaults to the machine with the most free memory that can run it. The result names the new machine_id. It uses the user's machine and disk: only when asked, or when the task needs a fresh machine; destroy it when done unless they want to keep it.",
+ "description": "Create a VM on one of the user's machines and add it to them (shown under that machine). Windows (dockur/windows with KVM) downloads and installs itself, 15-30 minutes the first time: call with wait: false and poll get_operation. Linux is a container with ssh, ready in under a minute (it shares the host's kernel, no systemd). Muxin sets up ssh with this computer's key and its agent, so sessions, files, workspace_exec and the desktop work like on any machine. `host` defaults to the machine with the most free memory that can run it. The result names the new machine_id. It uses the user's machine and disk: only when asked, or when the task needs a fresh machine; destroy it when done unless they want to keep it.",
"inputSchema": schema(json!({
- "name": { "type": "string", "description": "Its name in Muxen, e.g. \"win-test\"." },
+ "name": { "type": "string", "description": "Its name in Muxin, e.g. \"win-test\"." },
"system": { "type": "string", "description": "A system id from vm_options, e.g. windows-11 or ubuntu-24.04." },
"host": { "type": "string", "description": MACHINE_ID },
"cpus": { "type": "integer", "minimum": 1, "description": "Default 4." },
@@ -612,7 +612,7 @@ pub fn tools() -> Vec<Value> {
}),
json!({
"name": "vm_destroy",
- "description": "Destroy a VM Muxen made (vm_create): removes its container and disk on its host (everything in it is lost) and the machine from Muxen. Confirm with the user first unless they asked for it, or you made it for the task; copy out anything worth keeping. machine_power stops one without deleting it.",
+ "description": "Destroy a VM Muxin made (vm_create): removes its container and disk on its host (everything in it is lost) and the machine from Muxin. Confirm with the user first unless they asked for it, or you made it for the task; copy out anything worth keeping. machine_power stops one without deleting it.",
"inputSchema": schema(json!({ "machine_id": { "type": "string", "description": MACHINE_ID }, "wait": { "type": "boolean" } }), &["machine_id"]),
"annotations": annotations("Destroy VM", false, true, true, true),
}),
@@ -628,7 +628,7 @@ pub fn tools() -> Vec<Value> {
}),
json!({
"name": "get_operation",
- "description": "Status and output of an install or runner action started by this server (use after wait=false or a timeout). Lines starting with \"▸ \" are Muxen's steps, \"✓ \" successes, \"error: \" problems.",
+ "description": "Status and output of an install or runner action started by this server (use after wait=false or a timeout). Lines starting with \"▸ \" are Muxin's steps, \"✓ \" successes, \"error: \" problems.",
"inputSchema": schema(json!({
"operation_id": { "type": "integer" },
"tail": { "type": "integer", "minimum": 0, "description": "Log lines from the end. Default 80." }
@@ -652,7 +652,7 @@ pub fn tools() -> Vec<Value> {
}),
json!({
"name": "copy_files",
- "description": "Copies files and folders from one of the user's machines to another (this computer included), through Muxen: the machines don't need to reach each other. Folders come along whole, with permissions. Files with the same names in the destination folder are replaced, so check it with list_files first and confirm with the user before overwriting. Waits by default and returns the operation(s) with a log; with wait=false poll get_operation, and cancel_operation stops a copy.",
+ "description": "Copies files and folders from one of the user's machines to another (this computer included), through Muxin: the machines don't need to reach each other. Folders come along whole, with permissions. Files with the same names in the destination folder are replaced, so check it with list_files first and confirm with the user before overwriting. Waits by default and returns the operation(s) with a log; with wait=false poll get_operation, and cancel_operation stops a copy.",
"inputSchema": schema(json!({
"from": { "type": "string", "description": "Machine with the files." },
"paths": { "type": "array", "items": { "type": "string" }, "description": "Files or folders on it, e.g. [\"~/build/app.tar.gz\", \"~/reports\"]." },
@@ -697,7 +697,7 @@ pub fn tools() -> Vec<Value> {
}),
json!({
"name": "list_ssh_hosts",
- "description": "Hosts to suggest for add_machine: aliases from the user's ~/.ssh/config; computers on their Tailscale network (`tailnet`, when Tailscale is on here: each with the `host` to add it by, whether Tailscale sees it online, and `machine_id` when it's already in Muxen; a machine added by its tailnet name is reachable from anywhere); and computers on this local network that aren't in Muxen yet (`network`: `ssh: false` means a Mac with Remote Login off, which the user turns on in System Settings › General › Sharing). Listens on the network for a few seconds.",
+ "description": "Hosts to suggest for add_machine: aliases from the user's ~/.ssh/config; computers on their Tailscale network (`tailnet`, when Tailscale is on here: each with the `host` to add it by, whether Tailscale sees it online, and `machine_id` when it's already in Muxin; a machine added by its tailnet name is reachable from anywhere); and computers on this local network that aren't in Muxin yet (`network`: `ssh: false` means a Mac with Remote Login off, which the user turns on in System Settings › General › Sharing). Listens on the network for a few seconds.",
"inputSchema": schema(json!({}), &[]),
"annotations": annotations("List ssh hosts", true, false, true, false),
}),
@@ -705,7 +705,7 @@ pub fn tools() -> Vec<Value> {
"name": "workspace_create",
"description": "Check out one of the user's own machines as your work environment, like a remote dev box: creates a persistent folder there (optionally cloning a git repo at a ref, or creating a new branch) and returns a workspace_id for the other workspace_* tools. Omit machine_id to get the least-loaded online machine that allows workspaces, filtered by `platform` (e.g. \"linux\" to run tests on Linux). Use one workspace per task and reuse it across steps. Nothing is deleted automatically: call workspace_destroy when done. Private GitHub repos are cloned with the user's gh login. To work on a repository that's already checked out on a machine (local_checkouts), pass its folder as `worktree_of`: the workspace is then a git worktree of it on its own branch, quicker than a clone, and several agents can work on that repository side by side; workspace_destroy removes the worktree and keeps the branch.",
"inputSchema": schema(json!({
- "machine_id": { "type": "string", "description": "Machine to use; omit to let Muxen pick." },
+ "machine_id": { "type": "string", "description": "Machine to use; omit to let Muxin pick." },
"platform": { "type": "string", "description": "When picking: platform prefix such as \"linux\", \"linux-x64\", \"darwin-arm64\", \"windows\"." },
"name": { "type": "string", "description": "Short label, e.g. \"api-tests\". Defaults to the repo name." },
"repo": { "type": "string", "description": "Git URL, or \"owner/repo\" for GitHub, to clone into the workspace." },
@@ -811,13 +811,13 @@ pub fn tools() -> Vec<Value> {
}),
json!({
"name": "session_list",
- "description": "Agent sessions on the user's machines: terminals running Claude Code, Codex, OpenCode, Gemini CLI, Amp, Pi or a shell, kept alive by Muxen's agent on the machine. Each has an id (<machine-id>/<name>), agent, title, folder, status (running/exited), busy (printed output in the last few seconds, i.e. the agent is working) and the command a human can paste to attach. Also lists, per machine, the agent CLIs installed. Reads the machines over ssh, so it's always current (and sets up Muxen's agent on a machine the first time).",
+ "description": "Agent sessions on the user's machines: terminals running Claude Code, Codex, OpenCode, Gemini CLI, Amp, Pi or a shell, kept alive by Muxin's agent on the machine. Each has an id (<machine-id>/<name>), agent, title, folder, status (running/exited), busy (printed output in the last few seconds, i.e. the agent is working) and the command a human can paste to attach. Also lists, per machine, the agent CLIs installed. Reads the machines over ssh, so it's always current (and sets up Muxin's agent on a machine the first time).",
"inputSchema": schema(json!({ "machine_id": { "type": "string", "description": MACHINE_ID } }), &[]),
"annotations": annotations("List agent sessions", true, false, true, true),
}),
json!({
"name": "session_start",
- "description": "Start an agent CLI (or a shell) in a new session on a machine, in a folder there, optionally with a first prompt. It keeps running until stopped; the user can watch and type into it from the Muxen app. Returns the session. Only start sessions the user asked for.",
+ "description": "Start an agent CLI (or a shell) in a new session on a machine, in a folder there, optionally with a first prompt. It keeps running until stopped; the user can watch and type into it from the Muxin app. Returns the session. Only start sessions the user asked for.",
"inputSchema": schema(json!({
"machine_id": { "type": "string", "description": MACHINE_ID },
"agent": { "type": "string", "enum": ["claude", "codex", "opencode", "gemini", "amp", "pi", "shell"], "description": "Which CLI to run. session_list shows which are installed on each machine." },
@@ -848,7 +848,7 @@ pub fn tools() -> Vec<Value> {
}),
json!({
"name": "session_action",
- "description": "Ask a session's agent to do one of Muxen's session actions, by typing that action's prompt (the user may have changed it in Settings) into it: commit (commit its changes, don't push), commit_push, pull_request (push and open or update the branch's pull request), review (review the branch against the default branch, no code changes), fix_comments (address the pull request's review comments), conflicts (bring the branch up to date and resolve conflicts) or recap (summarize the session). session_list's `git` says which fit: a branch, a pull request. Only when the user asked for it.",
+ "description": "Ask a session's agent to do one of Muxin's session actions, by typing that action's prompt (the user may have changed it in Settings) into it: commit (commit its changes, don't push), commit_push, pull_request (push and open or update the branch's pull request), review (review the branch against the default branch, no code changes), fix_comments (address the pull request's review comments), conflicts (bring the branch up to date and resolve conflicts) or recap (summarize the session). session_list's `git` says which fit: a branch, a pull request. Only when the user asked for it.",
"inputSchema": schema(json!({
"session_id": { "type": "string", "description": SESSION_ID },
"action": { "type": "string", "enum": ["commit", "commit_push", "pull_request", "review", "fix_comments", "conflicts", "recap"], "description": "Which action." }
@@ -884,7 +884,7 @@ pub fn tools() -> Vec<Value> {
}),
json!({
"name": "session_rename",
- "description": "Give a session a new title (what the app's sidebar and session_list show). The agent on its machine keeps it, so it sticks for every Muxen. An empty title goes back to the one it started with. Doesn't touch what runs in it.",
+ "description": "Give a session a new title (what the app's sidebar and session_list show). The agent on its machine keeps it, so it sticks for every Muxin. An empty title goes back to the one it started with. Doesn't touch what runs in it.",
"inputSchema": schema(json!({
"session_id": { "type": "string", "description": SESSION_ID },
"title": { "type": "string", "description": "The new title, e.g. \"API server\"." }
@@ -905,13 +905,13 @@ pub fn tools() -> Vec<Value> {
}),
json!({
"name": "github_accounts",
- "description": "The GitHub accounts Muxen can use: the ones the GitHub CLI (gh) here is signed in to, plus each other machine's gh login (`machines`, e.g. a work laptop's work account). `using` (and `machine_id` when it's a machine's login) says which one Muxen uses for GitHub data, managing runners, and cloning into workspaces.",
+ "description": "The GitHub accounts Muxin can use: the ones the GitHub CLI (gh) here is signed in to, plus each other machine's gh login (`machines`, e.g. a work laptop's work account). `using` (and `machine_id` when it's a machine's login) says which one Muxin uses for GitHub data, managing runners, and cloning into workspaces.",
"inputSchema": schema(json!({}), &[]),
"annotations": annotations("GitHub accounts", true, false, true, false),
}),
json!({
"name": "github_use_account",
- "description": "Switch which GitHub account Muxen uses: one the GitHub CLI here is signed in to (login), or another machine's gh login (machine_id). Changes whose repositories, inbox and runners Muxen sees and manages; doesn't change the account gh uses in the user's terminal. Only when asked. To add an account the user runs `gh auth login`.",
+ "description": "Switch which GitHub account Muxin uses: one the GitHub CLI here is signed in to (login), or another machine's gh login (machine_id). Changes whose repositories, inbox and runners Muxin sees and manages; doesn't change the account gh uses in the user's terminal. Only when asked. To add an account the user runs `gh auth login`.",
"inputSchema": schema(json!({
"login": { "type": "string", "description": "A login from github_accounts (optional with machine_id)." },
"machine_id": { "type": "string", "description": "Use this machine's gh login (from github_accounts.machines)." }
@@ -920,7 +920,7 @@ pub fn tools() -> Vec<Value> {
}),
json!({
"name": "github_favorite",
- "description": "Add a repository to the user's favorites in Muxen (listed first in the app and in github_repos), or remove it with favorite: false. Only when asked.",
+ "description": "Add a repository to the user's favorites in Muxin (listed first in the app and in github_repos), or remove it with favorite: false. Only when asked.",
"inputSchema": schema(json!({
"repo": { "type": "string", "description": "\"owner/name\" or a GitHub URL." },
"favorite": { "type": "boolean", "description": "false removes it. Default true." }
@@ -950,7 +950,7 @@ pub fn tools() -> Vec<Value> {
}),
json!({
"name": "machine_connection",
- "description": "How Muxen reaches a machine right now: directly over QUIC (once paired), over a live ssh link, or not at all; with a measured round trip to its agent.",
+ "description": "How Muxin reaches a machine right now: directly over QUIC (once paired), over a live ssh link, or not at all; with a measured round trip to its agent.",
"inputSchema": schema(json!({ "machine_id": { "type": "string", "description": MACHINE_ID } }), &["machine_id"]),
"annotations": annotations("Machine connection", true, false, true, false),
}),
@@ -984,13 +984,13 @@ pub fn tools() -> Vec<Value> {
}),
json!({
"name": "desktop_displays",
- "description": "A machine's monitors: real ones and virtual ones Muxen added (virtual: true), each with an id to pass as `display`, its name, size and place on the desktop. On Linux, \"all\" is the whole desktop.",
+ "description": "A machine's monitors: real ones and virtual ones Muxin added (virtual: true), each with an id to pass as `display`, its name, size and place on the desktop. On Linux, \"all\" is the whole desktop.",
"inputSchema": schema(json!({ "machine_id": { "type": "string", "description": MACHINE_ID } }), &["machine_id"]),
"annotations": annotations("List displays", true, false, true, false),
}),
json!({
"name": "desktop_add_display",
- "description": "Add a virtual monitor to a machine's desktop, like plugging in another screen (no screen needed): windows can move there, and you can screenshot and use it on its own (pass its id as `display`). Linux (X11) and macOS. On Linux it takes root: when sudo there wants a password, this fails and the user adds the monitor from the Muxen app, which asks for it. Stays until removed or the machine restarts. Only when asked.",
+ "description": "Add a virtual monitor to a machine's desktop, like plugging in another screen (no screen needed): windows can move there, and you can screenshot and use it on its own (pass its id as `display`). Linux (X11) and macOS. On Linux it takes root: when sudo there wants a password, this fails and the user adds the monitor from the Muxin app, which asks for it. Stays until removed or the machine restarts. Only when asked.",
"inputSchema": schema(json!({
"machine_id": { "type": "string", "description": MACHINE_ID },
"width": { "type": "integer", "minimum": 640, "maximum": 7680, "description": "Default: the main monitor's width." },
@@ -1001,7 +1001,7 @@ pub fn tools() -> Vec<Value> {
}),
json!({
"name": "desktop_remove_display",
- "description": "Remove a virtual monitor Muxen added (desktop_displays shows them as virtual: true). Windows on it move to the other monitors.",
+ "description": "Remove a virtual monitor Muxin added (desktop_displays shows them as virtual: true). Windows on it move to the other monitors.",
"inputSchema": schema(json!({
"machine_id": { "type": "string", "description": MACHINE_ID },
"display": { "type": "string", "description": DISPLAY_ID }
@@ -1047,7 +1047,7 @@ pub fn tools() -> Vec<Value> {
}),
json!({
"name": "service_action",
- "description": "Start, stop or restart a service or container on a machine; enable or disable whether a systemd service starts at boot. The system's services need root: when sudo there wants a password this fails, and the user does it from the Muxen app (which asks). Stopping ssh, tailscaled or the network can cut the machine off. It changes the user's machine: only when asked.",
+ "description": "Start, stop or restart a service or container on a machine; enable or disable whether a systemd service starts at boot. The system's services need root: when sudo there wants a password this fails, and the user does it from the Muxin app (which asks). Stopping ssh, tailscaled or the network can cut the machine off. It changes the user's machine: only when asked.",
"inputSchema": schema(json!({
"machine_id": { "type": "string", "description": MACHINE_ID },
"name": { "type": "string", "description": "The service's or container's name, as machine_services lists it (e.g. nginx, postgres)." },
@@ -1084,13 +1084,13 @@ pub fn tools() -> Vec<Value> {
}),
json!({
"name": "machine_processes",
- "description": "A machine's processes, the busiest few hundred: pid, user, name, command line, cpu (percent of one core), memory (bytes), how long it has run, GPU memory when NVIDIA says, and yours (owned by the user Muxen runs as); and its GPUs (NVIDIA, AMD on Linux, Apple): name, busy percent, memory used and total, temperature and power when known. Read-only.",
+ "description": "A machine's processes, the busiest few hundred: pid, user, name, command line, cpu (percent of one core), memory (bytes), how long it has run, GPU memory when NVIDIA says, and yours (owned by the user Muxin runs as); and its GPUs (NVIDIA, AMD on Linux, Apple): name, busy percent, memory used and total, temperature and power when known. Read-only.",
"inputSchema": schema(json!({ "machine_id": { "type": "string", "description": MACHINE_ID } }), &["machine_id"]),
"annotations": annotations("List a machine's processes and GPUs", true, false, true, false),
}),
json!({
"name": "process_signal",
- "description": "Stop (SIGTERM, the default) or kill (SIGKILL) a process on a machine, by pid from machine_processes. Another user's process needs root: when sudo wants a password it fails with a hint to use the Muxen app. It ends something on the user's machine: only when asked, and say which process first.",
+ "description": "Stop (SIGTERM, the default) or kill (SIGKILL) a process on a machine, by pid from machine_processes. Another user's process needs root: when sudo wants a password it fails with a hint to use the Muxin app. It ends something on the user's machine: only when asked, and say which process first.",
"inputSchema": schema(json!({
"machine_id": { "type": "string", "description": MACHINE_ID },
"pid": { "type": "integer" },
@@ -1111,7 +1111,7 @@ pub fn tools() -> Vec<Value> {
}),
json!({
"name": "wake_machine",
- "description": "Wake a machine that's asleep or shut down (Wake on LAN), when its network card is known (Muxen learns it while the machine is on) and it's set up to wake that way. The signal goes from this computer and from online machines on the same network. Muxen checks it again after 20 and 40 seconds.",
+ "description": "Wake a machine that's asleep or shut down (Wake on LAN), when its network card is known (Muxin learns it while the machine is on) and it's set up to wake that way. The signal goes from this computer and from online machines on the same network. Muxin checks it again after 20 and 40 seconds.",
"inputSchema": schema(json!({ "machine_id": { "type": "string", "description": MACHINE_ID } }), &["machine_id"]),
"annotations": annotations("Wake a machine", false, false, true, true),
}),
@@ -1126,7 +1126,7 @@ pub fn tools() -> Vec<Value> {
}),
json!({
"name": "machine_ports",
- "description": "What's listening on a machine: each TCP port (port, address it listens on, host to connect to) with its program or Docker container, and for web servers (web: true) the status and title of their front page. Read-only. The user opens them on their computer from the Muxen app (machine page › Servers), or with `muxen forward <machine> <port>`.",
+ "description": "What's listening on a machine: each TCP port (port, address it listens on, host to connect to) with its program or Docker container, and for web servers (web: true) the status and title of their front page. Read-only. The user opens them on their computer from the Muxin app (machine page › Servers), or with `muxin forward <machine> <port>`.",
"inputSchema": schema(json!({ "machine_id": { "type": "string", "description": MACHINE_ID } }), &["machine_id"]),
"annotations": annotations("List a machine's servers", true, false, true, false),
}),
@@ -1188,14 +1188,14 @@ pub fn print_config() -> String {
.ok()
.and_then(|p| p.canonicalize().ok())
.map(|p| p.display().to_string())
- .unwrap_or_else(|| "muxen".into());
+ .unwrap_or_else(|| "muxin".into());
let json_block = serde_json::to_string_pretty(&json!({
- "mcpServers": { "muxen": { "command": exe, "args": ["mcp"] } }
+ "mcpServers": { "muxin": { "command": exe, "args": ["mcp"] } }
}))
.unwrap_or_default();
format!(
- "# Claude Code\nclaude mcp add muxen -- {exe} mcp\n\n\
- # Codex (~/.codex/config.toml)\n[mcp_servers.muxen]\ncommand = \"{exe}\"\nargs = [\"mcp\"]\n\n\
+ "# Claude Code\nclaude mcp add muxin -- {exe} mcp\n\n\
+ # Codex (~/.codex/config.toml)\n[mcp_servers.muxin]\ncommand = \"{exe}\"\nargs = [\"mcp\"]\n\n\
# Other MCP clients (Claude Desktop, Cursor, ...)\n{json_block}\n\n\
# Try it safely first with simulated machines: add \"--demo\" after \"mcp\".\n"
)
@@ -1314,7 +1314,7 @@ mod tests {
let init: Value = recv().await;
assert_eq!(init["id"], 1);
assert_eq!(init["result"]["protocolVersion"], "2025-03-26");
- assert_eq!(init["result"]["serverInfo"]["name"], "muxen");
+ assert_eq!(init["result"]["serverInfo"]["name"], "muxin");
assert!(init["result"]["instructions"].as_str().unwrap().contains("Start with status"));
send(json!({"jsonrpc":"2.0","method":"notifications/initialized"})).await;
diff --git a/src/ops/cloud.rs b/src/ops/cloud.rs
index b5e9faa..c1b07a9 100644
--- a/src/ops/cloud.rs
+++ b/src/ops/cloud.rs
@@ -92,7 +92,7 @@ impl Engine {
let settings = self.settings().cloud;
let extras = req.install.unwrap_or(settings.install);
if let Some(bad) = extras.iter().find(|e| !setup::EXTRAS.iter().any(|(id, _)| id == e)) {
- return Err(format!("Muxen doesn't know how to install \"{bad}\". It knows: {}.", setup::EXTRAS.iter().map(|(id, _)| *id).collect::<Vec<_>>().join(", ")));
+ return Err(format!("Muxin doesn't know how to install \"{bad}\". It knows: {}.", setup::EXTRAS.iter().map(|(id, _)| *id).collect::<Vec<_>>().join(", ")));
}
let op = self.begin_op("cloud-create", format!("Create {name} on DigitalOcean"), None, None);
let me = self.clone();
@@ -132,7 +132,7 @@ impl Engine {
Some(k) => k,
None => {
self.op_log(op, format!("▸ Adding {key_path} to your DigitalOcean account"));
- client.add_ssh_key(&format!("Muxen · {}", crate::config::local_hostname()), public_key.trim()).await?
+ client.add_ssh_key(&format!("Muxin · {}", crate::config::local_hostname()), public_key.trim()).await?
}
};
@@ -179,13 +179,13 @@ impl Engine {
self.join_tailnet(op, &spec).await;
}
- // Muxen's agent, so terminals, sessions and files work right away.
- self.op_log(op, "▸ Installing Muxen's agent");
+ // Muxin's agent, so terminals, sessions and files work right away.
+ self.op_log(op, "▸ Installing Muxin's agent");
self.run_check(Some(vec![machine_id.clone()])).await;
let probe = self.machine(&machine_id).and_then(|(_, p)| p);
match crate::fleet::sessions::agent::ensure(&spec, probe.as_ref()).await {
Ok(()) => self.op_log(op, "✓ Agent installed"),
- Err(e) => self.op_log(op, format!("! The agent didn't install yet ({e}); Muxen tries again when you open a terminal")),
+ Err(e) => self.op_log(op, format!("! The agent didn't install yet ({e}); Muxin tries again when you open a terminal")),
}
self.op_log(op, format!("✓ {name} is ready"));
Ok(())
@@ -255,10 +255,10 @@ impl Engine {
}
}
- /// Destroys a cloud machine: deletes the droplet and removes it from Muxen.
+ /// Destroys a cloud machine: deletes the droplet and removes it from Muxin.
pub fn cloud_destroy(self: &Arc<Self>, machine_id: &str) -> Result<u64, String> {
- let (spec, _) = self.machine(machine_id).ok_or("That machine isn't in Muxen anymore.")?;
- let cloud = spec.cloud.clone().ok_or_else(|| format!("{} isn't a cloud machine Muxen created.", spec.name))?;
+ let (spec, _) = self.machine(machine_id).ok_or("That machine isn't in Muxin anymore.")?;
+ let cloud = spec.cloud.clone().ok_or_else(|| format!("{} isn't a cloud machine Muxin created.", spec.name))?;
if self.machine_busy(&spec.id) {
return Err("An operation is still running on this machine. Wait for it to finish.".into());
}
@@ -292,8 +292,8 @@ impl Engine {
/// Powers a cloud machine off (cleanly) or on. DigitalOcean still bills it while it's off.
pub fn cloud_power(self: &Arc<Self>, machine_id: &str, on: bool) -> Result<u64, String> {
- let (spec, _) = self.machine(machine_id).ok_or("That machine isn't in Muxen anymore.")?;
- let cloud = spec.cloud.clone().ok_or_else(|| format!("{} isn't a cloud machine Muxen created.", spec.name))?;
+ let (spec, _) = self.machine(machine_id).ok_or("That machine isn't in Muxin anymore.")?;
+ let cloud = spec.cloud.clone().ok_or_else(|| format!("{} isn't a cloud machine Muxin created.", spec.name))?;
if self.machine_busy(&spec.id) {
return Err("An operation is still running on this machine. Wait for it to finish.".into());
}
@@ -434,7 +434,7 @@ impl Engine {
account_error = Some(match method.as_str() {
// It says "not authorized" even with billing:read granted, at least for a new account.
"oauth" if !account_needs_sign_in => "DigitalOcean isn't sharing the bill yet; a new account may not have one.".to_string(),
- "oauth" => format!("Sign in again so Muxen can read your DigitalOcean bill. ({said})"),
+ "oauth" => format!("Sign in again so Muxin can read your DigitalOcean bill. ({said})"),
"doctl" => format!("doctl's token can't read billing; it needs billing:read. ({said})"),
_ => format!("This API token can't read billing; it needs billing:read. ({said})"),
});
diff --git a/src/ops/docker.rs b/src/ops/docker.rs
index 222aa32..673214f 100644
--- a/src/ops/docker.rs
+++ b/src/ops/docker.rs
@@ -65,7 +65,7 @@ impl Engine {
};
let files: Vec<String> = project.files.split(',').map(str::trim).filter(|f| !f.is_empty()).map(|f| format!("-f {}", sh_quote(f))).collect();
if files.is_empty() {
- return Err(format!("Muxen doesn't know where {}'s compose file is.", project.name));
+ return Err(format!("Muxin doesn't know where {}'s compose file is.", project.name));
}
let script = format!("{PATH}set -e\ndocker compose -p {} {} {verb}\n", sh_quote(&project.name), files.join(" "));
let title = format!("{} {}", match action {
@@ -91,7 +91,7 @@ impl Engine {
};
let files: Vec<String> = project.files.split(',').map(str::trim).filter(|f| !f.is_empty()).map(|f| format!("-f {}", sh_quote(f))).collect();
if files.is_empty() {
- return Err(format!("Muxen doesn't know where {}'s compose file is.", project.name));
+ return Err(format!("Muxin doesn't know where {}'s compose file is.", project.name));
}
let script = format!("{PATH}set -e\ndocker compose -p {} {} {verb} {}\n", sh_quote(&project.name), files.join(" "), sh_quote(service));
self.docker_op(machine_id, &format!("{title} {service} ({})", project.name), script)
diff --git a/src/ops/inventory_edit.rs b/src/ops/inventory_edit.rs
index 2219967..2b8ee72 100644
--- a/src/ops/inventory_edit.rs
+++ b/src/ops/inventory_edit.rs
@@ -1,5 +1,5 @@
//! Edits config.toml in place with `toml_edit`, so the user's comments, ordering
-//! and formatting survive when Muxen adds or removes machines and runners.
+//! and formatting survive when Muxin adds or removes machines and runners.
//! Every function works on text, which lets demo mode reuse them on its
//! in-memory inventory.
@@ -143,7 +143,7 @@ pub fn set_machine_cloud(text: &str, machine_id: &str, cloud: Option<&crate::con
finish(doc)
}
-/// Makes a machine one Muxen created as a VM: how ssh reaches it (through its
+/// Makes a machine one Muxin created as a VM: how ssh reaches it (through its
/// host, to the port its container publishes) and what it is.
pub fn set_machine_vm(text: &str, machine_id: &str, port: u16, user: &str, ssh_options: &[String], direct_address: Option<&str>, vm: &crate::config::VmRef) -> Result<String, String> {
let mut doc = parse(text)?;
@@ -278,7 +278,7 @@ fn machines_mut(doc: &mut DocumentMut) -> Result<&mut ArrayOfTables, String> {
}
doc.get_mut("machine")
.and_then(Item::as_array_of_tables_mut)
- .ok_or_else(|| "config.toml defines `machine` in a form Muxen can't edit. Use [[machine]] tables.".to_string())
+ .ok_or_else(|| "config.toml defines `machine` in a form Muxin can't edit. Use [[machine]] tables.".to_string())
}
fn table_name(t: &Table) -> &str {
diff --git a/src/ops/mod.rs b/src/ops/mod.rs
index 28a4f49..fe94c02 100644
--- a/src/ops/mod.rs
+++ b/src/ops/mod.rs
@@ -3,7 +3,7 @@
//! background, streams its output into `Snapshot::operations`, and refreshes the
//! affected machine when it finishes.
//!
-//! Operation log conventions: lines starting with "▸ " are Muxen's own
+//! Operation log conventions: lines starting with "▸ " are Muxin's own
//! steps, "✓ " marks a success, "error: " and "warning: " are problems; anything
//! else is output from the machine.
//!
@@ -204,7 +204,7 @@ impl Engine {
/// Starts an action on a runner (id as in `Runner::id`). Returns the operation id.
pub fn runner_action(self: &Arc<Self>, runner_id: &str, action: RunnerAction) -> Result<u64, String> {
let snap = self.current();
- let runner = snap.runners.iter().find(|r| r.id == runner_id).cloned().ok_or("That runner isn't in Muxen anymore.")?;
+ let runner = snap.runners.iter().find(|r| r.id == runner_id).cloned().ok_or("That runner isn't in Muxin anymore.")?;
let machine = runner.machine_id.as_deref().and_then(|id| self.machine(id));
let reachable = runner
.machine_id
@@ -224,7 +224,7 @@ impl Engine {
RunnerAction::Remove { delete_files } => self.remove_plan(&runner, delete_files)?,
_ => {
let (spec, probe) = machine.clone().ok_or_else(|| {
- format!("{} isn't on a machine in config.toml, so Muxen can't control it. It can only be removed from GitHub.", runner.name)
+ format!("{} isn't on a machine in config.toml, so Muxin can't control it. It can only be removed from GitHub.", runner.name)
})?;
if !spec.is_checkable() {
return Err(format!("{} has no host in config.toml.", spec.name));
@@ -269,7 +269,7 @@ impl Engine {
let on_machine = machine.filter(|(spec, _)| spec.is_checkable() && reachable && dir.is_some());
Ok(match on_machine {
Some((spec, probe)) => {
- let scope = runner_scope(runner).ok_or_else(|| format!("Muxen doesn't know which GitHub org or repo {} is registered with.", runner.name))?;
+ let scope = runner_scope(runner).ok_or_else(|| format!("Muxin doesn't know which GitHub org or repo {} is registered with.", runner.name))?;
Plan::OnMachine {
spec,
probe,
@@ -392,7 +392,7 @@ impl Engine {
fn validate_install(&self, mut req: InstallRequest) -> Result<InstallRequest, String> {
let (spec, _) = self.machine(&req.machine_id).ok_or("That machine isn't in config.toml anymore.")?;
if !spec.is_checkable() {
- return Err(format!("{} has no host in config.toml, so Muxen can't reach it.", spec.name));
+ return Err(format!("{} has no host in config.toml, so Muxin can't reach it.", spec.name));
}
if self.machine_busy(&spec.id) {
return Err(format!("Another operation is already changing {}. Wait for it to finish.", spec.name));
@@ -539,7 +539,7 @@ fn validate_machine(name: &str, host: &str) -> Result<(), String> {
}
// A leading '-' would be read by ssh as an option.
if host.starts_with('-') || host.len() > 255 || !host.chars().all(|c| c.is_ascii_alphanumeric() || "@._-:[]%".contains(c)) {
- return Err(format!("\"{host}\" isn't an ssh destination Muxen can use."));
+ return Err(format!("\"{host}\" isn't an ssh destination Muxin can use."));
}
Ok(())
}
@@ -703,7 +703,7 @@ async fn record_installed(engine: &Arc<Engine>, op: u64, req: &InstallRequest, s
step(engine, op, format!("Adding {} to config.toml", done.join(", ")));
let edit = inventory_edit::edit_file(engine.inventory_path(), |t| inventory_edit::add_runners(t, &spec.id, &done));
if let Err(e) = edit {
- engine.op_log(op, format!("warning: {e} The runners still show up because Muxen discovers them."));
+ engine.op_log(op, format!("warning: {e} The runners still show up because Muxin discovers them."));
}
engine.reload_inventory_now();
}
diff --git a/src/ops/power.rs b/src/ops/power.rs
index 0a0861a..f2992f0 100644
--- a/src/ops/power.rs
+++ b/src/ops/power.rs
@@ -19,14 +19,14 @@ const STOP_GRACE_SECS: u32 = 120;
impl Engine {
/// Powers a machine on or off, however that's done for it.
pub fn machine_power(self: &Arc<Self>, machine_id: &str, on: bool) -> Result<u64, String> {
- let (spec, _) = self.machine(machine_id).ok_or("That machine isn't in Muxen anymore.")?;
+ let (spec, _) = self.machine(machine_id).ok_or("That machine isn't in Muxin anymore.")?;
if spec.cloud.is_some() {
return self.cloud_power(&spec.id, on);
}
let parent = self.current().machines.iter().find(|m| m.id == spec.id).and_then(|m| m.parent.clone()).filter(|p| p.container.is_some());
match parent {
Some(p) => self.vm_power(&spec, p, on),
- None => Err(format!("Muxen can't power {} on or off: it isn't a cloud machine, or a VM in a Docker container on another of your machines.", spec.name)),
+ None => Err(format!("Muxin can't power {} on or off: it isn't a cloud machine, or a VM in a Docker container on another of your machines.", spec.name)),
}
}
@@ -35,9 +35,9 @@ impl Engine {
fn vm_power(self: &Arc<Self>, spec: &MachineSpec, parent: ParentMachine, on: bool) -> Result<u64, String> {
let container = parent.container.clone().unwrap_or_default();
if !valid_container(&container) {
- return Err(format!("\"{container}\" isn't a container name Muxen can use."));
+ return Err(format!("\"{container}\" isn't a container name Muxin can use."));
}
- let (host, host_probe) = self.machine(&parent.machine_id).ok_or_else(|| format!("{} isn't in Muxen anymore.", parent.name))?;
+ let (host, host_probe) = self.machine(&parent.machine_id).ok_or_else(|| format!("{} isn't in Muxin anymore.", parent.name))?;
host.refuse_if_disconnected()?;
if self.machine_busy(&spec.id) || self.machine_busy(&host.id) {
return Err("An operation is still running on this machine. Wait for it to finish.".into());
diff --git a/src/ops/scripts/control.ps1 b/src/ops/scripts/control.ps1
index 42e9123..b14c86f 100644
--- a/src/ops/scripts/control.ps1
+++ b/src/ops/scripts/control.ps1
@@ -1,5 +1,5 @@
-# Muxen: control one installed runner (Windows).
-# Muxen prepends: $OR_ACTION (start|stop|restart|logs|remove), $OR_DIR,
+# Muxin: control one installed runner (Windows).
+# Muxin prepends: $OR_ACTION (start|stop|restart|logs|remove), $OR_DIR,
# $OR_TOKEN (remove only), $OR_DELETE (bool).
$ErrorActionPreference = 'Stop'
diff --git a/src/ops/scripts/control.sh b/src/ops/scripts/control.sh
index 57f1708..2108c8c 100644
--- a/src/ops/scripts/control.sh
+++ b/src/ops/scripts/control.sh
@@ -1,5 +1,5 @@
-# Muxen: control one installed runner (macOS / Linux).
-# Muxen prepends these variables:
+# Muxin: control one installed runner (macOS / Linux).
+# Muxin prepends these variables:
# OR_ACTION start | stop | restart | logs | remove
# OR_DIR the runner folder (contains config.sh and .runner)
# OR_TOKEN remove token (remove only; empty skips deregistration)
diff --git a/src/ops/scripts/control_docker.sh b/src/ops/scripts/control_docker.sh
index b53810c..5db8b4e 100644
--- a/src/ops/scripts/control_docker.sh
+++ b/src/ops/scripts/control_docker.sh
@@ -1,5 +1,5 @@
-# Muxen: control one runner that lives in a Docker container.
-# Muxen prepends these variables:
+# Muxin: control one runner that lives in a Docker container.
+# Muxin prepends these variables:
# OR_ACTION start | stop | restart | logs | remove
# OR_CONTAINER the container, e.g. muxen-beelink-01
# OR_TOKEN remove token (remove only; empty skips deregistration)
diff --git a/src/ops/scripts/install.ps1 b/src/ops/scripts/install.ps1
index 7bef3dd..49ede32 100644
--- a/src/ops/scripts/install.ps1
+++ b/src/ops/scripts/install.ps1
@@ -1,5 +1,5 @@
-# Muxen: install GitHub Actions runners (Windows).
-# Muxen prepends: $OR_VERSION, $OR_URL, $OR_TOKEN, $OR_NAMES (array),
+# Muxin: install GitHub Actions runners (Windows).
+# Muxin prepends: $OR_VERSION, $OR_URL, $OR_TOKEN, $OR_NAMES (array),
# $OR_LABELS, $OR_GROUP, $OR_SERVICE (bool), $OR_BASE (empty: C:\actions-runner).
$ErrorActionPreference = 'Stop'
diff --git a/src/ops/scripts/install.sh b/src/ops/scripts/install.sh
index cbc4ed3..203f37b 100644
--- a/src/ops/scripts/install.sh
+++ b/src/ops/scripts/install.sh
@@ -1,5 +1,5 @@
-# Muxen: install GitHub Actions runners (macOS / Linux).
-# Muxen prepends these variables:
+# Muxin: install GitHub Actions runners (macOS / Linux).
+# Muxin prepends these variables:
# OR_VERSION runner release, e.g. 2.329.0
# OR_URL https://github.com/<org> or https://github.com/<owner>/<repo>
# OR_TOKEN registration token (short-lived)
diff --git a/src/ops/scripts/install_docker.sh b/src/ops/scripts/install_docker.sh
index b28e42c..a8961a5 100644
--- a/src/ops/scripts/install_docker.sh
+++ b/src/ops/scripts/install_docker.sh
@@ -1,6 +1,6 @@
-# Muxen: install GitHub Actions runners as Docker containers (Linux, or any
+# Muxin: install GitHub Actions runners as Docker containers (Linux, or any
# machine with a Docker daemon that runs Linux containers).
-# Muxen prepends these variables:
+# Muxin prepends these variables:
# OR_IMAGE runner image, e.g. ghcr.io/actions/actions-runner:2.329.0
# OR_IMAGE_FALLBACK image to try when OR_IMAGE can't be pulled (may be empty)
# OR_URL https://github.com/<org> or https://github.com/<owner>/<repo>
diff --git a/src/ops/scripts/vm_create.sh b/src/ops/scripts/vm_create.sh
index 214d801..32cafee 100644
--- a/src/ops/scripts/vm_create.sh
+++ b/src/ops/scripts/vm_create.sh
@@ -1,4 +1,4 @@
-# Creates a VM for Muxen on this machine: Windows in Docker with KVM
+# Creates a VM for Muxin on this machine: Windows in Docker with KVM
# (dockur/windows), or Linux in a container that runs sshd.
# Prepended: OR_OS OR_NAME OR_IMAGE OR_VERSION OR_CPUS OR_MEM OR_DISK OR_USER
# OR_PASS OR_KEY OR_HOSTNAME OR_SETUP OR_NPM. Prints ssh_port=N, udp_port=N
@@ -23,7 +23,7 @@ in_use() {
}
free_port() { p=$1; while in_use "$p"; do p=$((p + 1)); done; echo "$p"; }
ssh_port=$(free_port 2201)
-# Muxen's direct connections (QUIC) to the VM's agent: a UDP port on every
+# Muxin's direct connections (QUIC) to the VM's agent: a UDP port on every
# address here, forwarded to the agent's 47821 inside (it only talks to
# apps it's paired with).
udp_in_use() {
@@ -59,7 +59,7 @@ icacls $keys /inheritance:r /grant '*S-1-5-32-544:F' /grant '*S-1-5-18:F' | Out-
New-ItemProperty -Path HKLM:\SOFTWARE\OpenSSH -Name DefaultShell -Value "$env:SystemRoot\System32\WindowsPowerShell\v1.0\powershell.exe" -PropertyType String -Force | Out-Null
Set-Service -Name sshd -StartupType Automatic
Start-Service sshd
-New-NetFirewallRule -Name muxen-sshd -DisplayName 'OpenSSH (Muxen)' -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 22 -ErrorAction SilentlyContinue | Out-Null
+New-NetFirewallRule -Name muxen-sshd -DisplayName 'OpenSSH (Muxin)' -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 22 -ErrorAction SilentlyContinue | Out-Null
'ready' | Out-File C:\OEM\muxen.done
PS1
# The account's name and password in a file only this user reads, not on a command line.
@@ -90,5 +90,5 @@ linux)
echo "ssh_port=$ssh_port"
echo "udp_port=$udp_port"
;;
-*) fail "Muxen can't make a $OR_OS VM." ;;
+*) fail "Muxin can't make a $OR_OS VM." ;;
esac
diff --git a/src/ops/scripts/vm_destroy.sh b/src/ops/scripts/vm_destroy.sh
index 0f72dfd..ebfc127 100644
--- a/src/ops/scripts/vm_destroy.sh
+++ b/src/ops/scripts/vm_destroy.sh
@@ -1,8 +1,8 @@
-# Deletes a VM Muxen made here: its container and its folder (a Windows
+# Deletes a VM Muxin made here: its container and its folder (a Windows
# VM's disk). Prepended: OR_NAME (always "muxen-...").
set -u
PATH="$PATH:/usr/local/bin:/opt/homebrew/bin"
-case "$OR_NAME" in muxen-*) ;; *) echo "error: $OR_NAME isn't a container Muxen made." >&2; exit 1 ;; esac
+case "$OR_NAME" in muxen-*) ;; *) echo "error: $OR_NAME isn't a container Muxin made." >&2; exit 1 ;; esac
if docker inspect "$OR_NAME" >/dev/null 2>&1; then
echo "▸ Removing the container $OR_NAME"
docker rm -f -v "$OR_NAME" >/dev/null || { echo "error: Docker couldn't remove $OR_NAME." >&2; exit 1; }
diff --git a/src/ops/vm.rs b/src/ops/vm.rs
index a7d57a9..dea4787 100644
--- a/src/ops/vm.rs
+++ b/src/ops/vm.rs
@@ -1,6 +1,6 @@
//! Virtual machines on the user's own machines. Windows runs in Docker with
//! KVM (dockur/windows) on a Linux machine; Linux runs in a container with
-//! sshd on any machine with Docker. Muxen creates one, adds it to the user's
+//! sshd on any machine with Docker. Muxin creates one, adds it to the user's
//! machines (under the one it runs on), waits until it answers ssh, and
//! destroys it again. Starting and stopping are in power.rs.
@@ -184,7 +184,7 @@ impl Engine {
if self.current().machines.iter().any(|m| m.name.eq_ignore_ascii_case(&name)) {
return Err(format!("You already have a machine called \"{name}\"."));
}
- let system = system(&req.system).ok_or_else(|| format!("Muxen doesn't know the system \"{}\". It knows: {}.", req.system, SYSTEMS.iter().map(|s| s.id).collect::<Vec<_>>().join(", ")))?;
+ let system = system(&req.system).ok_or_else(|| format!("Muxin doesn't know the system \"{}\". It knows: {}.", req.system, SYSTEMS.iter().map(|s| s.id).collect::<Vec<_>>().join(", ")))?;
let options = self.vm_options();
let host = match req.host.as_deref().filter(|h| !h.trim().is_empty()) {
Some(h) => {
@@ -212,7 +212,7 @@ impl Engine {
}
})?,
};
- let (host_spec, _) = self.machine(&host.machine_id).ok_or("Its host isn't in Muxen anymore.")?;
+ let (host_spec, _) = self.machine(&host.machine_id).ok_or("Its host isn't in Muxin anymore.")?;
if self.machine_busy(&host_spec.id) {
return Err(format!("An operation is still running on {}. Wait for it to finish.", host_spec.name));
}
@@ -263,7 +263,7 @@ impl Engine {
let secrets: Vec<String> = [password.clone()].into_iter().filter(|p| !p.is_empty()).collect();
let printed = remote::run_lines(self, op, host, Shell::Sh, script, &secrets, Duration::from_secs(30 * 60)).await?;
let port = |key: &str| printed.iter().find_map(|l| l.strip_prefix(&format!("{key}="))).and_then(|p| p.trim().parse::<u16>().ok());
- let ssh_port = port("ssh_port").ok_or("The VM started, but Muxen didn't learn its ssh port.")?;
+ let ssh_port = port("ssh_port").ok_or("The VM started, but Muxin didn't learn its ssh port.")?;
// Into the user's machines: ssh goes through its host to the port its
// container publishes there, with a host key of its own.
@@ -305,12 +305,12 @@ impl Engine {
wait_for_ssh(&spec, Duration::from_secs(12 * 60)).await.map_err(|_| format!("{name} didn't answer ssh within 12 minutes. Its log: `docker logs {container}` on {}.", host.name))?;
}
- // Muxen's agent, so terminals, sessions and files work right away.
+ // Muxin's agent, so terminals, sessions and files work right away.
self.run_check(Some(vec![id.clone(), host.id.clone()])).await;
let probe = self.machine(&id).and_then(|(_, p)| p);
match crate::fleet::sessions::agent::ensure(&spec, probe.as_ref()).await {
Ok(()) => self.op_log(op, "✓ Agent installed"),
- Err(e) => self.op_log(op, format!("! The agent didn't install yet ({e}); Muxen tries again when you open a terminal")),
+ Err(e) => self.op_log(op, format!("! The agent didn't install yet ({e}); Muxin tries again when you open a terminal")),
}
self.op_log(op, format!("✓ {name} is ready"));
Ok(())
@@ -344,15 +344,15 @@ impl Engine {
Err(format!("Windows didn't finish installing within 90 minutes. Watch its screen from {}'s page, or remove it.", spec.name))
}
- /// Deletes a VM Muxen made: its container and disk on its host, and the
- /// machine from Muxen.
+ /// Deletes a VM Muxin made: its container and disk on its host, and the
+ /// machine from Muxin.
pub fn vm_destroy(self: &Arc<Self>, machine_id: &str) -> Result<u64, String> {
- let (spec, _) = self.machine(machine_id).ok_or("That machine isn't in Muxen anymore.")?;
- let vm = spec.vm.clone().ok_or_else(|| format!("{} isn't a VM Muxen made. Remove it from Muxen instead.", spec.name))?;
+ let (spec, _) = self.machine(machine_id).ok_or("That machine isn't in Muxin anymore.")?;
+ let vm = spec.vm.clone().ok_or_else(|| format!("{} isn't a VM Muxin made. Remove it from Muxin instead.", spec.name))?;
if !valid_container(&vm.container) {
- return Err(format!("\"{}\" isn't a container Muxen made.", vm.container));
+ return Err(format!("\"{}\" isn't a container Muxin made.", vm.container));
}
- let (host, _) = self.machine(&vm.host).ok_or_else(|| format!("The machine {} runs on isn't in Muxen anymore; remove {} instead.", spec.name, spec.name))?;
+ let (host, _) = self.machine(&vm.host).ok_or_else(|| format!("The machine {} runs on isn't in Muxin anymore; remove {} instead.", spec.name, spec.name))?;
if self.machine_busy(&spec.id) || self.machine_busy(&host.id) {
return Err("An operation is still running on this machine. Wait for it to finish.".into());
}
@@ -380,7 +380,7 @@ impl Engine {
Ok(op)
}
- /// A Windows VM's account password (Muxen made it; it's kept in the Keychain).
+ /// A Windows VM's account password (Muxin made it; it's kept in the Keychain).
pub fn vm_password(&self, machine_id: &str) -> Option<String> {
crate::cloud::secrets::get(&self.paths().dir, &password_key(machine_id))
}
@@ -426,7 +426,7 @@ fn random_password() -> String {
bytes.iter().map(|b| CHARS[*b as usize % CHARS.len()] as char).collect()
}
-/// A container Muxen made: "muxen-" and a slug.
+/// A container Muxin made: "muxen-" and a slug.
fn valid_container(name: &str) -> bool {
name.strip_prefix("muxen-").is_some_and(|rest| !rest.is_empty() && rest.chars().all(|c| c.is_ascii_lowercase() || c.is_ascii_digit() || c == '-'))
}
diff --git a/src/probe/mod.rs b/src/probe/mod.rs
index 683c32f..cab6184 100644
--- a/src/probe/mod.rs
+++ b/src/probe/mod.rs
@@ -329,7 +329,7 @@ impl std::fmt::Display for RunError {
async fn run(spec: &MachineSpec, shell: Shell) -> Result<String, RunError> {
let script = script_for(spec, shell);
// Over the machine's live link when one is up (no ssh handshake). A check
- // doesn't make one: it's also how Muxen first reaches a machine.
+ // doesn't make one: it's also how Muxin first reaches a machine.
if shell == Shell::Sh && !spec.is_local() {
if let Some(link) = crate::fleet::link::current(&spec.id) {
let req = serde_json::json!({ "op": "sh", "script": script, "login": false, "timeout": TIMEOUT.as_secs() });
@@ -608,7 +608,7 @@ impl ContainerLines {
if self.container.is_empty() {
return None;
}
- // The runner's own config wins; then Muxen's label; then the container name.
+ // The runner's own config wins; then Muxin's label; then the container name.
let (config_name, config_url) = self.config.unwrap_or_default();
let name = [config_name, self.label_name, self.container.clone()].into_iter().find(|n| !n.is_empty())?;
let url = config_url.or_else(|| (!self.label_scope.is_empty()).then(|| format!("https://github.com/{}", self.label_scope)));
diff --git a/src/probe/scripts/probe.ps1 b/src/probe/scripts/probe.ps1
index 8719efe..49dfa84 100644
--- a/src/probe/scripts/probe.ps1
+++ b/src/probe/scripts/probe.ps1
@@ -1,6 +1,6 @@
-# Muxen machine probe (Windows). Read-only.
+# Muxin machine probe (Windows). Read-only.
# Prints key=value lines; runner N is reported as rN.<key>=<value>.
-# $OR_DIRS (array of glob patterns) is prepended by Muxen.
+# $OR_DIRS (array of glob patterns) is prepended by Muxin.
$ErrorActionPreference = 'SilentlyContinue'
$ProgressPreference = 'SilentlyContinue'
diff --git a/src/probe/scripts/probe.sh b/src/probe/scripts/probe.sh
index f2a067e..48481d2 100644
--- a/src/probe/scripts/probe.sh
+++ b/src/probe/scripts/probe.sh
@@ -1,6 +1,6 @@
-# Muxen machine probe (macOS / Linux). Read-only.
+# Muxin machine probe (macOS / Linux). Read-only.
# Prints key=value lines; runner N is reported as rN.<key>=<value>.
-# OR_DIRS (newline-separated glob patterns) is prepended by Muxen.
+# OR_DIRS (newline-separated glob patterns) is prepended by Muxin.
LC_ALL=C
export LC_ALL
@@ -219,7 +219,7 @@ linux)
esac
# --- Docker -------------------------------------------------------------------
-# Runner containers: the ones Muxen made (label muxen.runner, or
+# Runner containers: the ones Muxin made (label muxen.runner, or
# openrunner.runner from before the rename) and any other container running
# GitHub's actions-runner image.
if command -v docker >/dev/null 2>&1; then
@@ -250,7 +250,7 @@ if command -v docker >/dev/null 2>&1; then
j=$((j + 1))
done
}
- # Containers that publish ports here, running or not: a machine Muxen
+ # Containers that publish ports here, running or not: a machine Muxin
# reaches through one (a VM in Docker, say) runs in it.
ids=$(docker ps -aq 2>/dev/null)
if [ -n "$ids" ]; then
diff --git a/src/renamed.rs b/src/renamed.rs
new file mode 100644
index 0000000..fd9a2b7
--- /dev/null
+++ b/src/renamed.rs
@@ -0,0 +1,40 @@
+//! Muxen became Muxin (0.5.1). On a Mac the new Muxin.app lands next to the
+//! old Muxen.app, so the first time an installed Muxin opens, the old app
+//! goes to the Trash and a `muxen` command that ran it runs Muxin. Settings,
+//! sessions and sign-ins carry over by themselves: the bundle id, folders and
+//! Keychain items kept their names.
+
+/// Retires the old app, when this is an installed Muxin (in Applications;
+/// not a build, nor a copy running from the disk image).
+#[cfg(target_os = "macos")]
+pub fn retire_old_app() {
+ use std::path::{Path, PathBuf};
+
+ let Some(exe) = std::env::current_exe().ok().and_then(|e| e.canonicalize().ok()) else { return };
+ let Some(app) = exe.ancestors().find(|a| a.extension().is_some_and(|e| e == "app")) else { return };
+ let folders: Vec<PathBuf> = [Some(PathBuf::from("/Applications")), dirs::home_dir().map(|h| h.join("Applications"))].into_iter().flatten().collect();
+ if !folders.iter().any(|f| app.parent() == Some(f.as_path())) {
+ return;
+ }
+ let is_old = |old: &Path| old != app && std::fs::read_to_string(old.join("Contents/Info.plist")).is_ok_and(|p| p.contains("<string>com.lumarylabs.muxen</string>"));
+ for old in folders.iter().map(|f| f.join("Muxen.app")).filter(|o| is_old(o)) {
+ let Some(trash) = dirs::home_dir().map(|h| h.join(".Trash")) else { return };
+ let mut to = trash.join("Muxen.app");
+ if to.exists() {
+ to = trash.join(format!("Muxen {}.app", chrono::Local::now().format("%H.%M.%S")));
+ }
+ match std::fs::rename(&old, &to) {
+ Ok(()) => tracing::info!("moved {} to the Trash: it's Muxin now", old.display()),
+ Err(e) => tracing::warn!("couldn't move {} to the Trash: {e}", old.display()),
+ }
+ // A `muxen` command that ran it runs this one now, where that needs no
+ // password (else Settings › General › Command line offers it).
+ let link = Path::new("/usr/local/bin/muxen");
+ if std::fs::read_link(link).is_ok_and(|t| t.starts_with(&old)) && std::fs::remove_file(link).is_ok() {
+ let _ = std::os::unix::fs::symlink(&exe, link);
+ }
+ }
+}
+
+#[cfg(not(target_os = "macos"))]
+pub fn retire_old_app() {}
diff --git a/src/shell_command.rs b/src/shell_command.rs
index 0cd2b1f..3bbf114 100644
--- a/src/shell_command.rs
+++ b/src/shell_command.rs
@@ -1,14 +1,16 @@
-//! The `muxen` command in the user's PATH, so terminals (and other agents,
-//! with `muxen mcp`) can run it: a link to this executable in
+//! The `muxin` command in the user's PATH, so terminals (and other agents,
+//! with `muxin mcp`) can run it: a link to this executable in
//! /usr/local/bin on macOS (asking for an administrator's password when the
//! folder isn't writable) and ~/.local/bin on Linux; on Windows, this
-//! executable's folder added to the user's PATH.
+//! executable's folder added to the user's PATH. `muxen`, its name from
+//! before, goes beside it (on Windows, muxen.cmd ships next to muxin.exe).
+//! When Homebrew installed the app, its link is the one in the PATH.
use std::path::{Path, PathBuf};
use serde::Serialize;
-#[derive(Debug, Clone, Serialize)]
+#[derive(Debug, Clone, Default, Serialize)]
pub struct Status {
/// "installed" | "missing" | "other" (something else is there) | "unsupported"
pub state: &'static str,
@@ -18,15 +20,17 @@ pub struct Status {
pub target: Option<String>,
/// Something to know, in plain words ("Open a new terminal to use it.").
pub note: Option<String>,
- /// "other" that install may replace: a link to another copy of Muxen.
+ /// "other" that install may replace: a link to another copy of Muxin.
pub replaceable: bool,
+ /// Homebrew put it there (`brew install --cask muxin`), and takes it away.
+ pub homebrew: bool,
}
-/// Whether `muxen` is in the PATH and runs this copy of Muxen.
+/// Whether `muxin` is in the PATH and runs this copy of Muxin.
pub fn status() -> Status {
let exe = match this_exe() {
Ok(exe) => exe,
- Err(e) => return Status { state: "unsupported", path: String::new(), target: None, note: Some(e), replaceable: false },
+ Err(e) => return Status { state: "unsupported", note: Some(e), ..Default::default() },
};
imp::status(&exe)
}
@@ -34,7 +38,7 @@ pub fn status() -> Status {
pub fn install() -> Result<Status, String> {
let exe = this_exe()?;
if exe.to_string_lossy().contains("/AppTranslocation/") {
- return Err("macOS is running Muxen from a temporary copy. Move Muxen to Applications, open it from there, and try again.".into());
+ return Err("macOS is running Muxin from a temporary copy. Move Muxin to Applications, open it from there, and try again.".into());
}
imp::install(&exe)?;
Ok(imp::status(&exe))
@@ -47,16 +51,17 @@ pub fn remove() -> Result<Status, String> {
}
fn this_exe() -> Result<PathBuf, String> {
- let exe = std::env::current_exe().map_err(|e| format!("Couldn't tell where Muxen is: {e}"))?;
+ let exe = std::env::current_exe().map_err(|e| format!("Couldn't tell where Muxin is: {e}"))?;
Ok(std::fs::canonicalize(&exe).unwrap_or(exe))
}
-/// A link of ours: it points to a Muxen executable (this one, or another
-/// copy), not to something else that happens to be called muxen.
+/// A link of ours: it points to a Muxin executable (this one, another copy,
+/// or one from when it was called Muxen), not to something else that happens
+/// to have the name.
#[cfg(unix)]
-fn is_muxen(target: &Path) -> bool {
+fn is_ours(target: &Path) -> bool {
let s = target.to_string_lossy();
- target.file_name().is_some_and(|n| n == "muxen") || s.contains("Muxen.app/")
+ target.file_name().is_some_and(|n| n == "muxin" || n == "muxen") || s.contains("Muxin.app/") || s.contains("Muxen.app/")
}
#[cfg(unix)]
@@ -67,17 +72,33 @@ mod imp {
/// Where the link goes on this OS.
fn link_path() -> Result<PathBuf, String> {
if cfg!(target_os = "macos") {
- Ok(PathBuf::from("/usr/local/bin/muxen"))
+ Ok(PathBuf::from("/usr/local/bin/muxin"))
} else {
let home = std::env::var_os("HOME").ok_or("HOME isn't set.")?;
- Ok(PathBuf::from(home).join(".local/bin/muxen"))
+ Ok(PathBuf::from(home).join(".local/bin/muxin"))
}
}
+ /// `muxen`, its name from before, next to it: setups that run that (an
+ /// agent's MCP config, say) keep working.
+ fn alias_of(link: &Path) -> PathBuf {
+ link.with_file_name("muxen")
+ }
+
+ /// Homebrew's link, when Homebrew installed this copy (`brew install --cask muxin`).
+ fn homebrew_link(exe: &Path) -> Option<PathBuf> {
+ let prefixes = std::env::var_os("HOMEBREW_PREFIX").map(PathBuf::from).into_iter().chain(["/opt/homebrew", "/usr/local", "/home/linuxbrew/.linuxbrew"].map(PathBuf::from));
+ prefixes.filter(|p| p.join("Caskroom/muxin").is_dir()).map(|p| p.join("bin/muxin")).find(|link| std::fs::canonicalize(link).is_ok_and(|r| r == exe))
+ }
+
pub fn status(exe: &Path) -> Status {
+ if let Some(link) = homebrew_link(exe) {
+ let note = Some("Homebrew put it there with the app.".into());
+ return Status { state: "installed", path: link.display().to_string(), target: Some(exe.display().to_string()), note, replaceable: false, homebrew: true };
+ }
match link_path() {
Ok(link) => status_at(&link, exe),
- Err(e) => Status { state: "unsupported", path: String::new(), target: None, note: Some(e), replaceable: false },
+ Err(e) => Status { state: "unsupported", note: Some(e), ..Default::default() },
}
}
@@ -85,21 +106,30 @@ mod imp {
let link = link.to_path_buf();
let path = link.display().to_string();
let Ok(meta) = std::fs::symlink_metadata(&link) else {
- return Status { state: "missing", path, target: None, note: None, replaceable: false };
+ return Status { state: "missing", path, ..Default::default() };
};
if !meta.file_type().is_symlink() {
- return Status { state: "other", path, target: None, note: Some("A different program called muxen is there; Muxen leaves it alone.".into()), replaceable: false };
+ return Status { state: "other", path, note: Some("A different program called muxin is there; Muxin leaves it alone.".into()), ..Default::default() };
}
let target = std::fs::read_link(&link).ok();
let resolved = std::fs::canonicalize(&link).ok();
let shown = target.as_ref().map(|t| t.display().to_string());
- let ours = target.as_deref().is_some_and(is_muxen);
- let other = |note: &str, replaceable| Status { state: "other", path: path.clone(), target: shown.clone(), note: Some(note.into()), replaceable };
+ let ours = target.as_deref().is_some_and(is_ours);
+ let other = |note: &str, replaceable| Status { state: "other", path: path.clone(), target: shown.clone(), note: Some(note.into()), replaceable, homebrew: false };
match resolved {
- Some(r) if r == exe => Status { state: "installed", path: path.clone(), target: shown.clone(), note: in_path_note(&link), replaceable: false },
- _ if !ours => other("It links to a different program called muxen; Muxen leaves it alone.", false),
- None => other("It points to a copy of Muxen that isn't there anymore.", true),
- Some(_) => other("It runs another copy of Muxen.", true),
+ Some(r) if r == exe => {
+ // The old name still runs another copy: offer to point it here too.
+ let alias = alias_of(&link);
+ let alias_elsewhere = std::fs::read_link(&alias).is_ok_and(|t| is_ours(&t)) && std::fs::canonicalize(&alias).ok().as_deref() != Some(exe);
+ if alias_elsewhere {
+ let target = std::fs::read_link(&alias).ok().map(|t| t.display().to_string());
+ return Status { state: "other", path: alias.display().to_string(), target, note: Some("It runs another copy of Muxin.".into()), replaceable: true, homebrew: false };
+ }
+ Status { state: "installed", path: path.clone(), target: shown.clone(), note: in_path_note(&link), ..Default::default() }
+ }
+ _ if !ours => other("It links to a different program called muxin; Muxin leaves it alone.", false),
+ None => other("It points to a copy of Muxin that isn't there anymore.", true),
+ Some(_) => other("It runs another copy of Muxin.", true),
}
}
@@ -115,43 +145,60 @@ mod imp {
}
pub fn install(exe: &Path) -> Result<(), String> {
+ if homebrew_link(exe).is_some() {
+ return Ok(());
+ }
install_at(&link_path()?, exe)
}
+ /// The link, and `muxen` beside it unless something else has that name.
pub(super) fn install_at(link: &Path, exe: &Path) -> Result<(), String> {
refuse_others(link)?;
- match link_here(link, exe) {
+ let alias = alias_of(link);
+ let links: Vec<&Path> = if refuse_others(&alias).is_ok() { vec![link, &alias] } else { vec![link] };
+ match links.iter().try_for_each(|l| link_here(l, exe)) {
Ok(()) => Ok(()),
Err(e) if e.kind() == ErrorKind::PermissionDenied && cfg!(target_os = "macos") => {
let dir = link.parent().map(|d| d.display().to_string()).unwrap_or_default();
- as_admin(&format!("mkdir -p {} && ln -sfn {} {}", sh(&dir), sh(&exe.display().to_string()), sh(&link.display().to_string())))
+ let lns: Vec<String> = links.iter().map(|l| format!("ln -sfn {} {}", sh(&exe.display().to_string()), sh(&l.display().to_string()))).collect();
+ as_admin(&format!("mkdir -p {} && {}", sh(&dir), lns.join(" && ")))
}
Err(e) => Err(format!("Couldn't create {}: {e}", link.display())),
}
}
- pub fn remove(_exe: &Path) -> Result<(), String> {
+ pub fn remove(exe: &Path) -> Result<(), String> {
+ if homebrew_link(exe).is_some() {
+ return Err("Homebrew put it there. It goes when you uninstall Muxin with brew uninstall --cask muxin.".into());
+ }
remove_at(&link_path()?)
}
+ /// The link, and `muxen` beside it when that's ours too.
pub(super) fn remove_at(link: &Path) -> Result<(), String> {
- let Ok(meta) = std::fs::symlink_metadata(link) else { return Ok(()) };
- let ours = meta.file_type().is_symlink() && std::fs::read_link(link).is_ok_and(|t| is_muxen(&t));
- if !ours {
- return Err(format!("{} isn't a link to Muxen, so Muxen leaves it alone.", link.display()));
+ let ours = |l: &Path| std::fs::symlink_metadata(l).is_ok_and(|m| m.file_type().is_symlink()) && std::fs::read_link(l).is_ok_and(|t| is_ours(&t));
+ if std::fs::symlink_metadata(link).is_ok() && !ours(link) {
+ return Err(format!("{} isn't a link to Muxin, so Muxin leaves it alone.", link.display()));
}
- match std::fs::remove_file(link) {
- Ok(()) => Ok(()),
- Err(e) if e.kind() == ErrorKind::PermissionDenied && cfg!(target_os = "macos") => as_admin(&format!("rm -f {}", sh(&link.display().to_string()))),
- Err(e) => Err(format!("Couldn't remove {}: {e}", link.display())),
+ let links: Vec<PathBuf> = [link.to_path_buf(), alias_of(link)].into_iter().filter(|l| ours(l)).collect();
+ for l in &links {
+ match std::fs::remove_file(l) {
+ Ok(()) => {}
+ Err(e) if e.kind() == ErrorKind::PermissionDenied && cfg!(target_os = "macos") => {
+ let rms: Vec<String> = links.iter().map(|l| format!("rm -f {}", sh(&l.display().to_string()))).collect();
+ return as_admin(&rms.join(" && "));
+ }
+ Err(e) => return Err(format!("Couldn't remove {}: {e}", l.display())),
+ }
}
+ Ok(())
}
- /// Only ever replace a link to Muxen, never someone else's file.
+ /// Only ever replace a link to Muxin, never someone else's file.
fn refuse_others(link: &Path) -> Result<(), String> {
match std::fs::symlink_metadata(link) {
- Ok(m) if !m.file_type().is_symlink() => Err(format!("There's already a file at {} that isn't a link to Muxen. Remove it first if you don't need it.", link.display())),
- Ok(_) if !std::fs::read_link(link).is_ok_and(|t| is_muxen(&t)) => {
+ Ok(m) if !m.file_type().is_symlink() => Err(format!("There's already a file at {} that isn't a link to Muxin. Remove it first if you don't need it.", link.display())),
+ Ok(_) if !std::fs::read_link(link).is_ok_and(|t| is_ours(&t)) => {
Err(format!("{} already links to another program. Remove it first if you don't need it.", link.display()))
}
_ => Ok(()),
@@ -228,7 +275,7 @@ $k.SetValue('Path', ($parts -join ';'), $kind)
}
fn dir_of(exe: &Path) -> Result<String, String> {
- let dir = exe.parent().ok_or("Couldn't tell which folder Muxen is in.")?.display().to_string();
+ let dir = exe.parent().ok_or("Couldn't tell which folder Muxin is in.")?.display().to_string();
// canonicalize gives \\?\C:\...; PATH wants C:\...
Ok(dir.strip_prefix(r"\\?\").unwrap_or(&dir).to_string())
}
@@ -240,13 +287,13 @@ $k.SetValue('Path', ($parts -join ';'), $kind)
pub fn status(exe: &Path) -> Status {
let dir = match dir_of(exe) {
Ok(d) => d,
- Err(e) => return Status { state: "unsupported", path: String::new(), target: None, note: Some(e), replaceable: false },
+ Err(e) => return Status { state: "unsupported", note: Some(e), ..Default::default() },
};
let target = Some(exe.display().to_string().trim_start_matches(r"\\?\").to_string());
match powershell(READ, &[]) {
- Ok(path) if path.split(';').any(|p| same(p, &dir)) => Status { state: "installed", path: dir, target, note: Some("Open a new terminal to use it.".into()), replaceable: false },
- Ok(_) => Status { state: "missing", path: dir, target, note: None, replaceable: false },
- Err(e) => Status { state: "unsupported", path: dir, target, note: Some(e), replaceable: false },
+ Ok(path) if path.split(';').any(|p| same(p, &dir)) => Status { state: "installed", path: dir, target, note: Some("Open a new terminal to use it.".into()), ..Default::default() },
+ Ok(_) => Status { state: "missing", path: dir, target, ..Default::default() },
+ Err(e) => Status { state: "unsupported", path: dir, target, note: Some(e), ..Default::default() },
}
}
@@ -266,29 +313,32 @@ mod tests {
#[test]
fn knows_its_own_links() {
- assert!(is_muxen(Path::new("/Applications/Muxen.app/Contents/MacOS/muxen")));
- assert!(is_muxen(Path::new("/home/me/.cargo/bin/muxen")));
- assert!(!is_muxen(Path::new("/usr/bin/python3")));
+ assert!(is_ours(Path::new("/Applications/Muxin.app/Contents/MacOS/muxin")));
+ assert!(is_ours(Path::new("/Applications/Muxen.app/Contents/MacOS/muxen")));
+ assert!(is_ours(Path::new("/home/me/.cargo/bin/muxin")));
+ assert!(!is_ours(Path::new("/usr/bin/python3")));
}
#[test]
fn links_replaces_and_removes_only_its_own() {
- let tmp = std::env::temp_dir().join(format!("muxen-shell-command-{}", std::process::id()));
+ let tmp = std::env::temp_dir().join(format!("muxin-shell-command-{}", std::process::id()));
let _ = std::fs::remove_dir_all(&tmp);
- let exe = tmp.join("Muxen.app/Contents/MacOS/muxen");
+ let exe = tmp.join("Muxin.app/Contents/MacOS/muxin");
std::fs::create_dir_all(exe.parent().unwrap()).unwrap();
std::fs::write(&exe, "").unwrap();
let exe = std::fs::canonicalize(&exe).unwrap();
- let link = tmp.join("bin/muxen");
+ let link = tmp.join("bin/muxin");
+ let alias = tmp.join("bin/muxen");
assert_eq!(imp::status_at(&link, &exe).state, "missing");
imp::install_at(&link, &exe).unwrap();
assert_eq!(imp::status_at(&link, &exe).state, "installed");
+ assert_eq!(std::fs::canonicalize(&alias).unwrap(), exe, "muxen runs it too");
// Again: replaces its own link.
imp::install_at(&link, &exe).unwrap();
assert_eq!(imp::status_at(&link, &exe).state, "installed");
// A link to another copy is "other" and gets replaced.
- let old = tmp.join("old/muxen");
+ let old = tmp.join("Muxen.app/Contents/MacOS/muxen");
std::fs::create_dir_all(old.parent().unwrap()).unwrap();
std::fs::write(&old, "").unwrap();
std::fs::remove_file(&link).unwrap();
@@ -296,8 +346,24 @@ mod tests {
assert_eq!((imp::status_at(&link, &exe).state, imp::status_at(&link, &exe).replaceable), ("other", true));
imp::install_at(&link, &exe).unwrap();
assert_eq!(imp::status_at(&link, &exe).state, "installed");
+ // Only the old name runs the old copy: that's "other" too, until it's replaced.
+ std::fs::remove_file(&alias).unwrap();
+ std::os::unix::fs::symlink(&old, &alias).unwrap();
+ let s = imp::status_at(&link, &exe);
+ assert_eq!((s.state, s.replaceable, s.path), ("other", true, alias.display().to_string()));
+ imp::install_at(&link, &exe).unwrap();
+ assert_eq!(imp::status_at(&link, &exe).state, "installed");
imp::remove_at(&link).unwrap();
assert_eq!(imp::status_at(&link, &exe).state, "missing");
+ assert!(std::fs::symlink_metadata(&alias).is_err(), "muxen goes with it");
+
+ // Someone else's muxen: muxin goes in, muxen stays theirs.
+ std::fs::write(&alias, "#!/bin/sh").unwrap();
+ imp::install_at(&link, &exe).unwrap();
+ assert_eq!(imp::status_at(&link, &exe).state, "installed");
+ imp::remove_at(&link).unwrap();
+ assert!(std::fs::read(&alias).is_ok_and(|b| b == b"#!/bin/sh"));
+ std::fs::remove_file(&alias).unwrap();
// Someone else's file, or a link to another program: left alone.
std::fs::write(&link, "#!/bin/sh").unwrap();
diff --git a/src/ui/about.rs b/src/ui/about.rs
index 27f087e..ad6cfe2 100644
--- a/src/ui/about.rs
+++ b/src/ui/about.rs
@@ -17,7 +17,7 @@ fn version() -> String {
format!("Version {v} ({})", option_env!("MUXEN_BUILD").unwrap_or(v))
}
-/// What Muxen includes from others, and under which license.
+/// What Muxin includes from others, and under which license.
const COMPONENTS: &[(&str, &str, &str)] = &[
("GPUI", "Zed Industries", "Apache-2.0"),
("alacritty_terminal", "Alacritty", "Apache-2.0"),
@@ -49,7 +49,7 @@ impl Root {
.gap(px(4.))
.flex_1()
.min_w(px(0.))
- .child(div().text_size(px(20.)).font_weight(FontWeight::SEMIBOLD).text_color(theme.text).child("Muxen"))
+ .child(div().text_size(px(20.)).font_weight(FontWeight::SEMIBOLD).text_color(theme.text).child("Muxin"))
.child(div().text_size(px(14.)).text_color(theme.text_muted).child(version())),
)
.child(Button::new("about-updates", "Check for Updates…").on_click(|_, _, cx| cx.open_url(WEBSITE)));
@@ -81,12 +81,12 @@ impl Root {
2,
"Feedback",
EMAIL,
- Button::new("about-mail", "Send Email").on_click(|_, _, cx| cx.open_url(&format!("mailto:{EMAIL}?subject=Muxen%20feedback"))).into_any_element(),
+ Button::new("about-mail", "Send Email").on_click(|_, _, cx| cx.open_url(&format!("mailto:{EMAIL}?subject=Muxin%20feedback"))).into_any_element(),
))
.child(row(
3,
"Licenses",
- "Open-source software Muxen includes",
+ "Open-source software Muxin includes",
Button::new("about-licenses", "View")
.on_click(cx.listener(|this, _, window, cx| {
let dialog = cx.new(|cx| LicensesDialog { focus: cx.focus_handle() });
@@ -185,7 +185,7 @@ impl Render for LicensesDialog {
.text_color(theme.text)
.child(div().text_size(px(16.)).font_weight(FontWeight::SEMIBOLD).child("Licenses"))
.child(div().text_size(px(12.5)).text_color(theme.text_muted).child(
- "Muxen is open source under the Apache License 2.0, by Lumary Labs LLC. It includes these components under their own licenses; the full texts ship with the app.",
+ "Muxin is open source under the Apache License 2.0, by Lumary Labs LLC. It includes these components under their own licenses; the full texts ship with the app.",
))
.child(card(&theme).children(rows))
.child(
diff --git a/src/ui/activity.rs b/src/ui/activity.rs
index b9ba423..2f71e99 100644
--- a/src/ui/activity.rs
+++ b/src/ui/activity.rs
@@ -234,7 +234,7 @@ impl Root {
.child(div().mt(px(18.)).text_size(px(20.)).font_weight(FontWeight::SEMIBOLD).text_color(theme.text).child("No activity yet"))
.child(
div().mt(px(8.)).w(px(width)).text_center().text_size(px(13.)).text_color(theme.text_muted).child(
- "Everything Muxen does on your machines lands here with its full output: runner installs and restarts, log requests, workspace setup, and the commands agents run.",
+ "Everything Muxin does on your machines lands here with its full output: runner installs and restarts, log requests, workspace setup, and the commands agents run.",
),
)
.child(
@@ -270,7 +270,7 @@ impl Root {
"zap",
kit::tiles::JOBS,
"Connect an agent",
- "Copy the command that adds Muxen to Claude Code over MCP.".into(),
+ "Copy the command that adds Muxin to Claude Code over MCP.".into(),
"copy",
width,
)
@@ -541,7 +541,7 @@ fn kind_label(kind: &str) -> &'static str {
}
}
-/// Colors Muxen's own lines (see the conventions in crate::ops).
+/// Colors Muxin's own lines (see the conventions in crate::ops).
fn log_line(theme: &Theme, line: &str) -> AnyElement {
let color = if line.starts_with("▸ ") {
theme.text_accent
@@ -619,9 +619,9 @@ fn filtered_empty(theme: &Theme, filter: ActivityFilter) -> AnyElement {
/// `claude mcp add` for this binary, quoted when its path has spaces.
fn mcp_add_command() -> String {
- let exe = std::env::current_exe().map(|p| p.display().to_string()).unwrap_or_else(|_| "muxen".into());
+ let exe = std::env::current_exe().map(|p| p.display().to_string()).unwrap_or_else(|_| "muxin".into());
let exe = if exe.contains(' ') { format!("'{exe}'") } else { exe };
- format!("claude mcp add muxen -- {exe} mcp")
+ format!("claude mcp add muxin -- {exe} mcp")
}
/// "45 MB of 120 MB · 6.1 MB/s"
diff --git a/src/ui/assets.rs b/src/ui/assets.rs
index 8325b29..37151bc 100644
--- a/src/ui/assets.rs
+++ b/src/ui/assets.rs
@@ -161,7 +161,7 @@ fn register_with_core_text(bytes: &'static [u8]) {
}
}
-/// Shows the Muxen icon in the Dock. Bundled builds get it from Info.plist;
+/// Shows the Muxin icon in the Dock. Bundled builds get it from Info.plist;
/// this covers `cargo run` and `cargo install`.
#[cfg(target_os = "macos")]
pub fn set_dock_icon() {
diff --git a/src/ui/desktop.rs b/src/ui/desktop.rs
index f138d9b..fc7a02b 100644
--- a/src/ui/desktop.rs
+++ b/src/ui/desktop.rs
@@ -23,7 +23,7 @@ use crate::fleet::link::Link;
const CONTEXT: &str = "Desktop";
-/// Keys that would otherwise run Muxen's own shortcuts go to the machine.
+/// Keys that would otherwise run Muxin's own shortcuts go to the machine.
pub fn bind_keys(cx: &mut App) {
let mut keys: Vec<String> = ["escape", "/", "tab", "shift-tab"].map(String::from).to_vec();
if cfg!(target_os = "macos") {
@@ -942,7 +942,7 @@ pub fn open_window(engine: Arc<Engine>, machine_id: String, display: Option<Stri
window_bounds: Some(gpui::WindowBounds::Windowed(bounds)),
titlebar: Some(gpui::TitlebarOptions { title: Some(format!("{name} · Desktop").into()), appears_transparent: cfg!(target_os = "macos"), traffic_light_position: None }),
window_min_size: Some(gpui::size(px(480.), px(320.))),
- app_id: Some("muxen".into()),
+ app_id: Some("muxin".into()),
..Default::default()
};
let opened = cx.open_window(options, |window, cx| {
diff --git a/src/ui/detail.rs b/src/ui/detail.rs
index fc55fd2..b0cf741 100644
--- a/src/ui/detail.rs
+++ b/src/ui/detail.rs
@@ -20,7 +20,7 @@ impl Root {
let p = m.probe.as_ref().filter(|p| p.ok);
let busy = s.operations.iter().any(|o| o.status == "running" && o.machine_id.as_deref() == Some(&m.id) && o.kind != "logs");
- // A VM Muxen made is its container on its host, not the 127.0.0.1 ssh goes to.
+ // A VM Muxin made is its container on its host, not the 127.0.0.1 ssh goes to.
let place = m.vm.as_ref().map(|v| format!("{} on {}", v.container, m.parent.as_ref().map(|p| p.name.clone()).unwrap_or_else(|| v.host.clone())));
let mut meta = vec![place.unwrap_or_else(|| if m.host.is_empty() { "no host".to_string() } else { m.host.clone() })];
if !m.platform.is_empty() {
@@ -163,7 +163,7 @@ impl Root {
let machine = m.clone();
Button::icon_only("m-remove", "trash-2")
.style(ButtonStyle::Danger)
- .tooltip(if machine.cloud.is_some() { "Destroy" } else { "Remove from Muxen" })
+ .tooltip(if machine.cloud.is_some() { "Destroy" } else { "Remove from Muxin" })
.on_click(cx.listener(move |this, _, window, cx| this.confirm_remove_machine(&machine, window, cx)))
};
// Remove stays beside the button before it, never on a line of its own.
@@ -792,7 +792,7 @@ impl Root {
.min_w(px(0.))
.gap(px(4.))
.child(div().text_size(px(14.)).font_weight(FontWeight::SEMIBOLD).child(format!("Disconnected from {}", m.name)))
- .child(div().text_size(px(12.5)).text_color(theme.text_muted).child(format!("Muxen isn't connecting to it, checking it or reading its sessions. Its sessions keep running there. {seen}"))),
+ .child(div().text_size(px(12.5)).text_color(theme.text_muted).child(format!("Muxin isn't connecting to it, checking it or reading its sessions. Its sessions keep running there. {seen}"))),
)
.child(Button::new("m-connect-card", "Connect").icon("plug").on_click(cx.listener(move |this, _, _, cx| this.set_machine_connected(&mid, true, cx))))
.into_any_element()
diff --git a/src/ui/dialogs.rs b/src/ui/dialogs.rs
index 0aef0d1..62f0320 100644
--- a/src/ui/dialogs.rs
+++ b/src/ui/dialogs.rs
@@ -96,9 +96,9 @@ pub struct AddMachineDialog {
name: Entity<TextInput>,
host: Entity<TextInput>,
hosts: Vec<String>,
- /// Computers on the user's tailnet that aren't in Muxen yet.
+ /// Computers on the user's tailnet that aren't in Muxin yet.
tailnet: Vec<crate::api::TailnetHost>,
- /// Computers on this network that aren't in Muxen yet; still looking while None.
+ /// Computers on this network that aren't in Muxin yet; still looking while None.
network: Option<Vec<crate::fleet::discover::NetworkHost>>,
/// What to do before a picked machine can be added (a Mac with Remote Login off).
note: Option<String>,
@@ -189,7 +189,7 @@ impl Render for AddMachineDialog {
frame(
&theme,
"Add a machine",
- Some("Muxen reaches machines with your system ssh, keys and ~/.ssh/config. Checks are read-only; nothing is installed until you ask.".into()),
+ Some("Muxin reaches machines with your system ssh, keys and ~/.ssh/config. Checks are read-only; nothing is installed until you ask.".into()),
)
.child(field(&theme, "Name", self.name.clone(), None))
.child(field(&theme, "SSH host", self.host.clone(), Some("Key-based login must work without a password prompt.")))
@@ -723,17 +723,17 @@ impl Render for RenameDialog {
let (title, intro, field_name) = match &self.target {
RenameTarget::Machine(id) => (
"Rename machine",
- format!("Only the name Muxen shows changes. Its id ({id}), runners and sessions stay the same, and nothing on the machine changes."),
+ format!("Only the name Muxin shows changes. Its id ({id}), runners and sessions stay the same, and nothing on the machine changes."),
"Name",
),
RenameTarget::Display(..) => (
"Rename display",
- format!("What Muxen calls this monitor on {}. Its windows and settings stay as they are.", self.machine),
+ format!("What Muxin calls this monitor on {}. Its windows and settings stay as they are.", self.machine),
"Name",
),
RenameTarget::Session(_) => (
"Rename session",
- format!("Muxen's agent on {} keeps the title, so it shows wherever you use Muxen. What runs in the session isn't touched.", self.machine),
+ format!("Muxin's agent on {} keeps the title, so it shows wherever you use Muxin. What runs in the session isn't touched.", self.machine),
"Title",
),
};
@@ -808,7 +808,7 @@ impl AddDisplayDialog {
return;
}
if self.asking {
- // Read once, cleared from the field, kept only in memory while Muxen runs.
+ // Read once, cleared from the field, kept only in memory while Muxin runs.
let p = self.password.read(cx).text().to_string();
if p.is_empty() {
self.error = Some(format!("Type your password on {}.", self.machine_name));
@@ -911,7 +911,7 @@ impl Render for AddDisplayDialog {
frame(
&theme,
"Add a virtual monitor",
- Some(format!("Like plugging another screen into {}: windows can move there, and Muxen shows it on its own. It stays until you remove it or the machine restarts.", self.machine_name).into()),
+ Some(format!("Like plugging another screen into {}: windows can move there, and Muxin shows it on its own. It stays until you remove it or the machine restarts.", self.machine_name).into()),
)
.child(field(&theme, "Name", self.name.clone(), None))
.child(div().flex().flex_col().gap(px(6.)).child(label(&theme, "Size").text_size(px(12.)).text_color(theme.text_muted)).child(div().flex().gap(px(8.)).children(sizes)))
@@ -934,7 +934,7 @@ fn password_frame(theme: &Theme, machine: &str, what: &str) -> gpui::Div {
frame(
theme,
format!("Your password on {machine}"),
- Some(format!("{machine} asks for it to {what}. Muxen sends it to sudo there over its encrypted connection, and keeps it only in memory until you quit.").into()),
+ Some(format!("{machine} asks for it to {what}. Muxin sends it to sudo there over its encrypted connection, and keeps it only in memory until you quit.").into()),
)
}
@@ -1115,7 +1115,7 @@ impl Render for ConfirmDialog {
pub struct NewWorkspaceDialog {
engine: Arc<Engine>,
- /// None = let Muxen pick the least busy machine.
+ /// None = let Muxin pick the least busy machine.
machine: Option<String>,
name: Entity<TextInput>,
repo: Entity<TextInput>,
@@ -1522,7 +1522,7 @@ impl NewSessionDialog {
AGENTS.iter().find(|a| installed.iter().any(|i| i == a.id)).map(|a| a.id).unwrap_or("shell")
}
- /// The chosen machine can't keep sessions in Muxen's agent (Windows, for now).
+ /// The chosen machine can't keep sessions in Muxin's agent (Windows, for now).
fn without_agent(&self, s: &Snapshot) -> bool {
self.machine.as_ref().and_then(|id| s.machines.iter().find(|m| &m.id == id)).is_some_and(super::sessions::runs_in_app)
}
@@ -2178,7 +2178,7 @@ impl Render for NewSessionDialog {
.text_color(theme.text)
.child(div().pt(px(1.)).child(icon("info", 14., theme.warning)))
.child(div().flex_1().min_w(px(0.)).child(format!(
- "Sessions on {machine_name} run while Muxen is open; they can't keep running in the background there yet."
+ "Sessions on {machine_name} run while Muxin is open; they can't keep running in the background there yet."
)))
});
let place = self.place(&snapshot, cx);
@@ -2243,7 +2243,7 @@ impl Render for NewSessionDialog {
frame(
&theme,
"New session",
- Some("Runs an agent (or a shell) in a terminal on one of your machines. It keeps running when you close Muxen; come back to it from the sidebar.".into()),
+ Some("Runs an agent (or a shell) in a terminal on one of your machines. It keeps running when you close Muxin; come back to it from the sidebar.".into()),
)
.child(body)
.child(footer(vec![
diff --git a/src/ui/format.rs b/src/ui/format.rs
index 7817621..49a4b9a 100644
--- a/src/ui/format.rs
+++ b/src/ui/format.rs
@@ -48,7 +48,7 @@ pub fn disk_low(m: &Machine) -> bool {
m.diagnostics.iter().any(|d| d.code == "low-disk")
}
-/// Whether Muxen can show the machine's desktop (Linux with X11, macOS).
+/// Whether Muxin can show the machine's desktop (Linux with X11, macOS).
pub fn has_desktop(m: &Machine) -> bool {
// A Linux machine needs an X server; one checked before checks said is given the benefit of the doubt.
m.platform.starts_with("darwin") || ((m.platform.starts_with("linux") || m.platform.starts_with("windows")) && m.probe.as_ref().and_then(|p| p.desktop) != Some(false))
diff --git a/src/ui/github.rs b/src/ui/github.rs
index 75c2b8f..44024ec 100644
--- a/src/ui/github.rs
+++ b/src/ui/github.rs
@@ -159,7 +159,7 @@ impl Root {
});
}
- /// Switches Muxen to another GitHub account (one signed in here, or a
+ /// Switches Muxin to another GitHub account (one signed in here, or a
/// machine's) and reloads everything GitHub.
pub(super) fn gh_use_account(&mut self, login: String, machine_id: Option<String>, cx: &mut Context<Self>) {
let engine = self.engine.clone();
diff --git a/src/ui/hosted.rs b/src/ui/hosted.rs
index d781fa2..46b8b3a 100644
--- a/src/ui/hosted.rs
+++ b/src/ui/hosted.rs
@@ -34,7 +34,7 @@ impl Root {
(None, None) => (format!("ssh goes through {} to reach it.", parent.name), theme.text_placeholder),
};
let power = if installing { None } else { power_button(s, m, parent, host_down, "m-vm-power", cx) };
- // A VM Muxen made: its install's screen, its password, destroying it.
+ // A VM Muxin made: its install's screen, its password, destroying it.
let made = m.vm.as_ref();
let watch = made.and_then(|v| v.web_port).filter(|_| installing && !host_down).map(|port| {
let pid = parent.machine_id.clone();
@@ -49,13 +49,13 @@ impl Root {
Button::new("m-vm-password", "Copy password")
.style(ButtonStyle::Ghost)
.icon("copy")
- .tooltip("Its Windows account's password (Muxen made it; it's kept in your Keychain)")
+ .tooltip("Its Windows account's password (Muxin made it; it's kept in your Keychain)")
.on_click(cx.listener(move |this, _, _, cx| match this.engine.vm_password(&mid) {
Some(p) => {
cx.write_to_clipboard(gpui::ClipboardItem::new_string(p));
this.notify_user("Copied its password".to_string(), false, cx);
}
- None => this.notify_user("Muxen doesn't have its password.".to_string(), true, cx),
+ None => this.notify_user("Muxin doesn't have its password.".to_string(), true, cx),
}))
.into_any_element()
});
diff --git a/src/ui/menu.rs b/src/ui/menu.rs
index b6cb2ef..568311c 100644
--- a/src/ui/menu.rs
+++ b/src/ui/menu.rs
@@ -237,8 +237,8 @@ impl Root {
if self.engine.vm_options().hosts.iter().any(|h| &h.machine_id == id && !h.systems.is_empty()) {
items.push(act("New VM here…", "box", Action::NewVm(id.clone())));
}
- // A VM Muxen made goes with its container and disk.
- let label = if m.vm.is_some() { "Destroy…" } else { "Remove from Muxen…" };
+ // A VM Muxin made goes with its container and disk.
+ let label = if m.vm.is_some() { "Destroy…" } else { "Remove from Muxin…" };
items.push(Item::Action { label: label.into(), glyph: Glyph::Icon("trash-2"), action: Action::Remove(id.clone()), danger: true });
}
items
@@ -334,7 +334,7 @@ impl Root {
let mut items = vec![Item::Note("Open it in".into())];
items.extend(editor_items(&self.engine.settings().editor, machine, path, false));
if items.len() == 1 {
- items.push(Item::Note("No editor here: Muxen opens folders in Zed, Cursor or VS Code.".into()));
+ items.push(Item::Note("No editor here: Muxin opens folders in Zed, Cursor or VS Code.".into()));
}
items
}
diff --git a/src/ui/mod.rs b/src/ui/mod.rs
index 7558c34..3b95546 100644
--- a/src/ui/mod.rs
+++ b/src/ui/mod.rs
@@ -44,6 +44,9 @@ use theme::Appearance;
use root::{Quit, Root};
pub fn run(engine: Arc<Engine>, initial_view: Option<String>) {
+ if !engine.is_demo() {
+ std::thread::spawn(crate::renamed::retire_old_app);
+ }
Application::new().with_assets(assets::Assets).run(move |cx: &mut App| {
assets::load_fonts(cx);
assets::set_dock_icon();
@@ -79,9 +82,9 @@ pub fn run(engine: Arc<Engine>, initial_view: Option<String>) {
};
let bounds = Bounds::centered(display, size(px(w), px(h)), cx);
let titlebar = if cfg!(target_os = "macos") {
- TitlebarOptions { title: Some("Muxen".into()), appears_transparent: true, traffic_light_position: Some(point(px(16.), px(19.))) }
+ TitlebarOptions { title: Some("Muxin".into()), appears_transparent: true, traffic_light_position: Some(point(px(16.), px(19.))) }
} else {
- TitlebarOptions { title: Some("Muxen".into()), appears_transparent: false, traffic_light_position: None }
+ TitlebarOptions { title: Some("Muxin".into()), appears_transparent: false, traffic_light_position: None }
};
let window = cx.open_window(
WindowOptions {
@@ -89,7 +92,7 @@ pub fn run(engine: Arc<Engine>, initial_view: Option<String>) {
display_id: display,
titlebar: Some(titlebar),
window_min_size: Some(size(px(960.), px(600.))),
- app_id: Some("muxen".into()),
+ app_id: Some("muxin".into()),
// A test window (on the laptop's screen) doesn't take the keyboard
// from whatever the user is typing in.
focus: !wants_builtin,
@@ -163,7 +166,7 @@ pub(crate) fn pasteboard_state() -> Option<(i64, bool)> {
None
}
-/// Brings up the Tailscale app (to turn it on or sign in). Muxen itself never
+/// Brings up the Tailscale app (to turn it on or sign in). Muxin itself never
/// changes Tailscale's settings.
pub(crate) fn open_tailscale() {
#[cfg(target_os = "macos")]
diff --git a/src/ui/palette.rs b/src/ui/palette.rs
index 6c07e47..f3b0cd6 100644
--- a/src/ui/palette.rs
+++ b/src/ui/palette.rs
@@ -388,7 +388,7 @@ impl Root {
head.group = Some(m.id.clone());
out.push(head);
if m.is_disconnected() {
- let mut item = Item::new("Connect", "Muxen connects to it again", "Machine", Glyph::Icon("plug"), Run::Connect(m.id.clone()));
+ let mut item = Item::new("Connect", "Muxin connects to it again", "Machine", Glyph::Icon("plug"), Run::Connect(m.id.clone()));
item.indent = true;
item.group = Some(m.id.clone());
item.also = m.name.clone();
@@ -495,12 +495,12 @@ impl Root {
item("Settings: Cloud", "cloud", None, Run::Do(Command::Settings(SettingsTab::Cloud))),
item("Settings: Keyboard shortcuts", "keyboard", None, Run::Do(Command::Settings(SettingsTab::Keyboard))),
item("Cloud usage and cost", "cloud", None, Run::Do(Command::Settings(SettingsTab::Cloud))),
- item("Install the muxen command", "terminal", None, Run::Do(Command::Settings(SettingsTab::General))),
+ item("Install the muxin command", "terminal", None, Run::Do(Command::Settings(SettingsTab::General))),
item("Theme: Choose…", "palette", None, Run::Do(Command::ChooseTheme)),
item("Theme: Light mode", "palette", None, Run::Do(Command::Theme(Mode::Light))),
item("Theme: Dark mode", "palette", None, Run::Do(Command::Theme(Mode::Dark))),
item("Theme: Match the system", "palette", None, Run::Do(Command::Theme(Mode::System))),
- item("About Muxen", "info", None, Run::Go(Route::About)),
+ item("About Muxin", "info", None, Run::Go(Route::About)),
];
rename.into_iter().chain(all).collect()
}
diff --git a/src/ui/root.rs b/src/ui/root.rs
index eccd569..34d7a24 100644
--- a/src/ui/root.rs
+++ b/src/ui/root.rs
@@ -92,13 +92,13 @@ pub fn bind_keys(cx: &mut App) {
pub fn menus() -> Vec<Menu> {
vec![
Menu {
- name: "Muxen".into(),
+ name: "Muxin".into(),
items: vec![
- MenuItem::action("About Muxen", ShowAbout),
+ MenuItem::action("About Muxin", ShowAbout),
MenuItem::separator(),
MenuItem::action("Settings…", OpenSettings),
MenuItem::separator(),
- MenuItem::action("Quit Muxen", Quit),
+ MenuItem::action("Quit Muxin", Quit),
],
},
Menu {
@@ -1098,7 +1098,7 @@ impl Root {
/// Files dropped from the Finder on a machine: copy them there.
pub(super) fn copy_dropped(&mut self, machine_id: &str, paths: &[std::path::PathBuf], window: &mut Window, cx: &mut Context<Self>) {
let Some(local) = self.snapshot.machines.iter().find(|m| m.local).map(|m| m.id.clone()) else {
- self.notify_user("Add this computer to Muxen (host \"local\") to copy files from it.", true, cx);
+ self.notify_user("Add this computer to Muxin (host \"local\") to copy files from it.", true, cx);
return;
};
let Some(dir) = paths.first().and_then(|p| p.parent()).map(|p| p.display().to_string()) else { return };
@@ -1150,7 +1150,7 @@ impl Root {
let task = cx.spawn(async move |this, cx| {
let result = job.await.unwrap_or_else(|e| Err(e.to_string()));
let _ = this.update(cx, |this, cx| match result {
- Ok(from) => this.notify_user(format!("Woke {name} from {from}. Muxen looks again in a moment."), false, cx),
+ Ok(from) => this.notify_user(format!("Woke {name} from {from}. Muxin looks again in a moment."), false, cx),
Err(e) => this.notify_user(e, true, cx),
});
});
@@ -1361,10 +1361,10 @@ impl Root {
pub(super) fn confirm_remove_machine(&mut self, machine: &Machine, window: &mut Window, cx: &mut Context<Self>) {
let machine_id = machine.id.clone();
- // A VM Muxen made goes with its container and disk.
+ // A VM Muxin made goes with its container and disk.
if let Some(vm) = &machine.vm {
let host = machine.parent.as_ref().map(|p| p.name.clone()).unwrap_or_else(|| vm.host.clone());
- let detail = format!("Its container {} and its disk on {host} are deleted, and it leaves Muxen. Copy out anything you want to keep first.", vm.container);
+ let detail = format!("Its container {} and its disk on {host} are deleted, and it leaves Muxin. Copy out anything you want to keep first.", vm.container);
let dialog = cx.new(|cx| ConfirmDialog::new(format!("Destroy {}?", machine.name), detail, "Destroy", None, move |_, engine| engine.vm_destroy(&machine_id).map(Some), self.engine.clone(), window, cx));
self.show_modal(Modal::Confirm(dialog.clone()), window, cx);
self._subscriptions.push(cx.subscribe_in(&dialog, window, Self::on_dialog_event));
@@ -1373,7 +1373,7 @@ impl Root {
// A cloud machine goes with its droplet.
if let Some(c) = &machine.cloud {
let detail = format!(
- "Its droplet and everything on it are deleted, and it leaves Muxen. Push your work first. It has cost about ${:.2} so far.",
+ "Its droplet and everything on it are deleted, and it leaves Muxin. Push your work first. It has cost about ${:.2} so far.",
c.cost_so_far
);
let dialog = cx.new(|cx| {
@@ -1394,7 +1394,7 @@ impl Root {
}
let dialog = cx.new(|cx| {
ConfirmDialog::new(
- format!("Remove {} from Muxen?", machine.name),
+ format!("Remove {} from Muxin?", machine.name),
"It's taken out of config.toml. Nothing on the machine changes, and its runners stay registered.".into(),
"Remove machine",
None,
@@ -1691,7 +1691,7 @@ impl Root {
out
}
- /// The machine it sits under in the sidebar: the one it runs on, when that's in Muxen.
+ /// The machine it sits under in the sidebar: the one it runs on, when that's in Muxin.
pub(super) fn host_in_sidebar(s: &Snapshot, m: &Machine) -> Option<String> {
m.parent.as_ref().filter(|p| p.inside() && p.machine_id != m.id && s.machines.iter().any(|x| x.id == p.machine_id)).map(|p| p.machine_id.clone())
}
@@ -2020,7 +2020,7 @@ impl Root {
.flex()
.flex_col()
.min_w(px(0.))
- .child(div().w(px(text_w)).truncate().text_size(px(14.)).font_weight(FontWeight::SEMIBOLD).text_color(theme.text).child("Muxen")),
+ .child(div().w(px(text_w)).truncate().text_size(px(14.)).font_weight(FontWeight::SEMIBOLD).text_color(theme.text).child("Muxin")),
)
.when(s.demo, |d| d.child(div().flex_1()).child(kit::pill("demo", theme.warning)))
}
@@ -2914,7 +2914,7 @@ impl Root {
// An explicit width: GPUI 0.2 only ellipsizes text whose width it knows.
.child(div().w(px((self.row_width() - 20. - 30. - 16. - 16. - 74. - 52.).max(40.))).truncate().text_size(px(12.5)).text_color(if selected { theme.text } else { theme.text_muted }).child(d.name.clone()))
.child(div().flex_1())
- // Which ones Muxen added (and the × takes away).
+ // Which ones Muxin added (and the × takes away).
.child(kit::pill("virtual", theme.accent))
.child(div().flex_none().font_family(mono_font()).text_size(px(10.5)).text_color(theme.text_placeholder).group_hover("monitor-row", |st| st.invisible()).child(format!("{}×{}", d.width as u32, d.height as u32)))
// On hover, in place of the size: unplug it.
diff --git a/src/ui/schedule_dialog.rs b/src/ui/schedule_dialog.rs
index ffec0bb..31f04cb 100644
--- a/src/ui/schedule_dialog.rs
+++ b/src/ui/schedule_dialog.rs
@@ -298,7 +298,7 @@ impl Render for ScheduleDialog {
.child(field(&theme, "Runs", div().flex().flex_col().gap(px(8.)).child(kinds).child(what), None))
.child(field(&theme, "Folder", self.folder.clone(), None))
.child(field(&theme, "When", when, None));
- frame(&theme, "New schedule", Some("It's kept and run on the machine itself, so it runs even when Muxen isn't open.".into()))
+ frame(&theme, "New schedule", Some("It's kept and run on the machine itself, so it runs even when Muxin isn't open.".into()))
.child(div().id("sd-body").max_h(px(body_max)).overflow_y_scroll().child(fields))
.children(error_line(&theme, &self.error))
.child(footer(vec![
diff --git a/src/ui/schedules.rs b/src/ui/schedules.rs
index 0b39460..2909e34 100644
--- a/src/ui/schedules.rs
+++ b/src/ui/schedules.rs
@@ -149,7 +149,7 @@ impl Root {
.gap(px(4.))
.min_w(px(0.))
.child(div().text_size(px(22.)).font_weight(FontWeight::SEMIBOLD).child("Schedules"))
- .child(div().text_size(px(13.)).text_color(theme.text_muted).child("Commands and agent sessions that run on your machines at set times, in each machine’s own time. They run there, so they don’t need Muxen open.")),
+ .child(div().text_size(px(13.)).text_color(theme.text_muted).child("Commands and agent sessions that run on your machines at set times, in each machine’s own time. They run there, so they don’t need Muxin open.")),
)
.child(
div()
diff --git a/src/ui/services.rs b/src/ui/services.rs
index 23e8218..73dcc3a 100644
--- a/src/ui/services.rs
+++ b/src/ui/services.rs
@@ -747,7 +747,7 @@ impl Render for ServicesView {
.border_color(theme.border_variant)
.bg(theme.surface)
.child(icon("lock", 14., theme.text_muted))
- .child(div().text_size(px(12.5)).text_color(theme.text).child(format!("To {action} {}, Muxen needs your password on {machine_name}.", s.name)))
+ .child(div().text_size(px(12.5)).text_color(theme.text).child(format!("To {action} {}, Muxin needs your password on {machine_name}.", s.name)))
.child(div().w(px(200.)).child(self.password.clone()))
.child(Button::new("svc-password-go", "Continue").style(ButtonStyle::Primary).on_click(cx.listener(|this, _, window, cx| this.give_password(window, cx))))
.child(
@@ -1226,7 +1226,7 @@ impl ServicesView {
_ => ("Restart", "rotate-ccw"),
};
let text = if risky {
- format!("{verb} {}? It can cut Muxen off from {machine_name}.", s.name)
+ format!("{verb} {}? It can cut Muxin off from {machine_name}.", s.name)
} else if *action == "remove" {
format!("Remove {} for good?", s.name)
} else {
diff --git a/src/ui/sessions.rs b/src/ui/sessions.rs
index 9be50e6..12ae338 100644
--- a/src/ui/sessions.rs
+++ b/src/ui/sessions.rs
@@ -530,7 +530,7 @@ impl Root {
)
.children(info.git.as_ref().map(|g| git_line(&theme, &info.id, g, true).mt(px(2.)))),
)
- .when(!info.persistent, |d| d.child(kit::pill("Ends when you close Muxen", theme.warning)))
+ .when(!info.persistent, |d| d.child(kit::pill("Ends when you close Muxin", theme.warning)))
.child(status)
.when(info.agent != "shell" && !info.agent.is_empty() && !exited && offline.is_none(), |d| {
let sid = info.id.clone();
@@ -914,8 +914,8 @@ impl Root {
let text = match runs_in_app(m) {
_ if m.is_disconnected() => format!("Connect to {} to start Claude Code, Codex or a shell there.", m.name),
_ if m.is_down() => format!("Start Claude Code, Codex or a shell here once {} is back.", m.name),
- true => format!("Run Claude Code, Codex or a shell here. {} so sessions run while Muxen is open.", m.sessions_error.clone().unwrap_or_default().trim_end_matches('.')),
- false => "Run Claude Code, Codex, OpenCode or a shell here. Sessions keep working on the machine after you close Muxen.".to_string(),
+ true => format!("Run Claude Code, Codex or a shell here. {} so sessions run while Muxin is open.", m.sessions_error.clone().unwrap_or_default().trim_end_matches('.')),
+ false => "Run Claude Code, Codex, OpenCode or a shell here. Sessions keep working on the machine after you close Muxin.".to_string(),
};
card(theme)
.p(px(16.))
@@ -1017,7 +1017,7 @@ impl Root {
}
}
-/// Sessions here can't live in Muxen's agent (a platform it has no build
+/// Sessions here can't live in Muxin's agent (a platform it has no build
/// for), so they run in this window and end with it.
pub(super) fn runs_in_app(m: &FleetMachine) -> bool {
m.agent_version.is_none() && m.sessions_error.as_deref().is_some_and(|e| e.contains("no agent"))
diff --git a/src/ui/settings.rs b/src/ui/settings.rs
index 139af42..b0db73d 100644
--- a/src/ui/settings.rs
+++ b/src/ui/settings.rs
@@ -76,7 +76,7 @@ pub struct SettingsPage {
pub scroll: gpui::ScrollHandle,
tab: SettingsTab,
cloud: cloud::CloudState,
- /// The `muxen` command in the PATH.
+ /// The `muxin` command in the PATH.
shell: shell::ShellState,
/// A shortcut waiting for its new keys, and what catches them before
/// they run anything.
@@ -806,7 +806,7 @@ impl SettingsPage {
div().flex().flex_wrap().gap(px(10.)).children(cards)
}
- /// Tailscale on this computer: whether it's on, and what Muxen uses it for.
+ /// Tailscale on this computer: whether it's on, and what Muxin uses it for.
fn tailscale_section(&self, theme: &Theme) -> Option<impl IntoElement> {
let t = self.snapshot.tailscale.clone()?;
let here = if cfg!(target_os = "macos") { "this Mac" } else { "this computer" };
@@ -900,9 +900,9 @@ impl SettingsPage {
let mut options: Vec<(String, String)> = vec![(String::new(), "First installed".into())];
options.extend(installed.iter().map(|e| (e.id.to_string(), e.name.to_string())));
let detail = if installed.is_empty() {
- "No editor found: Muxen opens folders in Zed, Cursor or VS Code (with Remote - SSH).".to_string()
+ "No editor found: Muxin opens folders in Zed, Cursor or VS Code (with Remote - SSH).".to_string()
} else {
- "Open in editor opens a machine’s folder over ssh in the editor you pick from its list. The one chosen here comes first, and `muxen edit` uses it.".to_string()
+ "Open in editor opens a machine’s folder over ssh in the editor you pick from its list. The one chosen here comes first, and `muxin edit` uses it.".to_string()
};
// Full width, so its wrapped text is measured at that width (else the
// section below starts a line too early).
@@ -962,7 +962,7 @@ impl SettingsPage {
.p(px(14.))
.gap(px(10.))
.child(div().w_full().min_w(px(0.)).text_size(px(12.5)).text_color(theme.text_muted).child(
- "Machines and the runners they should host live in config.toml. Muxen edits it when you add machines or install runners, and keeps your comments.",
+ "Machines and the runners they should host live in config.toml. Muxin edits it when you add machines or install runners, and keeps your comments.",
))
.child(
div()
@@ -1249,7 +1249,7 @@ fn note(_theme: &Theme, icon_name: &'static str, color: gpui::Hsla, text: impl I
div().flex().items_center().gap(px(8.)).text_size(px(12.5)).child(icon(icon_name, 14., color)).child(text.into())
}
-/// A fix to run: copyable, and a button when it's a GitHub permission Muxen can ask for.
+/// A fix to run: copyable, and a button when it's a GitHub permission Muxin can ask for.
fn hint_line(theme: &Theme, i: usize, hint: String) -> impl IntoElement {
let copy = hint.clone();
let grant = hint.contains("gh auth refresh") && hint.contains("admin:org");
diff --git a/src/ui/settings/cloud.rs b/src/ui/settings/cloud.rs
index f8cfa33..bb5bdec 100644
--- a/src/ui/settings/cloud.rs
+++ b/src/ui/settings/cloud.rs
@@ -1,4 +1,4 @@
-//! Settings › Cloud: how Muxen signs in to DigitalOcean, what new cloud
+//! Settings › Cloud: how Muxin signs in to DigitalOcean, what new cloud
//! machines come with, and what happens to ones nobody is using.
use gpui::{AnyElement, App, Context, Entity, SharedString, Window, div, prelude::*, px};
@@ -76,7 +76,7 @@ impl SettingsPage {
}
/// What the cloud machines cost: now, this month, by its end, each one,
- /// and the account's bill when Muxen may read it.
+ /// and the account's bill when Muxin may read it.
pub(super) fn cloud_usage_section(&self, theme: &Theme, cx: &mut Context<Self>) -> AnyElement {
let body: AnyElement = match &self.cloud.usage {
None => div().p(px(14.)).flex().items_center().gap(px(6.)).text_size(px(12.5)).text_color(theme.text_muted).child(kit::spinner("cloud-usage", 12., theme.text_muted)).child("Adding it up…").into_any_element(),
@@ -316,7 +316,7 @@ impl SettingsPage {
.loading(self.cloud.busy)
.on_click(cx.listener(|this, _, _, cx| this.cloud_connect("oauth", cx)))
.into_any_element(),
- "oauth" => note(theme, "This copy of Muxen can't sign in in the browser yet. Use an API token or doctl.").into_any_element(),
+ "oauth" => note(theme, "This copy of Muxin can't sign in in the browser yet. Use an API token or doctl.").into_any_element(),
"doctl" => div()
.flex()
.items_center()
@@ -476,7 +476,7 @@ impl SettingsPage {
.child(div().flex_1().child(self.cloud.tailscale_key.clone()))
.child(Button::new("ts-key-save", "Save").on_click(cx.listener(|this, _, _, cx| this.save_tailscale_key(cx)))),
)
- .child(note(theme, if has_key { "A key is saved. New machines join your tailnet with it." } else { "Without one, Muxen opens Tailscale's approval page for each new machine." }))
+ .child(note(theme, if has_key { "A key is saved. New machines join your tailnet with it." } else { "Without one, Muxin opens Tailscale's approval page for each new machine." }))
.into_any_element(),
))
}),
@@ -518,7 +518,7 @@ impl SettingsPage {
.child(row(theme, "Then", idle.into_any_element()))
.when(settings.idle_action != "off", |d| d.child(row(theme, "After", stepper.into_any_element())))
.children(warning.map(|w| note(theme, w)))
- .child(note(theme, "Idle: no busy session, running job or CPU use. Muxen has to be open to notice.")),
+ .child(note(theme, "Idle: no busy session, running job or CPU use. Muxin has to be open to notice.")),
);
div().flex().flex_col().gap(px(28.)).child(account).children(defaults).child(when_idle)
diff --git a/src/ui/settings/prompts.rs b/src/ui/settings/prompts.rs
index 36cb120..ac7d4a7 100644
--- a/src/ui/settings/prompts.rs
+++ b/src/ui/settings/prompts.rs
@@ -1,5 +1,5 @@
//! Settings › Prompts: what each session action (commit, open a pull
-//! request, review, ...) types into an agent. Any can be changed; Muxen's
+//! request, review, ...) types into an agent. Any can be changed; Muxin's
//! own comes back with Reset. Kept in `[settings.prompts]` in config.toml.
use gpui::{AnyElement, Context, Entity, Focusable, FontWeight, SharedString, Subscription, Window, div, prelude::*, px};
@@ -18,7 +18,7 @@ pub(super) struct PromptEdit {
}
impl SettingsPage {
- /// The prompt an action types in: the user's, else Muxen's.
+ /// The prompt an action types in: the user's, else Muxin's.
fn prompt_of(&self, a: &SessionAction) -> (String, bool) {
match self.engine.settings().prompts.get(a.id).filter(|p| !p.trim().is_empty()) {
Some(p) => (p.clone(), true),
@@ -49,7 +49,7 @@ impl SettingsPage {
}
}
- /// Keeps what's in the field; Muxen's own (or an empty field) is kept as no change.
+ /// Keeps what's in the field; Muxin's own (or an empty field) is kept as no change.
fn save_prompt(&mut self, cx: &mut Context<Self>) {
let Some(edit) = self.prompt_edit.take() else { return };
let text = edit.input.read(cx).text().trim().to_string();
@@ -95,7 +95,7 @@ impl SettingsPage {
.child(div().flex_1())
.when(editing.is_none(), |d| {
d.when(changed, |d| {
- d.child(Button::new(SharedString::from(format!("prompt-reset-{}", a.id)), "Reset").style(ButtonStyle::Ghost).tooltip("Go back to Muxen's prompt").on_click(cx.listener(move |this, _, _, cx| this.set_prompt(a.id, None, cx))))
+ d.child(Button::new(SharedString::from(format!("prompt-reset-{}", a.id)), "Reset").style(ButtonStyle::Ghost).tooltip("Go back to Muxin's prompt").on_click(cx.listener(move |this, _, _, cx| this.set_prompt(a.id, None, cx))))
})
.child(Button::new(SharedString::from(format!("prompt-edit-{}", a.id)), "Edit").icon("pencil").on_click(cx.listener(move |this, _, window, cx| this.edit_prompt(a, window, cx))))
})
@@ -115,7 +115,7 @@ impl SettingsPage {
.flex_col()
.gap(px(6.))
.child(e.input.clone())
- .child(div().text_size(px(12.)).text_color(theme.text_placeholder).child(if typed.trim().is_empty() { format!("Empty uses Muxen's: {}", a.prompt) } else { typed }))
+ .child(div().text_size(px(12.)).text_color(theme.text_placeholder).child(if typed.trim().is_empty() { format!("Empty uses Muxin's: {}", a.prompt) } else { typed }))
.into_any_element()
}
None => div().text_size(px(12.5)).line_height(px(18.)).text_color(theme.text_muted).child(text).into_any_element(),
@@ -129,7 +129,7 @@ impl SettingsPage {
.when(i > 0, |d| d.border_t_1().border_color(theme.border_variant))
.child(header)
.child(body)
- .child(div().font_family(mono_font()).text_size(px(10.5)).text_color(theme.text_placeholder).child(format!("muxen session do <session> {}", a.id)))
+ .child(div().font_family(mono_font()).text_size(px(10.5)).text_color(theme.text_placeholder).child(format!("muxin session do <session> {}", a.id)))
.into_any_element()
}
}
diff --git a/src/ui/settings/shell.rs b/src/ui/settings/shell.rs
index bbc2e86..ac8f5cc 100644
--- a/src/ui/settings/shell.rs
+++ b/src/ui/settings/shell.rs
@@ -1,5 +1,5 @@
-//! Settings › General › Command line: the `muxen` command in the PATH (see
-//! crate::shell_command), so terminals and other agents can run Muxen.
+//! Settings › General › Command line: the `muxin` command in the PATH (see
+//! crate::shell_command), so terminals and other agents can run Muxin.
use gpui::{AnyElement, Context, div, prelude::*, px};
@@ -54,7 +54,7 @@ impl SettingsPage {
None => ("loader-circle", theme.text_muted, "Looking…".into()),
Some(s) => match s.state {
"installed" => ("circle-check", theme.success, format!("Installed: {}", s.path)),
- "missing" if cfg!(windows) => ("circle", theme.text_muted, "Not installed. Muxen's folder gets added to your PATH.".into()),
+ "missing" if cfg!(windows) => ("circle", theme.text_muted, "Not installed. Muxin's folder gets added to your PATH.".into()),
"missing" => ("circle", theme.text_muted, format!("Not installed. It goes in {}.", s.path)),
"other" => ("triangle-alert", theme.warning, format!("{} is already there.", s.path)),
_ => ("circle-x", theme.error, "Not available on this computer.".into()),
@@ -64,7 +64,8 @@ impl SettingsPage {
// Before it asks: macOS shows its own password prompt for /usr/local/bin.
st.status.as_ref().filter(|s| s.state == "missing" && cfg!(target_os = "macos")).map(|_| "macOS may ask for your password to add it there.".to_string())
});
- let state = st.status.as_ref().map(|s| (s.state, s.replaceable));
+ // Homebrew's link goes when Homebrew uninstalls the app.
+ let state = st.status.as_ref().filter(|s| !s.homebrew).map(|s| (s.state, s.replaceable));
let button = match state {
Some(("missing", _)) => Some(Button::new("shell-install", "Install").icon("plus").style(ButtonStyle::Primary).loading(st.busy).on_click(cx.listener(|this, _, _, cx| this.run_shell(Some(true), cx)))),
Some(("other", true)) => Some(Button::new("shell-replace", "Use this copy").icon("refresh-cw").loading(st.busy).on_click(cx.listener(|this, _, _, cx| this.run_shell(Some(true), cx)))),
@@ -81,7 +82,7 @@ impl SettingsPage {
.p(px(14.))
.gap(px(10.))
.child(div().w_full().min_w(px(0.)).text_size(px(12.5)).text_color(theme.text_muted).child(
- "Use Muxen from a terminal, and connect other agents to it with muxen mcp.",
+ "Use Muxin from a terminal, and connect other agents to it with muxin mcp.",
))
.child(
div()
diff --git a/src/ui/theme.rs b/src/ui/theme.rs
index e7b9993..0aac64b 100644
--- a/src/ui/theme.rs
+++ b/src/ui/theme.rs
@@ -51,7 +51,7 @@ pub struct Theme {
pub text_placeholder: Hsla,
pub text_accent: Hsla,
pub accent: Hsla,
- /// The second brand color (Muxen Dusk and Dawn: the icon's orange); the
+ /// The second brand color (Muxin Dusk and Dawn: the icon's orange); the
/// accent itself in other themes.
pub accent2: Hsla,
pub accent_text: Hsla,
diff --git a/src/ui/themes.rs b/src/ui/themes.rs
index b78ec52..c6753fc 100644
--- a/src/ui/themes.rs
+++ b/src/ui/themes.rs
@@ -67,7 +67,7 @@ pub const DEFAULT_LIGHT: &str = "dawn";
pub static PALETTES: &[Palette] = &[
// --- Dark ---------------------------------------------------------------
- palette!("graphite", "Muxen Graphite", true,
+ palette!("graphite", "Muxin Graphite", true,
sidebar 0x0f1013, canvas 0x15161a, surface 0x1b1c21, elevated 0x202127, border 0x2b2d35, 0x24262d,
text 0xececf1, 0xa2a4ae, 0x6c6f7b,
accent 0x8b7cff, success 0x4ad6a7, warning 0xf2b347, error 0xff6b6b, info 0x6cb8ff),
@@ -76,7 +76,7 @@ pub static PALETTES: &[Palette] = &[
// as a gradient on primary buttons (as on the icon).
Palette {
accent2: 0xe8734a,
- ..palette!("dusk", "Muxen Dusk", true,
+ ..palette!("dusk", "Muxin Dusk", true,
sidebar 0x151834, canvas 0x1a1e3c, surface 0x20254a, elevated 0x272d56, border 0x363d6e, 0x2b3160,
text 0xeeecfb, 0xaeb0d8, 0x7a7fae,
accent 0xa66bf2, success 0x52d6ad, warning 0xf2c94c, error 0xff6e86, info 0x7fa4ff)
@@ -152,7 +152,7 @@ pub static PALETTES: &[Palette] = &[
text 0xe6edf3, 0x9198a1, 0x6e7681,
accent 0x4493f8, success 0x3fb950, warning 0xd29922, error 0xf85149, info 0x58a6ff),
// --- Light --------------------------------------------------------------
- palette!("paper", "Muxen Paper", false,
+ palette!("paper", "Muxin Paper", false,
sidebar 0xf0f0f3, canvas 0xfafafb, surface 0xffffff, elevated 0xffffff, border 0xe2e2e8, 0xebebf0,
text 0x16171c, 0x5c5f6a, 0x8c8f9a,
accent 0x6d5cf6, success 0x12a27a, warning 0xc8870e, error 0xe5484d, info 0x2f80ed),
@@ -160,7 +160,7 @@ pub static PALETTES: &[Palette] = &[
// deeper violet and orange so they read on white.
Palette {
accent2: 0xc0501a,
- ..palette!("dawn", "Muxen Dawn", false,
+ ..palette!("dawn", "Muxin Dawn", false,
sidebar 0xf2eff9, canvas 0xfaf8fe, surface 0xffffff, elevated 0xffffff, border 0xe1dcf0, 0xebe7f6,
text 0x1e2148, 0x585c88, 0x8b8eb2,
accent 0x7d45e4, success 0x0c8f6b, warning 0x9a6a00, error 0xd8435a, info 0x3b6fe0)
diff --git a/src/ui/workspaces.rs b/src/ui/workspaces.rs
index fa45221..7a1ac28 100644
--- a/src/ui/workspaces.rs
+++ b/src/ui/workspaces.rs
@@ -42,7 +42,7 @@ impl Root {
"A workspace is a folder on one of your machines, optionally a git checkout, that an agent uses as its work environment: it runs commands, edits files and syncs code there. Workspaces persist until destroyed.",
),
).child(div().text_size(px(12.)).text_color(theme.text_placeholder).child(format!(
- "{allowed} of {} machines accept workspaces. Agents create them with the workspace_create MCP tool or `muxen workspace create`.",
+ "{allowed} of {} machines accept workspaces. Agents create them with the workspace_create MCP tool or `muxin workspace create`.",
s.machines.len()
))),
)