/** * @claude-flow/codex - CodexInitializer * * Main initialization class for setting up Codex projects */ import type { CodexInitOptions, CodexInitResult } from './types.js'; export declare function resolveBundledSkillsPath(moduleUrl?: string): string; /** * Main initializer for Codex projects */ export declare class CodexInitializer { private projectPath; private template; private skills; private force; private dual; private bundledSkillsPath; /** * Initialize a new Codex project */ initialize(options: CodexInitOptions): Promise; /** * Validate that the project path is valid and writable */ private validateProjectPath; /** * Check if project is already initialized */ private isAlreadyInitialized; /** * Check if we should write a file (force mode or doesn't exist) */ private shouldWriteFile; /** * Create the directory structure */ private createDirectoryStructure; /** * Keep generated configuration truthful: a template-selected skill is * enabled only when its canonical SKILL.md is present in the package. */ private retainCanonicalPackagedSkills; /** * Copy bundled skills from the package or source directory * Returns the list of skills copied */ private copyBundledSkills; /** * Check if a skill is bundled (exists in source directory) */ private isBundledSkill; /** * Register claude-flow as MCP server with Codex */ private registerMCPServer; /** * #2801 — Install the canonical `ruflo-core@ruflo` plugin so Codex * discovers Ruflo's lifecycle hooks. Idempotent: adds the marketplace * and installs the plugin at user scope, mirroring registerMCPServer's * detect-then-add pattern. Codex does NOT auto-trust command hooks, so * we always return an activation message instructing the user to review * and trust them in a new session. Installation state is NOT reported as * "hook-active" — only "installed, pending trust review". */ private installRufloCorePlugin; /** * Generate AGENTS.md content */ private generateAgentsMd; /** * Generate config.toml content */ private generateConfigToml; /** * Generate local config.toml for .codex directory */ private generateLocalConfigToml; /** * Generate a skill */ private generateSkill; /** * Update .gitignore with Codex entries */ private updateGitignore; /** * Generate README for .agents directory */ private generateAgentsReadme; /** * Generate dual-platform files (Claude Code + Codex) */ private generateDualPlatformFiles; /** * Get the list of files that would be created (dry-run) */ dryRun(options: CodexInitOptions): Promise; } /** * Quick initialization function for programmatic use */ export declare function initializeCodexProject(projectPath: string, options?: Partial): Promise; //# sourceMappingURL=initializer.d.ts.map