@sentry/junior-sentry 0.267.0 → 0.269.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +2 -45
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @sentry/junior-sentry
2
2
 
3
- Sentry investigations and explicitly requested project, team, and alert changes (per-user OAuth plus optional org read access) and signed issue webhooks (internal integration) for Junior.
3
+ Sentry investigations, requested project, team, and alert changes, and signed issue and metric alert webhooks for Junior.
4
4
 
5
5
  ```bash
6
6
  pnpm add @sentry/junior @sentry/junior-sentry
@@ -13,47 +13,4 @@ import { sentryPlugin } from "@sentry/junior-sentry";
13
13
  export const plugins = defineJuniorPlugins([sentryPlugin()]);
14
14
  ```
15
15
 
16
- ## User OAuth
17
-
18
- Set `SENTRY_CLIENT_ID` and `SENTRY_CLIENT_SECRET` from a Sentry OAuth app whose redirect is:
19
-
20
- ```text
21
- <base-url>/api/oauth/callback/sentry
22
- ```
23
-
24
- Junior injects the user's token as `SENTRY_AUTH_TOKEN` for skill/CLI commands. Reconnect after scope changes.
25
-
26
- Verified CLI surface (check live `sentry --help` before blocking):
27
-
28
- - `sentry issue list|events|explain|plan|view`
29
- - `sentry org list|view`
30
- - `sentry project create|list|view`, `sentry team list`, `sentry dsn list`
31
- - `sentry log list|view`
32
- - `sentry trace list|view|logs`
33
- - `sentry alert metrics list|view|create|edit|delete`
34
- - `sentry api <endpoint>` fallback, with `sentry schema` for endpoint lookup
35
-
36
- ## Org read access
37
-
38
- Set `SENTRY_READ_TOKEN` to a read-only internal integration token. Junior then uses it for Sentry API reads (`GET`, `HEAD`, `OPTIONS`), including Explore queries, scheduled tasks, and event automations. Writes and `/api/0/users/` requests still use the requesting user's OAuth token.
39
-
40
- ## Issue and metric alert webhooks
41
-
42
- Use a **Sentry internal integration** (not a public app install flow):
43
-
44
- 1. Subscribe to the **issue** webhook resource.
45
- 2. Point it at `https://<junior-host>/api/webhooks/sentry`.
46
- 3. Set the integration client secret as `SENTRY_WEBHOOK_SECRET`, then redeploy.
47
-
48
- For metric alerts, also enable **Alert Rule Action** on the integration and add it as a `sentry_app` trigger action on each alert. Sentry sends metric alerts only to alert actions.
49
-
50
- Junior verifies `Sentry-Hook-Signature`, reads the org slug from the signed payload, and publishes:
51
-
52
- - `issue.created` for `org/project#issueId` and `org/project`.
53
- - `metric_alert.critical`, `metric_alert.warning`, and `metric_alert.resolved` for `metric-alert:org/alertRuleId` and for `org/project` of each project on the alert rule.
54
-
55
- Each event has trusted data from Sentry. Issue events have `issueId`, `level`, `priority`, `issueCategory`, `issueType`, and `url` when Sentry sends them. Metric alert events have `alertRuleId`, `incidentId`, and `url`. On `org/project`, watches and event automations can filter issue events on `level`, `priority`, and `issueCategory`, and metric alert events on `alertRuleId`. The issue title, culprit, and alert description stay untrusted text.
56
-
57
- Create watches/event automations before the webhook arrives; unmatched deliveries are not replayed.
58
-
59
- Full guide: https://junior.sentry.dev/extend/sentry-plugin/
16
+ Setup and configuration: https://junior.sentry.dev/extend/sentry-plugin/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/junior-sentry",
3
- "version": "0.267.0",
3
+ "version": "0.269.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -27,7 +27,7 @@
27
27
  ],
28
28
  "dependencies": {
29
29
  "zod": "^4.5.4",
30
- "@sentry/junior-plugin-api": "0.267.0"
30
+ "@sentry/junior-plugin-api": "0.269.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@oxlint/plugins": "1.79.0",