@inkeep/agents-run-api 0.0.0-dev-20251125020527 → 0.0.0-dev-20251125022835
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.
|
@@ -172,10 +172,9 @@ var NativeSandboxExecutor = class _NativeSandboxExecutor {
|
|
|
172
172
|
"Reusing cached sandbox"
|
|
173
173
|
);
|
|
174
174
|
return sandbox.sandboxDir;
|
|
175
|
-
} else {
|
|
176
|
-
this.cleanupSandbox(sandbox.sandboxDir);
|
|
177
|
-
delete this.sandboxPool[poolKey];
|
|
178
175
|
}
|
|
176
|
+
this.cleanupSandbox(sandbox.sandboxDir);
|
|
177
|
+
delete this.sandboxPool[poolKey];
|
|
179
178
|
}
|
|
180
179
|
return null;
|
|
181
180
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -6736,10 +6736,9 @@ var init_NativeSandboxExecutor = __esm({
|
|
|
6736
6736
|
"Reusing cached sandbox"
|
|
6737
6737
|
);
|
|
6738
6738
|
return sandbox.sandboxDir;
|
|
6739
|
-
} else {
|
|
6740
|
-
this.cleanupSandbox(sandbox.sandboxDir);
|
|
6741
|
-
delete this.sandboxPool[poolKey];
|
|
6742
6739
|
}
|
|
6740
|
+
this.cleanupSandbox(sandbox.sandboxDir);
|
|
6741
|
+
delete this.sandboxPool[poolKey];
|
|
6743
6742
|
}
|
|
6744
6743
|
return null;
|
|
6745
6744
|
}
|
|
@@ -17064,17 +17063,16 @@ var createTaskHandler = (config, credentialStoreRegistry) => {
|
|
|
17064
17063
|
}
|
|
17065
17064
|
]
|
|
17066
17065
|
};
|
|
17067
|
-
} else {
|
|
17068
|
-
logger20.warn(
|
|
17069
|
-
{
|
|
17070
|
-
hasToolResult: !!toolResult,
|
|
17071
|
-
hasOutput: !!toolResult?.output,
|
|
17072
|
-
validationPassed: false,
|
|
17073
|
-
output: toolResult?.output
|
|
17074
|
-
},
|
|
17075
|
-
"[DEBUG] Transfer validation FAILED"
|
|
17076
|
-
);
|
|
17077
17066
|
}
|
|
17067
|
+
logger20.warn(
|
|
17068
|
+
{
|
|
17069
|
+
hasToolResult: !!toolResult,
|
|
17070
|
+
hasOutput: !!toolResult?.output,
|
|
17071
|
+
validationPassed: false,
|
|
17072
|
+
output: toolResult?.output
|
|
17073
|
+
},
|
|
17074
|
+
"[DEBUG] Transfer validation FAILED"
|
|
17075
|
+
);
|
|
17078
17076
|
}
|
|
17079
17077
|
}
|
|
17080
17078
|
}
|
|
@@ -19390,7 +19388,8 @@ var validateSession = async (req, res, body2, tenantId, projectId, agentId) => {
|
|
|
19390
19388
|
})
|
|
19391
19389
|
);
|
|
19392
19390
|
return false;
|
|
19393
|
-
}
|
|
19391
|
+
}
|
|
19392
|
+
if (Array.isArray(sessionId)) {
|
|
19394
19393
|
res.writeHead(400).end(
|
|
19395
19394
|
JSON.stringify({
|
|
19396
19395
|
jsonrpc: "2.0",
|
|
@@ -19813,16 +19812,15 @@ app4.openapi(
|
|
|
19813
19812
|
c2,
|
|
19814
19813
|
credentialStores
|
|
19815
19814
|
);
|
|
19816
|
-
} else {
|
|
19817
|
-
return await handleExistingSessionRequest(
|
|
19818
|
-
body2,
|
|
19819
|
-
executionContext,
|
|
19820
|
-
validatedContext,
|
|
19821
|
-
req,
|
|
19822
|
-
res,
|
|
19823
|
-
credentialStores
|
|
19824
|
-
);
|
|
19825
19815
|
}
|
|
19816
|
+
return await handleExistingSessionRequest(
|
|
19817
|
+
body2,
|
|
19818
|
+
executionContext,
|
|
19819
|
+
validatedContext,
|
|
19820
|
+
req,
|
|
19821
|
+
res,
|
|
19822
|
+
credentialStores
|
|
19823
|
+
);
|
|
19826
19824
|
} catch (e) {
|
|
19827
19825
|
logger27.error(
|
|
19828
19826
|
{
|
package/dist/index.js
CHANGED
|
@@ -7631,7 +7631,7 @@ var Agent = class {
|
|
|
7631
7631
|
if (functionToolsData.length === 0) {
|
|
7632
7632
|
return functionTools;
|
|
7633
7633
|
}
|
|
7634
|
-
const { SandboxExecutorFactory } = await import('./SandboxExecutorFactory-
|
|
7634
|
+
const { SandboxExecutorFactory } = await import('./SandboxExecutorFactory-FVKDJKKZ.js');
|
|
7635
7635
|
const sandboxExecutor = SandboxExecutorFactory.getInstance();
|
|
7636
7636
|
for (const functionToolDef of functionToolsData) {
|
|
7637
7637
|
const functionId = functionToolDef.functionId;
|
|
@@ -9410,17 +9410,16 @@ var createTaskHandler = (config, credentialStoreRegistry) => {
|
|
|
9410
9410
|
}
|
|
9411
9411
|
]
|
|
9412
9412
|
};
|
|
9413
|
-
} else {
|
|
9414
|
-
logger16.warn(
|
|
9415
|
-
{
|
|
9416
|
-
hasToolResult: !!toolResult,
|
|
9417
|
-
hasOutput: !!toolResult?.output,
|
|
9418
|
-
validationPassed: false,
|
|
9419
|
-
output: toolResult?.output
|
|
9420
|
-
},
|
|
9421
|
-
"[DEBUG] Transfer validation FAILED"
|
|
9422
|
-
);
|
|
9423
9413
|
}
|
|
9414
|
+
logger16.warn(
|
|
9415
|
+
{
|
|
9416
|
+
hasToolResult: !!toolResult,
|
|
9417
|
+
hasOutput: !!toolResult?.output,
|
|
9418
|
+
validationPassed: false,
|
|
9419
|
+
output: toolResult?.output
|
|
9420
|
+
},
|
|
9421
|
+
"[DEBUG] Transfer validation FAILED"
|
|
9422
|
+
);
|
|
9424
9423
|
}
|
|
9425
9424
|
}
|
|
9426
9425
|
}
|
|
@@ -11708,7 +11707,8 @@ var validateSession = async (req, res, body, tenantId, projectId, agentId) => {
|
|
|
11708
11707
|
})
|
|
11709
11708
|
);
|
|
11710
11709
|
return false;
|
|
11711
|
-
}
|
|
11710
|
+
}
|
|
11711
|
+
if (Array.isArray(sessionId)) {
|
|
11712
11712
|
res.writeHead(400).end(
|
|
11713
11713
|
JSON.stringify({
|
|
11714
11714
|
jsonrpc: "2.0",
|
|
@@ -12131,16 +12131,15 @@ app4.openapi(
|
|
|
12131
12131
|
c,
|
|
12132
12132
|
credentialStores
|
|
12133
12133
|
);
|
|
12134
|
-
} else {
|
|
12135
|
-
return await handleExistingSessionRequest(
|
|
12136
|
-
body,
|
|
12137
|
-
executionContext,
|
|
12138
|
-
validatedContext,
|
|
12139
|
-
req,
|
|
12140
|
-
res,
|
|
12141
|
-
credentialStores
|
|
12142
|
-
);
|
|
12143
12134
|
}
|
|
12135
|
+
return await handleExistingSessionRequest(
|
|
12136
|
+
body,
|
|
12137
|
+
executionContext,
|
|
12138
|
+
validatedContext,
|
|
12139
|
+
req,
|
|
12140
|
+
res,
|
|
12141
|
+
credentialStores
|
|
12142
|
+
);
|
|
12144
12143
|
} catch (e) {
|
|
12145
12144
|
logger23.error(
|
|
12146
12145
|
{
|
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-20251125022835",
|
|
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",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"traverse": "^0.6.11",
|
|
56
56
|
"ts-pattern": "^5.7.1",
|
|
57
57
|
"zod": "4.1.5",
|
|
58
|
-
"@inkeep/agents-core": "^0.0.0-dev-
|
|
58
|
+
"@inkeep/agents-core": "^0.0.0-dev-20251125022835"
|
|
59
59
|
},
|
|
60
60
|
"optionalDependencies": {
|
|
61
61
|
"keytar": "^7.9.0"
|