Use this before tagging a release or publishing to npm. It keeps packages, tests, and docs aligned.
From the engine repository root:
npm install
npm run build
npm run engine:validateengine:validate runs lint, Vitest, boundary import check, and bundle safety checks.
Goal: JSON and descriptions in docs/ENTRYPOINTS.md (and related guides) must match packages/contracts/src.
Manual pass:
- Open
docs/ENTRYPOINTS.mdminimum JSON examples. - Compare each example to:
packages/contracts/src/analyzeContract.ts(AnalyzeInput),packages/contracts/src/wfaAnalysisContract.ts(TradeBasedWFAInput,PrecomputedWFAInput,WFAWindow).
- If you changed any public type or exported function, re-scan
docs/README.mdlinks andCHANGELOG.md.
There is no separate npm test target for “docs only”; correctness is reviewer responsibility until optional CI is added.
See docs/OSS_PUBLIC_REPO_SYNC.md and root VERSION. After bumping VERSION:
npm run sync-versionsThen merge to main, create an annotated tag vX.Y.Z matching VERSION, and push the tag. GitHub Actions release.yml publishes to npm (Trusted Publishing).
- Add CI that fails when markdown references removed types (future).
- Regenerate
docs/examples/sample-output/if needed:npm run engine:examples:generate-samples.