agentlens / src /parsers /index.ts
hongcoding's picture
feat: 9-agent migration matrix (dsh/workbuddy/zcode/mimo), 81 combinations tested, 210 tests
031fd6d verified
Raw History Blame Contribute Delete
1.12 kB
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<string, ConfigParser> = {
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,
};