@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/README.md +14 -10
- package/dist/app.d.ts +5 -0
- package/dist/app.js +5 -1
- package/dist/cli.d.ts +53 -4
- package/dist/cli.js +147 -10
- package/dist/config.d.ts +47 -0
- package/dist/config.js +51 -0
- package/dist/doctor.d.ts +14 -0
- package/dist/doctor.js +114 -1
- package/dist/ext-host.d.ts +6 -0
- package/dist/ext-host.js +36 -2
- package/dist/extensions.d.ts +101 -0
- package/dist/extensions.js +11 -0
- package/dist/graph-memory.d.ts +107 -0
- package/dist/graph-memory.js +393 -0
- package/dist/history.d.ts +155 -0
- package/dist/history.js +697 -0
- package/dist/identity.d.ts +3 -0
- package/dist/identity.js +8 -0
- package/dist/inbound.js +4 -1
- package/dist/ix-local.d.ts +76 -0
- package/dist/ix-local.js +203 -0
- package/dist/projects.d.ts +261 -10
- package/dist/projects.js +753 -69
- package/dist/receipts.js +3 -1
- package/dist/sessions.d.ts +20 -5
- package/dist/sessions.js +112 -17
- package/dist/state.d.ts +26 -0
- package/dist/state.js +3 -0
- package/dist/tui/model.d.ts +7 -1
- package/dist/tui/model.js +8 -4
- package/dist/tui/tui.d.ts +9 -2
- package/dist/tui/tui.js +47 -6
- package/dist/tui/view.js +6 -4
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/watch.js +6 -0
- package/package.json +3 -3
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.
|
|
1
|
+
export declare const VERSION = "0.1.1";
|
package/dist/version.js
CHANGED
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.
|
|
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.
|
|
57
|
-
"@peer2peer/core": "0.1.
|
|
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"
|