@burdenoff/microfe-vibecontrols 2026.1123.2 → 2026.1125.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/dist/components/actions/ActionForm.js +160 -159
  2. package/dist/components/actions/ActionSchedulesList.js +1 -1
  3. package/dist/components/agent-manager/AgentManagerCenter.js +3 -0
  4. package/dist/components/agent-manager/AgentManagerInputArea.js +168 -163
  5. package/dist/components/agent-manager/AgentManagerSessionItem.js +51 -46
  6. package/dist/components/agent-manager/AgentManagerSessionList.js +3 -0
  7. package/dist/components/agent-manager/BridleConfigPanel.js +79 -78
  8. package/dist/components/agent-manager/ProfilesPanel.js +61 -53
  9. package/dist/components/agents/AgentList.js +3 -0
  10. package/dist/components/agents/AgentMaintenanceTab.js +229 -229
  11. package/dist/components/agents/PluginUIPanel.js +3 -3
  12. package/dist/components/agents/backup/AgentBackupTab.js +127 -126
  13. package/dist/components/ai/AIContextsTab.js +93 -89
  14. package/dist/components/ai/AIKeysTab.js +3 -0
  15. package/dist/components/ai/AIPlaygroundTab.js +68 -64
  16. package/dist/components/ai/AIPromptsTab.js +78 -74
  17. package/dist/components/ai/AIQueueTab.js +6 -0
  18. package/dist/components/ai/AISessionsTab.js +56 -52
  19. package/dist/components/ai/AITasksTab.js +166 -159
  20. package/dist/components/ai/AITemplatesTab.js +3 -0
  21. package/dist/components/ai/BridleTab.js +3 -0
  22. package/dist/components/ai/InstructionFilesManager.js +101 -100
  23. package/dist/components/analytics/AnalyticsFilterBar.js +15 -14
  24. package/dist/components/catalog/CatalogForm.js +56 -55
  25. package/dist/components/docs/DocsEmptyState.js +3 -0
  26. package/dist/components/docs/DocsSettingsPanel.js +73 -72
  27. package/dist/components/docs/DocsTabPanel.js +71 -64
  28. package/dist/components/gitops/GitOpsProviderPicker.js +11 -10
  29. package/dist/components/gitops/GitOpsSetup.js +57 -56
  30. package/dist/components/graph/MeshRequestPanel.js +97 -96
  31. package/dist/components/idp-components/ComponentForm.js +121 -121
  32. package/dist/components/logs/LogViewer.js +75 -74
  33. package/dist/components/notes/NoteEditor.js +112 -111
  34. package/dist/components/notes/NoteList.js +3 -0
  35. package/dist/components/notes/NotesTabPanel.js +3 -0
  36. package/dist/components/overview/FleetActivityChart.js +44 -40
  37. package/dist/components/overview/FleetHealthCard.js +3 -0
  38. package/dist/components/overview/QuickActionsCard.js +3 -0
  39. package/dist/components/plugins/FleetRolloutDialog.js +3 -0
  40. package/dist/components/scorecard/ScorecardPanel.js +312 -311
  41. package/dist/components/sessions/SessionForm.js +1 -0
  42. package/dist/components/sessions/SessionList.js +3 -0
  43. package/dist/components/sessions/SessionPublicLinkPanel.js +67 -66
  44. package/dist/components/settings/SettingsForm.js +19 -19
  45. package/dist/components/shared/AgentSelector.js +45 -44
  46. package/dist/components/shared/EmptyState.d.ts +19 -1
  47. package/dist/components/shared/EmptyState.js +9 -3
  48. package/dist/components/shared/EntityVibeLinkControl.js +81 -80
  49. package/dist/components/shared/LinkToVibePanel.js +27 -26
  50. package/dist/components/templates/PublishTemplateForm.js +56 -56
  51. package/dist/components/templates/TemplateVariableEditor.js +30 -29
  52. package/dist/components/templates/TemplateWizard.js +132 -132
  53. package/dist/components/tunnels/TunnelCreateWizard.js +58 -58
  54. package/dist/components/tunnels/TunnelMetricTiles.js +3 -0
  55. package/dist/components/tunnels/TunnelPublicAccessPanel.js +46 -45
  56. package/dist/components/vibe/VibeAgentEmptyState.js +3 -0
  57. package/dist/components/vibe/VibeAgentSwitcher.js +78 -76
  58. package/dist/components/vibe/VibeLinkedEntitiesPanel.js +3 -0
  59. package/dist/components/vibe/VibeLlmContextTabPanel.js +186 -182
  60. package/dist/components/vibecalendar/ScheduleTaskModal.js +96 -95
  61. package/dist/components/vibedeck/VibeDeckButtonForm.js +143 -142
  62. package/dist/components/vibedeck/VibeDeckForm.js +55 -54
  63. package/dist/components/vibedeck/VibeDeckPublicLinkPanel.js +67 -66
  64. package/dist/components/vibes/VibeList.js +3 -0
  65. package/dist/hooks/useCachedInitialData.d.ts +2 -2
  66. package/dist/pages/ActionsPage.js +3 -0
  67. package/dist/pages/AgentDetailsPage.js +3 -0
  68. package/dist/pages/AgentGraphPage.js +9 -0
  69. package/dist/pages/AgentsPage.js +3 -0
  70. package/dist/pages/CatalogDetailPage.js +9 -0
  71. package/dist/pages/CatalogPage.js +3 -0
  72. package/dist/pages/ComponentDetailPage.js +7 -2
  73. package/dist/pages/ComponentsPage.js +3 -0
  74. package/dist/pages/EnvTopologyPage.js +55 -52
  75. package/dist/pages/HealthPage.js +9 -0
  76. package/dist/pages/LogsPage.js +3 -0
  77. package/dist/pages/NoteDetailsPage.js +3 -0
  78. package/dist/pages/OverviewPage.js +12 -0
  79. package/dist/pages/PluginDetailPage.js +9 -0
  80. package/dist/pages/PluginsCatalogPage.js +3 -0
  81. package/dist/pages/SessionDetailsPage.js +4 -1
  82. package/dist/pages/SessionsPage.js +501 -494
  83. package/dist/pages/TargetDetailsPage.js +9 -0
  84. package/dist/pages/TargetsPage.js +525 -522
  85. package/dist/pages/TemplateDetailPage.js +4 -2
  86. package/dist/pages/TemplatesPage.js +3 -0
  87. package/dist/pages/VibeAuditPage.js +9 -0
  88. package/dist/pages/VibeDeckPage.js +3 -0
  89. package/dist/pages/VibeDetailsPage.js +431 -416
  90. package/dist/pages/VibesPage.js +128 -125
  91. package/dist/pages/WebhooksPage.js +3 -0
  92. package/dist/pages/ai/AIBuilderPage.js +66 -65
  93. package/dist/pages/ai/AIPage.js +3 -0
  94. package/dist/pages/ai/AISessionDetailPage.js +162 -149
  95. package/dist/pages/ai/AgentManagerPage.js +3 -0
  96. package/dist/pages/tunnels/AuditTab.js +3 -0
  97. package/dist/pages/tunnels/DomainsTab.js +3 -0
  98. package/dist/pages/tunnels/ProvidersTab.js +3 -0
  99. package/dist/pages/tunnels/SessionsTab.js +3 -0
  100. package/dist/pages/tunnels/TunnelsTab.js +6 -0
  101. package/dist/pages/tunnels/UsageTab.js +3 -0
  102. package/dist/pages/tunnels/tabs/TunnelAuditTab.js +3 -0
  103. package/dist/pages/tunnels/tabs/TunnelSessionsTab.js +3 -0
  104. package/dist/pages/tunnels/tabs/TunnelUsageTab.js +3 -0
  105. package/package.json +3 -2
