@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 +13 -7
- package/Cargo.toml +0 -34
- package/build.rs +0 -10
- package/computeruse.darwin-arm64.node +0 -0
- package/scripts/sync-version.js +0 -60
- package/src/desktop.rs +0 -2763
- package/src/element.rs +0 -1341
- package/src/exceptions.rs +0 -65
- package/src/lib.rs +0 -26
- package/src/locator.rs +0 -172
- package/src/selector.rs +0 -158
- package/src/types.rs +0 -963
- package/src/window_manager.rs +0 -342
- package/tests/comprehensive-ui-elements.test.js +0 -524
- package/tests/cross-app-verification.test.js +0 -243
- package/tests/desktop-verify.test.js +0 -169
- package/tests/element-chaining.test.js +0 -158
- package/tests/element-range.test.js +0 -207
- package/tests/element-scroll-into-view.test.js +0 -256
- package/tests/element-value.test.js +0 -264
- package/tests/execute-browser-script-wrapper.test.js +0 -135
- package/tests/fixtures/sample-browser-script.js +0 -7
- package/tests/fixtures/script-with-env.js +0 -16
- package/tests/locator-validate.test.js +0 -260
- package/tests/locator-waitfor.test.js +0 -286
- package/wrapper.ts +0 -394
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.
|
|
51
|
-
"@elizaos/computeruse-win32-x64-msvc": "0.24.
|
|
52
|
-
"@elizaos/computeruse-darwin-arm64": "0.24.
|
|
53
|
-
"@elizaos/computeruse-darwin-x64": "0.24.
|
|
54
|
-
"@elizaos/computeruse-linux-x64-gnu": "0.24.
|
|
55
|
-
"@elizaos/computeruse-linux-arm64-gnu": "0.24.
|
|
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.
|
|
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
|
package/scripts/sync-version.js
DELETED
|
@@ -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
|
-
}
|