Skip to content

feat(wizard): Add deprecated @sentry/wizard forwarder to sentry wizard - #2530

Open
sentry-junior[bot] wants to merge 9 commits into
mainfrom
feat/wizard-forwarder
Open

sentry-junior[bot] wants to merge 9 commits into
mainfrom
feat/wizard-forwarder

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Adds packages/wizard, published as @sentry/wizard@10.0.0. It's a thin, deprecated forwarder to sentry wizard (#2519), so the existing npx @sentry/wizard -i <platform> … commands in the Sentry UI and docs keep working while people move to npx sentry wizard. Part of #2511.

The package

bin/sentry-wizard.js is the whole package. It keeps the 9.x bin name, sentry-wizard, ships as written with no build step, and has no runtime dependencies other than sentry. It:

  1. Prints a one-line deprecation notice to stderr that points to npx sentry wizard.
  2. Runs the sentry package's bin as wizard <translated args> with process.execPath and inherited stdio. It finds that bin through require.resolve.paths("sentry"), because sentry's exports don't include ./package.json.
  3. Exits with the CLI's exit code. If the CLI dies from a signal, it re-raises that signal, or exits with 128+n where re-raising doesn't end the process (Windows). SIGTERM is passed on right away. The first SIGINT is held for 3 s: Ctrl-C already reached the CLI through the terminal's process group, and a second SIGINT means "force quit" to it. A lone kill -INT still reaches the CLI after that wait. This is the same approach sentry local run takes.

The old flags are translated to sentry wizard [<org>/<project>] [<integration>] [-f]:

Old Becomes
-i/--integration <id> the integration positional
--org <a> --project <b> a/b (a/ for --org alone)
--force-install, --ignore-git-changes, -f, --force one -f
-u/--url <url> SENTRY_URL=<url> in the CLI's env, nothing in args
--spotlight SENTRY_SPOTLIGHT=1 in the CLI's env, nothing in args
positionals and --help forwarded unchanged
--project without --org dropped

Every other flag is dropped, value included, with a one-line stderr notice that never prints the value (some old flags carried tokens). A bare --project gets its own notice.

The sentry range: >=0.52.0

  • The npm sentry package is 0.x (latest is 0.51.0, and main is 0.52.0-dev.0). sentry wizard ships in the first CLI release that includes feat(cli): add sentry wizard with Next.js #2519, which is 0.52.0 if that PR merges first.
  • On 0.x, ^0.52.0 means <0.53.0. A forwarder that's published once would then never pick up a later CLI, so the range has no upper bound.
  • workspace: can't express this. pnpm won't match the CLI's -dev prerelease against workspace:>=0.52.0, and workspace:^ would publish ^0.5x.0-dev.0. So package.json declares the real range, and a pnpm-workspace.yaml override links the workspace CLI for development. Overrides don't reach the packed manifest.

Publishing

  • The forwarder joins .craft.yml's standalone npm libraries, packages/{http,logger,wizard}: tag wizard@<version>, branch release/wizard/<version>, and github and npm targets that match only sentry-wizard-*.tgz.
  • The Release workflow gets a wizard product, next to http and logger.
  • merge-jobs.yml is unchanged: its package discovery finds every Craft workspace without its own artifact provider, so it packs the wizard into the commit-SHA artifact with the others.
  • package.json is at 10.0.0-dev.0, so the first release is 10.0.0 and npm's latest moves forward from 9.1.0.
  • CLI releases don't touch it:
    • It's not in the CLI workspace's versioning.files.
    • The CLI's artifact provider reads only the Build workflow's named artifacts, and that workflow doesn't pack it.
    • The CLI's npm patterns don't match sentry-wizard-*.

Notes

  • After the first publish, someone runs npm deprecate "@sentry/wizard@>=10.0.0" "Use npx sentry wizard instead".
  • Switching the Sentry UI and docs links to npx sentry wizard happens later, in separate PRs.
  • 9.x stays installable for anyone who pins it.
  • Release this only after a CLI release with sentry wizard is on npm. Before that, >=0.52.0 doesn't resolve.
  • The license is FSL-1.1-Apache-2.0, the same as the CLI it forwards to. 9.x was MIT.
  • Some zizmor findings in release.yml and merge-jobs.yml were already there and are left alone: unpinned actions such as getsentry/craft@v3, an unscoped app token, checkout credentials that persist, and no permissions blocks.

via @BYK.

--

View Session [Sentry]

