Skip to content

feat(vercel)!: Add deployment webhook subscriptions - #1008

Merged
dcramer merged 6 commits into
mainfrom
codex/vercel-webhooks
Jul 23, 2026
Merged

dcramer merged 6 commits into
mainfrom
codex/vercel-webhooks

Conversation

@dcramer

@dcramer dcramer commented Jul 23, 2026 •

Copy link
Copy Markdown
Member

The Vercel plugin can now subscribe an existing conversation to terminal
deployment outcomes. One project-scoped account webhook covers the selected
projects; Junior verifies Vercel's required HMAC-SHA1 signature over the raw
request body, normalizes succeeded, error, and canceled events, and publishes
them through the existing resource-event boundary.

Watch creation accepts a Vercel project name or ID plus an optional team slug
or ID. Junior uses explicit request values first, otherwise the conversation's
vercel.project and vercel.team defaults, then resolves the canonical
prj_... ID through Vercel's authenticated project API. Operators do not need
to configure a global VERCEL_PROJECT_ID.

This converts @sentry/junior-vercel from a manifest-only package to a code
plugin. Existing configurations must replace the package-name string with the
factory:

import { vercelPlugin } from "@sentry/junior-vercel";

defineJuniorPlugins([vercelPlugin()]);

The setup guide covers the account webhook, one-time secret handling, public
endpoint requirements, conversation defaults, verification, and failure modes.
Only terminal outcomes are supported; watches must exist before the matching
event, and unmatched deliveries are not replayed.

Refs #938

@vercel

vercel Bot commented Jul 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
junior-docs Ready Ready Preview Jul 23, 2026 5:09am

Request Review

Comment thread packages/junior-vercel/src/index.ts Resolved
Comment thread packages/junior-vercel/src/index.ts Resolved

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit d2ad579. Configure here.

dcramer added 6 commits July 22, 2026 22:07
Verify signed terminal deployment events and route them through Junior's existing resource-event subscriptions. Add the deployment source tool, setup docs, package checks, and plugin CI coverage.

Refs #938

BREAKING CHANGE: Register the Vercel plugin with vercelPlugin() instead of the package-name string.
Explain that HMAC-SHA1 is required by Vercel's x-vercel-signature protocol and link to the provider reference.

Refs #938
Remove the stale allowed-tools restriction so Vercel plugin tools remain available when the skill is active.

Refs #938
Use the conversation project and team defaults to look up the canonical Vercel project ID when creating deployment watches. Remove the plugin-level VERCEL_PROJECT_ID fallback.

Refs #938
Share one trimmed webhook secret between subscription readiness and HMAC verification so whitespace cannot create an unusable watch.

Refs #938
Use the model-facing namespaced plugin tool name in the Vercel skill guidance.

Refs #938
@dcramer
dcramer force-pushed the codex/vercel-webhooks branch from aea391e to 78fa239 Compare July 23, 2026 05:08
@dcramer
dcramer marked this pull request as ready for review July 23, 2026 05:24
@dcramer
dcramer merged commit febfc49 into main Jul 23, 2026
34 checks passed
@dcramer
dcramer deleted the codex/vercel-webhooks branch July 23, 2026 05:24
@github-actions github-actions Bot added the risk: high PR risk score: high label Jul 23, 2026

This branch was successfully deployed

1 active deployment
Preview – junior-docs — 78fa2391 Deployed Jul 23, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: high PR risk score: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants