No description
T3 Wave 1 (T3). Defines the user-authored CustomModifierDescriptor
shape that Wave 3 (validator, Zod schema, library, apply) and Wave 4
(server registration, editor UI) build on.
- CustomModifierId: branded string (mirrors asEntityId), with the
asCustomModifierId() trust-boundary helper.
- CustomModifierDescriptor:
- type: 'data' discriminator (T4 will add 'scripted' alongside).
- id, name (1-40), description (0-200), version: 1 literal.
- primitives: readonly EffectPrimitiveNode[] (re-exported from
primitives/types so consumers have one import).
- targetAttrs: readonly ChessAttrKey[] for editor conflict surfacing.
- uiForm: 'primitive-composer' literal (routes editing to the
custom-modifier composer UI in T25).
- source: 'custom' for library typing.
- Optional author, createdAt (auto-populated by library save).
Persistence, validation, Zod schema, and apply() arrive in Wave 3.
|
||
|---|---|---|
| .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