@openagents-org/agent-connector 0.2.1 → 0.2.2
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 +7 -2
package/package.json
CHANGED
package/src/adapters/openclaw.js
CHANGED
|
@@ -194,9 +194,14 @@ class OpenClawAdapter extends BaseAdapter {
|
|
|
194
194
|
|
|
195
195
|
const spawnEnv = { ...process.env };
|
|
196
196
|
if (IS_WINDOWS) {
|
|
197
|
+
// Ensure node and npm global bin are on PATH
|
|
198
|
+
const nodeBinDir = path.dirname(process.execPath);
|
|
197
199
|
const npmBin = path.join(process.env.APPDATA || '', 'npm');
|
|
198
|
-
|
|
199
|
-
|
|
200
|
+
const extraPaths = [nodeBinDir, npmBin].filter(Boolean);
|
|
201
|
+
for (const p of extraPaths) {
|
|
202
|
+
if (p && !(spawnEnv.PATH || '').includes(p)) {
|
|
203
|
+
spawnEnv.PATH = p + ';' + (spawnEnv.PATH || '');
|
|
204
|
+
}
|
|
200
205
|
}
|
|
201
206
|
}
|
|
202
207
|
|