@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/gateway.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tritard/waterbrother",
3
- "version": "0.16.107",
3
+ "version": "0.16.108",
4
4
  "description": "Waterbrother: bring-your-own-model coding CLI with local tools, sessions, operator modes, and approval controls",
5
5
  "type": "module",
6
6
  "bin": {
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 = owner || safeLabel || (sessionSuffix ? `terminal ${sessionSuffix}` : "live terminal");
543
- return [primary, safeLabel && safeLabel !== owner ? `(${safeLabel})` : "", runtime ? `[${runtime}]` : ""].filter(Boolean).join(" ").trim();
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 = {}) {