phoebus_os/installer-rs/crates/phoebus-core/src/lib.rs
Phoebus 33afdaac9a feat(ai): add an OpenCode backend to canonical configuration
Add ai.backend (direct|opencode) plus opencode_server/provider/model
fields, distinct from the direct provider. Require the change-object
shape (action+value) in the proposal prompt: the shipped models keyed
changes by the action name otherwise.
2026-09-22 02:36:22 -07:00

44 lines
1.4 KiB
Rust

//! Phoebus core: strongly-typed configuration, hardware/disk models, package
//! policy, validation, plan generation and target-root safety.
//!
//! Nothing in this crate executes external commands or touches disks.
pub mod action;
pub mod boot;
pub mod brand;
pub mod config;
pub mod disk;
pub mod effects;
pub mod emergelog;
pub mod error;
pub mod hardware;
pub mod plan;
pub mod policy;
pub mod rollback;
pub mod secret;
pub mod snapshot;
pub mod system;
pub mod target;
pub mod transaction;
pub mod update;
pub mod validate;
pub use config::{
AiBackend, AiConfig, Bootloader, DesktopConfig, DesktopProfile, Encryption, EncryptionConfig,
Filesystem, InstallConfig, KernelConfig, KernelProfile, PackagePolicy, PackagesConfig,
Stage3Config, StorageConfig, SystemConfig, UserConfig,
};
pub use disk::{Disk, DiskKind, ProtectionReason};
pub use error::{CoreError, Result};
pub use hardware::{CpuInfo, FirmwareMode, GpuInfo, GpuVendor, HardwareReport, NetworkDevice};
pub use plan::{InstallPlan, InstallStep};
pub use policy::{
append_history, load_history, InstallMethod, PackageDecision, PackageDecisionReason,
PackagePolicyEngine, PolicyContext,
};
pub use secret::{Redactor, SecretString};
pub use target::TargetRoot;
pub use validate::{password_strength, validate_config, ValidationIssue};
/// Version string shared by the CLI and logs.
pub const VERSION: &str = env!("CARGO_PKG_VERSION");