@openagents-org/agent-launcher 0.2.89 → 0.2.90

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.89",
3
+ "version": "0.2.90",
4
4
  "description": "OpenAgents Launcher — install, configure, and run AI coding agents from your terminal",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -111,8 +111,8 @@ class ClaudeAdapter extends BaseAdapter {
111
111
  const home = os.homedir();
112
112
  const candidates = IS_WINDOWS
113
113
  ? [path.join(home, '.openagents', 'nodejs', 'node.exe')]
114
- : [path.join(home, '.openagents', 'nodejs', 'bin', 'node'),
115
- path.join(home, '.openagents', 'nodejs', 'node')];
114
+ : [path.join(home, '.openagents', 'nodejs', 'node'),
115
+ path.join(home, '.openagents', 'nodejs', 'bin', 'node')];
116
116
  for (const c of candidates) {
117
117
  if (fs.existsSync(c)) return c;
118
118
  }
@@ -247,9 +247,9 @@ class OpenClawAdapter extends BaseAdapter {
247
247
 
248
248
  // Always spawn node + openclaw.mjs directly (no shims, no cmd.exe, cross-platform)
249
249
  const portableDir = path.join(os.homedir(), '.openagents', 'nodejs');
250
- const nodeBin = IS_WINDOWS
251
- ? path.join(portableDir, 'node.exe')
252
- : path.join(portableDir, 'bin', 'node');
250
+ // Unified path first (symlink on Unix), then legacy bin/ fallback
251
+ const nodeUnified = path.join(portableDir, IS_WINDOWS ? 'node.exe' : 'node');
252
+ const nodeBin = fs.existsSync(nodeUnified) ? nodeUnified : path.join(portableDir, 'bin', 'node');
253
253
  // Check isolated runtime first, then legacy
254
254
  const runtimeMjs = path.join(getRuntimePrefix('openclaw'), 'node_modules', 'openclaw', 'openclaw.mjs');
255
255
  const legacyMjs = path.join(portableDir, 'node_modules', 'openclaw', 'openclaw.mjs');