@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
package/src/adapters/claude.js
CHANGED
|
@@ -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', '
|
|
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
|
}
|
package/src/adapters/openclaw.js
CHANGED
|
@@ -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
|
-
|
|
251
|
-
|
|
252
|
-
|
|
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');
|