Scaffold demo-gen-0 Next.js showcase

This commit is contained in:
Alexa Amundson
2025-11-24 02:06:39 -06:00
parent d62a139950
commit c2ce01906a
61 changed files with 774 additions and 6053 deletions

20
app/agents/page.tsx Normal file
View File

@@ -0,0 +1,20 @@
import AgentTable from '../../components/AgentTable';
import { gatewayVersion } from '../../lib/trpc';
export default async function AgentsPage() {
const version = await gatewayVersion().catch(() => 'unknown');
return (
<div className="space-y-4">
<header className="flex items-center justify-between rounded-2xl border border-white/10 bg-white/5 p-6">
<div>
<h1 className="text-3xl font-bold">Agents Registry</h1>
<p className="mt-2 text-white/80">
Pulls from the API Gateway `/agents` endpoint and validates the response locally with zod.
</p>
</div>
<span className="rounded-full bg-white/10 px-3 py-1 text-sm text-white/70">Gateway v{version}</span>
</header>
<AgentTable />
</div>
);
}