apteva 0.4.12 → 0.4.15

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,580 @@
1
+ import React, { useState, useEffect, useRef } from "react";
2
+ import { useAuth, useProjects } from "../../context";
3
+ import { useTelemetry } from "../../context/TelemetryContext";
4
+ import { useConfirm } from "../common/Modal";
5
+ import { Select } from "../common/Select";
6
+
7
+ interface TestCase {
8
+ id: string;
9
+ name: string;
10
+ description: string | null;
11
+ behavior: string | null;
12
+ agent_id: string | null;
13
+ input_message: string | null;
14
+ eval_criteria: string;
15
+ timeout_ms: number;
16
+ project_id: string | null;
17
+ created_at: string;
18
+ updated_at: string;
19
+ agent_name: string | null;
20
+ agent_status: string | null;
21
+ last_run: {
22
+ id: string;
23
+ status: string;
24
+ score: number | null;
25
+ duration_ms: number | null;
26
+ judge_reasoning: string | null;
27
+ generated_message: string | null;
28
+ selected_agent_id: string | null;
29
+ selected_agent_name: string | null;
30
+ planner_reasoning: string | null;
31
+ created_at: string;
32
+ } | null;
33
+ }
34
+
35
+ interface TestRun {
36
+ id: string;
37
+ test_case_id: string;
38
+ status: string;
39
+ score: number | null;
40
+ agent_response: string | null;
41
+ judge_reasoning: string | null;
42
+ duration_ms: number | null;
43
+ error: string | null;
44
+ generated_message: string | null;
45
+ selected_agent_id: string | null;
46
+ selected_agent_name: string | null;
47
+ planner_reasoning: string | null;
48
+ created_at: string;
49
+ }
50
+
51
+ interface AgentOption {
52
+ id: string;
53
+ name: string;
54
+ status: string;
55
+ provider: string;
56
+ model: string;
57
+ projectId: string | null;
58
+ }
59
+
60
+ export function TestsPage() {
61
+ const { authFetch } = useAuth();
62
+ const { currentProjectId } = useProjects();
63
+ const { confirm, ConfirmDialog } = useConfirm();
64
+
65
+ const [tests, setTests] = useState<TestCase[]>([]);
66
+ const [agents, setAgents] = useState<AgentOption[]>([]);
67
+ const [loading, setLoading] = useState(true);
68
+ const [showForm, setShowForm] = useState(false);
69
+ const [editingTest, setEditingTest] = useState<TestCase | null>(null);
70
+ const [runningTests, setRunningTests] = useState<Set<string>>(new Set());
71
+ const [runningAll, setRunningAll] = useState(false);
72
+ const [selectedRuns, setSelectedRuns] = useState<{ testId: string; runs: TestRun[] } | null>(null);
73
+ const [expandedRun, setExpandedRun] = useState<string | null>(null);
74
+ // Live test status from telemetry SSE
75
+ const [liveStatus, setLiveStatus] = useState<Record<string, { phase: string; detail?: string }>>({});
76
+
77
+ // Form state
78
+ const [formName, setFormName] = useState("");
79
+ const [formBehavior, setFormBehavior] = useState("");
80
+ const [formAgentId, setFormAgentId] = useState(""); // empty = auto
81
+
82
+ const activeProjectId = currentProjectId && currentProjectId !== "all" && currentProjectId !== "unassigned"
83
+ ? currentProjectId : null;
84
+
85
+ // Filter agents to current project
86
+ const projectAgents = activeProjectId
87
+ ? agents.filter(a => a.projectId === activeProjectId)
88
+ : agents;
89
+
90
+ // Subscribe to test telemetry events for live status
91
+ const { events: testEvents } = useTelemetry({ category: "test", limit: 50 });
92
+ const processedEventsRef = useRef<Set<string>>(new Set());
93
+
94
+ useEffect(() => {
95
+ for (const evt of testEvents) {
96
+ if (processedEventsRef.current.has(evt.id)) continue;
97
+ processedEventsRef.current.add(evt.id);
98
+
99
+ const testCaseId = evt.data?.test_case_id as string;
100
+ if (!testCaseId) continue;
101
+
102
+ if (evt.type === "test_started") {
103
+ setLiveStatus(prev => ({ ...prev, [testCaseId]: { phase: "starting" } }));
104
+ setRunningTests(prev => new Set(prev).add(testCaseId));
105
+ } else if (evt.type === "test_planning") {
106
+ setLiveStatus(prev => ({ ...prev, [testCaseId]: { phase: "planning" } }));
107
+ } else if (evt.type === "test_executing") {
108
+ const agentName = evt.data?.agent_name as string;
109
+ setLiveStatus(prev => ({ ...prev, [testCaseId]: { phase: "executing", detail: agentName } }));
110
+ } else if (evt.type === "test_judging") {
111
+ setLiveStatus(prev => ({ ...prev, [testCaseId]: { phase: "judging" } }));
112
+ } else if (evt.type === "test_completed") {
113
+ setLiveStatus(prev => {
114
+ const next = { ...prev };
115
+ delete next[testCaseId];
116
+ return next;
117
+ });
118
+ setRunningTests(prev => {
119
+ const next = new Set(prev);
120
+ next.delete(testCaseId);
121
+ return next;
122
+ });
123
+ // Refresh test list to get updated results
124
+ fetchTests();
125
+ }
126
+ }
127
+ // Cap processed set to prevent unbounded growth
128
+ if (processedEventsRef.current.size > 500) {
129
+ processedEventsRef.current = new Set([...processedEventsRef.current].slice(-200));
130
+ }
131
+ }, [testEvents]);
132
+
133
+ const fetchTests = async () => {
134
+ try {
135
+ const params = activeProjectId ? `?project_id=${activeProjectId}` : "";
136
+ const res = await authFetch(`/api/tests${params}`);
137
+ if (res.ok) setTests(await res.json());
138
+ } catch { /* ignore */ }
139
+ setLoading(false);
140
+ };
141
+
142
+ const fetchAgents = async () => {
143
+ try {
144
+ const res = await authFetch("/api/agents");
145
+ if (res.ok) {
146
+ const data = await res.json();
147
+ setAgents((data.agents || data).map((a: any) => ({
148
+ id: a.id,
149
+ name: a.name,
150
+ status: a.status,
151
+ provider: a.provider,
152
+ model: a.model,
153
+ projectId: a.projectId || null,
154
+ })));
155
+ }
156
+ } catch { /* ignore */ }
157
+ };
158
+
159
+ useEffect(() => {
160
+ fetchTests();
161
+ fetchAgents();
162
+ }, [currentProjectId]);
163
+
164
+ const openCreate = () => {
165
+ setEditingTest(null);
166
+ setFormName("");
167
+ setFormBehavior("");
168
+ setFormAgentId("");
169
+ setShowForm(true);
170
+ };
171
+
172
+ const openEdit = (tc: TestCase) => {
173
+ setEditingTest(tc);
174
+ setFormName(tc.name);
175
+ setFormBehavior(tc.behavior || "");
176
+ setFormAgentId(tc.agent_id || "");
177
+ setShowForm(true);
178
+ };
179
+
180
+ const handleSave = async () => {
181
+ if (!formName || !formBehavior) return;
182
+
183
+ const body: any = {
184
+ name: formName,
185
+ behavior: formBehavior,
186
+ agent_id: formAgentId || null,
187
+ project_id: activeProjectId || undefined,
188
+ };
189
+
190
+ if (editingTest) {
191
+ await authFetch(`/api/tests/${editingTest.id}`, {
192
+ method: "PUT",
193
+ headers: { "Content-Type": "application/json" },
194
+ body: JSON.stringify(body),
195
+ });
196
+ } else {
197
+ await authFetch("/api/tests", {
198
+ method: "POST",
199
+ headers: { "Content-Type": "application/json" },
200
+ body: JSON.stringify(body),
201
+ });
202
+ }
203
+
204
+ setShowForm(false);
205
+ fetchTests();
206
+ };
207
+
208
+ const handleDelete = async (id: string) => {
209
+ const ok = await confirm("Delete this test case? Run history will also be deleted.");
210
+ if (!ok) return;
211
+ await authFetch(`/api/tests/${id}`, { method: "DELETE" });
212
+ fetchTests();
213
+ };
214
+
215
+ const handleRun = async (id: string) => {
216
+ setRunningTests(prev => new Set(prev).add(id));
217
+ try {
218
+ await authFetch(`/api/tests/${id}/run`, { method: "POST" });
219
+ // Telemetry SSE handles live status updates; final refresh on completion
220
+ await fetchTests();
221
+ } catch { /* ignore */ }
222
+ // Cleanup in case telemetry didn't fire
223
+ setRunningTests(prev => {
224
+ const next = new Set(prev);
225
+ next.delete(id);
226
+ return next;
227
+ });
228
+ setLiveStatus(prev => {
229
+ const next = { ...prev };
230
+ delete next[id];
231
+ return next;
232
+ });
233
+ };
234
+
235
+ const handleRunAll = async () => {
236
+ setRunningAll(true);
237
+ try {
238
+ const ids = tests.map(t => t.id);
239
+ setRunningTests(new Set(ids));
240
+ await authFetch("/api/tests/run", {
241
+ method: "POST",
242
+ headers: { "Content-Type": "application/json" },
243
+ body: JSON.stringify({ test_case_ids: ids }),
244
+ });
245
+ await fetchTests();
246
+ } catch { /* ignore */ }
247
+ setRunningTests(new Set());
248
+ setRunningAll(false);
249
+ };
250
+
251
+ const viewRuns = async (testId: string) => {
252
+ try {
253
+ const res = await authFetch(`/api/tests/${testId}/runs`);
254
+ if (res.ok) {
255
+ setSelectedRuns({ testId, runs: await res.json() });
256
+ }
257
+ } catch { /* ignore */ }
258
+ };
259
+
260
+ const phaseLabels: Record<string, { label: string; color: string }> = {
261
+ starting: { label: "Starting", color: "bg-blue-900/50 text-blue-400 border-blue-500/30" },
262
+ planning: { label: "Planning", color: "bg-purple-900/50 text-purple-400 border-purple-500/30" },
263
+ executing: { label: "Executing", color: "bg-cyan-900/50 text-cyan-400 border-cyan-500/30" },
264
+ judging: { label: "Judging", color: "bg-amber-900/50 text-amber-400 border-amber-500/30" },
265
+ };
266
+
267
+ const statusBadge = (status: string) => {
268
+ const colors: Record<string, string> = {
269
+ passed: "bg-green-900/50 text-green-400",
270
+ failed: "bg-red-900/50 text-red-400",
271
+ error: "bg-yellow-900/50 text-yellow-400",
272
+ running: "bg-blue-900/50 text-blue-400",
273
+ };
274
+ return (
275
+ <span className={`px-2 py-0.5 rounded text-xs font-medium ${colors[status] || "bg-[#222] text-[#666]"}`}>
276
+ {status.toUpperCase()}
277
+ </span>
278
+ );
279
+ };
280
+
281
+ const liveBadge = (testCaseId: string) => {
282
+ const live = liveStatus[testCaseId];
283
+ if (!live) return null;
284
+ const phase = phaseLabels[live.phase] || phaseLabels.starting;
285
+ return (
286
+ <span className={`inline-flex items-center gap-1.5 px-2 py-0.5 rounded text-xs font-medium border ${phase.color} animate-pulse`}>
287
+ <span className="w-1.5 h-1.5 rounded-full bg-current" />
288
+ {phase.label}{live.detail ? ` \u00b7 ${live.detail}` : ""}
289
+ </span>
290
+ );
291
+ };
292
+
293
+ return (
294
+ <div className="flex-1 overflow-auto p-6">
295
+ {ConfirmDialog}
296
+
297
+ {/* Header */}
298
+ <div className="flex items-center justify-between mb-6">
299
+ <div>
300
+ <h1 className="text-xl font-bold">Tests</h1>
301
+ <p className="text-sm text-[#666] mt-1">
302
+ Describe behavior, AI handles the rest
303
+ </p>
304
+ </div>
305
+ <div className="flex gap-2">
306
+ {tests.length > 0 && (
307
+ <button
308
+ onClick={handleRunAll}
309
+ disabled={runningAll}
310
+ className="px-4 py-2 bg-[#1a1a1a] hover:bg-[#222] text-[#e0e0e0] rounded text-sm font-medium transition disabled:opacity-50"
311
+ >
312
+ {runningAll ? "Running..." : "Run All"}
313
+ </button>
314
+ )}
315
+ <button
316
+ onClick={openCreate}
317
+ className="px-4 py-2 bg-[#f97316] hover:bg-[#fb923c] text-white rounded text-sm font-medium transition"
318
+ >
319
+ + New Test
320
+ </button>
321
+ </div>
322
+ </div>
323
+
324
+ {/* Test list */}
325
+ {loading ? (
326
+ <div className="text-[#666] text-sm">Loading...</div>
327
+ ) : tests.length === 0 ? (
328
+ <div className="text-center py-16">
329
+ <div className="text-[#333] text-4xl mb-4">
330
+ <svg className="w-12 h-12 mx-auto" fill="none" stroke="currentColor" viewBox="0 0 24 24">
331
+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={1.5} d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4" />
332
+ </svg>
333
+ </div>
334
+ <p className="text-[#666] mb-2">No tests yet</p>
335
+ <p className="text-xs text-[#555] mb-4">Describe what your agents should do and let AI verify it</p>
336
+ <button
337
+ onClick={openCreate}
338
+ className="px-4 py-2 bg-[#f97316] hover:bg-[#fb923c] text-white rounded text-sm font-medium transition"
339
+ >
340
+ Create your first test
341
+ </button>
342
+ </div>
343
+ ) : (
344
+ <div className="space-y-3">
345
+ {tests.map(tc => (
346
+ <div key={tc.id} className="bg-[#111] border border-[#1a1a1a] rounded-lg p-4">
347
+ <div className="flex items-start justify-between">
348
+ <div className="flex-1 min-w-0">
349
+ <div className="flex items-center gap-2 mb-1">
350
+ <span className="font-medium text-sm">{tc.name}</span>
351
+ {liveStatus[tc.id]
352
+ ? liveBadge(tc.id)
353
+ : tc.last_run && (<>
354
+ {statusBadge(tc.last_run.status)}
355
+ {tc.last_run.score != null && (
356
+ <span className="text-xs text-[#888] font-mono">{tc.last_run.score}/10</span>
357
+ )}
358
+ </>)
359
+ }
360
+ </div>
361
+ {tc.behavior && (
362
+ <p className="text-xs text-[#888] mb-1.5 line-clamp-2">{tc.behavior}</p>
363
+ )}
364
+ <div className="text-xs text-[#666] space-y-0.5">
365
+ <div>
366
+ Agent:{" "}
367
+ <span className="text-[#888]">
368
+ {tc.agent_name || (tc.last_run?.selected_agent_name
369
+ ? `${tc.last_run.selected_agent_name} (auto-selected)`
370
+ : "Auto (AI picks)")}
371
+ </span>
372
+ </div>
373
+ {tc.last_run?.generated_message && (
374
+ <div className="truncate">
375
+ Message: <span className="text-[#888]">"{tc.last_run.generated_message}"</span>
376
+ </div>
377
+ )}
378
+ {tc.input_message && !tc.last_run?.generated_message && (
379
+ <div className="truncate">
380
+ Message: <span className="text-[#888]">"{tc.input_message}"</span>
381
+ </div>
382
+ )}
383
+ {tc.last_run && (
384
+ <div>
385
+ Last run:{" "}
386
+ <span className="text-[#888]">
387
+ {tc.last_run.duration_ms ? `${(tc.last_run.duration_ms / 1000).toFixed(1)}s` : "---"}
388
+ {tc.last_run.judge_reasoning && ` --- "${tc.last_run.judge_reasoning.slice(0, 80)}${tc.last_run.judge_reasoning.length > 80 ? "..." : ""}"`}
389
+ </span>
390
+ </div>
391
+ )}
392
+ </div>
393
+ </div>
394
+ <div className="flex items-center gap-1 ml-3 shrink-0">
395
+ <button
396
+ onClick={() => viewRuns(tc.id)}
397
+ className="px-2 py-1 text-xs text-[#666] hover:text-[#888] hover:bg-[#1a1a1a] rounded transition"
398
+ title="View run history"
399
+ >
400
+ History
401
+ </button>
402
+ <button
403
+ onClick={() => handleRun(tc.id)}
404
+ disabled={runningTests.has(tc.id)}
405
+ className="px-3 py-1 text-xs bg-[#1a1a1a] hover:bg-[#222] text-[#e0e0e0] rounded transition disabled:opacity-50"
406
+ >
407
+ {runningTests.has(tc.id) ? "Running..." : "Run"}
408
+ </button>
409
+ <button
410
+ onClick={() => openEdit(tc)}
411
+ className="px-2 py-1 text-xs text-[#666] hover:text-[#888] hover:bg-[#1a1a1a] rounded transition"
412
+ >
413
+ Edit
414
+ </button>
415
+ <button
416
+ onClick={() => handleDelete(tc.id)}
417
+ className="px-2 py-1 text-xs text-[#666] hover:text-red-400 hover:bg-[#1a1a1a] rounded transition"
418
+ >
419
+ Delete
420
+ </button>
421
+ </div>
422
+ </div>
423
+ </div>
424
+ ))}
425
+ </div>
426
+ )}
427
+
428
+ {/* Run History Panel */}
429
+ {selectedRuns && (
430
+ <div className="mt-6">
431
+ <div className="flex items-center justify-between mb-3">
432
+ <h2 className="text-sm font-bold text-[#888]">Run History</h2>
433
+ <button
434
+ onClick={() => { setSelectedRuns(null); setExpandedRun(null); }}
435
+ className="text-xs text-[#666] hover:text-[#888]"
436
+ >
437
+ Close
438
+ </button>
439
+ </div>
440
+ {selectedRuns.runs.length === 0 ? (
441
+ <p className="text-sm text-[#666]">No runs yet</p>
442
+ ) : (
443
+ <div className="space-y-2">
444
+ {selectedRuns.runs.map(run => (
445
+ <div key={run.id} className="bg-[#0d0d0d] border border-[#1a1a1a] rounded p-3">
446
+ <div
447
+ className="flex items-center justify-between cursor-pointer"
448
+ onClick={() => setExpandedRun(expandedRun === run.id ? null : run.id)}
449
+ >
450
+ <div className="flex items-center gap-3">
451
+ {statusBadge(run.status)}
452
+ <span className="text-xs text-[#666]">
453
+ {run.duration_ms ? `${(run.duration_ms / 1000).toFixed(1)}s` : "---"}
454
+ </span>
455
+ {run.score != null && (
456
+ <span className="text-xs text-[#888] font-mono">{run.score}/10</span>
457
+ )}
458
+ {run.selected_agent_name && (
459
+ <span className="text-xs text-[#555]">
460
+ Agent: {run.selected_agent_name}
461
+ </span>
462
+ )}
463
+ <span className="text-xs text-[#555]">
464
+ {new Date(run.created_at).toLocaleString()}
465
+ </span>
466
+ </div>
467
+ <span className="text-xs text-[#555]">{expandedRun === run.id ? "---" : "+"}</span>
468
+ </div>
469
+ {expandedRun === run.id && (
470
+ <div className="mt-3 space-y-2">
471
+ {run.planner_reasoning && (
472
+ <div>
473
+ <div className="text-xs text-[#666] mb-1">Planner:</div>
474
+ <div className="text-sm text-[#aaa] bg-[#0a0a0a] p-2 rounded">
475
+ {run.selected_agent_name && <span className="text-[#f97316]">{run.selected_agent_name}</span>}
476
+ {run.selected_agent_name && " --- "}
477
+ {run.planner_reasoning}
478
+ </div>
479
+ </div>
480
+ )}
481
+ {run.generated_message && (
482
+ <div>
483
+ <div className="text-xs text-[#666] mb-1">Generated Message:</div>
484
+ <div className="text-sm text-[#aaa] bg-[#0a0a0a] p-2 rounded">"{run.generated_message}"</div>
485
+ </div>
486
+ )}
487
+ {run.judge_reasoning && (
488
+ <div>
489
+ <div className="text-xs text-[#666] mb-1">Judge:</div>
490
+ <div className="text-sm text-[#aaa] bg-[#0a0a0a] p-2 rounded">{run.judge_reasoning}</div>
491
+ </div>
492
+ )}
493
+ {run.error && (
494
+ <div>
495
+ <div className="text-xs text-red-400 mb-1">Error:</div>
496
+ <div className="text-sm text-red-300 bg-[#0a0a0a] p-2 rounded">{run.error}</div>
497
+ </div>
498
+ )}
499
+ {run.agent_response && (
500
+ <div>
501
+ <div className="text-xs text-[#666] mb-1">Agent Response (Thread):</div>
502
+ <pre className="text-xs text-[#888] bg-[#0a0a0a] p-2 rounded overflow-auto max-h-64">
503
+ {run.agent_response}
504
+ </pre>
505
+ </div>
506
+ )}
507
+ </div>
508
+ )}
509
+ </div>
510
+ ))}
511
+ </div>
512
+ )}
513
+ </div>
514
+ )}
515
+
516
+ {/* Create/Edit Form Modal */}
517
+ {showForm && (
518
+ <div className="fixed inset-0 bg-black/60 z-50 flex items-center justify-center" onClick={() => setShowForm(false)}>
519
+ <div className="bg-[#111] border border-[#1a1a1a] rounded-lg w-full max-w-lg mx-4 p-6" onClick={e => e.stopPropagation()}>
520
+ <h2 className="text-lg font-bold mb-4">{editingTest ? "Edit Test" : "New Test"}</h2>
521
+
522
+ <div className="space-y-4">
523
+ <div>
524
+ <label className="block text-xs text-[#666] mb-1">Name</label>
525
+ <input
526
+ value={formName}
527
+ onChange={e => setFormName(e.target.value)}
528
+ placeholder="e.g. Social Media Posting"
529
+ className="w-full bg-[#0a0a0a] border border-[#222] rounded px-3 py-2 text-sm focus:outline-none focus:border-[#f97316]"
530
+ />
531
+ </div>
532
+
533
+ <div>
534
+ <label className="block text-xs text-[#666] mb-1">Behavior</label>
535
+ <textarea
536
+ value={formBehavior}
537
+ onChange={e => setFormBehavior(e.target.value)}
538
+ placeholder="Describe what should happen, e.g. 'When asked to post on social media, the agent creates a proper post with relevant hashtags and confirms it was published'"
539
+ rows={3}
540
+ className="w-full bg-[#0a0a0a] border border-[#222] rounded px-3 py-2 text-sm focus:outline-none focus:border-[#f97316] resize-none"
541
+ />
542
+ <p className="text-xs text-[#555] mt-1">AI will generate the test message and evaluate results based on this</p>
543
+ </div>
544
+
545
+ <div>
546
+ <label className="block text-xs text-[#666] mb-1">Agent</label>
547
+ <Select
548
+ value={formAgentId}
549
+ onChange={setFormAgentId}
550
+ placeholder="Auto (AI picks the best agent)"
551
+ options={projectAgents.map(a => ({
552
+ value: a.id,
553
+ label: `${a.name} (${a.status})`,
554
+ }))}
555
+ />
556
+ <p className="text-xs text-[#555] mt-1">Leave empty to let AI choose the right agent</p>
557
+ </div>
558
+ </div>
559
+
560
+ <div className="flex justify-end gap-2 mt-6">
561
+ <button
562
+ onClick={() => setShowForm(false)}
563
+ className="px-4 py-2 text-sm text-[#888] hover:text-[#e0e0e0] transition"
564
+ >
565
+ Cancel
566
+ </button>
567
+ <button
568
+ onClick={handleSave}
569
+ disabled={!formName || !formBehavior}
570
+ className="px-4 py-2 bg-[#f97316] hover:bg-[#fb923c] disabled:opacity-50 text-white rounded text-sm font-medium transition"
571
+ >
572
+ {editingTest ? "Save" : "Create"}
573
+ </button>
574
+ </div>
575
+ </div>
576
+ </div>
577
+ )}
578
+ </div>
579
+ );
580
+ }
@@ -1,4 +1,4 @@
1
- export { TelemetryProvider, useTelemetryContext, useTelemetry, useAgentActivity } from "./TelemetryContext";
1
+ export { TelemetryProvider, useTelemetryContext, useTelemetry, useAgentActivity, useAgentStatusChange } from "./TelemetryContext";
2
2
  export type { TelemetryEvent } from "./TelemetryContext";
3
3
 
4
4
  export { AuthProvider, useAuth, useAuthHeaders } from "./AuthContext";
package/src/web/types.ts CHANGED
@@ -143,7 +143,7 @@ export interface OnboardingStatus {
143
143
  has_any_keys: boolean;
144
144
  }
145
145
 
146
- export type Route = "dashboard" | "agents" | "tasks" | "mcp" | "skills" | "telemetry" | "settings" | "api";
146
+ export type Route = "dashboard" | "agents" | "tasks" | "mcp" | "skills" | "tests" | "telemetry" | "settings" | "api";
147
147
 
148
148
  // Tool use content block in trajectory
149
149
  export interface ToolUseBlock {