clavarium 0.2.296-next.1 → 0.2.298-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.
- package/npm-shrinkwrap.json +6 -6
- package/package.json +2 -2
- package/server/boxes.mjs +1 -1
- package/server/talk.mjs +3 -2
- package/web/app.js +2 -2
- package/web/style.css +1 -1
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clavarium",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.298-next.1",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "clavarium",
|
|
9
|
-
"version": "0.2.
|
|
9
|
+
"version": "0.2.298-next.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.59-next.1",
|
|
15
15
|
"clavarium-docket": "0.1.2-next.2",
|
|
16
|
-
"clavarium-parley": "0.17.
|
|
16
|
+
"clavarium-parley": "0.17.55-next.1",
|
|
17
17
|
"clavarium-tether": "0.1.0-next.49",
|
|
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.
|
|
791
|
-
"resolved": "https://registry.npmjs.org/clavarium-parley/-/clavarium-parley-0.17.
|
|
792
|
-
"integrity": "sha512-
|
|
790
|
+
"version": "0.17.55-next.1",
|
|
791
|
+
"resolved": "https://registry.npmjs.org/clavarium-parley/-/clavarium-parley-0.17.55-next.1.tgz",
|
|
792
|
+
"integrity": "sha512-G1sb5q6gWgrBEEGOKCJF2Ov39gxhaneyS30wzmaCWBhXfudVyJKkMtU4mAc8KCYz6O2Qo6xDFFEXeBLk/QBTkA==",
|
|
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.
|
|
3
|
+
"version": "0.2.298-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.",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@xterm/xterm": "^6.0.0",
|
|
47
47
|
"clavarium-binder": "0.1.59-next.1",
|
|
48
48
|
"clavarium-docket": "0.1.2-next.2",
|
|
49
|
-
"clavarium-parley": "0.17.
|
|
49
|
+
"clavarium-parley": "0.17.55-next.1",
|
|
50
50
|
"clavarium-tether": "0.1.0-next.49",
|
|
51
51
|
"mammoth": "1.13.0",
|
|
52
52
|
"mermaid": "11.17.2",
|
package/server/boxes.mjs
CHANGED
|
@@ -808,7 +808,7 @@ export class Boxes {
|
|
|
808
808
|
link.relay = 0;
|
|
809
809
|
text = `(réponse entendue de l'appareil, pas de la personne) ${text}`;
|
|
810
810
|
}
|
|
811
|
-
try { await this.#say(box.conversation, text, { id: box.id, name: box.name, ...(box.place ? { place: box.place } : {}), why: `${(link.chat || CHAT_IN.test(text)) && !CHAT_OUT.test(text) ? 'en conversation : réponse courte, parlée · ' : ''}${link.why ? `${link.why} · ` : ''}${soundOf(pcm)}` }); } catch (error) { this.#log(`voice box ${box.name}: ${seconds} s heard and dictated, but not said in ${box.conversation} (${error.message})`); await lost("Pardon, je n'ai pas pu transmettre ta phrase. Tu peux répéter ?"); return; }
|
|
811
|
+
try { await this.#say(box.conversation, text, { id: box.id, name: box.name, kind: 'box', ...(box.place ? { place: box.place } : {}), why: `${(link.chat || CHAT_IN.test(text)) && !CHAT_OUT.test(text) ? 'en conversation : réponse courte, parlée · ' : ''}${link.why ? `${link.why} · ` : ''}${soundOf(pcm)}` }); } catch (error) { this.#log(`voice box ${box.name}: ${seconds} s heard and dictated, but not said in ${box.conversation} (${error.message})`); await lost("Pardon, je n'ai pas pu transmettre ta phrase. Tu peux répéter ?"); return; }
|
|
812
812
|
this.#log(`voice box ${box.name}: ${seconds} s heard, said in ${box.conversation}`);
|
|
813
813
|
link.heardAt = this.#now();
|
|
814
814
|
if (WAITING_WORDS) this.#waitFor(link, text);
|
package/server/talk.mjs
CHANGED
|
@@ -368,7 +368,8 @@ export class Talk {
|
|
|
368
368
|
/* Its last message, either way: the list says when it last spoke, and what (app.js, Recent). */
|
|
369
369
|
/* What the person or the tool said -- never a line of this server (a restart, a machine put to sleep):
|
|
370
370
|
those are no one using it, and would lift it in Recent. */
|
|
371
|
-
|
|
371
|
+
/* Nor what was said in a room (03-11): the room moves up in Recent, not each conversation in it. */
|
|
372
|
+
const last = (now.messages ?? []).filter((m) => m.kind !== 'doing' && !m.room && (m.from === 'person' || m.from === 'agent')).at(-1);
|
|
372
373
|
/* IT NEEDS ITS OWNER while a question of it is open (neither answered nor closed) and the owner wrote
|
|
373
374
|
nothing since -- but the answer to ANOTHER question, which says nothing of this one (two asked, one
|
|
374
375
|
answered: the other still waits, seen 22-10); or while it said it waits, and the owner wrote nothing since. */
|
|
@@ -380,7 +381,7 @@ export class Talk {
|
|
|
380
381
|
const asks = open.some((q) => !person.some((p) => p.at >= q.at && !(p.answers && p.answers !== q.id)));
|
|
381
382
|
const needs = asks || (now.status?.state === 'waiting' && String(now.status.at ?? '') > personAt);
|
|
382
383
|
/* What it said it does (status, doing): it is at work, even without a message. */
|
|
383
|
-
const stepAt = (now.steps ?? []).map((m) => m.at).sort().at(-1) ?? null;
|
|
384
|
+
const stepAt = (now.steps ?? []).filter((m) => !m.room).map((m) => m.at).sort().at(-1) ?? null;
|
|
384
385
|
return { waiting: now.waiting, state: now.status?.state ?? null, needs, ...(stepAt ? { stepAt } : {}), ...(last ? { lastAt: last.at, lastFrom: last.from === 'person' ? 'person' : 'agent', lastText: String(last.short || last.text || '').replace(/\s+/g, ' ').trim().slice(0, 90) } : {}) };
|
|
385
386
|
} catch { return { waiting: 0, state: null }; }
|
|
386
387
|
}
|
package/web/app.js
CHANGED
|
@@ -411,7 +411,7 @@
|
|
|
411
411
|
conversation: Chat, Terminal, Assets, Binders, its settings; a room: its settings; the others: their own
|
|
412
412
|
controls). Built once here from each page's top line: the same element, the same looks, the same place. */
|
|
413
413
|
function topBar(top, { state = null } = {}) {
|
|
414
|
-
const bar = document.createElement('header'); bar.className = 'topbar';
|
|
414
|
+
const bar = document.createElement('header'); bar.className = ['topbar', ...[...top.classList].filter((c) => c !== 'panel-top')].join(' ');
|
|
415
415
|
const fold = document.createElement('button'); fold.type = 'button'; fold.className = 'fold-here'; fold.title = 'Hide or show the list of conversations';
|
|
416
416
|
fold.addEventListener('click', () => $('fold').click());
|
|
417
417
|
bar.append(fold);
|
|
@@ -2868,7 +2868,7 @@
|
|
|
2868
2868
|
/* A message attached to a card (#180), from its menu: its id, as the card opens it again. */
|
|
2869
2869
|
...(!DEVICE ? { card: (m) => attachToCard({ kind: 'message', ref: m.id, title: String(m.short || m.text || '').replace(/\s+/g, ' ').trim().slice(0, 80) }) } : {}),
|
|
2870
2870
|
/* The buttons of a line of the machine: what this screen may do. */
|
|
2871
|
-
act: (id) => { if (id === 'seen-done') return; if (id === 'seen') void markSeen(); else if (id === 'memory') void openMemory(); else if (id === 'disk') void openDisk(); else if (id === 'room') seeTerminal(); else if (id === 'restart') void restartMachine(false); else if (id === 'terminal') seeTerminal(); else if (id.startsWith('allow:')) void decideTether(id.slice('allow:'.length), 'yes'); else if (id.startsWith('deny:')) void decideTether(id.slice('deny:'.length), 'no'); else if (id.startsWith('flash:')) void flashFromThread(id.slice('flash:'.length)); else if (id.startsWith('review:')) void openGit(id.slice('review:'.length)); else openCommits(id); },
|
|
2871
|
+
act: (id) => { if (id === 'seen-done') return; if (id.startsWith('salon:')) { void openSalon(id.slice('salon:'.length)); return; } if (id === 'seen') void markSeen(); else if (id === 'memory') void openMemory(); else if (id === 'disk') void openDisk(); else if (id === 'room') seeTerminal(); else if (id === 'restart') void restartMachine(false); else if (id === 'terminal') seeTerminal(); else if (id.startsWith('allow:')) void decideTether(id.slice('allow:'.length), 'yes'); else if (id.startsWith('deny:')) void decideTether(id.slice('deny:'.length), 'no'); else if (id.startsWith('flash:')) void flashFromThread(id.slice('flash:'.length)); else if (id.startsWith('review:')) void openGit(id.slice('review:'.length)); else openCommits(id); },
|
|
2872
2872
|
/* What it opens over the thread (a picture, its media, a search...) is a step of this page's: one Back closes it. */
|
|
2873
2873
|
back: { open: (name, close) => nav.over(`chat-${name}`, () => close(), { stack: true }), closed: (step) => { if (step) nav.drop(step); } },
|
|
2874
2874
|
/* Files attached to a message: wherever the chat may be written in. */
|
package/web/style.css
CHANGED
|
@@ -1748,7 +1748,7 @@ details.more[open] > summary { margin-bottom: 4px; }
|
|
|
1748
1748
|
#settings .chapter-group { margin: 10px 4px 0; font-size: .6875rem; letter-spacing: .06em; }
|
|
1749
1749
|
@media (min-width: 1000px) {
|
|
1750
1750
|
#settings { display: grid; grid-template-columns: 180px minmax(0, 1fr); grid-template-rows: auto 1fr; align-content: start; column-gap: 20px; }
|
|
1751
|
-
#settings > .panel-top { grid-column: 1 / -1; }
|
|
1751
|
+
#settings > :is(.panel-top, header.topbar) { grid-column: 1 / -1; }
|
|
1752
1752
|
.settings-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; align-self: start; }
|
|
1753
1753
|
.settings-nav button { text-align: left; background: none; border: 0; color: var(--ink2); padding: 9px 10px; border-radius: 8px; font-size: .875rem; }
|
|
1754
1754
|
.settings-nav button[aria-current="true"] { background: var(--button, #222c38); color: var(--ink); box-shadow: inset 3px 0 0 var(--brass); }
|