Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion plugins/sentry-cli/skills/sentry-cli/references/init.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Initialize Sentry in your project (experimental)
**Flags:**
- `-y, --yes - Non-interactive mode (accept defaults)`
- `-n, --dry-run - Show what would happen without making changes`
- `--features <value>... - Features to enable: errors,tracing,logs,replay,metrics,profiling,sourcemaps,crons,ai-monitoring,user-feedback`
- `--features <value>... - Features to enable: errors,tracing,logs,replay,profiling,ai-monitoring,user-feedback`
- `-t, --team <value> - Team slug to create the project under`

**Examples:**
Expand Down
2 changes: 1 addition & 1 deletion src/commands/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ export const initCommand = buildCommand<
kind: "parsed",
parse: String,
brief:
"Features to enable: errors,tracing,logs,replay,metrics,profiling,sourcemaps,crons,ai-monitoring,user-feedback",
"Features to enable: errors,tracing,logs,replay,profiling,ai-monitoring,user-feedback",
variadic: true,
optional: true,
Comment on lines +219 to 221
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: The init command's help text was updated to remove features, but the source documentation file docs/src/fragments/commands/init.md was not, creating a discrepancy.
Severity: LOW

Suggested Fix

Update the "Available Features" table in docs/src/fragments/commands/init.md to remove the rows for metrics, sourcemaps, and crons. This will align the source documentation with the changes made to the CLI command's help text.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent. Verify if this is a real issue. If it is, propose a fix; if not, explain why it's
not valid.

Location: src/commands/init.ts#L219-L221

Potential issue: The pull request intended to remove `metrics`, `sourcemaps`, and
`crons` from the `--features` flag of the `init` command. While the CLI help text in
`src/commands/init.ts` was updated, the corresponding hand-written source documentation
in `docs/src/fragments/commands/init.md` was not. This file is the source of truth for
generating the documentation website. As a result, the CLI's `--help` output will list 7
available features, while the official documentation will still list all 10, leading to
user confusion and inconsistent information.

Did we get this right? 👍 / 👎 to inform future reviews.

},
Expand Down
Loading