No description
FilterNode applies registered predicates to tokens via PredicateRegistry. Conjunction (AND) semantics across multiple FilterSpecs. Constructor-time validation throws UnknownPredicateError for missing predicates. Tracks passed tokens so left-deactivate routes only forwarded matches. Updated PredicateFn signature to accept static args alongside bindings. 100% line/func coverage; 8 unit tests covering pass/block/AND/deactivate paths. |
||
|---|---|---|
| .github/workflows | ||
| .sisyphus | ||
| docs | ||
| packages | ||
| .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