feat: add run cancellation, event enhancements, and performance optimizations

Major features:
- Add run registry for tracking active runs with PID management
- Add API-based run cancellation with process termination
- Add event trigger input vars syntax for multi-variable extraction
- Add filter_functions with utility function support in triggers
- Add event envelope injection for full event context in workflows
- Add write coordinator for batched database operations

API improvements:
- Add logout endpoint and diffs endpoints for assets/vulnerabilities
- Add step-results listing endpoint
- Update schedule model with target, workspace, params fields
- Change run_id to run_uuid across API responses

Performance:
- Add compiled JS program caching for 60-80% faster loop conditions
- Add parallel shard rendering for 20-40% faster workflow startup
- Add memory-mapped I/O for large file line counting
- Add efficient output buffer combining in runners
- Add mtime-based cache invalidation for workflow loader

Other changes:
- Rename trigger field from trigger to triggers in workflow YAML
- Disable pongo2 HTML autoescape for shell command templates
- Update JWT expiration default to 1440 minutes (1 day)
- Change CORS default to reflect-origin for credentials support
- Add source_type field to events (run, eval, api)
- Skip copying core Unix tools to external-binaries
This commit is contained in:
j3ssie
2026-01-24 01:11:33 +08:00
parent 3d6e61c8c1
commit f5840272c5
110 changed files with 5986 additions and 823 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ params:
default: "not-set"
- name: anotherParam2
default: "{{Output}}/another2-{{Workspace}}.txt"
default: "{{Output}}/another2-{{TargetSpace}}.txt"
- name: anotherParam3as1
default: "{{Output}}/another1-{{TargetSpace}}.txt"