@gate-forge/cli 0.13.6 → 0.13.7

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,34 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.13.7
4
+
5
+ - **pack-fastapi: a once-called registry function now orders its
6
+ includes.** 0.13.6 deliberately left registry-function includes
7
+ (`register_all_routers(app)` shapes) without `registration` — the
8
+ include executes at function-call time, so no static position seemed
9
+ provable. Real apps mount every router through such a function, which
10
+ made registration-order overlap resolution dead code for them (0 of
11
+ 782 endpoints carried `registration` on a real consumer). When the
12
+ call site is provable in full — the function is a plain module-level
13
+ `def` whose include target is its own parameter, called EXACTLY once
14
+ across the scanned set, by a top-level expression statement of the
15
+ module that owns the `FastAPI()` argument — the expansion now joins
16
+ that module's statement order at the call statement, and each
17
+ function-body TOP-LEVEL `include_router` statement carries the
18
+ flattened order like a written include (statement order inside the
19
+ function breaks ties between same-position expansions). The order
20
+ sequence stays the real registration sequence: the app module's
21
+ module-level statements in source order with the call expanded in
22
+ place, so an include written after the call and routes on the app
23
+ itself order after the whole expansion. Everything else fails closed,
24
+ exactly as before: a second call site anywhere, a call nested in a
25
+ statement or inside another expression, a call from a module other
26
+ than the app owner's, a chained helper hop, and an include nested in
27
+ `if`/`elif`/`else`/`for`/`while`/`try`/`with`/`match` mount without
28
+ `registration` — order-uncertain blocks are skipped, and the relative
29
+ order of the provable routes stays correct (the resolver never
30
+ resolves an overlap that involves a candidate without registration).
31
+
3
32
  ## 0.13.6
4
33
 
5
34
  - **A literal-vs-parameter route overlap resolves by the framework's own
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.7:** Registration order reaches apps that mount every router through one registration function (`register_all_routers(app)`): when the function is a plain module-level `def` called exactly once at the app module's top level, its top-level `include_router` calls are ordered in place, so literal-vs-parameter overlaps such as `/items/export` vs `/items/{item_id}` resolve there too. Conditional or looped includes, repeated or nested calls and foreign call sites stay unordered (ambiguous).
7
8
  **0.13.6:** A FastAPI literal-vs-parameter route overlap (`/items/export` vs `/items/{item_id}`) is attributed by registration order, as Starlette dispatches it, whenever pack-fastapi can place every matching route statically (otherwise it stays ambiguous). `runtime.yml expectTimeoutSeconds` sets the supervised run's `expect` timeout. A red `--result-only` run keeps Playwright's failure artifacts in `<state dir>/last-failures/`. A blocked transport claim names its own blocked call instead of an unrelated exchange from the same test.
8
9
  **0.13.5:** Supervised runs honour a project's declared test timeout: the timeout Playwright resolves for each project (read from `playwright test --list` JSON, never by loading the config) becomes that project's timeout in the generated config, with 60 s as the floor.
9
10
  **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.
@@ -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.6 \
28
- @gate-forge/pack-playwright@0.13.6 \
29
- @gate-forge/pack-http@0.13.6 \
30
- @gate-forge/pack-fastapi@0.13.6 \
31
- @gate-forge/pack-sqlalchemy@0.13.6
27
+ @gate-forge/cli@0.13.7 \
28
+ @gate-forge/pack-playwright@0.13.7 \
29
+ @gate-forge/pack-http@0.13.7 \
30
+ @gate-forge/pack-fastapi@0.13.7 \
31
+ @gate-forge/pack-sqlalchemy@0.13.7
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.6`, then install again. Do not work around the compatibility error.
52
+ **If not:** align every direct `@gate-forge/*` package to `0.13.7`, 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.6.tgz \
504
+ GATEFORGE_CI_ENGINE_SOURCE=vendor/gate-forge-cli-0.13.7.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.6",
3
+ "version": "0.13.7",
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.6",
37
- "@gate-forge/http-contract": "^0.13.6",
38
- "@gate-forge/pack-fastapi": "^0.13.6",
39
- "@gate-forge/pack-alembic": "^0.13.6",
40
- "@gate-forge/pack-http": "^0.13.6",
41
- "@gate-forge/pack-react-router": "^0.13.6",
42
- "@gate-forge/pack-playwright": "^0.13.6",
43
- "@gate-forge/pack-sqlalchemy": "^0.13.6",
44
- "@gate-forge/pack-task": "^0.13.6",
45
- "@gate-forge/plugin-protocol": "^0.13.6",
36
+ "@gate-forge/core": "^0.13.7",
37
+ "@gate-forge/http-contract": "^0.13.7",
38
+ "@gate-forge/pack-fastapi": "^0.13.7",
39
+ "@gate-forge/pack-alembic": "^0.13.7",
40
+ "@gate-forge/pack-http": "^0.13.7",
41
+ "@gate-forge/pack-react-router": "^0.13.7",
42
+ "@gate-forge/pack-playwright": "^0.13.7",
43
+ "@gate-forge/pack-sqlalchemy": "^0.13.7",
44
+ "@gate-forge/pack-task": "^0.13.7",
45
+ "@gate-forge/plugin-protocol": "^0.13.7",
46
46
  "picomatch": "^4.0.7",
47
47
  "yaml": "^2.8.1"
48
48
  },