@gate-forge/cli 0.13.3 → 0.13.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.13.4
4
+
5
+ - **A suite that mixes the fixture's `test` with Playwright's own runs in
6
+ file order again.** Since 0.13.0 the fixture replaced Playwright's
7
+ worker-scoped `browser` to open a debugging port for page observation.
8
+ Playwright schedules tests whose runners differ in a worker-scoped
9
+ fixture in separate worker groups, so every fixture test ran after the
10
+ plain ones, and a suite whose later tests relied on state an earlier
11
+ fixture test created failed after upgrading. The replacement is now
12
+ registered only when the supervisor enables page observation (the only
13
+ reader of the port). With page observation on, a mixed suite still runs
14
+ in two groups: take `test` from the fixture everywhere to keep one
15
+ order.
16
+
3
17
  ## 0.13.3
4
18
 
5
19
  - **Hooks on the fixture's `test` receive their fixtures again.** 0.13.2
package/README.md CHANGED
@@ -4,6 +4,7 @@ The gateforge command-line interface: initialize a project, discover
4
4
  resources and classification signals, inspect automatic decisions, reuse a
5
5
  repository's existing tests, evaluate obligations, run the supervised E2E
6
6
  gate, enforce the exact staged candidate, and maintain baselines.
7
+ **0.13.4:** A suite that mixes the fixture's `test` with Playwright's own runs in file order again when page observation is off: the fixture replaces Playwright's worker-scoped `browser` only for page observation, so the two runners no longer land in separate worker groups.
7
8
  **0.13.3:** Hooks registered on the Gateforge fixture's `test` receive their fixtures again: 0.13.2 handed `test.beforeEach(async ({ page }) => …)` an undefined `page`. Titled hooks (`test.beforeEach('title', fn)`) work too, and a runner built with `test.extend(...)` keeps hook setup traffic uncredited like the base runner.
8
9
  **0.13.2:** API tests are witnessed: the Gateforge Playwright fixture rehosts APIRequestContext calls (the `request` fixture, `page.request`/`context.request`, and the exported `request.newContext()`) onto the test's session proxy, while hook and module-scope setup traffic stays uncredited. `tests suggest --from-run` names tests from a witnessed run's own recorded exchanges (now stamped with their method) and prints the exact `tests mark` command; unmatched and ambiguous exchanges are listed separately. A refused sweep page names the requests behind `PAGE_API_UNSETTLED`/`PAGE_API_ERROR`. First-install fixes: an unreferenced `.gateforge/runtime.yml` warns, a repeated `tests mark` adds claims instead of replacing them, `explain` accepts printed obligation ids, init's no-terminal notice names the `mode:` edit, a closed output reader no longer changes the exit code, the test scan ignores JSON files, and init recommends the React Router pack for React Router apps.
9
10
  **0.13.1:** The frontend detector now reads a trailing template-literal hole that provably renders only query or fragment text as a bare query marker instead of gluing it to the last path segment, so calls like `.../meters${qs}` join their backend route instead of reporting unwired (anything not provably a query suffix is unchanged). The supervisor's post-suite page sweep performs its witness HTTP calls with `node:http`/`node:https` directly, so the computed budget is the only deadline and a sweep budgeted longer than five minutes no longer aborts with `fetch failed` (error types, messages, and fail-closed behavior unchanged). A storage-only `addInitScript` (`localStorage`/`sessionStorage` set, `removeItem`/`clear`, optional `window.` receiver, and the `context.addInitScript` form) is no longer a page-observation tamper; the scan continues past it, and a real tamper later in the same file is still reported at its own line.
@@ -24,11 +24,11 @@ Example for a React frontend, FastAPI backend, and SQLAlchemy data layer:
24
24
 
25
25
  ```sh
26
26
  npm i -D \
27
- @gate-forge/cli@0.13.3 \
28
- @gate-forge/pack-playwright@0.13.3 \
29
- @gate-forge/pack-http@0.13.3 \
30
- @gate-forge/pack-fastapi@0.13.3 \
31
- @gate-forge/pack-sqlalchemy@0.13.3
27
+ @gate-forge/cli@0.13.4 \
28
+ @gate-forge/pack-playwright@0.13.4 \
29
+ @gate-forge/pack-http@0.13.4 \
30
+ @gate-forge/pack-fastapi@0.13.4 \
31
+ @gate-forge/pack-sqlalchemy@0.13.4
32
32
  ```
33
33
 
34
34
  Use the project-local `gateforge` binary from your npm script or add `node_modules/.bin` to your shell `PATH`. If the scan recommends other packs, add only the ones your code uses, at the same version. A mismatched Gateforge package contract can stop the CLI with exit code 2 and `GATEFORGE_PACKAGE_INCOMPATIBLE`.
@@ -49,7 +49,7 @@ This installs every pack of the release; the scan still recommends the ones your
49
49
 
50
50
  **You should see:** npm installs the packages without a Gateforge compatibility error.
51
51
 
52
- **If not:** align every direct `@gate-forge/*` package to `0.13.3`, then install again. Do not work around the compatibility error.
52
+ **If not:** align every direct `@gate-forge/*` package to `0.13.4`, then install again. Do not work around the compatibility error.
53
53
 
54
54
  ## 2. Pick a goal
55
55
 
@@ -501,7 +501,7 @@ the registry. To gate a release that is not on the registry yet (a local
501
501
  regenerate:
502
502
 
503
503
  ```sh
504
- GATEFORGE_CI_ENGINE_SOURCE=vendor/gate-forge-cli-0.13.3.tgz \
504
+ GATEFORGE_CI_ENGINE_SOURCE=vendor/gate-forge-cli-0.13.4.tgz \
505
505
  gateforge enforce --ci github
506
506
  ```
507
507
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gate-forge/cli",
3
- "version": "0.13.3",
3
+ "version": "0.13.4",
4
4
  "gateforgeCompatibility": {
5
5
  "supervisedFixtureProtocol": "gateforge.supervised-playwright.v1"
6
6
  },
@@ -33,16 +33,16 @@
33
33
  "test": "vitest run"
34
34
  },
35
35
  "dependencies": {
36
- "@gate-forge/core": "^0.13.3",
37
- "@gate-forge/http-contract": "^0.13.3",
38
- "@gate-forge/pack-fastapi": "^0.13.3",
39
- "@gate-forge/pack-alembic": "^0.13.3",
40
- "@gate-forge/pack-http": "^0.13.3",
41
- "@gate-forge/pack-react-router": "^0.13.3",
42
- "@gate-forge/pack-playwright": "^0.13.3",
43
- "@gate-forge/pack-sqlalchemy": "^0.13.3",
44
- "@gate-forge/pack-task": "^0.13.3",
45
- "@gate-forge/plugin-protocol": "^0.13.3",
36
+ "@gate-forge/core": "^0.13.4",
37
+ "@gate-forge/http-contract": "^0.13.4",
38
+ "@gate-forge/pack-fastapi": "^0.13.4",
39
+ "@gate-forge/pack-alembic": "^0.13.4",
40
+ "@gate-forge/pack-http": "^0.13.4",
41
+ "@gate-forge/pack-react-router": "^0.13.4",
42
+ "@gate-forge/pack-playwright": "^0.13.4",
43
+ "@gate-forge/pack-sqlalchemy": "^0.13.4",
44
+ "@gate-forge/pack-task": "^0.13.4",
45
+ "@gate-forge/plugin-protocol": "^0.13.4",
46
46
  "picomatch": "^4.0.7",
47
47
  "yaml": "^2.8.1"
48
48
  },