clavarium 0.2.235-beta.1 → 0.2.236-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 +2 -2
- package/package.json +1 -1
- package/server/talk.mjs +5 -2
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clavarium",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.236-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.236-beta.1",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@xterm/addon-fit": "^0.11.0",
|
package/package.json
CHANGED
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;
|