API Reference
One page for every entry point of the packages, written from the documentation in their source.
Packages
| Package | What it is |
|---|---|
@reintent/core | The kernel, choices, intent and its effects, and the runtime. Host-neutral. |
@reintent/core/jsx-runtime | The automatic JSX runtime: jsxImportSource: '@reintent/core'. |
@reintent/core/internal | For an additional realizer, such as @reintent/react: the kernel's element types and its scope. |
@reintent/lib/* | Libraries on core's public entry: stamps, axes, alternatives, program changes, vocabularies… |
@reintent/react | React evaluates the same programs; hooks for views. |
@reintent/language/* | Words bound to a program: spans, a sentence or an edit of the words read as an event, words ⇄ choices ⇄ picture. |
@reintent/scene/* | Drawing with SVG and Canvas on the host's side: names, a clock, measuring, picking, checks, sanitizing. |
Working with choices
| Purpose | API |
|---|---|
| Describe candidates and model questions | choices, generate, the question of useChoose |
| Obtain a value in the program | useChoose, useChoiceStatus |
| Set a subtree’s resolution policy or hypotheses | World |
| Match the selected variant | Branch |
| Record what a person says | intent.decide, intent.constrain, intent.prefer (createIntent) |
| Coordinate recovery | onUnresolved of World, intent.questions, intent.onEscalate |
| Propose and accept a program version | intent.reprogram, intent.review |
| Read the realization and request progress | intent.realize, intent.pending |
Status
The API is not final. These pages are generated from the TSDoc in the source, so they change with it: to change a page, change the comment in the source and run pnpm --filter reintent-site api. The Chinese pages are translated from the English ones, by the coding agent that changed them.
Last updated on
Edit on GitHub