| Name | Type | Description |
|---|---|---|
key* | string |
Normalize and validate a profile registry key.
Trims leading/trailing whitespace, then enforces the "provider" or
"provider:model" shape. Rejects empty strings, multiple colons, and
empty halves.
The registry key to validate.
validateProfileKey("anthropic:claude-opus-4-7"); // "anthropic:claude-opus-4-7"
validateProfileKey(" openai "); // "openai"
validateProfileKey("openai:"); // throws
validateProfileKey(""); // throws