@inkeep/agents-run-api 0.35.5 → 0.35.6

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.
package/dist/index.cjs CHANGED
@@ -17373,14 +17373,14 @@ app.post("/a2a", async (c2) => {
17373
17373
  },
17374
17374
  "agent-level a2a endpoint"
17375
17375
  );
17376
- const credentialStores = c2.get("credentialStores");
17377
- const sandboxConfig = c2.get("sandboxConfig");
17378
- const agent = await getRegisteredAgent({
17376
+ const credentialStores2 = c2.get("credentialStores");
17377
+ const sandboxConfig2 = c2.get("sandboxConfig");
17378
+ const agent2 = await getRegisteredAgent({
17379
17379
  executionContext,
17380
- credentialStoreRegistry: credentialStores,
17381
- sandboxConfig
17380
+ credentialStoreRegistry: credentialStores2,
17381
+ sandboxConfig: sandboxConfig2
17382
17382
  });
17383
- if (!agent) {
17383
+ if (!agent2) {
17384
17384
  return c2.json(
17385
17385
  {
17386
17386
  jsonrpc: "2.0",
@@ -17390,60 +17390,59 @@ app.post("/a2a", async (c2) => {
17390
17390
  404
17391
17391
  );
17392
17392
  }
17393
- return a2aHandler(c2, agent);
17394
- } else {
17395
- logger22.info(
17393
+ return a2aHandler(c2, agent2);
17394
+ }
17395
+ logger22.info(
17396
+ {
17397
+ message: "a2a (agent-level)",
17398
+ tenantId,
17399
+ projectId,
17400
+ agentId
17401
+ },
17402
+ "agent-level a2a endpoint"
17403
+ );
17404
+ const agent = await agentsCore.getAgentWithDefaultSubAgent(dbClient_default)({
17405
+ scopes: { tenantId, projectId, agentId }
17406
+ });
17407
+ if (!agent) {
17408
+ return c2.json(
17396
17409
  {
17397
- message: "a2a (agent-level)",
17398
- tenantId,
17399
- projectId,
17400
- agentId
17410
+ jsonrpc: "2.0",
17411
+ error: { code: -32004, message: "Agent not found" },
17412
+ id: null
17401
17413
  },
17402
- "agent-level a2a endpoint"
17414
+ 404
17415
+ );
17416
+ }
17417
+ if (!agent.defaultSubAgentId) {
17418
+ return c2.json(
17419
+ {
17420
+ jsonrpc: "2.0",
17421
+ error: { code: -32004, message: "Agent does not have a default agent configured" },
17422
+ id: null
17423
+ },
17424
+ 400
17425
+ );
17426
+ }
17427
+ executionContext.subAgentId = agent.defaultSubAgentId;
17428
+ const credentialStores = c2.get("credentialStores");
17429
+ const sandboxConfig = c2.get("sandboxConfig");
17430
+ const defaultSubAgent = await getRegisteredAgent({
17431
+ executionContext,
17432
+ credentialStoreRegistry: credentialStores,
17433
+ sandboxConfig
17434
+ });
17435
+ if (!defaultSubAgent) {
17436
+ return c2.json(
17437
+ {
17438
+ jsonrpc: "2.0",
17439
+ error: { code: -32004, message: "Agent not found" },
17440
+ id: null
17441
+ },
17442
+ 404
17403
17443
  );
17404
- const agent = await agentsCore.getAgentWithDefaultSubAgent(dbClient_default)({
17405
- scopes: { tenantId, projectId, agentId }
17406
- });
17407
- if (!agent) {
17408
- return c2.json(
17409
- {
17410
- jsonrpc: "2.0",
17411
- error: { code: -32004, message: "Agent not found" },
17412
- id: null
17413
- },
17414
- 404
17415
- );
17416
- }
17417
- if (!agent.defaultSubAgentId) {
17418
- return c2.json(
17419
- {
17420
- jsonrpc: "2.0",
17421
- error: { code: -32004, message: "Agent does not have a default agent configured" },
17422
- id: null
17423
- },
17424
- 400
17425
- );
17426
- }
17427
- executionContext.subAgentId = agent.defaultSubAgentId;
17428
- const credentialStores = c2.get("credentialStores");
17429
- const sandboxConfig = c2.get("sandboxConfig");
17430
- const defaultSubAgent = await getRegisteredAgent({
17431
- executionContext,
17432
- credentialStoreRegistry: credentialStores,
17433
- sandboxConfig
17434
- });
17435
- if (!defaultSubAgent) {
17436
- return c2.json(
17437
- {
17438
- jsonrpc: "2.0",
17439
- error: { code: -32004, message: "Agent not found" },
17440
- id: null
17441
- },
17442
- 404
17443
- );
17444
- }
17445
- return a2aHandler(c2, defaultSubAgent);
17446
17444
  }
17445
+ return a2aHandler(c2, defaultSubAgent);
17447
17446
  });
17448
17447
  var agents_default = app;
17449
17448
 
package/dist/index.js CHANGED
@@ -9715,14 +9715,14 @@ app.post("/a2a", async (c) => {
9715
9715
  },
9716
9716
  "agent-level a2a endpoint"
9717
9717
  );
9718
- const credentialStores = c.get("credentialStores");
9719
- const sandboxConfig = c.get("sandboxConfig");
9720
- const agent = await getRegisteredAgent({
9718
+ const credentialStores2 = c.get("credentialStores");
9719
+ const sandboxConfig2 = c.get("sandboxConfig");
9720
+ const agent2 = await getRegisteredAgent({
9721
9721
  executionContext,
9722
- credentialStoreRegistry: credentialStores,
9723
- sandboxConfig
9722
+ credentialStoreRegistry: credentialStores2,
9723
+ sandboxConfig: sandboxConfig2
9724
9724
  });
9725
- if (!agent) {
9725
+ if (!agent2) {
9726
9726
  return c.json(
9727
9727
  {
9728
9728
  jsonrpc: "2.0",
@@ -9732,60 +9732,59 @@ app.post("/a2a", async (c) => {
9732
9732
  404
9733
9733
  );
9734
9734
  }
9735
- return a2aHandler(c, agent);
9736
- } else {
9737
- logger18.info(
9735
+ return a2aHandler(c, agent2);
9736
+ }
9737
+ logger18.info(
9738
+ {
9739
+ message: "a2a (agent-level)",
9740
+ tenantId,
9741
+ projectId,
9742
+ agentId
9743
+ },
9744
+ "agent-level a2a endpoint"
9745
+ );
9746
+ const agent = await getAgentWithDefaultSubAgent(dbClient_default)({
9747
+ scopes: { tenantId, projectId, agentId }
9748
+ });
9749
+ if (!agent) {
9750
+ return c.json(
9738
9751
  {
9739
- message: "a2a (agent-level)",
9740
- tenantId,
9741
- projectId,
9742
- agentId
9752
+ jsonrpc: "2.0",
9753
+ error: { code: -32004, message: "Agent not found" },
9754
+ id: null
9743
9755
  },
9744
- "agent-level a2a endpoint"
9756
+ 404
9757
+ );
9758
+ }
9759
+ if (!agent.defaultSubAgentId) {
9760
+ return c.json(
9761
+ {
9762
+ jsonrpc: "2.0",
9763
+ error: { code: -32004, message: "Agent does not have a default agent configured" },
9764
+ id: null
9765
+ },
9766
+ 400
9767
+ );
9768
+ }
9769
+ executionContext.subAgentId = agent.defaultSubAgentId;
9770
+ const credentialStores = c.get("credentialStores");
9771
+ const sandboxConfig = c.get("sandboxConfig");
9772
+ const defaultSubAgent = await getRegisteredAgent({
9773
+ executionContext,
9774
+ credentialStoreRegistry: credentialStores,
9775
+ sandboxConfig
9776
+ });
9777
+ if (!defaultSubAgent) {
9778
+ return c.json(
9779
+ {
9780
+ jsonrpc: "2.0",
9781
+ error: { code: -32004, message: "Agent not found" },
9782
+ id: null
9783
+ },
9784
+ 404
9745
9785
  );
9746
- const agent = await getAgentWithDefaultSubAgent(dbClient_default)({
9747
- scopes: { tenantId, projectId, agentId }
9748
- });
9749
- if (!agent) {
9750
- return c.json(
9751
- {
9752
- jsonrpc: "2.0",
9753
- error: { code: -32004, message: "Agent not found" },
9754
- id: null
9755
- },
9756
- 404
9757
- );
9758
- }
9759
- if (!agent.defaultSubAgentId) {
9760
- return c.json(
9761
- {
9762
- jsonrpc: "2.0",
9763
- error: { code: -32004, message: "Agent does not have a default agent configured" },
9764
- id: null
9765
- },
9766
- 400
9767
- );
9768
- }
9769
- executionContext.subAgentId = agent.defaultSubAgentId;
9770
- const credentialStores = c.get("credentialStores");
9771
- const sandboxConfig = c.get("sandboxConfig");
9772
- const defaultSubAgent = await getRegisteredAgent({
9773
- executionContext,
9774
- credentialStoreRegistry: credentialStores,
9775
- sandboxConfig
9776
- });
9777
- if (!defaultSubAgent) {
9778
- return c.json(
9779
- {
9780
- jsonrpc: "2.0",
9781
- error: { code: -32004, message: "Agent not found" },
9782
- id: null
9783
- },
9784
- 404
9785
- );
9786
- }
9787
- return a2aHandler(c, defaultSubAgent);
9788
9786
  }
9787
+ return a2aHandler(c, defaultSubAgent);
9789
9788
  });
9790
9789
  var agents_default = app;
9791
9790
  function isTransferTask(result) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-run-api",
3
- "version": "0.35.5",
3
+ "version": "0.35.6",
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",
@@ -54,7 +54,7 @@
54
54
  "traverse": "^0.6.11",
55
55
  "ts-pattern": "^5.7.1",
56
56
  "zod": "4.1.5",
57
- "@inkeep/agents-core": "^0.35.5"
57
+ "@inkeep/agents-core": "^0.35.6"
58
58
  },
59
59
  "optionalDependencies": {
60
60
  "keytar": "^7.9.0"