@inkeep/agents-api 0.0.0-dev-20260122003353 → 0.0.0-dev-20260122014548

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 (34) hide show
  1. package/dist/.well-known/workflow/v1/flow.cjs +44 -44
  2. package/dist/.well-known/workflow/v1/flow.cjs.debug.json +2 -2
  3. package/dist/.well-known/workflow/v1/step.cjs +130 -130
  4. package/dist/.well-known/workflow/v1/step.cjs.debug.json +2 -2
  5. package/dist/createApp.d.ts +2 -2
  6. package/dist/data/db/manageDbClient.d.ts +2 -2
  7. package/dist/data/db/runDbClient.d.ts +2 -2
  8. package/dist/domains/evals/routes/datasetTriggers.d.ts +2 -2
  9. package/dist/domains/evals/workflow/routes.d.ts +2 -2
  10. package/dist/domains/manage/routes/conversations.d.ts +2 -2
  11. package/dist/domains/manage/routes/evals/evaluationResults.d.ts +2 -2
  12. package/dist/domains/manage/routes/index.d.ts +2 -2
  13. package/dist/domains/manage/routes/mcp.d.ts +2 -2
  14. package/dist/domains/manage/routes/signoz.d.ts +2 -2
  15. package/dist/domains/run/agents/Agent.js +95 -29
  16. package/dist/domains/run/agents/relationTools.d.ts +2 -2
  17. package/dist/domains/run/routes/chat.js +46 -0
  18. package/dist/domains/run/routes/chatDataStream.js +105 -12
  19. package/dist/domains/run/services/ToolApprovalUiBus.d.ts +28 -0
  20. package/dist/domains/run/services/ToolApprovalUiBus.js +44 -0
  21. package/dist/domains/run/utils/stream-helpers.d.ts +134 -0
  22. package/dist/domains/run/utils/stream-helpers.js +182 -0
  23. package/dist/domains/run/utils/token-estimator.d.ts +2 -2
  24. package/dist/factory.d.ts +2 -2
  25. package/dist/middleware/evalsAuth.d.ts +2 -2
  26. package/dist/middleware/manageAuth.d.ts +2 -2
  27. package/dist/middleware/projectAccess.d.ts +2 -2
  28. package/dist/middleware/projectConfig.d.ts +3 -3
  29. package/dist/middleware/requirePermission.d.ts +2 -2
  30. package/dist/middleware/runAuth.d.ts +4 -4
  31. package/dist/middleware/sessionAuth.d.ts +3 -3
  32. package/dist/middleware/tenantAccess.d.ts +2 -2
  33. package/dist/middleware/tracing.d.ts +3 -3
  34. package/package.json +3 -3
@@ -12,6 +12,36 @@ interface StreamHelper {
12
12
  writeData(type: string, data: any): Promise<void>;
13
13
  writeOperation(operation: OperationEvent): Promise<void>;
14
14
  writeSummary(summary: SummaryEvent): Promise<void>;
15
+ writeToolInputStart(params: {
16
+ toolCallId: string;
17
+ toolName: string;
18
+ }): Promise<void>;
19
+ writeToolInputDelta(params: {
20
+ toolCallId: string;
21
+ inputTextDelta: string;
22
+ }): Promise<void>;
23
+ writeToolInputAvailable(params: {
24
+ toolCallId: string;
25
+ toolName: string;
26
+ input: any;
27
+ providerMetadata?: any;
28
+ }): Promise<void>;
29
+ writeToolOutputAvailable(params: {
30
+ toolCallId: string;
31
+ output: any;
32
+ }): Promise<void>;
33
+ writeToolOutputError(params: {
34
+ toolCallId: string;
35
+ error: string;
36
+ output?: any;
37
+ }): Promise<void>;
38
+ writeToolApprovalRequest(params: {
39
+ approvalId: string;
40
+ toolCallId: string;
41
+ }): Promise<void>;
42
+ writeToolOutputDenied(params: {
43
+ toolCallId: string;
44
+ }): Promise<void>;
15
45
  }
