@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
|
@@ -17,10 +17,11 @@ import { FilePickerModal as ce } from "./FilePickerModal.js";
|
|
|
17
17
|
import { resolveProviderDefaultModel as s } from "./modelDefaults.js";
|
|
18
18
|
import { useTr as le } from "../../shared/hooks/useTr.js";
|
|
19
19
|
import { useCallback as c, useEffect as l, useMemo as u, useRef as d, useState as f } from "react";
|
|
20
|
-
import { ArrowUp as ue, ChevronDown as de, Clock as fe, FileText as pe, FolderOpen as
|
|
21
|
-
import { jsx as
|
|
20
|
+
import { ArrowUp as ue, ChevronDown as de, Clock as fe, FileText as pe, FolderOpen as me, Sparkles as he, Square as ge, X as p } from "lucide-react";
|
|
21
|
+
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
22
|
+
import { usePrompt as _e } from "@burdenoff/fe-libs/ui";
|
|
22
23
|
// src/components/agent-manager/AgentManagerInputArea.tsx
|
|
23
|
-
var
|
|
24
|
+
var g = [
|
|
24
25
|
{
|
|
25
26
|
command: "/new",
|
|
26
27
|
description: "Create new session"
|
|
@@ -58,7 +59,7 @@ var ge = [
|
|
|
58
59
|
command: "/help",
|
|
59
60
|
description: "Show available commands"
|
|
60
61
|
}
|
|
61
|
-
],
|
|
62
|
+
], _ = [
|
|
62
63
|
"claude",
|
|
63
64
|
"codex",
|
|
64
65
|
"gemini",
|
|
@@ -76,86 +77,86 @@ var ge = [
|
|
|
76
77
|
"aider",
|
|
77
78
|
"plandex"
|
|
78
79
|
], ve = ["sdk", "cli"];
|
|
79
|
-
function
|
|
80
|
-
let [
|
|
80
|
+
function v({ agentId: v, sessionId: y, onSend: ye, onCancel: be, mcpServers: xe = [], agentTunnelUrl: Se }) {
|
|
81
|
+
let Ce = _e(), [b, x] = f(""), [S, C] = f([]), [we, w] = f(!1), [T, Te] = f(""), [E, D] = f(!1), [O, k] = f(!1), [A, Ee] = f(""), [De, j] = f([]), [Oe, M] = f(!1), N = le(), P = d(null), F = d(null);
|
|
81
82
|
l(() => {
|
|
82
83
|
P.current?.focus({ preventScroll: !0 });
|
|
83
84
|
}, []);
|
|
84
|
-
let I = e((e) => e.sessionStates[
|
|
85
|
+
let I = e((e) => e.sessionStates[y]), L = e((e) => e.setSessionModel), R = e((e) => e.setSessionSdk), z = e((e) => e.setSessionMode), ke = e((e) => e.setSessionPermissionMode), Ae = e((e) => e.toggleVoice), je = e((e) => e.toggleThinking), Me = e((e) => e.setSessionContextLevel), Ne = e((e) => e.setSessionVibe), Pe = e((e) => e.setSessionRootPath), B = e((e) => e.openSession), V = e((e) => e.addMessage), Fe = e((e) => e.removeSessionContext), H = e((e) => e.addSessionContext), U = e((e) => e.pendingChatInsert), W = e((e) => e.setPendingChatInsert);
|
|
85
86
|
l(() => {
|
|
86
87
|
if (U) {
|
|
87
88
|
if (U.text) {
|
|
88
89
|
let e = U.text;
|
|
89
|
-
|
|
90
|
+
x((t) => t ? `${t}\n${e}` : e);
|
|
90
91
|
}
|
|
91
|
-
for (let e of U.contexts ?? []) H(
|
|
92
|
-
|
|
92
|
+
for (let e of U.contexts ?? []) H(y, e);
|
|
93
|
+
W(null), P.current?.focus({ preventScroll: !0 });
|
|
93
94
|
}
|
|
94
95
|
}, [
|
|
95
96
|
U,
|
|
96
|
-
|
|
97
|
+
y,
|
|
97
98
|
H,
|
|
98
|
-
|
|
99
|
+
W
|
|
99
100
|
]);
|
|
100
|
-
let { vibes:
|
|
101
|
-
id:
|
|
102
|
-
profile:
|
|
103
|
-
}), [
|
|
101
|
+
let { vibes: Ie, agents: Le } = n(), Re = u(() => Le.find((e) => e.id === v) ?? null, [Le, v]), { active: G } = i(Re?.id ?? null), K = u(() => ({
|
|
102
|
+
id: v,
|
|
103
|
+
profile: G
|
|
104
|
+
}), [v, G]), { isListening: q, transcript: J, startListening: ze, stopListening: Be } = t(), Y = I?.status === "streaming", X = b.trim().length > 0 && !Y;
|
|
104
105
|
l(() => {
|
|
105
|
-
|
|
106
|
-
}, [
|
|
106
|
+
J && q && x((e) => e + (e ? " " : "") + J);
|
|
107
|
+
}, [J, q]), l(() => {
|
|
107
108
|
let e = !1;
|
|
108
|
-
return r(
|
|
109
|
+
return r(K).then((t) => {
|
|
109
110
|
e || j(t);
|
|
110
111
|
}).catch(() => {
|
|
111
112
|
e || j([]);
|
|
112
113
|
}), () => {
|
|
113
114
|
e = !0;
|
|
114
115
|
};
|
|
115
|
-
}, [
|
|
116
|
-
|
|
117
|
-
}, [
|
|
118
|
-
let
|
|
116
|
+
}, [K]), l(() => {
|
|
117
|
+
b.startsWith("/") && !b.includes(" ") ? (w(!0), Te(b.slice(1))) : w(!1);
|
|
118
|
+
}, [b]);
|
|
119
|
+
let Ve = u(() => g.filter((e) => e.command.toLowerCase().includes(`/${T.toLowerCase()}`)), [T]);
|
|
119
120
|
l(() => {
|
|
120
121
|
let e = P.current;
|
|
121
122
|
e && (e.style.height = "auto", e.style.height = `${Math.min(e.scrollHeight, 200)}px`);
|
|
122
|
-
}, [
|
|
123
|
-
if (!
|
|
123
|
+
}, [b]), l(() => {
|
|
124
|
+
if (!E && !O) return;
|
|
124
125
|
let e = (e) => {
|
|
125
|
-
F.current && !F.current.contains(e.target) && (
|
|
126
|
+
F.current && !F.current.contains(e.target) && (D(!1), k(!1));
|
|
126
127
|
};
|
|
127
128
|
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
|
|
128
|
-
}, [
|
|
129
|
-
let
|
|
130
|
-
V(
|
|
129
|
+
}, [E, O]);
|
|
130
|
+
let Z = c((e) => {
|
|
131
|
+
V(y, {
|
|
131
132
|
id: `sys-${Date.now()}-${Math.random().toString(36).slice(2, 7)}`,
|
|
132
133
|
role: "system",
|
|
133
134
|
content: e,
|
|
134
135
|
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
135
136
|
});
|
|
136
|
-
}, [V,
|
|
137
|
-
if (
|
|
137
|
+
}, [V, y]), He = c(async () => {
|
|
138
|
+
if (b.trim() && A && v) try {
|
|
138
139
|
let e = await a({
|
|
139
|
-
sessionId:
|
|
140
|
+
sessionId: y,
|
|
140
141
|
agentRef: {
|
|
141
|
-
agentId:
|
|
142
|
-
profile:
|
|
142
|
+
agentId: v,
|
|
143
|
+
profile: G ?? "default"
|
|
143
144
|
},
|
|
144
|
-
prompt:
|
|
145
|
-
scheduledAt: new Date(
|
|
145
|
+
prompt: b.trim(),
|
|
146
|
+
scheduledAt: new Date(A).toISOString()
|
|
146
147
|
});
|
|
147
|
-
|
|
148
|
+
Z(`Prompt scheduled for ${new Date(e.scheduledAt).toLocaleString()} (Job: ${e.jobId.slice(0, 8)})`), x(""), Ee(""), k(!1), D(!1);
|
|
148
149
|
} catch (e) {
|
|
149
|
-
|
|
150
|
+
Z(`Failed to schedule: ${e instanceof Error ? e.message : "Unknown error"}`);
|
|
150
151
|
}
|
|
151
152
|
}, [
|
|
153
|
+
b,
|
|
154
|
+
A,
|
|
152
155
|
y,
|
|
153
|
-
k,
|
|
154
156
|
v,
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
]), Z = c((e) => {
|
|
157
|
+
G,
|
|
158
|
+
Z
|
|
159
|
+
]), Q = c((e) => {
|
|
159
160
|
let t = e.trim().split(/\s+/), n = t[0].toLowerCase(), r = t.slice(1).join(" ");
|
|
160
161
|
switch (n) {
|
|
161
162
|
case "/new": {
|
|
@@ -164,190 +165,194 @@ function _({ agentId: _, sessionId: v, onSend: ye, onCancel: be, mcpServers: xe
|
|
|
164
165
|
break;
|
|
165
166
|
}
|
|
166
167
|
case "/rename":
|
|
167
|
-
|
|
168
|
+
Z(r ? `Session renamed to "${r}".` : "Usage: /rename <name>");
|
|
168
169
|
break;
|
|
169
170
|
case "/model":
|
|
170
|
-
r ? (L(
|
|
171
|
+
r ? (L(y, r), Z(`Model switched to "${r}".`)) : Z("Usage: /model <model-name>");
|
|
171
172
|
break;
|
|
172
173
|
case "/sdk":
|
|
173
|
-
if (r &&
|
|
174
|
+
if (r && _.includes(r)) {
|
|
174
175
|
let e = r;
|
|
175
|
-
R(
|
|
176
|
-
} else
|
|
176
|
+
R(y, e), s(K, e, I?.model ?? "default").then((e) => L(y, e)).catch(() => L(y, I?.model ?? "default")), Z(`SDK switched to "${r}".`);
|
|
177
|
+
} else Z(`Usage: /sdk <${_.join("|")}>`);
|
|
177
178
|
break;
|
|
178
179
|
case "/mode":
|
|
179
|
-
r && ve.includes(r) ? (z(
|
|
180
|
+
r && ve.includes(r) ? (z(y, r), Z(`Mode switched to "${r}".`)) : Z(`Usage: /mode <${ve.join("|")}>`);
|
|
180
181
|
break;
|
|
181
182
|
case "/export": {
|
|
182
183
|
let e = r === "md" ? "md" : "json", t = I?.messages ?? [], n = e === "json" ? JSON.stringify(t, null, 2) : t.map((e) => `**${e.role}** (${e.timestamp ?? ""}):\n${e.content ?? ""}`).join("\n\n---\n\n"), i = new Blob([n], { type: e === "json" ? "application/json" : "text/markdown" }), a = URL.createObjectURL(i), o = document.createElement("a");
|
|
183
|
-
o.href = a, o.download = `conversation-${
|
|
184
|
+
o.href = a, o.download = `conversation-${y}.${e}`, o.click(), URL.revokeObjectURL(a), Z(`Conversation exported as ${e}.`);
|
|
184
185
|
break;
|
|
185
186
|
}
|
|
186
187
|
case "/clear":
|
|
187
|
-
|
|
188
|
+
Z("Conversation cleared.");
|
|
188
189
|
break;
|
|
189
190
|
case "/help": {
|
|
190
|
-
let e =
|
|
191
|
-
|
|
191
|
+
let e = g.map((e) => ` ${e.command}${e.args ? " " + e.args : ""} - ${e.description}`).join("\n");
|
|
192
|
+
Z(`Available commands:\n${e}`);
|
|
192
193
|
break;
|
|
193
194
|
}
|
|
194
|
-
default:
|
|
195
|
+
default: Z(`Unknown command: ${n}. Type /help for available commands.`);
|
|
195
196
|
}
|
|
196
197
|
}, [
|
|
197
|
-
|
|
198
|
+
y,
|
|
198
199
|
I?.messages,
|
|
199
200
|
I?.model,
|
|
200
201
|
B,
|
|
201
202
|
L,
|
|
202
203
|
R,
|
|
203
204
|
z,
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
]),
|
|
207
|
-
e.args ?
|
|
208
|
-
}, [
|
|
209
|
-
if (!
|
|
210
|
-
let e =
|
|
211
|
-
e.startsWith("/") ? (
|
|
205
|
+
Z,
|
|
206
|
+
K
|
|
207
|
+
]), Ue = c((e) => {
|
|
208
|
+
e.args ? x(`${e.command} `) : (Q(e.command), x("")), w(!1), P.current?.focus();
|
|
209
|
+
}, [Q]), $ = c(() => {
|
|
210
|
+
if (!X) return;
|
|
211
|
+
let e = b.trim();
|
|
212
|
+
e.startsWith("/") ? (Q(e), x(""), C([])) : (ye(e, S.length > 0 ? S : void 0), x(""), C([]));
|
|
212
213
|
}, [
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
214
|
+
X,
|
|
215
|
+
b,
|
|
216
|
+
S,
|
|
216
217
|
ye,
|
|
217
|
-
|
|
218
|
-
]),
|
|
219
|
-
e.key === "Enter" && !e.shiftKey && (e.preventDefault(),
|
|
220
|
-
}, [
|
|
218
|
+
Q
|
|
219
|
+
]), We = c((e) => {
|
|
220
|
+
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), $());
|
|
221
|
+
}, [$]), Ge = c(() => {
|
|
221
222
|
be?.();
|
|
222
|
-
}, [be]),
|
|
223
|
-
|
|
224
|
-
}, []),
|
|
225
|
-
|
|
226
|
-
}, []),
|
|
227
|
-
return I ? /* @__PURE__ */
|
|
223
|
+
}, [be]), Ke = c((e) => {
|
|
224
|
+
C((t) => [...t, ...e]);
|
|
225
|
+
}, []), qe = c((e) => {
|
|
226
|
+
C((t) => t.filter((t, n) => n !== e));
|
|
227
|
+
}, []), Je = ae(Ke);
|
|
228
|
+
return I ? /* @__PURE__ */ h("div", {
|
|
228
229
|
className: "relative z-30 border-t border-border-default bg-bg-surface",
|
|
229
|
-
...
|
|
230
|
+
...Je,
|
|
230
231
|
children: [
|
|
231
|
-
|
|
232
|
+
we && Ve.length > 0 && /* @__PURE__ */ m("div", {
|
|
232
233
|
className: "absolute bottom-full left-0 right-0 mb-1 mx-3 bg-bg-elevated border border-border-default rounded-lg shadow-lg max-h-48 overflow-y-auto z-50",
|
|
233
|
-
children:
|
|
234
|
+
children: Ve.map((e) => /* @__PURE__ */ h("button", {
|
|
234
235
|
type: "button",
|
|
235
|
-
onClick: () =>
|
|
236
|
+
onClick: () => Ue(e),
|
|
236
237
|
className: "flex items-center gap-2 w-full px-3 py-2 text-left hover:bg-bg-sunken transition-colors",
|
|
237
238
|
children: [
|
|
238
|
-
/* @__PURE__ */
|
|
239
|
+
/* @__PURE__ */ m("span", {
|
|
239
240
|
className: "font-mono text-xs text-text-primary",
|
|
240
241
|
children: e.command
|
|
241
242
|
}),
|
|
242
|
-
e.args && /* @__PURE__ */
|
|
243
|
+
e.args && /* @__PURE__ */ m("span", {
|
|
243
244
|
className: "text-text-tertiary text-xs",
|
|
244
245
|
children: e.args
|
|
245
246
|
}),
|
|
246
|
-
/* @__PURE__ */
|
|
247
|
+
/* @__PURE__ */ m("span", {
|
|
247
248
|
className: "text-text-secondary text-xs ml-auto",
|
|
248
249
|
children: e.description
|
|
249
250
|
})
|
|
250
251
|
]
|
|
251
252
|
}, e.command))
|
|
252
253
|
}),
|
|
253
|
-
(I?.contexts?.length ?? 0) > 0 && /* @__PURE__ */
|
|
254
|
+
(I?.contexts?.length ?? 0) > 0 && /* @__PURE__ */ m("div", {
|
|
254
255
|
className: "flex items-center gap-2 px-3 pt-2 overflow-x-auto",
|
|
255
256
|
"data-testid": "chat-context-chips",
|
|
256
|
-
children: I?.contexts.map((e) => /* @__PURE__ */
|
|
257
|
+
children: I?.contexts.map((e) => /* @__PURE__ */ h("div", {
|
|
257
258
|
className: "flex items-center gap-1.5 px-2 py-1 rounded-md bg-bg-elevated border border-border-default text-xs text-text-secondary",
|
|
258
259
|
title: e.path ?? e.label,
|
|
259
260
|
children: [
|
|
260
|
-
e.kind === "file" ? /* @__PURE__ */
|
|
261
|
-
/* @__PURE__ */
|
|
261
|
+
e.kind === "file" ? /* @__PURE__ */ m(me, { className: "size-3 flex-shrink-0" }) : e.kind === "prompt" ? /* @__PURE__ */ m(he, { className: "size-3 flex-shrink-0" }) : /* @__PURE__ */ m(pe, { className: "size-3 flex-shrink-0" }),
|
|
262
|
+
/* @__PURE__ */ m("span", {
|
|
262
263
|
className: "truncate max-w-[140px]",
|
|
263
264
|
children: e.label
|
|
264
265
|
}),
|
|
265
|
-
/* @__PURE__ */
|
|
266
|
+
/* @__PURE__ */ m("button", {
|
|
266
267
|
type: "button",
|
|
267
|
-
onClick: () =>
|
|
268
|
+
onClick: () => Fe(y, e.id),
|
|
268
269
|
className: "p-0.5 rounded hover:bg-bg-sunken transition-colors flex-shrink-0",
|
|
269
270
|
"aria-label": "Remove context",
|
|
270
|
-
children: /* @__PURE__ */
|
|
271
|
+
children: /* @__PURE__ */ m(p, { className: "size-3" })
|
|
271
272
|
})
|
|
272
273
|
]
|
|
273
274
|
}, e.id))
|
|
274
275
|
}),
|
|
275
|
-
|
|
276
|
+
S.length > 0 && /* @__PURE__ */ m("div", {
|
|
276
277
|
className: "flex items-center gap-2 px-3 pt-2 overflow-x-auto",
|
|
277
|
-
children:
|
|
278
|
+
children: S.map((e, t) => /* @__PURE__ */ h("div", {
|
|
278
279
|
className: "flex items-center gap-1.5 px-2 py-1 rounded-md bg-bg-elevated border border-border-default text-xs text-text-secondary",
|
|
279
|
-
children: [/* @__PURE__ */
|
|
280
|
+
children: [/* @__PURE__ */ m("span", {
|
|
280
281
|
className: "truncate max-w-[120px]",
|
|
281
282
|
children: e.name
|
|
282
|
-
}), /* @__PURE__ */
|
|
283
|
+
}), /* @__PURE__ */ m("button", {
|
|
283
284
|
type: "button",
|
|
284
|
-
onClick: () =>
|
|
285
|
+
onClick: () => qe(t),
|
|
285
286
|
className: "p-0.5 rounded hover:bg-bg-sunken transition-colors flex-shrink-0",
|
|
286
|
-
children: /* @__PURE__ */
|
|
287
|
+
children: /* @__PURE__ */ m(p, { className: "size-3" })
|
|
287
288
|
})]
|
|
288
289
|
}, `${e.name}-${t}`))
|
|
289
290
|
}),
|
|
290
|
-
/* @__PURE__ */
|
|
291
|
+
/* @__PURE__ */ h("div", {
|
|
291
292
|
className: "flex flex-wrap items-center gap-1 px-3 pt-2 pb-1 overflow-x-auto",
|
|
292
293
|
children: [
|
|
293
|
-
/* @__PURE__ */
|
|
294
|
+
/* @__PURE__ */ m(ee, {
|
|
294
295
|
sdk: I.sdk,
|
|
295
296
|
mode: I.mode,
|
|
296
|
-
providers:
|
|
297
|
+
providers: De,
|
|
297
298
|
onSdkChange: (e) => {
|
|
298
|
-
R(
|
|
299
|
+
R(y, e), s(K, e, I.model ?? "default").then((e) => L(y, e)).catch(() => L(y, I.model ?? "default"));
|
|
299
300
|
},
|
|
300
|
-
onModeChange: (e) => z(
|
|
301
|
+
onModeChange: (e) => z(y, e)
|
|
301
302
|
}),
|
|
302
|
-
/* @__PURE__ */
|
|
303
|
+
/* @__PURE__ */ m(o, {
|
|
303
304
|
value: I.model,
|
|
304
|
-
onChange: (e) => L(
|
|
305
|
+
onChange: (e) => L(y, e),
|
|
305
306
|
provider: I.sdk,
|
|
306
|
-
agentId:
|
|
307
|
+
agentId: v
|
|
307
308
|
}),
|
|
308
|
-
/* @__PURE__ */
|
|
309
|
+
/* @__PURE__ */ m(te, {
|
|
309
310
|
value: I.permissionMode,
|
|
310
311
|
mode: I.mode,
|
|
311
|
-
onChange: (e) =>
|
|
312
|
+
onChange: (e) => ke(y, e)
|
|
312
313
|
}),
|
|
313
|
-
/* @__PURE__ */
|
|
314
|
+
/* @__PURE__ */ m(ne, {
|
|
314
315
|
selected: I.mcpServers,
|
|
315
316
|
available: xe,
|
|
316
317
|
onChange: () => {}
|
|
317
318
|
}),
|
|
318
|
-
/* @__PURE__ */
|
|
319
|
+
/* @__PURE__ */ m(oe, {
|
|
319
320
|
agentId: "",
|
|
320
|
-
sessionId:
|
|
321
|
+
sessionId: y,
|
|
321
322
|
contextLevel: I.contextLevel,
|
|
322
323
|
rootPath: I.rootPath,
|
|
323
324
|
onChange: (e, t, n) => {
|
|
324
|
-
|
|
325
|
+
Me(y, e), Pe(y, t ?? null), Ne(y, n ?? null, t ?? null);
|
|
325
326
|
},
|
|
326
|
-
vibes:
|
|
327
|
+
vibes: Ie.map((e) => ({
|
|
327
328
|
id: e.id,
|
|
328
329
|
name: e.name,
|
|
329
330
|
path: e.path
|
|
330
331
|
}))
|
|
331
332
|
}),
|
|
332
|
-
/* @__PURE__ */
|
|
333
|
-
/* @__PURE__ */
|
|
333
|
+
/* @__PURE__ */ m("div", { className: "flex-1" }),
|
|
334
|
+
/* @__PURE__ */ m("button", {
|
|
334
335
|
type: "button",
|
|
335
|
-
onClick: () =>
|
|
336
|
+
onClick: () => je(y),
|
|
336
337
|
className: `p-1.5 rounded text-xs font-medium transition-colors ${I.showThinking ? "bg-[var(--color-accent-soft)] text-text-primary" : "text-text-tertiary hover:text-text-secondary"}`,
|
|
337
338
|
title: I.showThinking ? N("vibecontrols.agentManager.inputArea.hideThinking", "Hide thinking") : N("vibecontrols.agentManager.inputArea.showThinking", "Show thinking"),
|
|
338
339
|
children: "Think"
|
|
339
340
|
}),
|
|
340
|
-
/* @__PURE__ */
|
|
341
|
+
/* @__PURE__ */ h("button", {
|
|
341
342
|
type: "button",
|
|
342
|
-
onClick: () => {
|
|
343
|
-
let t =
|
|
343
|
+
onClick: async () => {
|
|
344
|
+
let t = await Ce({
|
|
345
|
+
title: "Context history limit (messages sent with each prompt):",
|
|
346
|
+
defaultValue: String(I.contextHistoryLimit),
|
|
347
|
+
required: !1
|
|
348
|
+
});
|
|
344
349
|
if (t !== null) {
|
|
345
350
|
let n = parseInt(t, 10);
|
|
346
351
|
if (!isNaN(n) && n >= 0) {
|
|
347
|
-
let t = e.getState().sessionStates[
|
|
352
|
+
let t = e.getState().sessionStates[y];
|
|
348
353
|
t && e.setState((e) => ({ sessionStates: {
|
|
349
354
|
...e.sessionStates,
|
|
350
|
-
[
|
|
355
|
+
[y]: {
|
|
351
356
|
...t,
|
|
352
357
|
contextHistoryLimit: n
|
|
353
358
|
}
|
|
@@ -359,111 +364,111 @@ function _({ agentId: _, sessionId: v, onSend: ye, onCancel: be, mcpServers: xe
|
|
|
359
364
|
title: `Context history: last ${I.contextHistoryLimit} messages sent with each prompt`,
|
|
360
365
|
children: ["H:", I.contextHistoryLimit]
|
|
361
366
|
}),
|
|
362
|
-
/* @__PURE__ */
|
|
367
|
+
/* @__PURE__ */ m(re, {
|
|
363
368
|
enabled: I.voiceEnabled,
|
|
364
369
|
onToggle: () => {
|
|
365
|
-
|
|
370
|
+
Ae(y), I.voiceEnabled ? Be() : ze();
|
|
366
371
|
},
|
|
367
|
-
isListening:
|
|
372
|
+
isListening: q
|
|
368
373
|
}),
|
|
369
|
-
/* @__PURE__ */
|
|
370
|
-
/* @__PURE__ */
|
|
371
|
-
sessionId:
|
|
374
|
+
/* @__PURE__ */ m(ie, { onFileSelect: Ke }),
|
|
375
|
+
/* @__PURE__ */ m(se, {
|
|
376
|
+
sessionId: y,
|
|
372
377
|
vibeId: I?.vibeId,
|
|
373
|
-
onInsertText: (e) =>
|
|
378
|
+
onInsertText: (e) => x((t) => t ? `${t}\n${e}` : e)
|
|
374
379
|
}),
|
|
375
|
-
/* @__PURE__ */
|
|
380
|
+
/* @__PURE__ */ h("button", {
|
|
376
381
|
type: "button",
|
|
377
382
|
onClick: () => M(!0),
|
|
378
383
|
className: "inline-flex items-center gap-1 px-2 py-1 rounded-md text-xs text-text-secondary hover:bg-bg-sunken transition-colors",
|
|
379
384
|
title: "Add a file from the Files module as context",
|
|
380
385
|
"data-testid": "chat-add-from-files",
|
|
381
|
-
children: [/* @__PURE__ */
|
|
386
|
+
children: [/* @__PURE__ */ m(me, { className: "size-4" }), /* @__PURE__ */ m("span", {
|
|
382
387
|
className: "hidden sm:inline",
|
|
383
388
|
children: "Files"
|
|
384
389
|
})]
|
|
385
390
|
})
|
|
386
391
|
]
|
|
387
392
|
}),
|
|
388
|
-
/* @__PURE__ */
|
|
393
|
+
/* @__PURE__ */ h("div", {
|
|
389
394
|
className: "flex items-end gap-2 px-3 pb-3 pt-1",
|
|
390
|
-
children: [/* @__PURE__ */
|
|
395
|
+
children: [/* @__PURE__ */ m("textarea", {
|
|
391
396
|
"aria-label": "control",
|
|
392
397
|
ref: P,
|
|
393
|
-
value:
|
|
394
|
-
onChange: (e) =>
|
|
395
|
-
onKeyDown:
|
|
398
|
+
value: b,
|
|
399
|
+
onChange: (e) => x(e.target.value),
|
|
400
|
+
onKeyDown: We,
|
|
396
401
|
placeholder: N("vibecontrols.agentManager.inputArea.placeholder", "Type a message or / for commands... (Enter to send)"),
|
|
397
402
|
rows: 1,
|
|
398
403
|
className: "flex-1 resize-none rounded-lg border border-border-default bg-bg-surface px-3 py-2 text-sm text-text-primary placeholder:text-text-tertiary focus:outline-none focus:border-border-strong transition-colors",
|
|
399
|
-
disabled:
|
|
400
|
-
}),
|
|
404
|
+
disabled: Y
|
|
405
|
+
}), Y ? /* @__PURE__ */ m("button", {
|
|
401
406
|
type: "button",
|
|
402
|
-
onClick:
|
|
407
|
+
onClick: Ge,
|
|
403
408
|
className: "flex-shrink-0 p-2 rounded-lg bg-status-error-bg-subtle text-status-error-text hover:opacity-90 transition-opacity",
|
|
404
409
|
title: N("vibecontrols.agentManager.inputArea.cancel", "Cancel"),
|
|
405
|
-
children: /* @__PURE__ */
|
|
406
|
-
}) : /* @__PURE__ */
|
|
410
|
+
children: /* @__PURE__ */ m(ge, { className: "size-4" })
|
|
411
|
+
}) : /* @__PURE__ */ h("div", {
|
|
407
412
|
className: "flex items-end flex-shrink-0 relative",
|
|
408
413
|
ref: F,
|
|
409
414
|
children: [
|
|
410
|
-
/* @__PURE__ */
|
|
415
|
+
/* @__PURE__ */ m("button", {
|
|
411
416
|
type: "button",
|
|
412
|
-
onClick:
|
|
413
|
-
disabled: !
|
|
417
|
+
onClick: $,
|
|
418
|
+
disabled: !X,
|
|
414
419
|
className: "p-2 rounded-l-lg bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg-hover disabled:opacity-40 disabled:cursor-not-allowed transition-colors",
|
|
415
420
|
title: N("vibecontrols.agentManager.inputArea.send", "Send (Enter)"),
|
|
416
|
-
children: /* @__PURE__ */
|
|
421
|
+
children: /* @__PURE__ */ m(ue, { className: "size-4" })
|
|
417
422
|
}),
|
|
418
|
-
/* @__PURE__ */
|
|
423
|
+
/* @__PURE__ */ m("button", {
|
|
419
424
|
type: "button",
|
|
420
|
-
onClick: () =>
|
|
421
|
-
disabled: !
|
|
425
|
+
onClick: () => D(!E),
|
|
426
|
+
disabled: !X,
|
|
422
427
|
className: "ml-1 p-2 rounded-r-lg border-l border-action-primary-text/20 bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg-hover disabled:opacity-40 disabled:cursor-not-allowed transition-colors",
|
|
423
428
|
title: N("vibecontrols.agentManager.inputArea.scheduleSend", "Schedule send"),
|
|
424
|
-
children: /* @__PURE__ */
|
|
429
|
+
children: /* @__PURE__ */ m(de, { className: "size-3" })
|
|
425
430
|
}),
|
|
426
|
-
|
|
431
|
+
E && /* @__PURE__ */ m("div", {
|
|
427
432
|
className: "absolute bottom-full right-0 mb-1 w-56 bg-bg-surface border border-border-default rounded-md shadow-lg py-1 z-50",
|
|
428
|
-
children:
|
|
433
|
+
children: O ? /* @__PURE__ */ h("div", {
|
|
429
434
|
className: "px-3 py-2 space-y-2",
|
|
430
435
|
children: [
|
|
431
|
-
/* @__PURE__ */
|
|
436
|
+
/* @__PURE__ */ m("label", {
|
|
432
437
|
className: "block text-[11px] font-medium text-text-secondary",
|
|
433
438
|
children: N("vibecontrols.agentManager.inputArea.sendAt", "Send at:")
|
|
434
439
|
}),
|
|
435
|
-
/* @__PURE__ */
|
|
440
|
+
/* @__PURE__ */ m("input", {
|
|
436
441
|
"aria-label": "control",
|
|
437
442
|
type: "datetime-local",
|
|
438
|
-
value:
|
|
439
|
-
onChange: (e) =>
|
|
443
|
+
value: A,
|
|
444
|
+
onChange: (e) => Ee(e.target.value),
|
|
440
445
|
className: "w-full px-2 py-1 text-xs rounded border border-border-default bg-bg-surface text-text-primary focus:outline-none focus:border-border-strong"
|
|
441
446
|
}),
|
|
442
|
-
/* @__PURE__ */
|
|
447
|
+
/* @__PURE__ */ m("button", {
|
|
443
448
|
type: "button",
|
|
444
|
-
onClick: () => void
|
|
445
|
-
disabled: !
|
|
449
|
+
onClick: () => void He(),
|
|
450
|
+
disabled: !A || !v,
|
|
446
451
|
className: "w-full px-2 py-1.5 text-xs font-medium rounded bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg-hover disabled:opacity-40 disabled:cursor-not-allowed transition-colors",
|
|
447
452
|
children: N("vibecontrols.agentManager.inputArea.schedule", "Schedule")
|
|
448
453
|
})
|
|
449
454
|
]
|
|
450
|
-
}) : /* @__PURE__ */
|
|
455
|
+
}) : /* @__PURE__ */ h("button", {
|
|
451
456
|
type: "button",
|
|
452
|
-
onClick: () =>
|
|
457
|
+
onClick: () => k(!0),
|
|
453
458
|
className: "flex items-center gap-2 w-full px-3 py-2 text-left text-xs text-text-primary hover:bg-bg-sunken transition-colors",
|
|
454
|
-
children: [/* @__PURE__ */
|
|
459
|
+
children: [/* @__PURE__ */ m(fe, { className: "size-3.5 text-text-secondary" }), N("vibecontrols.agentManager.inputArea.scheduleSendEllipsis", "Schedule Send...")]
|
|
455
460
|
})
|
|
456
461
|
})
|
|
457
462
|
]
|
|
458
463
|
})]
|
|
459
464
|
}),
|
|
460
|
-
/* @__PURE__ */
|
|
461
|
-
isOpen:
|
|
465
|
+
/* @__PURE__ */ m(ce, {
|
|
466
|
+
isOpen: Oe,
|
|
462
467
|
onClose: () => M(!1),
|
|
463
|
-
agent:
|
|
464
|
-
sessionId:
|
|
468
|
+
agent: K,
|
|
469
|
+
sessionId: y
|
|
465
470
|
})
|
|
466
471
|
]
|
|
467
472
|
}) : null;
|
|
468
473
|
}
|
|
469
|
-
export {
|
|
474
|
+
export { v as AgentManagerInputArea };
|