Skip to content

isNameTakenError

isNameTakenError(err): boolean

Defined in: src/herdr.ts:191

Returns true when the error thrown by runner signals that a same-named agent is already registered in herdr. The CLI emits agent_name_taken as a JSON code on stderr/stdout, which execFileSync surfaces on the thrown error’s .stderr/.stdout/ .message. Defensive: coerces unknown fields to string safely; non-Error throws return false.

unknown

boolean