claudemesh-cli 1.31.3 → 1.31.4

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.
@@ -104,7 +104,7 @@ __export(exports_urls, {
104
104
  VERSION: () => VERSION,
105
105
  URLS: () => URLS
106
106
  });
107
- var URLS, VERSION = "1.31.3", env;
107
+ var URLS, VERSION = "1.31.4", env;
108
108
  var init_urls = __esm(() => {
109
109
  URLS = {
110
110
  BROKER: process.env.CLAUDEMESH_BROKER_URL ?? "wss://ic.claudemesh.com/ws",
@@ -7930,7 +7930,6 @@ async function runPeers(flags) {
7930
7930
  continue;
7931
7931
  }
7932
7932
  for (const p of peers) {
7933
- const groups = p.groups.length ? " [" + p.groups.map((g) => `@${g.name}${g.role ? `:${g.role}` : ""}`).join(", ") + "]" : "";
7934
7933
  const statusDot = p.status === "working" ? yellow("●") : green("●");
7935
7934
  const name = bold(p.displayName);
7936
7935
  const meta = [];
@@ -7944,9 +7943,20 @@ async function runPeers(flags) {
7944
7943
  const summary = p.summary ? dim(` — ${p.summary}`) : "";
7945
7944
  const pubkeyTag = dim(` · ${p.pubkey.slice(0, 16)}…`);
7946
7945
  const selfTag = p.isThisSession ? dim(" ") + yellow("(this session)") : p.isSelf ? dim(" ") + yellow("(your other session)") : "";
7947
- render.info(`${statusDot} ${name}${selfTag}${groups}${metaStr}${pubkeyTag}${summary}`);
7946
+ const inlineTags = [];
7947
+ const peerRole = p.profile?.role?.trim();
7948
+ if (peerRole)
7949
+ inlineTags.push(`role:${peerRole}`);
7950
+ if (p.groups.length) {
7951
+ inlineTags.push(...p.groups.map((g) => `@${g.name}${g.role ? `:${g.role}` : ""}`));
7952
+ }
7953
+ const tagsStr = inlineTags.length ? " [" + inlineTags.join(", ") + "]" : "";
7954
+ render.info(`${statusDot} ${name}${selfTag}${tagsStr}${metaStr}${pubkeyTag}${summary}`);
7948
7955
  if (p.cwd)
7949
7956
  render.info(dim(` cwd: ${p.cwd}`));
7957
+ if (!peerRole && p.groups.length === 0) {
7958
+ render.info(dim(" role: (none) groups: (none)"));
7959
+ }
7950
7960
  }
7951
7961
  } catch (e) {
7952
7962
  render.err(`${slug}: ${e instanceof Error ? e.message : String(e)}`);
@@ -20041,4 +20051,4 @@ main().catch((err) => {
20041
20051
  process.exit(EXIT.INTERNAL_ERROR);
20042
20052
  });
20043
20053
 
20044
- //# debugId=8FE49D7349A15CB764756E2164756E21
20054
+ //# debugId=4648201DE078375C64756E2164756E21