@openagents-org/agent-launcher 0.2.72 → 0.2.74

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/installer.js +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openagents-org/agent-launcher",
3
- "version": "0.2.72",
3
+ "version": "0.2.74",
4
4
  "description": "OpenAgents Launcher — install, configure, and run AI coding agents from your terminal",
5
5
  "main": "src/index.js",
6
6
  "bin": {
package/src/installer.js CHANGED
@@ -196,7 +196,7 @@ class Installer {
196
196
  // Use bundled node/npm if system npm not available
197
197
  if (cmd.startsWith('npm install')) {
198
198
  const prefixDir = path.join(os.homedir(), '.openagents', 'nodejs');
199
- const args = cmd.replace('npm install', 'install --ignore-scripts --no-save --install-strategy=nested').replace(' -g ', ` --prefix "${prefixDir}" `);
199
+ const args = cmd.replace('npm install', 'install --save').replace(' -g ', ` --prefix "${prefixDir}" `);
200
200
  cmd = this._resolveNpmCommand(args);
201
201
  }
202
202
 
@@ -232,8 +232,8 @@ class Installer {
232
232
  let cmd = rawCmd;
233
233
  if (rawCmd.startsWith('npm install')) {
234
234
  const prefixDir2 = path.join(os.homedir(), '.openagents', 'nodejs');
235
- // --install-strategy=nested prevents npm from pruning existing packages in the prefix
236
- const args = rawCmd.replace('npm install', 'install --loglevel=verbose --ignore-scripts --no-save --install-strategy=nested').replace(' -g ', ` --prefix "${prefixDir2}" `);
235
+ // Use --save so npm tracks the package in package.json (prevents pruning on next install)
236
+ const args = rawCmd.replace('npm install', 'install --loglevel=verbose --save').replace(' -g ', ` --prefix "${prefixDir2}" `);
237
237
  cmd = this._resolveNpmCommand(args);
238
238
  } else if (rawCmd.startsWith('pip install') || rawCmd.startsWith('pipx install')) {
239
239
  cmd = rawCmd; // pip commands stay as-is