@highway1/cli 0.1.58 → 0.1.60
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/index.js +6 -9
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -17461,6 +17461,10 @@ var ClawDaemon = class {
|
|
|
17461
17461
|
async start() {
|
|
17462
17462
|
try {
|
|
17463
17463
|
logger15.info("Starting Clawiverse daemon", { socketPath: this.socketPath });
|
|
17464
|
+
const { existsSync: existsSync3, unlinkSync: unlinkSync3 } = await import('fs');
|
|
17465
|
+
if (existsSync3(this.socketPath)) {
|
|
17466
|
+
unlinkSync3(this.socketPath);
|
|
17467
|
+
}
|
|
17464
17468
|
const keyPair = importKeyPair({
|
|
17465
17469
|
publicKey: this.identity.publicKey,
|
|
17466
17470
|
privateKey: this.identity.privateKey
|
|
@@ -17807,7 +17811,6 @@ function registerDaemonCommand(program2) {
|
|
|
17807
17811
|
if (await client.isDaemonRunning()) {
|
|
17808
17812
|
success("Daemon already running");
|
|
17809
17813
|
const status = await client.send("status", {});
|
|
17810
|
-
info(`Peer ID: ${status.peerId}`);
|
|
17811
17814
|
info(`DID: ${status.did}`);
|
|
17812
17815
|
return;
|
|
17813
17816
|
}
|
|
@@ -17826,7 +17829,6 @@ function registerDaemonCommand(program2) {
|
|
|
17826
17829
|
if (await client.isDaemonRunning()) {
|
|
17827
17830
|
success("Daemon started");
|
|
17828
17831
|
const status = await client.send("status", {});
|
|
17829
|
-
info(`Peer ID: ${status.peerId}`);
|
|
17830
17832
|
info(`DID: ${status.did}`);
|
|
17831
17833
|
info(`Socket: ${SOCKET_PATH}`);
|
|
17832
17834
|
return;
|
|
@@ -17890,15 +17892,10 @@ function registerDaemonCommand(program2) {
|
|
|
17890
17892
|
const status = await client.send("status", {});
|
|
17891
17893
|
success("Daemon running");
|
|
17892
17894
|
console.log();
|
|
17893
|
-
info(`Peer ID: ${status.peerId}`);
|
|
17894
17895
|
info(`DID: ${status.did}`);
|
|
17896
|
+
info(`Relays: ${(status.connectedRelays ?? []).join(", ") || "(none)"}`);
|
|
17897
|
+
info(`Peers: ${status.peerCount ?? 0}`);
|
|
17895
17898
|
info(`Socket: ${SOCKET_PATH}`);
|
|
17896
|
-
info(`Bootstrap peers: ${status.bootstrapPeers.length}`);
|
|
17897
|
-
console.log();
|
|
17898
|
-
info("Multiaddrs:");
|
|
17899
|
-
status.multiaddrs.forEach((addr) => {
|
|
17900
|
-
console.log(` ${addr}`);
|
|
17901
|
-
});
|
|
17902
17899
|
} else {
|
|
17903
17900
|
info("Daemon not running");
|
|
17904
17901
|
console.log();
|