@burdenoff/microfe-vibecontrols 2026.1111.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.
|
@@ -1,261 +1,372 @@
|
|
|
1
1
|
import { SessionStatusBadge as e } from "./SessionStatusBadge.js";
|
|
2
2
|
import { AgentInfoPopover as t, TargetInfoPopover as n } from "./EntityInfoPopover.js";
|
|
3
|
-
import { EmptyState as
|
|
4
|
-
import { useTr as
|
|
5
|
-
import { useState as
|
|
6
|
-
import { Clock as
|
|
7
|
-
import { jsx as
|
|
3
|
+
import { EmptyState as ee } from "../shared/EmptyState.js";
|
|
4
|
+
import { useTr as r } from "../../shared/hooks/useTr.js";
|
|
5
|
+
import { useState as i } from "react";
|
|
6
|
+
import { Clock as a, MoreVertical as o, Play as s, Plus as c, RotateCcw as l, Share2 as u, Square as d, Terminal as te } from "lucide-react";
|
|
7
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
8
|
+
import { c as ne } from "react/compiler-runtime";
|
|
8
9
|
// src/components/sessions/SessionList.tsx
|
|
9
|
-
var
|
|
10
|
+
var re = {
|
|
10
11
|
TMUX: "🖥️",
|
|
11
12
|
SSH: "🔐",
|
|
12
13
|
TERMINAL: "💻",
|
|
13
14
|
SCRIPT: "📜",
|
|
14
15
|
CUSTOM: "⚙️"
|
|
15
16
|
};
|
|
16
|
-
function
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
/* @__PURE__ */
|
|
52
|
-
className: "
|
|
53
|
-
children:
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
17
|
+
function m(ee) {
|
|
18
|
+
"use memo";
|
|
19
|
+
let c = ne(78), { session: m, onOpen: g, onStart: _, onStop: v, onRestart: y, onTerminate: b, onOpenTerminal: x, onShare: S, selected: C, onToggleSelect: w } = ee, T = r(), [E, D] = i(!1), O = m.status === "RUNNING", k = m.status === "STOPPED" || m.status === "TERMINATED", A = h, j = `border-b border-border-subtle hover:bg-bg-sunken/50 cursor-pointer transition-colors ${C ? "bg-action-primary-bg/5" : ""}`, M;
|
|
20
|
+
c[0] !== g || c[1] !== m ? (M = () => g?.(m), c[0] = g, c[1] = m, c[2] = M) : M = c[2];
|
|
21
|
+
let N;
|
|
22
|
+
c[3] !== w || c[4] !== C ? (N = w && /* @__PURE__ */ f("td", {
|
|
23
|
+
className: "p-3 w-10",
|
|
24
|
+
children: /* @__PURE__ */ f("input", {
|
|
25
|
+
"aria-label": "control",
|
|
26
|
+
type: "checkbox",
|
|
27
|
+
checked: C ?? !1,
|
|
28
|
+
onChange: (e) => {
|
|
29
|
+
e.stopPropagation(), w();
|
|
30
|
+
},
|
|
31
|
+
onClick: ie,
|
|
32
|
+
className: "size-4 rounded border-border-default text-action-primary-bg focus:ring-action-primary-bg"
|
|
33
|
+
})
|
|
34
|
+
}), c[3] = w, c[4] = C, c[5] = N) : N = c[5];
|
|
35
|
+
let P;
|
|
36
|
+
c[6] === Symbol.for("react.memo_cache_sentinel") ? (P = /* @__PURE__ */ f(te, { className: "size-4 text-text-secondary shrink-0" }), c[6] = P) : P = c[6];
|
|
37
|
+
let F;
|
|
38
|
+
c[7] === m.name ? F = c[8] : (F = /* @__PURE__ */ f("p", {
|
|
39
|
+
className: "text-sm font-medium text-text-primary truncate",
|
|
40
|
+
children: m.name
|
|
41
|
+
}), c[7] = m.name, c[8] = F);
|
|
42
|
+
let I;
|
|
43
|
+
c[9] === m.command ? I = c[10] : (I = m.command && /* @__PURE__ */ p("p", {
|
|
44
|
+
className: "text-xs font-mono text-text-muted truncate max-w-[200px]",
|
|
45
|
+
children: ["$ ", m.command]
|
|
46
|
+
}), c[9] = m.command, c[10] = I);
|
|
47
|
+
let L;
|
|
48
|
+
c[11] !== F || c[12] !== I ? (L = /* @__PURE__ */ f("td", {
|
|
49
|
+
className: "px-4 py-3",
|
|
50
|
+
children: /* @__PURE__ */ p("div", {
|
|
51
|
+
className: "flex items-center gap-3 min-w-0",
|
|
52
|
+
children: [P, /* @__PURE__ */ p("div", {
|
|
53
|
+
className: "min-w-0",
|
|
54
|
+
children: [F, I]
|
|
55
|
+
})]
|
|
56
|
+
})
|
|
57
|
+
}), c[11] = F, c[12] = I, c[13] = L) : L = c[13];
|
|
58
|
+
let R = re[m.type] || "💻", z;
|
|
59
|
+
c[14] === R ? z = c[15] : (z = /* @__PURE__ */ f("span", {
|
|
60
|
+
className: "text-sm",
|
|
61
|
+
children: R
|
|
62
|
+
}), c[14] = R, c[15] = z);
|
|
63
|
+
let B;
|
|
64
|
+
c[16] === m.type ? B = c[17] : (B = /* @__PURE__ */ f("span", {
|
|
65
|
+
className: "text-sm text-text-secondary",
|
|
66
|
+
children: m.type
|
|
67
|
+
}), c[16] = m.type, c[17] = B);
|
|
68
|
+
let V;
|
|
69
|
+
c[18] !== B || c[19] !== z ? (V = /* @__PURE__ */ f("td", {
|
|
70
|
+
className: "px-4 py-3",
|
|
71
|
+
children: /* @__PURE__ */ p("div", {
|
|
72
|
+
className: "flex items-center gap-1.5",
|
|
73
|
+
children: [z, B]
|
|
74
|
+
})
|
|
75
|
+
}), c[18] = B, c[19] = z, c[20] = V) : V = c[20];
|
|
76
|
+
let H;
|
|
77
|
+
c[21] === m.status ? H = c[22] : (H = /* @__PURE__ */ f("td", {
|
|
78
|
+
className: "px-4 py-3",
|
|
79
|
+
children: /* @__PURE__ */ f(e, { status: m.status })
|
|
80
|
+
}), c[21] = m.status, c[22] = H);
|
|
81
|
+
let U;
|
|
82
|
+
c[23] === m.agent ? U = c[24] : (U = /* @__PURE__ */ f("td", {
|
|
83
|
+
className: "px-4 py-3",
|
|
84
|
+
children: m.agent ? /* @__PURE__ */ f(t, { agent: m.agent }) : /* @__PURE__ */ f("span", {
|
|
85
|
+
className: "text-sm text-text-secondary",
|
|
86
|
+
children: "-"
|
|
87
|
+
})
|
|
88
|
+
}), c[23] = m.agent, c[24] = U);
|
|
89
|
+
let W;
|
|
90
|
+
c[25] === m.agent ? W = c[26] : (W = /* @__PURE__ */ f("td", {
|
|
91
|
+
className: "px-4 py-3",
|
|
92
|
+
children: m.agent?.target ? /* @__PURE__ */ f(n, { target: m.agent.target }) : /* @__PURE__ */ f("span", {
|
|
93
|
+
className: "text-sm text-text-secondary",
|
|
94
|
+
children: "-"
|
|
95
|
+
})
|
|
96
|
+
}), c[25] = m.agent, c[26] = W);
|
|
97
|
+
let ae = m.vibe?.name || "-", G;
|
|
98
|
+
c[27] === ae ? G = c[28] : (G = /* @__PURE__ */ f("td", {
|
|
99
|
+
className: "px-4 py-3",
|
|
100
|
+
children: /* @__PURE__ */ f("span", {
|
|
101
|
+
className: "text-sm text-text-secondary truncate block max-w-[120px]",
|
|
102
|
+
children: ae
|
|
103
|
+
})
|
|
104
|
+
}), c[27] = ae, c[28] = G);
|
|
105
|
+
let oe;
|
|
106
|
+
c[29] === Symbol.for("react.memo_cache_sentinel") ? (oe = /* @__PURE__ */ f(a, { className: "size-3" }), c[29] = oe) : oe = c[29];
|
|
107
|
+
let K;
|
|
108
|
+
c[30] === m.updatedAt ? K = c[31] : (K = A(m.updatedAt), c[30] = m.updatedAt, c[31] = K);
|
|
109
|
+
let q;
|
|
110
|
+
c[32] === K ? q = c[33] : (q = /* @__PURE__ */ f("td", {
|
|
111
|
+
className: "px-4 py-3",
|
|
112
|
+
children: /* @__PURE__ */ p("div", {
|
|
113
|
+
className: "flex items-center gap-1.5 text-xs text-text-muted",
|
|
114
|
+
children: [oe, K]
|
|
115
|
+
})
|
|
116
|
+
}), c[32] = K, c[33] = q);
|
|
117
|
+
let J;
|
|
118
|
+
c[34] !== k || c[35] !== _ || c[36] !== m ? (J = k && _ && /* @__PURE__ */ f("button", {
|
|
119
|
+
type: "button",
|
|
120
|
+
onClick: (e) => {
|
|
121
|
+
e.stopPropagation(), _(m);
|
|
122
|
+
},
|
|
123
|
+
className: "p-1.5 rounded hover:bg-bg-sunken transition-colors",
|
|
124
|
+
title: "Start",
|
|
125
|
+
children: /* @__PURE__ */ f(s, { className: "size-3.5 text-text-secondary" })
|
|
126
|
+
}), c[34] = k, c[35] = _, c[36] = m, c[37] = J) : J = c[37];
|
|
127
|
+
let Y;
|
|
128
|
+
c[38] !== O || c[39] !== v || c[40] !== m ? (Y = O && v && /* @__PURE__ */ f("button", {
|
|
129
|
+
type: "button",
|
|
130
|
+
onClick: (e) => {
|
|
131
|
+
e.stopPropagation(), v(m);
|
|
132
|
+
},
|
|
133
|
+
className: "p-1.5 rounded hover:bg-bg-sunken transition-colors",
|
|
134
|
+
title: "Stop",
|
|
135
|
+
children: /* @__PURE__ */ f(d, { className: "size-3.5 text-text-secondary" })
|
|
136
|
+
}), c[38] = O, c[39] = v, c[40] = m, c[41] = Y) : Y = c[41];
|
|
137
|
+
let X;
|
|
138
|
+
c[42] !== O || c[43] !== y || c[44] !== m ? (X = O && y && /* @__PURE__ */ f("button", {
|
|
139
|
+
type: "button",
|
|
140
|
+
onClick: (e) => {
|
|
141
|
+
e.stopPropagation(), y(m);
|
|
142
|
+
},
|
|
143
|
+
className: "p-1.5 rounded hover:bg-bg-sunken transition-colors",
|
|
144
|
+
title: "Restart",
|
|
145
|
+
children: /* @__PURE__ */ f(l, { className: "size-3.5 text-text-secondary" })
|
|
146
|
+
}), c[42] = O, c[43] = y, c[44] = m, c[45] = X) : X = c[45];
|
|
147
|
+
let Z;
|
|
148
|
+
c[46] !== O || c[47] !== x || c[48] !== m ? (Z = O && x && /* @__PURE__ */ f("button", {
|
|
149
|
+
type: "button",
|
|
150
|
+
onClick: (e) => {
|
|
151
|
+
e.stopPropagation(), x(m);
|
|
152
|
+
},
|
|
153
|
+
className: "p-1.5 rounded hover:bg-bg-sunken transition-colors",
|
|
154
|
+
title: "Open Terminal",
|
|
155
|
+
children: /* @__PURE__ */ f(te, { className: "size-3.5 text-text-secondary" })
|
|
156
|
+
}), c[46] = O, c[47] = x, c[48] = m, c[49] = Z) : Z = c[49];
|
|
157
|
+
let Q;
|
|
158
|
+
c[50] !== O || c[51] !== S || c[52] !== m ? (Q = O && S && /* @__PURE__ */ f("button", {
|
|
159
|
+
type: "button",
|
|
160
|
+
onClick: (e) => {
|
|
161
|
+
e.stopPropagation(), S(m);
|
|
162
|
+
},
|
|
163
|
+
className: "p-1.5 rounded hover:bg-bg-sunken transition-colors",
|
|
164
|
+
title: "Share Session",
|
|
165
|
+
children: /* @__PURE__ */ f(u, { className: "size-3.5 text-text-secondary" })
|
|
166
|
+
}), c[50] = O, c[51] = S, c[52] = m, c[53] = Q) : Q = c[53];
|
|
167
|
+
let $;
|
|
168
|
+
c[54] !== b || c[55] !== m || c[56] !== E || c[57] !== T ? ($ = b && /* @__PURE__ */ p("div", {
|
|
169
|
+
className: "relative",
|
|
170
|
+
children: [/* @__PURE__ */ f("button", {
|
|
171
|
+
type: "button",
|
|
172
|
+
onClick: (e) => {
|
|
173
|
+
e.stopPropagation(), D(!E);
|
|
174
|
+
},
|
|
175
|
+
className: "p-1.5 rounded hover:bg-bg-sunken transition-colors",
|
|
176
|
+
children: /* @__PURE__ */ f(o, { className: "size-3.5 text-text-secondary" })
|
|
177
|
+
}), E && /* @__PURE__ */ f("div", {
|
|
178
|
+
className: "absolute right-0 mt-1 w-36 bg-bg-surface border border-border-default rounded-lg shadow-lg z-10",
|
|
179
|
+
children: b && /* @__PURE__ */ f("button", {
|
|
180
|
+
type: "button",
|
|
181
|
+
onClick: (e) => {
|
|
182
|
+
e.stopPropagation(), b(m), D(!1);
|
|
183
|
+
},
|
|
184
|
+
className: "flex items-center gap-2 w-full px-3 py-2 text-sm text-status-error-text hover:bg-bg-sunken rounded-lg",
|
|
185
|
+
children: T("vibecontrols.sessions.list.terminate", "Terminate")
|
|
173
186
|
})
|
|
187
|
+
})]
|
|
188
|
+
}), c[54] = b, c[55] = m, c[56] = E, c[57] = T, c[58] = $) : $ = c[58];
|
|
189
|
+
let se;
|
|
190
|
+
c[59] !== J || c[60] !== Y || c[61] !== X || c[62] !== Z || c[63] !== Q || c[64] !== $ ? (se = /* @__PURE__ */ f("td", {
|
|
191
|
+
className: "px-4 py-3",
|
|
192
|
+
children: /* @__PURE__ */ p("div", {
|
|
193
|
+
className: "flex items-center gap-1 justify-end",
|
|
194
|
+
children: [
|
|
195
|
+
J,
|
|
196
|
+
Y,
|
|
197
|
+
X,
|
|
198
|
+
Z,
|
|
199
|
+
Q,
|
|
200
|
+
$
|
|
201
|
+
]
|
|
202
|
+
})
|
|
203
|
+
}), c[59] = J, c[60] = Y, c[61] = X, c[62] = Z, c[63] = Q, c[64] = $, c[65] = se) : se = c[65];
|
|
204
|
+
let ce;
|
|
205
|
+
return c[66] !== j || c[67] !== V || c[68] !== H || c[69] !== U || c[70] !== W || c[71] !== G || c[72] !== q || c[73] !== M || c[74] !== se || c[75] !== N || c[76] !== L ? (ce = /* @__PURE__ */ p("tr", {
|
|
206
|
+
className: j,
|
|
207
|
+
onClick: M,
|
|
208
|
+
children: [
|
|
209
|
+
N,
|
|
210
|
+
L,
|
|
211
|
+
V,
|
|
212
|
+
H,
|
|
213
|
+
U,
|
|
214
|
+
W,
|
|
215
|
+
G,
|
|
216
|
+
q,
|
|
217
|
+
se
|
|
174
218
|
]
|
|
175
|
-
});
|
|
219
|
+
}), c[66] = j, c[67] = V, c[68] = H, c[69] = U, c[70] = W, c[71] = G, c[72] = q, c[73] = M, c[74] = se, c[75] = N, c[76] = L, c[77] = ce) : ce = c[77], ce;
|
|
220
|
+
}
|
|
221
|
+
function ie(e) {
|
|
222
|
+
return e.stopPropagation();
|
|
176
223
|
}
|
|
177
|
-
function
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
224
|
+
function h(e) {
|
|
225
|
+
if (!e) return "Never";
|
|
226
|
+
let t = Date.now() - new Date(e).getTime();
|
|
227
|
+
return t < 6e4 ? "Just now" : t < 36e5 ? `${Math.floor(t / 6e4)}m ago` : t < 864e5 ? `${Math.floor(t / 36e5)}h ago` : new Date(e).toLocaleDateString();
|
|
228
|
+
}
|
|
229
|
+
function g(e) {
|
|
230
|
+
"use memo";
|
|
231
|
+
let t = ne(90), { sessions: n, onOpen: i, onStart: a, onStop: o, onRestart: s, onTerminate: l, onOpenTerminal: u, onShare: d, onCreateNew: re, isLoading: ie, selectedIds: h, onToggleSelect: g, onSelectAll: _, onDeselectAll: v, hideHeaderSelectAll: y } = e, b = y !== void 0 && y, x = r(), S = h && n.length > 0 && h.size === n.length;
|
|
232
|
+
if (!ie && n.length === 0) {
|
|
233
|
+
let e;
|
|
234
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ f(te, { className: "size-8 text-text-secondary" }), t[0] = e) : e = t[0];
|
|
235
|
+
let n;
|
|
236
|
+
t[1] === x ? n = t[2] : (n = x("vibecontrols.sessions.list.noSessionsTitle", "No sessions yet"), t[1] = x, t[2] = n);
|
|
237
|
+
let r;
|
|
238
|
+
t[3] === x ? r = t[4] : (r = x("vibecontrols.sessions.list.noSessionsDescription", "Sessions are terminal processes running on your agents. Start a session to run commands, scripts, or interactive shells."), t[3] = x, t[4] = r);
|
|
239
|
+
let i;
|
|
240
|
+
t[5] !== re || t[6] !== x ? (i = re && /* @__PURE__ */ p("button", {
|
|
184
241
|
type: "button",
|
|
185
|
-
onClick:
|
|
242
|
+
onClick: re,
|
|
186
243
|
className: "inline-flex items-center gap-2 px-4 py-2 text-sm font-medium text-action-primary-text bg-action-primary-bg rounded-md hover:bg-action-primary-bg-hover transition-colors",
|
|
187
|
-
children: [/* @__PURE__ */
|
|
244
|
+
children: [/* @__PURE__ */ f(c, { className: "size-4" }), x("vibecontrols.sessions.list.startSession", "Start Session")]
|
|
245
|
+
}), t[5] = re, t[6] = x, t[7] = i) : i = t[7];
|
|
246
|
+
let a;
|
|
247
|
+
return t[8] !== n || t[9] !== r || t[10] !== i ? (a = /* @__PURE__ */ f(ee, {
|
|
248
|
+
icon: e,
|
|
249
|
+
title: n,
|
|
250
|
+
description: r,
|
|
251
|
+
action: i
|
|
252
|
+
}), t[8] = n, t[9] = r, t[10] = i, t[11] = a) : a = t[11], a;
|
|
253
|
+
}
|
|
254
|
+
let C;
|
|
255
|
+
t[12] !== b || t[13] !== g ? (C = g && b && /* @__PURE__ */ f("th", { className: "px-3 py-2.5 w-10" }), t[12] = b, t[13] = g, t[14] = C) : C = t[14];
|
|
256
|
+
let w;
|
|
257
|
+
t[15] !== b || t[16] !== S || t[17] !== v || t[18] !== _ || t[19] !== g ? (w = g && !b && /* @__PURE__ */ f("th", {
|
|
258
|
+
className: "px-3 py-2.5 w-10",
|
|
259
|
+
children: /* @__PURE__ */ f("input", {
|
|
260
|
+
"aria-label": "control",
|
|
261
|
+
type: "checkbox",
|
|
262
|
+
checked: S ?? !1,
|
|
263
|
+
onChange: () => {
|
|
264
|
+
S && v ? v() : _ && _();
|
|
265
|
+
},
|
|
266
|
+
className: "size-4 rounded border-border-default text-action-primary-bg focus:ring-action-primary-bg",
|
|
267
|
+
title: S ? "Deselect all" : "Select all"
|
|
188
268
|
})
|
|
189
|
-
})
|
|
269
|
+
}), t[15] = b, t[16] = S, t[17] = v, t[18] = _, t[19] = g, t[20] = w) : w = t[20];
|
|
270
|
+
let T;
|
|
271
|
+
t[21] === x ? T = t[22] : (T = x("vibecontrols.sessions.list.colName", "Name"), t[21] = x, t[22] = T);
|
|
272
|
+
let E;
|
|
273
|
+
t[23] === T ? E = t[24] : (E = /* @__PURE__ */ f("th", {
|
|
274
|
+
className: "px-4 py-2.5 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
275
|
+
children: T
|
|
276
|
+
}), t[23] = T, t[24] = E);
|
|
277
|
+
let D;
|
|
278
|
+
t[25] === x ? D = t[26] : (D = x("vibecontrols.sessions.list.colType", "Type"), t[25] = x, t[26] = D);
|
|
279
|
+
let O;
|
|
280
|
+
t[27] === D ? O = t[28] : (O = /* @__PURE__ */ f("th", {
|
|
281
|
+
className: "px-4 py-2.5 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
282
|
+
children: D
|
|
283
|
+
}), t[27] = D, t[28] = O);
|
|
284
|
+
let k;
|
|
285
|
+
t[29] === x ? k = t[30] : (k = x("vibecontrols.sessions.list.colStatus", "Status"), t[29] = x, t[30] = k);
|
|
286
|
+
let A;
|
|
287
|
+
t[31] === k ? A = t[32] : (A = /* @__PURE__ */ f("th", {
|
|
288
|
+
className: "px-4 py-2.5 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
289
|
+
children: k
|
|
290
|
+
}), t[31] = k, t[32] = A);
|
|
291
|
+
let j;
|
|
292
|
+
t[33] === x ? j = t[34] : (j = x("vibecontrols.sessions.list.colAgent", "Agent"), t[33] = x, t[34] = j);
|
|
293
|
+
let M;
|
|
294
|
+
t[35] === j ? M = t[36] : (M = /* @__PURE__ */ f("th", {
|
|
295
|
+
className: "px-4 py-2.5 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
296
|
+
children: j
|
|
297
|
+
}), t[35] = j, t[36] = M);
|
|
298
|
+
let N;
|
|
299
|
+
t[37] === x ? N = t[38] : (N = x("vibecontrols.sessions.list.colTarget", "Target"), t[37] = x, t[38] = N);
|
|
300
|
+
let P;
|
|
301
|
+
t[39] === N ? P = t[40] : (P = /* @__PURE__ */ f("th", {
|
|
302
|
+
className: "px-4 py-2.5 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
303
|
+
children: N
|
|
304
|
+
}), t[39] = N, t[40] = P);
|
|
305
|
+
let F;
|
|
306
|
+
t[41] === x ? F = t[42] : (F = x("vibecontrols.sessions.list.colVibe", "Vibe"), t[41] = x, t[42] = F);
|
|
307
|
+
let I;
|
|
308
|
+
t[43] === F ? I = t[44] : (I = /* @__PURE__ */ f("th", {
|
|
309
|
+
className: "px-4 py-2.5 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
310
|
+
children: F
|
|
311
|
+
}), t[43] = F, t[44] = I);
|
|
312
|
+
let L;
|
|
313
|
+
t[45] === x ? L = t[46] : (L = x("vibecontrols.sessions.list.colUpdated", "Updated"), t[45] = x, t[46] = L);
|
|
314
|
+
let R;
|
|
315
|
+
t[47] === L ? R = t[48] : (R = /* @__PURE__ */ f("th", {
|
|
316
|
+
className: "px-4 py-2.5 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
317
|
+
children: L
|
|
318
|
+
}), t[47] = L, t[48] = R);
|
|
319
|
+
let z;
|
|
320
|
+
t[49] === x ? z = t[50] : (z = x("vibecontrols.sessions.list.colActions", "Actions"), t[49] = x, t[50] = z);
|
|
321
|
+
let B;
|
|
322
|
+
t[51] === z ? B = t[52] : (B = /* @__PURE__ */ f("th", {
|
|
323
|
+
className: "px-4 py-2.5 text-right text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
324
|
+
children: z
|
|
325
|
+
}), t[51] = z, t[52] = B);
|
|
326
|
+
let V;
|
|
327
|
+
t[53] !== M || t[54] !== P || t[55] !== I || t[56] !== R || t[57] !== B || t[58] !== C || t[59] !== w || t[60] !== E || t[61] !== O || t[62] !== A ? (V = /* @__PURE__ */ f("thead", { children: /* @__PURE__ */ p("tr", {
|
|
328
|
+
className: "bg-bg-sunken border-b border-border-default",
|
|
329
|
+
children: [
|
|
330
|
+
C,
|
|
331
|
+
w,
|
|
332
|
+
E,
|
|
333
|
+
O,
|
|
334
|
+
A,
|
|
335
|
+
M,
|
|
336
|
+
P,
|
|
337
|
+
I,
|
|
338
|
+
R,
|
|
339
|
+
B
|
|
340
|
+
]
|
|
341
|
+
}) }), t[53] = M, t[54] = P, t[55] = I, t[56] = R, t[57] = B, t[58] = C, t[59] = w, t[60] = E, t[61] = O, t[62] = A, t[63] = V) : V = t[63];
|
|
342
|
+
let H;
|
|
343
|
+
if (t[64] !== i || t[65] !== u || t[66] !== s || t[67] !== d || t[68] !== a || t[69] !== o || t[70] !== l || t[71] !== g || t[72] !== h || t[73] !== n) {
|
|
344
|
+
let e;
|
|
345
|
+
t[75] !== i || t[76] !== u || t[77] !== s || t[78] !== d || t[79] !== a || t[80] !== o || t[81] !== l || t[82] !== g || t[83] !== h ? (e = (e) => /* @__PURE__ */ f(m, {
|
|
346
|
+
session: e,
|
|
347
|
+
onOpen: i,
|
|
348
|
+
onStart: a,
|
|
349
|
+
onStop: o,
|
|
350
|
+
onRestart: s,
|
|
351
|
+
onTerminate: l,
|
|
352
|
+
onOpenTerminal: u,
|
|
353
|
+
onShare: d,
|
|
354
|
+
selected: h?.has(e.id),
|
|
355
|
+
onToggleSelect: g ? () => g(e.id) : void 0
|
|
356
|
+
}, e.id), t[75] = i, t[76] = u, t[77] = s, t[78] = d, t[79] = a, t[80] = o, t[81] = l, t[82] = g, t[83] = h, t[84] = e) : e = t[84], H = n.map(e), t[64] = i, t[65] = u, t[66] = s, t[67] = d, t[68] = a, t[69] = o, t[70] = l, t[71] = g, t[72] = h, t[73] = n, t[74] = H;
|
|
357
|
+
} else H = t[74];
|
|
358
|
+
let U;
|
|
359
|
+
t[85] === H ? U = t[86] : (U = /* @__PURE__ */ f("tbody", { children: H }), t[85] = H, t[86] = U);
|
|
360
|
+
let W;
|
|
361
|
+
return t[87] !== V || t[88] !== U ? (W = /* @__PURE__ */ f("div", {
|
|
190
362
|
className: "border border-border-default rounded-lg overflow-visible",
|
|
191
|
-
children: /* @__PURE__ */
|
|
363
|
+
children: /* @__PURE__ */ f("div", {
|
|
192
364
|
className: "overflow-x-auto",
|
|
193
|
-
children: /* @__PURE__ */
|
|
365
|
+
children: /* @__PURE__ */ p("table", {
|
|
194
366
|
className: "w-full",
|
|
195
|
-
children: [
|
|
196
|
-
className: "bg-bg-sunken border-b border-border-default",
|
|
197
|
-
children: [
|
|
198
|
-
v && x && /* @__PURE__ */ m("th", { className: "px-3 py-2.5 w-10" }),
|
|
199
|
-
v && !x && /* @__PURE__ */ m("th", {
|
|
200
|
-
className: "px-3 py-2.5 w-10",
|
|
201
|
-
children: /* @__PURE__ */ m("input", {
|
|
202
|
-
"aria-label": "control",
|
|
203
|
-
type: "checkbox",
|
|
204
|
-
checked: C ?? !1,
|
|
205
|
-
onChange: () => {
|
|
206
|
-
C && b ? b() : y && y();
|
|
207
|
-
},
|
|
208
|
-
className: "size-4 rounded border-border-default text-action-primary-bg focus:ring-action-primary-bg",
|
|
209
|
-
title: C ? "Deselect all" : "Select all"
|
|
210
|
-
})
|
|
211
|
-
}),
|
|
212
|
-
/* @__PURE__ */ m("th", {
|
|
213
|
-
className: "px-4 py-2.5 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
214
|
-
children: S("vibecontrols.sessions.list.colName", "Name")
|
|
215
|
-
}),
|
|
216
|
-
/* @__PURE__ */ m("th", {
|
|
217
|
-
className: "px-4 py-2.5 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
218
|
-
children: S("vibecontrols.sessions.list.colType", "Type")
|
|
219
|
-
}),
|
|
220
|
-
/* @__PURE__ */ m("th", {
|
|
221
|
-
className: "px-4 py-2.5 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
222
|
-
children: S("vibecontrols.sessions.list.colStatus", "Status")
|
|
223
|
-
}),
|
|
224
|
-
/* @__PURE__ */ m("th", {
|
|
225
|
-
className: "px-4 py-2.5 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
226
|
-
children: S("vibecontrols.sessions.list.colAgent", "Agent")
|
|
227
|
-
}),
|
|
228
|
-
/* @__PURE__ */ m("th", {
|
|
229
|
-
className: "px-4 py-2.5 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
230
|
-
children: S("vibecontrols.sessions.list.colTarget", "Target")
|
|
231
|
-
}),
|
|
232
|
-
/* @__PURE__ */ m("th", {
|
|
233
|
-
className: "px-4 py-2.5 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
234
|
-
children: S("vibecontrols.sessions.list.colVibe", "Vibe")
|
|
235
|
-
}),
|
|
236
|
-
/* @__PURE__ */ m("th", {
|
|
237
|
-
className: "px-4 py-2.5 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
238
|
-
children: S("vibecontrols.sessions.list.colUpdated", "Updated")
|
|
239
|
-
}),
|
|
240
|
-
/* @__PURE__ */ m("th", {
|
|
241
|
-
className: "px-4 py-2.5 text-right text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
242
|
-
children: S("vibecontrols.sessions.list.colActions", "Actions")
|
|
243
|
-
})
|
|
244
|
-
]
|
|
245
|
-
}) }), /* @__PURE__ */ m("tbody", { children: e.map((e) => /* @__PURE__ */ m(_, {
|
|
246
|
-
session: e,
|
|
247
|
-
onOpen: t,
|
|
248
|
-
onStart: n,
|
|
249
|
-
onStop: a,
|
|
250
|
-
onRestart: o,
|
|
251
|
-
onTerminate: s,
|
|
252
|
-
onOpenTerminal: c,
|
|
253
|
-
onShare: u,
|
|
254
|
-
selected: g?.has(e.id),
|
|
255
|
-
onToggleSelect: v ? () => v(e.id) : void 0
|
|
256
|
-
}, e.id)) })]
|
|
367
|
+
children: [V, U]
|
|
257
368
|
})
|
|
258
369
|
})
|
|
259
|
-
});
|
|
370
|
+
}), t[87] = V, t[88] = U, t[89] = W) : W = t[89], W;
|
|
260
371
|
}
|
|
261
|
-
export {
|
|
372
|
+
export { g as SessionList };
|