@peer2peer/cli 0.1.0 → 0.1.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/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "0.1.0";
1
+ export declare const VERSION = "0.1.1";
package/dist/version.js CHANGED
@@ -2,4 +2,4 @@
2
2
  //
3
3
  // This CLI's version (scripts/set-version.mjs writes it), on its own so the status and identity
4
4
  // code can advertise it (features.ts) without importing the command line.
5
- export const VERSION = "0.1.0";
5
+ export const VERSION = "0.1.1";
package/dist/watch.js CHANGED
@@ -30,6 +30,7 @@ import { safeJson } from "./format.js";
30
30
  import { alertForeignRotations, noteDocRotations, retryRotationJoins } from "./rotation.js";
31
31
  import { flushOutbox, OUTBOX_RETRY_MS } from "./outbox.js";
32
32
  import { markRunning, unmarkRunning } from "./running.js";
33
+ import { graphMemoryLoop, graphMemoryTickMs } from "./graph-memory.js";
33
34
  function cursorPath(app, sid) {
34
35
  return join(app.home, "cursors", `${sid}.cursor`);
35
36
  }
@@ -163,6 +164,11 @@ export async function watch(app, opts) {
163
164
  await renewOpenJoinCaps(app);
164
165
  });
165
166
  every(3600_000, () => maintain(app));
167
+ // Graph memory (graph-memory.ts): this device's sessions' context into the local Ix graph, gathered
168
+ // from the statuses they posted and written in the background, a batch at a time. Off without the
169
+ // Ix extension, without Ix, or when the person turned it off; never on the hook path.
170
+ const memory = graphMemoryLoop(app, { log: opts.log });
171
+ every(graphMemoryTickMs(app.env), () => memory.tick());
166
172
  void maintain(app).catch(() => { });
167
173
  const pollMs = opts.pollMs ?? 300;
168
174
  const startedAs = app.userId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peer2peer/cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "The standalone Peer2Peer v3 CLI (`p2p`): an account-free identity, friends, circles, end-to-end encrypted session messaging and status over open relays",
5
5
  "keywords": [
6
6
  "peer2peer",
@@ -53,8 +53,8 @@
53
53
  "registry": "https://registry.npmjs.org/"
54
54
  },
55
55
  "dependencies": {
56
- "@peer2peer/codex-bridge": "0.1.0",
57
- "@peer2peer/core": "0.1.0",
56
+ "@peer2peer/codex-bridge": "0.1.1",
57
+ "@peer2peer/core": "0.1.1",
58
58
  "commander": "15.0.0",
59
59
  "uqr": "0.1.3",
60
60
  "ws": "8.22.0"