No description
Adds SAMPLE_PARAMS entries for on-move, on-turn-end, on-promotion, on-check-received, on-check-delivered, on-moved-onto-square, and on-captured so the Record<PrimitiveKind, unknown> exhaustive type remains satisfied after the union grew from 15 to 22 kinds. Captures golden snapshots for each new kind's rendering via the existing renderToStaticMarkup harness — each snapshot is one-line HTML because the ParamField inspector falls back to a plain JSON textarea for trigger primitives with nested-array params (complex-schema branch). No ParamField behavior change; this is purely consumer-side wiring required by the PrimitiveKind union extension. |
||
|---|---|---|
| .github/workflows | ||
| .sisyphus | ||
| docs | ||
| packages | ||
| scripts | ||
| .gitignore | ||
| eslint.config.js | ||
| lefthook.yml | ||
| LICENSE | ||
| package.json | ||
| playwright.config.ts | ||
| README.md | ||
| tsconfig.base.json | ||
| tsconfig.json | ||
| vitest.workspace.ts | ||
@paratype
A Doorenbos-style Rete II rules engine for TypeScript games, with an authoritative WebSocket chess demo.
Packages
packages/rete— Rete II engine corepackages/chess— Browser chess demo (React + Vite)packages/server— Authoritative Bun WebSocket server
Docs
- SPEC.md — Engine specification
- PHASES.md — Development phases & perf budgets
- RULES.md — Chess rule presets
- PROTOCOL.md — WebSocket message protocol
Getting Started
bun install && bun run check