opencode_cloud_core/
lib.rs1pub mod config;
7pub mod docker;
8pub mod host;
9pub mod platform;
10pub mod singleton;
11pub mod version;
12
13pub use version::{get_version, get_version_long};
15
16pub use config::{Config, get_hosts_path, load_config, save_config};
18
19pub use singleton::{InstanceLock, SingletonError};
21
22pub use docker::{CONTAINER_NAME, DockerClient, DockerError, OPENCODE_WEB_PORT};
24
25pub use platform::{
27 InstallResult, ServiceConfig, ServiceManager, get_service_manager,
28 is_service_registration_supported,
29};
30
31pub use host::{
33 DistroFamily, DistroInfo, HostConfig, HostError, HostsFile, SshConfigMatch, SshTunnel,
34 detect_distro, get_docker_install_commands, get_ssh_config_path, host_exists_in_ssh_config,
35 install_docker, load_hosts, query_ssh_config, save_hosts, test_connection,
36 verify_docker_installed, write_ssh_config_entry,
37};
38
39pub use bollard;
41
42#[cfg(feature = "napi")]
44use napi_derive::napi;
45
46#[cfg(feature = "napi")]
48#[napi]
49pub fn get_version_js() -> String {
50 get_version()
51}
52
53#[cfg(feature = "napi")]
55#[napi]
56pub fn get_version_long_js() -> String {
57 get_version_long()
58}