From 68b34d4a93c28fccce132b2eeec59183531be353 Mon Sep 17 00:00:00 2001
From: Claude
Date: Tue, 10 Nov 2026 23:49:12 -0300
Subject: [PATCH] Add a Homebrew command route and fix the copied launcher
Review now offers two routes. Guided setup (plan download and local
companion) is unchanged and remains the default. The new Homebrew
command route shows one-line commands built from the selected
catalogue tokens:
brew install --formula ; brew install --cask
mas get (optional, only when App Store apps are chosen)
Preferences, setup steps, connections and manual installs are listed
as not included, with a way back to the guided setup.
Fix: Copy on the handoff page copied the launcher with two line breaks,
because formatting had wrapped the element across three lines.
Pasting ran `curl -fsSL` without a URL and failed with a parse error at
`|`. Copy buttons now write canonical one-line strings; the page
fallback is pinned to one line with prettier-ignore.
Verification: node/python unit suites (22 + 21), format and catalogue
checks, full Playwright suite in WebKit (30/30), setup/components/
languages specs in Chromium (19/19) and setup spec in Firefox (10/10).
The new copy test fails against the previous code.
Co-Authored-By: Claude Opus 5.5
Claude-Session: https://claude.ai/code/session_01JBgAhZ6s45DnrKXbhbwYet
---
CHANGELOG.md | 20 ++++
README.md | 4 +-
docs/ACCEPTANCE.md | 2 +
docs/ARCHITECTURE.md | 5 +-
docs/WEB_SETUP.md | 25 +++++
docs/assets/app.mjs | 127 +++++++++++++++++++++---
docs/assets/commands.mjs | 58 +++++++++++
docs/assets/messages.mjs | 184 +++++++++++++++++++++++++++++++++++
docs/assets/style.css | 122 +++++++++++++++++++++++
docs/index.html | 134 ++++++++++++++++++++++++-
tests/browser/setup.spec.mjs | 154 +++++++++++++++++++++++++++++
tests/commands.test.mjs | 118 ++++++++++++++++++++++
12 files changed, 931 insertions(+), 22 deletions(-)
create mode 100644 docs/assets/commands.mjs
create mode 100644 tests/commands.test.mjs
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 878b8c2..65b68d6 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,26 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
+### Added — Homebrew command route
+
+- Review now offers a choice: the existing **Guided setup** (plan download and
+ local companion, unchanged and still the default) or a **Homebrew command**
+ that lists only the selected packages, for example
+ `brew install --formula mas; brew install --cask google-chrome vlc`. Selected
+ App Store apps get an optional `mas get …` line; preferences, setup steps,
+ connections and manual installs are listed as not included, with a way back
+ to the guided setup. The chosen route is remembered locally.
+- Commands are generated from allowlisted catalogue tokens only, one line each,
+ with groups separated by `;` so a formula failure does not skip the apps.
+
+### Fixed — copied launch command
+
+- **Copy** on the handoff page copied the companion launcher with two line
+ breaks, because formatting had wrapped the command across three lines in the
+ HTML. Pasting ran `curl -fsSL` without a URL and failed with
+ `parse error near '|'`. Copy buttons now write canonical one-line strings, and
+ unit and browser tests guard the page fallback and the clipboard text.
+
### Changed — shared component contract
- Consolidated control geometry, spacing and response tokens; kept geometry in
diff --git a/README.md b/README.md
index 660259e..c0d2c9c 100644
--- a/README.md
+++ b/README.md
@@ -7,7 +7,9 @@ edit every optional choice, and export your plan. The local companion opens the
same interface on your Mac, asks for confirmation, and follows the real installer
step by step. **Essentials** is a light default; **BRITX Choice** is Pedro's
personal recommendation. Developer, Education, Productivity and Creative profiles
-provide other starting points.
+provide other starting points. Prefer something lighter? Review also offers a
+plain **Homebrew command** for just the apps and tools you selected, with no
+preferences or setup steps.
From a clone:
diff --git a/docs/ACCEPTANCE.md b/docs/ACCEPTANCE.md
index 224b3cb..a8b9d30 100644
--- a/docs/ACCEPTANCE.md
+++ b/docs/ACCEPTANCE.md
@@ -99,6 +99,8 @@ Reviewer/date: ____________________
| Production performance | Measure fluid/calm frame behaviour on target hardware, recording conditions and measurements. | Not run | |
| Language review | A qualified reviewer checks meaning, terminology and truncation in each locale. | Not run | |
| Real production handoff | Export from the live site and complete the reviewed installation on the disposable Mac. | Not run | |
+| Copied launcher | Copy the handoff command from the live site, paste it into Terminal (zsh) and confirm the companion starts. | Not run | |
+| Homebrew command route | Copy the generated commands from the live site for a small selection; confirm Homebrew installs exactly those packages and `mas get` behaves as described when signed in and signed out. | Not run | |
## Evidence recorded in this follow-up
diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md
index 4b3ca4a..5462abd 100644
--- a/docs/ARCHITECTURE.md
+++ b/docs/ARCHITECTURE.md
@@ -13,7 +13,10 @@ Python standard-library companion bound to `127.0.0.1`. The browser submits a
versioned plan of allowlisted IDs after local confirmation; the companion writes
data-only picker keys and calls `install.sh --selection`. It reads module events
and append-only reports for real progress. It does not accept shell commands,
-package URLs, arbitrary paths or MCP credentials from the browser.
+package URLs, arbitrary paths or MCP credentials from the browser. The public
+site's optional Homebrew command route only displays commands for the user to
+copy (`docs/assets/commands.mjs`); it emits allowlisted catalogue tokens and
+never sends commands anywhere.
The [Liquid Acrylic presentation layer](LIQUID_INTERFACE.md) decorates native
controls with CSS/SVG and small fixed-step springs. Its motion, theme and
diff --git a/docs/WEB_SETUP.md b/docs/WEB_SETUP.md
index 32f6dfc..27370c9 100644
--- a/docs/WEB_SETUP.md
+++ b/docs/WEB_SETUP.md
@@ -41,6 +41,31 @@ locally and system accessibility preferences take precedence. See the
The public launcher requires the browser changes to have been published to the
repository first. Local development and review work directly from this checkout.
+## Homebrew command route
+
+At step 3, the public site also offers **Homebrew command** instead of the guided
+setup. Guided setup stays the default; the choice is remembered in local storage
+only and never enters the exported plan. The route shows plain commands built
+from the selected catalogue tokens, in Brewfile order:
+
+```bash
+brew install --formula mas; brew install --cask google-chrome appcleaner 1password vlc
+mas get 425424353 # optional, only when App Store apps are selected
+```
+
+- Each command is one line. Copy buttons write the generated string, not page
+ text, so wrapping can never insert a line break into Terminal.
+- `;` keeps formulae and casks independent. Within a cask list, current Homebrew
+ reports a failing cask and continues with the rest.
+- `mas get` (mas 7+, the current Homebrew version) gets free apps and installs
+ apps the Apple Account already owns. It needs App Store sign-in, may ask for
+ the Mac password, and cannot buy paid apps.
+- Homebrew itself is a prerequisite and links to [brew.sh](https://brew.sh).
+ Preferences, setup steps, MCP connections, web apps and manual installs are
+ listed as not included; they need the guided setup or the user's own steps.
+- Unlike the guided installer, this route produces no reports or verification,
+ and it skips the selection-aware module behaviour described below.
+
## What is automated
The [generated inventory](CATALOG.md) is the full list. Homebrew formulae/casks,
diff --git a/docs/assets/app.mjs b/docs/assets/app.mjs
index 8114f64..96cdf4c 100644
--- a/docs/assets/app.mjs
+++ b/docs/assets/app.mjs
@@ -12,9 +12,11 @@ import { icon } from "./icons.mjs";
import { createSourcePicker } from "./source-picker.mjs";
import { requestTranslation, translate } from "./i18n.mjs";
import { APP_ICONS } from "./app-icons.mjs";
+import { LAUNCH_COMMAND, homebrewCommands, oneLine } from "./commands.mjs";
const $ = (id) => document.getElementById(id);
const STORAGE_KEY = "mac-setup.plan.v1";
+const METHOD_KEY = "mac-setup.method.v1";
const MODULE_NAMES = {
xcode: "Command Line Tools & Apple tooling",
brew: "Homebrew & packages",
@@ -68,11 +70,13 @@ const PRIORITY = [
let catalog;
let selected = new Set();
let profile = "essentials";
+let method = "guided";
let category = "all";
let selectedOnly = false;
let session = null;
let token = "";
let pollTimer;
+let commands = { brew: "", appStore: "" };
let followupSignature = "";
let lastRunStatus = "";
let starting = false;
@@ -519,9 +523,10 @@ function renderSelection() {
}
function setView(view, moveFocus = true) {
requestTranslation();
- for (const name of ["choose", "review", "guide", "progress"])
+ for (const name of ["choose", "review", "guide", "command", "progress"])
$(`${name}-view`).hidden = name !== view;
const step = view === "choose" ? 0 : view === "review" ? 1 : 2;
+ renderInstallStep();
document.querySelectorAll(".stepper li").forEach((node, index) => {
node.classList.toggle("complete", index < step);
if (index === step) node.setAttribute("aria-current", "step");
@@ -543,6 +548,11 @@ function setView(view, moveFocus = true) {
"step by step.",
"A short handoff, then your Mac takes it from here.",
],
+ command: [
+ "Your apps, ",
+ "one command.",
+ "Paste it into Terminal. Only what you chose is installed.",
+ ],
progress: [
"Your setup, ",
"step by step.",
@@ -617,20 +627,97 @@ function renderReview() {
$("git-identity").hidden = !session || !selected.has("step:git");
$("confirm-install").checked = false;
$("continue-button").disabled = Boolean(session);
+ renderReviewActions();
+ setView("review");
+}
+// The public site offers two routes; the local companion always installs.
+function renderReviewActions() {
+ const homebrew = !session && method === "homebrew";
+ $("install-method").hidden = Boolean(session);
+ for (const input of document.querySelectorAll('[name="install-method"]'))
+ input.checked = input.value === method;
$("continue-button").textContent = session
? session.dryRun
? "Start dry-run preview"
: "Install my setup"
- : "Download plan & continue";
+ : homebrew
+ ? "Show Homebrew command"
+ : "Download plan & continue";
$("review-explanation").textContent = session
? session.dryRun
? "Preview your actual installer commands. No apps, shell files or system preferences will be changed."
: "The local companion will run this selection. Administrator prompts appear in Terminal. Account sign-ins and purchases remain yours."
- : "Download your plan, then open the local companion on your Mac for a guided installation.";
+ : homebrew
+ ? "Get a ready-to-paste Terminal command for the apps and tools you selected."
+ : "Download your plan, then open the local companion on your Mac for a guided installation.";
$("review-caption").textContent = session
? "Keep Terminal open throughout setup."
- : "Your plan contains choices, never credentials.";
- setView("review");
+ : homebrew
+ ? "Nothing runs until you paste it into Terminal."
+ : "Your plan contains choices, never credentials.";
+ renderInstallStep();
+ requestTranslation();
+}
+function renderInstallStep() {
+ $("install-step-label").textContent =
+ !session && method === "homebrew"
+ ? "Homebrew command"
+ : "Guided installation";
+}
+function changeMethod(next) {
+ method = next === "homebrew" ? "homebrew" : "guided";
+ try {
+ localStorage.setItem(METHOD_KEY, method);
+ } catch {
+ /* The choice still applies to this visit. */
+ }
+ renderReviewActions();
+}
+function renderCommands() {
+ requestTranslation();
+ const result = homebrewCommands(catalog, selected);
+ commands = { brew: result.command, appStore: result.appStoreCommand };
+ showCommand($("brew-command"), result.command);
+ $("brew-command-box").hidden = !result.command;
+ $("brew-empty").hidden = Boolean(result.command);
+ $("brew-summary").hidden = !result.command;
+ $("brew-summary").textContent =
+ `Command-line tools: ${result.formulae.length} · Apps: ${result.casks.length}`;
+ $("app-store-step").hidden = !result.appStoreCommand;
+ showCommand($("app-store-command"), result.appStoreCommand);
+ for (const id of ["copy-brew-command", "copy-app-store-command"])
+ $(id).textContent = "Copy";
+ $("not-included").hidden = result.notIncluded.length === 0;
+ $("not-included-list").replaceChildren(
+ ...result.notIncluded.map((item) => element("li", "", item.name)),
+ );
+ setView("command");
+}
+// Each word wraps as a unit, so hyphenated names never look like two packages.
+function showCommand(node, command) {
+ node.replaceChildren(
+ ...command
+ .split(" ")
+ .flatMap((word, index) => [
+ ...(index ? [document.createTextNode(" ")] : []),
+ element("span", "", word),
+ ]),
+ );
+}
+function bindCopy(button, text) {
+ button.addEventListener("click", async () => {
+ const value = oneLine(text());
+ if (!value) return;
+ try {
+ await navigator.clipboard.writeText(value);
+ button.textContent = "Copied";
+ announce("Command copied. Paste it into Terminal and press Return.");
+ } catch {
+ showError(
+ "Clipboard access is unavailable. Select the command and copy it manually.",
+ );
+ }
+ });
}
function download(content, name, type = "application/json") {
const url = URL.createObjectURL(new Blob([content], { type }));
@@ -672,6 +759,10 @@ async function api(path, options = {}) {
async function startInstallation() {
if (starting) return;
if (!session) {
+ if (method === "homebrew") {
+ renderCommands();
+ return;
+ }
exportPlan();
setView("guide");
return;
@@ -964,16 +1055,16 @@ function bindEvents() {
event.target.value = "";
}
});
- $("copy-command").addEventListener("click", async () => {
- try {
- await navigator.clipboard.writeText($("launch-command").textContent);
- $("copy-command").textContent = "Copied";
- requestTranslation();
- } catch {
- showError(
- "Clipboard access is unavailable. Select the command and copy it manually.",
- );
- }
+ // Copy from the canonical strings, never from formatted markup.
+ bindCopy($("copy-command"), () => LAUNCH_COMMAND);
+ bindCopy($("copy-brew-command"), () => commands.brew);
+ bindCopy($("copy-app-store-command"), () => commands.appStore);
+ for (const input of document.querySelectorAll('[name="install-method"]'))
+ input.addEventListener("change", () => changeMethod(input.value));
+ $("command-back").addEventListener("click", renderReview);
+ $("switch-to-guided").addEventListener("click", () => {
+ changeMethod("guided");
+ renderReview();
});
$("report-button").addEventListener("click", () => downloadReport("install"));
$("manual-report-button").addEventListener("click", () =>
@@ -1017,6 +1108,12 @@ async function init() {
);
catalog = await response.json();
selected = profileSelection(catalog, profile);
+ $("launch-command").textContent = LAUNCH_COMMAND;
+ try {
+ if (localStorage.getItem(METHOD_KEY) === "homebrew") method = "homebrew";
+ } catch {
+ /* Guided setup remains the default. */
+ }
try {
const stored = localStorage.getItem(STORAGE_KEY);
if (stored) {
diff --git a/docs/assets/commands.mjs b/docs/assets/commands.mjs
new file mode 100644
index 0000000..7642f1f
--- /dev/null
+++ b/docs/assets/commands.mjs
@@ -0,0 +1,58 @@
+// Copy-ready Terminal commands. Everything returned here reaches the clipboard
+// verbatim, so each command is exactly one line: a newline pasted into Terminal
+// runs a partial command and breaks the rest.
+
+export const LAUNCH_COMMAND =
+ "curl -fsSL https://raw.githubusercontent.com/pedrobritx/mac-setup/main/bootstrap.sh | bash -s -- --web";
+
+// Homebrew names: lower-case tokens, optionally tap-qualified (user/repo/name).
+const PACKAGE = /^[a-z0-9][a-z0-9+@._-]*(?:\/[a-z0-9][a-z0-9+@._-]*){0,2}$/;
+const APP_STORE_ID = /^[0-9]+$/;
+
+/** Collapse any whitespace, including line breaks, into single spaces. */
+export function oneLine(text) {
+ return String(text).replace(/\s+/g, " ").trim();
+}
+
+/**
+ * Plain Homebrew commands for the selected catalogue items, in Brewfile order.
+ * Only allowlisted catalogue tokens are emitted; anything else is reported as
+ * not covered, so the guided setup remains the path for preferences, setup
+ * steps, connections and manual installs.
+ */
+export function homebrewCommands(catalog, selection) {
+ const chosen = catalog.items.filter((item) => selection.has(item.id));
+ const formulae = [];
+ const casks = [];
+ const appStore = [];
+ const notIncluded = [];
+ for (const item of chosen) {
+ if (item.locked) continue; // Command Line Tools and Homebrew: prerequisites.
+ const list =
+ item.type === "brew" && PACKAGE.test(item.token)
+ ? formulae
+ : item.type === "cask" && PACKAGE.test(item.token)
+ ? casks
+ : item.type === "mas" && APP_STORE_ID.test(item.token)
+ ? appStore
+ : null;
+ if (!list) notIncluded.push(item);
+ else if (!list.some((entry) => entry.token === item.token)) list.push(item);
+ }
+ const names = (items) => items.map((item) => item.token).join(" ");
+ // `;` keeps the groups independent: a formula failure must not skip the apps.
+ const command = [
+ formulae.length ? `brew install --formula ${names(formulae)}` : "",
+ casks.length ? `brew install --cask ${names(casks)}` : "",
+ ]
+ .filter(Boolean)
+ .join("; ");
+ return {
+ formulae,
+ casks,
+ appStore,
+ notIncluded,
+ command,
+ appStoreCommand: appStore.length ? `mas get ${names(appStore)}` : "",
+ };
+}
diff --git a/docs/assets/messages.mjs b/docs/assets/messages.mjs
index c15d3d6..fd28cc5 100644
--- a/docs/assets/messages.mjs
+++ b/docs/assets/messages.mjs
@@ -3015,4 +3015,188 @@ export default [
"Erfordert: {0}",
"Requiere: {0}",
],
+ // Homebrew command route
+ [
+ "How would you like to install?",
+ "Como você quer instalar?",
+ "Comment souhaitez-vous installer ?",
+ "Wie möchtest du installieren?",
+ "¿Cómo quieres instalar?",
+ ],
+ [
+ "Guided setup",
+ "Configuração guiada",
+ "Configuration guidée",
+ "Geführte Einrichtung",
+ "Configuración guiada",
+ ],
+ [
+ "Installs your apps and applies the preferences and setup steps you chose, with live progress and reports.",
+ "Instala seus apps e aplica as preferências e etapas de configuração escolhidas, com progresso em tempo real e relatórios.",
+ "Installe vos apps et applique les préférences et étapes de configuration choisies, avec progression en direct et rapports.",
+ "Installiert deine Apps und übernimmt die gewählten Einstellungen und Einrichtungsschritte, mit Live-Fortschritt und Berichten.",
+ "Instala tus apps y aplica las preferencias y los pasos de configuración elegidos, con progreso en directo e informes.",
+ ],
+ [
+ "Homebrew command",
+ "Comando do Homebrew",
+ "Commande Homebrew",
+ "Homebrew-Befehl",
+ "Comando de Homebrew",
+ ],
+ [
+ "Copy one Terminal command that installs only your selected apps and tools. Nothing else changes.",
+ "Copie um único comando para o Terminal que instala apenas os apps e ferramentas selecionados. Nada mais é alterado.",
+ "Copiez une seule commande Terminal qui installe uniquement les apps et outils sélectionnés. Rien d’autre ne change.",
+ "Kopiere einen einzigen Terminal-Befehl, der nur deine ausgewählten Apps und Tools installiert. Sonst ändert sich nichts.",
+ "Copia un solo comando de Terminal que instala únicamente las apps y herramientas seleccionadas. No cambia nada más.",
+ ],
+ [
+ "Install with Homebrew",
+ "Instalar com o Homebrew",
+ "Installer avec Homebrew",
+ "Mit Homebrew installieren",
+ "Instalar con Homebrew",
+ ],
+ [
+ "Your Homebrew command.",
+ "Seu comando do Homebrew.",
+ "Votre commande Homebrew.",
+ "Dein Homebrew-Befehl.",
+ "Tu comando de Homebrew.",
+ ],
+ [
+ "It installs only the apps and tools you selected. Preferences, setup steps and connections stay as they are.",
+ "Ele instala apenas os apps e ferramentas que você selecionou. Preferências, etapas de configuração e conexões continuam como estão.",
+ "Elle installe uniquement les apps et outils sélectionnés. Les préférences, étapes de configuration et connexions restent inchangées.",
+ "Er installiert nur die ausgewählten Apps und Tools. Einstellungen, Einrichtungsschritte und Verbindungen bleiben unverändert.",
+ "Instala únicamente las apps y herramientas que has seleccionado. Las preferencias, los pasos de configuración y las conexiones se quedan como están.",
+ ],
+ [
+ "Have Homebrew ready",
+ "Tenha o Homebrew instalado",
+ "Préparez Homebrew",
+ "Homebrew bereithalten",
+ "Ten Homebrew listo",
+ ],
+ [
+ "If Terminal says “brew: command not found”, install Homebrew first and follow the “Next steps” it prints.",
+ "Se o Terminal mostrar “brew: command not found”, instale o Homebrew primeiro e siga os “Next steps” exibidos ao final.",
+ "Si le Terminal affiche « brew: command not found », installez d’abord Homebrew et suivez les « Next steps » qu’il indique.",
+ "Wenn Terminal „brew: command not found“ meldet, installiere zuerst Homebrew und folge den angezeigten „Next steps“.",
+ "Si Terminal muestra «brew: command not found», instala primero Homebrew y sigue los «Next steps» que indica.",
+ ],
+ [
+ "Get Homebrew at brew.sh",
+ "Obter o Homebrew em brew.sh",
+ "Obtenir Homebrew sur brew.sh",
+ "Homebrew auf brew.sh holen",
+ "Obtener Homebrew en brew.sh",
+ ],
+ [
+ "Install your apps and tools",
+ "Instale seus apps e ferramentas",
+ "Installez vos apps et outils",
+ "Installiere deine Apps und Tools",
+ "Instala tus apps y herramientas",
+ ],
+ [
+ "Open Terminal (⌘ Space, then “Terminal”), paste this command and press Return.",
+ "Abra o Terminal (⌘ Espaço e depois “Terminal”), cole este comando e pressione Return.",
+ "Ouvrez le Terminal (⌘ Espace, puis « Terminal »), collez cette commande et appuyez sur Retour.",
+ "Öffne Terminal (⌘ Leertaste, dann „Terminal“), füge diesen Befehl ein und drücke die Eingabetaste.",
+ "Abre Terminal (⌘ Espacio y después «Terminal»), pega este comando y pulsa Intro.",
+ ],
+ [
+ "This selection has no Homebrew apps or tools. Go back to add some, or use the guided setup.",
+ "Esta seleção não tem apps nem ferramentas do Homebrew. Volte para adicionar alguns ou use a configuração guiada.",
+ "Cette sélection ne contient aucune app ni aucun outil Homebrew. Revenez en arrière pour en ajouter, ou utilisez la configuration guidée.",
+ "Diese Auswahl enthält keine Homebrew-Apps oder -Tools. Geh zurück und füge welche hinzu, oder nutze die geführte Einrichtung.",
+ "Esta selección no incluye apps ni herramientas de Homebrew. Vuelve atrás para añadir alguna o usa la configuración guiada.",
+ ],
+ [
+ "Add your App Store apps",
+ "Adicione seus apps da App Store",
+ "Ajoutez vos apps de l’App Store",
+ "Füge deine App-Store-Apps hinzu",
+ "Añade tus apps del App Store",
+ ],
+ [
+ "Optional. Sign in to the App Store first, then run this after the command above. Free apps are added to your Apple Account; paid apps need an existing purchase. Terminal may ask for your Mac password.",
+ "Opcional. Primeiro, faça login na App Store e execute este comando depois do anterior. Apps gratuitos são adicionados à sua Conta Apple; apps pagos exigem uma compra prévia. O Terminal pode pedir a senha do seu Mac.",
+ "Facultatif. Connectez-vous d’abord à l’App Store, puis lancez cette commande après la précédente. Les apps gratuites sont ajoutées à votre compte Apple ; les apps payantes doivent déjà avoir été achetées. Le Terminal peut demander le mot de passe de votre Mac.",
+ "Optional. Melde dich zuerst im App Store an und führe diesen Befehl nach dem obigen aus. Kostenlose Apps werden deinem Apple Account hinzugefügt; kostenpflichtige Apps müssen bereits gekauft sein. Terminal fragt eventuell nach deinem Mac-Passwort.",
+ "Opcional. Inicia sesión primero en el App Store y ejecuta este comando después del anterior. Las apps gratuitas se añaden a tu cuenta de Apple; las de pago requieren una compra previa. Terminal puede pedirte la contraseña del Mac.",
+ ],
+ [
+ "Not in these commands",
+ "Fora destes comandos",
+ "Non inclus dans ces commandes",
+ "Nicht in diesen Befehlen enthalten",
+ "No incluido en estos comandos",
+ ],
+ [
+ "These choices need the guided setup, or your own steps:",
+ "Estas escolhas exigem a configuração guiada ou passos feitos por você:",
+ "Ces choix nécessitent la configuration guidée, ou vos propres étapes :",
+ "Für diese Auswahl brauchst du die geführte Einrichtung oder eigene Schritte:",
+ "Estas elecciones necesitan la configuración guiada o tus propios pasos:",
+ ],
+ [
+ "Use the guided setup instead",
+ "Usar a configuração guiada",
+ "Utiliser plutôt la configuration guidée",
+ "Stattdessen geführte Einrichtung nutzen",
+ "Usar la configuración guiada",
+ ],
+ ["Your apps,", "Seus apps,", "Vos apps,", "Deine Apps,", "Tus apps,"],
+ [
+ "one command.",
+ "um só comando.",
+ "une seule commande.",
+ "ein Befehl.",
+ "un solo comando.",
+ ],
+ [
+ "Paste it into Terminal. Only what you chose is installed.",
+ "Cole no Terminal. Só o que você escolheu é instalado.",
+ "Collez-la dans le Terminal. Seul ce que vous avez choisi est installé.",
+ "Füge ihn in Terminal ein. Installiert wird nur, was du gewählt hast.",
+ "Pégalo en Terminal. Solo se instala lo que has elegido.",
+ ],
+ [
+ "Show Homebrew command",
+ "Mostrar comando do Homebrew",
+ "Afficher la commande Homebrew",
+ "Homebrew-Befehl anzeigen",
+ "Mostrar comando de Homebrew",
+ ],
+ [
+ "Get a ready-to-paste Terminal command for the apps and tools you selected.",
+ "Receba um comando pronto para colar no Terminal com os apps e ferramentas selecionados.",
+ "Obtenez une commande Terminal prête à coller pour les apps et outils sélectionnés.",
+ "Erhalte einen Terminal-Befehl zum Einfügen für deine ausgewählten Apps und Tools.",
+ "Obtén un comando listo para pegar en Terminal con las apps y herramientas seleccionadas.",
+ ],
+ [
+ "Nothing runs until you paste it into Terminal.",
+ "Nada é executado até você colar no Terminal.",
+ "Rien ne s’exécute avant que vous la colliez dans le Terminal.",
+ "Nichts läuft, bevor du ihn in Terminal einfügst.",
+ "No se ejecuta nada hasta que lo pegues en Terminal.",
+ ],
+ [
+ "Command-line tools: {0} · Apps: {1}",
+ "Ferramentas de linha de comando: {0} · Apps: {1}",
+ "Outils en ligne de commande : {0} · Apps : {1}",
+ "Befehlszeilentools: {0} · Apps: {1}",
+ "Herramientas de línea de comandos: {0} · Apps: {1}",
+ ],
+ [
+ "Command copied. Paste it into Terminal and press Return.",
+ "Comando copiado. Cole no Terminal e pressione Return.",
+ "Commande copiée. Collez-la dans le Terminal et appuyez sur Retour.",
+ "Befehl kopiert. Füge ihn in Terminal ein und drücke die Eingabetaste.",
+ "Comando copiado. Pégalo en Terminal y pulsa Intro.",
+ ],
];
diff --git a/docs/assets/style.css b/docs/assets/style.css
index 44851e5..c5cfa36 100644
--- a/docs/assets/style.css
+++ b/docs/assets/style.css
@@ -1380,6 +1380,88 @@ html[data-theme="light"] .catalog-panel {
margin-top: 15px;
line-height: 1.8;
}
+/* Installation method: a persistent choice, styled like the profile options. */
+.method-choice {
+ display: grid;
+ gap: var(--space-2);
+ min-width: 0;
+ margin: var(--space-4) 0 0;
+ padding: 0;
+ border: 0;
+}
+.method-choice legend {
+ padding: 0;
+ margin-bottom: var(--space-2);
+ font-size: 13px;
+ font-weight: 650;
+}
+.method-option {
+ position: relative;
+ display: grid;
+ grid-template-columns: 20px minmax(0, 1fr);
+ column-gap: var(--space-3);
+ row-gap: 2px;
+ align-items: start;
+ padding: var(--space-3);
+ border: 1px solid var(--border);
+ border-radius: var(--radius-control);
+ background: var(--surface-soft);
+ cursor: pointer;
+}
+.method-option:hover {
+ border-color: var(--control-border);
+}
+.method-option:has(input:checked) {
+ border-color: var(--accent);
+ background: var(--tint);
+ box-shadow: inset 0 1px 0 var(--sheen);
+}
+.method-option:has(input:focus-visible) {
+ outline: 3px solid var(--accent);
+ outline-offset: 3px;
+}
+.method-option input {
+ position: absolute;
+ inset: 0;
+ width: 100%;
+ height: 100%;
+ margin: 0;
+ opacity: 0;
+ cursor: pointer;
+}
+.method-option > [data-icon] {
+ grid-column: 1;
+ grid-row: 1 / span 2;
+ display: flex;
+ padding-top: 1px;
+ color: var(--muted);
+}
+.method-option > [data-icon] svg {
+ width: 20px;
+ height: 20px;
+ stroke-width: 1.6;
+}
+.method-option:has(input:checked) > [data-icon] {
+ color: var(--accent);
+}
+.method-name,
+.method-description {
+ grid-column: 2;
+ min-width: 0;
+}
+.method-name {
+ font-size: 13px;
+ font-weight: 650;
+ line-height: 1.4;
+}
+.method-description {
+ font-size: 11px;
+ line-height: 1.55;
+ color: var(--muted);
+}
+.method-option:has(input:checked) .method-description {
+ color: var(--ink);
+}
.guide-panel {
max-width: 990px;
margin: 0 auto;
@@ -1436,6 +1518,46 @@ html[data-theme="light"] .catalog-panel {
.command-box button {
flex-shrink: 0;
}
+.command-box code {
+ min-width: 0;
+}
+.command-box code span {
+ white-space: nowrap;
+}
+.handoff-steps a.text-button {
+ display: inline-flex;
+ align-items: center;
+ text-decoration: none;
+}
+.handoff-steps .command-meta {
+ margin-top: var(--space-2);
+ font-size: 12px;
+}
+.not-included {
+ padding-top: var(--space-6);
+ border-top: 1px solid var(--border);
+}
+.not-included > p {
+ margin-top: var(--space-2);
+ font-size: 13px;
+ line-height: 1.8;
+ color: var(--muted);
+}
+.not-included-list {
+ display: flex;
+ flex-wrap: wrap;
+ gap: var(--space-2);
+ margin: var(--space-3) 0 var(--space-2);
+ padding: 0;
+ list-style: none;
+}
+.not-included-list li {
+ padding: var(--space-1) var(--space-3);
+ border: 1px solid var(--border);
+ border-radius: var(--radius-action);
+ background: var(--surface-soft);
+ font-size: 12px;
+}
.progress-layout {
display: grid;
grid-template-columns: minmax(0, 1fr) 350px;
diff --git a/docs/index.html b/docs/index.html
index a5ac0e6..08e6e3a 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -108,7 +108,8 @@
2Review your setup
- 3Guided installation
+ 3Guided installation
@@ -261,6 +262,44 @@
Ready when you are.
Download your plan, then open the local companion on your
Mac for a guided installation.
+ Open Terminal (⌘ Space, then “Terminal”), paste this
+ command and press Return.
+
+
+
+
+
+
+ This selection has no Homebrew apps or tools. Go back to
+ add some, or use the guided setup.
+
+
+
+
+ 3
+
+
Add your App Store apps
+
+ Optional. Sign in to the App Store first, then run this
+ after the command above. Free apps are added to your Apple
+ Account; paid apps need an existing purchase. Terminal may
+ ask for your Mac password.
+
+
+
+
+
+
+
+
+
Not in these commands
+
These choices need the guided setup, or your own steps: