Skip to main content

Crate qualia_app_contract

Crate qualia_app_contract 

Source
Expand description

§Qualia Application Contract

Canonical portable command, context, session, and surface contracts for Storytold applications, Poet, and Webizen OS.

Aligned with POET Implementation Plan ST-E, ST-G, and ST-H.

Copyright (c) 2026 Timothy Charles Holborn. All rights reserved.

Re-exports§

pub use adapter::AppAdapter;
pub use catalog::CommandCatalog;
pub use delegation::DelegationLifecycle;
pub use delegation::DelegationMode;
pub use delegation::ResourceBudgets;
pub use delegation::TaskDelegation;
pub use descriptor::Availability;
pub use descriptor::CommandDescriptor;
pub use descriptor::TargetKind;
pub use effects::CommandEffect;
pub use effects::EffectSet;
pub use effects::InteractionKind;
pub use effects::UndoPolicy;
pub use error::ContractError;
pub use gesture::GestureCancel;
pub use gesture::GestureCommit;
pub use gesture::GestureSession;
pub use gesture::GestureUpdate;
pub use id::validate_finite_f64;
pub use id::AppId;
pub use id::CommandId;
pub use id::DecimalU64;
pub use id::JS_MAX_SAFE_INTEGER;
pub use request::AppSessionDescriptor;
pub use request::CommandReceipt;
pub use request::CommandRequest;
pub use request::CommandStatus;
pub use request::JobDescriptor;
pub use request::JobState;
pub use request::SurfaceDescriptor;
pub use target::CommandTarget;
pub use target::InteractionContext;
pub use target::PointerHit;
pub use target::SelectionKind;
pub use qap_package::*;

Modules§

adapter
Canonical AppAdapter trait defining the standardized engine boundary.
catalog
Deterministic command catalog with alias mapping and collision rejection.
delegation
descriptor
Command descriptor definitions and availability status.
effects
Command effect classification, undo policy, and interaction semantics.
error
Error types for portable application contracts.
gesture
Interactive gesture lifecycle and streaming pointer sample DTOs.
id
Identifiers and safe numeric types for application contracts.
qap_package
Portable, Multi-Repo Qap Package & Host Lifecycle Contract.
request
Command requests, receipts, session descriptors, surfaces, and job DTOs.
target
Command target and interaction context definitions.

Functions§

from_cbor_slice
Deserialize a contract data structure from CBOR bytes.
from_json_str
Deserialize a contract data structure from JSON string.
to_cbor_bytes
Serialize a contract data structure to canonical CBOR bytes.
to_json_string
Serialize a contract data structure to deterministic, pretty or compact JSON.