@burdenoff/microfe-vibecontrols 2026.1112.2 → 2026.1113.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.
|
@@ -20,52 +20,54 @@ import { AgentMaintenanceTab as me } from "../components/agents/AgentMaintenance
|
|
|
20
20
|
import { AgentConnectionRecovery as he } from "../components/agents/AgentConnectionRecovery.js";
|
|
21
21
|
import { AgentStorageConfig as ge } from "../components/agents/AgentStorageConfig.js";
|
|
22
22
|
import { AliasManager as _e } from "../components/aliases/AliasManager.js";
|
|
23
|
+
import { StoreImage as ve } from "../components/plugins/StoreImage.js";
|
|
24
|
+
import { storeProductIconSrc as ye, storeQueryRejectedIconUrl as be } from "../lib/storeImage.js";
|
|
23
25
|
import "../components/shared/index.js";
|
|
24
|
-
import { useTr as
|
|
26
|
+
import { useTr as xe } from "../shared/hooks/useTr.js";
|
|
25
27
|
import { notify as o } from "../lib/toast.js";
|
|
26
28
|
import "../components/agents/index.js";
|
|
27
|
-
import { deriveAgentStatus as
|
|
28
|
-
import { shouldOfferGatewayAuthRepair as
|
|
29
|
-
import { formatStoreInstallSource as
|
|
30
|
-
import { AgentStatusBadge as
|
|
31
|
-
import { RemoteTaskPermissionsCard as
|
|
32
|
-
import { AgentVisibilityCard as
|
|
33
|
-
import { useRepairGatewayAuth as
|
|
34
|
-
import { OneTimeSecretPanel as
|
|
35
|
-
import { RepairGatewayAuthDialog as
|
|
36
|
-
import { GatewayAuthCard as
|
|
37
|
-
import { ConfigureAgentDialog as
|
|
38
|
-
import { CheckSessionHealthDialog as
|
|
39
|
-
import { CreateSessionDialog as
|
|
40
|
-
import { PluginUIPanel as
|
|
41
|
-
import { OpenInBrowserEditorButton as
|
|
42
|
-
import { LogViewer as
|
|
43
|
-
import { useActiveAgentProfile as
|
|
29
|
+
import { deriveAgentStatus as Se } from "../utils/agentStatus.js";
|
|
30
|
+
import { shouldOfferGatewayAuthRepair as Ce } from "../utils/agentGatewayRecovery.js";
|
|
31
|
+
import { formatStoreInstallSource as we, storeInstallSource as Te } from "../utils/storeInstallSource.js";
|
|
32
|
+
import { AgentStatusBadge as Ee } from "../components/agents/AgentStatusBadge.js";
|
|
33
|
+
import { RemoteTaskPermissionsCard as De } from "../components/agents/RemoteTaskPermissionsCard.js";
|
|
34
|
+
import { AgentVisibilityCard as Oe } from "../components/agents/AgentVisibilityCard.js";
|
|
35
|
+
import { useRepairGatewayAuth as ke } from "../hooks/useRepairGatewayAuth.js";
|
|
36
|
+
import { OneTimeSecretPanel as Ae } from "../components/agents/OneTimeSecretPanel.js";
|
|
37
|
+
import { RepairGatewayAuthDialog as je } from "../components/agents/RepairGatewayAuthDialog.js";
|
|
38
|
+
import { GatewayAuthCard as Me } from "../components/agents/GatewayAuthCard.js";
|
|
39
|
+
import { ConfigureAgentDialog as Ne } from "../components/agents/ConfigureAgentDialog.js";
|
|
40
|
+
import { CheckSessionHealthDialog as Pe } from "../components/agents/CheckSessionHealthDialog.js";
|
|
41
|
+
import { CreateSessionDialog as Fe } from "../components/agents/CreateSessionDialog.js";
|
|
42
|
+
import { PluginUIPanel as Ie } from "../components/agents/PluginUIPanel.js";
|
|
43
|
+
import { OpenInBrowserEditorButton as Le } from "../components/agents/OpenInBrowserEditorButton.js";
|
|
44
|
+
import { LogViewer as Re } from "../components/logs/LogViewer.js";
|
|
45
|
+
import { useActiveAgentProfile as ze } from "../hooks/useActiveAgentProfile.js";
|
|
44
46
|
import "../components/agent-manager/index.js";
|
|
45
47
|
import "../components/notes/index.js";
|
|
46
|
-
import { BILLING_PLANS_ROUTE as
|
|
47
|
-
import { ProfilesPanel as
|
|
48
|
-
import { useQueryBackedTab as
|
|
49
|
-
import { NotesTabPanel as
|
|
50
|
-
import { getQuotaDialogContent as
|
|
51
|
-
import { mintScopedIframeToken as
|
|
52
|
-
import { AddTabDialog as
|
|
53
|
-
import { PluginIframeMount as
|
|
54
|
-
import { useAgentPluginsLazyQuery as
|
|
55
|
-
import { useCallback as s, useEffect as c, useMemo as
|
|
56
|
-
import { ArrowLeft as
|
|
57
|
-
import { useParams as
|
|
58
|
-
import { NetworkStatus as
|
|
59
|
-
import { usePermissions as
|
|
60
|
-
import { Fragment as
|
|
61
|
-
import { Button as
|
|
62
|
-
import { PermissionButton as
|
|
63
|
-
import { useFeatureFlagDetails as
|
|
64
|
-
import { Tabs as
|
|
65
|
-
import { MotionPage as
|
|
66
|
-
import { usePluginContributions as
|
|
48
|
+
import { BILLING_PLANS_ROUTE as Be, useVibeControls as Ve, useVibeNavigate as He } from "../providers/VibeControlsProvider.js";
|
|
49
|
+
import { ProfilesPanel as Ue } from "../components/agent-manager/ProfilesPanel.js";
|
|
50
|
+
import { useQueryBackedTab as We } from "../hooks/useQueryBackedTab.js";
|
|
51
|
+
import { NotesTabPanel as Ge } from "../components/notes/NotesTabPanel.js";
|
|
52
|
+
import { getQuotaDialogContent as Ke, isQuotaExhaustedError as qe, markQuotaHandledLocally as Je } from "../utils/quotaUtils.js";
|
|
53
|
+
import { mintScopedIframeToken as Ye } from "../services/iframeToken.js";
|
|
54
|
+
import { AddTabDialog as Xe } from "../components/plugins/AddTabDialog.js";
|
|
55
|
+
import { PluginIframeMount as Ze } from "../components/plugins/PluginIframeMount.js";
|
|
56
|
+
import { useAgentPluginsLazyQuery as Qe, useAgentSecretRevealLazyQuery as $e, useCheckSessionHealthMutation as et, useDeleteAgentMutation as tt, useGetAgentQuery as nt, useInstallAgentPluginMutation as rt, useRemoveAgentPluginMutation as it, useRotateAgentApiKeyMutation as at, useStartVibecontrolsAgentMutation as ot, useStopVibecontrolsAgentMutation as st, useUpdateAgentMutation as ct, useUpdateAgentPluginMutation as lt, useVibecontrolsAgentHealthProbeStreamSubscription as ut, useVibecontrolsAgentHealthProbesQuery as dt } from "../generated/wspace-operations.js";
|
|
57
|
+
import { useCallback as s, useEffect as c, useMemo as ft, useRef as l, useState as u } from "react";
|
|
58
|
+
import { ArrowLeft as pt, ArrowUpCircle as mt, Bot as ht, Check as gt, CheckCircle2 as _t, Clock as vt, Command as yt, Copy as bt, Cpu as xt, Database as St, Download as Ct, Edit3 as wt, Eye as Tt, EyeOff as Et, FileText as Dt, HardDrive as Ot, Info as kt, Key as At, Loader2 as d, Monitor as jt, Play as Mt, Plus as Nt, Puzzle as Pt, RefreshCw as f, ScrollText as Ft, Server as p, Settings as It, Shield as Lt, Square as Rt, Tag as zt, Terminal as Bt, Trash2 as Vt, Users as Ht, Wrench as Ut, X as Wt, Zap as Gt } from "lucide-react";
|
|
59
|
+
import { useParams as Kt, useSearchParams as qt } from "react-router";
|
|
60
|
+
import { NetworkStatus as Jt } from "@apollo/client";
|
|
61
|
+
import { usePermissions as Yt } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
62
|
+
import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
63
|
+
import { Button as _, Checkbox as Xt, NextSteps as Zt, PagePurpose as Qt } from "@burdenoff/fe-libs/ui";
|
|
64
|
+
import { PermissionButton as v } from "@burdenoff/fe-libs/shared/components";
|
|
65
|
+
import { useFeatureFlagDetails as $t } from "@burdenoff/fe-libs/shared/feature-flags";
|
|
66
|
+
import { Tabs as en } from "@burdenoff/fe-libs/chrome";
|
|
67
|
+
import { MotionPage as tn } from "@burdenoff/fe-libs/shared/motion";
|
|
68
|
+
import { usePluginContributions as nn } from "@burdenoff/fe-libs/shared/plugins";
|
|
67
69
|
// src/pages/AgentDetailsPage.tsx
|
|
68
|
-
var
|
|
70
|
+
var rn = [
|
|
69
71
|
"overview",
|
|
70
72
|
"profiles",
|
|
71
73
|
"security",
|
|
@@ -79,12 +81,12 @@ var $t = [
|
|
|
79
81
|
"backup",
|
|
80
82
|
"maintenance"
|
|
81
83
|
];
|
|
82
|
-
function
|
|
83
|
-
let { id: e } =
|
|
84
|
-
return /* @__PURE__ */
|
|
84
|
+
function y() {
|
|
85
|
+
let { id: e } = Kt();
|
|
86
|
+
return /* @__PURE__ */ h(an, {}, e);
|
|
85
87
|
}
|
|
86
|
-
function
|
|
87
|
-
let { id:
|
|
88
|
+
function an() {
|
|
89
|
+
let { id: y } = Kt(), { basePath: an, currentUser: on } = Ve(), sn = an || "", b = He(), { hasPermission: cn, isLoading: ln, permissions: un } = Yt(), x = xe(), [dn] = ct({ refetchQueries: ["GetAgent"] }), [fn] = tt({
|
|
88
90
|
refetchQueries: ["ListAgents", "VibeControlsInitialData"],
|
|
89
91
|
awaitRefetchQueries: !0,
|
|
90
92
|
update(e, t, { variables: n }) {
|
|
@@ -94,112 +96,112 @@ function en() {
|
|
|
94
96
|
id: r
|
|
95
97
|
}) }), e.gc());
|
|
96
98
|
}
|
|
97
|
-
}), [
|
|
99
|
+
}), [pn] = et({ refetchQueries: ["GetAgent"] }), { repair: mn, running: hn, rotationEpoch: gn } = ke(y), [_n, vn] = u(!1), [S, yn] = u(!1), [bn, xn] = u(!1), [Sn, Cn] = u(null), wn = Sn && Sn.epoch === gn ? Sn : null, [Tn] = ot(), [En] = st(), [C, Dn] = u(null), On = re((e) => e.setActiveAgentId);
|
|
98
100
|
c(() => {
|
|
99
|
-
|
|
100
|
-
}, [
|
|
101
|
-
let [
|
|
102
|
-
variables: { id:
|
|
103
|
-
skip: !
|
|
101
|
+
y && On(y);
|
|
102
|
+
}, [y, On]);
|
|
103
|
+
let [kn, An] = u(!1), [jn, Mn] = u(!1), [Nn, Pn] = u(""), [w, Fn] = u(!1), [In, Ln] = u(null), Rn = l(null), [T, zn] = u(!1), [Bn, Vn] = u(!1), [E, Hn] = u(null), [Un, Wn] = u(!1), [Gn, Kn] = u(null), [qn] = $e({ fetchPolicy: "network-only" }), [Jn] = at(), [Yn, Xn] = u(!1), [Zn, Qn] = u(!1), [$n, er] = u(null), [tr, nr] = u(!1), { data: rr, loading: ir, error: ar, refetch: D } = nt({
|
|
104
|
+
variables: { id: y || "" },
|
|
105
|
+
skip: !y,
|
|
104
106
|
fetchPolicy: "cache-and-network"
|
|
105
|
-
}),
|
|
107
|
+
}), O = rr?.vibecontrolsAgent, k = dt({
|
|
106
108
|
fetchPolicy: "cache-and-network",
|
|
107
109
|
nextFetchPolicy: "cache-first",
|
|
108
110
|
notifyOnNetworkStatusChange: !0,
|
|
109
|
-
skip: !
|
|
111
|
+
skip: !y,
|
|
110
112
|
pollInterval: 3e4
|
|
111
|
-
}), { data:
|
|
112
|
-
let e = /* @__PURE__ */ new Map(), t =
|
|
113
|
+
}), { data: A } = ut({ skip: !y }), or = k.data === void 0 && A === void 0, sr = !or && (A !== void 0 || k.networkStatus === Jt.ready && !k.error), j = ft(() => {
|
|
114
|
+
let e = /* @__PURE__ */ new Map(), t = A?.vibecontrolsAgentHealthProbeStream ?? k.data?.vibecontrolsAgentHealthProbes ?? [];
|
|
113
115
|
for (let n of t) e.set(n.agentId, {
|
|
114
116
|
agentId: n.agentId,
|
|
115
117
|
healthy: n.healthy,
|
|
116
118
|
errorMessage: n.errorMessage
|
|
117
119
|
});
|
|
118
120
|
return e;
|
|
119
|
-
}, [
|
|
120
|
-
id:
|
|
121
|
-
isActive:
|
|
122
|
-
metadata:
|
|
123
|
-
},
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
]),
|
|
128
|
-
if (!
|
|
129
|
-
let e =
|
|
121
|
+
}, [k.data, A]), M = ft(() => O ? Se({
|
|
122
|
+
id: O.id,
|
|
123
|
+
isActive: O.isActive,
|
|
124
|
+
metadata: O.metadata
|
|
125
|
+
}, j, { probesLoading: or }) : "REGISTERING", [
|
|
126
|
+
O,
|
|
127
|
+
j,
|
|
128
|
+
or
|
|
129
|
+
]), cr = M === "STOPPED" || M === "OFFLINE", { active: N } = ze(O?.id ?? null), P = $t("vibes.tabs.iframe-host")?.value === !0, lr = ft(() => {
|
|
130
|
+
if (!P || !O?.tunnelUrl) return [];
|
|
131
|
+
let e = O.id, t = N ?? "default";
|
|
130
132
|
return [{
|
|
131
|
-
tunnelUrl:
|
|
133
|
+
tunnelUrl: O.tunnelUrl,
|
|
132
134
|
profile: t,
|
|
133
|
-
label:
|
|
134
|
-
mintIframeToken: async ({ pathPrefixes: n }) =>
|
|
135
|
+
label: O.name ?? O.id,
|
|
136
|
+
mintIframeToken: async ({ pathPrefixes: n }) => Ye(e, t, n)
|
|
135
137
|
}];
|
|
136
138
|
}, [
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
]),
|
|
139
|
+
P,
|
|
140
|
+
O?.id,
|
|
141
|
+
O?.tunnelUrl,
|
|
142
|
+
O?.name,
|
|
143
|
+
N
|
|
144
|
+
]), F = nn(lr, {
|
|
143
145
|
mountPoint: "agent.detailTab",
|
|
144
|
-
enabled:
|
|
145
|
-
}),
|
|
146
|
-
let e =
|
|
147
|
-
return [
|
|
148
|
-
}, [
|
|
149
|
-
agent:
|
|
150
|
-
probe: e.find((e) => e.agentId ===
|
|
151
|
-
probesReady:
|
|
152
|
-
})),
|
|
153
|
-
|
|
146
|
+
enabled: P && lr.length > 0
|
|
147
|
+
}), ur = ft(() => {
|
|
148
|
+
let e = F.data.filter((e) => e.contribution.mountPoint === "agent.detailTab").map((e) => e.contribution.id);
|
|
149
|
+
return [...rn, ...e];
|
|
150
|
+
}, [F.data]), [I, L] = We(ur, "overview"), [dr, fr] = u(!1), pr = [A?.vibecontrolsAgentHealthProbeStream, k.data?.vibecontrolsAgentHealthProbes].filter((e) => e != null), mr = O !== void 0 && pr.length > 0 && pr.every((e) => Ce({
|
|
151
|
+
agent: O,
|
|
152
|
+
probe: e.find((e) => e.agentId === O.id),
|
|
153
|
+
probesReady: sr
|
|
154
|
+
})), hr = async () => {
|
|
155
|
+
yn(!0);
|
|
154
156
|
try {
|
|
155
|
-
let e = await
|
|
157
|
+
let e = await pn(), t = e.data?.checkSessionHealth;
|
|
156
158
|
if (e.error || !t) {
|
|
157
|
-
o.error(e.error?.message ||
|
|
159
|
+
o.error(e.error?.message || x("agentDetails.checkSessionHealthFailed", "Session health check failed"));
|
|
158
160
|
return;
|
|
159
161
|
}
|
|
160
162
|
let n = {
|
|
161
163
|
checked: t?.checked ?? 0,
|
|
162
164
|
updated: t?.updated ?? 0
|
|
163
165
|
}, r = t?.errors ?? [];
|
|
164
|
-
r.length > 0 ? o.warning(
|
|
166
|
+
r.length > 0 ? o.warning(x("agentDetails.checkSessionHealthPartial", "Checked {{checked}} sessions, {{updated}} marked stopped, but {{problems}} reported a problem", {
|
|
165
167
|
...n,
|
|
166
168
|
problems: r.length
|
|
167
|
-
}), r.slice(0, 3).join("\n")) : o.success(
|
|
169
|
+
}), r.slice(0, 3).join("\n")) : o.success(x("agentDetails.checkSessionHealthDone", "Checked {{checked}} sessions, {{updated}} marked stopped", n));
|
|
168
170
|
} catch (e) {
|
|
169
|
-
o.error(e instanceof Error ? e.message :
|
|
171
|
+
o.error(e instanceof Error ? e.message : x("agentDetails.checkSessionHealthFailed", "Session health check failed"));
|
|
170
172
|
} finally {
|
|
171
|
-
|
|
173
|
+
yn(!1), vn(!1);
|
|
172
174
|
}
|
|
173
|
-
},
|
|
175
|
+
}, gr = async () => {
|
|
174
176
|
try {
|
|
175
|
-
let e = await
|
|
177
|
+
let e = await mn();
|
|
176
178
|
if (e.status === "busy") {
|
|
177
|
-
o.warning(
|
|
179
|
+
o.warning(x("agentDetails.repairAlreadyRunning", "A repair for this agent is already running. Wait for it to finish."));
|
|
178
180
|
return;
|
|
179
181
|
}
|
|
180
182
|
if (e.status === "failed") {
|
|
181
|
-
o.error(e.message ||
|
|
183
|
+
o.error(e.message || x("agentDetails.repairGatewayAuthFailed", "Gateway auth repair failed"));
|
|
182
184
|
return;
|
|
183
185
|
}
|
|
184
|
-
e.status === "unchanged" ? o.info(
|
|
186
|
+
e.status === "unchanged" ? o.info(x("agentDetails.repairUnchanged", "Nothing was changed: a credential push for this agent is already in progress or has just completed.")) : e.status === "delivery-failed" ? (Cn({
|
|
185
187
|
value: e.clientSecret,
|
|
186
188
|
delivered: !1,
|
|
187
189
|
epoch: e.epoch
|
|
188
|
-
}), o.warning(
|
|
190
|
+
}), o.warning(x("agentDetails.repairDeliveryFailed", "The OAuth secret was rotated but could not be delivered to the agent. Run Repair again once the agent is reachable."), e.error)) : (Cn({
|
|
189
191
|
value: e.clientSecret,
|
|
190
192
|
delivered: !0,
|
|
191
193
|
epoch: e.epoch
|
|
192
|
-
}), o.success(
|
|
194
|
+
}), o.success(x("agentDetails.repairGatewayAuthDone", "Credentials rotated and pushed"))), await Promise.all([D(), k.refetch()]).catch(() => {});
|
|
193
195
|
} finally {
|
|
194
|
-
|
|
196
|
+
xn(!1);
|
|
195
197
|
}
|
|
196
|
-
}, [
|
|
197
|
-
if (
|
|
198
|
-
|
|
198
|
+
}, [R, _r] = u([]), [vr, yr] = u([]), [br, xr] = u(!0), [z, B] = u(null), [Sr, V] = u(null), [Cr, wr] = u(null), [Tr, Er] = u(null), [Dr, Or] = u(!1), [kr, Ar] = u(!1), [jr, Mr] = u(!1), [Nr, Pr] = u(!1), [Fr, Ir] = u(!1), [Lr, Rr] = u("plugin"), zr = l(null), [H, Br] = u("installed"), [U, Vr] = u(""), [Hr, Ur] = u([]), [Wr, Gr] = u(!1), [W, Kr] = u(null), [qr, Jr] = u(!1), [G, Yr] = u(null), [Xr] = Qe(), [Zr] = rt(), [Qr] = it(), [$r] = lt(), K = s(async () => {
|
|
199
|
+
if (O?.id) {
|
|
200
|
+
xr(!0), V(null);
|
|
199
201
|
try {
|
|
200
|
-
let { data: e } = await
|
|
201
|
-
agentId:
|
|
202
|
-
profile:
|
|
202
|
+
let { data: e } = await Xr({ variables: {
|
|
203
|
+
agentId: O.id,
|
|
204
|
+
profile: N
|
|
203
205
|
} }), t = e?.agentPlugins;
|
|
204
206
|
if (t) {
|
|
205
207
|
let e = (t.installed || []).map((e) => ({
|
|
@@ -227,130 +229,144 @@ function en() {
|
|
|
227
229
|
tags: [...e.tags],
|
|
228
230
|
installed: e.installed
|
|
229
231
|
}));
|
|
230
|
-
|
|
232
|
+
_r(e), yr(n), t.error && V(t.error);
|
|
231
233
|
}
|
|
232
234
|
} catch {
|
|
233
|
-
|
|
235
|
+
V("Agent unreachable — unable to fetch plugin list");
|
|
234
236
|
} finally {
|
|
235
|
-
|
|
237
|
+
xr(!1);
|
|
236
238
|
}
|
|
237
239
|
}
|
|
238
240
|
}, [
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
241
|
+
O?.id,
|
|
242
|
+
Xr,
|
|
243
|
+
N
|
|
242
244
|
]);
|
|
243
245
|
c(() => {
|
|
244
|
-
if (!
|
|
245
|
-
let e = `${
|
|
246
|
-
|
|
246
|
+
if (!O?.id) return;
|
|
247
|
+
let e = `${O.id}:${N}`;
|
|
248
|
+
zr.current !== e && (zr.current = e, K());
|
|
247
249
|
}, [
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
250
|
+
O?.id,
|
|
251
|
+
N,
|
|
252
|
+
K
|
|
251
253
|
]);
|
|
252
|
-
let
|
|
253
|
-
if (
|
|
254
|
-
|
|
254
|
+
let ei = s(async (e) => {
|
|
255
|
+
if (O?.id) {
|
|
256
|
+
B(e);
|
|
255
257
|
try {
|
|
256
|
-
let { data: t } = await
|
|
257
|
-
agentId:
|
|
258
|
+
let { data: t } = await Zr({ variables: {
|
|
259
|
+
agentId: O.id,
|
|
258
260
|
packageName: e
|
|
259
261
|
} });
|
|
260
|
-
if (t?.installAgentPlugin?.success) await
|
|
261
|
-
else throw Error(t?.installAgentPlugin?.error ||
|
|
262
|
+
if (t?.installAgentPlugin?.success) await K();
|
|
263
|
+
else throw Error(t?.installAgentPlugin?.error || x("agentDetails.installFailed", "Install failed"));
|
|
262
264
|
} catch (e) {
|
|
263
|
-
if (
|
|
264
|
-
|
|
265
|
+
if (qe(e)) {
|
|
266
|
+
Je(), Rr("plugin"), Ir(!0);
|
|
265
267
|
return;
|
|
266
268
|
}
|
|
267
|
-
|
|
269
|
+
V(e instanceof Error ? e.message : x("agentDetails.pluginInstallFailed", "Failed to install plugin")), setTimeout(() => V(null), 5e3);
|
|
268
270
|
} finally {
|
|
269
|
-
|
|
271
|
+
B(null);
|
|
270
272
|
}
|
|
271
273
|
}
|
|
272
274
|
}, [
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
]),
|
|
278
|
-
|
|
279
|
-
}, []),
|
|
280
|
-
if (
|
|
281
|
-
|
|
275
|
+
O?.id,
|
|
276
|
+
Zr,
|
|
277
|
+
K,
|
|
278
|
+
x
|
|
279
|
+
]), ti = s((e) => {
|
|
280
|
+
wr(e);
|
|
281
|
+
}, []), ni = s(async (e) => {
|
|
282
|
+
if (O?.id) {
|
|
283
|
+
B(e);
|
|
282
284
|
try {
|
|
283
|
-
let { data: t } = await
|
|
284
|
-
agentId:
|
|
285
|
+
let { data: t } = await Qr({ variables: {
|
|
286
|
+
agentId: O.id,
|
|
285
287
|
packageName: e
|
|
286
288
|
} });
|
|
287
|
-
if (t?.removeAgentPlugin?.success) await
|
|
288
|
-
else throw Error(t?.removeAgentPlugin?.error ||
|
|
289
|
+
if (t?.removeAgentPlugin?.success) await K();
|
|
290
|
+
else throw Error(t?.removeAgentPlugin?.error || x("agentDetails.removeFailed", "Remove failed"));
|
|
289
291
|
} catch (e) {
|
|
290
|
-
|
|
292
|
+
V(e instanceof Error ? e.message : x("agentDetails.pluginRemoveFailed", "Failed to remove plugin")), setTimeout(() => V(null), 5e3);
|
|
291
293
|
} finally {
|
|
292
|
-
|
|
294
|
+
B(null);
|
|
293
295
|
}
|
|
294
296
|
}
|
|
295
297
|
}, [
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
]),
|
|
301
|
-
|
|
302
|
-
}, []),
|
|
303
|
-
if (
|
|
304
|
-
|
|
298
|
+
O?.id,
|
|
299
|
+
Qr,
|
|
300
|
+
K,
|
|
301
|
+
x
|
|
302
|
+
]), ri = s((e) => {
|
|
303
|
+
Er(e);
|
|
304
|
+
}, []), ii = s(async (e, t) => {
|
|
305
|
+
if (O?.id) {
|
|
306
|
+
B(e);
|
|
305
307
|
try {
|
|
306
|
-
let { data: n } = await
|
|
307
|
-
agentId:
|
|
308
|
+
let { data: n } = await $r({ variables: {
|
|
309
|
+
agentId: O.id,
|
|
308
310
|
packageName: e,
|
|
309
311
|
version: t ?? null
|
|
310
312
|
} }), r = n?.updateAgentPlugin;
|
|
311
|
-
if (r?.ok) await
|
|
312
|
-
else throw Error(r?.error ||
|
|
313
|
+
if (r?.ok) await K();
|
|
314
|
+
else throw Error(r?.error || x("agentDetails.updateFailed", "Plugin update failed"));
|
|
313
315
|
} catch (e) {
|
|
314
|
-
|
|
316
|
+
V(e instanceof Error ? e.message : x("agentDetails.pluginUpdateFailed", "Failed to update plugin")), setTimeout(() => V(null), 5e3);
|
|
315
317
|
} finally {
|
|
316
|
-
|
|
318
|
+
B(null);
|
|
317
319
|
}
|
|
318
320
|
}
|
|
319
321
|
}, [
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
]),
|
|
325
|
-
let e = ++
|
|
326
|
-
|
|
322
|
+
O?.id,
|
|
323
|
+
$r,
|
|
324
|
+
K,
|
|
325
|
+
x
|
|
326
|
+
]), q = O?.sessions || [], J = O?.vibes || [], ai = l(0), oi = l(!1), Y = s(async () => {
|
|
327
|
+
let e = ++ai.current, t = () => e === ai.current;
|
|
328
|
+
oi.current = !0, Gr(!0), Jr(!1), Kr(null);
|
|
327
329
|
try {
|
|
328
|
-
let e = await (await fetch(typeof window < "u" && window.__BURDENOFF_GLOBAL_GATEWAY__ || "/global/graphql", {
|
|
330
|
+
let e = async (e) => await (await fetch(typeof window < "u" && window.__BURDENOFF_GLOBAL_GATEWAY__ || "/global/graphql", {
|
|
329
331
|
method: "POST",
|
|
330
332
|
headers: { "Content-Type": "application/json" },
|
|
331
333
|
credentials: "include",
|
|
332
|
-
body: JSON.stringify({ query:
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
334
|
+
body: JSON.stringify({ query: `query MyStorePlugins {
|
|
335
|
+
myEntitlements {
|
|
336
|
+
id
|
|
337
|
+
productId
|
|
338
|
+
licenseKey
|
|
339
|
+
product {
|
|
340
|
+
id
|
|
341
|
+
name
|
|
342
|
+
slug
|
|
343
|
+
icon${e ? " iconUrl" : ""}
|
|
344
|
+
description
|
|
345
|
+
manifest
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
}` })
|
|
349
|
+
})).json(), n = await e(!0);
|
|
350
|
+
if (be(n) && (n = await e(!1)), n.errors?.length) throw Error(n.errors[0]?.message ?? "Failed to load store plugins");
|
|
351
|
+
let r = (n.data?.myEntitlements ?? []).filter((e) => {
|
|
336
352
|
let t = e.product?.manifest;
|
|
337
353
|
if (!t) return !1;
|
|
338
354
|
let n = t.itemType?.toLowerCase();
|
|
339
355
|
return n === "vibemodule" || n === "plugin";
|
|
340
356
|
});
|
|
341
|
-
t() &&
|
|
357
|
+
t() && Ur(r);
|
|
342
358
|
} catch (e) {
|
|
343
|
-
t() &&
|
|
359
|
+
t() && Kr(e instanceof Error ? e.message : "Failed to load store plugins");
|
|
344
360
|
} finally {
|
|
345
|
-
t() && (
|
|
361
|
+
t() && (oi.current = !1, Jr(!0)), Gr(oi.current);
|
|
346
362
|
}
|
|
347
|
-
}, []),
|
|
363
|
+
}, []), si = l(!1);
|
|
348
364
|
c(() => {
|
|
349
|
-
|
|
350
|
-
}, [
|
|
351
|
-
let
|
|
352
|
-
if (
|
|
353
|
-
|
|
365
|
+
H === "store" ? si.current || (si.current = !0, Y()) : si.current = !1;
|
|
366
|
+
}, [H, Y]);
|
|
367
|
+
let ci = s(async (e, t) => {
|
|
368
|
+
if (O?.id) {
|
|
369
|
+
Yr(e);
|
|
354
370
|
try {
|
|
355
371
|
let n = await (await fetch(typeof window < "u" && window.__BURDENOFF_WSPACE_GATEWAY__ || "/workspaces/graphql", {
|
|
356
372
|
method: "POST",
|
|
@@ -359,7 +375,7 @@ function en() {
|
|
|
359
375
|
body: JSON.stringify({
|
|
360
376
|
query: "mutation InstallStorePlugin($agentId: ID!, $productId: ID!, $licenseKey: String) {\n installStorePluginOnAgent(agentId: $agentId, productId: $productId, licenseKey: $licenseKey) {\n success\n error\n }\n }",
|
|
361
377
|
variables: {
|
|
362
|
-
agentId:
|
|
378
|
+
agentId: O.id,
|
|
363
379
|
productId: e,
|
|
364
380
|
licenseKey: t
|
|
365
381
|
}
|
|
@@ -368,369 +384,369 @@ function en() {
|
|
|
368
384
|
if (n.errors?.length) throw Error(n.errors[0]?.message ?? "Install failed");
|
|
369
385
|
let r = n.data?.installStorePluginOnAgent;
|
|
370
386
|
if (!r?.success) throw Error(r?.error ?? "Install failed");
|
|
371
|
-
await
|
|
387
|
+
await K(), Br("installed");
|
|
372
388
|
} catch (e) {
|
|
373
|
-
|
|
389
|
+
Kr(e instanceof Error ? e.message : "Install failed");
|
|
374
390
|
} finally {
|
|
375
|
-
|
|
391
|
+
Yr(null);
|
|
376
392
|
}
|
|
377
393
|
}
|
|
378
|
-
}, [
|
|
394
|
+
}, [O?.id, K]), [li, ui] = qt(), [di, X] = u(null), fi = li.get("install");
|
|
379
395
|
c(() => {
|
|
380
|
-
|
|
396
|
+
O?.id && fi && (X(fi), Br("store"), si.current = !0, Y(), ui((e) => {
|
|
381
397
|
let t = new URLSearchParams(e);
|
|
382
398
|
return t.delete("install"), t.delete("licenseKey"), t;
|
|
383
399
|
}, { replace: !0 }));
|
|
384
400
|
}, [
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
401
|
+
O?.id,
|
|
402
|
+
fi,
|
|
403
|
+
ui,
|
|
404
|
+
Y
|
|
389
405
|
]);
|
|
390
|
-
let Z =
|
|
406
|
+
let Z = di && qr && W === null ? Hr.find((e) => e.productId === di) : void 0, Q = Z ? Te(Z.product?.manifest) : null;
|
|
391
407
|
c(() => {
|
|
392
|
-
if (!
|
|
393
|
-
let e = Z ?
|
|
394
|
-
o.error(e),
|
|
408
|
+
if (!di || !qr || Z && Q) return;
|
|
409
|
+
let e = Z ? x("agentDetails.storeInstallNoPackage", "The plugin in this link has no installable package, so nothing was installed.") : W ? x("agentDetails.storeInstallStoreUnreachable", "The store could not be reached, so the plugin in this link could not be checked and nothing was installed. Try the link again.") : x("agentDetails.storeInstallNotEntitled", "The plugin in this link is not among your purchases, so nothing was installed.");
|
|
410
|
+
o.error(e), X(null);
|
|
395
411
|
}, [
|
|
396
|
-
|
|
397
|
-
|
|
412
|
+
di,
|
|
413
|
+
qr,
|
|
398
414
|
Z,
|
|
399
415
|
Q,
|
|
400
|
-
|
|
401
|
-
|
|
416
|
+
W,
|
|
417
|
+
x
|
|
402
418
|
]);
|
|
403
|
-
let
|
|
404
|
-
if (!
|
|
405
|
-
if (
|
|
406
|
-
|
|
419
|
+
let pi = s(async () => {
|
|
420
|
+
if (!O?.id) return null;
|
|
421
|
+
if (E) return E;
|
|
422
|
+
Wn(!0), Kn(null);
|
|
407
423
|
try {
|
|
408
|
-
let e = (await
|
|
409
|
-
return e ? (
|
|
424
|
+
let e = (await qn({ variables: { agentId: O.id } })).data?.vibecontrolsAgentSecretReveal ?? null;
|
|
425
|
+
return e ? (Hn(e), e) : (Kn("No API key configured"), null);
|
|
410
426
|
} catch (e) {
|
|
411
|
-
return
|
|
427
|
+
return Kn(e instanceof Error ? e.message : "Reveal failed"), null;
|
|
412
428
|
} finally {
|
|
413
|
-
|
|
429
|
+
Wn(!1);
|
|
414
430
|
}
|
|
415
431
|
}, [
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
432
|
+
O?.id,
|
|
433
|
+
E,
|
|
434
|
+
qn
|
|
419
435
|
]);
|
|
420
|
-
if (
|
|
436
|
+
if (ln) return /* @__PURE__ */ h("div", {
|
|
421
437
|
className: "flex items-center justify-center min-h-[400px]",
|
|
422
|
-
children: /* @__PURE__ */
|
|
438
|
+
children: /* @__PURE__ */ h("p", {
|
|
423
439
|
className: "text-text-secondary",
|
|
424
440
|
children: "Loading permissions…"
|
|
425
441
|
})
|
|
426
442
|
});
|
|
427
|
-
if (
|
|
443
|
+
if (un && (un.permissionStrings?.length ?? 0) > 0 && !cn(e.AGENT_READ)) return /* @__PURE__ */ h("div", {
|
|
428
444
|
className: "flex items-center justify-center min-h-[400px]",
|
|
429
|
-
children: /* @__PURE__ */
|
|
445
|
+
children: /* @__PURE__ */ g("div", {
|
|
430
446
|
className: "text-center space-y-2",
|
|
431
|
-
children: [/* @__PURE__ */
|
|
447
|
+
children: [/* @__PURE__ */ h("h2", {
|
|
432
448
|
className: "text-lg font-semibold text-text-primary",
|
|
433
449
|
children: "Access Denied"
|
|
434
|
-
}), /* @__PURE__ */
|
|
450
|
+
}), /* @__PURE__ */ h("p", {
|
|
435
451
|
className: "text-sm text-text-secondary",
|
|
436
452
|
children: "You don't have permission to access this page."
|
|
437
453
|
})]
|
|
438
454
|
})
|
|
439
455
|
});
|
|
440
456
|
let $ = () => {
|
|
441
|
-
|
|
442
|
-
},
|
|
443
|
-
if (
|
|
444
|
-
|
|
457
|
+
b("/agents");
|
|
458
|
+
}, mi = async (e) => {
|
|
459
|
+
if (O?.id && !C) {
|
|
460
|
+
Dn(e);
|
|
445
461
|
try {
|
|
446
|
-
let t = e === "start" ? await
|
|
462
|
+
let t = e === "start" ? await Tn({ variables: { agentId: O.id } }) : await En({ variables: { agentId: O.id } }), n = e === "start" ? t.data?.startVibecontrolsAgent : t.data?.stopVibecontrolsAgent;
|
|
447
463
|
if (!n || n.success === !1) throw Error(n?.error || `Failed to ${e} agent`);
|
|
448
|
-
o.success(e === "start" ?
|
|
464
|
+
o.success(e === "start" ? x("agentDetails.agentStarted", "Agent started") : x("agentDetails.agentStopped", "Agent stopped")), await Promise.all([D(), k.refetch()]).catch(() => {});
|
|
449
465
|
} catch (t) {
|
|
450
466
|
let n = t instanceof Error ? t.message : "", r = /unable to connect|fetch failed|timed? ?out|ECONN|agent returned 5|network/i.test(n);
|
|
451
|
-
o.error(r ?
|
|
467
|
+
o.error(r ? x("agentDetails.agentUnreachable", `Couldn't reach the agent to ${e} it — it may be offline or its tunnel is down. Start it from the host with: vibe start`) : n || x("agentDetails.lifecycleFailed", "Failed to {{action}} agent", { action: e }));
|
|
452
468
|
} finally {
|
|
453
|
-
|
|
469
|
+
Dn(null);
|
|
454
470
|
}
|
|
455
471
|
}
|
|
456
|
-
},
|
|
457
|
-
await Promise.all([
|
|
458
|
-
},
|
|
459
|
-
|
|
460
|
-
},
|
|
461
|
-
if (!
|
|
462
|
-
let e =
|
|
463
|
-
if (!e || e ===
|
|
472
|
+
}, hi = () => void mi("start"), gi = () => void mi("stop"), _i = async () => {
|
|
473
|
+
await Promise.all([D(), k.refetch()]).catch(() => {}), b("/agents");
|
|
474
|
+
}, vi = () => {
|
|
475
|
+
An(!0);
|
|
476
|
+
}, yi = async () => {
|
|
477
|
+
if (!O?.id) return;
|
|
478
|
+
let e = Nn.trim();
|
|
479
|
+
if (!e || e === O.name) Mn(!1);
|
|
464
480
|
else {
|
|
465
|
-
|
|
481
|
+
Fn(!0), Ln(null);
|
|
466
482
|
try {
|
|
467
|
-
let t = await
|
|
468
|
-
id:
|
|
483
|
+
let t = await dn({ variables: {
|
|
484
|
+
id: O.id,
|
|
469
485
|
input: { name: e }
|
|
470
486
|
} });
|
|
471
487
|
if (t.error) throw t.error;
|
|
472
|
-
|
|
488
|
+
Mn(!1);
|
|
473
489
|
} catch (e) {
|
|
474
|
-
|
|
490
|
+
Ln(e instanceof Error ? e.message : String(e));
|
|
475
491
|
} finally {
|
|
476
|
-
|
|
492
|
+
Fn(!1);
|
|
477
493
|
}
|
|
478
494
|
}
|
|
479
|
-
},
|
|
480
|
-
|
|
481
|
-
},
|
|
482
|
-
let e = await
|
|
495
|
+
}, bi = () => {
|
|
496
|
+
Mn(!1), Pn(""), Ln(null);
|
|
497
|
+
}, xi = async () => {
|
|
498
|
+
let e = await pi();
|
|
483
499
|
if (e) try {
|
|
484
|
-
await n(e), t() && r("API key copied"),
|
|
500
|
+
await n(e), t() && r("API key copied"), Vn(!0), setTimeout(() => Vn(!1), 2e3);
|
|
485
501
|
} catch {
|
|
486
502
|
console.error("Failed to copy API key");
|
|
487
503
|
}
|
|
488
|
-
},
|
|
489
|
-
|
|
490
|
-
},
|
|
491
|
-
if (
|
|
492
|
-
|
|
504
|
+
}, Si = async () => {
|
|
505
|
+
T || await pi(), zn((e) => !e);
|
|
506
|
+
}, Ci = async () => {
|
|
507
|
+
if (O?.id) {
|
|
508
|
+
Qn(!0), er(null);
|
|
493
509
|
try {
|
|
494
|
-
await
|
|
495
|
-
let e = (await
|
|
496
|
-
e && (
|
|
510
|
+
await Jn({ variables: { agentId: O.id } }), Hn(null), Xn(!1);
|
|
511
|
+
let e = (await qn({ variables: { agentId: O.id } })).data?.vibecontrolsAgentSecretReveal ?? null;
|
|
512
|
+
e && (Hn(e), zn(!0)), t() && r("API key rotated"), D();
|
|
497
513
|
} catch (e) {
|
|
498
|
-
|
|
514
|
+
er(e instanceof Error ? e.message : "Failed to rotate API key");
|
|
499
515
|
} finally {
|
|
500
|
-
|
|
516
|
+
Qn(!1);
|
|
501
517
|
}
|
|
502
518
|
}
|
|
503
|
-
},
|
|
504
|
-
|
|
505
|
-
},
|
|
506
|
-
if (
|
|
507
|
-
|
|
519
|
+
}, wi = () => {
|
|
520
|
+
O?.id && (Ar(!1), Mr(!1), Or(!0));
|
|
521
|
+
}, Ti = async () => {
|
|
522
|
+
if (O?.id) {
|
|
523
|
+
Pr(!0);
|
|
508
524
|
try {
|
|
509
|
-
await
|
|
510
|
-
id:
|
|
511
|
-
uninstallFromTarget:
|
|
512
|
-
deleteTarget:
|
|
513
|
-
} }),
|
|
525
|
+
await fn({ variables: {
|
|
526
|
+
id: O.id,
|
|
527
|
+
uninstallFromTarget: kr,
|
|
528
|
+
deleteTarget: jr
|
|
529
|
+
} }), Or(!1), $();
|
|
514
530
|
} catch (e) {
|
|
515
531
|
console.error("Failed to remove agent:", e);
|
|
516
532
|
} finally {
|
|
517
|
-
|
|
533
|
+
Pr(!1);
|
|
518
534
|
}
|
|
519
535
|
}
|
|
520
|
-
}, Ci = (e) => {
|
|
521
|
-
x(`/sessions/${e}`);
|
|
522
|
-
}, wi = () => {
|
|
523
|
-
Qn(!0);
|
|
524
|
-
}, Ti = (e) => {
|
|
525
|
-
x(`/vibes/${e}`);
|
|
526
536
|
}, Ei = (e) => {
|
|
527
|
-
|
|
537
|
+
b(`/sessions/${e}`);
|
|
538
|
+
}, Di = () => {
|
|
539
|
+
nr(!0);
|
|
540
|
+
}, Oi = (e) => {
|
|
541
|
+
b(`/vibes/${e}`);
|
|
542
|
+
}, ki = (e) => {
|
|
543
|
+
if (!e) return x("health.never", "Never");
|
|
528
544
|
let t = Date.now() - new Date(e).getTime();
|
|
529
|
-
return t < 6e4 ?
|
|
545
|
+
return t < 6e4 ? x("health.justNow", "Just now") : t < 36e5 ? x("agentDetails.minutesAgo", "{{count}}m ago", { count: Math.floor(t / 6e4) }) : t < 864e5 ? x("agentDetails.hoursAgo", "{{count}}h ago", { count: Math.floor(t / 36e5) }) : new Date(e).toLocaleDateString();
|
|
530
546
|
};
|
|
531
|
-
if (
|
|
547
|
+
if (ir && !O) return /* @__PURE__ */ g(tn, {
|
|
532
548
|
className: "space-y-6 p-4 sm:p-6 bg-bg-surface min-h-screen",
|
|
533
|
-
children: [/* @__PURE__ */
|
|
549
|
+
children: [/* @__PURE__ */ g("button", {
|
|
534
550
|
type: "button",
|
|
535
551
|
onClick: $,
|
|
536
552
|
className: "flex items-center gap-2 text-text-secondary hover:text-text-primary transition-colors",
|
|
537
|
-
children: [/* @__PURE__ */
|
|
538
|
-
}), /* @__PURE__ */
|
|
553
|
+
children: [/* @__PURE__ */ h(pt, { className: "size-4" }), x("agentDetails.backToAgents", "Back to Agents")]
|
|
554
|
+
}), /* @__PURE__ */ h(ne, { variant: "detail" })]
|
|
539
555
|
});
|
|
540
|
-
if (
|
|
556
|
+
if (ar && !O) return /* @__PURE__ */ g(tn, {
|
|
541
557
|
className: "space-y-6 p-4 sm:p-6 bg-bg-surface min-h-screen",
|
|
542
|
-
children: [/* @__PURE__ */
|
|
558
|
+
children: [/* @__PURE__ */ g("button", {
|
|
543
559
|
type: "button",
|
|
544
560
|
onClick: $,
|
|
545
561
|
className: "flex items-center gap-2 text-text-secondary hover:text-text-primary transition-colors",
|
|
546
|
-
children: [/* @__PURE__ */
|
|
547
|
-
}), /* @__PURE__ */
|
|
548
|
-
title:
|
|
549
|
-
message:
|
|
550
|
-
onRetry: () =>
|
|
562
|
+
children: [/* @__PURE__ */ h(pt, { className: "size-4" }), x("agentDetails.backToAgents", "Back to Agents")]
|
|
563
|
+
}), /* @__PURE__ */ h(ae, {
|
|
564
|
+
title: x("agentDetails.failedLoad", "Failed to load agent"),
|
|
565
|
+
message: ar.message,
|
|
566
|
+
onRetry: () => D()
|
|
551
567
|
})]
|
|
552
568
|
});
|
|
553
|
-
if (!
|
|
569
|
+
if (!O) return /* @__PURE__ */ g(tn, {
|
|
554
570
|
className: "space-y-6 p-4 sm:p-6 bg-bg-surface min-h-screen",
|
|
555
|
-
children: [/* @__PURE__ */
|
|
571
|
+
children: [/* @__PURE__ */ g("button", {
|
|
556
572
|
type: "button",
|
|
557
573
|
onClick: $,
|
|
558
574
|
className: "flex items-center gap-2 text-text-secondary hover:text-text-primary transition-colors",
|
|
559
|
-
children: [/* @__PURE__ */
|
|
560
|
-
}), /* @__PURE__ */
|
|
561
|
-
icon: /* @__PURE__ */
|
|
562
|
-
title:
|
|
563
|
-
description: `${
|
|
564
|
-
action: /* @__PURE__ */
|
|
575
|
+
children: [/* @__PURE__ */ h(pt, { className: "size-4" }), x("agentDetails.backToAgents", "Back to Agents")]
|
|
576
|
+
}), /* @__PURE__ */ h(se, {
|
|
577
|
+
icon: /* @__PURE__ */ h(p, { className: "size-8 text-text-secondary" }),
|
|
578
|
+
title: x("agentDetails.notFound", "Agent not found"),
|
|
579
|
+
description: `${x("agentDetails.notFoundDescriptionPrefix", "No agent with ID")} "${y}" ${x("agentDetails.notFoundDescriptionSuffix", "exists")}`,
|
|
580
|
+
action: /* @__PURE__ */ h(_, {
|
|
565
581
|
type: "button",
|
|
566
582
|
onClick: $,
|
|
567
|
-
children:
|
|
583
|
+
children: x("agentDetails.backToAgents", "Back to Agents")
|
|
568
584
|
})
|
|
569
585
|
})]
|
|
570
586
|
});
|
|
571
|
-
let
|
|
587
|
+
let Ai = [
|
|
572
588
|
{
|
|
573
589
|
id: "overview",
|
|
574
|
-
label:
|
|
590
|
+
label: x("nav.overview", "Overview"),
|
|
575
591
|
icon: p
|
|
576
592
|
},
|
|
577
593
|
{
|
|
578
594
|
id: "profiles",
|
|
579
|
-
label:
|
|
580
|
-
icon:
|
|
595
|
+
label: x("agentDetails.profiles", "Profiles"),
|
|
596
|
+
icon: Ht
|
|
581
597
|
},
|
|
582
598
|
{
|
|
583
599
|
id: "security",
|
|
584
|
-
label:
|
|
585
|
-
icon:
|
|
600
|
+
label: x("agentDetails.security", "Security"),
|
|
601
|
+
icon: Lt
|
|
586
602
|
},
|
|
587
603
|
{
|
|
588
604
|
id: "plugins",
|
|
589
|
-
label:
|
|
590
|
-
icon:
|
|
591
|
-
badge: `${
|
|
605
|
+
label: x("agentDetails.plugins", "Plugins"),
|
|
606
|
+
icon: Pt,
|
|
607
|
+
badge: `${R.length}`
|
|
592
608
|
},
|
|
593
609
|
{
|
|
594
610
|
id: "sessions",
|
|
595
|
-
label:
|
|
596
|
-
icon:
|
|
597
|
-
badge: `${
|
|
611
|
+
label: x("nav.sessions", "Sessions"),
|
|
612
|
+
icon: Bt,
|
|
613
|
+
badge: `${q.length}`
|
|
598
614
|
},
|
|
599
615
|
{
|
|
600
616
|
id: "logs",
|
|
601
|
-
label:
|
|
602
|
-
icon:
|
|
617
|
+
label: x("nav.logs", "Logs"),
|
|
618
|
+
icon: Ft
|
|
603
619
|
},
|
|
604
620
|
{
|
|
605
621
|
id: "connection",
|
|
606
|
-
label:
|
|
607
|
-
icon:
|
|
622
|
+
label: x("agentDetails.connection", "Connection Log"),
|
|
623
|
+
icon: Ft
|
|
608
624
|
},
|
|
609
625
|
{
|
|
610
626
|
id: "vibes",
|
|
611
|
-
label:
|
|
612
|
-
icon:
|
|
613
|
-
badge: `${
|
|
627
|
+
label: x("nav.vibes", "Vibes"),
|
|
628
|
+
icon: Gt,
|
|
629
|
+
badge: `${J.length}`
|
|
614
630
|
},
|
|
615
631
|
{
|
|
616
632
|
id: "notes",
|
|
617
|
-
label:
|
|
618
|
-
icon:
|
|
633
|
+
label: x("vibeDetails.notes", "Notes"),
|
|
634
|
+
icon: Dt
|
|
619
635
|
},
|
|
620
636
|
{
|
|
621
637
|
id: "aliases",
|
|
622
|
-
label:
|
|
623
|
-
icon:
|
|
638
|
+
label: x("agentDetails.aliases", "Aliases"),
|
|
639
|
+
icon: yt
|
|
624
640
|
},
|
|
625
641
|
{
|
|
626
642
|
id: "backup",
|
|
627
|
-
label:
|
|
628
|
-
icon:
|
|
643
|
+
label: x("agentDetails.backup", "Backup"),
|
|
644
|
+
icon: St
|
|
629
645
|
},
|
|
630
646
|
{
|
|
631
647
|
id: "maintenance",
|
|
632
|
-
label:
|
|
633
|
-
icon:
|
|
648
|
+
label: x("agentDetails.maintenance.tab", "Maintenance"),
|
|
649
|
+
icon: Ut
|
|
634
650
|
}
|
|
635
|
-
],
|
|
636
|
-
return /* @__PURE__ */
|
|
651
|
+
], ji = q.filter((e) => e.status === "RUNNING").length;
|
|
652
|
+
return /* @__PURE__ */ g(tn, {
|
|
637
653
|
className: "space-y-6 p-4 sm:p-6 bg-bg-surface min-h-screen",
|
|
638
654
|
children: [
|
|
639
|
-
/* @__PURE__ */
|
|
655
|
+
/* @__PURE__ */ g("button", {
|
|
640
656
|
type: "button",
|
|
641
657
|
onClick: $,
|
|
642
658
|
className: "flex items-center gap-2 text-text-secondary hover:text-text-primary transition-colors",
|
|
643
|
-
children: [/* @__PURE__ */
|
|
659
|
+
children: [/* @__PURE__ */ h(pt, { className: "size-4" }), x("agentDetails.backToAgents", "Back to Agents")]
|
|
644
660
|
}),
|
|
645
|
-
/* @__PURE__ */
|
|
646
|
-
title:
|
|
647
|
-
description:
|
|
661
|
+
/* @__PURE__ */ h(ie, {
|
|
662
|
+
title: O.name,
|
|
663
|
+
description: O.hostname || x("agentDetails.noHostnameConfigured", "No hostname configured"),
|
|
648
664
|
breadcrumb: [{
|
|
649
|
-
label:
|
|
650
|
-
path:
|
|
651
|
-
}, { label:
|
|
652
|
-
actions: /* @__PURE__ */
|
|
665
|
+
label: x("nav.agents", "Agents"),
|
|
666
|
+
path: sn ? `${sn}/agents` : "/agents"
|
|
667
|
+
}, { label: O.name }],
|
|
668
|
+
actions: /* @__PURE__ */ g("div", {
|
|
653
669
|
className: "flex flex-wrap items-center gap-2",
|
|
654
670
|
children: [
|
|
655
|
-
|
|
671
|
+
cr ? /* @__PURE__ */ g(_, {
|
|
656
672
|
type: "button",
|
|
657
|
-
onClick:
|
|
658
|
-
disabled:
|
|
659
|
-
"aria-busy":
|
|
660
|
-
children: [
|
|
673
|
+
onClick: hi,
|
|
674
|
+
disabled: C !== null,
|
|
675
|
+
"aria-busy": C === "start",
|
|
676
|
+
children: [C === "start" ? /* @__PURE__ */ h(d, {
|
|
661
677
|
className: "size-4 animate-spin",
|
|
662
678
|
"aria-hidden": "true"
|
|
663
|
-
}) : /* @__PURE__ */
|
|
679
|
+
}) : /* @__PURE__ */ h(Mt, {
|
|
664
680
|
className: "size-4",
|
|
665
681
|
"aria-hidden": "true"
|
|
666
|
-
}),
|
|
667
|
-
}) : /* @__PURE__ */ _
|
|
682
|
+
}), C === "start" ? x("agentDetails.starting", "Starting…") : x("agentDetails.start", "Start")]
|
|
683
|
+
}) : /* @__PURE__ */ g(_, {
|
|
668
684
|
type: "button",
|
|
669
685
|
variant: "outline",
|
|
670
|
-
onClick:
|
|
671
|
-
disabled:
|
|
672
|
-
"aria-busy":
|
|
673
|
-
children: [
|
|
686
|
+
onClick: gi,
|
|
687
|
+
disabled: C !== null,
|
|
688
|
+
"aria-busy": C === "stop",
|
|
689
|
+
children: [C === "stop" ? /* @__PURE__ */ h(d, {
|
|
674
690
|
className: "size-4 animate-spin",
|
|
675
691
|
"aria-hidden": "true"
|
|
676
|
-
}) : /* @__PURE__ */
|
|
692
|
+
}) : /* @__PURE__ */ h(Rt, {
|
|
677
693
|
className: "size-4",
|
|
678
694
|
"aria-hidden": "true"
|
|
679
|
-
}),
|
|
695
|
+
}), C === "stop" ? x("agentDetails.stopping", "Stopping…") : x("sessions.stop", "Stop")]
|
|
680
696
|
}),
|
|
681
|
-
|
|
697
|
+
M === "DEGRADED" && /* @__PURE__ */ g(_, {
|
|
682
698
|
type: "button",
|
|
683
699
|
variant: "secondary",
|
|
684
|
-
onClick:
|
|
685
|
-
disabled:
|
|
686
|
-
"aria-busy":
|
|
700
|
+
onClick: hi,
|
|
701
|
+
disabled: C !== null,
|
|
702
|
+
"aria-busy": C === "start",
|
|
687
703
|
className: "text-status-warning-text hover:text-status-warning-text",
|
|
688
|
-
title:
|
|
689
|
-
children: [
|
|
704
|
+
title: j.get(O.id)?.errorMessage ? `Retry lifecycle/start — last error: ${j.get(O.id)?.errorMessage}` : "Retry lifecycle/start",
|
|
705
|
+
children: [C === "start" ? /* @__PURE__ */ h(d, {
|
|
690
706
|
className: "size-4 animate-spin",
|
|
691
707
|
"aria-hidden": "true"
|
|
692
|
-
}) : /* @__PURE__ */
|
|
708
|
+
}) : /* @__PURE__ */ h(f, {
|
|
693
709
|
className: "size-4",
|
|
694
710
|
"aria-hidden": "true"
|
|
695
|
-
}),
|
|
711
|
+
}), C === "start" ? x("agentDetails.reconnecting", "Reconnecting…") : x("agentDetails.reconnect", "Reconnect")]
|
|
696
712
|
}),
|
|
697
|
-
/* @__PURE__ */
|
|
698
|
-
agentId:
|
|
699
|
-
tunnelUrl:
|
|
700
|
-
profile:
|
|
713
|
+
/* @__PURE__ */ h(Le, {
|
|
714
|
+
agentId: O.id,
|
|
715
|
+
tunnelUrl: O.tunnelUrl || null,
|
|
716
|
+
profile: N
|
|
701
717
|
}),
|
|
702
|
-
/* @__PURE__ */ _
|
|
718
|
+
/* @__PURE__ */ g(_, {
|
|
703
719
|
type: "button",
|
|
704
720
|
variant: "outline",
|
|
705
|
-
onClick:
|
|
706
|
-
children: [/* @__PURE__ */
|
|
721
|
+
onClick: vi,
|
|
722
|
+
children: [/* @__PURE__ */ h(It, {
|
|
707
723
|
className: "size-4",
|
|
708
724
|
"aria-hidden": "true"
|
|
709
|
-
}),
|
|
725
|
+
}), x("agentDetails.configure", "Configure")]
|
|
710
726
|
}),
|
|
711
|
-
/* @__PURE__ */
|
|
712
|
-
ariaLabel:
|
|
713
|
-
title:
|
|
727
|
+
/* @__PURE__ */ h(ue, {
|
|
728
|
+
ariaLabel: x("agentDetails.agentActions", "Agent actions"),
|
|
729
|
+
title: x("agentDetails.agentActions", "Agent actions"),
|
|
714
730
|
align: "end",
|
|
715
731
|
items: [
|
|
716
732
|
{
|
|
717
733
|
key: "ai-chat",
|
|
718
|
-
label:
|
|
719
|
-
icon:
|
|
720
|
-
onSelect: () =>
|
|
734
|
+
label: x("agentDetails.aiChat", "AI Chat"),
|
|
735
|
+
icon: ht,
|
|
736
|
+
onSelect: () => b("/ai?contextLevel=agent")
|
|
721
737
|
},
|
|
722
738
|
{
|
|
723
739
|
key: "refresh",
|
|
724
|
-
label:
|
|
740
|
+
label: x("common.refresh", "Refresh"),
|
|
725
741
|
icon: f,
|
|
726
|
-
onSelect: () => void
|
|
727
|
-
disabled:
|
|
742
|
+
onSelect: () => void D(),
|
|
743
|
+
disabled: ir
|
|
728
744
|
},
|
|
729
|
-
...
|
|
745
|
+
...cn(e.AGENT_DELETE) ? [{
|
|
730
746
|
key: "remove",
|
|
731
|
-
label:
|
|
732
|
-
icon:
|
|
733
|
-
onSelect:
|
|
747
|
+
label: x("sessions.remove", "Remove"),
|
|
748
|
+
icon: Vt,
|
|
749
|
+
onSelect: wi,
|
|
734
750
|
variant: "danger",
|
|
735
751
|
separatorBefore: !0
|
|
736
752
|
}] : []
|
|
@@ -739,334 +755,334 @@ function en() {
|
|
|
739
755
|
]
|
|
740
756
|
})
|
|
741
757
|
}),
|
|
742
|
-
/* @__PURE__ */
|
|
743
|
-
icon: /* @__PURE__ */
|
|
744
|
-
children:
|
|
758
|
+
/* @__PURE__ */ h(Qt, {
|
|
759
|
+
icon: /* @__PURE__ */ h(p, { className: "size-4" }),
|
|
760
|
+
children: x("agentDetails.purpose", "This page is the control panel for one agent — the program running on your machine that VibeControls uses to execute work. Here you check its health and connection, start or restart it, push gateway credentials, review its sessions and security, and copy the commands to (re)install it. Come here when an agent is degraded or you need to confirm it is reachable.")
|
|
745
761
|
}),
|
|
746
|
-
/* @__PURE__ */
|
|
762
|
+
/* @__PURE__ */ h(Zt, {
|
|
747
763
|
storageKey: "vibecontrols-agent-details",
|
|
748
764
|
steps: [
|
|
749
765
|
{
|
|
750
766
|
id: "start-session",
|
|
751
|
-
label:
|
|
752
|
-
description:
|
|
753
|
-
icon: /* @__PURE__ */
|
|
754
|
-
onClick:
|
|
767
|
+
label: x("agentDetails.next.startSession", "Start a session on this agent"),
|
|
768
|
+
description: x("agentDetails.next.startSessionDesc", "Open a terminal or task that runs on this machine."),
|
|
769
|
+
icon: /* @__PURE__ */ h(Nt, { className: "size-4" }),
|
|
770
|
+
onClick: Di
|
|
755
771
|
},
|
|
756
772
|
{
|
|
757
773
|
id: "check-connection",
|
|
758
|
-
label:
|
|
759
|
-
description:
|
|
760
|
-
icon: /* @__PURE__ */
|
|
761
|
-
onClick: () =>
|
|
774
|
+
label: x("agentDetails.next.checkConnection", "Check the connection"),
|
|
775
|
+
description: x("agentDetails.next.checkConnectionDesc", "Verify the tunnel URL and reachability on the Connection tab."),
|
|
776
|
+
icon: /* @__PURE__ */ h(p, { className: "size-4" }),
|
|
777
|
+
onClick: () => L("connection")
|
|
762
778
|
},
|
|
763
779
|
{
|
|
764
780
|
id: "review-security",
|
|
765
|
-
label:
|
|
766
|
-
description:
|
|
767
|
-
icon: /* @__PURE__ */
|
|
768
|
-
onClick: () =>
|
|
781
|
+
label: x("agentDetails.next.reviewSecurity", "Review security & credentials"),
|
|
782
|
+
description: x("agentDetails.next.reviewSecurityDesc", "Confirm gateway auth is pushed and scopes are correct."),
|
|
783
|
+
icon: /* @__PURE__ */ h(ht, { className: "size-4" }),
|
|
784
|
+
onClick: () => L("security")
|
|
769
785
|
}
|
|
770
786
|
]
|
|
771
787
|
}),
|
|
772
|
-
/* @__PURE__ */
|
|
788
|
+
/* @__PURE__ */ h("div", {
|
|
773
789
|
className: "flex items-center gap-2 -mt-2",
|
|
774
|
-
children:
|
|
775
|
-
/* @__PURE__ */
|
|
776
|
-
ref:
|
|
790
|
+
children: jn ? /* @__PURE__ */ g(m, { children: [
|
|
791
|
+
/* @__PURE__ */ h("input", {
|
|
792
|
+
ref: Rn,
|
|
777
793
|
type: "text",
|
|
778
|
-
value:
|
|
779
|
-
onChange: (e) =>
|
|
794
|
+
value: Nn,
|
|
795
|
+
onChange: (e) => Pn(e.target.value),
|
|
780
796
|
onKeyDown: (e) => {
|
|
781
|
-
e.key === "Enter" && !
|
|
797
|
+
e.key === "Enter" && !w ? yi() : e.key === "Escape" && bi();
|
|
782
798
|
},
|
|
783
|
-
disabled:
|
|
799
|
+
disabled: w,
|
|
784
800
|
maxLength: 120,
|
|
785
|
-
"aria-label":
|
|
801
|
+
"aria-label": x("agentDetails.renameInput", "New agent name"),
|
|
786
802
|
className: "flex-1 max-w-md px-3 py-1.5 text-sm bg-bg-surface border border-border-subtle rounded-input text-text-primary placeholder:text-text-placeholder transition-colors focus:outline-none focus:ring-1 focus:ring-[var(--color-focus-ring)] focus:border-border-strong",
|
|
787
|
-
placeholder:
|
|
803
|
+
placeholder: O.name,
|
|
788
804
|
"data-testid": "agent-details-rename-input"
|
|
789
805
|
}),
|
|
790
|
-
/* @__PURE__ */
|
|
806
|
+
/* @__PURE__ */ g("button", {
|
|
791
807
|
type: "button",
|
|
792
|
-
onClick: () => void
|
|
793
|
-
disabled: !
|
|
808
|
+
onClick: () => void yi(),
|
|
809
|
+
disabled: !Nn.trim() || Nn.trim() === O.name || w,
|
|
794
810
|
className: "inline-flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium bg-action-primary-bg text-action-primary-text rounded-md hover:bg-action-primary-bgHover transition-colors disabled:opacity-60 disabled:cursor-not-allowed focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus",
|
|
795
811
|
"data-testid": "agent-details-rename-save",
|
|
796
|
-
children: [
|
|
812
|
+
children: [w ? /* @__PURE__ */ h(d, { className: "size-3.5 animate-spin" }) : /* @__PURE__ */ h(gt, { className: "size-3.5" }), x("agentDetails.saveName", "Save")]
|
|
797
813
|
}),
|
|
798
|
-
/* @__PURE__ */
|
|
814
|
+
/* @__PURE__ */ h("button", {
|
|
799
815
|
type: "button",
|
|
800
|
-
onClick:
|
|
801
|
-
disabled:
|
|
816
|
+
onClick: bi,
|
|
817
|
+
disabled: w,
|
|
802
818
|
className: "inline-flex items-center gap-1.5 px-3 py-1.5 text-xs text-text-secondary hover:text-text-primary disabled:opacity-60",
|
|
803
819
|
"data-testid": "agent-details-rename-cancel",
|
|
804
|
-
children:
|
|
820
|
+
children: x("common.cancel", "Cancel")
|
|
805
821
|
}),
|
|
806
|
-
|
|
822
|
+
In && /* @__PURE__ */ h("span", {
|
|
807
823
|
className: "text-xs text-status-error-text",
|
|
808
824
|
role: "alert",
|
|
809
|
-
children:
|
|
825
|
+
children: In
|
|
810
826
|
})
|
|
811
|
-
] }) : /* @__PURE__ */
|
|
827
|
+
] }) : /* @__PURE__ */ g("button", {
|
|
812
828
|
type: "button",
|
|
813
829
|
onClick: () => {
|
|
814
|
-
|
|
830
|
+
Ln(null), Pn(O.name), Mn(!0), requestAnimationFrame(() => Rn.current?.select());
|
|
815
831
|
},
|
|
816
832
|
className: "inline-flex items-center gap-1.5 text-xs text-text-secondary hover:text-text-primary transition-colors",
|
|
817
|
-
title:
|
|
833
|
+
title: x("agentDetails.renameTooltip", "Rename this agent"),
|
|
818
834
|
"data-testid": "agent-details-rename-trigger",
|
|
819
|
-
children: [/* @__PURE__ */
|
|
835
|
+
children: [/* @__PURE__ */ h(wt, { className: "size-3.5" }), x("agentDetails.rename", "Rename")]
|
|
820
836
|
})
|
|
821
837
|
}),
|
|
822
|
-
|
|
838
|
+
M === "DEGRADED" && /* @__PURE__ */ g("div", {
|
|
823
839
|
role: "status",
|
|
824
840
|
"aria-live": "polite",
|
|
825
841
|
className: "flex items-start gap-3 rounded-lg border border-status-warning-border bg-status-warning-bg-subtle px-4 py-3 text-sm text-text-primary",
|
|
826
842
|
children: [
|
|
827
|
-
/* @__PURE__ */
|
|
843
|
+
/* @__PURE__ */ h(d, {
|
|
828
844
|
className: "size-4 mt-0.5 flex-shrink-0 animate-spin text-status-warning-text",
|
|
829
845
|
"aria-hidden": "true"
|
|
830
846
|
}),
|
|
831
|
-
/* @__PURE__ */
|
|
847
|
+
/* @__PURE__ */ g("div", {
|
|
832
848
|
className: "flex-1 min-w-0 space-y-1",
|
|
833
849
|
children: [
|
|
834
|
-
/* @__PURE__ */
|
|
850
|
+
/* @__PURE__ */ h("p", {
|
|
835
851
|
className: "font-medium",
|
|
836
|
-
children:
|
|
852
|
+
children: x("agentDetails.degradedBanner.title", "Agent is degraded — auto-reconnecting in the background")
|
|
837
853
|
}),
|
|
838
|
-
|
|
854
|
+
j.get(O.id)?.errorMessage && /* @__PURE__ */ h("p", {
|
|
839
855
|
className: "text-xs text-text-secondary",
|
|
840
|
-
children: /* @__PURE__ */
|
|
856
|
+
children: /* @__PURE__ */ h("span", {
|
|
841
857
|
className: "font-mono text-status-warning-text",
|
|
842
|
-
children:
|
|
858
|
+
children: j.get(O.id)?.errorMessage
|
|
843
859
|
})
|
|
844
860
|
}),
|
|
845
|
-
/* @__PURE__ */
|
|
861
|
+
/* @__PURE__ */ h("p", {
|
|
846
862
|
className: "text-xs text-text-secondary",
|
|
847
|
-
children:
|
|
863
|
+
children: x("agentDetails.degradedBanner.action", "Health probes run every ~30s; the badge flips back to Active automatically once a probe succeeds. You can click Reconnect above to retry now, or check the Connection tab for the probe history.")
|
|
848
864
|
})
|
|
849
865
|
]
|
|
850
866
|
}),
|
|
851
|
-
/* @__PURE__ */
|
|
867
|
+
/* @__PURE__ */ h("button", {
|
|
852
868
|
type: "button",
|
|
853
|
-
onClick: () =>
|
|
869
|
+
onClick: () => L("connection"),
|
|
854
870
|
className: "text-xs font-medium text-text-link hover:underline flex-shrink-0 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus rounded",
|
|
855
|
-
children:
|
|
871
|
+
children: x("agentDetails.degradedBanner.viewLog", "View log →")
|
|
856
872
|
})
|
|
857
873
|
]
|
|
858
874
|
}),
|
|
859
|
-
|
|
875
|
+
mr && /* @__PURE__ */ g("div", {
|
|
860
876
|
role: "status",
|
|
861
877
|
"data-testid": "gateway-auth-repair-banner",
|
|
862
878
|
className: "flex flex-wrap items-start gap-3 rounded-lg border border-status-warning-border bg-status-warning-bg-subtle px-4 py-3 text-sm text-text-primary",
|
|
863
|
-
children: [/* @__PURE__ */
|
|
879
|
+
children: [/* @__PURE__ */ g("div", {
|
|
864
880
|
className: "flex-1 min-w-0 space-y-1",
|
|
865
|
-
children: [/* @__PURE__ */
|
|
881
|
+
children: [/* @__PURE__ */ h("p", {
|
|
866
882
|
className: "font-medium",
|
|
867
|
-
children:
|
|
868
|
-
}), /* @__PURE__ */
|
|
883
|
+
children: x("agentDetails.repairBanner.title", "This agent is waiting for its gateway credentials")
|
|
884
|
+
}), /* @__PURE__ */ h("p", {
|
|
869
885
|
className: "text-xs text-text-secondary",
|
|
870
|
-
children:
|
|
886
|
+
children: x("agentDetails.repairBanner.description", "Nothing is changed automatically. Repairing rotates the agent’s OAuth secret and pushes the new one to it.")
|
|
871
887
|
})]
|
|
872
|
-
}), /* @__PURE__ */
|
|
888
|
+
}), /* @__PURE__ */ h(v, {
|
|
873
889
|
permission: e.AGENT_UPDATE,
|
|
874
890
|
deniedBehavior: "disable",
|
|
875
|
-
deniedTooltip:
|
|
876
|
-
children: /* @__PURE__ */
|
|
891
|
+
deniedTooltip: x("agentDetails.repushCredentialsDenied", "You don't have permission to update agents"),
|
|
892
|
+
children: /* @__PURE__ */ h(_, {
|
|
877
893
|
type: "button",
|
|
878
894
|
size: "sm",
|
|
879
895
|
variant: "secondary",
|
|
880
896
|
"data-testid": "repair-gateway-auth-btn",
|
|
881
|
-
onClick: () =>
|
|
882
|
-
disabled:
|
|
883
|
-
"aria-busy":
|
|
884
|
-
children:
|
|
897
|
+
onClick: () => xn(!0),
|
|
898
|
+
disabled: hn,
|
|
899
|
+
"aria-busy": hn,
|
|
900
|
+
children: x("agentDetails.repairGatewayAuth", "Repair gateway auth")
|
|
885
901
|
})
|
|
886
902
|
})]
|
|
887
903
|
}),
|
|
888
|
-
|
|
889
|
-
secret:
|
|
890
|
-
description:
|
|
891
|
-
onDismiss: () =>
|
|
892
|
-
},
|
|
893
|
-
/* @__PURE__ */
|
|
904
|
+
wn && /* @__PURE__ */ h(Ae, {
|
|
905
|
+
secret: wn.value,
|
|
906
|
+
description: wn.delivered ? void 0 : x("agentDetails.clientSecretNotDelivered", "This secret could not be delivered to the agent, and the previous one no longer works. Save it now and configure the agent with it, or run Repair again once the agent is reachable — it won't be shown again."),
|
|
907
|
+
onDismiss: () => Cn(null)
|
|
908
|
+
}, wn.epoch),
|
|
909
|
+
/* @__PURE__ */ g("div", {
|
|
894
910
|
className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4",
|
|
895
911
|
children: [
|
|
896
|
-
/* @__PURE__ */
|
|
912
|
+
/* @__PURE__ */ h(a, {
|
|
897
913
|
className: "p-4",
|
|
898
|
-
children: /* @__PURE__ */
|
|
914
|
+
children: /* @__PURE__ */ g("div", {
|
|
899
915
|
className: "flex items-center gap-3",
|
|
900
|
-
children: [/* @__PURE__ */
|
|
916
|
+
children: [/* @__PURE__ */ h("div", {
|
|
901
917
|
className: "size-10 rounded-lg bg-[var(--color-accent-soft)] flex items-center justify-center",
|
|
902
|
-
children: /* @__PURE__ */
|
|
903
|
-
}), /* @__PURE__ */
|
|
918
|
+
children: /* @__PURE__ */ h(p, { className: "size-5 text-action-primary-bg" })
|
|
919
|
+
}), /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("p", {
|
|
904
920
|
className: "text-sm text-text-secondary",
|
|
905
|
-
children:
|
|
906
|
-
}), /* @__PURE__ */
|
|
907
|
-
status:
|
|
908
|
-
reason:
|
|
921
|
+
children: x("sessions.filterStatus", "Status")
|
|
922
|
+
}), /* @__PURE__ */ h(Ee, {
|
|
923
|
+
status: M,
|
|
924
|
+
reason: j.get(O.id)?.errorMessage ?? (O.lastGatewayAuthPushStatus === "failed" ? O.lastGatewayAuthPushError ?? "Gateway-auth push failed" : null),
|
|
909
925
|
linkTo: "?tab=connection",
|
|
910
926
|
onClick: (e) => {
|
|
911
|
-
e.preventDefault(),
|
|
927
|
+
e.preventDefault(), L("connection");
|
|
912
928
|
}
|
|
913
929
|
})] })]
|
|
914
930
|
})
|
|
915
931
|
}),
|
|
916
|
-
/* @__PURE__ */
|
|
932
|
+
/* @__PURE__ */ h(a, {
|
|
917
933
|
className: "p-4",
|
|
918
|
-
children: /* @__PURE__ */
|
|
934
|
+
children: /* @__PURE__ */ g("div", {
|
|
919
935
|
className: "flex items-center gap-3",
|
|
920
|
-
children: [/* @__PURE__ */
|
|
936
|
+
children: [/* @__PURE__ */ h("div", {
|
|
921
937
|
className: "size-10 rounded-lg bg-[var(--color-accent-soft)] flex items-center justify-center",
|
|
922
|
-
children: /* @__PURE__ */
|
|
923
|
-
}), /* @__PURE__ */
|
|
938
|
+
children: /* @__PURE__ */ h(xt, { className: "size-5 text-action-primary-bg" })
|
|
939
|
+
}), /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("p", {
|
|
924
940
|
className: "text-sm text-text-secondary",
|
|
925
|
-
children:
|
|
926
|
-
}), /* @__PURE__ */
|
|
941
|
+
children: x("analytics.platform", "Platform")
|
|
942
|
+
}), /* @__PURE__ */ g("p", {
|
|
927
943
|
className: "font-semibold text-text-primary",
|
|
928
944
|
children: [
|
|
929
|
-
|
|
945
|
+
O.platform,
|
|
930
946
|
"/",
|
|
931
|
-
|
|
947
|
+
O.architecture
|
|
932
948
|
]
|
|
933
949
|
})] })]
|
|
934
950
|
})
|
|
935
951
|
}),
|
|
936
|
-
/* @__PURE__ */
|
|
952
|
+
/* @__PURE__ */ h(a, {
|
|
937
953
|
className: "p-4",
|
|
938
|
-
children: /* @__PURE__ */
|
|
954
|
+
children: /* @__PURE__ */ g("div", {
|
|
939
955
|
className: "flex items-center gap-3",
|
|
940
|
-
children: [/* @__PURE__ */
|
|
956
|
+
children: [/* @__PURE__ */ h("div", {
|
|
941
957
|
className: "size-10 rounded-lg bg-[var(--color-accent-soft)] flex items-center justify-center",
|
|
942
|
-
children: /* @__PURE__ */
|
|
943
|
-
}), /* @__PURE__ */
|
|
958
|
+
children: /* @__PURE__ */ h(Ot, { className: "size-5 text-action-primary-bg" })
|
|
959
|
+
}), /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("p", {
|
|
944
960
|
className: "text-sm text-text-secondary",
|
|
945
|
-
children:
|
|
946
|
-
}), /* @__PURE__ */
|
|
961
|
+
children: x("agentDetails.version", "Version")
|
|
962
|
+
}), /* @__PURE__ */ g("p", {
|
|
947
963
|
className: "font-semibold text-text-primary",
|
|
948
|
-
children: ["v",
|
|
964
|
+
children: ["v", O.version]
|
|
949
965
|
})] })]
|
|
950
966
|
})
|
|
951
967
|
}),
|
|
952
|
-
/* @__PURE__ */
|
|
968
|
+
/* @__PURE__ */ h(a, {
|
|
953
969
|
className: "p-4",
|
|
954
|
-
children: /* @__PURE__ */
|
|
970
|
+
children: /* @__PURE__ */ g("div", {
|
|
955
971
|
className: "flex items-center gap-3",
|
|
956
|
-
children: [/* @__PURE__ */
|
|
972
|
+
children: [/* @__PURE__ */ h("div", {
|
|
957
973
|
className: "size-10 rounded-lg bg-[var(--color-accent-soft)] flex items-center justify-center",
|
|
958
|
-
children: /* @__PURE__ */
|
|
959
|
-
}), /* @__PURE__ */
|
|
974
|
+
children: /* @__PURE__ */ h(Bt, { className: "size-5 text-action-primary-bg" })
|
|
975
|
+
}), /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("p", {
|
|
960
976
|
className: "text-sm text-text-secondary",
|
|
961
|
-
children:
|
|
962
|
-
}), /* @__PURE__ */
|
|
977
|
+
children: x("nav.sessions", "Sessions")
|
|
978
|
+
}), /* @__PURE__ */ g("p", {
|
|
963
979
|
className: "font-semibold text-text-primary",
|
|
964
980
|
children: [
|
|
965
|
-
|
|
981
|
+
ji,
|
|
966
982
|
" ",
|
|
967
|
-
|
|
983
|
+
x("health.active", "active")
|
|
968
984
|
]
|
|
969
985
|
})] })]
|
|
970
986
|
})
|
|
971
987
|
})
|
|
972
988
|
]
|
|
973
989
|
}),
|
|
974
|
-
/* @__PURE__ */
|
|
990
|
+
/* @__PURE__ */ g("div", {
|
|
975
991
|
className: "flex items-end border-b border-border-default",
|
|
976
|
-
children: [/* @__PURE__ */
|
|
977
|
-
items: [...
|
|
992
|
+
children: [/* @__PURE__ */ h(en, {
|
|
993
|
+
items: [...Ai.map(({ id: e, label: t, icon: n, badge: r }) => ({
|
|
978
994
|
id: e,
|
|
979
995
|
label: t,
|
|
980
|
-
icon: /* @__PURE__ */
|
|
996
|
+
icon: /* @__PURE__ */ h(n, {
|
|
981
997
|
className: "size-4",
|
|
982
998
|
"aria-hidden": "true"
|
|
983
999
|
}),
|
|
984
1000
|
badge: r
|
|
985
|
-
})), ...
|
|
1001
|
+
})), ...P ? F.data.map((e) => ({
|
|
986
1002
|
id: e.contribution.id,
|
|
987
1003
|
label: e.contribution.title
|
|
988
1004
|
})) : []],
|
|
989
|
-
activeTabId:
|
|
990
|
-
onTabChange:
|
|
1005
|
+
activeTabId: I,
|
|
1006
|
+
onTabChange: L,
|
|
991
1007
|
variant: "underline",
|
|
992
1008
|
className: "min-w-0 flex-1 border-b-0"
|
|
993
|
-
}),
|
|
1009
|
+
}), P && O && /* @__PURE__ */ g("button", {
|
|
994
1010
|
type: "button",
|
|
995
|
-
onClick: () =>
|
|
1011
|
+
onClick: () => fr(!0),
|
|
996
1012
|
className: "-mb-px flex shrink-0 items-center gap-1 p-2 text-xs sm:text-sm border-b-2 border-transparent text-text-secondary hover:text-text-primary hover:border-border-default focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus rounded-t",
|
|
997
1013
|
title: "Install a UI plugin tab",
|
|
998
1014
|
"aria-label": "Add tab",
|
|
999
|
-
children: [/* @__PURE__ */
|
|
1015
|
+
children: [/* @__PURE__ */ h("span", {
|
|
1000
1016
|
"aria-hidden": !0,
|
|
1001
1017
|
children: "+"
|
|
1002
|
-
}), /* @__PURE__ */
|
|
1018
|
+
}), /* @__PURE__ */ h("span", {
|
|
1003
1019
|
className: "hidden sm:inline",
|
|
1004
1020
|
children: "Add tab"
|
|
1005
1021
|
})]
|
|
1006
1022
|
})]
|
|
1007
1023
|
}),
|
|
1008
|
-
/* @__PURE__ */
|
|
1009
|
-
tabKey:
|
|
1024
|
+
/* @__PURE__ */ g(de, {
|
|
1025
|
+
tabKey: I,
|
|
1010
1026
|
children: [
|
|
1011
|
-
|
|
1027
|
+
I === "overview" && /* @__PURE__ */ g("div", {
|
|
1012
1028
|
className: "space-y-6",
|
|
1013
1029
|
children: [
|
|
1014
|
-
/* @__PURE__ */
|
|
1030
|
+
/* @__PURE__ */ g(a, { children: [/* @__PURE__ */ h("div", {
|
|
1015
1031
|
className: "p-4 border-b border-border-default",
|
|
1016
|
-
children: /* @__PURE__ */
|
|
1032
|
+
children: /* @__PURE__ */ g("h3", {
|
|
1017
1033
|
className: "font-semibold text-text-primary flex items-center gap-2",
|
|
1018
|
-
children: [/* @__PURE__ */
|
|
1034
|
+
children: [/* @__PURE__ */ h(_t, { className: "size-5" }), x("agentDetails.capabilities", "Capabilities")]
|
|
1019
1035
|
})
|
|
1020
|
-
}), /* @__PURE__ */
|
|
1036
|
+
}), /* @__PURE__ */ h("div", {
|
|
1021
1037
|
className: "p-4",
|
|
1022
|
-
children: /* @__PURE__ */
|
|
1038
|
+
children: /* @__PURE__ */ h("div", {
|
|
1023
1039
|
className: "flex flex-wrap gap-2",
|
|
1024
|
-
children:
|
|
1025
|
-
let e =
|
|
1040
|
+
children: O.capabilities && typeof O.capabilities == "object" && (Array.isArray(O.capabilities) ? O.capabilities.length > 0 : Object.keys(O.capabilities).length > 0) ? (Array.isArray(O.capabilities) ? O.capabilities : (() => {
|
|
1041
|
+
let e = O.capabilities, t = Object.keys(e);
|
|
1026
1042
|
return t.length > 0 && t.every((e) => /^\d+$/.test(e)) ? Object.values(e) : t;
|
|
1027
|
-
})()).map((e) => /* @__PURE__ */
|
|
1043
|
+
})()).map((e) => /* @__PURE__ */ h("span", {
|
|
1028
1044
|
className: "px-2 py-0.5 bg-bg-sunken text-text-secondary text-xs rounded-pill",
|
|
1029
1045
|
children: e
|
|
1030
|
-
}, e)) : /* @__PURE__ */
|
|
1046
|
+
}, e)) : /* @__PURE__ */ g("div", {
|
|
1031
1047
|
className: "space-y-2 text-sm text-text-secondary",
|
|
1032
1048
|
children: [
|
|
1033
|
-
/* @__PURE__ */
|
|
1034
|
-
/* @__PURE__ */
|
|
1049
|
+
/* @__PURE__ */ h("p", { children: x("agentDetails.noCapabilitiesConfigured", "No capabilities configured") }),
|
|
1050
|
+
/* @__PURE__ */ g("p", {
|
|
1035
1051
|
className: "text-xs",
|
|
1036
1052
|
children: [
|
|
1037
1053
|
"Capabilities are feature tags the agent advertises to vibes (e.g.",
|
|
1038
1054
|
" ",
|
|
1039
|
-
/* @__PURE__ */
|
|
1055
|
+
/* @__PURE__ */ h("code", {
|
|
1040
1056
|
className: "text-text-primary",
|
|
1041
1057
|
children: "docker"
|
|
1042
1058
|
}),
|
|
1043
1059
|
",",
|
|
1044
1060
|
" ",
|
|
1045
|
-
/* @__PURE__ */
|
|
1061
|
+
/* @__PURE__ */ h("code", {
|
|
1046
1062
|
className: "text-text-primary",
|
|
1047
1063
|
children: "gpu"
|
|
1048
1064
|
}),
|
|
1049
1065
|
",",
|
|
1050
1066
|
" ",
|
|
1051
|
-
/* @__PURE__ */
|
|
1067
|
+
/* @__PURE__ */ h("code", {
|
|
1052
1068
|
className: "text-text-primary",
|
|
1053
1069
|
children: "node20"
|
|
1054
1070
|
}),
|
|
1055
1071
|
",",
|
|
1056
1072
|
" ",
|
|
1057
|
-
/* @__PURE__ */
|
|
1073
|
+
/* @__PURE__ */ h("code", {
|
|
1058
1074
|
className: "text-text-primary",
|
|
1059
1075
|
children: "git"
|
|
1060
1076
|
}),
|
|
1061
1077
|
"). Vibes use them to pick an agent that can run their workloads."
|
|
1062
1078
|
]
|
|
1063
1079
|
}),
|
|
1064
|
-
/* @__PURE__ */
|
|
1080
|
+
/* @__PURE__ */ g("p", {
|
|
1065
1081
|
className: "text-xs",
|
|
1066
1082
|
children: [
|
|
1067
1083
|
"Add from the agent host CLI:",
|
|
1068
1084
|
" ",
|
|
1069
|
-
/* @__PURE__ */
|
|
1085
|
+
/* @__PURE__ */ h("code", {
|
|
1070
1086
|
className: "text-text-primary",
|
|
1071
1087
|
children: "vibe agent caps add docker gpu"
|
|
1072
1088
|
}),
|
|
@@ -1077,404 +1093,404 @@ function en() {
|
|
|
1077
1093
|
})
|
|
1078
1094
|
})
|
|
1079
1095
|
})] }),
|
|
1080
|
-
/* @__PURE__ */
|
|
1096
|
+
/* @__PURE__ */ g(a, { children: [/* @__PURE__ */ h("div", {
|
|
1081
1097
|
className: "p-4 border-b border-border-default",
|
|
1082
|
-
children: /* @__PURE__ */
|
|
1098
|
+
children: /* @__PURE__ */ g("h3", {
|
|
1083
1099
|
className: "font-semibold text-text-primary flex items-center gap-2",
|
|
1084
|
-
children: [/* @__PURE__ */
|
|
1100
|
+
children: [/* @__PURE__ */ h(zt, { className: "size-5" }), "Tags"]
|
|
1085
1101
|
})
|
|
1086
|
-
}), /* @__PURE__ */
|
|
1102
|
+
}), /* @__PURE__ */ h("div", {
|
|
1087
1103
|
className: "p-4",
|
|
1088
|
-
children: /* @__PURE__ */
|
|
1104
|
+
children: /* @__PURE__ */ h(te, {
|
|
1089
1105
|
entityType: "VIBECONTROLS_AGENT",
|
|
1090
|
-
entityId:
|
|
1106
|
+
entityId: O.id
|
|
1091
1107
|
})
|
|
1092
1108
|
})] }),
|
|
1093
|
-
|
|
1109
|
+
O.tunnelUrl && /* @__PURE__ */ g(a, { children: [/* @__PURE__ */ h("div", {
|
|
1094
1110
|
className: "p-4 border-b border-border-default",
|
|
1095
|
-
children: /* @__PURE__ */
|
|
1111
|
+
children: /* @__PURE__ */ g("h3", {
|
|
1096
1112
|
className: "font-semibold text-text-primary flex items-center gap-2",
|
|
1097
|
-
children: [/* @__PURE__ */
|
|
1113
|
+
children: [/* @__PURE__ */ h(Gt, { className: "size-5" }), x("health.tunnel", "Tunnel")]
|
|
1098
1114
|
})
|
|
1099
|
-
}), /* @__PURE__ */
|
|
1115
|
+
}), /* @__PURE__ */ h("div", {
|
|
1100
1116
|
className: "p-4",
|
|
1101
|
-
children: /* @__PURE__ */
|
|
1117
|
+
children: /* @__PURE__ */ g("div", {
|
|
1102
1118
|
className: "flex-1 min-w-0",
|
|
1103
|
-
children: [/* @__PURE__ */
|
|
1119
|
+
children: [/* @__PURE__ */ h("p", {
|
|
1104
1120
|
className: "text-sm text-text-secondary mb-1",
|
|
1105
|
-
children:
|
|
1106
|
-
}), /* @__PURE__ */
|
|
1107
|
-
href:
|
|
1121
|
+
children: x("agentDetails.tunnelUrl", "Tunnel URL")
|
|
1122
|
+
}), /* @__PURE__ */ h("a", {
|
|
1123
|
+
href: O.tunnelUrl,
|
|
1108
1124
|
target: "_blank",
|
|
1109
1125
|
rel: "noopener noreferrer",
|
|
1110
1126
|
className: "text-text-link hover:underline break-all",
|
|
1111
|
-
children:
|
|
1127
|
+
children: O.tunnelUrl
|
|
1112
1128
|
})]
|
|
1113
1129
|
})
|
|
1114
1130
|
})] }),
|
|
1115
|
-
/* @__PURE__ */
|
|
1131
|
+
/* @__PURE__ */ g(a, { children: [/* @__PURE__ */ h("div", {
|
|
1116
1132
|
className: "p-4 border-b border-border-default",
|
|
1117
|
-
children: /* @__PURE__ */
|
|
1133
|
+
children: /* @__PURE__ */ g("h3", {
|
|
1118
1134
|
className: "font-semibold text-text-primary flex items-center gap-2",
|
|
1119
|
-
children: [/* @__PURE__ */
|
|
1135
|
+
children: [/* @__PURE__ */ h(It, { className: "size-5" }), x("agentDetails.configuration", "Configuration")]
|
|
1120
1136
|
})
|
|
1121
|
-
}), /* @__PURE__ */
|
|
1137
|
+
}), /* @__PURE__ */ g("div", {
|
|
1122
1138
|
className: "p-4 space-y-4",
|
|
1123
|
-
children: [/* @__PURE__ */
|
|
1139
|
+
children: [/* @__PURE__ */ g("div", {
|
|
1124
1140
|
className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",
|
|
1125
1141
|
children: [
|
|
1126
|
-
/* @__PURE__ */
|
|
1142
|
+
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("p", {
|
|
1127
1143
|
className: "text-sm text-text-secondary",
|
|
1128
|
-
children:
|
|
1129
|
-
}), /* @__PURE__ */
|
|
1144
|
+
children: x("analytics.platform", "Platform")
|
|
1145
|
+
}), /* @__PURE__ */ h("p", {
|
|
1130
1146
|
className: "font-medium text-text-primary",
|
|
1131
|
-
children:
|
|
1147
|
+
children: O.platform
|
|
1132
1148
|
})] }),
|
|
1133
|
-
/* @__PURE__ */
|
|
1149
|
+
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("p", {
|
|
1134
1150
|
className: "text-sm text-text-secondary",
|
|
1135
|
-
children:
|
|
1136
|
-
}), /* @__PURE__ */
|
|
1151
|
+
children: x("analytics.architecture", "Architecture")
|
|
1152
|
+
}), /* @__PURE__ */ h("p", {
|
|
1137
1153
|
className: "font-medium text-text-primary",
|
|
1138
|
-
children:
|
|
1154
|
+
children: O.architecture
|
|
1139
1155
|
})] }),
|
|
1140
|
-
/* @__PURE__ */
|
|
1156
|
+
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("p", {
|
|
1141
1157
|
className: "text-sm text-text-secondary",
|
|
1142
|
-
children:
|
|
1143
|
-
}), /* @__PURE__ */
|
|
1158
|
+
children: x("agentDetails.version", "Version")
|
|
1159
|
+
}), /* @__PURE__ */ h("p", {
|
|
1144
1160
|
className: "font-medium text-text-primary",
|
|
1145
|
-
children:
|
|
1161
|
+
children: O.version
|
|
1146
1162
|
})] })
|
|
1147
1163
|
]
|
|
1148
|
-
}),
|
|
1164
|
+
}), O.aiContext && /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("p", {
|
|
1149
1165
|
className: "text-sm text-text-secondary mb-1",
|
|
1150
1166
|
children: "AI Context"
|
|
1151
|
-
}), /* @__PURE__ */
|
|
1167
|
+
}), /* @__PURE__ */ h("pre", {
|
|
1152
1168
|
className: "text-sm text-text-primary bg-bg-sunken border border-border-default rounded-md p-3 whitespace-pre-wrap font-sans",
|
|
1153
|
-
children:
|
|
1169
|
+
children: O.aiContext
|
|
1154
1170
|
})] })]
|
|
1155
1171
|
})] }),
|
|
1156
|
-
/* @__PURE__ */
|
|
1172
|
+
/* @__PURE__ */ g(a, { children: [/* @__PURE__ */ h("div", {
|
|
1157
1173
|
className: "p-4 border-b border-border-default",
|
|
1158
|
-
children: /* @__PURE__ */
|
|
1174
|
+
children: /* @__PURE__ */ g("h3", {
|
|
1159
1175
|
className: "font-semibold text-text-primary flex items-center gap-2",
|
|
1160
|
-
children: [/* @__PURE__ */
|
|
1176
|
+
children: [/* @__PURE__ */ h(vt, { className: "size-5" }), x("vibeDetails.timeline", "Timeline")]
|
|
1161
1177
|
})
|
|
1162
|
-
}), /* @__PURE__ */
|
|
1178
|
+
}), /* @__PURE__ */ h("div", {
|
|
1163
1179
|
className: "p-4",
|
|
1164
|
-
children: /* @__PURE__ */
|
|
1180
|
+
children: /* @__PURE__ */ g("div", {
|
|
1165
1181
|
className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 text-sm",
|
|
1166
1182
|
children: [
|
|
1167
|
-
/* @__PURE__ */
|
|
1183
|
+
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("p", {
|
|
1168
1184
|
className: "text-text-secondary",
|
|
1169
|
-
children:
|
|
1170
|
-
}), /* @__PURE__ */
|
|
1185
|
+
children: x("health.lastHeartbeat", "Last Heartbeat")
|
|
1186
|
+
}), /* @__PURE__ */ h("p", {
|
|
1171
1187
|
className: "font-medium text-text-primary",
|
|
1172
|
-
children:
|
|
1188
|
+
children: ki(O.lastHeartbeat)
|
|
1173
1189
|
})] }),
|
|
1174
|
-
/* @__PURE__ */
|
|
1190
|
+
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("p", {
|
|
1175
1191
|
className: "text-text-secondary",
|
|
1176
|
-
children:
|
|
1177
|
-
}), /* @__PURE__ */
|
|
1192
|
+
children: x("vibeDetails.created", "Created")
|
|
1193
|
+
}), /* @__PURE__ */ h("p", {
|
|
1178
1194
|
className: "font-medium text-text-primary",
|
|
1179
|
-
children:
|
|
1195
|
+
children: ki(O.createdAt)
|
|
1180
1196
|
})] }),
|
|
1181
|
-
/* @__PURE__ */
|
|
1197
|
+
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("p", {
|
|
1182
1198
|
className: "text-text-secondary",
|
|
1183
|
-
children:
|
|
1184
|
-
}), /* @__PURE__ */
|
|
1199
|
+
children: x("vibeDetails.updated", "Updated")
|
|
1200
|
+
}), /* @__PURE__ */ h("p", {
|
|
1185
1201
|
className: "font-medium text-text-primary",
|
|
1186
|
-
children:
|
|
1202
|
+
children: ki(O.updatedAt)
|
|
1187
1203
|
})] })
|
|
1188
1204
|
]
|
|
1189
1205
|
})
|
|
1190
1206
|
})] })
|
|
1191
1207
|
]
|
|
1192
1208
|
}),
|
|
1193
|
-
|
|
1194
|
-
|
|
1209
|
+
I === "profiles" && /* @__PURE__ */ h(Ue, { agentId: O.id }),
|
|
1210
|
+
I === "security" && /* @__PURE__ */ g("div", {
|
|
1195
1211
|
className: "space-y-6",
|
|
1196
1212
|
children: [
|
|
1197
|
-
/* @__PURE__ */
|
|
1213
|
+
/* @__PURE__ */ g(a, { children: [/* @__PURE__ */ h("div", {
|
|
1198
1214
|
className: "p-4 border-b border-border-default",
|
|
1199
|
-
children: /* @__PURE__ */
|
|
1215
|
+
children: /* @__PURE__ */ g("h3", {
|
|
1200
1216
|
className: "font-semibold text-text-primary flex items-center gap-2",
|
|
1201
|
-
children: [/* @__PURE__ */
|
|
1217
|
+
children: [/* @__PURE__ */ h(At, { className: "size-5" }), x("agentDetails.agentApiKey", "Agent API Key")]
|
|
1202
1218
|
})
|
|
1203
|
-
}), /* @__PURE__ */
|
|
1219
|
+
}), /* @__PURE__ */ g("div", {
|
|
1204
1220
|
className: "p-4",
|
|
1205
|
-
children: [
|
|
1221
|
+
children: [O.tunnelUrl ? /* @__PURE__ */ g("div", {
|
|
1206
1222
|
className: "flex items-center gap-3",
|
|
1207
1223
|
children: [
|
|
1208
|
-
/* @__PURE__ */
|
|
1224
|
+
/* @__PURE__ */ g("div", {
|
|
1209
1225
|
className: "flex-1 min-w-0",
|
|
1210
|
-
children: [/* @__PURE__ */
|
|
1226
|
+
children: [/* @__PURE__ */ h("code", {
|
|
1211
1227
|
className: "text-sm font-mono text-text-primary bg-bg-sunken px-3 py-2 rounded-md block truncate",
|
|
1212
|
-
children:
|
|
1213
|
-
}),
|
|
1228
|
+
children: T && E ? E : Un ? x("agentDetails.revealLoading", "Revealing…") : "•".repeat(32)
|
|
1229
|
+
}), Gn && /* @__PURE__ */ h("p", {
|
|
1214
1230
|
className: "text-xs text-status-error-text mt-1",
|
|
1215
|
-
children:
|
|
1231
|
+
children: Gn
|
|
1216
1232
|
})]
|
|
1217
1233
|
}),
|
|
1218
|
-
/* @__PURE__ */
|
|
1234
|
+
/* @__PURE__ */ h("button", {
|
|
1219
1235
|
type: "button",
|
|
1220
|
-
onClick: () => void
|
|
1221
|
-
disabled:
|
|
1236
|
+
onClick: () => void Si(),
|
|
1237
|
+
disabled: Un,
|
|
1222
1238
|
className: "p-2 rounded hover:bg-bg-sunken transition-colors flex-shrink-0 disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus",
|
|
1223
|
-
"aria-label":
|
|
1224
|
-
title:
|
|
1225
|
-
children:
|
|
1239
|
+
"aria-label": T ? x("agentDetails.hideApiKey", "Hide API key") : x("agentDetails.showApiKey", "Show API key"),
|
|
1240
|
+
title: T ? x("agentDetails.hideApiKey", "Hide API key") : x("agentDetails.showApiKey", "Show API key"),
|
|
1241
|
+
children: h(T ? Et : Tt, {
|
|
1226
1242
|
className: "size-4 text-text-secondary",
|
|
1227
1243
|
"aria-hidden": "true"
|
|
1228
1244
|
})
|
|
1229
1245
|
}),
|
|
1230
|
-
/* @__PURE__ */
|
|
1246
|
+
/* @__PURE__ */ h("button", {
|
|
1231
1247
|
type: "button",
|
|
1232
|
-
onClick:
|
|
1248
|
+
onClick: xi,
|
|
1233
1249
|
className: "p-2 rounded hover:bg-bg-sunken transition-colors flex-shrink-0 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus",
|
|
1234
|
-
"aria-label":
|
|
1235
|
-
title:
|
|
1236
|
-
children:
|
|
1250
|
+
"aria-label": x("agentDetails.copyApiKey", "Copy API key"),
|
|
1251
|
+
title: x("agentDetails.copyApiKey", "Copy API key"),
|
|
1252
|
+
children: Bn ? /* @__PURE__ */ h(gt, {
|
|
1237
1253
|
className: "size-4 text-status-success-text",
|
|
1238
1254
|
"aria-hidden": "true"
|
|
1239
|
-
}) : /* @__PURE__ */
|
|
1255
|
+
}) : /* @__PURE__ */ h(bt, {
|
|
1240
1256
|
className: "size-4 text-text-secondary",
|
|
1241
1257
|
"aria-hidden": "true"
|
|
1242
1258
|
})
|
|
1243
1259
|
}),
|
|
1244
|
-
/* @__PURE__ */
|
|
1260
|
+
/* @__PURE__ */ h("button", {
|
|
1245
1261
|
type: "button",
|
|
1246
1262
|
onClick: () => {
|
|
1247
|
-
|
|
1263
|
+
er(null), Xn(!0);
|
|
1248
1264
|
},
|
|
1249
1265
|
className: "p-2 rounded hover:bg-bg-sunken transition-colors flex-shrink-0 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus",
|
|
1250
|
-
"aria-label":
|
|
1251
|
-
title:
|
|
1252
|
-
children: /* @__PURE__ */
|
|
1266
|
+
"aria-label": x("agentDetails.rotateApiKey", "Rotate API key"),
|
|
1267
|
+
title: x("agentDetails.rotateApiKey", "Rotate API key"),
|
|
1268
|
+
children: /* @__PURE__ */ h(f, {
|
|
1253
1269
|
className: "size-4 text-text-secondary",
|
|
1254
1270
|
"aria-hidden": "true"
|
|
1255
1271
|
})
|
|
1256
1272
|
})
|
|
1257
1273
|
]
|
|
1258
|
-
}) : /* @__PURE__ */
|
|
1274
|
+
}) : /* @__PURE__ */ h("p", {
|
|
1259
1275
|
className: "text-sm text-text-secondary",
|
|
1260
1276
|
children: "Agent tunnel not configured. Bring the agent online first."
|
|
1261
|
-
}), /* @__PURE__ */
|
|
1277
|
+
}), /* @__PURE__ */ h("p", {
|
|
1262
1278
|
className: "mt-2 text-xs text-text-muted",
|
|
1263
1279
|
children: "This key authenticates requests sent to the agent. The key is revealed only on explicit operator action and every read is audited."
|
|
1264
1280
|
})]
|
|
1265
1281
|
})] }),
|
|
1266
|
-
/* @__PURE__ */
|
|
1267
|
-
agentId:
|
|
1268
|
-
currentTunnelUrl:
|
|
1269
|
-
onUpdated: () =>
|
|
1282
|
+
/* @__PURE__ */ h(he, {
|
|
1283
|
+
agentId: O.id,
|
|
1284
|
+
currentTunnelUrl: O.tunnelUrl,
|
|
1285
|
+
onUpdated: () => D()
|
|
1270
1286
|
}),
|
|
1271
|
-
/* @__PURE__ */
|
|
1272
|
-
agentId:
|
|
1273
|
-
storageAdapter:
|
|
1274
|
-
dbPath:
|
|
1275
|
-
hasStorageOptions:
|
|
1276
|
-
onUpdated: () =>
|
|
1287
|
+
/* @__PURE__ */ h(ge, {
|
|
1288
|
+
agentId: O.id,
|
|
1289
|
+
storageAdapter: O.storageAdapter,
|
|
1290
|
+
dbPath: O.dbPath,
|
|
1291
|
+
hasStorageOptions: O.hasStorageOptions,
|
|
1292
|
+
onUpdated: () => D()
|
|
1277
1293
|
}),
|
|
1278
|
-
/* @__PURE__ */
|
|
1279
|
-
agent:
|
|
1280
|
-
onUpdate: () =>
|
|
1294
|
+
/* @__PURE__ */ h(Me, {
|
|
1295
|
+
agent: O,
|
|
1296
|
+
onUpdate: () => D()
|
|
1281
1297
|
}),
|
|
1282
|
-
/* @__PURE__ */
|
|
1283
|
-
agent:
|
|
1284
|
-
currentUserId:
|
|
1285
|
-
onUpdated: () => void
|
|
1298
|
+
/* @__PURE__ */ h(Oe, {
|
|
1299
|
+
agent: O,
|
|
1300
|
+
currentUserId: on?.id ?? null,
|
|
1301
|
+
onUpdated: () => void D()
|
|
1286
1302
|
}),
|
|
1287
|
-
/* @__PURE__ */
|
|
1288
|
-
id:
|
|
1289
|
-
profile:
|
|
1303
|
+
/* @__PURE__ */ h(De, { agent: {
|
|
1304
|
+
id: O.id,
|
|
1305
|
+
profile: N ?? "default"
|
|
1290
1306
|
} })
|
|
1291
1307
|
]
|
|
1292
1308
|
}),
|
|
1293
|
-
|
|
1294
|
-
let t =
|
|
1309
|
+
I === "plugins" && (() => {
|
|
1310
|
+
let t = U.toLowerCase(), n = R.filter((e) => !t || e.pluginName.toLowerCase().includes(t) || e.packageName.toLowerCase().includes(t) || e.description?.toLowerCase().includes(t) || e.tags?.some((e) => e.toLowerCase().includes(t))), r = vr.filter((e) => !e.installed && (!t || e.name.toLowerCase().includes(t) || e.packageName.toLowerCase().includes(t) || e.description.toLowerCase().includes(t))), i = R.filter((e) => e.hasUI), ee = i.filter((e) => !t || e.pluginName.toLowerCase().includes(t) || e.packageName.toLowerCase().includes(t)), te = [
|
|
1295
1311
|
{
|
|
1296
1312
|
id: "installed",
|
|
1297
1313
|
label: "Installed",
|
|
1298
1314
|
count: n.length,
|
|
1299
|
-
icon:
|
|
1315
|
+
icon: Pt
|
|
1300
1316
|
},
|
|
1301
1317
|
{
|
|
1302
1318
|
id: "available",
|
|
1303
1319
|
label: "Available",
|
|
1304
1320
|
count: r.length,
|
|
1305
|
-
icon:
|
|
1321
|
+
icon: Ct
|
|
1306
1322
|
},
|
|
1307
1323
|
{
|
|
1308
1324
|
id: "store",
|
|
1309
1325
|
label: "Store",
|
|
1310
|
-
count:
|
|
1311
|
-
icon:
|
|
1326
|
+
count: Hr.length,
|
|
1327
|
+
icon: Ct
|
|
1312
1328
|
},
|
|
1313
1329
|
{
|
|
1314
1330
|
id: "ui-plugins",
|
|
1315
1331
|
label: "UI Plugins",
|
|
1316
1332
|
count: ee.length,
|
|
1317
|
-
icon:
|
|
1333
|
+
icon: jt
|
|
1318
1334
|
}
|
|
1319
1335
|
];
|
|
1320
|
-
return /* @__PURE__ */
|
|
1336
|
+
return /* @__PURE__ */ h("div", {
|
|
1321
1337
|
className: "space-y-6",
|
|
1322
|
-
children: /* @__PURE__ */
|
|
1338
|
+
children: /* @__PURE__ */ g(a, { children: [/* @__PURE__ */ g("div", {
|
|
1323
1339
|
className: "p-4 border-b border-border-default space-y-3",
|
|
1324
1340
|
children: [
|
|
1325
|
-
/* @__PURE__ */
|
|
1341
|
+
/* @__PURE__ */ g("div", {
|
|
1326
1342
|
className: "flex items-center justify-between gap-2",
|
|
1327
|
-
children: [/* @__PURE__ */
|
|
1343
|
+
children: [/* @__PURE__ */ g("h3", {
|
|
1328
1344
|
className: "font-semibold text-text-primary flex items-center gap-2 min-w-0",
|
|
1329
1345
|
children: [
|
|
1330
|
-
/* @__PURE__ */
|
|
1346
|
+
/* @__PURE__ */ h(Pt, {
|
|
1331
1347
|
className: "size-5",
|
|
1332
1348
|
"aria-hidden": "true"
|
|
1333
1349
|
}),
|
|
1334
1350
|
"Plugins",
|
|
1335
|
-
|
|
1351
|
+
R.length > 0 && /* @__PURE__ */ g("span", {
|
|
1336
1352
|
className: "text-sm font-normal text-text-secondary",
|
|
1337
1353
|
children: [
|
|
1338
1354
|
"(",
|
|
1339
|
-
|
|
1355
|
+
R.filter((e) => e.isCore).length,
|
|
1340
1356
|
" core,",
|
|
1341
1357
|
" ",
|
|
1342
|
-
|
|
1358
|
+
R.filter((e) => !e.isCore).length,
|
|
1343
1359
|
" external)"
|
|
1344
1360
|
]
|
|
1345
1361
|
})
|
|
1346
1362
|
]
|
|
1347
|
-
}), /* @__PURE__ */
|
|
1363
|
+
}), /* @__PURE__ */ h("button", {
|
|
1348
1364
|
type: "button",
|
|
1349
|
-
onClick:
|
|
1350
|
-
disabled:
|
|
1365
|
+
onClick: K,
|
|
1366
|
+
disabled: br,
|
|
1351
1367
|
className: "p-1.5 text-text-secondary hover:bg-bg-sunken rounded transition-colors disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus",
|
|
1352
|
-
"aria-label":
|
|
1353
|
-
title:
|
|
1354
|
-
children: /* @__PURE__ */
|
|
1355
|
-
className: `size-4 ${
|
|
1368
|
+
"aria-label": x("agentDetails.refreshPlugins", "Refresh plugins"),
|
|
1369
|
+
title: x("agentDetails.refreshPlugins", "Refresh plugins"),
|
|
1370
|
+
children: /* @__PURE__ */ h(f, {
|
|
1371
|
+
className: `size-4 ${br ? "animate-spin" : ""}`,
|
|
1356
1372
|
"aria-hidden": "true"
|
|
1357
1373
|
})
|
|
1358
1374
|
})]
|
|
1359
1375
|
}),
|
|
1360
|
-
/* @__PURE__ */
|
|
1361
|
-
value:
|
|
1362
|
-
onChange:
|
|
1363
|
-
placeholder:
|
|
1376
|
+
/* @__PURE__ */ h(ce, {
|
|
1377
|
+
value: U,
|
|
1378
|
+
onChange: Vr,
|
|
1379
|
+
placeholder: x("agentDetails.searchPluginsPlaceholder", "Search plugins by name, package, description, or tag...")
|
|
1364
1380
|
}),
|
|
1365
|
-
/* @__PURE__ */
|
|
1381
|
+
/* @__PURE__ */ h(en, {
|
|
1366
1382
|
items: te.map(({ id: e, label: t, count: n, icon: r }) => ({
|
|
1367
1383
|
id: e,
|
|
1368
1384
|
label: t,
|
|
1369
|
-
icon: /* @__PURE__ */
|
|
1385
|
+
icon: /* @__PURE__ */ h(r, {
|
|
1370
1386
|
className: "size-4",
|
|
1371
1387
|
"aria-hidden": "true"
|
|
1372
1388
|
}),
|
|
1373
1389
|
badge: n
|
|
1374
1390
|
})),
|
|
1375
|
-
activeTabId:
|
|
1376
|
-
onTabChange: (e) =>
|
|
1391
|
+
activeTabId: H,
|
|
1392
|
+
onTabChange: (e) => Br(e),
|
|
1377
1393
|
variant: "pills",
|
|
1378
1394
|
size: "sm",
|
|
1379
1395
|
className: "max-w-full overflow-x-auto"
|
|
1380
1396
|
})
|
|
1381
1397
|
]
|
|
1382
|
-
}), /* @__PURE__ */
|
|
1398
|
+
}), /* @__PURE__ */ g("div", {
|
|
1383
1399
|
className: "p-4 space-y-4",
|
|
1384
1400
|
children: [
|
|
1385
|
-
|
|
1401
|
+
Sr && /* @__PURE__ */ g("div", {
|
|
1386
1402
|
role: "alert",
|
|
1387
1403
|
className: "flex items-center gap-2 p-3 bg-status-error-bg-subtle border border-status-error-border text-status-error-text rounded-md text-sm",
|
|
1388
1404
|
children: [
|
|
1389
|
-
/* @__PURE__ */
|
|
1405
|
+
/* @__PURE__ */ h(Wt, {
|
|
1390
1406
|
className: "size-4 flex-shrink-0",
|
|
1391
1407
|
"aria-hidden": "true"
|
|
1392
1408
|
}),
|
|
1393
|
-
/* @__PURE__ */
|
|
1409
|
+
/* @__PURE__ */ h("span", {
|
|
1394
1410
|
className: "flex-1 min-w-0 break-words",
|
|
1395
|
-
children:
|
|
1411
|
+
children: Sr
|
|
1396
1412
|
}),
|
|
1397
|
-
/* @__PURE__ */
|
|
1413
|
+
/* @__PURE__ */ h("button", {
|
|
1398
1414
|
type: "button",
|
|
1399
|
-
onClick: () =>
|
|
1400
|
-
"aria-label":
|
|
1415
|
+
onClick: () => V(null),
|
|
1416
|
+
"aria-label": x("agentDetails.dismissError", "Dismiss error"),
|
|
1401
1417
|
className: "flex-shrink-0 p-0.5 hover:bg-status-error-border/40 rounded focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus",
|
|
1402
|
-
children: /* @__PURE__ */
|
|
1418
|
+
children: /* @__PURE__ */ h(Wt, {
|
|
1403
1419
|
className: "size-3.5",
|
|
1404
1420
|
"aria-hidden": "true"
|
|
1405
1421
|
})
|
|
1406
1422
|
})
|
|
1407
1423
|
]
|
|
1408
1424
|
}),
|
|
1409
|
-
!
|
|
1425
|
+
!O?.isActive && /* @__PURE__ */ g("p", {
|
|
1410
1426
|
role: "status",
|
|
1411
1427
|
className: "text-sm text-text-muted flex items-center gap-1.5",
|
|
1412
|
-
children: [/* @__PURE__ */
|
|
1428
|
+
children: [/* @__PURE__ */ h(kt, {
|
|
1413
1429
|
className: "size-4 flex-shrink-0",
|
|
1414
1430
|
"aria-hidden": "true"
|
|
1415
1431
|
}), "Agent is offline — showing known plugin catalog. Live data will load when the agent is reachable."]
|
|
1416
1432
|
}),
|
|
1417
|
-
|
|
1433
|
+
H === "installed" && /* @__PURE__ */ h(m, { children: n.length > 0 ? /* @__PURE__ */ h("div", {
|
|
1418
1434
|
className: "space-y-2",
|
|
1419
|
-
children: n.map((t) => /* @__PURE__ */
|
|
1435
|
+
children: n.map((t) => /* @__PURE__ */ g("div", {
|
|
1420
1436
|
className: "flex flex-col sm:flex-row sm:items-center justify-between gap-2 p-3 bg-bg-sunken rounded-lg",
|
|
1421
|
-
children: [/* @__PURE__ */
|
|
1437
|
+
children: [/* @__PURE__ */ g("div", {
|
|
1422
1438
|
className: "min-w-0",
|
|
1423
1439
|
children: [
|
|
1424
|
-
/* @__PURE__ */
|
|
1440
|
+
/* @__PURE__ */ g("p", {
|
|
1425
1441
|
className: "text-sm font-medium text-text-primary flex items-center gap-1.5 flex-wrap",
|
|
1426
1442
|
children: [
|
|
1427
1443
|
t.pluginName,
|
|
1428
|
-
/* @__PURE__ */
|
|
1444
|
+
/* @__PURE__ */ h("span", {
|
|
1429
1445
|
className: "text-xs text-text-muted font-normal",
|
|
1430
1446
|
children: t.version === "latest" ? t.version : `v${t.version}`
|
|
1431
1447
|
}),
|
|
1432
|
-
t.isCore && /* @__PURE__ */
|
|
1448
|
+
t.isCore && /* @__PURE__ */ h("span", {
|
|
1433
1449
|
className: "inline-flex items-center px-1.5 py-0.5 text-xs bg-bg-sunken text-text-secondary rounded",
|
|
1434
1450
|
children: "core"
|
|
1435
1451
|
}),
|
|
1436
|
-
t.loaded && /* @__PURE__ */
|
|
1452
|
+
t.loaded && /* @__PURE__ */ h("span", {
|
|
1437
1453
|
className: "inline-flex items-center px-1.5 py-0.5 text-xs bg-status-success-bg-subtle text-status-success-text rounded",
|
|
1438
1454
|
children: "loaded"
|
|
1439
1455
|
}),
|
|
1440
|
-
t.hasProviders && /* @__PURE__ */
|
|
1456
|
+
t.hasProviders && /* @__PURE__ */ h("span", {
|
|
1441
1457
|
className: "inline-flex items-center px-1.5 py-0.5 text-xs bg-bg-sunken text-text-secondary rounded",
|
|
1442
1458
|
children: "provider"
|
|
1443
1459
|
}),
|
|
1444
|
-
t.hasUI && /* @__PURE__ */
|
|
1460
|
+
t.hasUI && /* @__PURE__ */ h("span", {
|
|
1445
1461
|
className: "inline-flex items-center px-1.5 py-0.5 text-xs bg-bg-sunken text-text-secondary rounded",
|
|
1446
1462
|
children: "ui"
|
|
1447
1463
|
})
|
|
1448
1464
|
]
|
|
1449
1465
|
}),
|
|
1450
|
-
t.description && /* @__PURE__ */
|
|
1466
|
+
t.description && /* @__PURE__ */ h("p", {
|
|
1451
1467
|
className: "text-xs text-text-secondary mt-0.5",
|
|
1452
1468
|
children: t.description
|
|
1453
1469
|
}),
|
|
1454
|
-
/* @__PURE__ */
|
|
1470
|
+
/* @__PURE__ */ g("div", {
|
|
1455
1471
|
className: "flex items-center gap-2 mt-0.5 flex-wrap",
|
|
1456
1472
|
children: [
|
|
1457
|
-
!t.isCore && /* @__PURE__ */
|
|
1473
|
+
!t.isCore && /* @__PURE__ */ h("span", {
|
|
1458
1474
|
className: "text-xs text-text-muted font-mono",
|
|
1459
1475
|
children: t.packageName
|
|
1460
1476
|
}),
|
|
1461
|
-
t.cliCommand && /* @__PURE__ */
|
|
1477
|
+
t.cliCommand && /* @__PURE__ */ g("span", {
|
|
1462
1478
|
className: "text-xs text-text-muted",
|
|
1463
1479
|
children: [
|
|
1464
1480
|
"cli:",
|
|
1465
1481
|
" ",
|
|
1466
|
-
/* @__PURE__ */
|
|
1482
|
+
/* @__PURE__ */ g("code", {
|
|
1467
1483
|
className: "text-xs font-mono",
|
|
1468
1484
|
children: ["vibe ", t.cliCommand]
|
|
1469
1485
|
})
|
|
1470
1486
|
]
|
|
1471
1487
|
}),
|
|
1472
|
-
t.apiPrefix && /* @__PURE__ */
|
|
1488
|
+
t.apiPrefix && /* @__PURE__ */ g("span", {
|
|
1473
1489
|
className: "text-xs text-text-muted",
|
|
1474
1490
|
children: [
|
|
1475
1491
|
"api:",
|
|
1476
1492
|
" ",
|
|
1477
|
-
/* @__PURE__ */
|
|
1493
|
+
/* @__PURE__ */ h("code", {
|
|
1478
1494
|
className: "text-xs font-mono",
|
|
1479
1495
|
children: t.apiPrefix
|
|
1480
1496
|
})
|
|
@@ -1482,199 +1498,199 @@ function en() {
|
|
|
1482
1498
|
})
|
|
1483
1499
|
]
|
|
1484
1500
|
}),
|
|
1485
|
-
t.tags && t.tags.length > 0 && /* @__PURE__ */
|
|
1501
|
+
t.tags && t.tags.length > 0 && /* @__PURE__ */ h("div", {
|
|
1486
1502
|
className: "flex gap-1 mt-1 flex-wrap",
|
|
1487
|
-
children: t.tags.map((e) => /* @__PURE__ */
|
|
1503
|
+
children: t.tags.map((e) => /* @__PURE__ */ h("span", {
|
|
1488
1504
|
className: "inline-flex px-1.5 py-0.5 text-xs bg-bg-sunken text-text-muted rounded",
|
|
1489
1505
|
children: e
|
|
1490
1506
|
}, e))
|
|
1491
1507
|
})
|
|
1492
1508
|
]
|
|
1493
|
-
}), /* @__PURE__ */
|
|
1509
|
+
}), /* @__PURE__ */ g("div", {
|
|
1494
1510
|
className: "flex flex-wrap items-center gap-2 flex-shrink-0 sm:ml-3",
|
|
1495
1511
|
children: [
|
|
1496
|
-
t.hasUI && /* @__PURE__ */ _
|
|
1512
|
+
t.hasUI && /* @__PURE__ */ g(_, {
|
|
1497
1513
|
type: "button",
|
|
1498
1514
|
variant: "outline",
|
|
1499
1515
|
size: "sm",
|
|
1500
|
-
onClick: () =>
|
|
1516
|
+
onClick: () => Br("ui-plugins"),
|
|
1501
1517
|
title: `Open ${t.pluginName} UI`,
|
|
1502
|
-
children: [/* @__PURE__ */
|
|
1518
|
+
children: [/* @__PURE__ */ h(jt, {
|
|
1503
1519
|
className: "size-3",
|
|
1504
1520
|
"aria-hidden": "true"
|
|
1505
1521
|
}), "Open UI"]
|
|
1506
1522
|
}),
|
|
1507
|
-
!t.isCore && /* @__PURE__ */ _
|
|
1523
|
+
!t.isCore && /* @__PURE__ */ g(_, {
|
|
1508
1524
|
type: "button",
|
|
1509
1525
|
variant: "outline",
|
|
1510
1526
|
size: "sm",
|
|
1511
|
-
onClick: () =>
|
|
1512
|
-
disabled:
|
|
1513
|
-
title:
|
|
1514
|
-
children: [
|
|
1527
|
+
onClick: () => ri(t.packageName),
|
|
1528
|
+
disabled: z === t.packageName,
|
|
1529
|
+
title: x("agentDetails.updatePlugin", "Update plugin (latest or a specific version)"),
|
|
1530
|
+
children: [z === t.packageName ? /* @__PURE__ */ h(d, {
|
|
1515
1531
|
className: "size-3 animate-spin",
|
|
1516
1532
|
"aria-hidden": "true"
|
|
1517
|
-
}) : /* @__PURE__ */
|
|
1533
|
+
}) : /* @__PURE__ */ h(mt, {
|
|
1518
1534
|
className: "size-3",
|
|
1519
1535
|
"aria-hidden": "true"
|
|
1520
|
-
}),
|
|
1536
|
+
}), x("agentDetails.update", "Update")]
|
|
1521
1537
|
}),
|
|
1522
|
-
!t.isCore && /* @__PURE__ */
|
|
1538
|
+
!t.isCore && /* @__PURE__ */ h(v, {
|
|
1523
1539
|
permission: e.AGENT_UPDATE,
|
|
1524
1540
|
deniedBehavior: "hide",
|
|
1525
|
-
children: /* @__PURE__ */ _
|
|
1541
|
+
children: /* @__PURE__ */ g(_, {
|
|
1526
1542
|
type: "button",
|
|
1527
1543
|
variant: "outline",
|
|
1528
1544
|
size: "sm",
|
|
1529
|
-
onClick: () =>
|
|
1530
|
-
disabled:
|
|
1545
|
+
onClick: () => ti(t.packageName),
|
|
1546
|
+
disabled: z === t.packageName,
|
|
1531
1547
|
className: "text-status-error-text hover:bg-status-error-bg-subtle hover:text-status-error-text",
|
|
1532
|
-
children: [
|
|
1548
|
+
children: [z === t.packageName ? /* @__PURE__ */ h(d, {
|
|
1533
1549
|
className: "size-3 animate-spin",
|
|
1534
1550
|
"aria-hidden": "true"
|
|
1535
|
-
}) : /* @__PURE__ */
|
|
1551
|
+
}) : /* @__PURE__ */ h(Vt, {
|
|
1536
1552
|
className: "size-3",
|
|
1537
1553
|
"aria-hidden": "true"
|
|
1538
|
-
}),
|
|
1554
|
+
}), x("sessions.remove", "Remove")]
|
|
1539
1555
|
})
|
|
1540
1556
|
})
|
|
1541
1557
|
]
|
|
1542
1558
|
})]
|
|
1543
1559
|
}, t.packageName))
|
|
1544
|
-
}) : /* @__PURE__ */
|
|
1560
|
+
}) : /* @__PURE__ */ h("p", {
|
|
1545
1561
|
className: "text-sm text-text-muted",
|
|
1546
|
-
children:
|
|
1562
|
+
children: U ? "No installed plugins match your search." : "No plugin data available. Check agent connectivity or refresh."
|
|
1547
1563
|
}) }),
|
|
1548
|
-
|
|
1564
|
+
H === "available" && /* @__PURE__ */ h(m, { children: r.length > 0 ? /* @__PURE__ */ h("div", {
|
|
1549
1565
|
className: "space-y-2",
|
|
1550
|
-
children: r.map((e) => /* @__PURE__ */
|
|
1566
|
+
children: r.map((e) => /* @__PURE__ */ g("div", {
|
|
1551
1567
|
className: "flex flex-col sm:flex-row sm:items-center justify-between gap-2 p-3 bg-bg-sunken rounded-lg",
|
|
1552
|
-
children: [/* @__PURE__ */
|
|
1568
|
+
children: [/* @__PURE__ */ g("div", {
|
|
1553
1569
|
className: "min-w-0",
|
|
1554
1570
|
children: [
|
|
1555
|
-
/* @__PURE__ */
|
|
1571
|
+
/* @__PURE__ */ h("p", {
|
|
1556
1572
|
className: "text-sm font-medium text-text-primary",
|
|
1557
1573
|
children: e.name
|
|
1558
1574
|
}),
|
|
1559
|
-
/* @__PURE__ */
|
|
1575
|
+
/* @__PURE__ */ h("p", {
|
|
1560
1576
|
className: "text-xs text-text-secondary mt-0.5",
|
|
1561
1577
|
children: e.description
|
|
1562
1578
|
}),
|
|
1563
|
-
/* @__PURE__ */
|
|
1579
|
+
/* @__PURE__ */ h("p", {
|
|
1564
1580
|
className: "text-xs text-text-muted font-mono mt-0.5",
|
|
1565
1581
|
children: e.packageName
|
|
1566
1582
|
})
|
|
1567
1583
|
]
|
|
1568
|
-
}), /* @__PURE__ */ _
|
|
1584
|
+
}), /* @__PURE__ */ g(_, {
|
|
1569
1585
|
type: "button",
|
|
1570
1586
|
size: "sm",
|
|
1571
|
-
onClick: () =>
|
|
1572
|
-
disabled:
|
|
1587
|
+
onClick: () => ei(e.packageName),
|
|
1588
|
+
disabled: z === e.packageName,
|
|
1573
1589
|
className: "flex-shrink-0 sm:ml-3",
|
|
1574
|
-
children: [
|
|
1590
|
+
children: [z === e.packageName ? /* @__PURE__ */ h(d, {
|
|
1575
1591
|
className: "size-3 animate-spin",
|
|
1576
1592
|
"aria-hidden": "true"
|
|
1577
|
-
}) : /* @__PURE__ */
|
|
1593
|
+
}) : /* @__PURE__ */ h(Ct, {
|
|
1578
1594
|
className: "size-3",
|
|
1579
1595
|
"aria-hidden": "true"
|
|
1580
1596
|
}), "Install"]
|
|
1581
1597
|
})]
|
|
1582
1598
|
}, e.packageName))
|
|
1583
|
-
}) : /* @__PURE__ */
|
|
1599
|
+
}) : /* @__PURE__ */ h("p", {
|
|
1584
1600
|
className: "text-sm text-text-muted",
|
|
1585
|
-
children:
|
|
1601
|
+
children: U ? "No available plugins match your search." : vr.every((e) => e.installed) ? "All available plugins are already installed." : "No available plugins found."
|
|
1586
1602
|
}) }),
|
|
1587
|
-
|
|
1603
|
+
H === "store" && /* @__PURE__ */ g(m, { children: [W && /* @__PURE__ */ g("div", {
|
|
1588
1604
|
role: "alert",
|
|
1589
1605
|
className: "flex items-center gap-2 p-3 bg-status-error-bg-subtle border border-status-error-border text-status-error-text rounded-md text-sm",
|
|
1590
1606
|
children: [
|
|
1591
|
-
/* @__PURE__ */
|
|
1607
|
+
/* @__PURE__ */ h(Wt, {
|
|
1592
1608
|
className: "size-4 flex-shrink-0",
|
|
1593
1609
|
"aria-hidden": "true"
|
|
1594
1610
|
}),
|
|
1595
|
-
/* @__PURE__ */
|
|
1611
|
+
/* @__PURE__ */ h("span", {
|
|
1596
1612
|
className: "flex-1 min-w-0 break-words",
|
|
1597
|
-
children:
|
|
1613
|
+
children: W
|
|
1598
1614
|
}),
|
|
1599
|
-
/* @__PURE__ */
|
|
1615
|
+
/* @__PURE__ */ h(_, {
|
|
1600
1616
|
type: "button",
|
|
1601
1617
|
size: "sm",
|
|
1602
1618
|
variant: "secondary",
|
|
1603
1619
|
"data-testid": "store-plugins-retry",
|
|
1604
|
-
onClick: () => void
|
|
1605
|
-
disabled:
|
|
1606
|
-
children:
|
|
1620
|
+
onClick: () => void Y(),
|
|
1621
|
+
disabled: Wr,
|
|
1622
|
+
children: x("agentDetails.retry", "Retry")
|
|
1607
1623
|
})
|
|
1608
1624
|
]
|
|
1609
|
-
}),
|
|
1625
|
+
}), Wr ? /* @__PURE__ */ h("p", {
|
|
1610
1626
|
role: "status",
|
|
1611
1627
|
className: "text-sm text-text-muted",
|
|
1612
1628
|
children: "Loading purchased plugins…"
|
|
1613
|
-
}) :
|
|
1629
|
+
}) : Hr.length === 0 ? /* @__PURE__ */ g("div", {
|
|
1614
1630
|
className: "py-8 text-center",
|
|
1615
|
-
children: [/* @__PURE__ */
|
|
1631
|
+
children: [/* @__PURE__ */ h("p", {
|
|
1616
1632
|
className: "text-sm text-text-muted",
|
|
1617
1633
|
children: "No plugins purchased from the Burdenoff store yet."
|
|
1618
|
-
}), /* @__PURE__ */
|
|
1634
|
+
}), /* @__PURE__ */ h("a", {
|
|
1619
1635
|
href: "/store/marketplace",
|
|
1620
1636
|
className: "mt-2 inline-flex items-center gap-1 text-xs font-semibold text-text-link hover:underline",
|
|
1621
1637
|
children: "Browse the store →"
|
|
1622
1638
|
})]
|
|
1623
|
-
}) : /* @__PURE__ */
|
|
1639
|
+
}) : /* @__PURE__ */ h("div", {
|
|
1624
1640
|
className: "space-y-2",
|
|
1625
|
-
children:
|
|
1626
|
-
let t =
|
|
1627
|
-
return /* @__PURE__ */
|
|
1641
|
+
children: Hr.map((e) => {
|
|
1642
|
+
let t = Te(e.product?.manifest)?.packageName ?? null, n = R.some((e) => e.packageName === t);
|
|
1643
|
+
return /* @__PURE__ */ g("div", {
|
|
1628
1644
|
className: "flex flex-col sm:flex-row sm:items-center justify-between gap-2 p-3 bg-bg-sunken rounded-lg",
|
|
1629
|
-
children: [/* @__PURE__ */
|
|
1645
|
+
children: [/* @__PURE__ */ g("div", {
|
|
1630
1646
|
className: "flex items-start gap-3 min-w-0 flex-1",
|
|
1631
|
-
children: [
|
|
1632
|
-
src: e.product.
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1647
|
+
children: [/* @__PURE__ */ h(ve, {
|
|
1648
|
+
src: e.product ? ye(e.product) : null,
|
|
1649
|
+
className: "size-10 rounded-md object-cover flex-shrink-0",
|
|
1650
|
+
fallback: /* @__PURE__ */ h("div", {
|
|
1651
|
+
className: "size-10 flex-shrink-0 rounded-md bg-bg-sunken flex items-center justify-center",
|
|
1652
|
+
children: /* @__PURE__ */ h(Pt, {
|
|
1653
|
+
className: "size-5 text-text-muted",
|
|
1654
|
+
"aria-hidden": "true"
|
|
1655
|
+
})
|
|
1640
1656
|
})
|
|
1641
|
-
}), /* @__PURE__ */
|
|
1657
|
+
}), /* @__PURE__ */ g("div", {
|
|
1642
1658
|
className: "min-w-0 flex-1",
|
|
1643
1659
|
children: [
|
|
1644
|
-
/* @__PURE__ */
|
|
1660
|
+
/* @__PURE__ */ g("div", {
|
|
1645
1661
|
className: "flex items-center gap-2",
|
|
1646
|
-
children: [/* @__PURE__ */
|
|
1662
|
+
children: [/* @__PURE__ */ h("h4", {
|
|
1647
1663
|
className: "text-sm font-semibold text-text-primary truncate",
|
|
1648
1664
|
children: e.product?.name ?? "Unknown"
|
|
1649
|
-
}), e.licenseKey && /* @__PURE__ */
|
|
1665
|
+
}), e.licenseKey && /* @__PURE__ */ h("span", {
|
|
1650
1666
|
className: "text-xs bg-status-success-bg-subtle text-status-success-text px-1.5 py-0.5 rounded-full",
|
|
1651
1667
|
children: "Licensed"
|
|
1652
1668
|
})]
|
|
1653
1669
|
}),
|
|
1654
|
-
t && /* @__PURE__ */
|
|
1670
|
+
t && /* @__PURE__ */ h("p", {
|
|
1655
1671
|
className: "text-xs text-text-muted font-mono truncate",
|
|
1656
1672
|
children: t
|
|
1657
1673
|
}),
|
|
1658
|
-
e.product?.description && /* @__PURE__ */
|
|
1674
|
+
e.product?.description && /* @__PURE__ */ h("p", {
|
|
1659
1675
|
className: "text-xs text-text-secondary line-clamp-2 mt-1",
|
|
1660
1676
|
children: e.product.description
|
|
1661
1677
|
})
|
|
1662
1678
|
]
|
|
1663
1679
|
})]
|
|
1664
|
-
}), /* @__PURE__ */
|
|
1680
|
+
}), /* @__PURE__ */ h(_, {
|
|
1665
1681
|
type: "button",
|
|
1666
1682
|
size: "sm",
|
|
1667
|
-
onClick: () => void
|
|
1668
|
-
disabled: n ||
|
|
1669
|
-
"aria-busy":
|
|
1683
|
+
onClick: () => void ci(e.productId, e.licenseKey),
|
|
1684
|
+
disabled: n || G === e.productId || !t,
|
|
1685
|
+
"aria-busy": G === e.productId,
|
|
1670
1686
|
className: "flex-shrink-0",
|
|
1671
|
-
children: n ? "Installed" :
|
|
1687
|
+
children: n ? "Installed" : G === e.productId ? "Installing…" : "Install"
|
|
1672
1688
|
})]
|
|
1673
1689
|
}, e.id);
|
|
1674
1690
|
})
|
|
1675
1691
|
})] }),
|
|
1676
|
-
|
|
1677
|
-
availablePlugins: [...
|
|
1692
|
+
H === "ui-plugins" && /* @__PURE__ */ h(m, { children: i.length > 0 || O?.tunnelUrl ? /* @__PURE__ */ h(Ie, {
|
|
1693
|
+
availablePlugins: [...O?.tunnelUrl ? [{
|
|
1678
1694
|
pluginName: "code-server",
|
|
1679
1695
|
displayName: "Code Server (VS Code)",
|
|
1680
1696
|
description: "Browser-based VS Code editor",
|
|
@@ -1686,17 +1702,17 @@ function en() {
|
|
|
1686
1702
|
description: e.description,
|
|
1687
1703
|
version: e.version
|
|
1688
1704
|
}))],
|
|
1689
|
-
tunnelUrl:
|
|
1690
|
-
agentId:
|
|
1691
|
-
profile:
|
|
1692
|
-
}) : /* @__PURE__ */
|
|
1705
|
+
tunnelUrl: O?.tunnelUrl || null,
|
|
1706
|
+
agentId: O?.id ?? null,
|
|
1707
|
+
profile: N
|
|
1708
|
+
}) : /* @__PURE__ */ h("p", {
|
|
1693
1709
|
className: "text-sm text-text-muted",
|
|
1694
|
-
children:
|
|
1710
|
+
children: U ? "No UI plugins match your search." : "No plugins with UI are currently installed."
|
|
1695
1711
|
}) }),
|
|
1696
|
-
|
|
1712
|
+
br && R.length === 0 && /* @__PURE__ */ g("div", {
|
|
1697
1713
|
role: "status",
|
|
1698
1714
|
className: "flex items-center gap-2 text-sm text-text-secondary",
|
|
1699
|
-
children: [/* @__PURE__ */
|
|
1715
|
+
children: [/* @__PURE__ */ h(d, {
|
|
1700
1716
|
className: "size-4 animate-spin",
|
|
1701
1717
|
"aria-hidden": "true"
|
|
1702
1718
|
}), "Loading plugins..."]
|
|
@@ -1705,221 +1721,221 @@ function en() {
|
|
|
1705
1721
|
})] })
|
|
1706
1722
|
});
|
|
1707
1723
|
})(),
|
|
1708
|
-
|
|
1724
|
+
I === "sessions" && /* @__PURE__ */ g(a, { children: [/* @__PURE__ */ g("div", {
|
|
1709
1725
|
className: "p-4 border-b border-border-default flex items-center justify-between gap-3 flex-wrap",
|
|
1710
1726
|
children: [
|
|
1711
|
-
/* @__PURE__ */
|
|
1727
|
+
/* @__PURE__ */ g("h3", {
|
|
1712
1728
|
className: "font-semibold text-text-primary flex items-center gap-2",
|
|
1713
1729
|
children: [
|
|
1714
|
-
/* @__PURE__ */
|
|
1715
|
-
|
|
1730
|
+
/* @__PURE__ */ h(Bt, { className: "size-5" }),
|
|
1731
|
+
x("nav.sessions", "Sessions"),
|
|
1716
1732
|
" (",
|
|
1717
|
-
|
|
1733
|
+
q.length,
|
|
1718
1734
|
")"
|
|
1719
1735
|
]
|
|
1720
1736
|
}),
|
|
1721
|
-
/* @__PURE__ */
|
|
1737
|
+
/* @__PURE__ */ h("p", {
|
|
1722
1738
|
className: "order-last basis-full text-xs text-text-muted",
|
|
1723
1739
|
"data-testid": "sessions-staleness-note",
|
|
1724
|
-
children:
|
|
1740
|
+
children: x("agentDetails.sessionsNotRechecked", "Session statuses are not re-checked when this page opens. A session whose agent has gone away can still show as running until you use Check session health.")
|
|
1725
1741
|
}),
|
|
1726
|
-
/* @__PURE__ */
|
|
1742
|
+
/* @__PURE__ */ g("div", {
|
|
1727
1743
|
className: "flex items-center gap-2",
|
|
1728
|
-
children: [/* @__PURE__ */
|
|
1744
|
+
children: [/* @__PURE__ */ h(v, {
|
|
1729
1745
|
permission: e.SESSION_EXECUTE,
|
|
1730
1746
|
deniedBehavior: "disable",
|
|
1731
1747
|
deniedTooltip: "You don't have permission to check session health",
|
|
1732
|
-
children: /* @__PURE__ */ _
|
|
1748
|
+
children: /* @__PURE__ */ g(_, {
|
|
1733
1749
|
type: "button",
|
|
1734
1750
|
size: "sm",
|
|
1735
1751
|
variant: "secondary",
|
|
1736
1752
|
"data-testid": "check-session-health-btn",
|
|
1737
|
-
onClick: () =>
|
|
1738
|
-
disabled:
|
|
1739
|
-
"aria-busy":
|
|
1740
|
-
children: [/* @__PURE__ */
|
|
1753
|
+
onClick: () => vn(!0),
|
|
1754
|
+
disabled: S,
|
|
1755
|
+
"aria-busy": S,
|
|
1756
|
+
children: [/* @__PURE__ */ h(f, {
|
|
1741
1757
|
className: "size-4",
|
|
1742
1758
|
"aria-hidden": "true"
|
|
1743
|
-
}),
|
|
1759
|
+
}), x("agentDetails.checkSessionHealth", "Check session health")]
|
|
1744
1760
|
})
|
|
1745
|
-
}), /* @__PURE__ */
|
|
1761
|
+
}), /* @__PURE__ */ h(v, {
|
|
1746
1762
|
permission: e.SESSION_CREATE,
|
|
1747
1763
|
deniedBehavior: "disable",
|
|
1748
1764
|
deniedTooltip: "You don't have permission to create sessions",
|
|
1749
|
-
children: /* @__PURE__ */ _
|
|
1765
|
+
children: /* @__PURE__ */ g(_, {
|
|
1750
1766
|
type: "button",
|
|
1751
1767
|
size: "sm",
|
|
1752
1768
|
"data-testid": "create-session-btn",
|
|
1753
|
-
onClick:
|
|
1754
|
-
children: [/* @__PURE__ */
|
|
1769
|
+
onClick: Di,
|
|
1770
|
+
children: [/* @__PURE__ */ h(Nt, {
|
|
1755
1771
|
className: "size-4",
|
|
1756
1772
|
"aria-hidden": "true"
|
|
1757
|
-
}),
|
|
1773
|
+
}), x("sessions.createSession", "Create Session")]
|
|
1758
1774
|
})
|
|
1759
1775
|
})]
|
|
1760
1776
|
})
|
|
1761
1777
|
]
|
|
1762
|
-
}),
|
|
1778
|
+
}), q.length > 0 ? /* @__PURE__ */ h("div", {
|
|
1763
1779
|
className: "divide-y divide-border-default",
|
|
1764
|
-
children:
|
|
1780
|
+
children: q.map((e) => /* @__PURE__ */ g("div", {
|
|
1765
1781
|
role: "button",
|
|
1766
1782
|
tabIndex: 0,
|
|
1767
1783
|
onKeyDown: (t) => {
|
|
1768
|
-
t.target === t.currentTarget && (t.key === "Enter" || t.key === " ") && (t.preventDefault(),
|
|
1784
|
+
t.target === t.currentTarget && (t.key === "Enter" || t.key === " ") && (t.preventDefault(), Ei(e.id));
|
|
1769
1785
|
},
|
|
1770
|
-
onClick: () =>
|
|
1786
|
+
onClick: () => Ei(e.id),
|
|
1771
1787
|
className: "p-4 flex flex-col sm:flex-row items-start sm:items-center justify-between gap-2 cursor-pointer hover:bg-bg-sunken/50 transition-colors duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus focus-visible:ring-inset",
|
|
1772
|
-
children: [/* @__PURE__ */
|
|
1788
|
+
children: [/* @__PURE__ */ g("div", {
|
|
1773
1789
|
className: "flex items-center gap-3 min-w-0",
|
|
1774
|
-
children: [/* @__PURE__ */
|
|
1790
|
+
children: [/* @__PURE__ */ h(Bt, {
|
|
1775
1791
|
className: "size-5 text-text-secondary flex-shrink-0",
|
|
1776
1792
|
"aria-hidden": "true"
|
|
1777
|
-
}), /* @__PURE__ */
|
|
1793
|
+
}), /* @__PURE__ */ g("div", {
|
|
1778
1794
|
className: "min-w-0",
|
|
1779
|
-
children: [/* @__PURE__ */
|
|
1795
|
+
children: [/* @__PURE__ */ h("p", {
|
|
1780
1796
|
className: "font-medium text-text-primary truncate",
|
|
1781
1797
|
children: e.name
|
|
1782
|
-
}), /* @__PURE__ */
|
|
1798
|
+
}), /* @__PURE__ */ h("p", {
|
|
1783
1799
|
className: "text-sm text-text-secondary truncate",
|
|
1784
1800
|
children: e.type
|
|
1785
1801
|
})]
|
|
1786
1802
|
})]
|
|
1787
|
-
}), /* @__PURE__ */
|
|
1803
|
+
}), /* @__PURE__ */ h(le, { status: e.status })]
|
|
1788
1804
|
}, e.id))
|
|
1789
|
-
}) : /* @__PURE__ */
|
|
1805
|
+
}) : /* @__PURE__ */ g("div", {
|
|
1790
1806
|
className: "p-6 text-center text-text-secondary flex flex-col items-center gap-3",
|
|
1791
|
-
children: [/* @__PURE__ */
|
|
1807
|
+
children: [/* @__PURE__ */ h("span", { children: x("agentDetails.noSessionsOnAgent", "No sessions on this agent") }), /* @__PURE__ */ h(v, {
|
|
1792
1808
|
permission: e.SESSION_CREATE,
|
|
1793
1809
|
deniedBehavior: "disable",
|
|
1794
1810
|
deniedTooltip: "You don't have permission to create sessions",
|
|
1795
|
-
children: /* @__PURE__ */ _
|
|
1811
|
+
children: /* @__PURE__ */ g(_, {
|
|
1796
1812
|
type: "button",
|
|
1797
1813
|
size: "sm",
|
|
1798
1814
|
"data-testid": "create-session-empty-btn",
|
|
1799
|
-
onClick:
|
|
1800
|
-
children: [/* @__PURE__ */
|
|
1815
|
+
onClick: Di,
|
|
1816
|
+
children: [/* @__PURE__ */ h(Nt, {
|
|
1801
1817
|
className: "size-4",
|
|
1802
1818
|
"aria-hidden": "true"
|
|
1803
|
-
}),
|
|
1819
|
+
}), x("sessions.createSession", "Create Session")]
|
|
1804
1820
|
})
|
|
1805
1821
|
})]
|
|
1806
1822
|
})] }),
|
|
1807
|
-
|
|
1823
|
+
I === "connection" && /* @__PURE__ */ h(a, {
|
|
1808
1824
|
className: "min-h-[60vh]",
|
|
1809
|
-
children: /* @__PURE__ */
|
|
1810
|
-
agentId:
|
|
1811
|
-
agentName:
|
|
1825
|
+
children: /* @__PURE__ */ h(pe, {
|
|
1826
|
+
agentId: O.id,
|
|
1827
|
+
agentName: O.name
|
|
1812
1828
|
})
|
|
1813
1829
|
}),
|
|
1814
|
-
|
|
1830
|
+
I === "logs" && /* @__PURE__ */ g(a, { children: [/* @__PURE__ */ h("div", {
|
|
1815
1831
|
className: "p-4 border-b border-border-default flex items-center justify-between",
|
|
1816
|
-
children: /* @__PURE__ */
|
|
1832
|
+
children: /* @__PURE__ */ g("h3", {
|
|
1817
1833
|
className: "font-semibold text-text-primary flex items-center gap-2",
|
|
1818
|
-
children: [/* @__PURE__ */
|
|
1834
|
+
children: [/* @__PURE__ */ h(Ft, { className: "size-5" }), x("nav.logs", "Logs")]
|
|
1819
1835
|
})
|
|
1820
|
-
}), /* @__PURE__ */
|
|
1836
|
+
}), /* @__PURE__ */ h("div", {
|
|
1821
1837
|
className: "p-4",
|
|
1822
|
-
children: /* @__PURE__ */
|
|
1823
|
-
agentId:
|
|
1824
|
-
profile:
|
|
1838
|
+
children: /* @__PURE__ */ h(Re, {
|
|
1839
|
+
agentId: O.id,
|
|
1840
|
+
profile: N,
|
|
1825
1841
|
className: "min-h-[28rem]"
|
|
1826
1842
|
})
|
|
1827
1843
|
})] }),
|
|
1828
|
-
|
|
1844
|
+
I === "vibes" && /* @__PURE__ */ g(a, { children: [/* @__PURE__ */ h("div", {
|
|
1829
1845
|
className: "p-4 border-b border-border-default flex items-center justify-between",
|
|
1830
|
-
children: /* @__PURE__ */
|
|
1846
|
+
children: /* @__PURE__ */ g("h3", {
|
|
1831
1847
|
className: "font-semibold text-text-primary flex items-center gap-2",
|
|
1832
1848
|
children: [
|
|
1833
|
-
/* @__PURE__ */
|
|
1834
|
-
|
|
1849
|
+
/* @__PURE__ */ h(Gt, { className: "size-5" }),
|
|
1850
|
+
x("nav.vibes", "Vibes"),
|
|
1835
1851
|
" (",
|
|
1836
|
-
|
|
1852
|
+
J.length,
|
|
1837
1853
|
")"
|
|
1838
1854
|
]
|
|
1839
1855
|
})
|
|
1840
|
-
}),
|
|
1856
|
+
}), J.length > 0 ? /* @__PURE__ */ h("div", {
|
|
1841
1857
|
className: "divide-y divide-border-default",
|
|
1842
|
-
children:
|
|
1858
|
+
children: J.map((e) => /* @__PURE__ */ g("div", {
|
|
1843
1859
|
role: "button",
|
|
1844
1860
|
tabIndex: 0,
|
|
1845
1861
|
onKeyDown: (t) => {
|
|
1846
|
-
t.target === t.currentTarget && (t.key === "Enter" || t.key === " ") && (t.preventDefault(),
|
|
1862
|
+
t.target === t.currentTarget && (t.key === "Enter" || t.key === " ") && (t.preventDefault(), Oi(e.id));
|
|
1847
1863
|
},
|
|
1848
|
-
onClick: () =>
|
|
1864
|
+
onClick: () => Oi(e.id),
|
|
1849
1865
|
className: "p-4 flex flex-col sm:flex-row items-start sm:items-center justify-between gap-2 cursor-pointer hover:bg-bg-sunken/50 transition-colors duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus focus-visible:ring-inset",
|
|
1850
|
-
children: [/* @__PURE__ */
|
|
1866
|
+
children: [/* @__PURE__ */ g("div", {
|
|
1851
1867
|
className: "flex items-center gap-3 min-w-0",
|
|
1852
|
-
children: [/* @__PURE__ */
|
|
1868
|
+
children: [/* @__PURE__ */ h(Gt, {
|
|
1853
1869
|
className: "size-5 text-text-secondary flex-shrink-0",
|
|
1854
1870
|
"aria-hidden": "true"
|
|
1855
|
-
}), /* @__PURE__ */
|
|
1871
|
+
}), /* @__PURE__ */ g("div", {
|
|
1856
1872
|
className: "min-w-0",
|
|
1857
|
-
children: [/* @__PURE__ */
|
|
1873
|
+
children: [/* @__PURE__ */ h("p", {
|
|
1858
1874
|
className: "font-medium text-text-primary truncate",
|
|
1859
1875
|
children: e.name
|
|
1860
|
-
}), /* @__PURE__ */
|
|
1876
|
+
}), /* @__PURE__ */ h("p", {
|
|
1861
1877
|
className: "text-sm text-text-secondary truncate",
|
|
1862
1878
|
children: e.type
|
|
1863
1879
|
})]
|
|
1864
1880
|
})]
|
|
1865
|
-
}), /* @__PURE__ */
|
|
1881
|
+
}), /* @__PURE__ */ h(le, { status: e.status })]
|
|
1866
1882
|
}, e.id))
|
|
1867
|
-
}) : /* @__PURE__ */
|
|
1883
|
+
}) : /* @__PURE__ */ h("div", {
|
|
1868
1884
|
className: "p-6 text-center text-text-secondary",
|
|
1869
|
-
children:
|
|
1885
|
+
children: x("agentDetails.noVibesUsingAgent", "No vibes using this agent")
|
|
1870
1886
|
})] }),
|
|
1871
|
-
|
|
1887
|
+
I === "notes" && /* @__PURE__ */ h("div", {
|
|
1872
1888
|
className: "space-y-6",
|
|
1873
|
-
children: /* @__PURE__ */
|
|
1889
|
+
children: /* @__PURE__ */ h(Ge, {
|
|
1874
1890
|
context: "agent",
|
|
1875
|
-
agentVibes:
|
|
1891
|
+
agentVibes: J.map((e) => ({
|
|
1876
1892
|
id: e.id,
|
|
1877
1893
|
name: e.name
|
|
1878
1894
|
}))
|
|
1879
1895
|
})
|
|
1880
1896
|
}),
|
|
1881
|
-
|
|
1897
|
+
I === "aliases" && /* @__PURE__ */ h("div", {
|
|
1882
1898
|
className: "space-y-6",
|
|
1883
|
-
children: /* @__PURE__ */
|
|
1884
|
-
id:
|
|
1885
|
-
profile:
|
|
1899
|
+
children: /* @__PURE__ */ h(_e, { agent: {
|
|
1900
|
+
id: O.id,
|
|
1901
|
+
profile: O.metadata?.profile ?? "default"
|
|
1886
1902
|
} })
|
|
1887
1903
|
}),
|
|
1888
|
-
|
|
1889
|
-
agentId:
|
|
1890
|
-
profile:
|
|
1904
|
+
I === "backup" && O.tunnelUrl && /* @__PURE__ */ h(oe, {
|
|
1905
|
+
agentId: O.id,
|
|
1906
|
+
profile: N
|
|
1891
1907
|
}),
|
|
1892
|
-
|
|
1908
|
+
I === "backup" && !O.tunnelUrl && /* @__PURE__ */ g(a, {
|
|
1893
1909
|
className: "p-6 text-center text-text-secondary",
|
|
1894
1910
|
children: [
|
|
1895
|
-
/* @__PURE__ */
|
|
1911
|
+
/* @__PURE__ */ h(St, {
|
|
1896
1912
|
className: "size-8 mx-auto mb-2 text-text-muted",
|
|
1897
1913
|
"aria-hidden": "true"
|
|
1898
1914
|
}),
|
|
1899
|
-
/* @__PURE__ */
|
|
1900
|
-
/* @__PURE__ */
|
|
1915
|
+
/* @__PURE__ */ h("p", { children: x("agentDetails.backupRequiresTunnelAndApiKey", "Agent tunnel URL and API key are required for backup management.") }),
|
|
1916
|
+
/* @__PURE__ */ h("p", {
|
|
1901
1917
|
className: "text-sm mt-1",
|
|
1902
|
-
children:
|
|
1918
|
+
children: x("agentDetails.configureConnectionInOverview", "Configure the agent connection in the Overview tab.")
|
|
1903
1919
|
})
|
|
1904
1920
|
]
|
|
1905
1921
|
}),
|
|
1906
|
-
|
|
1907
|
-
agentId:
|
|
1908
|
-
agentVersion:
|
|
1909
|
-
onAfterDestructiveNuke:
|
|
1922
|
+
I === "maintenance" && /* @__PURE__ */ h(me, {
|
|
1923
|
+
agentId: O.id,
|
|
1924
|
+
agentVersion: O.version,
|
|
1925
|
+
onAfterDestructiveNuke: _i
|
|
1910
1926
|
}),
|
|
1911
|
-
|
|
1912
|
-
let e =
|
|
1913
|
-
return !e || !
|
|
1927
|
+
P && (() => {
|
|
1928
|
+
let e = F.data.find((e) => e.contribution.id === I);
|
|
1929
|
+
return !e || !O ? null : /* @__PURE__ */ h("div", {
|
|
1914
1930
|
className: "space-y-6",
|
|
1915
|
-
children: /* @__PURE__ */
|
|
1931
|
+
children: /* @__PURE__ */ h(a, { children: /* @__PURE__ */ h("div", {
|
|
1916
1932
|
className: "p-0 h-[70vh] max-h-[40rem] min-h-[20rem]",
|
|
1917
|
-
children: /* @__PURE__ */
|
|
1933
|
+
children: /* @__PURE__ */ h(Ze, {
|
|
1918
1934
|
contribution: e,
|
|
1919
1935
|
tunnel: e.tunnel,
|
|
1920
1936
|
restPaths: e.capabilities.restPaths.length > 0 ? e.capabilities.restPaths : [`/ui/${e.pluginKey}`],
|
|
1921
|
-
context: { agentId:
|
|
1922
|
-
agentId:
|
|
1937
|
+
context: { agentId: O.id },
|
|
1938
|
+
agentId: O.id,
|
|
1923
1939
|
profile: e.tunnel.profile,
|
|
1924
1940
|
theme: {
|
|
1925
1941
|
colorMode: "light",
|
|
@@ -1934,180 +1950,180 @@ function en() {
|
|
|
1934
1950
|
})()
|
|
1935
1951
|
]
|
|
1936
1952
|
}),
|
|
1937
|
-
|
|
1938
|
-
isOpen:
|
|
1939
|
-
onClose: () =>
|
|
1953
|
+
P && O && /* @__PURE__ */ h(Xe, {
|
|
1954
|
+
isOpen: dr,
|
|
1955
|
+
onClose: () => fr(!1),
|
|
1940
1956
|
mountPoint: "agent.detailTab",
|
|
1941
|
-
agentId:
|
|
1942
|
-
profile:
|
|
1957
|
+
agentId: O.id,
|
|
1958
|
+
profile: N ?? "default",
|
|
1943
1959
|
onInstalled: () => {
|
|
1944
|
-
|
|
1960
|
+
F.refetch();
|
|
1945
1961
|
}
|
|
1946
1962
|
}),
|
|
1947
|
-
/* @__PURE__ */
|
|
1948
|
-
isOpen:
|
|
1963
|
+
/* @__PURE__ */ h(je, {
|
|
1964
|
+
isOpen: bn,
|
|
1949
1965
|
onClose: () => {
|
|
1950
|
-
|
|
1966
|
+
hn || xn(!1);
|
|
1951
1967
|
},
|
|
1952
|
-
onConfirm: () => void
|
|
1953
|
-
agentName:
|
|
1954
|
-
isLoading:
|
|
1968
|
+
onConfirm: () => void gr(),
|
|
1969
|
+
agentName: O.name,
|
|
1970
|
+
isLoading: hn
|
|
1955
1971
|
}),
|
|
1956
|
-
/* @__PURE__ */
|
|
1957
|
-
isOpen:
|
|
1972
|
+
/* @__PURE__ */ h(Pe, {
|
|
1973
|
+
isOpen: _n,
|
|
1958
1974
|
onClose: () => {
|
|
1959
|
-
|
|
1975
|
+
S || vn(!1);
|
|
1960
1976
|
},
|
|
1961
|
-
onConfirm: () => void
|
|
1962
|
-
isLoading:
|
|
1977
|
+
onConfirm: () => void hr(),
|
|
1978
|
+
isLoading: S
|
|
1963
1979
|
}),
|
|
1964
|
-
/* @__PURE__ */
|
|
1980
|
+
/* @__PURE__ */ h(i, {
|
|
1965
1981
|
isOpen: Z !== void 0 && Q !== null,
|
|
1966
1982
|
onClose: () => {
|
|
1967
|
-
|
|
1983
|
+
G || X(null);
|
|
1968
1984
|
},
|
|
1969
1985
|
onConfirm: () => {
|
|
1970
1986
|
let e = Z;
|
|
1971
|
-
e &&
|
|
1987
|
+
e && ci(e.productId, e.licenseKey).finally(() => X(null));
|
|
1972
1988
|
},
|
|
1973
|
-
title:
|
|
1974
|
-
message:
|
|
1989
|
+
title: x("agentDetails.confirmStoreInstallTitle", "Install plugin on this agent?"),
|
|
1990
|
+
message: x("agentDetails.confirmStoreInstallMessage", "A link asked to install \"{{product}}\" on \"{{name}}\". It is one of your purchased store plugins. Installing downloads the npm package \"{{source}}\" onto the agent and runs its code there. Nothing has been installed yet.", {
|
|
1975
1991
|
product: Z?.product?.name ?? Z?.productId ?? "",
|
|
1976
|
-
name:
|
|
1977
|
-
source: Q ?
|
|
1992
|
+
name: O.name,
|
|
1993
|
+
source: Q ? we(Q) : ""
|
|
1978
1994
|
}),
|
|
1979
|
-
confirmLabel:
|
|
1995
|
+
confirmLabel: x("agentDetails.confirmStoreInstallConfirm", "Install"),
|
|
1980
1996
|
variant: "warning",
|
|
1981
|
-
isLoading:
|
|
1997
|
+
isLoading: G !== null
|
|
1982
1998
|
}),
|
|
1983
|
-
/* @__PURE__ */
|
|
1999
|
+
/* @__PURE__ */ h(Ne, {
|
|
1984
2000
|
agent: {
|
|
1985
|
-
id:
|
|
1986
|
-
name:
|
|
1987
|
-
platform:
|
|
1988
|
-
architecture:
|
|
1989
|
-
version:
|
|
1990
|
-
tunnelUrl:
|
|
1991
|
-
aiContext:
|
|
1992
|
-
metadata:
|
|
2001
|
+
id: O.id,
|
|
2002
|
+
name: O.name,
|
|
2003
|
+
platform: O.platform,
|
|
2004
|
+
architecture: O.architecture,
|
|
2005
|
+
version: O.version,
|
|
2006
|
+
tunnelUrl: O.tunnelUrl,
|
|
2007
|
+
aiContext: O.aiContext,
|
|
2008
|
+
metadata: O.metadata
|
|
1993
2009
|
},
|
|
1994
|
-
isOpen:
|
|
1995
|
-
onClose: () =>
|
|
1996
|
-
onSaved: () => o.success(
|
|
2010
|
+
isOpen: kn,
|
|
2011
|
+
onClose: () => An(!1),
|
|
2012
|
+
onSaved: () => o.success(x("agentDetails.configurationUpdated", "Agent configuration updated successfully"))
|
|
1997
2013
|
}),
|
|
1998
|
-
/* @__PURE__ */
|
|
1999
|
-
agentId:
|
|
2000
|
-
agentName:
|
|
2001
|
-
probe:
|
|
2002
|
-
isOpen:
|
|
2003
|
-
onClose: () =>
|
|
2004
|
-
onCreated: () => o.success(
|
|
2014
|
+
/* @__PURE__ */ h(Fe, {
|
|
2015
|
+
agentId: O.id,
|
|
2016
|
+
agentName: O.name,
|
|
2017
|
+
probe: j.get(O.id),
|
|
2018
|
+
isOpen: tr,
|
|
2019
|
+
onClose: () => nr(!1),
|
|
2020
|
+
onCreated: () => o.success(x("sessions.createdSuccess", "Session created successfully")),
|
|
2005
2021
|
onQuotaExhausted: () => {
|
|
2006
|
-
|
|
2022
|
+
nr(!1), Je(), Rr("session"), Ir(!0);
|
|
2007
2023
|
}
|
|
2008
2024
|
}),
|
|
2009
|
-
/* @__PURE__ */
|
|
2010
|
-
isOpen:
|
|
2011
|
-
onClose: () =>
|
|
2025
|
+
/* @__PURE__ */ h(i, {
|
|
2026
|
+
isOpen: Cr !== null,
|
|
2027
|
+
onClose: () => wr(null),
|
|
2012
2028
|
onConfirm: () => {
|
|
2013
|
-
let e =
|
|
2014
|
-
|
|
2029
|
+
let e = Cr;
|
|
2030
|
+
wr(null), e && ni(e);
|
|
2015
2031
|
},
|
|
2016
|
-
title:
|
|
2017
|
-
message:
|
|
2018
|
-
confirmLabel:
|
|
2032
|
+
title: x("agentDetails.removePluginTitle", "Remove plugin"),
|
|
2033
|
+
message: x("agentDetails.removePluginConfirm", "Remove plugin {{packageName}}?", { packageName: Cr ?? "" }),
|
|
2034
|
+
confirmLabel: x("sessions.remove", "Remove"),
|
|
2019
2035
|
variant: "danger"
|
|
2020
2036
|
}),
|
|
2021
|
-
/* @__PURE__ */
|
|
2022
|
-
isOpen:
|
|
2023
|
-
onClose: () =>
|
|
2037
|
+
/* @__PURE__ */ h(fe, {
|
|
2038
|
+
isOpen: Tr !== null,
|
|
2039
|
+
onClose: () => Er(null),
|
|
2024
2040
|
onSubmit: (e) => {
|
|
2025
|
-
let t =
|
|
2026
|
-
|
|
2041
|
+
let t = Tr;
|
|
2042
|
+
Er(null), t && ii(t, e || void 0);
|
|
2027
2043
|
},
|
|
2028
|
-
title:
|
|
2029
|
-
description:
|
|
2030
|
-
label:
|
|
2031
|
-
placeholder:
|
|
2032
|
-
confirmLabel:
|
|
2044
|
+
title: x("agentDetails.updatePluginTitle", "Update plugin"),
|
|
2045
|
+
description: x("agentDetails.updatePluginPrompt", "Update {{packageName}} to which version? Leave blank for latest.", { packageName: Tr ?? "" }),
|
|
2046
|
+
label: x("agentDetails.updatePluginVersionLabel", "Version"),
|
|
2047
|
+
placeholder: x("agentDetails.updatePluginVersionPlaceholder", "latest"),
|
|
2048
|
+
confirmLabel: x("agentDetails.update", "Update")
|
|
2033
2049
|
}),
|
|
2034
|
-
/* @__PURE__ */
|
|
2035
|
-
isOpen:
|
|
2036
|
-
onClose: () =>
|
|
2050
|
+
/* @__PURE__ */ h(ee, {
|
|
2051
|
+
isOpen: Fr,
|
|
2052
|
+
onClose: () => Ir(!1),
|
|
2037
2053
|
onConfirm: () => {
|
|
2038
|
-
|
|
2054
|
+
Ir(!1), b(Be);
|
|
2039
2055
|
},
|
|
2040
|
-
title:
|
|
2041
|
-
message:
|
|
2056
|
+
title: Ke(Lr).title,
|
|
2057
|
+
message: Ke(Lr).message
|
|
2042
2058
|
}),
|
|
2043
|
-
/* @__PURE__ */
|
|
2044
|
-
isOpen:
|
|
2059
|
+
/* @__PURE__ */ h(i, {
|
|
2060
|
+
isOpen: Dr,
|
|
2045
2061
|
onClose: () => {
|
|
2046
|
-
|
|
2062
|
+
Nr || Or(!1);
|
|
2047
2063
|
},
|
|
2048
|
-
onConfirm:
|
|
2049
|
-
title:
|
|
2050
|
-
message:
|
|
2051
|
-
confirmLabel:
|
|
2064
|
+
onConfirm: Ti,
|
|
2065
|
+
title: x("agentDetails.removeAgentTitle", "Remove agent"),
|
|
2066
|
+
message: x("agentDetails.removeAgentMessage", "Remove “{{name}}” from this workspace.", { name: O.name }),
|
|
2067
|
+
confirmLabel: x("sessions.remove", "Remove"),
|
|
2052
2068
|
variant: "danger",
|
|
2053
|
-
isLoading:
|
|
2054
|
-
children: /* @__PURE__ */
|
|
2069
|
+
isLoading: Nr,
|
|
2070
|
+
children: /* @__PURE__ */ g("div", {
|
|
2055
2071
|
className: "space-y-2",
|
|
2056
|
-
children: [/* @__PURE__ */
|
|
2072
|
+
children: [/* @__PURE__ */ g("label", {
|
|
2057
2073
|
className: "flex items-start gap-3 p-3 rounded-md bg-bg-sunken border border-border-default cursor-pointer",
|
|
2058
|
-
children: [/* @__PURE__ */
|
|
2059
|
-
checked:
|
|
2060
|
-
disabled:
|
|
2061
|
-
onCheckedChange: (e) =>
|
|
2074
|
+
children: [/* @__PURE__ */ h(Xt, {
|
|
2075
|
+
checked: kr,
|
|
2076
|
+
disabled: Nr,
|
|
2077
|
+
onCheckedChange: (e) => Ar(e === !0),
|
|
2062
2078
|
className: "mt-0.5"
|
|
2063
|
-
}), /* @__PURE__ */
|
|
2079
|
+
}), /* @__PURE__ */ g("span", {
|
|
2064
2080
|
className: "min-w-0",
|
|
2065
|
-
children: [/* @__PURE__ */
|
|
2081
|
+
children: [/* @__PURE__ */ h("span", {
|
|
2066
2082
|
className: "block text-sm font-medium text-text-primary",
|
|
2067
|
-
children:
|
|
2068
|
-
}), /* @__PURE__ */
|
|
2083
|
+
children: x("agentDetails.uninstallFromTarget", "Uninstall agent from the target")
|
|
2084
|
+
}), /* @__PURE__ */ h("span", {
|
|
2069
2085
|
className: "block text-xs text-text-secondary mt-0.5",
|
|
2070
|
-
children:
|
|
2086
|
+
children: x("agentDetails.uninstallFromTargetDesc", "Also wipe all agent state + VibeControls plugins and uninstall the agent from the host machine. This cannot be undone.")
|
|
2071
2087
|
})]
|
|
2072
2088
|
})]
|
|
2073
|
-
}), /* @__PURE__ */
|
|
2089
|
+
}), /* @__PURE__ */ g("label", {
|
|
2074
2090
|
className: "flex items-start gap-3 p-3 rounded-md bg-bg-sunken border border-border-default cursor-pointer",
|
|
2075
|
-
children: [/* @__PURE__ */
|
|
2076
|
-
checked:
|
|
2077
|
-
disabled:
|
|
2078
|
-
onCheckedChange: (e) =>
|
|
2091
|
+
children: [/* @__PURE__ */ h(Xt, {
|
|
2092
|
+
checked: jr,
|
|
2093
|
+
disabled: Nr,
|
|
2094
|
+
onCheckedChange: (e) => Mr(e === !0),
|
|
2079
2095
|
className: "mt-0.5"
|
|
2080
|
-
}), /* @__PURE__ */
|
|
2096
|
+
}), /* @__PURE__ */ g("span", {
|
|
2081
2097
|
className: "min-w-0",
|
|
2082
|
-
children: [/* @__PURE__ */
|
|
2098
|
+
children: [/* @__PURE__ */ h("span", {
|
|
2083
2099
|
className: "block text-sm font-medium text-text-primary",
|
|
2084
|
-
children:
|
|
2085
|
-
}), /* @__PURE__ */
|
|
2100
|
+
children: x("agentDetails.deleteTarget", "Delete the mapped target")
|
|
2101
|
+
}), /* @__PURE__ */ h("span", {
|
|
2086
2102
|
className: "block text-xs text-text-secondary mt-0.5",
|
|
2087
|
-
children:
|
|
2103
|
+
children: x("agentDetails.deleteTargetDesc", "Also delete the target this agent is mapped to. Any other agents on the same target are removed too. This cannot be undone.")
|
|
2088
2104
|
})]
|
|
2089
2105
|
})]
|
|
2090
2106
|
})]
|
|
2091
2107
|
})
|
|
2092
2108
|
}),
|
|
2093
|
-
/* @__PURE__ */
|
|
2094
|
-
isOpen:
|
|
2109
|
+
/* @__PURE__ */ h(i, {
|
|
2110
|
+
isOpen: Yn,
|
|
2095
2111
|
onClose: () => {
|
|
2096
|
-
|
|
2112
|
+
Zn || Xn(!1);
|
|
2097
2113
|
},
|
|
2098
|
-
onConfirm:
|
|
2099
|
-
title:
|
|
2100
|
-
message:
|
|
2101
|
-
confirmLabel:
|
|
2114
|
+
onConfirm: Ci,
|
|
2115
|
+
title: x("agentDetails.rotateApiKeyTitle", "Rotate agent API key"),
|
|
2116
|
+
message: x("agentDetails.rotateApiKeyMessage", "Mint a new API key for “{{name}}” and push it to the agent. The current key stops working immediately — update any scripts or CLI configs that use it.", { name: O.name }),
|
|
2117
|
+
confirmLabel: x("agentDetails.rotateApiKey", "Rotate API key"),
|
|
2102
2118
|
variant: "danger",
|
|
2103
|
-
isLoading:
|
|
2104
|
-
children:
|
|
2119
|
+
isLoading: Zn,
|
|
2120
|
+
children: $n ? /* @__PURE__ */ h("p", {
|
|
2105
2121
|
className: "text-sm text-status-danger-text",
|
|
2106
2122
|
role: "alert",
|
|
2107
|
-
children:
|
|
2123
|
+
children: $n
|
|
2108
2124
|
}) : null
|
|
2109
2125
|
})
|
|
2110
2126
|
]
|
|
2111
2127
|
});
|
|
2112
2128
|
}
|
|
2113
|
-
export {
|
|
2129
|
+
export { y as AgentDetailsPage };
|