87 lines
2.3 KiB
TypeScript
87 lines
2.3 KiB
TypeScript
/**
|
|
* @claude-flow/codex - CodexInitializer
|
|
*
|
|
* Main initialization class for setting up Codex projects
|
|
*/
|
|
import type { CodexInitOptions, CodexInitResult } from './types.js';
|
|
/**
|
|
* 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<CodexInitResult>;
|
|
/**
|
|
* 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;
|
|
/**
|
|
* 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;
|
|
/**
|
|
* 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<string[]>;
|
|
}
|
|
/**
|
|
* Quick initialization function for programmatic use
|
|
*/
|
|
export declare function initializeCodexProject(projectPath: string, options?: Partial<CodexInitOptions>): Promise<CodexInitResult>;
|
|
//# sourceMappingURL=initializer.d.ts.map
|