Strengthen public CLI diagnostics and release trust - #6
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8d6397c75b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| : /unknown|requires|must be|only one URL|public URL is required|invalid url/i.test(message) | ||
| ? 'invalid_input' |
There was a problem hiding this comment.
Classify malformed redirects as request failures
When a valid public target returns a malformed Location header, fetchPublicText throws Invalid URL, so this broad message match reports invalid_input even though the caller's URL was valid and the remote response failed. JSON-mode automation may consequently tell users to correct their input instead of identifying a request failure; distinguish initial URL-validation errors from errors raised while resolving redirects.
Useful? React with 👍 / 👎.
What changed
Product boundary
This remains a dependency-free diagnostic CLI. It does not run a browser, execute JavaScript, call private Prerender Buddy APIs, or expose rendering, proxy, routing, caching, monitoring, or infrastructure logic.
Validation
Release note
This PR does not change the package version or publish an npm release.