(name: string)
| 113 | } |
| 114 | |
| 115 | export function validateConnectionName(name: string): string | undefined { |
| 116 | if (!name || name.length === 0) return "Connection name is required" |
| 117 | if (name.length > 32) return "Connection name must be 32 characters or less" |
| 118 | if (!/^[a-zA-Z0-9_-]+$/.test(name)) return "Connection name can only contain letters, numbers, hyphens, and underscores" |
| 119 | return undefined |
| 120 | } |
| 121 | |
| 122 | export function suggestConnectionName(info: Info): string | undefined { |
| 123 | if (info.type === "codex" && info.email) { |
nothing calls this directly
no outgoing calls
no test coverage detected