2025-12-04 09:03:03 -03:00
|
|
|
//! BotUI - General Bots Pure Web UI
|
2025-12-03 18:42:22 -03:00
|
|
|
//!
|
2025-12-04 09:03:03 -03:00
|
|
|
//! This crate provides the web UI layer for General Bots:
|
|
|
|
|
//! - Serves static HTMX UI files (suite, minimal)
|
|
|
|
|
//! - Proxies API requests to botserver
|
|
|
|
|
//! - WebSocket support for real-time communication
|
2025-12-03 18:42:22 -03:00
|
|
|
//!
|
2025-12-04 09:03:03 -03:00
|
|
|
//! For desktop/mobile native features, see the `botapp` crate which
|
|
|
|
|
//! wraps this pure web UI with Tauri.
|
2025-12-03 18:42:22 -03:00
|
|
|
|
|
|
|
|
// Re-export common types from botlib
|
|
|
|
|
pub use botlib::{
|
|
|
|
|
branding, error, init_branding, is_white_label, platform_name, platform_short, ApiResponse,
|
|
|
|
|
BotError, BotResponse, BotResult, MessageType, Session, Suggestion, UserMessage,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// HTTP client is always available via botlib
|
|
|
|
|
pub use botlib::BotServerClient;
|
|
|
|
|
|
|
|
|
|
pub mod shared;
|
|
|
|
|
|
2025-12-04 09:03:03 -03:00
|
|
|
#[cfg(feature = "ui-server")]
|
2025-12-03 18:42:22 -03:00
|
|
|
pub mod ui_server;
|
|
|
|
|
|
2025-12-04 09:03:03 -03:00
|
|
|
#[cfg(feature = "ui-server")]
|
2025-12-03 18:42:22 -03:00
|
|
|
pub mod web;
|
|
|
|
|
|
|
|
|
|
// Re-exports
|
|
|
|
|
pub use shared::*;
|
|
|
|
|
|
2025-12-04 09:03:03 -03:00
|
|
|
#[cfg(feature = "ui-server")]
|
2025-12-03 18:42:22 -03:00
|
|
|
pub use ui_server::*;
|