@opencode-cloud/core 1.0.6 → 1.0.8

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,16 +1,16 @@
1
1
  [package]
2
2
  name = "opencode-cloud-core"
3
- version.workspace = true
4
- edition.workspace = true
5
- rust-version.workspace = true
6
- license.workspace = true
7
- repository.workspace = true
8
- homepage.workspace = true
9
- documentation.workspace = true
10
- keywords.workspace = true
11
- categories.workspace = true
3
+ version = "1.0.8"
4
+ edition = "2024"
5
+ rust-version = "1.85"
6
+ license = "MIT"
7
+ repository = "https://github.com/pRizz/opencode-cloud"
8
+ homepage = "https://github.com/pRizz/opencode-cloud"
9
+ documentation = "https://docs.rs/opencode-cloud"
10
+ keywords = ["opencode", "ai", "cloud", "docker", "cli"]
11
+ categories = ["command-line-utilities", "development-tools"]
12
12
  description = "Core library for opencode-cloud - config management, singleton enforcement, and shared utilities"
13
- readme = "../../README.md"
13
+ readme = "README.md"
14
14
  exclude = ["*.node", "index.js", "index.d.ts"]
15
15
 
16
16
  [lib]
@@ -22,36 +22,36 @@ default = []
22
22
  napi = ["dep:napi", "dep:napi-derive"]
23
23
 
24
24
  [dependencies]
25
- clap.workspace = true
26
- tokio.workspace = true
27
- serde.workspace = true
28
- serde_json.workspace = true
29
- jsonc-parser.workspace = true
30
- directories.workspace = true
31
- thiserror.workspace = true
32
- anyhow.workspace = true
33
- tracing.workspace = true
34
- console.workspace = true
25
+ clap = { version = "4.5", features = ["derive"] }
26
+ tokio = { version = "1.43", features = ["rt-multi-thread", "macros"] }
27
+ serde = { version = "1.0", features = ["derive"] }
28
+ serde_json = "1.0"
29
+ jsonc-parser = { version = "0.29", features = ["serde"] }
30
+ directories = "5"
31
+ thiserror = "2"
32
+ anyhow = "1"
33
+ tracing = "0.1"
34
+ console = "0.16"
35
35
 
36
36
  # NAPI dependencies (optional - only for Node bindings)
37
- napi = { workspace = true, optional = true }
38
- napi-derive = { workspace = true, optional = true }
37
+ napi = { version = "2", features = ["tokio_rt", "napi9"], optional = true }
38
+ napi-derive = { version = "2", optional = true }
39
39
 
40
40
  # Docker integration
41
- bollard.workspace = true
42
- futures-util.workspace = true
43
- tar.workspace = true
44
- flate2.workspace = true
45
- tokio-retry.workspace = true
46
- indicatif.workspace = true
47
- http-body-util.workspace = true
48
- bytes.workspace = true
41
+ bollard = { version = "0.18", features = ["chrono", "buildkit"] }
42
+ futures-util = "0.3"
43
+ tar = "0.4"
44
+ flate2 = "1.0"
45
+ tokio-retry = "0.3"
46
+ indicatif = { version = "0.17", features = ["tokio", "futures"] }
47
+ http-body-util = "0.1"
48
+ bytes = "1.9"
49
49
 
50
50
  # Platform service management (macOS)
51
- plist.workspace = true
51
+ plist = "1.8"
52
52
 
53
53
  [build-dependencies]
54
54
  napi-build = "2"
55
55
 
56
56
  [dev-dependencies]
57
- tempfile.workspace = true
57
+ tempfile = "3"
package/README.md CHANGED
@@ -171,6 +171,16 @@ This is a monorepo with:
171
171
 
172
172
  The npm package compiles the Rust core on install (no prebuilt binaries).
173
173
 
174
+ ### Cargo.toml Sync Requirement
175
+
176
+ The `packages/core/Cargo.toml` file must use **explicit values** rather than `workspace = true` references. This is because when users install the npm package, they only get `packages/core/` without the workspace root `Cargo.toml`, so workspace inheritance would fail.
177
+
178
+ When updating package metadata (version, edition, rust-version, etc.), keep both files in sync:
179
+ - `Cargo.toml` (workspace root)
180
+ - `packages/core/Cargo.toml`
181
+
182
+ Use `scripts/set-all-versions.sh <version>` to update versions across all files automatically.
183
+
174
184
  ## License
175
185
 
176
186
  MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencode-cloud/core",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "Core NAPI bindings for opencode-cloud (internal package)",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -35,6 +35,6 @@
35
35
  "scripts": {
36
36
  "build": "napi build --platform --release --features napi --no-js && cp src/bindings.js index.js && cp src/bindings.d.ts index.d.ts",
37
37
  "build:debug": "napi build --platform --features napi --no-js && cp src/bindings.js index.js && cp src/bindings.d.ts index.d.ts",
38
- "postinstall": "npm run build || echo 'Build failed - ensure Rust 1.82+ is installed (rustup.rs)'"
38
+ "postinstall": "echo 'Building native module (requires Rust 1.85+)...' && npm run build"
39
39
  }
40
40
  }
Binary file