@agent-sh/computer-use-linux 0.4.10 → 0.5.0
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/README.md +21 -7
- package/npm/README.md +6 -0
- package/package.json +26 -3
- package/pi/extension/THIRD_PARTY_NOTICES.txt +671 -0
- package/pi/extension/generated-tools.ts +1334 -0
- package/pi/extension/index.ts +589 -196
- package/pi/extension/mcp-client.bundle.cjs +62 -0
- package/skills/computer-use-linux/SKILL.md +20 -10
- package/skills/computer-use-linux/references/pi-setup.md +95 -24
package/README.md
CHANGED
|
@@ -243,20 +243,34 @@ Restart Claude Desktop. The tools should appear in the tools list.
|
|
|
243
243
|
### Pi Coding Agent
|
|
244
244
|
|
|
245
245
|
```bash
|
|
246
|
-
pi install npm:pi-mcp-adapter
|
|
247
246
|
pi install npm:@agent-sh/computer-use-linux
|
|
248
247
|
```
|
|
249
248
|
|
|
250
|
-
Restart
|
|
249
|
+
Restart Pi or run `/reload`. The package exposes one small loader initially;
|
|
250
|
+
the real tools keep their upstream schemas and are enabled only when Computer
|
|
251
|
+
Use is needed:
|
|
252
|
+
|
|
253
|
+
Native tools require Pi 0.84.4 or newer (Node.js 22.19 or newer). The
|
|
254
|
+
standalone npm CLI wrapper continues to support Node.js 18 or newer.
|
|
255
|
+
|
|
256
|
+
```
|
|
257
|
+
computer_use_linux_tools({ tools: ["doctor", "list_windows"] })
|
|
258
|
+
computer_use_linux_doctor({})
|
|
259
|
+
computer_use_linux_list_windows({})
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
You can also search by capability:
|
|
251
263
|
|
|
252
264
|
```
|
|
253
|
-
|
|
254
|
-
mcp({ search: "windows" }) # search for window tools
|
|
255
|
-
mcp({ tool: "computer_use_linux_doctor" }) # run readiness check
|
|
256
|
-
mcp({ tool: "computer_use_linux_list_windows" }) # list desktop windows
|
|
265
|
+
computer_use_linux_tools({ query: "observe a window and click a control" })
|
|
257
266
|
```
|
|
258
267
|
|
|
259
|
-
|
|
268
|
+
No separate MCP adapter or manual MCP configuration is required. Pi starts one
|
|
269
|
+
computer-use-linux process lazily on the first real tool call, reuses it for the
|
|
270
|
+
session so accessibility snapshots remain valid, serializes desktop actions,
|
|
271
|
+
and closes it on reload, session switch, or exit. See the
|
|
272
|
+
[Pi setup guide](skills/computer-use-linux/references/pi-setup.md) for migration
|
|
273
|
+
from older adapter-based installs.
|
|
260
274
|
|
|
261
275
|
### Hermes Agent
|
|
262
276
|
|
package/npm/README.md
CHANGED
|
@@ -12,6 +12,7 @@ desktop actions.
|
|
|
12
12
|
```bash
|
|
13
13
|
npm install -g @agent-sh/computer-use-linux
|
|
14
14
|
computer-use-linux doctor
|
|
15
|
+
pi install npm:@agent-sh/computer-use-linux
|
|
15
16
|
hermes skills tap add agent-sh/computer-use-linux
|
|
16
17
|
hermes skills install agent-sh/computer-use-linux/computer-use-linux
|
|
17
18
|
hermes mcp add computer-use-linux --command computer-use-linux --args mcp
|
|
@@ -35,6 +36,11 @@ GitHub release for this package version and verifies the `.sha256` asset before
|
|
|
35
36
|
installing it. It also installs the matching `computer-use-linux-cosmic` helper
|
|
36
37
|
used for COSMIC desktop window targeting.
|
|
37
38
|
|
|
39
|
+
When installed through Pi, the package supplies native, dynamically loaded
|
|
40
|
+
`computer_use_linux_*` tools. No separate MCP adapter or manual MCP
|
|
41
|
+
configuration is required. Native tools require Pi 0.84.4 or newer; the
|
|
42
|
+
standalone CLI wrapper retains Node.js 18 support.
|
|
43
|
+
|
|
38
44
|
If you already built or installed the binary yourself, set
|
|
39
45
|
`COMPUTER_USE_LINUX_BIN=/path/to/computer-use-linux` to make the wrapper use
|
|
40
46
|
that executable instead.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agent-sh/computer-use-linux",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Linux desktop-control MCP server: AT-SPI accessibility trees, Wayland/X11 input, screenshots, and compositor window targeting.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -40,18 +40,41 @@
|
|
|
40
40
|
"npm/README.md",
|
|
41
41
|
"npm/bin/computer-use-linux.js",
|
|
42
42
|
"npm/install.js",
|
|
43
|
-
"pi/"
|
|
43
|
+
"pi/extension/index.ts",
|
|
44
|
+
"pi/extension/generated-tools.ts",
|
|
45
|
+
"pi/extension/mcp-client.bundle.cjs",
|
|
46
|
+
"pi/extension/THIRD_PARTY_NOTICES.txt"
|
|
44
47
|
],
|
|
45
48
|
"pi": {
|
|
46
49
|
"extensions": ["./pi/extension/index.ts"],
|
|
47
50
|
"skills": ["./skills/computer-use-linux/SKILL.md"]
|
|
48
51
|
},
|
|
49
52
|
"scripts": {
|
|
53
|
+
"build:pi": "npm run build --prefix pi",
|
|
54
|
+
"check:pi-bundle": "npm run build:check --prefix pi",
|
|
50
55
|
"postinstall": "node npm/install.js",
|
|
51
|
-
"pack:check": "
|
|
56
|
+
"pack:check": "node scripts/check_npm_package.mjs",
|
|
57
|
+
"test:pi": "npm test --prefix pi",
|
|
58
|
+
"typecheck:pi": "npm run typecheck --prefix pi",
|
|
52
59
|
"test:wrapper": "node npm/bin/computer-use-linux.js --help"
|
|
53
60
|
},
|
|
54
61
|
"engines": {
|
|
55
62
|
"node": ">=18"
|
|
63
|
+
},
|
|
64
|
+
"peerDependencies": {
|
|
65
|
+
"@earendil-works/pi-ai": "*",
|
|
66
|
+
"@earendil-works/pi-coding-agent": "*",
|
|
67
|
+
"typebox": "*"
|
|
68
|
+
},
|
|
69
|
+
"peerDependenciesMeta": {
|
|
70
|
+
"@earendil-works/pi-ai": {
|
|
71
|
+
"optional": true
|
|
72
|
+
},
|
|
73
|
+
"@earendil-works/pi-coding-agent": {
|
|
74
|
+
"optional": true
|
|
75
|
+
},
|
|
76
|
+
"typebox": {
|
|
77
|
+
"optional": true
|
|
78
|
+
}
|
|
56
79
|
}
|
|
57
80
|
}
|