No description
T3 Wave 3 (T20). Structural Zod schema for CustomModifierDescriptor. - EffectPrimitiveNodeSchema: recursive via z.lazy(); kind is z.string() + min(1) (semantic check belongs to T19's validator); params is z.unknown() so nested trees pass through cleanly. - CustomModifierDescriptorSchema: literal discriminators on type/version/uiForm/source; min/max bounds on name/description. - parse/safeParse/serialize wrappers; parse() carries a single boundary cast to bridge Zod's structural inference (kind: string, optional: T | undefined) with the typed interface (kind: PrimitiveKind, optional: ?). Documented in JSDoc; T19 enforces every narrowing separately. |
||
|---|---|---|
| .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