feat(server): enhance workflow step execution and JSONata integration

- Refactored step execution logic to introduce runCompiledStep for improved clarity and functionality.
- Added support for "set" steps, allowing context manipulation using JSONata expressions.
- Implemented evaluateJsonata and isJsonataTruthy functions for evaluating conditions and expressions.
- Updated workflow parsing to handle new step types and validation rules.
- Enhanced logging and error handling for skipped steps and invalid configurations.
- Modified UI components to reflect new step types and statuses, including "skipped".
This commit is contained in:
2026-08-14 21:13:40 +07:00
parent fdb1c0a8a6
commit d4381d2943
8 changed files with 248 additions and 39 deletions
+1 -1
View File
@@ -126,7 +126,7 @@ export async function startStep({ runId, index, script, config = null }) {
/**
* @param {string} id
* @param {"success" | "failed"} status
* @param {"success" | "failed" | "skipped"} status
* @param {unknown} [output]
* @param {Error | unknown} [err]
*/