@opencode-cloud/core 6.3.0 → 6.3.1

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "opencode-cloud-core"
3
- version = "6.3.0"
3
+ version = "6.3.1"
4
4
  edition = "2024"
5
5
  rust-version = "1.88"
6
6
  license = "MIT"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencode-cloud/core",
3
- "version": "6.3.0",
3
+ "version": "6.3.1",
4
4
  "description": "Core NAPI bindings for opencode-cloud (internal package)",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
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 load_config() -> Result<Config> {
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, load_config, save_config};
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};