@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
@@ -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 p, Sparkles as me, Square as he, X as m } from "lucide-react";
21
- import { jsx as h, jsxs as g } from "react/jsx-runtime";
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 ge = [
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
- ], _e = [
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 _({ agentId: _, sessionId: v, onSend: ye, onCancel: be, mcpServers: xe = [], agentTunnelUrl: Se }) {
80
- let [y, b] = f(""), [x, S] = f([]), [Ce, C] = f(!1), [w, we] = f(""), [T, E] = f(!1), [D, O] = f(!1), [k, A] = f(""), [Te, j] = f([]), [Ee, M] = f(!1), N = le(), P = d(null), F = d(null);
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[v]), L = e((e) => e.setSessionModel), R = e((e) => e.setSessionSdk), z = e((e) => e.setSessionMode), De = e((e) => e.setSessionPermissionMode), Oe = e((e) => e.toggleVoice), ke = e((e) => e.toggleThinking), Ae = e((e) => e.setSessionContextLevel), je = e((e) => e.setSessionVibe), Me = e((e) => e.setSessionRootPath), B = e((e) => e.openSession), V = e((e) => e.addMessage), Ne = e((e) => e.removeSessionContext), H = e((e) => e.addSessionContext), U = e((e) => e.pendingChatInsert), Pe = e((e) => e.setPendingChatInsert);
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
- b((t) => t ? `${t}\n${e}` : e);
90
+ x((t) => t ? `${t}\n${e}` : e);
90
91
  }
91
- for (let e of U.contexts ?? []) H(v, e);
92
- Pe(null), P.current?.focus({ preventScroll: !0 });
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
- v,
97
+ y,
97
98
  H,
98
- Pe
99
+ W
99
100
  ]);
