alvamind-workflow
Version:
A lightweight and flexible workflow automation library for JavaScript/TypeScript projects
16 lines • 608 B
JavaScript
import { parse } from "yaml";
/**
* Parses a YAML workflow configuration and transforms string conditions
* into executable functions.
*
* @param yamlContent The YAML content as a string
* @returns A WorkflowConfig with properly transformed conditions
*/
export function parseWorkflowYaml(yamlContent) {
// First parse the YAML content
const config = parse(yamlContent);
// We'll leave conditions as strings and handle conversion during execution
// This allows the Command creation process to handle the conversion uniformly
return config;
}
//# sourceMappingURL=yaml-parser.js.map