@burdenoff/microfe-vibecontrols 2026.1112.2 → 2026.1113.1

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 ve } from "../shared/hooks/useTr.js";
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 ye } from "../utils/agentStatus.js";
28
- import { shouldOfferGatewayAuthRepair as be } from "../utils/agentGatewayRecovery.js";
29
- import { formatStoreInstallSource as xe, storeInstallSource as Se } from "../utils/storeInstallSource.js";
30
- import { AgentStatusBadge as Ce } from "../components/agents/AgentStatusBadge.js";
31
- import { RemoteTaskPermissionsCard as we } from "../components/agents/RemoteTaskPermissionsCard.js";
32
- import { AgentVisibilityCard as Te } from "../components/agents/AgentVisibilityCard.js";
33
- import { useRepairGatewayAuth as Ee } from "../hooks/useRepairGatewayAuth.js";
34
- import { OneTimeSecretPanel as De } from "../components/agents/OneTimeSecretPanel.js";
35
- import { RepairGatewayAuthDialog as Oe } from "../components/agents/RepairGatewayAuthDialog.js";
36
- import { GatewayAuthCard as ke } from "../components/agents/GatewayAuthCard.js";
37
- import { ConfigureAgentDialog as Ae } from "../components/agents/ConfigureAgentDialog.js";
38
- import { CheckSessionHealthDialog as je } from "../components/agents/CheckSessionHealthDialog.js";
39
- import { CreateSessionDialog as Me } from "../components/agents/CreateSessionDialog.js";
40
- import { PluginUIPanel as Ne } from "../components/agents/PluginUIPanel.js";
41
- import { OpenInBrowserEditorButton as Pe } from "../components/agents/OpenInBrowserEditorButton.js";
42
- import { LogViewer as Fe } from "../components/logs/LogViewer.js";
43
- import { useActiveAgentProfile as Ie } from "../hooks/useActiveAgentProfile.js";
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 Le, useVibeControls as Re, useVibeNavigate as ze } from "../providers/VibeControlsProvider.js";
47
- import { ProfilesPanel as Be } from "../components/agent-manager/ProfilesPanel.js";
48
- import { useQueryBackedTab as Ve } from "../hooks/useQueryBackedTab.js";
49
- import { NotesTabPanel as He } from "../components/notes/NotesTabPanel.js";
50
- import { getQuotaDialogContent as Ue, isQuotaExhaustedError as We, markQuotaHandledLocally as Ge } from "../utils/quotaUtils.js";
51
- import { mintScopedIframeToken as Ke } from "../services/iframeToken.js";
52
- import { AddTabDialog as qe } from "../components/plugins/AddTabDialog.js";
53
- import { PluginIframeMount as Je } from "../components/plugins/PluginIframeMount.js";
54
- import { useAgentPluginsLazyQuery as Ye, useAgentSecretRevealLazyQuery as Xe, useCheckSessionHealthMutation as Ze, useDeleteAgentMutation as Qe, useGetAgentQuery as $e, useInstallAgentPluginMutation as et, useRemoveAgentPluginMutation as tt, useRotateAgentApiKeyMutation as nt, useStartVibecontrolsAgentMutation as rt, useStopVibecontrolsAgentMutation as it, useUpdateAgentMutation as at, useUpdateAgentPluginMutation as ot, useVibecontrolsAgentHealthProbeStreamSubscription as st, useVibecontrolsAgentHealthProbesQuery as ct } from "../generated/wspace-operations.js";
55
- import { useCallback as s, useEffect as c, useMemo as lt, useRef as l, useState as u } from "react";
56
- import { ArrowLeft as ut, ArrowUpCircle as dt, Bot as ft, Check as pt, CheckCircle2 as mt, Clock as ht, Command as gt, Copy as _t, Cpu as vt, Database as yt, Download as bt, Edit3 as xt, Eye as St, EyeOff as Ct, FileText as wt, HardDrive as Tt, Info as Et, Key as Dt, Loader2 as d, Monitor as Ot, Play as kt, Plus as At, Puzzle as jt, RefreshCw as f, ScrollText as Mt, Server as p, Settings as Nt, Shield as Pt, Square as Ft, Tag as It, Terminal as Lt, Trash2 as Rt, Users as zt, Wrench as Bt, X as Vt, Zap as m } from "lucide-react";
57
- import { useParams as Ht, useSearchParams as Ut } from "react-router";
58
- import { NetworkStatus as Wt } from "@apollo/client";
59
- import { usePermissions as Gt } from "@burdenoff/fe-libs/shared/providers/shell";
60
- import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
61
- import { Button as v, Checkbox as Kt, NextSteps as qt, PagePurpose as Jt } from "@burdenoff/fe-libs/ui";
62
- import { PermissionButton as y } from "@burdenoff/fe-libs/shared/components";
63
- import { useFeatureFlagDetails as Yt } from "@burdenoff/fe-libs/shared/feature-flags";
64
- import { Tabs as Xt } from "@burdenoff/fe-libs/chrome";
65
- import { MotionPage as Zt } from "@burdenoff/fe-libs/shared/motion";
66
- import { usePluginContributions as Qt } from "@burdenoff/fe-libs/shared/plugins";
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 $t = [
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 b() {
83
- let { id: e } = Ht();
84
- return /* @__PURE__ */ g(en, {}, e);
84
+ function y() {
85
+ let { id: e } = Kt();
86
+ return /* @__PURE__ */ h(an, {}, e);
85
87
  }
86
- function en() {
87
- let { id: b } = Ht(), { basePath: en, currentUser: tn } = Re(), nn = en || "", x = ze(), { hasPermission: rn, isLoading: an, permissions: on } = Gt(), S = ve(), [sn] = at({ refetchQueries: ["GetAgent"] }), [cn] = Qe({
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
- }), [ln] = Ze({ refetchQueries: ["GetAgent"] }), { repair: un, running: C, rotationEpoch: dn } = Ee(b), [fn, pn] = u(!1), [mn, hn] = u(!1), [gn, _n] = u(!1), [vn, yn] = u(null), bn = vn && vn.epoch === dn ? vn : null, [xn] = rt(), [Sn] = it(), [w, Cn] = u(null), wn = re((e) => e.setActiveAgentId);
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
- b && wn(b);
100
- }, [b, wn]);
101
- let [Tn, En] = u(!1), [Dn, On] = u(!1), [kn, An] = u(""), [T, jn] = u(!1), [Mn, Nn] = u(null), Pn = l(null), [E, Fn] = u(!1), [In, Ln] = u(!1), [D, Rn] = u(null), [zn, Bn] = u(!1), [Vn, Hn] = u(null), [Un] = Xe({ fetchPolicy: "network-only" }), [Wn] = nt(), [Gn, Kn] = u(!1), [qn, Jn] = u(!1), [Yn, Xn] = u(null), [Zn, Qn] = u(!1), { data: $n, loading: er, error: tr, refetch: O } = $e({
102
- variables: { id: b || "" },
103
- skip: !b,
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
- }), k = $n?.vibecontrolsAgent, A = ct({
107
+ }), O = rr?.vibecontrolsAgent, k = dt({
106
108
  fetchPolicy: "cache-and-network",
107
109
  nextFetchPolicy: "cache-first",
108
110
  notifyOnNetworkStatusChange: !0,
109
- skip: !b,
111
+ skip: !y,
110
112
  pollInterval: 3e4
111
- }), { data: j } = st({ skip: !b }), nr = A.data === void 0 && j === void 0, rr = !nr && (j !== void 0 || A.networkStatus === Wt.ready && !A.error), M = lt(() => {
112
- let e = /* @__PURE__ */ new Map(), t = j?.vibecontrolsAgentHealthProbeStream ?? A.data?.vibecontrolsAgentHealthProbes ?? [];
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
- }, [A.data, j]), N = lt(() => k ? ye({
120
- id: k.id,
121
- isActive: k.isActive,
122
- metadata: k.metadata
123
- }, M, { probesLoading: nr }) : "REGISTERING", [
124
- k,
125
- M,
126
- nr
127
- ]), ir = N === "STOPPED" || N === "OFFLINE", { active: P } = Ie(k?.id ?? null), F = Yt("vibes.tabs.iframe-host")?.value === !0, ar = lt(() => {
128
- if (!F || !k?.tunnelUrl) return [];
129
- let e = k.id, t = P ?? "default";
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: k.tunnelUrl,
133
+ tunnelUrl: O.tunnelUrl,
132
134
  profile: t,
133
- label: k.name ?? k.id,
134
- mintIframeToken: async ({ pathPrefixes: n }) => Ke(e, t, n)
135
+ label: O.name ?? O.id,
136
+ mintIframeToken: async ({ pathPrefixes: n }) => Ye(e, t, n)
135
137
  }];
136
138
  }, [
137
- F,
138
- k?.id,
139
- k?.tunnelUrl,
140
- k?.name,
141
- P
142
- ]), I = Qt(ar, {
139
+ P,
140
+ O?.id,
141
+ O?.tunnelUrl,
142
+ O?.name,
143
+ N
144
+ ]), F = nn(lr, {
143
145
  mountPoint: "agent.detailTab",
144
- enabled: F && ar.length > 0
145
- }), or = lt(() => {
146
- let e = I.data.filter((e) => e.contribution.mountPoint === "agent.detailTab").map((e) => e.contribution.id);
147
- return [...$t, ...e];
148
- }, [I.data]), [L, R] = Ve(or, "overview"), [sr, cr] = u(!1), lr = [j?.vibecontrolsAgentHealthProbeStream, A.data?.vibecontrolsAgentHealthProbes].filter((e) => e != null), ur = k !== void 0 && lr.length > 0 && lr.every((e) => be({
149
- agent: k,
150
- probe: e.find((e) => e.agentId === k.id),
151
- probesReady: rr
152
- })), dr = async () => {
153
- hn(!0);
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 ln(), t = e.data?.checkSessionHealth;
157
+ let e = await pn(), t = e.data?.checkSessionHealth;
156
158
  if (e.error || !t) {
157
- o.error(e.error?.message || S("agentDetails.checkSessionHealthFailed", "Session health check failed"));
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(S("agentDetails.checkSessionHealthPartial", "Checked {{checked}} sessions, {{updated}} marked stopped, but {{problems}} reported a problem", {
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(S("agentDetails.checkSessionHealthDone", "Checked {{checked}} sessions, {{updated}} marked stopped", n));
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 : S("agentDetails.checkSessionHealthFailed", "Session health check failed"));
171
+ o.error(e instanceof Error ? e.message : x("agentDetails.checkSessionHealthFailed", "Session health check failed"));
170
172
  } finally {
171
- hn(!1), pn(!1);
173
+ yn(!1), vn(!1);
172
174
  }
173
- }, fr = async () => {
175
+ }, gr = async () => {
174
176
  try {
175
- let e = await un();
177
+ let e = await mn();
176
178
  if (e.status === "busy") {
177
- o.warning(S("agentDetails.repairAlreadyRunning", "A repair for this agent is already running. Wait for it to finish."));
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 || S("agentDetails.repairGatewayAuthFailed", "Gateway auth repair failed"));
183
+ o.error(e.message || x("agentDetails.repairGatewayAuthFailed", "Gateway auth repair failed"));
182
184
  return;
183
185
  }
184
- e.status === "unchanged" ? o.info(S("agentDetails.repairUnchanged", "Nothing was changed: a credential push for this agent is already in progress or has just completed.")) : e.status === "delivery-failed" ? (yn({
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(S("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)) : (yn({
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(S("agentDetails.repairGatewayAuthDone", "Credentials rotated and pushed"))), await Promise.all([O(), A.refetch()]).catch(() => {});
194
+ }), o.success(x("agentDetails.repairGatewayAuthDone", "Credentials rotated and pushed"))), await Promise.all([D(), k.refetch()]).catch(() => {});
193
195
  } finally {
194
- _n(!1);
196
+ xn(!1);
195
197
  }
196
- }, [z, pr] = u([]), [mr, hr] = u([]), [gr, _r] = u(!0), [B, V] = u(null), [vr, H] = u(null), [yr, br] = u(null), [xr, Sr] = u(null), [Cr, wr] = u(!1), [Tr, Er] = u(!1), [Dr, Or] = u(!1), [kr, Ar] = u(!1), [jr, Mr] = u(!1), [Nr, Pr] = u("plugin"), Fr = l(null), [U, Ir] = u("installed"), [W, Lr] = u(""), [Rr, zr] = u([]), [Br, Vr] = u(!1), [G, Hr] = u(null), [Ur, Wr] = u(!1), [K, Gr] = u(null), [Kr] = Ye(), [qr] = et(), [Jr] = tt(), [Yr] = ot(), q = s(async () => {
197
- if (k?.id) {
198
- _r(!0), H(null);
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 Kr({ variables: {
201
- agentId: k.id,
202
- profile: P
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
- pr(e), hr(n), t.error && H(t.error);
232
+ _r(e), yr(n), t.error && V(t.error);
231
233
  }
232
234
  } catch {
233
- H("Agent unreachable — unable to fetch plugin list");
235
+ V("Agent unreachable — unable to fetch plugin list");
234
236
  } finally {
235
- _r(!1);
237
+ xr(!1);
236
238
  }
237
239
  }
238
240
  }, [
239
- k?.id,
240
- Kr,
241
- P
241
+ O?.id,
242
+ Xr,
243
+ N
242
244
  ]);
243
245
  c(() => {
244
- if (!k?.id) return;
245
- let e = `${k.id}:${P}`;
246
- Fr.current !== e && (Fr.current = e, q());
246
+ if (!O?.id) return;
247
+ let e = `${O.id}:${N}`;
248
+ zr.current !== e && (zr.current = e, K());
247
249
  }, [
248
- k?.id,
249
- P,
250
- q
250
+ O?.id,
251
+ N,
252
+ K
251
253
  ]);
252
- let Xr = s(async (e) => {
253
- if (k?.id) {
254
- V(e);
254
+ let ei = s(async (e) => {
255
+ if (O?.id) {
256
+ B(e);
255
257
  try {
256
- let { data: t } = await qr({ variables: {
257
- agentId: k.id,
258
+ let { data: t } = await Zr({ variables: {
259
+ agentId: O.id,
258
260
  packageName: e
259
261
  } });
260
- if (t?.installAgentPlugin?.success) await q();
261
- else throw Error(t?.installAgentPlugin?.error || S("agentDetails.installFailed", "Install failed"));
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 (We(e)) {
264
- Ge(), Pr("plugin"), Mr(!0);
265
+ if (qe(e)) {
266
+ Je(), Rr("plugin"), Ir(!0);
265
267
  return;
266
268
  }
267
- H(e instanceof Error ? e.message : S("agentDetails.pluginInstallFailed", "Failed to install plugin")), setTimeout(() => H(null), 5e3);
269
+ V(e instanceof Error ? e.message : x("agentDetails.pluginInstallFailed", "Failed to install plugin")), setTimeout(() => V(null), 5e3);
268
270
  } finally {
269
- V(null);
271
+ B(null);
270
272
  }
271
273
  }
272
274
  }, [
273
- k?.id,
274
- qr,
275
- q,
276
- S
277
- ]), Zr = s((e) => {
278
- br(e);
279
- }, []), Qr = s(async (e) => {
280
- if (k?.id) {
281
- V(e);
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 Jr({ variables: {
284
- agentId: k.id,
285
+ let { data: t } = await Qr({ variables: {
286
+ agentId: O.id,
285
287
  packageName: e
286
288
  } });
287
- if (t?.removeAgentPlugin?.success) await q();
288
- else throw Error(t?.removeAgentPlugin?.error || S("agentDetails.removeFailed", "Remove failed"));
289
+ if (t?.removeAgentPlugin?.success) await K();
290
+ else throw Error(t?.removeAgentPlugin?.error || x("agentDetails.removeFailed", "Remove failed"));
289
291
  } catch (e) {
290
- H(e instanceof Error ? e.message : S("agentDetails.pluginRemoveFailed", "Failed to remove plugin")), setTimeout(() => H(null), 5e3);
292
+ V(e instanceof Error ? e.message : x("agentDetails.pluginRemoveFailed", "Failed to remove plugin")), setTimeout(() => V(null), 5e3);
291
293
  } finally {
292
- V(null);
294
+ B(null);
293
295
  }
294
296
  }
295
297
  }, [
296
- k?.id,
297
- Jr,
298
- q,
299
- S
300
- ]), $r = s((e) => {
301
- Sr(e);
302
- }, []), ei = s(async (e, t) => {
303
- if (k?.id) {
304
- V(e);
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 Yr({ variables: {
307
- agentId: k.id,
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 q();
312
- else throw Error(r?.error || S("agentDetails.updateFailed", "Plugin update failed"));
313
+ if (r?.ok) await K();
314
+ else throw Error(r?.error || x("agentDetails.updateFailed", "Plugin update failed"));
313
315
  } catch (e) {
314
- H(e instanceof Error ? e.message : S("agentDetails.pluginUpdateFailed", "Failed to update plugin")), setTimeout(() => H(null), 5e3);
316
+ V(e instanceof Error ? e.message : x("agentDetails.pluginUpdateFailed", "Failed to update plugin")), setTimeout(() => V(null), 5e3);
315
317
  } finally {
316
- V(null);
318
+ B(null);
317
319
  }
318
320
  }
319
321
  }, [
320
- k?.id,
321
- Yr,
322
- q,
323
- S
324
- ]), J = k?.sessions || [], Y = k?.vibes || [], ti = l(0), ni = l(!1), X = s(async () => {
325
- let e = ++ti.current, t = () => e === ti.current;
326
- ni.current = !0, Vr(!0), Wr(!1), Hr(null);
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: "query MyStorePlugins {\n myEntitlements {\n id\n productId\n licenseKey\n product {\n id\n name\n slug\n icon\n description\n manifest\n }\n }\n }" })
333
- })).json();
334
- if (e.errors?.length) throw Error(e.errors[0]?.message ?? "Failed to load store plugins");
335
- let n = (e.data?.myEntitlements ?? []).filter((e) => {
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() && zr(n);
357
+ t() && Ur(r);
342
358
  } catch (e) {
343
- t() && Hr(e instanceof Error ? e.message : "Failed to load store plugins");
359
+ t() && Kr(e instanceof Error ? e.message : "Failed to load store plugins");
344
360
  } finally {
345
- t() && (ni.current = !1, Wr(!0)), Vr(ni.current);
361
+ t() && (oi.current = !1, Jr(!0)), Gr(oi.current);
346
362
  }
347
- }, []), ri = l(!1);
363
+ }, []), si = l(!1);
348
364
  c(() => {
349
- U === "store" ? ri.current || (ri.current = !0, X()) : ri.current = !1;
350
- }, [U, X]);
351
- let ii = s(async (e, t) => {
352
- if (k?.id) {
353
- Gr(e);
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: k.id,
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 q(), Ir("installed");
387
+ await K(), Br("installed");
372
388
  } catch (e) {
373
- Hr(e instanceof Error ? e.message : "Install failed");
389
+ Kr(e instanceof Error ? e.message : "Install failed");
374
390
  } finally {
375
- Gr(null);
391
+ Yr(null);
376
392
  }
377
393
  }
378
- }, [k?.id, q]), [ai, oi] = Ut(), [si, ci] = u(null), li = ai.get("install");
394
+ }, [O?.id, K]), [li, ui] = qt(), [di, X] = u(null), fi = li.get("install");
379
395
  c(() => {
380
- k?.id && li && (ci(li), Ir("store"), ri.current = !0, X(), oi((e) => {
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
- k?.id,
386
- li,
387
- oi,
388
- X
401
+ O?.id,
402
+ fi,
403
+ ui,
404
+ Y
389
405
  ]);
390
- let Z = si && Ur && G === null ? Rr.find((e) => e.productId === si) : void 0, Q = Z ? Se(Z.product?.manifest) : null;
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 (!si || !Ur || Z && Q) return;
393
- let e = Z ? S("agentDetails.storeInstallNoPackage", "The plugin in this link has no installable package, so nothing was installed.") : G ? S("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.") : S("agentDetails.storeInstallNotEntitled", "The plugin in this link is not among your purchases, so nothing was installed.");
394
- o.error(e), ci(null);
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
- si,
397
- Ur,
412
+ di,
413
+ qr,
398
414
  Z,
399
415
  Q,
400
- G,
401
- S
416
+ W,
417
+ x
402
418
  ]);
403
- let ui = s(async () => {
404
- if (!k?.id) return null;
405
- if (D) return D;
406
- Bn(!0), Hn(null);
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 Un({ variables: { agentId: k.id } })).data?.vibecontrolsAgentSecretReveal ?? null;
409
- return e ? (Rn(e), e) : (Hn("No API key configured"), null);
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 Hn(e instanceof Error ? e.message : "Reveal failed"), null;
427
+ return Kn(e instanceof Error ? e.message : "Reveal failed"), null;
412
428
  } finally {
413
- Bn(!1);
429
+ Wn(!1);
414
430
  }
415
431
  }, [
416
- k?.id,
417
- D,
418
- Un
432
+ O?.id,
433
+ E,
434
+ qn
419
435
  ]);
420
- if (an) return /* @__PURE__ */ g("div", {
436
+ if (ln) return /* @__PURE__ */ h("div", {
421
437
  className: "flex items-center justify-center min-h-[400px]",
422
- children: /* @__PURE__ */ g("p", {
438
+ children: /* @__PURE__ */ h("p", {
423
439
  className: "text-text-secondary",
424
440
  children: "Loading permissions…"
425
441
  })
426
442
  });
427
- if (on && (on.permissionStrings?.length ?? 0) > 0 && !rn(e.AGENT_READ)) return /* @__PURE__ */ g("div", {
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__ */ _("div", {
445
+ children: /* @__PURE__ */ g("div", {
430
446
  className: "text-center space-y-2",
431
- children: [/* @__PURE__ */ g("h2", {
447
+ children: [/* @__PURE__ */ h("h2", {
432
448
  className: "text-lg font-semibold text-text-primary",
433
449
  children: "Access Denied"
434
- }), /* @__PURE__ */ g("p", {
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
- x("/agents");
442
- }, di = async (e) => {
443
- if (k?.id && !w) {
444
- Cn(e);
457
+ b("/agents");
458
+ }, mi = async (e) => {
459
+ if (O?.id && !C) {
460
+ Dn(e);
445
461
  try {
446
- let t = e === "start" ? await xn({ variables: { agentId: k.id } }) : await Sn({ variables: { agentId: k.id } }), n = e === "start" ? t.data?.startVibecontrolsAgent : t.data?.stopVibecontrolsAgent;
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" ? S("agentDetails.agentStarted", "Agent started") : S("agentDetails.agentStopped", "Agent stopped")), await Promise.all([O(), A.refetch()]).catch(() => {});
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 ? S("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 || S("agentDetails.lifecycleFailed", "Failed to {{action}} agent", { action: e }));
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
- Cn(null);
469
+ Dn(null);
454
470
  }
455
471
  }
456
- }, fi = () => void di("start"), pi = () => void di("stop"), mi = async () => {
457
- await Promise.all([O(), A.refetch()]).catch(() => {}), x("/agents");
458
- }, hi = () => {
459
- En(!0);
460
- }, gi = async () => {
461
- if (!k?.id) return;
462
- let e = kn.trim();
463
- if (!e || e === k.name) On(!1);
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
- jn(!0), Nn(null);
481
+ Fn(!0), Ln(null);
466
482
  try {
467
- let t = await sn({ variables: {
468
- id: k.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
- On(!1);
488
+ Mn(!1);
473
489
  } catch (e) {
474
- Nn(e instanceof Error ? e.message : String(e));
490
+ Ln(e instanceof Error ? e.message : String(e));
475
491
  } finally {
476
- jn(!1);
492
+ Fn(!1);
477
493
  }
478
494
  }
479
- }, _i = () => {
480
- On(!1), An(""), Nn(null);
481
- }, vi = async () => {
482
- let e = await ui();
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"), Ln(!0), setTimeout(() => Ln(!1), 2e3);
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
- }, yi = async () => {
489
- E || await ui(), Fn((e) => !e);
490
- }, bi = async () => {
491
- if (k?.id) {
492
- Jn(!0), Xn(null);
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 Wn({ variables: { agentId: k.id } }), Rn(null), Kn(!1);
495
- let e = (await Un({ variables: { agentId: k.id } })).data?.vibecontrolsAgentSecretReveal ?? null;
496
- e && (Rn(e), Fn(!0)), t() && r("API key rotated"), O();
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
- Xn(e instanceof Error ? e.message : "Failed to rotate API key");
514
+ er(e instanceof Error ? e.message : "Failed to rotate API key");
499
515
  } finally {
500
- Jn(!1);
516
+ Qn(!1);
501
517
  }
502
518
  }
503
- }, xi = () => {
504
- k?.id && (Er(!1), Or(!1), wr(!0));
505
- }, Si = async () => {
506
- if (k?.id) {
507
- Ar(!0);
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 cn({ variables: {
510
- id: k.id,
511
- uninstallFromTarget: Tr,
512
- deleteTarget: Dr
513
- } }), wr(!1), $();
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
- Ar(!1);
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
- if (!e) return S("health.never", "Never");
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 ? S("health.justNow", "Just now") : t < 36e5 ? S("agentDetails.minutesAgo", "{{count}}m ago", { count: Math.floor(t / 6e4) }) : t < 864e5 ? S("agentDetails.hoursAgo", "{{count}}h ago", { count: Math.floor(t / 36e5) }) : new Date(e).toLocaleDateString();
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 (er && !k) return /* @__PURE__ */ _(Zt, {
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__ */ _("button", {
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__ */ g(ut, { className: "size-4" }), S("agentDetails.backToAgents", "Back to Agents")]
538
- }), /* @__PURE__ */ g(ne, { variant: "detail" })]
553
+ children: [/* @__PURE__ */ h(pt, { className: "size-4" }), x("agentDetails.backToAgents", "Back to Agents")]
554
+ }), /* @__PURE__ */ h(ne, { variant: "detail" })]
539
555
  });
540
- if (tr && !k) return /* @__PURE__ */ _(Zt, {
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__ */ _("button", {
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__ */ g(ut, { className: "size-4" }), S("agentDetails.backToAgents", "Back to Agents")]
547
- }), /* @__PURE__ */ g(ae, {
548
- title: S("agentDetails.failedLoad", "Failed to load agent"),
549
- message: tr.message,
550
- onRetry: () => O()
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 (!k) return /* @__PURE__ */ _(Zt, {
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__ */ _("button", {
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__ */ g(ut, { className: "size-4" }), S("agentDetails.backToAgents", "Back to Agents")]
560
- }), /* @__PURE__ */ g(se, {
561
- icon: /* @__PURE__ */ g(p, { className: "size-8 text-text-secondary" }),
562
- title: S("agentDetails.notFound", "Agent not found"),
563
- description: `${S("agentDetails.notFoundDescriptionPrefix", "No agent with ID")} "${b}" ${S("agentDetails.notFoundDescriptionSuffix", "exists")}`,
564
- action: /* @__PURE__ */ g(v, {
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: S("agentDetails.backToAgents", "Back to Agents")
583
+ children: x("agentDetails.backToAgents", "Back to Agents")
568
584
  })
569
585
  })]
570
586
  });
571
- let Di = [
587
+ let Ai = [
572
588
  {
573
589
  id: "overview",
574
- label: S("nav.overview", "Overview"),
590
+ label: x("nav.overview", "Overview"),
575
591
  icon: p
576
592
  },
577
593
  {
578
594
  id: "profiles",
579
- label: S("agentDetails.profiles", "Profiles"),
580
- icon: zt
595
+ label: x("agentDetails.profiles", "Profiles"),
596
+ icon: Ht
581
597
  },
582
598
  {
583
599
  id: "security",
584
- label: S("agentDetails.security", "Security"),
585
- icon: Pt
600
+ label: x("agentDetails.security", "Security"),
601
+ icon: Lt
586
602
  },
587
603
  {
588
604
  id: "plugins",
589
- label: S("agentDetails.plugins", "Plugins"),
590
- icon: jt,
591
- badge: `${z.length}`
605
+ label: x("agentDetails.plugins", "Plugins"),
606
+ icon: Pt,
607
+ badge: `${R.length}`
592
608
  },
593
609
  {
594
610
  id: "sessions",
595
- label: S("nav.sessions", "Sessions"),
596
- icon: Lt,
597
- badge: `${J.length}`
611
+ label: x("nav.sessions", "Sessions"),
612
+ icon: Bt,
613
+ badge: `${q.length}`
598
614
  },
599
615
  {
600
616
  id: "logs",
601
- label: S("nav.logs", "Logs"),
602
- icon: Mt
617
+ label: x("nav.logs", "Logs"),
618
+ icon: Ft
603
619
  },
604
620
  {
605
621
  id: "connection",
606
- label: S("agentDetails.connection", "Connection Log"),
607
- icon: Mt
622
+ label: x("agentDetails.connection", "Connection Log"),
623
+ icon: Ft
608
624
  },
609
625
  {
610
626
  id: "vibes",
611
- label: S("nav.vibes", "Vibes"),
612
- icon: m,
613
- badge: `${Y.length}`
627
+ label: x("nav.vibes", "Vibes"),
628
+ icon: Gt,
629
+ badge: `${J.length}`
614
630
  },
615
631
  {
616
632
  id: "notes",
617
- label: S("vibeDetails.notes", "Notes"),
618
- icon: wt
633
+ label: x("vibeDetails.notes", "Notes"),
634
+ icon: Dt
619
635
  },
620
636
  {
621
637
  id: "aliases",
622
- label: S("agentDetails.aliases", "Aliases"),
623
- icon: gt
638
+ label: x("agentDetails.aliases", "Aliases"),
639
+ icon: yt
624
640
  },
625
641
  {
626
642
  id: "backup",
627
- label: S("agentDetails.backup", "Backup"),
628
- icon: yt
643
+ label: x("agentDetails.backup", "Backup"),
644
+ icon: St
629
645
  },
630
646
  {
631
647
  id: "maintenance",
632
- label: S("agentDetails.maintenance.tab", "Maintenance"),
633
- icon: Bt
648
+ label: x("agentDetails.maintenance.tab", "Maintenance"),
649
+ icon: Ut
634
650
  }
635
- ], Oi = J.filter((e) => e.status === "RUNNING").length;
636
- return /* @__PURE__ */ _(Zt, {
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__ */ _("button", {
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__ */ g(ut, { className: "size-4" }), S("agentDetails.backToAgents", "Back to Agents")]
659
+ children: [/* @__PURE__ */ h(pt, { className: "size-4" }), x("agentDetails.backToAgents", "Back to Agents")]
644
660
  }),
645
- /* @__PURE__ */ g(ie, {
646
- title: k.name,
647
- description: k.hostname || S("agentDetails.noHostnameConfigured", "No hostname configured"),
661
+ /* @__PURE__ */ h(ie, {
662
+ title: O.name,
663
+ description: O.hostname || x("agentDetails.noHostnameConfigured", "No hostname configured"),
648
664
  breadcrumb: [{
649
- label: S("nav.agents", "Agents"),
650
- path: nn ? `${nn}/agents` : "/agents"
651
- }, { label: k.name }],
652
- actions: /* @__PURE__ */ _("div", {
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
- ir ? /* @__PURE__ */ _(v, {
671
+ cr ? /* @__PURE__ */ g(_, {
656
672
  type: "button",
657
- onClick: fi,
658
- disabled: w !== null,
659
- "aria-busy": w === "start",
660
- children: [w === "start" ? /* @__PURE__ */ g(d, {
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__ */ g(kt, {
679
+ }) : /* @__PURE__ */ h(Mt, {
664
680
  className: "size-4",
665
681
  "aria-hidden": "true"
666
- }), w === "start" ? S("agentDetails.starting", "Starting…") : S("agentDetails.start", "Start")]
667
- }) : /* @__PURE__ */ _(v, {
682
+ }), C === "start" ? x("agentDetails.starting", "Starting…") : x("agentDetails.start", "Start")]
683
+ }) : /* @__PURE__ */ g(_, {
668
684
  type: "button",
669
685
  variant: "outline",
670
- onClick: pi,
671
- disabled: w !== null,
672
- "aria-busy": w === "stop",
673
- children: [w === "stop" ? /* @__PURE__ */ g(d, {
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__ */ g(Ft, {
692
+ }) : /* @__PURE__ */ h(Rt, {
677
693
  className: "size-4",
678
694
  "aria-hidden": "true"
679
- }), w === "stop" ? S("agentDetails.stopping", "Stopping…") : S("sessions.stop", "Stop")]
695
+ }), C === "stop" ? x("agentDetails.stopping", "Stopping…") : x("sessions.stop", "Stop")]
680
696
  }),
681
- N === "DEGRADED" && /* @__PURE__ */ _(v, {
697
+ M === "DEGRADED" && /* @__PURE__ */ g(_, {
682
698
  type: "button",
683
699
  variant: "secondary",
684
- onClick: fi,
685
- disabled: w !== null,
686
- "aria-busy": w === "start",
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: M.get(k.id)?.errorMessage ? `Retry lifecycle/start — last error: ${M.get(k.id)?.errorMessage}` : "Retry lifecycle/start",
689
- children: [w === "start" ? /* @__PURE__ */ g(d, {
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__ */ g(f, {
708
+ }) : /* @__PURE__ */ h(f, {
693
709
  className: "size-4",
694
710
  "aria-hidden": "true"
695
- }), w === "start" ? S("agentDetails.reconnecting", "Reconnecting…") : S("agentDetails.reconnect", "Reconnect")]
711
+ }), C === "start" ? x("agentDetails.reconnecting", "Reconnecting…") : x("agentDetails.reconnect", "Reconnect")]
696
712
  }),
697
- /* @__PURE__ */ g(Pe, {
698
- agentId: k.id,
699
- tunnelUrl: k.tunnelUrl || null,
700
- profile: P
713
+ /* @__PURE__ */ h(Le, {
714
+ agentId: O.id,
715
+ tunnelUrl: O.tunnelUrl || null,
716
+ profile: N
701
717
  }),
702
- /* @__PURE__ */ _(v, {
718
+ /* @__PURE__ */ g(_, {
703
719
  type: "button",
704
720
  variant: "outline",
705
- onClick: hi,
706
- children: [/* @__PURE__ */ g(Nt, {
721
+ onClick: vi,
722
+ children: [/* @__PURE__ */ h(It, {
707
723
  className: "size-4",
708
724
  "aria-hidden": "true"
709
- }), S("agentDetails.configure", "Configure")]
725
+ }), x("agentDetails.configure", "Configure")]
710
726
  }),
711
- /* @__PURE__ */ g(ue, {
712
- ariaLabel: S("agentDetails.agentActions", "Agent actions"),
713
- title: S("agentDetails.agentActions", "Agent actions"),
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: S("agentDetails.aiChat", "AI Chat"),
719
- icon: ft,
720
- onSelect: () => x("/ai?contextLevel=agent")
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: S("common.refresh", "Refresh"),
740
+ label: x("common.refresh", "Refresh"),
725
741
  icon: f,
726
- onSelect: () => void O(),
727
- disabled: er
742
+ onSelect: () => void D(),
743
+ disabled: ir
728
744
  },
729
- ...rn(e.AGENT_DELETE) ? [{
745
+ ...cn(e.AGENT_DELETE) ? [{
730
746
  key: "remove",
731
- label: S("sessions.remove", "Remove"),
732
- icon: Rt,
733
- onSelect: xi,
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__ */ g(Jt, {
743
- icon: /* @__PURE__ */ g(p, { className: "size-4" }),
744
- children: S("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.")
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__ */ g(qt, {
762
+ /* @__PURE__ */ h(Zt, {
747
763
  storageKey: "vibecontrols-agent-details",
748
764
  steps: [
749
765
  {
750
766
  id: "start-session",
751
- label: S("agentDetails.next.startSession", "Start a session on this agent"),
752
- description: S("agentDetails.next.startSessionDesc", "Open a terminal or task that runs on this machine."),
753
- icon: /* @__PURE__ */ g(At, { className: "size-4" }),
754
- onClick: wi
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: S("agentDetails.next.checkConnection", "Check the connection"),
759
- description: S("agentDetails.next.checkConnectionDesc", "Verify the tunnel URL and reachability on the Connection tab."),
760
- icon: /* @__PURE__ */ g(p, { className: "size-4" }),
761
- onClick: () => R("connection")
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: S("agentDetails.next.reviewSecurity", "Review security & credentials"),
766
- description: S("agentDetails.next.reviewSecurityDesc", "Confirm gateway auth is pushed and scopes are correct."),
767
- icon: /* @__PURE__ */ g(ft, { className: "size-4" }),
768
- onClick: () => R("security")
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__ */ g("div", {
788
+ /* @__PURE__ */ h("div", {
773
789
  className: "flex items-center gap-2 -mt-2",
774
- children: Dn ? /* @__PURE__ */ _(h, { children: [
775
- /* @__PURE__ */ g("input", {
776
- ref: Pn,
790
+ children: jn ? /* @__PURE__ */ g(m, { children: [
791
+ /* @__PURE__ */ h("input", {
792
+ ref: Rn,
777
793
  type: "text",
778
- value: kn,
779
- onChange: (e) => An(e.target.value),
794
+ value: Nn,
795
+ onChange: (e) => Pn(e.target.value),
780
796
  onKeyDown: (e) => {
781
- e.key === "Enter" && !T ? gi() : e.key === "Escape" && _i();
797
+ e.key === "Enter" && !w ? yi() : e.key === "Escape" && bi();
782
798
  },
783
- disabled: T,
799
+ disabled: w,
784
800
  maxLength: 120,
785
- "aria-label": S("agentDetails.renameInput", "New agent name"),
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: k.name,
803
+ placeholder: O.name,
788
804
  "data-testid": "agent-details-rename-input"
789
805
  }),
790
- /* @__PURE__ */ _("button", {
806
+ /* @__PURE__ */ g("button", {
791
807
  type: "button",
792
- onClick: () => void gi(),
793
- disabled: !kn.trim() || kn.trim() === k.name || T,
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: [T ? /* @__PURE__ */ g(d, { className: "size-3.5 animate-spin" }) : /* @__PURE__ */ g(pt, { className: "size-3.5" }), S("agentDetails.saveName", "Save")]
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__ */ g("button", {
814
+ /* @__PURE__ */ h("button", {
799
815
  type: "button",
800
- onClick: _i,
801
- disabled: T,
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: S("common.cancel", "Cancel")
820
+ children: x("common.cancel", "Cancel")
805
821
  }),
806
- Mn && /* @__PURE__ */ g("span", {
822
+ In && /* @__PURE__ */ h("span", {
807
823
  className: "text-xs text-status-error-text",
808
824
  role: "alert",
809
- children: Mn
825
+ children: In
810
826
  })
811
- ] }) : /* @__PURE__ */ _("button", {
827
+ ] }) : /* @__PURE__ */ g("button", {
812
828
  type: "button",
813
829
  onClick: () => {
814
- Nn(null), An(k.name), On(!0), requestAnimationFrame(() => Pn.current?.select());
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: S("agentDetails.renameTooltip", "Rename this agent"),
833
+ title: x("agentDetails.renameTooltip", "Rename this agent"),
818
834
  "data-testid": "agent-details-rename-trigger",
819
- children: [/* @__PURE__ */ g(xt, { className: "size-3.5" }), S("agentDetails.rename", "Rename")]
835
+ children: [/* @__PURE__ */ h(wt, { className: "size-3.5" }), x("agentDetails.rename", "Rename")]
820
836
  })
821
837
  }),
822
- N === "DEGRADED" && /* @__PURE__ */ _("div", {
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__ */ g(d, {
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__ */ _("div", {
847
+ /* @__PURE__ */ g("div", {
832
848
  className: "flex-1 min-w-0 space-y-1",
833
849
  children: [
834
- /* @__PURE__ */ g("p", {
850
+ /* @__PURE__ */ h("p", {
835
851
  className: "font-medium",
836
- children: S("agentDetails.degradedBanner.title", "Agent is degraded — auto-reconnecting in the background")
852
+ children: x("agentDetails.degradedBanner.title", "Agent is degraded — auto-reconnecting in the background")
837
853
  }),
838
- M.get(k.id)?.errorMessage && /* @__PURE__ */ g("p", {
854
+ j.get(O.id)?.errorMessage && /* @__PURE__ */ h("p", {
839
855
  className: "text-xs text-text-secondary",
840
- children: /* @__PURE__ */ g("span", {
856
+ children: /* @__PURE__ */ h("span", {
841
857
  className: "font-mono text-status-warning-text",
842
- children: M.get(k.id)?.errorMessage
858
+ children: j.get(O.id)?.errorMessage
843
859
  })
844
860
  }),
845
- /* @__PURE__ */ g("p", {
861
+ /* @__PURE__ */ h("p", {
846
862
  className: "text-xs text-text-secondary",
847
- children: S("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.")
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__ */ g("button", {
867
+ /* @__PURE__ */ h("button", {
852
868
  type: "button",
853
- onClick: () => R("connection"),
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: S("agentDetails.degradedBanner.viewLog", "View log →")
871
+ children: x("agentDetails.degradedBanner.viewLog", "View log →")
856
872
  })
857
873
  ]
858
874
  }),
859
- ur && /* @__PURE__ */ _("div", {
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__ */ _("div", {
879
+ children: [/* @__PURE__ */ g("div", {
864
880
  className: "flex-1 min-w-0 space-y-1",
865
- children: [/* @__PURE__ */ g("p", {
881
+ children: [/* @__PURE__ */ h("p", {
866
882
  className: "font-medium",
867
- children: S("agentDetails.repairBanner.title", "This agent is waiting for its gateway credentials")
868
- }), /* @__PURE__ */ g("p", {
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: S("agentDetails.repairBanner.description", "Nothing is changed automatically. Repairing rotates the agent’s OAuth secret and pushes the new one to it.")
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__ */ g(y, {
888
+ }), /* @__PURE__ */ h(v, {
873
889
  permission: e.AGENT_UPDATE,
874
890
  deniedBehavior: "disable",
875
- deniedTooltip: S("agentDetails.repushCredentialsDenied", "You don't have permission to update agents"),
876
- children: /* @__PURE__ */ g(v, {
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: () => _n(!0),
882
- disabled: C,
883
- "aria-busy": C,
884
- children: S("agentDetails.repairGatewayAuth", "Repair gateway auth")
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
- bn && /* @__PURE__ */ g(De, {
889
- secret: bn.value,
890
- description: bn.delivered ? void 0 : S("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."),
891
- onDismiss: () => yn(null)
892
- }, bn.epoch),
893
- /* @__PURE__ */ _("div", {
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__ */ g(a, {
912
+ /* @__PURE__ */ h(a, {
897
913
  className: "p-4",
898
- children: /* @__PURE__ */ _("div", {
914
+ children: /* @__PURE__ */ g("div", {
899
915
  className: "flex items-center gap-3",
900
- children: [/* @__PURE__ */ g("div", {
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__ */ g(p, { className: "size-5 text-action-primary-bg" })
903
- }), /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
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: S("sessions.filterStatus", "Status")
906
- }), /* @__PURE__ */ g(Ce, {
907
- status: N,
908
- reason: M.get(k.id)?.errorMessage ?? (k.lastGatewayAuthPushStatus === "failed" ? k.lastGatewayAuthPushError ?? "Gateway-auth push failed" : null),
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(), R("connection");
927
+ e.preventDefault(), L("connection");
912
928
  }
913
929
  })] })]
914
930
  })
915
931
  }),
916
- /* @__PURE__ */ g(a, {
932
+ /* @__PURE__ */ h(a, {
917
933
  className: "p-4",
918
- children: /* @__PURE__ */ _("div", {
934
+ children: /* @__PURE__ */ g("div", {
919
935
  className: "flex items-center gap-3",
920
- children: [/* @__PURE__ */ g("div", {
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__ */ g(vt, { className: "size-5 text-action-primary-bg" })
923
- }), /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
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: S("analytics.platform", "Platform")
926
- }), /* @__PURE__ */ _("p", {
941
+ children: x("analytics.platform", "Platform")
942
+ }), /* @__PURE__ */ g("p", {
927
943
  className: "font-semibold text-text-primary",
928
944
  children: [
929
- k.platform,
945
+ O.platform,
930
946
  "/",
931
- k.architecture
947
+ O.architecture
932
948
  ]
933
949
  })] })]
934
950
  })
935
951
  }),
936
- /* @__PURE__ */ g(a, {
952
+ /* @__PURE__ */ h(a, {
937
953
  className: "p-4",
938
- children: /* @__PURE__ */ _("div", {
954
+ children: /* @__PURE__ */ g("div", {
939
955
  className: "flex items-center gap-3",
940
- children: [/* @__PURE__ */ g("div", {
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__ */ g(Tt, { className: "size-5 text-action-primary-bg" })
943
- }), /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
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: S("agentDetails.version", "Version")
946
- }), /* @__PURE__ */ _("p", {
961
+ children: x("agentDetails.version", "Version")
962
+ }), /* @__PURE__ */ g("p", {
947
963
  className: "font-semibold text-text-primary",
948
- children: ["v", k.version]
964
+ children: ["v", O.version]
949
965
  })] })]
950
966
  })
951
967
  }),
952
- /* @__PURE__ */ g(a, {
968
+ /* @__PURE__ */ h(a, {
953
969
  className: "p-4",
954
- children: /* @__PURE__ */ _("div", {
970
+ children: /* @__PURE__ */ g("div", {
955
971
  className: "flex items-center gap-3",
956
- children: [/* @__PURE__ */ g("div", {
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__ */ g(Lt, { className: "size-5 text-action-primary-bg" })
959
- }), /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
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: S("nav.sessions", "Sessions")
962
- }), /* @__PURE__ */ _("p", {
977
+ children: x("nav.sessions", "Sessions")
978
+ }), /* @__PURE__ */ g("p", {
963
979
  className: "font-semibold text-text-primary",
964
980
  children: [
965
- Oi,
981
+ ji,
966
982
  " ",
967
- S("health.active", "active")
983
+ x("health.active", "active")
968
984
  ]
969
985
  })] })]
970
986
  })
971
987
  })
972
988
  ]
973
989
  }),
974
- /* @__PURE__ */ _("div", {
990
+ /* @__PURE__ */ g("div", {
975
991
  className: "flex items-end border-b border-border-default",
976
- children: [/* @__PURE__ */ g(Xt, {
977
- items: [...Di.map(({ id: e, label: t, icon: n, badge: r }) => ({
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__ */ g(n, {
996
+ icon: /* @__PURE__ */ h(n, {
981
997
  className: "size-4",
982
998
  "aria-hidden": "true"
983
999
  }),
984
1000
  badge: r
985
- })), ...F ? I.data.map((e) => ({
1001
+ })), ...P ? F.data.map((e) => ({
986
1002
  id: e.contribution.id,
987
1003
  label: e.contribution.title
988
1004
  })) : []],
989
- activeTabId: L,
990
- onTabChange: R,
1005
+ activeTabId: I,
1006
+ onTabChange: L,
991
1007
  variant: "underline",
992
1008
  className: "min-w-0 flex-1 border-b-0"
993
- }), F && k && /* @__PURE__ */ _("button", {
1009
+ }), P && O && /* @__PURE__ */ g("button", {
994
1010
  type: "button",
995
- onClick: () => cr(!0),
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__ */ g("span", {
1015
+ children: [/* @__PURE__ */ h("span", {
1000
1016
  "aria-hidden": !0,
1001
1017
  children: "+"
1002
- }), /* @__PURE__ */ g("span", {
1018
+ }), /* @__PURE__ */ h("span", {
1003
1019
  className: "hidden sm:inline",
1004
1020
  children: "Add tab"
1005
1021
  })]
1006
1022
  })]
1007
1023
  }),
1008
- /* @__PURE__ */ _(de, {
1009
- tabKey: L,
1024
+ /* @__PURE__ */ g(de, {
1025
+ tabKey: I,
1010
1026
  children: [
1011
- L === "overview" && /* @__PURE__ */ _("div", {
1027
+ I === "overview" && /* @__PURE__ */ g("div", {
1012
1028
  className: "space-y-6",
1013
1029
  children: [
1014
- /* @__PURE__ */ _(a, { children: [/* @__PURE__ */ g("div", {
1030
+ /* @__PURE__ */ g(a, { children: [/* @__PURE__ */ h("div", {
1015
1031
  className: "p-4 border-b border-border-default",
1016
- children: /* @__PURE__ */ _("h3", {
1032
+ children: /* @__PURE__ */ g("h3", {
1017
1033
  className: "font-semibold text-text-primary flex items-center gap-2",
1018
- children: [/* @__PURE__ */ g(mt, { className: "size-5" }), S("agentDetails.capabilities", "Capabilities")]
1034
+ children: [/* @__PURE__ */ h(_t, { className: "size-5" }), x("agentDetails.capabilities", "Capabilities")]
1019
1035
  })
1020
- }), /* @__PURE__ */ g("div", {
1036
+ }), /* @__PURE__ */ h("div", {
1021
1037
  className: "p-4",
1022
- children: /* @__PURE__ */ g("div", {
1038
+ children: /* @__PURE__ */ h("div", {
1023
1039
  className: "flex flex-wrap gap-2",
1024
- children: k.capabilities && typeof k.capabilities == "object" && (Array.isArray(k.capabilities) ? k.capabilities.length > 0 : Object.keys(k.capabilities).length > 0) ? (Array.isArray(k.capabilities) ? k.capabilities : (() => {
1025
- let e = k.capabilities, t = Object.keys(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__ */ g("span", {
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__ */ _("div", {
1046
+ }, e)) : /* @__PURE__ */ g("div", {
1031
1047
  className: "space-y-2 text-sm text-text-secondary",
1032
1048
  children: [
1033
- /* @__PURE__ */ g("p", { children: S("agentDetails.noCapabilitiesConfigured", "No capabilities configured") }),
1034
- /* @__PURE__ */ _("p", {
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__ */ g("code", {
1055
+ /* @__PURE__ */ h("code", {
1040
1056
  className: "text-text-primary",
1041
1057
  children: "docker"
1042
1058
  }),
1043
1059
  ",",
1044
1060
  " ",
1045
- /* @__PURE__ */ g("code", {
1061
+ /* @__PURE__ */ h("code", {
1046
1062
  className: "text-text-primary",
1047
1063
  children: "gpu"
1048
1064
  }),
1049
1065
  ",",
1050
1066
  " ",
1051
- /* @__PURE__ */ g("code", {
1067
+ /* @__PURE__ */ h("code", {
1052
1068
  className: "text-text-primary",
1053
1069
  children: "node20"
1054
1070
  }),
1055
1071
  ",",
1056
1072
  " ",
1057
- /* @__PURE__ */ g("code", {
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__ */ _("p", {
1080
+ /* @__PURE__ */ g("p", {
1065
1081
  className: "text-xs",
1066
1082
  children: [
1067
1083
  "Add from the agent host CLI:",
1068
1084
  " ",
1069
- /* @__PURE__ */ g("code", {
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__ */ _(a, { children: [/* @__PURE__ */ g("div", {
1096
+ /* @__PURE__ */ g(a, { children: [/* @__PURE__ */ h("div", {
1081
1097
  className: "p-4 border-b border-border-default",
1082
- children: /* @__PURE__ */ _("h3", {
1098
+ children: /* @__PURE__ */ g("h3", {
1083
1099
  className: "font-semibold text-text-primary flex items-center gap-2",
1084
- children: [/* @__PURE__ */ g(It, { className: "size-5" }), "Tags"]
1100
+ children: [/* @__PURE__ */ h(zt, { className: "size-5" }), "Tags"]
1085
1101
  })
1086
- }), /* @__PURE__ */ g("div", {
1102
+ }), /* @__PURE__ */ h("div", {
1087
1103
  className: "p-4",
1088
- children: /* @__PURE__ */ g(te, {
1104
+ children: /* @__PURE__ */ h(te, {
1089
1105
  entityType: "VIBECONTROLS_AGENT",
1090
- entityId: k.id
1106
+ entityId: O.id
1091
1107
  })
1092
1108
  })] }),
1093
- k.tunnelUrl && /* @__PURE__ */ _(a, { children: [/* @__PURE__ */ g("div", {
1109
+ O.tunnelUrl && /* @__PURE__ */ g(a, { children: [/* @__PURE__ */ h("div", {
1094
1110
  className: "p-4 border-b border-border-default",
1095
- children: /* @__PURE__ */ _("h3", {
1111
+ children: /* @__PURE__ */ g("h3", {
1096
1112
  className: "font-semibold text-text-primary flex items-center gap-2",
1097
- children: [/* @__PURE__ */ g(m, { className: "size-5" }), S("health.tunnel", "Tunnel")]
1113
+ children: [/* @__PURE__ */ h(Gt, { className: "size-5" }), x("health.tunnel", "Tunnel")]
1098
1114
  })
1099
- }), /* @__PURE__ */ g("div", {
1115
+ }), /* @__PURE__ */ h("div", {
1100
1116
  className: "p-4",
1101
- children: /* @__PURE__ */ _("div", {
1117
+ children: /* @__PURE__ */ g("div", {
1102
1118
  className: "flex-1 min-w-0",
1103
- children: [/* @__PURE__ */ g("p", {
1119
+ children: [/* @__PURE__ */ h("p", {
1104
1120
  className: "text-sm text-text-secondary mb-1",
1105
- children: S("agentDetails.tunnelUrl", "Tunnel URL")
1106
- }), /* @__PURE__ */ g("a", {
1107
- href: k.tunnelUrl,
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: k.tunnelUrl
1127
+ children: O.tunnelUrl
1112
1128
  })]
1113
1129
  })
1114
1130
  })] }),
1115
- /* @__PURE__ */ _(a, { children: [/* @__PURE__ */ g("div", {
1131
+ /* @__PURE__ */ g(a, { children: [/* @__PURE__ */ h("div", {
1116
1132
  className: "p-4 border-b border-border-default",
1117
- children: /* @__PURE__ */ _("h3", {
1133
+ children: /* @__PURE__ */ g("h3", {
1118
1134
  className: "font-semibold text-text-primary flex items-center gap-2",
1119
- children: [/* @__PURE__ */ g(Nt, { className: "size-5" }), S("agentDetails.configuration", "Configuration")]
1135
+ children: [/* @__PURE__ */ h(It, { className: "size-5" }), x("agentDetails.configuration", "Configuration")]
1120
1136
  })
1121
- }), /* @__PURE__ */ _("div", {
1137
+ }), /* @__PURE__ */ g("div", {
1122
1138
  className: "p-4 space-y-4",
1123
- children: [/* @__PURE__ */ _("div", {
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__ */ _("div", { children: [/* @__PURE__ */ g("p", {
1142
+ /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("p", {
1127
1143
  className: "text-sm text-text-secondary",
1128
- children: S("analytics.platform", "Platform")
1129
- }), /* @__PURE__ */ g("p", {
1144
+ children: x("analytics.platform", "Platform")
1145
+ }), /* @__PURE__ */ h("p", {
1130
1146
  className: "font-medium text-text-primary",
1131
- children: k.platform
1147
+ children: O.platform
1132
1148
  })] }),
1133
- /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
1149
+ /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("p", {
1134
1150
  className: "text-sm text-text-secondary",
1135
- children: S("analytics.architecture", "Architecture")
1136
- }), /* @__PURE__ */ g("p", {
1151
+ children: x("analytics.architecture", "Architecture")
1152
+ }), /* @__PURE__ */ h("p", {
1137
1153
  className: "font-medium text-text-primary",
1138
- children: k.architecture
1154
+ children: O.architecture
1139
1155
  })] }),
1140
- /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
1156
+ /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("p", {
1141
1157
  className: "text-sm text-text-secondary",
1142
- children: S("agentDetails.version", "Version")
1143
- }), /* @__PURE__ */ g("p", {
1158
+ children: x("agentDetails.version", "Version")
1159
+ }), /* @__PURE__ */ h("p", {
1144
1160
  className: "font-medium text-text-primary",
1145
- children: k.version
1161
+ children: O.version
1146
1162
  })] })
1147
1163
  ]
1148
- }), k.aiContext && /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
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__ */ g("pre", {
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: k.aiContext
1169
+ children: O.aiContext
1154
1170
  })] })]
1155
1171
  })] }),
1156
- /* @__PURE__ */ _(a, { children: [/* @__PURE__ */ g("div", {
1172
+ /* @__PURE__ */ g(a, { children: [/* @__PURE__ */ h("div", {
1157
1173
  className: "p-4 border-b border-border-default",
1158
- children: /* @__PURE__ */ _("h3", {
1174
+ children: /* @__PURE__ */ g("h3", {
1159
1175
  className: "font-semibold text-text-primary flex items-center gap-2",
1160
- children: [/* @__PURE__ */ g(ht, { className: "size-5" }), S("vibeDetails.timeline", "Timeline")]
1176
+ children: [/* @__PURE__ */ h(vt, { className: "size-5" }), x("vibeDetails.timeline", "Timeline")]
1161
1177
  })
1162
- }), /* @__PURE__ */ g("div", {
1178
+ }), /* @__PURE__ */ h("div", {
1163
1179
  className: "p-4",
1164
- children: /* @__PURE__ */ _("div", {
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__ */ _("div", { children: [/* @__PURE__ */ g("p", {
1183
+ /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("p", {
1168
1184
  className: "text-text-secondary",
1169
- children: S("health.lastHeartbeat", "Last Heartbeat")
1170
- }), /* @__PURE__ */ g("p", {
1185
+ children: x("health.lastHeartbeat", "Last Heartbeat")
1186
+ }), /* @__PURE__ */ h("p", {
1171
1187
  className: "font-medium text-text-primary",
1172
- children: Ei(k.lastHeartbeat)
1188
+ children: ki(O.lastHeartbeat)
1173
1189
  })] }),
1174
- /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
1190
+ /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("p", {
1175
1191
  className: "text-text-secondary",
1176
- children: S("vibeDetails.created", "Created")
1177
- }), /* @__PURE__ */ g("p", {
1192
+ children: x("vibeDetails.created", "Created")
1193
+ }), /* @__PURE__ */ h("p", {
1178
1194
  className: "font-medium text-text-primary",
1179
- children: Ei(k.createdAt)
1195
+ children: ki(O.createdAt)
1180
1196
  })] }),
1181
- /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
1197
+ /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("p", {
1182
1198
  className: "text-text-secondary",
1183
- children: S("vibeDetails.updated", "Updated")
1184
- }), /* @__PURE__ */ g("p", {
1199
+ children: x("vibeDetails.updated", "Updated")
1200
+ }), /* @__PURE__ */ h("p", {
1185
1201
  className: "font-medium text-text-primary",
1186
- children: Ei(k.updatedAt)
1202
+ children: ki(O.updatedAt)
1187
1203
  })] })
1188
1204
  ]
1189
1205
  })
1190
1206
  })] })
1191
1207
  ]
1192
1208
  }),
1193
- L === "profiles" && /* @__PURE__ */ g(Be, { agentId: k.id }),
1194
- L === "security" && /* @__PURE__ */ _("div", {
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__ */ _(a, { children: [/* @__PURE__ */ g("div", {
1213
+ /* @__PURE__ */ g(a, { children: [/* @__PURE__ */ h("div", {
1198
1214
  className: "p-4 border-b border-border-default",
1199
- children: /* @__PURE__ */ _("h3", {
1215
+ children: /* @__PURE__ */ g("h3", {
1200
1216
  className: "font-semibold text-text-primary flex items-center gap-2",
1201
- children: [/* @__PURE__ */ g(Dt, { className: "size-5" }), S("agentDetails.agentApiKey", "Agent API Key")]
1217
+ children: [/* @__PURE__ */ h(At, { className: "size-5" }), x("agentDetails.agentApiKey", "Agent API Key")]
1202
1218
  })
1203
- }), /* @__PURE__ */ _("div", {
1219
+ }), /* @__PURE__ */ g("div", {
1204
1220
  className: "p-4",
1205
- children: [k.tunnelUrl ? /* @__PURE__ */ _("div", {
1221
+ children: [O.tunnelUrl ? /* @__PURE__ */ g("div", {
1206
1222
  className: "flex items-center gap-3",
1207
1223
  children: [
1208
- /* @__PURE__ */ _("div", {
1224
+ /* @__PURE__ */ g("div", {
1209
1225
  className: "flex-1 min-w-0",
1210
- children: [/* @__PURE__ */ g("code", {
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: E && D ? D : zn ? S("agentDetails.revealLoading", "Revealing…") : "•".repeat(32)
1213
- }), Vn && /* @__PURE__ */ g("p", {
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: Vn
1231
+ children: Gn
1216
1232
  })]
1217
1233
  }),
1218
- /* @__PURE__ */ g("button", {
1234
+ /* @__PURE__ */ h("button", {
1219
1235
  type: "button",
1220
- onClick: () => void yi(),
1221
- disabled: zn,
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": E ? S("agentDetails.hideApiKey", "Hide API key") : S("agentDetails.showApiKey", "Show API key"),
1224
- title: E ? S("agentDetails.hideApiKey", "Hide API key") : S("agentDetails.showApiKey", "Show API key"),
1225
- children: g(E ? Ct : St, {
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__ */ g("button", {
1246
+ /* @__PURE__ */ h("button", {
1231
1247
  type: "button",
1232
- onClick: vi,
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": S("agentDetails.copyApiKey", "Copy API key"),
1235
- title: S("agentDetails.copyApiKey", "Copy API key"),
1236
- children: In ? /* @__PURE__ */ g(pt, {
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__ */ g(_t, {
1255
+ }) : /* @__PURE__ */ h(bt, {
1240
1256
  className: "size-4 text-text-secondary",
1241
1257
  "aria-hidden": "true"
1242
1258
  })
1243
1259
  }),
1244
- /* @__PURE__ */ g("button", {
1260
+ /* @__PURE__ */ h("button", {
1245
1261
  type: "button",
1246
1262
  onClick: () => {
1247
- Xn(null), Kn(!0);
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": S("agentDetails.rotateApiKey", "Rotate API key"),
1251
- title: S("agentDetails.rotateApiKey", "Rotate API key"),
1252
- children: /* @__PURE__ */ g(f, {
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__ */ g("p", {
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__ */ g("p", {
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__ */ g(he, {
1267
- agentId: k.id,
1268
- currentTunnelUrl: k.tunnelUrl,
1269
- onUpdated: () => O()
1282
+ /* @__PURE__ */ h(he, {
1283
+ agentId: O.id,
1284
+ currentTunnelUrl: O.tunnelUrl,
1285
+ onUpdated: () => D()
1270
1286
  }),
1271
- /* @__PURE__ */ g(ge, {
1272
- agentId: k.id,
1273
- storageAdapter: k.storageAdapter,
1274
- dbPath: k.dbPath,
1275
- hasStorageOptions: k.hasStorageOptions,
1276
- onUpdated: () => O()
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__ */ g(ke, {
1279
- agent: k,
1280
- onUpdate: () => O()
1294
+ /* @__PURE__ */ h(Me, {
1295
+ agent: O,
1296
+ onUpdate: () => D()
1281
1297
  }),
1282
- /* @__PURE__ */ g(Te, {
1283
- agent: k,
1284
- currentUserId: tn?.id ?? null,
1285
- onUpdated: () => void O()
1298
+ /* @__PURE__ */ h(Oe, {
1299
+ agent: O,
1300
+ currentUserId: on?.id ?? null,
1301
+ onUpdated: () => void D()
1286
1302
  }),
1287
- /* @__PURE__ */ g(we, { agent: {
1288
- id: k.id,
1289
- profile: P ?? "default"
1303
+ /* @__PURE__ */ h(De, { agent: {
1304
+ id: O.id,
1305
+ profile: N ?? "default"
1290
1306
  } })
1291
1307
  ]
1292
1308
  }),
1293
- L === "plugins" && (() => {
1294
- let t = W.toLowerCase(), n = z.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 = mr.filter((e) => !e.installed && (!t || e.name.toLowerCase().includes(t) || e.packageName.toLowerCase().includes(t) || e.description.toLowerCase().includes(t))), i = z.filter((e) => e.hasUI), ee = i.filter((e) => !t || e.pluginName.toLowerCase().includes(t) || e.packageName.toLowerCase().includes(t)), te = [
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: jt
1315
+ icon: Pt
1300
1316
  },
1301
1317
  {
1302
1318
  id: "available",
1303
1319
  label: "Available",
1304
1320
  count: r.length,
1305
- icon: bt
1321
+ icon: Ct
1306
1322
  },
1307
1323
  {
1308
1324
  id: "store",
1309
1325
  label: "Store",
1310
- count: Rr.length,
1311
- icon: bt
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: Ot
1333
+ icon: jt
1318
1334
  }
1319
1335
  ];
1320
- return /* @__PURE__ */ g("div", {
1336
+ return /* @__PURE__ */ h("div", {
1321
1337
  className: "space-y-6",
1322
- children: /* @__PURE__ */ _(a, { children: [/* @__PURE__ */ _("div", {
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__ */ _("div", {
1341
+ /* @__PURE__ */ g("div", {
1326
1342
  className: "flex items-center justify-between gap-2",
1327
- children: [/* @__PURE__ */ _("h3", {
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__ */ g(jt, {
1346
+ /* @__PURE__ */ h(Pt, {
1331
1347
  className: "size-5",
1332
1348
  "aria-hidden": "true"
1333
1349
  }),
1334
1350
  "Plugins",
1335
- z.length > 0 && /* @__PURE__ */ _("span", {
1351
+ R.length > 0 && /* @__PURE__ */ g("span", {
1336
1352
  className: "text-sm font-normal text-text-secondary",
1337
1353
  children: [
1338
1354
  "(",
1339
- z.filter((e) => e.isCore).length,
1355
+ R.filter((e) => e.isCore).length,
1340
1356
  " core,",
1341
1357
  " ",
1342
- z.filter((e) => !e.isCore).length,
1358
+ R.filter((e) => !e.isCore).length,
1343
1359
  " external)"
1344
1360
  ]
1345
1361
  })
1346
1362
  ]
1347
- }), /* @__PURE__ */ g("button", {
1363
+ }), /* @__PURE__ */ h("button", {
1348
1364
  type: "button",
1349
- onClick: q,
1350
- disabled: gr,
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": S("agentDetails.refreshPlugins", "Refresh plugins"),
1353
- title: S("agentDetails.refreshPlugins", "Refresh plugins"),
1354
- children: /* @__PURE__ */ g(f, {
1355
- className: `size-4 ${gr ? "animate-spin" : ""}`,
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__ */ g(ce, {
1361
- value: W,
1362
- onChange: Lr,
1363
- placeholder: S("agentDetails.searchPluginsPlaceholder", "Search plugins by name, package, description, or tag...")
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__ */ g(Xt, {
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__ */ g(r, {
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: U,
1376
- onTabChange: (e) => Ir(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__ */ _("div", {
1398
+ }), /* @__PURE__ */ g("div", {
1383
1399
  className: "p-4 space-y-4",
1384
1400
  children: [
1385
- vr && /* @__PURE__ */ _("div", {
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__ */ g(Vt, {
1405
+ /* @__PURE__ */ h(Wt, {
1390
1406
  className: "size-4 flex-shrink-0",
1391
1407
  "aria-hidden": "true"
1392
1408
  }),
1393
- /* @__PURE__ */ g("span", {
1409
+ /* @__PURE__ */ h("span", {
1394
1410
  className: "flex-1 min-w-0 break-words",
1395
- children: vr
1411
+ children: Sr
1396
1412
  }),
1397
- /* @__PURE__ */ g("button", {
1413
+ /* @__PURE__ */ h("button", {
1398
1414
  type: "button",
1399
- onClick: () => H(null),
1400
- "aria-label": S("agentDetails.dismissError", "Dismiss error"),
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__ */ g(Vt, {
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
- !k?.isActive && /* @__PURE__ */ _("p", {
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__ */ g(Et, {
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
- U === "installed" && /* @__PURE__ */ g(h, { children: n.length > 0 ? /* @__PURE__ */ g("div", {
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__ */ _("div", {
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__ */ _("div", {
1437
+ children: [/* @__PURE__ */ g("div", {
1422
1438
  className: "min-w-0",
1423
1439
  children: [
1424
- /* @__PURE__ */ _("p", {
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__ */ g("span", {
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__ */ g("span", {
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__ */ g("span", {
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__ */ g("span", {
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__ */ g("span", {
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__ */ g("p", {
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__ */ _("div", {
1470
+ /* @__PURE__ */ g("div", {
1455
1471
  className: "flex items-center gap-2 mt-0.5 flex-wrap",
1456
1472
  children: [
1457
- !t.isCore && /* @__PURE__ */ g("span", {
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__ */ _("span", {
1477
+ t.cliCommand && /* @__PURE__ */ g("span", {
1462
1478
  className: "text-xs text-text-muted",
1463
1479
  children: [
1464
1480
  "cli:",
1465
1481
  " ",
1466
- /* @__PURE__ */ _("code", {
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__ */ _("span", {
1488
+ t.apiPrefix && /* @__PURE__ */ g("span", {
1473
1489
  className: "text-xs text-text-muted",
1474
1490
  children: [
1475
1491
  "api:",
1476
1492
  " ",
1477
- /* @__PURE__ */ g("code", {
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__ */ g("div", {
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__ */ g("span", {
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__ */ _("div", {
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__ */ _(v, {
1512
+ t.hasUI && /* @__PURE__ */ g(_, {
1497
1513
  type: "button",
1498
1514
  variant: "outline",
1499
1515
  size: "sm",
1500
- onClick: () => Ir("ui-plugins"),
1516
+ onClick: () => Br("ui-plugins"),
1501
1517
  title: `Open ${t.pluginName} UI`,
1502
- children: [/* @__PURE__ */ g(Ot, {
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__ */ _(v, {
1523
+ !t.isCore && /* @__PURE__ */ g(_, {
1508
1524
  type: "button",
1509
1525
  variant: "outline",
1510
1526
  size: "sm",
1511
- onClick: () => $r(t.packageName),
1512
- disabled: B === t.packageName,
1513
- title: S("agentDetails.updatePlugin", "Update plugin (latest or a specific version)"),
1514
- children: [B === t.packageName ? /* @__PURE__ */ g(d, {
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__ */ g(dt, {
1533
+ }) : /* @__PURE__ */ h(mt, {
1518
1534
  className: "size-3",
1519
1535
  "aria-hidden": "true"
1520
- }), S("agentDetails.update", "Update")]
1536
+ }), x("agentDetails.update", "Update")]
1521
1537
  }),
1522
- !t.isCore && /* @__PURE__ */ g(y, {
1538
+ !t.isCore && /* @__PURE__ */ h(v, {
1523
1539
  permission: e.AGENT_UPDATE,
1524
1540
  deniedBehavior: "hide",
1525
- children: /* @__PURE__ */ _(v, {
1541
+ children: /* @__PURE__ */ g(_, {
1526
1542
  type: "button",
1527
1543
  variant: "outline",
1528
1544
  size: "sm",
1529
- onClick: () => Zr(t.packageName),
1530
- disabled: B === t.packageName,
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: [B === t.packageName ? /* @__PURE__ */ g(d, {
1548
+ children: [z === t.packageName ? /* @__PURE__ */ h(d, {
1533
1549
  className: "size-3 animate-spin",
1534
1550
  "aria-hidden": "true"
1535
- }) : /* @__PURE__ */ g(Rt, {
1551
+ }) : /* @__PURE__ */ h(Vt, {
1536
1552
  className: "size-3",
1537
1553
  "aria-hidden": "true"
1538
- }), S("sessions.remove", "Remove")]
1554
+ }), x("sessions.remove", "Remove")]
1539
1555
  })
1540
1556
  })
1541
1557
  ]
1542
1558
  })]
1543
1559
  }, t.packageName))
1544
- }) : /* @__PURE__ */ g("p", {
1560
+ }) : /* @__PURE__ */ h("p", {
1545
1561
  className: "text-sm text-text-muted",
1546
- children: W ? "No installed plugins match your search." : "No plugin data available. Check agent connectivity or refresh."
1562
+ children: U ? "No installed plugins match your search." : "No plugin data available. Check agent connectivity or refresh."
1547
1563
  }) }),
1548
- U === "available" && /* @__PURE__ */ g(h, { children: r.length > 0 ? /* @__PURE__ */ g("div", {
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__ */ _("div", {
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__ */ _("div", {
1568
+ children: [/* @__PURE__ */ g("div", {
1553
1569
  className: "min-w-0",
1554
1570
  children: [
1555
- /* @__PURE__ */ g("p", {
1571
+ /* @__PURE__ */ h("p", {
1556
1572
  className: "text-sm font-medium text-text-primary",
1557
1573
  children: e.name
1558
1574
  }),
1559
- /* @__PURE__ */ g("p", {
1575
+ /* @__PURE__ */ h("p", {
1560
1576
  className: "text-xs text-text-secondary mt-0.5",
1561
1577
  children: e.description
1562
1578
  }),
1563
- /* @__PURE__ */ g("p", {
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__ */ _(v, {
1584
+ }), /* @__PURE__ */ g(_, {
1569
1585
  type: "button",
1570
1586
  size: "sm",
1571
- onClick: () => Xr(e.packageName),
1572
- disabled: B === e.packageName,
1587
+ onClick: () => ei(e.packageName),
1588
+ disabled: z === e.packageName,
1573
1589
  className: "flex-shrink-0 sm:ml-3",
1574
- children: [B === e.packageName ? /* @__PURE__ */ g(d, {
1590
+ children: [z === e.packageName ? /* @__PURE__ */ h(d, {
1575
1591
  className: "size-3 animate-spin",
1576
1592
  "aria-hidden": "true"
1577
- }) : /* @__PURE__ */ g(bt, {
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__ */ g("p", {
1599
+ }) : /* @__PURE__ */ h("p", {
1584
1600
  className: "text-sm text-text-muted",
1585
- children: W ? "No available plugins match your search." : mr.every((e) => e.installed) ? "All available plugins are already installed." : "No available plugins found."
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
- U === "store" && /* @__PURE__ */ _(h, { children: [G && /* @__PURE__ */ _("div", {
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__ */ g(Vt, {
1607
+ /* @__PURE__ */ h(Wt, {
1592
1608
  className: "size-4 flex-shrink-0",
1593
1609
  "aria-hidden": "true"
1594
1610
  }),
1595
- /* @__PURE__ */ g("span", {
1611
+ /* @__PURE__ */ h("span", {
1596
1612
  className: "flex-1 min-w-0 break-words",
1597
- children: G
1613
+ children: W
1598
1614
  }),
1599
- /* @__PURE__ */ g(v, {
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 X(),
1605
- disabled: Br,
1606
- children: S("agentDetails.retry", "Retry")
1620
+ onClick: () => void Y(),
1621
+ disabled: Wr,
1622
+ children: x("agentDetails.retry", "Retry")
1607
1623
  })
1608
1624
  ]
1609
- }), Br ? /* @__PURE__ */ g("p", {
1625
+ }), Wr ? /* @__PURE__ */ h("p", {
1610
1626
  role: "status",
1611
1627
  className: "text-sm text-text-muted",
1612
1628
  children: "Loading purchased plugins…"
1613
- }) : Rr.length === 0 ? /* @__PURE__ */ _("div", {
1629
+ }) : Hr.length === 0 ? /* @__PURE__ */ g("div", {
1614
1630
  className: "py-8 text-center",
1615
- children: [/* @__PURE__ */ g("p", {
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__ */ g("a", {
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__ */ g("div", {
1639
+ }) : /* @__PURE__ */ h("div", {
1624
1640
  className: "space-y-2",
1625
- children: Rr.map((e) => {
1626
- let t = Se(e.product?.manifest)?.packageName ?? null, n = z.some((e) => e.packageName === t);
1627
- return /* @__PURE__ */ _("div", {
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__ */ _("div", {
1645
+ children: [/* @__PURE__ */ g("div", {
1630
1646
  className: "flex items-start gap-3 min-w-0 flex-1",
1631
- children: [e.product?.icon ? /* @__PURE__ */ g("img", {
1632
- src: e.product.icon,
1633
- alt: "",
1634
- className: "size-10 rounded-md object-cover flex-shrink-0"
1635
- }) : /* @__PURE__ */ g("div", {
1636
- className: "size-10 flex-shrink-0 rounded-md bg-bg-sunken flex items-center justify-center",
1637
- children: /* @__PURE__ */ g(jt, {
1638
- className: "size-5 text-text-muted",
1639
- "aria-hidden": "true"
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__ */ _("div", {
1657
+ }), /* @__PURE__ */ g("div", {
1642
1658
  className: "min-w-0 flex-1",
1643
1659
  children: [
1644
- /* @__PURE__ */ _("div", {
1660
+ /* @__PURE__ */ g("div", {
1645
1661
  className: "flex items-center gap-2",
1646
- children: [/* @__PURE__ */ g("h4", {
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__ */ g("span", {
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__ */ g("p", {
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__ */ g("p", {
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__ */ g(v, {
1680
+ }), /* @__PURE__ */ h(_, {
1665
1681
  type: "button",
1666
1682
  size: "sm",
1667
- onClick: () => void ii(e.productId, e.licenseKey),
1668
- disabled: n || K === e.productId || !t,
1669
- "aria-busy": K === e.productId,
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" : K === e.productId ? "Installing…" : "Install"
1687
+ children: n ? "Installed" : G === e.productId ? "Installing…" : "Install"
1672
1688
  })]
1673
1689
  }, e.id);
1674
1690
  })
1675
1691
  })] }),
1676
- U === "ui-plugins" && /* @__PURE__ */ g(h, { children: i.length > 0 || k?.tunnelUrl ? /* @__PURE__ */ g(Ne, {
1677
- availablePlugins: [...k?.tunnelUrl ? [{
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: k?.tunnelUrl || null,
1690
- agentId: k?.id ?? null,
1691
- profile: P
1692
- }) : /* @__PURE__ */ g("p", {
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: W ? "No UI plugins match your search." : "No plugins with UI are currently installed."
1710
+ children: U ? "No UI plugins match your search." : "No plugins with UI are currently installed."
1695
1711
  }) }),
1696
- gr && z.length === 0 && /* @__PURE__ */ _("div", {
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__ */ g(d, {
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
- L === "sessions" && /* @__PURE__ */ _(a, { children: [/* @__PURE__ */ _("div", {
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__ */ _("h3", {
1727
+ /* @__PURE__ */ g("h3", {
1712
1728
  className: "font-semibold text-text-primary flex items-center gap-2",
1713
1729
  children: [
1714
- /* @__PURE__ */ g(Lt, { className: "size-5" }),
1715
- S("nav.sessions", "Sessions"),
1730
+ /* @__PURE__ */ h(Bt, { className: "size-5" }),
1731
+ x("nav.sessions", "Sessions"),
1716
1732
  " (",
1717
- J.length,
1733
+ q.length,
1718
1734
  ")"
1719
1735
  ]
1720
1736
  }),
1721
- /* @__PURE__ */ g("p", {
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: S("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.")
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__ */ _("div", {
1742
+ /* @__PURE__ */ g("div", {
1727
1743
  className: "flex items-center gap-2",
1728
- children: [/* @__PURE__ */ g(y, {
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__ */ _(v, {
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: () => pn(!0),
1738
- disabled: mn,
1739
- "aria-busy": mn,
1740
- children: [/* @__PURE__ */ g(f, {
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
- }), S("agentDetails.checkSessionHealth", "Check session health")]
1759
+ }), x("agentDetails.checkSessionHealth", "Check session health")]
1744
1760
  })
1745
- }), /* @__PURE__ */ g(y, {
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__ */ _(v, {
1765
+ children: /* @__PURE__ */ g(_, {
1750
1766
  type: "button",
1751
1767
  size: "sm",
1752
1768
  "data-testid": "create-session-btn",
1753
- onClick: wi,
1754
- children: [/* @__PURE__ */ g(At, {
1769
+ onClick: Di,
1770
+ children: [/* @__PURE__ */ h(Nt, {
1755
1771
  className: "size-4",
1756
1772
  "aria-hidden": "true"
1757
- }), S("sessions.createSession", "Create Session")]
1773
+ }), x("sessions.createSession", "Create Session")]
1758
1774
  })
1759
1775
  })]
1760
1776
  })
1761
1777
  ]
1762
- }), J.length > 0 ? /* @__PURE__ */ g("div", {
1778
+ }), q.length > 0 ? /* @__PURE__ */ h("div", {
1763
1779
  className: "divide-y divide-border-default",
1764
- children: J.map((e) => /* @__PURE__ */ _("div", {
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(), Ci(e.id));
1784
+ t.target === t.currentTarget && (t.key === "Enter" || t.key === " ") && (t.preventDefault(), Ei(e.id));
1769
1785
  },
1770
- onClick: () => Ci(e.id),
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__ */ _("div", {
1788
+ children: [/* @__PURE__ */ g("div", {
1773
1789
  className: "flex items-center gap-3 min-w-0",
1774
- children: [/* @__PURE__ */ g(Lt, {
1790
+ children: [/* @__PURE__ */ h(Bt, {
1775
1791
  className: "size-5 text-text-secondary flex-shrink-0",
1776
1792
  "aria-hidden": "true"
1777
- }), /* @__PURE__ */ _("div", {
1793
+ }), /* @__PURE__ */ g("div", {
1778
1794
  className: "min-w-0",
1779
- children: [/* @__PURE__ */ g("p", {
1795
+ children: [/* @__PURE__ */ h("p", {
1780
1796
  className: "font-medium text-text-primary truncate",
1781
1797
  children: e.name
1782
- }), /* @__PURE__ */ g("p", {
1798
+ }), /* @__PURE__ */ h("p", {
1783
1799
  className: "text-sm text-text-secondary truncate",
1784
1800
  children: e.type
1785
1801
  })]
1786
1802
  })]
1787
- }), /* @__PURE__ */ g(le, { status: e.status })]
1803
+ }), /* @__PURE__ */ h(le, { status: e.status })]
1788
1804
  }, e.id))
1789
- }) : /* @__PURE__ */ _("div", {
1805
+ }) : /* @__PURE__ */ g("div", {
1790
1806
  className: "p-6 text-center text-text-secondary flex flex-col items-center gap-3",
1791
- children: [/* @__PURE__ */ g("span", { children: S("agentDetails.noSessionsOnAgent", "No sessions on this agent") }), /* @__PURE__ */ g(y, {
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__ */ _(v, {
1811
+ children: /* @__PURE__ */ g(_, {
1796
1812
  type: "button",
1797
1813
  size: "sm",
1798
1814
  "data-testid": "create-session-empty-btn",
1799
- onClick: wi,
1800
- children: [/* @__PURE__ */ g(At, {
1815
+ onClick: Di,
1816
+ children: [/* @__PURE__ */ h(Nt, {
1801
1817
  className: "size-4",
1802
1818
  "aria-hidden": "true"
1803
- }), S("sessions.createSession", "Create Session")]
1819
+ }), x("sessions.createSession", "Create Session")]
1804
1820
  })
1805
1821
  })]
1806
1822
  })] }),
1807
- L === "connection" && /* @__PURE__ */ g(a, {
1823
+ I === "connection" && /* @__PURE__ */ h(a, {
1808
1824
  className: "min-h-[60vh]",
1809
- children: /* @__PURE__ */ g(pe, {
1810
- agentId: k.id,
1811
- agentName: k.name
1825
+ children: /* @__PURE__ */ h(pe, {
1826
+ agentId: O.id,
1827
+ agentName: O.name
1812
1828
  })
1813
1829
  }),
1814
- L === "logs" && /* @__PURE__ */ _(a, { children: [/* @__PURE__ */ g("div", {
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__ */ _("h3", {
1832
+ children: /* @__PURE__ */ g("h3", {
1817
1833
  className: "font-semibold text-text-primary flex items-center gap-2",
1818
- children: [/* @__PURE__ */ g(Mt, { className: "size-5" }), S("nav.logs", "Logs")]
1834
+ children: [/* @__PURE__ */ h(Ft, { className: "size-5" }), x("nav.logs", "Logs")]
1819
1835
  })
1820
- }), /* @__PURE__ */ g("div", {
1836
+ }), /* @__PURE__ */ h("div", {
1821
1837
  className: "p-4",
1822
- children: /* @__PURE__ */ g(Fe, {
1823
- agentId: k.id,
1824
- profile: P,
1838
+ children: /* @__PURE__ */ h(Re, {
1839
+ agentId: O.id,
1840
+ profile: N,
1825
1841
  className: "min-h-[28rem]"
1826
1842
  })
1827
1843
  })] }),
1828
- L === "vibes" && /* @__PURE__ */ _(a, { children: [/* @__PURE__ */ g("div", {
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__ */ _("h3", {
1846
+ children: /* @__PURE__ */ g("h3", {
1831
1847
  className: "font-semibold text-text-primary flex items-center gap-2",
1832
1848
  children: [
1833
- /* @__PURE__ */ g(m, { className: "size-5" }),
1834
- S("nav.vibes", "Vibes"),
1849
+ /* @__PURE__ */ h(Gt, { className: "size-5" }),
1850
+ x("nav.vibes", "Vibes"),
1835
1851
  " (",
1836
- Y.length,
1852
+ J.length,
1837
1853
  ")"
1838
1854
  ]
1839
1855
  })
1840
- }), Y.length > 0 ? /* @__PURE__ */ g("div", {
1856
+ }), J.length > 0 ? /* @__PURE__ */ h("div", {
1841
1857
  className: "divide-y divide-border-default",
1842
- children: Y.map((e) => /* @__PURE__ */ _("div", {
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(), Ti(e.id));
1862
+ t.target === t.currentTarget && (t.key === "Enter" || t.key === " ") && (t.preventDefault(), Oi(e.id));
1847
1863
  },
1848
- onClick: () => Ti(e.id),
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__ */ _("div", {
1866
+ children: [/* @__PURE__ */ g("div", {
1851
1867
  className: "flex items-center gap-3 min-w-0",
1852
- children: [/* @__PURE__ */ g(m, {
1868
+ children: [/* @__PURE__ */ h(Gt, {
1853
1869
  className: "size-5 text-text-secondary flex-shrink-0",
1854
1870
  "aria-hidden": "true"
1855
- }), /* @__PURE__ */ _("div", {
1871
+ }), /* @__PURE__ */ g("div", {
1856
1872
  className: "min-w-0",
1857
- children: [/* @__PURE__ */ g("p", {
1873
+ children: [/* @__PURE__ */ h("p", {
1858
1874
  className: "font-medium text-text-primary truncate",
1859
1875
  children: e.name
1860
- }), /* @__PURE__ */ g("p", {
1876
+ }), /* @__PURE__ */ h("p", {
1861
1877
  className: "text-sm text-text-secondary truncate",
1862
1878
  children: e.type
1863
1879
  })]
1864
1880
  })]
1865
- }), /* @__PURE__ */ g(le, { status: e.status })]
1881
+ }), /* @__PURE__ */ h(le, { status: e.status })]
1866
1882
  }, e.id))
1867
- }) : /* @__PURE__ */ g("div", {
1883
+ }) : /* @__PURE__ */ h("div", {
1868
1884
  className: "p-6 text-center text-text-secondary",
1869
- children: S("agentDetails.noVibesUsingAgent", "No vibes using this agent")
1885
+ children: x("agentDetails.noVibesUsingAgent", "No vibes using this agent")
1870
1886
  })] }),
1871
- L === "notes" && /* @__PURE__ */ g("div", {
1887
+ I === "notes" && /* @__PURE__ */ h("div", {
1872
1888
  className: "space-y-6",
1873
- children: /* @__PURE__ */ g(He, {
1889
+ children: /* @__PURE__ */ h(Ge, {
1874
1890
  context: "agent",
1875
- agentVibes: Y.map((e) => ({
1891
+ agentVibes: J.map((e) => ({
1876
1892
  id: e.id,
1877
1893
  name: e.name
1878
1894
  }))
1879
1895
  })
1880
1896
  }),
1881
- L === "aliases" && /* @__PURE__ */ g("div", {
1897
+ I === "aliases" && /* @__PURE__ */ h("div", {
1882
1898
  className: "space-y-6",
1883
- children: /* @__PURE__ */ g(_e, { agent: {
1884
- id: k.id,
1885
- profile: k.metadata?.profile ?? "default"
1899
+ children: /* @__PURE__ */ h(_e, { agent: {
1900
+ id: O.id,
1901
+ profile: O.metadata?.profile ?? "default"
1886
1902
  } })
1887
1903
  }),
1888
- L === "backup" && k.tunnelUrl && /* @__PURE__ */ g(oe, {
1889
- agentId: k.id,
1890
- profile: P
1904
+ I === "backup" && O.tunnelUrl && /* @__PURE__ */ h(oe, {
1905
+ agentId: O.id,
1906
+ profile: N
1891
1907
  }),
1892
- L === "backup" && !k.tunnelUrl && /* @__PURE__ */ _(a, {
1908
+ I === "backup" && !O.tunnelUrl && /* @__PURE__ */ g(a, {
1893
1909
  className: "p-6 text-center text-text-secondary",
1894
1910
  children: [
1895
- /* @__PURE__ */ g(yt, {
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__ */ g("p", { children: S("agentDetails.backupRequiresTunnelAndApiKey", "Agent tunnel URL and API key are required for backup management.") }),
1900
- /* @__PURE__ */ g("p", {
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: S("agentDetails.configureConnectionInOverview", "Configure the agent connection in the Overview tab.")
1918
+ children: x("agentDetails.configureConnectionInOverview", "Configure the agent connection in the Overview tab.")
1903
1919
  })
1904
1920
  ]
1905
1921
  }),
1906
- L === "maintenance" && /* @__PURE__ */ g(me, {
1907
- agentId: k.id,
1908
- agentVersion: k.version,
1909
- onAfterDestructiveNuke: mi
1922
+ I === "maintenance" && /* @__PURE__ */ h(me, {
1923
+ agentId: O.id,
1924
+ agentVersion: O.version,
1925
+ onAfterDestructiveNuke: _i
1910
1926
  }),
1911
- F && (() => {
1912
- let e = I.data.find((e) => e.contribution.id === L);
1913
- return !e || !k ? null : /* @__PURE__ */ g("div", {
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__ */ g(a, { children: /* @__PURE__ */ g("div", {
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__ */ g(Je, {
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: k.id },
1922
- agentId: k.id,
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
- F && k && /* @__PURE__ */ g(qe, {
1938
- isOpen: sr,
1939
- onClose: () => cr(!1),
1953
+ P && O && /* @__PURE__ */ h(Xe, {
1954
+ isOpen: dr,
1955
+ onClose: () => fr(!1),
1940
1956
  mountPoint: "agent.detailTab",
1941
- agentId: k.id,
1942
- profile: P ?? "default",
1957
+ agentId: O.id,
1958
+ profile: N ?? "default",
1943
1959
  onInstalled: () => {
1944
- I.refetch();
1960
+ F.refetch();
1945
1961
  }
1946
1962
  }),
1947
- /* @__PURE__ */ g(Oe, {
1948
- isOpen: gn,
1963
+ /* @__PURE__ */ h(je, {
1964
+ isOpen: bn,
1949
1965
  onClose: () => {
1950
- C || _n(!1);
1966
+ hn || xn(!1);
1951
1967
  },
1952
- onConfirm: () => void fr(),
1953
- agentName: k.name,
1954
- isLoading: C
1968
+ onConfirm: () => void gr(),
1969
+ agentName: O.name,
1970
+ isLoading: hn
1955
1971
  }),
1956
- /* @__PURE__ */ g(je, {
1957
- isOpen: fn,
1972
+ /* @__PURE__ */ h(Pe, {
1973
+ isOpen: _n,
1958
1974
  onClose: () => {
1959
- mn || pn(!1);
1975
+ S || vn(!1);
1960
1976
  },
1961
- onConfirm: () => void dr(),
1962
- isLoading: mn
1977
+ onConfirm: () => void hr(),
1978
+ isLoading: S
1963
1979
  }),
1964
- /* @__PURE__ */ g(i, {
1980
+ /* @__PURE__ */ h(i, {
1965
1981
  isOpen: Z !== void 0 && Q !== null,
1966
1982
  onClose: () => {
1967
- K || ci(null);
1983
+ G || X(null);
1968
1984
  },
1969
1985
  onConfirm: () => {
1970
1986
  let e = Z;
1971
- e && ii(e.productId, e.licenseKey).finally(() => ci(null));
1987
+ e && ci(e.productId, e.licenseKey).finally(() => X(null));
1972
1988
  },
1973
- title: S("agentDetails.confirmStoreInstallTitle", "Install plugin on this agent?"),
1974
- message: S("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.", {
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: k.name,
1977
- source: Q ? xe(Q) : ""
1992
+ name: O.name,
1993
+ source: Q ? we(Q) : ""
1978
1994
  }),
1979
- confirmLabel: S("agentDetails.confirmStoreInstallConfirm", "Install"),
1995
+ confirmLabel: x("agentDetails.confirmStoreInstallConfirm", "Install"),
1980
1996
  variant: "warning",
1981
- isLoading: K !== null
1997
+ isLoading: G !== null
1982
1998
  }),
1983
- /* @__PURE__ */ g(Ae, {
1999
+ /* @__PURE__ */ h(Ne, {
1984
2000
  agent: {
1985
- id: k.id,
1986
- name: k.name,
1987
- platform: k.platform,
1988
- architecture: k.architecture,
1989
- version: k.version,
1990
- tunnelUrl: k.tunnelUrl,
1991
- aiContext: k.aiContext,
1992
- metadata: k.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: Tn,
1995
- onClose: () => En(!1),
1996
- onSaved: () => o.success(S("agentDetails.configurationUpdated", "Agent configuration updated successfully"))
2010
+ isOpen: kn,
2011
+ onClose: () => An(!1),
2012
+ onSaved: () => o.success(x("agentDetails.configurationUpdated", "Agent configuration updated successfully"))
1997
2013
  }),
1998
- /* @__PURE__ */ g(Me, {
1999
- agentId: k.id,
2000
- agentName: k.name,
2001
- probe: M.get(k.id),
2002
- isOpen: Zn,
2003
- onClose: () => Qn(!1),
2004
- onCreated: () => o.success(S("sessions.createdSuccess", "Session created successfully")),
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
- Qn(!1), Ge(), Pr("session"), Mr(!0);
2022
+ nr(!1), Je(), Rr("session"), Ir(!0);
2007
2023
  }
2008
2024
  }),
2009
- /* @__PURE__ */ g(i, {
2010
- isOpen: yr !== null,
2011
- onClose: () => br(null),
2025
+ /* @__PURE__ */ h(i, {
2026
+ isOpen: Cr !== null,
2027
+ onClose: () => wr(null),
2012
2028
  onConfirm: () => {
2013
- let e = yr;
2014
- br(null), e && Qr(e);
2029
+ let e = Cr;
2030
+ wr(null), e && ni(e);
2015
2031
  },
2016
- title: S("agentDetails.removePluginTitle", "Remove plugin"),
2017
- message: S("agentDetails.removePluginConfirm", "Remove plugin {{packageName}}?", { packageName: yr ?? "" }),
2018
- confirmLabel: S("sessions.remove", "Remove"),
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__ */ g(fe, {
2022
- isOpen: xr !== null,
2023
- onClose: () => Sr(null),
2037
+ /* @__PURE__ */ h(fe, {
2038
+ isOpen: Tr !== null,
2039
+ onClose: () => Er(null),
2024
2040
  onSubmit: (e) => {
2025
- let t = xr;
2026
- Sr(null), t && ei(t, e || void 0);
2041
+ let t = Tr;
2042
+ Er(null), t && ii(t, e || void 0);
2027
2043
  },
2028
- title: S("agentDetails.updatePluginTitle", "Update plugin"),
2029
- description: S("agentDetails.updatePluginPrompt", "Update {{packageName}} to which version? Leave blank for latest.", { packageName: xr ?? "" }),
2030
- label: S("agentDetails.updatePluginVersionLabel", "Version"),
2031
- placeholder: S("agentDetails.updatePluginVersionPlaceholder", "latest"),
2032
- confirmLabel: S("agentDetails.update", "Update")
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__ */ g(ee, {
2035
- isOpen: jr,
2036
- onClose: () => Mr(!1),
2050
+ /* @__PURE__ */ h(ee, {
2051
+ isOpen: Fr,
2052
+ onClose: () => Ir(!1),
2037
2053
  onConfirm: () => {
2038
- Mr(!1), x(Le);
2054
+ Ir(!1), b(Be);
2039
2055
  },
2040
- title: Ue(Nr).title,
2041
- message: Ue(Nr).message
2056
+ title: Ke(Lr).title,
2057
+ message: Ke(Lr).message
2042
2058
  }),
2043
- /* @__PURE__ */ g(i, {
2044
- isOpen: Cr,
2059
+ /* @__PURE__ */ h(i, {
2060
+ isOpen: Dr,
2045
2061
  onClose: () => {
2046
- kr || wr(!1);
2062
+ Nr || Or(!1);
2047
2063
  },
2048
- onConfirm: Si,
2049
- title: S("agentDetails.removeAgentTitle", "Remove agent"),
2050
- message: S("agentDetails.removeAgentMessage", "Remove “{{name}}” from this workspace.", { name: k.name }),
2051
- confirmLabel: S("sessions.remove", "Remove"),
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: kr,
2054
- children: /* @__PURE__ */ _("div", {
2069
+ isLoading: Nr,
2070
+ children: /* @__PURE__ */ g("div", {
2055
2071
  className: "space-y-2",
2056
- children: [/* @__PURE__ */ _("label", {
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__ */ g(Kt, {
2059
- checked: Tr,
2060
- disabled: kr,
2061
- onCheckedChange: (e) => Er(e === !0),
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__ */ _("span", {
2079
+ }), /* @__PURE__ */ g("span", {
2064
2080
  className: "min-w-0",
2065
- children: [/* @__PURE__ */ g("span", {
2081
+ children: [/* @__PURE__ */ h("span", {
2066
2082
  className: "block text-sm font-medium text-text-primary",
2067
- children: S("agentDetails.uninstallFromTarget", "Uninstall agent from the target")
2068
- }), /* @__PURE__ */ g("span", {
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: S("agentDetails.uninstallFromTargetDesc", "Also wipe all agent state + VibeControls plugins and uninstall the agent from the host machine. This cannot be undone.")
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__ */ _("label", {
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__ */ g(Kt, {
2076
- checked: Dr,
2077
- disabled: kr,
2078
- onCheckedChange: (e) => Or(e === !0),
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__ */ _("span", {
2096
+ }), /* @__PURE__ */ g("span", {
2081
2097
  className: "min-w-0",
2082
- children: [/* @__PURE__ */ g("span", {
2098
+ children: [/* @__PURE__ */ h("span", {
2083
2099
  className: "block text-sm font-medium text-text-primary",
2084
- children: S("agentDetails.deleteTarget", "Delete the mapped target")
2085
- }), /* @__PURE__ */ g("span", {
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: S("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.")
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__ */ g(i, {
2094
- isOpen: Gn,
2109
+ /* @__PURE__ */ h(i, {
2110
+ isOpen: Yn,
2095
2111
  onClose: () => {
2096
- qn || Kn(!1);
2112
+ Zn || Xn(!1);
2097
2113
  },
2098
- onConfirm: bi,
2099
- title: S("agentDetails.rotateApiKeyTitle", "Rotate agent API key"),
2100
- message: S("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: k.name }),
2101
- confirmLabel: S("agentDetails.rotateApiKey", "Rotate API key"),
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: qn,
2104
- children: Yn ? /* @__PURE__ */ g("p", {
2119
+ isLoading: Zn,
2120
+ children: $n ? /* @__PURE__ */ h("p", {
2105
2121
  className: "text-sm text-status-danger-text",
2106
2122
  role: "alert",
2107
- children: Yn
2123
+ children: $n
2108
2124
  }) : null
2109
2125
  })
2110
2126
  ]
2111
2127
  });
2112
2128
  }
2113
- export { b as AgentDetailsPage };
2129
+ export { y as AgentDetailsPage };