Skip to content

docs: documentation audit — fix toolchain drift, license, missing docs#1229

Draft
cursor[bot] wants to merge 4 commits into
mainfrom
cursor/sentry-cli-documentation-audit-839e
Draft

docs: documentation audit — fix toolchain drift, license, missing docs#1229
cursor[bot] wants to merge 4 commits into
mainfrom
cursor/sentry-cli-documentation-audit-839e

Conversation

@cursor

@cursor cursor Bot commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Documentation Audit Report

Weekly cron-triggered audit of the Sentry CLI repository to find gaps between implementation and documentation. This PR fixes the most impactful issues found.


Gap Report

A. Undocumented or Missing Commands/Subcommands

Command Source Doc Fragment Status
sentry proguard upload src/commands/proguard/upload.ts docs/src/fragments/commands/proguard.md Fixed in this PR — fragment only documented uuid

All other commands in src/commands/ have corresponding fragments.

B. Undocumented Flags

No non-hidden flags found that are missing from their corresponding doc fragments. The doc generation system (generate-command-docs.ts) auto-generates flag tables from command metadata, so flags stay in sync.

C. Missing Usage Examples

Command Source Doc Fragment Status
sentry proguard upload src/commands/proguard/upload.ts docs/src/fragments/commands/proguard.md Fixed in this PR

All other ~120 subcommands have bash examples in their fragments.

D. Stale Descriptions

No meaningful discrepancies found between brief strings in code and the generated doc pages (the doc generator pulls directly from command metadata).

E. Missing Route Mappings in Skill Generator

The ROUTE_TO_REFERENCE map was removed in a prior refactor — the skill generator now uses groupRoutesByReference() for automatic 1:1 mapping. No manual maintenance needed.

F. Installation / Distribution Gaps

Finding Location Status
.craft.yml Homebrew formula has wrong license FSL-1.1-MIT (should be FSL-1.1-Apache-2.0) .craft.yml:41 Fixed in this PR
index.mdx InstallSelector omits yarn (README and getting-started include it) docs/src/content/docs/index.mdx Fixed in this PR
getting-started.mdx pins version 0.19.0 in example (outdated, current is 0.38.x) docs/src/content/docs/getting-started.mdx:27 Fixed in this PR (updated to 0.38.0)
SENTRY_INIT=1 env var for post-install wizard not mentioned in getting-started install:338 vs getting-started.mdx Fixed in this PR
Install script also accepts SENTRY_INSTALL_DIR — not mentioned in getting-started install:101 Low priority (in env-registry → generated config page)

G. Undocumented Environment Variables

The configuration page is auto-generated from src/lib/env-registry.ts. All user-facing SENTRY_* variables are registered there. Internal-only variables (SENTRY_PIPELINE, SENTRY_MONITOR_SLUG, SENTRY_SCAN_DISABLE_WORKERS, SENTRY_CLI_NO_EXIT_TRAP, SENTRY_CLI_INTEGRATION_TEST_VERSION_OVERRIDE) are intentionally excluded as they're set by Sentry's own plugins/infrastructure, not by end users.

H. Auth / Self-Hosted Gaps

No issues found. The self-hosted docs correctly describe:

  • OAuth device flow requirement (Sentry 26.1.0+)
  • SENTRY_CLIENT_ID requirement
  • --url flag for trust anchor registration
  • Token precedence (stored OAuth > env token unless SENTRY_FORCE_ENV_TOKEN)
  • TLS/proxy configuration (NODE_EXTRA_CA_CERTS, SENTRY_CUSTOM_HEADERS)

I. Plugin/Skills Gaps

Finding Location Status
plugins/README.md only mentions Claude Code and Cursor — doesn't mention broader ~/.agents agent support plugins/README.md Fixed in this PR
agentic-usage.md doesn't list all detected agents (Gemini, Codex, Copilot, Windsurf, Goose, Amp, Augment, Antigravity, OpenCode) docs/src/content/docs/agentic-usage.md Fixed in this PR
detect-agent.ts supports 11 agents; only Claude and Cursor were documented src/lib/detect-agent.ts Fixed in this PR

J. README / DEVELOPMENT.md / AGENTS.md Drift

