wholestack 0.5.6 → 0.5.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/README.md +23 -0
- package/dist/{chunk-K6MSDQJT.js → chunk-TLYCOIEA.js} +4110 -306
- package/dist/cli.js +1117 -60
- package/dist/index.d.ts +594 -1
- package/dist/index.js +1 -1
- package/package.json +15 -11
- package/skills/fix-failing-build.md +38 -0
- package/skills/review-before-ship.md +34 -0
- package/skills/ship-a-saas.md +39 -0
package/README.md
CHANGED
|
@@ -68,6 +68,29 @@ Run ShipGate's gates on a generated contract:
|
|
|
68
68
|
wholestack prove ./contracts MyToken --property conservation
|
|
69
69
|
```
|
|
70
70
|
|
|
71
|
+
## Prove-gate (any repo, in CI)
|
|
72
|
+
|
|
73
|
+
Gate ANY Next.js + Prisma repo — not just generated ones — with the deterministic
|
|
74
|
+
prove-gate. It proves tenant isolation (RLS) and authorization-completeness (no
|
|
75
|
+
unprotected/orphan endpoint) over your code and exits non-zero on `NO_SHIP`, so it
|
|
76
|
+
drops straight into CI as a required status check. Fail-closed: a check that can't
|
|
77
|
+
bind its artifact is reported "not run", never a silent pass.
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
wholestack prove . # gate the checked-out repo; exit 0 = SHIP, 1 = NO_SHIP
|
|
81
|
+
wholestack prove . --json # full machine-readable verdict to stdout
|
|
82
|
+
wholestack prove --remote --github owner/repo --ref <sha> # hosted, HMAC-SIGNED verdict
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
`--remote` returns a verdict signed by the ISL server (HMAC over the canonical
|
|
86
|
+
verdict: `schema · verdict · score · checks · blockingReasons · sourceHash ·
|
|
87
|
+
deepTierTargets`), so a stored or shared verdict can be re-verified offline and any
|
|
88
|
+
tampering with the SHIP/NO_SHIP, score, or blocking reasons is detectable.
|
|
89
|
+
|
|
90
|
+
A ready-to-use GitHub Actions workflow is in
|
|
91
|
+
[`examples/github-actions/isl-prove.yml`](./examples/github-actions/isl-prove.yml) —
|
|
92
|
+
copy it to `.github/workflows/` to block PRs that fail the gate.
|
|
93
|
+
|
|
71
94
|
## Requirements
|
|
72
95
|
|
|
73
96
|
- Node.js ≥ 20
|