/
GreyCat
/
openhuman
Обзор
Документация
Войти
/
GreyCat
/
openhuman
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/lib.rs
33 строки
1 KB
Steven Enamakel
Fix keyring backend env override (#3423)
06 июн 2026, 12:00
Не верифицирован
06 июн 2026, 12:00
7ef726c
Код
Авторство
О чём код?
//! Core library for the OpenHuman platform. //! //! This crate provides the central logic for the OpenHuman core binary, including: //! - API and RPC handlers for external interactions. //! - Core system services (CLI, configuration, monitoring). //! - Domain-specific logic for the OpenHuman agent runtime. pub mod api; pub mod core; pub mod openhuman; pub mod rpc; pub use openhuman::config::DaemonConfig; pub use openhuman::memory_store::{MemoryClient, MemoryState}; /// Runs the core logic based on the provided command-line arguments. /// /// This is the primary entry point for the OpenHuman binary, delegating to the /// CLI module for argument parsing and command dispatch. /// /// # Arguments /// /// * `args` - A slice of strings containing the command-line arguments. /// /// # Errors /// /// Returns an error if command execution fails. pub fn run_core_from_args(args: &[String]) -> anyhow::Result<()> { core::cli::load_dotenv_for_cli()?; openhuman::service::apply_startup_restart_delay_from_env(); openhuman::keyring::init_master_key(); core::cli::run_from_cli_args(args) }