clavarium 0.2.497-next.1 → 0.2.499-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 +10 -10
- package/package.json +3 -3
- package/server/talk.mjs +5 -2
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clavarium",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.499-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.499-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.66-next.1",
|
|
15
15
|
"clavarium-docket": "0.1.2-next.3",
|
|
16
|
-
"clavarium-parley": "0.17.
|
|
17
|
-
"clavarium-tether": "0.1.0-next.
|
|
16
|
+
"clavarium-parley": "0.17.96-next.1",
|
|
17
|
+
"clavarium-tether": "0.1.0-next.79",
|
|
18
18
|
"mammoth": "1.13.0",
|
|
19
19
|
"mermaid": "11.17.2",
|
|
20
20
|
"node-pty": "^1.1.0",
|
|
@@ -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.96-next.1",
|
|
791
|
+
"resolved": "https://registry.npmjs.org/clavarium-parley/-/clavarium-parley-0.17.96-next.1.tgz",
|
|
792
|
+
"integrity": "sha512-UpRSpfdJOdoRFUsT5X/7pPaKPJ4PlnVvpdM1lml7ETXIFHJmhIGNe71Dixd+h6ETXI9rQfZ4FJ8b5CJJGjrcAg==",
|
|
793
793
|
"license": "MIT",
|
|
794
794
|
"bin": {
|
|
795
795
|
"parley": "bin/parley.mjs",
|
|
@@ -800,9 +800,9 @@
|
|
|
800
800
|
}
|
|
801
801
|
},
|
|
802
802
|
"node_modules/clavarium-tether": {
|
|
803
|
-
"version": "0.1.0-next.
|
|
804
|
-
"resolved": "https://registry.npmjs.org/clavarium-tether/-/clavarium-tether-0.1.0-next.
|
|
805
|
-
"integrity": "sha512-
|
|
803
|
+
"version": "0.1.0-next.79",
|
|
804
|
+
"resolved": "https://registry.npmjs.org/clavarium-tether/-/clavarium-tether-0.1.0-next.79.tgz",
|
|
805
|
+
"integrity": "sha512-oRbJn6olIySm1RbQLwuBK0tMklv5VIqOCYovRAdzg01BBrn9HyoDALIyOrj9VtNS1I6RsIAoI4GRU3yozNtLWw==",
|
|
806
806
|
"license": "MIT",
|
|
807
807
|
"bin": {
|
|
808
808
|
"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.499-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,8 +47,8 @@
|
|
|
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.
|
|
51
|
-
"clavarium-tether": "0.1.0-next.
|
|
50
|
+
"clavarium-parley": "0.17.96-next.1",
|
|
51
|
+
"clavarium-tether": "0.1.0-next.79",
|
|
52
52
|
"mammoth": "1.13.0",
|
|
53
53
|
"mermaid": "11.17.2",
|
|
54
54
|
"node-pty": "^1.1.0",
|
package/server/talk.mjs
CHANGED
|
@@ -255,8 +255,11 @@ export class Talk {
|
|
|
255
255
|
this.#timer.unref?.();
|
|
256
256
|
}
|
|
257
257
|
|
|
258
|
+
/* One conversation's record, as kept (18-11: the whole list was made again -- sorted, each with its tool -- for each
|
|
259
|
+
path a message showed: half a second for one page of a long thread on the owner's server). */
|
|
260
|
+
#one(name) { return typeof this.#conversations.get === 'function' ? this.#conversations.get(name) : this.#conversations.list().find((x) => x.name === name); }
|
|
258
261
|
#known(name) {
|
|
259
|
-
const c = isConversationName(name) ? this.#
|
|
262
|
+
const c = isConversationName(name) ? this.#one(name) : undefined;
|
|
260
263
|
if (!c) throw new Refusal(404, 'No such conversation.');
|
|
261
264
|
return c;
|
|
262
265
|
}
|
|
@@ -325,7 +328,7 @@ export class Talk {
|
|
|
325
328
|
const inner = p.slice('/work/'.length);
|
|
326
329
|
/* The bridge folder is not the tool's to show -- but for the files the person attached there. */
|
|
327
330
|
if (!inner || inner === FOLDER || (inner.startsWith(`${FOLDER}/`) && !ATTACHED.test(p))) return null;
|
|
328
|
-
return this.#
|
|
331
|
+
return this.#one(name)?.work === 'kept' ? `work:${inner}` : null;
|
|
329
332
|
}
|
|
330
333
|
const m = /^\/resources\/([a-z][a-z0-9-]{0,31})\/(.+)$/.exec(p);
|
|
331
334
|
return m && this.#resources.of(name).some((x) => x.name === m[1]) ? `${m[1]}:${m[2]}` : null;
|