clavarium 0.2.239-beta.1 → 0.2.240-beta.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/server/dockets.mjs +9 -1
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clavarium",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.240-beta.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.240-beta.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.66-next.1",
|
|
15
15
|
"clavarium-docket": "0.1.2-next.3",
|
|
16
|
-
"clavarium-parley": "0.17.
|
|
16
|
+
"clavarium-parley": "0.17.101-next.1",
|
|
17
17
|
"clavarium-tether": "0.1.0-next.79",
|
|
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.
|
|
791
|
-
"resolved": "https://registry.npmjs.org/clavarium-parley/-/clavarium-parley-0.17.
|
|
792
|
-
"integrity": "sha512-
|
|
790
|
+
"version": "0.17.101-next.1",
|
|
791
|
+
"resolved": "https://registry.npmjs.org/clavarium-parley/-/clavarium-parley-0.17.101-next.1.tgz",
|
|
792
|
+
"integrity": "sha512-OwQhmMDa8TvYXaDVIHKKBG3x2sKdkdIJUm9A/NTArSSTnAG/liD5iIt+rilcMZM7820ogmywoF8cU+3RUoJZbg==",
|
|
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.
|
|
3
|
+
"version": "0.2.240-beta.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
|
"@xterm/xterm": "^6.0.0",
|
|
48
48
|
"clavarium-binder": "0.1.66-next.1",
|
|
49
49
|
"clavarium-docket": "0.1.2-next.3",
|
|
50
|
-
"clavarium-parley": "0.17.
|
|
50
|
+
"clavarium-parley": "0.17.101-next.1",
|
|
51
51
|
"clavarium-tether": "0.1.0-next.79",
|
|
52
52
|
"mammoth": "1.13.0",
|
|
53
53
|
"mermaid": "11.17.2",
|
package/server/dockets.mjs
CHANGED
|
@@ -175,14 +175,22 @@ export class Dockets {
|
|
|
175
175
|
if (due.length && (fresh.length || this.#idle(name))) {
|
|
176
176
|
if (await this.#say(name, WAKE).catch(() => false)) for (const e of due) told[e.id] = { count: (told[e.id]?.count ?? 0) + 1, at: now };
|
|
177
177
|
}
|
|
178
|
+
/* One line per stall (20-11, the owner: a night frozen, 58 lines, one an hour): while one said
|
|
179
|
+
is still unhandled, the next ones are only counted; once none is left, one line says how many. */
|
|
180
|
+
let grouped = record.grouped ?? 0;
|
|
178
181
|
for (const e of waiting) {
|
|
179
182
|
const t = told[e.id];
|
|
180
183
|
if (t && t.count >= TOLD_MAX && !t.said && now - t.at >= AGAIN_MS) {
|
|
184
|
+
if (waiting.some((o) => told[o.id]?.said === true)) { t.said = 'grouped'; grouped += 1; continue; }
|
|
181
185
|
this.#line(name, { kind: 'docket-unhandled', text: `Not handled, told ${t.count} times: ${e.text}`, tone: 'warn', topic: 'Not handled' });
|
|
182
186
|
t.said = true;
|
|
183
187
|
}
|
|
184
188
|
}
|
|
185
|
-
if (
|
|
189
|
+
if (grouped && !waiting.some((o) => told[o.id]?.said === true)) {
|
|
190
|
+
this.#line(name, { kind: 'docket-unhandled', text: `And ${grouped} more not handled meanwhile.`, tone: 'warn', topic: 'Not handled' });
|
|
191
|
+
grouped = 0;
|
|
192
|
+
}
|
|
193
|
+
if (JSON.stringify(told) !== JSON.stringify(record.told ?? {}) || grouped !== (record.grouped ?? 0)) this.#store.put({ ...record, told, grouped });
|
|
186
194
|
}
|
|
187
195
|
} finally { this.#busy = false; }
|
|
188
196
|
}
|