16
46
  interface HonoSSEStream {
17
47
  writeSSE(message: {
@@ -31,6 +61,15 @@ interface ChatCompletionChunk {
31
61
  delta: {
32
62
  role?: string;
33
63
  content?: string;
64
+ tool_calls?: Array<{
65
+ index: number;
66
+ id: string | null;
67
+ type: 'function' | null;
68
+ function: {
69
+ name: string | null;
70
+ arguments: string;
71
+ };
72
+ }>;
34
73
  };
35
74
  finish_reason: string | null;
36
75
  }>;
@@ -41,6 +80,7 @@ declare class SSEStreamHelper implements StreamHelper {
41
80
  private timestamp;
42
81
  private isTextStreaming;
43
82
  private queuedEvents;
83
+ private toolCallIndexById;
44
84
  constructor(stream: HonoSSEStream, requestId: string, timestamp: number);
45
85
  /**
46
86
  * Write the initial role message
@@ -50,6 +90,8 @@ declare class SSEStreamHelper implements StreamHelper {
50
90
  * Write content chunk
51
91
  */
52
92
  writeContent(content: string): Promise<void>;
93
+ private getToolIndex;
94
+ private writeToolCallsDelta;
53
95
  /**
54
96
  * Stream text word by word with optional delay
55
97
  */
@@ -64,6 +106,36 @@ declare class SSEStreamHelper implements StreamHelper {
64
106
  */
65
107
  writeCompletion(finishReason?: string): Promise<void>;
66
108
  writeData(type: string, data: any): Promise<void>;
109
+ writeToolInputStart(params: {
110
+ toolCallId: string;
111
+ toolName: string;
112
+ }): Promise<void>;
113
+ writeToolInputDelta(params: {
114
+ toolCallId: string;
115
+ inputTextDelta: string;
116
+ }): Promise<void>;
117
+ writeToolInputAvailable(params: {
118
+ toolCallId: string;
119
+ toolName: string;
120
+ input: any;
121
+ providerMetadata?: any;
122
+ }): Promise<void>;
123
+ writeToolOutputAvailable(params: {
124
+ toolCallId: string;
125
+ output: any;
126
+ }): Promise<void>;
127
+ writeToolOutputError(params: {
128
+ toolCallId: string;
129
+ error: string;
130
+ output?: any;
131
+ }): Promise<void>;
132
+ writeToolApprovalRequest(params: {
133
+ approvalId: string;
134
+ toolCallId: string;
135
+ }): Promise<void>;
136
+ writeToolOutputDenied(params: {
137
+ toolCallId: string;
138
+ }): Promise<void>;
67
139
  writeSummary(summary: SummaryEvent): Promise<void>;
68
140
  writeOperation(operation: OperationEvent): Promise<void>;
69
141
  /**
@@ -101,11 +173,42 @@ declare class VercelDataStreamHelper implements StreamHelper {
101
173
  private lastTextEndTimestamp;
102
174
  private connectionDropTimer?;
103
175
  constructor(writer: VercelUIWriter);
176
+ setSessionId(_sessionId: string): void;
104
177
  writeRole(_?: string): Promise<void>;
105
178
  writeContent(content: string): Promise<void>;
106
179
  streamText(text: string, delayMs?: number): Promise<void>;
107
180
  writeData(type: string, data: any): Promise<void>;
108
181
  writeError(error: string | ErrorEvent): Promise<void>;
182
+ writeToolInputStart(params: {
183
+ toolCallId: string;
184
+ toolName: string;
185
+ }): Promise<void>;
186
+ writeToolInputDelta(params: {
187
+ toolCallId: string;
188
+ inputTextDelta: string;
189
+ }): Promise<void>;
190
+ writeToolInputAvailable(params: {
191
+ toolCallId: string;
192
+ toolName: string;
193
+ input: any;
194
+ providerMetadata?: any;
195
+ }): Promise<void>;
196
+ writeToolOutputAvailable(params: {
197
+ toolCallId: string;
198
+ output: any;
199
+ }): Promise<void>;
200
+ writeToolOutputError(params: {
201
+ toolCallId: string;
202
+ error: string;
203
+ output?: any;
204
+ }): Promise<void>;
205
+ writeToolApprovalRequest(params: {
206
+ approvalId: string;
207
+ toolCallId: string;
208
+ }): Promise<void>;
209
+ writeToolOutputDenied(params: {
210
+ toolCallId: string;
211
+ }): Promise<void>;
109
212
  streamData(data: any): Promise<void>;
110
213
  mergeStream(stream: any): Promise<void>;
111
214
  /**
@@ -164,6 +267,7 @@ declare class BufferingStreamHelper implements StreamHelper {
164
267
  private capturedSummaries;
165
268
  private hasError;
166
269
  private errorMessage;
270
+ setSessionId(_sessionId: string): void;
167
271
  writeRole(_role?: string): Promise<void>;
168
272
  writeContent(content: string): Promise<void>;
169
273
  streamText(text: string, _delayMs?: number): Promise<void>;
@@ -174,6 +278,36 @@ declare class BufferingStreamHelper implements StreamHelper {
174
278
  writeSummary(summary: SummaryEvent): Promise<void>;
175
279
  writeOperation(operation: OperationEvent): Promise<void>;
176
280
  writeError(error: string | ErrorEvent): Promise<void>;
281
+ writeToolInputStart(params: {
282
+ toolCallId: string;
283
+ toolName: string;
284
+ }): Promise<void>;
285
+ writeToolInputDelta(params: {
286
+ toolCallId: string;
287
+ inputTextDelta: string;
288
+ }): Promise<void>;
289
+ writeToolInputAvailable(params: {
290
+ toolCallId: string;
291
+ toolName: string;
292
+ input: any;
293
+ providerMetadata?: any;
294
+ }): Promise<void>;
295
+ writeToolOutputAvailable(params: {
296
+ toolCallId: string;
297
+ output: any;
298
+ }): Promise<void>;
299
+ writeToolOutputError(params: {
300
+ toolCallId: string;
301
+ error: string;
302
+ output?: any;
303
+ }): Promise<void>;
304
+ writeToolApprovalRequest(params: {
305
+ approvalId: string;
306
+ toolCallId: string;
307
+ }): Promise<void>;
308
+ writeToolOutputDenied(params: {
309
+ toolCallId: string;
310
+ }): Promise<void>;
177
311
  complete(): Promise<void>;
178
312
  /**
179
313
  * Get the captured response for non-streaming output
@@ -5,6 +5,7 @@ import { parsePartialJson } from "ai";
5
5
  var SSEStreamHelper = class {
6
6
  isTextStreaming = false;
7
7
  queuedEvents = [];
8
+ toolCallIndexById = /* @__PURE__ */ new Map();
8
9
  constructor(stream, requestId, timestamp) {
9
10
  this.stream = stream;
10
11
  this.requestId = requestId;
@@ -40,6 +41,25 @@ var SSEStreamHelper = class {
40
41
  }]
41
42
  }) });
42
43
  }