@@ -7,11 +7,12 @@ import { Card as i } from "../shared/Card.js";
7
7
  import { SelectionCheckbox as a } from "../shared/SelectionCheckbox.js";
8
8
  import "../sharing/index.js";
9
9
  import { EntityShareButton as o } from "../sharing/EntityShareButton.js";
10
- import { createContext as ee, deleteContext as s, fetchContexts as c, updateContext as l } from "../../services/aiApi.js";
10
+ import { createContext as s, deleteContext as c, fetchContexts as l, updateContext as ee } from "../../services/aiApi.js";
11
11
  import { useTr as u } from "../../shared/hooks/useTr.js";
12
- import { useCallback as d, useEffect as f, useMemo as p, useState as m } from "react";
13
- import { FileText as h, Pencil as g, Plus as _, Trash2 as v, X as y } from "lucide-react";
14
- import { jsx as b, jsxs as x } from "react/jsx-runtime";
12
+ import { useCallback as d, useEffect as f, useMemo as te, useState as p } from "react";
13
+ import { FileText as m, Pencil as h, Plus as g, Trash2 as _, X as v } from "lucide-react";
14
+ import { jsx as y, jsxs as b } from "react/jsx-runtime";
15
+ import { ThemedSelect as x } from "@burdenoff/fe-libs/ui";
15
16
  // src/components/ai/AIContextsTab.tsx
