import type { ConfigParser } from "./base.js"; import { claudeParser } from "./claude.js"; import { cursorParser } from "./cursor.js"; import { codexParser } from "./codex.js"; import { windsurfParser } from "./windsurf.js"; import { copilotParser } from "./copilot.js"; import { dshParser, workbuddyParser, zcodeParser, mimoParser } from "./agents-md.js"; /** * Registration order matters for scanning: AGENTS.md is shared by codex, dsh, * workbuddy, zcode and mimo, so codex is registered first and scan dedupes by * file path (the file is attributed once, to the first matching agent). */ export const parsers: Record = { claude: claudeParser, cursor: cursorParser, codex: codexParser, windsurf: windsurfParser, copilot: copilotParser, dsh: dshParser, workbuddy: workbuddyParser, zcode: zcodeParser, mimo: mimoParser, }; export function getParser(agent: string): ConfigParser | undefined { return parsers[agent]; } export { claudeParser, cursorParser, codexParser, windsurfParser, copilotParser, dshParser, workbuddyParser, zcodeParser, mimoParser, };