@openagents-org/agent-launcher 0.2.23 → 0.2.24

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openagents-org/agent-launcher",
3
- "version": "0.2.23",
3
+ "version": "0.2.24",
4
4
  "description": "OpenAgents Launcher — install, configure, and run AI coding agents from your terminal",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -213,10 +213,11 @@ class OpenClawAdapter extends BaseAdapter {
213
213
 
214
214
  if (IS_WINDOWS) {
215
215
  // Find node.exe to spawn openclaw.mjs directly (unbuffered stderr)
216
- const { getExtraBinDirs } = require('../paths');
217
- const extraDirs = getExtraBinDirs();
216
+ const portableNodeDir = path.join(os.homedir(), '.openagents', 'nodejs');
217
+ const searchDirs = [portableNodeDir];
218
+ try { const { getExtraBinDirs } = require('../paths'); searchDirs.push(...getExtraBinDirs()); } catch {}
218
219
  let nodeBin = null;
219
- for (const d of extraDirs) {
220
+ for (const d of searchDirs) {
220
221
  const candidate = path.join(d, 'node.exe');
221
222
  if (fs.existsSync(candidate)) { nodeBin = candidate; break; }
222
223
  }