@inkeep/agents-api 0.80.3 → 0.80.4

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 (35) hide show
  1. package/dist/.well-known/workflow/v1/manifest.json +52 -52
  2. package/dist/createApp.d.ts +2 -2
  3. package/dist/data/db/manageDbClient.d.ts +2 -2
  4. package/dist/data/db/runDbClient.d.ts +2 -2
  5. package/dist/data-reconciliation/handlers/agent.d.ts +2 -2
  6. package/dist/data-reconciliation/handlers/context-configs.d.ts +2 -2
  7. package/dist/data-reconciliation/handlers/sub-agents.d.ts +2 -2
  8. package/dist/data-reconciliation/handlers/tools.d.ts +2 -2
  9. package/dist/domains/evals/routes/index.d.ts +2 -2
  10. package/dist/domains/evals/workflow/routes.d.ts +2 -2
  11. package/dist/domains/manage/routes/availableAgents.d.ts +2 -2
  12. package/dist/domains/manage/routes/conversations.d.ts +2 -2
  13. package/dist/domains/manage/routes/feedback.d.ts +2 -2
  14. package/dist/domains/manage/routes/index.d.ts +2 -2
  15. package/dist/domains/manage/routes/users.d.ts +2 -2
  16. package/dist/domains/mcp/routes/mcp.d.ts +2 -2
  17. package/dist/domains/run/agents/relationTools.d.ts +2 -2
  18. package/dist/domains/run/routes/auth.d.ts +2 -2
  19. package/dist/domains/run/types/chat.d.ts +3 -3
  20. package/dist/factory.d.ts +2 -2
  21. package/dist/factory.js +2 -0
  22. package/dist/index.d.ts +2 -2
  23. package/dist/index.js +2 -8
  24. package/dist/middleware/evalsAuth.d.ts +2 -2
  25. package/dist/middleware/manageAuth.d.ts +3 -3
  26. package/dist/middleware/projectConfig.d.ts +3 -3
  27. package/dist/middleware/requireEntitlement.d.ts +2 -2
  28. package/dist/middleware/requirePermission.d.ts +2 -2
  29. package/dist/middleware/runAuth.d.ts +4 -4
  30. package/dist/middleware/sessionAuth.d.ts +3 -3
  31. package/dist/middleware/tenantAccess.d.ts +2 -2
  32. package/dist/middleware/tracing.d.ts +3 -3
  33. package/dist/startup/playground-app.d.ts +2 -1
  34. package/dist/startup/playground-app.js +13 -1
  35. package/package.json +5 -5
@@ -54,6 +54,22 @@
54
54
  "stepId": "step//./src/domains/run/workflow/steps/webhookDeliverySteps//logStep"
55
55
  }
56
56
  },
57
+ "node_modules/.pnpm/workflow@4.2.0-beta.67_@nestjs+common@11.1.13_reflect-metadata@0.2.2_rxjs@7.8.2__@nestj_96922d2271aac238f90b7b371b58c984/node_modules/workflow/dist/stdlib.js": {
58
+ "fetch": {
59
+ "stepId": "step//workflow@4.2.0-beta.67//fetch"
60
+ }
61
+ },
62
+ "node_modules/.pnpm/workflow@4.2.0-beta.67_@nestjs+common@11.1.13_reflect-metadata@0.2.2_rxjs@7.8.2__@nestj_96922d2271aac238f90b7b371b58c984/node_modules/workflow/dist/internal/builtins.js": {
63
+ "__builtin_response_array_buffer": {
64
+ "stepId": "__builtin_response_array_buffer"
65
+ },
66
+ "__builtin_response_json": {
67
+ "stepId": "__builtin_response_json"
68
+ },
69
+ "__builtin_response_text": {
70
+ "stepId": "__builtin_response_text"
71
+ }
72
+ },
57
73
  "src/domains/evals/workflow/functions/runDatasetItem.ts": {
58
74
  "executeDatasetItemStep": {
59
75
  "stepId": "step//./src/domains/evals/workflow/functions/runDatasetItem//executeDatasetItemStep"
@@ -83,17 +99,6 @@
83
99
  "stepId": "step//./src/domains/evals/workflow/functions/runDatasetItem//resolveAgentNameStep"
84
100
  }
85
101
  },
86
- "node_modules/.pnpm/workflow@4.2.0-beta.67_@nestjs+common@11.1.13_reflect-metadata@0.2.2_rxjs@7.8.2__@nestj_96922d2271aac238f90b7b371b58c984/node_modules/workflow/dist/internal/builtins.js": {
87
- "__builtin_response_array_buffer": {
88
- "stepId": "__builtin_response_array_buffer"
89
- },
90
- "__builtin_response_json": {
91
- "stepId": "__builtin_response_json"
92
- },
93
- "__builtin_response_text": {
94
- "stepId": "__builtin_response_text"
95
- }
96
- },
97
102
  "src/domains/run/workflow/steps/scheduledTriggerSteps.ts": {
98
103
  "addConversationIdStep": {
99
104
  "stepId": "step//./src/domains/run/workflow/steps/scheduledTriggerSteps//addConversationIdStep"
@@ -132,11 +137,6 @@
132
137
  "stepId": "step//./src/domains/run/workflow/steps/scheduledTriggerSteps//resetInvocationToPendingStep"
133
138
  }
134
139
  },
