Skip to content

docs: documentation audit — fix toolchain drift, stale versions, and coverage gaps - #1302

Draft
cursor[bot] wants to merge 6 commits into
mainfrom
cursor/sentry-cli-documentation-audit-dd05
Draft

docs: documentation audit — fix toolchain drift, stale versions, and coverage gaps#1302
cursor[bot] wants to merge 6 commits into
mainfrom
cursor/sentry-cli-documentation-audit-dd05

Conversation

@cursor

@cursor cursor Bot commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Documentation Audit Report

Weekly automated audit of the Sentry CLI repository to find gaps between implementation and documentation. This PR contains fixes for the highest-impact findings.


Changes Made

  1. AGENTS.md toolchain driftbunpnpm/vitest throughout Quick Reference and Testing sections. The project migrated to pnpm + vitest but AGENTS.md still referenced bun install, bun test, bun:test, mock.module(), BUN_TEST_WORKER_ID, etc. Also clarified project overview: "built with Bun" → esbuild + fossilize (Node SEA).

  2. getting-started.mdx Node.js version — Claimed npm/pnpm/yarn packages require "Node.js 22.15+" but package.json engines says >=18.0. Fixed to 18+ with WASM SQLite fallback note.

  3. Stale version pins — Updated example version 0.19.00.38.0 (current latest) in getting-started.mdx, env-registry.ts (SENTRY_VERSION description), and install script help text.

  4. proguard upload missing examples — Fragment only covered proguard uuid. Added examples for proguard upload, --uuid, --no-upload, and multi-file upload.

  5. agentic-usage.md agent coverage — Only mentioned Claude Code and Cursor, but detect-agent.ts recognizes 11+ agents. Added supported agents table showing auto-install targets vs. telemetry-only detection.


Full Gap Report

A. Undocumented or Missing Commands/Subcommands

No gaps found. All 107 primary commands and 17 hidden aliases in src/app.ts have corresponding auto-generated doc pages. The doc generator (script/generate-command-docs.ts) produces pages from the Stricli route tree, and check:fragments validates fragment ↔ route consistency.

B. Undocumented Flags

No significant gaps. All non-hidden flags are auto-documented in the generated Options tables. Hidden flags (--log-level, --verbose, --org, --project) are documented once in the global options section (docs/src/fragments/commands/index.md).

C. Missing Usage Examples

Subcommand Status Fragment file
proguard upload Fixed in this PR proguard.md
snapshots diff Partial (upload-focused) snapshots.md
snapshots download Partial snapshots.md

D. Stale Descriptions

No gaps. Command brief strings in code match doc descriptions exactly because docs are auto-generated from the same source.

E. Missing Route Mappings in Skill Generator

No gaps. ROUTE_TO_REFERENCE was removed and replaced by automatic 1:1 route→reference file generation via groupRoutesByReference() in script/generate-skill.ts.

F. Installation / Distribution Gaps

Finding Source Doc file Status
Node.js version: docs said 22.15+, code says >=18.0 package.json engines getting-started.mdx Fixed
Version pin example 0.19.0 → current 0.38.0 GitHub releases getting-started.mdx, env-registry.ts, install Fixed
Install script flags --no-modify-path, --no-completions, --no-agent-skills not in getting-started.mdx install script getting-started.mdx Low priority — available via --help

G. Undocumented Environment Variables

No significant gaps. configuration.md is generated from src/lib/env-registry.ts (28 entries). Internal-only env vars (SENTRY_ENVIRONMENT, SENTRY_TRACES_SAMPLE_RATE, SENTRY_SCAN_DISABLE_WORKERS, SENTRY_CLI_INTEGRATION_TEST_VERSION_OVERRIDE) are intentionally excluded — SDK passthrough or test-only.

H. Auth / Self-Hosted Gaps

No significant gaps. Self-hosted docs correctly cover OAuth 26.1.0+ requirement, SENTRY_CLIENT_ID, --url trust anchor, TLS/proxy config, and token precedence. Minor: --scope validation details are undocumented (advanced use only).

I. Plugin/Skills Gaps

Finding Source Doc file Status
Only 2 agents mentioned, 11+ detected detect-agent.ts agentic-usage.md Fixed
Auto-install vs. telemetry distinction unclear agent-skills.ts, detect-agent.ts agentic-usage.md Fixed

J. README / DEVELOPMENT.md Drift

Finding Source Doc file Status
AGENTS.md uses bun commands throughout package.json uses pnpm+vitest AGENTS.md Fixed
AGENTS.md says "built with Bun" Build is esbuild + fossilize AGENTS.md Fixed
AGENTS.md references BUN_TEST_WORKER_ID Now VITEST_POOL_ID AGENTS.md Fixed
README.md and DEVELOPMENT.md GENERATED sections Auto-maintained N/A No drift

Top 5 Most Impactful Fixes

  1. AGENTS.md bun→pnpm/vitest — Agents would run wrong commands and import from wrong test framework
  2. getting-started.mdx Node.js 22.15+ → 18+ — Incorrect requirement prevented valid installs
  3. Stale version pins (0.19.0 → 0.38.0) — CI/Dockerfile examples would pin to a 19-release-old version
  4. proguard upload missing examples — Primary subcommand had zero examples
  5. agentic-usage agent list — 9 additional supported agents were undocumented
Open in Web View Automation 

cursoragent and others added 6 commits July 27, 2026 12:12
- Quick Reference: bun install/run/test → pnpm install/run, vitest
- Project overview: clarify esbuild+fossilize build, not 'built with Bun'
- Testing section: bun:test → vitest, BUN_TEST_WORKER_ID → VITEST_POOL_ID
- Code examples: mock.module → vi.mock, import from 'vitest' not 'bun:test'
- CI commands: bun run check:* → pnpm run check:*
- Dependencies: bun add -d → pnpm add -D

Co-authored-by: Miguel Betegón <miguelbetegongarcia@gmail.com>
- Node.js requirement: 22.15+ → 18+ (matches package.json engines)
- Add WASM SQLite fallback note for Node.js 18–22.14
- Update pinned version example: 0.19.0 → 0.38.0 (current latest)

Co-authored-by: Miguel Betegón <miguelbetegongarcia@gmail.com>
The proguard upload subcommand had no bash examples in the fragment,
only proguard uuid was covered. Add examples for upload, --uuid,
--no-upload, and multi-file upload.

Co-authored-by: Miguel Betegón <miguelbetegongarcia@gmail.com>
detect-agent.ts recognizes 11+ agents but agentic-usage.md only
mentioned Claude Code and Cursor. Add a table showing all detected
agents with their skill auto-install and telemetry detection status.

Co-authored-by: Miguel Betegón <miguelbetegongarcia@gmail.com>
Update example version in env-registry.ts (SENTRY_VERSION description)
and install script help text/examples to reflect current latest release.

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-1302/

Built to branch gh-pages at 2026-07-27 12:17 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 5494 uncovered lines.
✅ Project coverage is 81.75%. Comparing base (base) to head (head).

Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
+ Coverage    81.75%    81.75%        —%
==========================================
  Files          428       428         —
  Lines        30106     30106         —
  Branches     19593     19593         —
==========================================
+ Hits         24611     24612        +1
- Misses        5495      5494        -1
- Partials      2054      2056        +2

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