@inkeep/agents-run-api 0.0.0-dev-20251014172127 → 0.0.0-dev-20251014185355
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.
|
@@ -77,9 +77,6 @@ var _LocalSandboxExecutor = class _LocalSandboxExecutor {
|
|
|
77
77
|
}
|
|
78
78
|
return _LocalSandboxExecutor.instance;
|
|
79
79
|
}
|
|
80
|
-
/**
|
|
81
|
-
* Get or create a semaphore for the specified vCPU limit
|
|
82
|
-
*/
|
|
83
80
|
getSemaphore(vcpus) {
|
|
84
81
|
const effectiveVcpus = Math.max(1, vcpus || 1);
|
|
85
82
|
if (!this.executionSemaphores.has(effectiveVcpus)) {
|
|
@@ -92,9 +89,6 @@ var _LocalSandboxExecutor = class _LocalSandboxExecutor {
|
|
|
92
89
|
}
|
|
93
90
|
return semaphore;
|
|
94
91
|
}
|
|
95
|
-
/**
|
|
96
|
-
* Get execution statistics for monitoring and debugging
|
|
97
|
-
*/
|
|
98
92
|
getExecutionStats() {
|
|
99
93
|
const stats = {};
|
|
100
94
|
for (const [vcpus, semaphore] of this.executionSemaphores.entries()) {
|
|
@@ -305,17 +299,11 @@ var _LocalSandboxExecutor = class _LocalSandboxExecutor {
|
|
|
305
299
|
return new Promise((resolve, reject) => {
|
|
306
300
|
const npmEnv = {
|
|
307
301
|
...process.env,
|
|
308
|
-
// Set npm cache directory to sandbox to avoid /home/user issues
|
|
309
302
|
npm_config_cache: join(sandboxDir, ".npm-cache"),
|
|
310
|
-
// Set npm logs directory to sandbox
|
|
311
303
|
npm_config_logs_dir: join(sandboxDir, ".npm-logs"),
|
|
312
|
-
// Set npm temp directory to sandbox
|
|
313
304
|
npm_config_tmp: join(sandboxDir, ".npm-tmp"),
|
|
314
|
-
// Override HOME directory as fallback for npm
|
|
315
305
|
HOME: sandboxDir,
|
|
316
|
-
// Disable npm update notifier to avoid permission issues
|
|
317
306
|
npm_config_update_notifier: "false",
|
|
318
|
-
// Use non-interactive mode
|
|
319
307
|
npm_config_progress: "false",
|
|
320
308
|
npm_config_loglevel: "error"
|
|
321
309
|
};
|
|
@@ -351,7 +339,6 @@ var _LocalSandboxExecutor = class _LocalSandboxExecutor {
|
|
|
351
339
|
const spawnOptions = {
|
|
352
340
|
cwd: sandboxDir,
|
|
353
341
|
stdio: "pipe",
|
|
354
|
-
// Security: drop privileges and limit resources
|
|
355
342
|
uid: process.getuid ? process.getuid() : void 0,
|
|
356
343
|
gid: process.getgid ? process.getgid() : void 0
|
|
357
344
|
};
|
|
@@ -427,7 +414,7 @@ const args = ${JSON.stringify(args)};
|
|
|
427
414
|
|
|
428
415
|
try {
|
|
429
416
|
const result = execute(args);
|
|
430
|
-
|
|
417
|
+
|
|
431
418
|
// Handle both sync and async functions
|
|
432
419
|
if (result && typeof result.then === 'function') {
|
|
433
420
|
// Async function - result is a Promise
|
package/dist/index.cjs
CHANGED
|
@@ -465,9 +465,6 @@ var init_LocalSandboxExecutor = __esm({
|
|
|
465
465
|
}
|
|
466
466
|
return _LocalSandboxExecutor.instance;
|
|
467
467
|
}
|
|
468
|
-
/**
|
|
469
|
-
* Get or create a semaphore for the specified vCPU limit
|
|
470
|
-
*/
|
|
471
468
|
getSemaphore(vcpus) {
|
|
472
469
|
const effectiveVcpus = Math.max(1, vcpus || 1);
|
|
473
470
|
if (!this.executionSemaphores.has(effectiveVcpus)) {
|
|
@@ -480,9 +477,6 @@ var init_LocalSandboxExecutor = __esm({
|
|
|
480
477
|
}
|
|
481
478
|
return semaphore;
|
|
482
479
|
}
|
|
483
|
-
/**
|
|
484
|
-
* Get execution statistics for monitoring and debugging
|
|
485
|
-
*/
|
|
486
480
|
getExecutionStats() {
|
|
487
481
|
const stats = {};
|
|
488
482
|
for (const [vcpus, semaphore] of this.executionSemaphores.entries()) {
|
|
@@ -693,17 +687,11 @@ var init_LocalSandboxExecutor = __esm({
|
|
|
693
687
|
return new Promise((resolve, reject) => {
|
|
694
688
|
const npmEnv = {
|
|
695
689
|
...process.env,
|
|
696
|
-
// Set npm cache directory to sandbox to avoid /home/user issues
|
|
697
690
|
npm_config_cache: path.join(sandboxDir, ".npm-cache"),
|
|
698
|
-
// Set npm logs directory to sandbox
|
|
699
691
|
npm_config_logs_dir: path.join(sandboxDir, ".npm-logs"),
|
|
700
|
-
// Set npm temp directory to sandbox
|
|
701
692
|
npm_config_tmp: path.join(sandboxDir, ".npm-tmp"),
|
|
702
|
-
// Override HOME directory as fallback for npm
|
|
703
693
|
HOME: sandboxDir,
|
|
704
|
-
// Disable npm update notifier to avoid permission issues
|
|
705
694
|
npm_config_update_notifier: "false",
|
|
706
|
-
// Use non-interactive mode
|
|
707
695
|
npm_config_progress: "false",
|
|
708
696
|
npm_config_loglevel: "error"
|
|
709
697
|
};
|
|
@@ -739,7 +727,6 @@ var init_LocalSandboxExecutor = __esm({
|
|
|
739
727
|
const spawnOptions = {
|
|
740
728
|
cwd: sandboxDir,
|
|
741
729
|
stdio: "pipe",
|
|
742
|
-
// Security: drop privileges and limit resources
|
|
743
730
|
uid: process.getuid ? process.getuid() : void 0,
|
|
744
731
|
gid: process.getgid ? process.getgid() : void 0
|
|
745
732
|
};
|
|
@@ -815,7 +802,7 @@ const args = ${JSON.stringify(args)};
|
|
|
815
802
|
|
|
816
803
|
try {
|
|
817
804
|
const result = execute(args);
|
|
818
|
-
|
|
805
|
+
|
|
819
806
|
// Handle both sync and async functions
|
|
820
807
|
if (result && typeof result.then === 'function') {
|
|
821
808
|
// Async function - result is a Promise
|
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-
|
|
7049
|
+
const { LocalSandboxExecutor } = await import('./LocalSandboxExecutor-TSOIXW7O.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-
|
|
3
|
+
"version": "0.0.0-dev-20251014185355",
|
|
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-
|
|
54
|
+
"@inkeep/agents-core": "^0.0.0-dev-20251014185355"
|
|
55
55
|
},
|
|
56
56
|
"optionalDependencies": {
|
|
57
57
|
"keytar": "^7.9.0"
|