16
17
  var S = [
17
18
  {
@@ -45,13 +46,13 @@ var S = [
45
46
  tags: []
46
47
  };
47
48
  function w({ agent: w }) {
48
- let T = u(), [E, te] = m([]), [D, O] = m(!0), [k, A] = m(null), [j, M] = m("all"), [N, P] = m(!1), [F, I] = m(null), [L, R] = m(C), [z, B] = m(""), [V, H] = m(!1), [U, W] = m([]), [G, K] = m(!1), [q, J] = m(/* @__PURE__ */ new Set()), Y = d(async () => {
49
+ let T = u(), [E, ne] = p([]), [D, O] = p(!0), [k, A] = p(null), [j, M] = p("all"), [N, P] = p(!1), [F, I] = p(null), [L, R] = p(C), [z, B] = p(""), [V, H] = p(!1), [U, W] = p([]), [G, K] = p(!1), [q, J] = p(/* @__PURE__ */ new Set()), Y = d(async () => {
49
50
  O(!0), A(null);
50
51
  try {
51
52
  let e = {};
52
53
  j !== "all" && (e.type = j);
53
- let t = await c(w, e);
54
- te(t);
54
+ let t = await l(w, e);
55
+ ne(t);
55
56
  } catch (e) {
56
57
  A(e instanceof Error ? e.message : "Failed to load contexts");
57
58
  } finally {
@@ -61,29 +62,29 @@ function w({ agent: w }) {
61
62
  f(() => {
62
63
  Y();
63
64
  }, [Y]);
64
- let X = p(() => E.filter((e) => q.has(e.id)), [E, q]), Z = E.length > 0 && E.every((e) => q.has(e.id)), ne = E.some((e) => q.has(e.id)) && !Z, Q = () => {
65
+ let X = te(() => E.filter((e) => q.has(e.id)), [E, q]), Z = E.length > 0 && E.every((e) => q.has(e.id)), re = E.some((e) => q.has(e.id)) && !Z, Q = () => {
65
66
  I(null), R(C), B(""), P(!0);
66
- }, re = (e) => {
67
+ }, ie = (e) => {
67
68
  I(e.id), R({
68
69
  name: e.name,
69
70
  type: e.type,
70
71
  content: e.content,
71
72
  tags: e.tags ?? []
72
73
  }), B(""), P(!0);
73
- }, ie = async () => {
74
+ }, ae = async () => {
74
75
  H(!0);
75
76
  try {
76
- F ? await l(w, F, L) : await ee(w, L), P(!1), await Y();
77
+ F ? await ee(w, F, L) : await s(w, L), P(!1), await Y();
77
78
  } catch (e) {
78
79
  console.error("Failed to save context:", e);
79
80
  } finally {
80
81
  H(!1);
81
82
  }
82
- }, ae = async () => {
83
+ }, oe = async () => {
83
84
  if (U.length !== 0) {
84
85
  K(!0);
85
86
  try {
86
- await Promise.allSettled(U.map((e) => s(w, e))), J((e) => {
87
+ await Promise.allSettled(U.map((e) => c(w, e))), J((e) => {
87
88
  let t = new Set(e);
88
89
  return U.forEach((e) => t.delete(e)), t;
89
90
  }), W([]), await Y();
@@ -99,56 +100,56 @@ function w({ agent: w }) {
99
100
  ...t,
100
101
  tags: [...t.tags, e]
101
102
  })), B("");
102
- }, oe = (e) => {
103
+ }, se = (e) => {
103
104
  R((t) => ({
104
105
  ...t,
105
106
  tags: t.tags.filter((t) => t !== e)
106
107
  }));
107
- }, se = (e, t) => {
108
+ }, ce = (e, t) => {
108
109
  J((n) => {
109
110
  let r = new Set(n);
110
111
  return t ? r.add(e) : r.delete(e), r;
111
112
  });
112
113
  };
113
- return D ? /* @__PURE__ */ b(t, { message: T("vibecontrols.ai.contexts.loading", "Loading contexts...") }) : k ? /* @__PURE__ */ b(n, {
114
+ return D ? /* @__PURE__ */ y(t, { message: T("vibecontrols.ai.contexts.loading", "Loading contexts...") }) : k ? /* @__PURE__ */ y(n, {
114
115
  title: T("vibecontrols.ai.contexts.loadFailed", "Failed to load contexts"),
115
116
  message: k,
116
117
  onRetry: Y
117
- }) : /* @__PURE__ */ x("div", {
118
+ }) : /* @__PURE__ */ b("div", {
118
119
  className: "space-y-4",
119
120
  children: [
120
- /* @__PURE__ */ x("div", {
121
+ /* @__PURE__ */ b("div", {
121
122
  className: "flex flex-col sm:flex-row items-stretch sm:items-center gap-2",
122
123
  children: [
123
- /* @__PURE__ */ b("select", {
124
+ /* @__PURE__ */ y(x, {
124
125
  value: j,
125
126
  onChange: (e) => M(e.target.value),
126
127
  className: "px-3 py-2 bg-bg-sunken border border-border-default rounded-md text-text-primary text-sm",
127
- children: S.map((e) => /* @__PURE__ */ b("option", {
128
+ children: S.map((e) => /* @__PURE__ */ y("option", {
128
129
  value: e.value,
129
130
  children: e.label
130
131
  }, e.value))
131
132
  }),
132
- /* @__PURE__ */ b("div", { className: "flex-1" }),
133
- /* @__PURE__ */ x("button", {
133
+ /* @__PURE__ */ y("div", { className: "flex-1" }),
134
+ /* @__PURE__ */ b("button", {
134
135
  type: "button",
135
136
  onClick: Q,
136
137
  className: "flex items-center gap-2 px-4 py-2 bg-action-primary-bg text-action-primary-text rounded-md hover:bg-action-primary-bg-hover transition-colors text-sm",
137
- children: [/* @__PURE__ */ b(_, { className: "size-4" }), T("vibecontrols.ai.contexts.newContext", "New Context")]
138
+ children: [/* @__PURE__ */ y(g, { className: "size-4" }), T("vibecontrols.ai.contexts.newContext", "New Context")]
138
139
  })
139
140
  ]
140
141
  }),
141
- E.length > 0 && /* @__PURE__ */ b("div", {
142
+ E.length > 0 && /* @__PURE__ */ y("div", {
142
143
  className: "rounded-lg border border-border-default bg-bg-surface p-4",
143
- children: /* @__PURE__ */ x("div", {
144
+ children: /* @__PURE__ */ b("div", {
144
145
  className: "flex flex-col gap-3 lg:flex-row lg:items-center lg:justify-between",
145
- children: [/* @__PURE__ */ x("div", {
146
+ children: [/* @__PURE__ */ b("div", {
146
147
  className: "flex flex-wrap items-center gap-3",
147
- children: [/* @__PURE__ */ x("div", {
148
+ children: [/* @__PURE__ */ b("div", {
148
149
  className: "flex items-center gap-2",
149
- children: [/* @__PURE__ */ b(a, {
150
+ children: [/* @__PURE__ */ y(a, {
150
151
  checked: Z,
151
- indeterminate: ne,
152
+ indeterminate: re,
152
153
  onChange: (e) => {
153
154
  J((t) => {
154
155
  let n = new Set(t);
@@ -158,26 +159,26 @@ function w({ agent: w }) {
158
159
  });
159
160
  },
160
161
  ariaLabel: "Select all visible contexts"
161
- }), /* @__PURE__ */ b("span", {
162
+ }), /* @__PURE__ */ y("span", {
162
163
  className: "text-sm font-medium text-text-primary",
163
164
  children: T("vibecontrols.ai.contexts.selectAllVisible", "Select all visible")
164
165
  })]
165
- }), q.size > 0 && /* @__PURE__ */ b("button", {
166
+ }), q.size > 0 && /* @__PURE__ */ y("button", {
166
167
  type: "button",
167
168
  onClick: () => J(/* @__PURE__ */ new Set()),
168
169
  className: "text-sm text-text-secondary hover:text-text-primary",
169
170
  children: T("vibecontrols.ai.contexts.clearSelection", "Clear selection")
170
171
  })]
171
- }), /* @__PURE__ */ x("div", {
172
+ }), /* @__PURE__ */ b("div", {
172
173
  className: "flex flex-wrap items-center gap-2",
173
- children: [/* @__PURE__ */ x("span", {
174
+ children: [/* @__PURE__ */ b("span", {
174
175
  className: "rounded-full bg-bg-sunken px-3 py-1 text-sm font-medium text-text-secondary",
175
176
  children: [
176
177
  q.size,
177
178
  " ",
178
179
  T("vibecontrols.ai.contexts.selected", "selected")
179
180
  ]
180
- }), /* @__PURE__ */ x("button", {
181
+ }), /* @__PURE__ */ b("button", {
181
182
  type: "button",
182
183
  onClick: () => W(X.map((e) => e.id)),
183
184
  disabled: X.length === 0,
@@ -187,56 +188,59 @@ function w({ agent: w }) {
187
188
  })]
188
189
  })
189
190
  }),
190
- E.length === 0 ? /* @__PURE__ */ b(r, {
191
- icon: /* @__PURE__ */ b(h, { className: "size-8 text-text-secondary" }),
191
+ E.length === 0 ? /* @__PURE__ */ y(r, {
192
+ kind: "first-use",
193
+ glassIllustration: "documents",
194
+ size: "panel",
195
+ icon: /* @__PURE__ */ y(m, { className: "size-8 text-text-secondary" }),
192
196
  title: T("vibecontrols.ai.contexts.emptyTitle", "No contexts yet"),
193
197
  description: T("vibecontrols.ai.contexts.emptyDescription", "Create contexts to provide additional information to your AI sessions"),
194
- action: /* @__PURE__ */ x("button", {
198
+ action: /* @__PURE__ */ b("button", {
195
199
  type: "button",
196
200
  onClick: Q,
197
201
  className: "flex items-center gap-2 px-4 py-2 bg-action-primary-bg text-action-primary-text rounded-md hover:bg-action-primary-bg-hover transition-colors",
198
- children: [/* @__PURE__ */ b(_, { className: "size-4" }), T("vibecontrols.ai.contexts.newContext", "New Context")]
202
+ children: [/* @__PURE__ */ y(g, { className: "size-4" }), T("vibecontrols.ai.contexts.newContext", "New Context")]
199
203
  })
200
- }) : /* @__PURE__ */ b("div", {
204
+ }) : /* @__PURE__ */ y("div", {
201
205
  className: "grid grid-cols-1 md:grid-cols-2 gap-4",
202
- children: E.map((e) => /* @__PURE__ */ x(i, {
206
+ children: E.map((e) => /* @__PURE__ */ b(i, {
203
207
  className: `p-4 ${q.has(e.id) ? "border-action-primary-bg ring-1 ring-action-primary-bg/25" : ""}`,
204
208
  children: [
205
- /* @__PURE__ */ x("div", {
209
+ /* @__PURE__ */ b("div", {
206
210
  className: "flex items-start justify-between gap-2",
207
- children: [/* @__PURE__ */ x("div", {
211
+ children: [/* @__PURE__ */ b("div", {
208
212
  className: "flex items-start gap-3 min-w-0 flex-1",
209
- children: [/* @__PURE__ */ b("div", {
213
+ children: [/* @__PURE__ */ y("div", {
210
214
  onClick: (e) => e.stopPropagation(),
211
- children: /* @__PURE__ */ b(a, {
215
+ children: /* @__PURE__ */ y(a, {
212
216
  checked: q.has(e.id),
213
- onChange: (t) => se(e.id, t),
217
+ onChange: (t) => ce(e.id, t),
214
218
  ariaLabel: `Select context ${e.name}`
215
219
  })
216
- }), /* @__PURE__ */ b("div", {
220
+ }), /* @__PURE__ */ y("div", {
217
221
  className: "min-w-0 flex-1",
218
- children: /* @__PURE__ */ x("div", {
222
+ children: /* @__PURE__ */ b("div", {
219
223
  className: "flex items-center gap-2",
220
- children: [/* @__PURE__ */ b("h4", {
224
+ children: [/* @__PURE__ */ y("h4", {
221
225
  className: "font-semibold text-text-primary truncate",
222
226
  children: e.name
223
- }), /* @__PURE__ */ b("span", {
227
+ }), /* @__PURE__ */ y("span", {
224
228
  className: "px-1.5 py-0.5 text-xs bg-[var(--color-accent-soft)] text-text-primary rounded",
225
229
  children: e.type
226
230
  })]
227
231
  })
228
232
  })]
229
- }), /* @__PURE__ */ x("div", {
233
+ }), /* @__PURE__ */ b("div", {
230
234
  className: "flex items-center gap-1 flex-shrink-0",
231
235
  children: [
232
- /* @__PURE__ */ b("button", {
236
+ /* @__PURE__ */ y("button", {
233
237
  type: "button",
234
- onClick: () => re(e),
238
+ onClick: () => ie(e),
235
239
  className: "p-1.5 hover:bg-bg-sunken rounded-md transition-colors",
236
240
  title: "Edit",
237
- children: /* @__PURE__ */ b(g, { className: "size-3.5 text-text-secondary" })
241
+ children: /* @__PURE__ */ y(h, { className: "size-3.5 text-text-secondary" })
238
242
  }),
239
- /* @__PURE__ */ b(o, {
243
+ /* @__PURE__ */ y(o, {
240
244
  entity: "aicontext",
241
245
  resource: {
242
246
  id: e.id,
@@ -244,23 +248,23 @@ function w({ agent: w }) {
244
248
  },
245
249
  label: T("vibecontrols.ai.contexts.share", "Share")
246
250
  }),
247
- /* @__PURE__ */ b("button", {
251
+ /* @__PURE__ */ y("button", {
248
252
  type: "button",
249
253
  onClick: () => W([e.id]),
250
254
  className: "p-1.5 hover:bg-status-error-bg rounded-md transition-colors",
251
255
  title: "Delete",
252
- children: /* @__PURE__ */ b(v, { className: "size-3.5 text-status-error-text" })
256
+ children: /* @__PURE__ */ y(_, { className: "size-3.5 text-status-error-text" })
253
257
  })
254
258
  ]
255
259
  })]
256
260
  }),
257
- /* @__PURE__ */ b("pre", {
261
+ /* @__PURE__ */ y("pre", {
258
262
  className: "mt-2 text-xs text-text-secondary bg-bg-sunken rounded p-2 max-h-20 overflow-auto whitespace-pre-wrap",
259
263
  children: e.content
260
264
  }),
261
- e.tags.length > 0 && /* @__PURE__ */ b("div", {
265
+ e.tags.length > 0 && /* @__PURE__ */ y("div", {
262
266
  className: "mt-2 flex flex-wrap gap-1",
263
- children: e.tags.map((e) => /* @__PURE__ */ b("span", {
267
+ children: e.tags.map((e) => /* @__PURE__ */ y("span", {
264
268
  className: "px-1.5 py-0.5 text-xs bg-bg-sunken text-text-secondary rounded",
265
269
  children: e
266
270
  }, e))
@@ -268,7 +272,7 @@ function w({ agent: w }) {
268
272
  ]
269
273
  }, e.id))
270
274
  }),
271
- N && /* @__PURE__ */ b("div", {
275
+ N && /* @__PURE__ */ y("div", {
272
276
  role: "button",
273
277
  tabIndex: 0,
274
278
  onKeyDown: (e) => {
@@ -276,29 +280,29 @@ function w({ agent: w }) {
276
280
  },
277
281
  className: "fixed inset-0 bg-bg-overlay flex items-center justify-center z-50 p-4",
278
282
  onClick: () => P(!1),
279
- children: /* @__PURE__ */ x("div", {
283
+ children: /* @__PURE__ */ b("div", {
280
284
  className: "bg-bg-surface border border-border-default rounded-lg shadow-xl w-full max-w-lg max-h-[90vh] overflow-y-auto p-6",
281
285
  onClick: (e) => e.stopPropagation(),
282
286
  children: [
283
- /* @__PURE__ */ x("div", {
287
+ /* @__PURE__ */ b("div", {
284
288
  className: "flex items-center justify-between mb-4",
285
- children: [/* @__PURE__ */ b("h3", {
289
+ children: [/* @__PURE__ */ y("h3", {
286
290
  className: "text-lg font-semibold text-text-primary",
287
291
  children: F ? T("vibecontrols.ai.contexts.editContext", "Edit Context") : T("vibecontrols.ai.contexts.newContext", "New Context")
288
- }), /* @__PURE__ */ b("button", {
292
+ }), /* @__PURE__ */ y("button", {
289
293
  type: "button",
290
294
  onClick: () => P(!1),
291
295
  className: "p-1 hover:bg-bg-sunken rounded-md",
292
- children: /* @__PURE__ */ b(y, { className: "size-4 text-text-secondary" })
296
+ children: /* @__PURE__ */ y(v, { className: "size-4 text-text-secondary" })
293
297
  })]
294
298
  }),
295
- /* @__PURE__ */ x("div", {
299
+ /* @__PURE__ */ b("div", {
296
300
  className: "space-y-4",
297
301
  children: [
298
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
302
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("label", {
299
303
  className: "block text-sm font-medium text-text-primary mb-1",
300
304
  children: T("vibecontrols.ai.contexts.name", "Name")
301
- }), /* @__PURE__ */ b("input", {
305
+ }), /* @__PURE__ */ y("input", {
302
306
  "aria-label": "control",
303
307
  type: "text",
304
308
  value: L.name,
@@ -309,25 +313,25 @@ function w({ agent: w }) {
309
313
  className: "w-full px-3 py-2 bg-bg-sunken border border-border-default rounded-md text-text-primary text-sm focus:outline-none focus:border-border-strong",
310
314
  placeholder: T("vibecontrols.ai.contexts.namePlaceholder", "Context name")
311
315
  })] }),
312
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
316
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("label", {
313
317
  className: "block text-sm font-medium text-text-primary mb-1",
314
318
  children: T("vibecontrols.ai.contexts.type", "Type")
315
- }), /* @__PURE__ */ b("select", {
319
+ }), /* @__PURE__ */ y(x, {
316
320
  value: L.type,
317
321
  onChange: (e) => R({
318
322
  ...L,
319
323
  type: e.target.value
320
324
  }),
321
325
  className: "w-full px-3 py-2 bg-bg-sunken border border-border-default rounded-md text-text-primary text-sm",
322
- children: S.filter((e) => e.value !== "all").map((e) => /* @__PURE__ */ b("option", {
326
+ children: S.filter((e) => e.value !== "all").map((e) => /* @__PURE__ */ y("option", {
323
327
  value: e.value,
324
328
  children: e.label
325
329
  }, e.value))
326
330
  })] }),
327
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
331
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("label", {
328
332
  className: "block text-sm font-medium text-text-primary mb-1",
329
333
  children: T("vibecontrols.ai.contexts.content", "Content")
330
- }), /* @__PURE__ */ b("textarea", {
334
+ }), /* @__PURE__ */ y("textarea", {
331
335
  "aria-label": "control",
332
336
  value: L.content,
333
337
  onChange: (e) => R({
@@ -338,25 +342,25 @@ function w({ agent: w }) {
338
342
  className: "w-full px-3 py-2 bg-bg-sunken border border-border-default rounded-md text-text-primary text-sm font-mono focus:outline-none focus:border-border-strong",
339
343
  placeholder: T("vibecontrols.ai.contexts.contentPlaceholder", "Context content...")
340
344
  })] }),
341
- /* @__PURE__ */ x("div", { children: [
342
- /* @__PURE__ */ b("label", {
345
+ /* @__PURE__ */ b("div", { children: [
346
+ /* @__PURE__ */ y("label", {
343
347
  className: "block text-sm font-medium text-text-primary mb-1",
344
348
  children: T("vibecontrols.ai.contexts.tags", "Tags")
345
349
  }),
346
- /* @__PURE__ */ b("div", {
350
+ /* @__PURE__ */ y("div", {
347
351
  className: "flex flex-wrap gap-1 mb-2",
348
- children: L.tags.map((e) => /* @__PURE__ */ x("span", {
352
+ children: L.tags.map((e) => /* @__PURE__ */ b("span", {
349
353
  className: "flex items-center gap-1 px-2 py-0.5 text-xs bg-bg-sunken text-text-primary rounded",
350
- children: [e, /* @__PURE__ */ b("button", {
354
+ children: [e, /* @__PURE__ */ y("button", {
351
355
  type: "button",
352
- onClick: () => oe(e),
353
- children: /* @__PURE__ */ b(y, { className: "size-3 text-text-secondary hover:text-status-error-text" })
356
+ onClick: () => se(e),
357
+ children: /* @__PURE__ */ y(v, { className: "size-3 text-text-secondary hover:text-status-error-text" })
354
358
  })]
355
359
  }, e))
356
360
  }),
357
- /* @__PURE__ */ x("div", {
361
+ /* @__PURE__ */ b("div", {
358
362
  className: "flex gap-2",
359
- children: [/* @__PURE__ */ b("input", {
363
+ children: [/* @__PURE__ */ y("input", {
360
364
  "aria-label": "control",
361
365
  type: "text",
362
366
  value: z,
@@ -366,7 +370,7 @@ function w({ agent: w }) {
366
370
  },
367
371
  className: "flex-1 px-3 py-1.5 bg-bg-sunken border border-border-default rounded text-sm text-text-primary focus:outline-none focus:border-border-strong",
368
372
  placeholder: T("vibecontrols.ai.contexts.addTagPlaceholder", "Add a tag...")
369
- }), /* @__PURE__ */ b("button", {
373
+ }), /* @__PURE__ */ y("button", {
370
374
  type: "button",
371
375
  onClick: $,
372
376
  className: "px-3 py-1.5 text-xs bg-bg-sunken border border-border-default rounded hover:bg-bg-surface transition-colors",
@@ -376,16 +380,16 @@ function w({ agent: w }) {
376
380
  ] })
377
381
  ]
378
382
  }),
379
- /* @__PURE__ */ x("div", {
383
+ /* @__PURE__ */ b("div", {
380
384
  className: "flex justify-end gap-2 mt-6",
381
- children: [/* @__PURE__ */ b("button", {
385
+ children: [/* @__PURE__ */ y("button", {
382
386
  type: "button",
383
387
  onClick: () => P(!1),
384
388
  className: "px-4 py-2 text-sm text-text-secondary hover:bg-bg-sunken rounded-md transition-colors",
385
389
  children: T("vibecontrols.ai.contexts.cancel", "Cancel")
386
- }), /* @__PURE__ */ b("button", {
390
+ }), /* @__PURE__ */ y("button", {
387
391
  type: "button",
388
- onClick: ie,
392
+ onClick: ae,
389
393
  disabled: V || !L.name || !L.content,
390
394
  className: "px-4 py-2 text-sm bg-action-primary-bg text-action-primary-text rounded-md hover:bg-action-primary-bg-hover transition-colors disabled:opacity-50",
391
395
  children: V ? T("vibecontrols.ai.contexts.saving", "Saving...") : F ? T("vibecontrols.ai.contexts.update", "Update") : T("vibecontrols.ai.contexts.create", "Create")
@@ -394,13 +398,13 @@ function w({ agent: w }) {
394
398
  ]
395
399
  })
396
400
  }),
397
- /* @__PURE__ */ b(e, {
401
+ /* @__PURE__ */ y(e, {
398
402
  isOpen: U.length > 0,
399
403
  title: U.length > 1 ? "Delete Contexts" : "Delete Context",
400
404
  message: U.length > 1 ? `Are you sure you want to delete ${U.length} selected contexts? This action cannot be undone.` : "Are you sure you want to delete this context? This action cannot be undone.",
401
405
  confirmLabel: G ? "Deleting..." : "Delete",
402
406
  variant: "danger",
403
- onConfirm: ae,
407
+ onConfirm: oe,
404
408
  onClose: () => W([])
405
409
  })
406
410
  ]
@@ -8,6 +8,9 @@ import { jsx as o, jsxs as s } from "react/jsx-runtime";
8
8
  function c({ agent: c, agentName: l }) {
9
9
  let u = t();
10
10
  if (!c.id) return /* @__PURE__ */ o(e, {
11
+ kind: "first-use",
12
+ glassIllustration: "assistant",
13
+ size: "panel",
11
14
  icon: /* @__PURE__ */ o(a, { className: "size-8 text-text-secondary" }),
12
15
  title: u("vibecontrols.ai.keys.noAgent", "No active agent available"),
13
16
  description: u("vibecontrols.ai.keys.noAgentDescription", "Provider keys are stored on an agent and read when a harness session starts. Connect an active agent to manage its keys.")