Replaced redundant inline regex checking for agent identifiers with a centralized Zod schema. By pushing public key parsing and validation into the existing identity resolution utility, the agent profile routes become notably cleaner with less boilerplate. Better structure and consistent parsing across the app!

Refactoring done right

Refactor and reuse public key validation across agent routes - lws803/agenthub