-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Expand file tree
/
Copy pathpage.tsx
More file actions
81 lines (77 loc) · 1.91 KB
/
Copy pathpage.tsx
File metadata and controls
81 lines (77 loc) · 1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
import Link from 'next/link';
const VARIANTS = [
{ slug: 'basic', label: 'Basic' },
{ slug: 'basic-with-stop', label: 'Basic (with stop)' },
{ slug: 'ai-sdk-coding', label: 'AI SDK Coding' },
{ slug: 'weather', label: 'Weather' },
{ slug: 'weather-approval', label: 'Weather Approval' },
] as const;
const HARNESSES = [
{
slug: 'claude-code',
label: 'Claude Code',
variants: [
'basic',
'basic-with-stop',
'ai-sdk-coding',
'weather',
'weather-approval',
],
},
{
slug: 'codex',
label: 'Codex',
variants: [
'basic',
'basic-with-stop',
'ai-sdk-coding',
'weather',
'weather-approval',
],
},
{
slug: 'pi',
label: 'Pi',
variants: [
'basic',
'basic-with-stop',
'ai-sdk-coding',
'weather',
'weather-approval',
],
},
{
slug: 'grok-build',
label: 'Grok Build',
variants: ['basic', 'basic-with-stop', 'ai-sdk-coding'],
},
] as const;
const VARIANT_LABELS: Record<string, string> = Object.fromEntries(
VARIANTS.map(v => [v.slug, v.label]),
);
export default function Home() {
return (
<main className="flex flex-col gap-4 pt-12 pb-24 mx-auto w-full max-w-5xl">
<h1 className="text-xl font-bold">Harness examples</h1>
<ul className="flex flex-col gap-4 pl-0 list-none">
{HARNESSES.map(h => (
<li key={h.slug}>
<span className="font-semibold">{h.label}</span>
<ul className="list-disc pl-6">
{h.variants.map(variant => (
<li key={variant}>
<Link
href={`/harness/${h.slug}/${variant}`}
className="text-blue-600 underline"
>
{VARIANT_LABELS[variant] ?? variant}
</Link>
</li>
))}
</ul>
</li>
))}
</ul>
</main>
);
}