Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

438 B
Raw Blame
import { ExecutioOutputFile } from './execution/execution-output'
import { FLOW_RUN_LOG_MANIFEST_V2 } from './execution/step-output'

export const logSerializer = {
    async serialize(log: ExecutioOutputFile): Promise<Buffer> {
        const withVersion: ExecutioOutputFile = log.version
            ? log
            : { ...log, version: FLOW_RUN_LOG_MANIFEST_V2 }
        return Buffer.from(JSON.stringify(withVersion, null))
    },
}