Skip to content

Fix claim URL path to /monitor/claim and flip default endpoint to HTTPS#14

Merged
ejntaylor merged 1 commit into
mainfrom
elliott/claim-url-fix-and-https-default
May 13, 2026
Merged

Fix claim URL path to /monitor/claim and flip default endpoint to HTTPS#14
ejntaylor merged 1 commit into
mainfrom
elliott/claim-url-fix-and-https-default

Conversation

@ejntaylor
Copy link
Copy Markdown
Contributor

Summary

Two minor URL corrections that should have landed together in #13 but were spotted afterwards:

  1. Claim URL path: the SaaS claim page is at /monitor/claim alongside the other Pulse portal routes (/monitor/pulse/manifest/{uuid} etc), not at /claim on the root.
  2. Default endpoint scheme: the default PATCHSTACK_ENDPOINT was http://api.patchstack.com/monitor/pulse/manifest. Servers redirect to HTTPS at the edge, but printing an http:// link in the build log is sloppy and makes the connector look misconfigured.

What changes

  • src/client.ts: DEFAULT_ENDPOINThttps://api.patchstack.com/.... buildClaimUrl appends /monitor/claim instead of /claim. Docblock updated.
  • src/cli.ts: help text shows the new HTTPS default.
  • README.md: same edit on the environment-variable documentation.
  • tests/client.test.ts: every /claim?site= assertion updated to /monitor/claim?site=. Suite 51 green.

Verification

  • npx tsc --noEmit — clean
  • npx vitest run — 51/51 passing
  • dist/ rebuilt with the corrected paths and scheme

Impact on consumers

Anyone using the default endpoint without overriding it will now see https:// instead of http:// — should be transparent because the server redirects anyway. Anyone overriding the endpoint (staging, ngrok, local) is unaffected because the connector still uses whatever scheme the override specifies.

The claim URL change is more visible: existing v0.2.x output prints https://api.patchstack.com/claim?site=... which will 404; once this ships in v0.3.0 (or 0.2.5, your call) the printed URL hits the right path.

🤖 Generated with Claude Code

Two minor URL corrections that should have landed together in #13:

- Claim URL: the SaaS claim page is at /monitor/claim alongside the
  other Pulse portal routes, not at /claim on the root.
- Default endpoint: was http://api.patchstack.com (HTTP). Browsers
  will redirect to HTTPS at the server, but printing an http:// link
  in the build log is sloppy.

Tests updated; help text and README brought in line.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@ejntaylor ejntaylor merged commit 7c85673 into main May 13, 2026
4 checks passed
@ejntaylor ejntaylor deleted the elliott/claim-url-fix-and-https-default branch May 13, 2026 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants