@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 +32 -32
- package/README.md +10 -0
- package/package.json +2 -2
- package/core.linux-x64-gnu.node +0 -0
package/Cargo.toml
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "opencode-cloud-core"
|
|
3
|
-
version
|
|
4
|
-
edition
|
|
5
|
-
rust-version
|
|
6
|
-
license
|
|
7
|
-
repository
|
|
8
|
-
homepage
|
|
9
|
-
documentation
|
|
10
|
-
keywords
|
|
11
|
-
categories
|
|
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 = "
|
|
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.
|
|
26
|
-
tokio.
|
|
27
|
-
serde.
|
|
28
|
-
serde_json
|
|
29
|
-
jsonc-parser.
|
|
30
|
-
directories
|
|
31
|
-
thiserror
|
|
32
|
-
anyhow
|
|
33
|
-
tracing
|
|
34
|
-
console
|
|
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 = {
|
|
38
|
-
napi-derive = {
|
|
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.
|
|
42
|
-
futures-util
|
|
43
|
-
tar
|
|
44
|
-
flate2
|
|
45
|
-
tokio-retry
|
|
46
|
-
indicatif.
|
|
47
|
-
http-body-util
|
|
48
|
-
bytes
|
|
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
|
|
51
|
+
plist = "1.8"
|
|
52
52
|
|
|
53
53
|
[build-dependencies]
|
|
54
54
|
napi-build = "2"
|
|
55
55
|
|
|
56
56
|
[dev-dependencies]
|
|
57
|
-
tempfile
|
|
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.
|
|
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": "
|
|
38
|
+
"postinstall": "echo 'Building native module (requires Rust 1.85+)...' && npm run build"
|
|
39
39
|
}
|
|
40
40
|
}
|
package/core.linux-x64-gnu.node
DELETED
|
Binary file
|