clavarium 0.2.257-next.1 → 0.2.258-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.257-next.1",
3
+ "version": "0.2.258-next.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "clavarium",
9
- "version": "0.2.257-next.1",
9
+ "version": "0.2.258-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.257-next.1",
3
+ "version": "0.2.258-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/boxes.mjs CHANGED
@@ -524,15 +524,17 @@ export class Boxes {
524
524
  let made = null;
525
525
  this.#react(text).then((t) => { made = t; }).catch(() => {});
526
526
  link.thinkingA = setTimeout(() => { void say(made || THINKING[Math.floor(Math.random() * THINKING.length)]); }, THINKING_AFTER_MS);
527
- link.thinkingB = setTimeout(() => { void say(long ? 'Ta question est riche, je regarde, un instant.' : 'Ça me demande un peu plus de temps, je regarde.'); }, long ? LONGER_AFTER_MS * 0.6 : LONGER_AFTER_MS);
528
- link.thinkingA.unref?.(); link.thinkingB.unref?.();
527
+ /* One word of waiting, not two (02-11: « je regarde, un instant » again and again). */
528
+ link.thinkingA.unref?.();
529
529
  }
530
530
 
531
531
  async agentSaid(conversation, text, to = null, { doing = false, asked = false } = {}) {
532
532
  /* What it is doing is written for a screen ("Tâche de fond : bêta 0.2.113…"): read aloud, it was words
533
533
  from nowhere (31-10). Aloud, only a short plain one; otherwise a word that it is at work. */
534
534
  const plain = forSpeech(text);
535
- const words = doing && (plain.length > 70 || /[\d:;/()[\]→=_]/.test(plain)) ? 'Je regarde, un instant.' : plain;
535
+ /* 02-11: not even « Je regarde, un instant » in its place -- said each time the agent wrote what it does, it
536
+ came back again and again. A long or technical one is not said at all. */
537
+ const words = doing && (plain.length > 70 || /[\d:;/()[\]→=_]/.test(plain)) ? '' : plain;
536
538
  if (!words) return;
537
539
  let boxes;
538
540
  if (doing) {