clavarium 0.2.139-beta.1 → 0.2.140-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.
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "clavarium",
3
- "version": "0.2.139-beta.1",
3
+ "version": "0.2.140-beta.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "clavarium",
9
- "version": "0.2.139-beta.1",
9
+ "version": "0.2.140-beta.1",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@xterm/addon-fit": "^0.11.0",
13
13
  "@xterm/xterm": "^6.0.0",
14
14
  "clavarium-binder": "0.1.58-next.1",
15
15
  "clavarium-docket": "0.1.2-next.2",
16
- "clavarium-parley": "0.17.44-next.1",
16
+ "clavarium-parley": "0.17.47-next.1",
17
17
  "clavarium-tether": "0.1.0-next.48",
18
18
  "mammoth": "1.13.0",
19
19
  "mermaid": "11.17.2",
@@ -787,9 +787,9 @@
787
787
  }
788
788
  },
789
789
  "node_modules/clavarium-parley": {
790
- "version": "0.17.44-next.1",
791
- "resolved": "https://registry.npmjs.org/clavarium-parley/-/clavarium-parley-0.17.44-next.1.tgz",
792
- "integrity": "sha512-2ISMxfdSZbZzht4n5ug3fRRFHyFPHlZYfVqDZXGr/fxpD1pmF9UXRnjDX4nGmaRegS1AtCGtDI2D3w5HXvL9Yw==",
790
+ "version": "0.17.47-next.1",
791
+ "resolved": "https://registry.npmjs.org/clavarium-parley/-/clavarium-parley-0.17.47-next.1.tgz",
792
+ "integrity": "sha512-Pck1QKcpF3MG7a/h1YQbmUDtBBOsAVfprwKe3ZuL7wcINu5mQ3nxHoYmYO8aZTLoqo3P3UF0JV13iHFvTZHt1Q==",
793
793
  "license": "MIT",
794
794
  "bin": {
795
795
  "parley": "bin/parley.mjs",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clavarium",
3
- "version": "0.2.139-beta.1",
3
+ "version": "0.2.140-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.",
@@ -46,7 +46,7 @@
46
46
  "@xterm/xterm": "^6.0.0",
47
47
  "clavarium-binder": "0.1.58-next.1",
48
48
  "clavarium-docket": "0.1.2-next.2",
49
- "clavarium-parley": "0.17.44-next.1",
49
+ "clavarium-parley": "0.17.47-next.1",
50
50
  "clavarium-tether": "0.1.0-next.48",
51
51
  "mammoth": "1.13.0",
52
52
  "mermaid": "11.17.2",
package/server/boxes.mjs CHANGED
@@ -134,7 +134,9 @@ export function sentencesOf(text) {
134
134
 
135
135
  /* The words said while an answer is awaited (« Hmm… », « ça prend plus de temps ») -- off (01-11: heard all
136
136
  the time while the box misheard, they made it worse; back once the sound path is sound). */
137
- export const WAITING_WORDS = false;
137
+ /* 03-11: on again, but only the sentence made for THIS request (never a stock phrase), and only when the agent has
138
+ said nothing within THINKING_AFTER_MS. */
139
+ export const WAITING_WORDS = true;
138
140
  /* WHAT THE BOX MEASURED, its sentence ended (firmware 0.1.38): how long, when a voice was heard, the bar it
139
141
  used -- beside the message, with what reached this side. */
140
142
  export function endOf(ep, reason = '') {
@@ -151,7 +153,7 @@ export function endOf(ep, reason = '') {
151
153
  return parts.join(' · ');
152
154
  }
153
155
  /* 02-11: the light turning says it is at work; a word only when it really takes long. */
154
- export const THINKING_AFTER_MS = 15_000;
156
+ export const THINKING_AFTER_MS = 5_000;
155
157
  export const LONGER_AFTER_MS = 12_000;
156
158
  export const THINKING = ['Hmm…', 'Voyons…', 'Hmm, voyons voir…'];
157
159
  /* WHY A BOX LISTENED, in a few words beside the message (01-11): what woke it (and the wake word's score), and
@@ -524,7 +526,7 @@ export class Boxes {
524
526
  /* Made at once, used if the answer is still not there: a reaction to THIS sentence, in its language. */
525
527
  let made = null;
526
528
  this.#react(text).then((t) => { made = t; }).catch(() => {});
527
- link.thinkingA = setTimeout(() => { void say(made || THINKING[Math.floor(Math.random() * THINKING.length)]); }, THINKING_AFTER_MS);
529
+ link.thinkingA = setTimeout(() => { if (made) void say(made); }, THINKING_AFTER_MS);
528
530
  /* One word of waiting, not two (02-11: « je regarde, un instant » again and again). */
529
531
  link.thinkingA.unref?.();
530
532
  }
@@ -535,10 +537,13 @@ export class Boxes {
535
537
  const plain = forSpeech(text);
536
538
  /* 02-11: not even « Je regarde, un instant » in its place -- said each time the agent wrote what it does, it
537
539
  came back again and again. A long or technical one is not said at all. */
538
- const words = doing && (plain.length > 70 || /[\d:;/()[\]→=_]/.test(plain)) ? '' : plain;
540
+ /* Sent to a box on purpose (03-11: "dis au plus tôt ce que tu vas faire"): said as it is written. */
541
+ const aimed = doing && Array.isArray(to) && to.length > 0;
542
+ const words = doing && !aimed && (plain.length > 70 || /[\d:;/()[\]→=_]/.test(plain)) ? '' : plain;
539
543
  if (!words) return;
540
544
  let boxes;
541
- if (doing) {
545
+ if (aimed) boxes = [...this.#links.values()].filter((l) => l.box().conversation === conversation && to.includes(l.box().id));
546
+ else if (doing) {
542
547
  /* "I'm looking in the calendar": once per sentence heard, on the box that heard it, within two minutes. */
543
548
  /* 02-11: what it really does, in its words (« je regarde dans ton agenda »); never a stock phrase. */
544
549
  boxes = [...this.#links.values()].filter((l) => l.box().conversation === conversation && l.heardAt && !l.doingSaid && this.#now() - l.heardAt < DOING_WITHIN_MS);
@@ -570,7 +575,9 @@ export class Boxes {
570
575
  let pcm;
571
576
  try { pcm = await next; } catch (error) { this.#log(`voice box: no voice for the answer (${error.message})`); l.send({ t: 'cue', name: 'error' }); break; }
572
577
  if (i + 1 < parts.length) { next = this.#speak(parts[i + 1]); next.catch(() => {}); }
573
- l.play(pcm, i + 1 === parts.length && (question || chatting) ? 'listen' : null); /* a question is always listened after: an answer is expected */
578
+ /* Listened after only when what it says calls for an answer (03-11: "en fonction de la réponse"): the
579
+ agent says so by asking (parley ask), not the box by guessing. */
580
+ l.play(pcm, i + 1 === parts.length && (question || chatting) ? 'listen' : null);
574
581
  }
575
582
  }
576
583
  }
package/server/speech.mjs CHANGED
@@ -43,6 +43,8 @@ export const ELEVEN_VOICE = 'onwK4e9ZLuTAKqWW03F9'; /* "Daniel" */
43
43
  export const ELEVEN_MODEL = 'eleven_multilingual_v2';
44
44
  export const SPEED = 1.1; /* a little quicker than the voices' own pace: found slow on the real box (31-10) */
45
45
 
46
+ /* A moment before the main voice is asked again (a sentence it missed). */
47
+ export const AGAIN_MS = 700;
46
48
  export class Speech {
47
49
  #dir; #lang; #engine = null; #loading = null; #fetch; #log; #secret; #pocket; #pocketDown = 0;
48
50
 
@@ -104,9 +106,14 @@ export class Speech {
104
106
  /* Text -> PCM 16 kHz. */
105
107
  async speak(text) {
106
108
  /* Pocket first; failed, it rests five minutes and the next voice answers meanwhile. */
109
+ /* One voice from the start of an answer to its end (03-11: "tu as bougé de voix au milieu"): a sentence it
110
+ misses is asked of it once more, a moment later, before another voice says it. */
107
111
  if (this.#pocket && Date.now() - this.#pocketDown > 5 * 60_000) {
108
- try { const pcm = await this.#pocket.speak(text); if (pcm.length) return pcm; } catch (error) {
109
- if (!/getting ready/.test(error.message)) { this.#pocketDown = Date.now(); this.#log(`speech: Pocket TTS failed (${error.message}), another voice meanwhile`); }
112
+ for (let attempt = 0; attempt < 2; attempt++) {
113
+ try { const pcm = await this.#pocket.speak(text); if (pcm.length) return pcm; } catch (error) {
114
+ if (attempt === 1 && !/getting ready/.test(error.message)) { this.#pocketDown = Date.now(); this.#log(`speech: Pocket TTS failed (${error.message}), another voice meanwhile`); }
115
+ }
116
+ if (attempt === 0) await new Promise((r) => setTimeout(r, AGAIN_MS));
110
117
  }
111
118
  }
112
119
  const online = await this.#eleven(text);
package/server/talk.mjs CHANGED
@@ -294,7 +294,7 @@ export class Talk {
294
294
  /* What the tool says or asks: a voice box of this conversation may read it aloud (boxes.mjs). */
295
295
  if (event.type === 'agent-said' || event.type === 'agent-asked') this.#spoke(name, event.message?.text ?? '', Array.isArray(event.message?.to) ? event.message.to : null, { asked: event.type === 'agent-asked' });
296
296
  /* What it is doing: said by a box that was just spoken to, so nobody waits in silence. */
297
- if (event.type === 'agent-doing') this.#spoke(name, event.message?.text ?? '', null, { doing: true });
297
+ if (event.type === 'agent-doing') this.#spoke(name, event.message?.text ?? '', Array.isArray(event.message?.to) ? event.message.to : null, { doing: true });
298
298
  const words = texts(this.#lastLang, this.settings().own);
299
299
  if (event.type === 'agent-asked') this.#alert({ title: fill(words['alert-asks'], { name }), body: event.message.text ?? '', url: `/?c=${name}` });
300
300
  if (event.type === 'agent-status' && event.message.state === 'waiting') this.#alert({ title: fill(words['alert-waits'], { name }), body: event.message.text ?? '', url: `/?c=${name}` });
package/server/voice.mjs CHANGED
@@ -82,6 +82,8 @@ const PHANTOMS = [
82
82
  /^\s*[Ss]ous[- ]titr(?:age|es?)(?:\s+réalisés?)?\s+par\s+(?:\p{Lu}[\p{L}'-]*\s*){1,3}[.!]?\s*$/gu,
83
83
  /* YouTube endings, heard on a button press with nothing said (01-11: "Thank you for watching and see
84
84
  you in the next video!"): only when they are all of it. */
85
+ /* « There you go. » alone, on a near silence (03-11, 5 a.m., nobody spoke): only when it is all of it. */
86
+ /^\s*there you go[.!]?\s*$/giu,
85
87
  /^\s*(?:thank(?:s| you) (?:so much )?for watching[.!,]?\s*(?:(?:and )?see you (?:in the |on the )?next (?:video|time)[.!]?)?|see you (?:in the )?next (?:video|time)[.!]?|merci d'avoir regardé(?: cette vidéo)?\s*[.!]?(?:\s*[àa] bient[ôo]t[.!]?)?)\s*$/giu,
86
88
  /untertitel(?:ung)?\s+(?:im\s+auftrag\s+)?des\s+zdf(?:\s+für\s+funk)?,?\s*\d{0,4}[.!]?/giu,
87
89
  ];
@@ -227,8 +229,10 @@ export async function quickReaction(config, said, fetcher = fetch) {
227
229
  try {
228
230
  const r = await fetcher(`${base}/chat/completions`, {
229
231
  method: 'POST', redirect: 'error', headers: { 'content-type': 'application/json', authorization: `Bearer ${config.key}` }, signal: AbortSignal.timeout(3000),
230
- body: JSON.stringify({ model: REACTION_MODEL, temperature: 0.8, max_tokens: 24, messages: [
231
- { role: 'system', content: 'Someone just spoke to a voice assistant, which needs a few seconds to answer. Write ONE very short spoken reaction (2 to 7 words) in the SAME language as what they said, natural and warm, that acknowledges it without answering it and without promising anything: e.g. "Bonne question, voyons…", "Ah, intéressant, je regarde.", "Hmm, let me see…". No quotes, no emoji. Answer with the reaction only.' },
232
+ body: JSON.stringify({ model: REACTION_MODEL, temperature: 0.8, max_tokens: 40, messages: [
233
+ /* 03-11: what it is going to do, in context, with a little life ("je fouille dans tes mails, je reviens vers
234
+ toi"), never the same stock phrase. */
235
+ { role: 'system', content: 'Someone just spoke to a voice assistant, which needs some time to answer. Write ONE short spoken sentence (4 to 14 words) in the SAME language as what they said, saying what the assistant is now going to do for THIS request, warm and a little playful, never the same wording twice: e.g. "Je fouille dans tes mails, je reviens vers toi.", "Je jette un œil à ton agenda de demain.", "Let me dig through your files for that.". Never answer the question itself, never invent a result, never promise a time. No quotes, no emoji. Answer with the sentence only.' },
232
236
  { role: 'user', content: String(said).slice(0, 600) }] }),
233
237
  });
234
238
  if (!r.ok) return null;
package/web/style.css CHANGED
@@ -156,7 +156,7 @@ code { font-family: ui-monospace, Menlo, Consolas, monospace; }
156
156
  .path button { padding: 3px 8px; font-weight: 400; }
157
157
  #files-rows { display: flex; flex-direction: column; }
158
158
  .file { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; background: none; border-left: 0; border-right: 0; border-bottom: 0; border-radius: 0; text-align: left; font-weight: 400; width: 100%; }
159
- .file .kind { flex: 0 0 34px; font-size: .625rem; font-weight: 700; text-align: center; padding: 3px 0; border: 1px solid var(--line); border-radius: 5px; color: var(--ink2); }
159
+ .file .kind { flex: 0 0 34px; font-size: .625rem; font-weight: 600; text-align: center; padding: 3px 0; border: 1px solid var(--line); border-radius: 5px; color: var(--ink2); }
160
160
  .file[data-folder="true"] .kind { color: var(--brass-ink); border-color: var(--brass); }
161
161
  .file .label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
162
162
  .file small { color: var(--ink2); white-space: nowrap; }
@@ -382,7 +382,7 @@ footer button.careful { border-style: dashed; color: var(--ink2); }
382
382
  #viewer .md-switch button[aria-pressed="true"] { background: var(--bar); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
383
383
  #preview-body .md-view { display: block; container: none; min-height: 0; padding: 0 2px 24px; font-size: .9375rem; line-height: 1.55;
384
384
  --parley-bg: var(--panel); --parley-text: var(--ink); --parley-dim: var(--ink2); --parley-line: var(--line); --parley-agent: var(--bar); --parley-action: var(--brass-ink); --parley-measure: 80ch; }
385
- :root[data-theme="light"] #preview-body .md-view { --parley-action: #8a5d00; }
385
+ :root[data-theme="light"] #preview-body .md-view { --parley-action: var(--brass-ink); }
386
386
  #preview-body .md-view .parley-md { max-width: 80ch; }
387
387
  #preview-body .md-view .parley-md > * + * { margin-top: .8em; }
388
388
  #preview-body .md-view .parley-md > .parley-h { margin-top: 1.3em; }
@@ -403,7 +403,7 @@ footer button.careful { border-style: dashed; color: var(--ink2); }
403
403
  #answerer-fields label { display: block; margin: .7rem 0 .25rem; }
404
404
  #answerer-limit { width: 8rem; }
405
405
  #answerer-fields .row { margin-top: .8rem; }
406
- .needs-mark { display: block; color: var(--brass-ink); font-weight: 700; }
406
+ .needs-mark { display: block; color: var(--brass-ink); font-weight: 600; }
407
407
  .answered { border-top: 1px solid var(--line); padding: .4rem 0; }
408
408
  .answered[data-outcome="human"] > summary { color: var(--brass-ink); }
409
409
  .answered pre { max-height: 14rem; overflow: auto; font-size: .78rem; }
@@ -423,7 +423,7 @@ footer button.careful { border-style: dashed; color: var(--ink2); }
423
423
  #simple { position: absolute; inset: 0; z-index: 1; overflow: auto; background: var(--bg); padding: 14px 16px 24px; }
424
424
  #simple-state { margin: 0 0 12px; font-size: 1.05rem; font-weight: 600; }
425
425
  #simple-state[data-needs="true"] { color: var(--brass-ink); }
426
- #simple-say label { display: block; font-weight: 700; margin-bottom: 6px; }
426
+ #simple-say label { display: block; font-weight: 600; margin-bottom: 6px; }
427
427
  #simple-text { width: 100%; min-height: 4.2rem; resize: vertical; font: inherit; font-size: 1.05rem; padding: .6rem .7rem; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); }
428
428
  #simple-say .row { margin-top: 8px; }
429
429
  #simple-say button.primary { min-height: 46px; padding: 0 1.6rem; font-size: 1.05rem; }
@@ -439,7 +439,7 @@ footer button.careful { border-style: dashed; color: var(--ink2); }
439
439
  /* The conversation with the tool is drawn by Parley; here, only where it sits and this page's colours. */
440
440
  /* The chat takes the whole screen: its box stays at the bottom, the messages scroll above it. */
441
441
  /* On a light screen, brass text is too pale to read: the words in that colour are darker; the buttons keep it. */
442
- :root[data-theme="light"] #simple-thread { --parley-ask: #8a5d00; }
442
+ :root[data-theme="light"] #simple-thread { --parley-ask: var(--brass-ink); }
443
443
  #chat-turn { margin: auto; max-width: 40ch; text-align: center; padding: 32px 8px; }
444
444
  #chat-turn p { margin: 0 0 12px; font-size: 1rem; }
445
445
  #chat-turn p + p { color: var(--ink2); }
@@ -448,7 +448,7 @@ footer button.careful { border-style: dashed; color: var(--ink2); }
448
448
  #chat-off p { margin: 0 0 10px; font-size: 1rem; }
449
449
  #chat-off p + p { color: var(--ink2); }
450
450
  #simple[data-chat] { display: flex; flex-direction: column; overflow: hidden; padding: 10px 14px 12px; }
451
- #simple-thread { flex: 1; min-height: 0; --parley-bg: var(--bg); --parley-text: var(--ink); --parley-dim: var(--ink2); --parley-line: var(--line); --parley-agent: var(--panel); --parley-person: var(--bar); --parley-ask: var(--brass-ink); --parley-action: var(--brass-ink); --parley-on-action: #1b1405; --parley-live: var(--danger); }
451
+ #simple-thread { flex: 1; min-height: 0; --parley-bg: var(--bg); --parley-text: var(--ink); --parley-dim: var(--ink2); --parley-line: var(--line); --parley-agent: var(--panel); --parley-person: var(--bar); --parley-ask: var(--brass-ink); --parley-action: var(--brass-ink); --parley-on-action: var(--on-brass); --parley-live: var(--danger); }
452
452
 
453
453
 
454
454
  /* Private repositories: how the server gets in, and the keys made here. */
@@ -478,9 +478,9 @@ details.chapter > summary::before { content: none; }
478
478
  details.chapter > summary::after { content: ""; margin-left: auto; align-self: center; flex: 0 0 auto; width: 8px; height: 8px; border-right: 2px solid var(--ink2); border-bottom: 2px solid var(--ink2); transform: rotate(45deg); transition: transform .15s; margin-right: 4px; }
479
479
  details.chapter[open] > summary::after { transform: rotate(-135deg); }
480
480
  details.chapter[open] > summary { border-bottom: 1px solid var(--line); border-radius: 10px 10px 0 0; }
481
- .chapter-title { font-size: 1.0625rem; font-weight: 700; color: var(--ink); }
481
+ .chapter-title { font-size: 1.0625rem; font-weight: 600; color: var(--ink); }
482
482
  .chapter-about { font-size: .8125rem; font-weight: 400; color: var(--ink2); flex: 1 1 14rem; }
483
- .chapter-group { margin: 10px 0 -4px; font-size: .8125rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink2); }
483
+ .chapter-group { margin: 10px 0 -4px; font-size: .8125rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink2); }
484
484
  /* Reached by a link: said for a moment. */
485
485
  details.chapter.reached { outline: 2px solid var(--brass); outline-offset: 2px; }
486
486
  @media (prefers-reduced-motion: no-preference) { details.chapter { transition: outline-color .6s; } }
@@ -626,7 +626,7 @@ footer button[data-keys="backspace"] { display: none; }
626
626
  .lk-node.lk-c-conversation .lk-ic { background: var(--k-conv-bg); color: var(--k-conv); }
627
627
  .lk-node.lk-c-asset .lk-ic { background: var(--k-asset-bg); color: var(--k-asset); }
628
628
  .lk-tx { min-width: 0; display: flex; flex-direction: column; }
629
- .lk-nm { font-weight: 700; overflow-wrap: anywhere; line-height: 1.25; }
629
+ .lk-nm { font-weight: 600; overflow-wrap: anywhere; line-height: 1.25; }
630
630
  .lk-sb { font-size: .75rem; color: var(--ink2); }
631
631
  @media (hover: hover) { .lk-node:hover { border-color: var(--ink2); } .lk-node.can:hover { border-color: var(--k-pick); } }
632
632
  .lk-node.picked { border-color: var(--k-pick); box-shadow: 0 0 0 3px color-mix(in srgb, var(--k-pick) 25%, transparent); }
@@ -767,7 +767,7 @@ svg.lk-links path.temp { stroke: var(--k-pick); stroke-dasharray: 4 4; }
767
767
  .lk-shared { font-size: .75rem; font-weight: 600; color: var(--k-pick); border: 1px solid currentColor; border-radius: 999px; padding: 1px 8px; }
768
768
  .lk-check { margin: 0; padding-left: 1.1rem; font-size: .875rem; }
769
769
  .lk-check li[data-line="Refused"] b { color: var(--danger); }
770
- .lk-own { font-size: .6875rem; font-weight: 700; letter-spacing: .04em; color: #fff; background: var(--danger); border-radius: 999px; padding: 2px 8px; margin-right: 6px; }
770
+ .lk-own { font-size: .6875rem; font-weight: 600; letter-spacing: .04em; color: #fff; background: var(--danger); border-radius: 999px; padding: 2px 8px; margin-right: 6px; }
771
771
  .lk-more summary { cursor: pointer; color: var(--ink2); margin-top: 6px; }
772
772
 
773
773
  /* ---------- the three places: Conversations, Access, Settings ---------- */
@@ -862,7 +862,7 @@ svg.lk-links path.temp { stroke: var(--k-pick); stroke-dasharray: 4 4; }
862
862
  #access-map:has(#flows:not([hidden])) :is(#links-tabs, .map-bar .lk-switch) { display: none; }
863
863
  .lk-show { margin-right: 2px; }
864
864
  .lk-tabs button { min-height: 32px; padding: 4px 12px; }
865
- .seg button[aria-selected="true"] { font-weight: 700; background: var(--button, #222c38); box-shadow: inset 0 -2px 0 var(--brass), 0 0 0 1px var(--line); }
865
+ .seg button[aria-selected="true"] { font-weight: 600; background: var(--button, #222c38); box-shadow: inset 0 -2px 0 var(--brass), 0 0 0 1px var(--line); }
866
866
  .for-row > span:first-child { color: var(--ink2); font-size: .8125rem; }
867
867
  .lk-kinds button { min-height: 36px; padding: 4px; }
868
868
  @media (max-width: 700px) {
@@ -871,8 +871,8 @@ svg.lk-links path.temp { stroke: var(--k-pick); stroke-dasharray: 4 4; }
871
871
  .access-top .for-badge { order: 3; }
872
872
  }
873
873
  /* On a light screen, brass words are too pale: the place shown is said in a darker brass. */
874
- :root[data-theme="light"] #nav button[aria-current="page"] { color: #8a5d00; }
875
- :root[data-theme="light"] #nav button[aria-current="page"] .nav-ic { stroke: #8a5d00; }
874
+ :root[data-theme="light"] #nav button[aria-current="page"] { color: var(--brass-ink); }
875
+ :root[data-theme="light"] #nav button[aria-current="page"] .nav-ic { stroke: var(--brass-ink); }
876
876
  /* A device's card: its name and the fold on the first line, what it has and when it was seen under them. */
877
877
  .device.card .device-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; align-items: center; }
878
878
  .device.card .device-head > :first-child { grid-column: 1; grid-row: 1; justify-self: start; max-width: 100%; }
@@ -1030,7 +1030,7 @@ button.inline:hover { color: var(--brass-ink); }
1030
1030
  .server-block { display: grid; gap: 6px; }
1031
1031
  .server-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
1032
1032
  .server-figures { color: var(--ink2); font-size: .8125rem; margin-left: auto; font-variant-numeric: tabular-nums; }
1033
- .server-state { font-size: .75rem; font-weight: 700; color: var(--warn); border: 1px solid currentColor; border-radius: 999px; padding: 0 7px; }
1033
+ .server-state { font-size: .75rem; font-weight: 600; color: var(--warn); border: 1px solid currentColor; border-radius: 999px; padding: 0 7px; }
1034
1034
  .server-meter { position: relative; height: 10px; border-radius: 5px; background: var(--bar); border: 1px solid var(--line); overflow: hidden; }
1035
1035
  .server-meter .fill { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: var(--ok); }
1036
1036
  .server-meter[data-level="warn"] .fill { background: var(--warn); }
@@ -1075,7 +1075,7 @@ button.inline:hover { color: var(--brass-ink); }
1075
1075
 
1076
1076
  /* The small gauge at the bottom of the list, only when the server is short of room. */
1077
1077
  #server-gauge { flex: 0 0 auto; cursor: pointer; display: grid; gap: 4px; width: 100%; padding: 8px 10px; text-align: left; font-size: .75rem; background: var(--bar); border: 1px solid var(--warn); border-radius: 8px; color: var(--ink); }
1078
- #server-gauge .gauge-title { font-weight: 700; color: var(--warn); }
1078
+ #server-gauge .gauge-title { font-weight: 600; color: var(--warn); }
1079
1079
  #server-gauge .gauge-line { display: grid; grid-template-columns: 4.2em 1fr auto; align-items: center; gap: 8px; }
1080
1080
  #server-gauge .gauge-bar { height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--ink2) 35%, var(--panel)); overflow: hidden; }
1081
1081
  #server-gauge .gauge-more { color: var(--ink2); font-weight: 600; }
@@ -1181,13 +1181,13 @@ header .ic, #folders .ic { width: 18px; height: 18px; fill: none; stroke: curren
1181
1181
  .as-row:hover { border-color: var(--line); }
1182
1182
  .as-row[aria-current="true"] { background: var(--panel); border-color: var(--line); box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
1183
1183
  .as-words { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
1184
- .as-words b { display: flex; align-items: center; gap: 6px; font-weight: 700; overflow-wrap: anywhere; }
1184
+ .as-words b { display: flex; align-items: center; gap: 6px; font-weight: 600; overflow-wrap: anywhere; }
1185
1185
  .as-sub { color: var(--ink2); overflow-wrap: anywhere; }
1186
1186
  .as-sub.bad { color: var(--danger); }
1187
1187
  .as-ic { flex: 0 0 auto; width: 20px; height: 20px; color: var(--ink2); margin-top: 1px; }
1188
1188
  .as-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
1189
1189
  .as-ic[data-kind="folder"] { color: var(--brass-ink); }
1190
- .as-badge { font-size: .6875rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink2); white-space: nowrap; }
1190
+ .as-badge { font-size: .6875rem; font-weight: 600; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink2); white-space: nowrap; }
1191
1191
  .as-badge.write { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
1192
1192
  .as-badge.read { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
1193
1193
  .as-badge.count { background: var(--button, #222c38); border-color: transparent; color: var(--ink); }
@@ -1265,13 +1265,13 @@ header .ic, #folders .ic { width: 18px; height: 18px; fill: none; stroke: curren
1265
1265
  .gg-time { width: 8ch; color: var(--ink2); }
1266
1266
  .gg-id { width: 7ch; color: var(--ink2); font-family: ui-monospace, Menlo, Consolas, monospace; opacity: .8; }
1267
1267
  .gg-refs { width: 14ch; flex: none; display: flex; align-items: center; gap: 6px; overflow: hidden; }
1268
- .gg-count { color: var(--ink2); font-weight: 700; font-size: .72rem; }
1268
+ .gg-count { color: var(--ink2); font-weight: 600; font-size: .72rem; }
1269
1269
  /* The id, the time and the ahead/behind count come in only when asked. */
1270
1270
  .gg-id, .gg-time, .gg-count { display: none; }
1271
1271
  .gg-detailed .gg-id, .gg-detailed .gg-time { display: inline-block; }
1272
1272
  .gg-detailed .gg-count { display: inline; }
1273
1273
  .gg-row small { color: var(--ink2); }
1274
- .gg-ref { font-size: .6875rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; color: var(--c); border: 1px solid var(--c); }
1274
+ .gg-ref { font-size: .6875rem; font-weight: 600; padding: 1px 8px; border-radius: 999px; color: var(--c); border: 1px solid var(--c); }
1275
1275
  .gg-agent, .gg-both { background: color-mix(in srgb, var(--c) 16%, transparent); }
1276
1276
  .gg-remote { border-style: dashed; }
1277
1277
 
@@ -1290,9 +1290,9 @@ select.pill { appearance: auto; }
1290
1290
  .rv-acts { display: inline-flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
1291
1291
  .rv-acts button { padding: 9px 16px; font-size: .875rem; }
1292
1292
  .rv-numbers { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; font-size: .9375rem; color: var(--ink2); }
1293
- .rv-numbers .strong { color: var(--ink); font-weight: 700; }
1294
- .rv-numbers .plus { color: var(--ok); font-weight: 700; margin-left: 8px; } .rv-numbers .minus { color: var(--danger); font-weight: 700; margin-left: -8px; }
1295
- .checks-mini[data-status="passed"] { color: var(--ok); font-weight: 700; } .checks-mini[data-status="failed"] { color: var(--danger); font-weight: 700; }
1293
+ .rv-numbers .strong { color: var(--ink); font-weight: 600; }
1294
+ .rv-numbers .plus { color: var(--ok); font-weight: 600; margin-left: 8px; } .rv-numbers .minus { color: var(--danger); font-weight: 600; margin-left: -8px; }
1295
+ .checks-mini[data-status="passed"] { color: var(--ok); font-weight: 600; } .checks-mini[data-status="failed"] { color: var(--danger); font-weight: 600; }
1296
1296
  #gitview-state { margin: 0; color: var(--ink2); }
1297
1297
  .rv-good { padding: 10px 14px; border: 1px solid color-mix(in srgb, var(--brass) 55%, transparent); border-radius: 10px; background: color-mix(in srgb, var(--brass) 12%, transparent); }
1298
1298
  .rv-good ul { margin: 4px 0 0; padding-left: 18px; }
@@ -1496,9 +1496,9 @@ select.pill { appearance: auto; }
1496
1496
  .u-tile { text-align: left; font-weight: 400; display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 9px; background: var(--panel); min-width: 0; }
1497
1497
  .u-tile[aria-pressed="true"] { border-color: var(--brass); box-shadow: inset 0 0 0 1px var(--brass); }
1498
1498
  .u-tile-head { display: flex; align-items: baseline; gap: 8px; }
1499
- .u-tile-what { font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink2); }
1499
+ .u-tile-what { font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink2); }
1500
1500
  .u-tile-pct { margin-left: auto; font-size: .75rem; color: var(--ink2); }
1501
- .u-tile-big { font-size: 1.375rem; font-weight: 700; line-height: 1.1; }
1501
+ .u-tile-big { font-size: 1.375rem; font-weight: 600; line-height: 1.1; }
1502
1502
  .u-tile-big small { font-size: .8125rem; font-weight: 400; color: var(--ink2); }
1503
1503
  .u-stack { display: flex; gap: 2px; height: 12px; border-radius: 4px; background: var(--u-grid); overflow: hidden; }
1504
1504
  .u-stack span { display: block; height: 100%; min-width: 2px; }
@@ -1534,11 +1534,11 @@ select.pill { appearance: auto; }
1534
1534
  .u-plot .u-direct { font-size: 11.5px; fill: var(--ink); font-weight: 600; }
1535
1535
  .u-plot .u-direct.dim { fill: var(--ink2); font-weight: 400; }
1536
1536
  .u-tip { position: absolute; top: 4px; z-index: 2; min-width: 190px; padding: 7px 9px; border-radius: 8px; background: var(--bar); border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(0, 0, 0, .28); font-size: .75rem; pointer-events: none; }
1537
- .u-tip-when { font-weight: 700; margin-bottom: 4px; }
1537
+ .u-tip-when { font-weight: 600; margin-bottom: 4px; }
1538
1538
  .u-tip-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 7px; align-items: center; line-height: 1.55; }
1539
1539
  .u-tip-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1540
1540
  .u-tip-row b { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
1541
- .u-tip-row.focus { font-weight: 700; }
1541
+ .u-tip-row.focus { font-weight: 600; }
1542
1542
  .u-tip-row.asleep { color: var(--ink2); }
1543
1543
  .u-tip-total { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; display: flex; justify-content: space-between; color: var(--ink2); }
1544
1544
  .u-tip-total b { color: var(--ink); font-variant-numeric: tabular-nums; }
@@ -1551,7 +1551,7 @@ select.pill { appearance: auto; }
1551
1551
  .u-list-head { display: flex; align-items: baseline; gap: 4px 10px; flex-wrap: wrap; margin-bottom: 6px; }
1552
1552
  .u-list-head .hint { margin: 0; }
1553
1553
  table.u-rank { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
1554
- .u-rank th { text-align: left; font-size: .6875rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink2); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
1554
+ .u-rank th { text-align: left; font-size: .6875rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink2); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
1555
1555
  .u-rank td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
1556
1556
  .u-rank tr:last-child td { border-bottom: 0; }
1557
1557
  .u-rank .r { text-align: right; }
@@ -1561,7 +1561,7 @@ table.u-rank { width: 100%; border-collapse: collapse; background: var(--panel);
1561
1561
  .u-rank tbody tr.asleep td { color: var(--ink2); }
1562
1562
  .u-who { display: flex; align-items: center; gap: 8px; font-weight: 600; min-width: 0; white-space: nowrap; }
1563
1563
  .u-zz { font-size: .6875rem; font-weight: 600; color: var(--ink2); border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; white-space: nowrap; }
1564
- .u-big { font-weight: 700; }
1564
+ .u-big { font-weight: 600; }
1565
1565
  .u-sub { display: block; font-size: .6875rem; color: var(--ink2); white-space: nowrap; }
1566
1566
  .u-note { font-size: .75rem; color: var(--ink2); }
1567
1567
  .u-note.alert { color: var(--danger); font-weight: 600; }
@@ -1672,11 +1672,11 @@ button.inline.more-recent { text-decoration: none; }
1672
1672
  .ts-state .ok { color: var(--ok); } .ts-state .bad { color: var(--danger); } .ts-state .warn { color: var(--warn); }
1673
1673
  .ts-bar { align-items: center; margin-top: 14px; }
1674
1674
  .ts-why { font-size: .875rem; }
1675
- .ts-said { margin: 10px 0 0; font-weight: 700; }
1675
+ .ts-said { margin: 10px 0 0; font-weight: 600; }
1676
1676
  .ts-said.ok { color: var(--ok); } .ts-said.bad { color: var(--danger); }
1677
1677
  .ts-review { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
1678
1678
  .ts-review-head h3 { margin: 0; }
1679
- .ts-tree-repo { padding: 8px 8px 2px; color: var(--ink2); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .75rem; overflow-wrap: anywhere; }
1679
+ .ts-tree-repo { padding: 8px 8px 2px; color: var(--ink2); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .75rem; overflow-wrap: anywhere; }
1680
1680
  .ts-diff h4, .ts-review h4 { margin: 12px 0 8px; }
1681
1681
  .ts-diff:first-child h4 { margin-top: 0; }
1682
1682
  .ts-tree { position: static; max-height: none; margin-bottom: 12px; }
@@ -1731,7 +1731,7 @@ button.inline.more-recent { text-decoration: none; }
1731
1731
  .callout { border-left: 3px solid var(--warn); background: color-mix(in srgb, var(--warn) 8%, var(--bar)); border-radius: 4px; font-size: .8125rem; }
1732
1732
  .callout.bad { border-left-color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, var(--bar)); }
1733
1733
  :is(#settings, #panel) .chapter-body > .callout { margin: 8px 16px; padding: 8px 12px; border-top: 0; }
1734
- .sub-head { font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
1734
+ .sub-head { font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
1735
1735
  /* What is long is said only when asked: a small "i" opens it. */
1736
1736
  details.more { color: var(--ink2); font-size: .75rem; }
1737
1737
  details.more > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; color: var(--ink2); }
@@ -1805,7 +1805,7 @@ details.more[open] > summary { margin-bottom: 4px; }
1805
1805
  .ts-meter-row.ts-sweep i { width: 30%; animation: ts-sweep 1.6s ease-in-out infinite; }
1806
1806
  @keyframes ts-sweep { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
1807
1807
  @media (prefers-reduced-motion: reduce) { .ts-running .warn::before, .ts-meter-row.ts-sweep i { animation: none; } }
1808
- .ts-why-open { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; cursor: pointer; text-align: inherit; }
1808
+ .ts-why-open { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; cursor: pointer; text-align: inherit; }
1809
1809
  .ts-why-open.bad { color: var(--danger); } .ts-why-open.warn { color: var(--warn); }
1810
1810
  .ts-why-box { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
1811
1811
  .ts-why-box p { margin: 0; }
@@ -1823,7 +1823,7 @@ details.more[open] > summary { margin-bottom: 4px; }
1823
1823
  .set-row > .set-control > input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--brass); }
1824
1824
  /* A chapter of a sheet: a head in small capitals, its action on the right. */
1825
1825
  .as-chapter { margin-top: 10px; min-height: 30px; }
1826
- .as-chapter h3 { font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
1826
+ .as-chapter h3 { font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
1827
1827
  /* Who has it: one row each, a line between them. */
1828
1828
  .as-users { gap: 0; }
1829
1829
  .as-users > *, .device.card .given > * { border-top: 1px solid var(--line); }
@@ -1868,7 +1868,7 @@ details.more[open] > summary { margin-bottom: 4px; }
1868
1868
  .ts-bar > .ts-why { margin-right: auto; }
1869
1869
  .ts-bar > .ts-why:empty { display: none; }
1870
1870
  .ts-said { font-weight: 600; }
1871
- .ts-review-head h3 { font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
1871
+ .ts-review-head h3 { font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
1872
1872
  .ts-review-head .as-line { margin-top: 4px; color: var(--ink); }
1873
1873
  /* The review's settings, folded under its checks. */
1874
1874
  #gitview-keep-box > summary { font-weight: 600; }
@@ -1955,7 +1955,7 @@ details.chapter[data-attention] > summary .chapter-title::after, #settings-nav b
1955
1955
  /* Its whole height: a long card neither runs past its ground nor under what follows it (Assets). */
1956
1956
  .binder-holder > .binder, .as-binder { flex-shrink: 0; }
1957
1957
  body .binder-holder .binder { --binder-bg: var(--bg); --binder-text: var(--ink); --binder-dim: var(--ink2); --binder-line: var(--line); --binder-panel: var(--panel);
1958
- --binder-action: var(--brass-ink); --binder-on-action: #1b1405; --binder-ok: var(--ok); --binder-ask: var(--warn); --binder-danger: var(--danger); }
1958
+ --binder-action: var(--brass-ink); --binder-on-action: var(--on-brass); --binder-ok: var(--ok); --binder-ask: var(--warn); --binder-danger: var(--danger); }
1959
1959
  .binder-holder .binder-new-list, .binder-holder .binder-empty .binder-primary { display: none; }
1960
1960
  /* One list opened in Assets: no row of tabs for it alone. */
1961
1961
  .as-binder .binder-top { display: none; }
@@ -1964,7 +1964,7 @@ body .binder-holder .binder { --binder-bg: var(--bg); --binder-text: var(--ink);
1964
1964
  .binder-holder .binder-tick { min-height: 0; flex: none; }
1965
1965
  @media (pointer: coarse) { .binder-holder .binder-tick { width: 1.75rem; height: 1.75rem; } }
1966
1966
  /* On the tab, what waits for the owner's tick: the colour of what asks. */
1967
- .views #lists-count { background: var(--brass); color: var(--on-brass, #1b1405); font-weight: 700; }
1967
+ .views #lists-count { background: var(--brass); color: var(--on-brass, #1b1405); font-weight: 600; }
1968
1968
  /* A commit with more to its message: a click on its line opens the rest. */
1969
1969
  details.commit { display: block; }
1970
1970
  details.commit > summary { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; cursor: pointer; list-style: none; }
@@ -2005,7 +2005,7 @@ details.commit > pre { margin: 6px 0 0 1.6em; white-space: pre-wrap; overflow-wr
2005
2005
  #simple-thread :is(.parley-panel-tick, .parley-panel-title)::after { content: ""; position: absolute; inset: -6px; }
2006
2006
  }
2007
2007
  /* The review on a light screen: line numbers and the "changed" tag readable (diff2html's own greys are too pale). */
2008
- :root[data-theme="light"] .rv-diff { --d2h-dim-color: #5d6b7a; --d2h-change-label-color: #8a5d00; }
2008
+ :root[data-theme="light"] .rv-diff { --d2h-dim-color: #5d6b7a; --d2h-change-label-color: var(--brass-ink); }
2009
2009
 
2010
2010
  /* Attach to a card (#180): a card picked by its title, over whatever is shown. */
2011
2011
  #attach-pick { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-start; justify-content: center; padding: max(6vh, env(safe-area-inset-top)) 12px 12px; background: rgba(8, 11, 15, 0.55); }
@@ -2054,8 +2054,8 @@ details.commit > pre { margin: 6px 0 0 1.6em; white-space: pre-wrap; overflow-wr
2054
2054
  .dm-title { font-size: 1rem; line-height: 1.3; overflow-wrap: anywhere; }
2055
2055
  .dm-sub { color: var(--ink2); font-size: .88rem; }
2056
2056
  .dm-day { width: 46px; flex: none; text-align: center; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
2057
- .dm-day-w { background: var(--brass); color: #fff; font-size: .66rem; font-weight: 700; letter-spacing: .06em; padding: 1px 0; }
2058
- .dm-day-n { font-size: 1.15rem; font-weight: 700; padding: 1px 0 3px; }
2057
+ .dm-day-w { background: var(--brass); color: #fff; font-size: .66rem; font-weight: 600; letter-spacing: .06em; padding: 1px 0; }
2058
+ .dm-day-n { font-size: 1.15rem; font-weight: 600; padding: 1px 0 3px; }
2059
2059
  .dm-risk { padding: 5px 9px; border-radius: 8px; background: rgba(217, 154, 30, .16); color: inherit; font-size: .86rem; font-weight: 600; }
2060
2060
  .dm-facts { display: grid; justify-content: start; justify-items: start; grid-template-columns: 1.6em minmax(0, 1fr); gap: 3px 6px; font-size: .9rem; }
2061
2061
  .dm-k { color: var(--ink2); text-align: center; }