Add lightweight Ruflo wrapper fast paths for help and version commands#2160
Open
JuicyBrandon wants to merge 1 commit into
Open
Add lightweight Ruflo wrapper fast paths for help and version commands#2160JuicyBrandon wants to merge 1 commit into
JuicyBrandon wants to merge 1 commit into
Conversation
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
Adds early exit handling in the Ruflo wrapper for lightweight smoke commands before importing the full
@claude-flow/cliruntime.Handled directly by the wrapper:
ruflo --versionruflo -vruflo --helpruflo -hruflo mcp --helpruflo mcp -hWhy
The
ruflopackage is a thin wrapper around@claude-flow/cli. Currently, basic help and version checks can load the full Claude Flow runtime. In coldnpxenvironments, this can make simple smoke checks slow, unreliable, or fail before the user receives basic CLI output.This change keeps smoke commands lightweight and predictable while preserving full delegation for real command execution.
Validation
Tested in an isolated WSL lab clone.
Commands verified:
Results:
Version commands returned
3.10.3.Help commands returned immediately.
MCP help returned immediately.
No MCP server was started.
No registration files were written.
git diff --checkpassed.Scope
This does not change full Ruflo command execution. Runtime commands still delegate to
@claude-flow/cli.This only prevents basic smoke commands from loading the full runtime unnecessarily.