@opencode-cloud/core 6.3.0 → 6.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Cargo.toml +1 -1
- package/package.json +1 -1
- package/src/config/mod.rs +1 -1
- package/src/lib.rs +1 -1
package/Cargo.toml
CHANGED
package/package.json
CHANGED
package/src/config/mod.rs
CHANGED
|
@@ -65,7 +65,7 @@ pub fn ensure_data_dir() -> Result<PathBuf> {
|
|
|
65
65
|
/// If the config file doesn't exist, creates a new one with default values.
|
|
66
66
|
/// Supports JSONC (JSON with comments).
|
|
67
67
|
/// Rejects unknown fields for strict validation.
|
|
68
|
-
pub fn
|
|
68
|
+
pub fn load_config_or_default() -> Result<Config> {
|
|
69
69
|
let config_path =
|
|
70
70
|
get_config_path().ok_or_else(|| anyhow::anyhow!("Could not determine config file path"))?;
|
|
71
71
|
|
package/src/lib.rs
CHANGED
|
@@ -14,7 +14,7 @@ pub mod version;
|
|
|
14
14
|
pub use version::{get_version, get_version_long};
|
|
15
15
|
|
|
16
16
|
// Re-export config types and functions
|
|
17
|
-
pub use config::{Config, get_hosts_path,
|
|
17
|
+
pub use config::{Config, get_hosts_path, load_config_or_default, save_config};
|
|
18
18
|
|
|
19
19
|
// Re-export singleton types
|
|
20
20
|
pub use singleton::{InstanceLock, SingletonError};
|