clavarium 0.2.306-next.1 → 0.2.307-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.306-next.1",
3
+ "version": "0.2.307-next.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "clavarium",
9
- "version": "0.2.306-next.1",
9
+ "version": "0.2.307-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.306-next.1",
3
+ "version": "0.2.307-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/web/app.js CHANGED
@@ -2812,6 +2812,10 @@
2812
2812
  /* "Send when I stop", for dictation in the chat: kept by this device. */
2813
2813
  let chatAuto = false;
2814
2814
  try { chatAuto = localStorage.getItem('clavarium-chat-auto') === '1'; } catch { /* as above */ }
2815
+ /* The silence before it sends by itself, chosen on this device (Parley's menu, under the switch). */
2816
+ let chatAutoMs;
2817
+ try { chatAutoMs = Number(localStorage.getItem('clavarium-chat-auto-ms')) || undefined; } catch { /* as above */ }
2818
+ const keepAutoMs = (ms) => { chatAutoMs = ms; try { localStorage.setItem('clavarium-chat-auto-ms', String(ms)); } catch { /* as above */ } };
2815
2819
  const deviceLang = () => (navigator.language || 'en');
2816
2820
  let chatWords = null;
2817
2821
  async function readWords() {
@@ -2930,7 +2934,7 @@
2930
2934
  forget: (secretName) => post(`${API}/conversations/${encodeURIComponent(name)}/secrets/${encodeURIComponent(secretName)}/forget`, {}).then(() => { delete chatSecrets[secretName]; if (thread && threadOf === name) void thread.refresh(); }).catch(() => {}),
2931
2935
  remind: () => post(talkPath(name, '/remind'), {}),
2932
2936
  /* The helpers of the terminal, in the chat: this page's voice, the owner's ready answers, the keyboard rule of this device. */
2933
- voice: chatVoice(), autoSend: chatAuto,
2937
+ voice: chatVoice(), autoSend: chatAuto, autoSendMs: chatAutoMs, onAutoSendMs: keepAutoMs,
2934
2938
  onAutoSend: (on) => { chatAuto = on; try { localStorage.setItem('clavarium-chat-auto', on ? '1' : '0'); } catch { /* as above */ } },
2935
2939
  touch: touchScreen,
2936
2940
  });
@@ -5241,7 +5245,7 @@
5241
5245
  view: chatView, onView: (v) => { chatView = v; try { localStorage.setItem('clavarium-chat-view', v); } catch { /* as above */ } },
5242
5246
  math: { url: new URL('vendor/katex/katex.mjs', new URL('/', location.href)).href },
5243
5247
  diagram: drawDiagram, highlight: colourCode, touch: touchScreen,
5244
- voice: chatVoice(), autoSend: chatAuto, onAutoSend: (on) => { chatAuto = on; try { localStorage.setItem('clavarium-chat-auto', on ? '1' : '0'); } catch { /* as above */ } },
5248
+ voice: chatVoice(), autoSend: chatAuto, autoSendMs: chatAutoMs, onAutoSendMs: keepAutoMs, onAutoSend: (on) => { chatAuto = on; try { localStorage.setItem('clavarium-chat-auto', on ? '1' : '0'); } catch { /* as above */ } },
5245
5249
  draft: `room:${id}`,
5246
5250
  });
5247
5251
  salonTimer = setInterval(() => { if (salonThread && salonId === id) void salonThread.refresh(); }, 3000);