feat: agent registry backend (Phase 1) - #3
Merged
Conversation
- Prisma: Agent / AgentSkillDef / AgentTag models + migration 003_agent_registry - src/lib/agentcard.ts: A2A AgentCard fetch/parse/validate (well-known fallback, SSRF guard, timeout, size cap) - POST /api/agents/submit (AgentCard URL or manual; PENDING unless admin) - Admin review API: /api/admin/agents (list) + [id] (approve/reject/delete) - Public /api/agents (filter/sort/paginate) + /api/agents/[slug] detail - Agent-readable discovery: /api/registry (markdown + JSON) Additive only; no changes to existing Skill tables. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This was referenced Jul 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Phase 1 registry backend — data model + APIs for invokable agents (distinct from existing coding-agent skills). Additive; no changes to existing
Skilltables.Changes
Agent/AgentSkillDef/AgentTag+ enums; migration003_agent_registry(Prisma-generated, additive).src/lib/agentcard.ts): fetch/parse/validate A2A AgentCards (.well-knownfallback, SSRF guard, timeout, size cap).POST /api/agents/submit(URL or manual; PENDING unless admin) · admin/api/admin/agents(list) +[id](approve/reject/delete) · public/api/agents(filter/sort/paginate) +[slug]·/api/registry(agent-readable md + JSON).Verification
tsc --noEmitclean. Submit (both modes), admin review, public list/detail/filter, and registry verified against a local Postgres.Migration note
Apply⚠️ repo migration dirs (
003via the project's migrate flow.0_init/001/002/003) sort so0_initlands last — a cleanmigrate deployon an empty DB misorders; fix before prod (tracked in docs).🤖 Generated with Claude Code