@inkeep/agents-run-api 0.19.6 → 0.19.8

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.
@@ -303,9 +303,26 @@ var _LocalSandboxExecutor = class _LocalSandboxExecutor {
303
303
  }
304
304
  async installDependencies(sandboxDir) {
305
305
  return new Promise((resolve, reject) => {
306
- const npm = spawn("npm", ["install"], {
306
+ const npmEnv = {
307
+ ...process.env,
308
+ // Set npm cache directory to sandbox to avoid /home/user issues
309
+ npm_config_cache: join(sandboxDir, ".npm-cache"),
310
+ // Set npm logs directory to sandbox
311
+ npm_config_logs_dir: join(sandboxDir, ".npm-logs"),
312
+ // Set npm temp directory to sandbox
313
+ npm_config_tmp: join(sandboxDir, ".npm-tmp"),
314
+ // Override HOME directory as fallback for npm
315
+ HOME: sandboxDir,
316
+ // Disable npm update notifier to avoid permission issues
317
+ npm_config_update_notifier: "false",
318
+ // Use non-interactive mode
319
+ npm_config_progress: "false",
320
+ npm_config_loglevel: "error"
321
+ };
322
+ const npm = spawn("npm", ["install", "--no-audit", "--no-fund"], {
307
323
  cwd: sandboxDir,
308
- stdio: "pipe"
324
+ stdio: "pipe",
325
+ env: npmEnv
309
326
  });
310
327
  let stderr = "";
311
328
  npm.stdout?.on("data", () => {