opencode_cloud_core/
lib.rs1pub mod config;
7pub mod docker;
8pub mod platform;
9pub mod singleton;
10pub mod version;
11
12pub use version::{get_version, get_version_long};
14
15pub use config::{Config, load_config, save_config};
17
18pub use singleton::{InstanceLock, SingletonError};
20
21pub use docker::{CONTAINER_NAME, DockerClient, DockerError, OPENCODE_WEB_PORT};
23
24pub use platform::{
26 InstallResult, ServiceConfig, ServiceManager, get_service_manager,
27 is_service_registration_supported,
28};
29
30pub use bollard;
32
33#[cfg(feature = "napi")]
35use napi_derive::napi;
36
37#[cfg(feature = "napi")]
39#[napi]
40pub fn get_version_js() -> String {
41 get_version()
42}
43
44#[cfg(feature = "napi")]
46#[napi]
47pub fn get_version_long_js() -> String {
48 get_version_long()
49}