usecomputer 0.1.0 → 0.1.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/CHANGELOG.md +5 -0
- package/build.zig +5 -0
- package/build.zig.zon +2 -2
- package/dist/darwin-arm64/usecomputer.node +0 -0
- package/dist/darwin-x64/usecomputer.node +0 -0
- package/dist/linux-x64/usecomputer.node +0 -0
- package/package.json +12 -11
- package/LICENSE +0 -21
- package/dist/native-lib.cjs +0 -33
- package/dist/native-lib.d.cts +0 -7
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
All notable changes to `usecomputer` will be documented in this file.
|
|
6
6
|
|
|
7
|
+
## 0.1.1
|
|
8
|
+
|
|
9
|
+
1. **Fixed Linux native builds** — standalone executable now links libc correctly on Linux, fixing "C allocator is only available when linking against libc" errors.
|
|
10
|
+
2. **Fixed native host builds** — build script now omits `-Dtarget` when building for the host platform so Zig finds system libraries (X11, libpng, etc).
|
|
11
|
+
|
|
7
12
|
## 0.1.0
|
|
8
13
|
|
|
9
14
|
1. **Standalone executable** — `usecomputer` now ships as a self-contained binary.
|
package/build.zig
CHANGED
|
@@ -106,6 +106,11 @@ pub fn build(b: *std.Build) void {
|
|
|
106
106
|
.root_module = exe_mod,
|
|
107
107
|
});
|
|
108
108
|
linkPlatformDeps(exe.root_module, target_os);
|
|
109
|
+
// The standalone exe uses c_allocator and system libs that require libc.
|
|
110
|
+
// The N-API .node lib gets this automatically through napigen, but the
|
|
111
|
+
// exe needs it explicitly — otherwise native builds fail with
|
|
112
|
+
// "C allocator is only available when linking against libc".
|
|
113
|
+
exe.root_module.link_libc = true;
|
|
109
114
|
b.installArtifact(exe);
|
|
110
115
|
|
|
111
116
|
const run_exe = b.addRunArtifact(exe);
|
package/build.zig.zon
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
.lazy = true,
|
|
15
15
|
},
|
|
16
16
|
.zeke = .{
|
|
17
|
-
.url = "https://github.com/remorses/zeke/archive/
|
|
18
|
-
.hash = "zeke-0.1.0-
|
|
17
|
+
.url = "https://github.com/remorses/zeke/archive/87f8844f4a8d4427671cdb79bce5f501739eb54b.tar.gz",
|
|
18
|
+
.hash = "zeke-0.1.0-fnPIzGwUAQA4utTXwlr6mZo7vVhxTt1_h1MTpsBixLC0",
|
|
19
19
|
},
|
|
20
20
|
},
|
|
21
21
|
.paths = .{
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "usecomputer",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Fast computer automation CLI for AI agents. Control any desktop with accessibility snapshots, clicks, typing, scrolling, and more.",
|
|
6
6
|
"bin": "./bin.js",
|
|
@@ -39,6 +39,16 @@
|
|
|
39
39
|
"README.md",
|
|
40
40
|
"CHANGELOG.md"
|
|
41
41
|
],
|
|
42
|
+
"scripts": {
|
|
43
|
+
"build": "tsc && chmod +x bin.js",
|
|
44
|
+
"build:zig": "zig build",
|
|
45
|
+
"build:native": "tsx scripts/build.ts",
|
|
46
|
+
"build:native:macos": "tsx scripts/build.ts darwin-arm64 darwin-x64",
|
|
47
|
+
"vm": "tsx scripts/vm.ts",
|
|
48
|
+
"test": "vitest --run",
|
|
49
|
+
"typecheck": "tsc --noEmit",
|
|
50
|
+
"prepublishOnly": "[ -n \"$CI\" ] || (pnpm build && pnpm build:native:macos)"
|
|
51
|
+
},
|
|
42
52
|
"keywords": [
|
|
43
53
|
"computer-use",
|
|
44
54
|
"automation",
|
|
@@ -80,14 +90,5 @@
|
|
|
80
90
|
},
|
|
81
91
|
"optionalDependencies": {
|
|
82
92
|
"sharp": "^0.34.5"
|
|
83
|
-
},
|
|
84
|
-
"scripts": {
|
|
85
|
-
"build": "tsc && chmod +x bin.js",
|
|
86
|
-
"build:zig": "zig build",
|
|
87
|
-
"build:native": "tsx scripts/build.ts",
|
|
88
|
-
"build:native:macos": "tsx scripts/build.ts darwin-arm64 darwin-x64",
|
|
89
|
-
"vm": "tsx scripts/vm.ts",
|
|
90
|
-
"test": "vitest --run",
|
|
91
|
-
"typecheck": "tsc --noEmit"
|
|
92
93
|
}
|
|
93
|
-
}
|
|
94
|
+
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 Kimaki
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
package/dist/native-lib.cjs
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
// Loads the platform-specific usecomputer native addon built from Zig.
|
|
2
|
-
|
|
3
|
-
const os = require('node:os')
|
|
4
|
-
|
|
5
|
-
function loadCandidate(path) {
|
|
6
|
-
try {
|
|
7
|
-
return require(path)
|
|
8
|
-
} catch {
|
|
9
|
-
return undefined
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
function loadNativeModule() {
|
|
14
|
-
const dev = loadCandidate('../zig-out/lib/usecomputer.node')
|
|
15
|
-
if (dev) {
|
|
16
|
-
return dev
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
const platform = os.platform()
|
|
20
|
-
const arch = os.arch()
|
|
21
|
-
const target = `${platform}-${arch}`
|
|
22
|
-
|
|
23
|
-
const packaged = loadCandidate(`../dist/${target}/usecomputer.node`)
|
|
24
|
-
if (packaged) {
|
|
25
|
-
return packaged
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
return null
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
const native = loadNativeModule()
|
|
32
|
-
|
|
33
|
-
module.exports = { native }
|