Files
osmedeus/test/testdata/workflows/test-event-emitter.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

44 lines
1.2 KiB
YAML

name: test-event-emitter
kind: module
description: Test workflow that emits events
tags: test,event,emitter
params:
- name: target
required: true
steps:
- name: generate-subdomains
type: bash
command: |
echo "api.{{target}}" > {{Output}}/subdomains.txt
echo "www.{{target}}" >> {{Output}}/subdomains.txt
echo "admin.{{target}}" >> {{Output}}/subdomains.txt
- name: emit-single-event
type: function
function: |
generate_event("{{Workspace}}", "assets.new", "test-emitter", "subdomain", "single.{{target}}")
- name: emit-events-from-file
type: function
function: |
generate_event_from_file("{{Workspace}}", "assets.new", "test-emitter", "subdomain", "{{Output}}/subdomains.txt")
exports:
emitted_count: "{{result}}"
- name: emit-complex-event
type: function
function: |
generate_event("{{Workspace}}", "vulnerabilities.new", "test-scanner", "finding", {
url: "https://{{target}}/admin",
severity: "high",
template: "exposed-admin-panel",
matched: "/admin"
})
- name: log-result
type: function
function: |
log_info("Emitted events for {{target}}, file event count: " + "{{emitted_count}}")