@github/computer-use-mcp 0.1.50 → 0.1.54

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/index.js CHANGED
@@ -1,20 +1,21 @@
1
- #!/usr/bin/env node
2
1
  import { spawn } from "node:child_process";
3
2
  import { existsSync } from "node:fs";
4
3
  import path from "node:path";
5
4
  import { fileURLToPath } from "node:url";
6
5
 
6
+ const modulePath = fileURLToPath(import.meta.url);
7
+
7
8
  export function main(args = process.argv.slice(2)) {
8
9
  let binary;
9
10
  switch (process.platform) {
10
11
  case "darwin":
11
- binary = path.join(path.dirname(fileURLToPath(import.meta.url)), "prebuilds", `darwin-${process.arch}`, "computer-use-mcp");
12
+ binary = path.join(path.dirname(modulePath), "prebuilds", `darwin-${process.arch}`, "computer-use-mcp");
12
13
  break;
13
14
  case "win32":
14
- binary = path.join(path.dirname(fileURLToPath(import.meta.url)), "prebuilds", `win32-${process.arch}`, "computer-use-mcp.exe");
15
+ binary = path.join(path.dirname(modulePath), "prebuilds", `win32-${process.arch}`, "computer-use-mcp.exe");
15
16
  break;
16
17
  case "linux":
17
- binary = path.join(path.dirname(fileURLToPath(import.meta.url)), "prebuilds", `linux-${process.arch}`, "computer-use-mcp");
18
+ binary = path.join(path.dirname(modulePath), "prebuilds", `linux-${process.arch}`, "computer-use-mcp");
18
19
  break;
19
20
  default:
20
21
  throw new Error(`Unsupported platform: ${process.platform}-${process.arch}`);
@@ -32,7 +33,3 @@ export function main(args = process.argv.slice(2)) {
32
33
  process.exit(code ?? 1);
33
34
  });
34
35
  }
35
-
36
- if (process.argv[1] && path.resolve(process.argv[1]) === fileURLToPath(import.meta.url)) {
37
- main();
38
- }
package/main.js ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+ import { main } from "./index.js";
3
+
4
+ main();
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "author": "GitHub",
3
- "bin": "index.js",
3
+ "bin": "main.js",
4
4
  "description": "Computer Use MCP Server",
5
5
  "exports": {
6
6
  ".": "./index.js"
7
7
  },
8
8
  "files": [
9
9
  "index.js",
10
+ "main.js",
10
11
  "prebuilds"
11
12
  ],
12
13
  "main": "index.js",
@@ -16,5 +17,5 @@
16
17
  "url": "https://github.com/github/computer-use.git"
17
18
  },
18
19
  "type": "module",
19
- "version": "0.1.50"
20
+ "version": "0.1.54"
20
21
  }
@@ -21,9 +21,9 @@
21
21
  <key>CFBundlePackageType</key>
22
22
  <string>APPL</string>
23
23
  <key>CFBundleShortVersionString</key>
24
- <string>0.1.50</string>
24
+ <string>0.1.54</string>
25
25
  <key>CFBundleVersion</key>
26
- <string>0.1.50</string>
26
+ <string>0.1.54</string>
27
27
  <key>LSBackgroundOnly</key>
28
28
  <false/>
29
29
  <key>LSUIElement</key>
@@ -21,9 +21,9 @@
21
21
  <key>CFBundlePackageType</key>
22
22
  <string>APPL</string>
23
23
  <key>CFBundleShortVersionString</key>
24
- <string>0.1.50</string>
24
+ <string>0.1.54</string>
25
25
  <key>CFBundleVersion</key>
26
- <string>0.1.50</string>
26
+ <string>0.1.54</string>
27
27
  <key>LSBackgroundOnly</key>
28
28
  <false/>
29
29
  <key>LSUIElement</key>