agent86_ui/runtime/mod.rs
1//! The headless surface runtime: what a renderer does, without drawing.
2//!
3//! A surface is its components and its data model. The runtime applies the
4//! agent's messages to them, resolves each component's dynamic values
5//! (bindings, function calls, templates), evaluates its checks, writes user
6//! input back, and builds the `action` a user's gesture sends. A renderer (the
7//! terminal interface, a text fallback, a test) draws from the resolved values;
8//! one that draws itself (a React app with Google's renderer) does not need it.
9//!
10//! Behavior follows the specification and its shared conformance suites
11//! (`conformance/core/` upstream), which `tests/runtime_conformance.rs` replays.
12
13pub mod data;
14pub mod expr;
15pub mod format;
16pub mod functions;
17pub mod regex;
18pub mod surface;
19
20pub use data::{DataError, DataModel, WatchId, MAX_ARRAY_INDEX};
21pub use expr::{ExpressionError, Part};
22pub use functions::{coerce_bool, Effect, EvalError, Evaluator, LocalFunction, Scope};
23pub use surface::{ActionError, Dispatch, Gesture, Node, Runtime};