feat: add LLM step executor with vision and tool support, event workflow system, and inheritance

- Add LLM executor supporting OpenAI vision, tool calling, embeddings, and structured outputs
- Introduce event emitter/receiver workflows with deduplication and filtering (generate_event functions)
- Add workflow extends/override system enabling inheritance chains and step merge modes
- Update function naming to snake_case across all testdata (fileExists→file_exists, etc.)
- Add comprehensive test fixtures for linter, events, CDN, step dependencies, and extends workflows
This commit is contained in:
j3ssie
2026-01-20 18:23:57 +08:00
parent 9ed02e7eee
commit 1403d20a4d
219 changed files with 25734 additions and 1696 deletions
+6 -6
View File
@@ -52,7 +52,7 @@ steps:
- name: determine-strategy
type: function
script: |
var fileCount = fileLength("{{file_list}}");
var fileCount = file_length("{{file_list}}");
log_info("Files to process: " + fileCount);
if (fileCount == 0) {
@@ -158,11 +158,11 @@ steps:
log_info("Deduplicating aggregated data");
var txtFile = "{{aggregated_dir}}/all-txt.txt";
if (fileExists(txtFile)) {
var lineCount = fileLength(txtFile);
if (file_exists(txtFile)) {
var lineCount = file_length(txtFile);
log_info("Text entries before dedup: " + lineCount);
sortUnix(txtFile);
var newCount = fileLength(txtFile);
sort_unix(txtFile);
var newCount = file_length(txtFile);
log_info("Text entries after dedup: " + newCount);
}
@@ -215,7 +215,7 @@ steps:
script: |
var stats = {
processing_mode: "{{processing_mode}}",
files_processed: fileLength("{{file_list}}"),
files_processed: file_length("{{file_list}}"),
dedup_enabled: "{{enable_dedup}}" === "true",
output_format: "{{output_format}}",
completion_time: timestamp()