No description
T3 Wave 3 (T21). localStorage-backed library mirroring the T1 modifier- profile library at modifiers/library.ts: - Storage key: houserules:custom-modifiers:v1 - Capacity: MAX_ENTRIES (20) with starred-aware FIFO eviction; refusal with a human reason when every slot is starred. - API: loadCustomModifierLibrary, saveToCustomModifierLibrary (runs T19's validateCustomDescriptor before persisting; rejects with the validator's error list on failure), removeFromCustomModifierLibrary, setCustomModifierStarred. - Auto-populates descriptor.createdAt on first save; preserves it across subsequent saves so library order stays stable. - Per-entry shape failures during load are silently dropped (matches T1 library behaviour — one bad row never blocks the drawer). 12 vitest scenarios cover round-trip, malformed-JSON tolerance, update/remove/star, validator rejection, capacity eviction, and all-starred refusal. |
||
|---|---|---|
| .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