44
+ getToolIndex(toolCallId) {
45
+ const existing = this.toolCallIndexById.get(toolCallId);
46
+ if (existing !== void 0) return existing;
47
+ const next = this.toolCallIndexById.size;
48
+ this.toolCallIndexById.set(toolCallId, next);
49
+ return next;
50
+ }
51
+ async writeToolCallsDelta(toolCalls) {
52
+ await this.stream.writeSSE({ data: JSON.stringify({
53
+ id: this.requestId,
54
+ object: "chat.completion.chunk",
55
+ created: this.timestamp,
56
+ choices: [{
57
+ index: 0,
58
+ delta: { tool_calls: toolCalls },
59
+ finish_reason: null
60
+ }]
61
+ }) });
62
+ }
43
63
  /**
44
64
  * Stream text word by word with optional delay
45
65
  */
@@ -97,6 +117,65 @@ var SSEStreamHelper = class {
97
117
  }]
98
118
  }) });
99
119
  }
120
+ async writeToolInputStart(params) {
121
+ const index = this.getToolIndex(params.toolCallId);
122
+ await this.writeToolCallsDelta([{
123
+ index,
124
+ id: params.toolCallId,
125
+ type: "function",
126
+ function: {
127
+ name: params.toolName,
128
+ arguments: ""
129
+ }
130
+ }]);
131
+ }
132
+ async writeToolInputDelta(params) {
133
+ const index = this.getToolIndex(params.toolCallId);
134
+ await this.writeToolCallsDelta([{
135
+ index,
136
+ id: null,
137
+ type: null,
138
+ function: {
139
+ name: null,
140
+ arguments: params.inputTextDelta
141
+ }
142
+ }]);
143
+ }
144
+ async writeToolInputAvailable(params) {
145
+ const fullArgs = JSON.stringify(params.input ?? {});
146
+ if (fullArgs) await this.writeToolInputDelta({
147
+ toolCallId: params.toolCallId,
148
+ inputTextDelta: fullArgs
149
+ });
150
+ }
151
+ async writeToolOutputAvailable(params) {
152
+ await this.writeContent(JSON.stringify({
153
+ type: "tool-output-available",
154
+ toolCallId: params.toolCallId,
155
+ output: params.output
156
+ }));
157
+ }
158
+ async writeToolOutputError(params) {
159
+ await this.writeContent(JSON.stringify({
160
+ type: "tool-output-error",
161
+ toolCallId: params.toolCallId,
162
+ error: params.error,
163
+ output: params.output ?? null
164
+ }));
165
+ }
166
+ async writeToolApprovalRequest(params) {
167
+ await this.writeContent(JSON.stringify({
168
+ type: "tool-approval-request",
169
+ approvalId: params.approvalId,
170
+ toolCallId: params.toolCallId
171
+ }));
172
+ }
173
+ async writeToolOutputDenied(params) {
174
+ await this.writeContent(JSON.stringify({
175
+ type: "tool-output-denied",
176
+ toolCallId: params.toolCallId
177
+ }));
178
+ }
100
179
  async writeSummary(summary) {
101
180
  if (this.isTextStreaming) {
102
181
  this.queuedEvents.push({
@@ -166,6 +245,7 @@ var VercelDataStreamHelper = class VercelDataStreamHelper {
166
245
  this.forceCleanup("Connection lifetime exceeded");
167
246
  }, STREAM_MAX_LIFETIME_MS);
168
247
  }
248
+ setSessionId(_sessionId) {}
169
249
  async writeRole(_ = "assistant") {}
170
250
  async writeContent(content) {
171
251
  if (this.isCompleted) {
@@ -272,6 +352,64 @@ var VercelDataStreamHelper = class VercelDataStreamHelper {
272
352
  type: "error"
273
353
  });
274
354
  }
355
+ async writeToolInputStart(params) {
356
+ if (this.isCompleted) return;
357
+ this.writer.write({
358
+ type: "tool-input-start",
359
+ toolCallId: params.toolCallId,
360
+ toolName: params.toolName
361
+ });
362
+ }
363
+ async writeToolInputDelta(params) {
364
+ if (this.isCompleted) return;
365
+ this.writer.write({
366
+ type: "tool-input-delta",
367
+ toolCallId: params.toolCallId,
368
+ inputTextDelta: params.inputTextDelta
369
+ });
370
+ }
371
+ async writeToolInputAvailable(params) {
372
+ if (this.isCompleted) return;
373
+ this.writer.write({
374
+ type: "tool-input-available",
375
+ toolCallId: params.toolCallId,
376
+ toolName: params.toolName,
377
+ input: params.input,
378
+ ...params.providerMetadata ? { providerMetadata: params.providerMetadata } : {}
379
+ });
380
+ }
381
+ async writeToolOutputAvailable(params) {
382
+ if (this.isCompleted) return;
383
+ this.writer.write({
384
+ type: "tool-output-available",
385
+ toolCallId: params.toolCallId,
386
+ output: params.output
387
+ });
388
+ }
389
+ async writeToolOutputError(params) {
390
+ if (this.isCompleted) return;
391
+ this.writer.write({
392
+ type: "tool-output-error",
393
+ toolCallId: params.toolCallId,
394
+ error: params.error,
395
+ output: params.output ?? null
396
+ });
397
+ }
398
+ async writeToolApprovalRequest(params) {
399
+ if (this.isCompleted) return;
400
+ this.writer.write({
401
+ type: "tool-approval-request",
402
+ approvalId: params.approvalId,
403
+ toolCallId: params.toolCallId
404
+ });
405
+ }
406
+ async writeToolOutputDenied(params) {
407
+ if (this.isCompleted) return;
408
+ this.writer.write({
409
+ type: "tool-output-denied",
410
+ toolCallId: params.toolCallId
411
+ });
412
+ }
275
413
  async streamData(data) {
276
414
  await this.writeContent(JSON.stringify(data));
277
415
  }
@@ -458,6 +596,7 @@ var BufferingStreamHelper = class {
458
596
  capturedSummaries = [];
459
597
  hasError = false;
460
598
  errorMessage = "";
599
+ setSessionId(_sessionId) {}
461
600
  async writeRole(_role) {}
462
601
  async writeContent(content) {
463
602
  this.capturedText += content;
@@ -487,6 +626,49 @@ var BufferingStreamHelper = class {
487
626
  this.hasError = true;
488
627
  this.errorMessage = typeof error === "string" ? error : error.message;
489
628
  }
629
+ async writeToolInputStart(params) {
630
+ this.capturedData.push({
631
+ type: "tool-input-start",
632
+ ...params
633
+ });
634
+ }
635
+ async writeToolInputDelta(params) {
636
+ this.capturedData.push({
637
+ type: "tool-input-delta",
638
+ ...params
639
+ });
640
+ }
641
+ async writeToolInputAvailable(params) {
642
+ this.capturedData.push({
643
+ type: "tool-input-available",
644
+ ...params
645
+ });
646
+ }
647
+ async writeToolOutputAvailable(params) {
648
+ this.capturedData.push({
649
+ type: "tool-output-available",
650
+ ...params
651
+ });
652
+ }
653
+ async writeToolOutputError(params) {
654
+ this.capturedData.push({
655
+ type: "tool-output-error",
656
+ ...params,
657
+ output: params.output ?? null
658
+ });
659
+ }
660
+ async writeToolApprovalRequest(params) {
661
+ this.capturedData.push({
662
+ type: "tool-approval-request",
663
+ ...params
664
+ });
665
+ }
666
+ async writeToolOutputDenied(params) {
667
+ this.capturedData.push({
668
+ type: "tool-output-denied",
669
+ ...params
670
+ });
671
+ }
490
672
  async complete() {}
491
673
  /**
492
674
  * Get the captured response for non-streaming output
@@ -1,4 +1,4 @@
1
- import * as _inkeep_agents_core3 from "@inkeep/agents-core";
1
+ import * as _inkeep_agents_core1 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_core3.ContextBreakdown;
20
+ breakdown: _inkeep_agents_core1.ContextBreakdown;
21
21
  }
22
22
  //#endregion
23
23
  export { AssembleResult, type BreakdownComponentDef, type ContextBreakdown, calculateBreakdownTotal, createEmptyBreakdown, estimateTokens };
package/dist/factory.d.ts CHANGED
@@ -3,7 +3,7 @@ import "./types/index.js";
3
3
  import { createAgentsHono } from "./createApp.js";
4
4
  import { initializeDefaultUser } from "./initialization.js";
5
5
  import { createAuth0Provider, createOIDCProvider } from "./ssoHelpers.js";
6
- import * as hono14 from "hono";
6
+ import * as hono3 from "hono";
7
7
  import { CredentialStore, ServerConfig } from "@inkeep/agents-core";
8
8
  import * as zod0 from "zod";
9
9
  import { SSOProviderConfig, UserAuthConfig } from "@inkeep/agents-core/auth";
@@ -1536,6 +1536,6 @@ declare function createAgentsApp(config?: {
1536
1536
  auth?: UserAuthConfig;
1537
1537
  sandboxConfig?: SandboxConfig;
1538
1538
  skipInitialization?: boolean;
1539
- }): hono14.Hono<hono_types0.BlankEnv, hono_types0.BlankSchema, "/">;
1539
+ }): hono3.Hono<hono_types0.BlankEnv, hono_types0.BlankSchema, "/">;
1540
1540
  //#endregion
1541
1541
  export { type SSOProviderConfig, type UserAuthConfig, createAgentsApp, createAgentsAuth, createAgentsHono, createAuth0Provider, createOIDCProvider, initializeDefaultUser };
@@ -1,4 +1,4 @@
1
- import * as hono0 from "hono";
1
+ import * as hono5 from "hono";
2
2
  import { BaseExecutionContext } from "@inkeep/agents-core";
3
3
 
4
4
  //#region src/middleware/evalsAuth.d.ts
@@ -7,7 +7,7 @@ import { BaseExecutionContext } from "@inkeep/agents-core";
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: () => hono0.MiddlewareHandler<{
10
+ declare const evalApiKeyAuth: () => hono5.MiddlewareHandler<{
11
11
  Variables: {
12
12
  executionContext: BaseExecutionContext;
13
13
  };
@@ -1,4 +1,4 @@
1
- import * as hono1 from "hono";
1
+ import * as hono6 from "hono";
2
2
  import { BaseExecutionContext } from "@inkeep/agents-core";
3
3
  import { createAuth } from "@inkeep/agents-core/auth";
4
4
 
@@ -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: () => hono1.MiddlewareHandler<{
15
+ declare const manageApiKeyAuth: () => hono6.MiddlewareHandler<{
16
16
  Variables: {
17
17
  executionContext: BaseExecutionContext;
18
18
  userId?: string;
@@ -1,5 +1,5 @@
1
1
  import { ManageAppVariables } from "../types/app.js";
2
- import * as hono2 from "hono";
2
+ import * as hono7 from "hono";
3
3
 
4
4
  //#region src/middleware/projectAccess.d.ts
5
5
 
@@ -26,6 +26,6 @@ declare const requireProjectPermission: <Env$1 extends {
26
26
  Variables: ManageAppVariables;
27
27
  } = {
28
28
  Variables: ManageAppVariables;
29
- }>(permission?: ProjectPermission) => hono2.MiddlewareHandler<Env$1, string, {}, Response>;
29
+ }>(permission?: ProjectPermission) => hono7.MiddlewareHandler<Env$1, string, {}, Response>;
30
30
  //#endregion
31
31
  export { ProjectPermission, requireProjectPermission };
@@ -1,11 +1,11 @@
1
- import * as hono3 from "hono";
1
+ import * as hono11 from "hono";
2
2
  import { BaseExecutionContext, ResolvedRef } from "@inkeep/agents-core";
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: hono3.MiddlewareHandler<{
8
+ declare const projectConfigMiddleware: hono11.MiddlewareHandler<{
9
9
  Variables: {
10
10
  executionContext: BaseExecutionContext;
11
11
  resolvedRef: ResolvedRef;
@@ -15,7 +15,7 @@ declare const projectConfigMiddleware: hono3.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) => hono3.MiddlewareHandler<{
18
+ declare const projectConfigMiddlewareExcept: (skipRouteCheck: (path: string) => boolean) => hono11.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 hono5 from "hono";
2
+ import * as hono4 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) => hono5.MiddlewareHandler<Env$1, string, {}, Response>;
12
+ }>(permissions: Permission) => hono4.MiddlewareHandler<Env$1, string, {}, Response>;
13
13
  //#endregion
14
14
  export { requirePermission };
@@ -1,8 +1,8 @@
1
- import * as hono6 from "hono";
1
+ import * as hono8 from "hono";
2
2
  import { BaseExecutionContext } from "@inkeep/agents-core";
3
3
 
4
4
  //#region src/middleware/runAuth.d.ts
5
- declare const runApiKeyAuth: () => hono6.MiddlewareHandler<{
5
+ declare const runApiKeyAuth: () => hono8.MiddlewareHandler<{
6
6
  Variables: {
7
7
  executionContext: BaseExecutionContext;
8
8
  };
@@ -11,7 +11,7 @@ declare const runApiKeyAuth: () => hono6.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) => hono6.MiddlewareHandler<{
14
+ declare const runApiKeyAuthExcept: (skipRouteCheck: (path: string) => boolean) => hono8.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: () => hono6.MiddlewareHandler<{
23
+ declare const runOptionalAuth: () => hono8.MiddlewareHandler<{
24
24
  Variables: {
25
25
  executionContext?: BaseExecutionContext;
26
26
  };
@@ -1,4 +1,4 @@
1
- import * as hono9 from "hono";
1
+ import * as hono1 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: () => hono1.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: () => hono1.MiddlewareHandler<any, string, {}, Response>;
16
16
  //#endregion
17
17
  export { sessionAuth, sessionContext };
@@ -1,4 +1,4 @@
1
- import * as hono0 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 hono0 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: () => hono0.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 hono16 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: () => hono16.MiddlewareHandler<any, string, {}, Response>;
5
+ declare const executionBaggageMiddleware: () => hono16.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.0.0-dev-20260122003353",
3
+ "version": "0.0.0-dev-20260122014548",
4
4
  "description": "Unified Inkeep Agents API - combines management, runtime, and evaluation capabilities",
5
5
  "types": "dist/index.d.ts",
6
6
  "exports": {
@@ -70,8 +70,8 @@
70
70
  "openid-client": "^6.8.1",
71
71
  "pg": "^8.16.3",
72
72
  "workflow": "4.0.1-beta.33",
73
- "@inkeep/agents-core": "^0.0.0-dev-20260122003353",
74
- "@inkeep/agents-manage-mcp": "^0.0.0-dev-20260122003353"
73
+ "@inkeep/agents-core": "^0.0.0-dev-20260122014548",
74
+ "@inkeep/agents-manage-mcp": "^0.0.0-dev-20260122014548"
75
75
  },
76
76
  "peerDependencies": {
77
77
  "@hono/zod-openapi": "^1.1.5",