@agent-link/agent 0.1.193 → 0.1.194
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 +2 -4
- package/scripts/postinstall.js +0 -16
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agent-link/agent",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.194",
|
|
4
4
|
"description": "AgentLink local agent CLI",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -24,15 +24,13 @@
|
|
|
24
24
|
"main": "dist/index.js",
|
|
25
25
|
"types": "dist/index.d.ts",
|
|
26
26
|
"files": [
|
|
27
|
-
"dist"
|
|
28
|
-
"scripts"
|
|
27
|
+
"dist"
|
|
29
28
|
],
|
|
30
29
|
"bin": {
|
|
31
30
|
"agentlink-client": "dist/cli.js"
|
|
32
31
|
},
|
|
33
32
|
"scripts": {
|
|
34
33
|
"build": "tsc",
|
|
35
|
-
"postinstall": "node scripts/postinstall.js",
|
|
36
34
|
"prepublishOnly": "npm run build",
|
|
37
35
|
"dev": "tsx watch src/index.ts",
|
|
38
36
|
"start": "node dist/index.js"
|
package/scripts/postinstall.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
// Fix node-pty spawn-helper permissions on macOS/Linux.
|
|
2
|
-
// npm install may strip execute permission from prebuild binaries,
|
|
3
|
-
// causing "posix_spawnp failed" when opening a terminal.
|
|
4
|
-
try {
|
|
5
|
-
if (process.platform === 'win32') process.exit(0);
|
|
6
|
-
const fs = require('fs');
|
|
7
|
-
const path = require('path');
|
|
8
|
-
const base = path.join(__dirname, '..', 'node_modules', 'node-pty', 'prebuilds');
|
|
9
|
-
if (!fs.existsSync(base)) process.exit(0);
|
|
10
|
-
for (const dir of fs.readdirSync(base)) {
|
|
11
|
-
const helper = path.join(base, dir, 'spawn-helper');
|
|
12
|
-
if (fs.existsSync(helper)) fs.chmodSync(helper, 0o755);
|
|
13
|
-
}
|
|
14
|
-
} catch (e) {
|
|
15
|
-
// Non-fatal: terminal feature may not work but agent still runs
|
|
16
|
-
}
|