Skip to content

chore(deps): bump @sentry/starlight-theme to 0.6.0 and add sentryAgentMarkdown plugin#348

Merged
dcramer merged 2 commits into
mainfrom
bump/sentry-starlight-theme-0.6.0
May 22, 2026
Merged

chore(deps): bump @sentry/starlight-theme to 0.6.0 and add sentryAgentMarkdown plugin#348
dcramer merged 2 commits into
mainfrom
bump/sentry-starlight-theme-0.6.0

Conversation

@sentry-junior
Copy link
Copy Markdown
Contributor

@sentry-junior sentry-junior Bot commented May 22, 2026

Bumps @sentry/starlight-theme from ^0.5.0 to ^0.6.0 in packages/docs/package.json and adds the new sentryAgentMarkdown() plugin to astro.config.mjs.

The plugin generates static .md versions of docs pages for LLM/agent clients and adds a copy-to-clipboard Markdown action in the right sidebar.

Updated pnpm-lock.yaml accordingly.

Action taken on behalf of David Cramer.


View Session in Sentry

Co-authored-by: David Cramer <dcramer@gmail.com>
Co-authored-by: David Cramer <dcramer@gmail.com>
@sentry-junior sentry-junior Bot changed the title chore(deps): bump @sentry/starlight-theme to 0.6.0 chore(deps): bump @sentry/starlight-theme to 0.6.0 and add sentryAgentMarkdown plugin May 22, 2026
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 2ea29dc. Configure here.

markdown: {
shikiConfig: {
theme: monochromeCodeTheme,
sentryAgentMarkdown,
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Stray sentryAgentMarkdown inside shikiConfig object

Medium Severity

sentryAgentMarkdown (a function) is placed as a shorthand property inside the shikiConfig object, where it doesn't belong. The valid shikiConfig properties are things like theme, themes, langs, transformers, etc. This line injects sentryAgentMarkdown: <function> into Shiki's config, which is almost certainly an accidental leftover from editing. It's already correctly used as a plugin on line 108 via sentryAgentMarkdown(). This stray reference will either be silently ignored (meaning intended functionality is missing) or could cause unexpected behavior depending on how Astro handles unknown shikiConfig properties.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 2ea29dc. Configure here.

@dcramer dcramer enabled auto-merge (squash) May 22, 2026 01:28
@dcramer dcramer merged commit 11a29eb into main May 22, 2026
19 checks passed
@dcramer dcramer deleted the bump/sentry-starlight-theme-0.6.0 branch May 22, 2026 01:28
dcramer added a commit that referenced this pull request May 22, 2026
Removes the spurious `sentryAgentMarkdown` shorthand property
accidentally placed inside the `shikiConfig` object. It has no effect
there and `shikiConfig` doesn't accept it. The correct usages — the
import and the Starlight plugin call — are already in place.

Introduced by #348, previous fix attempt (#349) was broken by a `sed`
pattern that also deleted the import line.

Action taken on behalf of David Cramer.

---
[View Session in
Sentry](https://sentry.sentry.io/traces/?project=4510944073809921&query=gen_ai.conversation.id%3A%22slack%3AC0B595QDZLL%3A1779409935.211219%22)

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: David Cramer <dcramer@gmail.com>
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