docs: documentation audit — fix toolchain drift, stale versions, and coverage gaps#1269
Draft
cursor[bot] wants to merge 4 commits into
Draft
docs: documentation audit — fix toolchain drift, stale versions, and coverage gaps#1269cursor[bot] wants to merge 4 commits into
cursor[bot] wants to merge 4 commits into
Conversation
AGENTS.md Quick Reference and Testing sections still referenced bun as the package manager and test runner. The actual toolchain is pnpm@10.11.0 with vitest for testing. Updated: - All 'bun install/run/test' → 'pnpm install/run' + vitest - 'bun add -d' → 'pnpm add -D' - 'bun:test' imports → 'vitest' - 'mock.module()' → 'vi.mock()' - BUN_TEST_WORKER_ID → VITEST_POOL_ID - 'Bun'\''s test runner' → 'Vitest' Co-authored-by: Miguel Betegón <miguelbetegongarcia@gmail.com>
The install script usage help and getting-started docs still showed 0.19.0 as the version pinning example. Updated to the current latest release 0.38.0. Co-authored-by: Miguel Betegón <miguelbetegongarcia@gmail.com>
The CLI is bundled with esbuild and packaged into Node.js SEA binaries via fossilize. Bun APIs are used in source but shimmed for the Node.js distribution. Updated the overview to reflect the actual build pipeline. Co-authored-by: Miguel Betegón <miguelbetegongarcia@gmail.com>
Contributor
|
Contributor
Codecov Results 📊✅ Patch coverage is 100.00%. Project has 5477 uncovered lines. Coverage diff@@ Coverage Diff @@
## main #PR +/-##
==========================================
+ Coverage 81.67% 81.68% +0.01%
==========================================
Files 426 426 —
Lines 29896 29896 —
Branches 19420 19420 —
==========================================
+ Hits 24416 24419 +3
- Misses 5480 5477 -3
- Partials 2035 2034 -1Generated by Codecov Action |
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.
Documentation Audit Report (2026-07-20)
Weekly automated audit comparing CLI implementation against documentation. This PR fixes the highest-impact gaps found.
Changes Made
1. AGENTS.md toolchain drift (bun → pnpm/vitest)
bun install/run/test→pnpm install/run+ vitestbun run check:deps→pnpm run check:deps,bun add -d→pnpm add -Dbun run generate:docs→pnpm run generate:docs,bun run check:fragments→pnpm run check:fragmentsbun run check:errors→pnpm run check:errorsbun:test→vitest,mock.module()→vi.mock(),BUN_TEST_WORKER_ID→VITEST_POOL_ID2. Stale URL in upgrade.ts
https://sentry.io/get-cli/→https://cli.sentry.dev/install(SIGKILL recovery message)3. Node.js version requirement fix (getting-started.mdx)
package.jsonengines: ">=18.0"and README claims4. Stale version pinning examples
0.19.0→0.38.0in install script help, getting-started docs, and env-registry5. proguard upload fragment — missing examples
proguard upload(single/multi file, forced UUID, dry-run, require-one)6. agentic-usage.md — expanded agent coverage
Full Gap Report
A. Undocumented or Missing Commands/Subcommands
No gaps found. All 31 visible command groups have corresponding generated docs and fragment files. The
check:fragmentsvalidation enforces 1:1 mapping.B. Undocumented Flags
Flag documentation is auto-generated from Stricli command definitions. All non-hidden flags appear in the generated reference. No gaps in the generated layer.
Fragment coverage gaps (examples only, not reference docs):
proguard uploadflags (--uuid,--no-upload,--require-one) had no examples → Fixedalert issues edit— no dedicated example (low priority)C. Missing Usage Examples
All command fragments have at least one bash example block. The only significant gap was:
proguard upload— zero examples → Fixed (5 examples added)D. Stale Descriptions
No meaningful drift found. The
briefstrings in code are used directly by the doc generator, ensuring they can't drift from the generated reference pages.E. Missing Route Mappings in Skill Generator
Not applicable. The
ROUTE_TO_REFERENCEmap was removed in favor of automatic 1:1 mapping viagroupRoutesByReference(). All routes are included automatically.F. Installation / Distribution Gaps
enginesis >=18.0sentry.io/get-cli/-muslsuffix binaries, but build pipeline only produces 5 non-musl targets--no-modify-path,--no-completionsnot in getting-started--helpG. Undocumented Environment Variables
The
env-registry.tsis the source of truth forconfiguration.md(auto-generated). AllSENTRY_*variables used insrc/that are user-facing are registered.Intentionally excluded (internal):
SENTRY_PIPELINE,SENTRY_MONITOR_SLUG— internal CI signalsSENTRY_CLIENT_ID_BUILD— build-time define, not runtime env varNo gaps between code and generated config page.
H. Auth / Self-Hosted Gaps
OAUTH_SCOPESin oauth.tsself-hosted.mdand env-registry~/.sentry/cli.db)--scopevalidation against canonical SENTRY_SCOPESI. Plugin/Skills Gaps
agentic-usage.mdonly mentioned 2 agents, detect-agent.ts has 11+~/.claudeand~/.agents(not per-agent dirs)npx skills add https://cli.sentry.devmanual install pathplugins/README.mdJ. README / DEVELOPMENT.md Drift
bunfor all dev commandsTop 5 Most Impactful Fixes (all addressed in this PR)
bun install/bun testwhich are wrong commands for this reposentry.io/get-cli/URL