clavarium 0.2.110-next.1 → 0.2.111-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.
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "clavarium",
3
- "version": "0.2.110-next.1",
3
+ "version": "0.2.111-next.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "clavarium",
9
- "version": "0.2.110-next.1",
9
+ "version": "0.2.111-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
- "clavarium-binder": "0.1.15-next.1",
14
+ "clavarium-binder": "0.1.16-next.1",
15
15
  "clavarium-docket": "0.1.1",
16
- "clavarium-parley": "0.17.11-next.1",
16
+ "clavarium-parley": "0.17.12-next.1",
17
17
  "clavarium-tether": "0.1.0-next.28",
18
18
  "mermaid": "11.17.2",
19
19
  "node-pty": "^1.1.0",
@@ -716,9 +716,9 @@
716
716
  }
717
717
  },
718
718
  "node_modules/clavarium-binder": {
719
- "version": "0.1.15-next.1",
720
- "resolved": "https://registry.npmjs.org/clavarium-binder/-/clavarium-binder-0.1.15-next.1.tgz",
721
- "integrity": "sha512-Ag8Egur6+EYwfQi3CUGi0Ac1T4viM8Myb224XrZkbwk4baRKekstiSs9joBTAF6hoo/QRAb4QOsSsCxNo3EeGw==",
719
+ "version": "0.1.16-next.1",
720
+ "resolved": "https://registry.npmjs.org/clavarium-binder/-/clavarium-binder-0.1.16-next.1.tgz",
721
+ "integrity": "sha512-T0Ys/nHzUoYYC2U8jB9QMKs406yBTPIHzp7JdmYNg9SgwAbqSFmWcg7C9te177V0UdewQWiQnAfLTeO+8WWIXQ==",
722
722
  "license": "MIT",
723
723
  "bin": {
724
724
  "binder": "bin/binder.mjs",
@@ -742,9 +742,9 @@
742
742
  }
743
743
  },
744
744
  "node_modules/clavarium-parley": {
745
- "version": "0.17.11-next.1",
746
- "resolved": "https://registry.npmjs.org/clavarium-parley/-/clavarium-parley-0.17.11-next.1.tgz",
747
- "integrity": "sha512-IHGgFbDzHjrNVRcSR/KudWPUfvKxCeu03bNXE8+84lLMGHL7LyaiIg+iuw/cXMq4etz5BVXddVA/DGDoTUFO3A==",
745
+ "version": "0.17.12-next.1",
746
+ "resolved": "https://registry.npmjs.org/clavarium-parley/-/clavarium-parley-0.17.12-next.1.tgz",
747
+ "integrity": "sha512-G20876winm0zAtnxHcJIRqWwl8XnOyg+SYPu2S6xieRYnocgSTdQew9zOoBWmNMirvyyXqI/p8bN0IBQ1caS+w==",
748
748
  "license": "MIT",
749
749
  "bin": {
750
750
  "parley": "bin/parley.mjs",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clavarium",
3
- "version": "0.2.110-next.1",
3
+ "version": "0.2.111-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.",
@@ -44,9 +44,9 @@
44
44
  "dependencies": {
45
45
  "@xterm/addon-fit": "^0.11.0",
46
46
  "@xterm/xterm": "^6.0.0",
47
- "clavarium-binder": "0.1.15-next.1",
47
+ "clavarium-binder": "0.1.16-next.1",
48
48
  "clavarium-docket": "0.1.1",
49
- "clavarium-parley": "0.17.11-next.1",
49
+ "clavarium-parley": "0.17.12-next.1",
50
50
  "clavarium-tether": "0.1.0-next.28",
51
51
  "mermaid": "11.17.2",
52
52
  "node-pty": "^1.1.0",
@@ -110,9 +110,12 @@ export class Binders {
110
110
  }
111
111
  /* Who may own a record, or be given a list. */
112
112
  people(identity = '') {
113
+ /* Who signed in, as the store names their ownership ('me' resolves to this). The matrix
114
+ colours a card "à moi" by matching this, so the page is told which entry is the viewer. */
115
+ const meId = `person:${identity || 'owner'}`;
113
116
  const persons = (this.#team?.list?.() ?? []).map((o) => ({ id: `person:${String(o.email ?? o.id ?? '').toLowerCase()}`, kind: 'person', name: String(o.email ?? o.id ?? '') })).filter((p) => p.name);
114
- if (!persons.length) persons.push({ id: `person:${identity || 'owner'}`, kind: 'person', name: identity || 'Owner' });
115
- return [...persons, ...this.#conversations().map((name) => ({ id: `${AGENT}${name}`, kind: 'agent', name }))];
117
+ if (!persons.length) persons.push({ id: meId, kind: 'person', name: identity || 'Owner' });
118
+ return [...persons.map((p) => (p.id === meId ? { ...p, me: true } : p)), ...this.#conversations().map((name) => ({ id: `${AGENT}${name}`, kind: 'agent', name }))];
116
119
  }
117
120
  /* What each conversation was given: { name: { lists, waiting } }, waiting being the
118
121
  records of those lists that wait for a person's tick (a list with a gate, not approved). */