@gate-forge/cli 0.13.2 → 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,36 @@
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
+
17
+ ## 0.13.3
18
+
19
+ - **Hooks on the fixture's `test` receive their fixtures again.** 0.13.2
20
+ wrapped `beforeAll`/`beforeEach`/`afterEach`/`afterAll` to keep hook
21
+ setup traffic uncredited, but the wrapper hid the hook's parameter list
22
+ from Playwright, which picks a hook's fixtures by reading it. Every
23
+ `test.beforeEach(async ({ page }) => …)` got an undefined `page`. The
24
+ wrapper now reports the consumer's own callback to Playwright, and a
25
+ titled hook (`test.beforeEach('title', fn)`) keeps its title.
26
+
27
+ - **Hook setup traffic stays uncredited on a suite's own runner too.** A
28
+ suite that builds its runner with `test.extend(...)` on the fixture's
29
+ `test` got Playwright's unwrapped runner back, so a `request.newContext()`
30
+ call inside its `beforeEach` rode the running test's session proxy and
31
+ was credited as test traffic. `extend` now returns a runner whose hooks
32
+ are tracked the same way.
33
+
3
34
  ## 0.13.2
4
35
 
5
36
  - **API tests are witnessed: the Playwright APIRequestContext now rides the
package/README.md CHANGED
@@ -4,6 +4,8 @@ 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.
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.
7
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.
8
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.
9
11
  **0.13.0:** React Router pages become first-class proof targets. `@gate-forge/pack-react-router` reads JSX and object route trees into `ui.page` resources, and each plane-resolved page carries two promises — `page:loads` and `page:data-ok` — graded from settled, route-matched witnessed visits (a page's API call counts only when its response BODY completed; a `net::ERR_ABORTED` cancel settles only when the same method and URL completed in the same visit). The engine's post-suite referee sweep visits the pages no test proved, with seeded `pages.params`; a failed page-observation flush never fails the app's own passing test. Page paths honor a code-read router `basename` plus the optional `pages.basePath`, and a relative route with no parent to place it under is refused (`PAGE_ROUTE_UNRESOLVED`) instead of silently joined. `gateforge adopt --family pages` records pre-existing page debt for already-adopted repositories (preview by default, one atomic receipt write, permanent marker, shrink via `baseline update --family-pages`); a 401 on a page whose audience has no login counts as the expected not-logged-in answer; page promises report honest causes and honor owner waivers; and `gateforge init` now asks for `pages.audiences` plane declarations.
@@ -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.2 \
28
- @gate-forge/pack-playwright@0.13.2 \
29
- @gate-forge/pack-http@0.13.2 \
30
- @gate-forge/pack-fastapi@0.13.2 \
31
- @gate-forge/pack-sqlalchemy@0.13.2
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.2`, 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.2.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.2",
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.2",
37
- "@gate-forge/http-contract": "^0.13.2",
38
- "@gate-forge/pack-fastapi": "^0.13.2",
39
- "@gate-forge/pack-alembic": "^0.13.2",
40
- "@gate-forge/pack-http": "^0.13.2",
41
- "@gate-forge/pack-react-router": "^0.13.2",
42
- "@gate-forge/pack-playwright": "^0.13.2",
43
- "@gate-forge/pack-sqlalchemy": "^0.13.2",
44
- "@gate-forge/pack-task": "^0.13.2",
45
- "@gate-forge/plugin-protocol": "^0.13.2",
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
  },