clavarium 0.2.21-next.1 → 0.2.21-next.2
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/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/web/app.js +4 -1
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clavarium",
|
|
3
|
-
"version": "0.2.21-next.
|
|
3
|
+
"version": "0.2.21-next.2",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "clavarium",
|
|
9
|
-
"version": "0.2.21-next.
|
|
9
|
+
"version": "0.2.21-next.2",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@xterm/addon-fit": "^0.11.0",
|
package/package.json
CHANGED
package/web/app.js
CHANGED
|
@@ -2387,7 +2387,10 @@
|
|
|
2387
2387
|
/* ONE "Seen" for its machine: marked on the strip or here, every line it covers says so, and offers it no more. */
|
|
2388
2388
|
const seenAt = conversations.find((x) => x.name === current)?.health?.seenAt ?? '';
|
|
2389
2389
|
const seenWords = seenAt ? `\u2713 Seen ${new Date(seenAt).toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' })}` : '';
|
|
2390
|
-
|
|
2390
|
+
/* Restart, offered by a line, is offered no more once its machine was restarted after it. */
|
|
2391
|
+
const restartedAt = data.messages.filter((m) => m.from === 'system' && m.event === 'restarted').map((m) => String(m.at ?? '')).sort().pop() ?? '';
|
|
2392
|
+
const actionsOf = (m) => (m.actions ?? []).filter(may).filter((id) => !(id === 'restart' && restartedAt && String(m.at ?? '') < restartedAt))
|
|
2393
|
+
.map((id) => (id === 'seen' && seenAt && String(m.at ?? '') <= seenAt ? { id: 'seen-done', label: seenWords } : { id, label: label(id) }));
|
|
2391
2394
|
return { ...data, messages: data.messages.map((m) => (m.from === 'system' ? { ...m, actions: actionsOf(m), links: linksOf(m) } : m)) };
|
|
2392
2395
|
}
|
|
2393
2396
|
/* ITS MACHINE, on the side of the detailed chat: as this page last knew it. */
|