@burdenoff/microfe-vibecontrols 2026.1109.1 → 2026.1111.2

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.
@@ -2,8 +2,9 @@ import { classifyAgentHealth as e } from "../../utils/agentHealth.js";
2
2
  import { useI18n as t } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
3
3
  import { Loader2 as n } from "lucide-react";
4
4
  import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
5
+ import { c as o } from "react/compiler-runtime";
5
6
  // src/components/agents/AgentStatusBadge.tsx
6
- var o = {
7
+ var s = {
7
8
  REGISTERING: {
8
9
  label: "Registering",
9
10
  color: "bg-bg-sunken text-text-secondary border-border-default",
@@ -38,37 +39,61 @@ var o = {
38
39
  label: "Deleted",
39
40
  color: "bg-status-error-bg-subtle text-status-error-text border-status-error-border"
40
41
  }
41
- }, s = "See connection log for details", c = ({ status: c, className: l = "", reason: u, linkTo: d, onClick: f }) => {
42
- let { t: p } = t(), m = (e, t) => {
43
- let n = p(e);
42
+ }, c = "See connection log for details", l = (l) => {
43
+ "use memo";
44
+ let u = o(38), { status: d, className: f, reason: p, linkTo: m, onClick: h } = l, g = f === void 0 ? "" : f, { t: _ } = t(), v;
45
+ u[0] === _ ? v = u[1] : (v = (e, t) => {
46
+ let n = _(e);
44
47
  return n === e ? t : n;
45
- }, h = o[c], g = !!d || !!f, _ = e(c, u), v = [];
46
- _.phase === "none" ? u && (c === "DEGRADED" || c === "OFFLINE") && v.push(`${h.label}: ${u}`) : (v.push(`${_.label} — ${_.actionHint}`), u && v.push(`Details: ${u}`)), g && v.push(m("agents.statusBadge.connectionLogHint", s));
47
- let y = v.length > 0 ? v.join(" · ") : void 0, b = !!h.spinner || _.inProgress, x = `inline-flex items-center gap-1 px-2.5 py-0.5 rounded-full text-xs font-medium border transition-colors duration-150 ${h.color} ${l}`, S = g ? " cursor-pointer hover:opacity-90 transition-transform duration-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-strong" : "", C = /* @__PURE__ */ a(r, { children: [
48
- b && /* @__PURE__ */ i(n, {
49
- className: "size-3 animate-spin",
50
- "aria-hidden": "true"
51
- }),
52
- c === "ACTIVE" && !b && /* @__PURE__ */ i("span", {
53
- "aria-hidden": "true",
54
- className: "size-1.5 rounded-full bg-current motion-safe:animate-vc-glow-pulse"
55
- }),
56
- h.label
57
- ] });
58
- return g ? /* @__PURE__ */ i("a", {
59
- href: d ?? "#",
60
- title: y,
61
- "aria-label": y ?? h.label,
62
- className: x + S,
63
- onClick: (e) => {
64
- e.metaKey || e.ctrlKey || e.shiftKey || e.button !== 0 || f && f(e);
65
- },
66
- children: C
67
- }) : /* @__PURE__ */ i("span", {
68
- title: y,
69
- "aria-label": y ?? h.label,
70
- className: x,
71
- children: C
72
- });
48
+ }, u[0] = _, u[1] = v);
49
+ let y = v, b = s[d], x = !!m || !!h, S;
50
+ u[2] !== p || u[3] !== d ? (S = e(d, p), u[2] = p, u[3] = d, u[4] = S) : S = u[4];
51
+ let C = S, w;
52
+ if (u[5] !== b.label || u[6] !== C.actionHint || u[7] !== C.label || u[8] !== C.phase || u[9] !== x || u[10] !== p || u[11] !== d || u[12] !== y) {
53
+ if (w = [], C.phase === "none" ? p && (d === "DEGRADED" || d === "OFFLINE") && w.push(`${b.label}: ${p}`) : (w.push(`${C.label} — ${C.actionHint}`), p && w.push(`Details: ${p}`)), x) {
54
+ let e;
55
+ u[14] === y ? e = u[15] : (e = y("agents.statusBadge.connectionLogHint", c), u[14] = y, u[15] = e), w.push(e);
56
+ }
57
+ u[5] = b.label, u[6] = C.actionHint, u[7] = C.label, u[8] = C.phase, u[9] = x, u[10] = p, u[11] = d, u[12] = y, u[13] = w;
58
+ } else w = u[13];
59
+ let T = w.length > 0 ? w.join(" · ") : void 0, E = !!b.spinner || C.inProgress, D = `inline-flex items-center gap-1 px-2.5 py-0.5 rounded-full text-xs font-medium border transition-colors duration-150 ${b.color} ${g}`, O = x ? " cursor-pointer hover:opacity-90 transition-transform duration-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-strong" : "", k = d === "ACTIVE" && !E, A;
60
+ u[16] === E ? A = u[17] : (A = E && /* @__PURE__ */ i(n, {
61
+ className: "size-3 animate-spin",
62
+ "aria-hidden": "true"
63
+ }), u[16] = E, u[17] = A);
64
+ let j;
65
+ u[18] === k ? j = u[19] : (j = k && /* @__PURE__ */ i("span", {
66
+ "aria-hidden": "true",
67
+ className: "size-1.5 rounded-full bg-current motion-safe:animate-vc-glow-pulse"
68
+ }), u[18] = k, u[19] = j);
69
+ let M;
70
+ u[20] !== b.label || u[21] !== A || u[22] !== j ? (M = /* @__PURE__ */ a(r, { children: [
71
+ A,
72
+ j,
73
+ b.label
74
+ ] }), u[20] = b.label, u[21] = A, u[22] = j, u[23] = M) : M = u[23];
75
+ let N = M;
76
+ if (x) {
77
+ let e = m ?? "#", t = T ?? b.label, n = D + O, r;
78
+ u[24] === h ? r = u[25] : (r = (e) => {
79
+ e.metaKey || e.ctrlKey || e.shiftKey || e.button !== 0 || h && h(e);
80
+ }, u[24] = h, u[25] = r);
81
+ let a;
82
+ return u[26] !== N || u[27] !== r || u[28] !== e || u[29] !== t || u[30] !== n || u[31] !== T ? (a = /* @__PURE__ */ i("a", {
83
+ href: e,
84
+ title: T,
85
+ "aria-label": t,
86
+ className: n,
87
+ onClick: r,
88
+ children: N
89
+ }), u[26] = N, u[27] = r, u[28] = e, u[29] = t, u[30] = n, u[31] = T, u[32] = a) : a = u[32], a;
90
+ }
91
+ let P = T ?? b.label, F;
92
+ return u[33] !== D || u[34] !== N || u[35] !== P || u[36] !== T ? (F = /* @__PURE__ */ i("span", {
93
+ title: T,
94
+ "aria-label": P,
95
+ className: D,
96
+ children: N
97
+ }), u[33] = D, u[34] = N, u[35] = P, u[36] = T, u[37] = F) : F = u[37], F;
73
98
  };
74
- export { c as AgentStatusBadge };
99
+ export { l as AgentStatusBadge };