Manages bootstrap, update, and remote-control lifecycle of the managed app-server process, serialized across CLI invocations. Reuse for building CLI tools that need a background daemon with install/update orchestration.
// Source: https://github.com/openinterpreter/openinterpreter | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works // Provided via justclaw.it.com; keep this notice with the code. //! Managed app-server lifecycle, serialized across CLI invocations and the updater. mod backend; #[cfg(windows)] use backend::windows::try_lock_file; mod client; mod install_lock; mod launch; pub use launch::start_with_features; mod managed_install; mod prepare_install; pub use prepare_install::InstallRequest; pub use prepare_install::update_from_cli; mod remote_control_client; mod settings; pub mod telemetry; mod thread_recovery; mod update_loop; use std::collections::BTreeMap; use std::path::Path; use std::path::PathBuf; use std::time::Duration; use anyhow::Context; ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key