100
- let { vibes: Fe, agents: Ie } = n(), Le = u(() => Ie.find((e) => e.id === _) ?? null, [Ie, _]), { active: W } = i(Le?.id ?? null), G = u(() => ({
101
- id: _,
102
- profile: W
103
- }), [_, W]), { isListening: K, transcript: q, startListening: Re, stopListening: ze } = t(), J = I?.status === "streaming", Y = y.trim().length > 0 && !J;
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
- q && K && b((e) => e + (e ? " " : "") + q);
106
- }, [q, K]), l(() => {
106
+ J && q && x((e) => e + (e ? " " : "") + J);
107
+ }, [J, q]), l(() => {
107
108
  let e = !1;
108
- return r(G).then((t) => {
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
- }, [G]), l(() => {
116
- y.startsWith("/") && !y.includes(" ") ? (C(!0), we(y.slice(1))) : C(!1);
117
- }, [y]);
118
- let Be = u(() => ge.filter((e) => e.command.toLowerCase().includes(`/${w.toLowerCase()}`)), [w]);
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
- }, [y]), l(() => {
123
- if (!T && !D) return;
123
+ }, [b]), l(() => {
124
+ if (!E && !O) return;
124
125
  let e = (e) => {
125
- F.current && !F.current.contains(e.target) && (E(!1), O(!1));
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
- }, [T, D]);
129
- let X = c((e) => {
130
- V(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, v]), Ve = c(async () => {
137
- if (y.trim() && k && _) try {
137
+ }, [V, y]), He = c(async () => {
138
+ if (b.trim() && A && v) try {
138
139
  let e = await a({
139
- sessionId: v,
140
+ sessionId: y,
140
141
  agentRef: {
141
- agentId: _,
142
- profile: W ?? "default"
142
+ agentId: v,
143
+ profile: G ?? "default"
143
144
  },
144
- prompt: y.trim(),
145
- scheduledAt: new Date(k).toISOString()
145
+ prompt: b.trim(),
146
+ scheduledAt: new Date(A).toISOString()
146
147
  });
147
- X(`Prompt scheduled for ${new Date(e.scheduledAt).toLocaleString()} (Job: ${e.jobId.slice(0, 8)})`), b(""), A(""), O(!1), E(!1);
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
- X(`Failed to schedule: ${e instanceof Error ? e.message : "Unknown error"}`);
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
- W,
157
- X
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
- X(r ? `Session renamed to "${r}".` : "Usage: /rename <name>");
168
+ Z(r ? `Session renamed to "${r}".` : "Usage: /rename <name>");
168
169
  break;
169
170
  case "/model":
170
- r ? (L(v, r), X(`Model switched to "${r}".`)) : X("Usage: /model <model-name>");
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 && _e.includes(r)) {
174
+ if (r && _.includes(r)) {
174
175
  let e = r;
175
- R(v, e), s(G, e, I?.model ?? "default").then((e) => L(v, e)).catch(() => L(v, I?.model ?? "default")), X(`SDK switched to "${r}".`);
176
- } else X(`Usage: /sdk <${_e.join("|")}>`);
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(v, r), X(`Mode switched to "${r}".`)) : X(`Usage: /mode <${ve.join("|")}>`);
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-${v}.${e}`, o.click(), URL.revokeObjectURL(a), X(`Conversation exported as ${e}.`);
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
- X("Conversation cleared.");
188
+ Z("Conversation cleared.");
188
189
  break;
189
190
  case "/help": {
190
- let e = ge.map((e) => ` ${e.command}${e.args ? " " + e.args : ""} - ${e.description}`).join("\n");
191
- X(`Available commands:\n${e}`);
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: X(`Unknown command: ${n}. Type /help for available commands.`);
195
+ default: Z(`Unknown command: ${n}. Type /help for available commands.`);
195
196
  }
196
197
  }, [
197
- v,
198
+ y,
198
199
  I?.messages,
199
200
  I?.model,
200
201
  B,
201
202
  L,
202
203
  R,
203
204
  z,
204
- X,
205
- G
206
- ]), He = c((e) => {
207
- e.args ? b(`${e.command} `) : (Z(e.command), b("")), C(!1), P.current?.focus();
208
- }, [Z]), Q = c(() => {
209
- if (!Y) return;
210
- let e = y.trim();
211
- e.startsWith("/") ? (Z(e), b(""), S([])) : (ye(e, x.length > 0 ? x : void 0), b(""), S([]));
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
- Y,
214
- y,
215
- x,
214
+ X,
215
+ b,
216
+ S,
216
217
  ye,
217
- Z
218
- ]), Ue = c((e) => {
219
- e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Q());
220
- }, [Q]), We = c(() => {
218
+ Q
219
+ ]), We = c((e) => {
220
+ e.key === "Enter" && !e.shiftKey && (e.preventDefault(), $());
221
+ }, [$]), Ge = c(() => {
221
222
  be?.();
222
- }, [be]), $ = c((e) => {
223
- S((t) => [...t, ...e]);
224
- }, []), Ge = c((e) => {
225
- S((t) => t.filter((t, n) => n !== e));
226
- }, []), Ke = ae($);
227
- return I ? /* @__PURE__ */ g("div", {
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
- ...Ke,
230
+ ...Je,
230
231
  children: [
231
- Ce && Be.length > 0 && /* @__PURE__ */ h("div", {
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: Be.map((e) => /* @__PURE__ */ g("button", {
234
+ children: Ve.map((e) => /* @__PURE__ */ h("button", {
234
235
  type: "button",
235
- onClick: () => He(e),
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__ */ h("span", {
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__ */ h("span", {
243
+ e.args && /* @__PURE__ */ m("span", {
243
244
  className: "text-text-tertiary text-xs",
244
245
  children: e.args
245
246
  }),
246
- /* @__PURE__ */ h("span", {
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__ */ h("div", {
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__ */ g("div", {
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__ */ h(p, { className: "size-3 flex-shrink-0" }) : e.kind === "prompt" ? /* @__PURE__ */ h(me, { className: "size-3 flex-shrink-0" }) : /* @__PURE__ */ h(pe, { className: "size-3 flex-shrink-0" }),
261
- /* @__PURE__ */ h("span", {
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__ */ h("button", {
266
+ /* @__PURE__ */ m("button", {
266
267
  type: "button",
267
- onClick: () => Ne(v, e.id),
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__ */ h(m, { className: "size-3" })
271
+ children: /* @__PURE__ */ m(p, { className: "size-3" })
271
272
  })
272
273
  ]
273
274
  }, e.id))
274
275
  }),
275
- x.length > 0 && /* @__PURE__ */ h("div", {
276
+ S.length > 0 && /* @__PURE__ */ m("div", {
276
277
  className: "flex items-center gap-2 px-3 pt-2 overflow-x-auto",
277
- children: x.map((e, t) => /* @__PURE__ */ g("div", {
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__ */ h("span", {
280
+ children: [/* @__PURE__ */ m("span", {
280
281
  className: "truncate max-w-[120px]",
281
282
  children: e.name
282
- }), /* @__PURE__ */ h("button", {
283
+ }), /* @__PURE__ */ m("button", {
283
284
  type: "button",
284
- onClick: () => Ge(t),
285
+ onClick: () => qe(t),
285
286
  className: "p-0.5 rounded hover:bg-bg-sunken transition-colors flex-shrink-0",
286
- children: /* @__PURE__ */ h(m, { className: "size-3" })
287
+ children: /* @__PURE__ */ m(p, { className: "size-3" })
287
288
  })]
288
289
  }, `${e.name}-${t}`))
289
290
  }),
290
- /* @__PURE__ */ g("div", {
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__ */ h(ee, {
294
+ /* @__PURE__ */ m(ee, {
294
295
  sdk: I.sdk,
295
296
  mode: I.mode,
296
- providers: Te,
297
+ providers: De,
297
298
  onSdkChange: (e) => {
298
- R(v, e), s(G, e, I.model ?? "default").then((e) => L(v, e)).catch(() => L(v, I.model ?? "default"));
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(v, e)
301
+ onModeChange: (e) => z(y, e)
301
302
  }),
302
- /* @__PURE__ */ h(o, {
303
+ /* @__PURE__ */ m(o, {
303
304
  value: I.model,
304
- onChange: (e) => L(v, e),
305
+ onChange: (e) => L(y, e),
305
306
  provider: I.sdk,
306
- agentId: _
307
+ agentId: v
307
308
  }),
308
- /* @__PURE__ */ h(te, {
309
+ /* @__PURE__ */ m(te, {
309
310
  value: I.permissionMode,
310
311
  mode: I.mode,
311
- onChange: (e) => De(v, e)
312
+ onChange: (e) => ke(y, e)
312
313
  }),
313
- /* @__PURE__ */ h(ne, {
314
+ /* @__PURE__ */ m(ne, {
314
315
  selected: I.mcpServers,
315
316
  available: xe,
316
317
  onChange: () => {}
317
318
  }),
318
- /* @__PURE__ */ h(oe, {
319
+ /* @__PURE__ */ m(oe, {
319
320
  agentId: "",
320
- sessionId: v,
321
+ sessionId: y,
321
322
  contextLevel: I.contextLevel,
322
323
  rootPath: I.rootPath,
323
324
  onChange: (e, t, n) => {
324
- Ae(v, e), Me(v, t ?? null), je(v, n ?? null, t ?? null);
325
+ Me(y, e), Pe(y, t ?? null), Ne(y, n ?? null, t ?? null);
325
326
  },
326
- vibes: Fe.map((e) => ({
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__ */ h("div", { className: "flex-1" }),
333
- /* @__PURE__ */ h("button", {
333
+ /* @__PURE__ */ m("div", { className: "flex-1" }),
334
+ /* @__PURE__ */ m("button", {
334
335
  type: "button",
335
- onClick: () => ke(v),
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__ */ g("button", {
341
+ /* @__PURE__ */ h("button", {
341
342
  type: "button",
342
- onClick: () => {
343
- let t = window.prompt("Context history limit (messages sent with each prompt):", String(I.contextHistoryLimit));
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[v];
352
+ let t = e.getState().sessionStates[y];
348
353
  t && e.setState((e) => ({ sessionStates: {
349
354
  ...e.sessionStates,
350
- [v]: {
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__ */ h(re, {
367
+ /* @__PURE__ */ m(re, {
363
368
  enabled: I.voiceEnabled,
364
369
  onToggle: () => {
365
- Oe(v), I.voiceEnabled ? ze() : Re();
370
+ Ae(y), I.voiceEnabled ? Be() : ze();
366
371
  },
367
- isListening: K
372
+ isListening: q
368
373
  }),
369
- /* @__PURE__ */ h(ie, { onFileSelect: $ }),
370
- /* @__PURE__ */ h(se, {
371
- sessionId: v,
374
+ /* @__PURE__ */ m(ie, { onFileSelect: Ke }),
375
+ /* @__PURE__ */ m(se, {
376
+ sessionId: y,
372
377
  vibeId: I?.vibeId,
373
- onInsertText: (e) => b((t) => t ? `${t}\n${e}` : e)
378
+ onInsertText: (e) => x((t) => t ? `${t}\n${e}` : e)
374
379
  }),
375
- /* @__PURE__ */ g("button", {
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__ */ h(p, { className: "size-4" }), /* @__PURE__ */ h("span", {
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__ */ g("div", {
393
+ /* @__PURE__ */ h("div", {
389
394
  className: "flex items-end gap-2 px-3 pb-3 pt-1",
390
- children: [/* @__PURE__ */ h("textarea", {
395
+ children: [/* @__PURE__ */ m("textarea", {
391
396
  "aria-label": "control",
392
397
  ref: P,
393
- value: y,
394
- onChange: (e) => b(e.target.value),
395
- onKeyDown: Ue,
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: J
400
- }), J ? /* @__PURE__ */ h("button", {
404
+ disabled: Y
405
+ }), Y ? /* @__PURE__ */ m("button", {
401
406
  type: "button",
402
- onClick: We,
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__ */ h(he, { className: "size-4" })
406
- }) : /* @__PURE__ */ g("div", {
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__ */ h("button", {
415
+ /* @__PURE__ */ m("button", {
411
416
  type: "button",
412
- onClick: Q,
413
- disabled: !Y,
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__ */ h(ue, { className: "size-4" })
421
+ children: /* @__PURE__ */ m(ue, { className: "size-4" })
417
422
  }),
418
- /* @__PURE__ */ h("button", {
423
+ /* @__PURE__ */ m("button", {
419
424
  type: "button",
420
- onClick: () => E(!T),
421
- disabled: !Y,
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__ */ h(de, { className: "size-3" })
429
+ children: /* @__PURE__ */ m(de, { className: "size-3" })
425
430
  }),
426
- T && /* @__PURE__ */ h("div", {
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: D ? /* @__PURE__ */ g("div", {
433
+ children: O ? /* @__PURE__ */ h("div", {
429
434
  className: "px-3 py-2 space-y-2",
430
435
  children: [
431
- /* @__PURE__ */ h("label", {
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__ */ h("input", {
440
+ /* @__PURE__ */ m("input", {
436
441
  "aria-label": "control",
437
442
  type: "datetime-local",
438
- value: k,
439
- onChange: (e) => A(e.target.value),
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__ */ h("button", {
447
+ /* @__PURE__ */ m("button", {
443
448
  type: "button",
444
- onClick: () => void Ve(),
445
- disabled: !k || !_,
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__ */ g("button", {
455
+ }) : /* @__PURE__ */ h("button", {
451
456
  type: "button",
452
- onClick: () => O(!0),
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__ */ h(fe, { className: "size-3.5 text-text-secondary" }), N("vibecontrols.agentManager.inputArea.scheduleSendEllipsis", "Schedule Send...")]
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__ */ h(ce, {
461
- isOpen: Ee,
465
+ /* @__PURE__ */ m(ce, {
466
+ isOpen: Oe,
462
467
  onClose: () => M(!1),
463
- agent: G,
464
- sessionId: v
468
+ agent: K,
469
+ sessionId: y
465
470
  })
466
471
  ]
467
472
  }) : null;
468
473
  }
469
- export { _ as AgentManagerInputArea };
474
+ export { v as AgentManagerInputArea };