@elizaos/computeruse 0.24.20 → 0.24.22

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/package.json CHANGED
@@ -31,6 +31,12 @@
31
31
  "linux"
32
32
  ],
33
33
  "main": "wrapper.js",
34
+ "files": [
35
+ "index.js",
36
+ "index.d.ts",
37
+ "wrapper.js",
38
+ "wrapper.d.ts"
39
+ ],
34
40
  "publishConfig": {
35
41
  "access": "public"
36
42
  },
@@ -47,12 +53,12 @@
47
53
  }
48
54
  },
49
55
  "optionalDependencies": {
50
- "@elizaos/computeruse-win32-arm64-msvc": "0.24.20",
51
- "@elizaos/computeruse-win32-x64-msvc": "0.24.20",
52
- "@elizaos/computeruse-darwin-arm64": "0.24.20",
53
- "@elizaos/computeruse-darwin-x64": "0.24.20",
54
- "@elizaos/computeruse-linux-x64-gnu": "0.24.20",
55
- "@elizaos/computeruse-linux-arm64-gnu": "0.24.20"
56
+ "@elizaos/computeruse-win32-arm64-msvc": "0.24.22",
57
+ "@elizaos/computeruse-win32-x64-msvc": "0.24.22",
58
+ "@elizaos/computeruse-darwin-arm64": "0.24.22",
59
+ "@elizaos/computeruse-darwin-x64": "0.24.22",
60
+ "@elizaos/computeruse-linux-x64-gnu": "0.24.22",
61
+ "@elizaos/computeruse-linux-arm64-gnu": "0.24.22"
56
62
  },
57
63
  "repository": {
58
64
  "type": "git",
@@ -70,5 +76,5 @@
70
76
  "test-hook": "powershell.exe -ExecutionPolicy Bypass -File \"../../.git/hooks/pre-push.ps1\""
71
77
  },
72
78
  "types": "wrapper.d.ts",
73
- "version": "0.24.20"
79
+ "version": "0.24.22"
74
80
  }
package/Cargo.toml DELETED
@@ -1,34 +0,0 @@
1
- [package]
2
- name = "computeruse-node-bindings"
3
- version.workspace = true
4
- edition.workspace = true
5
-
6
- [lib]
7
- name = "computeruse_node_bindings"
8
- crate-type = ["cdylib"]
9
-
10
- [dependencies]
11
- # NAPI for Node.js bindings
12
- # Default enable napi4 feature, see https://nodejs.org/api/n-api.html#node-api-version-matrix
13
- napi = { version = "2.12.2", default-features = false, features = [
14
- "napi4",
15
- "tokio_rt",
16
- ] }
17
- napi-derive = "2.12.2"
18
- computeruse = { workspace = true }
19
- tracing = { workspace = true }
20
- tracing-subscriber = { workspace = true }
21
- serde = { version = "1.0", features = ["derive"] }
22
- serde_json = "1.0"
23
- # For Gemini Vision image processing and HTTP requests
24
- base64 = "0.22"
25
- image = { version = "0.25", default-features = false, features = ["png"] }
26
- reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }
27
- # For blocking on async in sync context
28
- futures = "0.3"
29
-
30
- [build-dependencies]
31
- napi-build = "2.0.1"
32
-
33
- [target.'cfg(target_os = "windows")'.build-dependencies]
34
- static_vcruntime = "2.0"
package/build.rs DELETED
@@ -1,10 +0,0 @@
1
- extern crate napi_build;
2
-
3
- fn main() {
4
- // Statically link VC runtime to avoid VCRUNTIME140.dll dependency
5
- // This ensures the native module works on fresh Windows installs and Windows Sandbox
6
- #[cfg(target_os = "windows")]
7
- static_vcruntime::metabuild();
8
-
9
- napi_build::setup();
10
- }
Binary file
@@ -1,60 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- const fs = require('fs');
4
- const path = require('path');
5
-
6
- // Read the workspace Cargo.toml
7
- const workspaceCargoPath = path.join(__dirname, '../../../Cargo.toml');
8
- const cargoContent = fs.readFileSync(workspaceCargoPath, 'utf8');
9
-
10
- // Extract version from Cargo.toml
11
- const versionMatch = cargoContent.match(/^version\s*=\s*"([^"]+)"/m);
12
- if (!versionMatch) {
13
- console.error('Could not find version in workspace Cargo.toml');
14
- process.exit(1);
15
- }
16
-
17
- const version = versionMatch[1];
18
- console.log(`Found version: ${version}`);
19
-
20
- // Read package.json
21
- const packagePath = path.join(__dirname, '../package.json');
22
- const packageContent = JSON.parse(fs.readFileSync(packagePath, 'utf8'));
23
-
24
- // Update version and optionalDependencies
25
- packageContent.version = version;
26
-
27
- // Update optionalDependencies to use the same version
28
- if (packageContent.optionalDependencies) {
29
- for (const dep in packageContent.optionalDependencies) {
30
- if (dep.startsWith('@elizaos/computeruse-')) {
31
- packageContent.optionalDependencies[dep] = version;
32
- }
33
- }
34
- }
35
-
36
- // Write back to package.json
37
- fs.writeFileSync(packagePath, JSON.stringify(packageContent, null, 2) + '\n');
38
-
39
- console.log(`Updated package.json version to: ${version}`);
40
-
41
- // Also update platform packages
42
- const npmDir = path.join(__dirname, '../npm');
43
- if (fs.existsSync(npmDir)) {
44
- const platforms = fs.readdirSync(npmDir);
45
- for (const platform of platforms) {
46
- const platformPath = path.join(npmDir, platform);
47
- const platformPackagePath = path.join(platformPath, 'package.json');
48
-
49
- if (fs.existsSync(platformPackagePath) && fs.statSync(platformPath).isDirectory()) {
50
- try {
51
- const platformPackage = JSON.parse(fs.readFileSync(platformPackagePath, 'utf8'));
52
- platformPackage.version = version;
53
- fs.writeFileSync(platformPackagePath, JSON.stringify(platformPackage, null, 2) + '\n');
54
- console.log(`Updated ${platform} package version to: ${version}`);
55
- } catch (error) {
56
- console.warn(`Failed to update ${platform} package:`, error.message);
57
- }
58
- }
59
- }
60
- }