Skip to main content

lingxia_shell/
lib.rs

1//! Platform-neutral semantic core for the LingXia host shell.
2//!
3//! This crate owns app-declared activators, user-owned Pins, validation,
4//! Pin persistence, and deterministic state transitions. It deliberately
5//! has no dependency on lxapps, the surface graph, browser bookmarks, Logic,
6//! or platform UI. Host integration resolves metadata and executes activation;
7//! platform skins only render resolved snapshots and report stable ids.
8
9mod activator;
10mod error;
11mod manager;
12mod pin;
13mod runtime;
14mod store;
15
16pub use activator::{
17    ActivatorCollection, ResolvedShellActivator, ShellActivator, ShellActivatorUpdate,
18};
19pub use error::{ShellError, ShellResult};
20pub use manager::{ShellManager, ShellSnapshot};
21pub use pin::{MAX_SHELL_PINS, PinCollection, PinMutation, ShellPin, ShellPinTarget};
22pub use runtime::{
23    ShellActivationIntent, ShellHost, activate, apply_current_activators, apply_current_pins,
24    initialize, is_pinned, manager, pins, resolved_activators, set_pinned,
25};
26pub use store::{PIN_STORE_FILE, ShellStore};