@inkeep/agents-api 0.47.2 → 0.47.3

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.
Files changed (32) hide show
  1. package/dist/.well-known/workflow/v1/step.cjs +1 -1
  2. package/dist/domains/evals/routes/datasetTriggers.d.ts +2 -2
  3. package/dist/domains/evals/routes/evaluationTriggers.js +1 -1
  4. package/dist/domains/evals/routes/index.d.ts +2 -2
  5. package/dist/domains/evals/services/conversationEvaluation.js +21 -10
  6. package/dist/domains/evals/workflow/routes.d.ts +2 -2
  7. package/dist/domains/manage/routes/conversations.d.ts +2 -2
  8. package/dist/domains/manage/routes/invitations.d.ts +2 -2
  9. package/dist/domains/manage/routes/mcp.d.ts +2 -2
  10. package/dist/domains/manage/routes/passwordResetLinks.d.ts +2 -2
  11. package/dist/domains/manage/routes/signoz.d.ts +2 -2
  12. package/dist/domains/manage/routes/users.d.ts +2 -2
  13. package/dist/domains/mcp/routes/mcp.d.ts +2 -2
  14. package/dist/domains/run/agents/Agent.js +18 -14
  15. package/dist/domains/run/agents/relationTools.d.ts +2 -2
  16. package/dist/domains/run/services/PendingToolApprovalManager.js +1 -1
  17. package/dist/domains/run/services/ToolApprovalUiBus.d.ts +1 -0
  18. package/dist/domains/run/services/ToolApprovalUiBus.js +2 -1
  19. package/dist/domains/run/utils/token-estimator.d.ts +2 -2
  20. package/dist/domains/run/utils/tool-result.d.ts +11 -0
  21. package/dist/domains/run/utils/tool-result.js +15 -0
  22. package/dist/factory.d.ts +2 -2
  23. package/dist/middleware/evalsAuth.d.ts +2 -2
  24. package/dist/middleware/manageAuth.d.ts +2 -2
  25. package/dist/middleware/projectAccess.d.ts +2 -2
  26. package/dist/middleware/projectConfig.d.ts +3 -3
  27. package/dist/middleware/requirePermission.d.ts +2 -2
  28. package/dist/middleware/runAuth.d.ts +4 -4
  29. package/dist/middleware/sessionAuth.d.ts +3 -3
  30. package/dist/middleware/tenantAccess.d.ts +2 -2
  31. package/dist/middleware/tracing.d.ts +3 -3
  32. package/package.json +5 -5
@@ -143325,7 +143325,7 @@ var MAX_ID_LENGTH = 255;
143325
143325
  var URL_SAFE_ID_PATTERN = /^[a-zA-Z0-9\-_.]+$/;
143326
143326
  var ResourceIdSchema = external_exports.string().min(MIN_ID_LENGTH).max(MAX_ID_LENGTH).regex(URL_SAFE_ID_PATTERN, {
143327
143327
  message: "ID must contain only letters, numbers, hyphens, underscores, and dots"
143328
- }).refine((value) => value !== "new", 'Must not use a reserved name "new"').openapi({
143328
+ }).refine((value) => value !== "new", 'Must not use a reserved name "new"').openapi("ResourceId", {
143329
143329
  description: "Resource identifier",
143330
143330
  example: "resource_789"
143331
143331
  });
@@ -1,7 +1,7 @@
1
1
  import { OpenAPIHono } from "@hono/zod-openapi";
2
- import * as hono14 from "hono";
2
+ import * as hono12 from "hono";
3
3
 
4
4
  //#region src/domains/evals/routes/datasetTriggers.d.ts
5
- declare const app: OpenAPIHono<hono14.Env, {}, "/">;
5
+ declare const app: OpenAPIHono<hono12.Env, {}, "/">;
6
6
  //#endregion
7
7
  export { app as default };
