staklink 0.3.4 → 0.3.5

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.
@@ -25719,7 +25719,16 @@ var PM2Manager = class {
25719
25719
  async execCommand(command, env) {
25720
25720
  const execOpts = {
25721
25721
  cwd: this.cwd,
25722
- ...env && { env: { ...process.env, ...env } }
25722
+ shell: "/bin/bash",
25723
+ // Use bash explicitly since /bin/sh might have issues
25724
+ env: {
25725
+ ...process.env,
25726
+ // Important: inherit ALL environment
25727
+ PATH: process.env.PATH || "/usr/local/bin:/usr/bin:/bin",
25728
+ HOME: process.env.HOME || "/root",
25729
+ ...env
25730
+ // Then override with custom env
25731
+ }
25723
25732
  };
25724
25733
  const { stdout, stderr } = await exec2(command, execOpts);
25725
25734
  return stdout || stderr;
@@ -33892,7 +33901,7 @@ var SSEManager = class {
33892
33901
  var sseManager = new SSEManager();
33893
33902
 
33894
33903
  // src/proxy/version.ts
33895
- var VERSION = "0.3.4";
33904
+ var VERSION = "0.3.5";
33896
33905
 
33897
33906
  // node_modules/uuid/dist/esm/stringify.js
33898
33907
  var byteToHex = [];
@@ -3693,7 +3693,16 @@ var PM2Manager = class {
3693
3693
  async execCommand(command, env) {
3694
3694
  const execOpts = {
3695
3695
  cwd: this.cwd,
3696
- ...env && { env: { ...process.env, ...env } }
3696
+ shell: "/bin/bash",
3697
+ // Use bash explicitly since /bin/sh might have issues
3698
+ env: {
3699
+ ...process.env,
3700
+ // Important: inherit ALL environment
3701
+ PATH: process.env.PATH || "/usr/local/bin:/usr/bin:/bin",
3702
+ HOME: process.env.HOME || "/root",
3703
+ ...env
3704
+ // Then override with custom env
3705
+ }
3697
3706
  };
3698
3707
  const { stdout, stderr } = await exec2(command, execOpts);
3699
3708
  return stdout || stderr;
@@ -10896,7 +10905,7 @@ var glob = Object.assign(glob_, {
10896
10905
  glob.glob = glob;
10897
10906
 
10898
10907
  // src/proxy/version.ts
10899
- var VERSION = "0.3.2";
10908
+ var VERSION = "0.3.5";
10900
10909
 
10901
10910
  // src/cli.ts
10902
10911
  var STAKLINK_PROXY = "staklink-proxy";
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "staklink",
3
3
  "displayName": "staklink",
4
4
  "description": "staklink process manager",
5
- "version": "0.3.4",
5
+ "version": "0.3.5",
6
6
  "type": "module",
7
7
  "publisher": "stakwork",
8
8
  "engines": {