@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.
|
@@ -4,408 +4,579 @@ import { PlatformIcon as n, platformLabel as r } from "../shared/PlatformIcon.js
|
|
|
4
4
|
import { useTr as i } from "../../shared/hooks/useTr.js";
|
|
5
5
|
import { getAgentStatus as a } from "./agentStatus.js";
|
|
6
6
|
import { isWorkspaceAgent as o } from "../../utils/agentVisibility.js";
|
|
7
|
-
import { Clock as s, Link2Off as c, Lock as l, Play as
|
|
8
|
-
import { Fragment as
|
|
9
|
-
import { Button as
|
|
7
|
+
import { Clock as s, Link2Off as c, Lock as l, Play as ee, Plus as u, RefreshCw as te, Server as ne, Settings as d, Square as f } from "lucide-react";
|
|
8
|
+
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
9
|
+
import { Button as g, Checkbox as re } from "@burdenoff/fe-libs/ui";
|
|
10
|
+
import { c as ie } from "react/compiler-runtime";
|
|
10
11
|
// src/components/agents/AgentList.tsx
|
|
11
|
-
function
|
|
12
|
+
function ae(e) {
|
|
12
13
|
if (!e) return "Never";
|
|
13
14
|
let t = Date.now() - new Date(e).getTime();
|
|
14
15
|
return t < 6e4 ? "Just now" : t < 36e5 ? `${Math.floor(t / 6e4)}m ago` : t < 864e5 ? `${Math.floor(t / 36e5)}h ago` : `${Math.floor(t / 864e5)}d ago`;
|
|
15
16
|
}
|
|
16
|
-
function
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
function _(t) {
|
|
18
|
+
"use memo";
|
|
19
|
+
let o = ie(86), { agent: l, onSelect: u, onStart: p, onStop: g, onDisconnect: _, onSettings: b, selected: x, onToggleSelect: S } = t, C = x !== void 0 && x, w = i(), T;
|
|
20
|
+
o[0] === l ? T = o[1] : (T = a(l), o[0] = l, o[1] = T);
|
|
21
|
+
let E = T, D = E === "ACTIVE" || E === "STOPPED" || E === "OFFLINE" || E === "DEGRADED", O;
|
|
22
|
+
o[2] !== E || o[3] !== w ? (O = E === "OFFLINE" ? w("vibecontrols.agents.clearConnection", "Clear Connection") : w("vibecontrols.agents.disconnect", "Disconnect"), o[2] = E, o[3] = w, o[4] = O) : O = o[4];
|
|
23
|
+
let k = O, A;
|
|
24
|
+
o[5] !== l || o[6] !== u ? (A = (e) => {
|
|
25
|
+
e.target === e.currentTarget && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), u?.(l));
|
|
26
|
+
}, o[5] = l, o[6] = u, o[7] = A) : A = o[7];
|
|
27
|
+
let j = `relative p-4 border border-border-default rounded-lg bg-bg-surface hover:bg-bg-sunken cursor-pointer transition-colors duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus focus-visible:ring-offset-2 focus-visible:ring-offset-bg-canvas ${C ? "ring-2 ring-action-primary-bg" : ""}`, M;
|
|
28
|
+
o[8] !== l || o[9] !== u ? (M = () => u?.(l), o[8] = l, o[9] = u, o[10] = M) : M = o[10];
|
|
29
|
+
let N;
|
|
30
|
+
o[11] !== l.name || o[12] !== S || o[13] !== C || o[14] !== w ? (N = S && /* @__PURE__ */ m("span", {
|
|
31
|
+
className: "flex flex-shrink-0 items-center justify-center min-h-11 min-w-11 -m-3",
|
|
32
|
+
onClick: (e) => {
|
|
33
|
+
e.stopPropagation(), e.target === e.currentTarget && S();
|
|
34
|
+
},
|
|
35
|
+
children: /* @__PURE__ */ m(re, {
|
|
36
|
+
checked: C,
|
|
37
|
+
onCheckedChange: () => S(),
|
|
38
|
+
onClick: y,
|
|
39
|
+
"aria-label": w("vibecontrols.agents.selectAgent", "Select {{name}}", { name: l.name })
|
|
40
|
+
})
|
|
41
|
+
}), o[11] = l.name, o[12] = S, o[13] = C, o[14] = w, o[15] = N) : N = o[15];
|
|
42
|
+
let P;
|
|
43
|
+
o[16] === Symbol.for("react.memo_cache_sentinel") ? (P = /* @__PURE__ */ m(ne, {
|
|
44
|
+
className: "size-5 text-text-secondary flex-shrink-0 mt-0.5",
|
|
45
|
+
"aria-hidden": "true"
|
|
46
|
+
}), o[16] = P) : P = o[16];
|
|
47
|
+
let F;
|
|
48
|
+
o[17] === l.name ? F = o[18] : (F = /* @__PURE__ */ m("p", {
|
|
49
|
+
className: "text-sm font-medium text-text-primary truncate",
|
|
50
|
+
children: l.name
|
|
51
|
+
}), o[17] = l.name, o[18] = F);
|
|
52
|
+
let I;
|
|
53
|
+
o[19] !== l.hostname || o[20] !== l.id ? (I = l.hostname || l.id.slice(0, 8), o[19] = l.hostname, o[20] = l.id, o[21] = I) : I = o[21];
|
|
54
|
+
let L;
|
|
55
|
+
o[22] === I ? L = o[23] : (L = /* @__PURE__ */ m("p", {
|
|
56
|
+
className: "text-xs text-text-muted truncate",
|
|
57
|
+
children: I
|
|
58
|
+
}), o[22] = I, o[23] = L);
|
|
59
|
+
let R;
|
|
60
|
+
o[24] !== L || o[25] !== F ? (R = /* @__PURE__ */ h("div", {
|
|
61
|
+
className: "min-w-0 flex-1",
|
|
62
|
+
children: [F, L]
|
|
63
|
+
}), o[24] = L, o[25] = F, o[26] = R) : R = o[26];
|
|
64
|
+
let z;
|
|
65
|
+
o[27] !== R || o[28] !== N ? (z = /* @__PURE__ */ h("div", {
|
|
66
|
+
className: "flex items-start gap-3 min-w-0 flex-1",
|
|
67
|
+
children: [
|
|
68
|
+
N,
|
|
69
|
+
P,
|
|
70
|
+
R
|
|
71
|
+
]
|
|
72
|
+
}), o[27] = R, o[28] = N, o[29] = z) : z = o[29];
|
|
73
|
+
let B = `/vibecontrols/agents/${l.id}?tab=connection`, V;
|
|
74
|
+
o[30] !== E || o[31] !== B ? (V = /* @__PURE__ */ m(e, {
|
|
75
|
+
status: E,
|
|
76
|
+
linkTo: B,
|
|
77
|
+
onClick: v
|
|
78
|
+
}), o[30] = E, o[31] = B, o[32] = V) : V = o[32];
|
|
79
|
+
let H;
|
|
80
|
+
o[33] !== z || o[34] !== V ? (H = /* @__PURE__ */ h("div", {
|
|
81
|
+
className: "flex items-start justify-between gap-3",
|
|
82
|
+
children: [z, V]
|
|
83
|
+
}), o[33] = z, o[34] = V, o[35] = H) : H = o[35];
|
|
84
|
+
let U;
|
|
85
|
+
o[36] === l.platform ? U = o[37] : (U = l.platform ? /* @__PURE__ */ h("span", {
|
|
86
|
+
className: "flex items-center gap-1.5",
|
|
87
|
+
children: [/* @__PURE__ */ m(n, {
|
|
88
|
+
platform: l.platform,
|
|
89
|
+
className: "size-3.5",
|
|
90
|
+
labelled: !1
|
|
91
|
+
}), r(l.platform)]
|
|
92
|
+
}) : /* @__PURE__ */ m("span", { children: "-" }), o[36] = l.platform, o[37] = U);
|
|
93
|
+
let oe = l.architecture || "-", se;
|
|
94
|
+
o[38] === oe ? se = o[39] : (se = /* @__PURE__ */ m("span", { children: oe }), o[38] = oe, o[39] = se);
|
|
95
|
+
let W;
|
|
96
|
+
o[40] === Symbol.for("react.memo_cache_sentinel") ? (W = /* @__PURE__ */ m(s, {
|
|
97
|
+
className: "size-3",
|
|
98
|
+
"aria-hidden": "true"
|
|
99
|
+
}), o[40] = W) : W = o[40];
|
|
100
|
+
let G;
|
|
101
|
+
o[41] === l.lastHeartbeat ? G = o[42] : (G = ae(l.lastHeartbeat), o[41] = l.lastHeartbeat, o[42] = G);
|
|
102
|
+
let K;
|
|
103
|
+
o[43] === G ? K = o[44] : (K = /* @__PURE__ */ h("span", {
|
|
104
|
+
className: "flex items-center gap-1",
|
|
105
|
+
children: [W, G]
|
|
106
|
+
}), o[43] = G, o[44] = K);
|
|
107
|
+
let q;
|
|
108
|
+
o[45] !== U || o[46] !== se || o[47] !== K ? (q = /* @__PURE__ */ h("div", {
|
|
109
|
+
className: "mt-3 flex flex-wrap items-center gap-x-4 gap-y-2 text-xs text-text-secondary",
|
|
110
|
+
children: [
|
|
111
|
+
U,
|
|
112
|
+
se,
|
|
113
|
+
K
|
|
114
|
+
]
|
|
115
|
+
}), o[45] = U, o[46] = se, o[47] = K, o[48] = q) : q = o[48];
|
|
116
|
+
let J;
|
|
117
|
+
o[49] !== l || o[50] !== g || o[51] !== E || o[52] !== w ? (J = E === "ACTIVE" && g && /* @__PURE__ */ m("button", {
|
|
118
|
+
type: "button",
|
|
119
|
+
onClick: (e) => {
|
|
120
|
+
e.stopPropagation(), g(l);
|
|
121
|
+
},
|
|
122
|
+
className: "flex size-11 items-center justify-center rounded-button hover:bg-bg-sunken transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus",
|
|
123
|
+
"aria-label": w("vibecontrols.agents.stopAction", "Stop"),
|
|
124
|
+
title: w("vibecontrols.agents.stopAction", "Stop"),
|
|
125
|
+
children: /* @__PURE__ */ m(f, {
|
|
126
|
+
className: "size-4 text-text-secondary",
|
|
127
|
+
"aria-hidden": "true"
|
|
128
|
+
})
|
|
129
|
+
}), o[49] = l, o[50] = g, o[51] = E, o[52] = w, o[53] = J) : J = o[53];
|
|
130
|
+
let Y;
|
|
131
|
+
o[54] !== l || o[55] !== p || o[56] !== E || o[57] !== w ? (Y = (E === "STOPPED" || E === "OFFLINE") && p && /* @__PURE__ */ m("button", {
|
|
132
|
+
type: "button",
|
|
133
|
+
onClick: (e) => {
|
|
134
|
+
e.stopPropagation(), p(l);
|
|
135
|
+
},
|
|
136
|
+
className: "flex size-11 items-center justify-center rounded-button hover:bg-bg-sunken transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus",
|
|
137
|
+
"aria-label": w("vibecontrols.agents.startAction", "Start"),
|
|
138
|
+
title: w("vibecontrols.agents.startAction", "Start"),
|
|
139
|
+
children: /* @__PURE__ */ m(ee, {
|
|
140
|
+
className: "size-4 text-text-secondary",
|
|
141
|
+
"aria-hidden": "true"
|
|
142
|
+
})
|
|
143
|
+
}), o[54] = l, o[55] = p, o[56] = E, o[57] = w, o[58] = Y) : Y = o[58];
|
|
144
|
+
let X;
|
|
145
|
+
o[59] !== l || o[60] !== p || o[61] !== E || o[62] !== w ? (X = E === "DEGRADED" && p && /* @__PURE__ */ m("button", {
|
|
146
|
+
type: "button",
|
|
147
|
+
onClick: (e) => {
|
|
148
|
+
e.stopPropagation(), p(l);
|
|
149
|
+
},
|
|
150
|
+
className: "flex size-11 items-center justify-center rounded-button hover:bg-bg-sunken transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus",
|
|
151
|
+
"aria-label": w("vibecontrols.agents.reconnectAction", "Reconnect"),
|
|
152
|
+
title: w("vibecontrols.agents.reconnectAction", "Reconnect"),
|
|
153
|
+
children: /* @__PURE__ */ m(te, {
|
|
154
|
+
className: "size-4 text-text-secondary",
|
|
155
|
+
"aria-hidden": "true"
|
|
156
|
+
})
|
|
157
|
+
}), o[59] = l, o[60] = p, o[61] = E, o[62] = w, o[63] = X) : X = o[63];
|
|
158
|
+
let Z;
|
|
159
|
+
o[64] !== l || o[65] !== D || o[66] !== k || o[67] !== _ ? (Z = _ && D && /* @__PURE__ */ m("button", {
|
|
160
|
+
type: "button",
|
|
161
|
+
onClick: (e) => {
|
|
162
|
+
e.stopPropagation(), _(l);
|
|
163
|
+
},
|
|
164
|
+
className: "flex size-11 items-center justify-center rounded-button hover:bg-bg-sunken transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus",
|
|
165
|
+
"aria-label": k,
|
|
166
|
+
title: k,
|
|
167
|
+
children: /* @__PURE__ */ m(c, {
|
|
168
|
+
className: "size-4 text-status-error-text",
|
|
169
|
+
"aria-hidden": "true"
|
|
170
|
+
})
|
|
171
|
+
}), o[64] = l, o[65] = D, o[66] = k, o[67] = _, o[68] = Z) : Z = o[68];
|
|
172
|
+
let Q;
|
|
173
|
+
o[69] !== l || o[70] !== b || o[71] !== w ? (Q = b && /* @__PURE__ */ m("button", {
|
|
174
|
+
type: "button",
|
|
175
|
+
onClick: (e) => {
|
|
176
|
+
e.stopPropagation(), b(l);
|
|
177
|
+
},
|
|
178
|
+
className: "flex size-11 items-center justify-center rounded-button hover:bg-bg-sunken transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus",
|
|
179
|
+
"aria-label": w("vibecontrols.agents.settingsAction", "Settings"),
|
|
180
|
+
title: w("vibecontrols.agents.settingsAction", "Settings"),
|
|
181
|
+
children: /* @__PURE__ */ m(d, {
|
|
182
|
+
className: "size-4 text-text-secondary",
|
|
183
|
+
"aria-hidden": "true"
|
|
184
|
+
})
|
|
185
|
+
}), o[69] = l, o[70] = b, o[71] = w, o[72] = Q) : Q = o[72];
|
|
186
|
+
let $;
|
|
187
|
+
o[73] !== J || o[74] !== Y || o[75] !== X || o[76] !== Z || o[77] !== Q ? ($ = /* @__PURE__ */ h("div", {
|
|
188
|
+
className: "mt-3 flex items-center gap-2 justify-end border-t border-border-subtle pt-3",
|
|
189
|
+
children: [
|
|
190
|
+
J,
|
|
191
|
+
Y,
|
|
192
|
+
X,
|
|
193
|
+
Z,
|
|
194
|
+
Q
|
|
195
|
+
]
|
|
196
|
+
}), o[73] = J, o[74] = Y, o[75] = X, o[76] = Z, o[77] = Q, o[78] = $) : $ = o[78];
|
|
197
|
+
let ce;
|
|
198
|
+
return o[79] !== H || o[80] !== q || o[81] !== $ || o[82] !== A || o[83] !== j || o[84] !== M ? (ce = /* @__PURE__ */ h("div", {
|
|
19
199
|
role: "button",
|
|
20
200
|
tabIndex: 0,
|
|
21
|
-
onKeyDown:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
className: `relative p-4 border border-border-default rounded-lg bg-bg-surface hover:bg-bg-sunken cursor-pointer transition-colors duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus focus-visible:ring-offset-2 focus-visible:ring-offset-bg-canvas ${S ? "ring-2 ring-action-primary-bg" : ""}`,
|
|
25
|
-
onClick: () => o?.(t),
|
|
201
|
+
onKeyDown: A,
|
|
202
|
+
className: j,
|
|
203
|
+
onClick: M,
|
|
26
204
|
children: [
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
className: "flex items-start gap-3 min-w-0 flex-1",
|
|
31
|
-
children: [
|
|
32
|
-
C && /* @__PURE__ */ _("span", {
|
|
33
|
-
className: "flex flex-shrink-0 items-center justify-center min-h-11 min-w-11 -m-3",
|
|
34
|
-
onClick: (e) => {
|
|
35
|
-
e.stopPropagation(), e.target === e.currentTarget && C();
|
|
36
|
-
},
|
|
37
|
-
children: /* @__PURE__ */ _(b, {
|
|
38
|
-
checked: S,
|
|
39
|
-
onCheckedChange: () => C(),
|
|
40
|
-
onClick: (e) => e.stopPropagation(),
|
|
41
|
-
"aria-label": w("vibecontrols.agents.selectAgent", "Select {{name}}", { name: t.name })
|
|
42
|
-
})
|
|
43
|
-
}),
|
|
44
|
-
/* @__PURE__ */ _(p, {
|
|
45
|
-
className: "size-5 text-text-secondary flex-shrink-0 mt-0.5",
|
|
46
|
-
"aria-hidden": "true"
|
|
47
|
-
}),
|
|
48
|
-
/* @__PURE__ */ v("div", {
|
|
49
|
-
className: "min-w-0 flex-1",
|
|
50
|
-
children: [/* @__PURE__ */ _("p", {
|
|
51
|
-
className: "text-sm font-medium text-text-primary truncate",
|
|
52
|
-
children: t.name
|
|
53
|
-
}), /* @__PURE__ */ _("p", {
|
|
54
|
-
className: "text-xs text-text-muted truncate",
|
|
55
|
-
children: t.hostname || t.id.slice(0, 8)
|
|
56
|
-
})]
|
|
57
|
-
})
|
|
58
|
-
]
|
|
59
|
-
}), /* @__PURE__ */ _(e, {
|
|
60
|
-
status: T,
|
|
61
|
-
linkTo: `/vibecontrols/agents/${t.id}?tab=connection`,
|
|
62
|
-
onClick: (e) => e.stopPropagation()
|
|
63
|
-
})]
|
|
64
|
-
}),
|
|
65
|
-
/* @__PURE__ */ v("div", {
|
|
66
|
-
className: "mt-3 flex flex-wrap items-center gap-x-4 gap-y-2 text-xs text-text-secondary",
|
|
67
|
-
children: [
|
|
68
|
-
t.platform ? /* @__PURE__ */ v("span", {
|
|
69
|
-
className: "flex items-center gap-1.5",
|
|
70
|
-
children: [/* @__PURE__ */ _(n, {
|
|
71
|
-
platform: t.platform,
|
|
72
|
-
className: "size-3.5",
|
|
73
|
-
labelled: !1
|
|
74
|
-
}), r(t.platform)]
|
|
75
|
-
}) : /* @__PURE__ */ _("span", { children: "-" }),
|
|
76
|
-
/* @__PURE__ */ _("span", { children: t.architecture || "-" }),
|
|
77
|
-
/* @__PURE__ */ v("span", {
|
|
78
|
-
className: "flex items-center gap-1",
|
|
79
|
-
children: [/* @__PURE__ */ _(s, {
|
|
80
|
-
className: "size-3",
|
|
81
|
-
"aria-hidden": "true"
|
|
82
|
-
}), x(t.lastHeartbeat)]
|
|
83
|
-
})
|
|
84
|
-
]
|
|
85
|
-
}),
|
|
86
|
-
/* @__PURE__ */ v("div", {
|
|
87
|
-
className: "mt-3 flex items-center gap-2 justify-end border-t border-border-subtle pt-3",
|
|
88
|
-
children: [
|
|
89
|
-
T === "ACTIVE" && d && /* @__PURE__ */ _("button", {
|
|
90
|
-
type: "button",
|
|
91
|
-
onClick: (e) => {
|
|
92
|
-
e.stopPropagation(), d(t);
|
|
93
|
-
},
|
|
94
|
-
className: "flex size-11 items-center justify-center rounded-button hover:bg-bg-sunken transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus",
|
|
95
|
-
"aria-label": w("vibecontrols.agents.stopAction", "Stop"),
|
|
96
|
-
title: w("vibecontrols.agents.stopAction", "Stop"),
|
|
97
|
-
children: /* @__PURE__ */ _(h, {
|
|
98
|
-
className: "size-4 text-text-secondary",
|
|
99
|
-
"aria-hidden": "true"
|
|
100
|
-
})
|
|
101
|
-
}),
|
|
102
|
-
(T === "STOPPED" || T === "OFFLINE") && l && /* @__PURE__ */ _("button", {
|
|
103
|
-
type: "button",
|
|
104
|
-
onClick: (e) => {
|
|
105
|
-
e.stopPropagation(), l(t);
|
|
106
|
-
},
|
|
107
|
-
className: "flex size-11 items-center justify-center rounded-button hover:bg-bg-sunken transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus",
|
|
108
|
-
"aria-label": w("vibecontrols.agents.startAction", "Start"),
|
|
109
|
-
title: w("vibecontrols.agents.startAction", "Start"),
|
|
110
|
-
children: /* @__PURE__ */ _(u, {
|
|
111
|
-
className: "size-4 text-text-secondary",
|
|
112
|
-
"aria-hidden": "true"
|
|
113
|
-
})
|
|
114
|
-
}),
|
|
115
|
-
T === "DEGRADED" && l && /* @__PURE__ */ _("button", {
|
|
116
|
-
type: "button",
|
|
117
|
-
onClick: (e) => {
|
|
118
|
-
e.stopPropagation(), l(t);
|
|
119
|
-
},
|
|
120
|
-
className: "flex size-11 items-center justify-center rounded-button hover:bg-bg-sunken transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus",
|
|
121
|
-
"aria-label": w("vibecontrols.agents.reconnectAction", "Reconnect"),
|
|
122
|
-
title: w("vibecontrols.agents.reconnectAction", "Reconnect"),
|
|
123
|
-
children: /* @__PURE__ */ _(f, {
|
|
124
|
-
className: "size-4 text-text-secondary",
|
|
125
|
-
"aria-hidden": "true"
|
|
126
|
-
})
|
|
127
|
-
}),
|
|
128
|
-
g && E && /* @__PURE__ */ _("button", {
|
|
129
|
-
type: "button",
|
|
130
|
-
onClick: (e) => {
|
|
131
|
-
e.stopPropagation(), g(t);
|
|
132
|
-
},
|
|
133
|
-
className: "flex size-11 items-center justify-center rounded-button hover:bg-bg-sunken transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus",
|
|
134
|
-
"aria-label": D,
|
|
135
|
-
title: D,
|
|
136
|
-
children: /* @__PURE__ */ _(c, {
|
|
137
|
-
className: "size-4 text-status-error-text",
|
|
138
|
-
"aria-hidden": "true"
|
|
139
|
-
})
|
|
140
|
-
}),
|
|
141
|
-
y && /* @__PURE__ */ _("button", {
|
|
142
|
-
type: "button",
|
|
143
|
-
onClick: (e) => {
|
|
144
|
-
e.stopPropagation(), y(t);
|
|
145
|
-
},
|
|
146
|
-
className: "flex size-11 items-center justify-center rounded-button hover:bg-bg-sunken transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus",
|
|
147
|
-
"aria-label": w("vibecontrols.agents.settingsAction", "Settings"),
|
|
148
|
-
title: w("vibecontrols.agents.settingsAction", "Settings"),
|
|
149
|
-
children: /* @__PURE__ */ _(m, {
|
|
150
|
-
className: "size-4 text-text-secondary",
|
|
151
|
-
"aria-hidden": "true"
|
|
152
|
-
})
|
|
153
|
-
})
|
|
154
|
-
]
|
|
155
|
-
})
|
|
205
|
+
H,
|
|
206
|
+
q,
|
|
207
|
+
$
|
|
156
208
|
]
|
|
157
|
-
});
|
|
209
|
+
}), o[79] = H, o[80] = q, o[81] = $, o[82] = A, o[83] = j, o[84] = M, o[85] = ce) : ce = o[85], ce;
|
|
158
210
|
}
|
|
159
|
-
function
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
"aria-hidden": "true"
|
|
184
|
-
}), /* @__PURE__ */ v("div", {
|
|
185
|
-
className: "min-w-0",
|
|
186
|
-
children: [/* @__PURE__ */ _("button", {
|
|
187
|
-
type: "button",
|
|
188
|
-
onClick: (e) => {
|
|
189
|
-
e.stopPropagation(), d?.(t);
|
|
190
|
-
},
|
|
191
|
-
className: "block max-w-full truncate rounded text-left text-sm font-medium text-text-primary hover:text-text-primary hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus",
|
|
192
|
-
children: t.name
|
|
193
|
-
}), /* @__PURE__ */ v("p", {
|
|
194
|
-
className: "text-xs text-text-muted truncate flex items-center gap-1",
|
|
195
|
-
children: [!o(t) && /* @__PURE__ */ _(l, {
|
|
196
|
-
className: "size-3 shrink-0",
|
|
197
|
-
"aria-label": E("agentsPage.visibility.private", "Private")
|
|
198
|
-
}), t.hostname || t.id.slice(0, 8)]
|
|
199
|
-
})]
|
|
200
|
-
})]
|
|
201
|
-
})
|
|
202
|
-
}),
|
|
203
|
-
/* @__PURE__ */ _("td", {
|
|
204
|
-
className: "px-4 py-3",
|
|
205
|
-
children: /* @__PURE__ */ _(e, {
|
|
206
|
-
status: D,
|
|
207
|
-
linkTo: `/vibecontrols/agents/${t.id}?tab=connection`,
|
|
208
|
-
onClick: (e) => e.stopPropagation()
|
|
209
|
-
})
|
|
210
|
-
}),
|
|
211
|
-
/* @__PURE__ */ _("td", {
|
|
212
|
-
className: "px-4 py-3",
|
|
213
|
-
children: t.platform ? /* @__PURE__ */ v("span", {
|
|
214
|
-
className: "flex items-center gap-1.5 text-sm text-text-secondary",
|
|
215
|
-
children: [/* @__PURE__ */ _(n, {
|
|
216
|
-
platform: t.platform,
|
|
217
|
-
className: "size-4",
|
|
218
|
-
labelled: !1
|
|
219
|
-
}), r(t.platform)]
|
|
220
|
-
}) : /* @__PURE__ */ _("span", {
|
|
221
|
-
className: "text-sm text-text-secondary",
|
|
222
|
-
children: "-"
|
|
223
|
-
})
|
|
224
|
-
}),
|
|
225
|
-
/* @__PURE__ */ _("td", {
|
|
226
|
-
className: "px-4 py-3",
|
|
227
|
-
children: /* @__PURE__ */ _("span", {
|
|
228
|
-
className: "text-sm text-text-secondary",
|
|
229
|
-
children: t.architecture || "-"
|
|
230
|
-
})
|
|
231
|
-
}),
|
|
232
|
-
/* @__PURE__ */ _("td", {
|
|
233
|
-
className: "px-4 py-3",
|
|
234
|
-
children: /* @__PURE__ */ v("div", {
|
|
235
|
-
className: "flex items-center gap-1.5 text-xs text-text-muted",
|
|
236
|
-
children: [/* @__PURE__ */ _(s, {
|
|
237
|
-
className: "size-3",
|
|
238
|
-
"aria-hidden": "true"
|
|
239
|
-
}), x(t.lastHeartbeat)]
|
|
240
|
-
})
|
|
241
|
-
}),
|
|
242
|
-
/* @__PURE__ */ _("td", {
|
|
243
|
-
className: "px-4 py-3",
|
|
244
|
-
children: /* @__PURE__ */ v("div", {
|
|
245
|
-
className: "flex items-center gap-1 justify-end",
|
|
246
|
-
children: [
|
|
247
|
-
D === "ACTIVE" && y && /* @__PURE__ */ _("button", {
|
|
248
|
-
type: "button",
|
|
249
|
-
onClick: (e) => {
|
|
250
|
-
e.stopPropagation(), y(t);
|
|
251
|
-
},
|
|
252
|
-
className: "inline-flex size-9 items-center justify-center rounded-button hover:bg-bg-sunken transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus",
|
|
253
|
-
"aria-label": E("vibecontrols.agents.stopAction", "Stop"),
|
|
254
|
-
title: E("vibecontrols.agents.stopAction", "Stop"),
|
|
255
|
-
children: /* @__PURE__ */ _(h, {
|
|
256
|
-
className: "size-3.5 text-text-secondary",
|
|
257
|
-
"aria-hidden": "true"
|
|
258
|
-
})
|
|
259
|
-
}),
|
|
260
|
-
(D === "STOPPED" || D === "OFFLINE") && g && /* @__PURE__ */ _("button", {
|
|
261
|
-
type: "button",
|
|
262
|
-
onClick: (e) => {
|
|
263
|
-
e.stopPropagation(), g(t);
|
|
264
|
-
},
|
|
265
|
-
className: "inline-flex size-9 items-center justify-center rounded-button hover:bg-bg-sunken transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus",
|
|
266
|
-
"aria-label": E("vibecontrols.agents.startAction", "Start"),
|
|
267
|
-
title: E("vibecontrols.agents.startAction", "Start"),
|
|
268
|
-
children: /* @__PURE__ */ _(u, {
|
|
269
|
-
className: "size-3.5 text-text-secondary",
|
|
270
|
-
"aria-hidden": "true"
|
|
271
|
-
})
|
|
272
|
-
}),
|
|
273
|
-
D === "DEGRADED" && g && /* @__PURE__ */ _("button", {
|
|
274
|
-
type: "button",
|
|
275
|
-
onClick: (e) => {
|
|
276
|
-
e.stopPropagation(), g(t);
|
|
277
|
-
},
|
|
278
|
-
className: "inline-flex size-9 items-center justify-center rounded-button hover:bg-bg-sunken transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus",
|
|
279
|
-
"aria-label": E("vibecontrols.agents.reconnectAction", "Reconnect"),
|
|
280
|
-
title: E("vibecontrols.agents.reconnectAction", "Reconnect"),
|
|
281
|
-
children: /* @__PURE__ */ _(f, {
|
|
282
|
-
className: "size-3.5 text-text-secondary",
|
|
283
|
-
"aria-hidden": "true"
|
|
284
|
-
})
|
|
285
|
-
}),
|
|
286
|
-
S && O && /* @__PURE__ */ _("button", {
|
|
287
|
-
type: "button",
|
|
288
|
-
onClick: (e) => {
|
|
289
|
-
e.stopPropagation(), S(t);
|
|
290
|
-
},
|
|
291
|
-
className: "inline-flex size-9 items-center justify-center rounded-button hover:bg-bg-sunken transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus",
|
|
292
|
-
"aria-label": k,
|
|
293
|
-
title: k,
|
|
294
|
-
children: /* @__PURE__ */ _(c, {
|
|
295
|
-
className: "size-3.5 text-status-error-text",
|
|
296
|
-
"aria-hidden": "true"
|
|
297
|
-
})
|
|
298
|
-
}),
|
|
299
|
-
C && /* @__PURE__ */ _("button", {
|
|
300
|
-
type: "button",
|
|
301
|
-
onClick: (e) => {
|
|
302
|
-
e.stopPropagation(), C(t);
|
|
303
|
-
},
|
|
304
|
-
className: "inline-flex size-9 items-center justify-center rounded-button hover:bg-bg-sunken transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus",
|
|
305
|
-
"aria-label": E("vibecontrols.agents.settingsAction", "Settings"),
|
|
306
|
-
title: E("vibecontrols.agents.settingsAction", "Settings"),
|
|
307
|
-
children: /* @__PURE__ */ _(m, {
|
|
308
|
-
className: "size-3.5 text-text-secondary",
|
|
309
|
-
"aria-hidden": "true"
|
|
310
|
-
})
|
|
311
|
-
})
|
|
312
|
-
]
|
|
313
|
-
})
|
|
211
|
+
function v(e) {
|
|
212
|
+
return e.stopPropagation();
|
|
213
|
+
}
|
|
214
|
+
function y(e) {
|
|
215
|
+
return e.stopPropagation();
|
|
216
|
+
}
|
|
217
|
+
function b(t) {
|
|
218
|
+
"use memo";
|
|
219
|
+
let u = ie(84), { agent: p, onSelect: g, onStart: _, onStop: v, onDisconnect: y, onSettings: b, selected: C, onToggleSelect: w } = t, T = C !== void 0 && C, E = i(), D;
|
|
220
|
+
u[0] === p ? D = u[1] : (D = a(p), u[0] = p, u[1] = D);
|
|
221
|
+
let O = D, k = O === "ACTIVE" || O === "STOPPED" || O === "OFFLINE" || O === "DEGRADED", A;
|
|
222
|
+
u[2] !== O || u[3] !== E ? (A = O === "OFFLINE" ? E("vibecontrols.agents.clearConnection", "Clear Connection") : E("vibecontrols.agents.disconnect", "Disconnect"), u[2] = O, u[3] = E, u[4] = A) : A = u[4];
|
|
223
|
+
let j = A, M = `relative border-b border-border-subtle hover:bg-bg-sunken cursor-pointer transition-colors duration-150 ${T ? "bg-action-primary-bg/5" : ""}`, N;
|
|
224
|
+
u[5] !== p || u[6] !== g ? (N = () => g?.(p), u[5] = p, u[6] = g, u[7] = N) : N = u[7];
|
|
225
|
+
let P;
|
|
226
|
+
u[8] !== p.name || u[9] !== w || u[10] !== T || u[11] !== E ? (P = w && /* @__PURE__ */ m("td", {
|
|
227
|
+
className: "px-4 py-3 w-12",
|
|
228
|
+
children: /* @__PURE__ */ m("span", {
|
|
229
|
+
className: "flex items-center justify-center",
|
|
230
|
+
onClick: S,
|
|
231
|
+
children: /* @__PURE__ */ m(re, {
|
|
232
|
+
checked: T,
|
|
233
|
+
onCheckedChange: () => w(),
|
|
234
|
+
"aria-label": E("vibecontrols.agents.selectAgent", "Select {{name}}", { name: p.name })
|
|
314
235
|
})
|
|
236
|
+
})
|
|
237
|
+
}), u[8] = p.name, u[9] = w, u[10] = T, u[11] = E, u[12] = P) : P = u[12];
|
|
238
|
+
let F;
|
|
239
|
+
u[13] === Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */ m(ne, {
|
|
240
|
+
className: "size-4 text-text-secondary shrink-0",
|
|
241
|
+
"aria-hidden": "true"
|
|
242
|
+
}), u[13] = F) : F = u[13];
|
|
243
|
+
let I;
|
|
244
|
+
u[14] !== p || u[15] !== g ? (I = (e) => {
|
|
245
|
+
e.stopPropagation(), g?.(p);
|
|
246
|
+
}, u[14] = p, u[15] = g, u[16] = I) : I = u[16];
|
|
247
|
+
let L;
|
|
248
|
+
u[17] !== p.name || u[18] !== I ? (L = /* @__PURE__ */ m("button", {
|
|
249
|
+
type: "button",
|
|
250
|
+
onClick: I,
|
|
251
|
+
className: "block max-w-full truncate rounded text-left text-sm font-medium text-text-primary hover:text-text-primary hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus",
|
|
252
|
+
children: p.name
|
|
253
|
+
}), u[17] = p.name, u[18] = I, u[19] = L) : L = u[19];
|
|
254
|
+
let R;
|
|
255
|
+
u[20] !== p || u[21] !== E ? (R = !o(p) && /* @__PURE__ */ m(l, {
|
|
256
|
+
className: "size-3 shrink-0",
|
|
257
|
+
"aria-label": E("agentsPage.visibility.private", "Private")
|
|
258
|
+
}), u[20] = p, u[21] = E, u[22] = R) : R = u[22];
|
|
259
|
+
let z;
|
|
260
|
+
u[23] !== p.hostname || u[24] !== p.id ? (z = p.hostname || p.id.slice(0, 8), u[23] = p.hostname, u[24] = p.id, u[25] = z) : z = u[25];
|
|
261
|
+
let B;
|
|
262
|
+
u[26] !== R || u[27] !== z ? (B = /* @__PURE__ */ h("p", {
|
|
263
|
+
className: "text-xs text-text-muted truncate flex items-center gap-1",
|
|
264
|
+
children: [R, z]
|
|
265
|
+
}), u[26] = R, u[27] = z, u[28] = B) : B = u[28];
|
|
266
|
+
let V;
|
|
267
|
+
u[29] !== B || u[30] !== L ? (V = /* @__PURE__ */ m("td", {
|
|
268
|
+
className: "px-4 py-3",
|
|
269
|
+
children: /* @__PURE__ */ h("div", {
|
|
270
|
+
className: "flex items-center gap-3 min-w-0",
|
|
271
|
+
children: [F, /* @__PURE__ */ h("div", {
|
|
272
|
+
className: "min-w-0",
|
|
273
|
+
children: [L, B]
|
|
274
|
+
})]
|
|
275
|
+
})
|
|
276
|
+
}), u[29] = B, u[30] = L, u[31] = V) : V = u[31];
|
|
277
|
+
let H = `/vibecontrols/agents/${p.id}?tab=connection`, U;
|
|
278
|
+
u[32] !== O || u[33] !== H ? (U = /* @__PURE__ */ m("td", {
|
|
279
|
+
className: "px-4 py-3",
|
|
280
|
+
children: /* @__PURE__ */ m(e, {
|
|
281
|
+
status: O,
|
|
282
|
+
linkTo: H,
|
|
283
|
+
onClick: x
|
|
284
|
+
})
|
|
285
|
+
}), u[32] = O, u[33] = H, u[34] = U) : U = u[34];
|
|
286
|
+
let oe;
|
|
287
|
+
u[35] === p.platform ? oe = u[36] : (oe = /* @__PURE__ */ m("td", {
|
|
288
|
+
className: "px-4 py-3",
|
|
289
|
+
children: p.platform ? /* @__PURE__ */ h("span", {
|
|
290
|
+
className: "flex items-center gap-1.5 text-sm text-text-secondary",
|
|
291
|
+
children: [/* @__PURE__ */ m(n, {
|
|
292
|
+
platform: p.platform,
|
|
293
|
+
className: "size-4",
|
|
294
|
+
labelled: !1
|
|
295
|
+
}), r(p.platform)]
|
|
296
|
+
}) : /* @__PURE__ */ m("span", {
|
|
297
|
+
className: "text-sm text-text-secondary",
|
|
298
|
+
children: "-"
|
|
299
|
+
})
|
|
300
|
+
}), u[35] = p.platform, u[36] = oe);
|
|
301
|
+
let se = p.architecture || "-", W;
|
|
302
|
+
u[37] === se ? W = u[38] : (W = /* @__PURE__ */ m("td", {
|
|
303
|
+
className: "px-4 py-3",
|
|
304
|
+
children: /* @__PURE__ */ m("span", {
|
|
305
|
+
className: "text-sm text-text-secondary",
|
|
306
|
+
children: se
|
|
307
|
+
})
|
|
308
|
+
}), u[37] = se, u[38] = W);
|
|
309
|
+
let G;
|
|
310
|
+
u[39] === Symbol.for("react.memo_cache_sentinel") ? (G = /* @__PURE__ */ m(s, {
|
|
311
|
+
className: "size-3",
|
|
312
|
+
"aria-hidden": "true"
|
|
313
|
+
}), u[39] = G) : G = u[39];
|
|
314
|
+
let K;
|
|
315
|
+
u[40] === p.lastHeartbeat ? K = u[41] : (K = ae(p.lastHeartbeat), u[40] = p.lastHeartbeat, u[41] = K);
|
|
316
|
+
let q;
|
|
317
|
+
u[42] === K ? q = u[43] : (q = /* @__PURE__ */ m("td", {
|
|
318
|
+
className: "px-4 py-3",
|
|
319
|
+
children: /* @__PURE__ */ h("div", {
|
|
320
|
+
className: "flex items-center gap-1.5 text-xs text-text-muted",
|
|
321
|
+
children: [G, K]
|
|
322
|
+
})
|
|
323
|
+
}), u[42] = K, u[43] = q);
|
|
324
|
+
let J;
|
|
325
|
+
u[44] !== p || u[45] !== v || u[46] !== O || u[47] !== E ? (J = O === "ACTIVE" && v && /* @__PURE__ */ m("button", {
|
|
326
|
+
type: "button",
|
|
327
|
+
onClick: (e) => {
|
|
328
|
+
e.stopPropagation(), v(p);
|
|
329
|
+
},
|
|
330
|
+
className: "inline-flex size-9 items-center justify-center rounded-button hover:bg-bg-sunken transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus",
|
|
331
|
+
"aria-label": E("vibecontrols.agents.stopAction", "Stop"),
|
|
332
|
+
title: E("vibecontrols.agents.stopAction", "Stop"),
|
|
333
|
+
children: /* @__PURE__ */ m(f, {
|
|
334
|
+
className: "size-3.5 text-text-secondary",
|
|
335
|
+
"aria-hidden": "true"
|
|
336
|
+
})
|
|
337
|
+
}), u[44] = p, u[45] = v, u[46] = O, u[47] = E, u[48] = J) : J = u[48];
|
|
338
|
+
let Y;
|
|
339
|
+
u[49] !== p || u[50] !== _ || u[51] !== O || u[52] !== E ? (Y = (O === "STOPPED" || O === "OFFLINE") && _ && /* @__PURE__ */ m("button", {
|
|
340
|
+
type: "button",
|
|
341
|
+
onClick: (e) => {
|
|
342
|
+
e.stopPropagation(), _(p);
|
|
343
|
+
},
|
|
344
|
+
className: "inline-flex size-9 items-center justify-center rounded-button hover:bg-bg-sunken transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus",
|
|
345
|
+
"aria-label": E("vibecontrols.agents.startAction", "Start"),
|
|
346
|
+
title: E("vibecontrols.agents.startAction", "Start"),
|
|
347
|
+
children: /* @__PURE__ */ m(ee, {
|
|
348
|
+
className: "size-3.5 text-text-secondary",
|
|
349
|
+
"aria-hidden": "true"
|
|
350
|
+
})
|
|
351
|
+
}), u[49] = p, u[50] = _, u[51] = O, u[52] = E, u[53] = Y) : Y = u[53];
|
|
352
|
+
let X;
|
|
353
|
+
u[54] !== p || u[55] !== _ || u[56] !== O || u[57] !== E ? (X = O === "DEGRADED" && _ && /* @__PURE__ */ m("button", {
|
|
354
|
+
type: "button",
|
|
355
|
+
onClick: (e) => {
|
|
356
|
+
e.stopPropagation(), _(p);
|
|
357
|
+
},
|
|
358
|
+
className: "inline-flex size-9 items-center justify-center rounded-button hover:bg-bg-sunken transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus",
|
|
359
|
+
"aria-label": E("vibecontrols.agents.reconnectAction", "Reconnect"),
|
|
360
|
+
title: E("vibecontrols.agents.reconnectAction", "Reconnect"),
|
|
361
|
+
children: /* @__PURE__ */ m(te, {
|
|
362
|
+
className: "size-3.5 text-text-secondary",
|
|
363
|
+
"aria-hidden": "true"
|
|
364
|
+
})
|
|
365
|
+
}), u[54] = p, u[55] = _, u[56] = O, u[57] = E, u[58] = X) : X = u[58];
|
|
366
|
+
let Z;
|
|
367
|
+
u[59] !== p || u[60] !== k || u[61] !== j || u[62] !== y ? (Z = y && k && /* @__PURE__ */ m("button", {
|
|
368
|
+
type: "button",
|
|
369
|
+
onClick: (e) => {
|
|
370
|
+
e.stopPropagation(), y(p);
|
|
371
|
+
},
|
|
372
|
+
className: "inline-flex size-9 items-center justify-center rounded-button hover:bg-bg-sunken transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus",
|
|
373
|
+
"aria-label": j,
|
|
374
|
+
title: j,
|
|
375
|
+
children: /* @__PURE__ */ m(c, {
|
|
376
|
+
className: "size-3.5 text-status-error-text",
|
|
377
|
+
"aria-hidden": "true"
|
|
378
|
+
})
|
|
379
|
+
}), u[59] = p, u[60] = k, u[61] = j, u[62] = y, u[63] = Z) : Z = u[63];
|
|
380
|
+
let Q;
|
|
381
|
+
u[64] !== p || u[65] !== b || u[66] !== E ? (Q = b && /* @__PURE__ */ m("button", {
|
|
382
|
+
type: "button",
|
|
383
|
+
onClick: (e) => {
|
|
384
|
+
e.stopPropagation(), b(p);
|
|
385
|
+
},
|
|
386
|
+
className: "inline-flex size-9 items-center justify-center rounded-button hover:bg-bg-sunken transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus",
|
|
387
|
+
"aria-label": E("vibecontrols.agents.settingsAction", "Settings"),
|
|
388
|
+
title: E("vibecontrols.agents.settingsAction", "Settings"),
|
|
389
|
+
children: /* @__PURE__ */ m(d, {
|
|
390
|
+
className: "size-3.5 text-text-secondary",
|
|
391
|
+
"aria-hidden": "true"
|
|
392
|
+
})
|
|
393
|
+
}), u[64] = p, u[65] = b, u[66] = E, u[67] = Q) : Q = u[67];
|
|
394
|
+
let $;
|
|
395
|
+
u[68] !== J || u[69] !== Y || u[70] !== X || u[71] !== Z || u[72] !== Q ? ($ = /* @__PURE__ */ m("td", {
|
|
396
|
+
className: "px-4 py-3",
|
|
397
|
+
children: /* @__PURE__ */ h("div", {
|
|
398
|
+
className: "flex items-center gap-1 justify-end",
|
|
399
|
+
children: [
|
|
400
|
+
J,
|
|
401
|
+
Y,
|
|
402
|
+
X,
|
|
403
|
+
Z,
|
|
404
|
+
Q
|
|
405
|
+
]
|
|
406
|
+
})
|
|
407
|
+
}), u[68] = J, u[69] = Y, u[70] = X, u[71] = Z, u[72] = Q, u[73] = $) : $ = u[73];
|
|
408
|
+
let ce;
|
|
409
|
+
return u[74] !== V || u[75] !== U || u[76] !== oe || u[77] !== W || u[78] !== q || u[79] !== $ || u[80] !== M || u[81] !== N || u[82] !== P ? (ce = /* @__PURE__ */ h("tr", {
|
|
410
|
+
className: M,
|
|
411
|
+
onClick: N,
|
|
412
|
+
children: [
|
|
413
|
+
P,
|
|
414
|
+
V,
|
|
415
|
+
U,
|
|
416
|
+
oe,
|
|
417
|
+
W,
|
|
418
|
+
q,
|
|
419
|
+
$
|
|
315
420
|
]
|
|
316
|
-
});
|
|
421
|
+
}), u[74] = V, u[75] = U, u[76] = oe, u[77] = W, u[78] = q, u[79] = $, u[80] = M, u[81] = N, u[82] = P, u[83] = ce) : ce = u[83], ce;
|
|
422
|
+
}
|
|
423
|
+
function x(e) {
|
|
424
|
+
return e.stopPropagation();
|
|
425
|
+
}
|
|
426
|
+
function S(e) {
|
|
427
|
+
return e.stopPropagation();
|
|
317
428
|
}
|
|
318
|
-
function
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
429
|
+
function C(e) {
|
|
430
|
+
"use memo";
|
|
431
|
+
let n = ie(102), { agents: r, onSelect: a, onStart: o, onStop: s, onDisconnect: c, onSettings: l, onCreateNew: ee, isLoading: te, selectedIds: d, onToggleSelect: f, onSelectAll: ae, onDeselectAll: v } = e, y = i(), x = !!(d && r.length > 0 && d.size === r.length);
|
|
432
|
+
if (!te && r.length === 0) {
|
|
433
|
+
let e;
|
|
434
|
+
n[0] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ m(ne, { className: "size-8 text-text-secondary" }), n[0] = e) : e = n[0];
|
|
435
|
+
let r;
|
|
436
|
+
n[1] === y ? r = n[2] : (r = y("vibecontrols.agents.emptyTitle", "No agents configured"), n[1] = y, n[2] = r);
|
|
437
|
+
let i;
|
|
438
|
+
n[3] === y ? i = n[4] : (i = y("vibecontrols.agents.emptyDescription", "Agents are the bridge between VibeControls and your development environments. Install an agent to get started."), n[3] = y, n[4] = i);
|
|
439
|
+
let a;
|
|
440
|
+
n[5] !== ee || n[6] !== y ? (a = ee && /* @__PURE__ */ h(g, {
|
|
325
441
|
type: "button",
|
|
326
|
-
onClick:
|
|
327
|
-
children: [/* @__PURE__ */
|
|
442
|
+
onClick: ee,
|
|
443
|
+
children: [/* @__PURE__ */ m(u, {
|
|
328
444
|
className: "size-4",
|
|
329
445
|
"aria-hidden": "true"
|
|
330
|
-
}),
|
|
446
|
+
}), y("vibecontrols.agents.addAgent", "Add Agent")]
|
|
447
|
+
}), n[5] = ee, n[6] = y, n[7] = a) : a = n[7];
|
|
448
|
+
let o;
|
|
449
|
+
return n[8] !== r || n[9] !== i || n[10] !== a ? (o = /* @__PURE__ */ m(t, {
|
|
450
|
+
icon: e,
|
|
451
|
+
title: r,
|
|
452
|
+
description: i,
|
|
453
|
+
action: a
|
|
454
|
+
}), n[8] = r, n[9] = i, n[10] = a, n[11] = o) : o = n[11], o;
|
|
455
|
+
}
|
|
456
|
+
let S;
|
|
457
|
+
n[12] !== r.length || n[13] !== x || n[14] !== v || n[15] !== ae || n[16] !== f || n[17] !== y ? (S = f && r.length > 0 && /* @__PURE__ */ m("div", {
|
|
458
|
+
className: "flex justify-end",
|
|
459
|
+
children: /* @__PURE__ */ m("button", {
|
|
460
|
+
type: "button",
|
|
461
|
+
onClick: () => x ? v?.() : ae?.(),
|
|
462
|
+
className: "min-h-11 px-2 text-xs text-text-secondary hover:text-text-primary transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus rounded-button",
|
|
463
|
+
children: x ? y("vibecontrols.agents.deselectAll", "Deselect All") : y("vibecontrols.agents.selectAll", "Select All")
|
|
331
464
|
})
|
|
332
|
-
})
|
|
465
|
+
}), n[12] = r.length, n[13] = x, n[14] = v, n[15] = ae, n[16] = f, n[17] = y, n[18] = S) : S = n[18];
|
|
466
|
+
let C;
|
|
467
|
+
if (n[19] !== r || n[20] !== c || n[21] !== a || n[22] !== l || n[23] !== o || n[24] !== s || n[25] !== f || n[26] !== d) {
|
|
468
|
+
let e;
|
|
469
|
+
n[28] !== c || n[29] !== a || n[30] !== l || n[31] !== o || n[32] !== s || n[33] !== f || n[34] !== d ? (e = (e) => /* @__PURE__ */ m(_, {
|
|
470
|
+
agent: e,
|
|
471
|
+
onSelect: a,
|
|
472
|
+
onStart: o,
|
|
473
|
+
onStop: s,
|
|
474
|
+
onDisconnect: c,
|
|
475
|
+
onSettings: l,
|
|
476
|
+
selected: d?.has(e.id) ?? !1,
|
|
477
|
+
onToggleSelect: f ? () => f(e.id) : void 0
|
|
478
|
+
}, e.id), n[28] = c, n[29] = a, n[30] = l, n[31] = o, n[32] = s, n[33] = f, n[34] = d, n[35] = e) : e = n[35], C = r.map(e), n[19] = r, n[20] = c, n[21] = a, n[22] = l, n[23] = o, n[24] = s, n[25] = f, n[26] = d, n[27] = C;
|
|
479
|
+
} else C = n[27];
|
|
480
|
+
let w;
|
|
481
|
+
n[36] !== S || n[37] !== C ? (w = /* @__PURE__ */ h("div", {
|
|
333
482
|
className: "sm:hidden space-y-3",
|
|
334
|
-
children: [
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
483
|
+
children: [S, C]
|
|
484
|
+
}), n[36] = S, n[37] = C, n[38] = w) : w = n[38];
|
|
485
|
+
let T;
|
|
486
|
+
n[39] !== x || n[40] !== v || n[41] !== ae || n[42] !== f || n[43] !== y ? (T = f && /* @__PURE__ */ m("th", {
|
|
487
|
+
className: "px-4 py-2.5 w-12",
|
|
488
|
+
children: /* @__PURE__ */ m("span", {
|
|
489
|
+
className: "flex items-center justify-center",
|
|
490
|
+
children: /* @__PURE__ */ m(re, {
|
|
491
|
+
checked: x,
|
|
492
|
+
onCheckedChange: () => x ? v?.() : ae?.(),
|
|
493
|
+
"aria-label": y("vibecontrols.agents.selectAllAgents", "Select all agents")
|
|
341
494
|
})
|
|
342
|
-
})
|
|
495
|
+
})
|
|
496
|
+
}), n[39] = x, n[40] = v, n[41] = ae, n[42] = f, n[43] = y, n[44] = T) : T = n[44];
|
|
497
|
+
let E;
|
|
498
|
+
n[45] === y ? E = n[46] : (E = y("vibecontrols.agents.columnAgent", "Agent"), n[45] = y, n[46] = E);
|
|
499
|
+
let D;
|
|
500
|
+
n[47] === E ? D = n[48] : (D = /* @__PURE__ */ m("th", {
|
|
501
|
+
className: "px-4 py-2.5 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
502
|
+
children: E
|
|
503
|
+
}), n[47] = E, n[48] = D);
|
|
504
|
+
let O;
|
|
505
|
+
n[49] === y ? O = n[50] : (O = y("vibecontrols.agents.columnStatus", "Status"), n[49] = y, n[50] = O);
|
|
506
|
+
let k;
|
|
507
|
+
n[51] === O ? k = n[52] : (k = /* @__PURE__ */ m("th", {
|
|
508
|
+
className: "px-4 py-2.5 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
509
|
+
children: O
|
|
510
|
+
}), n[51] = O, n[52] = k);
|
|
511
|
+
let A;
|
|
512
|
+
n[53] === y ? A = n[54] : (A = y("vibecontrols.agents.columnPlatform", "Platform"), n[53] = y, n[54] = A);
|
|
513
|
+
let j;
|
|
514
|
+
n[55] === A ? j = n[56] : (j = /* @__PURE__ */ m("th", {
|
|
515
|
+
className: "px-4 py-2.5 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
516
|
+
children: A
|
|
517
|
+
}), n[55] = A, n[56] = j);
|
|
518
|
+
let M;
|
|
519
|
+
n[57] === y ? M = n[58] : (M = y("vibecontrols.agents.columnArch", "Arch"), n[57] = y, n[58] = M);
|
|
520
|
+
let N;
|
|
521
|
+
n[59] === M ? N = n[60] : (N = /* @__PURE__ */ m("th", {
|
|
522
|
+
className: "px-4 py-2.5 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
523
|
+
children: M
|
|
524
|
+
}), n[59] = M, n[60] = N);
|
|
525
|
+
let P;
|
|
526
|
+
n[61] === y ? P = n[62] : (P = y("vibecontrols.agents.columnLastHeartbeat", "Last Heartbeat"), n[61] = y, n[62] = P);
|
|
527
|
+
let F;
|
|
528
|
+
n[63] === P ? F = n[64] : (F = /* @__PURE__ */ m("th", {
|
|
529
|
+
className: "px-4 py-2.5 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
530
|
+
children: P
|
|
531
|
+
}), n[63] = P, n[64] = F);
|
|
532
|
+
let I;
|
|
533
|
+
n[65] === y ? I = n[66] : (I = y("vibecontrols.agents.columnActions", "Actions"), n[65] = y, n[66] = I);
|
|
534
|
+
let L;
|
|
535
|
+
n[67] === I ? L = n[68] : (L = /* @__PURE__ */ m("th", {
|
|
536
|
+
className: "px-4 py-2.5 text-right text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
537
|
+
children: I
|
|
538
|
+
}), n[67] = I, n[68] = L);
|
|
539
|
+
let R;
|
|
540
|
+
n[69] !== j || n[70] !== N || n[71] !== F || n[72] !== L || n[73] !== T || n[74] !== D || n[75] !== k ? (R = /* @__PURE__ */ m("thead", { children: /* @__PURE__ */ h("tr", {
|
|
541
|
+
className: "bg-bg-sunken border-b border-border-default",
|
|
542
|
+
children: [
|
|
543
|
+
T,
|
|
544
|
+
D,
|
|
545
|
+
k,
|
|
546
|
+
j,
|
|
547
|
+
N,
|
|
548
|
+
F,
|
|
549
|
+
L
|
|
550
|
+
]
|
|
551
|
+
}) }), n[69] = j, n[70] = N, n[71] = F, n[72] = L, n[73] = T, n[74] = D, n[75] = k, n[76] = R) : R = n[76];
|
|
552
|
+
let z;
|
|
553
|
+
if (n[77] !== r || n[78] !== c || n[79] !== a || n[80] !== l || n[81] !== o || n[82] !== s || n[83] !== f || n[84] !== d) {
|
|
554
|
+
let e;
|
|
555
|
+
n[86] !== c || n[87] !== a || n[88] !== l || n[89] !== o || n[90] !== s || n[91] !== f || n[92] !== d ? (e = (e) => /* @__PURE__ */ m(b, {
|
|
343
556
|
agent: e,
|
|
344
|
-
onSelect:
|
|
345
|
-
onStart:
|
|
346
|
-
onStop:
|
|
347
|
-
onDisconnect:
|
|
348
|
-
onSettings:
|
|
349
|
-
selected:
|
|
557
|
+
onSelect: a,
|
|
558
|
+
onStart: o,
|
|
559
|
+
onStop: s,
|
|
560
|
+
onDisconnect: c,
|
|
561
|
+
onSettings: l,
|
|
562
|
+
selected: d?.has(e.id) ?? !1,
|
|
350
563
|
onToggleSelect: f ? () => f(e.id) : void 0
|
|
351
|
-
}, e.id))]
|
|
352
|
-
}
|
|
564
|
+
}, e.id), n[86] = c, n[87] = a, n[88] = l, n[89] = o, n[90] = s, n[91] = f, n[92] = d, n[93] = e) : e = n[93], z = r.map(e), n[77] = r, n[78] = c, n[79] = a, n[80] = l, n[81] = o, n[82] = s, n[83] = f, n[84] = d, n[85] = z;
|
|
565
|
+
} else z = n[85];
|
|
566
|
+
let B;
|
|
567
|
+
n[94] === z ? B = n[95] : (B = /* @__PURE__ */ m("tbody", { children: z }), n[94] = z, n[95] = B);
|
|
568
|
+
let V;
|
|
569
|
+
n[96] !== R || n[97] !== B ? (V = /* @__PURE__ */ m("div", {
|
|
353
570
|
className: "hidden sm:block border border-border-default rounded-lg overflow-hidden",
|
|
354
|
-
children: /* @__PURE__ */
|
|
571
|
+
children: /* @__PURE__ */ m("div", {
|
|
355
572
|
className: "overflow-x-auto",
|
|
356
|
-
children: /* @__PURE__ */
|
|
573
|
+
children: /* @__PURE__ */ h("table", {
|
|
357
574
|
className: "w-full",
|
|
358
|
-
children: [
|
|
359
|
-
className: "bg-bg-sunken border-b border-border-default",
|
|
360
|
-
children: [
|
|
361
|
-
f && /* @__PURE__ */ _("th", {
|
|
362
|
-
className: "px-4 py-2.5 w-12",
|
|
363
|
-
children: /* @__PURE__ */ _("span", {
|
|
364
|
-
className: "flex items-center justify-center",
|
|
365
|
-
children: /* @__PURE__ */ _(b, {
|
|
366
|
-
checked: w,
|
|
367
|
-
onCheckedChange: () => w ? h?.() : m?.(),
|
|
368
|
-
"aria-label": x("vibecontrols.agents.selectAllAgents", "Select all agents")
|
|
369
|
-
})
|
|
370
|
-
})
|
|
371
|
-
}),
|
|
372
|
-
/* @__PURE__ */ _("th", {
|
|
373
|
-
className: "px-4 py-2.5 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
374
|
-
children: x("vibecontrols.agents.columnAgent", "Agent")
|
|
375
|
-
}),
|
|
376
|
-
/* @__PURE__ */ _("th", {
|
|
377
|
-
className: "px-4 py-2.5 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
378
|
-
children: x("vibecontrols.agents.columnStatus", "Status")
|
|
379
|
-
}),
|
|
380
|
-
/* @__PURE__ */ _("th", {
|
|
381
|
-
className: "px-4 py-2.5 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
382
|
-
children: x("vibecontrols.agents.columnPlatform", "Platform")
|
|
383
|
-
}),
|
|
384
|
-
/* @__PURE__ */ _("th", {
|
|
385
|
-
className: "px-4 py-2.5 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
386
|
-
children: x("vibecontrols.agents.columnArch", "Arch")
|
|
387
|
-
}),
|
|
388
|
-
/* @__PURE__ */ _("th", {
|
|
389
|
-
className: "px-4 py-2.5 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
390
|
-
children: x("vibecontrols.agents.columnLastHeartbeat", "Last Heartbeat")
|
|
391
|
-
}),
|
|
392
|
-
/* @__PURE__ */ _("th", {
|
|
393
|
-
className: "px-4 py-2.5 text-right text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
394
|
-
children: x("vibecontrols.agents.columnActions", "Actions")
|
|
395
|
-
})
|
|
396
|
-
]
|
|
397
|
-
}) }), /* @__PURE__ */ _("tbody", { children: e.map((e) => /* @__PURE__ */ _(C, {
|
|
398
|
-
agent: e,
|
|
399
|
-
onSelect: n,
|
|
400
|
-
onStart: r,
|
|
401
|
-
onStop: a,
|
|
402
|
-
onDisconnect: o,
|
|
403
|
-
onSettings: s,
|
|
404
|
-
selected: u?.has(e.id) ?? !1,
|
|
405
|
-
onToggleSelect: f ? () => f(e.id) : void 0
|
|
406
|
-
}, e.id)) })]
|
|
575
|
+
children: [R, B]
|
|
407
576
|
})
|
|
408
577
|
})
|
|
409
|
-
})]
|
|
578
|
+
}), n[96] = R, n[97] = B, n[98] = V) : V = n[98];
|
|
579
|
+
let H;
|
|
580
|
+
return n[99] !== V || n[100] !== w ? (H = /* @__PURE__ */ h(p, { children: [w, V] }), n[99] = V, n[100] = w, n[101] = H) : H = n[101], H;
|
|
410
581
|
}
|
|
411
|
-
export {
|
|
582
|
+
export { C as AgentList };
|