@amaster.ai/pi-computer-use 0.1.2-beta.6 → 0.1.2-beta.8
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/bin/darwin-arm64/CuaDriver.app/Contents/CodeResources +0 -0
- package/bin/darwin-arm64/CuaDriver.app/Contents/Info.plist +32 -0
- package/bin/darwin-arm64/CuaDriver.app/Contents/Resources/Skills/cua-driver/README.md +140 -0
- package/bin/darwin-arm64/CuaDriver.app/Contents/Resources/Skills/cua-driver/RECORDING.md +113 -0
- package/bin/darwin-arm64/CuaDriver.app/Contents/Resources/Skills/cua-driver/SKILL.md +887 -0
- package/bin/darwin-arm64/CuaDriver.app/Contents/Resources/Skills/cua-driver/TESTS.md +232 -0
- package/bin/darwin-arm64/CuaDriver.app/Contents/Resources/Skills/cua-driver/WEB_APPS.md +471 -0
- package/bin/darwin-arm64/CuaDriver.app/Contents/_CodeSignature/CodeResources +172 -0
- package/bin/darwin-x64/CuaDriver.app/Contents/CodeResources +0 -0
- package/bin/darwin-x64/CuaDriver.app/Contents/Info.plist +32 -0
- package/bin/darwin-x64/CuaDriver.app/Contents/Resources/Skills/cua-driver/README.md +140 -0
- package/bin/darwin-x64/CuaDriver.app/Contents/Resources/Skills/cua-driver/RECORDING.md +113 -0
- package/bin/darwin-x64/CuaDriver.app/Contents/Resources/Skills/cua-driver/SKILL.md +887 -0
- package/bin/darwin-x64/CuaDriver.app/Contents/Resources/Skills/cua-driver/TESTS.md +232 -0
- package/bin/darwin-x64/CuaDriver.app/Contents/Resources/Skills/cua-driver/WEB_APPS.md +471 -0
- package/bin/darwin-x64/CuaDriver.app/Contents/_CodeSignature/CodeResources +172 -0
- package/dist/mcp-client.d.ts.map +1 -1
- package/dist/mcp-client.js +9 -2
- package/dist/mcp-client.js.map +1 -1
- package/package.json +5 -3
- package/scripts/postinstall.js +29 -0
- /package/bin/darwin-arm64/{cua-driver → CuaDriver.app/Contents/MacOS/cua-driver} +0 -0
- /package/bin/darwin-x64/{cua-driver → CuaDriver.app/Contents/MacOS/cua-driver} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amaster.ai/pi-computer-use",
|
|
3
|
-
"version": "0.1.2-beta.
|
|
3
|
+
"version": "0.1.2-beta.8",
|
|
4
4
|
"description": "Pi extension for desktop automation via cua-driver-rs with computer_use_ prefixed tools",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package",
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"files": [
|
|
30
30
|
"dist",
|
|
31
31
|
"bin",
|
|
32
|
+
"scripts",
|
|
32
33
|
"README.md"
|
|
33
34
|
],
|
|
34
35
|
"pi": {
|
|
@@ -46,7 +47,7 @@
|
|
|
46
47
|
},
|
|
47
48
|
"dependencies": {
|
|
48
49
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
49
|
-
"@amaster.ai/pi-shared": "0.1.2-beta.
|
|
50
|
+
"@amaster.ai/pi-shared": "0.1.2-beta.8"
|
|
50
51
|
},
|
|
51
52
|
"peerDependencies": {
|
|
52
53
|
"@earendil-works/pi-ai": ">=0.74.0",
|
|
@@ -63,6 +64,7 @@
|
|
|
63
64
|
"scripts": {
|
|
64
65
|
"build": "tsup",
|
|
65
66
|
"typecheck": "tsc -b --pretty false",
|
|
66
|
-
"test": "vitest run src"
|
|
67
|
+
"test": "vitest run src",
|
|
68
|
+
"postinstall": "node scripts/postinstall.js"
|
|
67
69
|
}
|
|
68
70
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { chmodSync, existsSync } from 'node:fs';
|
|
3
|
+
import { join, dirname } from 'node:path';
|
|
4
|
+
import { fileURLToPath } from 'node:url';
|
|
5
|
+
|
|
6
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
7
|
+
const binDir = join(__dirname, '..', 'bin');
|
|
8
|
+
|
|
9
|
+
const platform = process.platform === 'win32' ? 'win32-x64' : `${process.platform}-${process.arch}`;
|
|
10
|
+
const platformDir = join(binDir, platform);
|
|
11
|
+
|
|
12
|
+
if (process.platform === 'win32') {
|
|
13
|
+
process.exit(0);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
let binPath;
|
|
17
|
+
if (process.platform === 'darwin') {
|
|
18
|
+
binPath = join(platformDir, 'CuaDriver.app', 'Contents', 'MacOS', 'cua-driver');
|
|
19
|
+
} else {
|
|
20
|
+
binPath = join(platformDir, 'cua-driver');
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
if (existsSync(binPath)) {
|
|
24
|
+
try {
|
|
25
|
+
chmodSync(binPath, 0o755);
|
|
26
|
+
} catch {
|
|
27
|
+
// Non-fatal: runtime will retry or prompt user
|
|
28
|
+
}
|
|
29
|
+
}
|
|
File without changes
|
|
File without changes
|