Repository navigation
feat(wizard): Add deprecated @sentry/wizard forwarder to sentry wizard - #2530
Open
sentry-junior[bot] wants to merge 9 commits into
Open
sentry-junior[bot] wants to merge 9 commits into
sentry-junior[bot] wants to merge 9 commits into
Conversation
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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
Contributor
📊 MCP Server Token Cost ReportSummary
Per-Tool Breakdown
Note: This measures the static overhead of tool definitions sent to LLM clients with every request. Lower is better. MCP Apps viewsEach
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>
#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>
Contributor
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 2 potential issues.
❌ 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.
`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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Adds
packages/wizard, published as@sentry/wizard@10.0.0. It's a thin, deprecated forwarder tosentry wizard(#2519), so the existingnpx @sentry/wizard -i <platform> …commands in the Sentry UI and docs keep working while people move tonpx sentry wizard. Part of #2511.The package
bin/sentry-wizard.jsis 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 thansentry. It:npx sentry wizard.sentrypackage's bin aswizard <translated args>withprocess.execPathand inherited stdio. It finds that bin throughrequire.resolve.paths("sentry"), becausesentry'sexportsdon't include./package.json.kill -INTstill reaches the CLI after that wait. This is the same approachsentry local runtakes.The old flags are translated to
sentry wizard [<org>/<project>] [<integration>] [-f]:-i/--integration <id>--org <a> --project <b>a/b(a/for--orgalone)--force-install,--ignore-git-changes,-f,--force-f-u/--url <url>SENTRY_URL=<url>in the CLI's env, nothing in args--spotlightSENTRY_SPOTLIGHT=1in the CLI's env, nothing in args--help--projectwithout--orgEvery other flag is dropped, value included, with a one-line stderr notice that never prints the value (some old flags carried tokens). A bare
--projectgets its own notice.The
sentryrange:>=0.52.0sentrypackage is 0.x (latest is 0.51.0, and main is0.52.0-dev.0).sentry wizardships 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.^0.52.0means<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-devprerelease againstworkspace:>=0.52.0, andworkspace:^would publish^0.5x.0-dev.0. Sopackage.jsondeclares the real range, and apnpm-workspace.yamloverride links the workspace CLI for development. Overrides don't reach the packed manifest.Publishing
.craft.yml's standalone npm libraries,packages/{http,logger,wizard}: tagwizard@<version>, branchrelease/wizard/<version>, and github and npm targets that match onlysentry-wizard-*.tgz.wizardproduct, next tohttpandlogger.merge-jobs.ymlis 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.jsonis at10.0.0-dev.0, so the first release is 10.0.0 and npm'slatestmoves forward from 9.1.0.versioning.files.sentry-wizard-*.Notes
npm deprecate "@sentry/wizard@>=10.0.0" "Use npx sentry wizard instead".npx sentry wizardhappens later, in separate PRs.sentry wizardis on npm. Before that,>=0.52.0doesn't resolve.FSL-1.1-Apache-2.0, the same as the CLI it forwards to. 9.x was MIT.release.ymlandmerge-jobs.ymlwere already there and are left alone: unpinned actions such asgetsentry/craft@v3, an unscoped app token, checkout credentials that persist, and nopermissionsblocks.via @BYK.
--
View Session [Sentry]