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.
Cloud machines on DigitalOcean, one config.toml, icon styles, Settings tabs
Adib Hanna4ff299e8e946
diff --git a/AGENTS.md b/AGENTS.mdindex aa91f68..07c4b9c 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -8,7 +8,7 @@ Use the MCP tools when they're connected: start the server with `muxen mcp`, and1. **Start with `fleet_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.2. **The state may be stale.** `fleet_status` uses the last machine check. Look at `last_check_at` and each machine's `checked_at`. Call `check_machines` (or `fleet_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` and `remove_machine` only edit `fleet.toml`.+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` and `remove_machine` only edit `config.toml`.4. **Use the hints.** Errors have a `code`:- `not_found`- `invalid`@@ -56,6 +56,7 @@ Use the MCP tools when they're connected: start the server with `muxen mcp`, and1. Call `list_jobs`. A queued job with `matching_online: 0` has no online runner with all of its labels.2. Compare the job's labels with the runners' labels (`list_runners`). The fix is usually to start an offline runner, or to install one with the missing label (`install_runners(labels: [...])`).+3. To stop a run that shouldn't go on, `cancel_run(job_id)` cancels the job's whole workflow run (GitHub cancels runs, not single jobs). Confirm with the user first.## Workspaces: borrowing a machine to work on@@ -114,6 +115,18 @@ The CLI equivalents are `muxen session ls|start|read|send|attach|restart|stop`.- 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.- `desktop_screenshot(machine_id)` returns a picture of the machine's screen (Linux with X11, and Macs). `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.+## Cloud machines++Muxen can create DigitalOcean droplets in the user's account and make them fleet 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 fleet. **It costs money every hour it exists:** tell the user the size and price and get their OK first.+- `cloud_power(machine_id, "on"|"off")`: a powered-off droplet is still billed.+- `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|power|destroy|login|logout`.+## Files- `list_files(machine_id, path)` lists a folder on any Linux or macOS machine, this computer included.@@ -123,7 +136,7 @@ The CLI equivalents are `muxen session ls|start|read|send|attach|restart|stop`.## Don'ts-- Don't edit `fleet.toml`, `settings.json` or `state.json` by hand while the tools can do it.+- 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 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/Cargo.lock b/Cargo.lockindex 02b3c92..da57e81 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -3597,6 +3597,7 @@ dependencies = ["reqwest","ring","rustls",+ "security-framework","serde","serde_json","smallvec",diff --git a/Cargo.toml b/Cargo.tomlindex 851828a..c175a25 100644--- a/Cargo.toml+++ b/Cargo.toml@@ -48,6 +48,8 @@ cocoa = { version = "=0.26.0", optional = true }# Also already in GPUI's tree: to start a native window drag from our own title bar.objc = { version = "0.2", optional = true }raw-window-handle = { version = "0.6", optional = true }+# Already in the tree (through reqwest/native roots): the Keychain, for cloud sign-ins.+security-framework = "3"[workspace]members = [".", "agent"]diff --git a/README.md b/README.mdindex cdec527..9b440a8 100644--- a/README.md+++ b/README.md@@ -9,7 +9,7 @@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:-- **Agent sessions:** Claude Code, Codex, OpenCode, Gemini CLI, Amp or a shell on any machine, in a real terminal, still running after you close the app.+- **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.- **Files and clipboard:** copy files and folders between any two machines, and copy on your Mac to paste on a machine (and back).- **GitHub:** your inbox, repositories, issues and pull requests, with one click to hand an issue to an agent on the machine you pick.@@ -55,7 +55,7 @@ To get a real app with the Muxen icon:```shmuxen --demo # explore a simulated fleet first; nothing real is touched-muxen # your fleet: starts with this computer in fleet.toml+muxen # your fleet: starts with this computer in config.tomlmuxen add-machine --name "Mac Studio" --host [email protected]muxen watch acme # live runner status and jobs for the acme orgmuxen install mac-studio --count 2 # two runners, registered with acme, as services@@ -67,7 +67,7 @@ muxen status- **Overview:** a *fleet pulse* chart of how busy your online runners are, counts of working, idle, offline and queued, what needs attention (with a button that fixes or explains each item), and a card per machine with live CPU, memory and disk.- **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.- **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 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) and keep running when you close the app. Terminal font size, line height and a blinking cursor are in Settings.+- **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) and keep running when you close the app. Terminal font size, line height and a blinking cursor are in Settings.- **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 the fleet: 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.@@ -76,16 +76,17 @@ muxen status- 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.- The macOS themes also switch to the system fonts (SF Pro, and SF Mono when it's installed). The choice is saved in `ui.json` next to `fleet.toml`.+ 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]`).Keyboard: ⌘1…⌘9 go to your machines · ⌃1…⌃4 overview, jobs, workspaces, GitHub (Alt on Linux and Windows) · ⌘J activity · ⌘R check machines · ⇧⌘R sync GitHub · ⌘N add machine · ⌘T new session · ⌘F or `/` search the fleet · ⌘B sidebar · ⌘[ / ⌘] back / forward · ⌘, settings. Hold ⌘ to see them in the app, and change them in Settings › Keyboard. On Linux and Windows, use Ctrl instead of ⌘.-## The inventory: `fleet.toml`+## Your settings: `config.toml`-Muxen keeps its files in `~/.config/muxen/`, or in `$MUXEN_HOME` if that's set. Run `muxen paths` to see where they are.+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.-- `fleet.toml` lists your machines. You can edit it by hand. Muxen also edits it when you add machines or install runners, and keeps your comments when it does.-- `settings.json` holds the watched GitHub orgs and repos, the polling intervals, and whether the clipboard is shared.+- `[[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.+- `[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.- `direct.json` holds the machines paired for direct connections, and their addresses.@@ -160,7 +161,7 @@ The MCP server has these tools:| `list_runners` | Runners, optionally filtered by machine or state. || `list_jobs` | Queued and running jobs, including which ones no runner can take. || `check_machines` | Runs the read-only machine check over ssh now. |-| `add_machine`, `remove_machine` | Edit `fleet.toml`. Nothing on the machine changes. |+| `add_machine`, `remove_machine` | Edit `config.toml`. Nothing on the machine changes. || `install_runners` | Downloads, registers and starts runners on a machine. || `runner_action` | Starts, stops, restarts or removes a runner, or reads its logs. || `get_operation`, `list_operations` | Progress and output of long operations. |@@ -225,7 +226,7 @@ Ids:Every command also accepts `--demo`.-The window, the CLI and MCP servers can all run at once. They share the files in the config directory and pick up each other's changes: settings, edits to `fleet.toml`, and newer machine checks.+The window, the CLI and MCP servers can all run at once. They share the files in the config directory and pick up each other's changes: settings, edits to `config.toml`, and newer machine checks.## Agent workspaces@@ -260,7 +261,7 @@ muxen 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 `fleet.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 `fleet.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 `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).## Your GitHub, and handing issues to agents@@ -268,7 +269,7 @@ 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 `settings.json` as `codeFolders`) and links them to their GitHub repository, with branch, commits ahead/behind and uncommitted changes. Fetch, Pull and Push from there.+- **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.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.@@ -353,7 +354,7 @@ If [Tailscale](https://tailscale.com) is on your Mac, Muxen uses it to keep mach- **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 `fleet.toml` or your ssh config), ssh goes to its tailnet address instead when the usual one doesn't answer.+- **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**).- **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.@@ -375,6 +376,19 @@ muxen 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 fleet. Then it's like any other machine: terminals, agent sessions, files, workspaces.++Its page shows what it costs, with **Power off** (DigitalOcean still bills a droplet that's off) and **Destroy**. 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 destroy dev-1+```+## 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.@@ -414,4 +428,4 @@ Source layout:Copyright © 2026 Adib Hanna. All rights reserved. Muxen is proprietary software; see `LICENSE`.-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`), GPUI (Apache-2.0) and the Rust crates in `Cargo.lock`.+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/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.mdindex 10e7423..d072fc3 100644--- a/THIRD_PARTY_NOTICES.md+++ b/THIRD_PARTY_NOTICES.md@@ -7,14 +7,20 @@ must ship with every copy of Muxen.|---|---|---|| Geist and Geist Mono fonts (Vercel) | SIL Open Font License 1.1 | `assets/fonts/OFL.txt` || Lucide icons | ISC | `assets/icons/LICENSE.txt` |+| Phosphor icons (`assets/icons/pf-*.svg`) | MIT | `assets/icons/PHOSPHOR-LICENSE.txt` |+| Hugeicons (`assets/icons/hg-*.svg`) | MIT | `assets/icons/HUGEICONS-LICENSE.txt` |+| Solar icons by 480 Design (`assets/icons/so-*.svg`) | CC BY 4.0 | `assets/icons/SOLAR-NOTICE.txt` |+| MingCute icons (`assets/icons/mc-*.svg`) | Apache-2.0 | `assets/icons/MINGCUTE-LICENSE.txt` |+| Fluent UI System Icons, Microsoft (`assets/icons/fl-*.svg`) | MIT | `assets/icons/FLUENT-LICENSE.txt` || GPUI (Zed Industries) | Apache-2.0 | <https://github.com/zed-industries/zed> || alacritty_terminal (terminal emulation, in the app and the agent) | Apache-2.0 | <https://github.com/alacritty/alacritty> || portable-pty (WezTerm; terminals in `muxen-agent`) | MIT | <https://github.com/wezterm/wezterm> || Agent logos (`assets/icons/agent-*.svg`), SVGs from LobeHub Icons | MIT | <https://github.com/lobehub/lobe-icons> |+| Pi logo (`assets/icons/agent-pi.svg`), from Pi's press kit (Earendil) | trademark of its owner | <https://pi.dev/press-kit> || 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). Muxen shows them only to identify which CLI a session+SST, Sourcegraph, Earendil). Muxen shows them only to identify which CLI a sessionruns; check each owner's brand guidelines before using them in marketing.Before shipping a release, regenerate the crate list and include the licensediff --git a/assets/icons/FLUENT-LICENSE.txt b/assets/icons/FLUENT-LICENSE.txtnew file mode 100644index 0000000..bc9c36b--- /dev/null+++ b/assets/icons/FLUENT-LICENSE.txt@@ -0,0 +1,21 @@+MIT License++Copyright (c) 2020 Microsoft Corporation++Permission is hereby granted, free of charge, to any person obtaining a copy+of this software and associated documentation files (the "Software"), to deal+in the Software without restriction, including without limitation the rights+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell+copies of the Software, and to permit persons to whom the Software is+furnished to do so, subject to the following conditions:++The above copyright notice and this permission notice shall be included in all+copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE+SOFTWARE.diff --git a/assets/icons/HUGEICONS-LICENSE.txt b/assets/icons/HUGEICONS-LICENSE.txtnew file mode 100644index 0000000..302d211--- /dev/null+++ b/assets/icons/HUGEICONS-LICENSE.txt@@ -0,0 +1,21 @@+MIT License++Copyright (c) 2025 Hugeicons++Permission is hereby granted, free of charge, to any person obtaining a copy+of this software and associated documentation files (the "Software"), to deal+in the Software without restriction, including without limitation the rights+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell+copies of the Software, and to permit persons to whom the Software is+furnished to do so, subject to the following conditions:++The above copyright notice and this permission notice shall be included in all+copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE+SOFTWARE.diff --git a/assets/icons/MINGCUTE-LICENSE.txt b/assets/icons/MINGCUTE-LICENSE.txtnew file mode 100644index 0000000..d645695--- /dev/null+++ b/assets/icons/MINGCUTE-LICENSE.txt@@ -0,0 +1,202 @@++ Apache License+ Version 2.0, January 2004+ http://www.apache.org/licenses/++ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION++ 1. Definitions.++ "License" shall mean the terms and conditions for use, reproduction,+ and distribution as defined by Sections 1 through 9 of this document.++ "Licensor" shall mean the copyright owner or entity authorized by+ the copyright owner that is granting the License.++ "Legal Entity" shall mean the union of the acting entity and all+ other entities that control, are controlled by, or are under common+ control with that entity. For the purposes of this definition,+ "control" means (i) the power, direct or indirect, to cause the+ direction or management of such entity, whether by contract or+ otherwise, or (ii) ownership of fifty percent (50%) or more of the+ outstanding shares, or (iii) beneficial ownership of such entity.++ "You" (or "Your") shall mean an individual or Legal Entity+ exercising permissions granted by this License.++ "Source" form shall mean the preferred form for making modifications,+ including but not limited to software source code, documentation+ source, and configuration files.++ "Object" form shall mean any form resulting from mechanical+ transformation or translation of a Source form, including but+ not limited to compiled object code, generated documentation,+ and conversions to other media types.++ "Work" shall mean the work of authorship, whether in Source or+ Object form, made available under the License, as indicated by a+ copyright notice that is included in or attached to the work+ (an example is provided in the Appendix below).++ "Derivative Works" shall mean any work, whether in Source or Object+ form, that is based on (or derived from) the Work and for which the+ editorial revisions, annotations, elaborations, or other modifications+ represent, as a whole, an original work of authorship. For the purposes+ of this License, Derivative Works shall not include works that remain+ separable from, or merely link (or bind by name) to the interfaces of,+ the Work and Derivative Works thereof.++ "Contribution" shall mean any work of authorship, including+ the original version of the Work and any modifications or additions+ to that Work or Derivative Works thereof, that is intentionally+ submitted to Licensor for inclusion in the Work by the copyright owner+ or by an individual or Legal Entity authorized to submit on behalf of+ the copyright owner. For the purposes of this definition, "submitted"+ means any form of electronic, verbal, or written communication sent+ to the Licensor or its representatives, including but not limited to+ communication on electronic mailing lists, source code control systems,+ and issue tracking systems that are managed by, or on behalf of, the+ Licensor for the purpose of discussing and improving the Work, but+ excluding communication that is conspicuously marked or otherwise+ designated in writing by the copyright owner as "Not a Contribution."++ "Contributor" shall mean Licensor and any individual or Legal Entity+ on behalf of whom a Contribution has been received by Licensor and+ subsequently incorporated within the Work.++ 2. Grant of Copyright License. Subject to the terms and conditions of+ this License, each Contributor hereby grants to You a perpetual,+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable+ copyright license to reproduce, prepare Derivative Works of,+ publicly display, publicly perform, sublicense, and distribute the+ Work and such Derivative Works in Source or Object form.++ 3. Grant of Patent License. Subject to the terms and conditions of+ this License, each Contributor hereby grants to You a perpetual,+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable+ (except as stated in this section) patent license to make, have made,+ use, offer to sell, sell, import, and otherwise transfer the Work,+ where such license applies only to those patent claims licensable+ by such Contributor that are necessarily infringed by their+ Contribution(s) alone or by combination of their Contribution(s)+ with the Work to which such Contribution(s) was submitted. If You+ institute patent litigation against any entity (including a+ cross-claim or counterclaim in a lawsuit) alleging that the Work+ or a Contribution incorporated within the Work constitutes direct+ or contributory patent infringement, then any patent licenses+ granted to You under this License for that Work shall terminate+ as of the date such litigation is filed.++ 4. Redistribution. You may reproduce and distribute copies of the+ Work or Derivative Works thereof in any medium, with or without+ modifications, and in Source or Object form, provided that You+ meet the following conditions:++ (a) You must give any other recipients of the Work or+ Derivative Works a copy of this License; and++ (b) You must cause any modified files to carry prominent notices+ stating that You changed the files; and++ (c) You must retain, in the Source form of any Derivative Works+ that You distribute, all copyright, patent, trademark, and+ attribution notices from the Source form of the Work,+ excluding those notices that do not pertain to any part of+ the Derivative Works; and++ (d) If the Work includes a "NOTICE" text file as part of its+ distribution, then any Derivative Works that You distribute must+ include a readable copy of the attribution notices contained+ within such NOTICE file, excluding those notices that do not+ pertain to any part of the Derivative Works, in at least one+ of the following places: within a NOTICE text file distributed+ as part of the Derivative Works; within the Source form or+ documentation, if provided along with the Derivative Works; or,+ within a display generated by the Derivative Works, if and+ wherever such third-party notices normally appear. The contents+ of the NOTICE file are for informational purposes only and+ do not modify the License. You may add Your own attribution+ notices within Derivative Works that You distribute, alongside+ or as an addendum to the NOTICE text from the Work, provided+ that such additional attribution notices cannot be construed+ as modifying the License.++ You may add Your own copyright statement to Your modifications and+ may provide additional or different license terms and conditions+ for use, reproduction, or distribution of Your modifications, or+ for any such Derivative Works as a whole, provided Your use,+ reproduction, and distribution of the Work otherwise complies with+ the conditions stated in this License.++ 5. Submission of Contributions. Unless You explicitly state otherwise,+ any Contribution intentionally submitted for inclusion in the Work+ by You to the Licensor shall be under the terms and conditions of+ this License, without any additional terms or conditions.+ Notwithstanding the above, nothing herein shall supersede or modify+ the terms of any separate license agreement you may have executed+ with Licensor regarding such Contributions.++ 6. Trademarks. This License does not grant permission to use the trade+ names, trademarks, service marks, or product names of the Licensor,+ except as required for reasonable and customary use in describing the+ origin of the Work and reproducing the content of the NOTICE file.++ 7. Disclaimer of Warranty. Unless required by applicable law or+ agreed to in writing, Licensor provides the Work (and each+ Contributor provides its Contributions) on an "AS IS" BASIS,+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or+ implied, including, without limitation, any warranties or conditions+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A+ PARTICULAR PURPOSE. You are solely responsible for determining the+ appropriateness of using or redistributing the Work and assume any+ risks associated with Your exercise of permissions under this License.++ 8. Limitation of Liability. In no event and under no legal theory,+ whether in tort (including negligence), contract, or otherwise,+ unless required by applicable law (such as deliberate and grossly+ negligent acts) or agreed to in writing, shall any Contributor be+ liable to You for damages, including any direct, indirect, special,+ incidental, or consequential damages of any character arising as a+ result of this License or out of the use or inability to use the+ Work (including but not limited to damages for loss of goodwill,+ work stoppage, computer failure or malfunction, or any and all+ other commercial damages or losses), even if such Contributor+ has been advised of the possibility of such damages.++ 9. Accepting Warranty or Additional Liability. While redistributing+ the Work or Derivative Works thereof, You may choose to offer,+ and charge a fee for, acceptance of support, warranty, indemnity,+ or other liability obligations and/or rights consistent with this+ License. However, in accepting such obligations, You may act only+ on Your own behalf and on Your sole responsibility, not on behalf+ of any other Contributor, and only if You agree to indemnify,+ defend, and hold each Contributor harmless for any liability+ incurred by, or claims asserted against, such Contributor by reason+ of your accepting any such warranty or additional liability.++ END OF TERMS AND CONDITIONS++ APPENDIX: How to apply the Apache License to your work.++ To apply the Apache License to your work, attach the following+ boilerplate notice, with the fields enclosed by brackets "[]"+ replaced with your own identifying information. (Don't include+ the brackets!) The text should be enclosed in the appropriate+ comment syntax for the file format. We also recommend that a+ file or class name and description of purpose be included on the+ same "printed page" as the copyright notice for easier+ identification within third-party archives.++ Copyright [yyyy] [name of copyright owner]++ Licensed under the Apache License, Version 2.0 (the "License");+ you may not use this file except in compliance with the License.+ You may obtain a copy of the License at++ http://www.apache.org/licenses/LICENSE-2.0++ Unless required by applicable law or agreed to in writing, software+ distributed under the License is distributed on an "AS IS" BASIS,+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ See the License for the specific language governing permissions and+ limitations under the License.diff --git a/assets/icons/PHOSPHOR-LICENSE.txt b/assets/icons/PHOSPHOR-LICENSE.txtnew file mode 100644index 0000000..cd036c9--- /dev/null+++ b/assets/icons/PHOSPHOR-LICENSE.txt@@ -0,0 +1,21 @@+MIT License++Copyright (c) 2023 Phosphor Icons++Permission is hereby granted, free of charge, to any person obtaining a copy+of this software and associated documentation files (the "Software"), to deal+in the Software without restriction, including without limitation the rights+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell+copies of the Software, and to permit persons to whom the Software is+furnished to do so, subject to the following conditions:++The above copyright notice and this permission notice shall be included in all+copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE+SOFTWARE.diff --git a/assets/icons/SOLAR-NOTICE.txt b/assets/icons/SOLAR-NOTICE.txtnew file mode 100644index 0000000..d785bc6--- /dev/null+++ b/assets/icons/SOLAR-NOTICE.txt@@ -0,0 +1,8 @@+Solar icon set by 480 Design+https://www.figma.com/community/file/1166831539721848736++Licensed under the Creative Commons Attribution 4.0 International License (CC BY 4.0):+https://creativecommons.org/licenses/by/4.0/++Muxen uses a selection of the "Bold Duotone" icons, converted to standalone+SVG files (assets/icons/so-*.svg) without other changes.diff --git a/assets/icons/agent-pi.svg b/assets/icons/agent-pi.svgnew file mode 100644index 0000000..e285168--- /dev/null+++ b/assets/icons/agent-pi.svg@@ -0,0 +1,6 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 800">+ <path fill="#F09082" d="M165.29 165.29H517.36V400H400V282.65H165.29Z"/>+ <path fill="#4D9ABF" d="M165.29 282.65H282.65V400H400V517.36H282.65V634.72H165.29Z"/>+ <path fill="#F1BE58" d="M517.36 400H634.72V634.72H517.36Z"/>+</svg>diff --git a/assets/icons/cloud.svg b/assets/icons/cloud.svgnew file mode 100644index 0000000..d8b4b76--- /dev/null+++ b/assets/icons/cloud.svg@@ -0,0 +1,15 @@+<!-- @license lucide-static v1.54.0 - ISC -->+<svg+ class="lucide lucide-cloud"+ xmlns="http://www.w3.org/2000/svg"+ width="24"+ height="24"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ stroke-width="1.6"+ stroke-linecap="round"+ stroke-linejoin="round"+>+ <path d="M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z" />+</svg>diff --git a/assets/icons/fl-activity.svg b/assets/icons/fl-activity.svgnew file mode 100644index 0000000..7de3456--- /dev/null+++ b/assets/icons/fl-activity.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="m8.471 7.237l3.056 12.992c.233.993 1.63 1.04 1.929.065l2.945-9.58l.384 1.527a1 1 0 0 0 .97.756H21a1 1 0 1 0 0-2h-2.466l-1.069-4.241c-.247-.981-1.628-1.017-1.925-.05l-2.912 9.472L9.475 2.771c-.24-1.02-1.688-1.03-1.943-.014l-2.065 8.24H3a1 1 0 0 0 0 2h3.247a1 1 0 0 0 .97-.757z"/></svg>\ No newline at end of filediff --git a/assets/icons/fl-agent-github.svg b/assets/icons/fl-agent-github.svgnew file mode 100644index 0000000..ffc5b96--- /dev/null+++ b/assets/icons/fl-agent-github.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M16.974 2.31c.696-.237 1.69-.62 2.279.032c.4.444.5 1.188.571 1.755c.08.634.099 1.462-.111 2.282C20.516 7.415 21 8.653 21 10c0 2.042-1.106 3.814-2.743 5.042a9.5 9.5 0 0 1-2.592 1.354c.215.491.335 1.033.335 1.604v3a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1v-.995c-.955.117-1.756.017-2.438-.272c-.711-.302-1.208-.77-1.58-1.218a10 10 0 0 1-.481-.638c-.145-.206-.255-.367-.37-.516c-.234-.302-.363-.385-.447-.413a1 1 0 0 1 .632-1.897c.666.222 1.1.702 1.397 1.087c.15.195.298.409.423.586c.132.188.254.356.382.51c.253.302.506.522.826.657c.314.134.776.22 1.5.12L8 17.978a4 4 0 0 1 .334-1.582a9.5 9.5 0 0 1-2.59-1.354C4.105 13.815 3 12.043 3 10c0-1.346.483-2.583 1.284-3.62c-.21-.82-.192-1.647-.112-2.282c.074-.59.155-1.295.571-1.757c.59-.653 1.584-.268 2.28-.03c.619.21 1.384.544 2.125 1.044A11.4 11.4 0 0 1 12 3.001c.993 0 1.951.124 2.849.355a9 9 0 0 1 2.125-1.046"/></svg>\ No newline at end of filediff --git a/assets/icons/fl-arrow-up.svg b/assets/icons/fl-arrow-up.svgnew file mode 100644index 0000000..ceda2ee--- /dev/null+++ b/assets/icons/fl-arrow-up.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M6.08 8.02a6.001 6.001 0 0 1 11.84 0a4.5 4.5 0 0 1 4.053 4.973A6.5 6.5 0 0 0 10.018 17H6.5a4.5 4.5 0 0 1-.42-8.982M22 16.5a5.5 5.5 0 1 1-11 0a5.5 5.5 0 0 1 11 0m-6 3a.5.5 0 0 0 1 0v-4.793l1.646 1.647a.5.5 0 0 0 .708-.708l-2.5-2.5a.5.5 0 0 0-.708 0l-2.5 2.5a.5.5 0 0 0 .708.708L16 14.707z"/></svg>\ No newline at end of filediff --git a/assets/icons/fl-book-open.svg b/assets/icons/fl-book-open.svgnew file mode 100644index 0000000..6ed2c3b--- /dev/null+++ b/assets/icons/fl-book-open.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M4 4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h6c.768 0 1.47-.289 2-.764c.53.475 1.232.764 2 .764h6a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-6c-.768 0-1.47.289-2 .764A3 3 0 0 0 10 4zm7 3v10a1 1 0 0 1-1 1H4V6h6a1 1 0 0 1 1 1m2 10V7a1 1 0 0 1 1-1h6v12h-6a1 1 0 0 1-1-1"/></svg>\ No newline at end of filediff --git a/assets/icons/fl-bot.svg b/assets/icons/fl-bot.svgnew file mode 100644index 0000000..661ea4b--- /dev/null+++ b/assets/icons/fl-bot.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M17.753 14a2.25 2.25 0 0 1 2.25 2.25v.904A3.75 3.75 0 0 1 18.696 20c-1.565 1.344-3.806 2-6.696 2s-5.128-.656-6.69-2a3.75 3.75 0 0 1-1.306-2.843v-.908A2.25 2.25 0 0 1 6.254 14zM11.9 2.006L12 2a.75.75 0 0 1 .743.648l.007.102l-.001.749h3.5a2.25 2.25 0 0 1 2.25 2.25v4.505a2.25 2.25 0 0 1-2.25 2.25h-8.5a2.25 2.25 0 0 1-2.25-2.25V5.75A2.25 2.25 0 0 1 7.75 3.5l3.5-.001V2.75a.75.75 0 0 1 .649-.743L12 2zM9.749 6.5a1.25 1.25 0 1 0 0 2.498a1.25 1.25 0 0 0 0-2.498m4.493 0a1.25 1.25 0 1 0 0 2.498a1.25 1.25 0 0 0 0-2.498"/></svg>\ No newline at end of filediff --git a/assets/icons/fl-box.svg b/assets/icons/fl-box.svgnew file mode 100644index 0000000..949ea9f--- /dev/null+++ b/assets/icons/fl-box.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M13.409 2.513a3.75 3.75 0 0 0-2.818 0l-2.19.888l9.592 3.73l3.374-1.303a1.8 1.8 0 0 0-.46-.275zM22 7.191l-9.25 3.574v10.923q.336-.068.659-.199l7.498-3.04A1.75 1.75 0 0 0 22 16.827zM11.25 21.688V10.765L2 7.191v9.637a1.75 1.75 0 0 0 1.093 1.621l7.498 3.04q.323.13.659.2M2.633 5.828L12 9.447l3.917-1.514l-9.543-3.71l-3.281 1.33q-.256.104-.46.275"/></svg>\ No newline at end of filediff --git a/assets/icons/fl-check.svg b/assets/icons/fl-check.svgnew file mode 100644index 0000000..eed6300--- /dev/null+++ b/assets/icons/fl-check.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="m8.5 16.586l-3.793-3.793a1 1 0 0 0-1.414 1.414l4.5 4.5a1 1 0 0 0 1.414 0l11-11a1 1 0 0 0-1.414-1.414z"/></svg>\ No newline at end of filediff --git a/assets/icons/fl-circle-alert.svg b/assets/icons/fl-circle-alert.svgnew file mode 100644index 0000000..18980a6--- /dev/null+++ b/assets/icons/fl-circle-alert.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2m-.001 12.502a1 1 0 1 0 0 1.998a1 1 0 0 0 0-1.998M11.994 7a.75.75 0 0 0-.749.751l.004 4.501l.007.101a.75.75 0 0 0 1.493-.102l-.004-4.502l-.007-.102A.75.75 0 0 0 11.994 7"/></svg>\ No newline at end of filediff --git a/assets/icons/fl-circle-check.svg b/assets/icons/fl-circle-check.svgnew file mode 100644index 0000000..3a8b534--- /dev/null+++ b/assets/icons/fl-circle-check.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2m3.22 6.97l-4.47 4.47l-1.97-1.97a.75.75 0 0 0-1.06 1.06l2.5 2.5a.75.75 0 0 0 1.06 0l5-5a.75.75 0 1 0-1.06-1.06"/></svg>\ No newline at end of filediff --git a/assets/icons/fl-circle-x.svg b/assets/icons/fl-circle-x.svgnew file mode 100644index 0000000..a79f2c1--- /dev/null+++ b/assets/icons/fl-circle-x.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2m3.53 6.47l-.084-.073a.75.75 0 0 0-.882-.007l-.094.08L12 10.939l-2.47-2.47l-.084-.072a.75.75 0 0 0-.882-.007l-.094.08l-.073.084a.75.75 0 0 0-.007.882l.08.094L10.939 12l-2.47 2.47l-.072.084a.75.75 0 0 0-.007.882l.08.094l.084.073a.75.75 0 0 0 .882.007l.094-.08L12 13.061l2.47 2.47l.084.072a.75.75 0 0 0 .882.007l.094-.08l.073-.084a.75.75 0 0 0 .007-.882l-.08-.094L13.061 12l2.47-2.47l.072-.084a.75.75 0 0 0 .007-.882zl-.084-.073z"/></svg>\ No newline at end of filediff --git a/assets/icons/fl-clock.svg b/assets/icons/fl-clock.svgnew file mode 100644index 0000000..c2d32bb--- /dev/null+++ b/assets/icons/fl-clock.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M15.25 13.5h-4a.75.75 0 0 1-.75-.75v-6a.75.75 0 0 1 1.5 0V12h3.25a.75.75 0 0 1 0 1.5M12 2C6.478 2 2 6.478 2 12s4.478 10 10 10s10-4.478 10-10S17.522 2 12 2"/></svg>\ No newline at end of filediff --git a/assets/icons/fl-copy.svg b/assets/icons/fl-copy.svgnew file mode 100644index 0000000..ce32716--- /dev/null+++ b/assets/icons/fl-copy.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M8.5 13.75A4.25 4.25 0 0 0 12.75 18h1.74a3.25 3.25 0 0 1-3.24 3h-5A3.25 3.25 0 0 1 3 17.75v-7.5A3.25 3.25 0 0 1 6.25 7H8.5zM17.75 3A3.25 3.25 0 0 1 21 6.25v7.5A3.25 3.25 0 0 1 17.75 17h-5a3.25 3.25 0 0 1-3.25-3.25v-7.5A3.25 3.25 0 0 1 12.75 3z"/></svg>\ No newline at end of filediff --git a/assets/icons/fl-cpu.svg b/assets/icons/fl-cpu.svgnew file mode 100644index 0000000..07d702c--- /dev/null+++ b/assets/icons/fl-cpu.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M15.25 2a.75.75 0 0 1 .743.648L16 2.75v2.325a3.75 3.75 0 0 1 2.926 2.93h2.324a.75.75 0 0 1 .102 1.493l-.102.007L19 9.504v1.75h2.25a.75.75 0 0 1 .743.65l.007.1a.75.75 0 0 1-.648.744l-.102.007l-2.25-.001v1.75h2.25a.75.75 0 0 1 .743.65l.007.1a.75.75 0 0 1-.648.744l-.102.007h-2.326A3.76 3.76 0 0 1 16 18.925v2.325a.75.75 0 0 1-1.493.102l-.007-.102v-2.251h-1.751l.001 2.251a.75.75 0 0 1-.648.743L12 22a.75.75 0 0 1-.743-.648l-.007-.102l-.001-2.251H9.5v2.251a.75.75 0 0 1-.648.743L8.75 22a.75.75 0 0 1-.743-.648L8 21.25v-2.325A3.75 3.75 0 0 1 5.075 16H2.75a.75.75 0 0 1-.102-1.493l.102-.007L5 14.499v-1.75l-2.25.001a.75.75 0 0 1-.743-.648L2 12a.75.75 0 0 1 .648-.743l.102-.007L5 11.249v-1.75L2.75 9.5a.75.75 0 0 1-.743-.648L2 8.75a.75.75 0 0 1 .648-.743L2.75 8l2.325-.001A3.75 3.75 0 0 1 8 5.075V2.75a.75.75 0 0 1 1.493-.102l.007.102v2.249h1.749l.001-2.249a.75.75 0 0 1 .648-.743L12 2a.75.75 0 0 1 .743.648l.007.102l-.001 2.249H14.5V2.75a.75.75 0 0 1 .55-.723l.098-.02zm-3.245 7.005a3 3 0 1 0 0 6a3 3 0 0 0 0-6m0 1.5a1.5 1.5 0 1 1 0 3a1.5 1.5 0 0 1 0-3"/></svg>\ No newline at end of filediff --git a/assets/icons/fl-external-link.svg b/assets/icons/fl-external-link.svgnew file mode 100644index 0000000..fd4641a--- /dev/null+++ b/assets/icons/fl-external-link.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M6.25 5C5.56 5 5 5.56 5 6.25v11.5c0 .69.56 1.25 1.25 1.25h11.5c.69 0 1.25-.56 1.25-1.25V14a1 1 0 1 1 2 0v3.75A3.25 3.25 0 0 1 17.75 21H6.25A3.25 3.25 0 0 1 3 17.75V6.25A3.25 3.25 0 0 1 6.25 3H10a1 1 0 1 1 0 2zM14 5a1 1 0 1 1 0-2h6a1 1 0 0 1 1 1v6a1 1 0 1 1-2 0V6.414l-4.293 4.293a1 1 0 0 1-1.414-1.414L17.586 5z"/></svg>\ No newline at end of filediff --git a/assets/icons/fl-file.svg b/assets/icons/fl-file.svgnew file mode 100644index 0000000..fc939ff--- /dev/null+++ b/assets/icons/fl-file.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M12 2v6a2 2 0 0 0 2 2h6v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm1.5.5V8a.5.5 0 0 0 .5.5h5.5z"/></svg>\ No newline at end of filediff --git a/assets/icons/fl-folder-open.svg b/assets/icons/fl-folder-open.svgnew file mode 100644index 0000000..52e8b2b--- /dev/null+++ b/assets/icons/fl-folder-open.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M5.25 3A3.25 3.25 0 0 0 2 6.25v8.912l2.045-3.541a4.25 4.25 0 0 1 3.68-2.125H20V8.75a3.25 3.25 0 0 0-3.25-3.25h-5.19L9.72 3.659A2.25 2.25 0 0 0 8.129 3zm2.475 7.996h13.02c1.732 0 2.814 1.875 1.948 3.375l-3.036 5.258a2.75 2.75 0 0 1-2.382 1.375H4.255c-1.731 0-2.814-1.875-1.948-3.375l3.037-5.258a2.75 2.75 0 0 1 2.381-1.375"/></svg>\ No newline at end of filediff --git a/assets/icons/fl-folder.svg b/assets/icons/fl-folder.svgnew file mode 100644index 0000000..2152eb3--- /dev/null+++ b/assets/icons/fl-folder.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M2 8V6.25A3.25 3.25 0 0 1 5.25 3h2.879a2.25 2.25 0 0 1 1.59.659l1.531 1.53L8.659 7.78a.75.75 0 0 1-.53.22zm0 1.5v8.25A3.25 3.25 0 0 0 5.25 21h13.5A3.25 3.25 0 0 0 22 17.75v-9a3.25 3.25 0 0 0-3.25-3.25h-5.69L9.72 8.841a2.25 2.25 0 0 1-1.591.659z"/></svg>\ No newline at end of filediff --git a/assets/icons/fl-gauge.svg b/assets/icons/fl-gauge.svgnew file mode 100644index 0000000..d39a816--- /dev/null+++ b/assets/icons/fl-gauge.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2S2 6.477 2 12s4.477 10 10 10m3.88-15.333a.625.625 0 0 1 .961.761l-.13.25a355 355 0 0 1-1.415 2.713a155 155 0 0 1-1.156 2.157c-.171.31-.326.586-.452.803a5 5 0 0 1-.32.5a1.875 1.875 0 0 1-2.94-2.327c.086-.109.244-.265.413-.425c.182-.173.414-.387.678-.625a154 154 0 0 1 1.832-1.62a375 375 0 0 1 2.314-2.003zm-7.946 10.46a.75.75 0 0 1-1.06 0a7.25 7.25 0 0 1 6.798-12.182a.75.75 0 1 1-.344 1.46a5.75 5.75 0 0 0-5.393 9.661a.75.75 0 0 1 0 1.06m9.954-7.985a.75.75 0 0 1 .955.46a7.25 7.25 0 0 1-1.716 7.525a.75.75 0 1 1-1.061-1.061a5.75 5.75 0 0 0 1.362-5.969a.75.75 0 0 1 .46-.955"/></svg>\ No newline at end of filediff --git a/assets/icons/fl-git-branch.svg b/assets/icons/fl-git-branch.svgnew file mode 100644index 0000000..fd905ed--- /dev/null+++ b/assets/icons/fl-git-branch.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M4 5.5a3.5 3.5 0 1 1 4.489 3.358a5.5 5.5 0 0 0 5.261 3.892h.33a3.501 3.501 0 0 1 6.92.75a3.5 3.5 0 0 1-6.92.75h-.33a6.99 6.99 0 0 1-5.5-2.67v3.5A3.501 3.501 0 0 1 7.5 22a3.5 3.5 0 0 1-.75-6.92V8.92A3.5 3.5 0 0 1 4 5.5"/></svg>\ No newline at end of filediff --git a/assets/icons/fl-hard-drive.svg b/assets/icons/fl-hard-drive.svgnew file mode 100644index 0000000..b862ebd--- /dev/null+++ b/assets/icons/fl-hard-drive.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M7.44 4a2.25 2.25 0 0 0-2.025 1.27L2.73 10.821c.465-.206.98-.321 1.521-.321h15.5a3.7 3.7 0 0 1 1.52.321L18.586 5.27A2.25 2.25 0 0 0 16.559 4zm12.31 8A2.25 2.25 0 0 1 22 14.25v2.5A2.25 2.25 0 0 1 19.75 19H4.25A2.25 2.25 0 0 1 2 16.75v-2.5A2.25 2.25 0 0 1 4.25 12zm-1.25 4.5a1 1 0 1 0 0-2a1 1 0 0 0 0 2"/></svg>\ No newline at end of filediff --git a/assets/icons/fl-inbox.svg b/assets/icons/fl-inbox.svgnew file mode 100644index 0000000..af33827--- /dev/null+++ b/assets/icons/fl-inbox.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M17.75 3A3.25 3.25 0 0 1 21 6.25v11.5A3.25 3.25 0 0 1 17.75 21H6.25A3.25 3.25 0 0 1 3 17.75V6.25A3.25 3.25 0 0 1 6.25 3zm0 1.5H6.25A1.75 1.75 0 0 0 4.5 6.25V13H9a.75.75 0 0 1 .743.648l.007.102a2.25 2.25 0 0 0 4.5 0A.75.75 0 0 1 15 13h4.5V6.25a1.75 1.75 0 0 0-1.607-1.744z"/></svg>\ No newline at end of filediff --git a/assets/icons/fl-info.svg b/assets/icons/fl-info.svgnew file mode 100644index 0000000..f861067--- /dev/null+++ b/assets/icons/fl-info.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M12.002 1.999c5.523 0 10.001 4.478 10.001 10.002c0 5.523-4.478 10.001-10.001 10.001C6.478 22.002 2 17.524 2 12.001C2 6.477 6.478 1.999 12.002 1.999M12 10.5a.75.75 0 0 0-.75.75v5a.75.75 0 0 0 1.5 0v-5a.75.75 0 0 0-.75-.75M12 9a1 1 0 1 0 0-2a1 1 0 0 0 0 2"/></svg>\ No newline at end of filediff --git a/assets/icons/fl-laptop.svg b/assets/icons/fl-laptop.svgnew file mode 100644index 0000000..f64056d--- /dev/null+++ b/assets/icons/fl-laptop.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M4 6.25A2.25 2.25 0 0 1 6.25 4h11.5A2.25 2.25 0 0 1 20 6.25v7.5A2.25 2.25 0 0 1 17.75 16H6.25A2.25 2.25 0 0 1 4 13.75zM2.75 17.5a.75.75 0 0 0 0 1.5h18.5a.75.75 0 0 0 0-1.5z"/></svg>\ No newline at end of filediff --git a/assets/icons/fl-layers.svg b/assets/icons/fl-layers.svgnew file mode 100644index 0000000..e44f0f5--- /dev/null+++ b/assets/icons/fl-layers.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="m13.387 3.425l6.365 4.243a1 1 0 0 1 0 1.664l-6.365 4.244a2.5 2.5 0 0 1-2.774 0L4.248 9.332a1 1 0 0 1 0-1.664l6.365-4.243a2.5 2.5 0 0 1 2.774 0m6.639 8.767a2 2 0 0 1-.577.598l-6.05 4.084a2.5 2.5 0 0 1-2.798 0l-6.05-4.084a2 2 0 0 1-.779-2.29l6.841 4.56a2.5 2.5 0 0 0 2.613.098l.16-.098l6.841-4.56a2 2 0 0 1-.201 1.692m0 3.25a2 2 0 0 1-.577.598l-6.05 4.084a2.5 2.5 0 0 1-2.798 0l-6.05-4.084a2 2 0 0 1-.779-2.29l6.841 4.56a2.5 2.5 0 0 0 2.613.098l.16-.098l6.841-4.56a2 2 0 0 1-.201 1.692"/></svg>\ No newline at end of filediff --git a/assets/icons/fl-lock.svg b/assets/icons/fl-lock.svgnew file mode 100644index 0000000..c4addf4--- /dev/null+++ b/assets/icons/fl-lock.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M12 1a5 5 0 0 1 5 5v2.01a3.25 3.25 0 0 1 3 3.24v7.5A3.25 3.25 0 0 1 16.75 22h-9.5A3.25 3.25 0 0 1 4 18.75v-7.5a3.25 3.25 0 0 1 3-3.24V6a5 5 0 0 1 5-5m0 12.75a1.25 1.25 0 1 0 0 2.5a1.25 1.25 0 0 0 0-2.5M12 2.5A3.5 3.5 0 0 0 8.5 6v2h7V6A3.5 3.5 0 0 0 12 2.5"/></svg>\ No newline at end of filediff --git a/assets/icons/fl-memory-stick.svg b/assets/icons/fl-memory-stick.svgnew file mode 100644index 0000000..eec67c5--- /dev/null+++ b/assets/icons/fl-memory-stick.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="currentColor" d="M5 7h2.5v3H5zm6.5 0v3h-3V7zm1 3H15V7h-2.5zm3.54-6q.39 0 .741.156q.352.157.625.43q.274.273.43.625q.156.351.164.75V11q0 .531-.266 1a1.9 1.9 0 0 1-.734.734V14.5q0 .305-.117.578a1.5 1.5 0 0 1-.805.805q-.28.125-.578.117h-4a.48.48 0 0 1-.352-.148L10 14.703l-1.148 1.149A.48.48 0 0 1 8.5 16h-4q-.305 0-.578-.117a1.5 1.5 0 0 1-.805-.805A1.3 1.3 0 0 1 3 14.5v-1.766A1.93 1.93 0 0 1 2.273 12A2.06 2.06 0 0 1 2 11V5.96q0-.39.156-.741a2.1 2.1 0 0 1 .43-.625a2.1 2.1 0 0 1 .625-.43A1.9 1.9 0 0 1 3.96 4zm-.657 2.078A.95.95 0 0 0 15 6H5a.85.85 0 0 0-.39.078a1 1 0 0 0-.531.531a1 1 0 0 0-.079.39v3q.008.22.078.4q.07.179.211.312t.32.21q.18.08.391.079h10a.85.85 0 0 0 .39-.079q.188-.086.32-.218q.135-.133.212-.313A1 1 0 0 0 16 10V7q0-.204-.078-.391a.9.9 0 0 0-.219-.32a1.1 1.1 0 0 0-.32-.211"/></svg>\ No newline at end of filediff --git a/assets/icons/fl-message-square.svg b/assets/icons/fl-message-square.svgnew file mode 100644index 0000000..2d63d29--- /dev/null+++ b/assets/icons/fl-message-square.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10a9.96 9.96 0 0 1-4.644-1.142l-4.29 1.117a.85.85 0 0 1-1.037-1.036l1.116-4.289A9.96 9.96 0 0 1 2 12C2 6.477 6.477 2 12 2m1.252 11H8.75l-.102.007a.75.75 0 0 0 0 1.486l.102.007h4.502l.101-.007a.75.75 0 0 0 0-1.486zm1.998-3.5h-6.5l-.102.007a.75.75 0 0 0 0 1.486L8.75 11h6.5l.102-.007a.75.75 0 0 0 0-1.486z"/></svg>\ No newline at end of filediff --git a/assets/icons/fl-monitor.svg b/assets/icons/fl-monitor.svgnew file mode 100644index 0000000..ab303ed--- /dev/null+++ b/assets/icons/fl-monitor.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M6.75 22a.75.75 0 0 1-.102-1.493l.102-.007h1.749v-2.498H4.25a2.25 2.25 0 0 1-2.245-2.096L2 15.752V5.25a2.25 2.25 0 0 1 2.096-2.245L4.25 3h15.499a2.25 2.25 0 0 1 2.245 2.096l.005.154v10.502a2.25 2.25 0 0 1-2.096 2.245l-.154.005h-4.25V20.5h1.751a.75.75 0 0 1 .102 1.494L17.25 22zm7.248-3.998h-4l.001 2.498h4z"/></svg>\ No newline at end of filediff --git a/assets/icons/fl-network.svg b/assets/icons/fl-network.svgnew file mode 100644index 0000000..cbe73ef--- /dev/null+++ b/assets/icons/fl-network.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M8.904 16.5h6.192C14.476 19.773 13.235 22 12 22c-1.197 0-2.4-2.094-3.038-5.204zh6.192zm-5.838.001h4.306c.364 2.082.983 3.854 1.792 5.093a10.03 10.03 0 0 1-5.952-4.814zm13.563 0h4.305a10.03 10.03 0 0 1-6.097 5.093c.755-1.158 1.344-2.778 1.715-4.681zh4.305zm.302-6.5h4.87a10.05 10.05 0 0 1-.257 5H16.84a29 29 0 0 0 .13-4.344zh4.87zM2.2 10h4.87a28 28 0 0 0 .033 4.42l.057.58H2.456a10.05 10.05 0 0 1-.258-5m6.377 0h6.849a26 26 0 0 1-.037 4.425l-.062.575H8.674a26 26 0 0 1-.132-4.512zh6.849zm6.368-7.424l-.108-.17A10.03 10.03 0 0 1 21.373 8.5h-4.59c-.316-2.416-.957-4.492-1.838-5.923l-.108-.17zm-5.902-.133l.122-.037c-.88 1.351-1.535 3.33-1.883 5.654l-.062.44H2.63a10.03 10.03 0 0 1 6.413-6.057l.122-.037zM12 2.002c1.319 0 2.646 2.542 3.214 6.183l.047.315H8.739C9.28 4.691 10.644 2.002 12 2.002"/></svg>\ No newline at end of filediff --git a/assets/icons/fl-play.svg b/assets/icons/fl-play.svgnew file mode 100644index 0000000..8d8f9d2--- /dev/null+++ b/assets/icons/fl-play.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M5 5.274c0-1.707 1.826-2.792 3.325-1.977l12.362 6.727c1.566.852 1.566 3.1 0 3.952L8.325 20.702C6.826 21.518 5 20.432 5 18.726z"/></svg>\ No newline at end of filediff --git a/assets/icons/fl-plug.svg b/assets/icons/fl-plug.svgnew file mode 100644index 0000000..92a9850--- /dev/null+++ b/assets/icons/fl-plug.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M19.49 5.57a6 6 0 0 1-1.893 8.962c-.649.351-1.43.135-1.952-.386l-5.79-5.791c-.522-.522-.738-1.303-.388-1.952A6 6 0 0 1 18.43 4.51l2.29-2.29a.75.75 0 1 1 1.061 1.06zM3.28 21.78l2.29-2.29a6 6 0 0 0 8.962-1.893c.351-.649.135-1.43-.387-1.952l-5.79-5.79c-.522-.522-1.303-.738-1.952-.388A6 6 0 0 0 4.51 18.43l-2.29 2.29a.75.75 0 1 0 1.06 1.061"/></svg>\ No newline at end of filediff --git a/assets/icons/fl-plus.svg b/assets/icons/fl-plus.svgnew file mode 100644index 0000000..c4626a7--- /dev/null+++ b/assets/icons/fl-plus.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M11.883 3.007L12 3a1 1 0 0 1 .993.883L13 4v7h7a1 1 0 0 1 .993.883L21 12a1 1 0 0 1-.883.993L20 13h-7v7a1 1 0 0 1-.883.993L12 21a1 1 0 0 1-.993-.883L11 20v-7H4a1 1 0 0 1-.993-.883L3 12a1 1 0 0 1 .883-.993L4 11h7V4a1 1 0 0 1 .883-.993L12 3z"/></svg>\ No newline at end of filediff --git a/assets/icons/fl-power.svg b/assets/icons/fl-power.svgnew file mode 100644index 0000000..469b4a7--- /dev/null+++ b/assets/icons/fl-power.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M8.205 4.843a1 1 0 0 1 .844 1.813A6.997 6.997 0 0 0 12 20a6.998 6.998 0 0 0 2.965-13.337a1 1 0 0 1 .848-1.811A9 9 0 0 1 21 13.003C21 17.972 16.97 22 12 22s-9-4.028-9-8.997a9 9 0 0 1 5.205-8.16M12 2a1 1 0 0 1 .993.883L13 3v7a1 1 0 0 1-1.993.117L11 10V3a1 1 0 0 1 1-1"/></svg>\ No newline at end of filediff --git a/assets/icons/fl-refresh-cw.svg b/assets/icons/fl-refresh-cw.svgnew file mode 100644index 0000000..59511e6--- /dev/null+++ b/assets/icons/fl-refresh-cw.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M16.052 5.029a1 1 0 0 0 .189 1.401a7.002 7.002 0 0 1-3.157 12.487l.709-.71a1 1 0 0 0-1.414-1.414l-2.5 2.5a1 1 0 0 0 0 1.414l2.5 2.5a1 1 0 0 0 1.414-1.414l-.843-.842A9.001 9.001 0 0 0 17.453 4.84a1 1 0 0 0-1.401.189m-1.93-1.736l-2.5-2.5a1 1 0 0 0-1.498 1.32l.083.094l.843.843a9.001 9.001 0 0 0-4.778 15.892A1 1 0 0 0 7.545 17.4a7.002 7.002 0 0 1 3.37-12.316l-.708.709a1 1 0 0 0 1.32 1.497l.094-.083l2.5-2.5a1 1 0 0 0 .083-1.32z"/></svg>\ No newline at end of filediff --git a/assets/icons/fl-rotate-ccw.svg b/assets/icons/fl-rotate-ccw.svgnew file mode 100644index 0000000..750291e--- /dev/null+++ b/assets/icons/fl-rotate-ccw.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M19 12A7 7 0 0 0 8.392 6H9a1 1 0 0 1 0 2H6a1 1 0 0 1-1-1V4a1 1 0 0 1 2 0v.516a9 9 0 1 1-3.93 6.36a1 1 0 1 1 1.984.248Q5 11.554 5 12a7 7 0 1 0 14 0"/></svg>\ No newline at end of filediff --git a/assets/icons/fl-scroll-text.svg b/assets/icons/fl-scroll-text.svgnew file mode 100644index 0000000..b36d3d4--- /dev/null+++ b/assets/icons/fl-scroll-text.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M12 8V2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V10h-6a2 2 0 0 1-2-2m-3.75 3.5h7.5a.75.75 0 0 1 0 1.5h-7.5a.75.75 0 0 1 0-1.5m0 2.75h7.5a.75.75 0 0 1 0 1.5h-7.5a.75.75 0 0 1 0-1.5m0 2.75h7.5a.75.75 0 0 1 0 1.5h-7.5a.75.75 0 0 1 0-1.5m5.25-9V2.5l6 6H14a.5.5 0 0 1-.5-.5"/></svg>\ No newline at end of filediff --git a/assets/icons/fl-search.svg b/assets/icons/fl-search.svgnew file mode 100644index 0000000..1b9135f--- /dev/null+++ b/assets/icons/fl-search.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M15.843 17.368a8 8 0 1 1 1.428-1.4l4.427 4.316a1 1 0 1 1-1.396 1.432zM17 11a6 6 0 1 0-12 0a6 6 0 0 0 12 0"/></svg>\ No newline at end of filediff --git a/assets/icons/fl-server.svg b/assets/icons/fl-server.svgnew file mode 100644index 0000000..0b32a56--- /dev/null+++ b/assets/icons/fl-server.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M9 2a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3h6a3 3 0 0 0 3-3V5a3 3 0 0 0-3-3zm-.5 4.75A.75.75 0 0 1 9.25 6h5.5a.75.75 0 0 1 0 1.5h-5.5a.75.75 0 0 1-.75-.75m0 11a.75.75 0 0 1 .75-.75h5.5a.75.75 0 0 1 0 1.5h-5.5a.75.75 0 0 1-.75-.75m0-3a.75.75 0 0 1 .75-.75h5.5a.75.75 0 0 1 0 1.5h-5.5a.75.75 0 0 1-.75-.75"/></svg>\ No newline at end of filediff --git a/assets/icons/fl-settings.svg b/assets/icons/fl-settings.svgnew file mode 100644index 0000000..639826c--- /dev/null+++ b/assets/icons/fl-settings.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M12.012 2.25c.734.008 1.465.093 2.182.253a.75.75 0 0 1 .582.649l.17 1.527a1.384 1.384 0 0 0 1.927 1.116l1.4-.615a.75.75 0 0 1 .85.174a9.8 9.8 0 0 1 2.205 3.792a.75.75 0 0 1-.272.825l-1.241.916a1.38 1.38 0 0 0 0 2.226l1.243.915a.75.75 0 0 1 .272.826a9.8 9.8 0 0 1-2.204 3.792a.75.75 0 0 1-.849.175l-1.406-.617a1.38 1.38 0 0 0-1.926 1.114l-.17 1.526a.75.75 0 0 1-.571.647a9.5 9.5 0 0 1-4.406 0a.75.75 0 0 1-.572-.647l-.169-1.524a1.382 1.382 0 0 0-1.925-1.11l-1.406.616a.75.75 0 0 1-.85-.175a9.8 9.8 0 0 1-2.203-3.796a.75.75 0 0 1 .272-.826l1.243-.916a1.38 1.38 0 0 0 0-2.226l-1.243-.914a.75.75 0 0 1-.272-.826a9.8 9.8 0 0 1 2.205-3.792a.75.75 0 0 1 .85-.174l1.4.615a1.387 1.387 0 0 0 1.93-1.118l.17-1.526a.75.75 0 0 1 .583-.65q1.074-.238 2.201-.252M12 9a3 3 0 1 0 0 6a3 3 0 0 0 0-6"/></svg>\ No newline at end of filediff --git a/assets/icons/fl-square.svg b/assets/icons/fl-square.svgnew file mode 100644index 0000000..97a5285--- /dev/null+++ b/assets/icons/fl-square.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M4.75 3A1.75 1.75 0 0 0 3 4.75v14.5c0 .966.784 1.75 1.75 1.75h14.5A1.75 1.75 0 0 0 21 19.25V4.75A1.75 1.75 0 0 0 19.25 3z"/></svg>\ No newline at end of filediff --git a/assets/icons/fl-star.svg b/assets/icons/fl-star.svgnew file mode 100644index 0000000..c77d865--- /dev/null+++ b/assets/icons/fl-star.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M10.788 3.102c.495-1.003 1.926-1.003 2.421 0l2.358 4.778l5.273.766c1.107.16 1.549 1.522.748 2.303l-3.816 3.719l.901 5.25c.19 1.104-.968 1.945-1.959 1.424l-4.716-2.48l-4.715 2.48c-.99.52-2.148-.32-1.96-1.423l.901-5.251l-3.815-3.72c-.801-.78-.359-2.141.748-2.302L8.43 7.88z"/></svg>\ No newline at end of filediff --git a/assets/icons/fl-terminal.svg b/assets/icons/fl-terminal.svgnew file mode 100644index 0000000..36d0e13--- /dev/null+++ b/assets/icons/fl-terminal.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="currentColor" d="M5.646 9.146a.5.5 0 0 1 .708 0l2 2a.5.5 0 0 1 0 .708l-2 2a.5.5 0 0 1-.708-.708L7.293 11.5L5.646 9.854a.5.5 0 0 1 0-.708M14.5 13h-5a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1M2.996 5.5a2.5 2.5 0 0 1 2.5-2.5h9a2.5 2.5 0 0 1 2.5 2.5V6H17v1h-.003v7.5a2.5 2.5 0 0 1-2.5 2.5h-9a2.5 2.5 0 0 1-2.5-2.5zm1 1.5v7.5a1.5 1.5 0 0 0 1.5 1.5h9a1.5 1.5 0 0 0 1.5-1.5V7z"/></svg>\ No newline at end of filediff --git a/assets/icons/fl-trash-2.svg b/assets/icons/fl-trash-2.svgnew file mode 100644index 0000000..cb534dc--- /dev/null+++ b/assets/icons/fl-trash-2.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M10 5h4a2 2 0 1 0-4 0M8.5 5a3.5 3.5 0 1 1 7 0h5.75a.75.75 0 0 1 0 1.5h-1.32l-1.17 12.111A3.75 3.75 0 0 1 15.026 22H8.974a3.75 3.75 0 0 1-3.733-3.389L4.07 6.5H2.75a.75.75 0 0 1 0-1.5zm2 4.75a.75.75 0 0 0-1.5 0v7.5a.75.75 0 0 0 1.5 0zM14.25 9a.75.75 0 0 0-.75.75v7.5a.75.75 0 0 0 1.5 0v-7.5a.75.75 0 0 0-.75-.75"/></svg>\ No newline at end of filediff --git a/assets/icons/fl-triangle-alert.svg b/assets/icons/fl-triangle-alert.svgnew file mode 100644index 0000000..156ecbf--- /dev/null+++ b/assets/icons/fl-triangle-alert.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M9.138 3.707c1.228-2.276 4.493-2.276 5.721 0l6.743 12.502c1.168 2.165-.4 4.793-2.86 4.793H5.255c-2.46 0-4.028-2.628-2.86-4.793zM12.001 15a1 1 0 1 0 0 2a1 1 0 0 0 0-2m0-7.5a.75.75 0 0 0-.75.75v4.5a.75.75 0 0 0 1.5 0v-4.5A.75.75 0 0 0 12 7.5"/></svg>\ No newline at end of filediff --git a/assets/icons/fl-unplug.svg b/assets/icons/fl-unplug.svgnew file mode 100644index 0000000..7d18362--- /dev/null+++ b/assets/icons/fl-unplug.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M21.707 3.707a1 1 0 0 0-1.414-1.414L18.496 4.09a4.25 4.25 0 0 0-5.251.604l-1.068 1.069a1.75 1.75 0 0 0 0 2.474l3.585 3.586a1.75 1.75 0 0 0 2.475 0l1.068-1.068a4.25 4.25 0 0 0 .605-5.25zm-11 8a1 1 0 0 0-1.414-1.414l-1.47 1.47l-.293-.293a.75.75 0 0 0-1.06 0l-1.775 1.775a4.25 4.25 0 0 0-.605 5.25l-1.797 1.798a1 1 0 1 0 1.414 1.414l1.798-1.797a4.25 4.25 0 0 0 5.25-.605l1.775-1.775a.75.75 0 0 0 0-1.06l-.293-.293l1.47-1.47a1 1 0 0 0-1.414-1.414l-1.47 1.47l-1.586-1.586z"/></svg>\ No newline at end of filediff --git a/assets/icons/fl-workflow.svg b/assets/icons/fl-workflow.svgnew file mode 100644index 0000000..2b03bb0--- /dev/null+++ b/assets/icons/fl-workflow.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M14.08 8.8a1.75 1.75 0 0 0-1.33 1.7v3a3.25 3.25 0 0 1-2.815 3.221A4.001 4.001 0 1 1 9.92 15.2a1.75 1.75 0 0 0 1.33-1.699v-3a3.25 3.25 0 0 1 2.815-3.221A4.001 4.001 0 0 1 22 8a4 4 0 0 1-7.92.8"/></svg>\ No newline at end of filediff --git a/assets/icons/fl-x.svg b/assets/icons/fl-x.svgnew file mode 100644index 0000000..e5db5be--- /dev/null+++ b/assets/icons/fl-x.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="m4.21 4.387l.083-.094a1 1 0 0 1 1.32-.083l.094.083L12 10.585l6.293-6.292a1 1 0 1 1 1.414 1.414L13.415 12l6.292 6.293a1 1 0 0 1 .083 1.32l-.083.094a1 1 0 0 1-1.32.083l-.094-.083L12 13.415l-6.293 6.292a1 1 0 0 1-1.414-1.414L10.585 12L4.293 5.707a1 1 0 0 1-.083-1.32l.083-.094z"/></svg>\ No newline at end of filediff --git a/assets/icons/fl-zap.svg b/assets/icons/fl-zap.svgnew file mode 100644index 0000000..4edc988--- /dev/null+++ b/assets/icons/fl-zap.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M7.425 2.83A1.25 1.25 0 0 1 8.603 2h6.453a1.25 1.25 0 0 1 1.186 1.645L14.79 8h3.96c1.103 0 1.665 1.327.897 2.12L8.586 21.536c-1.054 1.088-2.872.106-2.541-1.372l1.27-5.668l-1.57-.006a1.75 1.75 0 0 1-1.641-2.337z"/></svg>\ No newline at end of filediff --git a/assets/icons/hg-activity.svg b/assets/icons/hg-activity.svgnew file mode 100644index 0000000..3a477e3--- /dev/null+++ b/assets/icons/hg-activity.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M2 12h3l1.5-4L9 15l1.5-3h2l2-5l2 10l2.5-5h3"/></svg>\ No newline at end of filediff --git a/assets/icons/hg-agent-github.svg b/assets/icons/hg-agent-github.svgnew file mode 100644index 0000000..e2252f1--- /dev/null+++ b/assets/icons/hg-agent-github.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"><path d="M10 20.568c-3.429 1.157-6.286 0-8-3.568"/><path d="M10 22v-3.242c0-.598.184-1.118.48-1.588c.204-.322.064-.78-.303-.88C7.134 15.452 5 14.107 5 9.645c0-1.16.38-2.25 1.048-3.2c.166-.236.25-.354.27-.46c.02-.108-.015-.247-.085-.527c-.283-1.136-.264-2.343.16-3.43c0 0 .877-.287 2.874.96c.456.285.684.428.885.46s.469-.035 1.005-.169A9.5 9.5 0 0 1 13.5 3a9.6 9.6 0 0 1 2.343.28c.536.134.805.2 1.006.169c.2-.032.428-.175.884-.46c1.997-1.247 2.874-.96 2.874-.96c.424 1.087.443 2.294.16 3.43c-.07.28-.104.42-.084.526s.103.225.269.461c.668.95 1.048 2.04 1.048 3.2c0 4.462-2.134 5.807-5.177 6.643c-.367.101-.507.559-.303.88c.296.47.48.99.48 1.589V22"/></g></svg>\ No newline at end of filediff --git a/assets/icons/hg-arrow-up.svg b/assets/icons/hg-arrow-up.svgnew file mode 100644index 0000000..7213332--- /dev/null+++ b/assets/icons/hg-arrow-up.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M17.478 9.011h.022c2.485 0 4.5 2.018 4.5 4.508c0 2.32-1.75 4.232-4 4.481m-.522-8.989q.021-.248.022-.5A5.505 5.505 0 0 0 12 3a5.505 5.505 0 0 0-5.48 5.032m10.958.98a5.5 5.5 0 0 1-1.235 3.005M6.52 8.032A5.006 5.006 0 0 0 2 13.018a5.01 5.01 0 0 0 4 4.91m.52-9.896q.237-.023.48-.023c1.126 0 2.165.373 3 1.002M12 13v8m0-8c-.7 0-2.008 1.994-2.5 2.5M12 13c.7 0 2.008 1.994 2.5 2.5"/></svg>\ No newline at end of filediff --git a/assets/icons/hg-book-open.svg b/assets/icons/hg-book-open.svgnew file mode 100644index 0000000..e10799b--- /dev/null+++ b/assets/icons/hg-book-open.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M8 3.5H6.6c-2.168 0-3.252 0-3.926.674C2 4.847 2 5.93 2 8.1v5.3c0 2.168 0 3.253.674 3.926C3.347 18 4.43 18 6.6 18h2.35A3.11 3.11 0 0 1 12 20.5v-15c-.944-1.259-2-2-4-2m8 0h1.4c2.168 0 3.252 0 3.926.674C22 4.847 22 5.93 22 8.1v5.3c0 2.168 0 3.253-.674 3.926C20.653 18 19.568 18 17.4 18h-2.35A3.11 3.11 0 0 0 12 20.5v-15c.944-1.259 2-2 4-2"/></svg>\ No newline at end of filediff --git a/assets/icons/hg-bot.svg b/assets/icons/hg-bot.svgnew file mode 100644index 0000000..b66d35e--- /dev/null+++ b/assets/icons/hg-bot.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"><path d="M12 4V2m8 20a8 8 0 1 0-16 0M9.375 8.25H9.25m.25 0a.25.25 0 1 1-.5 0a.25.25 0 0 1 .5 0m5.375 0h-.125m.25 0a.25.25 0 1 1-.5 0a.25.25 0 0 1 .5 0"/><path d="M15.154 4H8.846c-1.255 0-1.883 0-2.372.22A2.5 2.5 0 0 0 5.22 5.474C5 5.964 5 6.591 5 7.846c0 2.008 0 3.013.352 3.796a4 4 0 0 0 2.006 2.006C8.141 14 9.146 14 11.154 14h1.692c2.008 0 3.013 0 3.796-.352a4 4 0 0 0 2.006-2.006C19 10.859 19 9.854 19 7.846c0-1.255 0-1.883-.22-2.372a2.5 2.5 0 0 0-1.254-1.254C17.036 4 16.409 4 15.154 4"/></g></svg>\ No newline at end of filediff --git a/assets/icons/hg-box.svg b/assets/icons/hg-box.svgnew file mode 100644index 0000000..d523fe0--- /dev/null+++ b/assets/icons/hg-box.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12 22c-.818 0-1.6-.33-3.163-.99C4.946 19.366 3 18.543 3 17.16V7m9 15c.818 0 1.6-.33 3.163-.99C19.054 19.366 21 18.543 21 17.16V7m-9 15V11.355M8.326 9.691L5.405 8.278C3.802 7.502 3 7.114 3 6.5s.802-1.002 2.405-1.778l2.92-1.413C10.13 2.436 11.03 2 12 2s1.871.436 3.674 1.309l2.921 1.413C20.198 5.498 21 5.886 21 6.5s-.802 1.002-2.405 1.778l-2.92 1.413C13.87 10.564 12.97 11 12 11s-1.871-.436-3.674-1.309M6 12l2 1m9-9L7 9"/></svg>\ No newline at end of filediff --git a/assets/icons/hg-check.svg b/assets/icons/hg-check.svgnew file mode 100644index 0000000..3f91d79--- /dev/null+++ b/assets/icons/hg-check.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m5 14l3.5 3.5L19 6.5"/></svg>\ No newline at end of filediff --git a/assets/icons/hg-circle-alert.svg b/assets/icons/hg-circle-alert.svgnew file mode 100644index 0000000..81d801d--- /dev/null+++ b/assets/icons/hg-circle-alert.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"><circle cx="12" cy="12" r="10"/><path d="M12 8v4m.125 3.75H12m.25 0a.25.25 0 1 1-.5 0a.25.25 0 0 1 .5 0"/></g></svg>\ No newline at end of filediff --git a/assets/icons/hg-circle-check.svg b/assets/icons/hg-circle-check.svgnew file mode 100644index 0000000..3f5300e--- /dev/null+++ b/assets/icons/hg-circle-check.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.5"><path d="M22 12c0-5.523-4.477-10-10-10S2 6.477 2 12s4.477 10 10 10s10-4.477 10-10Z"/><path stroke-linecap="round" stroke-linejoin="round" d="m8 12.5l2.5 2.5L16 9"/></g></svg>\ No newline at end of filediff --git a/assets/icons/hg-circle-x.svg b/assets/icons/hg-circle-x.svgnew file mode 100644index 0000000..75e9eaa--- /dev/null+++ b/assets/icons/hg-circle-x.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M22 12c0-5.523-4.477-10-10-10S2 6.477 2 12s4.477 10 10 10s10-4.477 10-10m-7 3L9 9m0 6l6-6"/></svg>\ No newline at end of filediff --git a/assets/icons/hg-clock.svg b/assets/icons/hg-clock.svgnew file mode 100644index 0000000..faedf96--- /dev/null+++ b/assets/icons/hg-clock.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.5"><circle cx="12" cy="12" r="10"/><path stroke-linecap="round" stroke-linejoin="round" d="M12 8v4l2 2"/></g></svg>\ No newline at end of filediff --git a/assets/icons/hg-copy.svg b/assets/icons/hg-copy.svgnew file mode 100644index 0000000..599fda2--- /dev/null+++ b/assets/icons/hg-copy.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"><path d="M7.5 14.5c0-3.3 0-4.95 1.025-5.975S11.2 7.5 14.5 7.5s4.95 0 5.975 1.025S21.5 11.2 21.5 14.5s0 4.95-1.025 5.975S17.8 21.5 14.5 21.5s-4.95 0-5.975-1.025S7.5 17.8 7.5 14.5"/><path d="M7.5 16.5c-1.396 0-2.095 0-2.656-.196a3.5 3.5 0 0 1-2.148-2.148C2.5 13.595 2.5 12.896 2.5 11.5v-2c0-3.3 0-4.95 1.025-5.975S6.2 2.5 9.5 2.5h2c1.396 0 2.095 0 2.656.196a3.5 3.5 0 0 1 2.148 2.148c.196.561.196 1.26.196 2.656"/></g></svg>\ No newline at end of filediff --git a/assets/icons/hg-cpu.svg b/assets/icons/hg-cpu.svgnew file mode 100644index 0000000..7c845fd--- /dev/null+++ b/assets/icons/hg-cpu.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linejoin="round" stroke-width="1.5"><path d="M4 12c0-3.771 0-5.657 1.172-6.828S8.229 4 12 4s5.657 0 6.828 1.172S20 8.229 20 12s0 5.657-1.172 6.828S15.771 20 12 20s-5.657 0-6.828-1.172S4 15.771 4 12Z"/><path stroke-linecap="round" d="M9.5 2v2m5-2v2m-5 16v2m5-2v2M13 9l-4 4m6 0l-2 2m9-.5h-2m-16-5H2m2 5H2m20-5h-2"/></g></svg>\ No newline at end of filediff --git a/assets/icons/hg-external-link.svg b/assets/icons/hg-external-link.svgnew file mode 100644index 0000000..caf29b3--- /dev/null+++ b/assets/icons/hg-external-link.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M11.1 3c-3.65.007-5.56.096-6.782 1.318C3 5.636 3 7.757 3 12c0 4.242 0 6.364 1.318 7.682S7.757 21 12 21s6.363 0 7.68-1.318c1.222-1.221 1.312-3.133 1.318-6.782m-.442-9.404l-9.507 9.563m9.507-9.563c-.494-.494-3.822-.448-4.525-.438m4.525.438c.494.495.448 3.827.438 4.531"/></svg>\ No newline at end of filediff --git a/assets/icons/hg-file.svg b/assets/icons/hg-file.svgnew file mode 100644index 0000000..2fade61--- /dev/null+++ b/assets/icons/hg-file.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M8 7h8m-8 4h4m1 10.5V21c0-2.828 0-4.243.879-5.121C14.757 15 16.172 15 19 15h.5m.5-1.657V10c0-3.771 0-5.657-1.172-6.828S15.771 2 12 2S6.343 2 5.172 3.172S4 6.229 4 10v4.544c0 3.245 0 4.868.886 5.967a4 4 0 0 0 .603.603C6.59 22 8.211 22 11.456 22c.705 0 1.058 0 1.381-.114q.1-.036.197-.082c.31-.148.559-.397 1.058-.896l4.736-4.736c.579-.578.867-.867 1.02-1.235c.152-.368.152-.776.152-1.594"/></svg>\ No newline at end of filediff --git a/assets/icons/hg-folder-open.svg b/assets/icons/hg-folder-open.svgnew file mode 100644index 0000000..f4ea9d0--- /dev/null+++ b/assets/icons/hg-folder-open.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linejoin="round" stroke-width="1.5"><path stroke-linecap="round" d="M2 19V7.549c0-1.444 0-2.166.243-2.733a3 3 0 0 1 1.573-1.573C4.383 3 5.098 3 6.55 3h.494a2 2 0 0 1 1.557.745L10.418 6m0 0H16c1.4 0 2.1 0 2.635.272a2.5 2.5 0 0 1 1.092 1.093C20 7.9 20 8.6 20 10v1m-9.582-5H7"/><path d="m3.158 15.514l.298-.742c.734-1.827 1.101-2.74 1.866-3.256S7.076 11 9.052 11h8.06c2.688 0 4.033 0 4.63.879c.598.879.098 2.121-.9 4.607l-.298.742c-.734 1.827-1.101 2.74-1.866 3.256s-1.754.516-3.73.516h-8.06c-2.688 0-4.033 0-4.63-.879c-.598-.878-.098-2.121.9-4.607Z"/></g></svg>\ No newline at end of filediff --git a/assets/icons/hg-folder.svg b/assets/icons/hg-folder.svgnew file mode 100644index 0000000..759f8e4--- /dev/null+++ b/assets/icons/hg-folder.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-width="1.5" d="M8 7h8.75c2.107 0 3.16 0 3.917.506a3 3 0 0 1 .827.827C22 9.09 22 10.143 22 12.25c0 3.511 0 5.267-.843 6.528a5 5 0 0 1-1.38 1.38C18.518 21 16.762 21 13.25 21H12c-4.714 0-7.071 0-8.536-1.465C2 18.072 2 15.715 2 11V7.944c0-1.816 0-2.724.38-3.406A3 3 0 0 1 3.538 3.38C4.22 3 5.128 3 6.944 3C8.108 3 8.69 3 9.2 3.191c1.163.436 1.643 1.493 2.168 2.542L12 7"/></svg>\ No newline at end of filediff --git a/assets/icons/hg-gauge.svg b/assets/icons/hg-gauge.svgnew file mode 100644index 0000000..316edc2--- /dev/null+++ b/assets/icons/hg-gauge.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.5"><path stroke-linecap="round" d="M13.5 13L17 9m-3 6a2 2 0 1 1-4 0a2 2 0 0 1 4 0Zm-8-3a6 6 0 0 1 9-5.197"/><path d="M2.5 12c0-4.478 0-6.717 1.391-8.109c1.392-1.39 3.63-1.39 8.11-1.39c4.477 0 6.717 0 8.108 1.39c1.391 1.392 1.391 3.63 1.391 8.11c0 4.477 0 6.717-1.391 8.108S16.479 21.5 12 21.5c-4.478 0-6.717 0-8.109-1.391c-1.39-1.391-1.39-3.63-1.39-8.109Z"/></g></svg>\ No newline at end of filediff --git a/assets/icons/hg-git-branch.svg b/assets/icons/hg-git-branch.svgnew file mode 100644index 0000000..4bdedb3--- /dev/null+++ b/assets/icons/hg-git-branch.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M7 19h6c2.828 0 4.243 0 5.121-.879C19 17.243 19 15.828 19 13v-3m0 0c.7 0 2.009 1.994 2.5 2.5M19 10c-.7 0-2.009 1.994-2.5 2.5M5 7v10"/><circle cx="5" cy="5" r="2"/><circle cx="19" cy="5" r="2"/><circle cx="5" cy="19" r="2"/></g></svg>\ No newline at end of filediff --git a/assets/icons/hg-hard-drive.svg b/assets/icons/hg-hard-drive.svgnew file mode 100644index 0000000..9a0c0b9--- /dev/null+++ b/assets/icons/hg-hard-drive.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"><path d="m20.71 8.701l1.209 4.028c.039.13.058.195.069.262l.003.02c.009.068.009.136.009.272c0 3.497 0 5.245-1.019 6.384q-.149.165-.314.314C19.528 21 17.78 21 14.283 21H9.717c-3.497 0-5.245 0-6.384-1.019a4 4 0 0 1-.314-.314C2 18.528 2 16.78 2 13.283c0-.136 0-.204.01-.271l.002-.02c.01-.068.03-.133.07-.263L3.29 8.7c.824-2.746 1.236-4.12 2.298-4.91S8.085 3 10.952 3h2.096c2.867 0 4.3 0 5.364.79c1.063.792 1.475 2.165 2.298 4.911M2 13h20"/><path d="M18.125 17H18m-3.875 0H14m4.25 0a.25.25 0 1 1-.5 0a.25.25 0 0 1 .5 0m-4 0a.25.25 0 1 1-.5 0a.25.25 0 0 1 .5 0"/></g></svg>\ No newline at end of filediff --git a/assets/icons/hg-inbox.svg b/assets/icons/hg-inbox.svgnew file mode 100644index 0000000..9f87fb5--- /dev/null+++ b/assets/icons/hg-inbox.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linejoin="round" stroke-width="1.5"><path stroke-linecap="round" d="M2.5 12c0-4.478 0-6.718 1.391-8.109S7.521 2.5 12 2.5c4.478 0 6.718 0 8.109 1.391S21.5 7.521 21.5 12c0 4.478 0 6.718-1.391 8.109S16.479 21.5 12 21.5c-4.478 0-6.718 0-8.109-1.391S2.5 16.479 2.5 12"/><path d="M21.5 13.5h-4.926c-.842 0-1.503.704-1.875 1.447c-.403.808-1.21 1.553-2.699 1.553s-2.296-.745-2.7-1.553c-.37-.743-1.032-1.447-1.874-1.447H2.5"/></g></svg>\ No newline at end of filediff --git a/assets/icons/hg-info.svg b/assets/icons/hg-info.svgnew file mode 100644index 0000000..38b3d5a--- /dev/null+++ b/assets/icons/hg-info.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4m.125-3.75H12m.25 0a.25.25 0 1 0-.5 0a.25.25 0 0 0 .5 0"/></g></svg>\ No newline at end of filediff --git a/assets/icons/hg-laptop.svg b/assets/icons/hg-laptop.svgnew file mode 100644index 0000000..1363c3e--- /dev/null+++ b/assets/icons/hg-laptop.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M20.5 16.5v-8c0-2.357 0-3.536-.732-4.268C19.035 3.5 17.857 3.5 15.5 3.5h-7c-2.357 0-3.536 0-4.268.732S3.5 6.143 3.5 8.5v8m18.484 4H2.016c-.383 0-.632-.391-.461-.724L3.5 16.5h17l1.945 3.276a.5.5 0 0 1-.46.724"/></svg>\ No newline at end of filediff --git a/assets/icons/hg-layers.svg b/assets/icons/hg-layers.svgnew file mode 100644index 0000000..cb2566b--- /dev/null+++ b/assets/icons/hg-layers.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"><path d="m8.643 3.146l-1.705.788C4.313 5.147 3 5.754 3 6.75s1.313 1.603 3.938 2.816l1.705.788c1.652.764 2.478 1.146 3.357 1.146s1.705-.382 3.357-1.146l1.705-.788C19.687 8.353 21 7.746 21 6.75s-1.313-1.603-3.938-2.816l-1.705-.788C13.705 2.382 12.879 2 12 2s-1.705.382-3.357 1.146"/><path d="M20.788 11.097c.141.199.212.406.212.634c0 .982-1.313 1.58-3.938 2.776l-1.705.777c-1.652.753-2.478 1.13-3.357 1.13s-1.705-.377-3.357-1.13l-1.705-.777C4.313 13.311 3 12.713 3 11.731c0-.228.07-.435.212-.634"/><path d="M20.377 16.266c.415.331.623.661.623 1.052c0 .981-1.313 1.58-3.938 2.776l-1.705.777C13.705 21.624 12.879 22 12 22s-1.705-.376-3.357-1.13l-1.705-.776C4.313 18.898 3 18.299 3 17.318c0-.391.208-.72.623-1.052"/></g></svg>\ No newline at end of filediff --git a/assets/icons/hg-lock.svg b/assets/icons/hg-lock.svgnew file mode 100644index 0000000..b30ffa2--- /dev/null+++ b/assets/icons/hg-lock.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"><path d="M12 14.5v3m1-3a1 1 0 1 1-2 0a1 1 0 0 1 2 0M16.5 9V6.5a4.5 4.5 0 1 0-9 0V9"/><path d="M4.268 18.845c.225 1.67 1.608 2.979 3.292 3.056c1.416.065 2.855.099 4.44.099s3.024-.034 4.44-.1c1.684-.076 3.067-1.385 3.292-3.055c.147-1.09.268-2.207.268-3.345s-.121-2.255-.268-3.345c-.225-1.67-1.608-2.979-3.292-3.056A95 95 0 0 0 12 9c-1.585 0-3.024.034-4.44.1c-1.684.076-3.067 1.385-3.292 3.055C4.12 13.245 4 14.362 4 15.5s.121 2.255.268 3.345"/></g></svg>\ No newline at end of filediff --git a/assets/icons/hg-memory-stick.svg b/assets/icons/hg-memory-stick.svgnew file mode 100644index 0000000..2c5664a--- /dev/null+++ b/assets/icons/hg-memory-stick.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M2 12.5a2 2 0 1 0 0-4c0-1.404 0-2.107.337-2.611a2 2 0 0 1 .552-.552C3.393 5 4.096 5 5.5 5h13c1.404 0 2.107 0 2.611.337a2 2 0 0 1 .552.552C22 6.393 22 7.096 22 8.5a2 2 0 1 0 0 4c0 1.405 0 2.107-.337 2.611a2 2 0 0 1-.552.552C20.607 16 19.904 16 18.5 16h-13c-1.404 0-2.107 0-2.611-.337a2 2 0 0 1-.552-.552C2 14.607 2 13.904 2 12.5M4 16v2a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-2m4 0v2a1 1 0 0 0 1 1h5a1 1 0 0 0 1-1v-2m-8-7v3m4-3v3M8 9v3"/></svg>\ No newline at end of filediff --git a/assets/icons/hg-message-square.svg b/assets/icons/hg-message-square.svgnew file mode 100644index 0000000..6f8ee21--- /dev/null+++ b/assets/icons/hg-message-square.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linejoin="round" stroke-width="1.5"><path stroke-linecap="round" d="M8.5 14.5h7m-7-5H12"/><path d="M14.17 20.89c4.184-.277 7.516-3.657 7.79-7.9c.053-.83.053-1.69 0-2.52c-.274-4.242-3.606-7.62-7.79-7.899a33 33 0 0 0-4.34 0c-4.184.278-7.516 3.657-7.79 7.9a20 20 0 0 0 0 2.52c.1 1.545.783 2.976 1.588 4.184c.467.845.159 1.9-.328 2.823c-.35.665-.526.997-.385 1.237c.14.24.455.248 1.084.263c1.245.03 2.084-.322 2.75-.813c.377-.279.566-.418.696-.434s.387.09.899.3c.46.19.995.307 1.485.34c1.425.094 2.914.094 4.342 0Z"/></g></svg>\ No newline at end of filediff --git a/assets/icons/hg-monitor.svg b/assets/icons/hg-monitor.svgnew file mode 100644index 0000000..11a9cfc--- /dev/null+++ b/assets/icons/hg-monitor.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M14 21h2m-2 0a1.5 1.5 0 0 1-1.5-1.5V17H12m2 4h-4m0 0H8m2 0a1.5 1.5 0 0 0 1.5-1.5V17h.5m0 0v4m4-18H8c-2.828 0-4.243 0-5.121.879C2 4.757 2 6.172 2 9v2c0 2.828 0 4.243.879 5.121C3.757 17 5.172 17 8 17h8c2.828 0 4.243 0 5.121-.879C22 15.243 22 13.828 22 11V9c0-2.828 0-4.243-.879-5.121C20.243 3 18.828 3 16 3"/></svg>\ No newline at end of filediff --git a/assets/icons/hg-network.svg b/assets/icons/hg-network.svgnew file mode 100644index 0000000..d892f41--- /dev/null+++ b/assets/icons/hg-network.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.5"><path d="M22 12c0-5.523-4.477-10-10-10S2 6.477 2 12s4.477 10 10 10s10-4.477 10-10Z"/><path stroke-linejoin="round" d="M20 5.699c-.935.067-2.132.43-2.962 1.504c-1.5 1.94-2.999 2.103-3.999 1.456c-1.5-.97-.239-2.543-1.999-3.397C9.893 4.705 9.733 3.19 10.372 2M2 11c.763.662 1.83 1.268 3.089 1.268c2.6 0 3.12.497 3.12 2.484s0 1.987.52 3.477c.338.97.456 1.938-.218 2.771M22 13.452c-.887-.51-2-.721-3.127.088c-2.155 1.55-3.642.266-4.311 1.549C13.577 16.977 17.096 17.57 14 22"/></g></svg>\ No newline at end of filediff --git a/assets/icons/hg-play.svg b/assets/icons/hg-play.svgnew file mode 100644index 0000000..7a414b2--- /dev/null+++ b/assets/icons/hg-play.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linejoin="round" stroke-width="1.5" d="M18.89 12.846c-.353 1.343-2.023 2.292-5.364 4.19c-3.23 1.835-4.845 2.752-6.146 2.384a3.25 3.25 0 0 1-1.424-.841C5 17.614 5 15.743 5 12s0-5.614.956-6.579a3.25 3.25 0 0 1 1.424-.84c1.301-.37 2.916.548 6.146 2.383c3.34 1.898 5.011 2.847 5.365 4.19a3.3 3.3 0 0 1 0 1.692Z"/></svg>\ No newline at end of filediff --git a/assets/icons/hg-plug.svg b/assets/icons/hg-plug.svgnew file mode 100644index 0000000..9cd3455--- /dev/null+++ b/assets/icons/hg-plug.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M15.5 2v4m-7 0V2"/><path d="M6.004 7.613C5.937 6.743 6.64 6 7.53 6h8.94c.89 0 1.593.743 1.526 1.613l-.184 2.379a9.9 9.9 0 0 1-1.68 4.785l-.6.885A3.08 3.08 0 0 1 12.983 17h-1.968a3.08 3.08 0 0 1-2.547-1.338l-.601-.885a9.9 9.9 0 0 1-1.68-4.785z"/><path stroke-linecap="round" stroke-linejoin="round" d="M12 17v5M11 9h2"/></g></svg>\ No newline at end of filediff --git a/assets/icons/hg-plus.svg b/assets/icons/hg-plus.svgnew file mode 100644index 0000000..f0a6380--- /dev/null+++ b/assets/icons/hg-plus.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12.001 5v14.002m7.001-7H5"/></svg>\ No newline at end of filediff --git a/assets/icons/hg-power.svg b/assets/icons/hg-power.svgnew file mode 100644index 0000000..b43de78--- /dev/null+++ b/assets/icons/hg-power.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-width="1.5"><path stroke-linejoin="round" d="M12.5 8L10 12h4l-2.5 4"/><path d="M21.011 14.14c.522-.145.783-.216.886-.354s.103-.358.103-.8v-1.972c0-.442 0-.663-.103-.8c-.103-.138-.364-.21-.886-.353c-1.95-.537-3.171-2.617-2.668-4.594c.139-.544.208-.816.142-.975s-.256-.27-.635-.49l-1.725-.998c-.372-.216-.558-.324-.725-.3c-.167.022-.356.214-.733.598a3.75 3.75 0 0 1-5.333 0c-.377-.384-.565-.576-.732-.599s-.353.085-.725.3l-1.725 1c-.38.22-.57.33-.635.489c-.066.16.003.431.141.975c.503 1.977-.718 4.057-2.669 4.594c-.522.144-.783.215-.886.353s-.103.358-.103.8v1.973c0 .441 0 .662.103.8c.103.137.364.208.886.352c1.95.537 3.171 2.617 2.668 4.594c-.139.544-.208.816-.142.975s.256.27.635.49l1.725.999c.372.215.558.323.725.3s.356-.215.733-.599a3.75 3.75 0 0 1 5.336 0c.377.384.565.576.732.599s.353-.085.726-.3l1.724-1c.38-.22.57-.33.635-.489c.066-.16-.003-.431-.141-.975c-.504-1.977.716-4.057 2.666-4.594Z"/></g></svg>\ No newline at end of filediff --git a/assets/icons/hg-refresh-cw.svg b/assets/icons/hg-refresh-cw.svgnew file mode 100644index 0000000..6091193--- /dev/null+++ b/assets/icons/hg-refresh-cw.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M20.01 2v3.132a.314.314 0 0 1-.556.201A9.98 9.98 0 0 0 12 2C6.477 2 2 6.477 2 12s4.477 10 10 10s10-4.477 10-10"/></svg>\ No newline at end of filediff --git a/assets/icons/hg-rotate-ccw.svg b/assets/icons/hg-rotate-ccw.svgnew file mode 100644index 0000000..6a5e4cf--- /dev/null+++ b/assets/icons/hg-rotate-ccw.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"><path d="M20.5 5.5h-11C5.787 5.5 3 8.185 3 12m.5 6.5h11c3.713 0 6.5-2.685 6.5-6.5"/><path d="M18.5 3S21 4.841 21 5.5S18.5 8 18.5 8m-13 8S3 17.841 3 18.5S5.5 21 5.5 21"/></g></svg>\ No newline at end of filediff --git a/assets/icons/hg-scroll-text.svg b/assets/icons/hg-scroll-text.svgnew file mode 100644index 0000000..1fead60--- /dev/null+++ b/assets/icons/hg-scroll-text.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"><path d="M20 15.006V10.66c0-.818 0-1.227-.152-1.595s-.441-.657-1.02-1.235l-4.736-4.739c-.499-.499-.748-.748-1.058-.896a2 2 0 0 0-.197-.082C12.514 2 12.161 2 11.456 2c-3.245 0-4.868 0-5.967.886a4 4 0 0 0-.603.604C4 4.59 4 6.213 4 9.46v4.545c0 3.773 0 5.66 1.172 6.832C6.115 21.78 7.52 21.964 10 22m3-19.5V3c0 2.83 0 4.245.879 5.124c.878.879 2.293.879 5.121.879h.5"/><path d="m14.327 22l-1.211-1.086c-.744-.667-1.116-1-1.116-1.414s.372-.747 1.116-1.414L14.326 17m3.347 5l1.212-1.086c.743-.667 1.115-1 1.115-1.414s-.372-.747-1.116-1.414L17.675 17"/></g></svg>\ No newline at end of filediff --git a/assets/icons/hg-search.svg b/assets/icons/hg-search.svgnew file mode 100644index 0000000..f035c7f--- /dev/null+++ b/assets/icons/hg-search.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m17 17l4 4m-2-10a8 8 0 1 0-16 0a8 8 0 0 0 16 0"/></svg>\ No newline at end of filediff --git a/assets/icons/hg-server.svg b/assets/icons/hg-server.svgnew file mode 100644index 0000000..5a4eb2e--- /dev/null+++ b/assets/icons/hg-server.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"><path d="M19 4H5c-.932 0-1.398 0-1.765.152a2 2 0 0 0-1.083 1.083C2 5.602 2 6.068 2 7s0 1.398.152 1.765a2 2 0 0 0 1.083 1.083C3.602 10 4.068 10 5 10h14c.932 0 1.398 0 1.765-.152a2 2 0 0 0 1.083-1.083C22 8.398 22 7.932 22 7s0-1.398-.152-1.765a2 2 0 0 0-1.083-1.083C20.398 4 19.932 4 19 4m0 10H5c-.932 0-1.398 0-1.765.152a2 2 0 0 0-1.083 1.083C2 15.602 2 16.068 2 17s0 1.398.152 1.765a2 2 0 0 0 1.083 1.083C3.602 20 4.068 20 5 20h14c.932 0 1.398 0 1.765-.152a2 2 0 0 0 1.083-1.083C22 18.398 22 17.932 22 17s0-1.398-.152-1.765a2 2 0 0 0-1.083-1.083C20.398 14 19.932 14 19 14"/><path d="M6.125 7H6m.25 0a.25.25 0 1 1-.5 0a.25.25 0 0 1 .5 0m3.875 0H10m.25 0a.25.25 0 1 1-.5 0a.25.25 0 0 1 .5 0M6.125 17H6m.25 0a.25.25 0 1 1-.5 0a.25.25 0 0 1 .5 0m3.875 0H10m.25 0a.25.25 0 1 1-.5 0a.25.25 0 0 1 .5 0"/></g></svg>\ No newline at end of filediff --git a/assets/icons/hg-settings.svg b/assets/icons/hg-settings.svgnew file mode 100644index 0000000..5979cf2--- /dev/null+++ b/assets/icons/hg-settings.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.5"><path d="M15.5 12a3.5 3.5 0 1 1-7 0a3.5 3.5 0 0 1 7 0Z"/><path stroke-linecap="round" d="M21.011 14.097c.522-.141.783-.212.886-.346c.103-.135.103-.351.103-.784v-1.934c0-.433 0-.65-.103-.784s-.364-.205-.886-.345c-1.95-.526-3.171-2.565-2.668-4.503c.139-.533.208-.8.142-.956s-.256-.264-.635-.479l-1.725-.98c-.372-.21-.558-.316-.725-.294s-.356.21-.733.587c-1.459 1.455-3.873 1.455-5.333 0c-.377-.376-.565-.564-.732-.587c-.167-.022-.353.083-.725.295l-1.725.979c-.38.215-.57.323-.635.48c-.066.155.003.422.141.955c.503 1.938-.718 3.977-2.669 4.503c-.522.14-.783.21-.886.345S2 10.6 2 11.033v1.934c0 .433 0 .65.103.784s.364.205.886.346c1.95.526 3.171 2.565 2.668 4.502c-.139.533-.208.8-.142.956s.256.264.635.48l1.725.978c.372.212.558.317.725.295s.356-.21.733-.587c1.46-1.457 3.876-1.457 5.336 0c.377.376.565.564.732.587c.167.022.353-.083.726-.295l1.724-.979c.38-.215.57-.323.635-.48s-.003-.422-.141-.955c-.504-1.937.716-3.976 2.666-4.502Z"/></g></svg>\ No newline at end of filediff --git a/assets/icons/hg-square.svg b/assets/icons/hg-square.svgnew file mode 100644index 0000000..c8ed210--- /dev/null+++ b/assets/icons/hg-square.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-width="1.5" d="M4 12c0-3.28 0-4.919.814-6.081a4.5 4.5 0 0 1 1.105-1.105C7.08 4 8.72 4 12 4s4.919 0 6.081.814a4.5 4.5 0 0 1 1.105 1.105C20 7.08 20 8.72 20 12s0 4.919-.814 6.081a4.5 4.5 0 0 1-1.105 1.105C16.92 20 15.28 20 12 20s-4.919 0-6.081-.814a4.5 4.5 0 0 1-1.105-1.105C4 16.92 4 15.28 4 12Z"/></svg>\ No newline at end of filediff --git a/assets/icons/hg-star.svg b/assets/icons/hg-star.svgnew file mode 100644index 0000000..f065bd4--- /dev/null+++ b/assets/icons/hg-star.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m13.728 3.444l1.76 3.549c.24.494.88.968 1.42 1.058l3.189.535c2.04.343 2.52 1.835 1.05 3.307l-2.48 2.5c-.42.423-.65 1.24-.52 1.825l.71 3.095c.56 2.45-.73 3.397-2.88 2.117l-2.99-1.785c-.54-.322-1.43-.322-1.98 0L8.019 21.43c-2.14 1.28-3.44.322-2.88-2.117l.71-3.095c.13-.585-.1-1.402-.52-1.825l-2.48-2.5C1.39 10.42 1.86 8.929 3.899 8.586l3.19-.535c.53-.09 1.17-.564 1.41-1.058l1.76-3.549c.96-1.925 2.52-1.925 3.47 0"/></svg>\ No newline at end of filediff --git a/assets/icons/hg-terminal.svg b/assets/icons/hg-terminal.svgnew file mode 100644index 0000000..fd5e997--- /dev/null+++ b/assets/icons/hg-terminal.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"><path d="M14 4h-4C6.229 4 4.343 4 3.172 5.172S2 8.229 2 12s0 5.657 1.172 6.828S6.229 20 10 20h4c3.771 0 5.657 0 6.828-1.172S22 15.771 22 12s0-5.657-1.172-6.828S17.771 4 14 4"/><path d="m7 9l1.84 1.586c.773.666 1.16 1 1.16 1.414s-.387.748-1.16 1.414L7 15m6 1h4"/></g></svg>\ No newline at end of filediff --git a/assets/icons/hg-trash-2.svg b/assets/icons/hg-trash-2.svgnew file mode 100644index 0000000..b94d5f5--- /dev/null+++ b/assets/icons/hg-trash-2.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-width="1.5" d="m19.5 5.5l-.62 10.025c-.158 2.561-.237 3.842-.88 4.763a4 4 0 0 1-1.2 1.128c-.957.584-2.24.584-4.806.584c-2.57 0-3.855 0-4.814-.585a4 4 0 0 1-1.2-1.13c-.642-.922-.72-2.205-.874-4.77L4.5 5.5M3 5.5h18m-4.944 0l-.683-1.408c-.453-.936-.68-1.403-1.071-1.695a2 2 0 0 0-.275-.172C13.594 2 13.074 2 12.035 2c-1.066 0-1.599 0-2.04.234a2 2 0 0 0-.278.18c-.395.303-.616.788-1.058 1.757L8.053 5.5m1.447 11v-6m5 6v-6"/></svg>\ No newline at end of filediff --git a/assets/icons/hg-triangle-alert.svg b/assets/icons/hg-triangle-alert.svgnew file mode 100644index 0000000..9755e8c--- /dev/null+++ b/assets/icons/hg-triangle-alert.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"><path d="M13.925 21h-3.85c-4.63 0-6.945 0-7.799-1.506c-.853-1.506.331-3.503 2.7-7.495L6.9 8.753C9.176 4.918 10.313 3 12 3s2.824 1.918 5.1 5.753L19.023 12c2.369 3.992 3.553 5.989 2.7 7.495C20.87 21 18.555 21 13.924 21M12 9v4"/><path d="M12.125 16.75H12m.25 0a.25.25 0 1 1-.5 0a.25.25 0 0 1 .5 0"/></g></svg>\ No newline at end of filediff --git a/assets/icons/hg-unplug.svg b/assets/icons/hg-unplug.svgnew file mode 100644index 0000000..478a316--- /dev/null+++ b/assets/icons/hg-unplug.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.5"><path d="M17.854 12.16c-.383.45-1.09.454-1.537.007l-4.484-4.483c-.447-.447-.444-1.155.007-1.538l1.231-1.047a6.5 6.5 0 0 1 3.133-1.448l.725-.122c.685-.116 1.405.123 1.919.637l.986.987c.514.513.753 1.233.637 1.918l-.122.725a6.5 6.5 0 0 1-1.448 3.133z"/><path stroke-linecap="round" stroke-linejoin="round" d="m19.5 4.5l2-2m-19 19l2-2"/><path d="M6.146 11.84c.383-.45 1.09-.454 1.538-.007l4.483 4.484c.447.446.444 1.154-.007 1.537l-1.231 1.047a6.5 6.5 0 0 1-3.133 1.448l-.725.122c-.685.116-1.405-.123-1.918-.637l-.987-.986c-.514-.514-.753-1.234-.637-1.919l.122-.725a6.5 6.5 0 0 1 1.448-3.133z"/><path stroke-linecap="round" stroke-linejoin="round" d="m8.5 12.5l2-2m1 5l2-2"/></g></svg>\ No newline at end of filediff --git a/assets/icons/hg-workflow.svg b/assets/icons/hg-workflow.svgnew file mode 100644index 0000000..db03b53--- /dev/null+++ b/assets/icons/hg-workflow.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.5"><path d="M3 4c0-1.655.345-2 2-2h4c1.655 0 2 .345 2 2s-.345 2-2 2H5c-1.655 0-2-.345-2-2Zm10 9c0-1.655.345-2 2-2h4c1.655 0 2 .345 2 2s-.345 2-2 2h-4c-1.655 0-2-.345-2-2Zm-9 7c0-1.655.345-2 2-2h4c1.655 0 2 .345 2 2s-.345 2-2 2H6c-1.655 0-2-.345-2-2Z"/><path stroke-linecap="round" stroke-linejoin="round" d="M17 11c0-.465 0-.697-.038-.89a2 2 0 0 0-1.572-1.572c-.193-.038-.425-.038-.89-.038h-5c-.465 0-.697 0-.89-.038A2 2 0 0 1 7.038 6.89C7 6.697 7 6.465 7 6m10 9v1c0 1.886 0 2.828-.586 3.414S14.886 20 13 20h-1"/></g></svg>\ No newline at end of filediff --git a/assets/icons/hg-x.svg b/assets/icons/hg-x.svgnew file mode 100644index 0000000..ba90b74--- /dev/null+++ b/assets/icons/hg-x.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M18 6L6 18m12 0L6 6"/></svg>\ No newline at end of filediff --git a/assets/icons/hg-zap.svg b/assets/icons/hg-zap.svgnew file mode 100644index 0000000..4512b27--- /dev/null+++ b/assets/icons/hg-zap.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m5.226 11.33l6.998-8.983c.547-.703 1.573-.266 1.573.67V9.97c0 .56.402 1.015.899 1.015H18.1c.773 0 1.185 1.03.674 1.686l-6.998 8.983c-.547.702-1.573.265-1.573-.671V14.03c0-.56-.403-1.015-.899-1.015H5.9c-.773 0-1.185-1.03-.674-1.686"/></svg>\ No newline at end of filediff --git a/assets/icons/keyboard.svg b/assets/icons/keyboard.svgnew file mode 100644index 0000000..65915c3--- /dev/null+++ b/assets/icons/keyboard.svg@@ -0,0 +1,23 @@+<!-- @license lucide-static v1.54.0 - ISC -->+<svg+ class="lucide lucide-keyboard"+ xmlns="http://www.w3.org/2000/svg"+ width="24"+ height="24"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ stroke-width="1.6"+ stroke-linecap="round"+ stroke-linejoin="round"+>+ <path d="M10 8h.01" />+ <path d="M12 12h.01" />+ <path d="M14 8h.01" />+ <path d="M16 12h.01" />+ <path d="M18 8h.01" />+ <path d="M6 8h.01" />+ <path d="M7 16h10" />+ <path d="M8 12h.01" />+ <rect width="20" height="16" x="2" y="4" rx="2" />+</svg>diff --git a/assets/icons/mc-activity.svg b/assets/icons/mc-activity.svgnew file mode 100644index 0000000..596c0c1--- /dev/null+++ b/assets/icons/mc-activity.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M12.081 15.394a1.001 1.001 0 0 0 1.751.161l1.703-2.554h5.906c-1.915 4.738-8.164 8-9.44 8c-1.278 0-7.527-3.262-9.441-8H8a1 1 0 0 0 .895-.553l1.035-2.072zM5.506 3.801C7.466 2.66 9.928 2.653 12 4.34c2.072-1.686 4.534-1.68 6.494-.538c2.096 1.221 3.569 3.7 3.504 6.592a7 7 0 0 1-.04.608H15a1 1 0 0 0-.757.346l-.075.099l-.976 1.464l-2.273-5.303a1 1 0 0 0-1.74-.178l-.073.124l-1.724 3.448H2.043a7 7 0 0 1-.041-.608c-.065-2.892 1.409-5.37 3.504-6.592"/></svg>\ No newline at end of filediff --git a/assets/icons/mc-agent-github.svg b/assets/icons/mc-agent-github.svgnew file mode 100644index 0000000..ffc5b96--- /dev/null+++ b/assets/icons/mc-agent-github.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M16.974 2.31c.696-.237 1.69-.62 2.279.032c.4.444.5 1.188.571 1.755c.08.634.099 1.462-.111 2.282C20.516 7.415 21 8.653 21 10c0 2.042-1.106 3.814-2.743 5.042a9.5 9.5 0 0 1-2.592 1.354c.215.491.335 1.033.335 1.604v3a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1v-.995c-.955.117-1.756.017-2.438-.272c-.711-.302-1.208-.77-1.58-1.218a10 10 0 0 1-.481-.638c-.145-.206-.255-.367-.37-.516c-.234-.302-.363-.385-.447-.413a1 1 0 0 1 .632-1.897c.666.222 1.1.702 1.397 1.087c.15.195.298.409.423.586c.132.188.254.356.382.51c.253.302.506.522.826.657c.314.134.776.22 1.5.12L8 17.978a4 4 0 0 1 .334-1.582a9.5 9.5 0 0 1-2.59-1.354C4.105 13.815 3 12.043 3 10c0-1.346.483-2.583 1.284-3.62c-.21-.82-.192-1.647-.112-2.282c.074-.59.155-1.295.571-1.757c.59-.653 1.584-.268 2.28-.03c.619.21 1.384.544 2.125 1.044A11.4 11.4 0 0 1 12 3.001c.993 0 1.951.124 2.849.355a9 9 0 0 1 2.125-1.046"/></svg>\ No newline at end of filediff --git a/assets/icons/mc-arrow-up.svg b/assets/icons/mc-arrow-up.svgnew file mode 100644index 0000000..c8c9319--- /dev/null+++ b/assets/icons/mc-arrow-up.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="3" d="M20 16v4a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-4m8-12v12M7.757 8.247L12 4.005l4.243 4.242"/></svg>\ No newline at end of filediff --git a/assets/icons/mc-book-open.svg b/assets/icons/mc-book-open.svgnew file mode 100644index 0000000..6a5e31a--- /dev/null+++ b/assets/icons/mc-book-open.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" d="m11.4 20.8l-.007-.005l-.05-.036a8 8 0 0 0-1.074-.601c-.734-.339-1.712-.658-2.769-.658c-1.279 0-2.438.468-3.18.862a1.59 1.59 0 0 1-1.514-.02A1.53 1.53 0 0 1 2 19V6.5c0-.621.295-1.263.898-1.629C3.672 4.401 5.414 3.5 7.5 3.5c1.443 0 2.715.43 3.607.842c.354.164.656.328.893.468c.237-.14.539-.304.893-.468c.892-.411 2.164-.842 3.607-.842c2.086 0 3.828.9 4.602 1.371c.603.366.898 1.008.898 1.629V19c0 .633-.379 1.106-.806 1.342a1.59 1.59 0 0 1-1.515.02c-.741-.394-1.9-.862-3.179-.862c-1.057 0-2.035.32-2.768.658a8 8 0 0 0-1.074.601l-.05.036l-.008.005a1 1 0 0 1-1.198.002" clip-rule="evenodd"/></svg>\ No newline at end of filediff --git a/assets/icons/mc-bot.svg b/assets/icons/mc-bot.svgnew file mode 100644index 0000000..b3b709e--- /dev/null+++ b/assets/icons/mc-bot.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" d="M19 2a1 1 0 0 1 .946.677l.35 1.026l1.027.35a1 1 0 0 1 0 1.893l-1.026.35l-.35 1.027a1 1 0 0 1-1.893 0l-.35-1.026l-1.027-.35a1 1 0 0 1 0-1.893l1.026-.35l.35-1.027A1 1 0 0 1 19 2M9.107 5.448c.617-1.805 3.17-1.805 3.786 0l.806 2.36a4 4 0 0 0 2.493 2.493l2.36.806c1.805.617 1.805 3.17 0 3.786l-2.36.806a4 4 0 0 0-2.493 2.493l-.806 2.36c-.617 1.805-3.17 1.805-3.786 0l-.806-2.36a4 4 0 0 0-2.492-2.493l-2.36-.806c-1.806-.617-1.806-3.17 0-3.786l2.36-.806A4 4 0 0 0 8.3 7.81z" clip-rule="evenodd"/></svg>\ No newline at end of filediff --git a/assets/icons/mc-box.svg b/assets/icons/mc-box.svgnew file mode 100644index 0000000..dd156c8--- /dev/null+++ b/assets/icons/mc-box.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M13 12.57v8.988q.129-.056.25-.125l6.294-3.633a2.5 2.5 0 0 0 1.25-2.165V8.366q0-.194-.03-.383zM3.237 7.983a2.5 2.5 0 0 0-.032.383v7.269a2.5 2.5 0 0 0 1.25 2.165l6.295 3.633q.123.07.25.125V12.57zM13.25 2.567a2.5 2.5 0 0 0-2.5 0L4.455 6.201q-.075.044-.145.092L12 10.838l7.692-4.545a3 3 0 0 0-.148-.092z"/></svg>\ No newline at end of filediff --git a/assets/icons/mc-check.svg b/assets/icons/mc-check.svgnew file mode 100644index 0000000..63c1c3e--- /dev/null+++ b/assets/icons/mc-check.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" d="M21.546 5.112a1.5 1.5 0 0 1 0 2.121L10.232 18.547a1.5 1.5 0 0 1-2.121 0L2.454 12.89a1.5 1.5 0 1 1 2.121-2.121l4.596 4.596L19.424 5.112a1.5 1.5 0 0 1 2.122 0" clip-rule="evenodd"/></svg>\ No newline at end of filediff --git a/assets/icons/mc-circle-alert.svg b/assets/icons/mc-circle-alert.svgnew file mode 100644index 0000000..6158db7--- /dev/null+++ b/assets/icons/mc-circle-alert.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M10.7 3.148a1.5 1.5 0 0 1 2.6 0l8.633 14.954a1.5 1.5 0 0 1-1.299 2.25H3.366a1.5 1.5 0 0 1-1.299-2.25zM12 15.001a1 1 0 1 0 0 2a1 1 0 0 0 0-2m0-7a1 1 0 0 0-1 1v4a1 1 0 0 0 2 0v-4a1 1 0 0 0-1-1"/></svg>\ No newline at end of filediff --git a/assets/icons/mc-circle-check.svg b/assets/icons/mc-circle-check.svgnew file mode 100644index 0000000..2067a96--- /dev/null+++ b/assets/icons/mc-circle-check.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2m4.95 6.38a1 1 0 0 0-1.415 0l-4.95 4.951l-2.121-2.121a1 1 0 1 0-1.414 1.414l2.829 2.828a1 1 0 0 0 1.414 0l5.656-5.657a1 1 0 0 0 0-1.414"/></svg>\ No newline at end of filediff --git a/assets/icons/mc-circle-x.svg b/assets/icons/mc-circle-x.svgnew file mode 100644index 0000000..e64cf74--- /dev/null+++ b/assets/icons/mc-circle-x.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2m3.535 6.465a1 1 0 0 0-1.414 0L12 10.585l-2.121-2.12a1 1 0 1 0-1.414 1.414L10.585 12l-2.12 2.121a1 1 0 1 0 1.414 1.414L12 13.415l2.121 2.12a1 1 0 0 0 1.414-1.414L13.415 12l2.12-2.121a1 1 0 0 0 0-1.414"/></svg>\ No newline at end of filediff --git a/assets/icons/mc-clock.svg b/assets/icons/mc-clock.svgnew file mode 100644index 0000000..b4975cd--- /dev/null+++ b/assets/icons/mc-clock.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2m0 4a1 1 0 0 0-1 1v5a1 1 0 0 0 .293.707l3 3a1 1 0 1 0 1.414-1.414L13 11.586V7a1 1 0 0 0-1-1"/></svg>\ No newline at end of filediff --git a/assets/icons/mc-copy.svg b/assets/icons/mc-copy.svgnew file mode 100644index 0000000..083d929--- /dev/null+++ b/assets/icons/mc-copy.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M15 7a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2zm5-5a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2h-2v-2h2V4H9v2H7V4a2 2 0 0 1 2-2z"/></svg>\ No newline at end of filediff --git a/assets/icons/mc-cpu.svg b/assets/icons/mc-cpu.svgnew file mode 100644index 0000000..da6984a--- /dev/null+++ b/assets/icons/mc-cpu.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M15 2a1 1 0 0 1 1 1v1h1a3 3 0 0 1 3 3v1h1a1 1 0 1 1 0 2h-1v4h1a1 1 0 1 1 0 2h-1v1a3 3 0 0 1-3 3h-1v1a1 1 0 1 1-2 0v-1h-4v1a1 1 0 1 1-2 0v-1H7a3 3 0 0 1-3-3v-1H3a1 1 0 1 1 0-2h1v-4H3a1 1 0 0 1 0-2h1V7a3 3 0 0 1 3-3h1V3a1 1 0 0 1 2 0v1h4V3a1 1 0 0 1 1-1m-5 6a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2zm4 6h-4v-4h4z"/></svg>\ No newline at end of filediff --git a/assets/icons/mc-external-link.svg b/assets/icons/mc-external-link.svgnew file mode 100644index 0000000..2e9191f--- /dev/null+++ b/assets/icons/mc-external-link.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M12 6a5.97 5.97 0 0 1 3.475 1.11l-6.182 6.183a1 1 0 1 0 1.414 1.414l6.182-6.183A5.97 5.97 0 0 1 18 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2zm8-3a1 1 0 0 1 1 1v5a1 1 0 1 1-2 0V6.413l-2.111 2.111a6 6 0 0 0-1.413-1.414L17.586 5H15a1 1 0 1 1 0-2z"/></svg>\ No newline at end of filediff --git a/assets/icons/mc-file.svg b/assets/icons/mc-file.svgnew file mode 100644index 0000000..a34967d--- /dev/null+++ b/assets/icons/mc-file.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M12 2v6.5a1.5 1.5 0 0 0 1.5 1.5H20v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm2 .044a2 2 0 0 1 1 .542L19.414 7a2 2 0 0 1 .541 1H14z"/></svg>\ No newline at end of filediff --git a/assets/icons/mc-folder-open.svg b/assets/icons/mc-folder-open.svgnew file mode 100644index 0000000..c1f670d--- /dev/null+++ b/assets/icons/mc-folder-open.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M21.328 10a.5.5 0 0 1 .479.644l-2.89 9.643a1 1 0 0 1-.958.713H4c-.405 0-.782-.122-1.097-.33a.5.5 0 0 1-.01-.314l2.893-9.643A1 1 0 0 1 6.744 10zM9.52 3a2 2 0 0 1 1.561.751l1.4 1.749H19a2 2 0 0 1 2 2V8H6.744a3 3 0 0 0-2.874 2.138L2 16.37V5a2 2 0 0 1 2-2z"/></svg>\ No newline at end of filediff --git a/assets/icons/mc-folder.svg b/assets/icons/mc-folder.svgnew file mode 100644index 0000000..f4d7cc2--- /dev/null+++ b/assets/icons/mc-folder.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M2 5a2 2 0 0 1 2-2h5.52a2 2 0 0 1 1.561.75l1.4 1.75H20a2 2 0 0 1 2 2V19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2z"/></svg>\ No newline at end of filediff --git a/assets/icons/mc-gauge.svg b/assets/icons/mc-gauge.svgnew file mode 100644index 0000000..eaadf03--- /dev/null+++ b/assets/icons/mc-gauge.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M12 2c2.402 0 4.606.847 6.33 2.259l-.037.034l-5.002 5.002A3 3 0 0 0 12 9a3 3 0 1 0 3 3c0-.463-.108-.9-.296-1.292l.003-.001l5-5l.033-.038A9.96 9.96 0 0 1 22 12c0 5.523-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2m-7.936 9q-.062.492-.064 1q.002.508.064 1H5a1 1 0 1 0 0-2zM12 11a1 1 0 1 1 0 2a1 1 0 0 1 0-2m7 0a1 1 0 1 0 0 2h.936c.04-.328.064-.661.064-1s-.024-.672-.064-1zM7.096 5.68a8 8 0 0 0-1.414 1.416l.66.66a1.001 1.001 0 0 0 1.416-1.413zM12 4q-.508.002-1 .063V5a1 1 0 1 0 2 0v-.937A8 8 0 0 0 12 4"/></svg>\ No newline at end of filediff --git a/assets/icons/mc-git-branch.svg b/assets/icons/mc-git-branch.svgnew file mode 100644index 0000000..846ed0a--- /dev/null+++ b/assets/icons/mc-git-branch.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M18 3a2.998 2.998 0 0 1 1 5.825V9a4 4 0 0 1-4 4H9a2 2 0 0 0-2 2v.174A2.998 2.998 0 0 1 6 21a3 3 0 0 1-1-5.826V8.825A2.998 2.998 0 0 1 6 3a2.998 2.998 0 0 1 1 5.825v2.711A4 4 0 0 1 9 11h6a2 2 0 0 0 2-2v-.175A2.998 2.998 0 0 1 18 3"/></svg>\ No newline at end of filediff --git a/assets/icons/mc-hard-drive.svg b/assets/icons/mc-hard-drive.svgnew file mode 100644index 0000000..1c1a785--- /dev/null+++ b/assets/icons/mc-hard-drive.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" d="M7.716 3A3 3 0 0 0 4.75 5.544l-1.705 11.31Q3 17.17 3 17.5A4.5 4.5 0 0 0 7.5 22h9a4.5 4.5 0 0 0 4.454-5.147l-1.705-11.31A3 3 0 0 0 16.284 3zM5 17.5A2.5 2.5 0 0 1 7.5 15h9a2.5 2.5 0 0 1 0 5h-9A2.5 2.5 0 0 1 5 17.5m6 0a1 1 0 0 1 1-1h4a1 1 0 1 1 0 2h-4a1 1 0 0 1-1-1m-3 1a1 1 0 1 0 0-2a1 1 0 0 0 0 2" clip-rule="evenodd"/></svg>\ No newline at end of filediff --git a/assets/icons/mc-inbox.svg b/assets/icons/mc-inbox.svgnew file mode 100644index 0000000..e47899c--- /dev/null+++ b/assets/icons/mc-inbox.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" d="M5.83 5.106A2 2 0 0 1 7.617 4h8.764a2 2 0 0 1 1.789 1.106l3.512 6.025a3 3 0 0 1 .318 1.34V18a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3v-5.528a3 3 0 0 1 .317-1.341zM16.381 6H7.618L4.12 12H7.5A1.5 1.5 0 0 1 9 13.5V15a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1v-1.5a1.5 1.5 0 0 1 1.5-1.5h3.38z" clip-rule="evenodd"/></svg>\ No newline at end of filediff --git a/assets/icons/mc-info.svg b/assets/icons/mc-info.svgnew file mode 100644index 0000000..08753d9--- /dev/null+++ b/assets/icons/mc-info.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2m-1 8a1 1 0 1 0 0 2v5a1 1 0 0 0 1 1h.5a1 1 0 0 0 .5-1.865V11a1 1 0 0 0-1-1zm1-3a1 1 0 1 0 0 2h.002a1 1 0 0 0 0-2z"/></svg>\ No newline at end of filediff --git a/assets/icons/mc-laptop.svg b/assets/icons/mc-laptop.svgnew file mode 100644index 0000000..b424242--- /dev/null+++ b/assets/icons/mc-laptop.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" d="M3 6a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2zM2 20a1 1 0 0 1 1-1h18a1 1 0 1 1 0 2H3a1 1 0 0 1-1-1" clip-rule="evenodd"/></svg>\ No newline at end of filediff --git a/assets/icons/mc-layers.svg b/assets/icons/mc-layers.svgnew file mode 100644index 0000000..dfec41f--- /dev/null+++ b/assets/icons/mc-layers.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M18.01 9.378A2.5 2.5 0 0 1 21 11.83v5.53a3 3 0 0 1-2.412 2.942l-5.598 1.12A2.5 2.5 0 0 1 10 18.97v-5.53a3 3 0 0 1 2.412-2.942zm-3.5-3.299A2.5 2.5 0 0 1 17.5 8.53v.132L12.216 9.72A4 4 0 0 0 9 13.642v4.529a2.5 2.5 0 0 1-2.5-2.5v-5.53a3 3 0 0 1 2.412-2.942zm-3.5-3.5A2.5 2.5 0 0 1 14 5.028v.132L8.716 6.22A4 4 0 0 0 5.5 10.14v4.529a2.5 2.5 0 0 1-2.5-2.5V6.64a3 3 0 0 1 2.412-2.942z"/></svg>\ No newline at end of filediff --git a/assets/icons/mc-lock.svg b/assets/icons/mc-lock.svgnew file mode 100644index 0000000..18d9752--- /dev/null+++ b/assets/icons/mc-lock.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M12 2a6 6 0 0 1 6 6h1a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V10a2 2 0 0 1 2-2h1a6 6 0 0 1 6-6m-.107 10.005A1.998 1.998 0 0 0 11 15.729V17a1 1 0 1 0 2 0v-1.27a1.997 1.997 0 0 0-.894-3.725a1 1 0 0 0-.213 0M12 4a4 4 0 0 0-4 4h8a4 4 0 0 0-4-4"/></svg>\ No newline at end of filediff --git a/assets/icons/mc-memory-stick.svg b/assets/icons/mc-memory-stick.svgnew file mode 100644index 0000000..da6984a--- /dev/null+++ b/assets/icons/mc-memory-stick.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M15 2a1 1 0 0 1 1 1v1h1a3 3 0 0 1 3 3v1h1a1 1 0 1 1 0 2h-1v4h1a1 1 0 1 1 0 2h-1v1a3 3 0 0 1-3 3h-1v1a1 1 0 1 1-2 0v-1h-4v1a1 1 0 1 1-2 0v-1H7a3 3 0 0 1-3-3v-1H3a1 1 0 1 1 0-2h1v-4H3a1 1 0 0 1 0-2h1V7a3 3 0 0 1 3-3h1V3a1 1 0 0 1 2 0v1h4V3a1 1 0 0 1 1-1m-5 6a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2zm4 6h-4v-4h4z"/></svg>\ No newline at end of filediff --git a/assets/icons/mc-message-square.svg b/assets/icons/mc-message-square.svgnew file mode 100644index 0000000..8389c70--- /dev/null+++ b/assets/icons/mc-message-square.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10H4a2 2 0 0 1-2-2v-8C2 6.477 6.477 2 12 2M9 14a1 1 0 1 0 0 2h3a1 1 0 1 0 0-2zm0-4a1 1 0 1 0 0 2h6a1 1 0 1 0 0-2z"/></svg>\ No newline at end of filediff --git a/assets/icons/mc-monitor.svg b/assets/icons/mc-monitor.svgnew file mode 100644index 0000000..74f9320--- /dev/null+++ b/assets/icons/mc-monitor.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" d="M3 5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2h-4v1h1a1 1 0 1 1 0 2H8a1 1 0 1 1 0-2h1v-1H5a2 2 0 0 1-2-2zm8 13v1h2v-1z" clip-rule="evenodd"/></svg>\ No newline at end of filediff --git a/assets/icons/mc-network.svg b/assets/icons/mc-network.svgnew file mode 100644index 0000000..9acfa78--- /dev/null+++ b/assets/icons/mc-network.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-width="3" d="M12 18h.01m-2.839-2.828A4 4 0 0 1 12 14c1.104 0 2.104.448 2.828 1.172m-8.485-2.829A7.98 7.98 0 0 1 12 10c2.209 0 4.209.895 5.657 2.343M3.515 9.515A11.96 11.96 0 0 1 12 6c3.314 0 6.314 1.343 8.485 3.515"/></svg>\ No newline at end of filediff --git a/assets/icons/mc-play.svg b/assets/icons/mc-play.svgnew file mode 100644index 0000000..244b0d8--- /dev/null+++ b/assets/icons/mc-play.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" d="M5.669 4.76a1.47 1.47 0 0 1 2.04-1.177c1.062.453 3.442 1.532 6.462 3.276c3.021 1.744 5.146 3.266 6.069 3.958c.788.59.79 1.763.001 2.355c-.914.687-3.013 2.191-6.07 3.956c-3.06 1.766-5.412 2.832-6.464 3.28a1.467 1.467 0 0 1-2.038-1.177c-.138-1.141-.396-3.734-.396-7.236c0-3.5.257-6.092.396-7.235" clip-rule="evenodd"/></svg>\ No newline at end of filediff --git a/assets/icons/mc-plug.svg b/assets/icons/mc-plug.svgnew file mode 100644index 0000000..97d2634--- /dev/null+++ b/assets/icons/mc-plug.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M2 9a3 3 0 0 1 3-3h2.853c.297 0 .48-.309.366-.583A2.5 2.5 0 0 1 8.083 5c-.331-1.487.792-3 2.417-3c1.626 0 2.748 1.513 2.417 3a2.5 2.5 0 0 1-.136.417c-.115.274.069.583.366.583H15a3 3 0 0 1 3 3v1.853c0 .297.308.48.583.366c.135-.056.273-.104.417-.136c1.487-.331 3 .791 3 2.417s-1.513 2.748-3 2.417a2.5 2.5 0 0 1-.417-.136c-.274-.115-.583.069-.583.366V19a3 3 0 0 1-3 3h-1.893c-.288 0-.473-.291-.39-.566q.063-.21.085-.434a2.31 2.31 0 1 0-4.604 0q.021.224.086.434c.082.275-.103.566-.39.566H5a3 3 0 0 1-3-3v-2.893c0-.288.291-.473.566-.39q.21.063.434.085a2.31 2.31 0 1 0 0-4.604q-.224.021-.434.086c-.275.082-.566-.104-.566-.39z"/></svg>\ No newline at end of filediff --git a/assets/icons/mc-plus.svg b/assets/icons/mc-plus.svgnew file mode 100644index 0000000..0562946--- /dev/null+++ b/assets/icons/mc-plus.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" d="M12 3.5A1.5 1.5 0 0 1 13.5 5v5.5H19a1.5 1.5 0 0 1 0 3h-5.5V19a1.5 1.5 0 0 1-3 0v-5.5H5a1.5 1.5 0 0 1 0-3h5.5V5A1.5 1.5 0 0 1 12 3.5" clip-rule="evenodd"/></svg>\ No newline at end of filediff --git a/assets/icons/mc-power.svg b/assets/icons/mc-power.svgnew file mode 100644index 0000000..fd7cfef--- /dev/null+++ b/assets/icons/mc-power.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" d="M13.5 3a1.5 1.5 0 0 0-3 0v10a1.5 1.5 0 0 0 3 0zM7.854 5.75a1.5 1.5 0 1 0-1.661-2.5A10.49 10.49 0 0 0 1.5 12c0 5.799 4.701 10.5 10.5 10.5S22.5 17.799 22.5 12c0-3.654-1.867-6.87-4.693-8.75a1.5 1.5 0 0 0-1.66 2.5a7.5 7.5 0 1 1-8.292 0" clip-rule="evenodd"/></svg>\ No newline at end of filediff --git a/assets/icons/mc-refresh-cw.svg b/assets/icons/mc-refresh-cw.svgnew file mode 100644index 0000000..684476a--- /dev/null+++ b/assets/icons/mc-refresh-cw.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M1.498 12.083c-.01-1.314 1.45-2.04 2.492-1.337l2.678 1.805c1.463.986.486 3.268-1.238 2.89l-.108-.025a7.504 7.504 0 0 0 13.175.336a1.5 1.5 0 0 1 2.6 1.497c-2.317 4.02-7.119 6.152-11.815 4.894a10.5 10.5 0 0 1-7.784-10.06m1.406-5.331C5.22 2.733 10.022.6 14.718 1.858a10.5 10.5 0 0 1 7.784 10.061c.01 1.314-1.45 2.039-2.492 1.336l-2.678-1.804c-1.464-.986-.487-3.267 1.237-2.89l.108.024a7.48 7.48 0 0 0-4.736-3.83A7.505 7.505 0 0 0 5.503 8.25a1.5 1.5 0 0 1-2.599-1.498"/></svg>\ No newline at end of filediff --git a/assets/icons/mc-rotate-ccw.svg b/assets/icons/mc-rotate-ccw.svgnew file mode 100644index 0000000..f29f41b--- /dev/null+++ b/assets/icons/mc-rotate-ccw.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" d="M13.941 19.244a7.5 7.5 0 0 1-7.534-2.245A1.5 1.5 0 1 0 4.172 19a10.5 10.5 0 0 0 10.545 3.142c5.602-1.501 8.926-7.259 7.425-12.86c-1.5-5.602-7.258-8.926-12.86-7.425a10.5 10.5 0 0 0-7.784 10.06c-.01 1.314 1.449 2.04 2.492 1.337l2.674-1.801c1.466-.988.483-3.274-1.243-2.889l-.1.022a7.5 7.5 0 1 1 8.62 10.658" clip-rule="evenodd"/></svg>\ No newline at end of filediff --git a/assets/icons/mc-scroll-text.svg b/assets/icons/mc-scroll-text.svgnew file mode 100644index 0000000..b95751c--- /dev/null+++ b/assets/icons/mc-scroll-text.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M12 8.5a1.5 1.5 0 0 0 1.5 1.5H20v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h6zM9 16a1 1 0 1 0 0 2h6a1 1 0 1 0 0-2zm0-4a1 1 0 1 0 0 2h1a1 1 0 1 0 0-2zm5-9.956a2 2 0 0 1 1 .542L19.414 7a2 2 0 0 1 .541 1H14z"/></svg>\ No newline at end of filediff --git a/assets/icons/mc-search.svg b/assets/icons/mc-search.svgnew file mode 100644index 0000000..53f5c67--- /dev/null+++ b/assets/icons/mc-search.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-width="3" d="M14.5 14.5L20 20m-4-10a6 6 0 1 1-12 0a6 6 0 0 1 12 0Z"/></svg>\ No newline at end of filediff --git a/assets/icons/mc-server.svg b/assets/icons/mc-server.svgnew file mode 100644index 0000000..a310ba7--- /dev/null+++ b/assets/icons/mc-server.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M20 19a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-4h16zm-6-2a1 1 0 1 0 0 2a1 1 0 0 0 0-2m3 0a1 1 0 1 0 0 2a1 1 0 0 0 0-2m3-4H4V9h16zM18 3a2 2 0 0 1 2 2v2H4V5a2 2 0 0 1 2-2z"/></svg>\ No newline at end of filediff --git a/assets/icons/mc-settings.svg b/assets/icons/mc-settings.svgnew file mode 100644index 0000000..3815c27--- /dev/null+++ b/assets/icons/mc-settings.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M14.035 2.808c.369-.266.89-.39 1.402-.203a10 10 0 0 1 2.981 1.725c.417.35.57.86.524 1.313c-.075.752.058 1.48.42 2.106c.361.627.924 1.106 1.615 1.417c.414.187.782.576.875 1.113a10 10 0 0 1 0 3.44a1.51 1.51 0 0 1-.875 1.114c-.69.311-1.254.79-1.616 1.416c-.361.627-.494 1.354-.419 2.106c.046.452-.107.964-.524 1.313a10 10 0 0 1-2.981 1.724a1.51 1.51 0 0 1-1.402-.202c-.614-.442-1.31-.691-2.035-.691c-.724 0-1.42.249-2.035.691a1.51 1.51 0 0 1-1.402.202a10 10 0 0 1-2.981-1.724c-.417-.35-.57-.86-.524-1.313c.075-.752-.058-1.48-.42-2.106c-.361-.627-.925-1.105-1.615-1.416a1.51 1.51 0 0 1-.876-1.114a10 10 0 0 1 0-3.44c.094-.537.462-.926.876-1.113c.69-.311 1.254-.79 1.616-1.417c.361-.627.494-1.354.419-2.106a1.51 1.51 0 0 1 .524-1.313a10 10 0 0 1 2.981-1.725a1.51 1.51 0 0 1 1.402.203c.614.442 1.31.691 2.035.691c.724 0 1.42-.249 2.035-.691M12 8.999a3 3 0 1 0 0 6a3 3 0 0 0 0-6"/></svg>\ No newline at end of filediff --git a/assets/icons/mc-square.svg b/assets/icons/mc-square.svgnew file mode 100644index 0000000..b3f0d37--- /dev/null+++ b/assets/icons/mc-square.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" d="M4 6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z" clip-rule="evenodd"/></svg>\ No newline at end of filediff --git a/assets/icons/mc-star.svg b/assets/icons/mc-star.svgnew file mode 100644index 0000000..4911e05--- /dev/null+++ b/assets/icons/mc-star.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M10.92 2.37a1.25 1.25 0 0 1 2.16 0l2.795 4.8l5.428 1.175a1.25 1.25 0 0 1 .667 2.054l-3.7 4.142l.56 5.525a1.25 1.25 0 0 1-1.748 1.27L12 19.096l-5.082 2.24a1.25 1.25 0 0 1-1.747-1.27l.559-5.525l-3.7-4.142a1.25 1.25 0 0 1 .667-2.054L8.125 7.17z"/></svg>\ No newline at end of filediff --git a/assets/icons/mc-terminal.svg b/assets/icons/mc-terminal.svgnew file mode 100644index 0000000..031133d--- /dev/null+++ b/assets/icons/mc-terminal.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2zm-5 11a1 1 0 0 0 0 2h2a1 1 0 1 0 0-2zM9.05 8.465a1.001 1.001 0 0 0-1.414 1.414L9.758 12l-2.122 2.121a1.001 1.001 0 0 0 1.415 1.415l2.828-2.829a1 1 0 0 0 0-1.414z"/></svg>\ No newline at end of filediff --git a/assets/icons/mc-trash-2.svg b/assets/icons/mc-trash-2.svgnew file mode 100644index 0000000..3ce90ee--- /dev/null+++ b/assets/icons/mc-trash-2.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" d="M7.823 3.368A2 2 0 0 1 9.721 2h4.558a2 2 0 0 1 1.898 1.368L16.72 5H20a1 1 0 1 1 0 2h-.064l-.814 12.2A3 3 0 0 1 16.13 22H7.87a3 3 0 0 1-2.993-2.8L4.064 7H4a1 1 0 0 1 0-2h3.28zM14.613 5H9.387l.334-1h4.558zM9 10a1 1 0 0 1 1 1v6a1 1 0 1 1-2 0v-6a1 1 0 0 1 1-1m6 0a1 1 0 0 1 1 1v6a1 1 0 1 1-2 0v-6a1 1 0 0 1 1-1" clip-rule="evenodd"/></svg>\ No newline at end of filediff --git a/assets/icons/mc-triangle-alert.svg b/assets/icons/mc-triangle-alert.svgnew file mode 100644index 0000000..1417184--- /dev/null+++ b/assets/icons/mc-triangle-alert.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2m0 13a1 1 0 1 0 0 2h.002a1 1 0 0 0 0-2zm0-9a1 1 0 0 0-1 1v6a1 1 0 1 0 2 0V7a1 1 0 0 0-1-1"/></svg>\ No newline at end of filediff --git a/assets/icons/mc-unplug.svg b/assets/icons/mc-unplug.svgnew file mode 100644index 0000000..97d2634--- /dev/null+++ b/assets/icons/mc-unplug.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M2 9a3 3 0 0 1 3-3h2.853c.297 0 .48-.309.366-.583A2.5 2.5 0 0 1 8.083 5c-.331-1.487.792-3 2.417-3c1.626 0 2.748 1.513 2.417 3a2.5 2.5 0 0 1-.136.417c-.115.274.069.583.366.583H15a3 3 0 0 1 3 3v1.853c0 .297.308.48.583.366c.135-.056.273-.104.417-.136c1.487-.331 3 .791 3 2.417s-1.513 2.748-3 2.417a2.5 2.5 0 0 1-.417-.136c-.274-.115-.583.069-.583.366V19a3 3 0 0 1-3 3h-1.893c-.288 0-.473-.291-.39-.566q.063-.21.085-.434a2.31 2.31 0 1 0-4.604 0q.021.224.086.434c.082.275-.103.566-.39.566H5a3 3 0 0 1-3-3v-2.893c0-.288.291-.473.566-.39q.21.063.434.085a2.31 2.31 0 1 0 0-4.604q-.224.021-.434.086c-.275.082-.566-.104-.566-.39z"/></svg>\ No newline at end of filediff --git a/assets/icons/mc-workflow.svg b/assets/icons/mc-workflow.svgnew file mode 100644index 0000000..30cfa5c--- /dev/null+++ b/assets/icons/mc-workflow.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M6 3a2.998 2.998 0 0 1 1 5.825v6.349A2.999 2.999 0 0 1 6 21a3 3 0 0 1-1-5.826V8.825A2.998 2.998 0 0 1 6 3m6.793.172a1 1 0 1 1 1.414 1.414L13.793 5H16a3 3 0 0 1 3 3v7.174A2.999 2.999 0 0 1 18 21a3 3 0 0 1-1-5.826V8a1 1 0 0 0-1-1h-2.207l.414.414a1 1 0 0 1-1.414 1.414l-2.121-2.121a1 1 0 0 1 0-1.414z"/></svg>\ No newline at end of filediff --git a/assets/icons/mc-x.svg b/assets/icons/mc-x.svgnew file mode 100644index 0000000..cf777ef--- /dev/null+++ b/assets/icons/mc-x.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" d="M4.575 4.576a1.5 1.5 0 0 1 2.122 0L12 9.88l5.303-5.303a1.5 1.5 0 0 1 2.122 2.121l-5.304 5.304l5.304 5.303a1.5 1.5 0 1 1-2.122 2.121L12 14.122l-5.303 5.303a1.5 1.5 0 1 1-2.122-2.12L9.88 12L4.575 6.697a1.5 1.5 0 0 1 0-2.12" clip-rule="evenodd"/></svg>\ No newline at end of filediff --git a/assets/icons/mc-zap.svg b/assets/icons/mc-zap.svgnew file mode 100644index 0000000..42cc8fb--- /dev/null+++ b/assets/icons/mc-zap.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" d="M13.232 1.36c.632-.758 1.863-.24 1.763.742L14.289 9H20a1 1 0 0 1 .768 1.64l-10 12c-.632.759-1.863.24-1.763-.741L9.711 15H4a1 1 0 0 1-.768-1.64z" clip-rule="evenodd"/></svg>\ No newline at end of filediff --git a/assets/icons/palette.svg b/assets/icons/palette.svgnew file mode 100644index 0000000..3277d65--- /dev/null+++ b/assets/icons/palette.svg@@ -0,0 +1,19 @@+<!-- @license lucide-static v1.54.0 - ISC -->+<svg+ class="lucide lucide-palette"+ xmlns="http://www.w3.org/2000/svg"+ width="24"+ height="24"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ stroke-width="1.6"+ stroke-linecap="round"+ stroke-linejoin="round"+>+ <path d="M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z" />+ <circle cx="13.5" cy="6.5" r=".5" fill="currentColor" />+ <circle cx="17.5" cy="10.5" r=".5" fill="currentColor" />+ <circle cx="6.5" cy="12.5" r=".5" fill="currentColor" />+ <circle cx="8.5" cy="7.5" r=".5" fill="currentColor" />+</svg>diff --git a/assets/icons/pf-activity.svg b/assets/icons/pf-activity.svgnew file mode 100644index 0000000..dcb201e--- /dev/null+++ b/assets/icons/pf-activity.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="currentColor" d="M216 40H40a16 16 0 0 0-16 16v144a16 16 0 0 0 16 16h176a16 16 0 0 0 16-16V56a16 16 0 0 0-16-16m-8 96h-19.36L159 188a8 8 0 0 1-6.95 4h-.46a8 8 0 0 1-6.89-4.84L103 89.92L79 132a8 8 0 0 1-7 4H48a8 8 0 0 1 0-16h19.36l29.69-52a8 8 0 0 1 14.3.82L153 166.08l24-42.05a8 8 0 0 1 6.95-4h24a8 8 0 0 1 0 16Z"/></svg>\ No newline at end of filediff --git a/assets/icons/pf-agent-github.svg b/assets/icons/pf-agent-github.svgnew file mode 100644index 0000000..8f2e6cd--- /dev/null+++ b/assets/icons/pf-agent-github.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="currentColor" d="M216 104v8a56.06 56.06 0 0 1-48.44 55.47A39.8 39.8 0 0 1 176 192v40a8 8 0 0 1-8 8h-64a8 8 0 0 1-8-8v-16H72a40 40 0 0 1-40-40a24 24 0 0 0-24-24a8 8 0 0 1 0-16a40 40 0 0 1 40 40a24 24 0 0 0 24 24h24v-8a39.8 39.8 0 0 1 8.44-24.53A56.06 56.06 0 0 1 56 112v-8a58.14 58.14 0 0 1 7.69-28.32A59.78 59.78 0 0 1 69.07 28A8 8 0 0 1 76 24a59.75 59.75 0 0 1 48 24h24a59.75 59.75 0 0 1 48-24a8 8 0 0 1 6.93 4a59.74 59.74 0 0 1 5.37 47.68A58 58 0 0 1 216 104"/></svg>\ No newline at end of filediff --git a/assets/icons/pf-arrow-up.svg b/assets/icons/pf-arrow-up.svgnew file mode 100644index 0000000..2bba117--- /dev/null+++ b/assets/icons/pf-arrow-up.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="currentColor" d="M247.93 124.52C246.11 77.54 207.07 40 160.06 40a88.1 88.1 0 0 0-78.77 48.67A87.5 87.5 0 0 0 72 127.73a8.18 8.18 0 0 1-7.43 8.27a8 8 0 0 1-8.57-8a103.7 103.7 0 0 1 5.34-32.92a4 4 0 0 0-4.75-5.18A64.09 64.09 0 0 0 8 152c0 35.19 29.75 64 65 64h87a88.09 88.09 0 0 0 87.93-91.48m-50.27 9.14a8 8 0 0 1-11.32 0L168 115.31V176a8 8 0 0 1-16 0v-60.69l-18.34 18.35a8 8 0 0 1-11.32-11.32l32-32a8 8 0 0 1 11.32 0l32 32a8 8 0 0 1 0 11.32"/></svg>\ No newline at end of filediff --git a/assets/icons/pf-book-open.svg b/assets/icons/pf-book-open.svgnew file mode 100644index 0000000..6120017--- /dev/null+++ b/assets/icons/pf-book-open.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="currentColor" d="M240 56v144a8 8 0 0 1-8 8h-72a24 24 0 0 0-24 23.94a7.9 7.9 0 0 1-5.12 7.55A8 8 0 0 1 120 232a24 24 0 0 0-24-24H24a8 8 0 0 1-8-8V56a8 8 0 0 1 8-8h64a32 32 0 0 1 32 32v87.73a8.17 8.17 0 0 0 7.47 8.25a8 8 0 0 0 8.53-8V80a32 32 0 0 1 32-32h64a8 8 0 0 1 8 8"/></svg>\ No newline at end of filediff --git a/assets/icons/pf-bot.svg b/assets/icons/pf-bot.svgnew file mode 100644index 0000000..131624e--- /dev/null+++ b/assets/icons/pf-bot.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="currentColor" d="M200 48h-64V16a8 8 0 0 0-16 0v32H56a32 32 0 0 0-32 32v112a32 32 0 0 0 32 32h144a32 32 0 0 0 32-32V80a32 32 0 0 0-32-32m-28 48a12 12 0 1 1-12 12a12 12 0 0 1 12-12m-76 88H80a16 16 0 0 1 0-32h16Zm-12-64a12 12 0 1 1 12-12a12 12 0 0 1-12 12m60 64h-32v-32h32Zm32 0h-16v-32h16a16 16 0 0 1 0 32"/></svg>\ No newline at end of filediff --git a/assets/icons/pf-box.svg b/assets/icons/pf-box.svgnew file mode 100644index 0000000..08ffea1--- /dev/null+++ b/assets/icons/pf-box.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="currentColor" d="m223.68 66.15l-88-48.15a15.88 15.88 0 0 0-15.36 0l-88 48.17a16 16 0 0 0-8.32 14v95.64a16 16 0 0 0 8.32 14l88 48.17a15.88 15.88 0 0 0 15.36 0l88-48.17a16 16 0 0 0 8.32-14V80.18a16 16 0 0 0-8.32-14.03M128 32l80.35 44l-29.78 16.29l-80.35-44Zm0 88L47.65 76l33.91-18.57l80.35 44Zm88 55.85l-80 43.79v-85.81l32-17.51V152a8 8 0 0 0 16 0v-44.44l32-17.51v85.76Z"/></svg>\ No newline at end of filediff --git a/assets/icons/pf-check.svg b/assets/icons/pf-check.svgnew file mode 100644index 0000000..1f617cf--- /dev/null+++ b/assets/icons/pf-check.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="currentColor" d="m232.49 80.49l-128 128a12 12 0 0 1-17 0l-56-56a12 12 0 1 1 17-17L96 183L215.51 63.51a12 12 0 0 1 17 17Z"/></svg>\ No newline at end of filediff --git a/assets/icons/pf-circle-alert.svg b/assets/icons/pf-circle-alert.svgnew file mode 100644index 0000000..49e83bd--- /dev/null+++ b/assets/icons/pf-circle-alert.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="currentColor" d="M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24m-8 56a8 8 0 0 1 16 0v56a8 8 0 0 1-16 0Zm8 104a12 12 0 1 1 12-12a12 12 0 0 1-12 12"/></svg>\ No newline at end of filediff --git a/assets/icons/pf-circle-check.svg b/assets/icons/pf-circle-check.svgnew file mode 100644index 0000000..ca8d524--- /dev/null+++ b/assets/icons/pf-circle-check.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="currentColor" d="M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24m45.66 85.66l-56 56a8 8 0 0 1-11.32 0l-24-24a8 8 0 0 1 11.32-11.32L112 148.69l50.34-50.35a8 8 0 0 1 11.32 11.32"/></svg>\ No newline at end of filediff --git a/assets/icons/pf-circle-x.svg b/assets/icons/pf-circle-x.svgnew file mode 100644index 0000000..ca9abd7--- /dev/null+++ b/assets/icons/pf-circle-x.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="currentColor" d="M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24m37.66 130.34a8 8 0 0 1-11.32 11.32L128 139.31l-26.34 26.35a8 8 0 0 1-11.32-11.32L116.69 128l-26.35-26.34a8 8 0 0 1 11.32-11.32L128 116.69l26.34-26.35a8 8 0 0 1 11.32 11.32L139.31 128Z"/></svg>\ No newline at end of filediff --git a/assets/icons/pf-clock.svg b/assets/icons/pf-clock.svgnew file mode 100644index 0000000..ed4675c--- /dev/null+++ b/assets/icons/pf-clock.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="currentColor" d="M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24m56 112h-56a8 8 0 0 1-8-8V72a8 8 0 0 1 16 0v48h48a8 8 0 0 1 0 16"/></svg>\ No newline at end of filediff --git a/assets/icons/pf-copy.svg b/assets/icons/pf-copy.svgnew file mode 100644index 0000000..e5547b2--- /dev/null+++ b/assets/icons/pf-copy.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="currentColor" d="M216 32H88a8 8 0 0 0-8 8v40H40a8 8 0 0 0-8 8v128a8 8 0 0 0 8 8h128a8 8 0 0 0 8-8v-40h40a8 8 0 0 0 8-8V40a8 8 0 0 0-8-8m-8 128h-32V88a8 8 0 0 0-8-8H96V48h112Z"/></svg>\ No newline at end of filediff --git a/assets/icons/pf-cpu.svg b/assets/icons/pf-cpu.svgnew file mode 100644index 0000000..7bffa54--- /dev/null+++ b/assets/icons/pf-cpu.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="currentColor" d="M104 104h48v48h-48Zm136 48a8 8 0 0 1-8 8h-16v40a16 16 0 0 1-16 16h-40v16a8 8 0 0 1-16 0v-16h-32v16a8 8 0 0 1-16 0v-16H56a16 16 0 0 1-16-16v-40H24a8 8 0 0 1 0-16h16v-32H24a8 8 0 0 1 0-16h16V56a16 16 0 0 1 16-16h40V24a8 8 0 0 1 16 0v16h32V24a8 8 0 0 1 16 0v16h40a16 16 0 0 1 16 16v40h16a8 8 0 0 1 0 16h-16v32h16a8 8 0 0 1 8 8m-72-56a8 8 0 0 0-8-8H96a8 8 0 0 0-8 8v64a8 8 0 0 0 8 8h64a8 8 0 0 0 8-8Z"/></svg>\ No newline at end of filediff --git a/assets/icons/pf-external-link.svg b/assets/icons/pf-external-link.svgnew file mode 100644index 0000000..87cbf77--- /dev/null+++ b/assets/icons/pf-external-link.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="currentColor" d="M192 136v72a16 16 0 0 1-16 16H48a16 16 0 0 1-16-16V80a16 16 0 0 1 16-16h72a8 8 0 0 1 0 16H48v128h128v-72a8 8 0 0 1 16 0m32-96a8 8 0 0 0-8-8h-64a8 8 0 0 0-5.66 13.66L172.69 72l-42.35 42.34a8 8 0 0 0 11.32 11.32L184 83.31l26.34 26.35A8 8 0 0 0 224 104Z"/></svg>\ No newline at end of filediff --git a/assets/icons/pf-file.svg b/assets/icons/pf-file.svgnew file mode 100644index 0000000..2cc4797--- /dev/null+++ b/assets/icons/pf-file.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="currentColor" d="m213.66 82.34l-56-56A8 8 0 0 0 152 24H56a16 16 0 0 0-16 16v176a16 16 0 0 0 16 16h144a16 16 0 0 0 16-16V88a8 8 0 0 0-2.34-5.66M152 88V44l44 44Z"/></svg>\ No newline at end of filediff --git a/assets/icons/pf-folder-open.svg b/assets/icons/pf-folder-open.svgnew file mode 100644index 0000000..d22ca5c--- /dev/null+++ b/assets/icons/pf-folder-open.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="currentColor" d="M245 110.64a16 16 0 0 0-13-6.64h-16V88a16 16 0 0 0-16-16h-69.33l-27.73-20.8a16.14 16.14 0 0 0-9.6-3.2H40a16 16 0 0 0-16 16v144a8 8 0 0 0 8 8h179.1a8 8 0 0 0 7.59-5.47l28.49-85.47a16.05 16.05 0 0 0-2.18-14.42M93.34 64l29.86 22.4A8 8 0 0 0 128 88h72v16H69.77a16 16 0 0 0-15.18 10.94L40 158.7V64Z"/></svg>\ No newline at end of filediff --git a/assets/icons/pf-folder.svg b/assets/icons/pf-folder.svgnew file mode 100644index 0000000..7b698c4--- /dev/null+++ b/assets/icons/pf-folder.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="currentColor" d="M216 72h-84.69L104 44.69A15.88 15.88 0 0 0 92.69 40H40a16 16 0 0 0-16 16v144.62A15.41 15.41 0 0 0 39.39 216h177.5A15.13 15.13 0 0 0 232 200.89V88a16 16 0 0 0-16-16M40 56h52.69l16 16H40Z"/></svg>\ No newline at end of filediff --git a/assets/icons/pf-gauge.svg b/assets/icons/pf-gauge.svgnew file mode 100644index 0000000..d3ce570--- /dev/null+++ b/assets/icons/pf-gauge.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="currentColor" d="M240 152v24a16 16 0 0 1-16 16H115.93a4 4 0 0 1-3.24-6.35L174.27 101a8.21 8.21 0 0 0-1.37-11.3a8 8 0 0 0-11.37 1.61l-72 99.06a4 4 0 0 1-3.28 1.63H32a16 16 0 0 1-16-16v-22.87c0-1.79 0-3.57.13-5.33a4 4 0 0 1 4-3.8H48a8 8 0 0 0 8-8.53a8.17 8.17 0 0 0-8.27-7.47H23.92a4 4 0 0 1-3.87-5c12-43.84 49.66-77.13 95.52-82.28a4 4 0 0 1 4.43 4V72a8 8 0 0 0 8.53 8a8.17 8.17 0 0 0 7.47-8.27V44.67a4 4 0 0 1 4.43-4a112.18 112.18 0 0 1 95.8 82.33a4 4 0 0 1-3.88 5h-24.08a8.17 8.17 0 0 0-8.25 7.47a8 8 0 0 0 8 8.53h27.92a4 4 0 0 1 4 3.86c.06 1.37.06 2.75.06 4.14"/></svg>\ No newline at end of filediff --git a/assets/icons/pf-git-branch.svg b/assets/icons/pf-git-branch.svgnew file mode 100644index 0000000..1d85058--- /dev/null+++ b/assets/icons/pf-git-branch.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="currentColor" d="M232 64a32 32 0 1 0-40 31v17a8 8 0 0 1-8 8H96a23.8 23.8 0 0 0-8 1.38V95a32 32 0 1 0-16 0v66a32 32 0 1 0 16 0v-17a8 8 0 0 1 8-8h88a24 24 0 0 0 24-24V95a32.06 32.06 0 0 0 24-31M64 64a16 16 0 1 1 16 16a16 16 0 0 1-16-16m32 128a16 16 0 1 1-16-16a16 16 0 0 1 16 16"/></svg>\ No newline at end of filediff --git a/assets/icons/pf-hard-drive.svg b/assets/icons/pf-hard-drive.svgnew file mode 100644index 0000000..6db0dcc--- /dev/null+++ b/assets/icons/pf-hard-drive.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="currentColor" d="M224 64H32a16 16 0 0 0-16 16v96a16 16 0 0 0 16 16h192a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16m-36 76a12 12 0 1 1 12-12a12 12 0 0 1-12 12"/></svg>\ No newline at end of filediff --git a/assets/icons/pf-inbox.svg b/assets/icons/pf-inbox.svgnew file mode 100644index 0000000..7c6502a--- /dev/null+++ b/assets/icons/pf-inbox.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="currentColor" d="M208 32H48a16 16 0 0 0-16 16v160a16 16 0 0 0 16 16h160a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16m0 176H48v-40h28.69L96 187.32a15.9 15.9 0 0 0 11.31 4.68h41.38a15.86 15.86 0 0 0 11.31-4.69L179.31 168H208z"/></svg>\ No newline at end of filediff --git a/assets/icons/pf-info.svg b/assets/icons/pf-info.svgnew file mode 100644index 0000000..16aff57--- /dev/null+++ b/assets/icons/pf-info.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="currentColor" d="M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24m-4 48a12 12 0 1 1-12 12a12 12 0 0 1 12-12m12 112a16 16 0 0 1-16-16v-40a8 8 0 0 1 0-16a16 16 0 0 1 16 16v40a8 8 0 0 1 0 16"/></svg>\ No newline at end of filediff --git a/assets/icons/pf-laptop.svg b/assets/icons/pf-laptop.svgnew file mode 100644index 0000000..cddcd7e--- /dev/null+++ b/assets/icons/pf-laptop.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="currentColor" d="M232 168h-8V72a24 24 0 0 0-24-24H56a24 24 0 0 0-24 24v96h-8a8 8 0 0 0-8 8v16a24 24 0 0 0 24 24h176a24 24 0 0 0 24-24v-16a8 8 0 0 0-8-8M112 72h32a8 8 0 0 1 0 16h-32a8 8 0 0 1 0-16m112 120a8 8 0 0 1-8 8H40a8 8 0 0 1-8-8v-8h192Z"/></svg>\ No newline at end of filediff --git a/assets/icons/pf-layers.svg b/assets/icons/pf-layers.svgnew file mode 100644index 0000000..fdd7c3b--- /dev/null+++ b/assets/icons/pf-layers.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><g fill="currentColor"><path d="m220 169.09l-92 53.65l-92-53.65a8 8 0 0 0-8 13.82l96 56a8 8 0 0 0 8.06 0l96-56a8 8 0 1 0-8.06-13.82"/><path d="m220 121.09l-92 53.65l-92-53.65a8 8 0 0 0-8 13.82l96 56a8 8 0 0 0 8.06 0l96-56a8 8 0 1 0-8.06-13.82"/><path d="m28 86.91l96 56a8 8 0 0 0 8.06 0l96-56a8 8 0 0 0 0-13.82l-96-56a8 8 0 0 0-8.06 0l-96 56a8 8 0 0 0 0 13.82"/></g></svg>\ No newline at end of filediff --git a/assets/icons/pf-lock.svg b/assets/icons/pf-lock.svgnew file mode 100644index 0000000..86c776e--- /dev/null+++ b/assets/icons/pf-lock.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="currentColor" d="M208 80h-32V56a48 48 0 0 0-96 0v24H48a16 16 0 0 0-16 16v112a16 16 0 0 0 16 16h160a16 16 0 0 0 16-16V96a16 16 0 0 0-16-16m-80 84a12 12 0 1 1 12-12a12 12 0 0 1-12 12m32-84H96V56a32 32 0 0 1 64 0Z"/></svg>\ No newline at end of filediff --git a/assets/icons/pf-memory-stick.svg b/assets/icons/pf-memory-stick.svgnew file mode 100644index 0000000..a1deffa--- /dev/null+++ b/assets/icons/pf-memory-stick.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="currentColor" d="M232 56H24A16 16 0 0 0 8 72v128a8 8 0 0 0 16 0v-16h16v16a8 8 0 0 0 16 0v-16h16v16a8 8 0 0 0 16 0v-16h16v16a8 8 0 0 0 16 0v-16h16v16a8 8 0 0 0 16 0v-16h16v16a8 8 0 0 0 16 0v-16h16v16a8 8 0 0 0 16 0v-16h16v16a8 8 0 0 0 16 0V72a16 16 0 0 0-16-16m-24 40v48h-64V96Zm-96 0v48H48V96Z"/></svg>\ No newline at end of filediff --git a/assets/icons/pf-message-square.svg b/assets/icons/pf-message-square.svgnew file mode 100644index 0000000..95de0a9--- /dev/null+++ b/assets/icons/pf-message-square.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="currentColor" d="M232 56v128a16 16 0 0 1-16 16h-60.43l-13.68 23.94a16 16 0 0 1-27.78 0L100.43 200H40a16 16 0 0 1-16-16V56a16 16 0 0 1 16-16h176a16 16 0 0 1 16 16"/></svg>\ No newline at end of filediff --git a/assets/icons/pf-monitor.svg b/assets/icons/pf-monitor.svgnew file mode 100644index 0000000..fa883ba--- /dev/null+++ b/assets/icons/pf-monitor.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="currentColor" d="M232 64v112a24 24 0 0 1-24 24H48a24 24 0 0 1-24-24V64a24 24 0 0 1 24-24h160a24 24 0 0 1 24 24m-72 152H96a8 8 0 0 0 0 16h64a8 8 0 0 0 0-16"/></svg>\ No newline at end of filediff --git a/assets/icons/pf-network.svg b/assets/icons/pf-network.svgnew file mode 100644index 0000000..06d4fad--- /dev/null+++ b/assets/icons/pf-network.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="currentColor" d="M240 120a8 8 0 0 1-8 8h-32v32h8a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16h-32a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16h8v-32H72v32h8a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16H48a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16h8v-32H24a8 8 0 0 1 0-16h96V88h-8a16 16 0 0 1-16-16V40a16 16 0 0 1 16-16h32a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16h-8v24h96a8 8 0 0 1 8 8"/></svg>\ No newline at end of filediff --git a/assets/icons/pf-play.svg b/assets/icons/pf-play.svgnew file mode 100644index 0000000..3b162ed--- /dev/null+++ b/assets/icons/pf-play.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="currentColor" d="M240 128a15.74 15.74 0 0 1-7.6 13.51L88.32 229.65a16 16 0 0 1-16.2.3A15.86 15.86 0 0 1 64 216.13V39.87a15.86 15.86 0 0 1 8.12-13.82a16 16 0 0 1 16.2.3l144.08 88.14A15.74 15.74 0 0 1 240 128"/></svg>\ No newline at end of filediff --git a/assets/icons/pf-plug.svg b/assets/icons/pf-plug.svgnew file mode 100644index 0000000..3a8be92--- /dev/null+++ b/assets/icons/pf-plug.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="currentColor" d="M237.66 77.66L203.31 112l26.35 26.34a8 8 0 0 1-11.32 11.32l-6.34-6.35l-53 53a40 40 0 0 1-56.57 0l-15.68-15.74l-49.09 49.09a8 8 0 0 1-11.32-11.32l49.09-49.09l-15.71-15.71a40 40 0 0 1 0-56.57l53-53l-6.35-6.34a8 8 0 0 1 11.32-11.32L144 52.69l34.34-34.35a8 8 0 1 1 11.32 11.32L155.31 64L192 100.69l34.34-34.35a8 8 0 0 1 11.32 11.32"/></svg>\ No newline at end of filediff --git a/assets/icons/pf-plus.svg b/assets/icons/pf-plus.svgnew file mode 100644index 0000000..5ee8214--- /dev/null+++ b/assets/icons/pf-plus.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="currentColor" d="M228 128a12 12 0 0 1-12 12h-76v76a12 12 0 0 1-24 0v-76H40a12 12 0 0 1 0-24h76V40a12 12 0 0 1 24 0v76h76a12 12 0 0 1 12 12"/></svg>\ No newline at end of filediff --git a/assets/icons/pf-power.svg b/assets/icons/pf-power.svgnew file mode 100644index 0000000..4990cda--- /dev/null+++ b/assets/icons/pf-power.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="currentColor" d="M128 24a104 104 0 1 0 104 104A104 104 0 0 0 128 24m-8 40a8 8 0 0 1 16 0v64a8 8 0 0 1-16 0Zm8 144A80 80 0 0 1 83.55 61.48a8 8 0 1 1 8.9 13.29a64 64 0 1 0 71.1 0a8 8 0 1 1 8.9-13.29A80 80 0 0 1 128 208"/></svg>\ No newline at end of filediff --git a/assets/icons/pf-refresh-cw.svg b/assets/icons/pf-refresh-cw.svgnew file mode 100644index 0000000..8f8e059--- /dev/null+++ b/assets/icons/pf-refresh-cw.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="currentColor" d="M224 48v48a8 8 0 0 1-8 8h-48a8 8 0 0 1-5.66-13.66L180.65 72a79.48 79.48 0 0 0-54.72-22.09h-.45a79.52 79.52 0 0 0-55.89 22.8a8 8 0 0 1-11.18-11.44A96 96 0 0 1 192 60.7l18.36-18.36A8 8 0 0 1 224 48m-37.59 135.29a80 80 0 0 1-111.06.71l18.31-18.31A8 8 0 0 0 88 152H40a8 8 0 0 0-8 8v48a8 8 0 0 0 13.66 5.66L64 195.3a95.42 95.42 0 0 0 66 26.76h.53a95.36 95.36 0 0 0 67.07-27.33a8 8 0 0 0-11.18-11.44Z"/></svg>\ No newline at end of filediff --git a/assets/icons/pf-rotate-ccw.svg b/assets/icons/pf-rotate-ccw.svgnew file mode 100644index 0000000..0b42dfc--- /dev/null+++ b/assets/icons/pf-rotate-ccw.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="currentColor" d="M224 128a96 96 0 0 1-94.71 96H128a95.38 95.38 0 0 1-65.9-26.2a8 8 0 0 1 11-11.63a80 80 0 1 0-1.67-114.78a3 3 0 0 1-.26.25l-10.54 9.65l17 17A8 8 0 0 1 72 112H24a8 8 0 0 1-8-8V56a8 8 0 0 1 13.66-5.7L49.31 70l10.94-10A96 96 0 0 1 224 128"/></svg>\ No newline at end of filediff --git a/assets/icons/pf-scroll-text.svg b/assets/icons/pf-scroll-text.svgnew file mode 100644index 0000000..e799b39--- /dev/null+++ b/assets/icons/pf-scroll-text.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="currentColor" d="M220.8 169.6a8 8 0 0 0-4.8-1.6h-8V64a32 32 0 0 0-32-32H40A32 32 0 0 0 8 64c0 13.61 10.05 21.54 11.2 22.4A7.9 7.9 0 0 0 24 88a8 8 0 0 0 4.87-14.33C28.83 73.62 24 69.74 24 64a16 16 0 0 1 32 0v128a32 32 0 0 0 32 32h112a32 32 0 0 0 32-32c0-13.61-10-21.54-11.2-22.4M104 96h64a8 8 0 0 1 0 16h-64a8 8 0 0 1 0-16m-8 40a8 8 0 0 1 8-8h64a8 8 0 0 1 0 16h-64a8 8 0 0 1-8-8m104 72h-92.29a31.8 31.8 0 0 0 4.29-16a27 27 0 0 0-1.21-8h102a12.58 12.58 0 0 1 3.23 8A16 16 0 0 1 200 208"/></svg>\ No newline at end of filediff --git a/assets/icons/pf-search.svg b/assets/icons/pf-search.svgnew file mode 100644index 0000000..c3d99bd--- /dev/null+++ b/assets/icons/pf-search.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="currentColor" d="M168 112a56 56 0 1 1-56-56a56 56 0 0 1 56 56m61.66 117.66a8 8 0 0 1-11.32 0l-50.06-50.07a88 88 0 1 1 11.32-11.31l50.06 50.06a8 8 0 0 1 0 11.32M112 184a72 72 0 1 0-72-72a72.08 72.08 0 0 0 72 72"/></svg>\ No newline at end of filediff --git a/assets/icons/pf-server.svg b/assets/icons/pf-server.svgnew file mode 100644index 0000000..0de00a3--- /dev/null+++ b/assets/icons/pf-server.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="currentColor" d="M208 40H48a16 16 0 0 0-16 16v48a16 16 0 0 0 16 16h160a16 16 0 0 0 16-16V56a16 16 0 0 0-16-16m-28 52a12 12 0 1 1 12-12a12 12 0 0 1-12 12m28 44H48a16 16 0 0 0-16 16v48a16 16 0 0 0 16 16h160a16 16 0 0 0 16-16v-48a16 16 0 0 0-16-16m-28 52a12 12 0 1 1 12-12a12 12 0 0 1-12 12"/></svg>\ No newline at end of filediff --git a/assets/icons/pf-settings.svg b/assets/icons/pf-settings.svgnew file mode 100644index 0000000..e749aff--- /dev/null+++ b/assets/icons/pf-settings.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="currentColor" d="M237.94 107.21a8 8 0 0 0-3.89-5.4l-29.83-17l-.12-33.62a8 8 0 0 0-2.83-6.08a111.9 111.9 0 0 0-36.72-20.67a8 8 0 0 0-6.46.59L128 41.85L97.88 25a8 8 0 0 0-6.47-.6a111.9 111.9 0 0 0-36.68 20.75a8 8 0 0 0-2.83 6.07l-.15 33.65l-29.83 17a8 8 0 0 0-3.89 5.4a106.5 106.5 0 0 0 0 41.56a8 8 0 0 0 3.89 5.4l29.83 17l.12 33.63a8 8 0 0 0 2.83 6.08a111.9 111.9 0 0 0 36.72 20.67a8 8 0 0 0 6.46-.59L128 214.15L158.12 231a7.9 7.9 0 0 0 3.9 1a8.1 8.1 0 0 0 2.57-.42a112.1 112.1 0 0 0 36.68-20.73a8 8 0 0 0 2.83-6.07l.15-33.65l29.83-17a8 8 0 0 0 3.89-5.4a106.5 106.5 0 0 0-.03-41.52M128 168a40 40 0 1 1 40-40a40 40 0 0 1-40 40"/></svg>\ No newline at end of filediff --git a/assets/icons/pf-square.svg b/assets/icons/pf-square.svgnew file mode 100644index 0000000..dd270bc--- /dev/null+++ b/assets/icons/pf-square.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="currentColor" d="M216 56v144a16 16 0 0 1-16 16H56a16 16 0 0 1-16-16V56a16 16 0 0 1 16-16h144a16 16 0 0 1 16 16"/></svg>\ No newline at end of filediff --git a/assets/icons/pf-star.svg b/assets/icons/pf-star.svgnew file mode 100644index 0000000..8aad28a--- /dev/null+++ b/assets/icons/pf-star.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="currentColor" d="m234.29 114.85l-45 38.83L203 211.75a16.4 16.4 0 0 1-24.5 17.82L128 198.49l-50.53 31.08A16.4 16.4 0 0 1 53 211.75l13.76-58.07l-45-38.83A16.46 16.46 0 0 1 31.08 86l59-4.76l22.76-55.08a16.36 16.36 0 0 1 30.27 0l22.75 55.08l59 4.76a16.46 16.46 0 0 1 9.37 28.86Z"/></svg>\ No newline at end of filediff --git a/assets/icons/pf-terminal.svg b/assets/icons/pf-terminal.svgnew file mode 100644index 0000000..4188eda--- /dev/null+++ b/assets/icons/pf-terminal.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="currentColor" d="M216 40H40a16 16 0 0 0-16 16v144a16 16 0 0 0 16 16h176a16 16 0 0 0 16-16V56a16 16 0 0 0-16-16m-91 94.25l-40 32a8 8 0 1 1-10-12.5L107.19 128L75 102.25a8 8 0 1 1 10-12.5l40 32a8 8 0 0 1 0 12.5M176 168h-40a8 8 0 0 1 0-16h40a8 8 0 0 1 0 16"/></svg>\ No newline at end of filediff --git a/assets/icons/pf-trash-2.svg b/assets/icons/pf-trash-2.svgnew file mode 100644index 0000000..ccab09e--- /dev/null+++ b/assets/icons/pf-trash-2.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="currentColor" d="M216 48h-40v-8a24 24 0 0 0-24-24h-48a24 24 0 0 0-24 24v8H40a8 8 0 0 0 0 16h8v144a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16V64h8a8 8 0 0 0 0-16M112 168a8 8 0 0 1-16 0v-64a8 8 0 0 1 16 0Zm48 0a8 8 0 0 1-16 0v-64a8 8 0 0 1 16 0Zm0-120H96v-8a8 8 0 0 1 8-8h48a8 8 0 0 1 8 8Z"/></svg>\ No newline at end of filediff --git a/assets/icons/pf-triangle-alert.svg b/assets/icons/pf-triangle-alert.svgnew file mode 100644index 0000000..ca90acb--- /dev/null+++ b/assets/icons/pf-triangle-alert.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="currentColor" d="M236.8 188.09L149.35 36.22a24.76 24.76 0 0 0-42.7 0L19.2 188.09a23.51 23.51 0 0 0 0 23.72A24.35 24.35 0 0 0 40.55 224h174.9a24.35 24.35 0 0 0 21.33-12.19a23.51 23.51 0 0 0 .02-23.72M120 104a8 8 0 0 1 16 0v40a8 8 0 0 1-16 0Zm8 88a12 12 0 1 1 12-12a12 12 0 0 1-12 12"/></svg>\ No newline at end of filediff --git a/assets/icons/pf-unplug.svg b/assets/icons/pf-unplug.svgnew file mode 100644index 0000000..a56ebda--- /dev/null+++ b/assets/icons/pf-unplug.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="currentColor" d="M149.66 149.66L131.31 168l18.35 18.34a8 8 0 0 1-11.32 11.32l-6.34-6.35l-23.31 23.32a32.06 32.06 0 0 1-45.26 0l-5.37-5.38l-28.4 28.41a8 8 0 0 1-11.32-11.32l28.41-28.4l-5.38-5.37a32 32 0 0 1 0-45.26L64.69 124l-6.35-6.34a8 8 0 0 1 11.32-11.32L88 124.69l18.34-18.35a8 8 0 0 1 11.32 11.32L99.31 136L120 156.69l18.34-18.35a8 8 0 0 1 11.32 11.32m88-131.32a8 8 0 0 0-11.32 0l-28.4 28.41l-5.37-5.38a32.05 32.05 0 0 0-45.26 0L124 64.69l-6.34-6.35a8 8 0 0 0-11.32 11.32l80 80a8 8 0 0 0 11.32-11.32l-6.35-6.34l23.32-23.31a32 32 0 0 0 0-45.26l-5.38-5.37l28.41-28.4a8 8 0 0 0 0-11.32"/></svg>\ No newline at end of filediff --git a/assets/icons/pf-workflow.svg b/assets/icons/pf-workflow.svgnew file mode 100644index 0000000..6d51056--- /dev/null+++ b/assets/icons/pf-workflow.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="currentColor" d="M144 96V80h-16a8 8 0 0 0-8 8v80a8 8 0 0 0 8 8h16v-16a16 16 0 0 1 16-16h48a16 16 0 0 1 16 16v48a16 16 0 0 1-16 16h-48a16 16 0 0 1-16-16v-16h-16a24 24 0 0 1-24-24v-32H72v8a16 16 0 0 1-16 16H24a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16h32a16 16 0 0 1 16 16v8h32V88a24 24 0 0 1 24-24h16V48a16 16 0 0 1 16-16h48a16 16 0 0 1 16 16v48a16 16 0 0 1-16 16h-48a16 16 0 0 1-16-16"/></svg>\ No newline at end of filediff --git a/assets/icons/pf-x.svg b/assets/icons/pf-x.svgnew file mode 100644index 0000000..91415af--- /dev/null+++ b/assets/icons/pf-x.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="currentColor" d="M208.49 191.51a12 12 0 0 1-17 17L128 145l-63.51 63.49a12 12 0 0 1-17-17L111 128L47.51 64.49a12 12 0 0 1 17-17L128 111l63.51-63.52a12 12 0 0 1 17 17L145 128Z"/></svg>\ No newline at end of filediff --git a/assets/icons/pf-zap.svg b/assets/icons/pf-zap.svgnew file mode 100644index 0000000..8692dd9--- /dev/null+++ b/assets/icons/pf-zap.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="currentColor" d="m213.85 125.46l-112 120a8 8 0 0 1-13.69-7l14.66-73.33l-57.63-21.64a8 8 0 0 1-3-13l112-120a8 8 0 0 1 13.69 7l-14.7 73.41l57.63 21.61a8 8 0 0 1 3 12.95Z"/></svg>\ No newline at end of filediff --git a/assets/icons/sliders-horizontal.svg b/assets/icons/sliders-horizontal.svgnew file mode 100644index 0000000..d9e44f2--- /dev/null+++ b/assets/icons/sliders-horizontal.svg@@ -0,0 +1,23 @@+<!-- @license lucide-static v1.54.0 - ISC -->+<svg+ class="lucide lucide-sliders-horizontal"+ xmlns="http://www.w3.org/2000/svg"+ width="24"+ height="24"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ stroke-width="1.6"+ stroke-linecap="round"+ stroke-linejoin="round"+>+ <path d="M10 5H3" />+ <path d="M12 19H3" />+ <path d="M14 3v4" />+ <path d="M16 17v4" />+ <path d="M21 12h-9" />+ <path d="M21 19h-5" />+ <path d="M21 5h-7" />+ <path d="M8 10v4" />+ <path d="M8 12H3" />+</svg>diff --git a/assets/icons/so-activity.svg b/assets/icons/so-activity.svgnew file mode 100644index 0000000..8ba6829--- /dev/null+++ b/assets/icons/so-activity.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="currentColor"><path d="M3.46447 3.46447C2 4.92893 2 7.28595 2 12C2 12.8185 2 13.5659 2.00767 14.25H5L5.10773 14.2499C5.63376 14.2491 6.10075 14.2483 6.52918 14.4319C6.9576 14.6155 7.27913 14.9542 7.64131 15.3357L7.71552 15.4138L8.85712 16.6125C8.9656 16.7264 9.14832 16.7141 9.24061 16.5867L12.8944 11.5435C13.0432 11.3379 13.1985 11.1233 13.3518 10.9653C13.5272 10.7844 13.7992 10.5708 14.1937 10.5527C14.5882 10.5346 14.8787 10.7223 15.0699 10.8863C15.2371 11.0297 15.4114 11.229 15.5785 11.4201L17.3823 13.4816C17.868 14.0368 17.9718 14.1316 18.085 14.183C18.1982 14.2343 18.3379 14.25 19.0756 14.25H21.9923C22 13.5659 22 12.8185 22 12C22 7.28595 22 4.92893 20.5355 3.46447C19.0711 2 16.714 2 12 2C7.28595 2 4.92893 2 3.46447 3.46447Z" opacity=".5"/><path d="M2.00781 14.2498C2.0443 17.5054 2.25442 19.3251 3.46461 20.5353C4.92908 21.9998 7.2861 21.9998 12.0001 21.9998C16.7142 21.9998 19.0712 21.9998 20.5357 20.5353C21.7459 19.3251 21.956 17.5054 21.9925 14.2498H19.0757C18.3381 14.2498 18.1984 14.2341 18.0852 14.1828C17.972 14.1314 17.8682 14.0366 17.3824 13.4814L15.5786 11.4199C15.4115 11.2288 15.2372 11.0294 15.07 10.8861C14.8788 10.7221 14.5884 10.5344 14.1939 10.5525C13.7994 10.5706 13.5274 10.7842 13.352 10.965C13.1987 11.1231 13.0434 11.3376 12.8945 11.5433L9.24075 16.5865C9.14847 16.7139 8.96574 16.7262 8.85727 16.6123L7.71566 15.4136L7.64145 15.3355C7.27927 14.954 6.95775 14.6153 6.52932 14.4317C6.1009 14.2481 5.63391 14.2488 5.10787 14.2497L5.00015 14.2498H2.00781Z"/></g></svg>\ No newline at end of filediff --git a/assets/icons/so-agent-github.svg b/assets/icons/so-agent-github.svgnew file mode 100644index 0000000..ffc5b96--- /dev/null+++ b/assets/icons/so-agent-github.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M16.974 2.31c.696-.237 1.69-.62 2.279.032c.4.444.5 1.188.571 1.755c.08.634.099 1.462-.111 2.282C20.516 7.415 21 8.653 21 10c0 2.042-1.106 3.814-2.743 5.042a9.5 9.5 0 0 1-2.592 1.354c.215.491.335 1.033.335 1.604v3a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1v-.995c-.955.117-1.756.017-2.438-.272c-.711-.302-1.208-.77-1.58-1.218a10 10 0 0 1-.481-.638c-.145-.206-.255-.367-.37-.516c-.234-.302-.363-.385-.447-.413a1 1 0 0 1 .632-1.897c.666.222 1.1.702 1.397 1.087c.15.195.298.409.423.586c.132.188.254.356.382.51c.253.302.506.522.826.657c.314.134.776.22 1.5.12L8 17.978a4 4 0 0 1 .334-1.582a9.5 9.5 0 0 1-2.59-1.354C4.105 13.815 3 12.043 3 10c0-1.346.483-2.583 1.284-3.62c-.21-.82-.192-1.647-.112-2.282c.074-.59.155-1.295.571-1.757c.59-.653 1.584-.268 2.28-.03c.619.21 1.384.544 2.125 1.044A11.4 11.4 0 0 1 12 3.001c.993 0 1.951.124 2.849.355a9 9 0 0 1 2.125-1.046"/></svg>\ No newline at end of filediff --git a/assets/icons/so-arrow-up.svg b/assets/icons/so-arrow-up.svgnew file mode 100644index 0000000..1835e9c--- /dev/null+++ b/assets/icons/so-arrow-up.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="currentColor"><path d="M6.50001 18L6.50001 17.9105C6.49991 17.0449 6.49981 16.2512 6.58661 15.6056C6.6822 14.8946 6.90709 14.1432 7.52514 13.5251C8.14319 12.9071 8.89464 12.6822 9.6056 12.5866C10.2512 12.4998 11.0449 12.4999 11.9105 12.5H12.0895C12.9551 12.4999 13.7488 12.4998 14.3944 12.5866C15.1054 12.6822 15.8568 12.9071 16.4749 13.5251C17.0929 14.1432 17.3178 14.8946 17.4134 15.6056C17.4989 16.2417 17.5001 17.0215 17.5 17.8722C20.0726 17.3221 22 15.0599 22 12.3529C22 9.88113 20.393 7.78024 18.1551 7.01498C17.8371 4.19371 15.4159 2 12.4762 2C9.32028 2 6.7619 4.52827 6.7619 7.64706C6.7619 8.33687 6.88706 8.9978 7.11616 9.60887C6.8475 9.55673 6.56983 9.52941 6.28571 9.52941C3.91878 9.52941 2 11.4256 2 13.7647C2 16.1038 3.91878 18 6.28571 18L6.50001 18Z" opacity=".5"/><path fill-rule="evenodd" d="M12 14C10.1144 14 9.17157 14 8.58579 14.5858C8 15.1716 8 16.1144 8 18C8 19.8856 8 20.8284 8.58579 21.4142C9.17157 22 10.1144 22 12 22C13.8856 22 14.8284 22 15.4142 21.4142C16 20.8284 16 19.8856 16 18C16 16.1144 16 15.1716 15.4142 14.5858C14.8284 14 13.8856 14 12 14ZM13.8047 17.0842L12.4714 15.7508C12.2111 15.4905 11.7889 15.4905 11.5286 15.7508L10.1953 17.0842C9.93491 17.3445 9.93491 17.7666 10.1953 18.027C10.4556 18.2873 10.8777 18.2873 11.1381 18.027L11.3333 17.8317V19.7778C11.3333 20.146 11.6318 20.4444 12 20.4444C12.3682 20.4444 12.6667 20.146 12.6667 19.7778V17.8317L12.8619 18.027C13.1223 18.2873 13.5444 18.2873 13.8047 18.027C14.0651 17.7666 14.0651 17.3445 13.8047 17.0842Z" clip-rule="evenodd"/></g></svg>\ No newline at end of filediff --git a/assets/icons/so-book-open.svg b/assets/icons/so-book-open.svgnew file mode 100644index 0000000..901a2f8--- /dev/null+++ b/assets/icons/so-book-open.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="currentColor"><path d="M4.72718 2.73332C5.03258 2.42535 5.46135 2.22456 6.27103 2.11478C7.10452 2.00177 8.2092 2 9.7931 2H14.2069C15.7908 2 16.8955 2.00177 17.729 2.11478C18.5387 2.22456 18.9674 2.42535 19.2728 2.73332C19.5782 3.0413 19.7773 3.47368 19.8862 4.2902C19.9982 5.13073 20 6.24474 20 7.84202L20 18H7.42598C6.34236 18 5.96352 18.0057 5.67321 18.0681C5.15982 18.1785 4.71351 18.4151 4.38811 18.7347C4.27837 18.8425 4.22351 18.8964 4.09696 19.2397C4.02435 19.4367 4 19.5687 4 19.7003V7.84202C4 6.24474 4.00176 5.13073 4.11382 4.2902C4.22268 3.47368 4.42179 3.0413 4.72718 2.73332Z" opacity=".5"/><path d="M20.0003 18C19.9985 18.4741 19.9931 18.8868 19.9759 19.25H8.00027C7.58605 19.25 7.25027 19.5858 7.25027 20C7.25027 20.4142 7.58605 20.75 8.00027 20.75H19.7385C19.625 21.0517 19.4704 21.2539 19.2708 21.4141C18.9642 21.66 18.5336 21.8205 17.721 21.9082C16.8843 21.9984 15.7755 22 14.1858 22H9.75515C8.16514 22 7.05572 21.9985 6.21902 21.9082C5.40635 21.8205 4.97576 21.6601 4.66921 21.4141C4.36282 21.1681 4.16325 20.8228 4.05398 20.1709C4.04579 20.122 4.0376 20.0717 4.03054 20.0205C3.99045 19.7292 3.9704 19.5826 4.09695 19.2393C4.22339 18.8962 4.2783 18.8421 4.38796 18.7344C4.71328 18.4149 5.15989 18.1788 5.67312 18.0684C5.96341 18.0059 6.34258 18 7.42605 18H20.0003Z"/><path d="M13.0003 9.75C13.4145 9.75 13.7503 10.0858 13.7503 10.5C13.7503 10.9142 13.4145 11.25 13.0003 11.25H8.00027C7.58605 11.25 7.25027 10.9142 7.25027 10.5C7.25027 10.0858 7.58605 9.75 8.00027 9.75H13.0003Z"/><path d="M16.0003 6.25C16.4145 6.25 16.7503 6.58579 16.7503 7C16.7503 7.41421 16.4145 7.75 16.0003 7.75H8.00027C7.58605 7.75 7.25027 7.41421 7.25027 7C7.25027 6.58579 7.58605 6.25 8.00027 6.25H16.0003Z"/></g></svg>\ No newline at end of filediff --git a/assets/icons/so-bot.svg b/assets/icons/so-bot.svgnew file mode 100644index 0000000..080e02c--- /dev/null+++ b/assets/icons/so-bot.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="currentColor"><path d="M22 12V19.2058C22 20.4896 20.649 21.3245 19.5008 20.7504C18.5727 20.2864 17.4672 20.3552 16.6039 20.9308C15.6326 21.5782 14.3674 21.5782 13.3961 20.9308L13.0435 20.6957C12.4116 20.2744 11.5884 20.2744 10.9565 20.6957L10.6039 20.9308C9.63264 21.5782 8.36736 21.5782 7.39614 20.9308C6.5328 20.3552 5.42726 20.2864 4.4992 20.7504C3.35098 21.3245 2 20.4896 2 19.2058V12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z" opacity=".5"/><path d="M9.44661 14.3975C9.11385 14.1508 8.64413 14.2206 8.39747 14.5534C8.15082 14.8862 8.22062 15.3559 8.55339 15.6025C9.5258 16.3233 10.715 16.75 12 16.75C13.285 16.75 14.4742 16.3233 15.4466 15.6025C15.7794 15.3559 15.8492 14.8862 15.6025 14.5534C15.3559 14.2206 14.8862 14.1508 14.5534 14.3975C13.825 14.9373 12.9459 15.25 12 15.25C11.0541 15.25 10.175 14.9373 9.44661 14.3975Z"/><path d="M16 9.5C16 10.3284 15.5523 11 15 11C14.4477 11 14 10.3284 14 9.5C14 8.67157 14.4477 8 15 8C15.5523 8 16 8.67157 16 9.5Z"/><path d="M9 11C9.55228 11 10 10.3284 10 9.5C10 8.67157 9.55228 8 9 8C8.44772 8 8 8.67157 8 9.5C8 10.3284 8.44772 11 9 11Z"/></g></svg>\ No newline at end of filediff --git a/assets/icons/so-box.svg b/assets/icons/so-box.svgnew file mode 100644index 0000000..4aa1ef1--- /dev/null+++ b/assets/icons/so-box.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="currentColor"><path d="M12 2C12.9441 2.0001 13.8219 2.46071 15.5771 3.38184L17.5771 4.43164C19.6806 5.53549 20.7561 6.0997 21.3613 7.07227C21.3751 7.09433 21.3891 7.11715 21.4023 7.13965C21.9997 8.15413 22 9.41671 22 11.9414V12.0586C22 14.5834 21.9997 15.8458 21.4023 16.8604C20.805 17.8747 19.7294 18.4394 17.5781 19.5684L15.5781 20.6182C13.8225 21.5395 12.9443 22 12 22V12L2.6377 7.07227C3.24293 6.09963 4.31839 5.5355 6.42188 4.43164L8.42188 3.38184C10.1775 2.46053 11.0557 2 12 2Z" opacity=".5"/><path d="M17.5774 4.43152L15.5774 3.38197C13.8218 2.46066 12.944 2 11.9997 2C11.0554 2 10.1776 2.46066 8.42197 3.38197L6.42197 4.43152C4.31821 5.53552 3.24291 6.09982 2.6377 7.07264L11.9997 12L21.3617 7.07264C20.7564 6.09982 19.6811 5.53552 17.5774 4.43152Z" opacity=".5"/><path d="M17.0166 8.65332L21.041 6.6416C21.1786 6.79744 21.2985 6.96157 21.4033 7.13965C21.5529 7.39367 21.665 7.66382 21.749 7.96484L17.75 9.96387V13C17.75 13.4142 17.4142 13.75 17 13.75C16.5859 13.7498 16.25 13.4141 16.25 13V10.7139L12.75 12.4639V21.9043C12.4932 21.9682 12.2488 22 12 22C11.8814 22 11.7639 21.9921 11.6455 21.9775C11.5936 21.9712 11.5416 21.9633 11.4893 21.9541C11.4815 21.9527 11.4736 21.9516 11.4658 21.9502C11.4324 21.9441 11.399 21.9369 11.3652 21.9297C11.3272 21.9215 11.2886 21.9139 11.25 21.9043C10.5321 21.7255 9.71471 21.2966 8.42188 20.6182L6.42188 19.5684C4.27056 18.4394 3.19502 17.8747 2.59766 16.8604C2.00026 15.8458 2 14.5834 2 12.0586V11.9414C2 9.41671 2.00028 8.15413 2.59766 7.13965C2.70253 6.96159 2.82237 6.79743 2.95996 6.6416L12 11.1621L15.3867 9.46875L6.32324 4.4834C6.35604 4.46618 6.38954 4.44912 6.42285 4.43164L7.91602 3.64746L17.0166 8.65332Z"/></g></svg>\ No newline at end of filediff --git a/assets/icons/so-check.svg b/assets/icons/so-check.svgnew file mode 100644index 0000000..4e41cb4--- /dev/null+++ b/assets/icons/so-check.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="currentColor"><path d="M12 22C7.28595 22 4.92893 22 3.46447 20.5355C2 19.0711 2 16.714 2 12C2 7.28595 2 4.92893 3.46447 3.46447C4.92893 2 7.28595 2 12 2C16.714 2 19.0711 2 20.5355 3.46447C22 4.92893 22 7.28595 22 12C22 16.714 22 19.0711 20.5355 20.5355C19.0711 22 16.714 22 12 22Z" opacity=".5"/><path d="M16.0303 8.96967C16.3232 9.26256 16.3232 9.73744 16.0303 10.0303L11.0303 15.0303C10.7374 15.3232 10.2626 15.3232 9.96967 15.0303L7.96967 13.0303C7.67678 12.7374 7.67678 12.2626 7.96967 11.9697C8.26256 11.6768 8.73744 11.6768 9.03033 11.9697L10.5 13.4393L14.9697 8.96967C15.2626 8.67678 15.7374 8.67678 16.0303 8.96967Z"/></g></svg>\ No newline at end of filediff --git a/assets/icons/so-circle-alert.svg b/assets/icons/so-circle-alert.svgnew file mode 100644index 0000000..bc5fbba--- /dev/null+++ b/assets/icons/so-circle-alert.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="currentColor"><path d="M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12Z" opacity=".5"/><path d="M12 6.25C12.4142 6.25 12.75 6.58579 12.75 7V13C12.75 13.4142 12.4142 13.75 12 13.75C11.5858 13.75 11.25 13.4142 11.25 13V7C11.25 6.58579 11.5858 6.25 12 6.25Z"/><path d="M12 17C12.5523 17 13 16.5523 13 16C13 15.4477 12.5523 15 12 15C11.4477 15 11 15.4477 11 16C11 16.5523 11.4477 17 12 17Z"/></g></svg>\ No newline at end of filediff --git a/assets/icons/so-circle-check.svg b/assets/icons/so-circle-check.svgnew file mode 100644index 0000000..88b1cc1--- /dev/null+++ b/assets/icons/so-circle-check.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="currentColor"><path d="M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z" opacity=".5"/><path d="M16.0303 8.96967C16.3232 9.26256 16.3232 9.73744 16.0303 10.0303L11.0303 15.0303C10.7374 15.3232 10.2626 15.3232 9.96967 15.0303L7.96967 13.0303C7.67678 12.7374 7.67678 12.2626 7.96967 11.9697C8.26256 11.6768 8.73744 11.6768 9.03033 11.9697L10.5 13.4393L12.7348 11.2045L14.9697 8.96967C15.2626 8.67678 15.7374 8.67678 16.0303 8.96967Z"/></g></svg>\ No newline at end of filediff --git a/assets/icons/so-circle-x.svg b/assets/icons/so-circle-x.svgnew file mode 100644index 0000000..8d2f668--- /dev/null+++ b/assets/icons/so-circle-x.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="currentColor"><path d="M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z" opacity=".5"/><path d="M8.96967 8.96967C9.26256 8.67678 9.73744 8.67678 10.0303 8.96967L12 10.9394L13.9697 8.96969C14.2626 8.6768 14.7374 8.6768 15.0303 8.96969C15.3232 9.26258 15.3232 9.73746 15.0303 10.0304L13.0607 12L15.0303 13.9696C15.3232 14.2625 15.3232 14.7374 15.0303 15.0303C14.7374 15.3232 14.2625 15.3232 13.9696 15.0303L12 13.0607L10.0304 15.0303C9.73746 15.3232 9.26258 15.3232 8.96969 15.0303C8.6768 14.7374 8.6768 14.2626 8.96969 13.9697L10.9394 12L8.96967 10.0303C8.67678 9.73744 8.67678 9.26256 8.96967 8.96967Z"/></g></svg>\ No newline at end of filediff --git a/assets/icons/so-clock.svg b/assets/icons/so-clock.svgnew file mode 100644index 0000000..9077bd4--- /dev/null+++ b/assets/icons/so-clock.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="currentColor"><path d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z" opacity=".5"/><path fill-rule="evenodd" d="M12 7.25C12.4142 7.25 12.75 7.58579 12.75 8V11.6893L15.0303 13.9697C15.3232 14.2626 15.3232 14.7374 15.0303 15.0303C14.7374 15.3232 14.2626 15.3232 13.9697 15.0303L11.4697 12.5303C11.329 12.3897 11.25 12.1989 11.25 12V8C11.25 7.58579 11.5858 7.25 12 7.25Z" clip-rule="evenodd"/></g></svg>\ No newline at end of filediff --git a/assets/icons/so-copy.svg b/assets/icons/so-copy.svgnew file mode 100644index 0000000..6b55e8e--- /dev/null+++ b/assets/icons/so-copy.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="currentColor"><path d="M6.59961 11.3974C6.59961 8.67119 6.59961 7.3081 7.44314 6.46118C8.28667 5.61426 9.64432 5.61426 12.3596 5.61426H15.2396C17.9549 5.61426 19.3125 5.61426 20.1561 6.46118C20.9996 7.3081 20.9996 8.6712 20.9996 11.3974V16.2167C20.9996 18.9429 20.9996 20.306 20.1561 21.1529C19.3125 21.9998 17.9549 21.9998 15.2396 21.9998H12.3596C9.64432 21.9998 8.28667 21.9998 7.44314 21.1529C6.59961 20.306 6.59961 18.9429 6.59961 16.2167V11.3974Z"/><path d="M4.17157 3.17157C3 4.34315 3 6.22876 3 10V12C3 15.7712 3 17.6569 4.17157 18.8284C4.78913 19.446 5.6051 19.738 6.79105 19.8761C6.59961 19.0353 6.59961 17.8796 6.59961 16.2167V11.3974C6.59961 8.6712 6.59961 7.3081 7.44314 6.46118C8.28667 5.61426 9.64432 5.61426 12.3596 5.61426H15.2396C16.8915 5.61426 18.0409 5.61426 18.8777 5.80494C18.7403 4.61146 18.4484 3.79154 17.8284 3.17157C16.6569 2 14.7712 2 11 2C7.22876 2 5.34315 2 4.17157 3.17157Z" opacity=".5"/></g></svg>\ No newline at end of filediff --git a/assets/icons/so-cpu.svg b/assets/icons/so-cpu.svgnew file mode 100644index 0000000..9881218--- /dev/null+++ b/assets/icons/so-cpu.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="currentColor"><path fill-rule="evenodd" d="M12 3C12.3853 3 12.6977 3.31236 12.6977 3.69767V6.48884C13.2084 6.48991 13.6717 6.49342 14.0932 6.50495L14.093 6.48837V3.69767C14.093 3.31236 14.4054 3 14.7907 3C15.176 3 15.4884 3.31236 15.4884 3.69767V6.48837C15.4884 6.52487 15.4856 6.56072 15.4802 6.5957C16.4162 6.71067 17.0648 6.94879 17.558 7.44198C18.0512 7.93517 18.2893 8.58381 18.4043 9.51984C18.4393 9.51443 18.4751 9.51163 18.5116 9.51163H21.3023C21.6876 9.51163 22 9.82399 22 10.2093C22 10.5946 21.6876 10.907 21.3023 10.907H18.5116L18.495 10.9068C18.5066 11.3283 18.5106 11.7916 18.5116 12.3023H21.3023C21.6876 12.3023 22 12.6147 22 13C22 13.3853 21.6876 13.6977 21.3023 13.6977L18.5112 13.6977C18.5101 14.2084 18.5066 14.6717 18.495 15.0932L18.5116 15.093H21.3023C21.6876 15.093 22 15.4054 22 15.7907C22 16.176 21.6876 16.4884 21.3023 16.4884H18.5116C18.4751 16.4884 18.4393 16.4856 18.4043 16.4802C18.2893 17.4162 18.0512 18.0648 17.558 18.558C17.0648 19.0512 16.4162 19.2893 15.4802 19.4043C15.4856 19.4393 15.4884 19.4751 15.4884 19.5116V22.3023C15.4884 22.6876 15.176 23 14.7907 23C14.4054 23 14.093 22.6876 14.093 22.3023V19.5116L14.0932 19.495C13.6717 19.5066 13.2084 19.5106 12.6977 19.5116V22.3023C12.6977 22.6876 12.3853 23 12 23C11.6147 23 11.3023 22.6876 11.3023 22.3023L11.3023 19.5112C10.7916 19.5101 10.3283 19.5066 9.90678 19.495L9.90698 19.5116V22.3023C9.90698 22.6876 9.59462 23 9.2093 23C8.82399 23 8.51163 22.6876 8.51163 22.3023V19.5116C8.51163 19.4751 8.51443 19.4393 8.51984 19.4043C7.58381 19.2893 6.93517 19.0512 6.44198 18.558C5.94879 18.0648 5.71067 17.4162 5.5957 16.4802C5.56071 16.4856 5.52487 16.4884 5.48837 16.4884H2.69767C2.31236 16.4884 2 16.176 2 15.7907C2 15.4054 2.31236 15.093 2.69767 15.093H5.48837L5.50495 15.0932C5.49342 14.6717 5.48944 14.2084 5.48837 13.6977H2.69767C2.31236 13.6977 2 13.3853 2 13C2 12.6147 2.31236 12.3023 2.69767 12.3023L5.48884 12.3023C5.48991 11.7916 5.49342 11.3283 5.50495 10.9068L5.48837 10.907H2.69767C2.31236 10.907 2 10.5946 2 10.2093C2 9.82399 2.31236 9.51163 2.69767 9.51163H5.48837C5.52487 9.51163 5.56071 9.51443 5.5957 9.51984C5.71067 8.58381 5.94879 7.93517 6.44198 7.44198C6.93517 6.94879 7.58381 6.71067 8.51984 6.5957C8.51443 6.56072 8.51163 6.52487 8.51163 6.48837V3.69767C8.51163 3.31236 8.82399 3 9.2093 3C9.59462 3 9.90698 3.31236 9.90698 3.69767V6.48837L9.90678 6.50495C10.3283 6.49342 10.7916 6.48944 11.3023 6.48837V3.69767C11.3023 3.31236 11.6147 3 12 3ZM11.0238 8.5814C10.4054 8.58136 9.87247 8.58133 9.44573 8.63871C8.98839 8.70019 8.55001 8.83885 8.19443 9.19443C7.83885 9.55001 7.70019 9.98839 7.63871 10.4457C7.58133 10.8725 7.58136 11.4054 7.5814 12.0238V13.9762C7.58136 14.5946 7.58133 15.1275 7.63871 15.5543C7.70019 16.0116 7.83885 16.45 8.19443 16.8056C8.55001 17.1612 8.98839 17.2998 9.44573 17.3613C9.87247 17.4187 10.4054 17.4186 11.0238 17.4186H12.9762C13.5946 17.4186 14.1275 17.4187 14.5543 17.3613C15.0116 17.2998 15.45 17.1612 15.8056 16.8056C16.1612 16.45 16.2998 16.0116 16.3613 15.5543C16.4187 15.1275 16.4186 14.5946 16.4186 13.9762V12.0238C16.4186 11.4054 16.4187 10.8725 16.3613 10.4457C16.2998 9.98839 16.1612 9.55001 15.8056 9.19443C15.45 8.83885 15.0116 8.70019 14.5543 8.63871C14.1275 8.58133 13.5947 8.58136 12.9762 8.5814H11.0238Z" clip-rule="evenodd"/><path d="M9.18091 10.1809C9.23402 10.1278 9.32886 10.0621 9.63147 10.0214C9.95415 9.97804 10.3921 9.97656 11.0696 9.97656H12.9301C13.6075 9.97656 14.0455 9.97804 14.3682 10.0214C14.6708 10.0621 14.7656 10.1278 14.8187 10.1809C14.8718 10.234 14.9375 10.3289 14.9782 10.6315C15.0216 10.9542 15.0231 11.3921 15.0231 12.0696V13.9301C15.0231 14.6075 15.0216 15.0455 14.9782 15.3682C14.9375 15.6708 14.8718 15.7656 14.8187 15.8187C14.7656 15.8718 14.6708 15.9375 14.3682 15.9782C14.0455 16.0216 13.6075 16.0231 12.9301 16.0231H11.0696C10.3921 16.0231 9.95415 16.0216 9.63147 15.9782C9.32886 15.9375 9.23402 15.8718 9.18091 15.8187C9.1278 15.7656 9.06211 15.6708 9.02143 15.3682C8.97804 15.0455 8.97656 14.6075 8.97656 13.9301V12.0696C8.97656 11.3921 8.97804 10.9542 9.02143 10.6315C9.06211 10.3289 9.1278 10.234 9.18091 10.1809Z" opacity=".5"/></g></svg>\ No newline at end of filediff --git a/assets/icons/so-external-link.svg b/assets/icons/so-external-link.svgnew file mode 100644index 0000000..a438cab--- /dev/null+++ b/assets/icons/so-external-link.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="currentColor"><path d="M3.46447 3.46447C4.92893 2 7.28595 2 12 2C16.714 2 19.0711 2 20.5355 3.46447C22 4.92893 22 7.28595 22 12C22 16.714 22 19.0711 20.5355 20.5355C19.0711 22 16.714 22 12 22C7.28595 22 4.92893 22 3.46447 20.5355C2 19.0711 2 16.714 2 12C2 7.28595 2 4.92893 3.46447 3.46447Z" opacity=".5"/><path fill-rule="evenodd" d="M16.4697 1.46967C16.7626 1.17678 17.2374 1.17678 17.5303 1.46967L22.5303 6.46967C22.8232 6.76256 22.8232 7.23744 22.5303 7.53033L17.5303 12.5303C17.2374 12.8232 16.7626 12.8232 16.4697 12.5303C16.1768 12.2374 16.1768 11.7626 16.4697 11.4697L20.1893 7.75H14C12.4485 7.75 11.5328 8.50701 11.212 8.82933L11.0211 9.02115L10.8293 9.21205C10.507 9.5328 9.75 10.4485 9.75 12V15C9.75 15.4142 9.41421 15.75 9 15.75C8.58579 15.75 8.25 15.4142 8.25 15V12C8.25 9.91621 9.27703 8.64062 9.77125 8.1488L9.96049 7.96049L10.1488 7.77125C10.6406 7.27703 11.9162 6.25 14 6.25H20.1893L16.4697 2.53033C16.1768 2.23744 16.1768 1.76256 16.4697 1.46967Z" clip-rule="evenodd"/></g></svg>\ No newline at end of filediff --git a/assets/icons/so-file.svg b/assets/icons/so-file.svgnew file mode 100644index 0000000..4d614b9--- /dev/null+++ b/assets/icons/so-file.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="currentColor"><path fill-rule="evenodd" d="M14 22H10C6.22876 22 4.34315 22 3.17157 20.8284C2 19.6569 2 17.7712 2 14V10C2 6.22876 2 4.34315 3.17157 3.17157C4.34315 2 6.23869 2 10.0298 2C10.6358 2 11.1214 2 11.53 2.01666C11.5166 2.09659 11.5095 2.17813 11.5092 2.26057L11.5 5.09497C11.4999 6.19207 11.4998 7.16164 11.6049 7.94316C11.7188 8.79028 11.9803 9.63726 12.6716 10.3285C13.3628 11.0198 14.2098 11.2813 15.0569 11.3952C15.8385 11.5003 16.808 11.5002 17.9051 11.5001L18 11.5001H21.9574C22 12.0344 22 12.6901 22 13.5629V14C22 17.7712 22 19.6569 20.8284 20.8284C19.6569 22 17.7712 22 14 22Z" clip-rule="evenodd" opacity=".5"/><path d="M11.5092 2.2601L11.5 5.0945C11.4999 6.1916 11.4998 7.16117 11.6049 7.94269C11.7188 8.78981 11.9803 9.6368 12.6716 10.3281C13.3629 11.0193 14.2098 11.2808 15.057 11.3947C15.8385 11.4998 16.808 11.4997 17.9051 11.4996L21.9574 11.4996C21.9698 11.6552 21.9786 11.821 21.9848 11.9995H22C22 11.732 22 11.5983 21.9901 11.4408C21.9335 10.5463 21.5617 9.52125 21.0315 8.79853C20.9382 8.6713 20.8743 8.59493 20.7467 8.44218C19.9542 7.49359 18.911 6.31193 18 5.49953C17.1892 4.77645 16.0787 3.98536 15.1101 3.3385C14.2781 2.78275 13.862 2.50487 13.2915 2.29834C13.1403 2.24359 12.9408 2.18311 12.7846 2.14466C12.4006 2.05013 12.0268 2.01725 11.5 2.00586L11.5092 2.2601Z"/></g></svg>\ No newline at end of filediff --git a/assets/icons/so-folder-open.svg b/assets/icons/so-folder-open.svgnew file mode 100644index 0000000..e5bc33c--- /dev/null+++ b/assets/icons/so-folder-open.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="currentColor"><path fill-rule="evenodd" d="M3.35791 12.7787C2.74772 13.7201 2.99956 15.0291 3.50323 17.647C3.8658 19.5316 4.04709 20.4738 4.67523 21.0991C4.8382 21.2614 5.02054 21.4052 5.2186 21.5277C5.98195 21.9999 6.99539 21.9999 9.02227 21.9999H15.9777C18.0046 21.9999 19.0181 21.9999 19.7814 21.5277C19.9795 21.4052 20.1618 21.2614 20.3248 21.0991C20.9529 20.4738 21.1342 19.5316 21.4968 17.647C22.0004 15.0291 22.2523 13.7201 21.6421 12.7787C21.4864 12.5384 21.2943 12.321 21.0721 12.1332C20.2011 11.3975 18.7933 11.3975 15.9777 11.3975H9.02227C6.20667 11.3975 4.79888 11.3975 3.92792 12.1332C3.70566 12.321 3.51363 12.5384 3.35791 12.7787ZM9.69518 17.1806C9.69518 16.7814 10.0376 16.4577 10.4601 16.4577H14.5398C14.9622 16.4577 15.3047 16.7814 15.3047 17.1806C15.3047 17.5798 14.9622 17.9035 14.5398 17.9035H10.4601C10.0376 17.9035 9.69518 17.5798 9.69518 17.1806Z" clip-rule="evenodd"/><path d="M3.5762 12.4846C3.68271 12.3586 3.80034 12.241 3.92792 12.1332C4.79888 11.3975 6.20667 11.3975 9.02227 11.3975H15.9777C18.7933 11.3975 20.2011 11.3975 21.0721 12.1332C21.2 12.2413 21.3179 12.3592 21.4247 12.4857V9.75579C21.4247 8.84687 21.4247 8.09279 21.3394 7.49156C21.2494 6.85704 21.0531 6.29458 20.5839 5.83245C20.5074 5.75707 20.4266 5.68552 20.342 5.61807C19.8302 5.21023 19.2167 5.04345 18.5222 4.96608C17.8531 4.89155 17.0102 4.89157 15.9769 4.89158L15.6242 4.89158C14.6421 4.89158 14.29 4.88587 13.9711 4.80533C13.7837 4.75802 13.604 4.69195 13.4352 4.60878C13.151 4.46867 12.9033 4.25762 12.2077 3.64132L11.7336 3.22128C11.5345 3.04489 11.3987 2.9245 11.2531 2.81755C10.6284 2.35879 9.86779 2.08132 9.07145 2.01534C8.88602 1.99998 8.6968 1.99999 8.41356 2.00002L8.29714 2.00001C7.65647 1.9999 7.23365 1.99983 6.86652 2.0612C5.26167 2.32947 3.96392 3.45143 3.64782 4.93575C3.57591 5.27344 3.57602 5.66035 3.57619 6.21853L3.5762 12.4846Z" opacity=".5"/></g></svg>\ No newline at end of filediff --git a/assets/icons/so-folder.svg b/assets/icons/so-folder.svgnew file mode 100644index 0000000..ba2e297--- /dev/null+++ b/assets/icons/so-folder.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="currentColor"><path d="M22 14V11.7979C22 9.16554 22 7.84935 21.2305 6.99383C21.1598 6.91514 21.0849 6.84024 21.0062 6.76946C20.1506 6 18.8345 6 16.2021 6H15.8284C14.6747 6 14.0979 6 13.5604 5.84678C13.2651 5.7626 12.9804 5.64471 12.7121 5.49543C12.2237 5.22367 11.8158 4.81578 11 4L10.4497 3.44975C10.1763 3.17633 10.0396 3.03961 9.89594 2.92051C9.27652 2.40704 8.51665 2.09229 7.71557 2.01738C7.52976 2 7.33642 2 6.94975 2C6.06722 2 5.62595 2 5.25839 2.06935C3.64031 2.37464 2.37464 3.64031 2.06935 5.25839C2 5.62595 2 6.06722 2 6.94975V14C2 17.7712 2 19.6569 3.17157 20.8284C4.34315 22 6.22876 22 10 22H14C17.7712 22 19.6569 22 20.8284 20.8284C22 19.6569 22 17.7712 22 14Z" opacity=".5"/><path d="M12.25 10C12.25 9.58579 12.5858 9.25 13 9.25H18C18.4142 9.25 18.75 9.58579 18.75 10C18.75 10.4142 18.4142 10.75 18 10.75H13C12.5858 10.75 12.25 10.4142 12.25 10Z"/></g></svg>\ No newline at end of filediff --git a/assets/icons/so-gauge.svg b/assets/icons/so-gauge.svgnew file mode 100644index 0000000..cbc1ca3--- /dev/null+++ b/assets/icons/so-gauge.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="currentColor"><path d="M5.96973 16.9697C6.26262 16.6768 6.73738 16.6768 7.03027 16.9697C7.32306 17.2626 7.32313 17.7374 7.03027 18.0303L5.53027 19.5303C5.51298 19.5476 5.49505 19.5639 5.47656 19.5791C5.09909 19.2539 4.74609 18.9009 4.4209 18.5234C4.43615 18.5049 4.45243 18.487 4.46973 18.4697L5.96973 16.9697Z"/><path d="M16.9697 16.9697C17.2626 16.6768 17.7374 16.6768 18.0303 16.9697L19.5303 18.4697C19.5476 18.487 19.5638 18.5049 19.5791 18.5234C19.2539 18.9009 18.9009 19.2539 18.5234 19.5791C18.5049 19.5639 18.487 19.5476 18.4697 19.5303L16.9697 18.0303C16.6769 17.7374 16.6769 17.2626 16.9697 16.9697Z"/><path d="M12.0283 8.77539C12.8516 8.77562 13.2551 9.40543 14.0615 10.665C14.6009 11.5076 15.0361 12.3835 15.0361 13.0146C15.0361 14.6736 13.6895 16.0183 12.0283 16.0186C10.3669 16.0186 9.01959 14.6738 9.01953 13.0146C9.01953 12.3835 9.45472 11.5076 9.99414 10.665C10.8007 9.40518 11.2047 8.77539 12.0283 8.77539Z"/><path d="M4 11.25C4.41421 11.25 4.75 11.5858 4.75 12C4.74988 12.4141 4.41414 12.75 4 12.75H2.02734C2.009 12.5025 2 12.2522 2 12C2 11.7477 2.00899 11.4976 2.02734 11.25H4Z"/><path d="M21.9727 11.25C21.991 11.4976 22 11.7477 22 12C22 12.2522 21.991 12.5025 21.9727 12.75H20C19.5859 12.75 19.2501 12.4141 19.25 12C19.25 11.5858 19.5858 11.25 20 11.25H21.9727Z"/><path d="M5.53027 4.46973L7.03027 5.96973C7.32306 6.26263 7.32313 6.73742 7.03027 7.03027C6.73741 7.32302 6.26259 7.32302 5.96973 7.03027L4.46973 5.53027C4.45247 5.51302 4.43612 5.49501 4.4209 5.47656C4.74611 5.09908 5.09908 4.7461 5.47656 4.4209C5.49502 4.43613 5.51301 4.45246 5.53027 4.46973Z"/><path d="M18.5234 4.4209C18.9009 4.7461 19.2539 5.09908 19.5791 5.47656C19.5639 5.49501 19.5475 5.51302 19.5303 5.53027L18.0303 7.03027C17.7374 7.32302 17.2626 7.32302 16.9697 7.03027C16.6769 6.73742 16.6769 6.26263 16.9697 5.96973L18.4697 4.46973C18.487 4.45246 18.505 4.43613 18.5234 4.4209Z"/><path d="M12 2C12.2523 2 12.5024 2.00899 12.75 2.02734V4C12.75 4.41421 12.4142 4.75 12 4.75C11.5858 4.75 11.25 4.41421 11.25 4V2.02734C11.4976 2.00899 11.7477 2 12 2Z"/><path d="M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z" opacity=".5"/></g></svg>\ No newline at end of filediff --git a/assets/icons/so-git-branch.svg b/assets/icons/so-git-branch.svgnew file mode 100644index 0000000..1461925--- /dev/null+++ b/assets/icons/so-git-branch.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="currentColor"><path d="M3.46447 3.46447C4.92893 2 7.28595 2 12 2C16.714 2 19.0711 2 20.5355 3.46447C22 4.92893 22 7.28596 22 12C22 16.714 22 19.0711 20.5355 20.5355C19.0711 22 16.714 22 12 22C7.28595 22 4.92893 22 3.46447 20.5355C2 19.0711 2 16.714 2 12C2 7.28596 2 4.92893 3.46447 3.46447Z" opacity=".5"/><path d="M12.75 17.5C12.75 17.9142 12.4142 18.25 12 18.25C11.5858 18.25 11.25 17.9142 11.25 17.5V11.5C11.25 9.70508 9.79493 8.25 8 8.25H7.81066L8.03033 8.46967C8.32322 8.76256 8.32322 9.23744 8.03033 9.53033C7.73744 9.82322 7.26256 9.82322 6.96967 9.53033L5.46967 8.03033C5.17678 7.73744 5.17678 7.26256 5.46967 6.96967L6.96967 5.46967C7.26256 5.17678 7.73744 5.17678 8.03033 5.46967C8.32322 5.76256 8.32322 6.23744 8.03033 6.53033L7.81066 6.75H8C9.67947 6.75 11.1554 7.62162 12 8.93719C12.8446 7.62162 14.3205 6.75 16 6.75H16.1893L15.9697 6.53033C15.6768 6.23744 15.6768 5.76256 15.9697 5.46967C16.2626 5.17678 16.7374 5.17678 17.0303 5.46967L18.5303 6.96967C18.8232 7.26256 18.8232 7.73744 18.5303 8.03033L17.0303 9.53033C16.7374 9.82322 16.2626 9.82322 15.9697 9.53033C15.6768 9.23744 15.6768 8.76256 15.9697 8.46967L16.1893 8.25H16C14.2051 8.25 12.75 9.70508 12.75 11.5V17.5Z"/></g></svg>\ No newline at end of filediff --git a/assets/icons/so-hard-drive.svg b/assets/icons/so-hard-drive.svgnew file mode 100644index 0000000..ab6856c--- /dev/null+++ b/assets/icons/so-hard-drive.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="currentColor"><path d="M16.4997 3H7.49974C6.39517 3 5.49974 3.52941 4.99974 5.11765L2.15711 14.9263C2.20259 14.7794 2.26122 14.6491 2.3368 14.5294C2.48272 14.2982 2.67022 14.0996 2.8886 13.9451C3.39305 13.5882 4.09528 13.5882 5.49974 13.5882H18.4997C19.9042 13.5882 20.6064 13.5882 21.1109 13.9451C21.3293 14.0996 21.5168 14.2982 21.6627 14.5294C21.7432 14.6571 21.8046 14.7968 21.8513 14.9557L18.9997 5.11765C18.4997 3.52941 17.6043 3 16.4997 3Z" opacity=".5"/><path fill-rule="evenodd" d="M5.5 13.5879H18.5C19.9045 13.5879 20.6067 13.5879 21.1111 13.9448C21.3295 14.0993 21.517 14.2978 21.6629 14.529C21.7435 14.6567 21.8049 14.7965 21.8515 14.9554C22 15.4611 22 16.1618 22 17.2929C22 18.7799 22 19.5244 21.6629 20.0585C21.517 20.2897 21.3295 20.4883 21.1111 20.6428C20.6067 20.9997 19.9045 20.9997 18.5 20.9997H5.5C4.09554 20.9997 3.39331 20.9997 2.88886 20.6428C2.67048 20.4883 2.48298 20.2897 2.33706 20.0585C2 19.5244 2 18.7809 2 17.2938C2 16.1949 2 15.502 2.136 14.9997C2.14278 14.9746 2.1499 14.95 2.15737 14.9259C2.20285 14.7791 2.26148 14.6488 2.33706 14.529C2.48298 14.2978 2.67048 14.0993 2.88886 13.9448C3.39331 13.5879 4.09554 13.5879 5.5 13.5879ZM19 16.25C19.4142 16.25 19.75 16.5858 19.75 17V18C19.75 18.4142 19.4142 18.75 19 18.75C18.5858 18.75 18.25 18.4142 18.25 18V17C18.25 16.5858 18.5858 16.25 19 16.25ZM17.25 17C17.25 16.5858 16.9142 16.25 16.5 16.25C16.0858 16.25 15.75 16.5858 15.75 17V18C15.75 18.4142 16.0858 18.75 16.5 18.75C16.9142 18.75 17.25 18.4142 17.25 18V17ZM14 16.25C14.4142 16.25 14.75 16.5858 14.75 17V18C14.75 18.4142 14.4142 18.75 14 18.75C13.5858 18.75 13.25 18.4142 13.25 18V17C13.25 16.5858 13.5858 16.25 14 16.25ZM12.25 17C12.25 16.5858 11.9142 16.25 11.5 16.25C11.0858 16.25 10.75 16.5858 10.75 17V18C10.75 18.4142 11.0858 18.75 11.5 18.75C11.9142 18.75 12.25 18.4142 12.25 18V17Z" clip-rule="evenodd"/></g></svg>\ No newline at end of filediff --git a/assets/icons/so-inbox.svg b/assets/icons/so-inbox.svgnew file mode 100644index 0000000..f529521--- /dev/null+++ b/assets/icons/so-inbox.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="currentColor"><path d="M1 12C1 6.81455 1 4.22183 2.61091 2.61091C4.22183 1 6.81455 1 12 1C17.1854 1 19.7782 1 21.3891 2.61091C23 4.22183 23 6.81455 23 12C23 17.1854 23 19.7782 21.3891 21.3891C19.7782 23 17.1854 23 12 23C6.81455 23 4.22183 23 2.61091 21.3891C1 19.7782 1 17.1854 1 12Z" opacity=".5"/><path d="M2.61091 21.3887C4.22183 22.9996 6.81455 22.9996 12 22.9996C17.1854 22.9996 19.7782 22.9996 21.3891 21.3887C22.8818 19.896 22.9913 17.5602 22.9994 13.0996H19.5237C18.528 13.0996 18.0302 13.0996 17.5926 13.3009C17.155 13.5022 16.831 13.8801 16.183 14.6361L16.183 14.6361L15.517 15.4131L15.517 15.4131C14.869 16.1691 14.545 16.5471 14.1074 16.7483C13.6698 16.9496 13.172 16.9496 12.1763 16.9496H11.8237C10.828 16.9496 10.3302 16.9496 9.89257 16.7483C9.45496 16.5471 9.13097 16.1691 8.48298 15.4131L7.81701 14.6361C7.16903 13.8801 6.84504 13.5022 6.40743 13.3009C5.96982 13.0996 5.47197 13.0996 4.47629 13.0996H1C1.00803 17.5602 1.11818 19.896 2.61091 21.3887Z"/></g></svg>\ No newline at end of filediff --git a/assets/icons/so-info.svg b/assets/icons/so-info.svgnew file mode 100644index 0000000..6d71044--- /dev/null+++ b/assets/icons/so-info.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="currentColor"><path d="M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z" opacity=".5"/><path d="M12 17.75C12.4142 17.75 12.75 17.4142 12.75 17V11C12.75 10.5858 12.4142 10.25 12 10.25C11.5858 10.25 11.25 10.5858 11.25 11V17C11.25 17.4142 11.5858 17.75 12 17.75Z"/><path d="M12 7C12.5523 7 13 7.44771 13 8C13 8.55229 12.5523 9 12 9C11.4477 9 11 8.55229 11 8C11 7.44771 11.4477 7 12 7Z"/></g></svg>\ No newline at end of filediff --git a/assets/icons/so-laptop.svg b/assets/icons/so-laptop.svgnew file mode 100644index 0000000..31abbca--- /dev/null+++ b/assets/icons/so-laptop.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="currentColor"><path d="M4.93833 3.58579C4.35254 4.17157 4.35254 5.11438 4.35254 7V14H19.6467V7C19.6467 5.11438 19.6467 4.17157 19.0609 3.58579C18.4751 3 17.5323 3 15.6467 3H8.35254C6.46692 3 5.52411 3 4.93833 3.58579Z" opacity=".5"/><path fill-rule="evenodd" d="M21.3916 16.3359C21.4359 16.3816 21.4578 16.4049 21.4785 16.4277C21.7996 16.7803 21.9843 17.2363 21.999 17.7129C22 17.7436 22 17.7755 22 17.8389C22 17.988 22.0001 18.063 21.9961 18.126C21.9326 19.1312 21.1312 19.9326 20.126 19.9961C20.063 20.0001 19.988 20 19.8389 20H4.16113C4.01204 20 3.93699 20.0001 3.87402 19.9961C2.86879 19.9326 2.06742 19.1312 2.00391 18.126C1.99994 18.063 2 17.988 2 17.8389C2 17.7755 2.00004 17.7436 2.00098 17.7129C2.01572 17.2363 2.20044 16.7803 2.52148 16.4277C2.54224 16.4049 2.56409 16.3817 2.6084 16.3359L3.90332 15H20.0967L21.3916 16.3359ZM9.5 17.25C9.08579 17.25 8.75 17.5858 8.75 18C8.75 18.4142 9.08579 18.75 9.5 18.75H14.5C14.9142 18.75 15.25 18.4142 15.25 18C15.25 17.5858 14.9142 17.25 14.5 17.25H9.5Z" clip-rule="evenodd"/><path d="M12 5C12.4142 5 12.75 5.33579 12.75 5.75C12.75 6.16421 12.4142 6.5 12 6.5C11.5858 6.5 11.25 6.16421 11.25 5.75C11.25 5.33579 11.5858 5 12 5Z"/></g></svg>\ No newline at end of filediff --git a/assets/icons/so-layers.svg b/assets/icons/so-layers.svgnew file mode 100644index 0000000..a3100b9--- /dev/null+++ b/assets/icons/so-layers.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="currentColor"><path d="M19.0215 10.3145C21.0073 11.1088 22 11.5065 22 12C22 12.4935 21.0073 12.8912 19.0215 13.6855L18.2334 14L19.0215 14.3145C21.0073 15.1088 22 15.5065 22 16C22 16.4935 21.0073 16.8912 19.0215 17.6855L16.2129 18.8086C14.227 19.6029 13.2339 20 12 20C10.7661 20 9.773 19.6029 7.78711 18.8086L4.97852 17.6855C2.9927 16.8912 2 16.4935 2 16C2 15.5065 2.9927 15.1088 4.97852 14.3145L5.76562 14L4.97852 13.6855C2.9927 12.8912 2 12.4935 2 12C2 11.5065 2.9927 11.1088 4.97852 10.3145L5.7666 10L7.78711 10.8086C9.773 11.6029 10.7661 12 12 12C13.2339 12 14.227 11.6029 16.2129 10.8086L18.2334 10L19.0215 10.3145Z" opacity=".5"/><path d="M19.0215 10.3145C21.0073 11.1088 22 11.5065 22 12C22 12.4935 21.0073 12.8912 19.0215 13.6855L16.2129 14.8086C14.227 15.6029 13.2339 16 12 16C10.7661 16 9.773 15.6029 7.78711 14.8086L4.97852 13.6855C2.9927 12.8912 2 12.4935 2 12C2 11.5065 2.9927 11.1088 4.97852 10.3145L5.7666 10L7.78711 10.8086C9.773 11.6029 10.7661 12 12 12C13.2339 12 14.227 11.6029 16.2129 10.8086L18.2334 10L19.0215 10.3145Z" opacity=".5"/><path d="M12 4C13.2339 4 14.227 4.39705 16.2129 5.19141L19.0215 6.31445C21.0073 7.10878 22 7.50646 22 8C22 8.49354 21.0073 8.89122 19.0215 9.68555L16.2129 10.8086C14.227 11.6029 13.2339 12 12 12C10.7661 12 9.773 11.6029 7.78711 10.8086L4.97852 9.68555C2.9927 8.89122 2 8.49354 2 8C2 7.50646 2.9927 7.10878 4.97852 6.31445L7.78711 5.19141C9.773 4.39705 10.7661 4 12 4Z"/></g></svg>\ No newline at end of filediff --git a/assets/icons/so-lock.svg b/assets/icons/so-lock.svgnew file mode 100644index 0000000..3e00a41--- /dev/null+++ b/assets/icons/so-lock.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="currentColor"><path d="M2 16C2 13.1716 2 11.7574 2.87868 10.8787C3.75736 10 5.17157 10 8 10H16C18.8284 10 20.2426 10 21.1213 10.8787C22 11.7574 22 13.1716 22 16C22 18.8284 22 20.2426 21.1213 21.1213C20.2426 22 18.8284 22 16 22H8C5.17157 22 3.75736 22 2.87868 21.1213C2 20.2426 2 18.8284 2 16Z" opacity=".5"/><path d="M12 14C13.1046 14 14 14.8954 14 16C14 17.1046 13.1046 18 12 18C10.8954 18 10 17.1046 10 16C10 14.8954 10.8954 14 12 14Z"/><path d="M12 1.25C15.7279 1.25 18.75 4.27208 18.75 8V10.0547C18.3135 10.0221 17.8174 10.0092 17.25 10.0039V8C17.25 5.10051 14.8995 2.75 12 2.75C9.10051 2.75 6.75 5.10051 6.75 8V10.0039C6.18264 10.0092 5.68651 10.0221 5.25 10.0547V8C5.25 4.27208 8.27208 1.25 12 1.25Z"/></g></svg>\ No newline at end of filediff --git a/assets/icons/so-memory-stick.svg b/assets/icons/so-memory-stick.svgnew file mode 100644index 0000000..b34d904--- /dev/null+++ b/assets/icons/so-memory-stick.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="currentColor"><path d="M5.49965 13.5882H18.4996C19.8107 13.5882 20.9534 14.3515 21.553 15.4813L18.9996 5.11765C18.4996 3.52941 17.6042 3 16.4996 3H7.49965C6.39508 3 5.49965 3.52941 4.99965 5.11765L2.44629 15.4813C3.04588 14.3515 4.18858 13.5882 5.49965 13.5882Z" opacity=".5"/><path fill-rule="evenodd" d="M18.5 13.5879H5.5C4.18893 13.5879 3.04623 14.3512 2.44664 15.4809C2.16221 16.0169 2 16.6353 2 17.2938C2 19.3405 3.567 20.9997 5.5 20.9997H18.5C20.433 20.9997 22 19.3405 22 17.2938C22 16.6353 21.8378 16.0169 21.5534 15.4809C20.9538 14.3512 19.8111 13.5879 18.5 13.5879ZM18 16.25C18.4142 16.25 18.75 16.5858 18.75 17V18C18.75 18.4142 18.4142 18.75 18 18.75C17.5858 18.75 17.25 18.4142 17.25 18V17C17.25 16.5858 17.5858 16.25 18 16.25ZM16.25 17C16.25 16.5858 15.9142 16.25 15.5 16.25C15.0858 16.25 14.75 16.5858 14.75 17V18C14.75 18.4142 15.0858 18.75 15.5 18.75C15.9142 18.75 16.25 18.4142 16.25 18V17ZM13 16.25C13.4142 16.25 13.75 16.5858 13.75 17V18C13.75 18.4142 13.4142 18.75 13 18.75C12.5858 18.75 12.25 18.4142 12.25 18V17C12.25 16.5858 12.5858 16.25 13 16.25ZM11.25 17C11.25 16.5858 10.9142 16.25 10.5 16.25C10.0858 16.25 9.75 16.5858 9.75 17V18C9.75 18.4142 10.0858 18.75 10.5 18.75C10.9142 18.75 11.25 18.4142 11.25 18V17Z" clip-rule="evenodd"/></g></svg>\ No newline at end of filediff --git a/assets/icons/so-message-square.svg b/assets/icons/so-message-square.svgnew file mode 100644index 0000000..ff35553--- /dev/null+++ b/assets/icons/so-message-square.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="currentColor"><path d="M7.45648 3.08984C4.21754 4.74468 2 8.1136 2 12.0004C2 13.6001 2.37562 15.1121 3.04346 16.4529C3.22094 16.8092 3.28001 17.2165 3.17712 17.6011L2.58151 19.8271C2.32295 20.7934 3.20701 21.6775 4.17335 21.4189L6.39939 20.8233C6.78393 20.7204 7.19121 20.7795 7.54753 20.957C8.88836 21.6248 10.4003 22.0005 12 22.0005C16.8853 22.0005 20.9524 18.4973 21.8263 13.866C20.1758 15.7851 17.7298 17.0004 15 17.0004C10.0294 17.0004 6 12.971 6 8.00045C6 6.18869 6.53534 4.50197 7.45648 3.08984Z"/><path d="M21.8263 13.8655C21.9403 13.2611 22 12.6375 22 12C22 6.47715 17.5228 2 12 2C10.4467 2 8.97611 2.35415 7.66459 2.98611C7.59476 3.01975 7.52539 3.05419 7.45648 3.08939C6.53534 4.50152 6 6.18824 6 8C6 12.9706 10.0294 17 15 17C17.7298 17 20.1758 15.7847 21.8263 13.8655Z" opacity=".5"/></g></svg>\ No newline at end of filediff --git a/assets/icons/so-monitor.svg b/assets/icons/so-monitor.svgnew file mode 100644index 0000000..8324617--- /dev/null+++ b/assets/icons/so-monitor.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="currentColor"><path d="M10 2H14C17.7712 2 19.6569 2 20.8284 3.17157C22 4.34315 22 6.22876 22 10V11C22 11.5516 22 12.5494 21.9935 13H2.00652C2 12.5494 2 11.5516 2 11V10C2 6.22876 2 4.34315 3.17157 3.17157C4.34315 2 6.22876 2 10 2Z" opacity=".5"/><path d="M7.9846 17.5C5.14528 17.5 3.72562 17.5 2.84356 16.6213C2.27207 16.052 2.07085 15.2579 2 14V13H22V14C21.9292 15.2579 21.7279 16.052 21.1564 16.6213C20.2744 17.5 18.8547 17.5 16.0154 17.5H12.7529V21.5H16.0154C16.4312 21.5 16.7683 21.8358 16.7683 22.25C16.7683 22.6642 16.4312 23 16.0154 23H7.9846C7.56879 23 7.23171 22.6642 7.23171 22.25C7.23171 21.8358 7.56879 21.5 7.9846 21.5H11.2471V17.5H7.9846Z"/></g></svg>\ No newline at end of filediff --git a/assets/icons/so-network.svg b/assets/icons/so-network.svgnew file mode 100644index 0000000..a593201--- /dev/null+++ b/assets/icons/so-network.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="currentColor"><path fill-rule="evenodd" d="M2.02783 11.25C2.41136 6.07745 6.72957 2 12.0001 2C11.1693 2 10.4295 2.36421 9.82093 2.92113C9.21541 3.47525 8.70371 4.24878 8.28983 5.16315C7.87352 6.08292 7.55013 7.15868 7.33126 8.32611C7.1558 9.26194 7.04903 10.2485 7.01344 11.25H2.02783ZM2.02783 12.75H7.01344C7.04903 13.7515 7.1558 14.7381 7.33126 15.6739C7.55013 16.8413 7.87351 17.9171 8.28983 18.8368C8.70371 19.7512 9.21541 20.5247 9.82093 21.0789C10.4295 21.6358 11.1693 22 12.0001 22C6.72957 22 2.41136 17.9226 2.02783 12.75Z" clip-rule="evenodd"/><path d="M12.0001 2C12.831 2 13.5708 2.36421 14.1793 2.92113C14.7849 3.47525 15.2966 4.24878 15.7104 5.16315C16.1267 6.08292 16.4501 7.15868 16.669 8.32612C16.8445 9.26194 16.9512 10.2485 16.9868 11.25H21.9724C21.5889 6.07745 17.2707 2 12.0001 2Z"/><path d="M16.669 15.6739C16.4501 16.8413 16.1267 17.9171 15.7104 18.8368C15.2966 19.7512 14.7849 20.5247 14.1793 21.0789C13.5708 21.6358 12.831 22 12.0001 22C17.2707 22 21.5889 17.9226 21.9724 12.75H16.9868C16.9512 13.7515 16.8445 14.7381 16.669 15.6739Z"/><g opacity=".5"><path d="M12.0002 3.39551C11.7252 3.39551 11.3699 3.51252 10.9568 3.89058C10.5406 4.27142 10.124 4.86831 9.7559 5.68153C9.39025 6.48936 9.09334 7.46456 8.88902 8.55435C8.72811 9.41258 8.62829 10.3223 8.59326 11.2502H15.4071C15.3721 10.3223 15.2723 9.41258 15.1113 8.55435C14.907 7.46457 14.6101 6.48937 14.2445 5.68153C13.8764 4.86831 13.4597 4.27142 13.0436 3.89058C12.6305 3.51252 12.2752 3.39551 12.0002 3.39551Z"/><path d="M8.88902 15.446C9.09334 16.5358 9.39025 17.511 9.7559 18.3188C10.124 19.132 10.5406 19.7289 10.9568 20.1097C11.3699 20.4878 11.7252 20.6048 12.0002 20.6048C12.2752 20.6048 12.6305 20.4878 13.0436 20.1097C13.4597 19.7289 13.8764 19.132 14.2445 18.3188C14.6101 17.511 14.907 16.5358 15.1113 15.446C15.2723 14.5877 15.3721 13.678 15.4071 12.7502H8.59326C8.62829 13.678 8.72811 14.5877 8.88902 15.446Z"/></g></g></svg>\ No newline at end of filediff --git a/assets/icons/so-play.svg b/assets/icons/so-play.svgnew file mode 100644index 0000000..5584caa--- /dev/null+++ b/assets/icons/so-play.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="currentColor"><path fill-rule="evenodd" d="M23 12C23 10.9648 22.4695 9.92953 21.4086 9.35258L8.59661 2.38548C6.53435 1.26402 4 2.72368 4 5.0329L4 12H23Z" clip-rule="evenodd"/><path d="M8.59662 21.6145L21.4086 14.6474C22.4695 14.0705 23 13.0352 23 12H4L4 18.9671C4 21.2763 6.53435 22.736 8.59662 21.6145Z" opacity=".5"/></g></svg>\ No newline at end of filediff --git a/assets/icons/so-plug.svg b/assets/icons/so-plug.svgnew file mode 100644index 0000000..3e7407f--- /dev/null+++ b/assets/icons/so-plug.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="currentColor"><g opacity=".5"><path fill-rule="evenodd" d="M12.7497 22C17.9224 21.6161 22 17.2918 22 12.0139L22 12.0069L22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12L2 12.0069L2 12.0139C2 17.2918 6.07759 21.6161 11.2503 22L11.2503 21.9723C6.07986 21.5891 2.00357 17.2744 2 12.0069C2.00374 6.47961 6.47946 2 12 2C17.5205 2 21.9963 6.47961 22 12.0069C21.9964 17.2744 17.9201 21.5891 12.7497 21.9723L12.7497 22Z" clip-rule="evenodd"/><path d="M11.2503 21.9723C11.4978 21.9907 11.7478 22 12 22C12.2522 22 12.5022 21.9907 12.7497 21.9723C17.9201 21.5891 21.9964 17.2744 22 12.0069C21.9963 6.47961 17.5205 2 12 2C6.47946 2 2.00374 6.47961 2 12.0069C2.00357 17.2744 6.07986 21.5891 11.2503 21.9723Z"/></g><path d="M8.5 12.5147C8.5 14.1925 9.67737 15.595 11.2499 15.9389L11.2503 21.9724C11.4978 21.9908 11.7478 22.0001 12 22.0001C12.2522 22.0001 12.5022 21.9908 12.7497 21.9724L12.7499 15.9389C14.3226 15.5951 15.5 14.1926 15.5 12.5147V12.014C15.5 11.4609 15.0523 11.0126 14.5 11.0126H14.25V9.00983C14.25 8.59504 13.9142 8.25879 13.5 8.25879C13.0858 8.25879 12.75 8.59504 12.75 9.00983V11.0126H11.25V9.00983C11.25 8.59504 10.9142 8.25879 10.5 8.25879C10.0858 8.25879 9.75 8.59504 9.75 9.00983V11.0126H9.5C8.94772 11.0126 8.5 11.4609 8.5 12.014V12.5147Z"/></g></svg>\ No newline at end of filediff --git a/assets/icons/so-plus.svg b/assets/icons/so-plus.svgnew file mode 100644index 0000000..524b6f0--- /dev/null+++ b/assets/icons/so-plus.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="currentColor"><path d="M12 22C7.28595 22 4.92893 22 3.46447 20.5355C2 19.0711 2 16.714 2 12C2 7.28595 2 4.92893 3.46447 3.46447C4.92893 2 7.28595 2 12 2C16.714 2 19.0711 2 20.5355 3.46447C22 4.92893 22 7.28595 22 12C22 16.714 22 19.0711 20.5355 20.5355C19.0711 22 16.714 22 12 22Z" opacity=".5"/><path d="M12 8.25C12.4142 8.25 12.75 8.58579 12.75 9V11.25H15C15.4142 11.25 15.75 11.5858 15.75 12C15.75 12.4142 15.4142 12.75 15 12.75H12.75L12.75 15C12.75 15.4142 12.4142 15.75 12 15.75C11.5858 15.75 11.25 15.4142 11.25 15V12.75H9C8.58579 12.75 8.25 12.4142 8.25 12C8.25 11.5858 8.58579 11.25 9 11.25H11.25L11.25 9C11.25 8.58579 11.5858 8.25 12 8.25Z"/></g></svg>\ No newline at end of filediff --git a/assets/icons/so-power.svg b/assets/icons/so-power.svgnew file mode 100644index 0000000..c91c876--- /dev/null+++ b/assets/icons/so-power.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="currentColor"><path d="M8.7919 5.14712C9.17345 4.98591 9.35208 4.54591 9.19087 4.16435C9.02966 3.7828 8.58966 3.60417 8.2081 3.76538C4.70832 5.24406 2.25 8.70925 2.25 12.7503C2.25 18.1351 6.61522 22.5003 12 22.5003C17.3848 22.5003 21.75 18.1351 21.75 12.7503C21.75 8.70925 19.2917 5.24406 15.7919 3.76538C15.4103 3.60417 14.9703 3.7828 14.8091 4.16435C14.6479 4.54591 14.8265 4.98591 15.2081 5.14712C18.1722 6.39947 20.25 9.33312 20.25 12.7503C20.25 17.3067 16.5563 21.0003 12 21.0003C7.44365 21.0003 3.75 17.3067 3.75 12.7503C3.75 9.33312 5.82779 6.39947 8.7919 5.14712Z" opacity=".5"/><path d="M12.75 2.75C12.75 2.33579 12.4142 2 12 2C11.5858 2 11.25 2.33579 11.25 2.75V6.75C11.25 7.16421 11.5858 7.5 12 7.5C12.4142 7.5 12.75 7.16421 12.75 6.75V2.75Z"/></g></svg>\ No newline at end of filediff --git a/assets/icons/so-refresh-cw.svg b/assets/icons/so-refresh-cw.svgnew file mode 100644index 0000000..fa2198d--- /dev/null+++ b/assets/icons/so-refresh-cw.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="currentColor"><path d="M12.0789 2.25C7.2854 2.25 3.34478 5.913 2.96055 10.5833H2.00002C1.69614 10.5833 1.42229 10.7667 1.30655 11.0477C1.19081 11.3287 1.25606 11.6517 1.47178 11.8657L3.15159 13.5324C3.444 13.8225 3.91567 13.8225 4.20808 13.5324L5.88789 11.8657C6.10361 11.6517 6.16886 11.3287 6.05312 11.0477C5.93738 10.7667 5.66353 10.5833 5.35965 10.5833H4.4668C4.84652 6.75167 8.10479 3.75 12.0789 3.75C14.8484 3.75 17.2727 5.20845 18.6156 7.39279C18.8325 7.74565 19.2944 7.85585 19.6473 7.63892C20.0002 7.42199 20.1104 6.96007 19.8934 6.60721C18.2871 3.99427 15.3873 2.25 12.0789 2.25Z"/><path d="M20.8412 10.4666C20.5491 10.1778 20.0789 10.1778 19.7868 10.4666L18.1005 12.1333C17.8842 12.3471 17.8185 12.6703 17.934 12.9517C18.0496 13.233 18.3236 13.4167 18.6278 13.4167H19.5269C19.1456 17.2462 15.876 20.25 11.8828 20.25C9.10034 20.25 6.66595 18.7903 5.31804 16.6061C5.10051 16.2536 4.63841 16.1442 4.28591 16.3618C3.93342 16.5793 3.82401 17.0414 4.04154 17.3939C5.65416 20.007 8.56414 21.75 11.8828 21.75C16.6907 21.75 20.6476 18.0892 21.0332 13.4167H22.0002C22.3044 13.4167 22.5784 13.233 22.694 12.9517C22.8096 12.6703 22.7438 12.3471 22.5275 12.1333L20.8412 10.4666Z" opacity=".5"/></g></svg>\ No newline at end of filediff --git a/assets/icons/so-rotate-ccw.svg b/assets/icons/so-rotate-ccw.svgnew file mode 100644index 0000000..5241313--- /dev/null+++ b/assets/icons/so-rotate-ccw.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="currentColor"><path fill-rule="evenodd" d="M6.87348 7.87338C9.01606 5.7308 12.1674 5.20902 14.8007 6.31041L15.9309 5.18019C12.6515 3.53111 8.55119 4.07435 5.81282 6.81272C2.39573 10.2298 2.39573 15.77 5.81282 19.1871C9.2299 22.6042 14.7701 22.6042 18.1872 19.1871C20.1746 17.1997 21.0057 14.4933 20.6819 11.9072C20.6304 11.4962 20.2555 11.2048 19.8445 11.2562C19.4335 11.3077 19.142 11.6826 19.1935 12.0936C19.4622 14.24 18.7727 16.4802 17.1265 18.1264C14.2952 20.9577 9.70478 20.9577 6.87348 18.1264C4.04217 15.2951 4.04217 10.7047 6.87348 7.87338Z" clip-rule="evenodd" opacity=".5"/><path d="M18.7212 4.20119C18.7212 3.89785 18.5384 3.62437 18.2582 3.50828C17.9779 3.3922 17.6553 3.45637 17.4408 3.67086L15.9314 5.18028L14.8012 6.3105L13.1982 7.9135C12.9837 8.128 12.9195 8.45059 13.0356 8.73085C13.1517 9.0111 13.4252 9.19383 13.7285 9.19383H17.9712C18.3854 9.19383 18.7212 8.85805 18.7212 8.44383V4.20119Z"/></g></svg>\ No newline at end of filediff --git a/assets/icons/so-scroll-text.svg b/assets/icons/so-scroll-text.svgnew file mode 100644index 0000000..52b6e35--- /dev/null+++ b/assets/icons/so-scroll-text.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="currentColor"><path d="M3 10C3 6.22876 3 4.34315 4.17157 3.17157C5.34315 2 7.22876 2 11 2H13C16.7712 2 18.6569 2 19.8284 3.17157C21 4.34315 21 6.22876 21 10V14C21 17.7712 21 19.6569 19.8284 20.8284C18.6569 22 16.7712 22 13 22H11C7.22876 22 5.34315 22 4.17157 20.8284C3 19.6569 3 17.7712 3 14V10Z" opacity=".5"/><path d="M13 15.25C13.4142 15.25 13.75 15.5858 13.75 16C13.75 16.4142 13.4142 16.75 13 16.75H8C7.58579 16.75 7.25 16.4142 7.25 16C7.25 15.5858 7.58579 15.25 8 15.25H13Z"/><path d="M16 11.25C16.4142 11.25 16.75 11.5858 16.75 12C16.75 12.4142 16.4142 12.75 16 12.75H8C7.58579 12.75 7.25 12.4142 7.25 12C7.25 11.5858 7.58579 11.25 8 11.25H16Z"/><path d="M16 7.25C16.4142 7.25 16.75 7.58579 16.75 8C16.75 8.41421 16.4142 8.75 16 8.75H8C7.58579 8.75 7.25 8.41421 7.25 8C7.25 7.58579 7.58579 7.25 8 7.25H16Z"/></g></svg>\ No newline at end of filediff --git a/assets/icons/so-search.svg b/assets/icons/so-search.svgnew file mode 100644index 0000000..f5d20c2--- /dev/null+++ b/assets/icons/so-search.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M20.313 11.157a9.157 9.157 0 1 1-18.313 0a9.157 9.157 0 0 1 18.313 0" opacity=".5"/><path fill="currentColor" d="m17.1 18.122l3.666 3.666a.723.723 0 0 0 1.023-1.022L18.122 17.1a9 9 0 0 1-1.022 1.022"/></svg>\ No newline at end of filediff --git a/assets/icons/so-server.svg b/assets/icons/so-server.svgnew file mode 100644index 0000000..1a660dc--- /dev/null+++ b/assets/icons/so-server.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="currentColor"><g opacity=".5"><path d="M6 13H18C19.8856 13 20.8284 13 21.4142 13.5858C22 14.1716 22 15.1144 22 17C22 18.8856 22 19.8284 21.4142 20.4142C20.8284 21 19.8856 21 18 21H6C4.11438 21 3.17157 21 2.58579 20.4142C2 19.8284 2 18.8856 2 17C2 15.1144 2 14.1716 2.58579 13.5858C3.17157 13 4.11438 13 6 13Z"/><path d="M6 3H18C19.8856 3 20.8284 3 21.4142 3.58579C22 4.17157 22 5.11438 22 7C22 8.88562 22 9.82843 21.4142 10.4142C20.8284 11 19.8856 11 18 11H6C4.11438 11 3.17157 11 2.58579 10.4142C2 9.82843 2 8.88562 2 7C2 5.11438 2 4.17157 2.58579 3.58579C3.17157 3 4.11438 3 6 3Z"/></g><path d="M10.25 7C10.25 6.58579 10.5858 6.25 11 6.25H18C18.4142 6.25 18.75 6.58579 18.75 7C18.75 7.41421 18.4142 7.75 18 7.75H11C10.5858 7.75 10.25 7.41421 10.25 7Z"/><path d="M5.25 7C5.25 6.58579 5.58579 6.25 6 6.25H8C8.41421 6.25 8.75 6.58579 8.75 7C8.75 7.41421 8.41421 7.75 8 7.75H6C5.58579 7.75 5.25 7.41421 5.25 7Z"/><path d="M10.25 17C10.25 16.5858 10.5858 16.25 11 16.25H18C18.4142 16.25 18.75 16.5858 18.75 17C18.75 17.4142 18.4142 17.75 18 17.75H11C10.5858 17.75 10.25 17.4142 10.25 17Z"/><path d="M5.25 17C5.25 16.5858 5.58579 16.25 6 16.25H8C8.41421 16.25 8.75 16.5858 8.75 17C8.75 17.4142 8.41421 17.75 8 17.75H6C5.58579 17.75 5.25 17.4142 5.25 17Z"/></g></svg>\ No newline at end of filediff --git a/assets/icons/so-settings.svg b/assets/icons/so-settings.svgnew file mode 100644index 0000000..6096700--- /dev/null+++ b/assets/icons/so-settings.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="currentColor"><path fill-rule="evenodd" d="M14.2788 2.15224C13.9085 2 13.439 2 12.5 2C11.561 2 11.0915 2 10.7212 2.15224C10.2274 2.35523 9.83509 2.74458 9.63056 3.23463C9.53719 3.45834 9.50065 3.7185 9.48635 4.09799C9.46534 4.65568 9.17716 5.17189 8.69017 5.45093C8.20318 5.72996 7.60864 5.71954 7.11149 5.45876C6.77318 5.2813 6.52789 5.18262 6.28599 5.15102C5.75609 5.08178 5.22018 5.22429 4.79616 5.5472C4.47814 5.78938 4.24339 6.1929 3.7739 6.99993C3.30441 7.80697 3.06967 8.21048 3.01735 8.60491C2.94758 9.1308 3.09118 9.66266 3.41655 10.0835C3.56506 10.2756 3.77377 10.437 4.0977 10.639C4.57391 10.936 4.88032 11.4419 4.88029 12C4.88026 12.5581 4.57386 13.0639 4.0977 13.3608C3.77372 13.5629 3.56497 13.7244 3.41645 13.9165C3.09108 14.3373 2.94749 14.8691 3.01725 15.395C3.06957 15.7894 3.30432 16.193 3.7738 17C4.24329 17.807 4.47804 18.2106 4.79606 18.4527C5.22008 18.7756 5.75599 18.9181 6.28589 18.8489C6.52778 18.8173 6.77305 18.7186 7.11133 18.5412C7.60852 18.2804 8.2031 18.27 8.69012 18.549C9.17714 18.8281 9.46533 19.3443 9.48635 19.9021C9.50065 20.2815 9.53719 20.5417 9.63056 20.7654C9.83509 21.2554 10.2274 21.6448 10.7212 21.8478C11.0915 22 11.561 22 12.5 22C13.439 22 13.9085 22 14.2788 21.8478C14.7726 21.6448 15.1649 21.2554 15.3694 20.7654C15.4628 20.5417 15.4994 20.2815 15.5137 19.902C15.5347 19.3443 15.8228 18.8281 16.3098 18.549C16.7968 18.2699 17.3914 18.2804 17.8886 18.5412C18.2269 18.7186 18.4721 18.8172 18.714 18.8488C19.2439 18.9181 19.7798 18.7756 20.2038 18.4527C20.5219 18.2105 20.7566 17.807 21.2261 16.9999C21.6956 16.1929 21.9303 15.7894 21.9827 15.395C22.0524 14.8691 21.9088 14.3372 21.5835 13.9164C21.4349 13.7243 21.2262 13.5628 20.9022 13.3608C20.4261 13.0639 20.1197 12.558 20.1197 11.9999C20.1197 11.4418 20.4261 10.9361 20.9022 10.6392C21.2263 10.4371 21.435 10.2757 21.5836 10.0835C21.9089 9.66273 22.0525 9.13087 21.9828 8.60497C21.9304 8.21055 21.6957 7.80703 21.2262 7C20.7567 6.19297 20.522 5.78945 20.2039 5.54727C19.7799 5.22436 19.244 5.08185 18.7141 5.15109C18.4722 5.18269 18.2269 5.28136 17.8887 5.4588C17.3915 5.71959 16.7969 5.73002 16.3099 5.45096C15.8229 5.17191 15.5347 4.65566 15.5136 4.09794C15.4993 3.71848 15.4628 3.45833 15.3694 3.23463C15.1649 2.74458 14.7726 2.35523 14.2788 2.15224Z" clip-rule="evenodd" opacity=".5"/><path d="M15.5227 12C15.5227 13.6569 14.1694 15 12.4999 15C10.8304 15 9.47705 13.6569 9.47705 12C9.47705 10.3431 10.8304 9 12.4999 9C14.1694 9 15.5227 10.3431 15.5227 12Z"/></g></svg>\ No newline at end of filediff --git a/assets/icons/so-square.svg b/assets/icons/so-square.svgnew file mode 100644index 0000000..40e2a7e--- /dev/null+++ b/assets/icons/so-square.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="currentColor"><path fill-rule="evenodd" d="M3.46447 3.46447C2 4.92893 2 7.28595 2 12C2 16.714 2 19.0711 3.46447 20.5355L20.5355 3.46447C19.0711 2 16.714 2 12 2C7.28595 2 4.92893 2 3.46447 3.46447Z" clip-rule="evenodd"/><path d="M3.46484 20.5359C4.92931 22.0004 7.28633 22.0004 12.0004 22.0004C16.7144 22.0004 19.0714 22.0004 20.5359 20.5359C22.0004 19.0714 22.0004 16.7144 22.0004 12.0004C22.0004 7.28633 22.0004 4.92931 20.5359 3.46484L3.46484 20.5359Z" opacity=".5"/></g></svg>\ No newline at end of filediff --git a/assets/icons/so-star.svg b/assets/icons/so-star.svgnew file mode 100644index 0000000..135a7db--- /dev/null+++ b/assets/icons/so-star.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="currentColor"><path d="M18.4834 16.7674C17.8471 16.9195 17.1829 17 16.5 17C11.8056 17 8 13.1944 8 8.50001C8 8.01653 8.04036 7.54249 8.11791 7.08105C8.08172 7.11586 8.04432 7.14792 8.00494 7.17781C7.72433 7.39083 7.37485 7.46991 6.67589 7.62806L6.03954 7.77204C3.57986 8.32856 2.35002 8.60682 2.05742 9.54774C1.76482 10.4887 2.60325 11.4691 4.2801 13.4299L4.71392 13.9372C5.19042 14.4944 5.42868 14.773 5.53586 15.1177C5.64305 15.4624 5.60703 15.8341 5.53498 16.5776L5.4694 17.2544C5.21588 19.8706 5.08912 21.1787 5.85515 21.7602C6.62117 22.3417 7.77267 21.8116 10.0757 20.7512L10.6715 20.4768C11.3259 20.1755 11.6531 20.0249 12 20.0249C12.3469 20.0249 12.6741 20.1755 13.3285 20.4768L13.9243 20.7512C16.2273 21.8116 17.3788 22.3417 18.1449 21.7602C18.9109 21.1787 18.7841 19.8706 18.5306 17.2544L18.4834 16.7674Z"/><path d="M9.15302 5.40838L8.82532 5.99623C8.46538 6.64194 8.28541 6.96479 8.0048 7.17781C8.04418 7.14791 8.08158 7.11586 8.11777 7.08105C8.04022 7.54249 7.99986 8.01653 7.99986 8.50001C7.99986 13.1944 11.8054 17 16.4999 17C17.1828 17 17.8469 16.9195 18.4833 16.7674L18.4649 16.5776C18.3928 15.8341 18.3568 15.4624 18.464 15.1177C18.5712 14.773 18.8094 14.4944 19.2859 13.9372L19.7198 13.4299C21.3966 11.4691 22.235 10.4886 21.9424 9.54773C21.6498 8.60682 20.42 8.32856 17.9603 7.77203L17.324 7.62805C16.625 7.4699 16.2755 7.39083 15.9949 7.17781C15.7143 6.96479 15.5343 6.64194 15.1744 5.99624L14.8467 5.40837C13.58 3.13612 12.9467 2 11.9999 2C11.053 2 10.4197 3.13613 9.15302 5.40838Z" opacity=".5"/></g></svg>\ No newline at end of filediff --git a/assets/icons/so-terminal.svg b/assets/icons/so-terminal.svgnew file mode 100644index 0000000..2813d3f--- /dev/null+++ b/assets/icons/so-terminal.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="currentColor"><path d="M2 12C2 7.28595 2 4.92893 3.46447 3.46447C4.92893 2 7.28595 2 12 2C16.714 2 19.0711 2 20.5355 3.46447C22 4.92893 22 7.28595 22 12C22 16.714 22 19.0711 20.5355 20.5355C19.0711 22 16.714 22 12 22C7.28595 22 4.92893 22 3.46447 20.5355C2 19.0711 2 16.714 2 12Z" opacity=".5"/><path d="M13.4881 6.44591C13.8882 6.55311 14.1256 6.96437 14.0184 7.36447L11.4302 17.0237C11.323 17.4238 10.9117 17.6613 10.5116 17.5541C10.1115 17.4468 9.8741 17.0356 9.98131 16.6355L12.5695 6.97624C12.6767 6.57614 13.088 6.3387 13.4881 6.44591Z"/><path d="M14.9697 8.46967C15.2626 8.17678 15.7374 8.17678 16.0303 8.46967L16.2387 8.67801C16.874 9.3133 17.4038 9.84308 17.7678 10.3202C18.1521 10.8238 18.4216 11.3559 18.4216 12C18.4216 12.6441 18.1521 13.1762 17.7678 13.6798C17.4038 14.1569 16.874 14.6867 16.2387 15.322L16.0303 15.5303C15.7374 15.8232 15.2626 15.8232 14.9697 15.5303C14.6768 15.2374 14.6768 14.7626 14.9697 14.4697L15.1412 14.2981C15.8229 13.6164 16.2797 13.1574 16.5753 12.7699C16.8577 12.3998 16.9216 12.1843 16.9216 12C16.9216 11.8157 16.8577 11.6002 16.5753 11.2301C16.2797 10.8426 15.8229 10.3836 15.1412 9.70191L14.9697 9.53033C14.6768 9.23744 14.6768 8.76257 14.9697 8.46967Z"/><path d="M7.96986 8.46967C8.26275 8.17678 8.73762 8.17678 9.03052 8.46967C9.32341 8.76257 9.32341 9.23744 9.03052 9.53033L8.85894 9.70191C8.17729 10.3836 7.72052 10.8426 7.42488 11.2301C7.14245 11.6002 7.07861 11.8157 7.07861 12C7.07861 12.1843 7.14245 12.3998 7.42488 12.7699C7.72052 13.1574 8.17729 13.6164 8.85894 14.2981L9.03052 14.4697C9.32341 14.7626 9.32341 15.2374 9.03052 15.5303C8.73762 15.8232 8.26275 15.8232 7.96986 15.5303L7.76151 15.322C7.12617 14.6867 6.59638 14.1569 6.23235 13.6798C5.84811 13.1762 5.57861 12.6441 5.57861 12C5.57861 11.3559 5.84811 10.8238 6.23235 10.3202C6.59638 9.84308 7.12617 9.31331 7.76151 8.67801L7.96986 8.46967Z"/></g></svg>\ No newline at end of filediff --git a/assets/icons/so-trash-2.svg b/assets/icons/so-trash-2.svgnew file mode 100644index 0000000..9f08468--- /dev/null+++ b/assets/icons/so-trash-2.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="currentColor"><path d="M9.42578 11.4815C9.83777 11.4383 10.2049 11.7548 10.2461 12.1885L10.7461 17.4522C10.7871 17.8858 10.4862 18.2721 10.0742 18.3154C9.66223 18.3586 9.29511 18.0421 9.25391 17.6084L8.75391 12.3457C8.71269 11.9119 9.01362 11.5248 9.42578 11.4815Z"/><path d="M14.5742 11.4815C14.9864 11.5248 15.2873 11.9119 15.2461 12.3457L14.7461 17.6084C14.7049 18.0422 14.3378 18.3586 13.9258 18.3154C13.5138 18.2721 13.2129 17.8858 13.2539 17.4522L13.7539 12.1885C13.7951 11.7548 14.1623 11.4384 14.5742 11.4815Z"/><path d="M13.7393 2.00002C13.9618 1.99986 14.1558 1.99998 14.3389 2.03322C15.0621 2.16462 15.688 2.67737 16.0264 3.41603C16.112 3.60305 16.1729 3.8126 16.2432 4.05275L16.3584 4.44435C16.3778 4.51052 16.383 4.52913 16.3877 4.54396C16.5678 5.11018 17.1279 5.49355 17.6572 5.50881H20.2285C20.6545 5.50881 20.9999 5.90141 21 6.38576C21 6.87022 20.6546 7.26271 20.2285 7.26271H3.77148C3.34544 7.26271 3 6.87022 3 6.38576C3.00011 5.90141 3.3455 5.50881 3.77148 5.50881H6.43555C6.9649 5.49355 7.43218 5.11018 7.6123 4.54396C7.61702 4.52913 7.6222 4.51055 7.6416 4.44435L7.75684 4.05275C7.82709 3.8126 7.88799 3.60305 7.97363 3.41603C8.31193 2.67739 8.93792 2.16467 9.66113 2.03322C9.84415 1.99999 10.0383 1.99986 10.2607 2.00002H13.7393Z"/><path d="M11.5956 22.0001H12.4044C15.1871 22.0001 16.5785 22.0001 17.4831 21.1142C18.3878 20.2283 18.4803 18.7751 18.6654 15.8686L18.9321 11.6807C19.0326 10.1037 19.0828 9.31524 18.6289 8.81558C18.1751 8.31592 17.4087 8.31592 15.876 8.31592H8.12405C6.59127 8.31592 5.82488 8.31592 5.37105 8.81558C4.91722 9.31524 4.96744 10.1037 5.06788 11.6807L5.33459 15.8686C5.5197 18.7751 5.61225 20.2283 6.51689 21.1142C7.42153 22.0001 8.81289 22.0001 11.5956 22.0001Z" opacity=".5"/></g></svg>\ No newline at end of filediff --git a/assets/icons/so-triangle-alert.svg b/assets/icons/so-triangle-alert.svgnew file mode 100644index 0000000..278d38e--- /dev/null+++ b/assets/icons/so-triangle-alert.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="currentColor"><path d="M12 3C9.68925 3 8.23007 5.58716 5.31171 10.7615L4.94805 11.4063C2.52291 15.7061 1.31034 17.856 2.40626 19.428C3.50217 21 6.21356 21 11.6363 21H12.3637C17.7864 21 20.4978 21 21.5937 19.428C22.6897 17.856 21.4771 15.7061 19.0519 11.4063L18.6883 10.7615C15.7699 5.58716 14.3107 3 12 3Z" opacity=".5"/><path d="M12 7.25C12.4142 7.25 12.75 7.58579 12.75 8V13C12.75 13.4142 12.4142 13.75 12 13.75C11.5858 13.75 11.25 13.4142 11.25 13V8C11.25 7.58579 11.5858 7.25 12 7.25Z"/><path d="M12 17C12.5523 17 13 16.5523 13 16C13 15.4477 12.5523 15 12 15C11.4477 15 11 15.4477 11 16C11 16.5523 11.4477 17 12 17Z"/></g></svg>\ No newline at end of filediff --git a/assets/icons/so-unplug.svg b/assets/icons/so-unplug.svgnew file mode 100644index 0000000..3e7407f--- /dev/null+++ b/assets/icons/so-unplug.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="currentColor"><g opacity=".5"><path fill-rule="evenodd" d="M12.7497 22C17.9224 21.6161 22 17.2918 22 12.0139L22 12.0069L22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12L2 12.0069L2 12.0139C2 17.2918 6.07759 21.6161 11.2503 22L11.2503 21.9723C6.07986 21.5891 2.00357 17.2744 2 12.0069C2.00374 6.47961 6.47946 2 12 2C17.5205 2 21.9963 6.47961 22 12.0069C21.9964 17.2744 17.9201 21.5891 12.7497 21.9723L12.7497 22Z" clip-rule="evenodd"/><path d="M11.2503 21.9723C11.4978 21.9907 11.7478 22 12 22C12.2522 22 12.5022 21.9907 12.7497 21.9723C17.9201 21.5891 21.9964 17.2744 22 12.0069C21.9963 6.47961 17.5205 2 12 2C6.47946 2 2.00374 6.47961 2 12.0069C2.00357 17.2744 6.07986 21.5891 11.2503 21.9723Z"/></g><path d="M8.5 12.5147C8.5 14.1925 9.67737 15.595 11.2499 15.9389L11.2503 21.9724C11.4978 21.9908 11.7478 22.0001 12 22.0001C12.2522 22.0001 12.5022 21.9908 12.7497 21.9724L12.7499 15.9389C14.3226 15.5951 15.5 14.1926 15.5 12.5147V12.014C15.5 11.4609 15.0523 11.0126 14.5 11.0126H14.25V9.00983C14.25 8.59504 13.9142 8.25879 13.5 8.25879C13.0858 8.25879 12.75 8.59504 12.75 9.00983V11.0126H11.25V9.00983C11.25 8.59504 10.9142 8.25879 10.5 8.25879C10.0858 8.25879 9.75 8.59504 9.75 9.00983V11.0126H9.5C8.94772 11.0126 8.5 11.4609 8.5 12.014V12.5147Z"/></g></svg>\ No newline at end of filediff --git a/assets/icons/so-workflow.svg b/assets/icons/so-workflow.svgnew file mode 100644index 0000000..0ea6fc1--- /dev/null+++ b/assets/icons/so-workflow.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="currentColor"><g opacity=".5"><path d="M7.625 15C8.67337 15 9.19784 15.0001 9.61133 15.1777C10.1625 15.4146 10.6008 15.8688 10.8291 16.4404C11.0003 16.8692 11 17.4129 11 18.5C11 19.5871 11.0003 20.1308 10.8291 20.5596C10.6008 21.1312 10.1625 21.5854 9.61133 21.8223C9.19784 21.9999 8.67337 22 7.625 22H5.375C4.32663 22 3.80216 21.9999 3.38867 21.8223C2.83749 21.5854 2.39922 21.1312 2.1709 20.5596C1.99969 20.1308 2 19.5871 2 18.5C2 17.4129 1.99969 16.8692 2.1709 16.4404C2.39922 15.8688 2.83749 15.4146 3.38867 15.1777C3.80216 15.0001 4.32663 15 5.375 15H7.625Z"/><path d="M17.5 11C19.6213 11 20.6818 11.0002 21.3408 11.6445C21.9998 12.2889 22 13.3262 22 15.4004V17.5996C22 19.6738 21.9998 20.7111 21.3408 21.3555C20.6818 21.9998 19.6213 22 17.5 22C15.3787 22 14.3182 21.9998 13.6592 21.3555C13.0002 20.7111 13 19.6738 13 17.5996V15.4004C13 13.3262 13.0002 12.2889 13.6592 11.6445C14.3182 11.0002 15.3787 11 17.5 11Z"/></g><path d="M6.5 2C8.62132 2 9.68181 2.00017 10.3408 2.64453C10.9998 3.2889 11 4.32621 11 6.40039V8.59961C11 10.6738 10.9998 11.7111 10.3408 12.3555C9.68181 12.9998 8.62132 13 6.5 13C4.37868 13 3.31819 12.9998 2.65918 12.3555C2.00017 11.7111 2 10.6738 2 8.59961V6.40039C2 4.32621 2.00017 3.2889 2.65918 2.64453C3.31819 2.00017 4.37868 2 6.5 2Z"/><path d="M18.625 2C19.6734 2 20.1978 2.00012 20.6113 2.17773C21.1625 2.41459 21.6008 2.8688 21.8291 3.44043C22.0003 3.86921 22 4.41293 22 5.5C22 6.58707 22.0003 7.13079 21.8291 7.55957C21.6008 8.1312 21.1625 8.58541 20.6113 8.82227C20.1978 8.99988 19.6734 9 18.625 9H16.375C15.3266 9 14.8022 8.99988 14.3887 8.82227C13.8375 8.58541 13.3992 8.1312 13.1709 7.55957C12.9997 7.13079 13 6.58707 13 5.5C13 4.41293 12.9997 3.86921 13.1709 3.44043C13.3992 2.8688 13.8375 2.41459 14.3887 2.17773C14.8022 2.00012 15.3266 2 16.375 2H18.625Z"/></g></svg>\ No newline at end of filediff --git a/assets/icons/so-x.svg b/assets/icons/so-x.svgnew file mode 100644index 0000000..a98ad49--- /dev/null+++ b/assets/icons/so-x.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="currentColor"><path d="M12 22C7.28595 22 4.92893 22 3.46447 20.5355C2 19.0711 2 16.714 2 12C2 7.28595 2 4.92893 3.46447 3.46447C4.92893 2 7.28595 2 12 2C16.714 2 19.0711 2 20.5355 3.46447C22 4.92893 22 7.28595 22 12C22 16.714 22 19.0711 20.5355 20.5355C19.0711 22 16.714 22 12 22Z" opacity=".5"/><path d="M8.96967 8.96967C9.26256 8.67678 9.73744 8.67678 10.0303 8.96967L12 10.9394L13.9697 8.96969C14.2626 8.6768 14.7374 8.6768 15.0303 8.96969C15.3232 9.26258 15.3232 9.73746 15.0303 10.0303L13.0607 12L15.0303 13.9697C15.3232 14.2625 15.3232 14.7374 15.0303 15.0303C14.7374 15.3232 14.2625 15.3232 13.9696 15.0303L12 13.0607L10.0304 15.0303C9.73746 15.3232 9.26258 15.3232 8.96969 15.0303C8.6768 14.7374 8.6768 14.2626 8.96969 13.9697L10.9394 12L8.96967 10.0303C8.67678 9.73744 8.67678 9.26256 8.96967 8.96967Z"/></g></svg>\ No newline at end of filediff --git a/assets/icons/so-zap.svg b/assets/icons/so-zap.svgnew file mode 100644index 0000000..f09fdb3--- /dev/null+++ b/assets/icons/so-zap.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="currentColor"><path fill-rule="evenodd" d="M8.73167 5.77133L5.66953 9.91436C4.3848 11.6526 3.74244 12.5217 4.09639 13.205C4.10225 13.2164 4.10829 13.2276 4.1145 13.2387C4.48945 13.9117 5.59888 13.9117 7.81775 13.9117C9.05079 13.9117 9.6673 13.9117 10.054 14.2754L10.074 14.2946L13.946 9.72466L13.926 9.70541C13.5474 9.33386 13.5474 8.74151 13.5474 7.55682V7.24712C13.5474 3.96249 13.5474 2.32018 12.6241 2.03721C11.7007 1.75425 10.711 3.09327 8.73167 5.77133Z" clip-rule="evenodd"/><path d="M10.4527 16.4432L10.4527 16.7528C10.4527 20.0374 10.4527 21.6798 11.376 21.9627C12.2994 22.2457 13.2891 20.9067 15.2685 18.2286L18.3306 14.0856C19.6154 12.3474 20.2577 11.4783 19.9038 10.7949C19.8979 10.7836 19.8919 10.7724 19.8857 10.7613C19.5107 10.0883 18.4013 10.0883 16.1824 10.0883C14.9494 10.0883 14.3329 10.0883 13.9462 9.72461L10.0742 14.2946C10.4528 14.6661 10.4527 15.2585 10.4527 16.4432Z" opacity=".5"/></g></svg>\ No newline at end of filediff --git a/scripts/bundle-macos.sh b/scripts/bundle-macos.shindex 20ad99f..63cce69 100755--- a/scripts/bundle-macos.sh+++ b/scripts/bundle-macos.sh@@ -38,6 +38,15 @@ cat > "$app/Contents/Info.plist" <<PLIST</plist>PLIST-# Ad-hoc signature so Gatekeeper treats it as one app; replace with a Developer ID to distribute.-codesign --force --deep --sign - "$app" >/dev/null 2>&1 || echo "warning: codesign failed; the app still runs locally" >&2+# Signed with the Developer ID when there is one (MUXEN_SIGN_IDENTITY, else the+# first in the keychain), so the app keeps one identity across builds: macOS+# keeps its Keychain items (cloud sign-ins) and permissions. Not --deep: the+# agents inside are already signed with their own identifier, which the+# permissions on the user's Macs (Screen Recording, Accessibility) belong to.+identity=${MUXEN_SIGN_IDENTITY:-$(security find-identity -v -p codesigning 2>/dev/null | sed -n 's/.*"\(Developer ID Application: [^"]*\)".*/\1/p' | head -n1)}+if [ -n "$identity" ]; then+ codesign --force --timestamp=none --identifier com.lumarylabs.muxen -s "$identity" "$app" >/dev/null 2>&1 || echo "warning: signing with $identity failed" >&2+else+ codesign --force --sign - "$app" >/dev/null 2>&1 || echo "warning: codesign failed; the app still runs locally" >&2+fiecho "Built $app"diff --git a/src/api.rs b/src/api.rsindex 0331117..0a220ff 100644--- a/src/api.rs+++ b/src/api.rs@@ -85,7 +85,7 @@ fn op_error(message: String) -> ApiError {let lower = message.to_ascii_lowercase();let code = if lower.contains("another operation") || lower.contains("still running") {"busy"- } else if lower.contains("isn't in fleet.toml") || lower.contains("isn't in the fleet") {+ } else if lower.contains("isn't in config.toml") || lower.contains("isn't in the fleet") {"not_found"} else {"invalid"@@ -227,6 +227,18 @@ impl std::str::FromStr for ActionName {}}+#[derive(Debug, Deserialize)]+#[serde(deny_unknown_fields)]+pub struct CancelRunRequest {+ /// A queued or running job (`list_jobs`); its whole workflow run is cancelled.+ pub job_id: u64,+ /// Wait for GitHub to accept it (default true).+ #[serde(default = "yes")]+ pub wait: bool,+ #[serde(default)]+ pub timeout_secs: Option<u64>,+}+#[derive(Debug, Deserialize)]#[serde(deny_unknown_fields)]pub struct RunnerActionRequest {@@ -439,7 +451,7 @@ pub struct RunnerOut {pub state: String,/// Where `state` came from: "github" (live), "probe" (last machine check) or "none".pub source: String,- /// Listed in fleet.toml (vs discovered on the machine or on GitHub).+ /// Listed in config.toml (vs discovered on the machine or on GitHub).pub declared: bool,pub labels: Vec<String>,pub version: Option<String>,@@ -1072,7 +1084,7 @@ pub async fn check(engine: &Arc<Engine>, req: CheckRequest) -> ApiResult<Vec<Maclet s = engine.current();let m = find_machine(&s, id)?;if m.host.is_empty() {- return Err(ApiError::invalid(format!("{} has no host in fleet.toml, so it can't be checked.", m.name)));+ return Err(ApiError::invalid(format!("{} has no host in config.toml, so it can't be checked.", m.name)));}Some(m.id.clone())}@@ -1196,6 +1208,81 @@ pub async fn runner_action(engine: &Arc<Engine>, req: RunnerActionRequest, surfafinish_action(engine, op, req.wait, timeout, tail, runner.machine_id.clone(), vec![runner.name.clone()], surface, on_line).await}+/// The DigitalOcean account, regions, sizes and defaults for a new cloud machine.+pub async fn cloud_options(engine: &Arc<Engine>) -> crate::cloud::CloudOptions {+ engine.cloud_options().await+}++#[derive(Debug, Deserialize)]+#[serde(deny_unknown_fields)]+pub struct CloudCreateRequest {+ pub name: String,+ #[serde(default)]+ pub region: Option<String>,+ #[serde(default)]+ pub size: Option<String>,+ /// What it comes with, by id (cloud::setup::EXTRAS: tools, languages, agent CLIs, tailscale).+ #[serde(default)]+ pub install: Option<Vec<String>>,+ /// Wait until it's set up and in the fleet (default true; takes a few minutes).+ #[serde(default = "yes")]+ pub wait: bool,+ #[serde(default)]+ pub timeout_secs: Option<u64>,+}++/// Creates a DigitalOcean droplet and adds it to the fleet.+pub async fn cloud_create(engine: &Arc<Engine>, req: CloudCreateRequest, surface: Surface, on_line: impl FnMut(&str)) -> ApiResult<ActionResponse> {+ freshen(engine).await;+ let machine = crate::cloud::CloudCreate {+ name: req.name,+ region: req.region,+ size: req.size,+ install: req.install,+ };+ let op = engine.cloud_create(machine).map_err(op_error)?;+ finish_action(engine, op, req.wait, req.timeout_secs.unwrap_or(1800), DEFAULT_TAIL, None, Vec::new(), surface, on_line).await+}++#[derive(Debug, Deserialize)]+#[serde(deny_unknown_fields)]+pub struct CloudMachineRequest {+ pub machine_id: String,+ /// For power: "on" or "off".+ #[serde(default)]+ pub power: Option<String>,+ #[serde(default = "yes")]+ pub wait: bool,+}++/// Destroys a cloud machine: deletes the droplet and removes it from the fleet.+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();+ let op = engine.cloud_destroy(&m.id).map_err(op_error)?;+ finish_action(engine, op, req.wait, 300, DEFAULT_TAIL, Some(m.id), Vec::new(), surface, on_line).await+}++/// Powers a cloud machine on or off (it's still billed while off).+pub async fn cloud_power(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();+ let on = match req.power.as_deref() {+ Some("on") => true,+ Some("off") => false,+ _ => return Err(ApiError::invalid("power must be \"on\" or \"off\".")),+ };+ let op = engine.cloud_power(&m.id, on).map_err(op_error)?;+ finish_action(engine, op, req.wait, 300, DEFAULT_TAIL, Some(m.id), Vec::new(), surface, on_line).await+}++/// Cancels the workflow run a queued or running job belongs to.+pub async fn cancel_run(engine: &Arc<Engine>, req: CancelRunRequest, surface: Surface, on_line: impl FnMut(&str)) -> ApiResult<ActionResponse> {+ freshen(engine).await;+ let op = engine.cancel_run(req.job_id).map_err(op_error)?;+ finish_action(engine, op, req.wait, req.timeout_secs.unwrap_or(60), DEFAULT_TAIL, None, Vec::new(), surface, on_line).await+}+#[allow(clippy::too_many_arguments)]async fn finish_action(engine: &Arc<Engine>,@@ -1654,7 +1741,7 @@ fn ws_error(message: String, surface: Surface) -> ApiError {let m = message.to_ascii_lowercase();let code = if m.contains("not implemented") || m.contains("implemented yet") {"internal"- } else if m.contains("no workspace") || m.contains("unknown workspace") || m.contains("isn't in fleet.toml") || m.contains("no machine") || m.contains("not found") {+ } else if m.contains("no workspace") || m.contains("unknown workspace") || m.contains("isn't in config.toml") || m.contains("no machine") || m.contains("not found") {"not_found"} else if m.contains("unreachable")|| m.contains("timed out")@@ -1674,8 +1761,8 @@ fn ws_error(message: String, surface: Surface) -> ApiError {err = err.with_hint("The machine didn't answer over ssh. Check that `ssh <host>` works without a password prompt, or pick another machine.");} 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 fleet.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 fleet.toml), or pick another machine.",+ "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.",));} else if m.contains("rsync") {err = err.with_hint("Install rsync on both this computer and the machine.");@@ -1945,7 +2032,7 @@ pub fn workspace_allow(engine: &Arc<Engine>, req: WorkspaceAllowRequest, surfacelet s = engine.current();let m = find_machine(&s, &req.machine_id)?;if m.host.is_empty() {- return Err(ApiError::invalid(format!("{} has no host in fleet.toml, so it can't host workspaces.", m.name)));+ return Err(ApiError::invalid(format!("{} has no host in config.toml, so it can't host workspaces.", m.name)));}let id = m.id.clone();engine.set_workspaces_allowed(&id, req.allowed).map_err(|e| ws_error(e, surface))?;@@ -2200,7 +2287,7 @@ pub struct SessionListRequest {#[serde(deny_unknown_fields)]pub struct SessionStartRequest {pub machine_id: String,- /// "claude", "codex", "opencode", "gemini", "amp" or "shell".+ /// "claude", "codex", "opencode", "gemini", "amp", "pi" or "shell".pub agent: String,/// Folder on the machine to start in. Default: the home folder.#[serde(default)]diff --git a/src/cli.rs b/src/cli.rsindex 0a28cbd..b06544d 100644--- a/src/cli.rs+++ b/src/cli.rs@@ -205,6 +205,42 @@ pub fn jobs(j: &JobsResponse) -> String {out}+pub fn cloud_options(o: &crate::cloud::CloudOptions) -> String {+ let mut out = String::new();+ let method = match o.method.as_str() {+ "oauth" => "browser sign-in",+ "doctl" => "doctl",+ _ => "API token",+ };+ 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"),+ }+ if let Some(e) = &o.error {+ out.push_str(&format!(" {e}\n"));+ }+ if !o.regions.is_empty() {+ out.push_str(&format!("Regions: {} (default {})\n", o.regions.iter().map(|r| r.slug.as_str()).collect::<Vec<_>>().join(", "), o.default_region));+ }+ if !o.sizes.is_empty() {+ out.push_str("Sizes:\n");+ for s in &o.sizes {+ let mark = if s.slug == o.default_size { "*" } else { " " };+ out.push_str(&format!(+ " {mark} {:<18} {:>2} vCPU {:>3} GB {:>4} GB disk ${:.3}/h ${:.0}/mo\n",+ s.slug,+ s.vcpus,+ s.memory_mb / 1024,+ s.disk_gb,+ s.price_hourly,+ s.price_monthly+ ));+ }+ }+ out+}+pub fn action(r: &ActionResponse) -> String {let o = &r.operation;let mut out = String::new();diff --git a/src/cloud/auth.rs b/src/cloud/auth.rsnew file mode 100644index 0000000..d357b9c--- /dev/null+++ b/src/cloud/auth.rs@@ -0,0 +1,278 @@+//! How Muxen 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+//! 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.++use std::path::{Path, PathBuf};+use std::time::Duration;++use serde::{Deserialize, Serialize};++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+/// 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.+const CLIENT_ID: &str = "df4228c4a87c9e8d950e0a519d5f41796c0131356c188e5dcabe2e152d59f7b7";++/// 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.+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";++fn client_id() -> Option<&'static str> {+ Some(option_env!("MUXEN_DO_CLIENT_ID").unwrap_or(CLIENT_ID)).filter(|id| !id.is_empty())+}++/// Whether this build can sign in with the browser.+pub fn oauth_available() -> bool {+ client_id().is_some()+}++#[derive(Debug, Clone, Serialize, Deserialize)]+struct OAuthTokens {+ access_token: String,+ refresh_token: String,+ /// Unix seconds.+ expires_at: i64,+}++/// A token for the API, by the chosen method.+pub async fn token(method: &str, dir: &Path) -> Result<String, String> {+ match method {+ "doctl" => doctl_token().ok_or_else(|| "doctl isn't signed in on this computer. Run `doctl auth init`, or pick another way in Settings › Cloud.".into()),+ "oauth" => oauth_token(dir).await,+ _ => secrets::get(dir, TOKEN).ok_or_else(|| "Connect DigitalOcean first: paste an API token in Settings › Cloud.".into()),+ }+}++/// Whether the chosen method has a sign-in to use (without asking DigitalOcean).+pub fn signed_in(method: &str, dir: &Path) -> bool {+ match method {+ "doctl" => doctl_token().is_some(),+ "oauth" => secrets::get(dir, OAUTH).is_some(),+ _ => secrets::get(dir, TOKEN).is_some(),+ }+}++/// Forgets the sign-in of a method (doctl's own login stays doctl's).+pub fn sign_out(method: &str, dir: &Path) {+ match method {+ "oauth" => secrets::delete(dir, OAUTH),+ "token" => secrets::delete(dir, TOKEN),+ _ => {}+ }+}++pub fn save_token(dir: &Path, token: &str) -> Result<(), String> {+ let token = token.trim();+ if token.is_empty() || token.contains(char::is_whitespace) {+ return Err("That doesn't look like a DigitalOcean token.".into());+ }+ secrets::set(dir, TOKEN, token)+}++// ---------------------------------------------------------------------------+// doctl++fn doctl_config() -> Option<PathBuf> {+ let candidates = [+ dirs::config_dir().map(|d| d.join("doctl").join("config.yaml")),+ dirs::home_dir().map(|h| h.join(".config").join("doctl").join("config.yaml")),+ ];+ candidates.into_iter().flatten().find(|p| p.exists())+}++/// The token of doctl's current context, from its config.yaml.+fn doctl_token() -> Option<String> {+ if let Ok(t) = std::env::var("DIGITALOCEAN_ACCESS_TOKEN") {+ if !t.trim().is_empty() {+ return Some(t.trim().to_string());+ }+ }+ let text = std::fs::read_to_string(doctl_config()?).ok()?;+ doctl_token_in(&text)+}++fn doctl_token_in(text: &str) -> Option<String> {+ let top = |key: &str| {+ text.lines().find_map(|l| l.strip_prefix(&format!("{key}:")).map(|v| v.trim().trim_matches('"').trim_matches('\'').to_string())).filter(|v| !v.is_empty())+ };+ let context = top("context").unwrap_or_else(|| "default".into());+ if context == "default" {+ return top("access-token");+ }+ // auth-contexts:+ // work: dop_v1_...+ let mut inside = false;+ for line in text.lines() {+ if line.starts_with("auth-contexts:") {+ inside = true;+ continue;+ }+ if inside {+ if !line.starts_with(' ') && !line.trim().is_empty() {+ break;+ }+ if let Some((name, value)) = line.trim().split_once(':') {+ if name.trim() == context {+ return Some(value.trim().trim_matches('"').to_string()).filter(|v| !v.is_empty());+ }+ }+ }+ }+ None+}++// ---------------------------------------------------------------------------+// OAuth++fn saved_tokens(dir: &Path) -> Result<OAuthTokens, String> {+ let saved = secrets::get(dir, OAUTH).ok_or("Sign in with DigitalOcean first (Settings › Cloud).")?;+ serde_json::from_str(&saved).map_err(|_| "The DigitalOcean sign-in is damaged; sign in again.".to_string())+}++async fn oauth_token(dir: &Path) -> Result<String, String> {+ let fresh_enough = |t: &OAuthTokens| t.expires_at - 120 > chrono::Utc::now().timestamp();+ let tokens = saved_tokens(dir)?;+ if fresh_enough(&tokens) {+ return Ok(tokens.access_token);+ }+ // A refresh token works once: one refresh at a time, and whoever waited+ // uses the tokens the first one saved.+ static REFRESH: tokio::sync::Mutex<()> = tokio::sync::Mutex::const_new(());+ let _one = REFRESH.lock().await;+ let tokens = saved_tokens(dir)?;+ 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 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())?;+ secrets::set(dir, OAUTH, &serde_json::to_string(&fresh).unwrap_or_default())?;+ Ok(fresh.access_token)+}++/// PKCE: a random verifier, and its SHA-256 (base64url) for the authorization request.+fn pkce() -> (String, String) {+ let verifier = crate::util::random_token(64);+ let challenge = challenge_for(&verifier);+ (verifier, challenge)+}++fn challenge_for(verifier: &str) -> String {+ use base64::Engine as _;+ let digest = ring::digest::digest(&ring::digest::SHA256, verifier.as_bytes());+ base64::engine::general_purpose::URL_SAFE_NO_PAD.encode(digest.as_ref())+}++async fn exchange(params: &[(&str, &str)]) -> Result<OAuthTokens, String> {+ #[derive(Deserialize)]+ struct Answer {+ access_token: String,+ #[serde(default)]+ refresh_token: String,+ #[serde(default)]+ expires_in: i64,+ }+ let http = reqwest::Client::builder().timeout(Duration::from_secs(30)).build().map_err(|e| e.to_string())?;+ let url = reqwest::Url::parse_with_params("https://cloud.digitalocean.com/v1/oauth/token", params).map_err(|e| e.to_string())?;+ let resp = http.post(url).send().await.map_err(|e| format!("Couldn't reach DigitalOcean: {e}"))?;+ if !resp.status().is_success() {+ return Err(format!("DigitalOcean didn't accept the sign-in ({}). Sign in again.", resp.status()));+ }+ let a: Answer = resp.json().await.map_err(|e| format!("Unexpected answer from DigitalOcean: {e}"))?;+ Ok(OAuthTokens { access_token: a.access_token, refresh_token: a.refresh_token, expires_at: chrono::Utc::now().timestamp() + a.expires_in.max(60) })+}++/// The browser sign-in: opens DigitalOcean's consent page (`open`), waits up+/// 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.")?;+ // 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();+ let callback = format!("http://127.0.0.1:{port}{CALLBACK_PATH}");+ let state = crate::util::random_token(24);+ let (verifier, challenge) = pkce();+ let url = reqwest::Url::parse_with_params(+ "https://cloud.digitalocean.com/v1/oauth/authorize",+ &[+ ("client_id", id),+ ("redirect_uri", callback.as_str()),+ ("response_type", "code"),+ ("scope", SCOPES),+ ("state", state.as_str()),+ ("code_challenge", challenge.as_str()),+ ("code_challenge_method", "S256"),+ ],+ )+ .map_err(|e| e.to_string())?;+ open(url.as_str());+ let accept = async {+ loop {+ let (mut sock, _) = listener.accept().await.map_err(|e| e.to_string())?;+ let mut buf = vec![0u8; 8192];+ let n = sock.read(&mut buf).await.unwrap_or(0);+ let request = String::from_utf8_lossy(&buf[..n]).to_string();+ let target = request.split_whitespace().nth(1).unwrap_or("").to_string();+ let parsed = reqwest::Url::parse(&format!("http://127.0.0.1{target}")).ok();+ let query = |k: &str| parsed.as_ref().and_then(|u| u.query_pairs().find(|(key, _)| key == k).map(|(_, v)| v.to_string()));+ if parsed.as_ref().is_none_or(|u| u.path() != CALLBACK_PATH) {+ let _ = sock.write_all(b"HTTP/1.1 404 Not Found\r\ncontent-length: 0\r\n\r\n").await;+ 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."),+ };+ 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 _ = 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;+ }+ };+ let code = tokio::time::timeout(Duration::from_secs(300), accept).await.map_err(|_| "The sign-in timed out.".to_string())??;+ let tokens = exchange(&[+ ("grant_type", "authorization_code"),+ ("code", &code),+ ("client_id", id),+ ("code_verifier", &verifier),+ ("redirect_uri", &callback),+ ])+ .await?;+ secrets::set(dir, OAUTH, &serde_json::to_string(&tokens).unwrap_or_default())+}++#[cfg(test)]+mod tests {+ use super::*;++ #[test]+ fn pkce_matches_the_rfc() {+ // RFC 7636, appendix B.+ assert_eq!(challenge_for("dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk"), "E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM");+ let (v, c) = pkce();+ assert_eq!(v.len(), 64);+ assert_eq!(c, challenge_for(&v));+ }++ #[test]+ fn reads_doctl_contexts() {+ assert_eq!(doctl_token_in("access-token: dop_v1_a\ncontext: default\n").as_deref(), Some("dop_v1_a"));+ let multi = "access-token: dop_v1_a\nauth-contexts:\n work: dop_v1_w\n home: dop_v1_h\ncontext: home\n";+ assert_eq!(doctl_token_in(multi).as_deref(), Some("dop_v1_h"));+ assert_eq!(doctl_token_in("context: default\n"), None);+ }+}diff --git a/src/cloud/digitalocean.rs b/src/cloud/digitalocean.rsnew file mode 100644index 0000000..feb5414--- /dev/null+++ b/src/cloud/digitalocean.rs@@ -0,0 +1,236 @@+//! DigitalOcean's API (v2), for the few things Muxen does there: who's signed+//! in, which regions and sizes exist, the account's SSH keys, and creating,+//! reading, powering and destroying droplets.++use std::time::Duration;++use reqwest::{Method, StatusCode};+use serde::{Deserialize, Serialize};+use serde_json::{Value, json};++const API: &str = "https://api.digitalocean.com/v2";++/// The image new machines run.+pub const IMAGE: &str = "ubuntu-24-04-x64";++pub struct Client {+ http: reqwest::Client,+ token: String,+}++#[derive(Debug, Clone, Serialize, Deserialize, Default)]+pub struct Account {+ pub email: String,+ pub team: Option<String>,+ pub droplet_limit: u32,+ pub status: String,+}++#[derive(Debug, Clone, Serialize)]+pub struct Region {+ pub slug: String,+ pub name: String,+ pub sizes: Vec<String>,+}++#[derive(Debug, Clone, Serialize)]+pub struct Size {+ pub slug: String,+ pub vcpus: u32,+ pub memory_mb: u32,+ pub disk_gb: u32,+ pub price_hourly: f64,+ pub price_monthly: f64,+ pub regions: Vec<String>,+ pub description: String,+}++#[derive(Debug, Clone, Serialize)]+pub struct Droplet {+ pub id: u64,+ pub name: String,+ /// "new" | "active" | "off" | "archive"+ pub status: String,+ pub ipv4: Option<String>,+ pub region: String,+ pub size: String,+ pub price_hourly: f64,+ pub created_at: String,+}++#[derive(Debug, Clone)]+pub struct SshKey {+ pub id: u64,+ pub public_key: String,+}++impl Client {+ pub fn new(token: String) -> Client {+ let http = reqwest::Client::builder().timeout(Duration::from_secs(30)).build().unwrap_or_default();+ Client { http, token }+ }++ async fn call(&self, method: Method, path: &str, body: Option<Value>) -> Result<Value, String> {+ let mut req = self+ .http+ .request(method, format!("{API}{path}"))+ .bearer_auth(&self.token)+ .header("User-Agent", concat!("muxen/", env!("CARGO_PKG_VERSION")));+ if let Some(b) = body {+ req = req.json(&b);+ }+ let resp = req.send().await.map_err(|e| format!("Couldn't reach DigitalOcean: {e}"))?;+ let status = resp.status();+ let text = resp.text().await.unwrap_or_default();+ if status.is_success() {+ return Ok(if text.trim().is_empty() { Value::Null } else { serde_json::from_str(&text).unwrap_or(Value::Null) });+ }+ let message = serde_json::from_str::<Value>(&text).ok().and_then(|v| v["message"].as_str().map(str::to_string)).unwrap_or_default();+ Err(match status {+ StatusCode::UNAUTHORIZED => "DigitalOcean didn't accept the sign-in. Connect again in Settings › Cloud.".into(),+ StatusCode::FORBIDDEN => format!("DigitalOcean refused: {message} (the token may be read-only)"),+ StatusCode::TOO_MANY_REQUESTS => "DigitalOcean is rate-limiting requests; try again in a minute.".into(),+ _ if message.is_empty() => format!("DigitalOcean answered {status}"),+ _ => format!("DigitalOcean: {message}"),+ })+ }++ pub async fn account(&self) -> Result<Account, String> {+ let v = self.call(Method::GET, "/account", None).await?;+ let a = &v["account"];+ Ok(Account {+ email: a["email"].as_str().unwrap_or_default().to_string(),+ team: a["team"]["name"].as_str().map(str::to_string),+ droplet_limit: a["droplet_limit"].as_u64().unwrap_or(0) as u32,+ status: a["status"].as_str().unwrap_or_default().to_string(),+ })+ }++ pub async fn regions(&self) -> Result<Vec<Region>, String> {+ let v = self.call(Method::GET, "/regions?per_page=200", None).await?;+ Ok(v["regions"]+ .as_array()+ .into_iter()+ .flatten()+ .filter(|r| r["available"].as_bool().unwrap_or(false))+ .map(|r| Region {+ slug: r["slug"].as_str().unwrap_or_default().to_string(),+ name: r["name"].as_str().unwrap_or_default().to_string(),+ sizes: strings(&r["sizes"]),+ })+ .collect())+ }++ pub async fn sizes(&self) -> Result<Vec<Size>, String> {+ let v = self.call(Method::GET, "/sizes?per_page=200", None).await?;+ let mut sizes: Vec<Size> = v["sizes"]+ .as_array()+ .into_iter()+ .flatten()+ .filter(|s| s["available"].as_bool().unwrap_or(false))+ .map(|s| Size {+ slug: s["slug"].as_str().unwrap_or_default().to_string(),+ vcpus: s["vcpus"].as_u64().unwrap_or(0) as u32,+ memory_mb: s["memory"].as_u64().unwrap_or(0) as u32,+ disk_gb: s["disk"].as_u64().unwrap_or(0) as u32,+ price_hourly: s["price_hourly"].as_f64().unwrap_or(0.),+ price_monthly: s["price_monthly"].as_f64().unwrap_or(0.),+ regions: strings(&s["regions"]),+ description: s["description"].as_str().unwrap_or_default().to_string(),+ })+ .collect();+ sizes.sort_by(|a, b| a.price_monthly.total_cmp(&b.price_monthly));+ Ok(sizes)+ }++ pub async fn ssh_keys(&self) -> Result<Vec<SshKey>, String> {+ let v = self.call(Method::GET, "/account/keys?per_page=200", None).await?;+ Ok(v["ssh_keys"]+ .as_array()+ .into_iter()+ .flatten()+ .map(|k| SshKey { id: k["id"].as_u64().unwrap_or(0), public_key: k["public_key"].as_str().unwrap_or_default().to_string() })+ .collect())+ }++ pub async fn add_ssh_key(&self, name: &str, public_key: &str) -> Result<SshKey, String> {+ let v = self.call(Method::POST, "/account/keys", Some(json!({ "name": name, "public_key": public_key }))).await?;+ let k = &v["ssh_key"];+ Ok(SshKey { id: k["id"].as_u64().unwrap_or(0), public_key: k["public_key"].as_str().unwrap_or_default().to_string() })+ }++ pub async fn create_droplet(&self, name: &str, region: &str, size: &str, ssh_key: u64, user_data: &str) -> Result<Droplet, String> {+ let body = json!({+ "name": name,+ "region": region,+ "size": size,+ "image": IMAGE,+ "ssh_keys": [ssh_key],+ "user_data": user_data,+ "monitoring": true,+ "ipv6": true,+ });+ let v = self.call(Method::POST, "/droplets", Some(body)).await?;+ Ok(droplet(&v["droplet"]))+ }++ pub async fn droplet(&self, id: u64) -> Result<Droplet, String> {+ let v = self.call(Method::GET, &format!("/droplets/{id}"), None).await?;+ Ok(droplet(&v["droplet"]))+ }++ pub async fn delete_droplet(&self, id: u64) -> Result<(), String> {+ match self.call(Method::DELETE, &format!("/droplets/{id}"), None).await {+ // Already gone is what was wanted.+ Err(e) if e.contains("404") || e.to_lowercase().contains("not be found") => Ok(()),+ other => other.map(|_| ()),+ }+ }++ /// "power_on", "power_off" (hard) or "shutdown" (clean).+ pub async fn droplet_action(&self, id: u64, action: &str) -> Result<(), String> {+ self.call(Method::POST, &format!("/droplets/{id}/actions"), Some(json!({ "type": action }))).await.map(|_| ())+ }+}++fn strings(v: &Value) -> Vec<String> {+ v.as_array().into_iter().flatten().filter_map(|s| s.as_str().map(str::to_string)).collect()+}++fn droplet(d: &Value) -> Droplet {+ let ipv4 = d["networks"]["v4"].as_array().into_iter().flatten().find(|n| n["type"] == "public").and_then(|n| n["ip_address"].as_str()).map(str::to_string);+ Droplet {+ id: d["id"].as_u64().unwrap_or(0),+ name: d["name"].as_str().unwrap_or_default().to_string(),+ status: d["status"].as_str().unwrap_or_default().to_string(),+ ipv4,+ region: d["region"]["slug"].as_str().unwrap_or_default().to_string(),+ size: d["size_slug"].as_str().or(d["size"]["slug"].as_str()).unwrap_or_default().to_string(),+ price_hourly: d["size"]["price_hourly"].as_f64().unwrap_or(0.),+ created_at: d["created_at"].as_str().unwrap_or_default().to_string(),+ }+}++/// Whether two public keys are the same key (type and body; the comment doesn't matter).+pub fn same_key(a: &str, b: &str) -> bool {+ let core = |k: &str| k.split_whitespace().take(2).collect::<Vec<_>>().join(" ");+ !core(a).is_empty() && core(a) == core(b)+}++#[cfg(test)]+mod tests {+ use super::*;++ #[test]+ fn reads_a_droplet() {+ let v = json!({+ "id": 7, "name": "dev", "status": "active", "created_at": "2026-10-09T12:00:00Z",+ "region": { "slug": "nyc3" }, "size_slug": "s-2vcpu-4gb", "size": { "price_hourly": 0.03571 },+ "networks": { "v4": [ { "ip_address": "10.0.0.2", "type": "private" }, { "ip_address": "203.0.113.7", "type": "public" } ] }+ });+ let d = droplet(&v);+ assert_eq!((d.id, d.ipv4.as_deref(), d.region.as_str(), d.size.as_str()), (7, Some("203.0.113.7"), "nyc3", "s-2vcpu-4gb"));+ assert!(same_key("ssh-ed25519 AAAA me@mac", "ssh-ed25519 AAAA other comment"));+ assert!(!same_key("ssh-ed25519 AAAA", "ssh-ed25519 BBBB"));+ }+}diff --git a/src/cloud/mod.rs b/src/cloud/mod.rsnew file mode 100644index 0000000..cfab157--- /dev/null+++ b/src/cloud/mod.rs@@ -0,0 +1,113 @@+//! Cloud machines: droplets Muxen creates in the user's DigitalOcean account,+//! sets up, and adds to the fleet (see ops::cloud for the operations).++pub mod auth;+pub mod digitalocean;+pub mod secrets;+pub mod setup;++use serde::{Deserialize, Serialize};++pub use digitalocean::{Account, Region, Size};++/// The secret name of the Tailscale auth key new machines join with.+pub const TAILSCALE_KEY: &str = "tailscale-authkey";++/// What a new machine can be: the account, regions and sizes, and the defaults.+#[derive(Debug, Clone, Serialize, Default)]+pub struct CloudOptions {+ pub provider: String,+ /// "token" | "oauth" | "doctl"+ pub method: String,+ pub signed_in: bool,+ /// The browser sign-in is built into this copy of Muxen.+ pub oauth_available: bool,+ pub account: Option<Account>,+ pub regions: Vec<Region>,+ pub sizes: Vec<Size>,+ pub default_region: String,+ pub default_size: String,+ /// The public key new machines get, "~/.ssh/id_ed25519.pub".+ pub ssh_key: Option<String>,+ /// Why the regions and sizes couldn't be read.+ pub error: Option<String>,+}++/// A new cloud machine.+#[derive(Debug, Clone, Deserialize)]+#[serde(deny_unknown_fields)]+pub struct CloudCreate {+ pub name: String,+ /// Region slug ("nyc3"); default: Settings, else the nearest.+ #[serde(default)]+ pub region: Option<String>,+ /// Size slug ("s-2vcpu-4gb"); default: Settings.+ #[serde(default)]+ pub size: Option<String>,+ /// What it comes with, by id (see setup::EXTRAS); default: Settings.+ #[serde(default)]+ pub install: Option<Vec<String>>,+}++/// One region per city, as people know them ("New York", not NYC1/NYC2/NYC3):+/// (city, region slug), the city's newest datacenter, Americas first, then+/// Europe, then Asia and Oceania.+pub fn cities(regions: &[Region]) -> Vec<(String, String)> {+ const ORDER: &[&str] = &[+ "New York", "Toronto", "Atlanta", "Richmond", "San Francisco", "Kansas City", "Memphis",+ "London", "Amsterdam", "Frankfurt",+ "Bangalore", "Singapore", "Sydney",+ ];+ let city_of = |r: &Region| r.name.trim_end_matches(|c: char| c.is_ascii_digit() || c == ' ').trim().to_string();+ let number = |slug: &str| slug.trim_start_matches(|c: char| c.is_ascii_alphabetic()).parse::<u32>().unwrap_or(0);+ let mut best: Vec<(String, String)> = Vec::new();+ for r in regions {+ let city = city_of(r);+ let city = if city.is_empty() { r.slug.to_uppercase() } else { city };+ match best.iter_mut().find(|(c, _)| *c == city) {+ Some(entry) if number(&r.slug) > number(&entry.1) => entry.1 = r.slug.clone(),+ Some(_) => {}+ None => best.push((city, r.slug.clone())),+ }+ }+ let rank = |c: &str| ORDER.iter().position(|o| *o == c).unwrap_or(ORDER.len());+ best.sort_by_key(|(c, _)| rank(c));+ best+}++/// The city a region slug is in, by the same names.+pub fn city_of_slug(regions: &[Region], slug: &str) -> Option<String> {+ let r = regions.iter().find(|r| r.slug == slug)?;+ Some(r.name.trim_end_matches(|c: char| c.is_ascii_digit() || c == ' ').trim().to_string())+}++/// The region nearest this computer, by its UTC offset, among `available`.+pub fn nearest_region(offset_hours: i32, available: &[String]) -> Option<String> {+ let preferences: &[&str] = match offset_hours {+ ..=-9 => &["sfo3", "sfo2", "nyc3"],+ -8..=-6 => &["sfo3", "tor1", "nyc3"],+ -5..=-3 => &["nyc3", "nyc1", "tor1"],+ -2..=2 => &["lon1", "ams3", "fra1"],+ 3..=4 => &["fra1", "ams3", "blr1"],+ 5..=6 => &["blr1", "sgp1"],+ 7..=9 => &["sgp1", "syd1"],+ _ => &["syd1", "sgp1"],+ };+ preferences.iter().map(|s| s.to_string()).find(|s| available.contains(s)).or_else(|| available.first().cloned())+}++#[cfg(test)]+mod tests {+ use super::*;++ #[test]+ fn one_choice_per_city() {+ let r = |slug: &str, name: &str| Region { slug: slug.into(), name: name.into(), sizes: Vec::new() };+ let regions = vec![r("nyc1", "New York 1"), r("sgp1", "Singapore 1"), r("nyc3", "New York 3"), r("lon1", "London 1"), r("nyc2", "New York 2")];+ assert_eq!(+ cities(®ions),+ vec![("New York".to_string(), "nyc3".to_string()), ("London".into(), "lon1".into()), ("Singapore".into(), "sgp1".into())]+ );+ assert_eq!(city_of_slug(®ions, "nyc1").as_deref(), Some("New York"));+ }+}diff --git a/src/cloud/secrets.rs b/src/cloud/secrets.rsnew file mode 100644index 0000000..c08e5b2--- /dev/null+++ b/src/cloud/secrets.rs@@ -0,0 +1,71 @@+//! Secrets Muxen keeps for the user (cloud tokens): in the macOS Keychain, or+//! elsewhere in a file only the user can read, next to config.toml.++use std::path::{Path, PathBuf};++const SERVICE: &str = "Muxen";++/// Stores a secret under a name ("digitalocean-token").+pub fn set(dir: &Path, name: &str, value: &str) -> Result<(), String> {+ #[cfg(target_os = "macos")]+ {+ let _ = dir;+ security_framework::passwords::set_generic_password(SERVICE, name, value.as_bytes()).map_err(|e| format!("Couldn't save to the Keychain: {e}"))+ }+ #[cfg(not(target_os = "macos"))]+ {+ let mut all = read_file(dir);+ all.insert(name.to_string(), value.to_string());+ write_file(dir, &all)+ }+}++pub fn get(dir: &Path, name: &str) -> Option<String> {+ #[cfg(target_os = "macos")]+ {+ let _ = dir;+ security_framework::passwords::get_generic_password(SERVICE, name).ok().and_then(|b| String::from_utf8(b).ok()).filter(|s| !s.is_empty())+ }+ #[cfg(not(target_os = "macos"))]+ {+ read_file(dir).remove(name).filter(|s| !s.is_empty())+ }+}++pub fn delete(dir: &Path, name: &str) {+ #[cfg(target_os = "macos")]+ {+ let _ = dir;+ let _ = security_framework::passwords::delete_generic_password(SERVICE, name);+ }+ #[cfg(not(target_os = "macos"))]+ {+ let mut all = read_file(dir);+ if all.remove(name).is_some() {+ let _ = write_file(dir, &all);+ }+ }+}++#[allow(dead_code)]+fn file(dir: &Path) -> PathBuf {+ dir.join("secrets.json")+}++#[cfg(not(target_os = "macos"))]+fn read_file(dir: &Path) -> std::collections::BTreeMap<String, String> {+ std::fs::read_to_string(file(dir)).ok().and_then(|t| serde_json::from_str(&t).ok()).unwrap_or_default()+}++#[cfg(not(target_os = "macos"))]+fn write_file(dir: &Path, all: &std::collections::BTreeMap<String, String>) -> Result<(), String> {+ let path = file(dir);+ let bytes = serde_json::to_vec_pretty(all).map_err(|e| e.to_string())?;+ crate::config::write_atomic(&path, &bytes).map_err(|e| format!("Couldn't save {}: {e:#}", path.display()))?;+ #[cfg(unix)]+ {+ use std::os::unix::fs::PermissionsExt;+ let _ = std::fs::set_permissions(&path, std::fs::Permissions::from_mode(0o600));+ }+ Ok(())+}diff --git a/src/cloud/setup.rs b/src/cloud/setup.rsnew file mode 100644index 0000000..e685a52--- /dev/null+++ b/src/cloud/setup.rs@@ -0,0 +1,244 @@+//! What a new cloud machine runs on its first boot (cloud-init `user_data`):+//! the user's account with sudo and their SSH key, git, then each extra the+//! user picked. Progress goes to /var/log/muxen-setup.log as "muxen-step: ..."+//! lines, and /var/lib/muxen/ready marks the end. A failing extra doesn't stop+//! the rest.++pub const READY: &str = "/var/lib/muxen/ready";+pub const LOG: &str = "/var/log/muxen-setup.log";++/// What a new machine can come with: (id, name).+pub const EXTRAS: &[(&str, &str)] = &[+ ("docker", "Docker"),+ ("gh", "GitHub CLI"),+ ("node", "Node.js"),+ ("python", "Python"),+ ("go", "Go"),+ ("rust", "Rust"),+ ("php", "PHP"),+ ("ruby", "Ruby"),+ ("java", "Java"),+ ("bun", "Bun"),+ ("deno", "Deno"),+ ("dotnet", ".NET"),+ ("claude", "Claude Code"),+ ("codex", "Codex"),+ ("gemini", "Gemini CLI"),+ ("opencode", "OpenCode"),+ ("amp", "Amp"),+ ("pi", "Pi"),+ ("tailscale", "Tailscale"),+];++/// The extras in groups, for choosing them: (group, ids).+pub const GROUPS: &[(&str, &[&str])] = &[+ ("Tools", &["docker", "gh"]),+ ("Languages", &["node", "python", "go", "rust", "php", "ruby", "java", "bun", "deno", "dotnet"]),+ ("Agent CLIs", &["claude", "codex", "gemini", "opencode", "amp", "pi"]),+ ("Network", &["tailscale"]),+];++/// An extra's name, by id.+pub fn extra_name(id: &str) -> &'static str {+ EXTRAS.iter().find(|(i, _)| *i == id).map(|(_, n)| *n).unwrap_or("")+}++/// The extras new machines come with unless the user picks otherwise.+pub fn default_extras() -> Vec<String> {+ ["docker", "gh", "node", "claude", "codex", "tailscale"].map(String::from).to_vec()+}++/// npm packages of the agent CLIs (they need Node.js).+fn npm_package(id: &str) -> Option<&'static str> {+ match id {+ "claude" => Some("@anthropic-ai/claude-code"),+ "codex" => Some("@openai/codex"),+ "gemini" => Some("@google/gemini-cli"),+ "opencode" => Some("opencode-ai"),+ "amp" => Some("@sourcegraph/amp"),+ // Pi's own install steps aren't needed (its README installs it this way).+ "pi" => Some("--ignore-scripts @earendil-works/pi-coding-agent"),+ _ => None,+ }+}++/// The extras as they'll install: known ones only, in catalog order, with+/// Node.js added when an agent CLI needs it.+pub fn resolve(picked: &[String]) -> Vec<&'static str> {+ let wants = |id: &str| picked.iter().any(|p| p == id) || (id == "node" && picked.iter().any(|p| npm_package(p).is_some()));+ EXTRAS.iter().map(|(id, _)| *id).filter(|id| wants(id)).collect()+}++/// A Linux user name for `name` (this computer's user, usually).+pub fn user_name(name: &str) -> String {+ let clean: String = name.to_lowercase().chars().filter(|c| c.is_ascii_alphanumeric() || *c == '_' || *c == '-').take(32).collect();+ match clean.chars().next() {+ Some(c) if c.is_ascii_lowercase() || c == '_' => clean,+ _ => "muxen".into(),+ }+}++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+exec >>/var/log/muxen-setup.log 2>&1+export DEBIAN_FRONTEND=noninteractive+step() { echo "muxen-step: $*"; }+extra() { name="$1"; shift; ( set -e; "$@" ) || echo "muxen-warn: $name didn't install"; }+apt_install() { apt-get -o DPkg::Lock::Timeout=600 install -y "$@"; }+as_user() { sudo -u "$USER_NAME" -H bash -lc "$1"; }+"#,+ );+ s.push_str(&format!("USER_NAME='{user}'\n"));+ s.push_str(+ r#"+step "Creating your account"+id -u "$USER_NAME" >/dev/null 2>&1 || useradd -m -s /bin/bash -G sudo "$USER_NAME"+echo "$USER_NAME ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/90-muxen && chmod 440 /etc/sudoers.d/90-muxen+install -d -m 700 -o "$USER_NAME" -g "$USER_NAME" "/home/$USER_NAME/.ssh"+install -m 600 -o "$USER_NAME" -g "$USER_NAME" /root/.ssh/authorized_keys "/home/$USER_NAME/.ssh/authorized_keys"++step "Updating packages and installing git"+apt-get -o DPkg::Lock::Timeout=600 update -y+apt_install git curl ca-certificates unzip jq build-essential++# Every login shell (terminals, agent sessions) finds what's installed below.+cat > /etc/profile.d/muxen-paths.sh <<'PATHS'+export PATH="$HOME/.local/bin:$HOME/.cargo/bin:$HOME/.bun/bin:$HOME/.deno/bin:/usr/local/go/bin:$HOME/go/bin:$PATH"+PATHS+"#,+ );+ for id in &extras {+ let block = match *id {+ "docker" => r#"+step "Installing Docker"+docker_() { curl -fsSL https://get.docker.com | sh; usermod -aG docker "$USER_NAME"; }+extra Docker docker_+"#+ .to_string(),+ "gh" => r#"+step "Installing the GitHub CLI"+gh_() {+ install -d -m 755 /etc/apt/keyrings+ curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg -o /etc/apt/keyrings/githubcli-archive-keyring.gpg+ chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg+ echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" > /etc/apt/sources.list.d/github-cli.list+ apt-get -o DPkg::Lock::Timeout=600 update -y+ apt_install gh+}+extra "GitHub CLI" gh_+"#+ .to_string(),+ "node" => r#"+step "Installing Node.js"+node_() { curl -fsSL https://deb.nodesource.com/setup_22.x | bash -; apt_install nodejs; }+extra Node.js node_+"#+ .to_string(),+ "python" => r#"+step "Installing Python tools"+python_() { apt_install python3 python3-pip python3-venv python3-dev; as_user 'curl -LsSf https://astral.sh/uv/install.sh | sh'; }+extra Python python_+"#+ .to_string(),+ "go" => r#"+step "Installing Go"+go_() {+ v=$(curl -fsSL 'https://go.dev/dl/?mode=json' | jq -r '.[0].version')+ arch=$(dpkg --print-architecture)+ rm -rf /usr/local/go && curl -fsSL "https://go.dev/dl/$v.linux-$arch.tar.gz" | tar -C /usr/local -xz+}+extra Go go_+"#+ .to_string(),+ "rust" => r#"+step "Installing Rust"+rust_() { as_user 'curl --proto =https --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y'; }+extra Rust rust_+"#+ .to_string(),+ "php" => r#"+step "Installing PHP and Composer"+php_() {+ apt_install php-cli php-mbstring php-xml php-curl php-zip php-sqlite3 php-intl+ curl -fsSL https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer+}+extra PHP php_+"#+ .to_string(),+ "ruby" => r#"+step "Installing Ruby"+ruby_() { apt_install ruby-full; }+extra Ruby ruby_+"#+ .to_string(),+ "java" => r#"+step "Installing Java"+java_() { apt_install default-jdk-headless maven; }+extra Java java_+"#+ .to_string(),+ "bun" => r#"+step "Installing Bun"+bun_() { as_user 'curl -fsSL https://bun.sh/install | bash'; }+extra Bun bun_+"#+ .to_string(),+ "deno" => r#"+step "Installing Deno"+deno_() { as_user 'curl -fsSL https://deno.land/install.sh | sh -s -- -y'; }+extra Deno deno_+"#+ .to_string(),+ "dotnet" => r#"+step "Installing .NET"+dotnet_() { apt_install dotnet-sdk-8.0; }+extra .NET dotnet_+"#+ .to_string(),+ "tailscale" => r#"+step "Installing Tailscale"+tailscale_() { curl -fsSL https://tailscale.com/install.sh | sh; }+extra Tailscale tailscale_+"#+ .to_string(),+ other => match (npm_package(other), EXTRAS.iter().find(|(i, _)| *i == other)) {+ (Some(pkg), Some((_, name))) => format!("\nstep \"Installing {name}\"\nextra \"{name}\" npm install -g {pkg}\n"),+ _ => String::new(),+ },+ };+ s.push_str(&block);+ }+ s.push_str(+ r#"+step "Ready"+mkdir -p /var/lib/muxen && touch /var/lib/muxen/ready+"#,+ );+ s+}++#[cfg(test)]+mod tests {+ use super::*;++ #[test]+ fn user_names_and_extras() {+ assert_eq!(user_name("adibhanna"), "adibhanna");+ assert_eq!(user_name("Adib Hanna"), "adibhanna");+ assert_eq!(user_name("9lives"), "muxen");+ let langs = script("me", &["go", "rust", "php"].map(String::from));+ assert!(langs.contains("go.dev/dl") && langs.contains("sh.rustup.rs") && langs.contains("getcomposer.org"));+ assert!(GROUPS.iter().flat_map(|(_, ids)| ids.iter()).count() == EXTRAS.len(), "every extra is in a group");+ let picked: Vec<String> = ["codex", "tailscale", "bogus"].map(String::from).to_vec();+ assert_eq!(resolve(&picked), vec!["node", "codex", "tailscale"], "an agent CLI brings Node.js; unknown ones are dropped");+ let all = script("me", &picked);+ assert!(all.contains("@openai/codex") && all.contains("tailscale.com/install.sh") && all.contains("nodesource"));+ assert!(!all.contains("get.docker.com") && !all.contains("claude-code"));+ let bare = script("me", &[]);+ assert!(bare.contains("install git") || bare.contains("installing git"));+ assert!(!bare.contains("docker") && bare.contains("/var/lib/muxen/ready"));+ }+}diff --git a/src/config.rs b/src/config.rsindex 18e7a00..3ea1f3c 100644--- a/src/config.rs+++ b/src/config.rs@@ -1,8 +1,10 @@-//! On-disk configuration.+//! On-disk configuration, in one folder (`~/.config/muxin`, `%APPDATA%\muxin`)://!-//! - `fleet.toml` — the inventory: machines and the runners they host. Edited by hand.-//! - `settings.json` — app settings changed from the dashboard (GitHub orgs/repos, intervals).+//! - `config.toml` — everything the user sets: `[settings]` (GitHub, checks,+//! cloud), `[ui]` (the app's look, fonts, shortcuts) and the `[[machine]]`+//! list. The app edits each part in place, so comments on machines survive.//! - `state.json` — the last machine check, so a restart still shows "checked 42m ago".+//! - Internal state: pairing keys (`direct.json`, `identity`), `workspaces.json`.use std::collections::{HashMap, HashSet};use std::path::{Path, PathBuf};@@ -17,7 +19,11 @@ use crate::util::slug;#[derive(Debug, Clone)]pub struct Paths {pub dir: PathBuf,+ /// config.toml.+ pub config: PathBuf,+ /// Where the machines are read from: config.toml, unless `-f` names another file.pub inventory: PathBuf,+ /// Where settings are kept: config.toml.pub settings: PathBuf,pub state: PathBuf,/// Agent workspaces, shared by every Muxen process (see fleet::workspaces).@@ -25,26 +31,20 @@ pub struct Paths {}impl Paths {- /// `$MUXEN_HOME`, else `$XDG_CONFIG_HOME/muxen`, else `~/.config/muxen`.+ /// `$MUXIN_HOME` (or `$MUXEN_HOME`), else the platform's config folder:+ /// `~/.config/muxin` ($XDG_CONFIG_HOME on Linux), `%APPDATA%\muxin` on Windows.pub fn resolve(dir: Option<PathBuf>, inventory: Option<PathBuf>) -> Paths {- let dir = dir.or_else(|| std::env::var_os("MUXEN_HOME").map(PathBuf::from)).unwrap_or_else(|| {- let base = std::env::var_os("XDG_CONFIG_HOME").map(PathBuf::from).or_else(|| dirs::home_dir().map(|h| h.join(".config")));- match base {- Some(base) => {- let dir = base.join("muxen");- // Muxen was called OpenRunner: bring its folder along, once.- let old = base.join("openrunner");- if !dir.exists() && old.is_dir() && std::fs::rename(&old, &dir).is_ok() {- tracing::info!("moved {} to {}", display_path(&old), display_path(&dir));- }- dir- }- None => PathBuf::from(".muxen"),- }- });+ let base = config_base();+ let chosen = dir.or_else(|| std::env::var_os("MUXIN_HOME").map(PathBuf::from)).or_else(|| std::env::var_os("MUXEN_HOME").map(PathBuf::from));+ // Only the default folder takes over the old default folder's files; a+ // folder that was asked for keeps to itself.+ let dir = chosen.clone().unwrap_or_else(|| base.as_ref().map(|b| b.join("muxin")).unwrap_or_else(|| PathBuf::from(".muxin")));+ migrate(&dir, if chosen.is_some() { None } else { base.as_deref() });+ let config = dir.join("config.toml");Paths {- inventory: inventory.unwrap_or_else(|| dir.join("fleet.toml")),- settings: dir.join("settings.json"),+ inventory: inventory.unwrap_or_else(|| config.clone()),+ settings: config.clone(),+ config,state: dir.join("state.json"),workspaces: dir.join("workspaces.json"),dir,@@ -52,6 +52,174 @@ impl Paths {}}+/// Where per-user config folders go on this platform.+fn config_base() -> Option<PathBuf> {+ if cfg!(windows) {+ dirs::config_dir()+ } else {+ std::env::var_os("XDG_CONFIG_HOME").map(PathBuf::from).or_else(|| dirs::home_dir().map(|h| h.join(".config")))+ }+}++/// Muxen 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.+fn migrate(dir: &Path, base: Option<&Path>) {+ let config = dir.join("config.toml");+ if config.exists() {+ return;+ }+ const OLD_FILES: [&str; 3] = ["fleet.toml", "settings.json", "ui.json"];+ let candidates = [Some(dir.to_path_buf()), base.map(|b| b.join("muxen")), base.map(|b| b.join("openrunner"))];+ let Some(old) = candidates.into_iter().flatten().find(|d| OLD_FILES.iter().any(|f| d.join(f).exists())) else { return };+ if std::fs::create_dir_all(dir).is_err() {+ return;+ }+ if old != dir {+ copy_dir(&old, dir, &OLD_FILES);+ }+ let mut text = std::fs::read_to_string(old.join("fleet.toml")).unwrap_or_default();+ for (file, key, camel) in [("settings.json", "settings", true), ("ui.json", "ui", false)] {+ let Some(value) = std::fs::read_to_string(old.join(file)).ok().and_then(|t| serde_json::from_str::<serde_json::Value>(&t).ok()) else { continue };+ let value = json_for_toml(value, camel);+ match toml::Value::try_from(&value).map_err(|e| e.to_string()).and_then(|v| set_section(&text, key, &v)) {+ Ok(t) => text = t,+ Err(e) => tracing::warn!("couldn't bring {} into config.toml: {e}", display_path(&old.join(file))),+ }+ }+ match write_atomic(&config, text.as_bytes()) {+ Ok(()) => tracing::info!("moved Muxen's settings from {} into {}", display_path(&old), display_path(&config)),+ Err(e) => tracing::warn!("couldn't write {}: {e:#}", display_path(&config)),+ }+}++/// Copies a folder's contents (but `skip`) into another, recursively.+fn copy_dir(from: &Path, to: &Path, skip: &[&str]) {+ let Ok(entries) = std::fs::read_dir(from) else { return };+ for e in entries.flatten() {+ let name = e.file_name();+ if skip.iter().any(|s| name == *s) {+ continue;+ }+ let (src, dst) = (e.path(), to.join(&name));+ if src.is_dir() {+ if std::fs::create_dir_all(&dst).is_ok() {+ copy_dir(&src, &dst, &[]);+ }+ } else if !dst.exists() {+ let _ = std::fs::copy(&src, &dst);+ }+ }+}++/// JSON settings as TOML can hold them: no nulls, and (`camel`) keys in snake_case.+fn json_for_toml(v: serde_json::Value, camel: bool) -> serde_json::Value {+ use serde_json::Value;+ match v {+ Value::Object(map) => Value::Object(+ map.into_iter()+ .filter(|(_, v)| !v.is_null())+ .map(|(k, v)| (if camel { snake_case(&k) } else { k }, json_for_toml(v, camel)))+ .collect(),+ ),+ Value::Array(items) => Value::Array(items.into_iter().filter(|v| !v.is_null()).map(|v| json_for_toml(v, camel)).collect()),+ other => other,+ }+}++fn snake_case(s: &str) -> String {+ let mut out = String::new();+ for c in s.chars() {+ if c.is_ascii_uppercase() {+ out.push('_');+ out.push(c.to_ascii_lowercase());+ } else {+ out.push(c);+ }+ }+ out+}++// ---------------------------------------------------------------------------+// 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";++/// Reads one section of config.toml (`[settings]`, `[ui]`), defaults if it's+/// missing or doesn't read.+pub fn read_section<T: serde::de::DeserializeOwned + Default>(path: &Path, key: &str) -> T {+ let Ok(text) = std::fs::read_to_string(path) else { return T::default() };+ let table = match text.parse::<toml::Table>() {+ Ok(t) => t,+ Err(e) => {+ tracing::warn!("ignoring {}: {}", display_path(path), e.to_string().trim());+ return T::default();+ }+ };+ match table.get(key).cloned().map(|v| v.try_into::<T>()) {+ Some(Ok(v)) => v,+ Some(Err(e)) => {+ tracing::warn!("ignoring [{key}] in {}: {}", display_path(path), e.to_string().trim());+ T::default()+ }+ None => T::default(),+ }+}++/// Writes one section of config.toml in place; the rest of the file stays as it is.+pub fn write_section<T: Serialize>(path: &Path, key: &str, value: &T) -> Result<(), String> {+ crate::ops::inventory_edit::edit_file(path, |text| set_section(text, key, value))+}++/// `text` with `[key]` replaced by `value`: where it was, or (new) at the top,+/// above the machines.+pub fn set_section<T: Serialize>(text: &str, key: &str, value: &T) -> Result<String, String> {+ let mut doc: toml_edit::DocumentMut = text.parse().map_err(|e: toml_edit::TomlError| format!("config.toml doesn't read: {}", e.to_string().trim()))?;+ let rendered = toml::to_string(value).map_err(|e| e.to_string())?;+ let fresh: toml_edit::DocumentMut = rendered.parse().map_err(|e: toml_edit::TomlError| e.to_string())?;+ let mut table = fresh.as_table().clone();+ table.set_implicit(false);+ doc.insert(key, toml_edit::Item::Table(table));+ // Fixed places above the machines: [settings], then [ui], then others.+ // Reading the file renumbers places, so every section gets its own again.+ fn place(t: &mut toml_edit::Table, position: isize) {+ t.set_position(Some(position));+ for (_, item) in t.iter_mut() {+ if let Some(sub) = item.as_table_mut() {+ place(sub, position);+ }+ }+ }+ for (k, position) in [("settings", -30), ("ui", -20)] {+ if let Some(t) = doc.get_mut(k).and_then(|i| i.as_table_mut()) {+ place(t, position);+ }+ }+ if !matches!(key, "settings" | "ui") {+ if let Some(t) = doc.get_mut(key).and_then(|i| i.as_table_mut()) {+ place(t, -10);+ }+ }+ // The header goes on whichever section comes first; the others start after a blank line.+ let first = ["settings", "ui"].into_iter().find(|k| doc.contains_key(k));+ for k in ["settings", "ui"] {+ if let Some(t) = doc.get_mut(k).and_then(|i| i.as_table_mut()) {+ t.decor_mut().set_prefix(if Some(k) == first { CONFIG_HEADER } else { "\n" });+ }+ }+ // A blank line between the sections and the first machine.+ if let Some(first) = doc.get_mut("machine").and_then(|m| m.as_array_of_tables_mut()).and_then(|a| a.get_mut(0)) {+ let p = first.decor().prefix().and_then(|p| p.as_str()).unwrap_or("").to_string();+ if !p.starts_with('\n') {+ first.decor_mut().set_prefix(format!("\n{p}"));+ }+ }+ let out = doc.to_string();+ Inventory::parse(&out).map_err(|e| format!("config.toml would be invalid: {e}"))?;+ Ok(out)+}+/// Shortens paths under the home directory to `~/...` for display.pub fn display_path(path: &Path) -> String {if let Some(home) = dirs::home_dir() {@@ -63,13 +231,20 @@ pub fn display_path(path: &Path) -> String {}// ----------------------------------------------------------------------------// Inventory (fleet.toml)+// Inventory (config.toml)#[derive(Debug, Default, Deserialize)]#[serde(deny_unknown_fields)]struct InventoryFile {#[serde(default, rename = "machine")]machines: Vec<MachineSpec>,+ /// The other parts of config.toml (read elsewhere).+ #[serde(default)]+ #[allow(dead_code)]+ settings: Option<toml::Table>,+ #[serde(default)]+ #[allow(dead_code)]+ ui: Option<toml::Table>,}#[derive(Debug, Clone, Deserialize)]@@ -112,6 +287,28 @@ 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).+ #[serde(default)]+ pub cloud: Option<CloudRef>,+}++/// Where a cloud machine lives, as config.toml records it:+/// `cloud = { provider = "digitalocean", id = 123, region = "nyc3", size = "s-2vcpu-4gb", price_hourly = 0.03571, created_at = "..." }`.+#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]+#[serde(deny_unknown_fields)]+pub struct CloudRef {+ pub provider: String,+ pub id: u64,+ #[serde(default)]+ pub region: String,+ #[serde(default)]+ pub size: String,+ /// What it costs per hour while it exists (powered off too), in USD.+ #[serde(default)]+ pub price_hourly: f64,+ /// RFC 3339.+ #[serde(default)]+ pub created_at: String,}fn yes() -> bool {@@ -176,7 +373,7 @@ fn machine_id_base(name: &str, explicit_id: &str) -> String {}/// A machine's id: its `id` (or `name`) slugged, with "-2", "-3"... appended to-/// repeats in file order. Shared with the fleet.toml editor so both agree.+/// repeats in file order. Shared with the config.toml editor so both agree.pub fn assign_machine_id(name: &str, explicit_id: &str, taken: &mut HashSet<String>) -> String {let base = machine_id_base(name, explicit_id);let mut id = base.clone();@@ -192,7 +389,8 @@ pub fn assign_machine_id(name: &str, explicit_id: &str, taken: &mut HashSet<Stripub fn default_inventory() -> String {let host = local_hostname();format!(- r#"# Muxen fleet inventory+ r#"# Muxen: your settings and machines. Settings and the app's look go in+# [settings] and [ui], which Muxen adds when you change them.## Each [[machine]] is a computer that hosts self-hosted GitHub Actions runners,# or one you just want to keep an eye on. Muxen checks machines over SSH@@ -240,10 +438,10 @@ pub fn local_hostname() -> String {}// ----------------------------------------------------------------------------// Settings (settings.json)+// Settings ([settings] in config.toml)#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]-#[serde(rename_all = "camelCase", default)]+#[serde(default)]pub struct Settings {pub github: GitHubSettings,pub github_poll_seconds: u32,@@ -255,6 +453,37 @@ pub struct Settings {pub favorite_repos: Vec<String>,/// Text copied here can be pasted on the machines (Linux desktops, Macs), and back.pub share_clipboard: bool,+ /// Cloud machines: how Muxen signs in, what new ones come with, what happens when they sit idle.+ pub cloud: CloudSettings,+}++#[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).+ pub digitalocean_auth: String,+ /// Defaults for new machines; empty picks for you.+ pub region: String,+ pub size: String,+ /// What a new machine comes with, by id: tools, languages, agent CLIs,+ /// Tailscale (see cloud::setup::EXTRAS).+ pub install: Vec<String>,+ /// When a cloud machine has been idle `idle_hours`: "warn", "poweroff" or "destroy" ("off" does nothing).+ pub idle_action: String,+ pub idle_hours: u32,+}++impl Default for CloudSettings {+ fn default() -> Self {+ CloudSettings {+ digitalocean_auth: "token".into(),+ region: String::new(),+ size: "s-2vcpu-4gb".into(),+ install: crate::cloud::setup::default_extras(),+ idle_action: "warn".into(),+ idle_hours: 3,+ }+ }}/// Common places people keep code, a few levels deep, plus repos sitting right in the home folder.@@ -267,7 +496,7 @@ pub fn default_code_folders() -> Vec<String> {}#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]-#[serde(rename_all = "camelCase", default)]+#[serde(default)]pub struct GitHubSettings {pub orgs: Vec<String>,pub repos: Vec<String>,@@ -289,6 +518,7 @@ impl Default for Settings {code_folders: default_code_folders(),favorite_repos: Vec::new(),share_clipboard: true,+ cloud: CloudSettings::default(),}}}@@ -300,21 +530,13 @@ impl Default for GitHubSettings {}impl Settings {+ /// `[settings]` in config.toml.pub fn load(path: &Path) -> Settings {- match std::fs::read_to_string(path) {- Ok(text) => match serde_json::from_str::<Settings>(&text) {- Ok(s) => s.normalized().unwrap_or_default(),- Err(e) => {- tracing::warn!("ignoring {}: {e}", display_path(path));- Settings::default()- }- },- Err(_) => Settings::default(),- }+ read_section::<Settings>(path, "settings").normalized().unwrap_or_default()}pub fn save(&self, path: &Path) -> Result<()> {- write_atomic(path, &serde_json::to_vec_pretty(self)?)+ write_section(path, "settings", self).map_err(|e| anyhow::anyhow!(e))}/// Trims, de-duplicates and validates. Returns a message suitable for the UI on error.@@ -420,6 +642,37 @@ pub fn write_atomic(path: &Path, bytes: &[u8]) -> Result<()> {#[cfg(test)]mod tests {++ #[test]+ fn old_files_become_one_config_toml() {+ let dir = std::env::temp_dir().join(format!("muxin-migrate-{}", std::process::id()));+ let _ = std::fs::remove_dir_all(&dir);+ std::fs::create_dir_all(&dir).unwrap();+ std::fs::write(dir.join("fleet.toml"), "# my machines\n\n[[machine]]\nname = \"Box\" # the NUC\nhost = \"box\"\n").unwrap();+ std::fs::write(dir.join("settings.json"), r#"{"github":{"orgs":["acme"],"repos":[],"scanRepos":7,"apiUrl":"https://api.github.com","account":"","accountMachine":""},"githubPollSeconds":30,"checkIntervalMinutes":5,"shareClipboard":false}"#).unwrap();+ std::fs::write(dir.join("ui.json"), r#"{"mode":"dark","icon_style":"tiles","shortcuts":{"jobs":"ctrl-j"},"desktops":[],"path":null}"#).unwrap();+ migrate(&dir, None);++ let config = dir.join("config.toml");+ let text = std::fs::read_to_string(&config).unwrap();+ assert!(text.find("[settings]").unwrap() < text.find("[[machine]]").unwrap(), "settings come first:\n{text}");+ assert!(text.contains("# the NUC"), "comments on machines are kept:\n{text}");+ let s = Settings::load(&config);+ assert_eq!((s.github.orgs.clone(), s.github.scan_repos, s.github_poll_seconds, s.check_interval_minutes, s.share_clipboard), (vec!["acme".to_string()], 7, 30, 5, false));+ let ui: toml::Table = read_section(&config, "ui");+ assert_eq!(ui.get("icon_style").and_then(|v| v.as_str()), Some("tiles"));+ assert_eq!(Inventory::load(&config).unwrap().machines[0].name, "Box");++ // Saving settings again changes only [settings].+ let mut s2 = s.clone();+ s2.check_interval_minutes = 9;+ s2.save(&config).unwrap();+ let text2 = std::fs::read_to_string(&config).unwrap();+ assert!(text2.contains("# the NUC") && text2.contains("icon_style"));+ assert_eq!(Settings::load(&config).check_interval_minutes, 9);+ let _ = std::fs::remove_dir_all(&dir);+ }+use super::*;#[test]diff --git a/src/demo.rs b/src/demo.rsindex f7a7228..4691147 100644--- a/src/demo.rs+++ b/src/demo.rs@@ -150,7 +150,7 @@ struct Sim {pub struct World {sim: Mutex<Sim>,- /// fleet.toml for the demo, edited in memory by add/remove machine and installs.+ /// config.toml for the demo, edited in memory by add/remove machine and installs.inventory: Mutex<String>,/// Files in the demo's agent workspaces, by workspace id (see fleet::workspaces).pub(crate) workspace_files: Mutex<std::collections::HashMap<String, crate::fleet::workspaces::DemoTree>>,@@ -195,7 +195,7 @@ impl World {add("minis-01-01", Some("ubuntu-nuc"), labels(&["self-hosted", "Linux", "X64"]), "2.329.0");add("windows-01", Some("windows-laptop"), labels(&["self-hosted", "Windows", "ARM64"]), "2.329.0");add("minis-02-01", Some("windows-nuc"), labels(&["self-hosted", "Windows", "X64"]), "2.329.0");- // Registered on GitHub, but not in fleet.toml.+ // Registered on GitHub, but not in config.toml.add("linux-spot-01", None, labels(&["self-hosted", "Linux", "X64", "spot"]), "2.329.0");let mut sim = Sim { rng: now.timestamp_nanos_opt().unwrap_or(1) as u64 | 1, last_tick: now, next_id: 9_000_100, runners, jobs: Vec::new() };@@ -315,6 +315,7 @@ impl World {os: Some(hw.os.into()),arch: Some(hw.arch.into()),os_version: Some(hw.os_version.into()),+ form_factor: Some(if hw.id.contains("laptop") || hw.id.contains("macbook") { "laptop" } else { "desktop" }.into()),cores: Some(hw.cores),cpu_pct: Some((cpu * 10.0).round() / 10.0),mem_total: Some(mem_total),@@ -418,7 +419,7 @@ impl World {// -----------------------------------------------------------------------// Control operations (see crate::ops), simulated.- /// Applies an edit to the demo's fleet.toml text.+ /// Applies an edit to the demo's config.toml text.pub fn edit_inventory(&self, edit: impl FnOnce(&str) -> Result<String, String>) -> Result<(), String> {let mut text = self.inventory.lock().unwrap();*text = edit(&text)?;diff --git a/src/fleet/build.rs b/src/fleet/build.rsindex e285e25..8463a5a 100644--- a/src/fleet/build.rs+++ b/src/fleet/build.rs@@ -156,6 +156,20 @@ pub fn build(input: &Inputs) -> Snapshot {gh: None,unreachable,tailnet: device.cloned(),+ cloud: spec.cloud.as_ref().map(|c| {+ let created_at = DateTime::parse_from_rfc3339(&c.created_at).ok().map(|t| t.with_timezone(&Utc));+ let hours = created_at.map(|t| (input.now - t).num_minutes().max(0) as f64 / 60.).unwrap_or(0.);+ crate::fleet::model::CloudInfo {+ provider: c.provider.clone(),+ id: c.id,+ region: c.region.clone(),+ size: c.size.clone(),+ price_hourly: c.price_hourly,+ created_at,+ cost_so_far: (hours.ceil() * c.price_hourly * 100.).round() / 100.,+ idle_since: crate::ops::cloud::idle_since(&spec.id),+ }+ }),});}@@ -309,6 +323,7 @@ fn to_probe(p: &ProbeResult) -> Probe {os: p.os.clone(),arch: p.arch.clone(),os_version: p.os_version.clone(),+ form_factor: p.form_factor.clone(),cores: p.cores,cpu_pct: p.cpu_pct,mem_total: p.mem_total,@@ -464,9 +479,9 @@ fn runner_diagnostics("runner-missing",format!("{name} isn't installed here: no runner folder with that name was found."),Some(if p.os.as_deref() == Some("windows") {- "If it lives somewhere unusual, add its folder to runner_dirs in fleet.toml.".into()+ "If it lives somewhere unusual, add its folder to runner_dirs in config.toml.".into()} else {- "If it lives somewhere unusual, add its folder to runner_dirs in fleet.toml (globs work).".into()+ "If it lives somewhere unusual, add its folder to runner_dirs in config.toml (globs work).".into()}),rid,)),@@ -538,7 +553,7 @@ fn machine_diagnostics(out: &mut Vec<Diagnostic>, spec: &MachineSpec, probe: Opt"info","no-host","No host configured, so this machine isn't checked.".into(),- Some("Set host in fleet.toml (an ssh destination, or \"local\").".into()),+ Some("Set host in config.toml (an ssh destination, or \"local\").".into()),None,));return;@@ -681,7 +696,7 @@ fn attention(out.push(Attention {id: "inventory-error".into(),level: "error".into(),- title: "fleet.toml couldn't be read".into(),+ title: "config.toml couldn't be read".into(),detail: format!("{err} Showing the last good inventory."),action: None,});@@ -792,7 +807,7 @@ fn attention(let (title, detail) = if stuck.len() == 1 {(format!("“{}” can't find a runner", first.name),- format!("Queued {waited} in {} — no online runner has the labels {labels}.", first.repo),+ format!("Queued {waited} in {}. {}.", first.repo, first.waiting_reason(runners)),)} else {(@@ -803,6 +818,25 @@ fn attention(out.push(Attention { id: "stuck-jobs".into(), level: "warning".into(), title, detail, action: action("View queue", "queue", None) });}+ // Cloud machines nobody has used for a while (Settings › Cloud says how long).+ let idle_hours = input.settings.cloud.idle_hours;+ if idle_hours > 0 && input.settings.cloud.idle_action != "off" {+ for m in machines {+ let Some(c) = &m.cloud else { continue };+ let Some(since) = c.idle_since else { continue };+ let hours = (input.now - since).num_minutes() / 60;+ if hours >= idle_hours as i64 && m.status == "online" {+ out.push(Attention {+ id: format!("cloud-idle-{}", m.id),+ level: "info".into(),+ title: format!("{} has been idle for {hours}h", m.name),+ detail: format!("It costs ${:.3} an hour while it exists. Destroy it from its page when you're done.", c.price_hourly),+ action: action("View machine", "machine", Some(m.id.clone())),+ });+ }+ }+ }+for m in machines {if let Some(d) = m.diagnostics.iter().find(|d| d.code == "low-disk") {out.push(Attention {@@ -821,9 +855,9 @@ fn attention(id: "unassigned".into(),level: "info".into(),title: if unassigned == 1 {- format!("{} isn't in fleet.toml", names[0])+ format!("{} isn't in config.toml", names[0])} else {- format!("{unassigned} GitHub runners aren't in fleet.toml")+ format!("{unassigned} GitHub runners aren't in config.toml")},detail: format!("{} {} registered on GitHub but no machine lists {}. Add {} to a [[machine]]'s runners to track {}.",@@ -858,7 +892,7 @@ fn attention(out.push(Attention {id: format!("inventory-warning-{i}"),level: "info".into(),- title: "fleet.toml".into(),+ title: "config.toml".into(),detail: w.clone(),action: None,});diff --git a/src/fleet/engine.rs b/src/fleet/engine.rsindex 7510ce4..fb85a7b 100644--- a/src/fleet/engine.rs+++ b/src/fleet/engine.rs@@ -95,7 +95,7 @@ impl Engine {let (inventory, inventory_info, settings, persisted) = match &world {Some(w) => (w.inventory(),- InventoryInfo { path: "demo://fleet.toml".into(), loaded_at: Some(Utc::now()), ..Default::default() },+ InventoryInfo { path: "demo://config.toml".into(), loaded_at: Some(Utc::now()), ..Default::default() },w.settings(),PersistedState::default(),),@@ -301,7 +301,7 @@ impl Engine {}/// Picks up what other Muxen processes wrote to the shared config- /// directory: fleet.toml edits, settings.json changes, and newer machine+ /// 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) {if self.demo.is_some() {@@ -346,7 +346,14 @@ impl Engine {Some((spec, st.probes.get(id).cloned()))}- /// Re-reads fleet.toml right away (after Muxen edited it) and publishes.+ /// Re-reads config.toml right away (after Muxen 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) {+ let mut st = self.state.lock().unwrap();+ self.publish(&mut st);+ }+pub(crate) fn reload_inventory_now(&self) {let mut st = self.state.lock().unwrap();match &self.demo {@@ -628,7 +635,7 @@ impl Engine {_ = tokio::time::sleep(poll) => {}_ = self.sync_now.notified() => {}}- // Pick up fleet.toml edits (and settings/checks from other Muxen+ // Pick up config.toml edits (and settings/checks from other Muxen// processes) without waiting for the next full check.let before = self.state.lock().unwrap().inventory.machines.len();self.refresh_from_disk();@@ -905,7 +912,7 @@ impl Engine {self.publish(&mut st);}- /// Re-reads settings.json if another process changed it. Returns true if the settings changed.+ /// Re-reads [settings] if another process changed config.toml. Returns true if the settings changed.fn reload_settings(&self, st: &mut State) -> bool {let modified = mtime(&self.paths.settings);if modified == st.settings_mtime {@@ -971,7 +978,7 @@ impl Engine {changed}- /// Re-reads fleet.toml when it changed (or `force`). Returns true if the inventory changed.+ /// Re-reads config.toml when it changed (or `force`). Returns true if the inventory changed./// On a parse error the last good inventory stays in place and the error is shown.fn reload_inventory(&self, st: &mut State, force: bool) -> bool {let path = &self.paths.inventory;@@ -1065,7 +1072,7 @@ fn mtime(path: &Path) -> Option<SystemTime> {std::fs::metadata(path).and_then(|m| m.modified()).ok()}-/// Writes a starter fleet.toml (this computer only) the first time Muxen runs.+/// Writes a starter config.toml (this computer only) the first time Muxen runs.pub fn ensure_inventory(paths: &Paths) {if paths.inventory.exists() {return;@@ -1086,7 +1093,7 @@ mod tests {let dir = std::env::temp_dir().join(format!("muxen-xproc-{}", std::process::id()));let _ = std::fs::remove_dir_all(&dir);std::fs::create_dir_all(&dir).unwrap();- std::fs::write(dir.join("fleet.toml"), "[[machine]]\nname = \"Box\"\nhost = \"box.invalid\"\n").unwrap();+ std::fs::write(dir.join("config.toml"), "[[machine]]\nname = \"Box\"\nhost = \"box.invalid\"\n").unwrap();let paths = Paths::resolve(Some(dir.clone()), None);let window = Engine::new(paths.clone(), false);let agent = Engine::new(paths.clone(), false);diff --git a/src/fleet/model.rs b/src/fleet/model.rsindex 837640b..d664551 100644--- a/src/fleet/model.rs+++ b/src/fleet/model.rs@@ -196,7 +196,7 @@ pub struct Machine {pub summary: RunnerSummary,pub probe: Option<Probe>,pub diagnostics: Vec<Diagnostic>,- /// Agents may create workspaces here (fleet.toml `workspaces`, default true).+ /// Agents may create workspaces here (config.toml `workspaces`, default true).pub workspaces_allowed: bool,/// Agent CLIs found on the machine ("claude", "codex", ...), from the last session check.pub agents: Vec<String>,@@ -210,6 +210,26 @@ 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.+ pub cloud: Option<CloudInfo>,+}++#[derive(Debug, Clone, Serialize)]+#[serde(rename_all = "camelCase")]+pub struct CloudInfo {+ /// "digitalocean"+ pub provider: String,+ /// The droplet's id there.+ pub id: u64,+ pub region: String,+ pub size: String,+ /// USD an hour, billed while it exists (powered off too).+ pub price_hourly: f64,+ pub created_at: Option<DateTime<Utc>>,+ /// What it has cost since it was created, in USD.+ pub cost_so_far: f64,+ /// Idle (no busy session, job or CPU) since then, as this app has seen it.+ pub idle_since: Option<DateTime<Utc>>,}#[derive(Debug, Clone, Serialize, Default)]@@ -233,6 +253,8 @@ pub struct Probe {pub os: Option<String>,pub arch: Option<String>,pub os_version: Option<String>,+ /// "laptop" | "desktop", when the machine says.+ pub form_factor: Option<String>,pub cores: Option<u32>,pub cpu_pct: Option<f64>,pub mem_total: Option<u64>,@@ -292,7 +314,7 @@ pub struct Runner {pub state: String,/// Where `state` came from: "github" (live) | "probe" (last check) | "none"pub source: String,- /// Listed in fleet.toml (as opposed to discovered on the machine or on GitHub).+ /// Listed in config.toml (as opposed to discovered on the machine or on GitHub).pub declared: bool,pub labels: Vec<String>,pub github: Option<GitHubRunner>,@@ -370,6 +392,24 @@ pub struct Job {pub matching_online: usize,}+impl Job {+ /// Why it hasn't started, in a few words: who can take it, or which of+ /// its labels no runner has.+ pub fn waiting_reason(&self, runners: &[Runner]) -> String {+ if self.matching_online > 0 {+ return format!("{} runner{} can take it", self.matching_online, if self.matching_online == 1 { "" } else { "s" });+ }+ let anyone_has = |label: &str| runners.iter().any(|r| r.labels.iter().any(|l| l.eq_ignore_ascii_case(label)));+ let missing: Vec<&str> = self.labels.iter().map(String::as_str).filter(|l| !l.eq_ignore_ascii_case("self-hosted") && !anyone_has(l)).collect();+ match missing.as_slice() {+ [] if !self.matching.is_empty() => "Its runners are offline".into(),+ [] => "No runner has all its labels".into(),+ [one] => format!("No runner has the {one} label"),+ many => format!("No runner has {}", many.join(", ")),+ }+ }+}+#[derive(Debug, Clone, Serialize)]#[serde(rename_all = "camelCase")]pub struct Attention {diff --git a/src/fleet/sessions/mod.rs b/src/fleet/sessions/mod.rsindex fd7701f..d795648 100644--- a/src/fleet/sessions/mod.rs+++ b/src/fleet/sessions/mod.rs@@ -1,5 +1,5 @@//! Agent sessions: terminals on fleet machines running an AI agent (Claude Code,-//! Codex, OpenCode, ...) or a plain shell.+//! 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@@ -46,6 +46,7 @@ pub const AGENTS: &[AgentKind] = &[AgentKind { id: "opencode", name: "OpenCode", command: "opencode", prompt_arg: false },AgentKind { id: "gemini", name: "Gemini CLI", command: "gemini", prompt_arg: false },AgentKind { id: "amp", name: "Amp", command: "amp", prompt_arg: false },+ AgentKind { id: "pi", name: "Pi", command: "pi", prompt_arg: true },AgentKind { id: "shell", name: "Shell", command: "", prompt_arg: false },];diff --git a/src/fleet/tailscale.rs b/src/fleet/tailscale.rsindex 6862c56..2309419 100644--- a/src/fleet/tailscale.rs+++ b/src/fleet/tailscale.rs@@ -207,7 +207,7 @@ async fn read() -> Option<Tailnet> {parse(&String::from_utf8_lossy(&out.stdout))}-/// ssh's way to a machine through Tailscale, for when the host in fleet.toml+/// ssh's way to a machine through Tailscale, for when the host in config.toml/// (or ssh's config) only works at home, like a local-network address.#[derive(Default)]struct SshRoute {diff --git a/src/fleet/workspaces/mod.rs b/src/fleet/workspaces/mod.rsindex e017337..48fb71d 100644--- a/src/fleet/workspaces/mod.rs+++ b/src/fleet/workspaces/mod.rs@@ -217,11 +217,11 @@ impl Engine {.find(|x| x.id == m || x.name.eq_ignore_ascii_case(&m)).ok_or_else(|| format!("Machine \"{m}\" not found in the fleet. Known machines: {}.", machine_names(&snap.machines)))?;if found.host.is_empty() {- return Err(format!("{} has no host in fleet.toml, so Muxen can't reach it.", found.name));+ return Err(format!("{} has no host in config.toml, so Muxen 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 fleet.toml.",+ "Workspaces are turned off for {}. Turn them on from its page in Muxen, or remove `workspaces = false` from its entry in config.toml.",found.name));}@@ -229,7 +229,7 @@ impl Engine {}None => pick_machine_for(&snap.machines, clean_opt(req.platform).as_deref(), docker)?.id.clone(),};- let (spec, mut probe) = self.machine(&machine_id).ok_or("Machine not found in fleet.toml anymore.")?;+ let (spec, mut probe) = self.machine(&machine_id).ok_or("Machine not found in config.toml anymore.")?;if self.demo_world().is_none() && !probe.as_ref().is_some_and(|p| p.ok) {self.run_check(Some(vec![spec.id.clone()])).await;probe = self.machine(&spec.id).and_then(|(_, p)| p);@@ -550,7 +550,7 @@ impl Engine {Ok(())}(None, None) => {- self.op_log(op, format!("warning: {} isn't in fleet.toml anymore, so its files can't be cleaned up; forgetting the workspace.", rec.info.machine_name));+ self.op_log(op, format!("warning: {} isn't in config.toml anymore, so its files can't be cleaned up; forgetting the workspace.", rec.info.machine_name));Ok(())}};@@ -579,10 +579,10 @@ impl Engine {self.current().workspaces.clone()}- /// Turns agent workspaces on or off for a machine (edits fleet.toml).+ /// Turns agent workspaces on or off for a machine (edits config.toml).pub fn set_workspaces_allowed(self: &Arc<Self>, machine_id: &str, allowed: bool) -> Result<(), String> {if self.machine(machine_id).is_none() {- return Err(format!("Machine \"{machine_id}\" not found in fleet.toml."));+ return Err(format!("Machine \"{machine_id}\" not found in config.toml."));}let edit = |text: &str| crate::ops::inventory_edit::set_workspaces(text, machine_id, allowed);match self.demo_world() {@@ -628,12 +628,12 @@ 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 fleet.toml anymore, so Muxen can't reach workspace {}. Destroy it with keepFiles to forget it.",+ "Machine {} not found in config.toml anymore, so Muxen can't reach workspace {}. Destroy it with keepFiles to forget it.",rec.info.machine_name, rec.info.id)})?;if !spec.is_checkable() {- return Err(format!("{} has no host in fleet.toml.", spec.name));+ return Err(format!("{} has no host in config.toml.", spec.name));}Ok(spec)}diff --git a/src/fleet/workspaces/tests.rs b/src/fleet/workspaces/tests.rsindex 86d006d..8948f43 100644--- a/src/fleet/workspaces/tests.rs+++ b/src/fleet/workspaces/tests.rs@@ -67,6 +67,7 @@ fn machine(id: &str, platform: &str, cpu: f64, working: usize, disk_free: u64, aos: None,arch: None,os_version: None,+ form_factor: None,cores: Some(8),cpu_pct: Some(cpu),mem_total: Some(100),@@ -88,6 +89,7 @@ fn machine(id: &str, platform: &str, cpu: f64, working: usize, disk_free: u64, agh: None,unreachable: None,tailnet: None,+ cloud: None,}}@@ -255,7 +257,7 @@ async fn local_end_to_end() {let tmp = tmp.canonicalize().unwrap();let root = tmp.join("workspaces");std::fs::write(- tmp.join("fleet.toml"),+ tmp.join("config.toml"),format!("[[machine]]\nname = \"Here\"\nhost = \"local\"\nworkspace_root = \"{}\"\n", root.display()),).unwrap();@@ -464,7 +466,7 @@ async fn local_docker_end_to_end() {std::fs::create_dir_all(&tmp).unwrap();let tmp = tmp.canonicalize().unwrap();let root = tmp.join("workspaces");- std::fs::write(tmp.join("fleet.toml"), format!("[[machine]]\nname = \"Here\"\nhost = \"local\"\nworkspace_root = \"{}\"\n", root.display())).unwrap();+ std::fs::write(tmp.join("config.toml"), format!("[[machine]]\nname = \"Here\"\nhost = \"local\"\nworkspace_root = \"{}\"\n", root.display())).unwrap();let engine = Engine::new(Paths::resolve(Some(tmp.clone()), None), false);engine.run_check(None).await;let info = engine@@ -521,7 +523,7 @@ async fn remote_docker_end_to_end() {let _ = std::fs::remove_dir_all(&tmp);std::fs::create_dir_all(&tmp).unwrap();std::fs::write(- tmp.join("fleet.toml"),+ tmp.join("config.toml"),format!("[[machine]]\nname = \"Remote\"\nhost = \"{host}\"\nworkspace_root = \"~/muxen-test/workspaces\"\n"),).unwrap();diff --git a/src/github/mod.rs b/src/github/mod.rsindex d4bd7af..93f8ec0 100644--- a/src/github/mod.rs+++ b/src/github/mod.rs@@ -716,6 +716,16 @@ impl Client {}}+ /// Cancels a workflow run: every job in it that hasn't finished.+ pub async fn cancel_run(&self, settings: &GitHubSettings, repo: &str, run_id: u64) -> Result<(), String> {+ self.configure(settings);+ let path = format!("/repos/{repo}/actions/runs/{run_id}/cancel");+ match self.send(reqwest::Method::POST, &path).await {+ Ok(_) => Ok(()),+ Err(e) => Err(with_hint(explain_doing(ScopeKind::Repo, repo, &e, &data_token_source(self), &format!("Cancelling a run in {repo}")))),+ }+ }+/// The newest actions/runner release, e.g. "2.329.0".pub async fn latest_runner_release(&self, settings: &GitHubSettings) -> Option<String> {self.configure(settings);diff --git a/src/main.rs b/src/main.rsindex fa944c5..eec503d 100644--- a/src/main.rs+++ b/src/main.rs@@ -1,5 +1,6 @@mod api;mod cli;+mod cloud;mod config;mod demo;mod fleet;@@ -46,14 +47,16 @@ enum Command {Machines(AgentArgs),/// Everything about one machine: runners, diagnostics, resourcesMachine(MachineArgs),- /// Add a machine to fleet.toml (and check it)+ /// Add a machine to config.toml (and check it)AddMachine(AddMachineArgs),- /// Remove a machine from fleet.toml (nothing on the machine changes)+ /// Remove a machine from config.toml (nothing on the machine changes)RemoveMachine(MachineArgs),/// List runnersRunners(RunnersArgs),/// Queued and running self-hosted jobsJobs(AgentArgs),+ /// Cancel the workflow run a queued or running job belongs to (all its jobs)+ CancelRun(CancelRunArgs),/// Install runners on a machine and register them with GitHubInstall(InstallArgs),/// Start, stop, restart, show logs for, or remove a runner@@ -87,6 +90,9 @@ enum Command {/// A machine's desktop: a screenshot, or mouse and keyboard input#[command(subcommand)]Desktop(DesktopCommand),+ /// Cloud machines: create DigitalOcean droplets to work in, power them, destroy them+ #[command(subcommand)]+ Cloud(CloudCommand),/// Agent sessions: Claude Code, Codex, OpenCode, ... kept running on your machines#[command(alias = "sessions", subcommand)]Session(SessionCommand),@@ -94,7 +100,7 @@ enum Command {Mcp(McpArgs),/// Check every machine once and print a fleet reportCheck(CheckArgs),- /// Write a starter fleet.toml+ /// Write a starter config.tomlInit(InitArgs),/// Print where Muxen keeps its filesPaths(CommonArgs),@@ -102,11 +108,11 @@ enum Command {#[derive(Args, Clone)]struct CommonArgs {- /// Config directory [default: ~/.config/muxen, or $MUXEN_HOME]+ /// Config directory [default: ~/.config/muxin (%APPDATA%\\muxin on Windows), or $MUXIN_HOME]#[arg(long, value_name = "DIR")]config_dir: Option<PathBuf>,- /// Inventory file [default: <config-dir>/fleet.toml]+ /// Inventory file [default: <config-dir>/config.toml]#[arg(long, short = 'f', value_name = "FILE")]inventory: Option<PathBuf>,}@@ -252,6 +258,19 @@ struct InstallArgs {timeout: u64,}+#[derive(Args)]+struct CancelRunArgs {+ #[command(flatten)]+ agent: AgentArgs,++ /// The job's id (from `muxen jobs --json`)+ job_id: u64,++ /// Return right away with the operation id+ #[arg(long)]+ no_wait: bool,+}+#[derive(Args)]struct RunnerArgs {#[command(flatten)]@@ -337,6 +356,78 @@ struct GhRepoArgs {repo: String,}+#[derive(Subcommand)]+enum CloudCommand {+ /// The account, regions, sizes and defaults for a new machine+ Options(AgentArgs),+ /// Create a droplet, set it up, and add it to the fleet (it costs money while it exists)+ Create(CloudCreateArgs),+ /// Delete a cloud machine's droplet and remove it from the fleet+ Destroy(CloudMachineArgs),+ /// Power a cloud machine on or off (DigitalOcean still bills it while off)+ Power(CloudPowerArgs),+ /// Sign in to DigitalOcean: --token TOKEN, --doctl, or --browser+ Login(CloudLoginArgs),+ /// Forget the DigitalOcean sign-in+ Logout(AgentArgs),+}++#[derive(Args)]+struct CloudCreateArgs {+ #[command(flatten)]+ agent: AgentArgs,+ /// The machine's name+ name: String,+ /// Region slug, e.g. nyc3 (default: Settings, else the nearest)+ #[arg(long)]+ region: Option<String>,+ /// Size slug, e.g. s-2vcpu-4gb (default: Settings)+ #[arg(long)]+ size: Option<String>,+ /// What it comes with, comma-separated: docker, gh, node, python, go, rust, php, ruby,+ /// java, bun, deno, dotnet, claude, codex, gemini, opencode, amp, pi, tailscale+ /// ("" for nothing; default: Settings)+ #[arg(long)]+ install: Option<String>,+ /// Return right away with the operation id+ #[arg(long)]+ no_wait: bool,+}++#[derive(Args)]+struct CloudMachineArgs {+ #[command(flatten)]+ agent: AgentArgs,+ /// Machine id or name+ machine: String,+}++#[derive(Args)]+struct CloudPowerArgs {+ #[command(flatten)]+ agent: AgentArgs,+ /// Machine id or name+ machine: String,+ /// on or off+ #[arg(value_parser = ["on", "off"])]+ state: String,+}++#[derive(Args)]+struct CloudLoginArgs {+ #[command(flatten)]+ agent: AgentArgs,+ /// A DigitalOcean API token (kept in the Keychain)+ #[arg(long, conflicts_with_all = ["doctl", "browser"])]+ token: Option<String>,+ /// Use doctl's login+ #[arg(long, conflicts_with = "browser")]+ doctl: bool,+ /// Sign in in the browser+ #[arg(long)]+ browser: bool,+}+#[derive(Subcommand)]enum DesktopCommand {/// Save a screenshot of the machine's screen (JPEG)@@ -486,7 +577,7 @@ enum SessionCommand {/// List sessions (and which agents each machine has)#[command(alias = "list")]Ls(SessionLsArgs),- /// Start an agent (claude, codex, opencode, gemini, amp) or a shell on a machine+ /// Start an agent (claude, codex, opencode, gemini, amp, pi) or a shell on a machineStart(SessionStartArgs),/// Print a session's screen and recent scrollbackRead(SessionReadArgs),@@ -516,7 +607,7 @@ struct SessionStartArgs {agent: AgentArgs,/// Machine id or namemachine: String,- /// claude, codex, opencode, gemini, amp or shell+ /// claude, codex, opencode, gemini, amp, pi or shell#[arg(value_name = "AGENT")]kind: String,/// Folder on the machine (default: home)@@ -816,7 +907,7 @@ struct InitArgs {#[command(flatten)]common: CommonArgs,- /// Overwrite an existing fleet.toml+ /// Overwrite an existing config.toml#[arg(long)]force: bool,}@@ -860,7 +951,7 @@ fn main() -> ExitCode {Some(Command::RemoveMachine(a)) => {let req = api::MachineRequest { machine_id: a.machine_id };run(&runtime, &a.agent, async move |e| api::remove_machine(&e, req).await, |m| {- format!("Removed {} ({}) from fleet.toml. Nothing on the machine changed.\n", m.name, m.id)+ format!("Removed {} ({}) from config.toml. Nothing on the machine changed.\n", m.name, m.id)})}Some(Command::Runners(a)) => {@@ -899,6 +990,10 @@ fn main() -> ExitCode {};run(&runtime, &a.agent, async move |e| api::runner_action(&e, req, api::Surface::Cli, stream_line).await, cli::action)}+ Some(Command::CancelRun(a)) => {+ let req = api::CancelRunRequest { job_id: a.job_id, wait: !a.no_wait, timeout_secs: None };+ run(&runtime, &a.agent, async move |e| api::cancel_run(&e, req, api::Surface::Cli, stream_line).await, cli::action)+ }Some(Command::Watch(a)) => {let req = api::GitHubScopesRequest { add: a.scopes, remove: vec![] };run(&runtime, &a.agent, async move |e| api::github_scopes(&e, req).await, cli::scopes)@@ -950,6 +1045,7 @@ fn main() -> ExitCode {Some(Command::Checkouts(a)) => checkouts(a, &runtime),Some(Command::Git(cmd)) => git(cmd, &runtime),Some(Command::Desktop(cmd)) => desktop(cmd, &runtime),+ Some(Command::Cloud(cmd)) => cloud(cmd, &runtime),Some(Command::Files(a)) => {let (machine, path) = a.target.split_once(':').map(|(m, p)| (m.to_string(), p.to_string())).unwrap_or((a.target.clone(), String::new()));let req = api::ListFilesRequest { machine_id: machine, path };@@ -987,8 +1083,10 @@ fn main() -> ExitCode {Some(Command::Paths(args)) => {let p = args.paths();println!("config dir {}", display_path(&p.dir));- println!("inventory {}", display_path(&p.inventory));- println!("settings {}", display_path(&p.settings));+ println!("config {}", display_path(&p.config));+ if p.inventory != p.config {+ println!("machines {}", display_path(&p.inventory));+ }println!("state {}", display_path(&p.state));0}@@ -1008,6 +1106,8 @@ fn open(args: OpenArgs, runtime: &tokio::runtime::Runtime) -> u8 {}#[cfg(feature = "gui")]{+ // The window is the one process that watches cloud machines for idleness.+ engine.start_cloud_idle_watch();ui::run(engine, args.view);0}@@ -1296,6 +1396,43 @@ fn github(cmd: GithubCommand, runtime: &tokio::runtime::Runtime) -> u8 {}}+fn cloud(cmd: CloudCommand, runtime: &tokio::runtime::Runtime) -> u8 {+ match cmd {+ CloudCommand::Options(a) => run(runtime, &a, async move |e| Ok::<_, api::ApiError>(api::cloud_options(&e).await), cli::cloud_options),+ CloudCommand::Create(a) => {+ let req = api::CloudCreateRequest {+ name: a.name,+ region: a.region,+ size: a.size,+ install: a.install.map(|list| list.split(',').map(|s| s.trim().to_string()).filter(|s| !s.is_empty()).collect()),+ wait: !a.no_wait,+ timeout_secs: None,+ };+ run(runtime, &a.agent, async move |e| api::cloud_create(&e, req, api::Surface::Cli, stream_line).await, cli::action)+ }+ CloudCommand::Destroy(a) => {+ let req = api::CloudMachineRequest { machine_id: a.machine, power: None, wait: true };+ run(runtime, &a.agent, async move |e| api::cloud_destroy(&e, req, api::Surface::Cli, stream_line).await, cli::action)+ }+ CloudCommand::Power(a) => {+ let req = api::CloudMachineRequest { machine_id: a.machine, power: Some(a.state), wait: true };+ run(runtime, &a.agent, async move |e| api::cloud_power(&e, req, api::Surface::Cli, stream_line).await, cli::action)+ }+ CloudCommand::Login(a) => {+ let method = if a.doctl { "doctl" } else if a.browser { "oauth" } else { "token" };+ let token = a.token.clone();+ if method == "token" && token.is_none() {+ eprintln!("error: pass --token TOKEN, --doctl or --browser");+ return 2;+ }+ run(runtime, &a.agent, async move |e| e.cloud_sign_in(method, token, |url| crate::util::open_url(url)).await.map_err(api::ApiError::invalid), |email| {+ format!("Signed in to DigitalOcean as {email}.\n")+ })+ }+ CloudCommand::Logout(a) => run(runtime, &a, async move |e| Ok::<_, api::ApiError>(e.cloud_sign_out()), |_| "Signed out of DigitalOcean.\n".to_string()),+ }+}+fn desktop(cmd: DesktopCommand, runtime: &tokio::runtime::Runtime) -> u8 {match cmd {DesktopCommand::Shot(a) => {diff --git a/src/mcp.rs b/src/mcp.rsindex 96d7435..4abb85c 100644--- a/src/mcp.rs+++ b/src/mcp.rs@@ -28,7 +28,7 @@ and the machine/runner they're about. Ids: machines are slugs like \"mac-studio\Read-only: fleet_status, get_machine, list_runners, list_jobs, check_machines (runs a read-only \check over ssh), get_operation, list_operations, get_settings, list_ssh_hosts, list_files.-Changes things: add_machine / remove_machine edit fleet.toml only. install_runners and \+Changes things: add_machine / remove_machine edit config.toml only. install_runners and \runner_action run commands on real machines and register or deregister runners on GitHub; \confirm with the user before stopping, removing or installing unless they asked for exactly that.@@ -48,7 +48,7 @@ done: nothing is deleted automatically. Commands run as the user on a real machianything there you wouldn't do in their own terminal without asking.Agent sessions: long-running terminals on fleet machines, each running an AI agent CLI (Claude \-Code, Codex, OpenCode, Gemini CLI, Amp) or a plain shell, kept alive by Muxen's agent on \+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 \(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. \@@ -291,6 +291,11 @@ async fn dispatch(engine: &Arc<Engine>, session: &Session, name: &str, a: Value)"remove_machine" => ok(json!({ "removed": api::remove_machine(engine, args(a)?).await? })),"install_runners" => ok(api::install_runners(engine, args(a)?, Surface::Mcp, |_| {}).await?),"runner_action" => ok(api::runner_action(engine, args(a)?, Surface::Mcp, |_| {}).await?),+ "cancel_run" => ok(api::cancel_run(engine, args(a)?, Surface::Mcp, |_| {}).await?),+ "cloud_options" => ok(api::cloud_options(engine).await),+ "cloud_create" => ok(api::cloud_create(engine, args(a)?, Surface::Mcp, |_| {}).await?),+ "cloud_destroy" => ok(api::cloud_destroy(engine, args(a)?, Surface::Mcp, |_| {}).await?),+ "cloud_power" => ok(api::cloud_power(engine, args(a)?, Surface::Mcp, |_| {}).await?),"get_operation" => ok(api::operation(engine, args(a)?)?),"cancel_operation" => ok(api::cancel_operation(engine, args(a)?)?),"list_files" => ok(api::list_files(engine, args(a)?).await?),@@ -395,7 +400,7 @@ pub fn tools() -> Vec<Value> {}),json!({"name": "add_machine",- "description": "Add a machine to the fleet (written to fleet.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 the fleet (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\"." },@@ -405,13 +410,13 @@ pub fn tools() -> Vec<Value> {}),json!({"name": "remove_machine",- "description": "Remove a machine from fleet.toml. Nothing on the machine changes and its runners stay registered on GitHub; use runner_action remove first to take runners down.",+ "description": "Remove a machine from config.toml. Nothing on the machine changes and its runners stay registered on GitHub; use runner_action remove first to take runners down.","inputSchema": schema(json!({ "machine_id": { "type": "string", "description": MACHINE_ID } }), &["machine_id"]),"annotations": annotations("Remove machine", false, true, true, false),}),json!({"name": "install_runners",- "description": "Install GitHub Actions runners on a machine and register each with the GitHub org/repo (`scope`) using a registration token from the user's gh login, then add them to fleet.toml. How they run (`mode`): \"auto\" (default) picks a boot-time service when the machine allows it (macOS, Windows, Linux with passwordless sudo), else Docker containers when Docker is available, else a background run.sh; \"docker\" runs one container per runner from GitHub's actions-runner image (no sudo, restarted by Docker, jobs get a clean Linux userland). Modifies the real machine and GitHub. Needs admin on the org (admin:org scope) or repo. Names default to \"<machine-id>-01\", \"-02\", ...",+ "description": "Install GitHub Actions runners on a machine and register each with the GitHub org/repo (`scope`) using a registration token from the user's gh login, then add them to config.toml. How they run (`mode`): \"auto\" (default) picks a boot-time service when the machine allows it (macOS, Windows, Linux with passwordless sudo), else Docker containers when Docker is available, else a background run.sh; \"docker\" runs one container per runner from GitHub's actions-runner image (no sudo, restarted by Docker, jobs get a clean Linux userland). Modifies the real machine and GitHub. Needs admin on the org (admin:org scope) or repo. Names default to \"<machine-id>-01\", \"-02\", ...","inputSchema": schema(json!({"machine_id": { "type": "string", "description": MACHINE_ID },"scope": { "type": "string", "description": "GitHub org (\"acme\") or repo (\"acme/api\"). Optional when exactly one is watched." },@@ -430,7 +435,7 @@ pub fn tools() -> Vec<Value> {}),json!({"name": "runner_action",- "description": "Control one runner on its machine: start, stop or restart its service; logs (read-only tail of its newest _diag log); or remove (stop, uninstall the service, deregister from GitHub, drop it from fleet.toml, optionally delete its folder). For a runner no machine lists (\"github/<name>\"), remove deregisters it on GitHub. stop and remove take the runner offline; confirm with the user first.",+ "description": "Control one runner on its machine: start, stop or restart its service; logs (read-only tail of its newest _diag log); or remove (stop, uninstall the service, deregister from GitHub, drop it from config.toml, optionally delete its folder). For a runner no machine lists (\"github/<name>\"), remove deregisters it on GitHub. stop and remove take the runner offline; confirm with the user first.","inputSchema": schema(json!({"runner_id": { "type": "string", "description": RUNNER_ID },"action": { "type": "string", "enum": ["start", "stop", "restart", "logs", "remove"] },@@ -440,6 +445,47 @@ pub fn tools() -> Vec<Value> {}), &["runner_id", "action"]),"annotations": annotations("Runner action", false, true, false, true),}),+ json!({+ "name": "cloud_options",+ "description": "The user's DigitalOcean sign-in, regions, sizes (with hourly and monthly prices) and the defaults for a new cloud machine. Read-only.",+ "inputSchema": schema(json!({}), &[]),+ "annotations": annotations("Cloud options", true, false, true, true),+ }),+ json!({+ "name": "cloud_create",+ "description": "Create a DigitalOcean droplet in the user's account, set it up (their user and SSH key, git, and the extras chosen: Docker, GitHub CLI, languages like Go, Rust, Python or PHP, agent CLIs, Tailscale), and add it to the fleet. It COSTS MONEY every hour it exists: tell the user the size and price (cloud_options) and get their OK first. Takes a few minutes.",+ "inputSchema": schema(json!({+ "name": { "type": "string" },+ "region": { "type": "string", "description": "Region slug, e.g. nyc3. Default: the user's setting, else the nearest." },+ "size": { "type": "string", "description": "Size slug, e.g. s-2vcpu-4gb. Default: the user's setting." },+ "install": { "type": "array", "items": { "type": "string", "enum": crate::cloud::setup::EXTRAS.iter().map(|(id, _)| *id).collect::<Vec<_>>() }, "description": "What it comes with besides git: tools, languages (node, python, go, rust, php, ruby, java, bun, deno, dotnet), agent CLIs, tailscale. Default: the user's setting." },+ "wait": { "type": "boolean", "description": "Wait until it's ready. Default true." },+ "timeout_secs": { "type": "integer", "minimum": 1 }+ }), &["name"]),+ "annotations": annotations("Create cloud machine", false, false, false, true),+ }),+ json!({+ "name": "cloud_destroy",+ "description": "Destroy a cloud machine Muxen created: deletes the droplet (everything on it is lost) and removes it from the fleet. 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),+ }),+ json!({+ "name": "cloud_power",+ "description": "Power a cloud machine on or off. DigitalOcean still bills a droplet while it's off; only cloud_destroy stops the cost.",+ "inputSchema": schema(json!({ "machine_id": { "type": "string" }, "power": { "type": "string", "enum": ["on", "off"] }, "wait": { "type": "boolean" } }), &["machine_id", "power"]),+ "annotations": annotations("Cloud power", false, false, true, true),+ }),+ json!({+ "name": "cancel_run",+ "description": "Cancel the GitHub Actions workflow run that a queued or running job belongs to (job_id from list_jobs). GitHub cancels whole runs, so every unfinished job in it stops. Confirm with the user first.",+ "inputSchema": schema(json!({+ "job_id": { "type": "integer", "description": "A queued or running job's id, from list_jobs." },+ "wait": { "type": "boolean", "description": "Wait for GitHub to accept it. Default true." },+ "timeout_secs": { "type": "integer", "minimum": 1, "description": "How long to wait. Default 60." }+ }), &["job_id"]),+ "annotations": annotations("Cancel run", false, true, false, true),+ }),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.",@@ -615,7 +661,7 @@ pub fn tools() -> Vec<Value> {}),json!({"name": "workspace_allow",- "description": "Turn agent workspaces on or off for a machine (edits fleet.toml, comments preserved). Machines allow them by default; only change this when the user asks.",+ "description": "Turn agent workspaces on or off for a machine (edits config.toml, comments preserved). Machines allow them by default; only change this when the user asks.","inputSchema": schema(json!({"machine_id": { "type": "string", "description": MACHINE_ID },"allowed": { "type": "boolean" }@@ -624,7 +670,7 @@ 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 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 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).","inputSchema": schema(json!({ "machine_id": { "type": "string", "description": MACHINE_ID } }), &[]),"annotations": annotations("List agent sessions", true, false, true, true),}),@@ -633,7 +679,7 @@ pub fn tools() -> Vec<Value> {"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.","inputSchema": schema(json!({"machine_id": { "type": "string", "description": MACHINE_ID },- "agent": { "type": "string", "enum": ["claude", "codex", "opencode", "gemini", "amp", "shell"], "description": "Which CLI to run. session_list shows which are installed on each machine." },+ "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." },"cwd": { "type": "string", "description": "Folder on the machine, e.g. \"~/code/api\". Default: the home folder." },"title": { "type": "string", "description": "Shown in the app's sidebar. Default: agent and folder name." },"prompt": { "type": "string", "description": "First message for the agent." }@@ -821,7 +867,7 @@ mod tests {#[test]fn tool_schemas_are_well_formed() {let tools = tools();- assert_eq!(tools.len(), 50);+ assert_eq!(tools.len(), 55);let mut names: Vec<&str> = tools.iter().map(|t| t["name"].as_str().unwrap()).collect();names.sort();names.dedup();diff --git a/src/ops/cloud.rs b/src/ops/cloud.rsnew file mode 100644index 0000000..ba04622--- /dev/null+++ b/src/ops/cloud.rs@@ -0,0 +1,431 @@+//! Cloud machine operations: create a droplet and make it a fleet machine,+//! power it off or on, destroy it; and the idle watch that warns, powers off+//! or destroys machines nobody is using (as the user chose in Settings › Cloud).++use std::collections::HashMap;+use std::sync::Arc;+use std::sync::Mutex;+use std::time::Duration;++use chrono::{DateTime, Utc};++use super::inventory_edit;+use super::NewMachine;+use crate::cloud::digitalocean::{Client, same_key};+use crate::cloud::{CloudCreate, CloudOptions, TAILSCALE_KEY, auth, nearest_region, secrets, setup};+use crate::config::{CloudRef, MachineSpec};+use crate::fleet::Engine;++/// When each cloud machine was last in use (this run of the app), and the ones+/// the idle watch already acted on.+#[derive(Default)]+pub struct IdleState {+ pub last_active: HashMap<String, DateTime<Utc>>,+ #[cfg_attr(not(feature = "gui"), allow(dead_code))]+ acted: std::collections::HashSet<String>,+}++pub static IDLE: Mutex<Option<IdleState>> = Mutex::new(None);++impl Engine {+ async fn do_client(&self) -> Result<Client, String> {+ let method = self.settings().cloud.digitalocean_auth;+ auth::token(&method, &self.paths().dir).await.map(Client::new)+ }++ /// The account, regions, sizes and defaults for a new cloud machine.+ pub async fn cloud_options(self: &Arc<Self>) -> CloudOptions {+ let settings = self.settings().cloud;+ let dir = self.paths().dir.clone();+ let mut out = CloudOptions {+ provider: "digitalocean".into(),+ method: settings.digitalocean_auth.clone(),+ signed_in: auth::signed_in(&settings.digitalocean_auth, &dir),+ oauth_available: auth::oauth_available(),+ default_size: settings.size.clone(),+ ssh_key: crate::probe::default_ssh_key(),+ ..Default::default()+ };+ if self.demo_world().is_some() {+ return demo_options(out);+ }+ if !out.signed_in {+ return out;+ }+ let client = match self.do_client().await {+ Ok(c) => c,+ Err(e) => {+ out.error = Some(e);+ return out;+ }+ };+ let (account, regions, sizes) = tokio::join!(client.account(), client.regions(), client.sizes());+ match (account, regions, sizes) {+ (Ok(a), Ok(r), Ok(s)) => {+ out.account = Some(a);+ let slugs: Vec<String> = r.iter().map(|r| r.slug.clone()).collect();+ let offset = chrono::Local::now().offset().local_minus_utc() / 3600;+ out.default_region = Some(settings.region.clone()).filter(|r| slugs.contains(r)).or_else(|| nearest_region(offset, &slugs)).unwrap_or_default();+ out.regions = r;+ // The everyday sizes: basic ("s-"), general purpose ("g-") and CPU-optimized ("c-") droplets.+ out.sizes = s.into_iter().filter(|s| ["s-", "g-", "c-"].iter().any(|p| s.slug.starts_with(p)) && s.memory_mb >= 1024).collect();+ }+ (a, r, s) => out.error = a.err().or(r.err()).or(s.err()),+ }+ out+ }++ /// Creates a droplet, waits for it to set itself up, and adds it to the+ /// fleet. Returns the operation that tracks it.+ pub fn cloud_create(self: &Arc<Self>, req: CloudCreate) -> Result<u64, String> {+ if self.demo_world().is_some() {+ return Err("The demo doesn't create cloud machines.".into());+ }+ let name = req.name.trim().to_string();+ if name.is_empty() || name.len() > 60 {+ return Err("Give the machine a name (up to 60 characters).".into());+ }+ if self.current().machines.iter().any(|m| m.name.eq_ignore_ascii_case(&name)) {+ return Err(format!("A machine called \"{name}\" is already in the fleet."));+ }+ let key_path = crate::probe::default_ssh_key().ok_or("There's no SSH key on this computer to sign in with. Make one with `ssh-keygen -t ed25519`.")?;+ 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(", ")));+ }+ let op = self.begin_op("cloud-create", format!("Create {name} on DigitalOcean"), None, None);+ let me = self.clone();+ self.runtime().spawn(async move {+ let result = me.run_cloud_create(op, name, req.region, req.size, key_path, extras).await;+ super::finish(&me, op, result);+ });+ Ok(op)+ }++ async fn run_cloud_create(+ self: &Arc<Self>,+ op: u64,+ name: String,+ region: Option<String>,+ size: Option<String>,+ key_path: String,+ extras: Vec<String>,+ ) -> Result<(), String> {+ let client = self.do_client().await?;+ let options = self.cloud_options().await;+ if let Some(e) = options.error {+ return Err(e);+ }+ let region = region.filter(|r| !r.is_empty()).unwrap_or(options.default_region.clone());+ let size = size.filter(|s| !s.is_empty()).unwrap_or(options.default_size.clone());+ let size_info = options.sizes.iter().find(|s| s.slug == size).ok_or_else(|| format!("DigitalOcean has no size \"{size}\"."))?;+ if !size_info.regions.contains(®ion) {+ return Err(format!("{size} isn't available in {region}; pick another size or region."));+ }++ // The SSH key: this computer's default one, added to the account if it isn't there.+ let home = dirs::home_dir().ok_or("No home folder")?;+ let public_key = std::fs::read_to_string(home.join(key_path.trim_start_matches("~/"))).map_err(|e| format!("Couldn't read {key_path}: {e}"))?;+ let keys = client.ssh_keys().await?;+ let key = match keys.into_iter().find(|k| same_key(&k.public_key, &public_key)) {+ 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?+ }+ };++ let user = setup::user_name(&std::env::var("USER").or_else(|_| std::env::var("USERNAME")).unwrap_or_default());+ let droplet_name = crate::util::slug(&name);+ self.op_log(op, format!("▸ Creating {droplet_name} in {region} ({size}, ${:.3}/h)", size_info.price_hourly));+ let created = client.create_droplet(&droplet_name, ®ion, &size, key.id, &setup::script(&user, &extras)).await?;+ let id = created.id;++ // Running, with an address.+ self.op_log(op, "▸ Waiting for it to start");+ let mut ip = None;+ for _ in 0..90 {+ tokio::time::sleep(Duration::from_secs(4)).await;+ let d = client.droplet(id).await?;+ if d.status == "active" && d.ipv4.is_some() {+ ip = d.ipv4;+ break;+ }+ }+ let ip = ip.ok_or("It didn't start within 6 minutes. It's still in your DigitalOcean account; destroy it there if you don't want it.")?;+ self.op_log(op, format!("✓ Started at {ip}"));++ // Into the fleet, marked as a cloud machine.+ let machine_id = self.add_machine(NewMachine { name: name.clone(), host: format!("{user}@{ip}") })?;+ let cloud = CloudRef {+ provider: "digitalocean".into(),+ id,+ region: region.clone(),+ size: size.clone(),+ price_hourly: size_info.price_hourly,+ created_at: Utc::now().to_rfc3339(),+ };+ let edit = |text: &str| inventory_edit::set_machine_cloud(text, &machine_id, Some(&cloud));+ inventory_edit::edit_file(self.inventory_path(), edit)?;+ self.reload_inventory_now();++ // Its first boot installs what was asked for; follow along.+ self.op_log(op, "▸ Setting it up (a few minutes)");+ let spec = self.machine(&machine_id).map(|(s, _)| s).ok_or("The new machine went missing from config.toml.")?;+ self.wait_for_setup(op, &spec, Duration::from_secs(20 * 60)).await?;++ if setup::resolve(&extras).contains(&"tailscale") {+ 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");+ 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")),+ }+ self.op_log(op, format!("✓ {name} is ready"));+ Ok(())+ }++ /// Polls the new machine until its setup script finishes, logging each step once.+ async fn wait_for_setup(self: &Arc<Self>, op: u64, spec: &MachineSpec, timeout: Duration) -> Result<(), String> {+ let started = std::time::Instant::now();+ let mut seen = String::new();+ let check = format!("if [ -f {} ]; then echo muxen-ready; fi; grep -E '^muxen-(step|warn):' {} 2>/dev/null | tail -n 4", setup::READY, setup::LOG);+ while started.elapsed() < timeout {+ tokio::time::sleep(Duration::from_secs(6)).await;+ let Ok(out) = tokio::process::Command::new("ssh").args(crate::probe::ssh_args(spec)).arg(&check).output().await else { continue };+ if !out.status.success() {+ continue; // Not answering ssh yet.+ }+ let text = String::from_utf8_lossy(&out.stdout).to_string();+ for line in text.lines() {+ if let Some(step) = line.strip_prefix("muxen-step: ").or(line.strip_prefix("muxen-warn: ")) {+ if !seen.contains(&format!("|{step}|")) {+ seen.push_str(&format!("|{step}|"));+ let mark = if line.starts_with("muxen-warn") { "!" } else { "▸" };+ self.op_log(op, format!(" {mark} {step}"));+ }+ }+ }+ if text.contains("muxen-ready") {+ return Ok(());+ }+ }+ Err(format!("Setup didn't finish within {} minutes. It's in your fleet; check {} on it.", timeout.as_secs() / 60, setup::LOG))+ }++ /// Joins the machine to the user's tailnet: with the saved auth key, or by+ /// opening Tailscale's approval page in the browser here.+ async fn join_tailnet(self: &Arc<Self>, op: u64, spec: &MachineSpec) {+ let hostname = crate::util::slug(&spec.name);+ match secrets::get(&self.paths().dir, TAILSCALE_KEY) {+ Some(key) => {+ let mut cmd = tokio::process::Command::new("ssh");+ cmd.args(crate::probe::ssh_args(spec)).arg(format!("sudo tailscale up --auth-key=file:/dev/stdin --hostname={hostname}"));+ cmd.stdin(std::process::Stdio::piped()).stdout(std::process::Stdio::null()).stderr(std::process::Stdio::piped());+ let joined = match cmd.spawn() {+ Ok(mut child) => {+ if let Some(mut stdin) = child.stdin.take() {+ use tokio::io::AsyncWriteExt;+ let _ = stdin.write_all(key.as_bytes()).await;+ }+ child.wait_with_output().await.map(|o| o.status.success()).unwrap_or(false)+ }+ Err(_) => false,+ };+ self.op_log(op, if joined { "✓ Joined your tailnet" } else { "! Couldn't join your tailnet with the saved key" });+ }+ None => {+ // No key: start the login and hand its approval link to the browser.+ let script = format!("sudo sh -c 'nohup tailscale up --hostname={hostname} >/tmp/muxen-tailscale.log 2>&1 &'; sleep 4; grep -o 'https://login.tailscale.com/[^ ]*' /tmp/muxen-tailscale.log | head -n 1");+ let out = tokio::process::Command::new("ssh").args(crate::probe::ssh_args(spec)).arg(script).output().await;+ match out.ok().map(|o| String::from_utf8_lossy(&o.stdout).trim().to_string()).filter(|u| u.starts_with("https://")) {+ Some(url) => {+ self.op_log(op, "▸ Approve it in the browser to join your tailnet");+ crate::util::open_url(&url);+ }+ None => self.op_log(op, "! Tailscale is installed; run `sudo tailscale up` on it to join your tailnet"),+ }+ }+ }+ }++ /// Destroys a cloud machine: deletes the droplet and removes it from the fleet.+ 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 the fleet anymore.")?;+ let cloud = spec.cloud.clone().ok_or_else(|| format!("{} isn't a cloud machine Muxen created.", spec.name))?;+ let op = self.begin_op("cloud-destroy", format!("Destroy {}", spec.name), Some(spec.id.clone()), None);+ let me = self.clone();+ self.runtime().spawn(async move {+ let result = async {+ let client = me.do_client().await?;+ me.op_log(op, format!("▸ Deleting droplet {} from DigitalOcean", cloud.id));+ client.delete_droplet(cloud.id).await?;+ me.op_log(op, format!("▸ Removing {} from config.toml", spec.name));+ me.remove_machine(&spec.id)?;+ // Its address may be reused by someone else's droplet.+ if let Some(ip) = spec.host.rsplit('@').next() {+ let _ = tokio::process::Command::new("ssh-keygen").args(["-R", ip]).output().await;+ }+ me.op_log(op, "✓ Destroyed");+ Ok(())+ }+ .await;+ super::finish(&me, op, result);+ });+ Ok(op)+ }++ /// 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 the fleet anymore.")?;+ let cloud = spec.cloud.clone().ok_or_else(|| format!("{} isn't a cloud machine Muxen created.", spec.name))?;+ let title = format!("{} {}", if on { "Power on" } else { "Power off" }, spec.name);+ let op = self.begin_op(if on { "cloud-power-on" } else { "cloud-power-off" }, title, Some(spec.id.clone()), None);+ let me = self.clone();+ let id = spec.id.clone();+ self.runtime().spawn(async move {+ let result = async {+ let client = me.do_client().await?;+ client.droplet_action(cloud.id, if on { "power_on" } else { "shutdown" }).await?;+ me.op_log(op, if on { "✓ Powering on" } else { "✓ Shutting down (still billed while off)" });+ tokio::time::sleep(Duration::from_secs(20)).await;+ me.trigger_check(Some(id));+ Ok(())+ }+ .await;+ super::finish(&me, op, result);+ });+ Ok(op)+ }++ /// Watches cloud machines for idleness (every 10 minutes) and does what+ /// Settings › Cloud says. Run by one process (the app).+ #[cfg_attr(not(feature = "gui"), allow(dead_code))]+ pub fn start_cloud_idle_watch(self: &Arc<Self>) {+ if self.demo_world().is_some() {+ return;+ }+ let me = self.clone();+ self.runtime().spawn(async move {+ loop {+ tokio::time::sleep(Duration::from_secs(600)).await;+ me.idle_tick();+ }+ });+ }++ #[cfg_attr(not(feature = "gui"), allow(dead_code))]+ fn idle_tick(self: &Arc<Self>) {+ let settings = self.settings().cloud;+ let snapshot = self.current();+ let now = Utc::now();+ let mut actions = Vec::new();+ {+ let mut guard = IDLE.lock().unwrap();+ let state = guard.get_or_insert_with(IdleState::default);+ for m in snapshot.machines.iter().filter(|m| m.cloud.is_some()) {+ let busy = snapshot.sessions.iter().any(|x| x.machine_id == m.id && x.busy)+ || m.summary.working > 0+ || m.probe.as_ref().and_then(|p| p.cpu_pct).is_some_and(|c| c > 20.);+ let last = state.last_active.entry(m.id.clone()).or_insert(now);+ if busy {+ *last = now;+ state.acted.remove(&m.id);+ continue;+ }+ let idle_hours = (now - *last).num_minutes() as f64 / 60.;+ if settings.idle_hours > 0 && idle_hours >= settings.idle_hours as f64 && !state.acted.contains(&m.id) && m.status == "online" {+ state.acted.insert(m.id.clone());+ actions.push(m.id.clone());+ }+ }+ }+ for id in actions {+ let result = match settings.idle_action.as_str() {+ "poweroff" => self.cloud_power(&id, false).map(|_| ()),+ "destroy" => self.cloud_destroy(&id).map(|_| ()),+ _ => Ok(()), // "warn": the machine shows it (Needs attention).+ };+ if let Err(e) = result {+ tracing::warn!("idle {id}: {e}");+ }+ }+ self.republish();+ }++ /// Signs in to DigitalOcean the chosen way. `token` for "token"; `open`+ /// opens the browser for "oauth".+ pub async fn cloud_sign_in(self: &Arc<Self>, method: &str, token: Option<String>, open: impl FnOnce(&str)) -> Result<String, String> {+ let dir = self.paths().dir.clone();+ match method {+ "token" => auth::save_token(&dir, token.as_deref().unwrap_or(""))?,+ "oauth" => auth::oauth_sign_in(&dir, open).await?,+ "doctl" => {}+ other => return Err(format!("Unknown sign-in \"{other}\".")),+ }+ let mut s = self.settings();+ s.cloud.digitalocean_auth = method.to_string();+ self.update_settings(s)?;+ let account = self.do_client().await?.account().await?;+ Ok(account.email)+ }++ pub fn cloud_sign_out(self: &Arc<Self>) {+ let method = self.settings().cloud.digitalocean_auth;+ auth::sign_out(&method, &self.paths().dir);+ }+}++/// How long a machine has been idle, as the idle watch sees it.+pub fn idle_since(machine_id: &str) -> Option<DateTime<Utc>> {+ IDLE.lock().ok()?.as_ref()?.last_active.get(machine_id).copied()+}++/// A made-up account, regions and sizes for the demo (it never creates anything).+fn demo_options(mut out: CloudOptions) -> CloudOptions {+ use crate::cloud::{Account, Region, Size};+ let regions = ["nyc1", "nyc3", "sfo3", "tor1", "ams3", "fra1", "lon1", "sgp1", "blr1", "syd1", "atl1", "ric1"];+ let sizes: [(&str, u32, u32, u32, f64); 6] =+ [("s-1vcpu-1gb", 1, 1, 25, 6.), ("s-1vcpu-2gb", 1, 2, 50, 12.), ("s-2vcpu-2gb", 2, 2, 60, 18.), ("s-2vcpu-4gb", 2, 4, 80, 24.), ("s-4vcpu-8gb", 4, 8, 160, 48.), ("s-8vcpu-16gb", 8, 16, 320, 96.)];+ let all: Vec<String> = regions.iter().map(|r| r.to_string()).collect();+ out.signed_in = true;+ out.account = Some(Account { email: "[email protected]".into(), team: Some("Demo team".into()), droplet_limit: 25, status: "active".into() });+ let name = |slug: &str| {+ let city = match &slug[..3] {+ "nyc" => "New York",+ "sfo" => "San Francisco",+ "tor" => "Toronto",+ "ams" => "Amsterdam",+ "fra" => "Frankfurt",+ "lon" => "London",+ "sgp" => "Singapore",+ "blr" => "Bangalore",+ "syd" => "Sydney",+ "atl" => "Atlanta",+ _ => "Richmond",+ };+ format!("{city} {}", &slug[3..])+ };+ out.regions = regions.iter().map(|r| Region { slug: r.to_string(), name: name(r), sizes: Vec::new() }).collect();+ out.sizes = sizes+ .iter()+ .map(|(slug, vcpus, gb, disk, monthly)| Size {+ slug: slug.to_string(),+ vcpus: *vcpus,+ memory_mb: gb * 1024,+ disk_gb: *disk,+ price_hourly: (monthly / 672. * 1000.).round() / 1000.,+ price_monthly: *monthly,+ regions: all.clone(),+ description: String::new(),+ })+ .collect();+ out.default_region = "nyc3".into();+ out+}diff --git a/src/ops/inventory_edit.rs b/src/ops/inventory_edit.rsindex 7070c56..e7256f0 100644--- a/src/ops/inventory_edit.rs+++ b/src/ops/inventory_edit.rs@@ -1,4 +1,4 @@-//! Edits fleet.toml in place with `toml_edit`, so the user's comments, ordering+//! 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.//! Every function works on text, which lets demo mode reuse them on its//! in-memory inventory.@@ -40,7 +40,7 @@ pub fn add_machine(text: &str, name: &str, host: &str) -> Result<(String, String{let machines = machines_mut(&mut doc)?;if machines.iter().any(|t| table_name(t).eq_ignore_ascii_case(name)) {- return Err(format!("A machine called \"{name}\" is already in fleet.toml."));+ return Err(format!("A machine called \"{name}\" is already in config.toml."));}let mut table = Table::new();table["name"] = value(name);@@ -52,7 +52,7 @@ pub fn add_machine(text: &str, name: &str, host: &str) -> Result<(String, Stringdoc.set_trailing(rest);let out = doc.to_string();let id = Inventory::parse(&out)- .map_err(|e| format!("fleet.toml would be invalid: {e}"))?+ .map_err(|e| format!("config.toml would be invalid: {e}"))?.machines.last().map(|m| m.id.clone())@@ -86,6 +86,30 @@ pub fn remove_machine(text: &str, machine_id: &str) -> Result<String, String> {finish(doc)}+/// Records that a machine is a cloud machine (or forgets it, with `None`).+pub fn set_machine_cloud(text: &str, machine_id: &str, cloud: Option<&crate::config::CloudRef>) -> Result<String, String> {+ let mut doc = parse(text)?;+ let machines = machines_mut(&mut doc)?;+ let index = find_machine(machines, machine_id)?;+ let table = machines.get_mut(index).ok_or("That machine isn't in config.toml.")?;+ match cloud {+ Some(c) => {+ let mut t = toml_edit::InlineTable::new();+ t.insert("provider", c.provider.as_str().into());+ t.insert("id", (c.id as i64).into());+ t.insert("region", c.region.as_str().into());+ t.insert("size", c.size.as_str().into());+ t.insert("price_hourly", c.price_hourly.into());+ t.insert("created_at", c.created_at.as_str().into());+ table["cloud"] = value(t);+ }+ None => {+ table.remove("cloud");+ }+ }+ finish(doc)+}+/// Splits document trailing text into the comment lines glued to the last table and the rest.fn split_attached(trailing: &str) -> (&str, &str) {if trailing.is_empty() || trailing.starts_with('\n') {@@ -113,7 +137,7 @@ pub fn add_runners(text: &str, machine_id: &str, names: &[String]) -> Result<Strlet table = machines.get_mut(index).ok_or("Machine not found.")?;match table.get_mut("runners") {Some(item) => {- let list = item.as_array_mut().ok_or("`runners` in fleet.toml isn't a list.")?;+ let list = item.as_array_mut().ok_or("`runners` in config.toml isn't a list.")?;for n in names {if !list.iter().any(|v| v.as_str().is_some_and(|s| s.eq_ignore_ascii_case(n))) {list.push(n.as_str());@@ -159,12 +183,12 @@ pub fn set_workspaces(text: &str, machine_id: &str, allowed: bool) -> Result<Str}fn parse(text: &str) -> Result<DocumentMut, String> {- text.parse::<DocumentMut>().map_err(|e| format!("fleet.toml has a syntax error, so it wasn't changed: {}", e.to_string().trim()))+ text.parse::<DocumentMut>().map_err(|e| format!("config.toml has a syntax error, so it wasn't changed: {}", e.to_string().trim()))}fn finish(doc: DocumentMut) -> Result<String, String> {let out = doc.to_string();- Inventory::parse(&out).map_err(|e| format!("fleet.toml would be invalid: {e}"))?;+ Inventory::parse(&out).map_err(|e| format!("config.toml would be invalid: {e}"))?;Ok(out)}@@ -174,7 +198,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(|| "fleet.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 Muxen can't edit. Use [[machine]] tables.".to_string())}fn table_name(t: &Table) -> &str {@@ -195,7 +219,7 @@ fn find_machine(machines: &ArrayOfTables, machine_id: &str) -> Result<usize, Strreturn Ok(i);}}- Err(format!("Machine \"{machine_id}\" isn't in fleet.toml."))+ Err(format!("Machine \"{machine_id}\" isn't in config.toml."))}#[cfg(test)]@@ -216,6 +240,25 @@ mod workspace_tests {#[cfg(test)]mod tests {+ #[test]+ fn cloud_machines_keep_where_they_live() {+ let (text, id) = super::add_machine("# my fleet\n", "Droplet", "[email protected]").unwrap();+ let cloud = crate::config::CloudRef {+ provider: "digitalocean".into(),+ id: 42,+ region: "nyc3".into(),+ size: "s-2vcpu-4gb".into(),+ price_hourly: 0.03571,+ created_at: "2026-10-09T12:00:00Z".into(),+ };+ let text = super::set_machine_cloud(&text, &id, Some(&cloud)).unwrap();+ assert!(text.starts_with("# my fleet"));+ let inv = crate::config::Inventory::parse(&text).unwrap();+ assert_eq!(inv.machines[0].cloud.as_ref(), Some(&cloud));+ let text = super::set_machine_cloud(&text, &id, None).unwrap();+ assert!(crate::config::Inventory::parse(&text).unwrap().machines[0].cloud.is_none());+ }+use super::*;use crate::config::default_inventory;diff --git a/src/ops/mod.rs b/src/ops/mod.rsindex 6ed431e..5f47573 100644--- a/src/ops/mod.rs+++ b/src/ops/mod.rs@@ -9,6 +9,7 @@//!//! PUBLIC API — the UI depends on these signatures.+pub(crate) mod cloud;pub(crate) mod inventory_edit;pub(crate) mod remote;@@ -142,7 +143,7 @@ pub enum RunnerAction {Restart,/// Tail the newest _diag log into the operation output (read-only).Logs,- /// Stop, uninstall the service, deregister from GitHub, and drop it from fleet.toml.+ /// Stop, uninstall the service, deregister from GitHub, and drop it from config.toml.Remove { delete_files: bool },}@@ -168,7 +169,7 @@ impl RunnerAction {}}-/// A machine to add to fleet.toml.+/// A machine to add to config.toml.#[derive(Debug, Clone)]pub struct NewMachine {pub name: String,@@ -180,7 +181,7 @@ impl Engine {/// Starts installing runners. Returns the operation id.pub fn install_runners(self: &Arc<Self>, req: InstallRequest) -> Result<u64, String> {let req = self.validate_install(req)?;- let (spec, probe) = self.machine(&req.machine_id).ok_or("That machine isn't in fleet.toml anymore.")?;+ let (spec, probe) = self.machine(&req.machine_id).ok_or("That machine isn't in config.toml anymore.")?;let title = match req.names.as_slice() {[one] => format!("Install {one} on {}", spec.name),many => format!("Install {} runners on {}", many.len(), spec.name),@@ -234,10 +235,10 @@ impl Engine {}_ => {let (spec, probe) = machine.clone().ok_or_else(|| {- format!("{} isn't on a machine in fleet.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 Muxen can't control it. It can only be removed from GitHub.", runner.name)})?;if !spec.is_checkable() {- return Err(format!("{} has no host in fleet.toml.", spec.name));+ return Err(format!("{} has no host in config.toml.", spec.name));}let dir = dir.clone().ok_or_else(|| {format!("{} wasn't found on {} at the last check. Check the machine again, or install the runner.", runner.name, spec.name)@@ -270,7 +271,30 @@ impl Engine {Ok(op)}- /// Adds a machine to fleet.toml (keeping its comments and formatting) and checks it.+ /// Cancels the workflow run a queued or running job belongs to (all of+ /// its jobs, as GitHub cancels whole runs). Returns the operation id.+ pub fn cancel_run(self: &Arc<Self>, job_id: u64) -> Result<u64, String> {+ let snap = self.current();+ let job = snap.jobs.queued.iter().chain(snap.jobs.running.iter()).find(|j| j.id == job_id).cloned().ok_or("That job isn't queued or running anymore.")?;+ if self.demo_world().is_some() {+ return Err("The demo can't cancel runs.".into());+ }+ let op = self.begin_op("cancel-run", format!("Cancel {} in {}", job.workflow, job.repo), None, None);+ let me = self.clone();+ self.runtime().spawn(async move {+ let settings = me.settings();+ me.op_log(op, format!("Cancelling run {} of {} ({})", job.run_id, job.workflow, job.repo));+ let result = me.github().cancel_run(&settings.github, &job.repo, job.run_id).await;+ if result.is_ok() {+ me.op_log(op, "GitHub is cancelling it; its jobs stop in a few seconds.");+ me.trigger_sync();+ }+ finish(&me, op, result);+ });+ Ok(op)+ }++ /// Adds a machine to config.toml (keeping its comments and formatting) and checks it./// Returns the new machine's id.pub fn add_machine(self: &Arc<Self>, machine: NewMachine) -> Result<String, String> {let name = machine.name.trim().to_string();@@ -297,10 +321,10 @@ impl Engine {Ok(id)}- /// Removes a machine from fleet.toml. Doesn't touch the machine itself.+ /// Removes a machine from config.toml. Doesn't touch the machine itself.pub fn remove_machine(self: &Arc<Self>, machine_id: &str) -> Result<(), String> {if self.machine(machine_id).is_none() {- return Err("That machine isn't in fleet.toml anymore.".into());+ return Err("That machine isn't in config.toml anymore.".into());}if self.machine_busy(machine_id) {return Err("An operation is still running on this machine. Wait for it to finish.".into());@@ -325,9 +349,9 @@ 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 fleet.toml anymore.")?;+ 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 fleet.toml, so Muxen can't reach it.", spec.name));+ return Err(format!("{} has no host in config.toml, so Muxen 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));@@ -433,7 +457,7 @@ enum Plan {OnMachine { spec: MachineSpec, probe: Option<ProbeResult>, dir: String, container: Option<String>, scope: Option<String>, delete_files: bool },/// The machine is gone or unreachable: deregister through the GitHub API.GitHubOnly,- /// Not installed anywhere we can see; just drop it from fleet.toml.+ /// Not installed anywhere we can see; just drop it from config.toml.InventoryOnly,}@@ -624,11 +648,11 @@ fn docker_install_script(with_params(Shell::Sh, ¶ms, INSTALL_DOCKER_SH)}-/// Adds what got installed to fleet.toml (even if a later runner failed) and refreshes.+/// Adds what got installed to config.toml (even if a later runner failed) and refreshes.async fn record_installed(engine: &Arc<Engine>, op: u64, req: &InstallRequest, spec: &MachineSpec, ran: Result<(), String>) -> Result<(), String> {let done = if ran.is_ok() { req.names.clone() } else { installed_names(engine, op, &req.names) };if !done.is_empty() {- step(engine, op, format!("Adding {} to fleet.toml", done.join(", ")));+ 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."));@@ -706,10 +730,10 @@ fn control_docker_script(action: RunnerAction, container: &str, token: &str, delwith_params(Shell::Sh, ¶ms, CONTROL_DOCKER_SH)}-/// Drops a removed runner from fleet.toml if it was listed there.+/// Drops a removed runner from config.toml if it was listed there.fn forget_runner(engine: &Arc<Engine>, op: u64, runner: &Runner) {let (Some(mid), true) = (runner.machine_id.as_deref(), runner.declared) else { return };- step(engine, op, format!("Removing {} from fleet.toml", runner.name));+ step(engine, op, format!("Removing {} from config.toml", runner.name));let edit = |t: &str| inventory_edit::remove_runner(t, mid, &runner.name);let result = match engine.demo_world() {Some(w) => w.edit_inventory(edit),@@ -817,7 +841,7 @@ async fn demo_install(engine: &Arc<Engine>, op: u64, req: &InstallRequest, spec:}w.install_runners(&spec.id, &req.names, &req.labels, false);- step(engine, op, format!("Adding {} to fleet.toml", req.names.join(", ")));+ step(engine, op, format!("Adding {} to config.toml", req.names.join(", ")));w.edit_inventory(|t| inventory_edit::add_runners(t, &spec.id, &req.names))?;engine.reload_inventory_now();refresh(engine, op, Some(spec)).await;@@ -856,7 +880,7 @@ async fn demo_install_docker(engine: &Arc<Engine>, op: u64, req: &InstallRequestengine.op_log(op, format!("✓ {name} is installed"));}w.install_runners(&spec.id, &req.names, &docker_labels(&req.labels), true);- step(engine, op, format!("Adding {} to fleet.toml", req.names.join(", ")));+ step(engine, op, format!("Adding {} to config.toml", req.names.join(", ")));w.edit_inventory(|t| inventory_edit::add_runners(t, &spec.id, &req.names))?;engine.reload_inventory_now();refresh(engine, op, Some(spec)).await;@@ -1085,7 +1109,7 @@ mod engine_tests {let base = tmp.join("runners");stub_runner(&base.join("or-test-01"), "or-test-01");std::fs::write(- tmp.join("fleet.toml"),+ tmp.join("config.toml"),format!("# test fleet\n[[machine]]\nname = \"Here\"\nhost = \"local\"\nrunners = [\"or-test-01\"]\nrunner_dirs = [\"{}/*\"]\n", base.display()),).unwrap();@@ -1114,7 +1138,7 @@ mod engine_tests {assert_eq!(new_id, "spare");assert!(engine.current().machines.iter().any(|m| m.id == "spare"));engine.remove_machine("spare").unwrap();- let text = std::fs::read_to_string(tmp.join("fleet.toml")).unwrap();+ let text = std::fs::read_to_string(tmp.join("config.toml")).unwrap();assert!(text.starts_with("# test fleet") && !text.contains("Spare"), "{text}");assert_eq!(engine.suggest_runner_names("here", 2), vec!["here-01", "here-02"]);@@ -1168,7 +1192,7 @@ mod engine_tests {let tmp = std::env::temp_dir().join(format!("muxen-docker-{}", std::process::id()));let _ = std::fs::remove_dir_all(&tmp);std::fs::create_dir_all(&tmp).unwrap();- std::fs::write(tmp.join("fleet.toml"), format!("[[machine]]\nname = \"Box\"\nhost = \"{host}\"\n")).unwrap();+ std::fs::write(tmp.join("config.toml"), format!("[[machine]]\nname = \"Box\"\nhost = \"{host}\"\n")).unwrap();let engine = Engine::new(Paths::resolve(Some(tmp.clone()), None), false);engine.run_check(None).await;let (spec, probe) = engine.machine("box").unwrap();diff --git a/src/ops/remote.rs b/src/ops/remote.rsindex b934999..391b4ed 100644--- a/src/ops/remote.rs+++ b/src/ops/remote.rs@@ -17,7 +17,7 @@ use crate::probe::{self, ProbeResult, Shell};const PS_READ_STDIN: &str = "[Console]::In.ReadToEnd() | Invoke-Expression";const STDERR_TAIL: usize = 4;-/// The shell a machine speaks: pinned in fleet.toml, else what the last check used, else by OS.+/// The shell a machine speaks: pinned in config.toml, else what the last check used, else by OS.pub fn shell_for(spec: &MachineSpec, probe: Option<&ProbeResult>) -> Shell {spec.shell.or_else(|| probe.and_then(|p| p.shell))diff --git a/src/probe/mod.rs b/src/probe/mod.rsindex 7b2e62c..e0d0cb9 100644--- a/src/probe/mod.rs+++ b/src/probe/mod.rs@@ -37,6 +37,9 @@ pub struct ProbeResult {pub os: Option<String>,pub arch: Option<String>,pub os_version: Option<String>,+ /// "laptop" | "desktop", when the machine says.+ #[serde(default)]+ pub form_factor: Option<String>,pub cores: Option<u32>,pub cpu_pct: Option<f64>,pub mem_total: Option<u64>,@@ -72,6 +75,7 @@ impl ProbeResult {self.os = self.os.take().or_else(|| p.os.clone());self.arch = self.arch.take().or_else(|| p.arch.clone());self.os_version = self.os_version.take().or_else(|| p.os_version.clone());+ self.form_factor = self.form_factor.take().or_else(|| p.form_factor.clone());}self}@@ -364,6 +368,7 @@ pub fn parse(out: &str) -> ProbeResult {"arch" => r.arch = text(),"hostname" => r.hostname = text(),"os_version" => r.os_version = text().filter(|v| v != "macOS"),+ "form_factor" => r.form_factor = text(),"cores" => r.cores = value.parse().ok(),"cpu_pct" => r.cpu_pct = value.parse::<f64>().ok().map(|v| v.clamp(0.0, 100.0)),"mem_total" => r.mem_total = value.parse().ok().filter(|v| *v > 0),diff --git a/src/probe/scripts/probe.sh b/src/probe/scripts/probe.shindex 8d1dd02..1c55db3 100644--- a/src/probe/scripts/probe.sh+++ b/src/probe/scripts/probe.sh@@ -18,6 +18,8 @@ kv hostname "$(hostname 2>/dev/null)"case "$os" indarwin)kv os_version "macOS $(sw_vers -productVersion 2>/dev/null)"+ # A battery means a laptop.+ if pmset -g batt 2>/dev/null | grep -q InternalBattery; then kv form_factor laptop; else kv form_factor desktop; fikv cores "$(sysctl -n hw.ncpu 2>/dev/null)"kv load "$(sysctl -n vm.loadavg 2>/dev/null | tr -d '{}')"boot=$(sysctl -n kern.boottime 2>/dev/null | sed -n 's/^{ sec = \([0-9]*\),.*/\1/p')@@ -50,6 +52,12 @@ linux)elsekv os_version "Linux $(uname -r 2>/dev/null)"fi+ # SMBIOS chassis type: 8-10, 14, 31, 32 are portables.+ case "$(cat /sys/class/dmi/id/chassis_type 2>/dev/null)" in+ 8 | 9 | 10 | 14 | 31 | 32) kv form_factor laptop ;;+ "") ;;+ *) kv form_factor desktop ;;+ esackv cores "$(getconf _NPROCESSORS_ONLN 2>/dev/null || nproc 2>/dev/null)"kv load "$(cut -d' ' -f1-3 /proc/loadavg 2>/dev/null)"kv uptime_s "$(cut -d. -f1 /proc/uptime 2>/dev/null)"diff --git a/src/ui/about.rs b/src/ui/about.rsindex e2bd190..e7b10bd 100644--- a/src/ui/about.rs+++ b/src/ui/about.rs@@ -24,6 +24,11 @@ const COMPONENTS: &[(&str, &str, &str)] = &[("portable-pty", "WezTerm", "MIT"),("Geist and Geist Mono", "Vercel", "SIL Open Font License 1.1"),("Lucide icons", "Lucide", "ISC"),+ ("Phosphor icons", "Phosphor Icons", "MIT"),+ ("Hugeicons", "Hugeicons", "MIT"),+ ("Solar icons", "480 Design", "CC BY 4.0"),+ ("MingCute icons", "MingCute Design", "Apache-2.0"),+ ("Fluent UI System Icons", "Microsoft", "MIT"),("Agent logos", "LobeHub Icons; marks belong to their owners", "MIT"),("Rust crates", "See THIRD_PARTY_NOTICES.md", "MIT / Apache-2.0"),];diff --git a/src/ui/assets.rs b/src/ui/assets.rsindex 62d184f..43bf61c 100644--- a/src/ui/assets.rs+++ b/src/ui/assets.rs@@ -21,10 +21,53 @@ icons!("rotate-ccw", "scroll-text", "search", "server", "settings", "square", "terminal", "trash-2","triangle-alert", "x", "zap", "arrow-left", "arrow-right", "gauge", "radio", "workflow","bot", "square-terminal", "power", "plug", "unplug",- "agent-claude", "agent-codex", "agent-gemini", "agent-opencode", "agent-amp", "agent-github",+ "agent-claude", "agent-codex", "agent-gemini", "agent-opencode", "agent-amp", "agent-pi", "agent-github","circle-dot", "git-pull-request", "git-pull-request-draft", "git-merge", "message-square", "lock", "star","arrow-down", "arrow-up", "book-open", "star-filled", "maximize", "minimize", "panel-right", "panel-left",- "folder", "file",+ "folder", "file", "sliders-horizontal", "palette", "keyboard", "cloud",+ // The glyphs of each icon style (see kit::IconStyle): pf- Phosphor (MIT),+ // so- Solar (CC BY 4.0), mc- MingCute (Apache-2.0), fl- Fluent (MIT),+ // hg- Hugeicons (MIT). Generated from the Iconify sets; one file per icon.+ "fl-activity", "fl-agent-github", "fl-arrow-up", "fl-book-open", "fl-bot", "fl-box",+ "fl-check", "fl-circle-alert", "fl-circle-check", "fl-circle-x", "fl-clock", "fl-copy",+ "fl-cpu", "fl-external-link", "fl-file", "fl-folder", "fl-folder-open", "fl-gauge",+ "fl-git-branch", "fl-hard-drive", "fl-inbox", "fl-info", "fl-laptop", "fl-layers",+ "fl-lock", "fl-memory-stick", "fl-message-square", "fl-monitor", "fl-network", "fl-play",+ "fl-plug", "fl-plus", "fl-power", "fl-refresh-cw", "fl-rotate-ccw", "fl-scroll-text",+ "fl-search", "fl-server", "fl-settings", "fl-square", "fl-star", "fl-terminal",+ "fl-trash-2", "fl-triangle-alert", "fl-unplug", "fl-workflow", "fl-x", "fl-zap",+ "hg-activity", "hg-agent-github", "hg-arrow-up", "hg-book-open", "hg-bot", "hg-box",+ "hg-check", "hg-circle-alert", "hg-circle-check", "hg-circle-x", "hg-clock", "hg-copy",+ "hg-cpu", "hg-external-link", "hg-file", "hg-folder", "hg-folder-open", "hg-gauge",+ "hg-git-branch", "hg-hard-drive", "hg-inbox", "hg-info", "hg-laptop", "hg-layers",+ "hg-lock", "hg-memory-stick", "hg-message-square", "hg-monitor", "hg-network", "hg-play",+ "hg-plug", "hg-plus", "hg-power", "hg-refresh-cw", "hg-rotate-ccw", "hg-scroll-text",+ "hg-search", "hg-server", "hg-settings", "hg-square", "hg-star", "hg-terminal",+ "hg-trash-2", "hg-triangle-alert", "hg-unplug", "hg-workflow", "hg-x", "hg-zap",+ "mc-activity", "mc-agent-github", "mc-arrow-up", "mc-book-open", "mc-bot", "mc-box",+ "mc-check", "mc-circle-alert", "mc-circle-check", "mc-circle-x", "mc-clock", "mc-copy",+ "mc-cpu", "mc-external-link", "mc-file", "mc-folder", "mc-folder-open", "mc-gauge",+ "mc-git-branch", "mc-hard-drive", "mc-inbox", "mc-info", "mc-laptop", "mc-layers",+ "mc-lock", "mc-memory-stick", "mc-message-square", "mc-monitor", "mc-network", "mc-play",+ "mc-plug", "mc-plus", "mc-power", "mc-refresh-cw", "mc-rotate-ccw", "mc-scroll-text",+ "mc-search", "mc-server", "mc-settings", "mc-square", "mc-star", "mc-terminal",+ "mc-trash-2", "mc-triangle-alert", "mc-unplug", "mc-workflow", "mc-x", "mc-zap",+ "pf-activity", "pf-agent-github", "pf-arrow-up", "pf-book-open", "pf-bot", "pf-box",+ "pf-check", "pf-circle-alert", "pf-circle-check", "pf-circle-x", "pf-clock", "pf-copy",+ "pf-cpu", "pf-external-link", "pf-file", "pf-folder", "pf-folder-open", "pf-gauge",+ "pf-git-branch", "pf-hard-drive", "pf-inbox", "pf-info", "pf-laptop", "pf-layers",+ "pf-lock", "pf-memory-stick", "pf-message-square", "pf-monitor", "pf-network", "pf-play",+ "pf-plug", "pf-plus", "pf-power", "pf-refresh-cw", "pf-rotate-ccw", "pf-scroll-text",+ "pf-search", "pf-server", "pf-settings", "pf-square", "pf-star", "pf-terminal",+ "pf-trash-2", "pf-triangle-alert", "pf-unplug", "pf-workflow", "pf-x", "pf-zap",+ "so-activity", "so-agent-github", "so-arrow-up", "so-book-open", "so-bot", "so-box",+ "so-check", "so-circle-alert", "so-circle-check", "so-circle-x", "so-clock", "so-copy",+ "so-cpu", "so-external-link", "so-file", "so-folder", "so-folder-open", "so-gauge",+ "so-git-branch", "so-hard-drive", "so-inbox", "so-info", "so-laptop", "so-layers",+ "so-lock", "so-memory-stick", "so-message-square", "so-monitor", "so-network", "so-play",+ "so-plug", "so-plus", "so-power", "so-refresh-cw", "so-rotate-ccw", "so-scroll-text",+ "so-search", "so-server", "so-settings", "so-square", "so-star", "so-terminal",+ "so-trash-2", "so-triangle-alert", "so-unplug", "so-workflow", "so-x", "so-zap",);const FONTS: &[&[u8]] = &[diff --git a/src/ui/cloud_dialog.rs b/src/ui/cloud_dialog.rsnew file mode 100644index 0000000..c5aeee0--- /dev/null+++ b/src/ui/cloud_dialog.rs@@ -0,0 +1,256 @@+//! New cloud machine: a DigitalOcean droplet, set up and added to the fleet.++use std::sync::Arc;++use gpui::{AnyElement, App, Context, Entity, EventEmitter, FocusHandle, Focusable, FontWeight, SharedString, Subscription, Window, div, prelude::*, px};++use super::dialogs::{DialogEvent, MODAL_CHROME, error_line, field, footer, frame};+use super::github::Load;+use super::input::{InputEvent, TextInput};+use super::kit::{self, Button, ButtonStyle};+use super::theme::{ActiveTheme, mono_font};+use crate::cloud::{CloudCreate, CloudOptions};+use crate::fleet::Engine;++pub struct CloudDialog {+ engine: Arc<Engine>,+ options: Load<CloudOptions>,+ name: Entity<TextInput>,+ region: String,+ size: String,+ /// What it comes with, by id (cloud::setup::EXTRAS).+ extras: Vec<String>,+ error: Option<String>,+ _subscriptions: Vec<Subscription>,+}++impl EventEmitter<DialogEvent> for CloudDialog {}++impl CloudDialog {+ pub fn new(engine: Arc<Engine>, window: &mut Window, cx: &mut Context<Self>) -> Self {+ // A name not taken yet: dev-1, dev-2, ...+ let taken: Vec<String> = engine.current().machines.iter().map(|m| m.name.to_lowercase()).collect();+ let first = (1..).map(|n| format!("dev-{n}")).find(|n| !taken.contains(n)).unwrap_or_else(|| "dev".into());+ let name = cx.new(|cx| TextInput::new(cx, "dev-1").with_text(first));+ let subs = vec![cx.subscribe_in(&name, window, |this: &mut Self, _, e: &InputEvent, _, cx| match e {+ InputEvent::Submit => this.submit(cx),+ InputEvent::Cancel => cx.emit(DialogEvent::Dismissed),+ InputEvent::Changed => cx.notify(),+ })];+ let settings = engine.settings().cloud;+ let job = engine.runtime().spawn({+ let engine = engine.clone();+ async move { engine.cloud_options().await }+ });+ cx.spawn(async move |this, cx| {+ if let Ok(options) = job.await {+ let _ = this.update(cx, |this, cx| {+ if this.region.is_empty() {+ this.region = options.default_region.clone();+ }+ this.options = Load::Ready(options);+ cx.notify();+ });+ }+ })+ .detach();+ CloudDialog {+ engine,+ options: Load::Loading,+ name,+ region: settings.region,+ size: settings.size,+ extras: settings.install,+ error: None,+ _subscriptions: subs,+ }+ }++ pub fn first_focus(&self, cx: &App) -> FocusHandle {+ self.name.focus_handle(cx)+ }++ fn submit(&mut self, cx: &mut Context<Self>) {+ if !matches!(&self.options, Load::Ready(o) if o.account.is_some()) {+ return;+ }+ let req = CloudCreate {+ name: self.name.read(cx).text().trim().to_string(),+ region: Some(self.region.clone()),+ size: Some(self.size.clone()),+ install: Some(self.extras.clone()),+ };+ match self.engine.cloud_create(req) {+ Ok(op) => cx.emit(DialogEvent::OperationStarted(op)),+ Err(e) => {+ self.error = Some(e);+ cx.notify();+ }+ }+ }+}++impl Focusable for CloudDialog {+ fn focus_handle(&self, cx: &App) -> FocusHandle {+ self.name.focus_handle(cx)+ }+}++impl Render for CloudDialog {+ fn render(&mut self, window: &mut Window, cx: &mut Context<Self>) -> impl IntoElement {+ let theme = cx.theme();+ let cancel = Button::new("cloud-cancel", "Cancel").style(ButtonStyle::Ghost).on_click(cx.listener(|_, _, _, cx| cx.emit(DialogEvent::Dismissed))).into_any_element();+ let options = match &self.options {+ Load::Ready(o) => o.clone(),+ Load::Loading => {+ return frame(&theme, "New cloud machine", None)+ .child(div().flex().items_center().gap(px(8.)).text_size(px(12.5)).text_color(theme.text_muted).child(kit::spinner("cloud-load", 13., theme.text_muted)).child("Asking DigitalOcean…"))+ .child(footer(vec![cancel]));+ }+ Load::Failed(e) => {+ return frame(&theme, "New cloud machine", None).children(error_line(&theme, &Some(e.clone()))).child(footer(vec![cancel]));+ }+ };+ // Not connected yet: that comes first.+ if options.account.is_none() {+ let why = options.error.clone().unwrap_or_else(|| "Connect your DigitalOcean account first.".into());+ return frame(&theme, "New cloud machine", None)+ .child(div().text_size(px(12.5)).text_color(theme.text_muted).child(why))+ .child(footer(vec![+ cancel,+ Button::new("cloud-settings", "Open Settings")+ .style(ButtonStyle::Primary)+ .on_click(cx.listener(|_, _, _, cx| cx.emit(DialogEvent::OpenCloudSettings)))+ .into_any_element(),+ ]));+ }++ let chip = |id: SharedString, text: String, selected: bool| {+ div()+ .id(id)+ .h(px(26.))+ .px(px(9.))+ .flex()+ .items_center()+ .rounded(px(6.))+ .border_1()+ .cursor_pointer()+ .text_size(px(12.5))+ .border_color(if selected { theme.accent } else { theme.border_variant })+ .bg(if selected { theme.accent.opacity(0.10) } else { theme.element })+ .text_color(if selected { theme.text } else { theme.text_muted })+ .child(text)+ };+ let chosen_city = crate::cloud::city_of_slug(&options.regions, &self.region);+ let regions: Vec<AnyElement> = crate::cloud::cities(&options.regions)+ .into_iter()+ .map(|(city, slug)| {+ let selected = chosen_city.as_deref() == Some(city.as_str());+ chip(SharedString::from(format!("cr-{slug}")), city, selected)+ .on_click(cx.listener(move |this, _, _, cx| {+ this.region = slug.clone();+ cx.notify()+ }))+ .into_any_element()+ })+ .collect();+ // Basic sizes available in the region, cheapest first.+ let sizes: Vec<&crate::cloud::Size> = options.sizes.iter().filter(|s| super::settings::regular_size(&s.slug) && s.regions.contains(&self.region)).take(8).collect();+ let picked = options.sizes.iter().find(|s| s.slug == self.size && s.regions.contains(&self.region)).cloned();+ let size_rows: Vec<AnyElement> = sizes+ .iter()+ .enumerate()+ .map(|(i, s)| {+ let selected = s.slug == self.size;+ let slug = s.slug.clone();+ div()+ .id(("cs", i))+ .flex()+ .items_center()+ .gap(px(10.))+ .px(px(10.))+ .h(px(30.))+ .rounded(px(6.))+ .cursor_pointer()+ .border_1()+ .border_color(if selected { theme.accent } else { theme.border_variant })+ .bg(if selected { theme.accent.opacity(0.08) } else { theme.element })+ .text_size(px(12.5))+ .child(div().flex_1().child(format!("{} vCPU · {} GB · {} GB disk", s.vcpus, s.memory_mb / 1024, s.disk_gb)))+ .child(div().font_family(mono_font()).text_size(px(12.)).text_color(theme.text_muted).child(format!("${:.0}/mo", s.price_monthly)))+ .on_click(cx.listener(move |this, _, _, cx| {+ this.size = slug.clone();+ cx.notify()+ }))+ .into_any_element()+ })+ .collect();+ // The extras in their groups, one checkbox each, three to a row.+ let this = cx.entity().downgrade();+ let groups: Vec<AnyElement> = crate::cloud::setup::GROUPS+ .iter()+ .map(|(group, ids)| {+ let boxes: Vec<AnyElement> = ids+ .iter()+ .map(|id| {+ let on = self.extras.iter().any(|x| x == id);+ let (id, this) = (id.to_string(), this.clone());+ div()+ .w(px(145.))+ .child(kit::checkbox(&theme, SharedString::from(format!("cd-x-{id}")), on, crate::cloud::setup::extra_name(&id), move |v, _, cx: &mut App| {+ let (v, id) = (*v, id.clone());+ let _ = this.update(cx, |d, cx| {+ d.extras.retain(|x| *x != id);+ if v {+ d.extras.push(id);+ }+ cx.notify()+ });+ }))+ .into_any_element()+ })+ .collect();+ div()+ .flex()+ .flex_col()+ .gap(px(7.))+ .child(div().text_size(px(11.5)).text_color(theme.text_placeholder).child(*group))+ .child(kit::rows_of(boxes, 3, 9.))+ .into_any_element()+ })+ .collect();+ let extras = div().flex().flex_col().gap(px(12.)).children(groups);+ let price = picked.as_ref().map(|s| {+ div()+ .text_size(px(12.))+ .text_color(theme.text_muted)+ .child(format!("${:.3} an hour (${:.0} a month), billed until you destroy it.", s.price_hourly, s.price_monthly))+ });+ let create_label = match &picked {+ Some(s) => format!("Create · ${:.0}/mo", s.price_monthly),+ None => "Create".into(),+ };+ let body_max = (f32::from(window.viewport_size().height) - MODAL_CHROME).max(220.);+ let fields = div()+ .flex()+ .flex_col()+ .gap(px(14.))+ .child(field(&theme, "Name", self.name.clone(), None))+ .child(field(&theme, "Region", kit::rows_of(regions, 4, 6.), None))+ .child(field(&theme, "Size", div().flex().flex_col().gap(px(4.)).children(size_rows), None))+ .child(field(&theme, "Comes with", extras, None))+ .children(price);+ frame(&theme, "New cloud machine", Some("A DigitalOcean droplet, set up for you and added to your fleet.".into()))+ .child(div().id("cloud-body").max_h(px(body_max)).overflow_y_scroll().child(fields))+ .children(error_line(&theme, &self.error))+ .child(footer(vec![+ cancel,+ Button::new("cloud-create", create_label)+ .style(ButtonStyle::Primary)+ .disabled(picked.is_none())+ .on_click(cx.listener(|this, _, _, cx| this.submit(cx)))+ .into_any_element(),+ ]))+ .font_weight(FontWeight::NORMAL)+ }+}diff --git a/src/ui/detail.rs b/src/ui/detail.rsindex 24e3b4f..c1a98d3 100644--- a/src/ui/detail.rs+++ b/src/ui/detail.rs@@ -15,7 +15,7 @@ impl Root {let theme = cx.theme();let s = self.snapshot.clone();let Some(m) = s.machines.iter().find(|m| m.id == id).cloned() else {- return gone(&theme, "This machine is no longer in fleet.toml.").into_any_element();+ return gone(&theme, "This machine is no longer in config.toml.").into_any_element();};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");@@ -65,7 +65,13 @@ impl Root {.items_center().gap(px(10.)).child(div().text_size(px(22.)).font_weight(FontWeight::SEMIBOLD).child(m.name.clone()))- .child(pill(status_label(&m), theme.machine_status(&m))),+ .child(pill(status_label(&m), theme.machine_status(&m)))+ .child({+ let (mid, favorite) = (m.id.clone(), Root::is_favorite(cx, &m.id));+ Button::icon_only("m-favorite", if favorite { "star-filled" } else { "star" })+ .tooltip(if favorite { "Remove from favorites" } else { "Add to favorites" })+ .on_click(cx.listener(move |this, _, _, cx| this.set_favorite_machine(&mid, !favorite, cx)))+ }),).child(div().font_family(mono_font()).text_size(px(12.)).text_color(theme.text_muted).child(meta.join(" · "))).child(div().text_size(px(12.)).text_color(theme.text_placeholder).child(checked)),@@ -111,12 +117,15 @@ impl Root {let machine = m.clone();Button::icon_only("m-remove", "trash-2").style(ButtonStyle::Danger)- .tooltip("Remove from fleet")+ .tooltip(if machine.cloud.is_some() { "Destroy" } else { "Remove from fleet" }).on_click(cx.listener(move |this, _, window, cx| this.confirm_remove_machine(&machine, window, cx)))}),);let mut body = page("machine-page", &self.page_scroll).child(header);+ if let Some(c) = &m.cloud {+ body = body.child(self.cloud_card(&theme, &m, c, cx));+ }if let Some(u) = m.unreachable.as_ref().filter(|_| offline) {body = body.child(self.unreachable_card(&theme, &m, u, cx));@@ -227,6 +236,40 @@ impl Root {body.into_any_element()}+ /// Where a cloud machine runs, what it costs, and its power.+ fn cloud_card(&self, theme: &Theme, m: &Machine, c: &crate::fleet::model::CloudInfo, cx: &mut Context<Self>) -> impl IntoElement {+ let off = m.status == "offline";+ let idle = c.idle_since.map(|t| (chrono::Utc::now() - t).num_minutes()).filter(|min| *min >= 30).map(|min| format!(" · idle {}", crate::util::short_duration(min as u64 * 60)));+ let detail = format!(+ "{} · {} · ${:.3}/h · ${:.2} so far{}",+ c.region.to_uppercase(),+ c.size,+ c.price_hourly,+ c.cost_so_far,+ idle.unwrap_or_default()+ );+ let (mid, machine) = (m.id.clone(), m.clone());+ card(theme)+ .flex_row()+ .items_center()+ .gap(px(12.))+ .px(px(14.))+ .py(px(12.))+ .child(kit::color_tile("cloud", 28.))+ .child(+ div()+ .flex()+ .flex_col()+ .flex_1()+ .min_w(px(0.))+ .gap(px(2.))+ .child(div().text_size(px(13.)).child(if off { "DigitalOcean · powered off (still billed)" } else { "DigitalOcean" }))+ .child(div().text_size(px(11.5)).text_color(theme.text_placeholder).child(detail)),+ )+ .child(Button::new("m-cloud-power", if off { "Power on" } else { "Power off" }).icon("power").on_click(cx.listener(move |this, _, _, cx| this.cloud_power(&mid, off, cx))))+ .child(Button::new("m-cloud-destroy", "Destroy…").style(ButtonStyle::Danger).on_click(cx.listener(move |this, _, window, cx| this.confirm_remove_machine(&machine, window, cx))))+ }+fn machine_runner_row(&self, theme: &Theme, s: &Snapshot, r: &Runner, i: usize, busy: bool, cx: &mut Context<Self>) -> AnyElement {let id = r.id.clone();let job = r.job_id.and_then(|j| s.jobs.running.iter().find(|x| x.id == j));@@ -271,6 +314,10 @@ impl Root {))),).child(self.runner_actions(theme, r, busy, "row", cx))+ .on_mouse_down(gpui::MouseButton::Right, {+ let rid = r.id.clone();+ super::menu::on_right_click(move || super::menu::MenuTarget::Runner(rid.clone()), cx)+ }).on_click(cx.listener(move |this, _, window, cx| this.navigate(Route::Runner(id.clone()), window, cx))).into_any_element()}@@ -361,7 +408,7 @@ impl Root {.child(m.name.clone()).on_click(cx.listener(move |this, _, window, cx| this.navigate(Route::Machine(mid.clone()), window, cx)))}))- .when(machine.is_none(), |d| d.child("Not in fleet.toml"))+ .when(machine.is_none(), |d| d.child("Not in config.toml")).child("·").child(format!("State {source}")).when(!r.declared && r.machine_id.is_some(), |d| d.child("·").child("discovered")),@@ -433,7 +480,7 @@ impl Root {.child(kv(&theme, "Worker", kit::mono(l.worker_pid.map(|p| format!("running a job · pid {p}")).unwrap_or_else(|| "idle".into())))).children(l.url.clone().map(|u| kv(&theme, "Config URL", kit::mono(u)))),None => card(&theme).p(px(14.)).child(div().text_size(px(12.5)).text_color(theme.text_placeholder).child(- if machine.is_some() { "Not found on the machine at the last check." } else { "No machine in fleet.toml runs this runner." },+ if machine.is_some() { "Not found on the machine at the last check." } else { "No machine in config.toml runs this runner." },)),};let wide = self.content_width >= 900.;diff --git a/src/ui/dialogs.rs b/src/ui/dialogs.rsindex 426e186..c66f0cc 100644--- a/src/ui/dialogs.rs+++ b/src/ui/dialogs.rs@@ -23,6 +23,9 @@ pub enum DialogEvent {OperationStarted(u64),MachineAdded(String),OpenSettings,+ /// Open the New cloud machine dialog instead.+ NewCloudMachine,+ OpenCloudSettings,/// The root view runs it, so it can open the workspace when it's ready.CreateWorkspace(CreateWorkspace, WorkspaceIsolation),/// The root view starts it, sized to the page, and opens its terminal.@@ -31,7 +34,7 @@ pub enum DialogEvent {StartInWorkspace(CreateWorkspace, StartSession),}-fn frame(theme: &Theme, title: impl Into<SharedString>, intro: Option<SharedString>) -> gpui::Div {+pub(super) fn frame(theme: &Theme, title: impl Into<SharedString>, intro: Option<SharedString>) -> gpui::Div {div().w(px(500.)).flex()@@ -48,7 +51,7 @@ fn frame(theme: &Theme, title: impl Into<SharedString>, intro: Option<SharedStri.children(intro.map(|t| div().text_size(px(12.5)).text_color(theme.text_muted).child(t)))}-fn field(theme: &Theme, name: &'static str, input: impl IntoElement, help: Option<&'static str>) -> impl IntoElement {+pub(super) fn field(theme: &Theme, name: &'static str, input: impl IntoElement, help: Option<&'static str>) -> impl IntoElement {div().flex().flex_col()@@ -58,7 +61,7 @@ fn field(theme: &Theme, name: &'static str, input: impl IntoElement, help: Optio.children(help.map(|h| div().text_size(px(11.5)).text_color(theme.text_placeholder).child(h)))}-fn error_line(theme: &Theme, error: &Option<String>) -> Option<impl IntoElement> {+pub(super) fn error_line(theme: &Theme, error: &Option<String>) -> Option<impl IntoElement> {error.as_ref().map(|e| {div().flex()@@ -74,7 +77,7 @@ fn error_line(theme: &Theme, error: &Option<String>) -> Option<impl IntoElement>})}-fn footer(children: Vec<AnyElement>) -> impl IntoElement {+pub(super) fn footer(children: Vec<AnyElement>) -> impl IntoElement {div().flex().justify_end().gap(px(8.)).pt(px(4.)).children(children)}@@ -248,6 +251,8 @@ impl Render for AddMachineDialog {})).children(error_line(&theme, &self.error)).child(footer(vec![+ Button::new("am-cloud", "New cloud machine…").style(ButtonStyle::Ghost).icon("cloud").on_click(cx.listener(|_, _, _, cx| cx.emit(DialogEvent::NewCloudMachine))).into_any_element(),+ div().flex_1().into_any_element(),Button::new("am-cancel", "Cancel").style(ButtonStyle::Ghost).on_click(cx.listener(|_, _, _, cx| cx.emit(DialogEvent::Dismissed))).into_any_element(),Button::new("am-add", "Add machine").style(ButtonStyle::Primary).key_hint("↵").on_click(cx.listener(|this, _, _, cx| this.submit(cx))).into_any_element(),]))@@ -304,6 +309,11 @@ enum ModeChoice {}impl InstallDialog {+ /// Fills in the extra labels ("gpu, cuda").+ pub fn set_labels(&self, labels: String, cx: &mut Context<Self>) {+ self.labels.update(cx, |i, cx| i.set_text(labels, cx));+ }+pub fn new(engine: Arc<Engine>, snapshot: Arc<Snapshot>, machine_id: String, window: &mut Window, cx: &mut Context<Self>) -> Self {let settings = engine.settings();let mut scopes: Vec<String> = settings.github.orgs.iter().chain(settings.github.repos.iter()).cloned().collect();@@ -1300,7 +1310,7 @@ impl NewSessionDialog {}/// The window height a dialog's title, intro, buttons and margins take.-const MODAL_CHROME: f32 = 300.;+pub(super) const MODAL_CHROME: f32 = 300.;/// Machines that can run sessions: any with a host (or this computer).fn session_machines(s: &Snapshot) -> Vec<&crate::fleet::model::Machine> {diff --git a/src/ui/format.rs b/src/ui/format.rsindex 3f34ed3..c568edf 100644--- a/src/ui/format.rs+++ b/src/ui/format.rs@@ -171,11 +171,13 @@ fn short_os(v: &str) -> String {pub fn machine_icon(m: &Machine) -> &'static str {let name = m.name.to_ascii_lowercase();+ let laptop = m.probe.as_ref().and_then(|p| p.form_factor.as_deref()) == Some("laptop");if name.contains("nas") || name.contains("storage") {"hard-drive"- } else if name.contains("laptop") || name.contains("macbook") || name.contains("book") {+ } else if laptop || name.contains("laptop") || name.contains("macbook") || name.contains("book") {"laptop"- } else if m.platform.starts_with("windows") {+ } else if m.platform.starts_with("windows") || m.platform.starts_with("darwin") {+ // A Mac or PC on a desk; Linux boxes are mostly servers."monitor"} else {"server"diff --git a/src/ui/input.rs b/src/ui/input.rsindex ce735a2..444629e 100644--- a/src/ui/input.rs+++ b/src/ui/input.rs@@ -60,6 +60,8 @@ pub struct TextInput {last_bounds: Option<Bounds<Pixels>>,is_selecting: bool,mono: bool,+ /// Shows "•" for each character and won't copy (tokens, keys).+ secret: bool,}impl EventEmitter<InputEvent> for TextInput {}@@ -77,6 +79,7 @@ impl TextInput {last_bounds: None,is_selecting: false,mono: false,+ secret: false,}}@@ -85,6 +88,25 @@ impl TextInput {self}+ pub fn secret(mut self) -> Self {+ self.secret = true;+ self+ }++ /// Where a text offset is on screen: the same, unless each character is+ /// shown as one "•" (3 bytes).+ fn to_display(&self, offset: usize) -> usize {+ if self.secret { self.content[..offset.min(self.content.len())].chars().count() * '•'.len_utf8() } else { offset }+ }++ fn from_display(&self, index: usize) -> usize {+ if !self.secret {+ return index;+ }+ let n = index / '•'.len_utf8();+ self.content.char_indices().nth(n).map(|(i, _)| i).unwrap_or(self.content.len())+ }+pub fn with_text(mut self, text: impl Into<SharedString>) -> Self {self.content = text.into();self.selected_range = self.content.len()..self.content.len();@@ -194,13 +216,13 @@ impl TextInput {}fn copy(&mut self, _: &Copy, _: &mut Window, cx: &mut Context<Self>) {- if !self.selected_range.is_empty() {+ if !self.selected_range.is_empty() && !self.secret {cx.write_to_clipboard(ClipboardItem::new_string(self.content[self.selected_range.clone()].to_string()));}}fn cut(&mut self, _: &Cut, window: &mut Window, cx: &mut Context<Self>) {- if !self.selected_range.is_empty() {+ if !self.selected_range.is_empty() && !self.secret {cx.write_to_clipboard(ClipboardItem::new_string(self.content[self.selected_range.clone()].to_string()));self.replace_text_in_range(None, "", window, cx)}@@ -228,7 +250,7 @@ impl TextInput {if position.y > bounds.bottom() {return self.content.len();}- line.closest_index_for_x(position.x - bounds.left())+ self.from_display(line.closest_index_for_x(position.x - bounds.left()))}fn select_to(&mut self, offset: usize, cx: &mut Context<Self>) {@@ -356,15 +378,15 @@ impl EntityInputHandler for TextInput {let last_layout = self.last_layout.as_ref()?;let range = self.range_from_utf16(&range_utf16);Some(Bounds::from_corners(- point(bounds.left() + last_layout.x_for_index(range.start), bounds.top()),- point(bounds.left() + last_layout.x_for_index(range.end), bounds.bottom()),+ point(bounds.left() + last_layout.x_for_index(self.to_display(range.start)), bounds.top()),+ point(bounds.left() + last_layout.x_for_index(self.to_display(range.end)), bounds.bottom()),))}fn character_index_for_point(&mut self, point: Point<Pixels>, _: &mut Window, _: &mut Context<Self>) -> Option<usize> {let line_point = self.last_bounds?.localize(&point)?;let last_layout = self.last_layout.as_ref()?;- let utf8_index = last_layout.index_for_x(point.x - line_point.x)?;+ let utf8_index = self.from_display(last_layout.index_for_x(point.x - line_point.x)?);Some(self.offset_to_utf16(utf8_index))}}@@ -428,8 +450,11 @@ impl Element for TextElement {let cursor = input.cursor_offset();let style = window.text_style();- let (display_text, text_color) =- if content.is_empty() { (input.placeholder.clone(), theme.text_placeholder) } else { (content, style.color) };+ let (display_text, text_color) = match (content.is_empty(), input.secret) {+ (true, _) => (input.placeholder.clone(), theme.text_placeholder),+ (false, true) => (SharedString::from("•".repeat(content.chars().count())), style.color),+ (false, false) => (content, style.color),+ };let run = TextRun {len: display_text.len(),@@ -440,7 +465,7 @@ impl Element for TextElement {strikethrough: None,};let runs = match input.marked_range.as_ref() {- Some(marked) if !input.content.is_empty() => vec![+ Some(marked) if !input.content.is_empty() && !input.secret => vec![TextRun { len: marked.start, ..run.clone() },TextRun {len: marked.end - marked.start,@@ -458,7 +483,7 @@ impl Element for TextElement {let font_size = style.font_size.to_pixels(window.rem_size());let line = window.text_system().shape_line(display_text, font_size, &runs, None);- let cursor_pos = if input.content.is_empty() { px(0.) } else { line.x_for_index(cursor) };+ let cursor_pos = if input.content.is_empty() { px(0.) } else { line.x_for_index(input.to_display(cursor)) };let (selection, cursor) = if selected_range.is_empty() {(None,@@ -471,8 +496,8 @@ impl Element for TextElement {(Some(fill(Bounds::from_corners(- point(bounds.left() + line.x_for_index(selected_range.start), bounds.top()),- point(bounds.left() + line.x_for_index(selected_range.end), bounds.bottom()),+ point(bounds.left() + line.x_for_index(input.to_display(selected_range.start)), bounds.top()),+ point(bounds.left() + line.x_for_index(input.to_display(selected_range.end)), bounds.bottom()),),theme.selection,)),diff --git a/src/ui/kit.rs b/src/ui/kit.rsindex 224c29f..e023390 100644--- a/src/ui/kit.rs+++ b/src/ui/kit.rs@@ -15,18 +15,176 @@ pub fn icon(name: &str, size: f32, color: Hsla) -> Svg {svg().path(SharedString::from(format!("icons/{name}.svg"))).size(px(size)).flex_none().text_color(color)}-/// A colorful rounded tile with a white glyph, in the spirit of the app icon-/// (and macOS System Settings). `from`/`to` are 0xRRGGBB gradient stops.+/// How icons look across the app (Settings › Appearance › Icons). Each style+/// draws the same icons from its own set: on a solid tile in white, on a+/// faint tile in color, or on their own.+#[derive(Clone, Copy, Debug, PartialEq, Eq, Default)]+pub enum IconStyle {+ /// Solid tile, white filled glyph (Phosphor).+ Tiles,+ /// Faint tile, colored two-tone glyph (Solar).+ Soft,+ /// No tile, colored two-tone glyph (Solar).+ Duotone,+ /// Solid tile, white rounded glyph (MingCute).+ Rounded,+ /// Faint tile, colored filled glyph (Fluent).+ Fluent,+ /// No tile, gray line glyph (Hugeicons); no colored icons anywhere.+ #[default]+ Minimal,+}++#[derive(Clone, Copy, PartialEq)]+enum Backdrop {+ Solid,+ Faint,+ None,+}++impl IconStyle {+ pub const ALL: [IconStyle; 6] = [IconStyle::Minimal, IconStyle::Tiles, IconStyle::Soft, IconStyle::Duotone, IconStyle::Rounded, IconStyle::Fluent];++ /// As saved in config.toml.+ pub fn id(self) -> &'static str {+ match self {+ IconStyle::Tiles => "tiles",+ IconStyle::Soft => "soft",+ IconStyle::Duotone => "duotone",+ IconStyle::Rounded => "rounded",+ IconStyle::Fluent => "fluent",+ IconStyle::Minimal => "minimal",+ }+ }++ pub fn from_id(id: &str) -> IconStyle {+ IconStyle::ALL.into_iter().find(|s| s.id() == id).unwrap_or_default()+ }++ pub fn label(self) -> &'static str {+ match self {+ IconStyle::Tiles => "Tiles",+ IconStyle::Soft => "Soft",+ IconStyle::Duotone => "Duotone",+ IconStyle::Rounded => "Rounded",+ IconStyle::Fluent => "Fluent",+ IconStyle::Minimal => "Minimal",+ }+ }++ /// The prefix of its glyph files (assets/icons/<prefix>-<name>.svg).+ fn prefix(self) -> &'static str {+ match self {+ IconStyle::Tiles => "pf",+ IconStyle::Soft | IconStyle::Duotone => "so",+ IconStyle::Rounded => "mc",+ IconStyle::Fluent => "fl",+ IconStyle::Minimal => "hg",+ }+ }++ fn backdrop(self) -> Backdrop {+ match self {+ IconStyle::Tiles | IconStyle::Rounded => Backdrop::Solid,+ IconStyle::Soft | IconStyle::Fluent => Backdrop::Faint,+ IconStyle::Duotone | IconStyle::Minimal => Backdrop::None,+ }+ }++ /// Icons have their own colors (all but Minimal).+ pub fn colored(self) -> bool {+ self != IconStyle::Minimal+ }+}++/// The style in use, with the theme colors it draws with.+#[derive(Clone, Copy)]+pub struct Look {+ pub style: IconStyle,+ text: Hsla,+ muted: Hsla,+ dark: bool,+}++impl Look {+ pub fn new(style: IconStyle, theme: &Theme) -> Look {+ Look { style, text: theme.text, muted: theme.text_muted, dark: theme.canvas.l < 0.5 }+ }+}++static LOOK: std::sync::RwLock<Option<Look>> = std::sync::RwLock::new(None);++/// Sets the style and colors icons are drawn with (when the theme or the+/// preference changes; see theme::apply).+pub fn set_look(look: Look) {+ if let Ok(mut l) = LOOK.write() {+ *l = Some(look);+ }+}++fn look() -> Look {+ LOOK.read().ok().and_then(|l| *l).unwrap_or(Look {+ style: IconStyle::default(),+ text: gpui::white(),+ muted: gpui::hsla(0., 0., 0.62, 1.),+ dark: true,+ })+}++pub fn icon_style() -> IconStyle {+ look().style+}++/// The icons each style has its own glyph for (assets/icons/<prefix>-<name>.svg).+const STYLED: &[&str] = &[+ "gauge", "workflow", "terminal", "activity", "server", "laptop", "monitor", "hard-drive", "folder", "folder-open", "file", "copy",+ "refresh-cw", "rotate-ccw", "play", "square", "trash-2", "power", "unplug", "plug", "zap", "external-link", "git-branch", "arrow-up",+ "box", "layers", "lock", "info", "inbox", "clock", "bot", "scroll-text", "circle-check", "circle-x", "triangle-alert", "circle-alert",+ "star", "message-square", "settings", "search", "cpu", "memory-stick", "book-open", "network", "plus", "x", "check", "agent-github",+];++/// The glyph a style draws for an icon; logos and others are used as they are.+fn glyph(style: IconStyle, name: &str) -> String {+ let name = match name {+ "square-terminal" => "terminal",+ "star-filled" => "star",+ other => other,+ };+ if STYLED.contains(&name) { format!("{}-{name}", style.prefix()) } else { name.to_string() }+}++/// An icon on its tile, in the style in use. `from`/`to` are its color pair+/// (0xRRGGBB, see `tiles` and `icon_colors`); `size` is the tile's.pub fn tile(icon_name: &str, from: u32, to: u32, size: f32) -> Div {- div()- .flex_none()- .size(px(size))- .rounded(px(size * 0.27))- .bg(gpui::linear_gradient(160., gpui::linear_color_stop(gpui::rgb(from), 0.), gpui::linear_color_stop(gpui::rgb(to), 1.)))- .flex()- .items_center()- .justify_center()- .child(icon(icon_name, size * 0.6, gpui::white()))+ tile_in(look(), icon_name, from, to, size)+}++/// `tile`, in a given look (Settings shows each style this way).+pub fn tile_in(look: Look, icon_name: &str, from: u32, to: u32, size: f32) -> Div {+ let glyph = glyph(look.style, icon_name);+ // In color on the page, a pair's lighter color reads on dark themes and+ // its deeper one on light themes; near-black brand colors use the text color.+ let tone = if look.dark { from } else { to };+ let tone: Hsla = if luminance(tone) < 0.22 { look.text } else { gpui::rgb(tone).into() };+ let base: Hsla = gpui::rgb(mix(from, to)).into();+ let el = div().flex_none().size(px(size)).flex().items_center().justify_center();+ match look.style.backdrop() {+ Backdrop::Solid => el.rounded(px(size * 0.27)).bg(base).child(icon(&glyph, size * 0.58, gpui::white())),+ Backdrop::Faint => el.rounded(px(size * 0.27)).bg(base.opacity(0.2)).child(icon(&glyph, size * 0.62, tone)),+ Backdrop::None => el.child(icon(&glyph, size * 0.86, if look.style.colored() { tone } else { look.muted })),+ }+}++/// The color halfway between two 0xRRGGBB colors.+fn mix(a: u32, b: u32) -> u32 {+ let ch = |shift: u32| (((a >> shift) & 0xff) + ((b >> shift) & 0xff)) / 2 << shift;+ ch(16) | ch(8) | ch(0)+}++/// Relative brightness of a 0xRRGGBB color, 0 to 1.+fn luminance(c: u32) -> f32 {+ let ch = |shift: u32| ((c >> shift) & 0xff) as f32 / 255.;+ 0.2126 * ch(16) + 0.7152 * ch(8) + 0.0722 * ch(0)}/// Tile colors per navigation destination.@@ -57,7 +215,7 @@ pub fn icon_colors(name: &str) -> Option<(u32, u32)> {"plus" => (0xb69cff, 0x7a4ce8),"trash-2" | "circle-x" | "square" => (0xff8080, 0xdc3b33),"power" | "unplug" => (0xff8fb1, 0xd63c6e),- "external-link" | "info" | "inbox" | "message-square" | "arrow-up" | "arrow-down" => (0x6cb6ff, 0x2f6fe4),+ "external-link" | "info" | "inbox" | "message-square" | "arrow-up" | "arrow-down" | "cloud" => (0x6cb6ff, 0x2f6fe4),"git-branch" | "git-merge" | "git-pull-request" | "git-pull-request-draft" | "workflow" | "list" | "scroll-text" => {(0xffa95c, 0xea6a2a)}@@ -79,9 +237,11 @@ pub fn color_tile(name: &str, size: f32) -> Div {}/// An icon's own color, readable on this theme: the lighter stop on dark-/// themes, the deeper one on light themes. Logos keep the text color.+/// themes, the deeper one on light themes. Logos keep the text color, and+/// the Minimal style has none.pub fn tint(theme: &Theme, name: &str) -> Option<Hsla> {- if name.starts_with("agent-") {+ // Minimal: no colored icons, only status colors.+ if name.starts_with("agent-") || !icon_style().colored() {return None;}let (from, to) = icon_colors(name)?;@@ -102,6 +262,7 @@ pub fn agent_look(agent: &str) -> (&'static str, (u32, u32)) {"opencode" => ("agent-opencode", (0x34363c, 0x16171a)),"gemini" => ("agent-gemini", (0x4796e3, 0x9a6fd0)),"amp" => ("agent-amp", (0xf2704f, 0xc9352b)),+ "pi" => ("agent-pi", (0x5aa6cf, 0x3a7fa6)),"shell" => ("terminal", (0x8f95ff, 0x5057e0)),_ => ("bot", (0xa7aebb, 0x5f6673)),}@@ -462,3 +623,15 @@ pub fn checkbox(.child(text.into()).on_click(move |_, w, cx| on_toggle(&!checked, w, cx))}++/// Items in explicit rows of `per_row`. GPUI measures a wrapping flex row+/// inside an auto-width column as one long line, so what follows overlaps it.+pub fn rows_of(items: Vec<gpui::AnyElement>, per_row: usize, gap: f32) -> Div {+ let mut rows = Vec::new();+ let mut iter = items.into_iter().peekable();+ while iter.peek().is_some() {+ let row: Vec<gpui::AnyElement> = iter.by_ref().take(per_row.max(1)).collect();+ rows.push(div().flex().gap(px(gap)).children(row));+ }+ div().flex().flex_col().gap(px(gap)).children(rows)+}diff --git a/src/ui/menu.rs b/src/ui/menu.rsindex 7de87d7..4759f81 100644--- a/src/ui/menu.rs+++ b/src/ui/menu.rs@@ -1,4 +1,4 @@-//! Right-click menus for machines, sessions and repositories.+//! Right-click menus for machines, runners, sessions and repositories.use gpui::{AnyElement, ClipboardItem, Context, FontWeight, MouseButton, Pixels, Point, Window, anchored, deferred, div, prelude::*, px};@@ -6,9 +6,14 @@ use super::kit::{self, icon};use super::root::{Root, Route};use super::theme::Theme;use crate::fleet::sessions::{AGENTS, StartSession};+use crate::ops::RunnerAction;pub enum MenuTarget {Machine(String),+ /// A runner, by id ("beelink/beelink-01").+ Runner(String),+ /// A queued or running job, by GitHub id.+ Job(u64),Session(String),/// A GitHub repository, "owner/name".Repo(String),@@ -35,6 +40,14 @@ enum Action {Check(String),InstallRunner(String),Remove(String),+ Runner(String, RunnerAction),+ RemoveRunner(String),+ FavoriteMachine(String, bool),+ CloudPower(String, bool),+ ShowRunner(String),+ /// Install a runner with these labels on this machine.+ InstallWith(String, Vec<String>),+ CancelRun(u64),CopyAttach(String),Restart(String),End(String),@@ -69,7 +82,7 @@ impl Root {cx.notify();}- fn menu_items(&self) -> Vec<Item> {+ fn menu_items(&self, cx: &gpui::App) -> Vec<Item> {let Some(menu) = &self.context_menu else { return Vec::new() };let s = &self.snapshot;let act = |label: &str, icon_name: &'static str, action: Action| Item::Action { label: label.into(), glyph: Glyph::Icon(icon_name), action, danger: false };@@ -93,7 +106,81 @@ impl Root {items.push(act("Install runner…", "plus", Action::InstallRunner(id.clone())));items.push(Item::Separator);}- items.push(Item::Action { label: "Remove from fleet…".into(), glyph: Glyph::Icon("trash-2"), action: Action::Remove(id.clone()), danger: true });+ if Root::is_favorite(cx, id) {+ items.push(act("Remove from favorites", "star", Action::FavoriteMachine(id.clone(), false)));+ } else {+ items.push(act("Add to favorites", "star", Action::FavoriteMachine(id.clone(), true)));+ }+ items.push(Item::Separator);+ // A cloud machine is powered and destroyed; removing it alone would leave it running (and billed).+ if m.cloud.is_some() {+ let off = m.status == "offline";+ items.push(act(if off { "Power on" } else { "Power off" }, "power", Action::CloudPower(id.clone(), off)));+ items.push(Item::Action { label: "Destroy…".into(), glyph: Glyph::Icon("trash-2"), action: Action::Remove(id.clone()), danger: true });+ } else {+ items.push(Item::Action { label: "Remove from fleet…".into(), glyph: Glyph::Icon("trash-2"), action: Action::Remove(id.clone()), danger: true });+ }+ items+ }+ MenuTarget::Runner(id) => {+ let Some(r) = s.runners.iter().find(|r| &r.id == id) else { return Vec::new() };+ let mut items = Vec::new();+ // Start, stop and the rest need its machine (GitHub-only runners can only be removed).+ if r.local.is_some() && r.machine_id.is_some() {+ let running = r.local.as_ref().is_some_and(|l| l.listener);+ if running {+ items.push(act("Stop", "square", Action::Runner(id.clone(), RunnerAction::Stop)));+ } else {+ items.push(act("Start", "play", Action::Runner(id.clone(), RunnerAction::Start)));+ }+ items.push(act("Restart", "rotate-ccw", Action::Runner(id.clone(), RunnerAction::Restart)));+ items.push(act("Show logs", "scroll-text", Action::Runner(id.clone(), RunnerAction::Logs)));+ items.push(Item::Separator);+ }+ if let Some(job) = r.job_id.and_then(|j| s.jobs.running.iter().find(|x| x.id == j)) {+ items.push(act("Open its job on GitHub", "external-link", Action::OpenUrl(job.url.clone())));+ }+ if let Some(url) = r.github.as_ref().and_then(runner_settings_url) {+ items.push(act("Open on GitHub", "agent-github", Action::OpenUrl(url)));+ }+ items.push(act("Copy name", "copy", Action::CopyUrl(r.name.clone())));+ items.push(Item::Separator);+ items.push(Item::Action { label: "Remove runner…".into(), glyph: Glyph::Icon("trash-2"), action: Action::RemoveRunner(id.clone()), danger: true });+ items+ }+ MenuTarget::Job(id) => {+ let Some(j) = s.jobs.queued.iter().chain(s.jobs.running.iter()).find(|j| j.id == *id) else { return Vec::new() };+ let mut items = Vec::new();+ if let Some(rid) = &j.runner_id {+ items.push(act("Show its runner", "server", Action::ShowRunner(rid.clone())));+ }+ // Stuck: a runner with what it needs, on a machine of the right OS and CPU.+ if j.status != "in_progress" && j.matching_online == 0 {+ let extra: Vec<String> = j.labels.iter().filter(|l| platform_label(l).is_none() && !l.eq_ignore_ascii_case("self-hosted")).cloned().collect();+ let fits: Vec<&crate::fleet::model::Machine> =+ s.machines.iter().filter(|m| !m.host.is_empty() && m.status == "online" && j.labels.iter().all(|l| platform_label(l).is_none_or(|p| m.platform.contains(p)))).collect();+ if !extra.is_empty() {+ items.push(Item::Note(format!("Needs a runner with {}", extra.join(", "))));+ }+ if fits.is_empty() {+ items.push(Item::Note("None of your machines fits it.".into()));+ }+ for m in fits {+ items.push(Item::Action {+ label: format!("Add runner on {}", m.name),+ glyph: Glyph::Icon("plus"),+ action: Action::InstallWith(m.id.clone(), extra.clone()),+ danger: false,+ });+ }+ }+ if !items.is_empty() {+ items.push(Item::Separator);+ }+ items.push(act("Open on GitHub", "external-link", Action::OpenUrl(j.url.clone())));+ items.push(act("Copy link", "copy", Action::CopyUrl(j.url.clone())));+ items.push(Item::Separator);+ items.push(Item::Action { label: "Cancel run…".into(), glyph: Glyph::Icon("circle-x"), action: Action::CancelRun(*id), danger: true });items}MenuTarget::Session(id) => {@@ -196,6 +283,17 @@ impl Root {Action::ShowDesktop(machine) => self.navigate(Route::Desktop(machine), window, cx),Action::CopyFiles(machine) => self.show_copy_files(Some(machine), None, window, cx),Action::Check(machine) => self.engine.trigger_check(Some(machine)),+ Action::Runner(id, action) => self.runner_action(&id, action, cx),+ Action::FavoriteMachine(id, favorite) => self.set_favorite_machine(&id, favorite, cx),+ Action::CloudPower(id, on) => self.cloud_power(&id, on, cx),+ Action::ShowRunner(id) => self.navigate(Route::Runner(id), window, cx),+ Action::InstallWith(machine, labels) => self.show_install_dialog_with(&machine, &labels, window, cx),+ Action::CancelRun(job) => self.confirm_cancel_run(job, window, cx),+ Action::RemoveRunner(id) => {+ if let Some(r) = self.snapshot.runners.iter().find(|r| r.id == id).cloned() {+ self.confirm_remove_runner(&r, window, cx);+ }+ }Action::InstallRunner(machine) => self.show_install_dialog(&machine, window, cx),Action::Remove(machine) => {if let Some(m) = self.snapshot.machines.iter().find(|m| m.id == machine).cloned() {@@ -260,11 +358,22 @@ impl Root {/// The open menu, drawn above everything, with a backdrop that closes it.pub(super) fn render_menu(&mut self, theme: &Theme, cx: &mut Context<Self>) -> Option<AnyElement> {let position = self.context_menu.as_ref()?.position;- let items = self.menu_items();+ let items = self.menu_items(cx);if items.is_empty() {self.context_menu = None;return None;}+ // As wide as its longest line (about 7.4px a character at 13px, plus the+ // glyph and padding), within reason.+ let longest = items+ .iter()+ .map(|i| match i {+ Item::Action { label, .. } => label.chars().count() as f32 * 7.4 + 64.,+ Item::Note(text) => text.chars().count() as f32 * 6.8 + 32.,+ Item::Separator => 0.,+ })+ .fold(0., f32::max);+ let width = longest.clamp(200., 420.);let close = |this: &mut Root, _: &gpui::MouseDownEvent, _: &mut Window, cx: &mut Context<Root>| {this.context_menu = None;cx.notify();@@ -300,7 +409,8 @@ impl Root {.text_size(px(13.)).text_color(color).child(div().w(px(18.)).flex().justify_center().child(glyph))- .child(label)+ // Margins, padding, glyph and gap; past the widest menu, "…".+ .child(div().w(px(width - 56.)).truncate().child(label)).on_click(cx.listener(move |this, _, window, cx| this.run_menu_action(action.clone(), window, cx))).into_any_element()}@@ -309,7 +419,7 @@ impl Root {let menu = div().id("context-menu").occlude()- .w(px(240.))+ .w(px(width)).py(px(4.)).rounded(px(9.)).bg(theme.elevated)@@ -333,3 +443,26 @@ impl Root {pub(super) fn on_right_click(target: impl Fn() -> MenuTarget + 'static, cx: &mut Context<Root>) -> impl Fn(&gpui::MouseDownEvent, &mut Window, &mut gpui::App) + 'static {cx.listener(move |this, e: &gpui::MouseDownEvent, _, cx| this.open_menu(target(), e.position, cx))}++/// The runner's page in its repository's or organization's settings on GitHub.+fn runner_settings_url(g: &crate::fleet::model::GitHubRunner) -> Option<String> {+ match g.scope.split_once(':')? {+ ("repo", repo) => Some(format!("https://github.com/{repo}/settings/actions/runners/{}", g.id)),+ ("org", org) => Some(format!("https://github.com/organizations/{org}/settings/actions/runners/{}", g.id)),+ _ => None,+ }+}++/// What a GitHub runner label says about the platform, as it appears in a+/// machine's "linux-x64": GitHub adds these itself, so they aren't extra labels.+fn platform_label(label: &str) -> Option<&'static str> {+ match label.to_ascii_lowercase().as_str() {+ "linux" => Some("linux"),+ "macos" => Some("darwin"),+ "windows" => Some("windows"),+ "x64" => Some("x64"),+ "arm64" => Some("arm64"),+ "arm" => Some("arm"),+ _ => None,+ }+}diff --git a/src/ui/mod.rs b/src/ui/mod.rsindex 1e13d51..d4e037a 100644--- a/src/ui/mod.rs+++ b/src/ui/mod.rs@@ -2,6 +2,7 @@mod about;mod activity;+mod cloud_dialog;mod assets;mod detail;mod dialogs;@@ -34,8 +35,8 @@ pub fn run(engine: Arc<Engine>, initial_view: Option<String>) {Application::new().with_assets(assets::Assets).run(move |cx: &mut App| {assets::load_fonts(cx);assets::set_dock_icon();- // UI preferences live next to the inventory; demo mode keeps them in memory.- let prefs_path = (!engine.is_demo()).then(|| engine.paths().dir.join("ui.json"));+ // The look lives in config.toml ([ui]); demo mode keeps it in memory.+ let prefs_path = (!engine.is_demo()).then(|| engine.paths().config.clone());let appearance = Appearance::load(prefs_path);cx.set_global(appearance.resolve(cx.window_appearance()));cx.set_global(appearance);diff --git a/src/ui/overview.rs b/src/ui/overview.rsindex 52e55d7..b0fe0a5 100644--- a/src/ui/overview.rs+++ b/src/ui/overview.rs@@ -36,7 +36,7 @@ impl Root {let mut body = page("overview-page", &self.page_scroll).child(self.pulse_card(&theme, &s)).child(stat_tiles(&theme, &s));if let Some(err) = &s.inventory.error {- body = body.child(callout(&theme, "error", "fleet.toml has an error", err.clone(), None));+ body = body.child(callout(&theme, "error", "config.toml has an error", err.clone(), None));}if !s.attention.is_empty() {body = body.child(self.render_attention(&theme, &s, cx));@@ -49,7 +49,7 @@ impl Root {.when(!wide, |d| d.flex_col()).gap(px(if wide { GAP } else { 26. })).child(div().flex_1().min_w(px(0.)).child(self.render_running(&theme, &s, cx)))- .child(div().flex_1().min_w(px(0.)).child(self.render_queued(&theme, &s, "ov-q"))),+ .child(div().flex_1().min_w(px(0.)).child(self.render_queued(&theme, &s, "ov-q", if wide { (content_width - GAP) / 2. } else { content_width }, cx))),)}@@ -401,8 +401,9 @@ impl Root {.child(card(theme).when(rows.is_empty(), |d| d.child(kit::empty_state(theme, "circle", "No runner is working right now."))).children(rows))}- pub(super) fn render_queued(&self, theme: &Theme, s: &Snapshot, prefix: &str) -> impl IntoElement {- let rows: Vec<AnyElement> = s.jobs.queued.iter().enumerate().map(|(i, j)| queued_row(theme, j, i, prefix)).collect();+ /// The queue, `width` wide (its rows' text needs to know).+ pub(super) fn render_queued(&self, theme: &Theme, s: &Snapshot, prefix: &str, width: f32, cx: &mut Context<Self>) -> impl IntoElement {+ let rows: Vec<AnyElement> = s.jobs.queued.iter().enumerate().map(|(i, j)| queued_row(theme, j, i, prefix, width, j.waiting_reason(&s.runners), cx)).collect();let empty = if !s.github.configured && !s.demo {kit::empty_state(theme, "inbox", "Waiting for job data from GitHub.")} else {@@ -436,12 +437,12 @@ impl Root {Some(Button::new("jobs-settings", "Open settings").style(ButtonStyle::Primary)- .on_click(cx.listener(|this, _, window, cx| this.navigate(Route::Settings, window, cx)))+ .on_click(cx.listener(|this, _, window, cx| this.open_settings_tab(super::settings::SettingsTab::GitHub, window, cx))).into_any_element(),),))})- .child(self.render_queued(&theme, &s, "jobs-q"))+ .child(self.render_queued(&theme, &s, "jobs-q", self.content_width, cx)).child(div().flex()@@ -454,6 +455,7 @@ impl Root {fn running_job_row(&self, theme: &Theme, j: &Job, i: usize, cx: &mut Context<Self>) -> AnyElement {let url = j.url.clone();+ let job_id = j.id;let runner = j.runner_id.clone();div().id(("running-job", i))@@ -464,7 +466,7 @@ impl Root {.py(px(10.)).when(i > 0, |d| d.border_t_1().border_color(theme.border_variant)).child(div().flex_none().w(px(3.)).h(px(26.)).rounded_full().bg(theme.accent))- .child(job_title(theme, j))+ .child(job_title(theme, j, None)).child(div().id(("running-job-runner", i))@@ -492,6 +494,8 @@ impl Root {.child(format::elapsed(j.started_at.unwrap_or(j.created_at))),).child(Button::icon_only(("running-job-open", i), "external-link").tooltip("Open on GitHub").on_click(move |_, _, cx| cx.open_url(&url)))+ .child(Button::icon_only(("running-job-more", i), "ellipsis").tooltip("More").on_click(job_menu(job_id, cx)))+ .on_mouse_down(gpui::MouseButton::Right, super::menu::on_right_click(move || super::menu::MenuTarget::Job(job_id), cx)).into_any_element()}}@@ -610,9 +614,12 @@ fn status_word(m: &Machine) -> &'static str {}}-fn queued_row(theme: &Theme, j: &Job, i: usize, prefix: &str) -> AnyElement {+fn queued_row(theme: &Theme, j: &Job, i: usize, prefix: &str, width: f32, reason: String, cx: &mut Context<Root>) -> AnyElement {let url = j.url.clone();+ let id = j.id;let stuck = j.matching_online == 0;+ // The row's chrome: border, padding, the bar, gaps, the wait column and the buttons.+ let title_w = (width - 2. - 28. - 3. - 4. * 12. - 190. - 26. - 26. - if stuck { 112. } else { 0. }).max(80.);div().id(SharedString::from(format!("{prefix}-{i}"))).flex()@@ -621,6 +628,7 @@ fn queued_row(theme: &Theme, j: &Job, i: usize, prefix: &str) -> AnyElement {.px(px(14.)).py(px(10.)).when(i > 0, |d| d.border_t_1().border_color(theme.border_variant))+ .on_mouse_down(gpui::MouseButton::Right, super::menu::on_right_click(move || super::menu::MenuTarget::Job(id), cx)).child(div().flex_none().w(px(3.)).h(px(26.)).rounded_full().bg(if stuck { theme.warning } else { theme.track })).child(div()@@ -629,39 +637,47 @@ fn queued_row(theme: &Theme, j: &Job, i: usize, prefix: &str) -> AnyElement {.flex_1().min_w(px(0.)).gap(px(6.))- .child(job_title(theme, j))+ .child(job_title(theme, j, Some(title_w))).child(div().flex().flex_wrap().gap(px(4.)).children(j.labels.iter().map(|l| chip(theme, l.clone())))),).child(div()- .w(px(150.))+ .w(px(190.)).flex_none().flex().flex_col().items_end().child(div().font_family(mono_font()).text_size(px(12.)).text_color(theme.text_muted).child(format!("waiting {}", format::elapsed(j.created_at))))- .child(div().text_size(px(11.)).text_color(if stuck { theme.warning } else { theme.text_placeholder }).child(if stuck {- "no online runner matches".to_string()- } else {- format!("{} runner{} can take it", j.matching_online, if j.matching_online == 1 { "" } else { "s" })- })),+ .child(div().text_size(px(11.)).text_color(if stuck { theme.warning } else { theme.text_placeholder }).child(reason)),)+ // Nothing can take it: the fix, one click away (pick the machine in the menu).+ .when(stuck, |d| {+ d.child(Button::new(SharedString::from(format!("{prefix}-add-{i}")), "Add runner").icon("plus").on_click(job_menu(id, cx)))+ }).child(Button::icon_only(SharedString::from(format!("{prefix}-open-{i}")), "external-link").tooltip("Open on GitHub").on_click(move |_, _, cx| cx.open_url(&url)),)+ .child(Button::icon_only(SharedString::from(format!("{prefix}-more-{i}")), "ellipsis").tooltip("More").on_click(job_menu(id, cx))).into_any_element()}-fn job_title(theme: &Theme, j: &Job) -> impl IntoElement {+/// Opens a job's menu where the pointer is (for its buttons).+fn job_menu(id: u64, cx: &mut Context<Root>) -> impl Fn(&gpui::ClickEvent, &mut Window, &mut gpui::App) + 'static {+ cx.listener(move |this, _, window, cx| this.open_menu(super::menu::MenuTarget::Job(id), window.mouse_position(), cx))+}++/// The job's name, then where it's from. `width`: GPUI 0.2 only ellipsizes+/// text whose width it knows before layout, which a row inside a column doesn't.+fn job_title(theme: &Theme, j: &Job, width: Option<f32>) -> impl IntoElement {div().flex().flex_col().flex_1().min_w(px(0.))- .child(div().truncate().text_size(px(13.)).child(j.name.clone()))- .child(div().truncate().text_size(px(11.5)).text_color(theme.text_placeholder).child(format!(+ .child(div().when_some(width, |d, w| d.w(px(w))).truncate().text_size(px(13.)).child(j.name.clone()))+ .child(div().when_some(width, |d, w| d.w(px(w))).truncate().text_size(px(11.5)).text_color(theme.text_placeholder).child(format!("{} · {}{}",j.repo,j.workflow,diff --git a/src/ui/root.rs b/src/ui/root.rsindex 49e9cb9..19e722a 100644--- a/src/ui/root.rs+++ b/src/ui/root.rs@@ -164,6 +164,7 @@ pub enum Modal {NewSession(Entity<NewSessionDialog>),Licenses(Entity<super::about::LicensesDialog>),Copy(Entity<super::files::CopyDialog>),+ Cloud(Entity<super::cloud_dialog::CloudDialog>),}pub struct Notice {@@ -550,10 +551,19 @@ impl Root {};self.show(Route::Activity, cx);}+ // "settings:<tab>", and "settings:icons" (Appearance, scrolled to the icon styles)."settings" => {- self.navigate(Route::Settings, window, cx);- // "settings:keyboard": scrolled down to the shortcuts.- if arg == "keyboard" {+ use super::settings::SettingsTab;+ let tab = match arg {+ "appearance" | "icons" => SettingsTab::Appearance,+ "terminal" => SettingsTab::Terminal,+ "github" => SettingsTab::GitHub,+ "cloud" => SettingsTab::Cloud,+ "keyboard" => SettingsTab::Keyboard,+ _ => SettingsTab::General,+ };+ self.open_settings_tab(tab, window, cx);+ if arg == "icons" {cx.spawn(async move |this, cx| {cx.background_executor().timer(Duration::from_millis(400)).await;let _ = this.update(cx, |this, cx| {@@ -579,6 +589,17 @@ impl Root {}"add-machine" => self.show_add_machine(window, cx),"menu" => self.open_menu(super::menu::MenuTarget::Machine(arg.into()), gpui::point(px(260.), px(160.)), cx),+ "runner-menu" => self.open_menu(super::menu::MenuTarget::Runner(arg.into()), gpui::point(px(200.), px(560.)), cx),+ "favorite" => self.set_favorite_machine(arg, true, cx),+ "cloud" => self.show_cloud_dialog(window, cx),+ // An icon style ("icons:tiles"), for screenshots.+ "icons" => super::theme::update_appearance(window, cx, |a, _| a.icon_style = arg.into()),+ // The first queued job's menu.+ "job-menu" => {+ if let Some(id) = self.snapshot.jobs.queued.first().map(|j| j.id) {+ self.open_menu(super::menu::MenuTarget::Job(id), gpui::point(px(900.), px(150.)), cx)+ }+ }"copy" => self.show_copy_files(Some(arg.to_string()).filter(|a| !a.is_empty()), None, window, cx),"logs" => {self.navigate(Route::Runner(arg.into()), window, cx);@@ -651,12 +672,20 @@ impl Root {/// Settings, with the field to watch an organization ready to type in.fn open_github_settings(&mut self, window: &mut Window, cx: &mut Context<Self>) {- self.navigate(Route::Settings, window, cx);+ self.open_settings_tab(super::settings::SettingsTab::GitHub, window, cx);if let Some(s) = &self.settings {s.read(cx).focus_add(window, cx);}}+ /// Settings, on one of its tabs.+ pub(super) fn open_settings_tab(&mut self, tab: super::settings::SettingsTab, window: &mut Window, cx: &mut Context<Self>) {+ self.navigate(Route::Settings, window, cx);+ if let Some(s) = &self.settings {+ s.update(cx, |s, cx| s.show_tab(tab, cx));+ }+ }+pub(super) fn run_attention_action(&mut self, action: &Action, window: &mut Window, cx: &mut Context<Self>) {match action.kind.as_str() {"settings" if action.target.as_deref() == Some("github") => self.open_github_settings(window, cx),@@ -692,10 +721,22 @@ impl Root {// Commands shared by pagespub(super) fn show_install_dialog(&mut self, machine_id: &str, window: &mut Window, cx: &mut Context<Self>) {+ self.show_install_dialog_with(machine_id, &[], window, cx);+ }++ /// The Install dialog with extra labels filled in (for a job that needs them).+ pub(super) fn show_install_dialog_with(&mut self, machine_id: &str, labels: &[String], window: &mut Window, cx: &mut Context<Self>) {let engine = self.engine.clone();let snapshot = self.snapshot.clone();let machine_id = machine_id.to_string();- let dialog = cx.new(|cx| InstallDialog::new(engine, snapshot, machine_id, window, cx));+ let labels = labels.join(", ");+ let dialog = cx.new(|cx| {+ let d = InstallDialog::new(engine, snapshot, machine_id, window, cx);+ if !labels.is_empty() {+ d.set_labels(labels, cx);+ }+ d+ });self.show_modal(Modal::Install(dialog.clone()), window, cx);self._subscriptions.push(cx.subscribe_in(&dialog, window, Self::on_dialog_event));}@@ -767,6 +808,22 @@ impl Root {}}+ /// Powers a cloud machine on or off.+ pub(super) fn cloud_power(&mut self, machine_id: &str, on: bool, cx: &mut Context<Self>) {+ match self.engine.cloud_power(machine_id, on) {+ Ok(op) => self.show_operation(op, cx),+ Err(e) => self.notify_user(e, true, cx),+ }+ }++ /// New cloud machine (a DigitalOcean droplet).+ pub(super) fn show_cloud_dialog(&mut self, window: &mut Window, cx: &mut Context<Self>) {+ let engine = self.engine.clone();+ let dialog = cx.new(|cx| super::cloud_dialog::CloudDialog::new(engine, window, cx));+ self.show_modal(Modal::Cloud(dialog.clone()), window, cx);+ self._subscriptions.push(cx.subscribe_in(&dialog, window, Self::on_dialog_event));+ }+pub(super) fn show_add_machine(&mut self, window: &mut Window, cx: &mut Context<Self>) {let engine = self.engine.clone();let dialog = cx.new(|cx| AddMachineDialog::new(engine, window, cx));@@ -778,7 +835,7 @@ impl Root {let on_machine = runner.local.is_some();let detail = match (&runner.machine_id, on_machine) {(Some(_), true) => format!(- "{} will be stopped, its service uninstalled, and it will be deregistered from GitHub and removed from fleet.toml.",+ "{} will be stopped, its service uninstalled, and it will be deregistered from GitHub and removed from config.toml.",runner.name),_ => format!("{} will be deregistered from GitHub.", runner.name),@@ -802,10 +859,32 @@ 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 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.",+ c.cost_so_far+ );+ let dialog = cx.new(|cx| {+ ConfirmDialog::new(+ format!("Destroy {}?", machine.name),+ detail,+ "Destroy",+ None,+ move |_, engine| engine.cloud_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));+ return;+ }let dialog = cx.new(|cx| {ConfirmDialog::new(format!("Remove {} from the fleet?", machine.name),- "It's taken out of fleet.toml. Nothing on the machine changes, and its runners stay registered.".into(),+ "It's taken out of config.toml. Nothing on the machine changes, and its runners stay registered.".into(),"Remove machine",None,move |_, engine| engine.remove_machine(&machine_id).map(|_| None),@@ -916,6 +995,26 @@ impl Root {self._subscriptions.push(cx.subscribe_in(&dialog, window, Self::on_dialog_event));}+ /// Asks before cancelling a job's workflow run (GitHub cancels whole runs).+ pub(super) fn confirm_cancel_run(&mut self, job_id: u64, window: &mut Window, cx: &mut Context<Self>) {+ let s = &self.snapshot;+ let Some(job) = s.jobs.queued.iter().chain(s.jobs.running.iter()).find(|j| j.id == job_id).cloned() else { return };+ let dialog = cx.new(|cx| {+ ConfirmDialog::new(+ format!("Cancel this {} run?", job.workflow),+ format!("Every unfinished job in it stops, not just “{}”. You can re-run it on GitHub.", job.name),+ "Cancel run",+ None,+ move |_, engine| engine.cancel_run(job_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));+ }+pub(super) fn runner_action(&mut self, runner_id: &str, action: RunnerAction, cx: &mut Context<Self>) {match self.engine.runner_action(runner_id, action) {Ok(op) => self.show_operation(op, cx),@@ -931,6 +1030,7 @@ impl Root {Modal::NewWorkspace(d) => d.read(cx).first_focus(cx),Modal::NewSession(d) => d.read(cx).first_focus(cx),Modal::Copy(d) => d.read(cx).first_focus(cx),+ Modal::Cloud(d) => d.read(cx).first_focus(cx),Modal::Licenses(d) => d.focus_handle(cx),};window.focus(&focus);@@ -944,7 +1044,9 @@ impl Root {DialogEvent::Dismissed => {}DialogEvent::OperationStarted(op) => self.show_operation(*op, cx),DialogEvent::MachineAdded(id) => self.navigate(Route::Machine(id.clone()), window, cx),- DialogEvent::OpenSettings => self.navigate(Route::Settings, window, cx),+ DialogEvent::OpenSettings => self.open_settings_tab(super::settings::SettingsTab::GitHub, window, cx),+ DialogEvent::OpenCloudSettings => self.open_settings_tab(super::settings::SettingsTab::Cloud, window, cx),+ DialogEvent::NewCloudMachine => self.show_cloud_dialog(window, cx),DialogEvent::CreateWorkspace(req, iso) => self.create_workspace(req.clone(), iso.clone(), window, cx),DialogEvent::StartInWorkspace(req, session) => self.start_in_workspace(req.clone(), session.clone(), window, cx),DialogEvent::StartSession(req) => {@@ -1001,13 +1103,32 @@ impl Root {}/// The machines in the sidebar's order (⌘1 is the first).- pub(super) fn machine_order(s: &Snapshot) -> Vec<&Machine> {- s.machines.iter().filter(|m| m.kind == "runner").chain(s.machines.iter().filter(|m| m.kind != "runner")).collect()+ /// Favorites first, then machines with runners, then the rest.+ pub(super) fn machine_order<'a>(s: &'a Snapshot, favorites: &[String]) -> Vec<&'a Machine> {+ let mut out: Vec<&Machine> = s.machines.iter().collect();+ out.sort_by_key(|m| (!favorites.contains(&m.id), m.kind != "runner"));+ out+ }++ pub(super) fn is_favorite(cx: &App, machine_id: &str) -> bool {+ cx.global::<super::theme::Appearance>().favorite_machines.iter().any(|f| f == machine_id)+ }++ /// Stars or unstars a machine.+ pub(super) fn set_favorite_machine(&mut self, machine_id: &str, favorite: bool, cx: &mut Context<Self>) {+ super::theme::remember(cx, |a| {+ a.favorite_machines.retain(|f| f != machine_id);+ if favorite {+ a.favorite_machines.push(machine_id.to_string());+ }+ });+ cx.notify();}/// ⌘1…⌘9: the n-th machine in the sidebar (1-based).fn go_to_machine(&mut self, n: usize, window: &mut Window, cx: &mut Context<Self>) {- if let Some(id) = Self::machine_order(&self.snapshot).get(n - 1).map(|m| m.id.clone()) {+ let favorites = cx.global::<super::theme::Appearance>().favorite_machines.clone();+ if let Some(id) = Self::machine_order(&self.snapshot, &favorites).get(n - 1).map(|m| m.id.clone()) {self.navigate(Route::Machine(id), window, cx);}}@@ -1119,7 +1240,8 @@ impl Root {let mut rows: Vec<AnyElement> = Vec::new();// Machines with runners first, then the rest; all under one heading.- let runner_machines: Vec<&Machine> = Self::machine_order(&s);+ let favorites = cx.global::<super::theme::Appearance>().favorite_machines.clone();+ let runner_machines: Vec<&Machine> = Self::machine_order(&s, &favorites);let unassigned: Vec<&Runner> = s.runners.iter().filter(|r| r.machine_id.is_none() && matches_runner(r)).collect();rows.push(self.section_header("Machines", runner_machines.len(), true, cx).into_any_element());@@ -1216,7 +1338,8 @@ impl Root {),).child(div().id("fleet-list").flex_1().min_h(px(0.)).overflow_y_scroll().pb(px(12.)).children(rows))- .child(self.connection_card(&theme, &s, cx))+ // The "what's happening now" card is hidden for now (connection_card).+ .child(self.sidebar_footer(&theme, cx))}fn brand(&self, theme: &Theme, s: &Snapshot, cx: &mut Context<Self>) -> impl IntoElement {@@ -1389,7 +1512,10 @@ impl Root {// whose width is known before layout. Row chrome: margins, padding, tile, gaps,// and the count pill (padding, dot, gap, ~6.7px per mono character).let pill_w = 12. + 6. + 4. + count.len() as f32 * 6.7;- let trailing = if hint.is_some() { 40. } else if has_runners { 10. + pill_w.max(22.) } else if has_sessions { 32. } else { 0. } + if alert.is_some() { 18. } else { 0. };+ let favorite = Self::is_favorite(cx, &m.id);+ let trailing = if hint.is_some() { 40. } else if has_runners { 10. + pill_w.max(22.) } else if has_sessions { 32. } else { 0. }+ + if alert.is_some() { 18. } else { 0. }+ + if favorite { 22. } else { 0. };let text_w = (self.sidebar_width - 20. - 16. - 30. - 10. - trailing).max(40.);div().id(SharedString::from(format!("side-m-{}", m.id)))@@ -1457,6 +1583,7 @@ impl Root {),).children(alert.map(|(kind, code)| super::sessions::attention_dot(theme, &kind, code)))+ .when(favorite, |d| d.child(icon("star-filled", 12., theme.warning))).children(hint.map(|k| kit::kbd(theme, k))).when(has_runners || has_sessions, |d| {d.child(@@ -1559,6 +1686,10 @@ impl Root {.text_color(if r.state == "working" { theme.text_accent } else { theme.text_placeholder }).child(right),)+ .on_mouse_down(MouseButton::Right, {+ let rid = r.id.clone();+ super::menu::on_right_click(move || super::menu::MenuTarget::Runner(rid.clone()), cx)+ }).on_click(cx.listener(move |this, _, window, cx| this.navigate(Route::Runner(id.clone()), window, cx)))}@@ -1642,7 +1773,8 @@ impl Root {/// What's happening now, in a line: a copy or install under way, else an/// agent that needs you or is working, else a GitHub problem, else the- /// machines. Clicking opens it (or checks the machines).+ /// machines. Clicking opens it (or checks the machines). Hidden for now.+ #[allow(dead_code)]fn connection_card(&self, theme: &Theme, s: &Snapshot, cx: &mut Context<Self>) -> impl IntoElement {enum Click {Op(u64),@@ -1711,35 +1843,6 @@ impl Root {};// Outer and inner padding, border, dot and gap.let text_w = self.sidebar_width - 60.;- // Settings and About, with the version, under the connection card.- let footer_button = |id: &'static str, icon_name: &'static str, label: &'static str, route: Route, cx: &mut Context<Self>| {- let active = self.route == route;- div()- .id(id)- .flex()- .items_center()- .gap(px(6.))- .h(px(26.))- .px(px(8.))- .rounded(px(7.))- .cursor_pointer()- .text_size(px(12.5))- .text_color(if active { theme.text } else { theme.text_muted })- .when(active, |d| d.bg(theme.element_selected))- .when(!active, |d| d.hover(|st| st.bg(theme.ghost_hover).text_color(theme.text)))- .child(kit::color_icon(theme, icon_name, 13., theme.text_placeholder))- .child(label)- .on_click(cx.listener(move |this, _, window, cx| this.navigate(route.clone(), window, cx)))- };- let footer = div()- .flex()- .items_center()- .gap(px(2.))- .pt(px(8.))- .child(footer_button("footer-settings", "settings", "Settings", Route::Settings, cx))- .child(footer_button("footer-about", "info", "About", Route::About, cx))- .child(div().flex_1())- .child(div().pr(px(6.)).font_family(mono_font()).text_size(px(11.)).text_color(theme.text_placeholder).child(format!("v{}", env!("CARGO_PKG_VERSION"))));div().flex_none().p(px(10.)).border_t_1().border_color(theme.border_variant).child(div().id("connection")@@ -1773,7 +1876,39 @@ impl Root {Click::Check => this.engine.trigger_check(None),})),)- .child(footer)+ }++ /// Settings and About, with the version, at the bottom of the sidebar.+ fn sidebar_footer(&self, theme: &Theme, cx: &mut Context<Self>) -> impl IntoElement {+ let footer_button = |id: &'static str, icon_name: &'static str, label: &'static str, route: Route, cx: &mut Context<Self>| {+ let active = self.route == route;+ div()+ .id(id)+ .flex()+ .items_center()+ .gap(px(6.))+ .h(px(26.))+ .px(px(8.))+ .rounded(px(7.))+ .cursor_pointer()+ .text_size(px(12.5))+ .text_color(if active { theme.text } else { theme.text_muted })+ .when(active, |d| d.bg(theme.element_selected))+ .when(!active, |d| d.hover(|st| st.bg(theme.ghost_hover).text_color(theme.text)))+ .child(kit::color_icon(theme, icon_name, 13., theme.text_placeholder))+ .child(label)+ .on_click(cx.listener(move |this, _, window, cx| this.navigate(route.clone(), window, cx)))+ };+ let footer = div()+ .flex()+ .items_center()+ .gap(px(2.))+ .pt(px(8.))+ .child(footer_button("footer-settings", "settings", "Settings", Route::Settings, cx))+ .child(footer_button("footer-about", "info", "About", Route::About, cx))+ .child(div().flex_1())+ .child(div().pr(px(6.)).font_family(mono_font()).text_size(px(11.)).text_color(theme.text_placeholder).child(format!("v{}", env!("CARGO_PKG_VERSION"))));+ div().flex_none().px(px(10.)).pb(px(10.)).border_t_1().border_color(theme.border_variant).child(footer)}// -----------------------------------------------------------------------@@ -1841,32 +1976,18 @@ impl Root {.child(div().truncate().font_weight(FontWeight::SEMIBOLD).text_color(theme.text).child(title)),).child(div().flex_1())- // Each says what it refreshes; when it last did is in its tooltip.- .when(s.github.configured, |d| {- d.child(- Button::new("sync", if s.github.syncing { "Syncing" } else { "Sync GitHub" })- .icon("agent-github")- .loading(s.github.syncing)- .map(|b| match super::shortcuts::label_for(cx, "sync") {- k if self.show_keys && !k.is_empty() => b.key_hint(k),- _ => b,- })- .tooltip(tip(&format!("Synced {}", format::ago(s.github.last_sync_at)), &super::shortcuts::label_for(cx, "sync")))- .on_click(cx.listener(|this, _, _, _| this.engine.trigger_sync())),- )- })+ // GitHub and the machine checks run by themselves; ⇧⌘R, ⌘R and the menu still force them..child(- Button::new("check-now", if s.check.running { "Checking" } else { "Check machines" })+ Button::new("toolbar-add-machine", "Add machine").style(ButtonStyle::Primary)- .icon("server")- .loading(s.check.running)- .map(|b| match super::shortcuts::label_for(cx, "check") {+ .icon("plus")+ .map(|b| match super::shortcuts::label_for(cx, "add-machine") {k if self.show_keys && !k.is_empty() => b.key_hint(k),_ => b,})- .tooltip(tip(&format!("Checked {}", format::ago(s.check.finished_at)), &super::shortcuts::label_for(cx, "check")))- .on_click(cx.listener(|this, _, _, _| this.engine.trigger_check(None))),+ .on_click(cx.listener(|this, _, window, cx| this.show_add_machine(window, cx))),)+}fn render_notice(&self, theme: &Theme) -> Option<AnyElement> {@@ -2080,6 +2201,7 @@ impl Render for Root {Modal::NewWorkspace(d) => d.clone().into_any_element(),Modal::NewSession(d) => d.clone().into_any_element(),Modal::Copy(d) => d.clone().into_any_element(),+ Modal::Cloud(d) => d.clone().into_any_element(),Modal::Licenses(d) => d.clone().into_any_element(),});let notice = self.render_notice(&theme);diff --git a/src/ui/settings.rs b/src/ui/settings.rsindex 84f3bc8..f30edcb 100644--- a/src/ui/settings.rs+++ b/src/ui/settings.rs@@ -5,6 +5,10 @@ use std::time::{Duration, Instant};use gpui::{AnyElement, App, Context, Entity, Focusable, SharedString, Subscription, Task, Window, div, prelude::*, px};+mod cloud;++pub(super) use cloud::regular_size;+use super::input::{InputEvent, TextInput};use super::kit::{self, Button, ButtonStyle, card, icon, mono, section_title};use super::theme::{self as theme_mod, ActiveTheme, Appearance, mono_font, Mode, Theme};@@ -13,6 +17,44 @@ use crate::config::Settings;use crate::fleet::Engine;use crate::fleet::model::Snapshot;+/// The groups Settings is split into, one tab each.+#[derive(Clone, Copy, PartialEq, Eq, Debug, Default)]+pub enum SettingsTab {+ #[default]+ General,+ Appearance,+ Terminal,+ GitHub,+ Cloud,+ Keyboard,+}++impl SettingsTab {+ const ALL: [SettingsTab; 6] = [SettingsTab::General, SettingsTab::Appearance, SettingsTab::Terminal, SettingsTab::GitHub, SettingsTab::Cloud, SettingsTab::Keyboard];++ fn label(self) -> &'static str {+ match self {+ SettingsTab::General => "General",+ SettingsTab::Appearance => "Appearance",+ SettingsTab::Terminal => "Terminal",+ SettingsTab::GitHub => "GitHub",+ SettingsTab::Cloud => "Cloud",+ SettingsTab::Keyboard => "Keyboard",+ }+ }++ fn icon(self) -> &'static str {+ match self {+ SettingsTab::General => "sliders-horizontal",+ SettingsTab::Appearance => "palette",+ SettingsTab::Terminal => "terminal",+ SettingsTab::GitHub => "agent-github",+ SettingsTab::Cloud => "cloud",+ SettingsTab::Keyboard => "keyboard",+ }+ }+}+pub struct SettingsPage {engine: Arc<Engine>,snapshot: Arc<Snapshot>,@@ -27,6 +69,8 @@ pub struct SettingsPage {/// The login in use: its permissions and organizations (to offer them).access: Option<crate::api::AccountsOut>,pub scroll: gpui::ScrollHandle,+ tab: SettingsTab,+ cloud: cloud::CloudState,/// A shortcut waiting for its new keys, and what catches them before/// they run anything.recording: Option<&'static str>,@@ -78,6 +122,8 @@ impl SettingsPage {}});+ let (cloud_state, cloud_subs) = cloud::CloudState::new(window, cx);+ subs.extend(cloud_subs);let mut page = SettingsPage {engine,snapshot,@@ -91,6 +137,8 @@ impl SettingsPage {saved_at: None,access: None,scroll: gpui::ScrollHandle::new(),+ tab: SettingsTab::default(),+ cloud: cloud_state,recording: None,catch_keys: None,shortcut_note: None,@@ -108,6 +156,21 @@ impl SettingsPage {window.focus(&self.add.focus_handle(cx));}+ /// Shows a tab, from its top.+ pub fn show_tab(&mut self, tab: SettingsTab, cx: &mut Context<Self>) {+ if self.tab != tab {+ self.tab = tab;+ self.scroll.set_offset(gpui::point(px(0.), px(0.)));+ if tab != SettingsTab::Keyboard {+ self.stop_recording(cx);+ }+ if tab == SettingsTab::Cloud {+ self.load_cloud(cx);+ }+ cx.notify();+ }+ }+/// Reads the login's permissions and organizations (fresh from the GitHub/// CLI, so a permission just granted shows).fn load_access(&mut self, cx: &mut Context<Self>) {@@ -365,7 +428,7 @@ impl SettingsPage {.flex().flex_col().gap(px(10.))- .child(section_title(theme, "GitHub", None))+ .child(section_title(theme, "Watching", None)).child(div().w_full()@@ -430,7 +493,8 @@ impl SettingsPage {})}- fn checks_section(&self, theme: &Theme, cx: &mut Context<Self>) -> impl IntoElement {+ /// How often to sync GitHub (`github`) or check the machines (otherwise).+ fn checks_section(&self, theme: &Theme, github: bool, cx: &mut Context<Self>) -> impl IntoElement {let row = |label: &'static str, input: Entity<TextInput>, unit: &'static str, help: &'static str, first: bool| {div().flex()@@ -451,43 +515,65 @@ impl SettingsPage {.child(div().w(px(80.)).flex_none().flex().flex_col().child(input)).child(div().w(px(60.)).text_size(px(12.)).text_color(theme.text_muted).child(unit))};+ let rows = if github {+ card(theme)+ .child(row("Sync GitHub every", self.poll.clone(), "seconds", "Asks GitHub for runner and job status. Unchanged answers are free.", true))+ .child(row("Scan recent repos for jobs", self.scan.clone(), "per org", "The most recently pushed repositories are checked for jobs.", false))+ } else {+ card(theme).child(row("Check machines every", self.interval.clone(), "minutes", "A read-only check over ssh. 0: only when you ask.", true))+ };div().flex().flex_col().gap(px(10.))- .child(section_title(theme, "Polling", None))- .child(- card(theme)- .child(row("Sync GitHub every", self.poll.clone(), "seconds", "Unchanged responses don't count against the API rate limit.", true))- .child(row(- "Scan recent repos for jobs",- self.scan.clone(),- "per org",- "The most recently pushed repositories are checked for queued and running jobs.",- false,- ))- .child(row(- "Check machines every",- self.interval.clone(),- "minutes",- "Runs the read-only machine check over SSH. 0 means only when you ask.",- false,- )),- )+ .child(section_title(theme, if github { "Syncing" } else { "Machine checks" }, None))+ .child(rows).child(div().flex().items_center().gap(px(10.))- .child(Button::new("save-intervals", "Save").style(ButtonStyle::Primary).on_click(cx.listener(|this, _, _, cx| this.save_intervals(cx))))+ .child(+ Button::new(if github { "save-sync" } else { "save-checks" }, "Save")+ .style(ButtonStyle::Primary)+ .on_click(cx.listener(|this, _, _, cx| this.save_intervals(cx))),+ ).when(self.saved_at.is_some(), |d| d.child(div().text_size(px(12.)).text_color(theme.success).child("Saved"))).children(self.save_error.clone().map(|e| div().text_size(px(12.)).text_color(theme.error).child(e))),)}/// Font size and line height for agent session terminals, with a preview.- fn terminal_section(&self, theme: &Theme, family: SharedString, cx: &mut Context<Self>) -> impl IntoElement {+ fn terminal_section(&self, theme: &Theme, family: SharedString, fonts: Vec<SharedString>, cx: &mut Context<Self>) -> impl IntoElement {let a = cx.global::<Appearance>().clone();+ // Each installed monospace font, in itself.+ let font_chips: Vec<AnyElement> = fonts+ .into_iter()+ .enumerate()+ .map(|(i, f)| {+ let selected = f == family;+ let pick = f.to_string();+ div()+ .id(("term-font", i))+ .h(px(28.))+ .px(px(10.))+ .flex()+ .items_center()+ .gap(px(6.))+ .rounded(px(6.))+ .border_1()+ .cursor_pointer()+ .border_color(if selected { theme.accent } else { theme.border_variant })+ .bg(if selected { theme.accent.opacity(0.10) } else { theme.element })+ .when(!selected, |d| d.hover(|st| st.bg(theme.element_hover)))+ .font_family(f.clone())+ .text_size(px(12.5))+ .text_color(if selected { theme.text } else { theme.text_muted })+ .child(f)+ .on_click(cx.listener(move |_, _, _, cx| theme_mod::update_terminal(cx, |a| a.terminal_font = pick.clone())))+ .into_any_element()+ })+ .collect();let (size, line_height) = (a.terminal_font_size, a.terminal_line_height);let stepper = |id: &'static str, value: String, step: fn(&mut Appearance, f32), cx: &mut Context<Self>| {div()@@ -537,9 +623,13 @@ impl SettingsPage {.child(div().w(px(8.))).child(stepper("term-line", format!("{line_height:.2}"), |a, d| a.terminal_line_height += d * 0.05, cx)).into_any_element();- let reset = (size != theme_mod::TERMINAL_FONT_SIZE || (line_height - theme_mod::TERMINAL_LINE_HEIGHT).abs() > 0.01).then(|| {+ let changed = size != theme_mod::TERMINAL_FONT_SIZE+ || (line_height - theme_mod::TERMINAL_LINE_HEIGHT).abs() > 0.01+ || a.terminal_font != super::terminal::DEFAULT_FONT;+ let reset = changed.then(|| {Button::new("term-reset", "Reset").style(ButtonStyle::Ghost).on_click(cx.listener(|_, _, _, cx| {theme_mod::update_terminal(cx, |a| {+ a.terminal_font = super::terminal::DEFAULT_FONT.into();a.terminal_font_size = theme_mod::TERMINAL_FONT_SIZE;a.terminal_line_height = theme_mod::TERMINAL_LINE_HEIGHT;})@@ -565,12 +655,20 @@ impl SettingsPage {.flex().flex_col().gap(px(12.))- .child(div().flex().items_center().child(section_title(theme, "Terminal", None)).child(div().flex_1()).children(reset))+ .child(div().flex().items_center().child(section_title(theme, "Text and cursor", None)).child(div().flex_1()).children(reset)).child(card(theme).px(px(14.)).py(px(6.))- .child(row("Font", div().font_family(mono_font()).text_size(px(12.5)).child(family).into_any_element(), None))+ .child(+ div()+ .flex()+ .items_start()+ .gap(px(12.))+ .py(px(8.))+ .child(div().w(px(110.)).flex_none().pt(px(6.)).text_size(px(12.5)).text_color(theme.text_muted).child("Font"))+ .child(div().flex_1().min_w(px(0.)).flex().flex_wrap().gap(px(6.)).children(font_chips)),+ ).child(row("Text size", size_control, Some("⌘+ / ⌘− in a terminal"))).child(row("Line height", presets, None)).child(row(@@ -644,7 +742,7 @@ impl SettingsPage {.flex().flex_col().gap(px(12.))- .child(section_title(theme, "Appearance", None))+ .child(section_title(theme, "Theme", None)).child(div().flex()@@ -667,6 +765,48 @@ impl SettingsPage {.child(dark_grid).child(kit::label(theme, "Light themes").text_size(px(12.)).text_color(theme.text_muted)).child(light_grid)+ .child(kit::label(theme, "Icons").text_size(px(12.)).text_color(theme.text_muted))+ .child(self.icon_styles(theme, &appearance, cx))+ }++ /// One card per icon style, each drawn in its own style.+ fn icon_styles(&self, theme: &Theme, appearance: &Appearance, cx: &mut Context<Self>) -> impl IntoElement {+ let chosen = kit::IconStyle::from_id(&appearance.icon_style);+ let sample = [("gauge", kit::tiles::OVERVIEW), ("workflow", kit::tiles::JOBS), ("terminal", kit::tiles::WORKSPACES), ("laptop", kit::tiles::MACOS)];+ let cards: Vec<AnyElement> = kit::IconStyle::ALL+ .into_iter()+ .map(|style| {+ let look = kit::Look::new(style, theme);+ let selected = style == chosen;+ div()+ .id(SharedString::from(format!("icon-style-{}", style.id())))+ .w(px(118.))+ .flex()+ .flex_col()+ .gap(px(8.))+ .p(px(10.))+ .rounded(px(9.))+ .border_1()+ .cursor_pointer()+ .border_color(if selected { theme.accent } else { theme.border_variant })+ .bg(if selected { theme.accent.opacity(0.08) } else { theme.surface })+ .when(!selected, |d| d.hover(|st| st.border_color(theme.border)))+ .child(div().flex().gap(px(6.)).children(sample.iter().map(|(name, (from, to))| kit::tile_in(look, name, *from, *to, 20.))))+ .child(+ div()+ .flex()+ .items_center()+ .gap(px(5.))+ .text_size(px(12.))+ .text_color(if selected { theme.text } else { theme.text_muted })+ .child(style.label())+ .when(selected, |d| d.child(icon("check", 12., theme.text_accent))),+ )+ .on_click(cx.listener(move |_, _, window, cx| theme_mod::update_appearance(window, cx, |a, _| a.icon_style = style.id().into())))+ .into_any_element()+ })+ .collect();+ div().flex().flex_wrap().gap(px(10.)).children(cards)}/// Tailscale on this computer: whether it's on, and what Muxen uses it for.@@ -764,13 +904,13 @@ impl SettingsPage {.flex().flex_col().gap(px(10.))- .child(section_title(theme, "Inventory", None))+ .child(section_title(theme, "Fleet file", None)).child(card(theme).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 fleet.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. Muxen edits it when you add machines or install runners, and keeps your comments.",)).child(div()@@ -790,31 +930,51 @@ impl SettingsPage {impl Render for SettingsPage {fn render(&mut self, window: &mut Window, cx: &mut Context<Self>) -> impl IntoElement {let theme = cx.theme();- let terminal_font = super::terminal::font_family(window);- div()- .id("settings-page")- .size_full()- .overflow_y_scroll()- .track_scroll(&self.scroll)- .px(px(28.))- .pt(px(24.))- .pb(px(40.))- .child(+ let tabs: Vec<AnyElement> = SettingsTab::ALL+ .into_iter()+ .map(|tab| {+ let selected = self.tab == tab;div()- .w_full()- .max_w(px(760.))+ .id(SharedString::from(format!("settings-tab-{}", tab.label()))).flex()- .flex_col()- .gap(px(28.))- .child(self.github_section(&theme, cx))- .children(self.tailscale_section(&theme))- .child(self.clipboard_section(&theme))- .child(self.appearance_section(&theme, cx))- .child(self.terminal_section(&theme, terminal_font, cx))- .child(self.checks_section(&theme, cx))- .child(self.inventory_section(&theme))- .child(self.keyboard_section(&theme, cx)),- )+ .items_center()+ .gap(px(7.))+ .h(px(30.))+ .px(px(12.))+ .rounded(px(7.))+ .cursor_pointer()+ .text_size(px(13.))+ .text_color(if selected { theme.text } else { theme.text_muted })+ .when(selected, |d| d.bg(theme.surface).border_1().border_color(theme.border).shadow_sm())+ .when(!selected, |d| d.hover(|st| st.text_color(theme.text)))+ .child(icon(tab.icon(), 14., if selected { theme.text } else { theme.text_placeholder }))+ .child(tab.label())+ .on_click(cx.listener(move |this, _, _, cx| this.show_tab(tab, cx)))+ .into_any_element()+ })+ .collect();+ let bar = div().flex_none().px(px(28.)).pt(px(18.)).pb(px(14.)).border_b_1().border_color(theme.border_variant).child(+ div().flex().w_full().max_w(px(760.)).gap(px(2.)).p(px(3.)).rounded(px(9.)).bg(theme.element).border_1().border_color(theme.border_variant).children(tabs),+ );+ let body = div().w_full().max_w(px(760.)).flex().flex_col().gap(px(28.));+ let body = match self.tab {+ SettingsTab::General => body+ .child(self.clipboard_section(&theme))+ .children(self.tailscale_section(&theme))+ .child(self.checks_section(&theme, false, cx))+ .child(self.inventory_section(&theme)),+ SettingsTab::Appearance => body.child(self.appearance_section(&theme, cx)),+ SettingsTab::Terminal => body.child(self.terminal_section(&theme, super::terminal::font_family(window), super::terminal::monospace_families(window), cx)),+ SettingsTab::GitHub => body.child(self.github_section(&theme, cx)).child(self.checks_section(&theme, true, cx)),+ SettingsTab::Cloud => body.child(self.cloud_section(&theme, cx)),+ SettingsTab::Keyboard => body.child(self.keyboard_section(&theme, cx)),+ };+ div()+ .size_full()+ .flex()+ .flex_col()+ .child(bar)+ .child(div().id("settings-page").flex_1().min_h(px(0.)).overflow_y_scroll().track_scroll(&self.scroll).px(px(28.)).pt(px(22.)).pb(px(40.)).child(body))}}@@ -902,7 +1062,7 @@ impl SettingsPage {div().flex().items_center()- .child(section_title(theme, "Keyboard", None))+ .child(section_title(theme, "Shortcuts", None)).child(div().flex_1()).when(any_changed, |d| {d.child(Button::new("sc-reset-all", "Reset all").style(ButtonStyle::Ghost).on_click(cx.listener(|this, _, _, cx| this.reset_all_shortcuts(cx))))@@ -1062,7 +1222,9 @@ fn swatch(theme: &Theme, p: &Palette, chosen: bool, showing: bool) -> gpui::Statlet bar = |w: f32, color: gpui::Hsla| div().w(px(w)).h(px(4.)).rounded_full().bg(color);div().id(SharedString::from(format!("theme-{}", p.id)))- .w(px(164.))+ // A quarter of the row: the grid fills the page's width.+ .flex_1()+ .min_w(px(0.)).flex().flex_col().gap(px(7.))@@ -1147,7 +1309,11 @@ fn swatch_rows(swatches: Vec<AnyElement>) -> gpui::Div {let mut rows = Vec::new();let mut iter = swatches.into_iter().peekable();while iter.peek().is_some() {- let row: Vec<AnyElement> = iter.by_ref().take(4).collect();+ let mut row: Vec<AnyElement> = iter.by_ref().take(4).collect();+ // A short last row keeps the same column widths.+ while row.len() < 4 {+ row.push(div().flex_1().into_any_element());+ }rows.push(div().flex().gap(px(12.)).children(row));}div().flex().flex_col().gap(px(14.)).children(rows)diff --git a/src/ui/settings/cloud.rs b/src/ui/settings/cloud.rsnew file mode 100644index 0000000..7e9b56f--- /dev/null+++ b/src/ui/settings/cloud.rs@@ -0,0 +1,451 @@+//! Settings › Cloud: how Muxen 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};++use super::SettingsPage;+use crate::cloud::{CloudOptions, TAILSCALE_KEY, secrets};+use crate::config::CloudSettings;+use crate::ui::github::Load;+use crate::ui::input::{InputEvent, TextInput};+use crate::ui::kit::{self, Button, ButtonStyle, card, section_title};+use crate::ui::theme::{Theme, mono_font};++pub(super) struct CloudState {+ options: Option<Load<CloudOptions>>,+ token: Entity<TextInput>,+ tailscale_key: Entity<TextInput>,+ busy: bool,+ /// What the last action did: (is an error, text).+ message: Option<(bool, String)>,+}++impl CloudState {+ pub(super) fn new(window: &mut Window, cx: &mut Context<SettingsPage>) -> (CloudState, Vec<gpui::Subscription>) {+ let token = cx.new(|cx| TextInput::new(cx, "dop_v1_…").mono().secret());+ let tailscale_key = cx.new(|cx| TextInput::new(cx, "tskey-auth-… (optional)").mono().secret());+ let subs = vec![+ cx.subscribe_in(&token, window, |this: &mut SettingsPage, _, e: &InputEvent, _, cx| {+ if *e == InputEvent::Submit {+ this.cloud_connect("token", cx);+ }+ }),+ cx.subscribe_in(&tailscale_key, window, |this: &mut SettingsPage, _, e: &InputEvent, _, cx| {+ if *e == InputEvent::Submit {+ this.save_tailscale_key(cx);+ }+ }),+ ];+ (CloudState { options: None, token, tailscale_key, busy: false, message: None }, subs)+ }+}++impl SettingsPage {+ /// Reads the account, regions and sizes (when the Cloud tab opens).+ pub(super) fn load_cloud(&mut self, cx: &mut Context<Self>) {+ let engine = self.engine.clone();+ if self.cloud.options.is_none() {+ self.cloud.options = Some(Load::Loading);+ }+ let job = engine.runtime().spawn({+ let engine = engine.clone();+ async move { engine.cloud_options().await }+ });+ let task = cx.spawn(async move |this, cx| {+ if let Ok(options) = job.await {+ let _ = this.update(cx, |this, cx| {+ this.cloud.options = Some(Load::Ready(options));+ cx.notify()+ });+ }+ });+ self._tasks.push(task);+ }++ fn cloud_connect(&mut self, method: &'static str, cx: &mut Context<Self>) {+ if self.cloud.busy {+ return;+ }+ let token = (method == "token").then(|| self.cloud.token.read(cx).text().trim().to_string());+ if token.as_deref() == Some("") {+ return;+ }+ self.cloud.busy = true;+ self.cloud.message = None;+ cx.notify();+ let engine = self.engine.clone();+ let job = engine.runtime().spawn({+ let engine = engine.clone();+ async move { engine.cloud_sign_in(method, token, |url| crate::util::open_url(url)).await }+ });+ 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| {+ this.cloud.busy = false;+ // Connected shows itself; only a failure needs saying.+ this.cloud.message = result.err().map(|e| (true, e));+ this.cloud.token.update(cx, |i, cx| i.set_text("", cx));+ this.load_cloud(cx);+ cx.notify();+ });+ });+ self._tasks.push(task);+ }++ fn cloud_sign_out(&mut self, cx: &mut Context<Self>) {+ self.engine.cloud_sign_out();+ self.cloud.message = None;+ self.load_cloud(cx);+ cx.notify();+ }++ fn save_cloud(&mut self, f: impl FnOnce(&mut CloudSettings), cx: &mut Context<Self>) {+ let mut s = self.engine.settings();+ f(&mut s.cloud);+ if let Err(e) = self.engine.update_settings(s) {+ self.cloud.message = Some((true, e));+ }+ cx.notify();+ }++ fn save_tailscale_key(&mut self, cx: &mut Context<Self>) {+ let key = self.cloud.tailscale_key.read(cx).text().trim().to_string();+ let dir = self.engine.paths().dir.clone();+ self.cloud.message = Some(match key.is_empty() {+ true => {+ secrets::delete(&dir, TAILSCALE_KEY);+ (false, "Removed the Tailscale key.".into())+ }+ false => match secrets::set(&dir, TAILSCALE_KEY, &key) {+ Ok(()) => (false, "Saved the Tailscale key.".into()),+ Err(e) => (true, e),+ },+ });+ self.cloud.tailscale_key.update(cx, |i, cx| i.set_text("", cx));+ cx.notify();+ }++ pub(super) fn cloud_section(&self, theme: &Theme, cx: &mut Context<Self>) -> impl IntoElement {+ let settings = self.engine.settings().cloud;+ let method = settings.digitalocean_auth.clone();+ let options = match &self.cloud.options {+ Some(Load::Ready(o)) => Some(o.clone()),+ _ => None,+ };+ let loading = matches!(self.cloud.options, Some(Load::Loading) | None);++ // How to sign in.+ let methods = segmented(+ theme,+ "do-auth",+ &[("token", "API token"), ("oauth", "Browser"), ("doctl", "doctl")],+ &method,+ cx,+ |this, value, cx| {+ this.save_cloud(|c| c.digitalocean_auth = value.into(), cx);+ this.cloud.message = None;+ this.load_cloud(cx);+ },+ );+ let status: AnyElement = match (&options, loading) {+ (_, true) => div().flex().items_center().gap(px(6.)).text_size(px(12.5)).text_color(theme.text_muted).child(kit::spinner("cloud-check", 12., theme.text_muted)).child("Checking…").into_any_element(),+ (Some(o), _) if o.account.is_some() => {+ let a = o.account.clone().unwrap_or_default();+ div()+ .flex()+ .items_center()+ .gap(px(8.))+ .text_size(px(12.5))+ .child(kit::icon("circle-check", 14., theme.success))+ .child(div().flex_1().child(match &a.team {+ Some(t) => format!("Connected as {} · {t}", a.email),+ None => format!("Connected as {}", a.email),+ }))+ .when(method != "doctl", |d| d.child(Button::new("do-signout", "Sign out").style(ButtonStyle::Ghost).on_click(cx.listener(|this, _, _, cx| this.cloud_sign_out(cx)))))+ .into_any_element()+ }+ (o, _) => {+ let oauth_ok = o.as_ref().is_some_and(|o| o.oauth_available);+ match method.as_str() {+ "oauth" if oauth_ok => Button::new("do-oauth", "Sign in with DigitalOcean")+ .style(ButtonStyle::Primary)+ .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(),+ "doctl" => div()+ .flex()+ .items_center()+ .gap(px(8.))+ .child(note(theme, "Run `doctl auth init` in a terminal, then check again."))+ .child(Button::new("do-doctl", "Check again").icon("refresh-cw").on_click(cx.listener(|this, _, _, cx| this.cloud_connect("doctl", cx))))+ .into_any_element(),+ _ => div()+ .flex()+ .flex_col()+ .gap(px(8.))+ .child(+ div()+ .flex()+ .items_center()+ .gap(px(8.))+ .child(div().flex_1().child(self.cloud.token.clone()))+ .child(Button::new("do-connect", "Connect").style(ButtonStyle::Primary).loading(self.cloud.busy).on_click(cx.listener(|this, _, _, cx| this.cloud_connect("token", cx)))),+ )+ .child(+ div()+ .id("do-token-link")+ .text_size(px(12.))+ .text_color(theme.text_accent)+ .cursor_pointer()+ .child("Create a token (read and write) on DigitalOcean")+ .on_click(|_, _, _| crate::util::open_url("https://cloud.digitalocean.com/account/api/tokens")),+ )+ .into_any_element(),+ }+ }+ };+ let error = options.as_ref().and_then(|o| o.error.clone()).filter(|_| options.as_ref().is_some_and(|o| o.signed_in));+ let account = div()+ .flex()+ .flex_col()+ .gap(px(10.))+ .child(section_title(theme, "DigitalOcean", None))+ .child(+ card(theme)+ .px(px(14.))+ .py(px(12.))+ .gap(px(12.))+ .child(row(theme, "Sign in with", methods.into_any_element()))+ .child(status)+ .children(error.map(|e| div().text_size(px(12.)).text_color(theme.error).child(e)))+ .children(self.cloud.message.clone().map(|(bad, m)| div().text_size(px(12.)).text_color(if bad { theme.error } else { theme.success }).child(m))),+ );++ // New machines: only with a working sign-in.+ let defaults = options.as_ref().filter(|o| o.account.is_some()).map(|o| {+ let region = if settings.region.is_empty() { o.default_region.clone() } else { settings.region.clone() };+ let chosen_city = crate::cloud::city_of_slug(&o.regions, ®ion);+ let regions: Vec<AnyElement> = crate::cloud::cities(&o.regions)+ .into_iter()+ .map(|(city, slug)| {+ let selected = chosen_city.as_deref() == Some(city.as_str());+ chip(theme, SharedString::from(format!("do-region-{slug}")), city, selected)+ .on_click(cx.listener(move |this, _, _, cx| this.save_cloud(|c| c.region = slug.clone(), cx)))+ .into_any_element()+ })+ .collect();+ let sizes: Vec<AnyElement> = o+ .sizes+ .iter()+ .filter(|s| regular_size(&s.slug))+ .take(8)+ .enumerate()+ .map(|(i, s)| {+ let selected = s.slug == settings.size;+ let slug = s.slug.clone();+ div()+ .id(("do-size", i))+ .flex()+ .items_center()+ .gap(px(10.))+ .px(px(10.))+ .h(px(30.))+ .rounded(px(6.))+ .cursor_pointer()+ .border_1()+ .border_color(if selected { theme.accent } else { theme.border_variant })+ .bg(if selected { theme.accent.opacity(0.08) } else { theme.element })+ .text_size(px(12.5))+ .child(div().flex_1().child(format!("{} vCPU · {} GB · {} GB disk", s.vcpus, s.memory_mb / 1024, s.disk_gb)))+ .child(div().font_family(mono_font()).text_size(px(12.)).text_color(theme.text_muted).child(format!("${:.0}/mo", s.price_monthly)))+ .on_click(cx.listener(move |this, _, _, cx| this.save_cloud(|c| c.size = slug.clone(), cx)))+ .into_any_element()+ })+ .collect();+ // The extras in their groups, one checkbox each, three to a row.+ let page = cx.entity().downgrade();+ let groups: Vec<AnyElement> = crate::cloud::setup::GROUPS+ .iter()+ .map(|(group, ids)| {+ let boxes: Vec<AnyElement> = ids+ .iter()+ .map(|id| {+ let on = settings.install.iter().any(|p| p == id);+ let (id, page) = (id.to_string(), page.clone());+ div()+ .w(px(160.))+ .child(kit::checkbox(theme, SharedString::from(format!("do-x-{id}")), on, crate::cloud::setup::extra_name(&id), move |v, _, cx: &mut App| {+ let (v, id) = (*v, id.clone());+ let _ = page.update(cx, |this, cx| {+ this.save_cloud(+ |c| {+ c.install.retain(|x| *x != id);+ if v {+ c.install.push(id);+ }+ },+ cx,+ )+ });+ }))+ .into_any_element()+ })+ .collect();+ div()+ .flex()+ .flex_col()+ .gap(px(8.))+ .child(div().text_size(px(11.5)).text_color(theme.text_placeholder).child(*group))+ .child(kit::rows_of(boxes, 3, 10.))+ .into_any_element()+ })+ .collect();+ let extras = div().flex().flex_col().gap(px(14.)).children(groups);+ let has_key = secrets::get(&self.engine.paths().dir, TAILSCALE_KEY).is_some();+ div()+ .flex()+ .flex_col()+ .gap(px(10.))+ .child(section_title(theme, "New machines", None))+ .child(+ card(theme)+ .px(px(14.))+ .py(px(12.))+ .gap(px(12.))+ .child(row(theme, "Region", kit::rows_of(regions, 5, 6.).into_any_element()))+ .child(row(theme, "Size", div().flex().flex_col().gap(px(4.)).children(sizes).into_any_element()))+ .child(row(theme, "Comes with", extras.into_any_element()))+ .when(settings.install.iter().any(|x| x == "tailscale"), |d| {+ d.child(row(+ theme,+ "Tailscale key",+ div()+ .flex()+ .flex_col()+ .gap(px(6.))+ .child(+ div()+ .flex()+ .items_center()+ .gap(px(8.))+ .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." }))+ .into_any_element(),+ ))+ }),+ )+ });++ // When nobody uses a cloud machine.+ let idle = segmented(+ theme,+ "do-idle",+ &[("off", "Nothing"), ("warn", "Tell me"), ("poweroff", "Power off"), ("destroy", "Destroy")],+ &settings.idle_action,+ cx,+ |this, value, cx| this.save_cloud(|c| c.idle_action = value.into(), cx),+ );+ let hours = settings.idle_hours;+ let stepper = div()+ .flex()+ .items_center()+ .gap(px(4.))+ .child(Button::icon_only("idle-less", "minus").on_click(cx.listener(move |this, _, _, cx| this.save_cloud(|c| c.idle_hours = hours.saturating_sub(1).max(1), cx))))+ .child(div().w(px(70.)).flex().justify_center().font_family(mono_font()).text_size(px(12.5)).child(format!("{hours} h")))+ .child(Button::icon_only("idle-more", "plus").on_click(cx.listener(move |this, _, _, cx| this.save_cloud(|c| c.idle_hours = (hours + 1).min(72), cx))));+ let warning = match settings.idle_action.as_str() {+ "poweroff" => Some("DigitalOcean still bills a droplet that's off."),+ "destroy" => Some("Everything on it is lost. Push your work."),+ _ => None,+ };+ let when_idle = div()+ .flex()+ .flex_col()+ .gap(px(10.))+ .child(section_title(theme, "When one sits idle", None))+ .child(+ card(theme)+ .px(px(14.))+ .py(px(12.))+ .gap(px(12.))+ .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.")),+ );++ div().flex().flex_col().gap(px(28.)).child(account).children(defaults).child(when_idle)+ }+}++/// Basic droplets on regular CPUs: the premium AMD and Intel twins of each size are left out.+pub(crate) fn regular_size(slug: &str) -> bool {+ slug.starts_with("s-") && !slug.ends_with("-amd") && !slug.ends_with("-intel")+}++fn row(theme: &Theme, label: &'static str, control: AnyElement) -> impl IntoElement {+ div()+ .flex()+ .items_start()+ .gap(px(12.))+ .child(div().w(px(110.)).flex_none().pt(px(5.)).text_size(px(12.5)).text_color(theme.text_muted).child(label))+ .child(div().flex_1().min_w(px(0.)).child(control))+}++fn note(theme: &Theme, text: &'static str) -> gpui::Div {+ div().text_size(px(12.)).text_color(theme.text_placeholder).child(text)+}++fn chip(theme: &Theme, id: SharedString, text: String, selected: bool) -> gpui::Stateful<gpui::Div> {+ div()+ .id(id)+ .h(px(26.))+ .px(px(9.))+ .flex()+ .items_center()+ .rounded(px(6.))+ .border_1()+ .cursor_pointer()+ .text_size(px(12.5))+ .border_color(if selected { theme.accent } else { theme.border_variant })+ .bg(if selected { theme.accent.opacity(0.10) } else { theme.element })+ .text_color(if selected { theme.text } else { theme.text_muted })+ .child(text)+}++/// A row of choices, one picked.+fn segmented(+ theme: &Theme,+ id: &'static str,+ choices: &[(&'static str, &'static str)],+ selected: &str,+ cx: &mut Context<SettingsPage>,+ pick: fn(&mut SettingsPage, &'static str, &mut Context<SettingsPage>),+) -> AnyElement {+ let items: Vec<AnyElement> = choices+ .iter()+ .map(|(value, label)| {+ let on = *value == selected;+ let value = *value;+ div()+ .id(SharedString::from(format!("{id}-{value}")))+ .h(px(26.))+ .px(px(11.))+ .flex()+ .items_center()+ .rounded(px(6.))+ .cursor_pointer()+ .text_size(px(12.5))+ .text_color(if on { theme.text } else { theme.text_muted })+ .when(on, |d| d.bg(theme.surface).border_1().border_color(theme.border).shadow_sm())+ .when(!on, |d| d.hover(|st| st.text_color(theme.text)))+ .child(*label)+ .on_click(cx.listener(move |this, _, _, cx| pick(this, value, cx)))+ .into_any_element()+ })+ .collect();+ div().flex().gap(px(2.)).p(px(3.)).rounded(px(8.)).bg(theme.element).border_1().border_color(theme.border_variant).children(items).into_any_element()+}diff --git a/src/ui/shortcuts.rs b/src/ui/shortcuts.rsindex 52449ea..9ec2b55 100644--- a/src/ui/shortcuts.rs+++ b/src/ui/shortcuts.rs@@ -1,5 +1,5 @@//! The app's keyboard shortcuts: what each one does, its keys by default, and-//! the user's own keys from Settings (saved in ui.json). ⌘1…⌘9 go to the+//! the user's own keys from Settings (saved in config.toml). ⌘1…⌘9 go to the//! machines in the sidebar; holding ⌘ shows every shortcut where it applies.use gpui::{App, KeyBinding, Keystroke};diff --git a/src/ui/terminal/mod.rs b/src/ui/terminal/mod.rsindex 102209d..e4581d6 100644--- a/src/ui/terminal/mod.rs+++ b/src/ui/terminal/mod.rs@@ -33,7 +33,7 @@ use gpui::{use super::theme::{self as theme_mod, ActiveTheme, Appearance};use colors::Palette;-/// Font size and line height, from the user's settings (ui.json).+/// Font size and line height, from the user's settings (config.toml).#[derive(Clone, Copy)]pub struct Metrics {pub size: f32,@@ -81,6 +81,8 @@ pub fn font_family(window: &Window) -> gpui::SharedString {render::family(window)}+pub use render::{DEFAULT_FONT, monospace_families, set_font};+/// Hands terminal events from the PTY thread to the view.#[derive(Clone)]pub struct Listener(UnboundedSender<TermEvent>);diff --git a/src/ui/terminal/render.rs b/src/ui/terminal/render.rsindex 9d7f7eb..0739fd2 100644--- a/src/ui/terminal/render.rs+++ b/src/ui/terminal/render.rs@@ -16,9 +16,53 @@ use super::colors::{Palette, dim};use super::{Geometry, Metrics, PAD_X, PAD_Y, Shared};use crate::ui::theme::mono_font;-/// Terminal fonts, first installed wins: Nerd Font builds of SF Mono (prompt-/// icons render), then SF Mono, then the app's monospace font.-const FONTS: &[&str] = &["SFMono Nerd Font", "SFMono Nerd Font Mono", "Liga SFMono Nerd Font", "SF Mono"];+/// The terminal font when none is chosen, and what's used when the chosen+/// one isn't installed: SF Mono, then Menlo, then the app's monospace font.+pub const DEFAULT_FONT: &str = "SF Mono";+const FALLBACKS: &[&str] = &["SF Mono", "Menlo"];++/// The font the user picked (Settings › Terminal; see `set_font`).+static CHOSEN: std::sync::RwLock<Option<SharedString>> = std::sync::RwLock::new(None);++/// Sets the terminal font (from the user's preferences).+pub fn set_font(family: &str) {+ if let Ok(mut c) = CHOSEN.write() {+ *c = Some(SharedString::from(family.to_string()));+ }+}++fn installed(window: &Window) -> &'static [String] {+ static INSTALLED: OnceLock<Vec<String>> = OnceLock::new();+ INSTALLED.get_or_init(|| window.text_system().all_font_names())+}++/// Installed families whose letters are all one width, for the font picker.+pub fn monospace_families(window: &Window) -> Vec<SharedString> {+ static MONO: OnceLock<Vec<SharedString>> = OnceLock::new();+ MONO.get_or_init(|| {+ let ts = window.text_system();+ let mut out: Vec<SharedString> = installed(window)+ .iter()+ // Hidden system faces (".SF NS Mono") aren't meant to be picked, and+ // even-width fonts for other scripts or symbols aren't for code.+ .filter(|name| !name.starts_with('.'))+ .filter(|name| {+ let n = name.to_lowercase();+ ["mono", "code", "courier", "menlo", "monaco", "consol", "hack", "iosevka", "nerd", "term", "fixed", "input", "fira"].iter().any(|w| n.contains(w))+ })+ .filter(|name| {+ let id = ts.resolve_font(&gpui::font(SharedString::from(name.to_string())));+ let w = |c| ts.advance(id, px(12.), c).map(|s| f32::from(s.width)).ok();+ matches!((w('i'), w('M'), w('.')), (Some(a), Some(b), Some(c)) if a > 0. && (a - b).abs() < 0.01 && (a - c).abs() < 0.01)+ })+ .map(|n| SharedString::from(n.to_string()))+ .collect();+ out.sort_by_key(|n| n.to_lowercase());+ out.dedup();+ out+ })+ .clone()+}/// One drawable cell, copied out of the grid so the lock is held briefly.struct CellOut {@@ -50,15 +94,14 @@ pub(super) fn grid(shared: Arc<Shared>, palette: Palette, focused: bool, cursor:}fn base_font(window: &Window) -> Font {- static FAMILY: OnceLock<SharedString> = OnceLock::new();- let family = FAMILY- .get_or_init(|| {- let installed = window.text_system().all_font_names();- let family = FONTS.iter().find(|f| installed.iter().any(|n| n == *f)).map(|f| SharedString::from(*f)).unwrap_or_else(|| mono_font().into());- tracing::debug!("terminal font: {family}");- family- })- .clone();+ let installed = installed(window);+ let has = |f: &str| installed.iter().any(|n| n == f);+ let chosen = CHOSEN.read().ok().and_then(|c| c.clone()).unwrap_or_else(|| DEFAULT_FONT.into());+ let family = if has(&chosen) {+ chosen+ } else {+ FALLBACKS.iter().find(|f| has(f)).map(|f| SharedString::from(*f)).unwrap_or_else(|| mono_font().into())+ };let mut font = gpui::font(family);// Ligatures would merge cells and break the grid.font.features = FontFeatures(Arc::new(vec![("calt".into(), 0), ("liga".into(), 0)]));diff --git a/src/ui/theme.rs b/src/ui/theme.rsindex 11400d1..372fc3c 100644--- a/src/ui/theme.rs+++ b/src/ui/theme.rs@@ -107,7 +107,7 @@ impl ActiveTheme for App {}// ----------------------------------------------------------------------------// Appearance preference (ui.json)+// Appearance preference ([ui] in config.toml)#[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)]#[serde(rename_all = "lowercase")]@@ -126,6 +126,8 @@ pub struct Appearance {/// Sidebar width in pixels, as last dragged, and whether it's hidden.pub sidebar_width: f32,pub sidebar_hidden: bool,+ /// The terminal's font family (SF Mono unless picked in Settings).+ pub terminal_font: String,/// Terminal text size in points, and line height as a multiple of it.pub terminal_font_size: f32,pub terminal_line_height: f32,@@ -139,6 +141,10 @@ pub struct Appearance {pub split_ratio: f32,/// Machines whose desktop is an item in the sidebar.pub desktops: Vec<String>,+ /// Favorite machines: first in the sidebar (so ⌘1, ⌘2, …), with a star.+ pub favorite_machines: Vec<String>,+ /// How icons look (see kit::IconStyle): "minimal", "tiles", "soft", ...+ pub icon_style: String,/// Shortcuts the user changed: id → keys ("" for none). See shortcuts.rs.pub shortcuts: std::collections::BTreeMap<String, String>,/// Where to save; None in demo mode.@@ -154,6 +160,7 @@ impl Default for Appearance {dark: DEFAULT_DARK.into(),sidebar_width: super::root::SIDEBAR_DEFAULT,sidebar_hidden: false,+ terminal_font: super::terminal::DEFAULT_FONT.into(),terminal_font_size: TERMINAL_FONT_SIZE,terminal_line_height: TERMINAL_LINE_HEIGHT,terminal_cursor_blink: true,@@ -161,6 +168,8 @@ impl Default for Appearance {github_folded_owners: Vec::new(),split_ratio: 0.5,desktops: Vec::new(),+ favorite_machines: Vec::new(),+ icon_style: super::kit::IconStyle::default().id().into(),shortcuts: Default::default(),path: None,}@@ -170,25 +179,17 @@ impl Default for Appearance {impl Global for Appearance {}impl Appearance {+ /// `[ui]` in config.toml.pub fn load(path: Option<PathBuf>) -> Appearance {- let mut a: Appearance = path- .as_ref()- .and_then(|p| std::fs::read_to_string(p).ok())- .and_then(|t| serde_json::from_str(&t).ok())- .unwrap_or_default();+ let mut a: Appearance = path.as_deref().map(|p| crate::config::read_section(p, "ui")).unwrap_or_default();a.path = path;a}fn save(&self) {let Some(path) = &self.path else { return };- match serde_json::to_vec_pretty(self) {- Ok(bytes) => {- if let Err(e) = crate::config::write_atomic(path, &bytes) {- tracing::warn!("saving appearance: {e:#}");- }- }- Err(e) => tracing::warn!("saving appearance: {e}"),+ if let Err(e) = crate::config::write_section(path, "ui", self) {+ tracing::warn!("saving appearance: {e}");}}@@ -219,6 +220,9 @@ pub fn apply(window: &Window, cx: &mut App) {if let Ok(mut f) = FONTS.write() {*f = fonts;}+ super::terminal::set_font(&cx.global::<Appearance>().terminal_font);+ let style = super::kit::IconStyle::from_id(&cx.global::<Appearance>().icon_style);+ super::kit::set_look(super::kit::Look::new(style, &theme));cx.set_global(theme);}@@ -232,6 +236,7 @@ pub fn update_terminal(cx: &mut App, f: impl FnOnce(&mut Appearance)) {f(&mut appearance);appearance.terminal_font_size = appearance.terminal_font_size.round().clamp(8., 32.);appearance.terminal_line_height = ((appearance.terminal_line_height * 20.).round() / 20.).clamp(1., 2.);+ super::terminal::set_font(&appearance.terminal_font);appearance.save();cx.set_global(appearance);cx.refresh_windows();diff --git a/src/util.rs b/src/util.rsindex 2c72f69..0434367 100644--- a/src/util.rs+++ b/src/util.rs@@ -85,3 +85,27 @@ mod tests {assert_eq!(short_duration(754), "12m");}}++/// A random token from the system's secure generator (letters and digits),+/// for values that must not be guessable (an OAuth `state`).+pub fn random_token(len: usize) -> String {+ use ring::rand::SecureRandom;+ const DIGITS: &[u8] = b"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";+ let mut bytes = vec![0u8; len];+ let _ = ring::rand::SystemRandom::new().fill(&mut bytes);+ bytes.iter().map(|b| DIGITS[*b as usize % DIGITS.len()] as char).collect()+}++/// Opens a web page in the user's browser.+pub fn open_url(url: &str) {+ let mut cmd = if cfg!(target_os = "macos") {+ std::process::Command::new("open")+ } else if cfg!(windows) {+ let mut c = std::process::Command::new("cmd");+ c.args(["/C", "start", ""]);+ c+ } else {+ std::process::Command::new("xdg-open")+ };+ let _ = cmd.arg(url).spawn();+}