@basaltkit/deploy-ui 0.2.2 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/page.d.ts CHANGED
@@ -3,5 +3,5 @@
3
3
  * markup): no inline script, no inline style — the CSP allows neither. The
4
4
  * one module script is `/client/main.js`, compiled by tsc from `src/client`.
5
5
  */
6
- export declare const INDEX_HTML = "<!doctype html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<meta name=\"referrer\" content=\"no-referrer\">\n<meta name=\"color-scheme\" content=\"light dark\">\n<title>Basalt deploy</title>\n<link rel=\"stylesheet\" href=\"/app.css\">\n<script type=\"module\" src=\"/client/main.js\"></script>\n</head>\n<body>\n<div class=\"shell\">\n<aside class=\"sidebar\">\n <h1 class=\"brand\">\n <svg class=\"brand-mark\" viewBox=\"40 40 120 120\" width=\"28\" height=\"28\" aria-hidden=\"true\" focusable=\"false\">\n <g stroke=\"#0B0E13\" stroke-width=\"3\" stroke-linejoin=\"round\">\n <polygon points=\"52.37,72.5 100,45 147.63,72.5 100,100\" fill=\"#8B9AA7\"/>\n <polygon points=\"52.37,72.5 100,100 100,155 52.37,127.5\" fill=\"#2C3843\"/>\n <polygon points=\"100,100 147.63,72.5 147.63,127.5 100,155\" fill=\"#FF5A1F\"/>\n </g>\n <line x1=\"100\" y1=\"100\" x2=\"100\" y2=\"155\" stroke=\"#FFB347\" stroke-width=\"4\" stroke-linecap=\"round\"/>\n </svg>\n <span class=\"brand-text\"><span class=\"brand-name\">Basalt</span> <span class=\"brand-sub\">Deploy</span></span>\n </h1>\n <nav id=\"nav\" class=\"nav\" aria-label=\"Screens\"></nav>\n <div class=\"sidebar-foot\">\n <p class=\"local-note\" title=\"Local only: this page talks to 127.0.0.1, which talks to your servers over your own ssh.\">\n <svg class=\"icon\" viewBox=\"0 0 24 24\" width=\"14\" height=\"14\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.75\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M6 11h12v10H6zM8 11V7a4 4 0 0 1 8 0v4\"/></svg>\n <span>Local only <span aria-hidden=\"true\">\u00B7</span> <span class=\"mono\">127.0.0.1</span></span>\n </p>\n <div id=\"session\" class=\"session\"></div>\n </div>\n</aside>\n<div class=\"main-col\">\n <div id=\"target-bar\" class=\"target-bar\" aria-live=\"polite\"></div>\n <main id=\"app\" class=\"app\">\n <p class=\"muted\">Starting\u2026</p>\n <noscript><p>This UI needs JavaScript (its own module only; nothing is loaded from elsewhere).</p></noscript>\n </main>\n</div>\n</div>\n</body>\n</html>\n";
7
- export declare const APP_CSS = "/* Basalt deploy: an operations console. Graphite neutrals, one molten accent used sparingly. */\n:root {\n color-scheme: light dark;\n --font-sans: system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif;\n --font-mono: ui-monospace, SFMono-Regular, \"SF Mono\", Menlo, Consolas, \"Liberation Mono\", monospace;\n --fs-xs: 11px; --fs-sm: 12px; --fs-md: 13px; --fs-base: 14px; --fs-lg: 16px; --fs-xl: 20px;\n --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px;\n --radius: 8px; --radius-sm: 6px; --radius-xs: 4px;\n --control-h: 32px;\n --sidebar-w: 240px;\n\n --bg: #f5f6f8;\n --surface: #ffffff;\n --surface-2: #f9fafb;\n --surface-3: #f0f2f5;\n --border: #e2e6eb;\n --border-strong: #cdd3da;\n --text: #0f141a;\n --text-2: #2c3843;\n --muted: #5b6672;\n --faint: #8a949f;\n\n --molten: #ff5a1f;\n --accent-text: #b93a0a;\n --accent-soft: #fff1ea;\n --primary-bg: #c93f0b;\n --primary-bg-hover: #b23708;\n --primary-fg: #ffffff;\n\n --ok: #157f3b; --ok-soft: #e8f5ec; --ok-line: #b7dfc4;\n --warn: #9a6200; --warn-soft: #fdf4e1; --warn-line: #f0d39a;\n --err: #c4271d; --err-soft: #fdecea; --err-line: #f3bdb8;\n --info: #44546a; --info-soft: #eef1f5; --info-line: #cfd7e1;\n --protected-bg: #b42318; --protected-fg: #ffffff;\n\n --term-bg: #0d1117; --term-border: #0d1117; --term-fg: #c9d1d9; --term-muted: #8b949e; --term-ts: #7d8590;\n --term-warn: #e3b341; --term-err: #ff7b72; --term-ok: #56d364; --term-warn-bg: rgb(227 179 65 / 0.08); --term-err-bg: rgb(255 123 114 / 0.10);\n\n --shadow-sm: 0 1px 2px rgb(15 20 26 / 0.05);\n --shadow-md: 0 1px 2px rgb(15 20 26 / 0.06), 0 4px 12px rgb(15 20 26 / 0.06);\n --shadow-lg: 0 2px 6px rgb(15 20 26 / 0.08), 0 24px 48px rgb(15 20 26 / 0.18);\n --focus: 0 0 0 2px var(--surface), 0 0 0 4px var(--molten);\n}\n@media (prefers-color-scheme: dark) {\n :root {\n --bg: #0b0e13;\n --surface: #121820;\n --surface-2: #0f141b;\n --surface-3: #18202a;\n --border: #232c36;\n --border-strong: #2f3a46;\n --text: #e6eaef;\n --text-2: #c3cad3;\n --muted: #95a1ae;\n --faint: #6b7784;\n\n --accent-text: #ff8a5c;\n --accent-soft: rgb(255 90 31 / 0.12);\n --primary-bg: #ff5a1f;\n --primary-bg-hover: #ff7340;\n --primary-fg: #0b0e13;\n\n --ok: #3fcf79; --ok-soft: rgb(63 207 121 / 0.10); --ok-line: rgb(63 207 121 / 0.32);\n --warn: #f2b13d; --warn-soft: rgb(242 177 61 / 0.10); --warn-line: rgb(242 177 61 / 0.32);\n --err: #ff6b5e; --err-soft: rgb(255 107 94 / 0.10); --err-line: rgb(255 107 94 / 0.34);\n --info: #9aa8b8; --info-soft: rgb(154 168 184 / 0.10); --info-line: rgb(154 168 184 / 0.28);\n --protected-bg: #b42318; --protected-fg: #ffffff;\n\n --term-bg: #07090c; --term-border: #232c36;\n\n --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);\n --shadow-md: 0 1px 2px rgb(0 0 0 / 0.4), 0 4px 12px rgb(0 0 0 / 0.3);\n --shadow-lg: 0 2px 6px rgb(0 0 0 / 0.5), 0 24px 48px rgb(0 0 0 / 0.55);\n }\n}\n\n/* Base */\n*, *::before, *::after { box-sizing: border-box; }\nhtml, body { margin: 0; background: var(--bg); color: var(--text); }\nbody { font: var(--fs-base)/20px var(--font-sans); -webkit-font-smoothing: antialiased; font-feature-settings: \"cv11\", \"ss01\"; text-rendering: optimizeLegibility; }\nh1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }\nh2 { font-size: var(--fs-xl); line-height: 28px; letter-spacing: -0.015em; }\nh3 { font-size: var(--fs-base); line-height: 20px; }\np { margin: 0; }\np + p { margin-top: var(--sp-2); }\na { color: var(--accent-text); }\n.muted { color: var(--muted); }\n.mono, code, kbd, pre { font-family: var(--font-mono); font-size: 12.5px; }\ncode { background: var(--surface-3); border: 1px solid var(--border); padding: 0 5px; border-radius: var(--radius-xs); overflow-wrap: anywhere; color: var(--text-2); line-height: 18px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }\n.num, time { font-variant-numeric: tabular-nums; }\n.section-label { display: block; font-size: var(--fs-xs); line-height: 16px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }\n.hidden { display: none !important; }\n.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }\n::selection { background: rgb(255 90 31 / 0.22); }\n\n/* Shell */\n.shell { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; background: linear-gradient(to right, var(--surface) calc(var(--sidebar-w) - 1px), var(--border) calc(var(--sidebar-w) - 1px) var(--sidebar-w), transparent var(--sidebar-w)); }\n.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: var(--sp-5); padding: var(--sp-4) var(--sp-3); background: var(--surface); border-right: 1px solid var(--border); overflow-y: auto; }\n.brand { display: flex; align-items: center; gap: 10px; padding: var(--sp-1) var(--sp-2); font-size: var(--fs-base); }\n.brand-mark { flex: none; }\n.brand-text { display: flex; flex-direction: column; line-height: 1.15; }\n.brand-name { font-size: 15px; font-weight: 650; letter-spacing: -0.02em; }\n.brand-sub { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }\n.nav { display: flex; flex-direction: column; gap: var(--sp-5); }\n.nav-target { display: grid; gap: 6px; padding: 0 var(--sp-2); }\n.nav-target .section-label { padding: 0; }\n.nav-list { display: flex; flex-direction: column; gap: 2px; }\n.nav .nav-item { display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; padding: 0 10px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--muted); font-weight: 500; text-align: left; justify-content: flex-start; position: relative; box-shadow: none; }\n.nav .nav-item .icon { color: var(--faint); }\n.nav .nav-item:hover { background: var(--surface-3); color: var(--text); border-color: transparent; }\n.nav .nav-item:hover .icon { color: var(--text-2); }\n.nav .nav-item[aria-current=\"page\"] { background: var(--surface-3); color: var(--text); font-weight: 600; }\n.nav .nav-item[aria-current=\"page\"] .icon { color: var(--molten); }\n.nav .nav-item[aria-current=\"page\"]::before { content: \"\"; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--molten); }\n.sidebar-foot { margin-top: auto; display: grid; gap: var(--sp-3); padding: var(--sp-3) var(--sp-2) 0; border-top: 1px solid var(--border); }\n.local-note { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--muted); }\n.local-note .mono { font-size: var(--fs-sm); }\n.session:empty { display: none; }\n.session button { width: 100%; justify-content: flex-start; }\n\n.main-col { min-width: 0; display: flex; flex-direction: column; }\n.app { width: 100%; max-width: 1200px; padding: var(--sp-5) var(--sp-6) var(--sp-7); }\n.app > section > * + * { margin-top: var(--sp-4); }\n\n/* Context strip: which target every screen acts on */\n.target-bar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--sp-3); min-height: 52px; padding: 10px var(--sp-6); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--border); font-size: var(--fs-md); }\n.target-bar:empty { display: none; }\n.target-bar.is-protected { box-shadow: inset 0 3px 0 var(--protected-bg); }\n.ctx-target { display: inline-flex; align-items: center; gap: var(--sp-2); }\n.ctx-name { font-size: var(--fs-base); font-weight: 600; letter-spacing: -0.01em; }\n.ctx-sep { display: inline-block; width: 1px; height: 16px; background: var(--border-strong); font-size: 0; line-height: 0; overflow: hidden; color: transparent; }\n.ctx-item { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); min-width: 0; }\n.ctx-item .icon { color: var(--faint); flex: none; }\n.ctx-label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }\n.ctx-val { font-family: var(--font-mono); font-size: 12.5px; color: var(--text); overflow-wrap: anywhere; }\n.badge { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 650; letter-spacing: 0.05em; line-height: 1; white-space: nowrap; }\n.badge .icon { width: 12px; height: 12px; }\n.badge-protected { background: var(--protected-bg); color: var(--protected-fg); box-shadow: 0 0 0 3px rgb(180 35 24 / 0.16); }\n.badge-neutral { background: var(--surface-3); color: var(--muted); border: 1px solid var(--border); }\n\n/* Page header */\n.page-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--sp-3) var(--sp-4); padding-bottom: var(--sp-4); margin-bottom: var(--sp-5); border-bottom: 1px solid var(--border); }\n.app > section > .page-head + * { margin-top: 0; }\n.page-title { min-width: 0; display: grid; gap: var(--sp-1); }\n.page-title h2 { overflow-wrap: anywhere; }\n.page-title h2.mono-title { font-family: var(--font-mono); font-size: 18px; letter-spacing: -0.01em; font-weight: 600; }\n.page-sub { color: var(--muted); max-width: 72ch; }\n.page-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }\n\n/* Buttons */\nbutton, .button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: var(--control-h); padding: 0 12px; font: 500 var(--fs-base)/1 var(--font-sans); white-space: nowrap; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; box-shadow: var(--shadow-sm); transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, box-shadow 120ms ease; }\nbutton:hover { background: var(--surface-3); border-color: var(--border-strong); }\nbutton:active { transform: translateY(0.5px); }\nbutton:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: none; box-shadow: var(--focus); }\nbutton .icon { flex: none; }\nbutton.primary { background: var(--primary-bg); border-color: var(--primary-bg); color: var(--primary-fg); font-weight: 600; box-shadow: var(--shadow-sm), inset 0 1px 0 rgb(255 255 255 / 0.12); }\nbutton.primary:hover { background: var(--primary-bg-hover); border-color: var(--primary-bg-hover); }\nbutton.danger { color: var(--err); border-color: var(--err-line); background: var(--surface); }\nbutton.danger:hover { background: var(--err-soft); border-color: var(--err); }\ndialog.is-danger button.danger, button.danger.solid { background: var(--err); border-color: var(--err); color: #ffffff; font-weight: 600; }\ndialog.is-danger button.danger:hover, button.danger.solid:hover { filter: brightness(0.94); }\n@media (prefers-color-scheme: dark) { dialog.is-danger button.danger, button.danger.solid { background: #d92d20; border-color: #d92d20; } }\nbutton.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--muted); }\nbutton.ghost:hover { background: var(--surface-3); color: var(--text); }\nbutton.ghost.danger { color: var(--err); }\nbutton.ghost.danger:hover { background: var(--err-soft); }\nbutton.sm { height: 28px; padding: 0 10px; font-size: var(--fs-md); }\nbutton:disabled, button:disabled:hover { opacity: 0.5; cursor: not-allowed; filter: none; transform: none; }\n.row { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }\n.actions-end { justify-content: flex-end; }\n\n/* Cards */\n.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); min-width: 0; }\n.card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: 48px; padding: var(--sp-2) var(--sp-4); border-bottom: 1px solid var(--border); }\n.card-head h3 { font-size: var(--fs-base); }\n.card-actions { display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; }\n.card-body { padding: var(--sp-4); min-width: 0; }\n.card-body > * + * { margin-top: var(--sp-3); }\n.card-body.flush { padding: 0; }\n.card-foot { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: flex-end; align-items: center; padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }\n.card.accent { border-color: var(--accent-line, var(--border)); box-shadow: var(--shadow-sm), inset 3px 0 0 var(--molten); }\n.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }\n.lead { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }\n.lead .mono { font-size: 13px; color: var(--text); }\n\n/* Key/value */\n.kv { display: grid; gap: 0; }\ndl { margin: 0; }\n.kv-row { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: var(--sp-3); padding: 7px 0; border-top: 1px solid var(--border); align-items: baseline; }\n.kv-row:first-child { border-top: 0; padding-top: 0; }\n.kv-row:last-child { padding-bottom: 0; }\n.kv dt { color: var(--muted); font-size: var(--fs-md); }\n.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }\n\n/* Pills and badges */\n.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: var(--fs-sm); font-weight: 600; line-height: 1; white-space: nowrap; border: 1px solid; vertical-align: middle; }\n.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }\n.pill-ok { color: var(--ok); background: var(--ok-soft); border-color: var(--ok-line); }\n.pill-warn { color: var(--warn); background: var(--warn-soft); border-color: var(--warn-line); }\n.pill-err { color: var(--err); background: var(--err-soft); border-color: var(--err-line); }\n.pill-info { color: var(--info); background: var(--info-soft); border-color: var(--info-line); }\n.pill-skip { color: var(--muted); background: var(--surface-3); border-color: var(--border); }\n.pill-run { color: var(--accent-text); background: var(--accent-soft); border-color: rgb(255 90 31 / 0.35); }\n.pill-run .dot { animation: pulse 1.4s ease-in-out infinite; }\n.status-ok { color: var(--ok); }\n.status-warn { color: var(--warn); }\n.status-err { color: var(--err); }\n\n/* Tables */\n.table-wrap { overflow-x: auto; max-width: 100%; }\n.card > .table-wrap { border-radius: 0 0 var(--radius) var(--radius); }\ntable { border-collapse: separate; border-spacing: 0; width: 100%; font-size: var(--fs-base); }\nth, td { text-align: left; padding: 10px var(--sp-4); border-bottom: 1px solid var(--border); vertical-align: middle; }\nthead th { position: sticky; top: 0; z-index: 1; background: var(--surface-2); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding-top: 8px; padding-bottom: 8px; white-space: nowrap; }\ntbody tr:last-child > * { border-bottom: 0; }\ntbody tr:hover > * { background: var(--surface-2); }\ntd.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }\ntd.nowrap, th.nowrap { white-space: nowrap; }\ntd.wrap { overflow-wrap: anywhere; min-width: 20ch; }\ntd.mono { color: var(--text-2); }\ntd .row { flex-wrap: nowrap; justify-content: flex-end; }\n.plan-lines th { width: 1%; white-space: nowrap; font-weight: 500; }\n.plan-lines tbody th { background: transparent; }\n.step-chip { display: inline-block; padding: 1px 7px; border-radius: var(--radius-xs); background: var(--surface-3); border: 1px solid var(--border); font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--text-2); }\n.plan-lines td { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-2); overflow-wrap: anywhere; }\n\n/* Forms */\n.field { display: grid; gap: 6px; }\n.field + .field { margin-top: var(--sp-4); }\n.field > label { font-size: var(--fs-md); font-weight: 600; color: var(--text); }\n.field-key { font-family: var(--font-mono); font-size: var(--fs-sm); font-weight: 400; color: var(--muted); }\n.field-help, .field > .muted { font-size: var(--fs-sm); color: var(--muted); }\n.field-error { color: var(--err); font-size: var(--fs-sm); }\n.field-error:empty { display: none; }\n.required { color: var(--err); }\ninput[type=\"text\"], input[type=\"password\"], input[type=\"number\"], select { font: var(--fs-base)/1 var(--font-sans); height: var(--control-h); padding: 0 10px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); width: 100%; max-width: 32rem; box-shadow: var(--shadow-sm); transition: border-color 120ms ease, box-shadow 120ms ease; }\ninput[type=\"password\"], input#confirm-name, .field input[spellcheck=\"false\"][type=\"text\"] { font-family: var(--font-mono); font-size: 13px; }\ninput:hover, select:hover { border-color: var(--faint); }\ninput:focus-visible, select:focus-visible { border-color: var(--molten); }\ninput[aria-invalid=\"true\"] { border-color: var(--err); }\nselect { appearance: none; padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 15px) 14px, calc(100% - 10px) 14px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }\ninput[type=\"checkbox\"] { width: 16px; height: 16px; margin: 0; accent-color: var(--primary-bg); flex: none; }\n.check > label, label.check { display: flex; align-items: flex-start; gap: var(--sp-2); font-weight: 500; font-size: var(--fs-base); line-height: 20px; cursor: pointer; }\n.check input[type=\"checkbox\"] { margin-top: 2px; }\n.form-section + .form-section { margin-top: var(--sp-5); padding-top: var(--sp-5); border-top: 1px solid var(--border); }\n.form-note { font-size: var(--fs-md); color: var(--muted); display: flex; gap: var(--sp-2); align-items: flex-start; }\n.form-note .icon { margin-top: 2px; color: var(--faint); flex: none; }\n\n.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4) var(--sp-5); }\n.form-grid > .field + .field { margin-top: 0; }\n.form-grid input[type=\"text\"], .form-grid input[type=\"number\"] { max-width: none; }\n.span-2 { grid-column: 1 / -1; }\n.target-name { font-weight: 600; }\n.card-body > [aria-live]:empty { display: none; }\n\n/* Disclosures */\ndetails > summary { cursor: pointer; color: var(--muted); font-size: var(--fs-md); font-weight: 500; width: fit-content; border-radius: var(--radius-xs); list-style-position: inside; }\ndetails > summary:hover { color: var(--text); }\ndetails[open] > summary { margin-bottom: var(--sp-2); }\n.advanced { margin-top: var(--sp-3); }\n.form-section > .advanced:first-child { margin-top: 0; }\n.form-section + .form-section:has(> .advanced:first-child) { padding-top: var(--sp-4); margin-top: var(--sp-4); }\n.advanced[open] { padding: var(--sp-3); border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }\n.diagnostics { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font-mono); font-size: var(--fs-sm); line-height: 18px; margin: 0; padding: 10px var(--sp-3); background: var(--surface-3); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-2); max-height: 40vh; overflow-y: auto; }\n\n/* Banners */\n.banner { display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-3) var(--sp-4); border: 1px solid var(--info-line); border-left-width: 3px; border-radius: var(--radius); background: var(--info-soft); color: var(--text); }\n.banner-icon { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--info); }\n.banner-body { min-width: 0; flex: 1; overflow-wrap: anywhere; }\n.banner-body > p { margin-top: 4px; color: var(--text-2); }\n.banner-body > details { margin-top: var(--sp-2); }\n.banner-title { font-weight: 600; }\n.banner-code { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--muted); }\n.banner.ok { border-color: var(--ok-line); border-left-color: var(--ok); background: var(--ok-soft); }\n.banner.ok .banner-icon { color: var(--ok); }\n.banner.warn { border-color: var(--warn-line); border-left-color: var(--warn); background: var(--warn-soft); }\n.banner.warn .banner-icon { color: var(--warn); }\n.banner.err { border-color: var(--err-line); border-left-color: var(--err); background: var(--err-soft); }\n.banner.err .banner-icon { color: var(--err); }\n.banner + .banner { margin-top: var(--sp-2); }\n\n/* Findings */\n.findings { list-style: none; margin: 0; padding: 0; }\n.finding { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--sp-3); row-gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--border); align-items: baseline; }\n.finding:first-child { border-top: 0; }\n.finding-msg { min-width: 0; overflow-wrap: anywhere; }\n.finding-id { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--muted); margin-right: 6px; }\n.sev { display: inline-flex; align-items: center; justify-content: center; min-width: 84px; height: 20px; padding: 0 7px; border-radius: var(--radius-xs); font-size: var(--fs-xs); font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase; border: 1px solid; }\n.sev-error { color: var(--err); background: var(--err-soft); border-color: var(--err-line); }\n.sev-warning { color: var(--warn); background: var(--warn-soft); border-color: var(--warn-line); }\n.fix { grid-column: 2; display: flex; align-items: baseline; gap: var(--sp-2); padding: 6px 10px; background: var(--surface-3); border: 1px solid var(--border); border-left: 2px solid var(--faint); border-radius: var(--radius-xs); min-width: 0; }\n.fix-label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); flex: none; }\n.fix code { background: none; border: 0; padding: 0; user-select: all; }\n\n/* Empty states */\n.empty { display: grid; justify-items: center; text-align: center; gap: 6px; padding: var(--sp-7) var(--sp-4); border: 1px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface); }\n.empty-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--surface-3); border: 1px solid var(--border); color: var(--muted); margin-bottom: var(--sp-2); }\n.empty-icon .icon { width: 20px; height: 20px; }\n.empty-title { font-weight: 600; font-size: var(--fs-lg); line-height: 24px; }\n.empty-text { color: var(--muted); max-width: 52ch; }\n.empty .row { margin-top: var(--sp-3); justify-content: center; }\n.stopped { max-width: 560px; margin: var(--sp-7) 0 0; }\n.stopped .banner { margin-top: var(--sp-4); text-align: left; }\n\n/* Dialogs */\ndialog { padding: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); width: min(32rem, calc(100vw - 32px)); max-width: none; box-shadow: var(--shadow-lg); }\ndialog::backdrop { background: rgb(11 14 19 / 0.55); backdrop-filter: blur(2px); }\ndialog[open] { animation: rise 160ms ease-out; }\n.dialog-head { display: flex; gap: var(--sp-3); align-items: flex-start; padding: 20px 20px 0; }\n.dialog-head h2 { font-size: var(--fs-lg); line-height: 24px; overflow-wrap: anywhere; }\n.dialog-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; flex: none; background: var(--accent-soft); color: var(--accent-text); }\n.dialog-icon .icon { width: 18px; height: 18px; }\ndialog.is-danger { border-top: 3px solid var(--err); }\ndialog.is-danger .dialog-icon { background: var(--err-soft); color: var(--err); }\n.dialog-body { padding: var(--sp-3) 20px 20px 64px; color: var(--text-2); overflow-wrap: anywhere; }\n.dialog-body > p + p { margin-top: var(--sp-2); }\n.dialog-context { font-family: var(--font-mono); font-size: 12.5px; color: var(--text); background: var(--surface-3); border: 1px solid var(--border); border-radius: var(--radius-xs); padding: 6px 10px; }\n.dialog-protected { display: flex; align-items: center; gap: var(--sp-2); color: var(--err); font-weight: 500; }\n.dialog-body .field { margin-top: var(--sp-4); }\n.dialog-body .field > label { font-weight: 500; color: var(--text-2); }\n.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--sp-2); padding: var(--sp-3) 20px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 12px 12px; }\n\n/* Run: the step timeline */\n.run-state { display: flex; align-items: center; gap: var(--sp-2); width: fit-content; max-width: 100%; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-2); font-size: var(--fs-md); box-shadow: var(--shadow-sm); overflow-wrap: anywhere; }\n.run-state::before { content: \"\"; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }\n.run-state.is-live::before { background: var(--molten); animation: pulse 1.4s ease-in-out infinite; }\n.run-state.is-ok::before { background: var(--ok); }\n.run-state.is-err::before { background: var(--err); }\n.run-state:empty { display: none; }\n.run-grid { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: var(--sp-4); align-items: start; }\n.run-outcome:empty, .run-findings:empty { display: none; }\n.steps { list-style: none; padding: 0; margin: 0; }\n.steps:empty::before { content: \"Waiting for the first step\u2026\"; display: block; color: var(--muted); font-size: var(--fs-md); }\n.step { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; column-gap: 10px; align-items: center; min-height: 32px; padding: 6px 0; }\n.step:not(:last-child)::after { content: \"\"; position: absolute; left: 9.5px; top: 28px; bottom: -6px; width: 1px; background: var(--border-strong); }\n.step.is-ok:not(:last-child)::after { background: var(--ok); opacity: 0.45; }\n.step-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 11px; font-weight: 700; line-height: 1; border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--muted); }\n.step.is-ok .step-icon { background: var(--ok); border-color: var(--ok); color: var(--surface); }\n.step.is-failed .step-icon { background: var(--err); border-color: var(--err); color: var(--surface); }\n.step.is-skipped .step-icon { background: var(--surface-3); border-color: var(--border-strong); color: var(--muted); }\n.step.is-running .step-icon { color: transparent; border-color: var(--molten); border-right-color: transparent; animation: spin 0.9s linear infinite; }\n.step.is-aborted .step-icon { color: transparent; border-style: dashed; border-color: var(--warn); }\n.step.is-aborted .step-icon::after { content: \"\"; position: absolute; inset: 5px; border-radius: 2px; background: var(--warn); }\n.step-title { font-weight: 500; min-width: 0; overflow-wrap: anywhere; }\n.step.is-running .step-title { font-weight: 600; }\n.step.is-skipped .step-title { color: var(--muted); }\n.step-meta { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; }\n.step-status { text-transform: lowercase; }\n.step.is-failed .step-status { color: var(--err); font-weight: 600; }\n.step.is-running .step-status { color: var(--accent-text); font-weight: 600; }\n.step.is-aborted .step-status { color: var(--warn); font-weight: 600; }\n.step-dur { font-family: var(--font-mono); font-variant-numeric: tabular-nums; min-width: 6ch; text-align: right; color: var(--text-2); }\n\n/* Run: the log console (a terminal in both themes) */\n.console { background: var(--term-bg); border: 1px solid var(--term-border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); min-width: 0; }\n.console-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); height: 40px; padding: 0 var(--sp-4); border-bottom: 1px solid rgb(255 255 255 / 0.08); color: var(--term-muted); }\n.console-head h3 { color: #e6edf3; font-size: var(--fs-md); display: flex; align-items: center; gap: var(--sp-2); }\n.console-head .icon { color: var(--term-muted); }\n.console-meta { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--term-muted); }\n.log { list-style: none; margin: 0; padding: 10px 0; max-height: 60vh; min-height: 120px; overflow-y: auto; color: var(--term-fg); font-family: var(--font-mono); font-size: 12.5px; line-height: 20px; white-space: pre-wrap; overflow-wrap: anywhere; scrollbar-color: #30363d transparent; }\n.log li { position: relative; padding: 0 var(--sp-4) 0 calc(var(--sp-4) + 10ch); }\n.log li::before { content: attr(data-ts); position: absolute; left: var(--sp-4); width: 9ch; color: var(--term-ts); font-variant-numeric: tabular-nums; }\n.log li:hover { background: rgb(255 255 255 / 0.03); }\n.log .src { color: var(--term-muted); }\n.log li.src { font-style: italic; }\n.log li.warn { color: var(--term-warn); background: var(--term-warn-bg); box-shadow: inset 2px 0 0 var(--term-warn); }\n.log li.error { color: var(--term-err); background: var(--term-err-bg); box-shadow: inset 2px 0 0 var(--term-err); }\n.log li.ok { color: var(--term-ok); }\n.log:empty::after { content: \"No output yet.\"; display: block; padding: 0 var(--sp-4); color: var(--term-muted); }\n\n@keyframes spin { to { transform: rotate(360deg); } }\n@keyframes pulse { 50% { opacity: 0.35; } }\n@keyframes rise { from { opacity: 0; transform: translateY(6px) scale(0.99); } }\n\n/* Responsive: below 900px the sidebar becomes a top bar */\n@media (max-width: 900px) {\n .shell { grid-template-columns: minmax(0, 1fr); background: none; }\n .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-right: 0; border-bottom: 1px solid var(--border); overflow: visible; }\n .brand { padding: 0; order: 1; }\n .sidebar-foot { order: 2; margin: 0 0 0 auto; padding: 0; border: 0; display: flex; align-items: center; gap: var(--sp-3); }\n .session button { width: auto; }\n .nav { order: 3; width: 100%; flex-direction: row; align-items: center; gap: var(--sp-3); min-width: 0; }\n .nav-target { padding: 0; display: flex; align-items: center; gap: var(--sp-2); flex: none; }\n .nav-target select { width: 10.5rem; }\n .nav-list { flex-direction: row; gap: 2px; overflow-x: auto; min-width: 0; scrollbar-width: none; }\n .nav .nav-item { width: auto; flex: none; }\n .nav .nav-item[aria-current=\"page\"]::before { left: 10px; right: 10px; top: auto; bottom: -12px; width: auto; height: 2px; border-radius: 2px 2px 0 0; }\n .target-bar { position: static; padding: 10px var(--sp-4); }\n .app { padding: var(--sp-5) var(--sp-4) var(--sp-7); }\n .run-grid { grid-template-columns: minmax(0, 1fr); }\n}\n@media (max-width: 640px) {\n .form-grid { grid-template-columns: minmax(0, 1fr); }\n .local-note > span { display: none; }\n .nav { flex-wrap: wrap; }\n .nav-target { width: 100%; }\n .nav-target select { width: 100%; max-width: none; }\n .nav-list { width: 100%; margin: 0 -4px; }\n .nav .nav-item[aria-current=\"page\"]::before { display: none; }\n .nav-list { gap: 0; justify-content: space-between; }\n .nav .nav-item { padding: 0 8px; font-size: var(--fs-md); height: 32px; }\n .nav .nav-item .icon { display: none; }\n .grid-2 { grid-template-columns: minmax(0, 1fr); }\n .kv-row { grid-template-columns: 96px minmax(0, 1fr); }\n .page-head { margin-bottom: var(--sp-4); }\n h2 { font-size: 18px; line-height: 24px; }\n th, td { padding: 8px var(--sp-3); }\n .card-head, .card-body { padding-left: var(--sp-3); padding-right: var(--sp-3); }\n .finding { grid-template-columns: minmax(0, 1fr); padding: var(--sp-3); }\n .fix { grid-column: 1; }\n .dialog-body { padding-left: 20px; }\n .log li { padding-left: var(--sp-3); }\n .log li::before { display: none; }\n .target-bar .ctx-sep { display: none; }\n}\n@media (prefers-reduced-motion: reduce) {\n *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }\n .step.is-running .step-icon { border-right-color: var(--molten); border-style: dotted; }\n}\n";
6
+ export declare const INDEX_HTML = "<!doctype html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<meta name=\"referrer\" content=\"no-referrer\">\n<meta name=\"color-scheme\" content=\"light dark\">\n<title>Basalt deploy</title>\n<link rel=\"stylesheet\" href=\"/app.css\">\n<script type=\"module\" src=\"/client/main.js\"></script>\n</head>\n<body>\n<div class=\"shell\">\n<aside class=\"sidebar\">\n <h1 class=\"brand\">\n <svg class=\"brand-mark\" viewBox=\"40 40 120 120\" width=\"28\" height=\"28\" aria-hidden=\"true\" focusable=\"false\">\n <g stroke=\"#0B0E13\" stroke-width=\"3\" stroke-linejoin=\"round\">\n <polygon points=\"52.37,72.5 100,45 147.63,72.5 100,100\" fill=\"#8B9AA7\"/>\n <polygon points=\"52.37,72.5 100,100 100,155 52.37,127.5\" fill=\"#2C3843\"/>\n <polygon points=\"100,100 147.63,72.5 147.63,127.5 100,155\" fill=\"#FF5A1F\"/>\n </g>\n <line x1=\"100\" y1=\"100\" x2=\"100\" y2=\"155\" stroke=\"#FFB347\" stroke-width=\"4\" stroke-linecap=\"round\"/>\n </svg>\n <span class=\"brand-text\"><span class=\"brand-name\">Basalt</span> <span class=\"brand-sub\">Deploy</span></span>\n </h1>\n <nav id=\"nav\" class=\"nav\" aria-label=\"Screens\"></nav>\n <div class=\"sidebar-foot\">\n <p class=\"local-note\" title=\"Local only: this page talks to 127.0.0.1, which talks to your servers over your own ssh.\">\n <svg class=\"icon\" viewBox=\"0 0 24 24\" width=\"14\" height=\"14\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.75\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M6 11h12v10H6zM8 11V7a4 4 0 0 1 8 0v4\"/></svg>\n <span><span class=\"local-label\">Local only</span> <span aria-hidden=\"true\">\u00B7</span> <span class=\"mono\">127.0.0.1</span></span>\n </p>\n <div id=\"session\" class=\"session\"></div>\n </div>\n</aside>\n<div class=\"main-col\">\n <div id=\"target-bar\" class=\"target-bar\" aria-live=\"polite\"></div>\n <main id=\"app\" class=\"app\">\n <p class=\"muted\">Starting\u2026</p>\n <noscript><p>This UI needs JavaScript (its own module only; nothing is loaded from elsewhere).</p></noscript>\n </main>\n</div>\n</div>\n</body>\n</html>\n";
7
+ export declare const APP_CSS = "/* Basalt deploy: an operations console. Graphite neutrals, one molten accent used sparingly. */\n:root {\n color-scheme: light dark;\n --font-sans: system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif;\n --font-mono: ui-monospace, SFMono-Regular, \"SF Mono\", Menlo, Consolas, \"Liberation Mono\", monospace;\n --fs-xs: 11px; --fs-sm: 12px; --fs-md: 13px; --fs-base: 14px; --fs-lg: 16px; --fs-xl: 20px;\n --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px;\n --radius: 8px; --radius-sm: 6px; --radius-xs: 4px;\n --control-h: 32px;\n --sidebar-w: 240px;\n\n --bg: #f5f6f8;\n --surface: #ffffff;\n --surface-2: #f9fafb;\n --surface-3: #f0f2f5;\n --border: #e2e6eb;\n --border-strong: #cdd3da;\n --text: #0f141a;\n --text-2: #2c3843;\n --muted: #5b6672;\n --faint: #8a949f;\n\n --molten: #ff5a1f;\n --accent-text: #b93a0a;\n --accent-soft: #fff1ea;\n --primary-bg: #c93f0b;\n --primary-bg-hover: #b23708;\n --primary-fg: #ffffff;\n\n --ok: #157f3b; --ok-soft: #e8f5ec; --ok-line: #b7dfc4;\n --warn: #9a6200; --warn-soft: #fdf4e1; --warn-line: #f0d39a;\n --err: #c4271d; --err-soft: #fdecea; --err-line: #f3bdb8;\n --info: #44546a; --info-soft: #eef1f5; --info-line: #cfd7e1;\n --protected-bg: #b42318; --protected-fg: #ffffff;\n\n --term-bg: #0d1117; --term-border: #0d1117; --term-fg: #c9d1d9; --term-muted: #8b949e; --term-ts: #7d8590;\n --term-warn: #e3b341; --term-err: #ff7b72; --term-ok: #56d364; --term-warn-bg: rgb(227 179 65 / 0.08); --term-err-bg: rgb(255 123 114 / 0.10);\n\n --shadow-sm: 0 1px 2px rgb(15 20 26 / 0.05);\n --shadow-md: 0 1px 2px rgb(15 20 26 / 0.06), 0 4px 12px rgb(15 20 26 / 0.06);\n --shadow-lg: 0 2px 6px rgb(15 20 26 / 0.08), 0 24px 48px rgb(15 20 26 / 0.18);\n --focus: 0 0 0 2px var(--surface), 0 0 0 4px var(--molten);\n}\n@media (prefers-color-scheme: dark) {\n :root {\n --bg: #0b0e13;\n --surface: #121820;\n --surface-2: #0f141b;\n --surface-3: #18202a;\n --border: #232c36;\n --border-strong: #2f3a46;\n --text: #e6eaef;\n --text-2: #c3cad3;\n --muted: #95a1ae;\n --faint: #6b7784;\n\n --accent-text: #ff8a5c;\n --accent-soft: rgb(255 90 31 / 0.12);\n --primary-bg: #ff5a1f;\n --primary-bg-hover: #ff7340;\n --primary-fg: #0b0e13;\n\n --ok: #3fcf79; --ok-soft: rgb(63 207 121 / 0.10); --ok-line: rgb(63 207 121 / 0.32);\n --warn: #f2b13d; --warn-soft: rgb(242 177 61 / 0.10); --warn-line: rgb(242 177 61 / 0.32);\n --err: #ff6b5e; --err-soft: rgb(255 107 94 / 0.10); --err-line: rgb(255 107 94 / 0.34);\n --info: #9aa8b8; --info-soft: rgb(154 168 184 / 0.10); --info-line: rgb(154 168 184 / 0.28);\n --protected-bg: #b42318; --protected-fg: #ffffff;\n\n --term-bg: #07090c; --term-border: #232c36;\n\n --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);\n --shadow-md: 0 1px 2px rgb(0 0 0 / 0.4), 0 4px 12px rgb(0 0 0 / 0.3);\n --shadow-lg: 0 2px 6px rgb(0 0 0 / 0.5), 0 24px 48px rgb(0 0 0 / 0.55);\n }\n}\n\n/* Base */\n*, *::before, *::after { box-sizing: border-box; }\nhtml, body { margin: 0; background: var(--bg); color: var(--text); }\nbody { font: var(--fs-base)/20px var(--font-sans); -webkit-font-smoothing: antialiased; font-feature-settings: \"cv11\", \"ss01\"; text-rendering: optimizeLegibility; }\nh1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }\nh2 { font-size: var(--fs-xl); line-height: 28px; letter-spacing: -0.015em; }\nh3 { font-size: var(--fs-base); line-height: 20px; }\np { margin: 0; }\np + p { margin-top: var(--sp-2); }\na { color: var(--accent-text); }\n.muted { color: var(--muted); }\n.mono, code, kbd, pre { font-family: var(--font-mono); font-size: 12.5px; }\ncode { background: var(--surface-3); border: 1px solid var(--border); padding: 0 5px; border-radius: var(--radius-xs); overflow-wrap: anywhere; color: var(--text-2); line-height: 18px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }\n.num, time { font-variant-numeric: tabular-nums; }\n.section-label { display: block; font-size: var(--fs-xs); line-height: 16px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }\n.hidden { display: none !important; }\n.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }\n::selection { background: rgb(255 90 31 / 0.22); }\n\n/* Shell */\n.shell { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; background: linear-gradient(to right, var(--surface) calc(var(--sidebar-w) - 1px), var(--border) calc(var(--sidebar-w) - 1px) var(--sidebar-w), transparent var(--sidebar-w)); }\n.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: var(--sp-5); padding: var(--sp-4) var(--sp-3); background: var(--surface); border-right: 1px solid var(--border); overflow-y: auto; }\n.brand { display: flex; align-items: center; gap: 10px; padding: var(--sp-1) var(--sp-2); font-size: var(--fs-base); }\n.brand-mark { flex: none; }\n.brand-text { display: flex; flex-direction: column; line-height: 1.15; }\n.brand-name { font-size: 15px; font-weight: 650; letter-spacing: -0.02em; }\n.brand-sub { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }\n.nav { display: flex; flex-direction: column; gap: var(--sp-5); }\n.nav-target { display: grid; gap: 6px; padding: 0 var(--sp-2); }\n.nav-target .section-label { padding: 0; }\n.nav-list { display: flex; flex-direction: column; gap: 2px; }\n.nav .nav-item { display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; padding: 0 10px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--muted); font-weight: 500; text-align: left; justify-content: flex-start; position: relative; box-shadow: none; }\n.nav .nav-item .icon { color: var(--faint); }\n.nav .nav-item:hover { background: var(--surface-3); color: var(--text); border-color: transparent; }\n.nav .nav-item:hover .icon { color: var(--text-2); }\n.nav .nav-item[aria-current=\"page\"] { background: var(--surface-3); color: var(--text); font-weight: 600; }\n.nav .nav-item[aria-current=\"page\"] .icon { color: var(--molten); }\n.nav .nav-item[aria-current=\"page\"]::before { content: \"\"; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--molten); }\n.sidebar-foot { margin-top: auto; display: grid; gap: var(--sp-3); padding: var(--sp-3) var(--sp-2) 0; border-top: 1px solid var(--border); }\n.local-note { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--muted); }\n.local-note .mono { font-size: var(--fs-sm); }\n.session:empty { display: none; }\n.session { display: grid; gap: var(--sp-2); }\n.session button { width: 100%; justify-content: flex-start; }\n.locale { position: relative; display: flex; align-items: center; }\n.locale .icon { position: absolute; left: 10px; color: var(--muted); pointer-events: none; }\n.locale select { height: 30px; padding-left: 32px; font-size: var(--fs-md); max-width: none; background-position: calc(100% - 15px) 12px, calc(100% - 10px) 12px; }\n\n.main-col { min-width: 0; display: flex; flex-direction: column; }\n.app { width: 100%; max-width: 1200px; padding: var(--sp-5) var(--sp-6) var(--sp-7); }\n.app > section > * + * { margin-top: var(--sp-4); }\n\n/* Context strip: which target every screen acts on */\n.target-bar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--sp-3); min-height: 52px; padding: 10px var(--sp-6); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--border); font-size: var(--fs-md); }\n.target-bar:empty { display: none; }\n.target-bar.is-protected { box-shadow: inset 0 3px 0 var(--protected-bg); }\n.ctx-target { display: inline-flex; align-items: center; gap: var(--sp-2); }\n.ctx-name { font-size: var(--fs-base); font-weight: 600; letter-spacing: -0.01em; }\n.ctx-sep { display: inline-block; width: 1px; height: 16px; background: var(--border-strong); font-size: 0; line-height: 0; overflow: hidden; color: transparent; }\n.ctx-item { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); min-width: 0; }\n.ctx-item .icon { color: var(--faint); flex: none; }\n.ctx-label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }\n.ctx-val { font-family: var(--font-mono); font-size: 12.5px; color: var(--text); overflow-wrap: anywhere; }\n.badge { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 650; letter-spacing: 0.05em; line-height: 1; white-space: nowrap; }\n.badge .icon { width: 12px; height: 12px; }\n.badge-protected { background: var(--protected-bg); color: var(--protected-fg); box-shadow: 0 0 0 3px rgb(180 35 24 / 0.16); }\n.badge-neutral { background: var(--surface-3); color: var(--muted); border: 1px solid var(--border); }\n\n/* Page header */\n.page-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--sp-3) var(--sp-4); padding-bottom: var(--sp-4); margin-bottom: var(--sp-5); border-bottom: 1px solid var(--border); }\n.app > section > .page-head + * { margin-top: 0; }\n.page-title { min-width: 0; display: grid; gap: var(--sp-1); }\n.page-title h2 { overflow-wrap: anywhere; }\n.page-title h2.mono-title { font-family: var(--font-mono); font-size: 18px; letter-spacing: -0.01em; font-weight: 600; }\n.page-sub { color: var(--muted); max-width: 72ch; }\n.page-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }\n\n/* Buttons */\nbutton, .button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: var(--control-h); padding: 0 12px; font: 500 var(--fs-base)/1 var(--font-sans); white-space: nowrap; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; box-shadow: var(--shadow-sm); transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, box-shadow 120ms ease; }\nbutton:hover { background: var(--surface-3); border-color: var(--border-strong); }\nbutton:active { transform: translateY(0.5px); }\nbutton:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: none; box-shadow: var(--focus); }\nbutton .icon { flex: none; }\nbutton.primary { background: var(--primary-bg); border-color: var(--primary-bg); color: var(--primary-fg); font-weight: 600; box-shadow: var(--shadow-sm), inset 0 1px 0 rgb(255 255 255 / 0.12); }\nbutton.primary:hover { background: var(--primary-bg-hover); border-color: var(--primary-bg-hover); }\nbutton.danger { color: var(--err); border-color: var(--err-line); background: var(--surface); }\nbutton.danger:hover { background: var(--err-soft); border-color: var(--err); }\ndialog.is-danger button.danger, button.danger.solid { background: var(--err); border-color: var(--err); color: #ffffff; font-weight: 600; }\ndialog.is-danger button.danger:hover, button.danger.solid:hover { filter: brightness(0.94); }\n@media (prefers-color-scheme: dark) { dialog.is-danger button.danger, button.danger.solid { background: #d92d20; border-color: #d92d20; } }\nbutton.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--muted); }\nbutton.ghost:hover { background: var(--surface-3); color: var(--text); }\nbutton.ghost.danger { color: var(--err); }\nbutton.ghost.danger:hover { background: var(--err-soft); }\nbutton.sm { height: 28px; padding: 0 10px; font-size: var(--fs-md); }\nbutton:disabled, button:disabled:hover { opacity: 0.5; cursor: not-allowed; filter: none; transform: none; }\n.row { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }\n.actions-end { justify-content: flex-end; }\n\n/* Cards */\n.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); min-width: 0; }\n.card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: 48px; padding: var(--sp-2) var(--sp-4); border-bottom: 1px solid var(--border); }\n.card-head h3 { font-size: var(--fs-base); }\n.card-actions { display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; }\n.card-body { padding: var(--sp-4); min-width: 0; }\n.card-body > * + * { margin-top: var(--sp-3); }\n.card-body.flush { padding: 0; }\n.card-foot { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: flex-end; align-items: center; padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }\n.card.accent { border-color: var(--accent-line, var(--border)); box-shadow: var(--shadow-sm), inset 3px 0 0 var(--molten); }\n.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }\n.lead { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }\n.lead .mono { font-size: 13px; color: var(--text); }\n\n/* Key/value */\n.kv { display: grid; gap: 0; }\ndl { margin: 0; }\n.kv-row { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: var(--sp-3); padding: 7px 0; border-top: 1px solid var(--border); align-items: baseline; }\n.kv-row:first-child { border-top: 0; padding-top: 0; }\n.kv-row:last-child { padding-bottom: 0; }\n.kv dt { color: var(--muted); font-size: var(--fs-md); }\n.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }\n\n/* Pills and badges */\n.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: var(--fs-sm); font-weight: 600; line-height: 1; white-space: nowrap; border: 1px solid; vertical-align: middle; }\n.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }\n.pill-ok { color: var(--ok); background: var(--ok-soft); border-color: var(--ok-line); }\n.pill-warn { color: var(--warn); background: var(--warn-soft); border-color: var(--warn-line); }\n.pill-err { color: var(--err); background: var(--err-soft); border-color: var(--err-line); }\n.pill-info { color: var(--info); background: var(--info-soft); border-color: var(--info-line); }\n.pill-skip { color: var(--muted); background: var(--surface-3); border-color: var(--border); }\n.pill-run { color: var(--accent-text); background: var(--accent-soft); border-color: rgb(255 90 31 / 0.35); }\n.pill-run .dot { animation: pulse 1.4s ease-in-out infinite; }\n.status-ok { color: var(--ok); }\n.status-warn { color: var(--warn); }\n.status-err { color: var(--err); }\n\n/* Tables */\n.table-wrap { overflow-x: auto; max-width: 100%; }\n.card > .table-wrap { border-radius: 0 0 var(--radius) var(--radius); }\ntable { border-collapse: separate; border-spacing: 0; width: 100%; font-size: var(--fs-base); }\nth, td { text-align: left; padding: 10px var(--sp-4); border-bottom: 1px solid var(--border); vertical-align: middle; }\nthead th { position: sticky; top: 0; z-index: 1; background: var(--surface-2); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding-top: 8px; padding-bottom: 8px; white-space: nowrap; }\ntbody tr:last-child > * { border-bottom: 0; }\ntbody tr:hover > * { background: var(--surface-2); }\ntd.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }\ntd.nowrap, th.nowrap { white-space: nowrap; }\ntd.wrap { overflow-wrap: anywhere; min-width: 20ch; }\ntd.mono { color: var(--text-2); }\ntd .row { flex-wrap: nowrap; justify-content: flex-end; }\n.plan-lines th { width: 1%; white-space: nowrap; font-weight: 500; }\n.plan-lines tbody th { background: transparent; }\n.step-chip { display: inline-block; padding: 1px 7px; border-radius: var(--radius-xs); background: var(--surface-3); border: 1px solid var(--border); font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--text-2); }\n.plan-lines td { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-2); overflow-wrap: anywhere; }\n\n/* Commits (plan, history, rollback): a timeline per side, author text as plain text */\n.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }\n.commits { display: grid; gap: var(--sp-4); }\n.commits-note { display: flex; align-items: flex-start; gap: var(--sp-2); padding: 10px var(--sp-3); border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--muted); font-size: var(--fs-md); }\n.commits-note .icon { flex: none; margin-top: 2px; color: var(--faint); }\n.commits-note strong { color: var(--text-2); font-weight: 600; }\n.commits-note.is-ok { border-style: solid; border-color: var(--ok-line); background: var(--ok-soft); color: var(--text-2); }\n.commits-note.is-ok .icon { color: var(--ok); }\n.commit-group { --tone: var(--ok); --tone-soft: var(--ok-soft); --tone-line: var(--ok-line); min-width: 0; }\n.commit-group-removed { --tone: var(--err); --tone-soft: var(--err-soft); --tone-line: var(--err-line); }\n.commit-group-head { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-2); }\n.commit-group-title { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }\n.commit-sign { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: var(--radius-xs); background: var(--tone-soft); border: 1px solid var(--tone-line); color: var(--tone); font: 600 13px/1 var(--font-mono); flex: none; }\n.commit-count { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--border); color: var(--text-2); font-size: var(--fs-xs); font-weight: 600; font-variant-numeric: tabular-nums; }\n.commit-list { list-style: none; margin: 0; padding: 0; position: relative; }\n.commit-list::before { content: \"\"; position: absolute; left: 8px; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: var(--tone-line); }\n.commit { position: relative; display: grid; grid-template-columns: 18px auto minmax(0, 1fr) auto; align-items: center; gap: var(--sp-3); padding: 6px var(--sp-2) 6px 0; border-radius: var(--radius-sm); }\n.commit:hover { background: var(--surface-2); }\n.commit-dot { justify-self: center; width: 10px; height: 10px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 0 3px var(--surface); position: relative; z-index: 1; }\n.commit.is-merge .commit-dot { background: var(--surface); border: 2px solid var(--tone); }\n.commit-sha { padding: 1px 6px; border-radius: var(--radius-xs); background: var(--surface-3); border: 1px solid var(--border); color: var(--text-2); font-size: var(--fs-sm); }\n.commit-subject { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }\n.commit.is-merge .commit-subject { color: var(--muted); }\n.commit-merge { width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; color: var(--faint); }\n.commit-meta { display: flex; gap: var(--sp-2); align-items: baseline; justify-content: flex-end; color: var(--muted); font-size: var(--fs-sm); white-space: nowrap; font-variant-numeric: tabular-nums; }\n.commit-author { max-width: 18ch; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }\n.commit-more { margin: var(--sp-1) 0 0 30px; color: var(--muted); font-size: var(--fs-sm); }\n.commit-span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }\n.commit-span code { color: var(--text-2); }\n.commit-span .icon { width: 14px; height: 14px; }\n.card-actions .muted { font-size: var(--fs-md); }\n@media (max-width: 720px) {\n .commit { grid-template-columns: 18px auto minmax(0, 1fr); row-gap: 2px; align-items: start; }\n .commit-dot { margin-top: 5px; }\n .commit-subject { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }\n .commit-meta { grid-column: 3; justify-content: flex-start; }\n .release-changes > td { padding-left: var(--sp-4); }\n .release-changes-cell > * { max-width: calc(100vw - 64px); }\n}\n/* History: a chevron opens a release's commits under its row */\n.releases td.disclosure, .releases th.disclosure { width: 1%; padding-right: 0; }\n.disclosure-button { width: 26px; height: 26px; padding: 0; border-color: transparent; background: transparent; box-shadow: none; color: var(--muted); }\n.disclosure-button:hover { background: var(--surface-3); color: var(--text); }\n.disclosure-button .icon { transition: transform 150ms ease; }\n.disclosure-button[aria-expanded=\"true\"] .icon { transform: rotate(90deg); color: var(--molten); }\n.releases td.release-commit { min-width: 28ch; max-width: 40ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n.release-commit code { margin-right: var(--sp-2); }\n.release-subject { color: var(--text); }\n.release-row.is-open > * { background: var(--surface-2); border-bottom-color: transparent; }\n.release-changes > td { padding: var(--sp-2) var(--sp-4) var(--sp-4) 52px; background: var(--surface-2); }\n.release-changes:hover > * { background: var(--surface-2); }\n/* The cell spans a table wider than the card: the list stays within what is on screen. */\n.release-changes-cell > * { max-width: min(52rem, calc(100vw - var(--sidebar-w) - 160px)); }\n.rollback-preview:empty { display: none; }\n/* The confirmation dialog's compact list */\n.commit-summary { display: grid; gap: 4px; padding: var(--sp-2) var(--sp-3); border: 1px solid var(--tone-line); border-left: 3px solid var(--tone); border-radius: var(--radius-sm); background: var(--tone-soft); --tone: var(--ok); --tone-soft: var(--ok-soft); --tone-line: var(--ok-line); }\n.commit-summary.commit-group-removed { --tone: var(--err); --tone-soft: var(--err-soft); --tone-line: var(--err-line); }\n.commit-summary-head { display: flex; align-items: center; gap: var(--sp-2); font-weight: 600; color: var(--text); margin-bottom: 2px; }\n.commit-summary-row { display: flex; gap: var(--sp-2); min-width: 0; font-size: var(--fs-md); }\n.commit-summary-row .commit-subject { color: var(--text-2); }\n.commit-summary .commit-sha { background: var(--surface); }\n.commit-summary .commit-more { margin: 0; }\n\n/* Forms */\n.field { display: grid; gap: 6px; }\n.field + .field { margin-top: var(--sp-4); }\n.field > label { font-size: var(--fs-md); font-weight: 600; color: var(--text); }\n.field-key { font-family: var(--font-mono); font-size: var(--fs-sm); font-weight: 400; color: var(--muted); }\n.field-help, .field > .muted { font-size: var(--fs-sm); color: var(--muted); }\n.field-error { color: var(--err); font-size: var(--fs-sm); }\n.field-error:empty { display: none; }\n.required { color: var(--err); }\ninput[type=\"text\"], input[type=\"password\"], input[type=\"number\"], select { font: var(--fs-base)/1 var(--font-sans); height: var(--control-h); padding: 0 10px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); width: 100%; max-width: 32rem; box-shadow: var(--shadow-sm); transition: border-color 120ms ease, box-shadow 120ms ease; }\ninput[type=\"password\"], input#confirm-name, .field input[spellcheck=\"false\"][type=\"text\"] { font-family: var(--font-mono); font-size: 13px; }\ninput:hover, select:hover { border-color: var(--faint); }\ninput:focus-visible, select:focus-visible { border-color: var(--molten); }\ninput[aria-invalid=\"true\"] { border-color: var(--err); }\nselect { appearance: none; padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 15px) 14px, calc(100% - 10px) 14px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }\ninput[type=\"checkbox\"] { width: 16px; height: 16px; margin: 0; accent-color: var(--primary-bg); flex: none; }\n.check > label, label.check { display: flex; align-items: flex-start; gap: var(--sp-2); font-weight: 500; font-size: var(--fs-base); line-height: 20px; cursor: pointer; }\n.check input[type=\"checkbox\"] { margin-top: 2px; }\n.form-section + .form-section { margin-top: var(--sp-5); padding-top: var(--sp-5); border-top: 1px solid var(--border); }\n.form-note { font-size: var(--fs-md); color: var(--muted); display: flex; gap: var(--sp-2); align-items: flex-start; }\n.form-note .icon { margin-top: 2px; color: var(--faint); flex: none; }\n\n.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4) var(--sp-5); }\n.form-grid > .field + .field { margin-top: 0; }\n.form-grid input[type=\"text\"], .form-grid input[type=\"number\"] { max-width: none; }\n.span-2 { grid-column: 1 / -1; }\n.target-name { font-weight: 600; }\n.card-body > [aria-live]:empty { display: none; }\n\n/* Disclosures */\ndetails > summary { cursor: pointer; color: var(--muted); font-size: var(--fs-md); font-weight: 500; width: fit-content; border-radius: var(--radius-xs); list-style-position: inside; }\ndetails > summary:hover { color: var(--text); }\ndetails[open] > summary { margin-bottom: var(--sp-2); }\n.advanced { margin-top: var(--sp-3); }\n.form-section > .advanced:first-child { margin-top: 0; }\n.form-section + .form-section:has(> .advanced:first-child) { padding-top: var(--sp-4); margin-top: var(--sp-4); }\n.advanced[open] { padding: var(--sp-3); border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }\n.diagnostics { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font-mono); font-size: var(--fs-sm); line-height: 18px; margin: 0; padding: 10px var(--sp-3); background: var(--surface-3); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-2); max-height: 40vh; overflow-y: auto; }\n\n/* Banners */\n.banner { display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-3) var(--sp-4); border: 1px solid var(--info-line); border-left-width: 3px; border-radius: var(--radius); background: var(--info-soft); color: var(--text); }\n.banner-icon { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--info); }\n.banner-body { min-width: 0; flex: 1; overflow-wrap: anywhere; }\n.banner-body > p { margin-top: 4px; color: var(--text-2); }\n.banner-body > details { margin-top: var(--sp-2); }\n.banner-title { font-weight: 600; }\n.banner-code { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--muted); }\n.banner.ok { border-color: var(--ok-line); border-left-color: var(--ok); background: var(--ok-soft); }\n.banner.ok .banner-icon { color: var(--ok); }\n.banner.warn { border-color: var(--warn-line); border-left-color: var(--warn); background: var(--warn-soft); }\n.banner.warn .banner-icon { color: var(--warn); }\n.banner.err { border-color: var(--err-line); border-left-color: var(--err); background: var(--err-soft); }\n.banner.err .banner-icon { color: var(--err); }\n.banner + .banner { margin-top: var(--sp-2); }\n\n/* Findings */\n.findings { list-style: none; margin: 0; padding: 0; }\n.finding { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--sp-3); row-gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--border); align-items: baseline; }\n.finding:first-child { border-top: 0; }\n.finding-msg { min-width: 0; overflow-wrap: anywhere; }\n.finding-id { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--muted); margin-right: 6px; }\n.sev { display: inline-flex; align-items: center; justify-content: center; min-width: 84px; height: 20px; padding: 0 7px; border-radius: var(--radius-xs); font-size: var(--fs-xs); font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase; border: 1px solid; }\n.sev-error { color: var(--err); background: var(--err-soft); border-color: var(--err-line); }\n.sev-warning { color: var(--warn); background: var(--warn-soft); border-color: var(--warn-line); }\n.fix { grid-column: 2; display: flex; align-items: baseline; gap: var(--sp-2); padding: 6px 10px; background: var(--surface-3); border: 1px solid var(--border); border-left: 2px solid var(--faint); border-radius: var(--radius-xs); min-width: 0; }\n.fix-label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); flex: none; }\n.fix code { background: none; border: 0; padding: 0; user-select: all; }\n\n/* Empty states */\n.empty { display: grid; justify-items: center; text-align: center; gap: 6px; padding: var(--sp-7) var(--sp-4); border: 1px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface); }\n.empty-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--surface-3); border: 1px solid var(--border); color: var(--muted); margin-bottom: var(--sp-2); }\n.empty-icon .icon { width: 20px; height: 20px; }\n.empty-title { font-weight: 600; font-size: var(--fs-lg); line-height: 24px; }\n.empty-text { color: var(--muted); max-width: 52ch; }\n.empty .row { margin-top: var(--sp-3); justify-content: center; }\n.stopped { max-width: 560px; margin: var(--sp-7) 0 0; }\n.stopped .banner { margin-top: var(--sp-4); text-align: left; }\n\n/* Dialogs */\ndialog { padding: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); width: min(32rem, calc(100vw - 32px)); max-width: none; box-shadow: var(--shadow-lg); }\ndialog::backdrop { background: rgb(11 14 19 / 0.55); backdrop-filter: blur(2px); }\ndialog[open] { animation: rise 160ms ease-out; }\n.dialog-head { display: flex; gap: var(--sp-3); align-items: flex-start; padding: 20px 20px 0; }\n.dialog-head h2 { font-size: var(--fs-lg); line-height: 24px; overflow-wrap: anywhere; }\n.dialog-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; flex: none; background: var(--accent-soft); color: var(--accent-text); }\n.dialog-icon .icon { width: 18px; height: 18px; }\ndialog.is-danger { border-top: 3px solid var(--err); }\ndialog.is-danger .dialog-icon { background: var(--err-soft); color: var(--err); }\n.dialog-body { padding: var(--sp-3) 20px 20px 64px; color: var(--text-2); overflow-wrap: anywhere; }\n.dialog-body > p + p { margin-top: var(--sp-2); }\n.dialog-context { font-family: var(--font-mono); font-size: 12.5px; color: var(--text); background: var(--surface-3); border: 1px solid var(--border); border-radius: var(--radius-xs); padding: 6px 10px; }\n.dialog-protected { display: flex; align-items: center; gap: var(--sp-2); color: var(--err); font-weight: 500; }\n.dialog-body .field { margin-top: var(--sp-4); }\n.dialog-body .field > label { font-weight: 500; color: var(--text-2); }\n.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--sp-2); padding: var(--sp-3) 20px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 12px 12px; }\n\n/* Run: the step timeline */\n.run-state { display: flex; align-items: center; gap: var(--sp-2); width: fit-content; max-width: 100%; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-2); font-size: var(--fs-md); box-shadow: var(--shadow-sm); overflow-wrap: anywhere; }\n.run-state::before { content: \"\"; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }\n.run-state.is-live::before { background: var(--molten); animation: pulse 1.4s ease-in-out infinite; }\n.run-state.is-ok::before { background: var(--ok); }\n.run-state.is-err::before { background: var(--err); }\n.run-state:empty { display: none; }\n.run-grid { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: var(--sp-4); align-items: start; }\n.run-outcome:empty, .run-findings:empty { display: none; }\n.steps { list-style: none; padding: 0; margin: 0; }\n.steps:empty::before { content: \"Waiting for the first step\u2026\"; display: block; color: var(--muted); font-size: var(--fs-md); }\n.step { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; column-gap: 10px; align-items: center; min-height: 32px; padding: 6px 0; }\n.step:not(:last-child)::after { content: \"\"; position: absolute; left: 9.5px; top: 28px; bottom: -6px; width: 1px; background: var(--border-strong); }\n.step.is-ok:not(:last-child)::after { background: var(--ok); opacity: 0.45; }\n.step-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 11px; font-weight: 700; line-height: 1; border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--muted); }\n.step.is-ok .step-icon { background: var(--ok); border-color: var(--ok); color: var(--surface); }\n.step.is-failed .step-icon { background: var(--err); border-color: var(--err); color: var(--surface); }\n.step.is-skipped .step-icon { background: var(--surface-3); border-color: var(--border-strong); color: var(--muted); }\n.step.is-running .step-icon { color: transparent; border-color: var(--molten); border-right-color: transparent; animation: spin 0.9s linear infinite; }\n.step.is-aborted .step-icon { color: transparent; border-style: dashed; border-color: var(--warn); }\n.step.is-aborted .step-icon::after { content: \"\"; position: absolute; inset: 5px; border-radius: 2px; background: var(--warn); }\n.step-title { font-weight: 500; min-width: 0; overflow-wrap: anywhere; }\n.step.is-running .step-title { font-weight: 600; }\n.step.is-skipped .step-title { color: var(--muted); }\n.step-meta { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; }\n.step-status { text-transform: lowercase; }\n.step.is-failed .step-status { color: var(--err); font-weight: 600; }\n.step.is-running .step-status { color: var(--accent-text); font-weight: 600; }\n.step.is-aborted .step-status { color: var(--warn); font-weight: 600; }\n.step-dur { font-family: var(--font-mono); font-variant-numeric: tabular-nums; min-width: 6ch; text-align: right; color: var(--text-2); }\n\n/* Run: the log console (a terminal in both themes) */\n.console { background: var(--term-bg); border: 1px solid var(--term-border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); min-width: 0; }\n.console-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); height: 40px; padding: 0 var(--sp-4); border-bottom: 1px solid rgb(255 255 255 / 0.08); color: var(--term-muted); }\n.console-head h3 { color: #e6edf3; font-size: var(--fs-md); display: flex; align-items: center; gap: var(--sp-2); }\n.console-head .icon { color: var(--term-muted); }\n.console-meta { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--term-muted); }\n.log { list-style: none; margin: 0; padding: 10px 0; max-height: 60vh; min-height: 120px; overflow-y: auto; color: var(--term-fg); font-family: var(--font-mono); font-size: 12.5px; line-height: 20px; white-space: pre-wrap; overflow-wrap: anywhere; scrollbar-color: #30363d transparent; }\n.log li { position: relative; padding: 0 var(--sp-4) 0 calc(var(--sp-4) + 10ch); }\n.log li::before { content: attr(data-ts); position: absolute; left: var(--sp-4); width: 9ch; color: var(--term-ts); font-variant-numeric: tabular-nums; }\n.log li:hover { background: rgb(255 255 255 / 0.03); }\n.log .src { color: var(--term-muted); }\n.log li.src { font-style: italic; }\n.log li.warn { color: var(--term-warn); background: var(--term-warn-bg); box-shadow: inset 2px 0 0 var(--term-warn); }\n.log li.error { color: var(--term-err); background: var(--term-err-bg); box-shadow: inset 2px 0 0 var(--term-err); }\n.log li.ok { color: var(--term-ok); }\n.log:empty::after { content: \"No output yet.\"; display: block; padding: 0 var(--sp-4); color: var(--term-muted); }\n\n@keyframes spin { to { transform: rotate(360deg); } }\n@keyframes pulse { 50% { opacity: 0.35; } }\n@keyframes rise { from { opacity: 0; transform: translateY(6px) scale(0.99); } }\n\n/* Responsive: below 900px the sidebar becomes a top bar */\n@media (max-width: 900px) {\n .shell { grid-template-columns: minmax(0, 1fr); background: none; }\n .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-right: 0; border-bottom: 1px solid var(--border); overflow: visible; }\n .brand { padding: 0; order: 1; }\n .sidebar-foot { order: 2; margin: 0 0 0 auto; padding: 0; border: 0; display: flex; align-items: center; gap: var(--sp-3); }\n .session button { width: auto; }\n .session { display: flex; align-items: center; }\n .locale select { width: 8.5rem; }\n .nav { order: 3; width: 100%; flex-direction: row; align-items: center; gap: var(--sp-3); min-width: 0; }\n .nav-target { padding: 0; display: flex; align-items: center; gap: var(--sp-2); flex: none; }\n .nav-target select { width: 10.5rem; }\n .nav-list { flex-direction: row; gap: 2px; overflow-x: auto; min-width: 0; scrollbar-width: none; }\n .nav .nav-item { width: auto; flex: none; }\n .nav .nav-item[aria-current=\"page\"]::before { left: 10px; right: 10px; top: auto; bottom: -12px; width: auto; height: 2px; border-radius: 2px 2px 0 0; }\n .target-bar { position: static; padding: 10px var(--sp-4); }\n .app { padding: var(--sp-5) var(--sp-4) var(--sp-7); }\n .run-grid { grid-template-columns: minmax(0, 1fr); }\n}\n@media (max-width: 640px) {\n .form-grid { grid-template-columns: minmax(0, 1fr); }\n .local-note > span { display: none; }\n .nav { flex-wrap: wrap; }\n .nav-target { width: 100%; }\n .nav-target select { width: 100%; max-width: none; }\n .nav-list { width: 100%; margin: 0 -4px; }\n .nav .nav-item[aria-current=\"page\"]::before { display: none; }\n .nav-list { gap: 0; justify-content: space-between; }\n .nav .nav-item { padding: 0 8px; font-size: var(--fs-md); height: 32px; }\n .nav .nav-item .icon { display: none; }\n .grid-2 { grid-template-columns: minmax(0, 1fr); }\n .kv-row { grid-template-columns: 96px minmax(0, 1fr); }\n .page-head { margin-bottom: var(--sp-4); }\n h2 { font-size: 18px; line-height: 24px; }\n th, td { padding: 8px var(--sp-3); }\n .card-head, .card-body { padding-left: var(--sp-3); padding-right: var(--sp-3); }\n .finding { grid-template-columns: minmax(0, 1fr); padding: var(--sp-3); }\n .fix { grid-column: 1; }\n .dialog-body { padding-left: 20px; }\n .log li { padding-left: var(--sp-3); }\n .log li::before { display: none; }\n .target-bar .ctx-sep { display: none; }\n}\n@media (prefers-reduced-motion: reduce) {\n *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }\n .step.is-running .step-icon { border-right-color: var(--molten); border-style: dotted; }\n}\n";
package/dist/page.js CHANGED
@@ -32,7 +32,7 @@ export const INDEX_HTML = `<!doctype html>
32
32
  <div class="sidebar-foot">
33
33
  <p class="local-note" title="Local only: this page talks to 127.0.0.1, which talks to your servers over your own ssh.">
34
34
  <svg class="icon" viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path d="M6 11h12v10H6zM8 11V7a4 4 0 0 1 8 0v4"/></svg>
35
- <span>Local only <span aria-hidden="true">·</span> <span class="mono">127.0.0.1</span></span>
35
+ <span><span class="local-label">Local only</span> <span aria-hidden="true">·</span> <span class="mono">127.0.0.1</span></span>
36
36
  </p>
37
37
  <div id="session" class="session"></div>
38
38
  </div>
@@ -166,7 +166,11 @@ code { background: var(--surface-3); border: 1px solid var(--border); padding: 0
166
166
  .local-note { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--muted); }
167
167
  .local-note .mono { font-size: var(--fs-sm); }
168
168
  .session:empty { display: none; }
169
+ .session { display: grid; gap: var(--sp-2); }
169
170
  .session button { width: 100%; justify-content: flex-start; }
171
+ .locale { position: relative; display: flex; align-items: center; }
172
+ .locale .icon { position: absolute; left: 10px; color: var(--muted); pointer-events: none; }
173
+ .locale select { height: 30px; padding-left: 32px; font-size: var(--fs-md); max-width: none; background-position: calc(100% - 15px) 12px, calc(100% - 10px) 12px; }
170
174
 
171
175
  .main-col { min-width: 0; display: flex; flex-direction: column; }
172
176
  .app { width: 100%; max-width: 1200px; padding: var(--sp-5) var(--sp-6) var(--sp-7); }
@@ -274,6 +278,69 @@ td .row { flex-wrap: nowrap; justify-content: flex-end; }
274
278
  .step-chip { display: inline-block; padding: 1px 7px; border-radius: var(--radius-xs); background: var(--surface-3); border: 1px solid var(--border); font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--text-2); }
275
279
  .plan-lines td { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-2); overflow-wrap: anywhere; }
276
280
 
281
+ /* Commits (plan, history, rollback): a timeline per side, author text as plain text */
282
+ .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
283
+ .commits { display: grid; gap: var(--sp-4); }
284
+ .commits-note { display: flex; align-items: flex-start; gap: var(--sp-2); padding: 10px var(--sp-3); border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--muted); font-size: var(--fs-md); }
285
+ .commits-note .icon { flex: none; margin-top: 2px; color: var(--faint); }
286
+ .commits-note strong { color: var(--text-2); font-weight: 600; }
287
+ .commits-note.is-ok { border-style: solid; border-color: var(--ok-line); background: var(--ok-soft); color: var(--text-2); }
288
+ .commits-note.is-ok .icon { color: var(--ok); }
289
+ .commit-group { --tone: var(--ok); --tone-soft: var(--ok-soft); --tone-line: var(--ok-line); min-width: 0; }
290
+ .commit-group-removed { --tone: var(--err); --tone-soft: var(--err-soft); --tone-line: var(--err-line); }
291
+ .commit-group-head { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-2); }
292
+ .commit-group-title { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
293
+ .commit-sign { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: var(--radius-xs); background: var(--tone-soft); border: 1px solid var(--tone-line); color: var(--tone); font: 600 13px/1 var(--font-mono); flex: none; }
294
+ .commit-count { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--border); color: var(--text-2); font-size: var(--fs-xs); font-weight: 600; font-variant-numeric: tabular-nums; }
295
+ .commit-list { list-style: none; margin: 0; padding: 0; position: relative; }
296
+ .commit-list::before { content: ""; position: absolute; left: 8px; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: var(--tone-line); }
297
+ .commit { position: relative; display: grid; grid-template-columns: 18px auto minmax(0, 1fr) auto; align-items: center; gap: var(--sp-3); padding: 6px var(--sp-2) 6px 0; border-radius: var(--radius-sm); }
298
+ .commit:hover { background: var(--surface-2); }
299
+ .commit-dot { justify-self: center; width: 10px; height: 10px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 0 3px var(--surface); position: relative; z-index: 1; }
300
+ .commit.is-merge .commit-dot { background: var(--surface); border: 2px solid var(--tone); }
301
+ .commit-sha { padding: 1px 6px; border-radius: var(--radius-xs); background: var(--surface-3); border: 1px solid var(--border); color: var(--text-2); font-size: var(--fs-sm); }
302
+ .commit-subject { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
303
+ .commit.is-merge .commit-subject { color: var(--muted); }
304
+ .commit-merge { width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; color: var(--faint); }
305
+ .commit-meta { display: flex; gap: var(--sp-2); align-items: baseline; justify-content: flex-end; color: var(--muted); font-size: var(--fs-sm); white-space: nowrap; font-variant-numeric: tabular-nums; }
306
+ .commit-author { max-width: 18ch; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }
307
+ .commit-more { margin: var(--sp-1) 0 0 30px; color: var(--muted); font-size: var(--fs-sm); }
308
+ .commit-span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
309
+ .commit-span code { color: var(--text-2); }
310
+ .commit-span .icon { width: 14px; height: 14px; }
311
+ .card-actions .muted { font-size: var(--fs-md); }
312
+ @media (max-width: 720px) {
313
+ .commit { grid-template-columns: 18px auto minmax(0, 1fr); row-gap: 2px; align-items: start; }
314
+ .commit-dot { margin-top: 5px; }
315
+ .commit-subject { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
316
+ .commit-meta { grid-column: 3; justify-content: flex-start; }
317
+ .release-changes > td { padding-left: var(--sp-4); }
318
+ .release-changes-cell > * { max-width: calc(100vw - 64px); }
319
+ }
320
+ /* History: a chevron opens a release's commits under its row */
321
+ .releases td.disclosure, .releases th.disclosure { width: 1%; padding-right: 0; }
322
+ .disclosure-button { width: 26px; height: 26px; padding: 0; border-color: transparent; background: transparent; box-shadow: none; color: var(--muted); }
323
+ .disclosure-button:hover { background: var(--surface-3); color: var(--text); }
324
+ .disclosure-button .icon { transition: transform 150ms ease; }
325
+ .disclosure-button[aria-expanded="true"] .icon { transform: rotate(90deg); color: var(--molten); }
326
+ .releases td.release-commit { min-width: 28ch; max-width: 40ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
327
+ .release-commit code { margin-right: var(--sp-2); }
328
+ .release-subject { color: var(--text); }
329
+ .release-row.is-open > * { background: var(--surface-2); border-bottom-color: transparent; }
330
+ .release-changes > td { padding: var(--sp-2) var(--sp-4) var(--sp-4) 52px; background: var(--surface-2); }
331
+ .release-changes:hover > * { background: var(--surface-2); }
332
+ /* The cell spans a table wider than the card: the list stays within what is on screen. */
333
+ .release-changes-cell > * { max-width: min(52rem, calc(100vw - var(--sidebar-w) - 160px)); }
334
+ .rollback-preview:empty { display: none; }
335
+ /* The confirmation dialog's compact list */
336
+ .commit-summary { display: grid; gap: 4px; padding: var(--sp-2) var(--sp-3); border: 1px solid var(--tone-line); border-left: 3px solid var(--tone); border-radius: var(--radius-sm); background: var(--tone-soft); --tone: var(--ok); --tone-soft: var(--ok-soft); --tone-line: var(--ok-line); }
337
+ .commit-summary.commit-group-removed { --tone: var(--err); --tone-soft: var(--err-soft); --tone-line: var(--err-line); }
338
+ .commit-summary-head { display: flex; align-items: center; gap: var(--sp-2); font-weight: 600; color: var(--text); margin-bottom: 2px; }
339
+ .commit-summary-row { display: flex; gap: var(--sp-2); min-width: 0; font-size: var(--fs-md); }
340
+ .commit-summary-row .commit-subject { color: var(--text-2); }
341
+ .commit-summary .commit-sha { background: var(--surface); }
342
+ .commit-summary .commit-more { margin: 0; }
343
+
277
344
  /* Forms */
278
345
  .field { display: grid; gap: 6px; }
279
346
  .field + .field { margin-top: var(--sp-4); }
@@ -429,6 +496,8 @@ dialog.is-danger .dialog-icon { background: var(--err-soft); color: var(--err);
429
496
  .brand { padding: 0; order: 1; }
430
497
  .sidebar-foot { order: 2; margin: 0 0 0 auto; padding: 0; border: 0; display: flex; align-items: center; gap: var(--sp-3); }
431
498
  .session button { width: auto; }
499
+ .session { display: flex; align-items: center; }
500
+ .locale select { width: 8.5rem; }
432
501
  .nav { order: 3; width: 100%; flex-direction: row; align-items: center; gap: var(--sp-3); min-width: 0; }
433
502
  .nav-target { padding: 0; display: flex; align-items: center; gap: var(--sp-2); flex: none; }
434
503
  .nav-target select { width: 10.5rem; }
package/dist/server.js CHANGED
@@ -8,7 +8,7 @@ import { execRemote, follow, toReply } from './remote.js';
8
8
  import { CLIENT_FILE, checkRequest, MAX_BODY_BYTES, SECURITY_HEADERS } from './security.js';
9
9
  import { IdleTimer, Session } from './session.js';
10
10
  import { MUTATING, SHA } from './ssh.js';
11
- import { ACTOR, checkTarget, NAME, readTargets, TargetsFileError, writeTargets } from './targets.js';
11
+ import { ACTOR, checkTarget, isLocale, LOCALES, NAME, readTargets, TargetsFileError, writeTargets } from './targets.js';
12
12
  export const MAX_SSH_SESSIONS = 4;
13
13
  export const MAX_IDLE_MINUTES = 240;
14
14
  const DEFAULT_TIMEOUTS = { status: 60_000, plan: 300_000, detach: 120_000, cancel: 60_000 };
@@ -211,7 +211,7 @@ export async function startUiServer(options) {
211
211
  try {
212
212
  const { file, exists } = await readTargets(options.targetsPath);
213
213
  const actor = file.actor ?? osActor;
214
- return { path: options.targetsPath, exists, ...(actor ? { actor } : {}), targets: file.targets };
214
+ return { path: options.targetsPath, exists, ...(actor ? { actor } : {}), ...(file.locale ? { locale: file.locale } : {}), targets: file.targets };
215
215
  }
216
216
  catch (error) {
217
217
  if (error instanceof TargetsFileError)
@@ -418,7 +418,13 @@ export async function startUiServer(options) {
418
418
  else
419
419
  actor = given;
420
420
  }
421
- await writeTargets(options.targetsPath, { version: 1, ...(actor ? { actor } : {}), targets });
421
+ let locale = file.locale;
422
+ if (body['locale'] !== undefined) {
423
+ if (body['locale'] !== null && !isLocale(body['locale']))
424
+ throw new HttpError(422, 'the language is refused', { errors: { locale: `one of ${LOCALES.join(', ')}` } });
425
+ locale = body['locale'] ?? undefined;
426
+ }
427
+ await writeTargets(options.targetsPath, { version: 1, ...(actor ? { actor } : {}), ...(locale ? { locale } : {}), targets });
422
428
  options.log(`targets saved to ${options.targetsPath}`);
423
429
  return json(res, 200, await targetsReply());
424
430
  }
@@ -435,6 +441,25 @@ export async function startUiServer(options) {
435
441
  const { target: t, actor } = await target(body);
436
442
  return json(res, 200, await collect(t, actor, { command: 'status' }, timeouts.status));
437
443
  }
444
+ case 'commits': {
445
+ // Read-only on the server (no lock): the history's changes and the rollback preview.
446
+ const { target: t, actor } = await target(body);
447
+ const sha = (name) => {
448
+ const value = body[name];
449
+ if (value !== undefined && (typeof value !== 'string' || !SHA.test(value)))
450
+ throw new HttpError(400, `${name}: a commit sha (7 to 40 lowercase hex)`);
451
+ return value;
452
+ };
453
+ const from = sha('from');
454
+ const to = sha('to');
455
+ if (body['rollback'] !== undefined && body['rollback'] !== true)
456
+ throw new HttpError(400, 'rollback: true or absent');
457
+ const preview = body['rollback'] === true;
458
+ if (preview ? from !== undefined : from === undefined || to === undefined)
459
+ throw new HttpError(400, 'commits: from and to, or rollback (with an optional to)');
460
+ const spec = { command: 'commits', ...(preview ? { rollbackPreview: true } : {}), ...(from === undefined ? {} : { from }), ...(to === undefined ? {} : { to }) };
461
+ return json(res, 200, await collect(t, actor, spec, timeouts.status));
462
+ }
438
463
  case 'plan': {
439
464
  const { target: t, actor } = await target(body);
440
465
  const reply = await collect(t, actor, { command: 'plan' }, timeouts.plan);
package/dist/ssh.d.ts CHANGED
@@ -10,7 +10,7 @@ import { type Target } from './targets.js';
10
10
  export declare const SSH_OPTIONS: readonly ['BatchMode=yes', 'StrictHostKeyChecking=yes', 'ConnectTimeout=10', 'ServerAliveInterval=15', 'ServerAliveCountMax=3', 'ForwardAgent=no', 'ForwardX11=no', 'ClearAllForwardings=yes', 'PermitLocalCommand=no', 'RequestTTY=no', 'LogLevel=ERROR'];
11
11
  /** The app's lockfile-pinned copy of the deploy, the invocation the CLI documents — never npx. */
12
12
  export declare const DEPLOY_BIN = "node_modules/@basaltkit/deploy/dist/bin.js";
13
- export declare const REMOTE_COMMANDS: readonly ['status', 'plan', 'env', 'run', 'rollback', 'attach', 'cancel'];
13
+ export declare const REMOTE_COMMANDS: readonly ['status', 'plan', 'env', 'run', 'rollback', 'commits', 'attach', 'cancel'];
14
14
  export type RemoteCommand = typeof REMOTE_COMMANDS[number];
15
15
  /** The commands that change the server (one at a time per target). */
16
16
  export declare const MUTATING: ReadonlySet<RemoteCommand>;
@@ -26,8 +26,12 @@ export interface RemoteSpec {
26
26
  detach?: boolean;
27
27
  /** run. */
28
28
  unhold?: boolean;
29
- /** rollback. */
29
+ /** rollback; commits (with `from`, or with `rollbackPreview`). */
30
30
  to?: string;
31
+ /** commits: the older commit of a range. */
32
+ from?: string;
33
+ /** commits: what a rollback (to `to`, or to the one it would choose) would take out of production. */
34
+ rollbackPreview?: boolean;
31
35
  /** attach. */
32
36
  fromSeq?: number;
33
37
  /** attach. */
package/dist/ssh.js CHANGED
@@ -25,7 +25,7 @@ export const SSH_OPTIONS = [
25
25
  ];
26
26
  /** The app's lockfile-pinned copy of the deploy, the invocation the CLI documents — never npx. */
27
27
  export const DEPLOY_BIN = 'node_modules/@basaltkit/deploy/dist/bin.js';
28
- export const REMOTE_COMMANDS = ['status', 'plan', 'env', 'run', 'rollback', 'attach', 'cancel'];
28
+ export const REMOTE_COMMANDS = ['status', 'plan', 'env', 'run', 'rollback', 'commits', 'attach', 'cancel'];
29
29
  /** The commands that change the server (one at a time per target). */
30
30
  export const MUTATING = new Set(['env', 'run', 'rollback', 'cancel']);
31
31
  export const SHA = /^[0-9a-f]{7,40}$/;
@@ -71,8 +71,22 @@ export function remoteCommand(target, spec, actor) {
71
71
  refuse('--unhold off run');
72
72
  words.push('--unhold');
73
73
  }
74
+ if (spec.command === 'commits') {
75
+ // Two shas, or the rollback preview: never anything else.
76
+ if (spec.rollbackPreview ? spec.from !== undefined : spec.from === undefined || spec.to === undefined)
77
+ refuse('the commits range');
78
+ if (spec.rollbackPreview)
79
+ words.push('--rollback');
80
+ if (spec.from !== undefined) {
81
+ if (!SHA.test(spec.from))
82
+ refuse('the commits range');
83
+ words.push(`--from=${spec.from}`);
84
+ }
85
+ }
86
+ else if (spec.from !== undefined || spec.rollbackPreview)
87
+ refuse('a commits range off commits');
74
88
  if (spec.to !== undefined) {
75
- if (spec.command !== 'rollback' || !SHA.test(spec.to))
89
+ if ((spec.command !== 'rollback' && spec.command !== 'commits') || !SHA.test(spec.to))
76
90
  refuse('the rollback commit');
77
91
  words.push(`--to=${spec.to}`);
78
92
  }
package/dist/targets.d.ts CHANGED
@@ -23,8 +23,14 @@ export interface TargetsFile {
23
23
  version: 1;
24
24
  /** Becomes `--actor`: self-declared attribution. */
25
25
  actor?: string;
26
+ /** The page's language, as the operator last chose it. */
27
+ locale?: Locale;
26
28
  targets: Target[];
27
29
  }
30
+ /** The languages the page speaks (client/i18n.ts). */
31
+ export declare const LOCALES: readonly ['en', 'pt'];
32
+ export type Locale = typeof LOCALES[number];
33
+ export declare const isLocale: (value: unknown) => value is Locale;
28
34
  export declare const NAME: RegExp;
29
35
  export declare const ABSOLUTE_PATH: RegExp;
30
36
  export declare const RELATIVE_PATH: RegExp;
package/dist/targets.js CHANGED
@@ -2,6 +2,9 @@ import { randomBytes } from 'node:crypto';
2
2
  import { constants } from 'node:fs';
3
3
  import { lstat, mkdir, open, rename, rm, stat as statPath } from 'node:fs/promises';
4
4
  import { dirname, isAbsolute, join, resolve, win32 } from 'node:path';
5
+ /** The languages the page speaks (client/i18n.ts). */
6
+ export const LOCALES = ['en', 'pt'];
7
+ export const isLocale = (value) => LOCALES.includes(value);
5
8
  export const NAME = /^[a-z0-9][a-z0-9-]{0,39}$/;
6
9
  const SSH_USER = /^[a-z_][a-z0-9_.-]{0,31}$/;
7
10
  const SSH_HOST = /^[A-Za-z0-9](?:[A-Za-z0-9.-]{0,252})$/;
@@ -11,7 +14,7 @@ export const RELATIVE_PATH = /^[A-Za-z0-9._-][A-Za-z0-9._/-]{0,127}$/;
11
14
  /** The server's own `--actor` pattern (`@basaltkit/deploy` audit.ts). */
12
15
  export const ACTOR = /^[A-Za-z0-9._@+-]{1,64}$/;
13
16
  const TARGET_FIELDS = new Set(['name', 'ssh', 'port', 'dir', 'node', 'config', 'protected']);
14
- const FILE_FIELDS = new Set(['version', 'actor', 'targets']);
17
+ const FILE_FIELDS = new Set(['version', 'actor', 'locale', 'targets']);
15
18
  /** No file the UI reads is larger: a targets file is a few hundred bytes. */
16
19
  const MAX_FILE_BYTES = 1024 * 1024;
17
20
  export const MAX_TARGETS = 100;
@@ -79,6 +82,9 @@ export function checkTargetsFile(input) {
79
82
  const actor = input['actor'];
80
83
  if (actor !== undefined && (typeof actor !== 'string' || !ACTOR.test(actor)))
81
84
  errors['actor'] = 'letters, digits and ._@+-, at most 64';
85
+ const locale = input['locale'];
86
+ if (locale !== undefined && !isLocale(locale))
87
+ errors['locale'] = `one of ${LOCALES.join(', ')}`;
82
88
  const list = input['targets'];
83
89
  const targets = [];
84
90
  if (!Array.isArray(list) || list.length > MAX_TARGETS)
@@ -100,7 +106,7 @@ export function checkTargetsFile(input) {
100
106
  }
101
107
  if (Object.keys(errors).length > 0)
102
108
  return { ok: false, errors };
103
- return { ok: true, value: { version: 1, ...(actor === undefined ? {} : { actor: actor }), targets } };
109
+ return { ok: true, value: { version: 1, ...(actor === undefined ? {} : { actor: actor }), ...(locale === undefined ? {} : { locale: locale }), targets } };
104
110
  }
105
111
  /** `$XDG_CONFIG_HOME/basalt/deploy-targets.json` (absolute only, per the spec), `%APPDATA%\basalt\…` on Windows. */
106
112
  export function defaultTargetsPath(platform, env, home) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@basaltkit/deploy-ui",
3
- "version": "0.2.2",
3
+ "version": "0.4.0",
4
4
  "engines": {
5
5
  "node": ">=22.5.0"
6
6
  },
@@ -21,13 +21,14 @@
21
21
  "dist"
22
22
  ],
23
23
  "dependencies": {
24
- "@basaltkit/deploy": "^0.7.0"
24
+ "@basaltkit/deploy": "^0.8.0"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@types/node": "^26.6.5",
28
28
  "jsdom": "^30.1.2",
29
29
  "typescript": "^7.0.2",
30
30
  "vitest": "^5.0.3",
31
+ "@basaltkit/i18n": "^1.1.0",
31
32
  "@basaltkit/tsconfig": "^0.24.0"
32
33
  },
33
34
  "publishConfig": {
@@ -47,7 +48,7 @@
47
48
  "ui"
48
49
  ],
49
50
  "scripts": {
50
- "build": "tsc -p tsconfig.build.json && tsc -p tsconfig.client.json",
51
+ "build": "tsc -p tsconfig.build.json && tsc -p tsconfig.client.json && node scripts/vendor-client.mjs",
51
52
  "test": "vitest run",
52
53
  "typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.client.json"
53
54
  }