Some checks failed
ci/someci/tag/woodpecker/5 Pipeline is pending
ci/someci/tag/woodpecker/6 Pipeline is pending
ci/someci/tag/woodpecker/7 Pipeline is pending
ci/someci/tag/woodpecker/1 Pipeline failed
ci/someci/tag/woodpecker/2 Pipeline failed
ci/someci/tag/woodpecker/3 Pipeline failed
ci/someci/tag/woodpecker/4 Pipeline failed
- Introduce multiple built-in themes (`default_dark`, `default_light`, `gruvbox`, `dracula`, `solarized`, `midnight-ocean`, `rose-pine`, `monokai`, `material-dark`, `material-light`). - Implement theming system with customizable color schemes for all UI components in the TUI. - Include documentation for themes in `themes/README.md`. - Add fallback mechanisms for default themes in case of parsing errors. - Support custom themes with overrides via configuration.
66 lines
1.4 KiB
Rust
66 lines
1.4 KiB
Rust
//! Core traits and types for OWLEN LLM client
|
|
//!
|
|
//! This crate provides the foundational abstractions for building
|
|
//! LLM providers, routers, and MCP (Model Context Protocol) adapters.
|
|
|
|
pub mod config;
|
|
pub mod conversation;
|
|
pub mod formatting;
|
|
pub mod input;
|
|
pub mod model;
|
|
pub mod provider;
|
|
pub mod router;
|
|
pub mod session;
|
|
pub mod storage;
|
|
pub mod theme;
|
|
pub mod types;
|
|
pub mod ui;
|
|
pub mod wrap_cursor;
|
|
|
|
pub use config::*;
|
|
pub use conversation::*;
|
|
pub use formatting::*;
|
|
pub use input::*;
|
|
pub use model::*;
|
|
pub use provider::*;
|
|
pub use router::*;
|
|
pub use session::*;
|
|
pub use theme::*;
|
|
|
|
/// Result type used throughout the OWLEN ecosystem
|
|
pub type Result<T> = std::result::Result<T, Error>;
|
|
|
|
/// Core error types for OWLEN
|
|
#[derive(thiserror::Error, Debug)]
|
|
pub enum Error {
|
|
#[error("Provider error: {0}")]
|
|
Provider(#[from] anyhow::Error),
|
|
|
|
#[error("Network error: {0}")]
|
|
Network(String),
|
|
|
|
#[error("Authentication error: {0}")]
|
|
Auth(String),
|
|
|
|
#[error("Configuration error: {0}")]
|
|
Config(String),
|
|
|
|
#[error("I/O error: {0}")]
|
|
Io(#[from] std::io::Error),
|
|
|
|
#[error("Invalid input: {0}")]
|
|
InvalidInput(String),
|
|
|
|
#[error("Operation timed out: {0}")]
|
|
Timeout(String),
|
|
|
|
#[error("Serialization error: {0}")]
|
|
Serialization(#[from] serde_json::Error),
|
|
|
|
#[error("Storage error: {0}")]
|
|
Storage(String),
|
|
|
|
#[error("Unknown error: {0}")]
|
|
Unknown(String),
|
|
}
|