mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-20 08:01:35 +00:00
b39671d933
* fix: use compact json for flow patches Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * test: improve flow eval harness Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * test: record flow benchmark history Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * fix: preserve schema in set flow json Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * style: clean set flow json schema guard Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * fix: clean flow patch review followups Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
36 lines
877 B
JSON
36 lines
877 B
JSON
{
|
|
"summary": "Event processing flow",
|
|
"value": {
|
|
"modules": [
|
|
{
|
|
"id": "process_event",
|
|
"summary": "Process the incoming event payload",
|
|
"value": {
|
|
"type": "rawscript",
|
|
"language": "bun",
|
|
"content": "export async function main(payload: string) {\n return {\n success: true,\n payload,\n processedAt: new Date().toISOString()\n };\n}",
|
|
"input_transforms": {
|
|
"payload": {
|
|
"type": "javascript",
|
|
"expr": "flow_input.payload"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"schema": {
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"type": "object",
|
|
"properties": {
|
|
"payload": {
|
|
"type": "string",
|
|
"description": "Incoming event payload"
|
|
}
|
|
},
|
|
"required": [
|
|
"payload"
|
|
]
|
|
}
|
|
}
|