Conversation
Flows are now trigger-agnostic: the platform (Clawnify) resolves
webhooks/cron/manual triggers externally and passes a generic payload.
Runtime state uses `inputs` as the top-level key; `{{ inputs.X }}`
replaces `{{ trigger.X }}` in templates.
Breaking changes:
- `FlowDefinition.trigger` removed; replaced by optional `inputs:
Record<string, InputSpec>` declaration block
- `FlowState.trigger` → `FlowState.inputs`
- `startWebhookServer` / `WebhookServerOpts` → `startFlowServer` /
`FlowServerOpts`; HTTP endpoint `/:flowName/webhook` → `/:flowName/run`
- `FlowTrigger` type removed; `InputSpec` type added
- `flow_create` plugin tool: `trigger` param → `inputs` param
- Required inputs declared with `required: true` are validated at flow
start (fail-fast before any node runs); extras pass through silently
Migration: `npm run migrate <dir> [--dry]` rewrites 0.x flow files
in-place (drops trigger block, rewrites all template/path/expression
references).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
FlowDefinition.triggerremoved; replaced by optionalinputs: Record<string, InputSpec>declaration block — flows are now trigger-agnostictrigger→inputs;{{ inputs.X }}replaces{{ trigger.X }}in all templatesstartWebhookServer/WebhookServerOpts→startFlowServer/FlowServerOpts; HTTP endpoint/:flowName/webhook→/:flowName/runFlowTriggertype removed;InputSpectype added (forward-compatible with JSON Schema)required: trueare validated at flow start (fail-fast before any node runs); extras pass through silentlyflow_createplugin tool:triggerparam →inputsparamnpm run migrate <dir> [--dry]rewrites 0.x flow files in-placeTest plan
npm run lint— cleannpm test— 117/117 passingnpm run build— clean