clavarium 0.2.406-next.1 → 0.2.408-next.1

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.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "clavarium",
3
- "version": "0.2.406-next.1",
3
+ "version": "0.2.408-next.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "clavarium",
9
- "version": "0.2.406-next.1",
9
+ "version": "0.2.408-next.1",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@xterm/addon-fit": "^0.11.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clavarium",
3
- "version": "0.2.406-next.1",
3
+ "version": "0.2.408-next.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "description": "A conversation is a VM with a terminal in it. Everything else is a folder.",
package/server/api.mjs CHANGED
@@ -20,6 +20,7 @@
20
20
  * POST /api/conversations/<name>/health look now (never wakes a machine)
21
21
  * POST /api/conversations/<name>/health/seen what it says now no longer calls its owner (Needs you)
22
22
  * POST /api/conversations/<name>/exit-report why its tool ended: { now (read in its machine, if it runs), last (kept at its end) }
23
+ * POST /api/conversations/<name>/machine {machineMb} in a shared machine: that machine's memory, all in it restarted
23
24
  * POST /api/conversations/<name>/archive
24
25
  * POST /api/binder/suggest {id}: at most three quick actions for that card -> {actions: [{key, label, why, on, ask?}]}
25
26
  * POST /api/mailboxes/<name>/live {smtp, email?}: that mailbox connected live too (send, move...), its password reused
