linkgravity 1.5.11 → 1.5.12

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.
Files changed (2) hide show
  1. package/bin/cli.js +8 -2
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -45,8 +45,14 @@ function runPm2(args, silent = true) {
45
45
  const result = spawnSync(process.execPath, [PM2_BIN, ...args], {
46
46
  stdio: stdioOpt,
47
47
  cwd: path.join(__dirname, '..'),
48
- // pm2 gives Python a pipe not a TTY, so it block-buffers stdout and can sit on log lines indefinitely - force line buffering.
49
- env: { ...process.env, PYTHONUNBUFFERED: '1' },
48
+ env: {
49
+ ...process.env,
50
+ // pm2 gives Python a pipe not a TTY, so it block-buffers stdout and can sit on log lines indefinitely - force line buffering.
51
+ PYTHONUNBUFFERED: '1',
52
+ // Version managers (fnm, nvm) put node on PATH from a shell hook the daemon never runs,
53
+ // so the bot's own `node` lookup for voice-service would fail without this.
54
+ PATH: `${path.dirname(process.execPath)}${path.delimiter}${process.env.PATH || ''}`,
55
+ },
50
56
  });
51
57
 
52
58
  if (result.error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "linkgravity",
3
- "version": "1.5.11",
3
+ "version": "1.5.12",
4
4
  "description": "Discord/Telegram bot bridge for the Antigravity (agy) CLI, with voice interaction support",
5
5
  "scripts": {
6
6
  "start": "node npm-scripts/run-dev.js",