feat(workflows): implement interactive workflow run with approval loops, quiet connection, and automatic file uploading - #547
Open
yxvnyk wants to merge 3 commits into
Conversation
added 3 commits
September 8, 2026 23:53
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.
Ticket
EPMCDME-12353
Summary
This MR extended CodeMie CLI to support executing custom or shared workflows by ID or Name under the codemie workflow run and codemie sdk workflows run commands.
Changes
Impact
Both commands are feature-complete and support:
--no-waitor--jsonexecution), making the CLI commands fully pipeline-safe and compliant with Unix stdout standards.--no-waitoutputs ONLY clean, raw JSON starting metadata and exits instantly.-f,--file <name>option. Specifying a local file automatically reads and uploads it to the CodeMie files API before launching the workflow with its remote file_url reference attached.Verification & Testing Evidence
Integration Tests
Executed and passed 100% of the workflow test suite:
npx vitest run tests/integration/cli-commands/workflow.test.tsA. Standard Output Extraction (Successful Polled Run)
B. Clean JSON Trigger (
--no-waitSuppressing Spinner)1 node ./bin/codemie.js workflow run d362c364-ee7f-4716-a1b7-f6f706d09f0d --input "hello" --no-wait
✓ ✓ Workflow execution started successfully. (Status: In Progress)C. File Assignment & Interactive Approval loop
node ./bin/codemie.js workflow run d362c364-ee7f-4716-a1b7-f6f706d09f0d --input "hello my friend" --file "package.json"