feat(raft): add gateway setup wizard (salvage #51786) - #56230
Merged
Merged
Conversation
Add an interactive Raft setup flow for hermes gateway setup. The wizard follows the existing platform adapter setup pattern, persists RAFT_PROFILE to the Hermes env file, preserves an existing profile when the user declines reconfiguration, and registers the flow via setup_fn. Add focused Raft adapter coverage for saving RAFT_PROFILE, keeping an existing profile, and registering setup_fn. Signed-off-by: skyzh <skyzh@mail.build> Signed-off-by: HaoHao <HaoHao@mail.build>
19 tasks
1 task
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
hermes gateway setupnow runs a real interactive wizard for Raft instead of falling through to a generic env-var hint.Raft was the only bundled platform plugin without a
setup_fn— every sibling (IRC, Matrix, Feishu, DingTalk, Line, Photon, SimpleX…) already registers one. This closes that gap.Changes
plugins/platforms/raft/adapter.py: addinteractive_setup()— lazy-importscli_outputhelpers, detects an existingRAFT_PROFILE, offers a reconfigure prompt, and persists viasave_env_value(). Registersetup_fn=interactive_setup(a documented forwardedPlatformEntrykwarg).tests/gateway/test_raft_adapter.py: cover save, keep-existing-when-not-reconfigured, andsetup_fnregistration.Validation
tests/gateway/test_raft_adapter.pySalvage of #51786 by @xxchan — cherry-picked onto current main with authorship preserved.
Infographic