@@ -43,7 +43,7 @@ app.openapi(createRoute({
43
43
  tenantId,
44
44
  projectId,
45
45
  conversationId
46
- }, "Triggering conversation evaluation (eval-api handling all logic)");
46
+ }, "Triggering conversation evaluation");
47
47
  if (!await getConversation(runDbClient_default)({
48
48
  scopes: {
49
49
  tenantId,
@@ -1,7 +1,7 @@
1
1
  import { OpenAPIHono } from "@hono/zod-openapi";
2
- import * as hono15 from "hono";
2
+ import * as hono16 from "hono";
3
3
 
4
4
  //#region src/domains/evals/routes/index.d.ts
5
- declare const app: OpenAPIHono<hono15.Env, {}, "/">;
5
+ declare const app: OpenAPIHono<hono16.Env, {}, "/">;
6
6
  //#endregion
7
7
  export { app as default };
@@ -11,11 +11,28 @@ const logger = getLogger$1("ConversationEvaluation");
11
11
  const triggerConversationEvaluation = async (params) => {
12
12
  const { tenantId, projectId, conversationId, resolvedRef } = params;
13
13
  try {
14
+ const runConfigs = (await withRef(manageDbPool_default, resolvedRef, (db) => listEvaluationRunConfigsWithSuiteConfigs(db)({ scopes: {
15
+ tenantId,
16
+ projectId
17
+ } }))).filter((config) => config.isActive);
18
+ if (runConfigs.length === 0) {
19
+ logger.debug({
20
+ tenantId,
21
+ projectId,
22
+ conversationId
23
+ }, "No active evaluation run configs found, skipping evaluation");
24
+ return {
25
+ success: true,
26
+ message: "No active evaluation run configs found",
27
+ evaluationsTriggered: 0
28
+ };
29
+ }
14
30
  logger.info({
15
31
  tenantId,
16
32
  projectId,
17
- conversationId
18
- }, "Triggering conversation evaluation (eval-api handling all logic)");
33
+ conversationId,
34
+ runConfigCount: runConfigs.length
35
+ }, "Triggering conversation evaluation");
19
36
  if (!await getConversation(runDbClient_default)({
20
37
  scopes: {
21
38
  tenantId,
@@ -23,11 +40,6 @@ const triggerConversationEvaluation = async (params) => {
23
40
  },
24
41
  conversationId
25
42
  })) throw new Error(`Conversation not found: ${conversationId}`);
26
- const runConfigs = (await withRef(manageDbPool_default, resolvedRef, (db) => listEvaluationRunConfigsWithSuiteConfigs(db)({ scopes: {
27
- tenantId,
28
- projectId
29
- } }))).filter((config) => config.isActive);
30
- if (runConfigs.length === 0) throw new Error("No active evaluation run configs found");
31
43
  let evaluationsTriggered = 0;
32
44
  for (const runConfig of runConfigs) for (const suiteConfigId of runConfig.suiteConfigIds) {
33
45
  const suiteConfig = await withRef(manageDbPool_default, resolvedRef, (db) => getEvaluationSuiteConfigById(db)({ scopes: {
@@ -87,13 +99,12 @@ const triggerConversationEvaluation = async (params) => {
87
99
  };
88
100
  } catch (error) {
89
101
  logger.error({
90
- error,
102
+ error: error?.message,
103
+ errorStack: error?.stack,
91
104
  tenantId,
92
105
  projectId,
93
106
  conversationId
94
107
  }, "Failed to trigger conversation evaluation");
95
- logger.error({ error: error?.stack }, "Failed to trigger conversation evaluation");
96
- logger.error({ error: error?.message }, "Failed to trigger conversation evaluation");
97
108
  throw error;
98
109
  }
99
110
  };
@@ -1,7 +1,7 @@
1
1
  import { Hono } from "hono";
2
- import * as hono_types6 from "hono/types";
2
+ import * as hono_types13 from "hono/types";
3
3
 
4
4
  //#region src/domains/evals/workflow/routes.d.ts
5
- declare const workflowRoutes: Hono<hono_types6.BlankEnv, hono_types6.BlankSchema, "/">;
5
+ declare const workflowRoutes: Hono<hono_types13.BlankEnv, hono_types13.BlankSchema, "/">;
6
6
  //#endregion
7
7
  export { workflowRoutes };
@@ -1,7 +1,7 @@
1
1
  import { OpenAPIHono } from "@hono/zod-openapi";
2
- import * as hono16 from "hono";
2
+ import * as hono6 from "hono";
3
3
 
4
4
  //#region src/domains/manage/routes/conversations.d.ts
5
- declare const app: OpenAPIHono<hono16.Env, {}, "/">;
5
+ declare const app: OpenAPIHono<hono6.Env, {}, "/">;
6
6
  //#endregion
7
7
  export { app as default };
@@ -1,10 +1,10 @@
1
1
  import { ManageAppVariables } from "../../../types/app.js";
2
2
  import { Hono } from "hono";
3
- import * as hono_types12 from "hono/types";
3
+ import * as hono_types9 from "hono/types";
4
4
 
5
5
  //#region src/domains/manage/routes/invitations.d.ts
6
6
  declare const invitationsRoutes: Hono<{
7
7
  Variables: ManageAppVariables;
8
- }, hono_types12.BlankSchema, "/">;
8
+ }, hono_types9.BlankSchema, "/">;
9
9
  //#endregion
10
10
  export { invitationsRoutes as default };
@@ -1,7 +1,7 @@
1
1
  import { Hono } from "hono";
2
- import * as hono_types13 from "hono/types";
2
+ import * as hono_types10 from "hono/types";
3
3
 
4
4
  //#region src/domains/manage/routes/mcp.d.ts
5
- declare const app: Hono<hono_types13.BlankEnv, hono_types13.BlankSchema, "/">;
5
+ declare const app: Hono<hono_types10.BlankEnv, hono_types10.BlankSchema, "/">;
6
6
  //#endregion
7
7
  export { app as default };
@@ -1,10 +1,10 @@
1
1
  import { ManageAppVariables } from "../../../types/app.js";
2
2
  import { Hono } from "hono";
3
- import * as hono_types5 from "hono/types";
3
+ import * as hono_types8 from "hono/types";
4
4
 
5
5
  //#region src/domains/manage/routes/passwordResetLinks.d.ts
6
6
  declare const passwordResetLinksRoutes: Hono<{
7
7
  Variables: ManageAppVariables;
8
- }, hono_types5.BlankSchema, "/">;
8
+ }, hono_types8.BlankSchema, "/">;
9
9
  //#endregion
10
10
  export { passwordResetLinksRoutes as default };
@@ -1,10 +1,10 @@
1
1
  import { ManageAppVariables } from "../../../types/app.js";
2
2
  import { Hono } from "hono";
3
- import * as hono_types8 from "hono/types";
3
+ import * as hono_types12 from "hono/types";
4
4
 
5
5
  //#region src/domains/manage/routes/signoz.d.ts
6
6
  declare const app: Hono<{
7
7
  Variables: ManageAppVariables;
8
- }, hono_types8.BlankSchema, "/">;
8
+ }, hono_types12.BlankSchema, "/">;
9
9
  //#endregion
10
10
  export { app as default };
@@ -1,10 +1,10 @@
1
1
  import { ManageAppVariables } from "../../../types/app.js";
2
2
  import { Hono } from "hono";
3
- import * as hono_types9 from "hono/types";
3
+ import * as hono_types5 from "hono/types";
4
4
 
5
5
  //#region src/domains/manage/routes/users.d.ts
6
6
  declare const usersRoutes: Hono<{
7
7
  Variables: ManageAppVariables;
8
- }, hono_types9.BlankSchema, "/">;
8
+ }, hono_types5.BlankSchema, "/">;
9
9
  //#endregion
10
10
  export { usersRoutes as default };
@@ -1,7 +1,7 @@
1
1
  import { Hono } from "hono";
2
- import * as hono_types10 from "hono/types";
2
+ import * as hono_types6 from "hono/types";
3
3
 
4
4
  //#region src/domains/mcp/routes/mcp.d.ts
5
- declare const app: Hono<hono_types10.BlankEnv, hono_types10.BlankSchema, "/">;
5
+ declare const app: Hono<hono_types6.BlankEnv, hono_types6.BlankSchema, "/">;
6
6
  //#endregion
7
7
  export { app as default };
@@ -21,6 +21,7 @@ import { generateToolId } from "../utils/agent-operations.js";
21
21
  import { ArtifactCreateSchema, ArtifactReferenceSchema } from "../utils/artifact-component-schema.js";
22
22
  import { withJsonPostProcessing } from "../utils/json-postprocessor.js";
23
23
  import { calculateBreakdownTotal, estimateTokens } from "../utils/token-estimator.js";
24
+ import { createDeniedToolResult, isToolResultDenied } from "../utils/tool-result.js";
24
25
  import { createDelegateToAgentTool, createTransferToAgentTool } from "./relationTools.js";
25
26
  import { SystemPromptBuilder } from "./SystemPromptBuilder.js";
26
27
  import { PromptConfig, V1_BREAKDOWN_SCHEMA } from "./versions/v1/PromptConfig.js";
@@ -354,7 +355,7 @@ var Agent = class {
354
355
  needsApproval,
355
356
  inDelegatedAgent: this.isDelegatedAgent
356
357
  });
357
- const isDeniedResult = !!result && typeof result === "object" && "__inkeepToolDenied" in result && result.__inkeepToolDenied === true;
358
+ const isDeniedResult = isToolResultDenied(result);
358
359
  if (streamRequestId && streamHelper && !isInternalToolForUi) if (isDeniedResult) await streamHelper.writeToolOutputDenied({ toolCallId });
359
360
  else await streamHelper.writeToolOutputAvailable({
360
361
  toolCallId,
@@ -508,14 +509,16 @@ var Agent = class {
508
509
  if (streamRequestId$1) await toolApprovalUiBus.publish(streamRequestId$1, {
509
510
  type: "approval-resolved",
510
511
  toolCallId,
511
- approved: false
512
+ approved: false,
513
+ reason: approvalResult.reason
512
514
  });
513
515
  }
514
516
  return tracer.startActiveSpan("tool.approval_denied", { attributes: {
515
517
  "tool.name": toolName,
516
518
  "tool.callId": toolCallId,
517
519
  "subAgent.id": this.config.id,
518
- "subAgent.name": this.config.name
520
+ "subAgent.name": this.config.name,
521
+ "tool.approval.reason": approvalResult.reason
519
522
  } }, (denialSpan) => {
520
523
  logger.info({
521
524
  toolName,
@@ -524,11 +527,7 @@ var Agent = class {
524
527
  }, "Tool execution denied by user");
525
528
  denialSpan.setStatus({ code: SpanStatusCode.OK });
526
529
  denialSpan.end();
527
- return {
528
- __inkeepToolDenied: true,
529
- toolCallId,
530
- reason: approvalResult.reason
531
- };
530
+ return createDeniedToolResult(toolCallId, approvalResult.reason);
532
531
  });
533
532
  }
534
533
  tracer.startActiveSpan("tool.approval_approved", { attributes: {
@@ -926,7 +925,8 @@ var Agent = class {
926
925
  if (streamRequestId$1) await toolApprovalUiBus.publish(streamRequestId$1, {
927
926
  type: "approval-resolved",
928
927
  toolCallId,
929
- approved: false
928
+ approved: false,
929
+ reason: approvalResult.reason
930
930
  });
931
931
  }
932
932
  return tracer.startActiveSpan("tool.approval_denied", { attributes: {
@@ -942,11 +942,7 @@ var Agent = class {
942
942
  }, "Function tool execution denied by user");
943
943
  denialSpan.setStatus({ code: SpanStatusCode.OK });
944
944
  denialSpan.end();
945
- return {
946
- __inkeepToolDenied: true,
947
- toolCallId,
948
- reason: approvalResult.reason
949
- };
945
+ return createDeniedToolResult(toolCallId, approvalResult.reason);
950
946
  });
951
947
  }
952
948
  tracer.startActiveSpan("tool.approval_approved", { attributes: {
@@ -1445,6 +1441,14 @@ var Agent = class {
1445
1441
  */
1446
1442
  formatToolResult(toolName, args, result, toolCallId) {
1447
1443
  const input = args ? JSON.stringify(args, null, 2) : "No input";
1444
+ if (isToolResultDenied(result)) return [
1445
+ `## Tool: ${toolName}`,
1446
+ "",
1447
+ `### 🔧 TOOL_CALL_ID: ${toolCallId}`,
1448
+ "",
1449
+ `### Output`,
1450
+ result.reason
1451
+ ].join("\n");
1448
1452
  let parsedResult = result;
1449
1453
  if (typeof result === "string") try {
1450
1454
  parsedResult = JSON.parse(result);
@@ -1,6 +1,6 @@
1
1
  import { AgentConfig, DelegateRelation } from "./Agent.js";
2
2
  import { InternalRelation } from "../utils/project.js";
3
- import * as _inkeep_agents_core2 from "@inkeep/agents-core";
3
+ import * as _inkeep_agents_core1 from "@inkeep/agents-core";
4
4
  import { CredentialStoreRegistry, FullExecutionContext } from "@inkeep/agents-core";
5
5
  import * as ai0 from "ai";
6
6
 
@@ -44,7 +44,7 @@ declare function createDelegateToAgentTool({
44
44
  message: string;
45
45
  }, {
46
46
  toolCallId: any;
47
- result: _inkeep_agents_core2.Message | _inkeep_agents_core2.Task;
47
+ result: _inkeep_agents_core1.Message | _inkeep_agents_core1.Task;
48
48
  }>;
49
49
  /**
50
50
  * Parameters for building a transfer relation config
@@ -89,7 +89,7 @@ var PendingToolApprovalManager = class PendingToolApprovalManager {
89
89
  this.pendingApprovals.delete(toolCallId);
90
90
  approval.resolve({
91
91
  approved: false,
92
- reason: reason || "User denied approval"
92
+ reason: `The user declined to run this tool. ${reason ? `Reason: ${reason}` : ""}`
93
93
  });
94
94
  return true;
95
95
  }
@@ -10,6 +10,7 @@ type ToolApprovalUiEvent = {
10
10
  type: 'approval-resolved';
11
11
  toolCallId: string;
12
12
  approved: boolean;
13
+ reason?: string;
13
14
  };
14
15
  type Listener = (event: ToolApprovalUiEvent) => void | Promise<void>;
15
16
  /**
@@ -33,7 +33,8 @@ var ToolApprovalUiBus = class {
33
33
  streamRequestId,
34
34
  eventType: event.type,
35
35
  toolCallId: event.toolCallId,
36
- error: error instanceof Error ? error.message : String(error)
36
+ error: error instanceof Error ? error.message : String(error),
37
+ reason: event.reason
37
38
  }, "ToolApprovalUiBus listener failed");
38
39
  }
39
40
  }
@@ -1,4 +1,4 @@
1
- import * as _inkeep_agents_core1 from "@inkeep/agents-core";
1
+ import * as _inkeep_agents_core3 from "@inkeep/agents-core";
2
2
  import { BreakdownComponentDef, ContextBreakdown, calculateBreakdownTotal, createEmptyBreakdown } from "@inkeep/agents-core";
3
3
 
4
4
  //#region src/domains/run/utils/token-estimator.d.ts
@@ -17,7 +17,7 @@ interface AssembleResult {
17
17
  /** The assembled prompt string */
18
18
  prompt: string;
19
19
  /** Token breakdown for each component */
20
- breakdown: _inkeep_agents_core1.ContextBreakdown;
20
+ breakdown: _inkeep_agents_core3.ContextBreakdown;
21
21
  }
22
22
  //#endregion
23
23
  export { AssembleResult, type BreakdownComponentDef, type ContextBreakdown, calculateBreakdownTotal, createEmptyBreakdown, estimateTokens };
@@ -0,0 +1,11 @@
1
+ //#region src/domains/run/utils/tool-result.d.ts
2
+ declare const INKEEP_TOOL_DENIED_KEY = "__inkeepToolDenied";
3
+ interface DeniedToolResult {
4
+ [INKEEP_TOOL_DENIED_KEY]: true;
5
+ toolCallId: string;
6
+ reason?: string;
7
+ }
8
+ declare function isToolResultDenied(result: unknown): result is DeniedToolResult;
9
+ declare function createDeniedToolResult(toolCallId: string, reason?: string): DeniedToolResult;
10
+ //#endregion
11
+ export { DeniedToolResult, INKEEP_TOOL_DENIED_KEY, createDeniedToolResult, isToolResultDenied };
@@ -0,0 +1,15 @@
1
+ //#region src/domains/run/utils/tool-result.ts
2
+ const INKEEP_TOOL_DENIED_KEY = "__inkeepToolDenied";
3
+ function isToolResultDenied(result) {
4
+ return !!result && typeof result === "object" && INKEEP_TOOL_DENIED_KEY in result && result[INKEEP_TOOL_DENIED_KEY] === true;
5
+ }
6
+ function createDeniedToolResult(toolCallId, reason) {
7
+ return {
8
+ [INKEEP_TOOL_DENIED_KEY]: true,
9
+ toolCallId,
10
+ reason
11
+ };
12
+ }
13
+
14
+ //#endregion
15
+ export { INKEEP_TOOL_DENIED_KEY, createDeniedToolResult, isToolResultDenied };
package/dist/factory.d.ts CHANGED
@@ -3,7 +3,7 @@ import "./types/index.js";
3
3
  import { createAgentsHono } from "./createApp.js";
4
4
  import { createAuth0Provider, createOIDCProvider } from "./ssoHelpers.js";
5
5
  import { CredentialStore, ServerConfig } from "@inkeep/agents-core";
6
- import * as hono13 from "hono";
6
+ import * as hono4 from "hono";
7
7
  import * as zod205 from "zod";
8
8
  import { SSOProviderConfig, UserAuthConfig } from "@inkeep/agents-core/auth";
9
9
  import * as hono_types3 from "hono/types";
@@ -1570,6 +1570,6 @@ declare function createAgentsApp(config?: {
1570
1570
  credentialStores?: CredentialStore[];
1571
1571
  auth?: UserAuthConfig;
1572
1572
  sandboxConfig?: SandboxConfig;
1573
- }): hono13.Hono<hono_types3.BlankEnv, hono_types3.BlankSchema, "/">;
1573
+ }): hono4.Hono<hono_types3.BlankEnv, hono_types3.BlankSchema, "/">;
1574
1574
  //#endregion
1575
1575
  export { type SSOProviderConfig, type UserAuthConfig, createAgentsApp, createAgentsAuth, createAgentsHono, createAuth0Provider, createOIDCProvider };
@@ -1,5 +1,5 @@
1
1
  import { BaseExecutionContext } from "@inkeep/agents-core";
2
- import * as hono2 from "hono";
2
+ import * as hono0 from "hono";
3
3
 
4
4
  //#region src/middleware/evalsAuth.d.ts
5
5
 
@@ -7,7 +7,7 @@ import * as hono2 from "hono";
7
7
  * Middleware to authenticate API requests using Bearer token authentication
8
8
  * First checks if token matches INKEEP_AGENTS_EVAL_API_BYPASS_SECRET,
9
9
  */
10
- declare const evalApiKeyAuth: () => hono2.MiddlewareHandler<{
10
+ declare const evalApiKeyAuth: () => hono0.MiddlewareHandler<{
11
11
  Variables: {
12
12
  executionContext: BaseExecutionContext;
13
13
  };
@@ -1,5 +1,5 @@
1
1
  import { BaseExecutionContext } from "@inkeep/agents-core";
2
- import * as hono3 from "hono";
2
+ import * as hono0 from "hono";
3
3
  import { createAuth } from "@inkeep/agents-core/auth";
4
4
 
5
5
  //#region src/middleware/manageAuth.d.ts
@@ -12,7 +12,7 @@ import { createAuth } from "@inkeep/agents-core/auth";
12
12
  * 3. Database API key
13
13
  * 4. Internal service token
14
14
  */
15
- declare const manageApiKeyAuth: () => hono3.MiddlewareHandler<{
15
+ declare const manageApiKeyAuth: () => hono0.MiddlewareHandler<{
16
16
  Variables: {
17
17
  executionContext: BaseExecutionContext;
18
18
  userId?: string;
@@ -1,6 +1,6 @@
1
1
  import { ManageAppVariables } from "../types/app.js";
2
2
  import { ProjectPermissionLevel } from "@inkeep/agents-core";
3
- import * as hono0 from "hono";
3
+ import * as hono1 from "hono";
4
4
 
5
5
  //#region src/middleware/projectAccess.d.ts
6
6
  /**
@@ -10,6 +10,6 @@ declare const requireProjectPermission: <Env$1 extends {
10
10
  Variables: ManageAppVariables;
11
11
  } = {
12
12
  Variables: ManageAppVariables;
13
- }>(permission?: ProjectPermissionLevel) => hono0.MiddlewareHandler<Env$1, string, {}, Response>;
13
+ }>(permission?: ProjectPermissionLevel) => hono1.MiddlewareHandler<Env$1, string, {}, Response>;
14
14
  //#endregion
15
15
  export { requireProjectPermission };
@@ -1,11 +1,11 @@
1
1
  import { BaseExecutionContext, ResolvedRef } from "@inkeep/agents-core";
2
- import * as hono0 from "hono";
2
+ import * as hono2 from "hono";
3
3
 
4
4
  //#region src/middleware/projectConfig.d.ts
5
5
  /**
6
6
  * Middleware that fetches the full project definition from the Management API
7
7
  */
8
- declare const projectConfigMiddleware: hono0.MiddlewareHandler<{
8
+ declare const projectConfigMiddleware: hono2.MiddlewareHandler<{
9
9
  Variables: {
10
10
  executionContext: BaseExecutionContext;
11
11
  resolvedRef: ResolvedRef;
@@ -15,7 +15,7 @@ declare const projectConfigMiddleware: hono0.MiddlewareHandler<{
15
15
  * Creates a middleware that applies project config fetching except for specified route patterns
16
16
  * @param skipRouteCheck - Function that returns true if the route should skip the middleware
17
17
  */
18
- declare const projectConfigMiddlewareExcept: (skipRouteCheck: (path: string) => boolean) => hono0.MiddlewareHandler<{
18
+ declare const projectConfigMiddlewareExcept: (skipRouteCheck: (path: string) => boolean) => hono2.MiddlewareHandler<{
19
19
  Variables: {
20
20
  executionContext: BaseExecutionContext;
21
21
  resolvedRef: ResolvedRef;
@@ -1,5 +1,5 @@
1
1
  import { ManageAppVariables } from "../types/app.js";
2
- import * as hono7 from "hono";
2
+ import * as hono5 from "hono";
3
3
 
4
4
  //#region src/middleware/requirePermission.d.ts
5
5
  type Permission = {
@@ -9,6 +9,6 @@ declare const requirePermission: <Env$1 extends {
9
9
  Variables: ManageAppVariables;
10
10
  } = {
11
11
  Variables: ManageAppVariables;
12
- }>(permissions: Permission) => hono7.MiddlewareHandler<Env$1, string, {}, Response>;
12
+ }>(permissions: Permission) => hono5.MiddlewareHandler<Env$1, string, {}, Response>;
13
13
  //#endregion
14
14
  export { requirePermission };
@@ -1,8 +1,8 @@
1
1
  import { BaseExecutionContext } from "@inkeep/agents-core";
2
- import * as hono4 from "hono";
2
+ import * as hono7 from "hono";
3
3
 
4
4
  //#region src/middleware/runAuth.d.ts
5
- declare const runApiKeyAuth: () => hono4.MiddlewareHandler<{
5
+ declare const runApiKeyAuth: () => hono7.MiddlewareHandler<{
6
6
  Variables: {
7
7
  executionContext: BaseExecutionContext;
8
8
  };
@@ -11,7 +11,7 @@ declare const runApiKeyAuth: () => hono4.MiddlewareHandler<{
11
11
  * Creates a middleware that applies API key authentication except for specified route patterns
12
12
  * @param skipRouteCheck - Function that returns true if the route should skip authentication
13
13
  */
14
- declare const runApiKeyAuthExcept: (skipRouteCheck: (path: string) => boolean) => hono4.MiddlewareHandler<{
14
+ declare const runApiKeyAuthExcept: (skipRouteCheck: (path: string) => boolean) => hono7.MiddlewareHandler<{
15
15
  Variables: {
16
16
  executionContext: BaseExecutionContext;
17
17
  };
@@ -20,7 +20,7 @@ declare const runApiKeyAuthExcept: (skipRouteCheck: (path: string) => boolean) =
20
20
  * Helper middleware for endpoints that optionally support API key authentication
21
21
  * If no auth header is present, it continues without setting the executionContext
22
22
  */
23
- declare const runOptionalAuth: () => hono4.MiddlewareHandler<{
23
+ declare const runOptionalAuth: () => hono7.MiddlewareHandler<{
24
24
  Variables: {
25
25
  executionContext?: BaseExecutionContext;
26
26
  };
@@ -1,4 +1,4 @@
1
- import * as hono9 from "hono";
1
+ import * as hono10 from "hono";
2
2
 
3
3
  //#region src/middleware/sessionAuth.d.ts
4
4
 
@@ -7,11 +7,11 @@ import * as hono9 from "hono";
7
7
  * Requires that a user has already been authenticated via Better Auth session.
8
8
  * Used primarily for manage routes that require an active user session.
9
9
  */
10
- declare const sessionAuth: () => hono9.MiddlewareHandler<any, string, {}, Response>;
10
+ declare const sessionAuth: () => hono10.MiddlewareHandler<any, string, {}, Response>;
11
11
  /**
12
12
  * Global session middleware - sets user and session in context for all routes
13
13
  * Used for all routes that require an active user session.
14
14
  */
15
- declare const sessionContext: () => hono9.MiddlewareHandler<any, string, {}, Response>;
15
+ declare const sessionContext: () => hono10.MiddlewareHandler<any, string, {}, Response>;
16
16
  //#endregion
17
17
  export { sessionAuth, sessionContext };
@@ -1,4 +1,4 @@
1
- import * as hono8 from "hono";
1
+ import * as hono13 from "hono";
2
2
 
3
3
  //#region src/middleware/tenantAccess.d.ts
4
4
 
@@ -11,7 +11,7 @@ import * as hono8 from "hono";
11
11
  * - API key user: Access only to the tenant associated with the API key
12
12
  * - Session user: Access based on organization membership
13
13
  */
14
- declare const requireTenantAccess: () => hono8.MiddlewareHandler<{
14
+ declare const requireTenantAccess: () => hono13.MiddlewareHandler<{
15
15
  Variables: {
16
16
  userId: string;
17
17
  tenantId: string;
@@ -1,7 +1,7 @@
1
- import * as hono11 from "hono";
1
+ import * as hono14 from "hono";
2
2
 
3
3
  //#region src/middleware/tracing.d.ts
4
- declare const otelBaggageMiddleware: () => hono11.MiddlewareHandler<any, string, {}, Response>;
5
- declare const executionBaggageMiddleware: () => hono11.MiddlewareHandler<any, string, {}, Response>;
4
+ declare const otelBaggageMiddleware: () => hono14.MiddlewareHandler<any, string, {}, Response>;
5
+ declare const executionBaggageMiddleware: () => hono14.MiddlewareHandler<any, string, {}, Response>;
6
6
  //#endregion
7
7
  export { executionBaggageMiddleware, otelBaggageMiddleware };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-api",
3
- "version": "0.47.2",
3
+ "version": "0.47.3",
4
4
  "description": "Unified Inkeep Agents API - combines management, runtime, and evaluation capabilities",
5
5
  "types": "dist/index.d.ts",
6
6
  "exports": {
@@ -66,10 +66,10 @@
66
66
  "openid-client": "^6.8.1",
67
67
  "pg": "^8.16.3",
68
68
  "workflow": "4.0.1-beta.33",
69
- "@inkeep/agents-core": "^0.47.2",
70
- "@inkeep/agents-manage-mcp": "^0.47.2",
71
- "@inkeep/agents-mcp": "^0.47.2",
72
- "@inkeep/agents-work-apps": "^0.47.2"
69
+ "@inkeep/agents-core": "^0.47.3",
70
+ "@inkeep/agents-manage-mcp": "^0.47.3",
71
+ "@inkeep/agents-mcp": "^0.47.3",
72
+ "@inkeep/agents-work-apps": "^0.47.3"
73
73
  },
74
74
  "peerDependencies": {
75
75
  "@hono/zod-openapi": "^1.1.5",