@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.
- package/dist/components/actions/ActionForm.js +160 -159
- package/dist/components/actions/ActionSchedulesList.js +1 -1
- package/dist/components/agent-manager/AgentManagerCenter.js +3 -0
- package/dist/components/agent-manager/AgentManagerInputArea.js +168 -163
- package/dist/components/agent-manager/AgentManagerSessionItem.js +51 -46
- package/dist/components/agent-manager/AgentManagerSessionList.js +3 -0
- package/dist/components/agent-manager/BridleConfigPanel.js +79 -78
- package/dist/components/agent-manager/ProfilesPanel.js +61 -53
- package/dist/components/agents/AgentList.js +3 -0
- package/dist/components/agents/AgentMaintenanceTab.js +229 -229
- package/dist/components/agents/PluginUIPanel.js +3 -3
- package/dist/components/agents/backup/AgentBackupTab.js +127 -126
- package/dist/components/ai/AIContextsTab.js +93 -89
- package/dist/components/ai/AIKeysTab.js +3 -0
- package/dist/components/ai/AIPlaygroundTab.js +68 -64
- package/dist/components/ai/AIPromptsTab.js +78 -74
- package/dist/components/ai/AIQueueTab.js +6 -0
- package/dist/components/ai/AISessionsTab.js +56 -52
- package/dist/components/ai/AITasksTab.js +166 -159
- package/dist/components/ai/AITemplatesTab.js +3 -0
- package/dist/components/ai/BridleTab.js +3 -0
- package/dist/components/ai/InstructionFilesManager.js +101 -100
- package/dist/components/analytics/AnalyticsFilterBar.js +15 -14
- package/dist/components/catalog/CatalogForm.js +56 -55
- package/dist/components/docs/DocsEmptyState.js +3 -0
- package/dist/components/docs/DocsSettingsPanel.js +73 -72
- package/dist/components/docs/DocsTabPanel.js +71 -64
- package/dist/components/gitops/GitOpsProviderPicker.js +11 -10
- package/dist/components/gitops/GitOpsSetup.js +57 -56
- package/dist/components/graph/MeshRequestPanel.js +97 -96
- package/dist/components/idp-components/ComponentForm.js +121 -121
- package/dist/components/logs/LogViewer.js +75 -74
- package/dist/components/notes/NoteEditor.js +112 -111
- package/dist/components/notes/NoteList.js +3 -0
- package/dist/components/notes/NotesTabPanel.js +3 -0
- package/dist/components/overview/FleetActivityChart.js +44 -40
- package/dist/components/overview/FleetHealthCard.js +3 -0
- package/dist/components/overview/QuickActionsCard.js +3 -0
- package/dist/components/plugins/FleetRolloutDialog.js +3 -0
- package/dist/components/scorecard/ScorecardPanel.js +312 -311
- package/dist/components/sessions/SessionForm.js +1 -0
- package/dist/components/sessions/SessionList.js +3 -0
- package/dist/components/sessions/SessionPublicLinkPanel.js +67 -66
- package/dist/components/settings/SettingsForm.js +19 -19
- package/dist/components/shared/AgentSelector.js +45 -44
- package/dist/components/shared/EmptyState.d.ts +19 -1
- package/dist/components/shared/EmptyState.js +9 -3
- package/dist/components/shared/EntityVibeLinkControl.js +81 -80
- package/dist/components/shared/LinkToVibePanel.js +27 -26
- package/dist/components/templates/PublishTemplateForm.js +56 -56
- package/dist/components/templates/TemplateVariableEditor.js +30 -29
- package/dist/components/templates/TemplateWizard.js +132 -132
- package/dist/components/tunnels/TunnelCreateWizard.js +58 -58
- package/dist/components/tunnels/TunnelMetricTiles.js +3 -0
- package/dist/components/tunnels/TunnelPublicAccessPanel.js +46 -45
- package/dist/components/vibe/VibeAgentEmptyState.js +3 -0
- package/dist/components/vibe/VibeAgentSwitcher.js +78 -76
- package/dist/components/vibe/VibeLinkedEntitiesPanel.js +3 -0
- package/dist/components/vibe/VibeLlmContextTabPanel.js +186 -182
- package/dist/components/vibecalendar/ScheduleTaskModal.js +96 -95
- package/dist/components/vibedeck/VibeDeckButtonForm.js +143 -142
- package/dist/components/vibedeck/VibeDeckForm.js +55 -54
- package/dist/components/vibedeck/VibeDeckPublicLinkPanel.js +67 -66
- package/dist/components/vibes/VibeList.js +3 -0
- package/dist/hooks/useCachedInitialData.d.ts +2 -2
- package/dist/pages/ActionsPage.js +3 -0
- package/dist/pages/AgentDetailsPage.js +3 -0
- package/dist/pages/AgentGraphPage.js +9 -0
- package/dist/pages/AgentsPage.js +3 -0
- package/dist/pages/CatalogDetailPage.js +9 -0
- package/dist/pages/CatalogPage.js +3 -0
- package/dist/pages/ComponentDetailPage.js +7 -2
- package/dist/pages/ComponentsPage.js +3 -0
- package/dist/pages/EnvTopologyPage.js +55 -52
- package/dist/pages/HealthPage.js +9 -0
- package/dist/pages/LogsPage.js +3 -0
- package/dist/pages/NoteDetailsPage.js +3 -0
- package/dist/pages/OverviewPage.js +12 -0
- package/dist/pages/PluginDetailPage.js +9 -0
- package/dist/pages/PluginsCatalogPage.js +3 -0
- package/dist/pages/SessionDetailsPage.js +4 -1
- package/dist/pages/SessionsPage.js +501 -494
- package/dist/pages/TargetDetailsPage.js +9 -0
- package/dist/pages/TargetsPage.js +525 -522
- package/dist/pages/TemplateDetailPage.js +4 -2
- package/dist/pages/TemplatesPage.js +3 -0
- package/dist/pages/VibeAuditPage.js +9 -0
- package/dist/pages/VibeDeckPage.js +3 -0
- package/dist/pages/VibeDetailsPage.js +431 -416
- package/dist/pages/VibesPage.js +128 -125
- package/dist/pages/WebhooksPage.js +3 -0
- package/dist/pages/ai/AIBuilderPage.js +66 -65
- package/dist/pages/ai/AIPage.js +3 -0
- package/dist/pages/ai/AISessionDetailPage.js +162 -149
- package/dist/pages/ai/AgentManagerPage.js +3 -0
- package/dist/pages/tunnels/AuditTab.js +3 -0
- package/dist/pages/tunnels/DomainsTab.js +3 -0
- package/dist/pages/tunnels/ProvidersTab.js +3 -0
- package/dist/pages/tunnels/SessionsTab.js +3 -0
- package/dist/pages/tunnels/TunnelsTab.js +6 -0
- package/dist/pages/tunnels/UsageTab.js +3 -0
- package/dist/pages/tunnels/tabs/TunnelAuditTab.js +3 -0
- package/dist/pages/tunnels/tabs/TunnelSessionsTab.js +3 -0
- package/dist/pages/tunnels/tabs/TunnelUsageTab.js +3 -0
- 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
|
|
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
|
|
13
|
-
import { FileText as
|
|
14
|
-
import { jsx as
|
|
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,
|
|
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
|
|
54
|
-
|
|
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 =
|
|
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
|
-
},
|
|
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
|
-
},
|
|
74
|
+
}, ae = async () => {
|
|
74
75
|
H(!0);
|
|
75
76
|
try {
|
|
76
|
-
F ? await
|
|
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
|
-
},
|
|
83
|
+
}, oe = async () => {
|
|
83
84
|
if (U.length !== 0) {
|
|
84
85
|
K(!0);
|
|
85
86
|
try {
|
|
86
|
-
await Promise.allSettled(U.map((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
|
-
},
|
|
103
|
+
}, se = (e) => {
|
|
103
104
|
R((t) => ({
|
|
104
105
|
...t,
|
|
105
106
|
tags: t.tags.filter((t) => t !== e)
|
|
106
107
|
}));
|
|
107
|
-
},
|
|
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__ */
|
|
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__ */
|
|
118
|
+
}) : /* @__PURE__ */ b("div", {
|
|
118
119
|
className: "space-y-4",
|
|
119
120
|
children: [
|
|
120
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
133
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
142
|
+
E.length > 0 && /* @__PURE__ */ y("div", {
|
|
142
143
|
className: "rounded-lg border border-border-default bg-bg-surface p-4",
|
|
143
|
-
children: /* @__PURE__ */
|
|
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__ */
|
|
146
|
+
children: [/* @__PURE__ */ b("div", {
|
|
146
147
|
className: "flex flex-wrap items-center gap-3",
|
|
147
|
-
children: [/* @__PURE__ */
|
|
148
|
+
children: [/* @__PURE__ */ b("div", {
|
|
148
149
|
className: "flex items-center gap-2",
|
|
149
|
-
children: [/* @__PURE__ */
|
|
150
|
+
children: [/* @__PURE__ */ y(a, {
|
|
150
151
|
checked: Z,
|
|
151
|
-
indeterminate:
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
172
|
+
}), /* @__PURE__ */ b("div", {
|
|
172
173
|
className: "flex flex-wrap items-center gap-2",
|
|
173
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
191
|
-
|
|
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__ */
|
|
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__ */
|
|
202
|
+
children: [/* @__PURE__ */ y(g, { className: "size-4" }), T("vibecontrols.ai.contexts.newContext", "New Context")]
|
|
199
203
|
})
|
|
200
|
-
}) : /* @__PURE__ */
|
|
204
|
+
}) : /* @__PURE__ */ y("div", {
|
|
201
205
|
className: "grid grid-cols-1 md:grid-cols-2 gap-4",
|
|
202
|
-
children: E.map((e) => /* @__PURE__ */
|
|
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__ */
|
|
209
|
+
/* @__PURE__ */ b("div", {
|
|
206
210
|
className: "flex items-start justify-between gap-2",
|
|
207
|
-
children: [/* @__PURE__ */
|
|
211
|
+
children: [/* @__PURE__ */ b("div", {
|
|
208
212
|
className: "flex items-start gap-3 min-w-0 flex-1",
|
|
209
|
-
children: [/* @__PURE__ */
|
|
213
|
+
children: [/* @__PURE__ */ y("div", {
|
|
210
214
|
onClick: (e) => e.stopPropagation(),
|
|
211
|
-
children: /* @__PURE__ */
|
|
215
|
+
children: /* @__PURE__ */ y(a, {
|
|
212
216
|
checked: q.has(e.id),
|
|
213
|
-
onChange: (t) =>
|
|
217
|
+
onChange: (t) => ce(e.id, t),
|
|
214
218
|
ariaLabel: `Select context ${e.name}`
|
|
215
219
|
})
|
|
216
|
-
}), /* @__PURE__ */
|
|
220
|
+
}), /* @__PURE__ */ y("div", {
|
|
217
221
|
className: "min-w-0 flex-1",
|
|
218
|
-
children: /* @__PURE__ */
|
|
222
|
+
children: /* @__PURE__ */ b("div", {
|
|
219
223
|
className: "flex items-center gap-2",
|
|
220
|
-
children: [/* @__PURE__ */
|
|
224
|
+
children: [/* @__PURE__ */ y("h4", {
|
|
221
225
|
className: "font-semibold text-text-primary truncate",
|
|
222
226
|
children: e.name
|
|
223
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
233
|
+
}), /* @__PURE__ */ b("div", {
|
|
230
234
|
className: "flex items-center gap-1 flex-shrink-0",
|
|
231
235
|
children: [
|
|
232
|
-
/* @__PURE__ */
|
|
236
|
+
/* @__PURE__ */ y("button", {
|
|
233
237
|
type: "button",
|
|
234
|
-
onClick: () =>
|
|
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__ */
|
|
241
|
+
children: /* @__PURE__ */ y(h, { className: "size-3.5 text-text-secondary" })
|
|
238
242
|
}),
|
|
239
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
256
|
+
children: /* @__PURE__ */ y(_, { className: "size-3.5 text-status-error-text" })
|
|
253
257
|
})
|
|
254
258
|
]
|
|
255
259
|
})]
|
|
256
260
|
}),
|
|
257
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
287
|
+
/* @__PURE__ */ b("div", {
|
|
284
288
|
className: "flex items-center justify-between mb-4",
|
|
285
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
296
|
+
children: /* @__PURE__ */ y(v, { className: "size-4 text-text-secondary" })
|
|
293
297
|
})]
|
|
294
298
|
}),
|
|
295
|
-
/* @__PURE__ */
|
|
299
|
+
/* @__PURE__ */ b("div", {
|
|
296
300
|
className: "space-y-4",
|
|
297
301
|
children: [
|
|
298
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
342
|
-
/* @__PURE__ */
|
|
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__ */
|
|
350
|
+
/* @__PURE__ */ y("div", {
|
|
347
351
|
className: "flex flex-wrap gap-1 mb-2",
|
|
348
|
-
children: L.tags.map((e) => /* @__PURE__ */
|
|
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__ */
|
|
354
|
+
children: [e, /* @__PURE__ */ y("button", {
|
|
351
355
|
type: "button",
|
|
352
|
-
onClick: () =>
|
|
353
|
-
children: /* @__PURE__ */
|
|
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__ */
|
|
361
|
+
/* @__PURE__ */ b("div", {
|
|
358
362
|
className: "flex gap-2",
|
|
359
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
383
|
+
/* @__PURE__ */ b("div", {
|
|
380
384
|
className: "flex justify-end gap-2 mt-6",
|
|
381
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
390
|
+
}), /* @__PURE__ */ y("button", {
|
|
387
391
|
type: "button",
|
|
388
|
-
onClick:
|
|
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__ */
|
|
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:
|
|
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.")
|