thrust-cli 1.0.4 → 1.0.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.
Files changed (2) hide show
  1. package/index.js +8 -4
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -70,10 +70,13 @@ async function enableAutoLaunchSafe() {
70
70
  }
71
71
 
72
72
  try {
73
+ // FIX: Combine Node executable and script path into a single safely-quoted string
74
+ // This ensures Windows registry executes exactly: "C:\Program Files\nodejs\node.exe" "C:\path\to\index.js"
75
+ const launchPath = `"${process.execPath}" "${__filename}"`;
76
+
73
77
  const thrustAutoLauncher = new AutoLaunch({
74
78
  name: 'ThrustAgent',
75
- path: process.execPath,
76
- args: [__filename]
79
+ path: launchPath
77
80
  });
78
81
 
79
82
  const isEnabled = await thrustAutoLauncher.isEnabled();
@@ -81,8 +84,9 @@ async function enableAutoLaunchSafe() {
81
84
  await thrustAutoLauncher.enable();
82
85
  console.log('⚙️ Added to OS Startup programs.');
83
86
  } else {
84
- // NEW: Always reassure the user that startup is active!
85
- console.log('⚙️ OS Startup auto-launch is active.');
87
+ // Because we changed the path format, we should overwrite the broken registry key
88
+ await thrustAutoLauncher.enable();
89
+ console.log('⚙️ OS Startup auto-launch is active (Registry updated).');
86
90
  }
87
91
  } catch (err) {
88
92
  console.log(`⚠️ Auto-launch setup skipped (not supported on this setup).`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thrust-cli",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "The local agent for Thrust AI Director",
5
5
  "type": "module",
6
6
  "homepage": "https://thrust.web.app",