diff --git a/v3/@claude-flow/codex/src/cli.ts b/v3/@claude-flow/codex/src/cli.ts new file mode 100644 index 0000000000..2b14eda1d0 --- /dev/null +++ b/v3/@claude-flow/codex/src/cli.ts @@ -0,0 +1,318 @@ +#!/usr/bin/env node +/** + * @claude-flow/codex - CLI + * + * Command-line interface for Codex integration + * Part of the coflow rebranding initiative + */ + +import { Command } from 'commander'; +import chalk from 'chalk'; +import { CodexInitializer } from './initializer.js'; +import { validateAgentsMd, validateSkillMd, validateConfigToml } from './validators/index.js'; +import { migrateFromClaudeCode, analyzeClaudeMd, generateMigrationReport } from './migrations/index.js'; +import { listTemplates, BUILT_IN_SKILLS } from './templates/index.js'; +import { generateSkillMd } from './generators/skill-md.js'; +import { VERSION, PACKAGE_INFO } from './index.js'; +import fs from 'fs-extra'; +import path from 'path'; + +const program = new Command(); + +program + .name('claude-flow-codex') + .description('OpenAI Codex integration for Claude Flow - Part of the coflow ecosystem') + .version(VERSION); + +// Init command +program + .command('init') + .description('Initialize a new Codex project with AGENTS.md and skills') + .option('-t, --template