Files
osmedeus/test/testdata/workflows/test-event-receiver.yaml
T
j3ssie 1403d20a4d 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
2026-01-20 18:23:57 +08:00

51 lines
1.1 KiB
YAML

name: test-event-receiver
kind: module
description: Test workflow that receives events via trigger
tags: test,event,receiver,trigger
trigger:
- name: on-new-subdomain
on: event
event:
topic: "assets.new"
filters:
- "event.source == 'test-emitter'"
- "event.data_type == 'subdomain'"
input:
type: event_data
field: "value"
name: target
enabled: true
- name: on-vulnerability
on: event
event:
topic: "vulnerabilities.new"
filters:
- "event.source == 'test-scanner'"
- "event.data.severity == 'high' || event.data.severity == 'critical'"
input:
type: function
function: 'jq("{{event.data}}", ".url")'
name: target
enabled: true
params:
- name: target
required: true
steps:
- name: log-received
type: function
function: |
log_info("Event received for target: {{target}}")
- name: process-target
type: bash
command: echo "Processing event target: {{target}}" > {{Output}}/processed.txt
- name: mark-complete
type: function
function: |
appendFile("{{Output}}/events.log", "Processed: {{target}}\n")