Reintent

API Reference

One page for every entry point of the packages, written from the documentation in their source.

Packages

PackageWhat it is
@reintent/coreThe kernel, choices, intent and its effects, and the runtime. Host-neutral.
@reintent/core/jsx-runtimeThe automatic JSX runtime: jsxImportSource: '@reintent/core'.
@reintent/core/internalFor 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/reactReact 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

PurposeAPI
Describe candidates and model questionschoices, generate, the question of useChoose
Obtain a value in the programuseChoose, useChoiceStatus
Set a subtree’s resolution policy or hypothesesWorld
Match the selected variantBranch
Record what a person saysintent.decide, intent.constrain, intent.prefer (createIntent)
Coordinate recoveryonUnresolved of World, intent.questions, intent.onEscalate
Propose and accept a program versionintent.reprogram, intent.review
Read the realization and request progressintent.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