@@ -958,6 +959,8 @@ export async function handleApi(request, response, conversations, headers, resou
958
959
  if (typeof body?.escalate === 'boolean') return send(200, conversations.setStopEscalate(conversation, body.escalate)), true;
959
960
  /* Its watchdog (watchdog.mjs): on or off, and how long it waits. */
960
961
  if (body?.watchdog && typeof body.watchdog === 'object') return send(200, conversations.setWatchdog(conversation, { on: typeof body.watchdog.on === 'boolean' ? body.watchdog.on : undefined, delayMin: body.watchdog.delayMin })), true;
962
+ /* Its shared machine's own memory (#221): the whole machine restarted, every conversation in it. */
963
+ if (body?.machineMb !== undefined) return send(200, await conversations.resizeShared(conversation, { machineMb: body.machineMb })), true;
961
964
  const resized = await conversations.resize(conversation, { memoryMb: body.memoryMb, diskGb: body.diskGb, cpus: body.cpus });
962
965
  /* Asleep, nothing was started: the choice is only kept, for its wake. */
963
966
  return send(resized.phase === 'restarting' ? 202 : 200, resized), true;
@@ -1019,6 +1019,7 @@ export class Conversations {
1019
1019
  async resize(name, asked = {}) {
1020
1020
  const c = this.#busyCheck(name);
1021
1021
  const tool = this.#tools.find((t) => t.id === c.tool);
1022
+ if (c.sharedMachine) return this.#limitShared(name, c, tool, asked);
1022
1023
  const { memory, disk, cpus } = this.#sizeAsked(c, tool, asked);
1023
1024
  if (c.asleep === true) return this.#later(name, c, { memoryMb: memory, cpus, diskGb: disk });
1024
1025
  const act = this.#take(name, 'resize');
@@ -1252,7 +1253,7 @@ export class Conversations {
1252
1253
  const timer = setTimeout(() => {
1253
1254
  this.#timers.delete(name);
1254
1255
  /* Not under an action of its owner's (a restart, a sleep): that one decides. */
1255
- if (!this.#watching.has(name) && !this.#acts.has(name)) { this.drop(name); void this.#vms.stop(name); }
1256
+ if (!this.#watching.has(name) && !this.#acts.has(name)) { this.drop(name); void this.#stopUnlessShared(name); }
1256
1257
  }, this.#stopDelayMs);
1257
1258
  timer.unref?.();
1258
1259
  this.#timers.set(name, timer);
@@ -1751,6 +1752,65 @@ export class Conversations {
1751
1752
  }
1752
1753
  }
1753
1754
 
1755
+ /* ITS TOOL ENDED, ITS MACHINE STOPPED -- unless it is a shared machine (#221) where another conversation still
1756
+ has its tool, a screen or an action: then only this one's programs end, the others go on. */
1757
+ async #stopUnlessShared(name) {
1758
+ const shared = this.#store.get(name)?.sharedMachine;
1759
+ if (!shared) return this.#vms.stop(name);
1760
+ for (const other of this.#store.all().filter((x) => x.name !== name && x.sharedMachine === shared)) {
1761
+ if (this.#watching.has(other.name) || this.#acts.has(other.name) || this.#timers.has(other.name)) return this.#endShared(name);
1762
+ const alive = await this.#vms.exec(other.name, ['tmux', '-L', SOCKET, 'has-session', '-t', `=${SESSION}`]).catch(() => ({ code: 1 }));
1763
+ if (alive.code === 0) return this.#endShared(name);
1764
+ }
1765
+ return this.#vms.stop(name);
1766
+ }
1767
+ #endShared(name) { return this.#vms.execMachine(name, ['sudo', '-n', 'pkill', '-KILL', '-u', `c-${name}`], { timeoutMs: STEP_MS }).catch(() => undefined); }
1768
+
1769
+ /* ITS SHARE OF A SHARED MACHINE (#221): its memory there is its limit, at most the machine's; set without
1770
+ stopping anything, read by its door when its tool starts again. Cores and disk are the machine's. */
1771
+ async #limitShared(name, c, tool, { memoryMb, diskGb, cpus } = {}) {
1772
+ if ((diskGb !== undefined && diskGb !== null && diskGb !== '' && Number(diskGb) !== (c.diskGb ?? DISK_GB)) || (cpus !== undefined && cpus !== null && cpus !== '' && Number(cpus) !== (c.cpus ?? 1))) throw new Refusal(400, `Cores and disk are those of the shared machine ${c.sharedMachine}.`);
1773
+ const memory = Number(memoryMb);
1774
+ const size = this.#machineMbOf(c.sharedMachine);
1775
+ const least = tool?.memoryMb ?? 512;
1776
+ if (!Number.isInteger(memory) || memory < least || memory > size) throw new Refusal(400, `Its memory is between ${least} MB (what ${tool?.label ?? 'its tool'} needs) and ${size} MB (its shared machine's).`);
1777
+ if (memory === c.memoryMb) throw new Refusal(409, 'Nothing to change: it already has this.');
1778
+ const r = await this.#vms.execMachine(name, ['sudo', '-n', 'install', '-D', '-m', '0644', '-o', 'root', '-g', 'root', '/dev/stdin', `/etc/clavarium/limits/${name}`], { input: `mem=${memory}\nprocs=${SHARED_PROCS}\n`, timeoutMs: STEP_MS });
1779
+ if (r.code !== 0) throw new Refusal(502, `Its limit could not be set: ${firstLine(r.stderr) || `exit ${r.code}`}`);
1780
+ this.#store.patch(name, { memoryMb: memory, restarted: `Its limit is now ${memory} MB, from its tool's next start.` });
1781
+ return this.#store.get(name);
1782
+ }
1783
+
1784
+ /* A SHARED MACHINE GIVEN MORE OR LESS MEMORY (#221), from the settings of any conversation in it: never less than
1785
+ the largest limit of those in it; stopped cleanly, set, started again -- every conversation in it is
1786
+ interrupted, the page says so before. Each then finds its place again (its work mounted) at its next opening. */
1787
+ async resizeShared(name, { machineMb } = {}) {
1788
+ const c = this.#busyCheck(name);
1789
+ if (!c.sharedMachine) throw new Refusal(400, 'Not in a shared machine.');
1790
+ const all = this.#store.all().filter((x) => x.sharedMachine === c.sharedMachine);
1791
+ const now = this.#machineMbOf(c.sharedMachine);
1792
+ const size = Number(machineMb);
1793
+ const largest = Math.max(...all.map((x) => Number(x.memoryMb) || 0));
1794
+ if (!Number.isInteger(size) || size < Math.max(1024, largest) || size > 16384) throw new Refusal(400, `The machine ${c.sharedMachine} has ${Math.max(1024, largest)} to 16384 MB (no less than the largest of its conversations).`);
1795
+ if (size === now) throw new Refusal(409, 'Nothing to change: it already has this.');
1796
+ for (const x of all) if (this.#acts.has(x.name)) throw this.#busy(x.name);
1797
+ const state = await this.#vms.state(name, { fresh: true }).catch(() => undefined);
1798
+ if (state === undefined) throw new Refusal(410, 'The shared machine no longer exists.');
1799
+ await this.room({ kind: 'grow', name, memoryMb: state === 'Running' ? Math.max(0, size - now) : 0, diskMb: 0 });
1800
+ for (const x of all) { this.#cancelStop(x.name); this.drop(x.name); }
1801
+ const fail = (what, r) => new Refusal(502, `${what}: ${firstLine(r.stderr) || firstLine(r.stdout) || `exit ${r.code}`}`);
1802
+ if (state !== 'Stopped') { const r = await this.#vms.stop(name); if (r.code !== 0) throw fail('The shared machine did not stop', r); }
1803
+ const set = await this.#vms.setMemory(name, size);
1804
+ if (set.code !== 0) { await this.#vms.start(name).catch(() => undefined); throw fail('Its memory could not be set', set); }
1805
+ const started = await this.#vms.start(name);
1806
+ for (const x of all) {
1807
+ this.#store.patch(x.name, { machineMb: size, toolStarted: false, restarted: `Its shared machine was restarted with ${size} MB.` });
1808
+ this.#mountAgain.add(x.name); this.#fresh.add(x.name);
1809
+ }
1810
+ if (started.code !== 0) throw fail('The shared machine did not start again', started);
1811
+ return this.#store.get(name);
1812
+ }
1813
+
1754
1814
  #cancelStop(name) {
1755
1815
  const timer = this.#timers.get(name);
1756
1816
  if (timer) { clearTimeout(timer); this.#timers.delete(name); }
package/web/app.js CHANGED
@@ -2952,7 +2952,8 @@
2952
2952
  cores.replaceChildren(...Array.from({ length: most }, (_, i) => i + 1).map((n) => { const o = document.createElement('option'); o.value = String(n); o.textContent = `${n}${n === (here.cpus ?? 1) ? ' (now)' : ''}${n === most && n > 1 ? ' (all of this server)' : ''}`; return o; }));
2953
2953
  cores.value = String(here.cpus ?? 1);
2954
2954
  const least = here.memoryMinMb ?? 512;
2955
- const mems = [...new Set([...MEMORY_CHOICES.filter((m) => m >= least), here.memoryMb])].sort((a, b) => a - b);
2955
+ /* In a shared machine (#221): its limit there, up to the machine's own memory. */
2956
+ const mems = [...new Set([...MEMORY_CHOICES.filter((m) => m >= least && (!here.sharedMachine || m <= (here.machineMb ?? m))), here.memoryMb])].sort((a, b) => a - b);
2956
2957
  memory.replaceChildren(...mems.map((m) => { const o = document.createElement('option'); o.value = String(m); o.textContent = `${sizeWords(m)}${m === here.memoryMb ? ' (now)' : ''}${m === least ? ' (least for its tool)' : ''}`; return o; }));
2957
2958
  memory.value = String(here.memoryMb);
2958
2959
  const now = here.diskGb ?? 8;
@@ -2974,6 +2975,21 @@
2974
2975
  $('machine-later-text').textContent = here?.sizeAtWake ? `Will be applied when it wakes: ${laterWords(here.sizeAtWake)}` : '';
2975
2976
  $('machine-later').hidden = !here?.sizeAtWake;
2976
2977
  $('machine-size-apply').textContent = here?.asleep === true ? 'Keep for its wake' : 'Apply...';
2978
+ /* In a shared machine (#221): its memory is its limit there (no restart), cores and disk the machine's; the
2979
+ machine's own memory below, which restarts all in it. */
2980
+ const sharedHere = Boolean(here?.sharedMachine) && !DEVICE;
2981
+ for (const id of ['machine-cpus', 'machine-disk']) { $(id).hidden = sharedHere; $(id).previousElementSibling.hidden = sharedHere; }
2982
+ $('machine-memory').previousElementSibling.textContent = sharedHere ? 'Its limit' : 'Memory';
2983
+ $('machine-size-title').textContent = sharedHere ? 'Memory' : 'Memory, cores and disk';
2984
+ if (sharedHere) { $('machine-size-hint').textContent = 'Its limit in the shared machine · from its next start'; $('machine-size-apply').textContent = 'Apply'; }
2985
+ $('shared-size').hidden = !sharedHere || here.phase !== 'ready';
2986
+ if (sharedHere && document.activeElement !== $('shared-memory')) {
2987
+ const inIt = conversations.filter((x) => x.sharedMachine === here.sharedMachine);
2988
+ const floor = Math.max(1024, ...inIt.map((x) => x.memoryMb ?? 0)); const now = here.machineMb ?? floor;
2989
+ const sizes = [...new Set([now, ...MEMORY_CHOICES.filter((m) => m >= floor)])].sort((a, b) => a - b);
2990
+ $('shared-memory').replaceChildren(...sizes.map((m) => Object.assign(document.createElement('option'), { value: String(m), textContent: `${sizeWords(m)}${m === now ? ' (now)' : ''}` })));
2991
+ $('shared-memory').value = String(now);
2992
+ }
2977
2993
  /* When its tool starts: its last session, or a new one -- for a tool that can take one up. */
2978
2994
  $('resume-box').hidden = DEVICE || !here?.resumes;
2979
2995
  for (const b of $('resume-on').children) b.setAttribute('aria-pressed', String((b.dataset.on === 'true') === (here?.resume !== false)));
@@ -3054,6 +3070,15 @@
3054
3070
  if (!here) return;
3055
3071
  const memoryMb = Number($('machine-memory').value); const diskGb = Number($('machine-disk').value); const cpus = Number($('machine-cpus').value) || (here.cpus ?? 1);
3056
3072
  if (memoryMb === here.memoryMb && diskGb === (here.diskGb ?? 8) && cpus === (here.cpus ?? 1)) { $('panel-error').textContent = 'Nothing to change: choose another memory, cores or disk first.'; $('panel-error').hidden = false; return; }
3073
+ /* In a shared machine: its limit, set at once -- nothing stopped. */
3074
+ if (here.sharedMachine) {
3075
+ $('panel-error').hidden = true;
3076
+ void (async () => {
3077
+ try { await post(`${API}/conversations/${encodeURIComponent(name)}/machine`, { memoryMb }); await refresh(); paintMachine(conversations.find((x) => x.name === name)); }
3078
+ catch (error) { $('panel-error').textContent = error.message; $('panel-error').hidden = false; }
3079
+ })();
3080
+ return;
3081
+ }
3057
3082
  const changes = [memoryMb !== here.memoryMb ? `${sizeWords(memoryMb)} of memory (now ${sizeWords(here.memoryMb)})` : '', cpus !== (here.cpus ?? 1) ? `${cpus} core${cpus > 1 ? 's' : ''} (now ${here.cpus ?? 1})` : '', diskGb !== (here.diskGb ?? 8) ? `a disk of ${diskGb} GB (now ${here.diskGb ?? 8} GB; it can never shrink again)` : ''].filter(Boolean).join(' and ');
3058
3083
  /* Asleep: kept for its wake, from Settings, where it is then said; nothing is stopped or woken now. */
3059
3084
  if (here.asleep === true) {
@@ -3074,6 +3099,25 @@
3074
3099
  }, resume);
3075
3100
  });
3076
3101
 
3102
+ /* ITS SHARED MACHINE'S MEMORY (#221): asked first, naming every conversation it interrupts. */
3103
+ $('shared-size').addEventListener('submit', (event) => {
3104
+ event.preventDefault();
3105
+ const name = current;
3106
+ const here = conversations.find((x) => x.name === name);
3107
+ if (!here?.sharedMachine) return;
3108
+ const machineMb = Number($('shared-memory').value);
3109
+ if (machineMb === here.machineMb) { $('panel-error').textContent = 'Nothing to change: choose another memory first.'; $('panel-error').hidden = false; return; }
3110
+ const inIt = conversations.filter((x) => x.sharedMachine === here.sharedMachine).map((x) => x.title ?? x.name);
3111
+ leavePanel();
3112
+ const resume = socket && state.dataset.state === 'live' ? () => { notice.hidden = true; focusTerminal(); } : enter;
3113
+ show(`Give the shared machine « ${here.sharedMachine} » ${sizeWords(machineMb)} of memory (now ${sizeWords(here.machineMb ?? 0)})? IT IS STOPPED AND STARTED AGAIN: ${inIt.join(', ')} ${inIt.length > 1 ? 'are' : 'is'} interrupted.`,
3114
+ 'Change it', async () => {
3115
+ disconnect(); say('restarting', 'connecting'); show('Changing the shared machine...'); $('notice-spin').hidden = false;
3116
+ try { await post(`${API}/conversations/${encodeURIComponent(name)}/machine`, { machineMb }); await refresh(); enter(); }
3117
+ catch (error) { show(error.message, 'Back', enter); }
3118
+ }, resume);
3119
+ });
3120
+
3077
3121
  /* ---------- what its tool is told about where it is (server/guide.mjs) ---------- */
3078
3122
  /* One quiet line; behind "see", the exact text its tool reads, made by
3079
3123
  the server from these settings, the owner's own lines, and "Tell it
package/web/index.html CHANGED
@@ -213,7 +213,7 @@
213
213
  <div class="set-row"><div class="set-what"><b data-said="set-mesc">If a stop hangs</b></div><div class="set-control"><div class="levels" id="m-escalate" role="group" aria-label="If a stop hangs"><button type="button" data-on="true" data-said="set-mesc-auto">Force it</button><button type="button" data-on="false" data-said="set-mesc-ask">Ask me</button></div></div></div>
214
214
  <!-- ITS WATCHDOG (server/watchdog.mjs): mute or full that long, forced off then started, once. -->
215
215
  <div class="set-row" id="m-dog-row"><div class="set-what"><b data-said="set-mdog">Watchdog</b><small data-said="set-mdog-what">Restarts it if stuck</small></div><div class="set-control"><div class="levels" id="m-dog" role="group" aria-label="Watchdog"><button type="button" data-min="0" data-said="set-mdog-off">Off</button><button type="button" data-min="30">30 min</button><button type="button" data-min="60">1 h</button><button type="button" data-min="120">2 h</button><button type="button" data-min="custom" data-said="set-mdog-custom">Custom</button></div><label class="m-dog-min" id="m-dog-custom" hidden><input type="number" id="m-dog-min" min="10" max="1440" step="5" inputmode="numeric" aria-label="Minutes"> min</label></div></div>
216
- <div class="panel-top"><b>Memory, cores and disk</b></div>
216
+ <div class="panel-top"><b id="machine-size-title">Memory, cores and disk</b></div>
217
217
  <form id="machine-size" autocomplete="off">
218
218
  <label for="machine-memory">Memory</label>
219
219
  <select id="machine-memory"></select>
@@ -227,6 +227,13 @@
227
227
  <p class="hint" id="machine-later" role="status" hidden><span id="machine-later-text"></span> · <button type="button" id="machine-later-cancel" class="inline">cancel</button></p>
228
228
  <div class="row"><button type="submit" id="machine-size-apply">Apply...</button></div>
229
229
  </form>
230
+ <!-- ITS SHARED MACHINE'S OWN MEMORY (#221): the whole machine restarted, every conversation in it. -->
231
+ <form id="shared-size" autocomplete="off" hidden>
232
+ <label for="shared-memory">Shared machine memory</label>
233
+ <select id="shared-memory"></select>
234
+ <p class="hint" id="shared-size-hint">Restarts every conversation in it</p>
235
+ <div class="row"><button type="submit" id="shared-size-apply">Change...</button></div>
236
+ </form>
230
237
  <div id="work-box">
231
238
  <div class="panel-top"><b>Where the tool works</b></div>
232
239
  <p id="work-now" class="hint"><span><span id="work-now-text"></span></span><span id="work-now-why" class="tip" hidden></span></p>
@@ -1439,7 +1446,7 @@
1439
1446
  <span class="sub-head">Where it lives</span>
1440
1447
  <div id="newconv-where" class="pick two" role="radiogroup" aria-label="Where it lives">
1441
1448
  <button type="button" role="radio" data-where="own" aria-checked="true"><b>Its own machine</b><small>All to itself</small></button>
1442
- <button type="button" role="radio" data-where="shared" aria-checked="false"><b>A shared machine</b><small>Lighter. For assistants</small></button>
1449
+ <button type="button" role="radio" data-where="shared" aria-checked="false"><b>A shared machine</b><small>Trial · lighter, for assistants</small></button>
1443
1450
  </div>
1444
1451
  <div class="set-row" id="newconv-machine-row" hidden><div class="set-what"><label for="newconv-machine">Machine</label><small>An existing one, or a new name</small><span id="newconv-machine-error" class="err" role="alert" hidden></span></div><div class="set-control"><input id="newconv-machine" maxlength="32" list="machine-names" placeholder="assistants" spellcheck="false" autocapitalize="off" autocomplete="off"><datalist id="machine-names"></datalist></div></div>
1445
1452
  <div class="set-row" id="newconv-machine-mb-row" hidden><div class="set-what"><label for="newconv-machine-mb">Its memory</label><small>Shared by the conversations in it</small></div><div class="set-control"><select id="newconv-machine-mb"><option value="2048">2 GB</option><option value="4096" selected>4 GB</option><option value="6144">6 GB</option><option value="8192">8 GB</option><option value="12288">12 GB</option><option value="16384">16 GB</option></select></div></div>
package/web/style.css CHANGED
@@ -498,9 +498,9 @@ details.chapter.reached { outline: 2px solid var(--brass); outline-offset: 2px;
498
498
  .facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0; }
499
499
  .facts dt { color: var(--ink2); }
500
500
  .facts dd { margin: 0; overflow-wrap: anywhere; }
501
- #machine-size { display: flex; flex-direction: column; gap: 6px; max-width: 30rem; }
502
- #machine-size label { font-size: .8125rem; color: var(--ink2); }
503
- #machine-size select { width: 100%; min-height: 40px; font: .875rem var(--sans); color: var(--ink); background-color: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 6px 8px; }
501
+ #machine-size, #shared-size { display: flex; flex-direction: column; gap: 6px; max-width: 30rem; }
502
+ #machine-size label, #shared-size label { font-size: .8125rem; color: var(--ink2); }
503
+ #machine-size select, #shared-size select { width: 100%; min-height: 40px; font: .875rem var(--sans); color: var(--ink); background-color: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 6px 8px; }
504
504
  .health-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
505
505
  .health-lines li { padding-left: 1.3em; position: relative; }
506
506
  .health-lines li::before { content: ""; position: absolute; left: .2em; top: .45em; width: .55em; height: .55em; border-radius: 50%; background: var(--ok); }
@@ -1909,10 +1909,11 @@ button.tip-btn:hover, button.tip-btn[aria-expanded="true"] { color: var(--brass-
1909
1909
  :is(#settings, #panel) .chapter-body .panel-top { border: 0; }
1910
1910
  :is(#settings, #panel) .chapter-body .panel-top > b { font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
1911
1911
  /* The machine's size: each a row, its name on the left, its choice on the right. */
1912
- #panel #machine-size { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 16rem); gap: 10px 16px; align-items: center; max-width: none; }
1913
- #panel #machine-size > label { font-size: .875rem; font-weight: 600; color: var(--ink); }
1914
- #panel #machine-size > :is(p, .row) { grid-column: 1 / -1; }
1915
- #panel #machine-size > .row { justify-content: flex-end; }
1912
+ #panel :is(#machine-size, #shared-size) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 16rem); gap: 10px 16px; align-items: center; max-width: none; }
1913
+ #panel :is(#machine-size, #shared-size) > label { font-size: .875rem; font-weight: 600; color: var(--ink); }
1914
+ #panel :is(#machine-size, #shared-size) > :is(p, .row) { grid-column: 1 / -1; }
1915
+ #panel :is(#machine-size, #shared-size) > .row { justify-content: flex-end; }
1916
+ #shared-size[hidden] { display: none; }
1916
1917
  @media (max-width: 560px) { #panel #machine-size { grid-template-columns: minmax(0, 1fr); } }
1917
1918
  /* A chapter whose body is one block (Updates, Network): its pieces are the rows, not the block. */
1918
1919
  :is(#settings, #panel) .chapter-body > :is(#updates, #wifi) { padding: 0; }