74 lines
2.0 KiB
TypeScript
74 lines
2.0 KiB
TypeScript
/**
|
|
* @claude-flow/codex - config.toml Generator
|
|
*
|
|
* Generates Codex CLI configuration files in TOML format
|
|
*/
|
|
import type { ConfigTomlOptions } from '../types.js';
|
|
/**
|
|
* Security configuration options
|
|
*/
|
|
interface SecurityConfig {
|
|
inputValidation?: boolean;
|
|
pathTraversal?: boolean;
|
|
secretScanning?: boolean;
|
|
cveScanning?: boolean;
|
|
maxFileSize?: number;
|
|
allowedExtensions?: string[];
|
|
blockedPatterns?: string[];
|
|
}
|
|
/**
|
|
* Performance configuration options
|
|
*/
|
|
interface PerformanceConfig {
|
|
maxAgents?: number;
|
|
taskTimeout?: number;
|
|
memoryLimit?: string;
|
|
cacheEnabled?: boolean;
|
|
cacheTtl?: number;
|
|
parallelExecution?: boolean;
|
|
}
|
|
/**
|
|
* Logging configuration options
|
|
*/
|
|
interface LoggingConfig {
|
|
level?: 'debug' | 'info' | 'warn' | 'error';
|
|
format?: 'json' | 'text' | 'pretty';
|
|
destination?: 'stdout' | 'file' | 'both';
|
|
filePath?: string;
|
|
maxFiles?: number;
|
|
maxSize?: string;
|
|
}
|
|
/**
|
|
* Extended configuration options
|
|
*/
|
|
interface ExtendedConfigTomlOptions extends ConfigTomlOptions {
|
|
security?: SecurityConfig;
|
|
performance?: PerformanceConfig;
|
|
logging?: LoggingConfig;
|
|
}
|
|
/**
|
|
* Generate a config.toml file based on the provided options
|
|
*/
|
|
export declare function generateConfigToml(options?: ExtendedConfigTomlOptions): Promise<string>;
|
|
/**
|
|
* Generate minimal config.toml
|
|
*/
|
|
export declare function generateMinimalConfigToml(options?: ConfigTomlOptions): Promise<string>;
|
|
/**
|
|
* Generate CI/CD config.toml
|
|
*/
|
|
export declare function generateCIConfigToml(): Promise<string>;
|
|
/**
|
|
* Generate enterprise config.toml with full governance
|
|
*/
|
|
export declare function generateEnterpriseConfigToml(): Promise<string>;
|
|
/**
|
|
* Generate development config.toml with permissive settings
|
|
*/
|
|
export declare function generateDevConfigToml(): Promise<string>;
|
|
/**
|
|
* Generate security-focused config.toml
|
|
*/
|
|
export declare function generateSecureConfigToml(): Promise<string>;
|
|
export {};
|
|
//# sourceMappingURL=config-toml.d.ts.map
|