@tritard/waterbrother 0.16.107 → 0.16.108
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/package.json +1 -1
- package/src/gateway.js +2 -2
package/package.json
CHANGED
package/src/gateway.js
CHANGED
|
@@ -539,8 +539,8 @@ function formatBridgeHostLabel(host = {}) {
|
|
|
539
539
|
const sessionSuffix = String(host?.sessionId || "").trim().slice(-6);
|
|
540
540
|
const runtime = host?.provider && host?.model ? `${host.provider}/${host.model}` : "";
|
|
541
541
|
const safeLabel = label && !/\bundefined\b/i.test(label) ? label : "";
|
|
542
|
-
const primary =
|
|
543
|
-
return [primary,
|
|
542
|
+
const primary = safeLabel || owner || (sessionSuffix ? `terminal ${sessionSuffix}` : "live terminal");
|
|
543
|
+
return [primary, owner && safeLabel && owner !== safeLabel ? `(${owner})` : "", runtime ? `[${runtime}]` : ""].filter(Boolean).join(" ").trim();
|
|
544
544
|
}
|
|
545
545
|
|
|
546
546
|
function findLiveHostForAgent(hosts = [], agent = {}) {
|