clavarium 0.2.195-next.1 → 0.2.196-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.195-next.1",
3
+ "version": "0.2.196-next.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "clavarium",
9
- "version": "0.2.195-next.1",
9
+ "version": "0.2.196-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.195-next.1",
3
+ "version": "0.2.196-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
@@ -97,6 +97,7 @@ export function forSpeech(text) {
97
97
  .replace(/\b([01]?\d|2[0-3])\s?[hH](?:\s?([0-5]\d))?\b/g, (_, h, m) => `${h} heure${h === '1' || h === '0' ? '' : 's'}${m ? ` ${m}` : ''}`)
98
98
  /* Never its own wake word aloud: the box heard itself and cut its own sentence (31-10). */
99
99
  .replace(/\b(?:hey|hé|eh)[\s,]+jarvis\b/giu, 'le mot d\'éveil')
100
+ .replace(/(?<![\p{L}])m[ée]sange(?![\p{L}])/giu, 'le mot d\'éveil')
100
101
  .replace(/\s+/g, ' ')
101
102
  .trim()
102
103
  .slice(0, 1500);