clavarium 0.2.285-next.1 → 0.2.286-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,19 +1,19 @@
1
1
  {
2
2
  "name": "clavarium",
3
- "version": "0.2.285-next.1",
3
+ "version": "0.2.286-next.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "clavarium",
9
- "version": "0.2.285-next.1",
9
+ "version": "0.2.286-next.1",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@xterm/addon-fit": "^0.11.0",
13
13
  "@xterm/xterm": "^6.0.0",
14
14
  "clavarium-binder": "0.1.59-next.1",
15
15
  "clavarium-docket": "0.1.2-next.2",
16
- "clavarium-parley": "0.17.52-next.1",
16
+ "clavarium-parley": "0.17.53-next.1",
17
17
  "clavarium-tether": "0.1.0-next.49",
18
18
  "mammoth": "1.13.0",
19
19
  "mermaid": "11.17.2",
@@ -787,9 +787,9 @@
787
787
  }
788
788
  },
789
789
  "node_modules/clavarium-parley": {
790
- "version": "0.17.52-next.1",
791
- "resolved": "https://registry.npmjs.org/clavarium-parley/-/clavarium-parley-0.17.52-next.1.tgz",
792
- "integrity": "sha512-He/rzgLU8zQR0jDtQdoyTQqEaaHibPDJVopM5QlBRFGOvjw6R4TWXLPGL1kznjdyo3uKkfEgdv5snhdy5rq3Ng==",
790
+ "version": "0.17.53-next.1",
791
+ "resolved": "https://registry.npmjs.org/clavarium-parley/-/clavarium-parley-0.17.53-next.1.tgz",
792
+ "integrity": "sha512-hCjOIo7apQnYy5BQKro4fLocw/i50feWBr6BcO9i1eg+YVijKR2adgS0ZNxoKAkuIn9bAZlDNzxQUBWFaaDcng==",
793
793
  "license": "MIT",
794
794
  "bin": {
795
795
  "parley": "bin/parley.mjs",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clavarium",
3
- "version": "0.2.285-next.1",
3
+ "version": "0.2.286-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.",
@@ -46,7 +46,7 @@
46
46
  "@xterm/xterm": "^6.0.0",
47
47
  "clavarium-binder": "0.1.59-next.1",
48
48
  "clavarium-docket": "0.1.2-next.2",
49
- "clavarium-parley": "0.17.52-next.1",
49
+ "clavarium-parley": "0.17.53-next.1",
50
50
  "clavarium-tether": "0.1.0-next.49",
51
51
  "mammoth": "1.13.0",
52
52
  "mermaid": "11.17.2",
package/server/main.mjs CHANGED
@@ -595,7 +595,7 @@ export async function startHome({ port, host, dataDir, mntDir = dataDir, gitRese
595
595
  const text = `Its tool was stopped: the machine ran out of memory${size}. Give it more in Settings → Machine → Memory, or start it fresh.`;
596
596
  events.add({ kind: 'machine', text: `Machine of ${name}: its tool was stopped for lack of memory${size}`, conversation: name });
597
597
  void alerts.tell({ title: `${name}: its tool ran out of memory`, body: text, url: `/?c=${encodeURIComponent(name)}&open=settings` });
598
- try { talk.event(name, { kind: 'machine-problem', text, tone: 'warn', topic: 'Machine' }); } catch { /* its chat may be off */ }
598
+ try { talk.event(name, { kind: 'machine-problem', text, tone: 'warn', topic: 'Machine', brief: 'Out of memory', actions: ['memory', 'restart', 'terminal'] }); } catch { /* its chat may be off */ }
599
599
  };
600
600
  const stopWatch = capacity.start();
601
601
  /* The curves of the resources (history.mjs): one look a minute, from what the server knows already. */
package/server/talk.mjs CHANGED
@@ -604,7 +604,7 @@ export class Talk {
604
604
  const gone = record.state === 'Running' ? [...before].filter((k) => !keys.includes(k)) : [];
605
605
  if (gone.length) {
606
606
  const said = [...new Set(gone.map((k) => (/^disk:/.test(k) ? 'Its disk has room again.' : k === 'memory-low' ? 'Its memory is no longer short.' : /^oom:/.test(k) ? '' : 'What was wrong with its machine is gone.')).filter(Boolean))];
607
- if (said.length) this.event(name, { kind: 'machine-ok', text: said.join(' '), topic: 'Machine' });
607
+ if (said.length) this.event(name, { kind: 'machine-ok', text: said.join(' '), topic: 'Machine', brief: 'Fixed' });
608
608
  }
609
609
  if (fresh.length === 0) return;
610
610
  this.event(name, {
@@ -612,6 +612,8 @@ export class Talk {
612
612
  text: fresh.map((p) => p.text).join(' '),
613
613
  tone: fresh.some((p) => p.level === 'bad') ? 'bad' : 'warn',
614
614
  topic: 'Machine',
615
+ /* Its name on the one line a problem is in the simple view (Parley, 03-11). */
616
+ brief: fresh.some((p) => p.kind === 'memory' || /^oom:|^memory/.test(p.key ?? '')) ? 'Out of memory' : fresh.every((p) => p.kind === 'disk') ? 'Disk almost full' : 'Machine problem',
615
617
  /* What can be done: a disk short of room is looked at (what takes it) or made larger --
616
618
  a restart frees nothing; otherwise more memory where memory is short, a restart, its terminal. */
617
619
  actions: [...(fresh.every((p) => p.kind === 'disk') ? ['room', 'disk'] : [...(fresh.some((p) => p.kind === 'memory') ? ['memory'] : []), 'restart', 'terminal']), 'seen'],