@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openagents-org/agent-connector",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Agent management CLI and library for OpenAgents — install, configure, and run AI coding agents",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -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
- if (npmBin && !(spawnEnv.PATH || '').includes(npmBin)) {
199
- spawnEnv.PATH = npmBin + ';' + (spawnEnv.PATH || '');
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