/** * Helper Functions for the CLI * * Validation helpers for the `--harnesses` option. */ import { Harness } from './types'; /** * Parse comma-separated harness values into an array * @param value - Comma-separated string of harness names * @returns Array of harness names * @throws Error if invalid harness names are provided */ export declare function parseHarnesses(value: string): Harness[]; /** * Validate that all harnesses are supported * @param harnesses - Array of harnesses to validate * @throws Error if any harness is invalid or array is empty */ export declare function validateHarnesses(harnesses: Harness[]): void; export interface MarkdownFrontmatter { [key: string]: string; } /** * Extract YAML frontmatter and body from a markdown string. * Returns an empty frontmatter object when no fences are found. */ export declare function parseFrontmatter(content: string): { frontmatter: MarkdownFrontmatter; body: string; }; /** * Escape a string for use inside a TOML basic (double-quoted) string. */ export declare function escapeTomlString(str: string): string; /** * Escape a string for use inside a TOML multi-line basic (triple-quoted) string. */ export declare function escapeTomlTripleQuotedString(str: string): string; /** * Convert a canonical agent markdown template (with YAML frontmatter * containing `name` and `description`) into Codex's TOML agent format. */ export declare function convertAgentMdToToml(mdContent: string): string; export interface AgentFormatInfo { format: 'md' | 'toml'; extension: string; directory: string; } /** * Return the agent file format, extension, and target directory for a harness. */ export declare function getAgentFormat(harness: Harness): AgentFormatInfo; //# sourceMappingURL=utils.d.ts.map