@sentry/junior-maintenance 0.294.0 → 0.296.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.
- package/package.json +1 -1
- package/skills/self-update/SKILL.md +9 -12
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: self-update
|
|
3
|
-
description: Update this junior-prod app to the latest published Junior release. Use when asked to self-update Junior, bump @sentry/junior and @sentry/junior-* dependencies, run safety checks, and open a
|
|
3
|
+
description: Update this junior-prod app to the latest published Junior release. Use when asked to self-update Junior, bump @sentry/junior and @sentry/junior-* dependencies, run safety checks, and open a PR ready for review.
|
|
4
|
+
disable-model-invocation: true
|
|
4
5
|
---
|
|
5
6
|
|
|
6
7
|
## Workflow
|
|
@@ -34,9 +35,9 @@ pnpm view <package>@<target> version
|
|
|
34
35
|
|
|
35
36
|
Allow for npm security scanning and propagation delays after publication:
|
|
36
37
|
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
- If still
|
|
38
|
+
- Confirm missing versions with cache-busted npm metadata and the direct version endpoint. Continue only when every package's exact target version and tarball are available. Do not retry auth failures as publication delays.
|
|
39
|
+
- If any package is missing, leave app files unchanged. Call `watchTimer` with `after_ms: 900000` (15 minutes). Start its intent with `Run $self-update for target <target>`, so the timer Turn loads this skill, then name the missing packages and the wait number (for example `wait 1 of 4`). After `watchTimer` succeeds, end the Turn without a message in a separate call: in an Automation run, call `finishAutomationRun` with `no_action`; otherwise call `noReply`. If `watchTimer` fails, report the failure instead. When the timer fires, check the same target again.
|
|
40
|
+
- Wait at most 4 times (one hour). If a package is still missing after the fourth wait, do not open an update PR. Report "not yet available on npm" with the target, affected packages, and checks. Missing packages alone do not prove a failed publish or a scanning delay; do not republish or cut another release.
|
|
40
41
|
|
|
41
42
|
### 3. Build release context
|
|
42
43
|
|
|
@@ -51,7 +52,7 @@ pnpm view '@sentry/junior@><old_version> <=<target_version>' version --json
|
|
|
51
52
|
gh release view <version> --repo getsentry/junior --json tagName,name,body,publishedAt,url
|
|
52
53
|
```
|
|
53
54
|
|
|
54
|
-
Collect the corresponding release bodies. Stop if any expected GitHub release is missing; do not substitute another source. Save the target release's `publishedAt` as `target_published_at` for step 7. Save total change count, breaking changes (`Breaking Changes`, `!`, or `BREAKING CHANGE`), and config-relevant items (`config`, `plugins`, `nitro`, `createApp`, `runtime`, `credentials`, `egress`, `example`). If any breaking change exists,
|
|
55
|
+
Collect the corresponding release bodies. Stop if any expected GitHub release is missing; do not substitute another source. Save the target release's `publishedAt` as `target_published_at` for step 7. Save total change count, breaking changes (`Breaking Changes`, `!`, or `BREAKING CHANGE`), and config-relevant items (`config`, `plugins`, `nitro`, `createApp`, `runtime`, `credentials`, `egress`, `example`). If any breaking change exists, call out manual review, but continue the update.
|
|
55
56
|
|
|
56
57
|
### 4. Create or reuse branch
|
|
57
58
|
|
|
@@ -125,19 +126,15 @@ Update the Junior runtime and plugin packages to <target> and refresh the pnpm l
|
|
|
125
126
|
|
|
126
127
|
Mention `minimumReleaseAgeExclude` sync if `pnpm-workspace.yaml` changed.
|
|
127
128
|
|
|
128
|
-
### 10. Push and open/update
|
|
129
|
+
### 10. Push and open/update PR
|
|
129
130
|
|
|
130
|
-
Open a draft PR. Include version change, release summary with links to the GitHub releases, config comparison findings, optional workspace/plugin/vercel changes, and unexpected diffs. Do not put `Checks`, `Verification`, `Test plan`, or similar validation sections in the PR body; put local check results in the final user report only. Add **Manual review required** when breaking changes, unresolved config drift, approximate Vercel review, or failed checks exist.
|
|
131
|
+
Open the PR ready for review, not as a draft. If an existing update PR is a draft, mark it ready for review. Include version change, release summary with links to the GitHub releases, config comparison findings, optional workspace/plugin/vercel changes, and unexpected diffs. Do not put `Checks`, `Verification`, `Test plan`, or similar validation sections in the PR body; put local check results in the final user report only. Add **Manual review required** when breaking changes, unresolved config drift, approximate Vercel review, or failed checks exist.
|
|
131
132
|
|
|
132
133
|
When PR creation returns a subscribable resource hint, watch the PR for suggested review and CI events. After merge, if deployment follow-up is needed, use `github_getDeployment` for the merged commit and watch the suggested deployment events.
|
|
133
134
|
|
|
134
|
-
## Automatic updates from GitHub releases
|
|
135
|
-
|
|
136
|
-
When asked to keep an app current whenever Junior publishes a release, resolve `getsentry/junior` with `github_getRelease` (no tag) and create a durable event automation on `release.published`. The task instruction should load this skill and run the update against the published tag from the event's untrusted text / release payload. Prefer an event automation for ongoing automation; use a temporary watch only when following one manually initiated update.
|
|
137
|
-
|
|
138
135
|
## Stop conditions
|
|
139
136
|
|
|
140
|
-
- Any Junior package still lacks the target version or tarball after
|
|
137
|
+
- Any Junior package still lacks the target version or tarball after one hour of waits in step 2.
|
|
141
138
|
- Any npm version in `(old_version, target_version]` lacks a matching GitHub release.
|
|
142
139
|
- `pnpm install --frozen-lockfile` fails after repair.
|
|
143
140
|
- Checks fail for non-pre-existing, non-environment reasons and no safe config fix is available from step 7.
|