Documentation
¶
Overview ¶
Package validators provides centralized validation functions for resource names across the AgentRegistry CLI and services.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateAgentName ¶
ValidateAgentName checks if the agent name is valid. Allowed: letters and digits only, must start with a letter, minimum 2 characters. Not allowed: underscores, dots, hyphens, or Python keywords.
func ValidateMCPServerName ¶
ValidateMCPServerName checks if the MCP server name matches the required format. Server name must be in format "namespace/name" where: - namespace: starts/ends with alphanumeric, can contain dots and hyphens, min 2 chars - name: starts/ends with alphanumeric, can contain dots, underscores, and hyphens, min 2 chars
func ValidateProjectName ¶
ValidateProjectName checks if the provided project name is valid for use as a directory name. This is a permissive check for filesystem safety.
func ValidateSkillName ¶
ValidateSkillName checks if the skill name matches the required format for registry storage. Skill names can contain alphanumeric characters, underscores, and hyphens.
Types ¶
This section is empty.