135
- "node_modules/.pnpm/workflow@4.2.0-beta.67_@nestjs+common@11.1.13_reflect-metadata@0.2.2_rxjs@7.8.2__@nestj_96922d2271aac238f90b7b371b58c984/node_modules/workflow/dist/stdlib.js": {
136
- "fetch": {
137
- "stepId": "step//workflow@4.2.0-beta.67//fetch"
138
- }
139
- },
140
140
  "src/domains/run/workflow/steps/agentExecutionSteps.ts": {
141
141
  "callLlmStep": {
142
142
  "stepId": "step//./src/domains/run/workflow/steps/agentExecutionSteps//callLlmStep"
@@ -264,21 +264,21 @@
264
264
  }
265
265
  }
266
266
  },
267
- "src/domains/evals/workflow/functions/scheduledDatasetRun.ts": {
268
- "_scheduledDatasetRunWorkflow": {
269
- "workflowId": "workflow//./src/domains/evals/workflow/functions/scheduledDatasetRun//_scheduledDatasetRunWorkflow",
267
+ "src/domains/run/workflow/functions/scheduledTriggerRunner.ts": {
268
+ "_scheduledTriggerRunnerWorkflow": {
269
+ "workflowId": "workflow//./src/domains/run/workflow/functions/scheduledTriggerRunner//_scheduledTriggerRunnerWorkflow",
270
270
  "graph": {
271
271
  "nodes": [
272
272
  {
273
273
  "id": "start",
274
274
  "type": "workflowStart",
275
275
  "data": {
276
- "label": "Start: _scheduledDatasetRunWorkflow",
276
+ "label": "Start: _scheduledTriggerRunnerWorkflow",
277
277
  "nodeKind": "workflow_start"
278
278
  }
279
279
  },
280
280
  {
281
- "id": "cond_1_node",
281
+ "id": "cond_4_node",
282
282
  "type": "conditional",
283
283
  "data": {
284
284
  "label": "delayBeforeExecutionMs && delayBeforeExecutionMs > 0",
@@ -293,12 +293,12 @@
293
293
  "nodeKind": "primitive"
294
294
  },
295
295
  "metadata": {
296
- "conditionalId": "cond_1",
296
+ "conditionalId": "cond_4",
297
297
  "conditionalBranch": "Then"
298
298
  }
299
299
  },
300
300
  {
301
- "id": "cond_6_node",
301
+ "id": "cond_9_node",
302
302
  "type": "conditional",
303
303
  "data": {
304
304
  "label": "attemptNumber < maxAttempts",
@@ -317,7 +317,7 @@
317
317
  },
318
318
  "metadata": {
319
319
  "loopId": "loop_0",
320
- "conditionalId": "cond_6",
320
+ "conditionalId": "cond_9",
321
321
  "conditionalBranch": "Then"
322
322
  }
323
323
  },
@@ -332,35 +332,35 @@
332
332
  ],
333
333
  "edges": [
334
334
  {
335
- "id": "e_cond_1_node_node_0_true",
336
- "source": "cond_1_node",
335
+ "id": "e_cond_4_node_node_0_true",
336
+ "source": "cond_4_node",
337
337
  "target": "node_0",
338
338
  "type": "conditional",
339
339
  "label": "true"
340
340
  },
341
341
  {
342
- "id": "e_start_cond_1_node",
342
+ "id": "e_start_cond_4_node",
343
343
  "source": "start",
344
- "target": "cond_1_node",
344
+ "target": "cond_4_node",
345
345
  "type": "default"
346
346
  },
347
347
  {
348
- "id": "e_cond_6_node_node_1_true",
349
- "source": "cond_6_node",
348
+ "id": "e_cond_9_node_node_1_true",
349
+ "source": "cond_9_node",
350
350
  "target": "node_1",
351
351
  "type": "conditional",
352
352
  "label": "true"
353
353
  },
354
354
  {
355
- "id": "e_node_1_back_cond_6_node",
355
+ "id": "e_node_1_back_cond_9_node",
356
356
  "source": "node_1",
357
- "target": "cond_6_node",
357
+ "target": "cond_9_node",
358
358
  "type": "loop"
359
359
  },
360
360
  {
361
- "id": "e_node_0_cond_6_node",
361
+ "id": "e_node_0_cond_9_node",
362
362
  "source": "node_0",
363
- "target": "cond_6_node",
363
+ "target": "cond_9_node",
364
364
  "type": "default"
365
365
  },
366
366
  {
@@ -373,21 +373,21 @@
373
373
  }
374
374
  }
375
375
  },
376
- "src/domains/run/workflow/functions/scheduledTriggerRunner.ts": {
377
- "_scheduledTriggerRunnerWorkflow": {
378
- "workflowId": "workflow//./src/domains/run/workflow/functions/scheduledTriggerRunner//_scheduledTriggerRunnerWorkflow",
376
+ "src/domains/evals/workflow/functions/scheduledDatasetRun.ts": {
377
+ "_scheduledDatasetRunWorkflow": {
378
+ "workflowId": "workflow//./src/domains/evals/workflow/functions/scheduledDatasetRun//_scheduledDatasetRunWorkflow",
379
379
  "graph": {
380
380
  "nodes": [
381
381
  {
382
382
  "id": "start",
383
383
  "type": "workflowStart",
384
384
  "data": {
385
- "label": "Start: _scheduledTriggerRunnerWorkflow",
385
+ "label": "Start: _scheduledDatasetRunWorkflow",
386
386
  "nodeKind": "workflow_start"
387
387
  }
388
388
  },
389
389
  {
390
- "id": "cond_4_node",
390
+ "id": "cond_1_node",
391
391
  "type": "conditional",
392
392
  "data": {
393
393
  "label": "delayBeforeExecutionMs && delayBeforeExecutionMs > 0",
@@ -402,12 +402,12 @@
402
402
  "nodeKind": "primitive"
403
403
  },
404
404
  "metadata": {
405
- "conditionalId": "cond_4",
405
+ "conditionalId": "cond_1",
406
406
  "conditionalBranch": "Then"
407
407
  }
408
408
  },
409
409
  {
410
- "id": "cond_9_node",
410
+ "id": "cond_6_node",
411
411
  "type": "conditional",
412
412
  "data": {
413
413
  "label": "attemptNumber < maxAttempts",
@@ -426,7 +426,7 @@
426
426
  },
427
427
  "metadata": {
428
428
  "loopId": "loop_0",
429
- "conditionalId": "cond_9",
429
+ "conditionalId": "cond_6",
430
430
  "conditionalBranch": "Then"
431
431
  }
432
432
  },
@@ -441,35 +441,35 @@
441
441
  ],
442
442
  "edges": [
443
443
  {
444
- "id": "e_cond_4_node_node_0_true",
445
- "source": "cond_4_node",
444
+ "id": "e_cond_1_node_node_0_true",
445
+ "source": "cond_1_node",
446
446
  "target": "node_0",
447
447
  "type": "conditional",
448
448
  "label": "true"
449
449
  },
450
450
  {
451
- "id": "e_start_cond_4_node",
451
+ "id": "e_start_cond_1_node",
452
452
  "source": "start",
453
- "target": "cond_4_node",
453
+ "target": "cond_1_node",
454
454
  "type": "default"
455
455
  },
456
456
  {
457
- "id": "e_cond_9_node_node_1_true",
458
- "source": "cond_9_node",
457
+ "id": "e_cond_6_node_node_1_true",
458
+ "source": "cond_6_node",
459
459
  "target": "node_1",
460
460
  "type": "conditional",
461
461
  "label": "true"
462
462
  },
463
463
  {
464
- "id": "e_node_1_back_cond_9_node",
464
+ "id": "e_node_1_back_cond_6_node",
465
465
  "source": "node_1",
466
- "target": "cond_9_node",
466
+ "target": "cond_6_node",
467
467
  "type": "loop"
468
468
  },
469
469
  {
470
- "id": "e_node_0_cond_9_node",
470
+ "id": "e_node_0_cond_6_node",
471
471
  "source": "node_0",
472
- "target": "cond_9_node",
472
+ "target": "cond_6_node",
473
473
  "type": "default"
474
474
  },
475
475
  {
@@ -1,10 +1,10 @@
1
1
  import { AppConfig } from "./types/app.js";
2
2
  import "./types/index.js";
3
3
  import { Hono } from "hono";
4
- import * as hono_types0 from "hono/types";
4
+ import * as hono_types2 from "hono/types";
5
5
 
6
6
  //#region src/createApp.d.ts
7
7
  declare const isWebhookRoute: (path: string) => boolean;
8
- declare function createAgentsHono(config: AppConfig): Hono<hono_types0.BlankEnv, hono_types0.BlankSchema, "/">;
8
+ declare function createAgentsHono(config: AppConfig): Hono<hono_types2.BlankEnv, hono_types2.BlankSchema, "/">;
9
9
  //#endregion
10
10
  export { createAgentsHono, isWebhookRoute };
@@ -1,6 +1,6 @@
1
- import * as _inkeep_agents_core2 from "@inkeep/agents-core";
1
+ import * as _inkeep_agents_core1 from "@inkeep/agents-core";
2
2
 
3
3
  //#region src/data/db/manageDbClient.d.ts
4
- declare const manageDbClient: _inkeep_agents_core2.AgentsManageDatabaseClient;
4
+ declare const manageDbClient: _inkeep_agents_core1.AgentsManageDatabaseClient;
5
5
  //#endregion
6
6
  export { manageDbClient as default };
@@ -1,6 +1,6 @@
1
- import * as _inkeep_agents_core0 from "@inkeep/agents-core";
1
+ import * as _inkeep_agents_core2 from "@inkeep/agents-core";
2
2
 
3
3
  //#region src/data/db/runDbClient.d.ts
4
- declare const runDbClient: _inkeep_agents_core0.AgentsRunDatabaseClient;
4
+ declare const runDbClient: _inkeep_agents_core2.AgentsRunDatabaseClient;
5
5
  //#endregion
6
6
  export { runDbClient as default };
@@ -1,6 +1,6 @@
1
- import * as _inkeep_agents_core0 from "@inkeep/agents-core";
1
+ import * as _inkeep_agents_core3 from "@inkeep/agents-core";
2
2
 
3
3
  //#region src/data-reconciliation/handlers/agent.d.ts
4
- declare const agentHandlers: _inkeep_agents_core0.EntityEffectHandlers<"agent">;
4
+ declare const agentHandlers: _inkeep_agents_core3.EntityEffectHandlers<"agent">;
5
5
  //#endregion
6
6
  export { agentHandlers };
@@ -1,6 +1,6 @@
1
- import * as _inkeep_agents_core1 from "@inkeep/agents-core";
1
+ import * as _inkeep_agents_core4 from "@inkeep/agents-core";
2
2
 
3
3
  //#region src/data-reconciliation/handlers/context-configs.d.ts
4
- declare const contextConfigsHandlers: _inkeep_agents_core1.EntityEffectHandlers<"context_configs">;
4
+ declare const contextConfigsHandlers: _inkeep_agents_core4.EntityEffectHandlers<"context_configs">;
5
5
  //#endregion
6
6
  export { contextConfigsHandlers };
@@ -1,6 +1,6 @@
1
- import * as _inkeep_agents_core3 from "@inkeep/agents-core";
1
+ import * as _inkeep_agents_core6 from "@inkeep/agents-core";
2
2
 
3
3
  //#region src/data-reconciliation/handlers/sub-agents.d.ts
4
- declare const subAgentsHandlers: _inkeep_agents_core3.EntityEffectHandlers<"sub_agents">;
4
+ declare const subAgentsHandlers: _inkeep_agents_core6.EntityEffectHandlers<"sub_agents">;
5
5
  //#endregion
6
6
  export { subAgentsHandlers };
@@ -1,6 +1,6 @@
1
- import * as _inkeep_agents_core4 from "@inkeep/agents-core";
1
+ import * as _inkeep_agents_core5 from "@inkeep/agents-core";
2
2
 
3
3
  //#region src/data-reconciliation/handlers/tools.d.ts
4
- declare const toolsHandlers: _inkeep_agents_core4.EntityEffectHandlers<"tools">;
4
+ declare const toolsHandlers: _inkeep_agents_core5.EntityEffectHandlers<"tools">;
5
5
  //#endregion
6
6
  export { toolsHandlers };
@@ -1,7 +1,7 @@
1
1
  import { OpenAPIHono } from "@hono/zod-openapi";
2
- import * as hono0 from "hono";
2
+ import * as hono18 from "hono";
3
3
 
4
4
  //#region src/domains/evals/routes/index.d.ts
5
- declare const app: OpenAPIHono<hono0.Env, {}, "/">;
5
+ declare const app: OpenAPIHono<hono18.Env, {}, "/">;
6
6
  //#endregion
7
7
  export { app as default };
@@ -1,7 +1,7 @@
1
1
  import { Hono } from "hono";
2
- import * as hono_types6 from "hono/types";
2
+ import * as hono_types12 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_types12.BlankEnv, hono_types12.BlankSchema, "/">;
6
6
  //#endregion
7
7
  export { workflowRoutes };
@@ -1,7 +1,7 @@
1
1
  import { OpenAPIHono } from "@hono/zod-openapi";
2
- import * as hono1 from "hono";
2
+ import * as hono14 from "hono";
3
3
 
4
4
  //#region src/domains/manage/routes/availableAgents.d.ts
5
- declare const app: OpenAPIHono<hono1.Env, {}, "/">;
5
+ declare const app: OpenAPIHono<hono14.Env, {}, "/">;
6
6
  //#endregion
7
7
  export { app as default };
@@ -1,7 +1,7 @@
1
1
  import { OpenAPIHono } from "@hono/zod-openapi";
2
- import * as hono3 from "hono";
2
+ import * as hono15 from "hono";
3
3
 
4
4
  //#region src/domains/manage/routes/conversations.d.ts
5
- declare const app: OpenAPIHono<hono3.Env, {}, "/">;
5
+ declare const app: OpenAPIHono<hono15.Env, {}, "/">;
6
6
  //#endregion
7
7
  export { app as default };
@@ -1,7 +1,7 @@
1
1
  import { OpenAPIHono } from "@hono/zod-openapi";
2
- import * as hono4 from "hono";
2
+ import * as hono16 from "hono";
3
3
 
4
4
  //#region src/domains/manage/routes/feedback.d.ts
5
- declare const app: OpenAPIHono<hono4.Env, {}, "/">;
5
+ declare const app: OpenAPIHono<hono16.Env, {}, "/">;
6
6
  //#endregion
7
7
  export { app as default };
@@ -1,7 +1,7 @@
1
1
  import { OpenAPIHono } from "@hono/zod-openapi";
2
- import * as hono2 from "hono";
2
+ import * as hono17 from "hono";
3
3
 
4
4
  //#region src/domains/manage/routes/index.d.ts
5
- declare const app: OpenAPIHono<hono2.Env, {}, "/">;
5
+ declare const app: OpenAPIHono<hono17.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_types3 from "hono/types";
3
+ import * as hono_types0 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_types3.BlankSchema, "/">;
8
+ }, hono_types0.BlankSchema, "/">;
9
9
  //#endregion
10
10
  export { usersRoutes as default };
@@ -1,7 +1,7 @@
1
1
  import { Hono } from "hono";
2
- import * as hono_types12 from "hono/types";
2
+ import * as hono_types0 from "hono/types";
3
3
 
4
4
  //#region src/domains/mcp/routes/mcp.d.ts
5
- declare const app: Hono<hono_types12.BlankEnv, hono_types12.BlankSchema, "/">;
5
+ declare const app: Hono<hono_types0.BlankEnv, hono_types0.BlankSchema, "/">;
6
6
  //#endregion
7
7
  export { app as default };
@@ -2,7 +2,7 @@ import { AgentConfig, AgentRunContext, DelegateRelation } from "./agent-types.js
2
2
  import "./Agent.js";
3
3
  import { InternalRelation } from "../utils/project.js";
4
4
  import { z } from "@hono/zod-openapi";
5
- import * as _inkeep_agents_core5 from "@inkeep/agents-core";
5
+ import * as _inkeep_agents_core0 from "@inkeep/agents-core";
6
6
  import { CredentialStoreRegistry, FullExecutionContext } from "@inkeep/agents-core";
7
7
  import * as ai0 from "ai";
8
8
 
@@ -50,7 +50,7 @@ declare function createDelegateToAgentTool({
50
50
  message: string;
51
51
  }, {
52
52
  toolCallId: any;
53
- result: _inkeep_agents_core5.Message | _inkeep_agents_core5.Task;
53
+ result: _inkeep_agents_core0.Message | _inkeep_agents_core0.Task;
54
54
  }>;
55
55
  /**
56
56
  * Parameters for building a transfer relation config
@@ -1,8 +1,8 @@
1
1
  import { OpenAPIHono } from "@hono/zod-openapi";
2
- import * as hono20 from "hono";
2
+ import * as hono13 from "hono";
3
3
 
4
4
  //#region src/domains/run/routes/auth.d.ts
5
5
  declare function getAnonJwtSecret(): Uint8Array;
6
- declare const app: OpenAPIHono<hono20.Env, {}, "/">;
6
+ declare const app: OpenAPIHono<hono13.Env, {}, "/">;
7
7
  //#endregion
8
8
  export { app as default, getAnonJwtSecret };
@@ -104,8 +104,8 @@ declare const VercelMessageSchema: z.ZodObject<{
104
104
  id: z.ZodOptional<z.ZodString>;
105
105
  role: z.ZodEnum<{
106
106
  function: "function";
107
- system: "system";
108
107
  user: "user";
108
+ system: "system";
109
109
  assistant: "assistant";
110
110
  tool: "tool";
111
111
  }>;
@@ -179,8 +179,8 @@ type ContentItem = z.infer<typeof ContentItemSchema>;
179
179
  declare const MessageSchema: z.ZodObject<{
180
180
  role: z.ZodEnum<{
181
181
  function: "function";
182
- system: "system";
183
182
  user: "user";
183
+ system: "system";
184
184
  assistant: "assistant";
185
185
  tool: "tool";
186
186
  }>;
@@ -212,8 +212,8 @@ declare const ChatCompletionRequestSchema: z.ZodObject<{
212
212
  messages: z.ZodArray<z.ZodObject<{
213
213
  role: z.ZodEnum<{
214
214
  function: "function";
215
- system: "system";
216
215
  user: "user";
216
+ system: "system";
217
217
  assistant: "assistant";
218
218
  tool: "tool";
219
219
  }>;
package/dist/factory.d.ts CHANGED
@@ -4,7 +4,7 @@ import { createAgentsHono } from "./createApp.js";
4
4
  import { CredentialStore, ServerConfig } from "@inkeep/agents-core";
5
5
  import * as hono0 from "hono";
6
6
  import { EmailServiceConfig, SSOProviderConfig, UserAuthConfig, createAuth } from "@inkeep/agents-core/auth";
7
- import * as hono_types1 from "hono/types";
7
+ import * as hono_types4 from "hono/types";
8
8
 
9
9
  //#region src/factory.d.ts
10
10
  declare function createAgentsAuth(userAuthConfig?: UserAuthConfig, emailService?: EmailServiceConfig): ReturnType<typeof createAuth>;
@@ -14,6 +14,6 @@ declare function createAgentsApp(config?: {
14
14
  auth?: UserAuthConfig;
15
15
  sandboxConfig?: SandboxConfig;
16
16
  emailService?: EmailServiceConfig;
17
- }): hono0.Hono<hono_types1.BlankEnv, hono_types1.BlankSchema, "/">;
17
+ }): hono0.Hono<hono_types4.BlankEnv, hono_types4.BlankSchema, "/">;
18
18
  //#endregion
19
19
  export { type SSOProviderConfig, type UserAuthConfig, createAgentsApp, createAgentsAuth, createAgentsHono };
package/dist/factory.js CHANGED
@@ -2,6 +2,7 @@ import { env } from "./env.js";
2
2
  import manageDbPool_default from "./data/db/manageDbPool.js";
3
3
  import runDbClient_default from "./data/db/runDbClient.js";
4
4
  import { createAgentsHono } from "./createApp.js";
5
+ import { scheduleEnsurePlaygroundAppConfig } from "./startup/playground-app.js";
5
6
  import { CredentialStoreRegistry, createDefaultCredentialStores } from "@inkeep/agents-core";
6
7
  import { createAuth } from "@inkeep/agents-core/auth";
7
8
 
@@ -30,6 +31,7 @@ function createAgentsAuth(userAuthConfig, emailService) {
30
31
  });
31
32
  }
32
33
  function createAgentsApp(config) {
34
+ scheduleEnsurePlaygroundAppConfig();
33
35
  return createAgentsHono({
34
36
  serverConfig: config?.serverConfig ?? defaultConfig,
35
37
  credentialStores: new CredentialStoreRegistry(config?.credentialStores ?? createDefaultCredentialStores()),
package/dist/index.d.ts CHANGED
@@ -5,10 +5,10 @@ import { NativeSandboxConfig, SandboxConfig, VercelSandboxConfig } from "./domai
5
5
  import { SSOProviderConfig, UserAuthConfig, createAgentsApp, createAgentsAuth } from "./factory.js";
6
6
  import "./sentry.js";
7
7
  import { Hono } from "hono";
8
- import * as hono_types4 from "hono/types";
8
+ import * as hono_types6 from "hono/types";
9
9
 
10
10
  //#region src/index.d.ts
11
11
  declare const auth: ReturnType<typeof createAgentsAuth>;
12
- declare const app: Hono<hono_types4.BlankEnv, hono_types4.BlankSchema, "/">;
12
+ declare const app: Hono<hono_types6.BlankEnv, hono_types6.BlankSchema, "/">;
13
13
  //#endregion
14
14
  export { type AppConfig, type AppVariables, Hono, type NativeSandboxConfig, type SSOProviderConfig, type SandboxConfig, type UserAuthConfig, type VercelSandboxConfig, auth, createAgentsApp, createAgentsHono, app as default };
package/dist/index.js CHANGED
@@ -6,8 +6,8 @@ import { startOpenTelemetrySDK } from "./instrumentation.js";
6
6
  import "./sentry.js";
7
7
  import { startSchedulerWorkflow } from "./domains/run/services/SchedulerService.js";
8
8
  import { createAgentsHono } from "./createApp.js";
9
+ import { scheduleEnsurePlaygroundAppConfig } from "./startup/playground-app.js";
9
10
  import { createAgentsApp, createAgentsAuth } from "./factory.js";
10
- import { ensurePlaygroundAppConfig } from "./startup/playground-app.js";
11
11
  import { CredentialStoreRegistry, cleanupExpiredStreamChunks, cleanupExpiredToolApprovalDecisions, createDefaultCredentialStores } from "@inkeep/agents-core";
12
12
  import { Hono } from "hono";
13
13
  import { createEmailService } from "@inkeep/agents-email";
@@ -60,13 +60,7 @@ const app = createAgentsHono({
60
60
  auth,
61
61
  sandboxConfig
62
62
  });
63
- setTimeout(async () => {
64
- try {
65
- await ensurePlaygroundAppConfig();
66
- } catch (err) {
67
- logger.error({ error: err }, "Failed to configure playground app");
68
- }
69
- }, 3e3);
63
+ scheduleEnsurePlaygroundAppConfig();
70
64
  const workflowWorld = process.env.WORKFLOW_TARGET_WORLD || "local";
71
65
  if (workflowWorld === "@workflow/world-postgres" || workflowWorld === "local") {
72
66
  const STARTUP_DELAY_MS = 3e3;
@@ -1,5 +1,5 @@
1
1
  import { BaseExecutionContext } from "@inkeep/agents-core";
2
- import * as hono5 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 hono5 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: () => hono5.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 hono15 from "hono";
2
+ import * as hono1 from "hono";
3
3
  import { createAuth } from "@inkeep/agents-core/auth";
4
4
 
5
5
  //#region src/middleware/manageAuth.d.ts
@@ -18,7 +18,7 @@ import { createAuth } from "@inkeep/agents-core/auth";
18
18
  * the narrow legacy exceptions enumerated in `LEGACY_API_KEY_ALLOWED_ROUTES`. API keys
19
19
  * are otherwise restricted to the run domain only.
20
20
  */
21
- declare const manageBearerAuth: () => hono15.MiddlewareHandler<{
21
+ declare const manageBearerAuth: () => hono1.MiddlewareHandler<{
22
22
  Variables: {
23
23
  executionContext: BaseExecutionContext;
24
24
  userId?: string;
@@ -33,6 +33,6 @@ declare const manageBearerAuth: () => hono15.MiddlewareHandler<{
33
33
  * Uses Bearer token → manage bearer auth (bypass secret, session, Slack JWT, internal service),
34
34
  * otherwise falls back to session auth.
35
35
  */
36
- declare const manageBearerOrSessionAuth: () => hono15.MiddlewareHandler<any, string, {}, Response>;
36
+ declare const manageBearerOrSessionAuth: () => hono1.MiddlewareHandler<any, string, {}, Response>;
37
37
  //#endregion
38
38
  export { manageBearerAuth, manageBearerOrSessionAuth };
@@ -1,11 +1,11 @@
1
1
  import { BaseExecutionContext, ResolvedRef } from "@inkeep/agents-core";
2
- import * as hono13 from "hono";
2
+ import * as hono3 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: hono13.MiddlewareHandler<{
8
+ declare const projectConfigMiddleware: hono3.MiddlewareHandler<{
9
9
  Variables: {
10
10
  executionContext: BaseExecutionContext;
11
11
  resolvedRef: ResolvedRef;
@@ -15,7 +15,7 @@ declare const projectConfigMiddleware: hono13.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) => hono13.MiddlewareHandler<{
18
+ declare const projectConfigMiddlewareExcept: (skipRouteCheck: (path: string) => boolean) => hono3.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 hono6 from "hono";
2
+ import * as hono5 from "hono";
3
3
 
4
4
  //#region src/middleware/requireEntitlement.d.ts
5
5
  type EntitlementConfig = {
@@ -11,6 +11,6 @@ declare const requireEntitlement: <Env$1 extends {
11
11
  Variables: ManageAppVariables;
12
12
  } = {
13
13
  Variables: ManageAppVariables;
14
- }>(config: EntitlementConfig) => hono6.MiddlewareHandler<Env$1, string, {}, Response>;
14
+ }>(config: EntitlementConfig) => hono5.MiddlewareHandler<Env$1, string, {}, Response>;
15
15
  //#endregion
16
16
  export { requireEntitlement };
@@ -1,5 +1,5 @@
1
1
  import { ManageAppVariables } from "../types/app.js";
2
- import * as hono7 from "hono";
2
+ import * as hono6 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) => hono6.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 hono8 from "hono";
2
+ import * as hono7 from "hono";
3
3
 
4
4
  //#region src/middleware/runAuth.d.ts
5
- declare const runApiKeyAuth: () => hono8.MiddlewareHandler<{
5
+ declare const runApiKeyAuth: () => hono7.MiddlewareHandler<{
6
6
  Variables: {
7
7
  executionContext: BaseExecutionContext;
8
8
  };
@@ -11,7 +11,7 @@ declare const runApiKeyAuth: () => hono8.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) => hono8.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: () => hono8.MiddlewareHandler<{
23
+ declare const runOptionalAuth: () => hono7.MiddlewareHandler<{
24
24
  Variables: {
25
25
  executionContext?: BaseExecutionContext;
26
26
  };
@@ -1,5 +1,5 @@
1
1
  import { AppVariables } from "../types/app.js";
2
- import * as hono11 from "hono";
2
+ import * as hono10 from "hono";
3
3
 
4
4
  //#region src/middleware/sessionAuth.d.ts
5
5
 
@@ -8,12 +8,12 @@ import * as hono11 from "hono";
8
8
  * Requires that a user has already been authenticated via Better Auth session.
9
9
  * Used primarily for manage routes that require an active user session.
10
10
  */
11
- declare const sessionAuth: () => hono11.MiddlewareHandler<any, string, {}, Response>;
11
+ declare const sessionAuth: () => hono10.MiddlewareHandler<any, string, {}, Response>;
12
12
  /**
13
13
  * Global session middleware - sets user and session in context for all routes
14
14
  * Used for all routes that require an active user session.
15
15
  */
16
- declare const sessionContext: () => hono11.MiddlewareHandler<{
16
+ declare const sessionContext: () => hono10.MiddlewareHandler<{
17
17
  Variables: AppVariables;
18
18
  }, string, {}, Response>;
19
19
  //#endregion
@@ -1,4 +1,4 @@
1
- import * as hono17 from "hono";
1
+ import * as hono12 from "hono";
2
2
 
3
3
  //#region src/middleware/tenantAccess.d.ts
4
4
 
@@ -12,7 +12,7 @@ import * as hono17 from "hono";
12
12
  * - API key user: Access only to the tenant associated with the API key
13
13
  * - Session user: Access based on organization membership
14
14
  */
15
- declare const requireTenantAccess: () => hono17.MiddlewareHandler<{
15
+ declare const requireTenantAccess: () => hono12.MiddlewareHandler<{
16
16
  Variables: {
17
17
  userId: string;
18
18
  tenantId: string;
@@ -1,7 +1,7 @@
1
- import * as hono18 from "hono";
1
+ import * as hono19 from "hono";
2
2
 
3
3
  //#region src/middleware/tracing.d.ts
4
- declare const otelBaggageMiddleware: () => hono18.MiddlewareHandler<any, string, {}, Response>;
5
- declare const executionBaggageMiddleware: () => hono18.MiddlewareHandler<any, string, {}, Response>;
4
+ declare const otelBaggageMiddleware: () => hono19.MiddlewareHandler<any, string, {}, Response>;
5
+ declare const executionBaggageMiddleware: () => hono19.MiddlewareHandler<any, string, {}, Response>;
6
6
  //#endregion
7
7
  export { executionBaggageMiddleware, otelBaggageMiddleware };
@@ -1,4 +1,5 @@
1
1
  //#region src/startup/playground-app.d.ts
2
2
  declare function ensurePlaygroundAppConfig(): Promise<void>;
3
+ declare function scheduleEnsurePlaygroundAppConfig(delayMs?: number): void;
3
4
  //#endregion
4
- export { ensurePlaygroundAppConfig };
5
+ export { ensurePlaygroundAppConfig, scheduleEnsurePlaygroundAppConfig };
@@ -5,6 +5,7 @@ import { deriveKidFromPublicKey, getAppById, updateApp } from "@inkeep/agents-co
5
5
 
6
6
  //#region src/startup/playground-app.ts
7
7
  const logger = getLogger$1("playground-app");
8
+ let playgroundConfigScheduled = false;
8
9
  function derivePlaygroundDomains() {
9
10
  const manageUiUrl = env.INKEEP_AGENTS_MANAGE_UI_URL;
10
11
  if (manageUiUrl) try {
@@ -108,6 +109,17 @@ async function ensurePlaygroundAppConfig() {
108
109
  }, "Playground app configuration updated");
109
110
  }
110
111
  }
112
+ function scheduleEnsurePlaygroundAppConfig(delayMs = 3e3) {
113
+ if (playgroundConfigScheduled) return;
114
+ playgroundConfigScheduled = true;
115
+ setTimeout(async () => {
116
+ try {
117
+ await ensurePlaygroundAppConfig();
118
+ } catch (err) {
119
+ logger.error({ error: err }, "Failed to configure playground app");
120
+ }
121
+ }, delayMs);
122
+ }
111
123
 
112
124
  //#endregion
113
- export { ensurePlaygroundAppConfig };
125
+ export { ensurePlaygroundAppConfig, scheduleEnsurePlaygroundAppConfig };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-api",
3
- "version": "0.80.3",
3
+ "version": "0.80.4",
4
4
  "description": "Unified Inkeep Agents API - combines management, runtime, and evaluation capabilities",
5
5
  "types": "dist/index.d.ts",
6
6
  "exports": {
@@ -71,10 +71,10 @@
71
71
  "llm-info": "^1.0.69",
72
72
  "pg": "^8.16.3",
73
73
  "workflow": "4.2.0-beta.67",
74
- "@inkeep/agents-core": "^0.80.3",
75
- "@inkeep/agents-email": "^0.80.3",
76
- "@inkeep/agents-mcp": "^0.80.3",
77
- "@inkeep/agents-work-apps": "^0.80.3"
74
+ "@inkeep/agents-core": "^0.80.4",
75
+ "@inkeep/agents-email": "^0.80.4",
76
+ "@inkeep/agents-mcp": "^0.80.4",
77
+ "@inkeep/agents-work-apps": "^0.80.4"
78
78
  },
79
79
  "peerDependencies": {
80
80
  "@hono/zod-openapi": "^1.1.5",