UNPKG

bmad-agent-init

Version:

Windsurf integration for BMAD-METHOD - automatic initialization of bmad-agent in projects

15 lines (13 loc) • 325 B
import { Matcher } from 'types/Matchers'; /** Normalize to array a matcher input. */ export function matcherToArray( matcher: Matcher | Matcher[] | undefined ): Matcher[] { if (Array.isArray(matcher)) { return [...matcher]; } else if (matcher !== undefined) { return [matcher]; } else { return []; } }