feat: add discovery role hints

This commit is contained in:
Peter Steinberger
2026-01-20 12:10:13 +00:00
parent c613769d22
commit 7720106624
3 changed files with 15 additions and 0 deletions

View File

@@ -82,6 +82,12 @@ export function renderBeaconLines(beacon: GatewayBonjourBeacon, rich: boolean):
if (wsUrl) {
lines.push(` ${colorize(rich, theme.muted, "ws")}: ${colorize(rich, theme.command, wsUrl)}`);
}
if (beacon.role) {
lines.push(` ${colorize(rich, theme.muted, "role")}: ${beacon.role}`);
}
if (beacon.transport) {
lines.push(` ${colorize(rich, theme.muted, "transport")}: ${beacon.transport}`);
}
if (beacon.gatewayTls) {
const fingerprint = beacon.gatewayTlsFingerprintSha256
? `sha256 ${beacon.gatewayTlsFingerprintSha256}`