Expand description
Intent value model, gesture algebra, and codec:intent.
An Intent is a user (or agent) gesture expressed as a SIM value and decoded
into a checked operation. An Intent says what the operator wants, in terms
an editor can validate against a Shape before it ever touches runtime state.
Intents round-trip through codec:intent and carry an origin.operator
(human or agent) plus a logical tick for audit.
This crate provides:
- the Intent
kindsand their required fields (open metadata); - a
modelof origin, builders, accessors, fail-closed validation, and target resolution against a caller-supplied predicate; - the
gesturealgebra folding raw browser gestures into one Intent; - the
wristreducer folding watch buttons, touch, tap, raise, and crown input into standard Intent values; - the
codeccodec:intentplus Intent kindshapes.
Re-exports§
pub use codec::IntentCodec;pub use codec::IntentCodecLib;pub use codec::intent_codec_symbol;pub use cookbook::select_intent_demo;pub use gesture::GestureRecognizer;pub use gesture::Hit;pub use gesture::HitRole;pub use gesture::PointerEvent;pub use gesture::PointerPhase;pub use gesture::RawGesture;pub use gesture::intent_from_gesture;pub use kinds::INTENT_KINDS;pub use kinds::INTENT_NAMESPACE;pub use kinds::intent_kind;pub use kinds::is_known_kind;pub use kinds::required_fields;pub use model::IntentError;pub use model::Operator;pub use model::Origin;pub use model::intent;pub use model::intent_kind_of;pub use model::origin;pub use model::referenced_targets;pub use model::resolve_targets;pub use model::validate_intent;pub use shapes::intent_shape_specs;pub use shapes::intent_shape_symbol;pub use wrist::WristInputCapabilities;pub use wrist::WristInputTiming;pub use wrist::WristIntentReducer;pub use wrist::WristRawInput;
Modules§
- codec
codec:intent: the domain codec for Intent values.- cookbook
- Deterministic cookbook builders for Intent recipes.
- gesture
- The gesture algebra: composing raw browser gestures into one Intent value.
- kinds
- Intent kinds and their required fields.
- model
- Intent value model: origin, builders, accessors, and fail-closed validation.
- shapes
- Shapes for Intent kinds.
- wrist
- Wrist raw-input reduction into ordinary Intent values.
Structs§
- Intent
Descriptor - A validated Intent wrapped as a runtime Citizen object.
Statics§
- RECIPES
- Embedded cookbook recipe books shipped with this library.
Functions§
- field
- Look up an unqualified-keyed field by name.
- intent_
descriptor_ class_ symbol - Returns the class symbol for the Intent descriptor Citizen.