@ultrst-armada/floks 1.6.0 → 1.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,952 @@
1
+ import {
2
+ BaseSelect,
3
+ BaseTextarea
4
+ } from "./chunk-DWMKISE5.js";
5
+ import {
6
+ BaseInput
7
+ } from "./chunk-W42SJGOJ.js";
8
+ import {
9
+ BaseButton
10
+ } from "./chunk-A2CDQISJ.js";
11
+
12
+ // src/components/ai/model-card/providerIconHelper.ts
13
+ import { Cpu, Zap, CloudLightning, Gauge, Globe, Workflow, FolderHeart, HelpCircle } from "lucide-react";
14
+ var getProviderIcon = (provider) => {
15
+ switch (provider.toLowerCase()) {
16
+ case "google":
17
+ return CloudLightning;
18
+ case "groq":
19
+ return Gauge;
20
+ case "cerebras":
21
+ return Cpu;
22
+ case "openrouter":
23
+ return Globe;
24
+ case "together":
25
+ return Workflow;
26
+ case "nvidia":
27
+ return Zap;
28
+ case "huggingface":
29
+ return FolderHeart;
30
+ default:
31
+ return HelpCircle;
32
+ }
33
+ };
34
+
35
+ // src/components/ai/model-card/ModelCardHeader.tsx
36
+ import { AlertOctagon, RefreshCw, Key } from "lucide-react";
37
+ import { jsx, jsxs } from "react/jsx-runtime";
38
+ var ModelCardHeader = ({
39
+ model: m,
40
+ rankIndex,
41
+ isTopMatch,
42
+ matchScore,
43
+ providerStatus,
44
+ isUnavailable = false,
45
+ onRefreshRoute,
46
+ onOpenKeyManager
47
+ }) => {
48
+ const ProviderIcon = getProviderIcon(m.providerId);
49
+ return /* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
50
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-1", children: [
51
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1 flex-wrap", children: [
52
+ rankIndex !== void 0 && !isUnavailable && /* @__PURE__ */ jsx(
53
+ "span",
54
+ {
55
+ className: `px-1 py-0.5 rounded text-[9px] font-black tracking-tight uppercase border ${isTopMatch ? "bg-emerald-400 text-slate-950 border-emerald-600 shadow-sm" : rankIndex < 3 ? "bg-indigo-300 text-indigo-950 dark:bg-indigo-900 dark:text-indigo-100 border-indigo-700" : "bg-slate-200 dark:bg-slate-800 text-slate-700 dark:text-slate-300 border-slate-600"}`,
56
+ children: isTopMatch ? "\u2605 #1 MATCH" : `#${rankIndex + 1}`
57
+ }
58
+ ),
59
+ /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1 px-1 py-0.5 rounded border border-slate-700/50 bg-slate-200/80 dark:bg-slate-800/80 text-[8px] font-bold", children: [
60
+ /* @__PURE__ */ jsx(ProviderIcon, { size: 9 }),
61
+ m.providerId.toUpperCase()
62
+ ] }),
63
+ providerStatus === "missing-key" && /* @__PURE__ */ jsxs(
64
+ "span",
65
+ {
66
+ onClick: (e) => {
67
+ e.stopPropagation();
68
+ onOpenKeyManager?.(m.providerId);
69
+ },
70
+ title: `No API key configured for ${m.providerId.toUpperCase()}. Click to add.`,
71
+ className: "px-1 py-0.5 rounded bg-amber-500/20 text-amber-700 dark:text-amber-300 border border-amber-600/50 text-[7.5px] font-bold cursor-pointer hover:bg-amber-500/40 transition-colors flex items-center gap-0.5",
72
+ children: [
73
+ /* @__PURE__ */ jsx(Key, { size: 8 }),
74
+ " KEY NEEDED"
75
+ ]
76
+ }
77
+ )
78
+ ] }),
79
+ matchScore !== void 0 && !isUnavailable && /* @__PURE__ */ jsx("div", { className: "text-right shrink-0", children: /* @__PURE__ */ jsx(
80
+ "div",
81
+ {
82
+ className: `text-xs font-black leading-none ${isTopMatch ? "text-emerald-600 dark:text-emerald-400" : "text-indigo-600 dark:text-indigo-400"}`,
83
+ children: matchScore
84
+ }
85
+ ) })
86
+ ] }),
87
+ isUnavailable && /* @__PURE__ */ jsxs("div", { className: "bg-rose-600 text-white font-bold text-[8px] px-1.5 py-0.5 rounded flex items-center justify-between gap-1 border border-rose-800 shadow-sm", children: [
88
+ /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1 truncate", children: [
89
+ /* @__PURE__ */ jsx(AlertOctagon, { size: 10, className: "shrink-0" }),
90
+ " ROUTE UNAVAILABLE"
91
+ ] }),
92
+ onRefreshRoute && /* @__PURE__ */ jsx(
93
+ BaseButton,
94
+ {
95
+ size: "sm",
96
+ variant: "ghost",
97
+ onClick: (e) => {
98
+ e.stopPropagation();
99
+ onRefreshRoute(m.id);
100
+ },
101
+ title: "Probe & refresh route status",
102
+ className: "bg-white/20 hover:bg-white/40 p-0.5 rounded shrink-0",
103
+ children: /* @__PURE__ */ jsx(RefreshCw, { size: 9 })
104
+ }
105
+ )
106
+ ] }),
107
+ /* @__PURE__ */ jsx(
108
+ "h4",
109
+ {
110
+ className: "font-extrabold text-xs text-slate-900 dark:text-slate-100 leading-snug line-clamp-2 pt-0.5",
111
+ title: m.name,
112
+ children: m.name
113
+ }
114
+ )
115
+ ] });
116
+ };
117
+
118
+ // src/components/ai/model-card/ModelCardFooter.tsx
119
+ import { Cpu as Cpu2, Zap as Zap2, Activity, MessageSquare, Check, Play } from "lucide-react";
120
+ import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
121
+ var ModelCardFooter = ({
122
+ model: m,
123
+ isSelectedForTest,
124
+ onSelectForTest,
125
+ onOpenChat
126
+ }) => {
127
+ return /* @__PURE__ */ jsxs2("div", { className: "space-y-1 pt-1 border-t border-slate-700/20 text-[8.5px] text-slate-500 font-mono", children: [
128
+ /* @__PURE__ */ jsxs2("div", { className: "flex items-center justify-between", children: [
129
+ /* @__PURE__ */ jsxs2("div", { className: "flex items-center gap-1.5", children: [
130
+ /* @__PURE__ */ jsxs2("span", { className: "flex items-center gap-0.5", title: "Intelligence Rating", children: [
131
+ /* @__PURE__ */ jsx2(Cpu2, { size: 9, className: "text-indigo-500" }),
132
+ m.intelligenceRating ?? 85
133
+ ] }),
134
+ /* @__PURE__ */ jsxs2("span", { className: "flex items-center gap-0.5", title: "Tool Rating", children: [
135
+ /* @__PURE__ */ jsx2(Zap2, { size: 9, className: "text-amber-500" }),
136
+ m.toolRating ?? 80
137
+ ] }),
138
+ /* @__PURE__ */ jsxs2("span", { className: "flex items-center gap-0.5", title: "Speed Rating", children: [
139
+ /* @__PURE__ */ jsx2(Activity, { size: 9, className: "text-rose-500" }),
140
+ m.speedRating ?? 90
141
+ ] })
142
+ ] }),
143
+ /* @__PURE__ */ jsxs2("span", { className: "font-bold", children: [
144
+ "$",
145
+ m.costPer1kInputUsd ?? m.inputCostPer1k ?? 0,
146
+ "/k"
147
+ ] })
148
+ ] }),
149
+ /* @__PURE__ */ jsxs2("div", { className: "flex items-center justify-between gap-1 pt-0.5", children: [
150
+ /* @__PURE__ */ jsx2(
151
+ BaseButton,
152
+ {
153
+ size: "sm",
154
+ variant: "secondary",
155
+ onClick: (e) => {
156
+ e.stopPropagation();
157
+ onOpenChat?.(m.id, m.providerId);
158
+ },
159
+ className: "text-[8px] flex items-center gap-1 font-bold px-1.5 py-0.5",
160
+ icon: /* @__PURE__ */ jsx2(MessageSquare, { size: 9, className: "text-indigo-500" }),
161
+ children: "CHAT"
162
+ }
163
+ ),
164
+ onSelectForTest && /* @__PURE__ */ jsx2(
165
+ BaseButton,
166
+ {
167
+ size: "sm",
168
+ variant: isSelectedForTest ? "accent" : "secondary",
169
+ onClick: (e) => {
170
+ e.stopPropagation();
171
+ onSelectForTest(m.id, m.providerId);
172
+ },
173
+ className: "p-1",
174
+ children: isSelectedForTest ? /* @__PURE__ */ jsx2(Check, { size: 11 }) : /* @__PURE__ */ jsx2(Play, { size: 11 })
175
+ }
176
+ )
177
+ ] })
178
+ ] });
179
+ };
180
+
181
+ // src/components/ai/model-card/ModelCard.tsx
182
+ import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
183
+ var ModelCard = ({
184
+ model: m,
185
+ rankIndex,
186
+ isTopMatch,
187
+ matchScore,
188
+ isSelectedForTest,
189
+ providerStatus,
190
+ isUnavailable = false,
191
+ onSelectForTest,
192
+ onDoubleClick,
193
+ onOpenChat,
194
+ onRefreshRoute,
195
+ onOpenKeyManager,
196
+ visualSlot
197
+ }) => {
198
+ const handleCardDoubleClick = (e) => {
199
+ e.stopPropagation();
200
+ const chatFn = onOpenChat || onDoubleClick;
201
+ if (chatFn && !isUnavailable) {
202
+ chatFn(m.id, m.providerId);
203
+ }
204
+ };
205
+ return /* @__PURE__ */ jsxs3(
206
+ "div",
207
+ {
208
+ onDoubleClick: handleCardDoubleClick,
209
+ title: isUnavailable ? "Route currently unavailable" : `Double click to chat with ${m.name}`,
210
+ className: `p-3 rounded-xl border-2 font-mono text-xs flex flex-col justify-between relative transition-all duration-100 cursor-pointer select-none group min-h-[220px] ${isUnavailable ? "opacity-60 grayscale filter border-slate-600 bg-slate-200/60 dark:bg-slate-900/60 shadow-none" : isTopMatch ? "border-emerald-500 bg-emerald-50/80 dark:bg-emerald-950/40 shadow-md" : isSelectedForTest ? "border-indigo-600 bg-indigo-50/80 dark:bg-indigo-950/40 shadow-md" : "border-slate-300 dark:border-slate-700 bg-white/90 dark:bg-slate-900/90 text-slate-900 dark:text-slate-100 shadow-sm hover:border-slate-400 dark:hover:border-slate-500 hover:shadow-md"}`,
211
+ children: [
212
+ /* @__PURE__ */ jsx3(
213
+ ModelCardHeader,
214
+ {
215
+ model: m,
216
+ rankIndex,
217
+ isTopMatch,
218
+ matchScore,
219
+ providerStatus,
220
+ isUnavailable,
221
+ onRefreshRoute,
222
+ onOpenKeyManager
223
+ }
224
+ ),
225
+ /* @__PURE__ */ jsxs3("div", { className: "flex-1 flex flex-col items-center justify-center my-2 py-2 relative", children: [
226
+ visualSlot ? visualSlot : /* @__PURE__ */ jsx3("div", { className: "w-12 h-12 rounded-full border border-dashed border-slate-400 dark:border-slate-600 flex items-center justify-center text-[10px] text-slate-400", children: "AI" }),
227
+ /* @__PURE__ */ jsxs3("div", { className: "flex items-center gap-1 mt-1 text-[8px] font-extrabold font-mono", children: [
228
+ /* @__PURE__ */ jsxs3("span", { className: "px-1 py-0.5 rounded bg-slate-200/90 dark:bg-slate-800/90 border border-slate-400/50 dark:border-slate-600/50 text-slate-700 dark:text-slate-300", children: [
229
+ m.contextWindow && m.contextWindow >= 1e6 ? `${(m.contextWindow / 1e6).toFixed(1)}M` : m.contextWindow ? `${(m.contextWindow / 1e3).toFixed(0)}k` : "128k",
230
+ " ",
231
+ "ctx"
232
+ ] }),
233
+ /* @__PURE__ */ jsx3(
234
+ "span",
235
+ {
236
+ className: `px-1 py-0.5 rounded border font-black ${m.isFree ? "bg-emerald-500/20 text-emerald-600 dark:text-emerald-400 border-emerald-500/50" : "bg-amber-500/20 text-amber-600 dark:text-amber-400 border-amber-500/50"}`,
237
+ children: m.isFree ? "FREE" : "PAID"
238
+ }
239
+ )
240
+ ] })
241
+ ] }),
242
+ /* @__PURE__ */ jsx3(
243
+ ModelCardFooter,
244
+ {
245
+ model: m,
246
+ isSelectedForTest,
247
+ onSelectForTest,
248
+ onOpenChat: onOpenChat || onDoubleClick
249
+ }
250
+ )
251
+ ]
252
+ }
253
+ );
254
+ };
255
+
256
+ // src/components/ai/model-picker/AIProviderSelector.tsx
257
+ import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
258
+ var AIProviderSelector = ({
259
+ providers,
260
+ selectedProvider,
261
+ onSelectProvider,
262
+ className = ""
263
+ }) => {
264
+ return /* @__PURE__ */ jsx4("div", { className: `flex items-center gap-1.5 flex-wrap ${className}`, children: providers.map((p) => {
265
+ const Icon = getProviderIcon(p);
266
+ const isSelected = selectedProvider?.toLowerCase() === p.toLowerCase();
267
+ return /* @__PURE__ */ jsxs4(
268
+ "button",
269
+ {
270
+ type: "button",
271
+ onClick: () => onSelectProvider(p),
272
+ className: `flex items-center gap-1.5 px-2.5 py-1 rounded-md text-xs font-mono font-bold transition-all border ${isSelected ? "bg-indigo-600 text-white border-indigo-700 shadow-sm" : "bg-slate-100 dark:bg-slate-800 text-slate-700 dark:text-slate-300 border-slate-300 dark:border-slate-700 hover:border-slate-400"}`,
273
+ children: [
274
+ /* @__PURE__ */ jsx4(Icon, { size: 12 }),
275
+ /* @__PURE__ */ jsx4("span", { className: "uppercase", children: p })
276
+ ]
277
+ },
278
+ p
279
+ );
280
+ }) });
281
+ };
282
+
283
+ // src/components/ai/model-picker/AIModelPicker.tsx
284
+ import { useState } from "react";
285
+ import { ChevronDown, Check as Check2, Sparkles } from "lucide-react";
286
+ import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
287
+ var AIModelPicker = ({
288
+ models,
289
+ selectedModelId,
290
+ onSelectModel,
291
+ className = ""
292
+ }) => {
293
+ const [isOpen, setIsOpen] = useState(false);
294
+ const current = models.find((m) => m.id === selectedModelId) || models[0];
295
+ const CurrentIcon = current ? getProviderIcon(current.providerId) : Sparkles;
296
+ return /* @__PURE__ */ jsxs5("div", { className: `relative inline-block text-left font-mono text-xs ${className}`, children: [
297
+ /* @__PURE__ */ jsxs5(
298
+ "button",
299
+ {
300
+ type: "button",
301
+ onClick: () => setIsOpen(!isOpen),
302
+ className: "flex items-center gap-2 px-2.5 py-1.5 rounded-lg border border-slate-300 dark:border-slate-700 bg-white dark:bg-slate-900 text-slate-800 dark:text-slate-200 hover:border-slate-400 font-bold shadow-sm",
303
+ children: [
304
+ /* @__PURE__ */ jsx5(CurrentIcon, { size: 13, className: "text-indigo-500" }),
305
+ /* @__PURE__ */ jsx5("span", { className: "truncate max-w-[140px]", children: current ? current.name : "Select Model" }),
306
+ /* @__PURE__ */ jsx5(ChevronDown, { size: 13, className: "text-slate-400" })
307
+ ]
308
+ }
309
+ ),
310
+ isOpen && /* @__PURE__ */ jsx5("div", { className: "absolute z-50 mt-1 w-64 rounded-xl border border-slate-300 dark:border-slate-700 bg-white dark:bg-slate-900 shadow-xl py-1 max-h-60 overflow-y-auto", children: models.map((m) => {
311
+ const Icon = getProviderIcon(m.providerId);
312
+ const isSelected = m.id === current?.id;
313
+ return /* @__PURE__ */ jsxs5(
314
+ "button",
315
+ {
316
+ type: "button",
317
+ onClick: () => {
318
+ onSelectModel(m);
319
+ setIsOpen(false);
320
+ },
321
+ className: `w-full flex items-center justify-between px-3 py-2 text-left hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors ${isSelected ? "bg-indigo-50 dark:bg-indigo-950/40 text-indigo-600 dark:text-indigo-400" : ""}`,
322
+ children: [
323
+ /* @__PURE__ */ jsxs5("div", { className: "flex items-center gap-2 truncate", children: [
324
+ /* @__PURE__ */ jsx5(Icon, { size: 12, className: "text-slate-400 shrink-0" }),
325
+ /* @__PURE__ */ jsx5("span", { className: "truncate font-semibold", children: m.name })
326
+ ] }),
327
+ isSelected && /* @__PURE__ */ jsx5(Check2, { size: 13, className: "text-indigo-600 shrink-0" })
328
+ ]
329
+ },
330
+ m.id
331
+ );
332
+ }) })
333
+ ] });
334
+ };
335
+
336
+ // src/components/ai/key-manager/SingleKeyCard.tsx
337
+ import { CheckCircle, AlertTriangle, XCircle, Trash2, RefreshCw as RefreshCw2 } from "lucide-react";
338
+ import { jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
339
+ var SingleKeyCard = ({
340
+ id,
341
+ providerId,
342
+ label,
343
+ keyMasked,
344
+ status,
345
+ isActive,
346
+ lastLatencyMs = 0,
347
+ totalCalls = 0,
348
+ onVerify,
349
+ onDelete,
350
+ onToggleActive
351
+ }) => {
352
+ const Icon = getProviderIcon(providerId);
353
+ const isValid = status === "active" || status === "valid";
354
+ return /* @__PURE__ */ jsxs6("div", { className: "flex items-center justify-between p-3 rounded-xl border border-slate-300 dark:border-slate-700 bg-white dark:bg-slate-900 font-mono text-xs shadow-sm", children: [
355
+ /* @__PURE__ */ jsxs6("div", { className: "flex items-center gap-3", children: [
356
+ /* @__PURE__ */ jsx6("div", { className: "w-8 h-8 rounded-lg bg-slate-100 dark:bg-slate-800 flex items-center justify-center border border-slate-300 dark:border-slate-700", children: /* @__PURE__ */ jsx6(Icon, { size: 16, className: "text-indigo-500" }) }),
357
+ /* @__PURE__ */ jsxs6("div", { children: [
358
+ /* @__PURE__ */ jsxs6("div", { className: "flex items-center gap-2", children: [
359
+ /* @__PURE__ */ jsx6("span", { className: "font-bold text-slate-900 dark:text-slate-100", children: label }),
360
+ /* @__PURE__ */ jsx6("span", { className: "text-[10px] uppercase px-1.5 py-0.5 rounded border border-slate-400/40 bg-slate-100 dark:bg-slate-800 text-slate-500 font-semibold", children: providerId })
361
+ ] }),
362
+ /* @__PURE__ */ jsx6("div", { className: "text-[11px] text-slate-400 tracking-wider pt-0.5", children: keyMasked })
363
+ ] })
364
+ ] }),
365
+ /* @__PURE__ */ jsxs6("div", { className: "flex items-center gap-3", children: [
366
+ /* @__PURE__ */ jsxs6("div", { className: "text-right text-[10px] text-slate-400", children: [
367
+ /* @__PURE__ */ jsxs6("div", { children: [
368
+ lastLatencyMs,
369
+ "ms"
370
+ ] }),
371
+ /* @__PURE__ */ jsxs6("div", { children: [
372
+ totalCalls,
373
+ " calls"
374
+ ] })
375
+ ] }),
376
+ /* @__PURE__ */ jsxs6("div", { className: "flex items-center gap-1", children: [
377
+ isValid ? /* @__PURE__ */ jsx6(CheckCircle, { size: 15, className: "text-emerald-500" }) : status === "rate-limited" ? /* @__PURE__ */ jsx6(AlertTriangle, { size: 15, className: "text-amber-500" }) : /* @__PURE__ */ jsx6(XCircle, { size: 15, className: "text-rose-500" }),
378
+ onVerify && /* @__PURE__ */ jsx6(
379
+ BaseButton,
380
+ {
381
+ size: "sm",
382
+ variant: "ghost",
383
+ onClick: () => onVerify(id),
384
+ title: "Verify Key",
385
+ className: "p-1 text-slate-500 hover:text-indigo-600",
386
+ children: /* @__PURE__ */ jsx6(RefreshCw2, { size: 13 })
387
+ }
388
+ ),
389
+ onDelete && /* @__PURE__ */ jsx6(
390
+ BaseButton,
391
+ {
392
+ size: "sm",
393
+ variant: "ghost",
394
+ onClick: () => onDelete(id),
395
+ title: "Delete Key",
396
+ className: "p-1 text-slate-500 hover:text-rose-600",
397
+ children: /* @__PURE__ */ jsx6(Trash2, { size: 13 })
398
+ }
399
+ )
400
+ ] })
401
+ ] })
402
+ ] });
403
+ };
404
+
405
+ // src/components/ai/key-manager/SingleKeyForm.tsx
406
+ import { useState as useState2 } from "react";
407
+ import { jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
408
+ var SingleKeyForm = ({
409
+ providers,
410
+ onSubmit,
411
+ onCancel,
412
+ isLoading = false
413
+ }) => {
414
+ const [providerId, setProviderId] = useState2(providers[0] || "google");
415
+ const [label, setLabel] = useState2("");
416
+ const [key, setKey] = useState2("");
417
+ const handleSubmit = (e) => {
418
+ e.preventDefault();
419
+ if (!key.trim()) return;
420
+ onSubmit({
421
+ providerId,
422
+ label: label.trim() || `${providerId.toUpperCase()} Key`,
423
+ key: key.trim()
424
+ });
425
+ setKey("");
426
+ setLabel("");
427
+ };
428
+ return /* @__PURE__ */ jsxs7("form", { onSubmit: handleSubmit, className: "p-4 rounded-xl border border-slate-300 dark:border-slate-700 bg-white dark:bg-slate-900 font-mono text-xs space-y-3", children: [
429
+ /* @__PURE__ */ jsx7("div", { className: "font-bold text-sm text-slate-900 dark:text-slate-100", children: "Add API Key" }),
430
+ /* @__PURE__ */ jsxs7("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-3", children: [
431
+ /* @__PURE__ */ jsxs7("div", { children: [
432
+ /* @__PURE__ */ jsx7("label", { className: "block text-[11px] text-slate-500 mb-1", children: "Provider" }),
433
+ /* @__PURE__ */ jsx7(
434
+ BaseSelect,
435
+ {
436
+ value: providerId,
437
+ onChange: (e) => setProviderId(e.target.value),
438
+ options: providers.map((p) => ({ label: p.toUpperCase(), value: p }))
439
+ }
440
+ )
441
+ ] }),
442
+ /* @__PURE__ */ jsxs7("div", { children: [
443
+ /* @__PURE__ */ jsx7("label", { className: "block text-[11px] text-slate-500 mb-1", children: "Label" }),
444
+ /* @__PURE__ */ jsx7(
445
+ BaseInput,
446
+ {
447
+ value: label,
448
+ onChange: (e) => setLabel(e.target.value),
449
+ placeholder: "e.g. Production Key"
450
+ }
451
+ )
452
+ ] })
453
+ ] }),
454
+ /* @__PURE__ */ jsxs7("div", { children: [
455
+ /* @__PURE__ */ jsx7("label", { className: "block text-[11px] text-slate-500 mb-1", children: "API Key / Token" }),
456
+ /* @__PURE__ */ jsx7(
457
+ BaseInput,
458
+ {
459
+ type: "password",
460
+ value: key,
461
+ onChange: (e) => setKey(e.target.value),
462
+ placeholder: "Paste provider key..."
463
+ }
464
+ )
465
+ ] }),
466
+ /* @__PURE__ */ jsxs7("div", { className: "flex justify-end gap-2 pt-1", children: [
467
+ onCancel && /* @__PURE__ */ jsx7(BaseButton, { type: "button", variant: "secondary", onClick: onCancel, children: "Cancel" }),
468
+ /* @__PURE__ */ jsx7(BaseButton, { type: "submit", variant: "accent", disabled: isLoading || !key.trim(), children: isLoading ? "Saving..." : "Add Key" })
469
+ ] })
470
+ ] });
471
+ };
472
+
473
+ // src/components/ai/key-manager/KeyProviderFilterBar.tsx
474
+ import { jsx as jsx8, jsxs as jsxs8 } from "react/jsx-runtime";
475
+ var KeyProviderFilterBar = ({
476
+ providers,
477
+ activeFilter,
478
+ onFilterChange,
479
+ counts = {}
480
+ }) => {
481
+ return /* @__PURE__ */ jsxs8("div", { className: "flex items-center gap-1.5 flex-wrap font-mono text-xs", children: [
482
+ /* @__PURE__ */ jsxs8(
483
+ "button",
484
+ {
485
+ type: "button",
486
+ onClick: () => onFilterChange(void 0),
487
+ className: `px-3 py-1 rounded-lg border font-bold transition-all ${!activeFilter ? "bg-indigo-600 text-white border-indigo-700" : "bg-slate-100 dark:bg-slate-800 text-slate-600 dark:text-slate-400 border-slate-300 dark:border-slate-700"}`,
488
+ children: [
489
+ "ALL (",
490
+ Object.values(counts).reduce((a, b) => a + b, 0),
491
+ ")"
492
+ ]
493
+ }
494
+ ),
495
+ providers.map((p) => {
496
+ const Icon = getProviderIcon(p);
497
+ const isSelected = activeFilter?.toLowerCase() === p.toLowerCase();
498
+ const count = counts[p] ?? 0;
499
+ return /* @__PURE__ */ jsxs8(
500
+ "button",
501
+ {
502
+ type: "button",
503
+ onClick: () => onFilterChange(p),
504
+ className: `flex items-center gap-1.5 px-2.5 py-1 rounded-lg border font-bold transition-all ${isSelected ? "bg-indigo-600 text-white border-indigo-700" : "bg-slate-100 dark:bg-slate-800 text-slate-600 dark:text-slate-400 border-slate-300 dark:border-slate-700"}`,
505
+ children: [
506
+ /* @__PURE__ */ jsx8(Icon, { size: 12 }),
507
+ /* @__PURE__ */ jsx8("span", { className: "uppercase", children: p }),
508
+ count > 0 && /* @__PURE__ */ jsxs8("span", { className: "text-[10px] opacity-75", children: [
509
+ "(",
510
+ count,
511
+ ")"
512
+ ] })
513
+ ]
514
+ },
515
+ p
516
+ );
517
+ })
518
+ ] });
519
+ };
520
+
521
+ // src/components/ai/key-manager/KeyModelVerificationSuite.tsx
522
+ import { useState as useState3 } from "react";
523
+ import { ShieldCheck, RefreshCw as RefreshCw3 } from "lucide-react";
524
+ import { jsx as jsx9, jsxs as jsxs9 } from "react/jsx-runtime";
525
+ var KeyModelVerificationSuite = ({
526
+ onVerifyAll,
527
+ totalKeys,
528
+ validKeys
529
+ }) => {
530
+ const [isRunning, setIsRunning] = useState3(false);
531
+ const handleRun = async () => {
532
+ setIsRunning(true);
533
+ try {
534
+ await onVerifyAll();
535
+ } finally {
536
+ setIsRunning(false);
537
+ }
538
+ };
539
+ return /* @__PURE__ */ jsxs9("div", { className: "flex items-center justify-between p-3 rounded-xl border border-slate-300 dark:border-slate-700 bg-slate-50 dark:bg-slate-900/50 font-mono text-xs", children: [
540
+ /* @__PURE__ */ jsxs9("div", { className: "flex items-center gap-3", children: [
541
+ /* @__PURE__ */ jsx9(ShieldCheck, { size: 18, className: "text-indigo-500" }),
542
+ /* @__PURE__ */ jsxs9("div", { children: [
543
+ /* @__PURE__ */ jsx9("div", { className: "font-bold text-slate-900 dark:text-slate-100", children: "Verification Engine" }),
544
+ /* @__PURE__ */ jsxs9("div", { className: "text-[11px] text-slate-500", children: [
545
+ validKeys,
546
+ " of ",
547
+ totalKeys,
548
+ " keys verified active"
549
+ ] })
550
+ ] })
551
+ ] }),
552
+ /* @__PURE__ */ jsxs9(
553
+ BaseButton,
554
+ {
555
+ size: "sm",
556
+ variant: "secondary",
557
+ onClick: handleRun,
558
+ disabled: isRunning || totalKeys === 0,
559
+ className: "flex items-center gap-1.5",
560
+ children: [
561
+ /* @__PURE__ */ jsx9(RefreshCw3, { size: 12, className: isRunning ? "animate-spin" : "" }),
562
+ isRunning ? "Testing..." : "Verify All"
563
+ ]
564
+ }
565
+ )
566
+ ] });
567
+ };
568
+
569
+ // src/components/ai/key-manager/KeyListContainer.tsx
570
+ import { useState as useState4 } from "react";
571
+ import { Plus } from "lucide-react";
572
+ import { jsx as jsx10, jsxs as jsxs10 } from "react/jsx-runtime";
573
+ var KeyListContainer = ({
574
+ keys,
575
+ providers,
576
+ onAddKey,
577
+ onVerifyKey,
578
+ onDeleteKey,
579
+ onToggleActive
580
+ }) => {
581
+ const [filter, setFilter] = useState4();
582
+ const [showForm, setShowForm] = useState4(false);
583
+ const filteredKeys = filter ? keys.filter((k) => k.providerId.toLowerCase() === filter.toLowerCase()) : keys;
584
+ const counts = {};
585
+ for (const k of keys) {
586
+ counts[k.providerId] = (counts[k.providerId] || 0) + 1;
587
+ }
588
+ return /* @__PURE__ */ jsxs10("div", { className: "space-y-4 font-mono", children: [
589
+ /* @__PURE__ */ jsxs10("div", { className: "flex items-center justify-between gap-3", children: [
590
+ /* @__PURE__ */ jsx10(
591
+ KeyProviderFilterBar,
592
+ {
593
+ providers,
594
+ activeFilter: filter,
595
+ onFilterChange: setFilter,
596
+ counts
597
+ }
598
+ ),
599
+ /* @__PURE__ */ jsxs10(
600
+ BaseButton,
601
+ {
602
+ size: "sm",
603
+ variant: "accent",
604
+ onClick: () => setShowForm(!showForm),
605
+ className: "flex items-center gap-1.5 shrink-0",
606
+ children: [
607
+ /* @__PURE__ */ jsx10(Plus, { size: 13 }),
608
+ showForm ? "Close Form" : "New Key"
609
+ ]
610
+ }
611
+ )
612
+ ] }),
613
+ showForm && /* @__PURE__ */ jsx10(
614
+ SingleKeyForm,
615
+ {
616
+ providers,
617
+ onSubmit: (data) => {
618
+ onAddKey(data);
619
+ setShowForm(false);
620
+ },
621
+ onCancel: () => setShowForm(false)
622
+ }
623
+ ),
624
+ /* @__PURE__ */ jsx10("div", { className: "space-y-2", children: filteredKeys.length === 0 ? /* @__PURE__ */ jsx10("div", { className: "p-8 text-center text-slate-400 border border-dashed border-slate-300 dark:border-slate-700 rounded-xl text-xs", children: "No API keys found for current filter. Add one to enable inference." }) : filteredKeys.map((k) => /* @__PURE__ */ jsx10(
625
+ SingleKeyCard,
626
+ {
627
+ ...k,
628
+ onVerify: onVerifyKey,
629
+ onDelete: onDeleteKey,
630
+ onToggleActive
631
+ },
632
+ k.id
633
+ )) })
634
+ ] });
635
+ };
636
+
637
+ // src/components/ai/chat/AgentExecutionCard.tsx
638
+ import { Terminal, CheckCircle2, Clock, AlertCircle as AlertCircle2 } from "lucide-react";
639
+ import { jsx as jsx11, jsxs as jsxs11 } from "react/jsx-runtime";
640
+ var AgentExecutionCard = ({
641
+ agentName,
642
+ status,
643
+ toolName,
644
+ durationMs,
645
+ outputPreview
646
+ }) => {
647
+ return /* @__PURE__ */ jsxs11("div", { className: "p-3 rounded-xl border border-slate-300 dark:border-slate-800 bg-slate-50 dark:bg-slate-900/40 font-mono text-xs space-y-2", children: [
648
+ /* @__PURE__ */ jsxs11("div", { className: "flex items-center justify-between", children: [
649
+ /* @__PURE__ */ jsxs11("div", { className: "flex items-center gap-2", children: [
650
+ /* @__PURE__ */ jsx11(Terminal, { size: 14, className: "text-indigo-500" }),
651
+ /* @__PURE__ */ jsx11("span", { className: "font-bold text-slate-800 dark:text-slate-200", children: agentName }),
652
+ toolName && /* @__PURE__ */ jsx11("span", { className: "text-[10px] px-1.5 py-0.5 rounded bg-indigo-50 dark:bg-indigo-950 text-indigo-600 dark:text-indigo-400 border border-indigo-200 dark:border-indigo-800", children: toolName })
653
+ ] }),
654
+ /* @__PURE__ */ jsxs11("div", { className: "flex items-center gap-2", children: [
655
+ durationMs !== void 0 && /* @__PURE__ */ jsxs11("span", { className: "flex items-center gap-1 text-[10px] text-slate-400", children: [
656
+ /* @__PURE__ */ jsx11(Clock, { size: 10 }),
657
+ durationMs,
658
+ "ms"
659
+ ] }),
660
+ status === "completed" && /* @__PURE__ */ jsx11(CheckCircle2, { size: 14, className: "text-emerald-500" }),
661
+ status === "failed" && /* @__PURE__ */ jsx11(AlertCircle2, { size: 14, className: "text-rose-500" }),
662
+ status === "running" && /* @__PURE__ */ jsx11("div", { className: "w-3 h-3 rounded-full border-2 border-indigo-500 border-t-transparent animate-spin" })
663
+ ] })
664
+ ] }),
665
+ outputPreview && /* @__PURE__ */ jsx11("pre", { className: "p-2 rounded bg-slate-900 text-slate-100 text-[10.5px] overflow-x-auto max-h-24", children: outputPreview })
666
+ ] });
667
+ };
668
+
669
+ // src/components/ai/chat/DirectChatHeader.tsx
670
+ import { Bot, RotateCcw } from "lucide-react";
671
+ import { jsx as jsx12, jsxs as jsxs12 } from "react/jsx-runtime";
672
+ var DirectChatHeader = ({
673
+ title = "AI Assistant",
674
+ modelName,
675
+ providerId,
676
+ onClearHistory,
677
+ actionsSlot
678
+ }) => {
679
+ return /* @__PURE__ */ jsxs12("div", { className: "flex items-center justify-between px-4 py-2.5 border-b border-slate-300 dark:border-slate-800 bg-white dark:bg-slate-900 font-mono text-xs", children: [
680
+ /* @__PURE__ */ jsxs12("div", { className: "flex items-center gap-2.5", children: [
681
+ /* @__PURE__ */ jsx12("div", { className: "w-7 h-7 rounded-lg bg-indigo-50 dark:bg-indigo-950 flex items-center justify-center text-indigo-600 dark:text-indigo-400", children: /* @__PURE__ */ jsx12(Bot, { size: 16 }) }),
682
+ /* @__PURE__ */ jsxs12("div", { children: [
683
+ /* @__PURE__ */ jsx12("div", { className: "font-bold text-slate-900 dark:text-slate-100", children: title }),
684
+ modelName && /* @__PURE__ */ jsxs12("div", { className: "text-[10px] text-slate-400 flex items-center gap-1.5", children: [
685
+ /* @__PURE__ */ jsx12("span", { children: modelName }),
686
+ providerId && /* @__PURE__ */ jsxs12("span", { className: "uppercase font-semibold", children: [
687
+ "(",
688
+ providerId,
689
+ ")"
690
+ ] })
691
+ ] })
692
+ ] })
693
+ ] }),
694
+ /* @__PURE__ */ jsxs12("div", { className: "flex items-center gap-2", children: [
695
+ actionsSlot,
696
+ onClearHistory && /* @__PURE__ */ jsx12(
697
+ BaseButton,
698
+ {
699
+ size: "sm",
700
+ variant: "ghost",
701
+ onClick: onClearHistory,
702
+ title: "Clear Chat History",
703
+ className: "p-1 text-slate-400 hover:text-slate-600 dark:hover:text-slate-200",
704
+ children: /* @__PURE__ */ jsx12(RotateCcw, { size: 13 })
705
+ }
706
+ )
707
+ ] })
708
+ ] });
709
+ };
710
+
711
+ // src/components/ai/chat/DirectChatMessageList.tsx
712
+ import { User, Bot as Bot2 } from "lucide-react";
713
+ import { jsx as jsx13, jsxs as jsxs13 } from "react/jsx-runtime";
714
+ var DirectChatMessageList = ({
715
+ messages,
716
+ isStreaming = false,
717
+ className = ""
718
+ }) => {
719
+ return /* @__PURE__ */ jsxs13("div", { className: `space-y-4 p-4 overflow-y-auto font-mono text-xs ${className}`, children: [
720
+ messages.length === 0 ? /* @__PURE__ */ jsxs13("div", { className: "h-full flex flex-col items-center justify-center text-center text-slate-400 p-8 space-y-2", children: [
721
+ /* @__PURE__ */ jsx13(Bot2, { size: 28, className: "opacity-40" }),
722
+ /* @__PURE__ */ jsx13("p", { children: "No messages yet. Send a prompt to start conversation." })
723
+ ] }) : messages.map((m) => {
724
+ const isUser = m.role === "user";
725
+ return /* @__PURE__ */ jsxs13(
726
+ "div",
727
+ {
728
+ className: `flex gap-3 ${isUser ? "justify-end" : "justify-start"}`,
729
+ children: [
730
+ !isUser && /* @__PURE__ */ jsx13("div", { className: "w-6 h-6 rounded-full bg-indigo-50 dark:bg-indigo-950 text-indigo-600 dark:text-indigo-400 flex items-center justify-center shrink-0 mt-0.5", children: /* @__PURE__ */ jsx13(Bot2, { size: 13 }) }),
731
+ /* @__PURE__ */ jsxs13(
732
+ "div",
733
+ {
734
+ className: `max-w-[80%] rounded-xl p-3 border leading-relaxed ${isUser ? "bg-indigo-600 text-white border-indigo-700" : "bg-white dark:bg-slate-900 text-slate-800 dark:text-slate-200 border-slate-300 dark:border-slate-800 shadow-sm"}`,
735
+ children: [
736
+ /* @__PURE__ */ jsx13("div", { className: "whitespace-pre-wrap", children: m.content }),
737
+ m.timestamp && /* @__PURE__ */ jsx13(
738
+ "div",
739
+ {
740
+ className: `text-[9px] mt-1 text-right ${isUser ? "text-indigo-200" : "text-slate-400"}`,
741
+ children: m.timestamp
742
+ }
743
+ )
744
+ ]
745
+ }
746
+ ),
747
+ isUser && /* @__PURE__ */ jsx13("div", { className: "w-6 h-6 rounded-full bg-slate-200 dark:bg-slate-800 text-slate-700 dark:text-slate-300 flex items-center justify-center shrink-0 mt-0.5", children: /* @__PURE__ */ jsx13(User, { size: 13 }) })
748
+ ]
749
+ },
750
+ m.id
751
+ );
752
+ }),
753
+ isStreaming && /* @__PURE__ */ jsxs13("div", { className: "flex gap-3 justify-start items-center text-slate-400 text-[11px]", children: [
754
+ /* @__PURE__ */ jsx13("div", { className: "w-2 h-2 rounded-full bg-indigo-500 animate-ping" }),
755
+ /* @__PURE__ */ jsx13("span", { children: "Generating response..." })
756
+ ] })
757
+ ] });
758
+ };
759
+
760
+ // src/components/ai/chat/DirectChatInput.tsx
761
+ import { useState as useState5 } from "react";
762
+ import { Send } from "lucide-react";
763
+ import { jsx as jsx14, jsxs as jsxs14 } from "react/jsx-runtime";
764
+ var DirectChatInput = ({
765
+ onSendMessage,
766
+ disabled = false,
767
+ placeholder = "Type a prompt... (Shift+Enter for new line)",
768
+ toolsSlot
769
+ }) => {
770
+ const [content, setContent] = useState5("");
771
+ const handleKeyDown = (e) => {
772
+ if (e.key === "Enter" && !e.shiftKey) {
773
+ e.preventDefault();
774
+ handleSend();
775
+ }
776
+ };
777
+ const handleSend = () => {
778
+ if (!content.trim() || disabled) return;
779
+ onSendMessage(content.trim());
780
+ setContent("");
781
+ };
782
+ return /* @__PURE__ */ jsxs14("div", { className: "p-3 border-t border-slate-300 dark:border-slate-800 bg-white dark:bg-slate-900 font-mono text-xs", children: [
783
+ /* @__PURE__ */ jsx14("div", { className: "flex items-center justify-between pb-2", children: /* @__PURE__ */ jsx14("div", { className: "flex items-center gap-2", children: toolsSlot }) }),
784
+ /* @__PURE__ */ jsxs14("div", { className: "flex items-end gap-2", children: [
785
+ /* @__PURE__ */ jsx14("div", { className: "flex-1", children: /* @__PURE__ */ jsx14(
786
+ BaseTextarea,
787
+ {
788
+ value: content,
789
+ onChange: (e) => setContent(e.target.value),
790
+ onKeyDown: handleKeyDown,
791
+ placeholder,
792
+ disabled,
793
+ rows: 2
794
+ }
795
+ ) }),
796
+ /* @__PURE__ */ jsx14(
797
+ BaseButton,
798
+ {
799
+ variant: "accent",
800
+ onClick: handleSend,
801
+ disabled: disabled || !content.trim(),
802
+ className: "p-2.5 h-[42px] flex items-center justify-center shrink-0",
803
+ children: /* @__PURE__ */ jsx14(Send, { size: 15 })
804
+ }
805
+ )
806
+ ] })
807
+ ] });
808
+ };
809
+
810
+ // src/components/ai/execution-status/TimelineScrubber.tsx
811
+ import { useEffect, useRef, useState as useState6 } from "react";
812
+ import { Play as Play2, Pause, SkipBack, SkipForward, Clock as Clock2 } from "lucide-react";
813
+ import { jsx as jsx15, jsxs as jsxs15 } from "react/jsx-runtime";
814
+ var TimelineScrubber = ({
815
+ logs,
816
+ currentIndex,
817
+ onIndexChange,
818
+ isPlaying: controlledIsPlaying,
819
+ onPlayPauseToggle
820
+ }) => {
821
+ const [internalPlaying, setInternalPlaying] = useState6(false);
822
+ const isPlaying = controlledIsPlaying !== void 0 ? controlledIsPlaying : internalPlaying;
823
+ const playIntervalRef = useRef(null);
824
+ const togglePlay = (p) => {
825
+ if (onPlayPauseToggle) onPlayPauseToggle(p);
826
+ else setInternalPlaying(p);
827
+ };
828
+ useEffect(() => {
829
+ if (isPlaying) {
830
+ playIntervalRef.current = setInterval(() => {
831
+ if (logs.length > 0) {
832
+ onIndexChange((currentIndex + 1) % logs.length);
833
+ }
834
+ }, 1500);
835
+ } else if (playIntervalRef.current) {
836
+ clearInterval(playIntervalRef.current);
837
+ }
838
+ return () => {
839
+ if (playIntervalRef.current) clearInterval(playIntervalRef.current);
840
+ };
841
+ }, [isPlaying, currentIndex, logs.length, onIndexChange]);
842
+ if (logs.length === 0) return null;
843
+ const currentLog = logs[currentIndex];
844
+ const progressPercent = currentIndex / Math.max(1, logs.length - 1) * 100;
845
+ return /* @__PURE__ */ jsxs15("div", { className: "border border-slate-300 dark:border-slate-800 bg-white dark:bg-slate-900 rounded-xl p-3 font-mono text-xs space-y-3 shadow-sm", children: [
846
+ /* @__PURE__ */ jsxs15("div", { className: "flex items-center justify-between pb-2 border-b border-slate-200 dark:border-slate-800", children: [
847
+ /* @__PURE__ */ jsxs15("div", { className: "flex items-center gap-2", children: [
848
+ /* @__PURE__ */ jsx15(Clock2, { size: 14, className: "text-amber-500" }),
849
+ /* @__PURE__ */ jsx15("span", { className: "font-bold text-slate-800 dark:text-slate-200", children: "TIMELINE RECONSTRUCTION" })
850
+ ] }),
851
+ currentLog && /* @__PURE__ */ jsxs15("span", { className: "text-[10px] text-amber-600 dark:text-amber-400 bg-amber-50 dark:bg-amber-950/60 border border-amber-300 dark:border-amber-800 rounded px-1.5 py-0.5", children: [
852
+ "Frame ",
853
+ currentIndex + 1,
854
+ "/",
855
+ logs.length,
856
+ " \u2014 ",
857
+ currentLog.latencyMs ?? 0,
858
+ "ms \u2014 ",
859
+ currentLog.modelId || "N/A"
860
+ ] })
861
+ ] }),
862
+ /* @__PURE__ */ jsxs15("div", { className: "relative h-4 flex items-center", children: [
863
+ /* @__PURE__ */ jsx15("div", { className: "absolute inset-x-0 h-1.5 bg-slate-200 dark:bg-slate-800 rounded-full overflow-hidden", children: /* @__PURE__ */ jsx15(
864
+ "div",
865
+ {
866
+ className: "h-full bg-amber-500 transition-all duration-150",
867
+ style: { width: `${progressPercent}%` }
868
+ }
869
+ ) }),
870
+ /* @__PURE__ */ jsx15(
871
+ "input",
872
+ {
873
+ type: "range",
874
+ min: "0",
875
+ max: logs.length - 1,
876
+ value: currentIndex,
877
+ onChange: (e) => {
878
+ onIndexChange(parseInt(e.target.value, 10));
879
+ togglePlay(false);
880
+ },
881
+ className: "absolute inset-x-0 w-full h-full opacity-0 cursor-pointer z-10"
882
+ }
883
+ ),
884
+ /* @__PURE__ */ jsx15(
885
+ "div",
886
+ {
887
+ className: "absolute w-3 h-3 bg-amber-500 border border-white dark:border-slate-900 rounded-full pointer-events-none transition-all duration-150",
888
+ style: { left: `calc(${progressPercent}% - 6px)` }
889
+ }
890
+ )
891
+ ] }),
892
+ /* @__PURE__ */ jsxs15("div", { className: "flex items-center justify-center gap-3 pt-1", children: [
893
+ /* @__PURE__ */ jsx15(
894
+ BaseButton,
895
+ {
896
+ size: "sm",
897
+ variant: "secondary",
898
+ onClick: () => {
899
+ onIndexChange(Math.max(0, currentIndex - 1));
900
+ togglePlay(false);
901
+ },
902
+ disabled: currentIndex === 0,
903
+ className: "p-1",
904
+ children: /* @__PURE__ */ jsx15(SkipBack, { size: 13 })
905
+ }
906
+ ),
907
+ /* @__PURE__ */ jsx15(
908
+ BaseButton,
909
+ {
910
+ size: "sm",
911
+ variant: "accent",
912
+ onClick: () => togglePlay(!isPlaying),
913
+ className: "p-1.5",
914
+ children: isPlaying ? /* @__PURE__ */ jsx15(Pause, { size: 14 }) : /* @__PURE__ */ jsx15(Play2, { size: 14 })
915
+ }
916
+ ),
917
+ /* @__PURE__ */ jsx15(
918
+ BaseButton,
919
+ {
920
+ size: "sm",
921
+ variant: "secondary",
922
+ onClick: () => {
923
+ onIndexChange(Math.min(logs.length - 1, currentIndex + 1));
924
+ togglePlay(false);
925
+ },
926
+ disabled: currentIndex === logs.length - 1,
927
+ className: "p-1",
928
+ children: /* @__PURE__ */ jsx15(SkipForward, { size: 13 })
929
+ }
930
+ )
931
+ ] })
932
+ ] });
933
+ };
934
+
935
+ export {
936
+ getProviderIcon,
937
+ ModelCardHeader,
938
+ ModelCardFooter,
939
+ ModelCard,
940
+ AIProviderSelector,
941
+ AIModelPicker,
942
+ SingleKeyCard,
943
+ SingleKeyForm,
944
+ KeyProviderFilterBar,
945
+ KeyModelVerificationSuite,
946
+ KeyListContainer,
947
+ AgentExecutionCard,
948
+ DirectChatHeader,
949
+ DirectChatMessageList,
950
+ DirectChatInput,
951
+ TimelineScrubber
952
+ };