claudemesh-cli 1.0.0-alpha.37 → 1.0.0-alpha.39

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.
@@ -88,7 +88,7 @@ __export(exports_urls, {
88
88
  VERSION: () => VERSION,
89
89
  URLS: () => URLS
90
90
  });
91
- var URLS, VERSION = "1.0.0-alpha.37", env;
91
+ var URLS, VERSION = "1.0.0-alpha.39", env;
92
92
  var init_urls = __esm(() => {
93
93
  URLS = {
94
94
  BROKER: process.env.CLAUDEMESH_BROKER_URL ?? "wss://ic.claudemesh.com/ws",
@@ -6242,7 +6242,7 @@ async function runBan(target, opts = {}) {
6242
6242
  render.ok(`Banned ${result.banned} from ${meshSlug}. They cannot reconnect until unbanned.`);
6243
6243
  render.hint(`Undo: claudemesh unban ${result.banned} --mesh ${meshSlug}`);
6244
6244
  } else {
6245
- render.err(result?.error ?? "ban failed");
6245
+ render.err(result?.message ?? result?.error ?? result?.code ?? "ban failed");
6246
6246
  }
6247
6247
  return result?.banned ? EXIT.SUCCESS : EXIT.INTERNAL_ERROR;
6248
6248
  });
@@ -6263,7 +6263,7 @@ async function runUnban(target, opts = {}) {
6263
6263
  if (result?.unbanned) {
6264
6264
  render.ok(`Unbanned ${result.unbanned} from ${meshSlug}. They can rejoin.`);
6265
6265
  } else {
6266
- render.err(result?.error ?? "unban failed");
6266
+ render.err(result?.message ?? result?.error ?? result?.code ?? "unban failed");
6267
6267
  }
6268
6268
  return result?.unbanned ? EXIT.SUCCESS : EXIT.INTERNAL_ERROR;
6269
6269
  });
@@ -6318,7 +6318,9 @@ async function runPeers(flags) {
6318
6318
  for (const slug of slugs) {
6319
6319
  try {
6320
6320
  await withMesh({ meshSlug: slug }, async (client, mesh) => {
6321
- const peers = await client.listPeers();
6321
+ const allPeers = await client.listPeers();
6322
+ const selfPubkey = client.getSessionPubkey();
6323
+ const peers = selfPubkey ? allPeers.filter((p) => p.pubkey !== selfPubkey) : allPeers;
6322
6324
  if (flags.json) {
6323
6325
  allJson.push({ mesh: mesh.slug, peers });
6324
6326
  return;
@@ -12671,4 +12673,4 @@ main().catch((err) => {
12671
12673
  process.exit(EXIT.INTERNAL_ERROR);
12672
12674
  });
12673
12675
 
12674
- //# debugId=95D625F3B4CFD9EA64756E2164756E21
12676
+ //# debugId=191EF98080348C3C64756E2164756E21