feat(workflows): integration-add command for native integration steps - #52
Open
chrisaddams wants to merge 1 commit into
Open
chrisaddams wants to merge 1 commit into
chrisaddams wants to merge 1 commit into
Conversation
Adds `workflows integration-add`, a named-flag convenience (mirroring
file-handler-add) for adding Integration steps — Claude, OpenAI, Slack,
etc. — without hand-writing the params JSON:
anythink workflows integration-add 154 analyze_ai \
--provider claude --operation generate-text \
--credential-source system --model claude-sonnet-4-5-20250929 \
--input prompt="{{ $anythink.steps.guard.data[0].prompt }}" \
--on-success 381 --enabled
Also documents the full action list (including Integration) in the
`step-add --action` help. Integration steps were already creatable via
`step-add --action Integration --params '{...}'` (the action is a
pass-through string); this just makes it first-class and discoverable.
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.
What
Adds
anythink workflows integration-add— a named-flag convenience command (mirroringfile-handler-add) for adding Integration steps (Claude, OpenAI, Slack, …) to a workflow without hand-writing the params JSON.Why
Integration steps (backend
WorkflowAction.Integration) were already creatable viastep-add --action Integration --params '{...}'— the--actionvalue is a pass-through string — but that was undocumented and required hand-authoring the snake_case params (provider/operation/credential_source/inputs). This makes it first-class and discoverable.Changes
WorkflowsIntegrationAddCommandwith validation (--provider,--operation, credential-source rules,--input key=value/--inputsJSON /--model,--on-success/--on-failure).step-add --actionhelp now lists the full action set, includingIntegration.Verified
workflows integration-add … --provider claude --operation generate-text …creates a workingIntegrationstep (used to wire a Claude analysis step into a report-generation workflow end-to-end).🤖 Generated with Claude Code