clavarium 0.2.126-beta.1 → 0.2.127-beta.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.
@@ -1137,6 +1137,17 @@ case "$AREA $VERB" in
1137
1137
  if [ -d "$at" ] && [ ! -L "$at" ]; then rmdir "$at" 2>/dev/null || true; fi
1138
1138
  if [ -f "$img" ] && [ ! -L "$img" ]; then mv -n "$img" "$MNT/removed/$1-work-$(date -u +%Y%m%dT%H%M%SZ)-$$.img"; fi
1139
1139
  exit 0 ;;
1140
+ "work erase")
1141
+ # Deleted for good, or its machine reset, BY ITS OWNER, after a confirmation that names the conversation
1142
+ # (01-11): its work disk is ERASED, not put aside. Only that one file and its mount point.
1143
+ [ $# -eq 1 ] || usage; is_name "$1" || refuse "not a conversation name: $1"
1144
+ img="$MNT/work-disks/$1.img"; at="$MNT/work/$1"
1145
+ if [ "$SAY" = "yes" ]; then printf 'disk %s erased\n' "$img"; exit 0; fi
1146
+ kept work; kept work-disks
1147
+ if mountpoint -q "$at"; then umount "$at" || refuse "the work disk of $1 is in use"; fi
1148
+ if [ -d "$at" ] && [ ! -L "$at" ]; then rmdir "$at" 2>/dev/null || true; fi
1149
+ if [ -f "$img" ] && [ ! -L "$img" ]; then rm -f -- "$img"; fi
1150
+ exit 0 ;;
1140
1151
  "view make")
