@inkeep/agents-run-api 0.0.0-dev-20251013223711 → 0.0.0-dev-20251014011814

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", () => {
package/dist/index.cjs CHANGED
@@ -691,9 +691,26 @@ var init_LocalSandboxExecutor = __esm({
691
691
  }
692
692
  async installDependencies(sandboxDir) {
693
693
  return new Promise((resolve, reject) => {
694
- const npm = child_process.spawn("npm", ["install"], {
694
+ const npmEnv = {
695
+ ...process.env,
696
+ // Set npm cache directory to sandbox to avoid /home/user issues
697
+ npm_config_cache: path.join(sandboxDir, ".npm-cache"),
698
+ // Set npm logs directory to sandbox
699
+ npm_config_logs_dir: path.join(sandboxDir, ".npm-logs"),
700
+ // Set npm temp directory to sandbox
701
+ npm_config_tmp: path.join(sandboxDir, ".npm-tmp"),
702
+ // Override HOME directory as fallback for npm
703
+ HOME: sandboxDir,
704
+ // Disable npm update notifier to avoid permission issues
705
+ npm_config_update_notifier: "false",
706
+ // Use non-interactive mode
707
+ npm_config_progress: "false",
708
+ npm_config_loglevel: "error"
709
+ };
710
+ const npm = child_process.spawn("npm", ["install", "--no-audit", "--no-fund"], {
695
711
  cwd: sandboxDir,
696
- stdio: "pipe"
712
+ stdio: "pipe",
713
+ env: npmEnv
697
714
  });
698
715
  let stderr = "";
699
716
  npm.stdout?.on("data", () => {
package/dist/index.js CHANGED
@@ -7046,7 +7046,7 @@ var Agent = class {
7046
7046
  if (functionToolsData.length === 0) {
7047
7047
  return functionTools;
7048
7048
  }
7049
- const { LocalSandboxExecutor } = await import('./LocalSandboxExecutor-2UQ32ZZH.js');
7049
+ const { LocalSandboxExecutor } = await import('./LocalSandboxExecutor-S6BPJMJV.js');
7050
7050
  const sandboxExecutor = LocalSandboxExecutor.getInstance();
7051
7051
  for (const functionToolDef of functionToolsData) {
7052
7052
  const functionId = functionToolDef.functionId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-run-api",
3
- "version": "0.0.0-dev-20251013223711",
3
+ "version": "0.0.0-dev-20251014011814",
4
4
  "description": "Agents Run API for Inkeep Agent Framework - handles chat, agent execution, and streaming",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -51,7 +51,7 @@
51
51
  "traverse": "^0.6.11",
52
52
  "ts-pattern": "^5.7.1",
53
53
  "zod": "^4.1.11",
54
- "@inkeep/agents-core": "^0.0.0-dev-20251013223711"
54
+ "@inkeep/agents-core": "^0.0.0-dev-20251014011814"
55
55
  },
56
56
  "optionalDependencies": {
57
57
  "keytar": "^7.9.0"