clavarium 0.2.88-next.1 → 0.2.91-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/server/accounts.mjs +1 -1
- package/server/main.mjs +12 -0
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clavarium",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.91-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.91-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.8-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.20",
|
|
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.20",
|
|
759
|
+
"resolved": "https://registry.npmjs.org/clavarium-tether/-/clavarium-tether-0.1.0-next.20.tgz",
|
|
760
|
+
"integrity": "sha512-XeUKJCQU95ScJwY76l6jNZsl8eQZFNMpuTLypW+oMhCtZvQXUTG2E8Zid3X6L1z3iFKCBfr1sJTX51B8TCaEjw==",
|
|
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.91-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.8-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.20",
|
|
51
51
|
"mermaid": "11.17.2",
|
|
52
52
|
"node-pty": "^1.1.0",
|
|
53
53
|
"pdfjs-dist": "6.4.299",
|
package/server/accounts.mjs
CHANGED
|
@@ -39,7 +39,7 @@ const PENDING_MAX = 20;
|
|
|
39
39
|
Tether kind each becomes, and whether the target needs the email address. */
|
|
40
40
|
const KIND = {
|
|
41
41
|
mail: { connector: 'mail', kind: 'mail', title: 'Mail', needsUser: true },
|
|
42
|
-
calendar: { connector: 'calendar', kind: 'calendar', title: 'Agenda', needsUser:
|
|
42
|
+
calendar: { connector: 'calendar', kind: 'calendar', title: 'Agenda', needsUser: true },
|
|
43
43
|
contacts: { connector: 'contacts', kind: 'contacts', title: 'Contacts', needsUser: true },
|
|
44
44
|
};
|
|
45
45
|
/* What each provider's built-in (Thunderbird) client grants a refresh token for. */
|
package/server/main.mjs
CHANGED
|
@@ -412,6 +412,18 @@ export async function startHome({ port, host, dataDir, mntDir = dataDir, gitRese
|
|
|
412
412
|
in the owner's browser, the refresh token is kept host-only (never in a
|
|
413
413
|
machine) and a Tether target is made for it: see accounts.mjs. */
|
|
414
414
|
const accounts = new Accounts({ secrets, targets: { put: (spec) => tethers.store().putTarget(spec), all: () => tethers.store().targets() } });
|
|
415
|
+
/* A calendar target made before it needed the account address (Google CalDAV
|
|
416
|
+
puts it in the URL) carries none. The same account's mailbox or address book
|
|
417
|
+
has it -- they share the one refresh token -- so fill it in from a sibling,
|
|
418
|
+
once, with no reconnection asked of anyone. */
|
|
419
|
+
(() => {
|
|
420
|
+
const store = tethers.store();
|
|
421
|
+
for (const t of store.targets()) {
|
|
422
|
+
if (t.kind !== 'calendar' || t.config?.user || !t.secrets?.refresh) continue;
|
|
423
|
+
const sib = store.targets().find((o) => o.secrets?.refresh === t.secrets.refresh && o.config?.user);
|
|
424
|
+
if (sib) store.putTarget({ ...t, config: { ...t.config, user: sib.config.user } });
|
|
425
|
+
}
|
|
426
|
+
})();
|
|
415
427
|
/* A repository's origin kept up to date, checks run in the machine, and
|
|
416
428
|
automatic sending to the branches the owner listed: see gitkeeper.mjs. */
|
|
417
429
|
/* What could not be read is told to the agents that write in the repository, where they can act. */
|