1141
1152
  [ $# -eq 1 ] || usage; is_name "$1" || refuse "not a folder name: $1"
1142
1153
  folder_of "$1"; kept views
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "clavarium",
3
- "version": "0.2.126-beta.1",
3
+ "version": "0.2.127-beta.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "clavarium",
9
- "version": "0.2.126-beta.1",
9
+ "version": "0.2.127-beta.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.126-beta.1",
3
+ "version": "0.2.127-beta.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
@@ -14,6 +14,8 @@
14
14
  * POST /api/conversations/<name>/health/seen what it says now no longer calls its owner (Needs you)
15
15
  * POST /api/conversations/<name>/exit-report why its tool ended: { now (read in its machine, if it runs), last (kept at its end) }
16
16
  * POST /api/conversations/<name>/archive
17
+ * POST /api/conversations/<name>/erase {confirm: <its name>}: deleted for good -- its machine and its work files
18
+ * POST /api/conversations/<name>/rebuild {reset?, confirm?}: built again; reset (confirm: its name) for a working one too
17
19
  * POST /api/conversations/<name>/ask-first {on}: its tool asks before acting (true), or acts without asking in its machine (false, the default), from its next start
18
20
  * POST /api/conversations/<name>/resume {on}: its tool takes up its last session when it starts (true), or starts fresh
19
21
  * POST /api/conversations/<name>/terminal/repair its terminal does not come though its machine runs: repaired
@@ -710,10 +712,16 @@ export async function handleApi(request, response, conversations, headers, resou
710
712
  return send(200, await repair(conversation)), true;
711
713
  }
712
714
  const again = /^\/api\/conversations\/([^/]+)\/rebuild$/.exec(pathname);
713
- if (again) return send(202, await conversations.rebuild(decodeURIComponent(again[1]))), true;
714
- const action = /^\/api\/conversations\/([^/]+)\/(sleep|archive)$/.exec(pathname);
715
+ if (again) {
716
+ const reset = body?.reset === true;
717
+ if (reset && String(body?.confirm ?? '') !== decodeURIComponent(again[1])) throw new Refusal(400, 'Type the name of the conversation to reset it.');
718
+ return send(202, await conversations.rebuild(decodeURIComponent(again[1]), { reset })), true;
719
+ }
720
+ const action = /^\/api\/conversations\/([^/]+)\/(sleep|archive|erase)$/.exec(pathname);
721
+ if (action?.[2] === 'erase' && String(body?.confirm ?? '') !== decodeURIComponent(action[1])) throw new Refusal(400, 'Type the name of the conversation to delete it for good.');
715
722
  if (!action) return send(404, { error: 'Not found.' }), true;
716
723
  await conversations[action[2]](decodeURIComponent(action[1]));
724
+ if (action[2] === 'erase') action[2] = 'archive'; /* what it leaves behind is forgotten as for an archive */
717
725
  if (action[2] === 'archive') resources?.forget(decodeURIComponent(action[1]));
718
726
  if (action[2] === 'archive') gitKeeper?.forgetConversation(decodeURIComponent(action[1]));
719
727
  if (action[2] === 'archive') sharing?.devices.forget(decodeURIComponent(action[1]));
@@ -310,7 +310,9 @@ export class Capacity {
310
310
  const f = this.#figures(await this.room({ fresh: true }).catch(() => null));
311
311
  if (!f) return [];
312
312
  const awake = new Set(this.#conversations.awake?.() ?? []);
313
- const holding = f.machines.filter((m) => m.name && !m.shelf && !awake.has(m.name) && m.rssMb >= RECLAIM_MIN_MB);
313
+ /* Only a machine put to sleep: one being built is not awake either, yet must never be touched. */
314
+ const asleep = this.#conversations.asleep ? new Set(this.#conversations.asleep()) : null;
315
+ const holding = f.machines.filter((m) => m.name && !m.shelf && !awake.has(m.name) && (!asleep || asleep.has(m.name)) && m.rssMb >= RECLAIM_MIN_MB);
314
316
  if (!holding.length) return [];
315
317
  const now = this.#now();
316
318
  const at = this.#store.get('reclaim')?.at ?? {};
@@ -383,23 +383,27 @@ export class Conversations {
383
383
  on the old machine's disk is not brought back: nothing here can.
384
384
  A conversation that has a working machine is refused -- this is not a
385
385
  reset button. */
386
- async rebuild(name) {
386
+ /* `reset` (01-11, its owner's ask, confirmed by typing its name): a working machine too -- deleted with
387
+ everything on it and its work files, and built anew; its settings and what is attached to it stay. */
388
+ async rebuild(name, { reset = false } = {}) {
387
389
  const c = this.#store.get(name);
388
390
  if (!c) throw new Refusal(404, 'No such conversation.');
389
- if (c.phase === 'building') throw new Refusal(409, 'This conversation is still being built.');
391
+ if (c.phase === 'building' && !reset) throw new Refusal(409, 'This conversation is still being built.');
390
392
  const tool = this.#tools.find((t) => t.id === c.tool);
391
393
  if (!tool) throw new Refusal(400, 'The tool of this conversation is no longer offered.');
392
394
  const state = await this.#vms.state(name, { fresh: true });
393
- if (state !== undefined && c.phase !== 'failed') throw new Refusal(409, 'This conversation has its machine: there is nothing to build again.');
394
- await this.room({ kind: 'create', name, memoryMb: c.memoryMb });
395
+ if (state !== undefined && c.phase !== 'failed' && !reset) throw new Refusal(409, 'This conversation has its machine: there is nothing to build again.');
396
+ /* A reset replaces its own machine: the room it takes is given back first. */
397
+ if (!(reset && state !== undefined)) await this.room({ kind: 'create', name, memoryMb: c.memoryMb });
395
398
  this.#cancelStop(name);
396
399
  this.drop(name);
397
400
  /* Marked first: two requests cannot both start a build. */
398
401
  const now = new Date().toISOString();
399
402
  this.#store.patch(name, { phase: 'building', step: 'Starting the machine', error: undefined, asleep: false, buildingSince: now, progress: buildProgress(now) });
400
403
  this.built = (async () => {
401
- /* What a failed build left behind is cleared away first. */
404
+ /* What a failed build left behind is cleared away first; a reset, its files too. */
402
405
  if (state !== undefined) await this.#vms.remove(name);
406
+ if (reset && c.work === 'kept') await this.#vms.workErase(name);
403
407
  return this.#build(name, tool, c.memoryMb, true);
404
408
  })();
405
409
  return this.#store.get(name);
@@ -1223,6 +1227,9 @@ export class Conversations {
1223
1227
 
1224
1228
  /* The conversations whose machine should be running: built, not asleep. */
1225
1229
  awake() { return this.#store.all().filter((c) => c.phase === 'ready' && c.asleep !== true).map((c) => c.name); }
1230
+ /* Put to sleep, and nothing else: not one being built (02-11: a reset machine was taken for a sleeper and
1231
+ suspended mid-build), not a failed one. */
1232
+ asleep() { return this.#store.all().filter((c) => c.phase === 'ready' && c.asleep === true).map((c) => c.name); }
1226
1233
 
1227
1234
  /* Whether the machine of a conversation runs right now. */
1228
1235
  async running(name) { return (await this.#vms.state(name)) === 'Running'; }
@@ -1257,6 +1264,21 @@ export class Conversations {
1257
1264
  if (kept) await this.#vms.workAside(name);
1258
1265
  }
1259
1266
 
1267
+ /* DELETED FOR GOOD (01-11, its owner's ask, confirmed by typing its name): as archived, but its work is
1268
+ erased, not put aside. Whatever state its machine is in -- one that never started too. */
1269
+ async erase(name) {
1270
+ if (!this.#store.get(name)) throw new Refusal(404, 'No such conversation.');
1271
+ this.#cancelStop(name);
1272
+ this.drop(name);
1273
+ const kept = this.#store.get(name).work === 'kept';
1274
+ this.#store.remove(name);
1275
+ if (await this.#vms.state(name, { fresh: true }) !== undefined) await this.#vms.remove(name);
1276
+ if (kept) {
1277
+ const r = await this.#vms.workErase(name);
1278
+ if (r?.code) throw new Refusal(500, `Its machine is deleted, but its files could not be erased: ${firstLine(r.stderr) || `exit ${r.code}`}`);
1279
+ }
1280
+ }
1281
+
1260
1282
  #cancelStop(name) {
1261
1283
  const timer = this.#timers.get(name);
1262
1284
  if (timer) { clearTimeout(timer); this.#timers.delete(name); }
package/server/vm.mjs CHANGED
@@ -151,6 +151,8 @@ export class Vms {
151
151
  return r.code === 0 && m ? { disk: Number(m[1]), host: Number(m[2]) } : undefined;
152
152
  }
153
153
  workAside(conversation) { vmName(conversation); return this.run(['work', 'aside', conversation]); }
154
+ /* Deleted for good, or reset, by its owner: its work disk erased, not put aside. */
155
+ workErase(conversation) { vmName(conversation); return this.run(['work', 'erase', conversation]); }
154
156
 
155
157
  /* The tools folder (see toolbox.mjs), shown read-only at /tools. */
156
158
  mountTools(conversation, uid, gid) {
package/web/app.js CHANGED
@@ -849,6 +849,7 @@
849
849
  const c = conversations.find((x) => x.name === current);
850
850
  const usable = Boolean(c) && c.phase === 'ready' && !holds(c);
851
851
  $('archive').hidden = !c;
852
+ $('reset-machine').hidden = $('erase-conversation').hidden = !c || DEVICE;
852
853
  $('files-open').hidden = $('share').hidden = !usable;
853
854
  /* Given its chat alone: the files of the chat open from the chat; Files holds only what was given to the device itself. */
854
855
  if (noTerminal()) $('files-open').hidden = deviceShared.length === 0;
@@ -1050,7 +1051,43 @@
1050
1051
  const plain = (text) => String(text ?? '').normalize('NFD').replace(/[̀-ͯ]/g, '').toLowerCase();
1051
1052
  const matches = (c) => [shownName(c), c.name, c.group, c.toolLabel].some((x) => plain(x).includes(plain(query)));
1052
1053
  const byRank = (a, b) => (a.rank ?? 0) - (b.rank ?? 0);
1054
+ /* A GROUP FIELD (01-11): typed freely, or chosen from the groups there are -- a ▾ beside it opens them all
1055
+ (a datalist alone shows only what matches what is typed, and not on every browser). */
1056
+ function groupChooser(input, values) {
1057
+ if (!input || input.dataset.chooser) return;
1058
+ input.dataset.chooser = 'true';
1059
+ const wrap = document.createElement('span'); wrap.className = 'chooser';
1060
+ input.replaceWith(wrap); wrap.append(input);
1061
+ const open = document.createElement('button'); open.type = 'button'; open.className = 'chooser-open'; open.textContent = '▾';
1062
+ open.setAttribute('aria-label', 'Existing groups'); open.setAttribute('aria-haspopup', 'listbox'); open.setAttribute('aria-expanded', 'false');
1063
+ const list = document.createElement('div'); list.className = 'chooser-list'; list.setAttribute('role', 'listbox'); list.hidden = true;
1064
+ const close = () => { list.hidden = true; open.setAttribute('aria-expanded', 'false'); };
1065
+ open.addEventListener('click', (event) => {
1066
+ event.stopPropagation();
1067
+ if (!list.hidden) { close(); return; }
1068
+ const all = values();
1069
+ list.replaceChildren(...(all.length ? all : [null]).map((v) => {
1070
+ if (v === null) { const none = document.createElement('div'); none.className = 'chooser-none'; none.textContent = 'No group yet: type a name.'; return none; }
1071
+ const o = document.createElement('button'); o.type = 'button'; o.className = 'chooser-option'; o.setAttribute('role', 'option'); o.textContent = v;
1072
+ if (v === input.value) o.setAttribute('aria-selected', 'true');
1073
+ o.addEventListener('click', () => { input.value = v; input.dispatchEvent(new Event('input', { bubbles: true })); close(); input.focus(); });
1074
+ return o;
1075
+ }));
1076
+ list.hidden = false; open.setAttribute('aria-expanded', 'true');
1077
+ list.querySelector('[aria-selected="true"], .chooser-option')?.focus();
1078
+ });
1079
+ list.addEventListener('keydown', (event) => {
1080
+ const opts = [...list.querySelectorAll('.chooser-option')]; const i = opts.indexOf(document.activeElement);
1081
+ if (event.key === 'Escape') { close(); open.focus(); event.preventDefault(); }
1082
+ if (event.key === 'ArrowDown' && i < opts.length - 1) { opts[i + 1].focus(); event.preventDefault(); }
1083
+ if (event.key === 'ArrowUp' && i > 0) { opts[i - 1].focus(); event.preventDefault(); }
1084
+ event.stopPropagation();
1085
+ });
1086
+ document.addEventListener('click', (event) => { if (!wrap.contains(event.target)) close(); });
1087
+ wrap.append(open, list);
1088
+ }
1053
1089
  const groupsInOrder = () => [...new Set(conversations.filter((c) => c.group).sort((a, b) => (a.groupRank ?? 0) - (b.groupRank ?? 0)).map((c) => c.group))];
1090
+ groupChooser($('group-name'), groupsInOrder); groupChooser($('newconv-group'), groupsInOrder);
1054
1091
  /* WHEN IT WAS LAST USED: what was said in its chat, and what its agent said it does (Parley) -- never what
1055
1092
  its terminal shows. A tool with no chat (a plain terminal): the keys typed in it by hand. */
1056
1093
  const activityOf = (c) => Math.max(...[c.talk?.lastAt, c.talk?.stepAt, c.talk ? null : c.lastActiveAt, c.createdAt].map((x) => (x ? new Date(x).getTime() : 0)));
@@ -1134,6 +1171,15 @@
1134
1171
  keepFolded(); paint();
1135
1172
  });
1136
1173
  box.append(head);
1174
+ /* A conversation added right here, in this group (01-11): the same form as anywhere, its group filled. */
1175
+ if (!DEVICE && !String(g).startsWith('\u0001')) {
1176
+ const add = document.createElement('button'); add.type = 'button'; add.className = 'group-add'; add.textContent = '+';
1177
+ const where = g === NONE ? '' : g;
1178
+ add.title = where ? `New conversation in ${label}` : 'New conversation';
1179
+ add.setAttribute('aria-label', add.title);
1180
+ add.addEventListener('click', (event) => { event.stopPropagation(); void openNew({ group: where }); });
1181
+ box.append(add);
1182
+ }
1137
1183
  if (open) { const body = document.createElement('div'); body.className = 'group-body'; body.append(...inside.map((c) => itemButton(c))); unfolding(g, [body]); box.append(body); }
1138
1184
  return box;
1139
1185
  }
@@ -1501,9 +1547,10 @@
1501
1547
  b.addEventListener('click', () => { for (const other of $('newconv-work').querySelectorAll('[data-work]')) other.setAttribute('aria-checked', String(other === b)); });
1502
1548
  }
1503
1549
  const newOnDisk = () => $('newconv-work').querySelector('[data-work="disk"]').getAttribute('aria-checked') === 'true';
1504
- async function openNew({ push = true } = {}) {
1550
+ async function openNew({ push = true, group = null } = {}) {
1505
1551
  if (DEVICE) return;
1506
1552
  newError('', '');
1553
+ if (group !== null) $('newconv-group').value = group;
1507
1554
  if (place !== 'new') {
1508
1555
  /* From the map: a step over it, and back to it. Otherwise a place of its own. */
1509
1556
  if (place === 'access' && push) {
@@ -9135,6 +9182,36 @@
9135
9182
  catch (error) { show(error.message, 'Close', enter); }
9136
9183
  }
9137
9184
  $('archive').addEventListener('click', () => { void archive(false); });
9185
+ /* RESET or DELETE FOR GOOD (01-11): whatever state its machine is in -- one that never started too. Both
9186
+ erase, so its name is typed first; nothing is done until it matches. */
9187
+ let sureAction = null;
9188
+ function askSure(what, button, action) {
9189
+ const c = conversations.find((x) => x.name === current); if (!c) return;
9190
+ sureAction = { name: c.name, shown: shownName(c), action };
9191
+ $('sure-what').textContent = `${what} Type « ${shownName(c)} » to confirm.`;
9192
+ $('sure-go').textContent = button; $('sure-go').disabled = true; $('sure-name').value = '';
9193
+ $('sure-form').hidden = false; focusField($('sure-name'));
9194
+ }
9195
+ const sureClose = () => { sureAction = null; $('sure-form').hidden = true; };
9196
+ $('sure-name').addEventListener('input', () => { $('sure-go').disabled = !sureAction || $('sure-name').value.trim() !== sureAction.shown; });
9197
+ $('sure-cancel').addEventListener('click', sureClose);
9198
+ $('sure-form').addEventListener('submit', (event) => {
9199
+ event.preventDefault();
9200
+ if (!sureAction || $('sure-name').value.trim() !== sureAction.shown) return;
9201
+ const { name, action } = sureAction; sureClose(); void action(name);
9202
+ });
9203
+ $('reset-machine').addEventListener('click', () => askSure('Reset: its machine and its files are erased, and a new empty machine is built. Its settings and attached assets stay.', 'Reset', async (name) => {
9204
+ leavePanel(); disconnect();
9205
+ say('building', 'connecting'); show('Resetting: a new machine is being built...');
9206
+ try { await post(`${API}/conversations/${encodeURIComponent(name)}/rebuild`, { reset: true, confirm: name }); await refresh(); enter(); }
9207
+ catch (error) { show(error.message, 'Close', enter); }
9208
+ }));
9209
+ $('erase-conversation').addEventListener('click', () => askSure('Delete for good: its machine and its files are erased; nothing is put aside. Attached assets stay where they are.', 'Delete for good', async (name) => {
9210
+ leavePanel(); disconnect();
9211
+ say('archiving', 'connecting'); show('Deleting for good...');
9212
+ try { await post(`${API}/conversations/${encodeURIComponent(name)}/erase`, { confirm: name }); await refresh(); select(''); }
9213
+ catch (error) { show(error.message, 'Close', enter); }
9214
+ }));
9138
9215
  /* "<" of a conversation (a phone): the list, as Back does. */
9139
9216
  $('back').addEventListener('click', () => { if (!nav.close('room')) select(''); });
9140
9217
 
package/web/index.html CHANGED
@@ -351,10 +351,11 @@
351
351
  </div>
352
352
  </details>
353
353
  <details class="chapter" id="chapter-advanced" data-chapter="advanced">
354
- <summary><span class="chapter-title">Advanced</span><span class="chapter-about">Archive it.</span></summary>
354
+ <summary><span class="chapter-title">Advanced</span><span class="chapter-about">Archive, reset or delete it.</span></summary>
355
355
  <div class="chapter-body">
356
- <p class="hint">Deletes its machine and its disk. Attached folders are kept; its work folder is put aside.</p>
357
- <div class="row" id="conversation-actions"><button type="button" id="archive" hidden>Archive...</button></div>
356
+ <p class="hint">Archive: its machine is deleted; its files are put aside on the server. Reset: a new machine, empty; settings and attached assets stay. Delete for good: nothing is kept.</p>
357
+ <div class="row" id="conversation-actions"><button type="button" id="archive" hidden>Archive...</button><button type="button" id="reset-machine" class="danger" hidden>Reset...</button><button type="button" id="erase-conversation" class="danger" hidden>Delete for good...</button></div>
358
+ <form id="sure-form" class="row sure" autocomplete="off" hidden><label for="sure-name" id="sure-what"></label><input id="sure-name" spellcheck="false" autocomplete="off"><button type="submit" id="sure-go" class="danger" disabled></button><button type="button" id="sure-cancel">Cancel</button></form>
358
359
  </div>
359
360
  </details>
360
361
  </div>
package/web/style.css CHANGED
@@ -1384,6 +1384,13 @@ select.pill { appearance: auto; }
1384
1384
  .group { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
1385
1385
  .group-head { display: flex; align-items: center; gap: 6px; width: 100%; text-align: left; padding: 6px 8px; background: transparent; border-color: transparent; font-weight: 600; color: var(--ink2); }
1386
1386
  .group-head:hover { border-color: var(--line); }
1387
+ /* + on a group: at the right of its head, shown on hover or focus; always there where there is no hover (touch). */
1388
+ .group { position: relative; }
1389
+ .group-add { position: absolute; top: 2px; right: 4px; width: 28px; height: 28px; padding: 0; display: grid; place-items: center; border-radius: 8px; font-size: 1.1rem; line-height: 1; color: var(--ink2); background: transparent; border-color: transparent; opacity: 0; transition: opacity .12s; }
1390
+ .group:hover > .group-add, .group-add:focus-visible { opacity: 1; }
1391
+ .group-add:hover { border-color: var(--line); color: var(--ink, inherit); }
1392
+ @media (hover: none) { .group-add { opacity: .7; } }
1393
+ .group:has(> .group-add) > .group-head { padding-right: 36px; }
1387
1394
  .group-head .caret { display: inline-block; width: 1em; transition: transform .15s; }
1388
1395
  .group-head[aria-expanded="true"] .caret { transform: rotate(90deg); }
1389
1396
  .group-head .group-name { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink, inherit); }
@@ -2081,3 +2088,18 @@ body.as-dragging #assets-rows .as-row { touch-action: none; }
2081
2088
  .box-wifi-known { display: flex; flex-wrap: wrap; gap: 6px; }
2082
2089
  .box-wifi-net { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border: 1px solid var(--line, #ccc); border-radius: 999px; font-size: 0.85em; }
2083
2090
  .box-wifi-add { width: 100%; }
2091
+
2092
+ /* A group field: typed, or chosen from the list (▾). */
2093
+ .chooser { position: relative; display: inline-flex; align-items: stretch; min-width: 0; flex: 1 1 auto; }
2094
+ .chooser > input { flex: 1 1 auto; min-width: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
2095
+ .chooser-open { flex: none; padding: 0 10px; border-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; color: var(--ink2); }
2096
+ .chooser-list { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; right: 0; max-height: 240px; overflow: auto; display: flex; flex-direction: column; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
2097
+ .chooser-option { text-align: left; padding: 8px 10px; border-color: transparent; background: transparent; border-radius: 6px; color: var(--ink, inherit); }
2098
+ .chooser-option:hover, .chooser-option:focus-visible { background: var(--bar); }
2099
+ .chooser-option[aria-selected="true"] { font-weight: 600; }
2100
+ .chooser-none { padding: 8px 10px; color: var(--ink2); }
2101
+
2102
+ /* Typing the conversation's name before an erasing action. */
2103
+ .sure { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
2104
+ .sure label { flex: 1 1 100%; color: var(--ink2); }
2105
+ .sure input { flex: 1 1 12em; min-width: 0; }