Finding Location Status
AGENTS.md says "built with Bun" — actually uses esbuild + fossilize (Node.js SEA) with pnpm AGENTS.md:7 Fixed in this PR
AGENTS.md Quick Reference uses bun install, bun run, bun test — should be pnpm install, pnpm run, vitest AGENTS.md:38-62 Fixed in this PR
AGENTS.md says bun add -d — should be pnpm add -D AGENTS.md:68 Fixed in this PR
AGENTS.md says bun run check:deps — should be pnpm run check:deps AGENTS.md:66 Fixed in this PR
AGENTS.md says bun run generate:docs / bun run check:fragments / bun run check:errors Multiple lines Fixed in this PR
AGENTS.md Testing section says bun:test — should be vitest AGENTS.md:702 Fixed in this PR
AGENTS.md Testing section imports from bun:test — should be vitest AGENTS.md:759,807,935 Fixed in this PR
AGENTS.md says mock.module — should be vi.mock (vitest API) AGENTS.md:944 Fixed in this PR
AGENTS.md says "Bun's test runner uses --isolate --parallel" — should reference vitest worker pools AGENTS.md:736 Fixed in this PR
AGENTS.md references BUN_TEST_WORKER_ID — should be VITEST_POOL_ID AGENTS.md:736 Fixed in this PR
README.md and DEVELOPMENT.md are correct (use pnpm throughout, generated sections) No action needed

Prioritized Top 5 Most Impactful Fixes

  1. AGENTS.md toolchain drift (bun → pnpm/vitest) — Most impactful because AGENTS.md is loaded as workspace rules by AI coding agents. Wrong commands cause failed builds and test runs.

  2. .craft.yml Homebrew license mismatch — The formula template ships FSL-1.1-MIT but the actual license is FSL-1.1-Apache-2.0. This affects every Homebrew release.

  3. Missing proguard upload documentation — The upload command existed with no examples in the fragment, meaning the generated docs had no usage guidance for a key Android workflow.

  4. Undocumented agent detection — 11 agents are detected but only 2 were documented. Users of Gemini CLI, Codex, Windsurf, etc. had no visibility into how the CLI recognizes their agent.

  5. Homepage missing yarn — The install selector on the docs homepage omitted yarn, creating a discrepancy with README and getting-started that could confuse yarn users.


Changes Made

  • AGENTS.md — Replace all bun toolchain references with correct pnpm/vitest equivalents
  • .craft.yml — Fix Homebrew formula license to FSL-1.1-Apache-2.0
  • docs/src/content/docs/getting-started.mdx — Update pinned version, add SENTRY_INIT tip
  • docs/src/content/docs/index.mdx — Add missing yarn to InstallSelector
  • docs/src/content/docs/agentic-usage.md — Document all 11 detected agents
  • docs/src/fragments/commands/proguard.md — Add proguard upload examples
  • plugins/README.md — Document broader ~/.agents support
Open in Web View Automation 

cursoragent and others added 4 commits July 13, 2026 12:13
…oad docs

- AGENTS.md: Replace bun references with pnpm/vitest (actual toolchain)
  - Quick Reference section: bun install → pnpm install, bun test → vitest
  - Testing section header: bun:test → vitest
  - Code examples: import from 'vitest' instead of 'bun:test'
  - mock.module → vi.mock (vitest API)
  - check:deps: bun run → pnpm run
  - add -d → add -D (pnpm flag)
- .craft.yml: Fix Homebrew formula license FSL-1.1-MIT → FSL-1.1-Apache-2.0
- getting-started.mdx: Update pinned version example, add SENTRY_INIT tip
- agentic-usage.md: Document all detected agents (Gemini, Codex, Copilot, etc.)
- proguard.md: Add missing 'proguard upload' examples and notes

Co-authored-by: Miguel Betegón <miguelbetegongarcia@gmail.com>
…pdate plugins README

- AGENTS.md: Fix remaining bun→pnpm references in generate:docs,
  check:fragments, and check:errors commands
- AGENTS.md: Correct project description ('built with Bun' → esbuild/fossilize)
- index.mdx: Add missing yarn option to InstallSelector on homepage
- plugins/README.md: Mention broader agent support (~/.agents) in Other Agents

Co-authored-by: Miguel Betegón <miguelbetegongarcia@gmail.com>
- Replace 'Bun's test runner uses --isolate --parallel' with Vitest
- Update BUN_TEST_WORKER_ID → VITEST_POOL_ID
- Clarify that Bun APIs are used in source but shimmed for Node.js

Co-authored-by: Miguel Betegón <miguelbetegongarcia@gmail.com>
@github-actions

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://cli.sentry.dev/_preview/pr-1229/

Built to branch gh-pages at 2026-07-13 12:20 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@github-actions

Copy link
Copy Markdown
Contributor

Codecov Results 📊

✅ Patch coverage is 100.00%. Project has 5339 uncovered lines.
❌ Project coverage is 81.8%. Comparing base (base) to head (head).

Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
- Coverage    81.81%    81.80%    -0.01%
==========================================
  Files          423       423         —
  Lines        29343     29343         —
  Branches     19118     19118         —
==========================================
+ Hits         24008     24004        -4
- Misses        5335      5339        +4
- Partials      1989      1988        -1

Generated by Codecov Action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant