clavarium 0.2.506-next.1 → 0.2.508-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/deploy/install.sh +4 -4
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/server/boxes.mjs +5 -3
package/deploy/install.sh
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
# asap: as soon as a version is out; ask: says so in
|
|
33
33
|
# Settings and waits; off. Changed later in Settings.
|
|
34
34
|
# --update-window HH:MM-HH:MM when "auto" may update (default 02:00-05:00)
|
|
35
|
-
# --channel C latest (default) or next (versions
|
|
35
|
+
# --channel C latest (default), beta (proven by tests) or next (versions to try)
|
|
36
36
|
# --keep-release keep the release that runs (change the settings only:
|
|
37
37
|
# what `clavarium online` does to go from local mode to
|
|
38
38
|
# server mode)
|
|
@@ -116,7 +116,7 @@ DEX_LAYER="680f1119fdbcdd7f0ad8985b2534ded871b08b5b77c40f337c38aebd062b59c2"
|
|
|
116
116
|
DEX_SHA256="217aa675738d1cbaf25fe8d7bc04cb00dbc60f91d8465b76b8d8af963d571337"
|
|
117
117
|
HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
118
118
|
|
|
119
|
-
bad() { echo "install: $*" >&2; echo "usage: install.sh --domain NAME --operator EMAIL [--operator EMAIL...] [--port N] [--relay HOST [--relay-port N]] [--core-only] [--version X.Y.Z | --from-dir DIR] [--updates auto|asap|ask|off] [--update-window HH:MM-HH:MM] [--channel latest|next] [--name NAME] [--client-id ID] [--dry-run]" >&2; echo " or: install.sh --local [--port N] [same options] [--dry-run] to try it on this machine, with no domain" >&2; exit 64; }
|
|
119
|
+
bad() { echo "install: $*" >&2; echo "usage: install.sh --domain NAME --operator EMAIL [--operator EMAIL...] [--port N] [--relay HOST [--relay-port N]] [--core-only] [--version X.Y.Z | --from-dir DIR] [--updates auto|asap|ask|off] [--update-window HH:MM-HH:MM] [--channel latest|beta|next] [--name NAME] [--client-id ID] [--dry-run]" >&2; echo " or: install.sh --local [--port N] [same options] [--dry-run] to try it on this machine, with no domain" >&2; exit 64; }
|
|
120
120
|
refuse() { echo "install: REFUSED: $*" >&2; exit 78; }
|
|
121
121
|
step() { echo "== $*"; }
|
|
122
122
|
|
|
@@ -183,7 +183,7 @@ if [ -z "$VERSION" ] && [ -z "$FROM_DIR" ]; then
|
|
|
183
183
|
fi
|
|
184
184
|
[ -z "$UPDATES" ] || [[ "$UPDATES" =~ ^(auto|asap|ask|off)$ ]] || bad "--updates is auto, asap, ask or off"
|
|
185
185
|
[ -z "$WINDOW" ] || { [[ "$WINDOW" =~ ^([01][0-9]|2[0-3]):[0-5][0-9]-([01][0-9]|2[0-3]):[0-5][0-9]$ ]] && [ "${WINDOW%-*}" != "${WINDOW#*-}" ]; } || bad "--update-window is two times, like 02:00-05:00"
|
|
186
|
-
[ -z "$CHANNEL" ] || [[ "$CHANNEL" =~ ^(latest|next)$ ]] || bad "--channel is latest or next"
|
|
186
|
+
[ -z "$CHANNEL" ] || [[ "$CHANNEL" =~ ^(latest|beta|next)$ ]] || bad "--channel is latest, beta or next"
|
|
187
187
|
# It goes in the unit file, between quotes: plain characters only (any other is chosen in Settings).
|
|
188
188
|
[ -z "$APP_NAME" ] || [[ "$APP_NAME" =~ ^[A-Za-z0-9]([A-Za-z0-9\ ._-]{0,28}[A-Za-z0-9.])?$ ]] || bad "--name is letters, digits, spaces, dots and hyphens, 30 at most, like \"Home lab\""
|
|
189
189
|
# The OAuth client id, seen in the open when a browser is sent to sign in. Default:
|
|
@@ -194,7 +194,7 @@ fi
|
|
|
194
194
|
had() { { sed -n "s/^$1=//p" "$UPDATE_CONF" 2>/dev/null || true; } | head -1; }
|
|
195
195
|
SHOW_MODE="${UPDATES:-$(had MODE)}"; SHOW_MODE="${SHOW_MODE:-auto}"
|
|
196
196
|
SHOW_WINDOW="${WINDOW:-$(had WINDOW)}"; SHOW_WINDOW="${SHOW_WINDOW:-02:00-05:00}"
|
|
197
|
-
case "$VERSION" in *-*) default_channel="next" ;; *) default_channel="latest" ;; esac
|
|
197
|
+
case "$VERSION" in *-beta.*) default_channel="beta" ;; *-*) default_channel="next" ;; *) default_channel="latest" ;; esac
|
|
198
198
|
SHOW_CHANNEL="${CHANNEL:-$(had CHANNEL)}"; SHOW_CHANNEL="${SHOW_CHANNEL:-$default_channel}"
|
|
199
199
|
|
|
200
200
|
# The Node.js the server runs on: the same pinned version, with the same
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clavarium",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.508-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.508-next.1",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@xterm/addon-fit": "^0.11.0",
|
package/package.json
CHANGED
package/server/boxes.mjs
CHANGED
|
@@ -33,7 +33,9 @@ export const FIRMWARE_MINUTES = 10;
|
|
|
33
33
|
/* THE WAKE WORD HEARD AGAIN (03-11): « Mésange » and what a dictation makes of it (mes anges, mais sange...). */
|
|
34
34
|
export const CLIP_MAX_BYTES = 16_000 * 2 * 3;
|
|
35
35
|
export const WAKE_HEARD = /\bm[ae]i?s+\s?an?ge?s?\b|\b[ml][ae]s anges?\b|\bmesange|\bmaisange|\bmessage?s?\b|\bmessenge?s?\b/; /* « Messenges »: Whisper's reading of the server's own voice saying it */
|
|
36
|
-
|
|
36
|
+
/* ON BY DEFAULT since 21-11 (the owner, #396: a box woke on the radio some 8 times a morning, the word never heard,
|
|
37
|
+
each time a sentence sent): a wake whose word is not heard again sends nothing. CLAVARIUM_WAKE_DROP=0 turns it off. */
|
|
38
|
+
export const WAKE_DROP = process.env.CLAVARIUM_WAKE_DROP !== '0';
|
|
37
39
|
/* THE WORD BY ITS SOUND (05-11): on a lone word, Whisper writes « Mise en jeu », « Les ongles », « Mes doigts »
|
|
38
40
|
for « Mésange » -- 14 of 21 real calls of 05-11 were marked ✗ by the spelling alone. Read by its sound: a first
|
|
39
41
|
word in m/l ending on an s/z sound, then a word in an/en/on (« mise en… », « les ongles », « mes anges »), or
|
|
@@ -951,8 +953,8 @@ export class Boxes {
|
|
|
951
953
|
}
|
|
952
954
|
if (!text) { this.#log(`voice box ${box0.name}: ${seconds} s heard, nothing recognised (${soundOf(pcm)})`); await lost("Pardon, je n'ai rien compris. Tu peux répéter ?"); return; }
|
|
953
955
|
const box = link.box();
|
|
954
|
-
/* The wake word heard again (wake.clip): said beside the message; dropped in silence
|
|
955
|
-
|
|
956
|
+
/* The wake word heard again (wake.clip): said beside the message; not heard, dropped in silence (WAKE_DROP, on
|
|
957
|
+
since 21-11, #396), one discreet line in the thread. */
|
|
956
958
|
const check = link.wakeCheck ? await link.wakeCheck.catch(() => null) : null; link.wakeCheck = null;
|
|
957
959
|
/* WOKEN BY THE WORD, BUT NO CLIP TO CHECK IT (06-11: « ce ne sera pas au niveau de fond », voice 195, passed): as a
|
|
958
960
|
clip with no word in it -- dropped only when faint too; a firm voice, a button, a knock still go. */
|