sentry-junior Bot and others added 3 commits November 26, 2026 11:48
Start moving getsentry/sentry-wizard into the CLI as `sentry wizard`.
This adds the command with the `@sentry/wizard` integrations and flags
(`-i`, `--url`, `--org`, `--project`, `--saas`, `--spotlight`, and the
rest), the shared wizard helpers, and the Next.js flow. The other
integrations report that they are not available in this version yet.

The wizard logs in with the CLI's own login: a stored `sentry auth
login` session, an agent handoff, or the device flow, instead of the
`account/settings/wizard/<hash>` browser flow. It then picks or creates
the project, reads its DSN, and creates an org auth token for source map
uploads. Telemetry goes through the CLI's client.

`sentry init` stays the agent setup guide; its help now points to
`sentry wizard` for the interactive setup.

Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>
`sentry wizard` logs in with the CLI's login, which has no sign-up or
partner step, so `--signup`, `--promo-code` and `--coming-from` no longer
do anything. Passing one now fails with a message that points to
https://sentry.io/signup/ instead of being accepted silently.

`promoCode` and `comingFrom` leave `WizardOptions`, the welcome banner and
`setupCI`, which loses its Vercel partner branch. The help text and the
docs say which `@sentry/wizard` flags were removed.

Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>
`sentry wizard` replaces the standalone wizard, but `npx @sentry/wizard -i
<platform>` is in the Sentry UI and docs. Version 10 of `@sentry/wizard`
keeps those commands working: its `sentry-wizard` bin prints a deprecation
notice, then runs `sentry wizard` from the `sentry` package with the same
arguments, and passes the exit code and signals through. A first SIGINT
waits before it is passed on, since Ctrl-C already reached the CLI.

The package depends on `sentry >=0.52.0`. pnpm can't link a workspace
package whose -dev version is outside that range, so an override links the
workspace CLI; `pnpm pack` leaves the published range as written.

It releases from its own Craft workspace, `packages/wizard`, with the same
config as `packages/logger`: CLI releases neither bump nor publish it, and it
starts at 10.0.0 so npm's `latest` doesn't move back from 9.x. merge-jobs.yml
packs it into the commit-SHA artifact on `release/wizard/**`, and the
Release workflow gains a `wizard` product, now mapping each product to
`packages/<product>` directly instead of through a shell step.

Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>
@vercel

vercel Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
cli Ready Ready Preview Nov 27, 2026 5:05pm UTC
1 Skipped Deployment
Project Deployment Actions Updated
sentry-local Skipped Skipped Nov 27, 2026 5:05pm UTC

Request Review

@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

📊 MCP Server Token Cost Report

Summary

  • Total Tokens: 68772 tokens
  • Tool Count: 77 tools
  • Average: 893 tokens/tool

Per-Tool Breakdown

Tool Tokens % of Total
get_issue_details 3967 5.8%
get_alert_rule 2245 3.3%
find_releases 1805 2.6%
get_issue_activity 1759 2.6%
update_alert_rule 1653 2.4%
get_replay_details 1602 2.3%
create_alert_rule 1506 2.2%
get_monitor_details 1501 2.2%
update_metric_monitor 1479 2.2%
create_metric_monitor 1458 2.1%
get_event_stacktrace 1381 2%
update_issue 1380 2%
render_sentry_chart 1362 2%
get_snapshot 1308 1.9%
get_profile 1291 1.9%
get_agent_conversation_details 1278 1.9%
find_monitors 1261 1.8%
search_logs 1248 1.8%
search_traces 1246 1.8%
get_alert_options 1236 1.8%
search_profiles 1228 1.8%
search_metrics 1216 1.8%
search_errors 1214 1.8%
get_profile_details 1200 1.7%
find_related_issues 1171 1.7%
get_uptime_monitor_details 1163 1.7%
create_monitor 1135 1.7%
onboarding_status_update 1109 1.6%
search_issue_events 1103 1.6%
search_replays 1095 1.6%
render_issue_chart 1061 1.5%
get_release_details 1056 1.5%
get_dashboard_details 1052 1.5%
search_attributes 1012 1.5%
search_issues 977 1.4%
search_docs 973 1.4%
find_alert_rules 908 1.3%
update_uptime_monitor 873 1.3%
create_uptime_monitor 871 1.3%
search_agent_conversations 830 1.2%
find_dropped_events 819 1.2%
get_metric_monitor_details 797 1.2%
create_project 793 1.2%
update_dsn 765 1.1%
get_issue_user_reports 630 0.9%
get_latest_base_snapshot 623 0.9%
find_dashboards 553 0.8%
link_issue 545 0.8%
find_uptime_monitors 537 0.8%
get_issue_breadcrumbs 492 0.7%
unlink_issue 476 0.7%
find_metric_monitors 471 0.7%
get_issue_tag_values 469 0.7%
update_project 441 0.6%
get_sentry_resource 429 0.6%
submit_feedback_to_sentry_team 426 0.6%
add_issue_note 404 0.6%
delete_monitor_environment 363 0.5%
find_teams 351 0.5%
find_projects 346 0.5%
delete_alert_rule 345 0.5%
delete_uptime_monitor 333 0.5%
delete_metric_monitor 331 0.5%
create_dsn 326 0.5%
add_team_to_project 324 0.5%
remove_team_from_project 320 0.5%
find_dsns 319 0.5%
find_organizations 311 0.5%
get_snapshot_image 302 0.4%
analyze_issue_with_seer 300 0.4%
get_event_attachment 299 0.4%
get_trace_details 282 0.4%
create_team 266 0.4%
get_span_details 263 0.4%
whoami 261 0.4%
get_sentry_mcp_info 142 0.2%
get_doc 102 0.1%

Note: This measures the static overhead of tool definitions sent to LLM clients with every request. Lower is better.

MCP Apps views

Each ui:// view as a host receives it from resources/read.

View MIME type Raw Gzip Brotli Budget % of budget
ui://sentry/chart/v6.html text/html;profile=mcp-app 19,249 B 7,913 B 7,014 B 24,576 B 78.3%

The budget applies to raw bytes, and the view's generator fails over it.

`sentry wizard` now takes `[<org>/<project>] [<integration>]` and `-f`
instead of the old wizard's flags, so the forwarder translates them:
`-i`/`--integration` becomes the integration, `--org` and `--project`
become the `<org>/<project>` target (`<org>/` for `--org` alone),
`--force-install` and `--ignore-git-changes` become one `-f`, and
`-u`/`--url` sets `SENTRY_URL` for the CLI instead of passing an argument.

Every other old flag is dropped, along with its value, with a one-line
notice that never prints the value. Positionals and `--help` pass through.

Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>
…POTLIGHT

`-f` and `--force` are `sentry wizard`'s own flag, so the forwarder passes
them on as one `-f` instead of dropping them, together with
`--force-install` and `--ignore-git-changes`. `--spotlight` now sets
`SENTRY_SPOTLIGHT=1` for the CLI, the way `--url` sets `SENTRY_URL`, instead
of being ignored.

Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>
@vercel
vercel Bot temporarily deployed to Preview – sentry-local November 26, 2026 22:03 Inactive
Base automatically changed from feat/cli-wizard-scaffold to main November 27, 2026 14:04
#2519 was squash-merged into main, so this takes main's side
for every file the pre-squash #2519 commits added. main also turned the
standalone npm libraries into one `packages/{http,logger}` Craft workspace that
merge-jobs.yml discovers and packs. The forwarder joins it as
`packages/{http,logger,wizard}` and gets a `wizard` product in release.yml,
and merge-jobs.yml is main's, unchanged.

Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>
Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>
@vercel
vercel Bot temporarily deployed to Preview – sentry-local November 27, 2026 14:52 Inactive
@sentry-junior
sentry-junior Bot marked this pull request as ready for review November 27, 2026 16:45
@sentry-junior
sentry-junior Bot requested a review from BYK November 27, 2026 16:45
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Nov 27, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

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 using default effort and found 2 potential issues.

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 095345b. Configure here.

Comment thread packages/wizard/bin/sentry-wizard.js Resolved
Comment thread packages/wizard/package.json Resolved
`require.resolve.paths()` returns null under Yarn PnP, so the forwarder
never found `sentry` and exited with "Could not find the `sentry` package"
from `yarn sentry-wizard` or `yarn dlx @sentry/wizard`. Resolve `sentry`'s
entry point instead, which PnP supports, and walk up to its package.json.
The test stand-in now mirrors the real package's `exports`.
`@sentry/wizard` is FSL-1.1-Apache-2.0 like the CLI, which requires
distributing the license with the software. Add the CLI's LICENSE.md and
list it in `files`, as the other published packages do.

This branch was successfully deployed

1 active and 1 inactive deployments
Preview – cli — de0a28c5 Deployed Nov 27, 2026 by vercel[bot]
Preview – sentry-local — de0a28c5 Deployed Nov 27, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant