@highway1/cli 0.1.36 → 0.1.37

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 CHANGED
@@ -118313,13 +118313,16 @@ function registerJoinCommand(program2) {
118313
118313
  const hasRelayAddr = () => node.getMultiaddrs().some((a2) => a2.includes("/p2p-circuit"));
118314
118314
  if (!hasRelayAddr()) {
118315
118315
  info("Waiting for relay reservation...");
118316
+ info(`Listen addresses configured: ${JSON.stringify(node.libp2p.components?.addressManager?.getListenAddrs?.() || [])}`);
118316
118317
  await new Promise((resolve) => {
118317
118318
  const timeout = setTimeout(() => {
118318
- info(`Relay reservation timeout after 10s. Multiaddrs: ${node.getMultiaddrs().join(", ")}`);
118319
+ info(`Relay reservation timeout after 10s.`);
118320
+ info(`Final multiaddrs: ${node.getMultiaddrs().join(", ")}`);
118321
+ info(`Connected peers: ${node.libp2p.getPeers().map((p2) => p2.toString()).join(", ")}`);
118319
118322
  resolve();
118320
118323
  }, 1e4);
118321
- const onReservation = () => {
118322
- info(`Relay reservation successful!`);
118324
+ const onReservation = (evt) => {
118325
+ info(`Relay reservation successful! Details: ${JSON.stringify(evt.detail)}`);
118323
118326
  clearTimeout(timeout);
118324
118327
  setTimeout(() => {
118325
118328
  info(`Relay addresses: ${node.getMultiaddrs().filter((a2) => a2.includes("/p2p-circuit")).join(", ")}`);