clavarium 0.2.107-next.1 → 0.2.109-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/npm-shrinkwrap.json +6 -6
- package/package.json +2 -2
- package/web/app.js +5 -3
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clavarium",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.109-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.109-next.1",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@xterm/addon-fit": "^0.11.0",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"clavarium-binder": "0.1.15-next.1",
|
|
15
15
|
"clavarium-docket": "0.1.1",
|
|
16
16
|
"clavarium-parley": "0.17.11-next.1",
|
|
17
|
-
"clavarium-tether": "0.1.0-next.
|
|
17
|
+
"clavarium-tether": "0.1.0-next.28",
|
|
18
18
|
"mermaid": "11.17.2",
|
|
19
19
|
"node-pty": "^1.1.0",
|
|
20
20
|
"pdfjs-dist": "6.4.299",
|
|
@@ -755,9 +755,9 @@
|
|
|
755
755
|
}
|
|
756
756
|
},
|
|
757
757
|
"node_modules/clavarium-tether": {
|
|
758
|
-
"version": "0.1.0-next.
|
|
759
|
-
"resolved": "https://registry.npmjs.org/clavarium-tether/-/clavarium-tether-0.1.0-next.
|
|
760
|
-
"integrity": "sha512-
|
|
758
|
+
"version": "0.1.0-next.28",
|
|
759
|
+
"resolved": "https://registry.npmjs.org/clavarium-tether/-/clavarium-tether-0.1.0-next.28.tgz",
|
|
760
|
+
"integrity": "sha512-0Oa5aZ2ercfQ2sGqeQkuqkNwtcQZJY/Twxiv3lSUg0cSipD9neSrWoCsfejbvfT+mROG184hnNqj37dL1Dq4ow==",
|
|
761
761
|
"license": "MIT",
|
|
762
762
|
"bin": {
|
|
763
763
|
"tether": "bin/cli.mjs",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clavarium",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.109-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.",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"clavarium-binder": "0.1.15-next.1",
|
|
48
48
|
"clavarium-docket": "0.1.1",
|
|
49
49
|
"clavarium-parley": "0.17.11-next.1",
|
|
50
|
-
"clavarium-tether": "0.1.0-next.
|
|
50
|
+
"clavarium-tether": "0.1.0-next.28",
|
|
51
51
|
"mermaid": "11.17.2",
|
|
52
52
|
"node-pty": "^1.1.0",
|
|
53
53
|
"pdfjs-dist": "6.4.299",
|
package/web/app.js
CHANGED
|
@@ -965,7 +965,9 @@
|
|
|
965
965
|
/* Its machine calls its owner for what needs a hand -- it does not serve, its memory or disk is almost
|
|
966
966
|
full -- not marked "Seen"; a program stopped for lack of memory (its files safe) is only said. */
|
|
967
967
|
const healthNeeds = (c) => c.phase === 'ready' && !c.asleep && (c.health?.problems ?? []).some((p) => (p.level === 'bad' || (p.level === 'warn' && ['memory', 'disk'].includes(p.kind) && !String(p.key).startsWith('oom:'))) && !(c.health.seen ?? []).includes(p.key));
|
|
968
|
-
|
|
968
|
+
/* Asleep, it is frozen and asks nothing until it wakes: it does not belong in "Needs you"
|
|
969
|
+
(waking it is what answers it). Health already excludes asleep; this covers the rest. */
|
|
970
|
+
const needsYou = (c) => !c.asleep && Boolean(talkNeeds(c) || c.answerer?.needs || c.phase === 'failed' || healthNeeds(c));
|
|
969
971
|
/* ONE FLAT POINT per conversation, its colour the state -- the worst that applies: a machine problem (red),
|
|
970
972
|
the agent waits for you (blue), the agent at work (gold, pulsing), the machine busy (amber, pulsing),
|
|
971
973
|
fine (green), asleep (a hollow ring). The same point, same colours, sums a folded group below. */
|
|
@@ -1069,8 +1071,8 @@
|
|
|
1069
1071
|
const waking = (c.wakeups?.items ?? []).filter((w) => w.on).length;
|
|
1070
1072
|
if (waking > 0) { const mark = document.createElement('small'); mark.className = 'shared-mark'; mark.textContent = `${waking} wake-up${waking > 1 ? 's' : ''}`; b.append(mark); }
|
|
1071
1073
|
/* It talks through the app, and asks or waits for its owner there. */
|
|
1072
|
-
if (talkNeeds(c)) { const mark = document.createElement('small'); mark.className = 'needs-mark'; mark.textContent = c.talk.waiting > 0 ? 'asks you' : 'waits for you'; b.append(mark); }
|
|
1073
|
-
if (c.answerer?.on) { const mark = document.createElement('small'); mark.className =
|
|
1074
|
+
if (!c.asleep && talkNeeds(c)) { const mark = document.createElement('small'); mark.className = 'needs-mark'; mark.textContent = c.talk.waiting > 0 ? 'asks you' : 'waits for you'; b.append(mark); }
|
|
1075
|
+
if (c.answerer?.on) { const needs = c.answerer.needs && !c.asleep; const mark = document.createElement('small'); mark.className = needs ? 'needs-mark' : 'shared-mark'; mark.textContent = needs ? 'asks for you' : 'answered in your place'; b.append(mark); }
|
|
1074
1076
|
/* Who else holds it is said in its Access, not in the list (where it said the same on every row). */
|
|
1075
1077
|
b.addEventListener('click', () => select(c.name, { step: true }));
|
|
1076
1078
|
return b;
|