clavarium 0.2.135-beta.1 → 0.2.136-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,17 +1,17 @@
1
1
  {
2
2
  "name": "clavarium",
3
- "version": "0.2.135-beta.1",
3
+ "version": "0.2.136-beta.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "clavarium",
9
- "version": "0.2.135-beta.1",
9
+ "version": "0.2.136-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
- "clavarium-binder": "0.1.49-next.1",
14
+ "clavarium-binder": "0.1.51-next.1",
15
15
  "clavarium-docket": "0.1.1",
16
16
  "clavarium-parley": "0.17.35-next.1",
17
17
  "clavarium-tether": "0.1.0-next.46",
@@ -761,9 +761,9 @@
761
761
  }
762
762
  },
763
763
  "node_modules/clavarium-binder": {
764
- "version": "0.1.49-next.1",
765
- "resolved": "https://registry.npmjs.org/clavarium-binder/-/clavarium-binder-0.1.49-next.1.tgz",
766
- "integrity": "sha512-PyPXP5C66Xs98pNvI6BDjVNeoB/PF3IdUsbcMCXWGhVm4uM68OfKBC6Ph9eWRBHg/hiS5eiBt6fydZgZLCHZOw==",
764
+ "version": "0.1.51-next.1",
765
+ "resolved": "https://registry.npmjs.org/clavarium-binder/-/clavarium-binder-0.1.51-next.1.tgz",
766
+ "integrity": "sha512-8gZD7UDNlZUxvwZA/Z2zo4XFYo+eWRmmu/IXP4isYeBuSZv0cCh+nQzsFP7cFJvpUKiJG0Y2kHQOeGgSy/fcxQ==",
767
767
  "license": "MIT",
768
768
  "bin": {
769
769
  "binder": "bin/binder.mjs",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clavarium",
3
- "version": "0.2.135-beta.1",
3
+ "version": "0.2.136-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.",
@@ -44,7 +44,7 @@
44
44
  "dependencies": {
45
45
  "@xterm/addon-fit": "^0.11.0",
46
46
  "@xterm/xterm": "^6.0.0",
47
- "clavarium-binder": "0.1.49-next.1",
47
+ "clavarium-binder": "0.1.51-next.1",
48
48
  "clavarium-docket": "0.1.1",
49
49
  "clavarium-parley": "0.17.35-next.1",
50
50
  "clavarium-tether": "0.1.0-next.46",
package/server/boxes.mjs CHANGED
@@ -714,6 +714,9 @@ export class Boxes {
714
714
  const seconds = (pcm.length / 32_000).toFixed(1);
715
715
  if (pcm.length < 16_000) { this.#log(`voice box ${box0.name}: ${seconds} s heard, too short for a sentence`); this.#tested(link, 'nothing'); link.send({ t: 'cue', name: 'done' }); return; } /* under half a second: a press, not a sentence */
716
716
  link.send({ t: 'cue', name: 'thinking' });
717
+ /* Its sound, kept beside its conversation (the ten last, a week): its assistant can listen to what the box
718
+ really sent when the dictation goes wrong (02-11: "regarde la qualité de l'audio arrivant"). */
719
+ try { this.#keep?.(box0.conversation, 'phrase-boitier.wav', wavOf(pcm)); } catch { /* its chat may be off */ }
717
720
  let text;
718
721
  /* A sentence that goes nowhere is said so, in words, rather than with a beep nobody can read (31-10). */
719
722
  const lost = async (words) => {
package/server/talk.mjs CHANGED
@@ -527,7 +527,7 @@ export class Talk {
527
527
  before.sort((a, b) => b.at - a.at);
528
528
  before.forEach((x, i) => { if (i >= KEPT_TEXTS - 1 || Date.now() - x.at > KEPT_TEXT_DAYS * 86_400_000) rmSync(join(dir, FILES, x.name), { recursive: true, force: true }); });
529
529
  mkdirSync(join(dir, FILES, id));
530
- writeFileSync(join(dir, FILES, id, file), String(text ?? ''), { flag: 'wx', mode: 0o644 });
530
+ writeFileSync(join(dir, FILES, id, file), Buffer.isBuffer(text) ? text : String(text ?? ''), { flag: 'wx', mode: 0o644 });
531
531
  return `${IN_MACHINE}/${FILES}/${id}/${file}`;
532
532
  }
533
533