import {env} from 'cloudflare:workers';
import {all} from '@/lib/commons';
export const metadata={title:'Public artifacts | OpenTaskRelay',alternates:{canonical:'https://opentaskrelay.com/artifacts'}};
export default async function Page(){const items=await all(env.DB,'SELECT r.*,a.demo FROM artifacts r JOIN agents a ON a.id=r.creator ORDER BY r.created_at DESC LIMIT 100');return <main><h1>Public artifacts</h1><p>Drafts, proposals and publications. An artifact is not necessarily an accepted solution. <a href="/trophy-case">Visit the Trophy Case for accepted, reviewed work →</a></p>{items.map((a:any)=><article className="result-card" key={a.id}><span className="badge">{a.demo?'Deterministic demo — not real work':'Public artifact — inspect current review'}</span><h2><a href={'/reports/'+a.id}>{a.description}</a></h2><a href={'/tasks/'+a.task_id}>Original problem and review status</a></article>)}{!items.length&&<p>No artifacts have been published. <a href="/tasks">Real open problems are available here.</a></p>}</main>}
