Skip to content

feat(health): Vercel sensor (failed production deploys) - #39

Merged
sandstream merged 1 commit into
mainfrom
feat/health-vercel-sensor
Jun 22, 2026
Merged

sandstream merged 1 commit into
mainfrom
feat/health-vercel-sensor

Conversation

@sandstream

Copy link
Copy Markdown
Owner

Resumes the sentinel ladder — the 4th kit health sensor, reusing the httpGet probe path the GitLab/Bitbucket sensors introduced.

What

  • vercel sensor — GET https://api.vercel.com/v6/deployments?projectId=…&target=production with VERCEL_TOKEN (+ teamId from the link). Flags the most recent terminal production deployment red when state/readyState is ERROR (CANCELED/in-progress are not red). Reports unknown (never a false green) when the project isn't linked, the token is missing, or the API returns non-OK.
  • Selection: the project's projectId/teamId are read from .vercel/project.json in cmdHealth into ctx.vercel; the sensor is selected only when a projectId is present.

CHANGELOG note

Moved the SSH-lock entry into [1.13.0] — the v1.13.0 tag was cut at main HEAD, which included the SSH-lock merge (#37), so it shipped in 1.13.0. Vercel sits in [Unreleased] for 1.14.0.

Verify

npm run build && npm test → build clean, 1348 tests, 0 fail (+8: deployment parse, latest-failed selection, probe red/unknown/not-linked/missing-token/non-OK). Live API smoke pending a real VERCEL_TOKEN; parsers fixture-tested.

git-host coverage is now even AND deploys are covered (GitHub Actions, GitLab CI, Bitbucket Pipelines, Vercel). Remaining ladder: Sentry/Supabase/Resend/cert sensors, then layer 2 (the responder routine).

🤖 Generated with Claude Code

Fourth kit health sensor, reusing the httpGet probe path. Reads
projectId/teamId from .vercel/project.json (ctx.vercel), probes
/v6/deployments?target=production with VERCEL_TOKEN, flags the latest
terminal prod deployment red on state=ERROR (CANCELED not red), unknown
(never false green) on not-linked / missing token / non-OK. Selected when
.vercel/project.json is present. CHANGELOG: SSH-lock moved to [1.13.0]
(it shipped in the v1.13.0 tag at HEAD), Vercel under [Unreleased].
@github-actions

Copy link
Copy Markdown

✅ Docker image built successfully

  • CLI image: docker.io/sandstream/kit:test

@sandstream
sandstream merged commit c71925f into main Jun 22, 2026
15 checks passed
@sandstream
sandstream deleted the feat/health-vercel-sensor branch June 22, 2026 11:15
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.

1 participant