feat: Add healthchecks and tool subcommand#12
Merged
Conversation
Add a new built-in tool `http-get` that makes an HTTP GET request to localhost:port and checks for a successful (2xx) response. This can be used both via CLI (`rote tool http-get 8080`) and in healthcheck configurations (`tool: http-get 8080`). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The http-get tool now accepts either: - A port number (e.g., `8080`) - assumes http://127.0.0.1:{port}/ - A full http(s) URL (e.g., `https://localhost:8443/health`) This works both via CLI and in healthcheck configurations. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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
runaction can now specify a healthcheck. Dependent tasks wait for the healthcheck to pass before starting, similar to howensuretasks block dependents until complete.is-port-open <port>,http-get <port or URL>, andhttp-get-ok <port or URL>. Usingtoolis more efficient thancmdsince it doesn't spawn a new process for each check.rote toolsubcommand: Run built-in tools directly from the CLI (e.g.,rote tool is-port-open 5432). Useful for scripting and debugging.Example usage
Test plan
rote toolsubcommand🤖 Generated with Claude Code