clavarium 0.2.104-next.1 → 0.2.105-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 +2 -2
- package/package.json +1 -1
- package/server/tethers.mjs +4 -1
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clavarium",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.105-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.105-next.1",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@xterm/addon-fit": "^0.11.0",
|
package/package.json
CHANGED
package/server/tethers.mjs
CHANGED
|
@@ -35,7 +35,10 @@ export class Tethers {
|
|
|
35
35
|
constructor({ dataDir, resources, conversations, secrets, connectors, now = () => Date.now() }) {
|
|
36
36
|
this.#resources = resources; this.#conversations = conversations; this.#secrets = secrets;
|
|
37
37
|
this.#keeper = keeper(`${dataDir}/tether`, { sides: () => this.#sides(), secrets: (name) => this.#reveal(name), now, ...(connectors ? { connectors } : {}) });
|
|
38
|
-
|
|
38
|
+
/* Every change a page shows -- a new approval waiting, one decided, the targets,
|
|
39
|
+
the journal -- bumps the counter the client watches, so the approvals screen
|
|
40
|
+
sees them all at once, not only when a store change happens to wake it. */
|
|
41
|
+
this.#keeper.onChange(() => { this.#changes++; });
|
|
39
42
|
}
|
|
40
43
|
|
|
41
44
|
/* A secret's value for a connector, by name, from this server's vault; never seen by the agent.
|