MCPcopy Create free account
hub / github.com/arctic-cli/interface / validateConnectionName

Function validateConnectionName

packages/arctic/src/auth/index.ts:115–120  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected