Repository navigation
Install CLI nightlies from Toolkit GHCR - #1403
Merged
Merged
Conversation
Co-Authored-By: GPT-6 Sol <agent@openai.com>
This was referenced Oct 5, 2026
BYK
enabled auto-merge (squash)
October 5, 2026 11:33
5 tasks
mr-danya
pushed a commit
to mr-danya/sentry-mcp
that referenced
this pull request
Oct 6, 2026
--- Adds a `--no-agent-skills` flag to `sentry cli upgrade`. The `upgrade` command re-runs `cli setup` on the freshly downloaded binary, which reinstalls agent skills every time. `setup` already supports `--no-agent-skills`, but `upgrade` had no way to pass it through. This wires a `--no-agent-skills` flag on `upgrade` that is forwarded into the spawned `setup` args across all upgrade paths (curl/install, package-manager in-place, and nightly standalone migration). ``` sentry cli upgrade --no-agent-skills ``` ## What changed - new `--no-agent-skills` boolean flag on the `upgrade` command (default `false`) - threaded through `runSetupOnNewBinary`, `executeStandardUpgrade`, and `migrateToStandaloneForNightly`; appends `--no-agent-skills` to the `cli setup` args when set - added an example to the command's help text - tests: default upgrade does not pass `--no-agent-skills`; `--no-agent-skills` is forwarded to setup ## Not included (needs a product decision) The issue also asks to make skill installation **opt-in by default**. That's a behavior change affecting the install script and default `setup` flow, so it's out of scope for this flag-only change — flagged for maintainers. The other points in the issue (skill content quality: `issue view --json`, jq shapes, redacting request session data) are about the generated skill content, not the upgrade command, and belong in a separate change. ## Testing - `vitest run test/commands/cli/upgrade.test.ts` — 32 passed (incl. 2 new) - `tsc --noEmit` clean - `biome check` clean on changed files Note: generated skill/doc files are gitignored and regenerated by CI, so they're intentionally not in this diff. Closes getsentry#1403 --- --------- Co-authored-by: jared-outpost[bot] <jared-outpost[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
mr-danya
pushed a commit
to mr-danya/sentry-mcp
that referenced
this pull request
Oct 6, 2026
--- Adds a `--no-agent-skills` flag to `sentry cli upgrade`. The `upgrade` command re-runs `cli setup` on the freshly downloaded binary, which reinstalls agent skills every time. `setup` already supports `--no-agent-skills`, but `upgrade` had no way to pass it through. This wires a `--no-agent-skills` flag on `upgrade` that is forwarded into the spawned `setup` args across all upgrade paths (curl/install, package-manager in-place, and nightly standalone migration). ``` sentry cli upgrade --no-agent-skills ``` ## What changed - new `--no-agent-skills` boolean flag on the `upgrade` command (default `false`) - threaded through `runSetupOnNewBinary`, `executeStandardUpgrade`, and `migrateToStandaloneForNightly`; appends `--no-agent-skills` to the `cli setup` args when set - added an example to the command's help text - tests: default upgrade does not pass `--no-agent-skills`; `--no-agent-skills` is forwarded to setup ## Not included (needs a product decision) The issue also asks to make skill installation **opt-in by default**. That's a behavior change affecting the install script and default `setup` flow, so it's out of scope for this flag-only change — flagged for maintainers. The other points in the issue (skill content quality: `issue view --json`, jq shapes, redacting request session data) are about the generated skill content, not the upgrade command, and belong in a separate change. ## Testing - `vitest run test/commands/cli/upgrade.test.ts` — 32 passed (incl. 2 new) - `tsc --noEmit` clean - `biome check` clean on changed files Note: generated skill/doc files are gitignored and regenerated by CI, so they're intentionally not in this diff. Closes getsentry#1403 --- --------- Co-authored-by: jared-outpost[bot] <jared-outpost[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
mr-danya
pushed a commit
to mr-danya/sentry-mcp
that referenced
this pull request
Oct 6, 2026
--- Adds a `--no-agent-skills` flag to `sentry cli upgrade`. The `upgrade` command re-runs `cli setup` on the freshly downloaded binary, which reinstalls agent skills every time. `setup` already supports `--no-agent-skills`, but `upgrade` had no way to pass it through. This wires a `--no-agent-skills` flag on `upgrade` that is forwarded into the spawned `setup` args across all upgrade paths (curl/install, package-manager in-place, and nightly standalone migration). ``` sentry cli upgrade --no-agent-skills ``` ## What changed - new `--no-agent-skills` boolean flag on the `upgrade` command (default `false`) - threaded through `runSetupOnNewBinary`, `executeStandardUpgrade`, and `migrateToStandaloneForNightly`; appends `--no-agent-skills` to the `cli setup` args when set - added an example to the command's help text - tests: default upgrade does not pass `--no-agent-skills`; `--no-agent-skills` is forwarded to setup ## Not included (needs a product decision) The issue also asks to make skill installation **opt-in by default**. That's a behavior change affecting the install script and default `setup` flow, so it's out of scope for this flag-only change — flagged for maintainers. The other points in the issue (skill content quality: `issue view --json`, jq shapes, redacting request session data) are about the generated skill content, not the upgrade command, and belong in a separate change. ## Testing - `vitest run test/commands/cli/upgrade.test.ts` — 32 passed (incl. 2 new) - `tsc --noEmit` clean - `biome check` clean on changed files Note: generated skill/doc files are gitignored and regenerated by CI, so they're intentionally not in this diff. Closes getsentry#1403 --- --------- Co-authored-by: jared-outpost[bot] <jared-outpost[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
mr-danya
pushed a commit
to mr-danya/sentry-mcp
that referenced
this pull request
Oct 6, 2026
…tsentry#1408) --- Two follow-ups to getsentry#1407 (requested by @BYK on getsentry#1403). Skills stay opt-out by default per the maintainers' product decision — this does **not** flip that default. ## 1. Persist the `--no-agent-skills` preference Passing `--no-agent-skills` once now sticks. `cli setup` records `defaults.agent-skills=off` in the metadata KV store, and subsequent runs skip skill installation even without the flag — so a bare `sentry cli upgrade` (which re-runs `cli setup`) no longer reinstalls skills the user opted out of. - new `defaults.agent-skills` metadata key + `getAgentSkillsPreference` / `setAgentSkillsPreference` (mirrors the existing `telemetry` preference) - `cli setup` persists an explicit `--no-agent-skills` opt-out and honors a stored opt-out when the flag is absent - `sentry cli defaults agent-skills on|off` to view/change it; shows up in `sentry cli defaults` - re-enable anytime with `sentry cli defaults agent-skills on` ## 2. Skill content quality (issue points 1–3) Source docs feed the generated skill (`agent-guidance.md`, the `issue` command fragment, and the `event` field description): - **points at `sentry issue view <SHORT-ID> --json`** as the fastest way to get an agent up to speed, in both the workflow example and the field docs - **documents the jq shapes** — event data lives under `event.entries[]` tagged by `type`, not top-level `event.request` (the "first guess that doesn't match"); added correct recipes for request URL/method and exception type/value - **steers away from dumping request/session data** — recommends `--fields event.id,...` and named-field jq extraction instead of the whole `event` object, since the `request` entry can carry live cookies/headers/body Regenerated `SKILL.md` + `references/issue.md` are included (CI checks these are in sync). ## Testing - `vitest run test/commands/cli/defaults.test.ts` — 40 passed (incl. new agent-skills storage + shape tests) - `vitest run test/commands/cli/setup.test.ts` — new persistence tests pass (persists opt-out; honors stored opt-out without the flag). Note: 3 pre-existing agent-skill install tests fail in the sandbox because they need a live skill fetch/generation that isn't available locally — they fail identically on clean `main` here and are unrelated to this change. - `tsc --noEmit` clean - `biome check` clean on changed files Refs getsentry#1403 --- --------- Co-authored-by: jared-outpost[bot] <jared-outpost[bot]@users.noreply.github.com>
mr-danya
pushed a commit
to mr-danya/sentry-mcp
that referenced
this pull request
Oct 6, 2026
…tsentry#1408) --- Two follow-ups to getsentry#1407 (requested by @BYK on getsentry#1403). Skills stay opt-out by default per the maintainers' product decision — this does **not** flip that default. ## 1. Persist the `--no-agent-skills` preference Passing `--no-agent-skills` once now sticks. `cli setup` records `defaults.agent-skills=off` in the metadata KV store, and subsequent runs skip skill installation even without the flag — so a bare `sentry cli upgrade` (which re-runs `cli setup`) no longer reinstalls skills the user opted out of. - new `defaults.agent-skills` metadata key + `getAgentSkillsPreference` / `setAgentSkillsPreference` (mirrors the existing `telemetry` preference) - `cli setup` persists an explicit `--no-agent-skills` opt-out and honors a stored opt-out when the flag is absent - `sentry cli defaults agent-skills on|off` to view/change it; shows up in `sentry cli defaults` - re-enable anytime with `sentry cli defaults agent-skills on` ## 2. Skill content quality (issue points 1–3) Source docs feed the generated skill (`agent-guidance.md`, the `issue` command fragment, and the `event` field description): - **points at `sentry issue view <SHORT-ID> --json`** as the fastest way to get an agent up to speed, in both the workflow example and the field docs - **documents the jq shapes** — event data lives under `event.entries[]` tagged by `type`, not top-level `event.request` (the "first guess that doesn't match"); added correct recipes for request URL/method and exception type/value - **steers away from dumping request/session data** — recommends `--fields event.id,...` and named-field jq extraction instead of the whole `event` object, since the `request` entry can carry live cookies/headers/body Regenerated `SKILL.md` + `references/issue.md` are included (CI checks these are in sync). ## Testing - `vitest run test/commands/cli/defaults.test.ts` — 40 passed (incl. new agent-skills storage + shape tests) - `vitest run test/commands/cli/setup.test.ts` — new persistence tests pass (persists opt-out; honors stored opt-out without the flag). Note: 3 pre-existing agent-skill install tests fail in the sandbox because they need a live skill fetch/generation that isn't available locally — they fail identically on clean `main` here and are unrelated to this change. - `tsc --noEmit` clean - `biome check` clean on changed files Refs getsentry#1403 --- --------- Co-authored-by: jared-outpost[bot] <jared-outpost[bot]@users.noreply.github.com>
mr-danya
pushed a commit
to mr-danya/sentry-mcp
that referenced
this pull request
Oct 6, 2026
…tsentry#1408) --- Two follow-ups to getsentry#1407 (requested by @BYK on getsentry#1403). Skills stay opt-out by default per the maintainers' product decision — this does **not** flip that default. ## 1. Persist the `--no-agent-skills` preference Passing `--no-agent-skills` once now sticks. `cli setup` records `defaults.agent-skills=off` in the metadata KV store, and subsequent runs skip skill installation even without the flag — so a bare `sentry cli upgrade` (which re-runs `cli setup`) no longer reinstalls skills the user opted out of. - new `defaults.agent-skills` metadata key + `getAgentSkillsPreference` / `setAgentSkillsPreference` (mirrors the existing `telemetry` preference) - `cli setup` persists an explicit `--no-agent-skills` opt-out and honors a stored opt-out when the flag is absent - `sentry cli defaults agent-skills on|off` to view/change it; shows up in `sentry cli defaults` - re-enable anytime with `sentry cli defaults agent-skills on` ## 2. Skill content quality (issue points 1–3) Source docs feed the generated skill (`agent-guidance.md`, the `issue` command fragment, and the `event` field description): - **points at `sentry issue view <SHORT-ID> --json`** as the fastest way to get an agent up to speed, in both the workflow example and the field docs - **documents the jq shapes** — event data lives under `event.entries[]` tagged by `type`, not top-level `event.request` (the "first guess that doesn't match"); added correct recipes for request URL/method and exception type/value - **steers away from dumping request/session data** — recommends `--fields event.id,...` and named-field jq extraction instead of the whole `event` object, since the `request` entry can carry live cookies/headers/body Regenerated `SKILL.md` + `references/issue.md` are included (CI checks these are in sync). ## Testing - `vitest run test/commands/cli/defaults.test.ts` — 40 passed (incl. new agent-skills storage + shape tests) - `vitest run test/commands/cli/setup.test.ts` — new persistence tests pass (persists opt-out; honors stored opt-out without the flag). Note: 3 pre-existing agent-skill install tests fail in the sandbox because they need a live skill fetch/generation that isn't available locally — they fail identically on clean `main` here and are unrelated to this change. - `tsc --noEmit` clean - `biome check` clean on changed files Refs getsentry#1403 --- --------- Co-authored-by: jared-outpost[bot] <jared-outpost[bot]@users.noreply.github.com>
mr-danya
pushed a commit
to mr-danya/sentry-mcp
that referenced
this pull request
Oct 6, 2026
…tsentry#1408) --- Two follow-ups to getsentry#1407 (requested by @BYK on getsentry#1403). Skills stay opt-out by default per the maintainers' product decision — this does **not** flip that default. ## 1. Persist the `--no-agent-skills` preference Passing `--no-agent-skills` once now sticks. `cli setup` records `defaults.agent-skills=off` in the metadata KV store, and subsequent runs skip skill installation even without the flag — so a bare `sentry cli upgrade` (which re-runs `cli setup`) no longer reinstalls skills the user opted out of. - new `defaults.agent-skills` metadata key + `getAgentSkillsPreference` / `setAgentSkillsPreference` (mirrors the existing `telemetry` preference) - `cli setup` persists an explicit `--no-agent-skills` opt-out and honors a stored opt-out when the flag is absent - `sentry cli defaults agent-skills on|off` to view/change it; shows up in `sentry cli defaults` - re-enable anytime with `sentry cli defaults agent-skills on` ## 2. Skill content quality (issue points 1–3) Source docs feed the generated skill (`agent-guidance.md`, the `issue` command fragment, and the `event` field description): - **points at `sentry issue view <SHORT-ID> --json`** as the fastest way to get an agent up to speed, in both the workflow example and the field docs - **documents the jq shapes** — event data lives under `event.entries[]` tagged by `type`, not top-level `event.request` (the "first guess that doesn't match"); added correct recipes for request URL/method and exception type/value - **steers away from dumping request/session data** — recommends `--fields event.id,...` and named-field jq extraction instead of the whole `event` object, since the `request` entry can carry live cookies/headers/body Regenerated `SKILL.md` + `references/issue.md` are included (CI checks these are in sync). ## Testing - `vitest run test/commands/cli/defaults.test.ts` — 40 passed (incl. new agent-skills storage + shape tests) - `vitest run test/commands/cli/setup.test.ts` — new persistence tests pass (persists opt-out; honors stored opt-out without the flag). Note: 3 pre-existing agent-skill install tests fail in the sandbox because they need a live skill fetch/generation that isn't available locally — they fail identically on clean `main` here and are unrelated to this change. - `tsc --noEmit` clean - `biome check` clean on changed files Refs getsentry#1403 --- --------- Co-authored-by: jared-outpost[bot] <jared-outpost[bot]@users.noreply.github.com>
github-actions Bot
pushed a commit
to Fields-Education/sentry-mcp
that referenced
this pull request
Nov 28, 2026
…getsentry#2544) Part of getsentry#2511. Stacked on getsentry#2520. This ports the `ios`, `appleSnapshots` and `reactNative` flows of `@sentry/wizard` 9.1.0 (`src/apple/`, `src/apple/snapshots/`, `src/react-native/`) and their tests to `packages/cli/src/lib/wizard/` and `packages/cli/test/lib/wizard/`. All three are registered in `WIZARD_RUNNERS` and run as `sentry wizard [<org>/<project>] ios|appleSnapshots|reactNative`. They add no flags. The upstream Apple flags (`--app-target`, `--hosted-test-target`, `--non-interactive`, `--xcode-project-dir`) are not carried over. The wizards look for the Xcode project in the current directory and prompt for the project, app target and hosted XCTest target. When stdin is not a terminal (`isatty(0)`, the same check as auto-login), Apple Snapshots picks the only target or fails with the choices instead of prompting. **No `sentry-cli` binary.** After v4, sentry.io/get-cli installs `sentry` (getsentry/sentry#132672), so these flows use only v4 commands: - The Xcode build phase follows getsentry/sentry-wizard#1403: - It exports PATH (installer and Homebrew dirs), SENTRY_ORG and SENTRY_PROJECT. - It checks for a v4 `sentry` with `sentry debug-files --help`, then runs `sentry debug-files upload [--include-sources] "$DWARF_DSYM_FOLDER_PATH"`. - Without an installed `sentry`, it runs `npx --yes sentry debug-files upload`. Failures show up as Xcode warnings, and it warns with the v4 install command only when neither `sentry` nor `npx` is found. There is no `sentry-cli` fallback. - `installSentryCLI`/`hasSentryCLI` are not ported. `check-installed-cli.ts` only checks that `sentry` is on the PATH that Xcode build phases see. If it isn't but `npx` is, the wizard notes that builds will use `npx sentry`. If neither is, it prints the Homebrew, curl (`cli.sentry.dev/install`) and npm install commands. - `.sentryclirc` stays, because v4 reads it. It now gets `[defaults] org/project` next to `[auth] token`. The CI hint names SENTRY_AUTH_TOKEN, SENTRY_ORG, SENTRY_PROJECT and SENTRY_URL. - The Apple Snapshots preflight and hint use `sentry snapshots upload … --app-id`. v4 has no `--org`/`--project` flags there, so the hint uses env vars. - Detection of existing upload scripts (Apple `xcode-manager`, React Native `xcode.ts`) recognizes both the v2 and the v4 command forms. - The React Native issues link uses `buildProjectIssuesUrl`, so it points at the host you're logged in to. **Dependencies.** - xml-js is gone. `apple/snapshots/xml-scan.ts` is a small scanner, with tests, for the two shapes the Snapshots flow reads: scheme `TestAction` `BlueprintName`s and `xcschememanagement.plist` keys. - `xcode` stays as a devDependency, with local typings in `src/lib/wizard/xcode.d.ts`. It goes away with the post-v4 `init`/`wizard` unification (getsentry#2510). - recast and magicast also stay. **Overlap with sibling ports.** These shared helpers are ported at upstream's paths, since other flows may port them too: - `utils/files.ts` and `utils/find-files-with-extension.ts`. Upstream has two `findFilesWithExtension`s, and both are kept as they are. - `utils/abort-if-sportlight-not-supported.ts`. - `utils/bash.ts`, with only `execute`, which `pod install` needs. React Native needs nothing from `src/android/` or `src/sourcemaps/`. **Fixtures.** The Xcode project fixtures are in `test/fixtures/wizard/apple/`. **Not ported, or different from sentry-wizard.** - No CLI flags for the project dir or the targets; the wizard prompts for them instead. - No `sentry-cli` fallback in the build phase. getsentry#1403 keeps one. - The fastlane `sentry_debug_files_upload` / `sentry_upload_snapshots` actions are left as they are. They come from fastlane-plugin-sentry, which still runs sentry-cli. - React Native still writes `sentry.properties` and uses the SDK's bundled `@sentry/cli` scripts for Xcode and Gradle uploads. Those scripts belong to the SDK. - Spotlight (`SENTRY_SPOTLIGHT`) is still not supported for iOS or React Native, same as upstream. **Resolved in review:** v4 already prefers a stored `sentry auth login` over the `.sentryclirc` token; the build phase falls back to `npx sentry`; fastlane and RN SDK v4 follow-ups get their own issues; the fixtures stay in `test/fixtures/wizard/apple/`. <!-- junior-request-attribution:start --> via @BYK. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:agent%3A875cd8525be461c20f1b8e42904f69e6 --> -- [View Session](https://junior-prod.sentry.dev/conversations/agent%3A875cd8525be461c20f1b8e42904f69e6) [[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3A875cd8525be461c20f1b8e42904f69e6/?project=4510944073809921) <!-- junior-session-footer:end --> --------- Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: BYK <126780+BYK@users.noreply.github.com>
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.
Summary
Verification
0.46.0→0.47.0-dev.1791182867from Toolkit GHCR.pnpm run tsc, root and CLI lint, generated-file checks, and CLI tests (10,257 passed, 16 skipped) passed on currentmain.pnpm run testtimed out after 15 minutes while Cloudflare tests ran; other package summaries passed. Exact-head CI will verify the aggregate gate.