r.entity(...)
Overview
Section titled “Overview”r.entity(name, definition) — declares an event-sourced entity: field
schema plus search/sort and PII metadata as one declarative object. The
framework derives the aggregate table, CRUD events, and the read-side
projection from it at boot. Fully static — the Designer renders it as a
form, the AI patcher edits it as pure data.
Carries definition.description transitively (no dedicated field here):
that prose feeds the AI-agent manifest output. An entity without it still
works, but the agent has nothing to say about it in the tool catalogue.
From packages/framework/src/engine/feature-ast/patterns.ts -> EntityPattern