INNER CODE UNIT · TypeScript
registerAutoFixCommand
im4codes/imcodes · src/autofix/index.ts:34
export function registerAutoFixCommand(program: Command): void {
program
.command('autofix')
.description('Run the auto-fix pipeline')
.option('-p, --project <name>', 'Project name')
.option('--coder <type>', 'Coder agent type (claude-code|codex|opencode)', 'claude-code')
.option('--auditor <type>', 'Auditor agent type (claude-code|codex|opencode)', 'codex')
.option('--tracker <type>', 'Issue tracker type (github|gitlab|none)', 'none')
.option('--tracker-url <url>', 'Tracker API URL (for self-hosted)')
.option('--continuous', 'Continuously process issues from tracker')
.option('--max-rounds <n>', 'Max discussion rounds', '3')
.argument('[task]', 'Task description (standalone mode)')
.action(async (taskDescription: string | undefined, opts: Record<string, string>) => {
const config = await loadConfig();
const projectName = opts.project ?? (config as unknown as Record<string, string>).defaultProject;
if (!projectName) {
console.error('--project is required');