@ai-ecoverse/slicc-shared-web 1.24.0 → 1.24.2

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 CHANGED
@@ -83,7 +83,7 @@ The guard's assumption is that **workers never apply or remove `cert-review-appr
83
83
 
84
84
  On `merge_group`, the guard walks the first-parent merge ancestry from `head_sha` back to `base_sha`, resolves each merge's second parent to exactly one open PR, and inspects that member's actual merged delta. It checks approval against that queued head, not just whatever head the PR API currently returns. A moved head, an unexplained non-merge commit or an unapproved certification-path PR makes the group red. This assumes the queue's **merge-commit method** with two-parent synthetic merges; squash/rebase or any other unexplained ancestry fails closed. It does not call an LLM or run candidate code.
85
85
 
86
- Callers use **one external `uses:` line pinned to a full commit SHA**, not a local action path or the PR's checkout. The composite executes its script from `github.action_path`, the downloaded pinned action directory. Each lane supplies one newline-separated `paths` list covering its certification workflows, reviewer/classifier/record tools and runners. The default list covers `.github/workflows/cert*.yml`, `.github/workflows/cert*.yaml`, `scripts/cert/**`, `tools/cert-review/**` and `.github/actions/cert-self-guard/**`. Inclusive repository-relative globs use Node's `path.matchesGlob`; negations are not supported. Include the caller's **entire cert workflow**, so changing the guard's own `uses:` line or pinned SHA is itself guarded. An empty or invalid list fails closed.
86
+ Callers use **one external `uses:` line pinned to a full commit SHA**, not a local action path or the PR's checkout. The composite executes its script from `github.action_path`, the downloaded pinned action directory. Each lane supplies one newline-separated `paths` list covering its certification workflows, reviewer/classifier/record tools and runners. The default list covers `.github/workflows/cert*.yml`, `.github/workflows/cert*.yaml`, `scripts/cert/**`, `tools/cert-review/**` and `.github/actions/cert-self-guard/**`. Inclusive repository-relative globs are matched fail-closed, with dot semantics: a path counts as touched when Node's `path.matchesGlob` matches it, when the glob matches it with `**` crossing dot segments and `*` matching a leading dot (`dotGlob` in `changes.mjs`), or, for a literal `X/**` glob, when it starts with `X/`. So `tools/cert-review/.npmrc` and `scripts/cert/a/.b/c.mjs` need the label too; `matchesGlob` alone skips them. Negations are not supported. Include the caller's **entire cert workflow**, so changing the guard's own `uses:` line or pinned SHA is itself guarded. An empty or invalid list fails closed.
87
87
 
88
88
  ```yaml
89
89
  on:
@@ -157,7 +157,7 @@ SLICC_UNIT_ALL=1 git commit
157
157
 
158
158
  CPU profiling is off by default. V8's sampler interrupts each page and worker thread every 100 µs with a signal, and the renderer SIGSEGVs in slicc-bios#114 all fault inside a signal handler walking the interrupted thread's frames, which points at it. Turn it on with `profile: true` or `SLICC_PROFILE=1` to get one CPU profile per target and snapshot in the test's artifact directory, and the 15 frames with the most self time in the repo's own scripts in `hotspots.md`. Without it, `hotspots.md` says that profiling is off.
159
159
 
160
- `monocart-coverage-reports` is a peer dependency; pin it in the repo's `devDependencies`. The browser is the first of these:
160
+ `monocart-coverage-reports` is a peer dependency (2.13 or later, 3.x included); pin it in the repo's `devDependencies`. The harness works with both majors: 3.x's `/util` entry has only a named `Util` export and 2.x's a default one, and CI runs the recorder and the unit-cover hook on 2.13.2 and the latest 3.x. The browser is the first of these:
161
161
  - `launch({ executable })`;
162
162
  - `$CHROME_PATH`;
163
163
  - `findBrowser()` from `@ai-ecoverse/slicc-cdp`. It finds a Chrome for Testing that `npx slicc-cdp install-browser --version <x.y.z.w>` installed, or a system Chrome;
@@ -2,11 +2,13 @@ import { mkdir, readFile, writeFile } from 'node:fs/promises';
2
2
  import { basename, relative } from 'node:path';
3
3
  import { cwd } from 'node:process';
4
4
  import { pathToFileURL } from 'node:url';
5
- import Util from 'monocart-coverage-reports/util';
5
+ import * as mcrUtil from 'monocart-coverage-reports/util';
6
6
  import { CRASHED } from './cdp.mjs';
7
7
  import { trace } from './trace.mjs';
8
8
  import { bounded, ignore, raw, samples, sleep, TIMED_OUT } from './util.mjs';
9
9
 
10
+ const Util = mcrUtil.Util ?? mcrUtil.default;
11
+
10
12
  const profiled = new Set(['page', 'worker', 'service_worker', 'shared_worker']);
11
13
  const sampling = [['Profiler.setSamplingInterval', { interval: 100 }], ['Profiler.start']];
12
14
  const unload = "addEventListener('beforeunload', () => { debugger; })";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-shared-web",
3
- "version": "1.24.0",
3
+ "version": "1.24.2",
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",
@@ -66,12 +66,12 @@
66
66
  "@biomejs/biome": "2.5.15",
67
67
  "monocart-coverage-reports": "2.13.2",
68
68
  "playwright-core": "1.64.0",
69
- "pnpm": "12.12.0",
69
+ "pnpm": "12.12.1",
70
70
  "semantic-release": "25.0.9"
71
71
  },
72
72
  "peerDependencies": {
73
73
  "@ai-ecoverse/slicc-cdp": "*",
74
- "monocart-coverage-reports": ">=2.13.0",
74
+ "monocart-coverage-reports": ">=2.13.0 <4",
75
75
  "playwright-core": ">=1.50.0"
76
76
  },
77
77
  "peerDependenciesMeta": {