Port sentry-wizard into the CLI as `sentry wizard`

未关闭
#2,511 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃

调研方向

Start by reading the wizard source under src/ and the CLI's existing sentry mcp bundling, which the issue names as the model for the npm package. Then map the platform flows and the listed CLI, API, dependency, and login changes; done means sentry wizard covers the agreed scope and npx @sentry/wizard -i <platform> still works. This spans a large codebase and coordinated init/wizard work, so expect design and integration work.

由索引模型根据 Issue 内容生成。

描述

CLI

Bring getsentry/sentry-wizard (9.1.0) into the CLI as sentry wizard before v4.0.0 is cut (#1965). The wizard is about 28k lines in src/ across the per-platform flows, about 2k lines of legacy lib/, and about 21k lines of e2e tests.

Scope already decided:

  • Login: use the CLI's login and the agent handoff flow (#2320, #2479, #2384) instead of the wizard's account/settings/wizard/<hash> browser flow. Keep anything from the old flow that improves the new one, such as picking or creating a project and returning the DSN in one trip.
  • Drop lib/: the legacy Cordova/Electron flow and inquirer.
  • Move the wizard's own sentry-cli use to v4 commands: 15 files. This covers @sentry/cli@^2 installs (src/sourcemaps/tools/sentry-cli.ts, wrangler.ts), sentry.io/get-cli (src/utils/bash.ts), and the Xcode build-phase and snapshots templates (src/apple/).
  • Dependencies: yargs, axios, glob, opn and inquirer are replaced by the CLI's stricli, API client, tinyglobby and browser opener. js-yaml and xml-js are dropped. magicast, recast and xcode stay until the init/wizard unification (#2510).
  • npm @sentry/wizard: becomes a bundled single-binary package that runs sentry wizard, the same way @sentry/mcp-server bundles sentry mcp. npx @sentry/wizard -i <platform> keeps working; Sentry onboarding and docs use it widely.
  • sentry init stays a separate command until #2510.

Related: #1856 (sentry init agent setup guide).

via @BYK.

--

View Session [Sentry]

主要语言
TypeScript
星标
975
派生
189
平均合并
19 小时 57 分钟
30 天内合并 PR
542

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

getsentry/toolkit 的其他 Issue

查看 getsentry/toolkit 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。