@addai/node 0.8.1 → 0.9.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.
@@ -1,28 +1,28 @@
1
- #!/usr/bin/env node
2
- // node-pty ships POSIX prebuilds whose `spawn-helper` binary can lose its
3
- // executable bit when the npm tarball is extracted. macOS node-pty
4
- // posix_spawn()s that helper, so without +x every PTY spawn dies with
5
- // "posix_spawnp failed." — see src/pty-helper.ts for the full story.
6
- //
7
- // This used to hunt for <pkg>/node_modules/node-pty by hand, a path that
8
- // only exists when node-pty is NESTED. npm hoists it to the tree root under
9
- // npx, so the fix silently did nothing on exactly the installs that needed
10
- // it. The real logic now lives in the daemon (dist/pty-helper.js) and
11
- // resolves the package the way Node does. The daemon also repairs at boot,
12
- // so if dist isn't built yet (a source checkout installing before its first
13
- // build) we exit quietly instead of duplicating the logic here.
14
-
15
- let mod;
16
- try {
17
- mod = require('../dist/pty-helper.js');
18
- } catch {
19
- process.exit(0);
20
- }
21
-
22
- try {
23
- const line = mod.describeRepair(mod.ensurePtyHelperExecutable());
24
- if (line) process.stdout.write(`[entities-runtime] ${line}\n`);
25
- } catch (err) {
26
- process.stderr.write(`[entities-runtime] pty helper check failed: ${err.message}\n`);
27
- }
28
- process.exit(0);
1
+ #!/usr/bin/env node
2
+ // node-pty ships POSIX prebuilds whose `spawn-helper` binary can lose its
3
+ // executable bit when the npm tarball is extracted. macOS node-pty
4
+ // posix_spawn()s that helper, so without +x every PTY spawn dies with
5
+ // "posix_spawnp failed." — see src/pty-helper.ts for the full story.
6
+ //
7
+ // This used to hunt for <pkg>/node_modules/node-pty by hand, a path that
8
+ // only exists when node-pty is NESTED. npm hoists it to the tree root under
9
+ // npx, so the fix silently did nothing on exactly the installs that needed
10
+ // it. The real logic now lives in the daemon (dist/pty-helper.js) and
11
+ // resolves the package the way Node does. The daemon also repairs at boot,
12
+ // so if dist isn't built yet (a source checkout installing before its first
13
+ // build) we exit quietly instead of duplicating the logic here.
14
+
15
+ let mod;
16
+ try {
17
+ mod = require('../dist/pty-helper.js');
18
+ } catch {
19
+ process.exit(0);
20
+ }
21
+
22
+ try {
23
+ const line = mod.describeRepair(mod.ensurePtyHelperExecutable());
24
+ if (line) process.stdout.write(`[entities-runtime] ${line}\n`);
25
+ } catch (err) {
26
+ process.stderr.write(`[entities-runtime] pty helper check failed: ${err.message}\n`);
27
+ }
28
+ process.exit(0);