@ai-ecoverse/slicc-shared-web 2.17.0 → 2.19.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/README.md +5 -3
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -93,7 +93,7 @@ The caller cancels superseded runs on pull requests only, so a push to `main` ne
|
|
|
93
93
|
- `$RUNNER_TEMP/review/browsers.json`: four headed Chrome instances on one machine (on Xvfb display `:99` when the runner has no `DISPLAY`, since headless Chrome behaves slightly differently), `head` and `base` each linked through the extension and through slicc-cli, on CDP ports 9301 to 9304. For each one the job runs `review-browser` (by default `npm run --if-present review:browser`) in that side's tree with `SLICC_REVIEW_SIDE` (`head` or `base`), `SLICC_REVIEW_LINK` (`extension` or `cli`) and `SLICC_REVIEW_CDP`, so the repo loads its own build into that browser. Every one of them also runs the [harness extension](#harness-extension) (loaded with `--load-extension`), so the review sees pages the way a user with a content-script extension does;
|
|
94
94
|
- `review-prompt`, appended to the shared prompt.
|
|
95
95
|
|
|
96
|
-
The shared prompt sets the bar for a denial: a confirmed problem that users or operators are likely to hit, such as a security or secret exposure, data loss, a crash, a regression in a common path, or a behaviour change without a test. A race or edge case that needs unlikely timing or a rare combination of events gets a comment and, when worth tracking, an issue, but the reviewer approves. A risk the base already has doesn't block either. On a pull request that has been reviewed before, a reviewer denies only for something new and at least as serious as what earlier rounds fixed, so a fix isn't held up by one narrow case after another.
|
|
96
|
+
The shared prompt sets the bar for a denial: a confirmed problem that users or operators are likely to hit, such as a security or secret exposure, data loss, a crash, a regression in a common path, or a behaviour change without a test. A race or edge case that needs unlikely timing or a rare combination of events gets a comment and, when worth tracking, an issue, but the reviewer approves. A risk the base already has doesn't block either. On a pull request that has been reviewed before, a reviewer denies only for something new and at least as serious as what earlier rounds fixed, so a fix isn't held up by one narrow case after another. On a pull request labelled exactly `private-fix`, a label that marks fixes kept private until release, the public summary says only what the change does, never what was exposed or broken before it, and findings are reported in full in the same neutral wording.
|
|
97
97
|
|
|
98
98
|
A reviewer can attach screenshots: it saves PNGs to `$RUNNER_TEMP/review/shots/` and references them in the summary, a comment or an issue as ``. `post` uploads them to R2 (the bucket in `R2_BUCKET`, `slicc-pr-screenshots` by default, under `<repo>/pr-<n>/<commit>/<reviewer>/`) with `CLOUDFLARE_API_TOKEN`, which only `post` gets, and rewrites each reference to its public URL (`R2_PUBLIC_BASE_URL`); without the token, a reference becomes a link to the run, whose `findings-<reviewer>` artifact holds the files.
|
|
99
99
|
|
|
@@ -114,11 +114,11 @@ Each reviewer answers with `findings.json`, held to one JSON schema:
|
|
|
114
114
|
|
|
115
115
|
**Artifacts the caller built.** A caller whose own jobs build something the tests or the reviewers need (packages, say) runs them before the pipeline (`needs:` on the job that `uses:` it) and names them with `artifacts`, a [download-artifact](https://github.com/actions/download-artifact) `pattern` such as `host-*`. Every test shard gets the matching artifacts of the run in `$RUNNER_TEMP/artifacts/<artifact>/`, and each reviewer in `$RUNNER_TEMP/review/artifacts/<artifact>/`, before `review-browser` runs, so the hook can load the change's build into both sides' browsers; the test step and the hook get that directory as `SLICC_ARTIFACTS`, and the prompt names it. Without `artifacts` nothing is downloaded and `SLICC_ARTIFACTS` is empty.
|
|
116
116
|
|
|
117
|
-
**Review** is the check that stands for the reviews. On a pull request that gets a review it passes when both reviewers' `findings.json` say `approved`; when the repo can't read `AWS_BEARER_TOKEN_BEDROCK`, the reviewers don't start and it fails, naming the secret. On one that doesn't (a Renovate pull request outside `review-renovate`) it passes when `integration` did. In the merge queue it always passes, since the pull request was reviewed already. Require it next to `ci / integration`, as `ci / review`.
|
|
117
|
+
**Review** is the check that stands for the reviews. On a pull request that gets a review it passes when both reviewers' `findings.json` say `approved`; when the repo can't read `AWS_BEARER_TOKEN_BEDROCK`, the reviewers don't start and it fails, naming the secret. On one that doesn't (a Renovate pull request outside `review-renovate`, or [one labelled `private-fix`](#which-pull-requests-get-a-review)) it passes when `integration` did. In the merge queue it always passes, since the pull request was reviewed already. Require it next to `ci / integration`, as `ci / review`.
|
|
118
118
|
|
|
119
119
|
### Which pull requests get a review
|
|
120
120
|
|
|
121
|
-
Every pull request does, except Renovate's: one opened by `renovate[bot]` from a `renovate/` branch, on an event `renovate[bot]`, or a bot listed in `renovate-bots`, caused (a push by anyone else onto that branch gets a review). A Renovate branch is `renovate/<group slug>`, or `renovate/major-<group slug>` for a major, or `renovate/<dependency>-<version>` outside a group. Its pull request gets a review only when the slug, without `major-`, matches one of the globs in `review-renovate`, one per line:
|
|
121
|
+
Every pull request does, except one labelled `private-fix` (below) and Renovate's: one opened by `renovate[bot]` from a `renovate/` branch, on an event `renovate[bot]`, or a bot listed in `renovate-bots`, caused (a push by anyone else onto that branch gets a review). A Renovate branch is `renovate/<group slug>`, or `renovate/major-<group slug>` for a major, or `renovate/<dependency>-<version>` outside a group. Its pull request gets a review only when the slug, without `major-`, matches one of the globs in `review-renovate`, one per line:
|
|
122
122
|
|
|
123
123
|
```yaml
|
|
124
124
|
with:
|
|
@@ -131,6 +131,8 @@ Every pull request does, except Renovate's: one opened by `renovate[bot]` from a
|
|
|
131
131
|
|
|
132
132
|
A repo whose own GitHub App pushes onto Renovate's branches (a refresh commit, say) names it in `renovate-bots`, by login, one per line or comma-separated, with or without `[bot]`: `homescoop-renovate-refresh`. A push by a listed bot onto a `renovate/` branch of a pull request `renovate[bot]` opened counts as Renovate's own, so it skips review exactly like Renovate's pushes unless the group matches `review-renovate`, and both reviewers accept the bot as the actor when the group does get a review. A push by it anywhere else gets a review as usual. List only a bot the repo controls. An entry that isn't a plain login (letters, digits and hyphens), `*` or any other wildcard included, fails `lint`.
|
|
133
133
|
|
|
134
|
+
A pull request labelled exactly `private-fix`, a label that marks fixes kept private until release, gets no bot review when the label is on it as the run starts, in the event or as `lint` reads it through the API with the job token. `context`, `reviewer` and `post` are skipped, so no comment, findings artifact or model output appears, and `review` passes when `integration` did, with the one line `bot review skipped: private-fix; reviewed privately`. When `lint` can't read the labels after three attempts, it fails rather than start a review. Open such a pull request with `gh pr create --label private-fix`: a run that started before the label was added still reviews and comments. Anyone who can label pull requests can turn the bot review off this way, so a repo that uses the label requires a human approval in its branch protection.
|
|
135
|
+
|
|
134
136
|
The commands in `lint`, `test`, `deploy`, `review-browser` and `after-release` run with `bash -eo pipefail -c`, so a multi-line command stops at its first failing line, a failure inside a pipe included.
|
|
135
137
|
|
|
136
138
|
| Input | Default | |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-ecoverse/slicc-shared-web",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.19.0",
|
|
4
4
|
"description": "Shared Renovate, Biome, TypeScript, lefthook and GitHub Actions configuration, plus the CDP integration-test harness, for SLICC's web repos",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -75,12 +75,12 @@
|
|
|
75
75
|
"release": "semantic-release"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
|
-
"@ai-ecoverse/slicc-browsers": "1.
|
|
79
|
-
"@ai-ecoverse/slicc-cdp": "2.
|
|
80
|
-
"@biomejs/biome": "2.6.
|
|
78
|
+
"@ai-ecoverse/slicc-browsers": "1.43.0",
|
|
79
|
+
"@ai-ecoverse/slicc-cdp": "2.2.5",
|
|
80
|
+
"@biomejs/biome": "2.6.8",
|
|
81
81
|
"lefthook": "2.2.2",
|
|
82
82
|
"monocart-coverage-reports": "3.2.1",
|
|
83
|
-
"pnpm": "12.
|
|
83
|
+
"pnpm": "12.23.0",
|
|
84
84
|
"semantic-release": "25.0.9"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|