@gate-forge/cli 0.11.1 → 0.13.0
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 +198 -0
- package/README.md +10 -1
- package/dist/adopted-baseline.d.ts.map +1 -1
- package/dist/adopted-baseline.js +13 -0
- package/dist/adopted-baseline.js.map +1 -1
- package/dist/args.d.ts.map +1 -1
- package/dist/args.js +1 -0
- package/dist/args.js.map +1 -1
- package/dist/business-rules.d.ts +223 -0
- package/dist/business-rules.d.ts.map +1 -0
- package/dist/business-rules.js +383 -0
- package/dist/business-rules.js.map +1 -0
- package/dist/cli.d.ts +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +5 -2
- package/dist/cli.js.map +1 -1
- package/dist/commands/adopt.d.ts +5 -3
- package/dist/commands/adopt.d.ts.map +1 -1
- package/dist/commands/adopt.js +338 -5
- package/dist/commands/adopt.js.map +1 -1
- package/dist/commands/baseline.d.ts.map +1 -1
- package/dist/commands/baseline.js +60 -24
- package/dist/commands/baseline.js.map +1 -1
- package/dist/commands/check.d.ts.map +1 -1
- package/dist/commands/check.js +96 -18
- package/dist/commands/check.js.map +1 -1
- package/dist/commands/enforcement.d.ts.map +1 -1
- package/dist/commands/enforcement.js +5 -11
- package/dist/commands/enforcement.js.map +1 -1
- package/dist/commands/explain.d.ts.map +1 -1
- package/dist/commands/explain.js +67 -2
- package/dist/commands/explain.js.map +1 -1
- package/dist/commands/init.d.ts +3 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +96 -4
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/next.d.ts.map +1 -1
- package/dist/commands/next.js +96 -5
- package/dist/commands/next.js.map +1 -1
- package/dist/commands/pre-commit.d.ts.map +1 -1
- package/dist/commands/pre-commit.js +5 -8
- package/dist/commands/pre-commit.js.map +1 -1
- package/dist/commands/test-gates.d.ts.map +1 -1
- package/dist/commands/test-gates.js +245 -12
- package/dist/commands/test-gates.js.map +1 -1
- package/dist/commands/tests.d.ts +1 -1
- package/dist/commands/tests.d.ts.map +1 -1
- package/dist/commands/tests.js +101 -11
- package/dist/commands/tests.js.map +1 -1
- package/dist/detector-trust.d.ts.map +1 -1
- package/dist/detector-trust.js +2 -0
- package/dist/detector-trust.js.map +1 -1
- package/dist/evaluate.d.ts +16 -0
- package/dist/evaluate.d.ts.map +1 -1
- package/dist/evaluate.js +26 -2
- package/dist/evaluate.js.map +1 -1
- package/dist/execution.d.ts +6 -5
- package/dist/execution.d.ts.map +1 -1
- package/dist/execution.js +26 -2
- package/dist/execution.js.map +1 -1
- package/dist/input-snapshot.d.ts.map +1 -1
- package/dist/input-snapshot.js +17 -7
- package/dist/input-snapshot.js.map +1 -1
- package/dist/mapping.d.ts +10 -1
- package/dist/mapping.d.ts.map +1 -1
- package/dist/mapping.js +5 -0
- package/dist/mapping.js.map +1 -1
- package/dist/page-obligations.d.ts +21 -0
- package/dist/page-obligations.d.ts.map +1 -0
- package/dist/page-obligations.js +123 -0
- package/dist/page-obligations.js.map +1 -0
- package/dist/pipeline.d.ts +9 -1
- package/dist/pipeline.d.ts.map +1 -1
- package/dist/pipeline.js +10 -0
- package/dist/pipeline.js.map +1 -1
- package/dist/route-plane-proposals.d.ts.map +1 -1
- package/dist/route-plane-proposals.js +1 -0
- package/dist/route-plane-proposals.js.map +1 -1
- package/dist/staged-candidate.d.ts +1 -36
- package/dist/staged-candidate.d.ts.map +1 -1
- package/dist/staged-candidate.js +0 -47
- package/dist/staged-candidate.js.map +1 -1
- package/guides/CONNECT-YOUR-PROJECT.md +38 -0
- package/guides/QUICKSTART.md +46 -7
- package/guides/REFERENCE.md +244 -3
- package/package.json +11 -10
package/dist/staged-candidate.js
CHANGED
|
@@ -39,7 +39,6 @@ import { join, resolve } from 'node:path';
|
|
|
39
39
|
import { parse as parseYaml } from 'yaml';
|
|
40
40
|
import { CAUSE_NEXT_ACTIONS, GateforgeConfigSchema, normalizeChangedFiles, RuntimeConfigSchema, } from '@gate-forge/core';
|
|
41
41
|
import { UsageError } from './errors.js';
|
|
42
|
-
import { resolveRepoPath } from './repo-path.js';
|
|
43
42
|
/** The verify argument a generated hook accepts to prove activation. */
|
|
44
43
|
export const HOOK_VERIFY_ARG = '--gateforge-verify';
|
|
45
44
|
/** Marker lines delimiting the gateforge-managed block of a hook file. */
|
|
@@ -473,52 +472,6 @@ export function materializeStagedCandidate(cwd, env, frozen) {
|
|
|
473
472
|
frozen.checkoutDir = checkoutDir;
|
|
474
473
|
return checkoutDir;
|
|
475
474
|
}
|
|
476
|
-
/**
|
|
477
|
-
* Mirrors the WORKTREE's optional config directories into the
|
|
478
|
-
* materialized candidate checkout so every surface that digests (or
|
|
479
|
-
* snapshots) the staged checkout sees ONE repository shape.
|
|
480
|
-
*
|
|
481
|
-
* Empty directories are invisible to a Git tree: `checkout-index`
|
|
482
|
-
* cannot create `.gateforge/adapters/` or `.gateforge/waivers/` when
|
|
483
|
-
* they carry no tracked file — which is exactly what `gateforge init`
|
|
484
|
-
* leaves behind. Yet both the trusted-policy digest entry list
|
|
485
|
-
* (`<dir>/(no .mjs adapters)` vs `<dir>/(missing adapters dir)`) and
|
|
486
|
-
* the input snapshot distinguish an EMPTY optional config directory
|
|
487
|
-
* from a MISSING one. A surface that digests the checkout WITHOUT this
|
|
488
|
-
* mirroring computes a different digest than the staged commit gate,
|
|
489
|
-
* so a freshly written pin is rejected and re-pinning never converges.
|
|
490
|
-
* The mirroring is therefore part of materialization's contract: the
|
|
491
|
-
* bytes stay exactly the staged tree, and only the presence of the
|
|
492
|
-
* marker-relevant EMPTY directories is mirrored.
|
|
493
|
-
*
|
|
494
|
-
* Args:
|
|
495
|
-
* cwd: absolute repository root the worktree lives in.
|
|
496
|
-
* checkoutDir: absolute path of the materialized candidate checkout.
|
|
497
|
-
* config: the config loaded FROM the checkout (its `adapters` /
|
|
498
|
-
* `waivers` are repo-relative and identical to the worktree's).
|
|
499
|
-
* options.fromStagedIndex: true when the candidate is the frozen
|
|
500
|
-
* STAGED index, whose owner-visible shape is the worktree's. False
|
|
501
|
-
* for a candidate COMMIT tree, where the worktree's untracked
|
|
502
|
-
* empty directories are not part of the revision under test and
|
|
503
|
-
* must never leak into its digest.
|
|
504
|
-
*
|
|
505
|
-
* Returns:
|
|
506
|
-
* string[]: the repo-relative directories actually created.
|
|
507
|
-
*/
|
|
508
|
-
export function mirrorEmptyConfigDirs(cwd, checkoutDir, config, options) {
|
|
509
|
-
if (!options.fromStagedIndex)
|
|
510
|
-
return [];
|
|
511
|
-
const created = [];
|
|
512
|
-
for (const dir of [config.adapters, config.waivers]) {
|
|
513
|
-
const worktreePath = resolveRepoPath(cwd, dir);
|
|
514
|
-
const checkoutPath = resolveRepoPath(checkoutDir, dir);
|
|
515
|
-
if (existsSync(worktreePath) && !existsSync(checkoutPath)) {
|
|
516
|
-
mkdirSync(checkoutPath, { recursive: true });
|
|
517
|
-
created.push(dir);
|
|
518
|
-
}
|
|
519
|
-
}
|
|
520
|
-
return created;
|
|
521
|
-
}
|
|
522
475
|
/**
|
|
523
476
|
* Re-checks the candidate immediately before authorizing (plan Phase 5
|
|
524
477
|
* item 4): recomputes the index tree from a FRESH copy of the user's
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"staged-candidate.js","sourceRoot":"","sources":["../src/staged-candidate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAClI,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,KAAK,IAA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AAE,CAAC,CAAC,QAAQ,CAAC,mCAAmC,CAAC,EAAE,CAAC;QACtE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,QAAQ,qDAAqD,EAAE,CAAC;IACvG,CAAC;IACD,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,QAAQ,4DAA4D,EAAE,CAAC;AAC7G,CAAC"}
|
|
@@ -421,6 +421,44 @@ When the origins disagree, the witness's zero-traffic note now names both —
|
|
|
421
421
|
the origin the page really requested and the one Gateforge routes — instead of
|
|
422
422
|
guessing at the fixture page alone.
|
|
423
423
|
|
|
424
|
+
### 6c. Let existing journeys prove pages
|
|
425
|
+
|
|
426
|
+
The React Router reader creates `page:loads` and `page:data-ok` promises from
|
|
427
|
+
the application's route declarations. Rebasing the shared `test` object in 6a
|
|
428
|
+
onto `@gate-forge/pack-playwright/fixture` is what lets those existing
|
|
429
|
+
journeys prove their page visits; keep their route assertions and test bodies.
|
|
430
|
+
The test channel (`observed`) is primary. After the tests, Gateforge's own
|
|
431
|
+
referee visits only page obligations without a clean test record (`swept`).
|
|
432
|
+
Both channels use the same grader.
|
|
433
|
+
|
|
434
|
+
Declare the router, login route, audience guard, error markers and seeded
|
|
435
|
+
values for dynamic paths in `.gateforge.yml`:
|
|
436
|
+
|
|
437
|
+
```yaml
|
|
438
|
+
pages:
|
|
439
|
+
router: react-router
|
|
440
|
+
audiences:
|
|
441
|
+
- name: tenant
|
|
442
|
+
loginRoute: /login
|
|
443
|
+
guard: ProtectedRoute
|
|
444
|
+
errorMarkers: ['Something went wrong']
|
|
445
|
+
params:
|
|
446
|
+
'/orders/:id': { id: 'seeded-order-id' }
|
|
447
|
+
exclude: []
|
|
448
|
+
sweep: true
|
|
449
|
+
```
|
|
450
|
+
|
|
451
|
+
Use seeded IDs for `pages.params`; if one was not configured, Gateforge may
|
|
452
|
+
bind a unique engine-observed create ID only when it matches the route's
|
|
453
|
+
resource. Ambiguous or unmatched IDs produce `PAGE_PARAM_UNBOUND` and are
|
|
454
|
+
never guessed. Setting `pages.sweep: false` keeps gaps unproven instead of visiting
|
|
455
|
+
them. Tests and imported helpers must not mutate browser APIs to manufacture
|
|
456
|
+
page state: `page.evaluate`/`setContent`, `addInitScript`, `page.route`,
|
|
457
|
+
`context.route`, `route.fulfill`, and direct CDP sessions trigger
|
|
458
|
+
`PAGE_OBSERVATION_TAMPER_RISK`; remove those edits rather than treating the
|
|
459
|
+
page as proved. See [Pages](REFERENCE.md#pages) for the report and
|
|
460
|
+
`explain`/`next` diagnostics.
|
|
461
|
+
|
|
424
462
|
## 7. First run
|
|
425
463
|
|
|
426
464
|
```bash
|
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.
|
|
28
|
-
@gate-forge/pack-playwright@0.
|
|
29
|
-
@gate-forge/pack-http@0.
|
|
30
|
-
@gate-forge/pack-fastapi@0.
|
|
31
|
-
@gate-forge/pack-sqlalchemy@0.
|
|
27
|
+
@gate-forge/cli@0.13.0 \
|
|
28
|
+
@gate-forge/pack-playwright@0.13.0 \
|
|
29
|
+
@gate-forge/pack-http@0.13.0 \
|
|
30
|
+
@gate-forge/pack-fastapi@0.13.0 \
|
|
31
|
+
@gate-forge/pack-sqlalchemy@0.13.0
|
|
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.
|
|
52
|
+
**If not:** align every direct `@gate-forge/*` package to `0.13.0`, then install again. Do not work around the compatibility error.
|
|
53
53
|
|
|
54
54
|
## 2. Pick a goal
|
|
55
55
|
|
|
@@ -216,6 +216,45 @@ gateforge tests mark \
|
|
|
216
216
|
|
|
217
217
|
**If not:** rerun discovery, copy the exact test key and obligation ID, and resolve any mapping contradiction. Do not use a declaration to silence a blocker.
|
|
218
218
|
|
|
219
|
+
### Frontend page promises
|
|
220
|
+
|
|
221
|
+
With the React Router reader configured, every detected page adds `page:loads`
|
|
222
|
+
and `page:data-ok` promises. Existing tests can prove a route by using
|
|
223
|
+
Gateforge's Playwright fixture; after the suite, the referee visits only pages
|
|
224
|
+
without a clean test record. Add seeded IDs for dynamic pages and keep the
|
|
225
|
+
sweep enabled:
|
|
226
|
+
|
|
227
|
+
```yaml
|
|
228
|
+
pages:
|
|
229
|
+
router: react-router
|
|
230
|
+
audiences:
|
|
231
|
+
- name: tenant
|
|
232
|
+
loginRoute: /login
|
|
233
|
+
guard: ProtectedRoute
|
|
234
|
+
params:
|
|
235
|
+
'/orders/:id': { id: 'seeded-order-id' }
|
|
236
|
+
sweep: true
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
An unbound parameter produces `PAGE_PARAM_UNBOUND` and stays unproven; no
|
|
240
|
+
identifier is guessed. `pages.sweep: false` leaves pages no test opens as
|
|
241
|
+
unproven. See [Pages in the reference](REFERENCE.md#pages) and
|
|
242
|
+
[Connect your project](CONNECT-YOUR-PROJECT.md) for fixture migration and
|
|
243
|
+
tamper restrictions.
|
|
244
|
+
|
|
245
|
+
### Write your rules down
|
|
246
|
+
|
|
247
|
+
Product statements the owner wants proved — "an invoice can only be
|
|
248
|
+
cancelled while it is unpaid" — live in the `rules:` section of
|
|
249
|
+
`.gateforge/classification-policy.yml` (`gateforge init --rules` adds a
|
|
250
|
+
commented example). Each rule names the test type that must prove it
|
|
251
|
+
(`e2e` by default), and each case is mapped like a claim above, with
|
|
252
|
+
`gateforge tests mark --rule <ruleId>/<caseId> …`. A mapping alone is a
|
|
253
|
+
declaration: the case is satisfied only when its mapped test ran in a
|
|
254
|
+
sealed supervised run, passed, and delivered the type's proof. See
|
|
255
|
+
[Business rules](REFERENCE.md#business-rules-the-rules-section) in the
|
|
256
|
+
REFERENCE for the type table and the honest scope of the proof.
|
|
257
|
+
|
|
219
258
|
## 6. Prepare a verifier key and the app
|
|
220
259
|
|
|
221
260
|
Keep the key outside the repository and run-state folder:
|
|
@@ -445,7 +484,7 @@ the registry. To gate a release that is not on the registry yet (a local
|
|
|
445
484
|
regenerate:
|
|
446
485
|
|
|
447
486
|
```sh
|
|
448
|
-
GATEFORGE_CI_ENGINE_SOURCE=vendor/gate-forge-cli-0.
|
|
487
|
+
GATEFORGE_CI_ENGINE_SOURCE=vendor/gate-forge-cli-0.13.0.tgz \
|
|
449
488
|
gateforge enforce --ci github
|
|
450
489
|
```
|
|
451
490
|
|
package/guides/REFERENCE.md
CHANGED
|
@@ -22,6 +22,7 @@ first commands; the guides cover the walks:
|
|
|
22
22
|
- [Enforcement](#enforcement)
|
|
23
23
|
- [Contract capabilities](#contract-capabilities)
|
|
24
24
|
- [Configuration](#configuration)
|
|
25
|
+
- [Pages](#pages)
|
|
25
26
|
- [Classification policy (`.gateforge/classification-policy.yml`)](#classification-policy-gateforgeclassification-policyyml)
|
|
26
27
|
- [Plugin invocation](#plugin-invocation)
|
|
27
28
|
- [Endpoint plane rules (the `planes:` section)](#endpoint-plane-rules-the-planes-section)
|
|
@@ -71,8 +72,8 @@ first commands; the guides cover the walks:
|
|
|
71
72
|
| `gateforge enforcement doctor [--json]` | Reports verified enforcement `level` (0–3), hook activation, wired CI templates, and read-only GitHub/GitLab branch-protection results; missing credentials or uncertain responses remain `not verified`. A local hook never counts as server protection. Its `engine:` line reports the install provenance npm's own metadata proves: a tarball/directory install (read from `node_modules/.package-lock.json`, or the manifest's `_resolved`) is named as such instead of claiming the registry, and an install with no readable metadata is reported as unproven rather than as an all-clear. The receipt's `engine.source` is receipt-bound and keeps its meaning. Diagnostic only: exit 0 whenever it runs. | 0/2 |
|
|
72
73
|
| `gateforge enforcement pin --pin-file <path> [--confirm]` | Writes the owner-approved policy digest of the STAGED candidate into an env file OUTSIDE the repository. The flag is `--pin-file`, NOT `--env-file`: Node itself consumes `--env-file <path>` (and `--env-file-if-exists <path>`) anywhere in argv — it reads the file and exits 9 on a missing one, so the CLI would never run. The digest is the one the commit gate computes: the index is frozen and materialized exactly as `check --staged` does, and the entries are hashed by the same function. It refuses when a policy input is not fully staged, naming the files. Preview by default — the line it would write, nothing written. `--confirm` replaces exactly the `GATEFORGE_APPROVED_POLICY_DIGEST=<hex>` line, drops a duplicate assignment, leaves every other line untouched, never prints another line of the file, and writes the file mode `0600`. A path inside the repository is refused: the pin must live outside the candidate, because a candidate-controlled file cannot approve policy. A symlink or a non-regular file is refused too (fail closed). | 0/2 |
|
|
73
74
|
| `gateforge enforce [--ci github\|gitlab]` | Add blocking wiring to an initialized repository. The provider defaults to GitLab unless GitHub is the only detected CI provider; the explicit flag selects GitHub Actions or GitLab CI. Appending to an EXISTING `.pre-commit-config.yaml` is announced as an action on one line, naming the file as the repository's own and printing the exact way back (`git restore -- .pre-commit-config.yaml` for a tracked file; for an untracked one, which has nothing to restore, the line says to delete the appended entry). The generated GitHub workflow installs `@gate-forge/cli@<version>` from the registry unless `GATEFORGE_CI_ENGINE_SOURCE` is set when the generator runs: it then installs that one npm specifier (a `.tgz` path, a directory, or any specifier) through the step environment, for a release that is not on the registry. Unset the variable and rerun for the registry install. | 0/2 |
|
|
74
|
-
| `gateforge adopt` | Adopt an EXISTING repository: run it once, after `init`, on a project that already has code and therefore already has findings. Records today's blocking findings (pin-#2 obligation fingerprints, blocking entries, and the classification-blocked resource identities) into `.gateforge/baselines/obligations.json`, sanctioned by a dated, count-annotated receipt `.gateforge/baselines/adoption.json` — without that receipt a baseline forgives nothing — then applies the blocking wiring through the same idempotent path as `init --blocking`. It is the ONE sanctioned bulk-add and only once per repository: a second `adopt` is a no-op success. The recorded set is shrink-only (`gateforge baseline update` shrinks it) and never forgives new work. With `enforcement.strictE2E: true`, a baselined E2E obligation is not proof and blocks with `ENFORCEMENT_UNTRUSTED` again as soon as a change touches it. `adopt --help` prints this contract. | 0/2 |
|
|
75
|
-
| `gateforge baseline update <fp...>` | Shrink the baseline to a strict subset (invariant 4). | 0/2 |
|
|
75
|
+
| `gateforge adopt` | Adopt an EXISTING repository: run it once, after `init`, on a project that already has code and therefore already has findings. Records today's blocking findings (pin-#2 obligation fingerprints, blocking entries, and the classification-blocked resource identities) into `.gateforge/baselines/obligations.json`, sanctioned by a dated, count-annotated receipt `.gateforge/baselines/adoption.json` — without that receipt a baseline forgives nothing — then applies the blocking wiring through the same idempotent path as `init --blocking`. It is the ONE sanctioned bulk-add and only once per repository: a second `adopt` is a no-op success. The recorded set is shrink-only (`gateforge baseline update` shrinks it) and never forgives new work. With `enforcement.strictE2E: true`, a baselined E2E obligation is not proof and blocks with `ENFORCEMENT_UNTRUSTED` again as soon as a change touches it. `adopt --help` prints this contract. `adopt --family pages [--confirm]` revises an ALREADY-adopted repository for the 0.13 pages rollout: preview by default (nothing written), `--confirm` records a dated, commit-referenced `families.pages` marker in the existing receipt with ONE atomic write — every page obligation discovered at that moment (proven pages included), with only the then-missing/unproven page fingerprints marked forgiven — and a page obligation the ORIGINAL receipt already indexed is recorded, never re-adopted; the baseline document is untouched, so no crash can expose unrecorded forgiveness. The marker is permanent: a repeat records nothing (new pages are new work to prove), the family debt shrinks via `baseline update --family-pages` while the marker is retained, and a page whose audience or data plane is unresolved refuses the migration. Because the receipt is part of the approved policy revision, a confirmed migration changes the trusted-policy digest — strict gates stay untrusted until the owner repins outside the candidate. A plain `adopt` on a repo with `pages:` configured records the family marker in the receipt it already writes with an EMPTY `forgiven` set — the page debt rides the baseline bulk-add under the ordinary shrink contract (one forgiveness store), so the family is then already adopted. | 0/2 |
|
|
76
|
+
| `gateforge baseline update <fp...>` | Shrink the baseline to a strict subset (invariant 4). `--classification-blocked <resourceId>...` shrinks the adopted classification layer the same way (keep-semantics; `=` keeps none). `--family-pages <fingerprint>...` shrinks the receipt's `pages` family `forgiven` list the same way (`--family-pages=` keeps none): the set is shrink-only, unknown fingerprints fail closed, and the family marker itself (dates, commit, every recorded page obligation) is retained. | 0/2 |
|
|
76
77
|
| `gateforge baseline diff <before> <after>` | Compare adopted obligations by ID without printing fingerprints. | 0/2 |
|
|
77
78
|
|
|
78
79
|
On a repo that already has Gateforge files, `init` reports only what THAT run did: it keeps an existing `.gateforge.yml` and says so instead of claiming to write a preset, and the `undo:` lines it prints name every path the run created (`rm -rf`) and every file it changed in place (`git restore --`, for an appended `.gitlab-ci.yml` include, an appended `.pre-commit-config.yaml` entry, or an added ignore rule) — so following them can never delete pre-existing config, baselines, waivers, hooks or CI files, and a run that changed nothing prints no undo line at all. A preset that wires no local hook says whether your existing commit hook and/or CI job still decide what blocks your commits.
|
|
@@ -809,6 +810,51 @@ change the owner re-approves, never something a candidate grants itself.
|
|
|
809
810
|
lenient default like every other configuration; declare `strict` in
|
|
810
811
|
`.gateforge.yml` to keep the 0.10.3 treatment.
|
|
811
812
|
|
|
813
|
+
### The pages family (adopting page debt into an already-adopted repo)
|
|
814
|
+
|
|
815
|
+
A repository that adopted BEFORE the 0.13 pages rollout has a receipt with
|
|
816
|
+
no pages family, so newly discovered page debt blocks. The one
|
|
817
|
+
owner-approved exception to the one-bulk-add invariant is a NAMED family
|
|
818
|
+
migration: `gateforge adopt --family pages` previews it (nothing
|
|
819
|
+
written), `gateforge adopt --family pages --confirm` records it. The
|
|
820
|
+
migration is valid ONLY for an already-adopted repository (it never
|
|
821
|
+
seeds a receipt), and it performs ONE atomic write to the EXISTING
|
|
822
|
+
`.gateforge/baselines/adoption.json`: a dated, commit-referenced
|
|
823
|
+
`families.pages` marker that records EVERY page obligation discovered at
|
|
824
|
+
that moment — proven pages included — with only the then-missing/unproven
|
|
825
|
+
page fingerprints marked `forgiven`. The baseline document is never
|
|
826
|
+
touched, so there is no two-file window in which the old receipt could
|
|
827
|
+
forgive fingerprints the new record has not sanctioned; the evaluator
|
|
828
|
+
forgives the family's `forgiven` set from the receipt alone.
|
|
829
|
+
|
|
830
|
+
The marker is permanent: a repeat records nothing, a page route
|
|
831
|
+
discovered after the migration is new work to prove (never re-adopted
|
|
832
|
+
debt), and a page that was already proven at migration time and breaks
|
|
833
|
+
later blocks — it was recorded, not forgiven. The same guard reads the
|
|
834
|
+
EXISTING receipt backwards: a page obligation id the original adoption
|
|
835
|
+
already indexed (an earlier snapshot's plain `adopt` that already knew
|
|
836
|
+
pages, with no family marker) is recorded in the marker but NEVER
|
|
837
|
+
re-adopted — proven there stays proven (a later break blocks), resolved
|
|
838
|
+
stays resolved (a shrink is not undone), and only page obligations the
|
|
839
|
+
original receipt never knew are sanctioned. A receipt that predates page
|
|
840
|
+
indexing carries no page ids, so the genuine first pages rollout is
|
|
841
|
+
unaffected. Family debt shrinks
|
|
842
|
+
through `gateforge baseline update --family-pages <fingerprint>...`
|
|
843
|
+
(`--family-pages=` keeps none) while the marker is retained. Only the
|
|
844
|
+
two page contracts (`page:loads`, `page:data-ok`) of `ui.page` resources
|
|
845
|
+
can enter the family — persistence contracts, classification debt and
|
|
846
|
+
business rules never do — and the migration refuses (exit 2, nothing
|
|
847
|
+
written) while any page's audience or data plane is unresolved, and on a
|
|
848
|
+
repository with no page routes at all. Because the receipt is part of
|
|
849
|
+
the approved policy revision, a confirmed migration changes the
|
|
850
|
+
trusted-policy digest: strict gates stay untrusted until the owner repins
|
|
851
|
+
outside the candidate (the same `git add` + `enforcement pin` flow as any
|
|
852
|
+
policy change). A plain `adopt` on a repository with `pages:` configured
|
|
853
|
+
records the family marker in the receipt it already writes with an EMPTY
|
|
854
|
+
`forgiven` set — the page debt itself rides the baseline bulk-add, so the
|
|
855
|
+
ordinary shrink-only `baseline update` contract governs it and there is
|
|
856
|
+
exactly one forgiveness store; the family is then already adopted.
|
|
857
|
+
|
|
812
858
|
### The owner answers and the generated wiring are owner-pinned
|
|
813
859
|
|
|
814
860
|
The owner-answers document and `.gateforge.yml` are owner-owned
|
|
@@ -819,7 +865,12 @@ bound them, so a candidate could narrow `clientScanRoots` (deleting
|
|
|
819
865
|
obligations) in the same commit and the pin still matched. Their bytes are now
|
|
820
866
|
inside the approved policy digest, and so are the generated `.gateforge/hooks/`
|
|
821
867
|
and `.gateforge/ci/` wiring, for the same reason: deleting the generated hook
|
|
822
|
-
is a policy-revision change, not a way back into adoption mode.
|
|
868
|
+
is a policy-revision change, not a way back into adoption mode. Since 0.13
|
|
869
|
+
the adoption receipt (`.gateforge/baselines/adoption.json`) is pinned too,
|
|
870
|
+
present-only: it carries the adopted family markers and each family's
|
|
871
|
+
`forgiven` fingerprints, which the evaluator forgives from the receipt alone —
|
|
872
|
+
a candidate that edits its own forgiveness cannot approve the edit. A
|
|
873
|
+
pre-adoption repository keeps a byte-identical digest.
|
|
823
874
|
|
|
824
875
|
**Upgrading:** a repository that ships a pack config or the generated gate
|
|
825
876
|
wiring re-pins ONCE, after upgrading —
|
|
@@ -1128,6 +1179,134 @@ Enforcement-relevant sections:
|
|
|
1128
1179
|
changing the list moves the approved revision. See "Developer and CI
|
|
1129
1180
|
tooling is owner-declared" above.
|
|
1130
1181
|
|
|
1182
|
+
## Pages
|
|
1183
|
+
|
|
1184
|
+
Each detected frontend route creates two page promises: `page:loads` and
|
|
1185
|
+
`page:data-ok`. Existing Playwright journeys prove them through the browser
|
|
1186
|
+
fixture (channel `observed`); after the tests, the referee sweeps only pages
|
|
1187
|
+
without a clean observed record (channel `swept`). A clean test visit always
|
|
1188
|
+
takes precedence over the sweep. Both channels use the same route, redirect,
|
|
1189
|
+
crash, error-marker, and API-response grader. Browser API tampering in tests
|
|
1190
|
+
is refused as `PAGE_OBSERVATION_TAMPER_RISK`.
|
|
1191
|
+
|
|
1192
|
+
An API request counts as settled only when its response BODY finished
|
|
1193
|
+
(Playwright `requestfinished`), never at the response headers: a failed or
|
|
1194
|
+
unfinished body refuses both page promises with `PAGE_API_UNSETTLED`.
|
|
1195
|
+
Before grading, each channel waits for in-flight app data requests
|
|
1196
|
+
(fetch/XHR by resource type, plus `/api/` paths) and a quiet window after
|
|
1197
|
+
the last activity, bounded by the shared engine budget — a 500 arriving a
|
|
1198
|
+
second late, or a 200 whose body dies mid-flight, is no longer a clean
|
|
1199
|
+
page. A request the app itself cancels (`net::ERR_ABORTED`) counts as
|
|
1200
|
+
settled only when the same method and URL completed in the same visit; any
|
|
1201
|
+
other failure, or an unretried cancel, refuses the page. Both channels now
|
|
1202
|
+
read completion from the browser's network events, so a response body the
|
|
1203
|
+
app never reads still counts once every declared byte (Content-Length)
|
|
1204
|
+
arrived; an unread body without a declared length stays unsettled. The
|
|
1205
|
+
observed channel keeps Playwright as its request ledger and adds the
|
|
1206
|
+
browser's network events only as a completion signal, correlated per
|
|
1207
|
+
method and URL — a request the network events did not observe is never
|
|
1208
|
+
upgraded. A failed page-observation flush never fails the app's own test:
|
|
1209
|
+
it is logged and the page proof stays missing, and the flush call's
|
|
1210
|
+
timeout derives from the shared engine budget.
|
|
1211
|
+
|
|
1212
|
+
On pages of an audience without a login (no `session:` in its
|
|
1213
|
+
`pages.audiences` declaration), an app data answer of exactly 401 counts as
|
|
1214
|
+
the expected not-logged-in answer and does not refuse `page:data-ok`; 403
|
|
1215
|
+
and every other error status still refuse, and on audiences with a login a
|
|
1216
|
+
401 still refuses. Like the rest of the route table, the flag is
|
|
1217
|
+
controller-held — derived from the audience declaration, registered with
|
|
1218
|
+
the witness, never supplied by the suite — so both proof channels grade it
|
|
1219
|
+
identically.
|
|
1220
|
+
|
|
1221
|
+
Per test, only a page's LATEST observation (`observationSequence`) counts.
|
|
1222
|
+
An early clean visit cannot hide a later refusal by the same test, and
|
|
1223
|
+
another passing test's latest clean visit still proves the page. A missing
|
|
1224
|
+
or malformed sequence never proves, and equal-sequence contradictions fail
|
|
1225
|
+
closed with `PAGE_OBSERVATION_CONFLICT`; the post-suite sweep chooses its
|
|
1226
|
+
gap visits with the same rule.
|
|
1227
|
+
|
|
1228
|
+
Page proof metadata is controller-held: the route table, login routes,
|
|
1229
|
+
error markers, trusted app origins, and static tamper risks are registered
|
|
1230
|
+
by the CLI with the witness on the verifier-authenticated expected-set
|
|
1231
|
+
registration, and `/sessions/page-observer` carries only the session
|
|
1232
|
+
credentials and the debugging port. A run without registered context
|
|
1233
|
+
issues no page proof, and a matched page whose final URL origin is not a
|
|
1234
|
+
trusted app origin is refused with `PAGE_APP_ORIGIN_MISMATCH`. The suite
|
|
1235
|
+
receives only the enablement flag `GATEFORGE_PAGE_OBSERVATION_ENABLED` —
|
|
1236
|
+
it can disable observation, never enable false proof.
|
|
1237
|
+
|
|
1238
|
+
Configure the reader and audience in `.gateforge.yml`:
|
|
1239
|
+
|
|
1240
|
+
```yaml
|
|
1241
|
+
pages:
|
|
1242
|
+
router: react-router
|
|
1243
|
+
audiences:
|
|
1244
|
+
- name: tenant
|
|
1245
|
+
loginRoute: /login
|
|
1246
|
+
guard: TenantGuard
|
|
1247
|
+
plane: tenant
|
|
1248
|
+
errorMarkers: ['Something went wrong']
|
|
1249
|
+
params:
|
|
1250
|
+
'/orders/:id': { id: 'seeded-order-id' }
|
|
1251
|
+
exclude: []
|
|
1252
|
+
sweep: true
|
|
1253
|
+
```
|
|
1254
|
+
|
|
1255
|
+
Each audience may declare its DATA plane explicitly: `plane: tenant |
|
|
1256
|
+
master | global` (employee→tenant, admin→master, public→global). A plane
|
|
1257
|
+
is the data the pages serve — it is not a user role, and an audience name
|
|
1258
|
+
is only a plane when it is exactly one of those three words; declare the
|
|
1259
|
+
conventional names (`tenant`, `master`, `global`) explicitly when you
|
|
1260
|
+
want to be exact, and every other audience name (a role like `employee`
|
|
1261
|
+
or `admin`) REQUIRES the explicit `plane:` key. An audience without a
|
|
1262
|
+
resolved plane leaves its pages classification-blocked, and
|
|
1263
|
+
`gateforge adopt --family pages` refuses to record while any page
|
|
1264
|
+
identity is undecided.
|
|
1265
|
+
|
|
1266
|
+
Page paths carry the FULL deployment prefix. A string-literal `basename`
|
|
1267
|
+
on `<BrowserRouter>`, `<HashRouter>`, or `<MemoryRouter>` — or in the
|
|
1268
|
+
`createBrowserRouter` / `createHashRouter` options object — is prefixed
|
|
1269
|
+
onto every page path discovered under that router in the same file, so a
|
|
1270
|
+
router opened with `basename="/app"` yields `/app/departments`, not
|
|
1271
|
+
`/departments`. A computed basename (`basename={...}`, a variable in the
|
|
1272
|
+
options) is never guessed: the pages under it are not emitted and each
|
|
1273
|
+
becomes `PAGE_ROUTE_UNRESOLVED` naming the `file:line`. Two different
|
|
1274
|
+
literal basenames in one project are ambiguous: every page still carries
|
|
1275
|
+
its own router's prefix, and an `AMBIGUOUS_BASENAME` finding lists every
|
|
1276
|
+
declaration for the owner to reconcile.
|
|
1277
|
+
|
|
1278
|
+
A prefix that lives OUTSIDE the code — a reverse proxy or sub-path host
|
|
1279
|
+
serving the app under a prefix — is the owner's `pages.basePath` setting.
|
|
1280
|
+
Declare it once and EVERY discovered page path (both routers, and manual
|
|
1281
|
+
`.gateforge/pages.yml` entries) is prefixed with it, after any router
|
|
1282
|
+
`basename`: `basePath: /shop` plus `basename="/app"` plus route `/x`
|
|
1283
|
+
gives `/shop/app/x`. The value must start with `/` and carry no trailing
|
|
1284
|
+
slash (`/` alone is the deployment root); anything else is a config
|
|
1285
|
+
validation error naming the rule. Page identity and every downstream
|
|
1286
|
+
check (visit URLs, final-URL-must-match-route grading) use the prefixed
|
|
1287
|
+
path end to end.
|
|
1288
|
+
|
|
1289
|
+
A relative route (`path="departments"`) with no parent route in its file
|
|
1290
|
+
AND no router root (`BrowserRouter`, `HashRouter`, `MemoryRouter`,
|
|
1291
|
+
`RouterProvider`, `createBrowserRouter`, `createHashRouter`) in the file
|
|
1292
|
+
cannot be placed: Gateforge refuses to guess which prefix the component
|
|
1293
|
+
is rendered under and emits `PAGE_ROUTE_UNRESOLVED` — `relative route
|
|
1294
|
+
'departments' in src/Pages.tsx:12 has no parent route in this file;
|
|
1295
|
+
Gateforge cannot tell which prefix it is rendered under (make it
|
|
1296
|
+
absolute, or wrap it under its parent route)` — instead of a silently
|
|
1297
|
+
wrong page. Relative children under a parent route in the same file keep
|
|
1298
|
+
joining normally.
|
|
1299
|
+
|
|
1300
|
+
`pages.params` supplies seeded IDs for dynamic routes. When no seed is
|
|
1301
|
+
configured, the referee can use a unique engine-observed create ID for the
|
|
1302
|
+
route's matching resource; ambiguous or unmatched IDs are never guessed, and
|
|
1303
|
+
produce `PAGE_PARAM_UNBOUND` with the page left unproven. `pages.sweep: false`
|
|
1304
|
+
disables referee visits, so an unopened page remains visible as unproven debt.
|
|
1305
|
+
The sealed `test-gates` JSON and text reports include a `pages` section with
|
|
1306
|
+
each page's route, proof channel, test/referee, status, and reason. Use
|
|
1307
|
+
`gateforge explain <page-obligation-id>` for that page's latest proof details;
|
|
1308
|
+
`gateforge next` names the visit, seed, or failure fix.
|
|
1309
|
+
|
|
1131
1310
|
## Owner answers (`.gateforge/classification-policy.yml`)
|
|
1132
1311
|
|
|
1133
1312
|
The repository-wide deterministic classification ANSWERS. `gateforge init`
|
|
@@ -1143,6 +1322,7 @@ pin before strict gates run.
|
|
|
1143
1322
|
| `deleteRules` | how removal manifests, per source glob (a RESOURCE's own answer) | `match` glob + `semantics` (+ `archiveFields`) |
|
|
1144
1323
|
| `planes` | the plane of a source tree or table set (see [below](#endpoint-plane-rules-the-planes-section)) | `rules[]` of `match`/`tables` + `plane` + `reason` |
|
|
1145
1324
|
| `endpoints` | capabilities detector facts cannot see (see [below](#endpoint-capability-rules-the-endpoints-section)) | `rules[]` of selectors + `capability` + `reason` |
|
|
1325
|
+
| `rules` | business rules a named test type must prove (see [below](#business-rules-the-rules-section)) | `rules[]` of id + title + cases + `test` + `enforcement` |
|
|
1146
1326
|
| `coverage` | which detector must examine which files before a proof counts | capability + detector + globs (+ `exhaustive`) |
|
|
1147
1327
|
|
|
1148
1328
|
Since 0.11.0 this document holds ONLY answers. The four scanner settings
|
|
@@ -1156,6 +1336,67 @@ Unknown keys, an unknown value, and two rules answering the same target
|
|
|
1156
1336
|
are refused (exit 2, fail closed) — the document is an input, never a
|
|
1157
1337
|
place to smuggle intent past the schema.
|
|
1158
1338
|
|
|
1339
|
+
## Business rules (the `rules:` section)
|
|
1340
|
+
|
|
1341
|
+
Owner-declared statements about the product — "an invoice can only be
|
|
1342
|
+
cancelled while it is unpaid" — that a test of a NAMED type must prove in
|
|
1343
|
+
a sealed supervised run (0.12.0). The section lives in the answers
|
|
1344
|
+
document, so it is owner-pinned: adding, weakening, deleting a rule, or
|
|
1345
|
+
making it advisory changes the trusted-policy digest and re-approves the
|
|
1346
|
+
pin. A repository without a `rules:` section is byte-identical to a
|
|
1347
|
+
release without the feature.
|
|
1348
|
+
|
|
1349
|
+
```yaml
|
|
1350
|
+
rules:
|
|
1351
|
+
- id: invoice-cancel-only-unpaid
|
|
1352
|
+
title: An invoice can only be cancelled while it is unpaid
|
|
1353
|
+
subject: invoices # optional; must exist in the inventory (unknown -> exit 2)
|
|
1354
|
+
test: e2e # e2e (default) | pytest
|
|
1355
|
+
enforcement: block # block (default) | advisory (+ required advisoryReason)
|
|
1356
|
+
cases:
|
|
1357
|
+
- id: unpaid-can-cancel
|
|
1358
|
+
describe: Cancelling an unpaid invoice succeeds and it shows as cancelled
|
|
1359
|
+
- id: paid-cannot-cancel
|
|
1360
|
+
describe: Cancelling a paid invoice is refused and it stays paid
|
|
1361
|
+
```
|
|
1362
|
+
|
|
1363
|
+
A rule's CASES are its observable consequences (usually a positive and a
|
|
1364
|
+
negative side; a rule without `cases:` has one implicit `default` case).
|
|
1365
|
+
A case is mapped by the claim id `business-rule:<ruleId>/<caseId>` — the
|
|
1366
|
+
same sidecar (`tests mark --rule <ruleId>/<caseId> --test <key> --kind
|
|
1367
|
+
<kind> --reason "…"`) and the same resolver as obligations, so stale,
|
|
1368
|
+
ambiguous, quarantined and inferred-only declarations behave exactly as
|
|
1369
|
+
they do there.
|
|
1370
|
+
|
|
1371
|
+
**A declaration is never proof.** The type table decides what proof each
|
|
1372
|
+
mapped test owes, and every mapped test of a case must deliver it — a red
|
|
1373
|
+
test is never forgiven by a green sibling, a mocked spec never proves an
|
|
1374
|
+
end-to-end rule, and a test the run's graded slice did not select is
|
|
1375
|
+
reported `unproven`, never satisfied and never silently absent.
|
|
1376
|
+
|
|
1377
|
+
| `test:` | Accepted kinds / runner | Required proof per mapped test |
|
|
1378
|
+
| --- | --- | --- |
|
|
1379
|
+
| `e2e` (default) | `browser-e2e`, `observed-e2e` (runner playwright) | Executed in the sealed supervised run, passed, AND witness evidence attributable to that test's own session: an engine `ui.action` anchor (browser-e2e) or a witnessed `http.request` exchange of its session (observed-e2e). The channel is named in the output (`engine` / `observe`). |
|
|
1380
|
+
| `pytest` | `unit`, `integration`, `server-e2e` (runner pytest) | Executed inside the WITNESSED pytest suite of the sealed run and passed (channel `execution`). Not run, or the suite not declared `witnessed`, stays `unproven` — no weaker labelled proof. |
|
|
1381
|
+
|
|
1382
|
+
Case statuses, in the evaluator's own words: `unmapped`
|
|
1383
|
+
(`BUSINESS_RULE_TEST_MISSING`), `wrong-type`
|
|
1384
|
+
(`BUSINESS_RULE_TEST_TYPE_MISMATCH` — a weaker kind never satisfies a
|
|
1385
|
+
stronger type), `failing` (`BUSINESS_RULE_TEST_FAILING`), `unproven`
|
|
1386
|
+
(`BUSINESS_RULE_TEST_UNPROVEN` — no sealed run, test not executed,
|
|
1387
|
+
outside the graded slice, or missing the type's proof), and `satisfied`
|
|
1388
|
+
with the proof channel. Findings are run-wide — never diff-scoped away —
|
|
1389
|
+
and an `enforcement: advisory` rule's findings ride the report's advisory
|
|
1390
|
+
channel every run, out of `blocking` and out of the exit code.
|
|
1391
|
+
|
|
1392
|
+
**Honest scope of the proof.** Gateforge proves the named test exists,
|
|
1393
|
+
ran under supervision, passed, and (e2e) exercised the real app through
|
|
1394
|
+
the witness. It does NOT prove the test asserts the rule's meaning: the
|
|
1395
|
+
mapping's `reason` carries that claim, the owner reviews it, and the
|
|
1396
|
+
output always names which of these was proven. `gateforge next` prints a
|
|
1397
|
+
starter test and the exact mark command per missing case; `init --rules`
|
|
1398
|
+
adds a commented example to the answers document.
|
|
1399
|
+
|
|
1159
1400
|
## Scanner settings (`.gateforge.yml` `scan:`)
|
|
1160
1401
|
|
|
1161
1402
|
The machine-wide settings that decide what a closed-world proof may claim.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gate-forge/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"gateforgeCompatibility": {
|
|
5
5
|
"supervisedFixtureProtocol": "gateforge.supervised-playwright.v1"
|
|
6
6
|
},
|
|
@@ -33,15 +33,16 @@
|
|
|
33
33
|
"test": "vitest run"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@gate-forge/core": "^0.
|
|
37
|
-
"@gate-forge/http-contract": "^0.
|
|
38
|
-
"@gate-forge/pack-fastapi": "^0.
|
|
39
|
-
"@gate-forge/pack-alembic": "^0.
|
|
40
|
-
"@gate-forge/pack-http": "^0.
|
|
41
|
-
"@gate-forge/pack-
|
|
42
|
-
"@gate-forge/pack-
|
|
43
|
-
"@gate-forge/pack-
|
|
44
|
-
"@gate-forge/
|
|
36
|
+
"@gate-forge/core": "^0.13.0",
|
|
37
|
+
"@gate-forge/http-contract": "^0.13.0",
|
|
38
|
+
"@gate-forge/pack-fastapi": "^0.13.0",
|
|
39
|
+
"@gate-forge/pack-alembic": "^0.13.0",
|
|
40
|
+
"@gate-forge/pack-http": "^0.13.0",
|
|
41
|
+
"@gate-forge/pack-react-router": "^0.13.0",
|
|
42
|
+
"@gate-forge/pack-playwright": "^0.13.0",
|
|
43
|
+
"@gate-forge/pack-sqlalchemy": "^0.13.0",
|
|
44
|
+
"@gate-forge/pack-task": "^0.13.0",
|
|
45
|
+
"@gate-forge/plugin-protocol": "^0.13.0",
|
|
45
46
|
"picomatch": "^4.0.7",
|
|
46
47
|
"yaml": "^2.8.1"
|
|
47
48
|
},
|