diff --git a/src/commands/export.ts b/src/commands/export.ts index b952d7e..4a63666 100644 --- a/src/commands/export.ts +++ b/src/commands/export.ts @@ -25,8 +25,7 @@ interface ExportOptions { export const exportCommand = new Command('export') .description('Export agent to other formats') -.requiredOption('-f, --format ', 'Export format (system-prompt, claude-code, openai, crewai, openclaw, nanobot, lyzr, github, copilot, opencode, cursor, gemini)') -.requiredOption('-f, --format ', 'Export format (system-prompt, claude-code, openai, crewai, openclaw, nanobot, lyzr, github, copilot, opencode, cursor, codex)') +.requiredOption('-f, --format ', 'Export format (system-prompt, claude-code, openai, crewai, openclaw, nanobot, lyzr, github, copilot, opencode, cursor, gemini, codex)') .option('-d, --dir ', 'Agent directory', '.') .option('-o, --output ', 'Output file path') .action(async (options: ExportOptions) => { @@ -75,12 +74,12 @@ export const exportCommand = new Command('export') case 'gemini': result = exportToGeminiString(dir); break; + case 'codex': + result = exportToCodexString(dir); + break; default: error(`Unknown format: ${options.format}`); - info('Supported formats: system-prompt, claude-code, openai, crewai, openclaw, nanobot, lyzr, github, copilot, opencode, cursor, gemini'); -case 'codex': - result = exportToCodexString(dir); - info('Supported formats: system-prompt, claude-code, openai, crewai, openclaw, nanobot, lyzr, github, copilot, opencode, cursor, codex'); + info('Supported formats: system-prompt, claude-code, openai, crewai, openclaw, nanobot, lyzr, github, copilot, opencode, cursor, gemini, codex'); process.exit(1); } diff --git a/src/commands/import.ts b/src/commands/import.ts index fa07732..51141ab 100644 --- a/src/commands/import.ts +++ b/src/commands/import.ts @@ -521,8 +521,7 @@ function parseSections(markdown: string): [string, string][] { export const importCommand = new Command('import') .description('Import from other agent formats') -.requiredOption('--from ', 'Source format (claude, cursor, crewai, opencode, gemini)') -.requiredOption('--from ', 'Source format (claude, cursor, crewai, opencode, codex)') +.requiredOption('--from ', 'Source format (claude, cursor, crewai, opencode, gemini, codex)') .argument('', 'Source file or directory path') .option('-d, --dir ', 'Target directory', '.') .action((sourcePath: string, options: ImportOptions) => { @@ -549,12 +548,12 @@ export const importCommand = new Command('import') case 'gemini': importFromGemini(sourcePath, targetDir); break; + case 'codex': + importFromCodex(sourcePath, targetDir); + break; default: error(`Unknown format: ${options.from}`); - info('Supported formats: claude, cursor, crewai, opencode, gemini'); -case 'codex': - importFromCodex(sourcePath, targetDir); - info('Supported formats: claude, cursor, crewai, opencode, codex'); + info('Supported formats: claude, cursor, crewai, opencode, gemini, codex'); process.exit(1); }