@gate-forge/cli 0.13.0 → 0.13.1
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 +62 -0
- package/README.md +1 -0
- package/dist/commands/init.js +1 -1
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/test-gates.d.ts.map +1 -1
- package/dist/commands/test-gates.js +12 -1
- package/dist/commands/test-gates.js.map +1 -1
- package/guides/CONNECT-YOUR-PROJECT.md +4 -1
- package/guides/QUICKSTART.md +7 -7
- package/guides/REFERENCE.md +24 -0
- package/package.json +11 -11
|
@@ -429,7 +429,10 @@ onto `@gate-forge/pack-playwright/fixture` is what lets those existing
|
|
|
429
429
|
journeys prove their page visits; keep their route assertions and test bodies.
|
|
430
430
|
The test channel (`observed`) is primary. After the tests, Gateforge's own
|
|
431
431
|
referee visits only page obligations without a clean test record (`swept`).
|
|
432
|
-
Both channels use the same grader.
|
|
432
|
+
Both channels use the same grader. An audience with a `session:` file needs
|
|
433
|
+
one the suite does not consume: a rotating refresh token turns a consumed
|
|
434
|
+
session into `PAGE_AUDIENCE_SESSION_INVALID` sweep refusals — mint a
|
|
435
|
+
sweep-only session file.
|
|
433
436
|
|
|
434
437
|
Declare the router, login route, audience guard, error markers and seeded
|
|
435
438
|
values for dynamic paths in `.gateforge.yml`:
|
package/guides/QUICKSTART.md
CHANGED
|
@@ -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.
|
|
28
|
-
@gate-forge/pack-playwright@0.13.
|
|
29
|
-
@gate-forge/pack-http@0.13.
|
|
30
|
-
@gate-forge/pack-fastapi@0.13.
|
|
31
|
-
@gate-forge/pack-sqlalchemy@0.13.
|
|
27
|
+
@gate-forge/cli@0.13.1 \
|
|
28
|
+
@gate-forge/pack-playwright@0.13.1 \
|
|
29
|
+
@gate-forge/pack-http@0.13.1 \
|
|
30
|
+
@gate-forge/pack-fastapi@0.13.1 \
|
|
31
|
+
@gate-forge/pack-sqlalchemy@0.13.1
|
|
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.
|
|
52
|
+
**If not:** align every direct `@gate-forge/*` package to `0.13.1`, then install again. Do not work around the compatibility error.
|
|
53
53
|
|
|
54
54
|
## 2. Pick a goal
|
|
55
55
|
|
|
@@ -484,7 +484,7 @@ the registry. To gate a release that is not on the registry yet (a local
|
|
|
484
484
|
regenerate:
|
|
485
485
|
|
|
486
486
|
```sh
|
|
487
|
-
GATEFORGE_CI_ENGINE_SOURCE=vendor/gate-forge-cli-0.13.
|
|
487
|
+
GATEFORGE_CI_ENGINE_SOURCE=vendor/gate-forge-cli-0.13.1.tgz \
|
|
488
488
|
gateforge enforce --ci github
|
|
489
489
|
```
|
|
490
490
|
|
package/guides/REFERENCE.md
CHANGED
|
@@ -1218,6 +1218,30 @@ controller-held — derived from the audience declaration, registered with
|
|
|
1218
1218
|
the witness, never supplied by the suite — so both proof channels grade it
|
|
1219
1219
|
identically.
|
|
1220
1220
|
|
|
1221
|
+
A page may legitimately keep a connection open forever: a long poll, a
|
|
1222
|
+
WebSocket, or a server-sent-events stream. Declare those path prefixes
|
|
1223
|
+
under `pages.liveChannels` (each starting with `/`) and both channels
|
|
1224
|
+
treat a same-origin request under a declared prefix — plus any WebSocket
|
|
1225
|
+
upgrade on the app host and any `text/event-stream` response, as protocol
|
|
1226
|
+
facts — as a LIVE CHANNEL: it never counts as app data evidence, never
|
|
1227
|
+
holds the visit's settle wait, and never refuses the page by itself; the
|
|
1228
|
+
visit payload lists what it saw under `liveChannels` (count + paths).
|
|
1229
|
+
Nothing is guessed from names or traffic: an undeclared long poll is still
|
|
1230
|
+
an unfinished app data request and refuses the page with
|
|
1231
|
+
`PAGE_API_UNSETTLED` once the settle budget expires. Like the rest of the
|
|
1232
|
+
page configuration, the prefixes are controller-held and registered with
|
|
1233
|
+
the witness, so both proof channels apply the same rule.
|
|
1234
|
+
|
|
1235
|
+
A rejected audience session stops that audience's sweep. When an audience
|
|
1236
|
+
WITH a session lands on one of its declared login routes on the FIRST
|
|
1237
|
+
visited page, that page is graded as today, and every remaining page of
|
|
1238
|
+
the same audience is refused WITHOUT visiting, with
|
|
1239
|
+
`PAGE_AUDIENCE_SESSION_INVALID` — the records still issue, and the sweep
|
|
1240
|
+
payload says each page was not visited and why. Session-less audiences are
|
|
1241
|
+
unaffected. The usual cause is a rotating refresh token: the suite's run
|
|
1242
|
+
consumed the session a storage-state file carried, so mint a session file
|
|
1243
|
+
the suite does not consume.
|
|
1244
|
+
|
|
1221
1245
|
Per test, only a page's LATEST observation (`observationSequence`) counts.
|
|
1222
1246
|
An early clean visit cannot hide a later refusal by the same test, and
|
|
1223
1247
|
another passing test's latest clean visit still proves the page. A missing
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gate-forge/cli",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.1",
|
|
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.
|
|
37
|
-
"@gate-forge/http-contract": "^0.13.
|
|
38
|
-
"@gate-forge/pack-fastapi": "^0.13.
|
|
39
|
-
"@gate-forge/pack-alembic": "^0.13.
|
|
40
|
-
"@gate-forge/pack-http": "^0.13.
|
|
41
|
-
"@gate-forge/pack-react-router": "^0.13.
|
|
42
|
-
"@gate-forge/pack-playwright": "^0.13.
|
|
43
|
-
"@gate-forge/pack-sqlalchemy": "^0.13.
|
|
44
|
-
"@gate-forge/pack-task": "^0.13.
|
|
45
|
-
"@gate-forge/plugin-protocol": "^0.13.
|
|
36
|
+
"@gate-forge/core": "^0.13.1",
|
|
37
|
+
"@gate-forge/http-contract": "^0.13.1",
|
|
38
|
+
"@gate-forge/pack-fastapi": "^0.13.1",
|
|
39
|
+
"@gate-forge/pack-alembic": "^0.13.1",
|
|
40
|
+
"@gate-forge/pack-http": "^0.13.1",
|
|
41
|
+
"@gate-forge/pack-react-router": "^0.13.1",
|
|
42
|
+
"@gate-forge/pack-playwright": "^0.13.1",
|
|
43
|
+
"@gate-forge/pack-sqlalchemy": "^0.13.1",
|
|
44
|
+
"@gate-forge/pack-task": "^0.13.1",
|
|
45
|
+
"@gate-forge/plugin-protocol": "^0.13.1",
|
|
46
46
|
"picomatch": "^4.0.7",
|
|
47
47
|
"yaml": "^2.8.1"
|
|
48
48
|
},
|