pty-manager 1.6.7 → 1.6.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/README.md CHANGED
@@ -37,6 +37,12 @@ sudo apt-get install build-essential
37
37
  npm install --global windows-build-tools
38
38
  ```
39
39
 
40
+ On some platforms, `node-pty`'s prebuilt `spawn-helper` binary may lack execute permissions after install. If you see `EACCES` errors when spawning sessions, fix with:
41
+
42
+ ```bash
43
+ chmod +x node_modules/node-pty/build/Release/spawn-helper
44
+ ```
45
+
40
46
  ## Quick Start
41
47
 
42
48
  ```typescript
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pty-manager",
3
- "version": "1.6.7",
3
+ "version": "1.6.8",
4
4
  "description": "PTY session manager with lifecycle management, pluggable adapters, and blocking prompt detection",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -20,7 +20,6 @@
20
20
  },
21
21
  "files": [
22
22
  "dist",
23
- "scripts",
24
23
  "README.md",
25
24
  "LICENSE"
26
25
  ],
@@ -63,7 +62,6 @@
63
62
  "node": ">=18"
64
63
  },
65
64
  "scripts": {
66
- "postinstall": "node scripts/postinstall.js",
67
65
  "build": "tsup",
68
66
  "dev": "tsup --watch",
69
67
  "test": "vitest",
@@ -1,33 +0,0 @@
1
- const fs = require('fs');
2
- const path = require('path');
3
-
4
- const platform = `${process.platform}-${process.arch}`;
5
-
6
- // spawn-helper is in node-pty's prebuilds directory
7
- const possiblePaths = [
8
- // When installed as dependency (node_modules/pty-manager/node_modules/node-pty)
9
- path.join(__dirname, '..', 'node_modules', 'node-pty', 'prebuilds', platform, 'spawn-helper'),
10
- // When in monorepo with hoisted deps
11
- path.join(__dirname, '..', '..', 'node-pty', 'prebuilds', platform, 'spawn-helper'),
12
- // When installed at root level
13
- path.join(__dirname, '..', '..', '..', 'node-pty', 'prebuilds', platform, 'spawn-helper'),
14
- ];
15
-
16
- let fixed = false;
17
- for (const helper of possiblePaths) {
18
- if (fs.existsSync(helper)) {
19
- try {
20
- fs.chmodSync(helper, 0o755);
21
- console.log(`[pty-manager] Fixed spawn-helper permissions at ${helper}`);
22
- fixed = true;
23
- break;
24
- } catch (err) {
25
- // May not have permission, continue to next path
26
- }
27
- }
28
- }
29
-
30
- if (!fixed && process.platform !== 'win32') {
31
- // Only warn on Unix-like systems where this matters
32
- console.log(`[pty-manager] spawn-helper not found for ${platform} (this is normal on some setups)`);
33
- }