import { parseCanonicalAgentMarkdown, renderCanonicalAgentMarkdown, } from '../../agents/canonical/index.js';
export function importMarkdownAgentRecord(record) {
    return parseCanonicalAgentMarkdown(record.content, `${record.provider}:${record.identifier}`);
}
export function exportMarkdownAgentRecord(provider, identifier, agent) {
    return {
        provider,
        identifier,
        description: agent.description,
        content: renderCanonicalAgentMarkdown(agent),
    };
}
