@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 +1 -1
- package/src/adapters/openclaw.js +4 -3
package/package.json
CHANGED
package/src/adapters/openclaw.js
CHANGED
|
@@ -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
|
|
217
|
-
const
|
|
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
|
|
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
|
}
|