@inkeep/agents-api 0.0.0-dev-20260409215816 → 0.0.0-dev-20260410161635
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/.well-known/workflow/v1/manifest.json +73 -73
- package/dist/createApp.d.ts +2 -2
- package/dist/data/db/manageDbClient.d.ts +2 -2
- package/dist/data/db/runDbClient.d.ts +2 -2
- package/dist/data-reconciliation/handlers/agent.d.ts +2 -2
- package/dist/data-reconciliation/handlers/sub-agents.d.ts +2 -2
- package/dist/data-reconciliation/handlers/tools.d.ts +2 -2
- package/dist/domains/evals/routes/index.d.ts +2 -2
- package/dist/domains/manage/routes/agent.js +97 -1
- package/dist/domains/manage/routes/authLookup.d.ts +2 -2
- package/dist/domains/manage/routes/availableAgents.d.ts +2 -2
- package/dist/domains/manage/routes/conversations.d.ts +2 -2
- package/dist/domains/manage/routes/feedback.d.ts +2 -2
- package/dist/domains/manage/routes/index.d.ts +2 -2
- package/dist/domains/manage/routes/invitations.d.ts +2 -2
- package/dist/domains/manage/routes/passwordResetLinks.d.ts +2 -2
- package/dist/domains/manage/routes/signoz.d.ts +2 -2
- package/dist/domains/manage/routes/users.d.ts +2 -2
- package/dist/domains/mcp/routes/mcp.d.ts +2 -2
- package/dist/domains/run/agents/relationTools.d.ts +2 -2
- package/dist/domains/run/routes/auth.d.ts +2 -2
- package/dist/domains/run/tools/distill-conversation-history-tool.d.ts +1 -1
- package/dist/domains/run/types/chat.d.ts +13 -13
- package/dist/factory.d.ts +81 -81
- package/dist/index.d.ts +80 -80
- package/dist/middleware/evalsAuth.d.ts +2 -2
- package/dist/middleware/manageAuth.d.ts +3 -3
- package/dist/middleware/projectConfig.d.ts +3 -3
- package/dist/middleware/requireEntitlement.d.ts +2 -2
- package/dist/middleware/requirePermission.d.ts +2 -2
- package/dist/middleware/runAuth.d.ts +4 -4
- package/dist/middleware/sessionAuth.d.ts +3 -3
- package/dist/middleware/tenantAccess.d.ts +2 -2
- package/dist/middleware/tracing.d.ts +3 -3
- package/package.json +5 -5
|
@@ -12,25 +12,6 @@
|
|
|
12
12
|
"stepId": "__builtin_response_text"
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
|
-
"src/domains/run/workflow/steps/schedulerSteps.ts": {
|
|
16
|
-
"checkSchedulerCurrentStep": {
|
|
17
|
-
"stepId": "step//./src/domains/run/workflow/steps/schedulerSteps//checkSchedulerCurrentStep"
|
|
18
|
-
},
|
|
19
|
-
"dispatchDueTriggersStep": {
|
|
20
|
-
"stepId": "step//./src/domains/run/workflow/steps/schedulerSteps//dispatchDueTriggersStep"
|
|
21
|
-
},
|
|
22
|
-
"msUntilNextMinuteStep": {
|
|
23
|
-
"stepId": "step//./src/domains/run/workflow/steps/schedulerSteps//msUntilNextMinuteStep"
|
|
24
|
-
},
|
|
25
|
-
"registerSchedulerStep": {
|
|
26
|
-
"stepId": "step//./src/domains/run/workflow/steps/schedulerSteps//registerSchedulerStep"
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
"node_modules/.pnpm/workflow@4.2.0-beta.67_@nestjs+common@11.1.13_reflect-metadata@0.2.2_rxjs@7.8.2__@nestj_ba33265d61d382fe160c46ba43387199/node_modules/workflow/dist/stdlib.js": {
|
|
30
|
-
"fetch": {
|
|
31
|
-
"stepId": "step//workflow@4.2.0-beta.67//fetch"
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
15
|
"src/domains/evals/workflow/functions/evaluateConversation.ts": {
|
|
35
16
|
"executeEvaluatorStep": {
|
|
36
17
|
"stepId": "step//./src/domains/evals/workflow/functions/evaluateConversation//executeEvaluatorStep"
|
|
@@ -45,30 +26,23 @@
|
|
|
45
26
|
"stepId": "step//./src/domains/evals/workflow/functions/evaluateConversation//logStep"
|
|
46
27
|
}
|
|
47
28
|
},
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"stepId": "step
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
"stepId": "step//./src/domains/evals/workflow/functions/runDatasetItem//filterEvaluatorsByAgentStep"
|
|
57
|
-
},
|
|
58
|
-
"logStep": {
|
|
59
|
-
"stepId": "step//./src/domains/evals/workflow/functions/runDatasetItem//logStep"
|
|
60
|
-
},
|
|
61
|
-
"markCompletedStep": {
|
|
62
|
-
"stepId": "step//./src/domains/evals/workflow/functions/runDatasetItem//markCompletedStep"
|
|
29
|
+
"node_modules/.pnpm/workflow@4.2.0-beta.67_@nestjs+common@11.1.13_reflect-metadata@0.2.2_rxjs@7.8.2__@nestj_ba33265d61d382fe160c46ba43387199/node_modules/workflow/dist/stdlib.js": {
|
|
30
|
+
"fetch": {
|
|
31
|
+
"stepId": "step//workflow@4.2.0-beta.67//fetch"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"src/domains/run/workflow/steps/schedulerSteps.ts": {
|
|
35
|
+
"checkSchedulerCurrentStep": {
|
|
36
|
+
"stepId": "step//./src/domains/run/workflow/steps/schedulerSteps//checkSchedulerCurrentStep"
|
|
63
37
|
},
|
|
64
|
-
"
|
|
65
|
-
"stepId": "step//./src/domains/
|
|
38
|
+
"dispatchDueTriggersStep": {
|
|
39
|
+
"stepId": "step//./src/domains/run/workflow/steps/schedulerSteps//dispatchDueTriggersStep"
|
|
66
40
|
},
|
|
67
|
-
"
|
|
68
|
-
"stepId": "step//./src/domains/
|
|
41
|
+
"msUntilNextMinuteStep": {
|
|
42
|
+
"stepId": "step//./src/domains/run/workflow/steps/schedulerSteps//msUntilNextMinuteStep"
|
|
69
43
|
},
|
|
70
|
-
"
|
|
71
|
-
"stepId": "step//./src/domains/
|
|
44
|
+
"registerSchedulerStep": {
|
|
45
|
+
"stepId": "step//./src/domains/run/workflow/steps/schedulerSteps//registerSchedulerStep"
|
|
72
46
|
}
|
|
73
47
|
},
|
|
74
48
|
"src/domains/run/workflow/steps/scheduledTriggerSteps.ts": {
|
|
@@ -109,6 +83,32 @@
|
|
|
109
83
|
"stepId": "step//./src/domains/run/workflow/steps/scheduledTriggerSteps//resetInvocationToPendingStep"
|
|
110
84
|
}
|
|
111
85
|
},
|
|
86
|
+
"src/domains/evals/workflow/functions/runDatasetItem.ts": {
|
|
87
|
+
"executeDatasetItemStep": {
|
|
88
|
+
"stepId": "step//./src/domains/evals/workflow/functions/runDatasetItem//executeDatasetItemStep"
|
|
89
|
+
},
|
|
90
|
+
"executeEvaluatorStep": {
|
|
91
|
+
"stepId": "step//./src/domains/evals/workflow/functions/runDatasetItem//executeEvaluatorStep"
|
|
92
|
+
},
|
|
93
|
+
"filterEvaluatorsByAgentStep": {
|
|
94
|
+
"stepId": "step//./src/domains/evals/workflow/functions/runDatasetItem//filterEvaluatorsByAgentStep"
|
|
95
|
+
},
|
|
96
|
+
"logStep": {
|
|
97
|
+
"stepId": "step//./src/domains/evals/workflow/functions/runDatasetItem//logStep"
|
|
98
|
+
},
|
|
99
|
+
"markCompletedStep": {
|
|
100
|
+
"stepId": "step//./src/domains/evals/workflow/functions/runDatasetItem//markCompletedStep"
|
|
101
|
+
},
|
|
102
|
+
"markFailedStep": {
|
|
103
|
+
"stepId": "step//./src/domains/evals/workflow/functions/runDatasetItem//markFailedStep"
|
|
104
|
+
},
|
|
105
|
+
"markRunningStep": {
|
|
106
|
+
"stepId": "step//./src/domains/evals/workflow/functions/runDatasetItem//markRunningStep"
|
|
107
|
+
},
|
|
108
|
+
"recordConversationStep": {
|
|
109
|
+
"stepId": "step//./src/domains/evals/workflow/functions/runDatasetItem//recordConversationStep"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
112
|
"src/domains/run/workflow/steps/agentExecutionSteps.ts": {
|
|
113
113
|
"callLlmStep": {
|
|
114
114
|
"stepId": "step//./src/domains/run/workflow/steps/agentExecutionSteps//callLlmStep"
|
|
@@ -312,30 +312,19 @@
|
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
},
|
|
315
|
-
"src/domains/run/workflow/functions/
|
|
316
|
-
"
|
|
317
|
-
"workflowId": "workflow//./src/domains/run/workflow/functions/
|
|
315
|
+
"src/domains/run/workflow/functions/agentExecution.ts": {
|
|
316
|
+
"_agentExecutionWorkflow": {
|
|
317
|
+
"workflowId": "workflow//./src/domains/run/workflow/functions/agentExecution//_agentExecutionWorkflow",
|
|
318
318
|
"graph": {
|
|
319
319
|
"nodes": [
|
|
320
320
|
{
|
|
321
321
|
"id": "start",
|
|
322
322
|
"type": "workflowStart",
|
|
323
323
|
"data": {
|
|
324
|
-
"label": "Start:
|
|
324
|
+
"label": "Start: _agentExecutionWorkflow",
|
|
325
325
|
"nodeKind": "workflow_start"
|
|
326
326
|
}
|
|
327
327
|
},
|
|
328
|
-
{
|
|
329
|
-
"id": "node_0",
|
|
330
|
-
"type": "primitive",
|
|
331
|
-
"data": {
|
|
332
|
-
"label": "sleep",
|
|
333
|
-
"nodeKind": "primitive"
|
|
334
|
-
},
|
|
335
|
-
"metadata": {
|
|
336
|
-
"loopId": "loop_0"
|
|
337
|
-
}
|
|
338
|
-
},
|
|
339
328
|
{
|
|
340
329
|
"id": "end",
|
|
341
330
|
"type": "workflowEnd",
|
|
@@ -347,20 +336,8 @@
|
|
|
347
336
|
],
|
|
348
337
|
"edges": [
|
|
349
338
|
{
|
|
350
|
-
"id": "
|
|
351
|
-
"source": "node_0",
|
|
352
|
-
"target": "node_0",
|
|
353
|
-
"type": "loop"
|
|
354
|
-
},
|
|
355
|
-
{
|
|
356
|
-
"id": "e_start_node_0",
|
|
339
|
+
"id": "e_start_end",
|
|
357
340
|
"source": "start",
|
|
358
|
-
"target": "node_0",
|
|
359
|
-
"type": "default"
|
|
360
|
-
},
|
|
361
|
-
{
|
|
362
|
-
"id": "e_node_0_end",
|
|
363
|
-
"source": "node_0",
|
|
364
341
|
"target": "end",
|
|
365
342
|
"type": "default"
|
|
366
343
|
}
|
|
@@ -368,19 +345,30 @@
|
|
|
368
345
|
}
|
|
369
346
|
}
|
|
370
347
|
},
|
|
371
|
-
"src/domains/run/workflow/functions/
|
|
372
|
-
"
|
|
373
|
-
"workflowId": "workflow//./src/domains/run/workflow/functions/
|
|
348
|
+
"src/domains/run/workflow/functions/schedulerWorkflow.ts": {
|
|
349
|
+
"_schedulerWorkflow": {
|
|
350
|
+
"workflowId": "workflow//./src/domains/run/workflow/functions/schedulerWorkflow//_schedulerWorkflow",
|
|
374
351
|
"graph": {
|
|
375
352
|
"nodes": [
|
|
376
353
|
{
|
|
377
354
|
"id": "start",
|
|
378
355
|
"type": "workflowStart",
|
|
379
356
|
"data": {
|
|
380
|
-
"label": "Start:
|
|
357
|
+
"label": "Start: _schedulerWorkflow",
|
|
381
358
|
"nodeKind": "workflow_start"
|
|
382
359
|
}
|
|
383
360
|
},
|
|
361
|
+
{
|
|
362
|
+
"id": "node_0",
|
|
363
|
+
"type": "primitive",
|
|
364
|
+
"data": {
|
|
365
|
+
"label": "sleep",
|
|
366
|
+
"nodeKind": "primitive"
|
|
367
|
+
},
|
|
368
|
+
"metadata": {
|
|
369
|
+
"loopId": "loop_0"
|
|
370
|
+
}
|
|
371
|
+
},
|
|
384
372
|
{
|
|
385
373
|
"id": "end",
|
|
386
374
|
"type": "workflowEnd",
|
|
@@ -392,8 +380,20 @@
|
|
|
392
380
|
],
|
|
393
381
|
"edges": [
|
|
394
382
|
{
|
|
395
|
-
"id": "
|
|
383
|
+
"id": "e_node_0_back_node_0",
|
|
384
|
+
"source": "node_0",
|
|
385
|
+
"target": "node_0",
|
|
386
|
+
"type": "loop"
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
"id": "e_start_node_0",
|
|
396
390
|
"source": "start",
|
|
391
|
+
"target": "node_0",
|
|
392
|
+
"type": "default"
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
"id": "e_node_0_end",
|
|
396
|
+
"source": "node_0",
|
|
397
397
|
"target": "end",
|
|
398
398
|
"type": "default"
|
|
399
399
|
}
|
package/dist/createApp.d.ts
CHANGED
|
@@ -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
|
|
4
|
+
import * as hono_types0 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<
|
|
8
|
+
declare function createAgentsHono(config: AppConfig): Hono<hono_types0.BlankEnv, hono_types0.BlankSchema, "/">;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { createAgentsHono, isWebhookRoute };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _inkeep_agents_core2 from "@inkeep/agents-core";
|
|
2
2
|
|
|
3
3
|
//#region src/data/db/manageDbClient.d.ts
|
|
4
|
-
declare const manageDbClient:
|
|
4
|
+
declare const manageDbClient: _inkeep_agents_core2.AgentsManageDatabaseClient;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { manageDbClient as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _inkeep_agents_core4 from "@inkeep/agents-core";
|
|
2
2
|
|
|
3
3
|
//#region src/data/db/runDbClient.d.ts
|
|
4
|
-
declare const runDbClient:
|
|
4
|
+
declare const runDbClient: _inkeep_agents_core4.AgentsRunDatabaseClient;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { runDbClient as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _inkeep_agents_core0 from "@inkeep/agents-core";
|
|
2
2
|
|
|
3
3
|
//#region src/data-reconciliation/handlers/agent.d.ts
|
|
4
|
-
declare const agentHandlers:
|
|
4
|
+
declare const agentHandlers: _inkeep_agents_core0.EntityEffectHandlers<"agent">;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { agentHandlers };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _inkeep_agents_core0 from "@inkeep/agents-core";
|
|
2
2
|
|
|
3
3
|
//#region src/data-reconciliation/handlers/sub-agents.d.ts
|
|
4
|
-
declare const subAgentsHandlers:
|
|
4
|
+
declare const subAgentsHandlers: _inkeep_agents_core0.EntityEffectHandlers<"sub_agents">;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { subAgentsHandlers };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _inkeep_agents_core3 from "@inkeep/agents-core";
|
|
2
2
|
|
|
3
3
|
//#region src/data-reconciliation/handlers/tools.d.ts
|
|
4
|
-
declare const toolsHandlers:
|
|
4
|
+
declare const toolsHandlers: _inkeep_agents_core3.EntityEffectHandlers<"tools">;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { toolsHandlers };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OpenAPIHono } from "@hono/zod-openapi";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono8 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/evals/routes/index.d.ts
|
|
5
|
-
declare const app: OpenAPIHono<
|
|
5
|
+
declare const app: OpenAPIHono<hono8.Env, {}, "/">;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { app as default };
|
|
@@ -2,8 +2,9 @@ import { requireProjectPermission } from "../../../middleware/projectAccess.js";
|
|
|
2
2
|
import { openapiRegisterPutPatchRoutesForLegacy } from "../../../utils/openapiDualRoute.js";
|
|
3
3
|
import { speakeasyOffsetLimitPagination } from "../../../utils/speakeasy.js";
|
|
4
4
|
import { OpenAPIHono } from "@hono/zod-openapi";
|
|
5
|
-
import { AgentApiInsertSchema, AgentApiUpdateSchema, AgentListResponse, AgentResponse, AgentWithinContextOfProjectResponse, ErrorResponseSchema, PaginationQueryParamsSchema, RelatedAgentInfoListResponse, TenantProjectAgentParamsSchema, TenantProjectAgentSubAgentParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, commonGetErrorResponses, createAgent, createApiError, deleteAgent, generateId, getAgentById, getAgentSubAgentInfos, getFullAgentDefinition, listAgentsPaginated, throwIfUniqueConstraintError, updateAgent } from "@inkeep/agents-core";
|
|
5
|
+
import { AgentApiInsertSchema, AgentApiUpdateSchema, AgentListResponse, AgentResponse, AgentWithinContextOfProjectResponse, ErrorResponseSchema, PaginationQueryParamsSchema, RelatedAgentInfoListResponse, TenantProjectAgentParamsSchema, TenantProjectAgentSubAgentParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, ToolStatusSchema, commonGetErrorResponses, createAgent, createApiError, dbResultToMcpTool, deleteAgent, generateId, getAgentById, getAgentSubAgentInfos, getFullAgentDefinition, getToolById, listAgentToolRelations, listAgentsPaginated, throwIfUniqueConstraintError, updateAgent } from "@inkeep/agents-core";
|
|
6
6
|
import { createProtectedRoute } from "@inkeep/agents-core/middleware";
|
|
7
|
+
import { z as z$1 } from "zod";
|
|
7
8
|
import { clearWorkspaceConnectionCache } from "@inkeep/agents-work-apps/slack";
|
|
8
9
|
|
|
9
10
|
//#region src/domains/manage/routes/agent.ts
|
|
@@ -135,6 +136,101 @@ app.openapi(createProtectedRoute({
|
|
|
135
136
|
});
|
|
136
137
|
return c.json({ data: fullAgent });
|
|
137
138
|
});
|
|
139
|
+
const AgentToolStatusItemSchema = z$1.object({
|
|
140
|
+
id: z$1.string(),
|
|
141
|
+
name: z$1.string(),
|
|
142
|
+
status: ToolStatusSchema,
|
|
143
|
+
lastError: z$1.string().nullable(),
|
|
144
|
+
expiresAt: z$1.string().nullable(),
|
|
145
|
+
imageUrl: z$1.string().nullable(),
|
|
146
|
+
subAgentIds: z$1.array(z$1.string())
|
|
147
|
+
}).openapi("AgentToolStatusItem");
|
|
148
|
+
const AgentToolStatusListResponseSchema = z$1.object({ data: z$1.array(AgentToolStatusItemSchema) }).openapi("AgentToolStatusListResponse");
|
|
149
|
+
app.openapi(createProtectedRoute({
|
|
150
|
+
method: "get",
|
|
151
|
+
path: "/{agentId}/tool-status",
|
|
152
|
+
summary: "Get Tool Status for Agent",
|
|
153
|
+
description: "Returns a deduped list of MCP tools used by any sub-agent of the given agent, with live health status. Probes each unique MCP server once.",
|
|
154
|
+
operationId: "get-agent-tool-status",
|
|
155
|
+
tags: ["Agents", "Tools"],
|
|
156
|
+
permission: requireProjectPermission("view"),
|
|
157
|
+
request: {
|
|
158
|
+
params: TenantProjectAgentParamsSchema,
|
|
159
|
+
query: z$1.object({ status: ToolStatusSchema.optional() })
|
|
160
|
+
},
|
|
161
|
+
responses: {
|
|
162
|
+
200: {
|
|
163
|
+
description: "Agent tool status retrieved successfully",
|
|
164
|
+
content: { "application/json": { schema: AgentToolStatusListResponseSchema } }
|
|
165
|
+
},
|
|
166
|
+
...commonGetErrorResponses
|
|
167
|
+
}
|
|
168
|
+
}), async (c) => {
|
|
169
|
+
const db = c.get("db");
|
|
170
|
+
const { tenantId, projectId, agentId } = c.req.valid("param");
|
|
171
|
+
const { status: statusFilter } = c.req.valid("query");
|
|
172
|
+
const credentialStores = c.get("credentialStores");
|
|
173
|
+
const userId = c.get("userId");
|
|
174
|
+
if (!await getAgentById(db)({ scopes: {
|
|
175
|
+
tenantId,
|
|
176
|
+
projectId,
|
|
177
|
+
agentId
|
|
178
|
+
} })) throw createApiError({
|
|
179
|
+
code: "not_found",
|
|
180
|
+
message: "Agent not found"
|
|
181
|
+
});
|
|
182
|
+
const subAgentIdsByToolId = /* @__PURE__ */ new Map();
|
|
183
|
+
let page = 1;
|
|
184
|
+
let hasMore = true;
|
|
185
|
+
while (hasMore) {
|
|
186
|
+
const relationsResult = await listAgentToolRelations(db)({
|
|
187
|
+
scopes: {
|
|
188
|
+
tenantId,
|
|
189
|
+
projectId,
|
|
190
|
+
agentId
|
|
191
|
+
},
|
|
192
|
+
pagination: {
|
|
193
|
+
page,
|
|
194
|
+
limit: 100
|
|
195
|
+
}
|
|
196
|
+
});
|
|
197
|
+
for (const relation of relationsResult.data) {
|
|
198
|
+
const set = subAgentIdsByToolId.get(relation.toolId) ?? /* @__PURE__ */ new Set();
|
|
199
|
+
set.add(relation.subAgentId);
|
|
200
|
+
subAgentIdsByToolId.set(relation.toolId, set);
|
|
201
|
+
}
|
|
202
|
+
hasMore = page < relationsResult.pagination.pages;
|
|
203
|
+
page++;
|
|
204
|
+
}
|
|
205
|
+
const uniqueToolIds = Array.from(subAgentIdsByToolId.keys());
|
|
206
|
+
const PROBE_CONCURRENCY = 5;
|
|
207
|
+
const probedTools = [];
|
|
208
|
+
for (let i = 0; i < uniqueToolIds.length; i += PROBE_CONCURRENCY) {
|
|
209
|
+
const batch = uniqueToolIds.slice(i, i + PROBE_CONCURRENCY);
|
|
210
|
+
const results = await Promise.allSettled(batch.map(async (toolId) => {
|
|
211
|
+
const tool = await getToolById(db)({
|
|
212
|
+
scopes: {
|
|
213
|
+
tenantId,
|
|
214
|
+
projectId
|
|
215
|
+
},
|
|
216
|
+
toolId
|
|
217
|
+
});
|
|
218
|
+
if (!tool) return null;
|
|
219
|
+
return dbResultToMcpTool(tool, db, credentialStores, void 0, userId);
|
|
220
|
+
}));
|
|
221
|
+
for (const r of results) if (r.status === "fulfilled" && r.value !== null) probedTools.push(r.value);
|
|
222
|
+
}
|
|
223
|
+
const data = probedTools.map((tool) => ({
|
|
224
|
+
id: tool.id,
|
|
225
|
+
name: tool.name,
|
|
226
|
+
status: tool.status,
|
|
227
|
+
lastError: tool.lastError ?? null,
|
|
228
|
+
expiresAt: tool.expiresAt ?? null,
|
|
229
|
+
imageUrl: tool.imageUrl ?? null,
|
|
230
|
+
subAgentIds: Array.from(subAgentIdsByToolId.get(tool.id) ?? [])
|
|
231
|
+
})).filter((tool) => statusFilter ? tool.status === statusFilter : true);
|
|
232
|
+
return c.json({ data });
|
|
233
|
+
});
|
|
138
234
|
app.openapi(createProtectedRoute({
|
|
139
235
|
method: "post",
|
|
140
236
|
path: "/",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ManageAppVariables } from "../../../types/app.js";
|
|
2
2
|
import { Hono } from "hono";
|
|
3
|
-
import * as
|
|
3
|
+
import * as hono_types5 from "hono/types";
|
|
4
4
|
|
|
5
5
|
//#region src/domains/manage/routes/authLookup.d.ts
|
|
6
6
|
declare const authLookupRoutes: Hono<{
|
|
7
7
|
Variables: ManageAppVariables;
|
|
8
|
-
},
|
|
8
|
+
}, hono_types5.BlankSchema, "/">;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { authLookupRoutes as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OpenAPIHono } from "@hono/zod-openapi";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono15 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/manage/routes/availableAgents.d.ts
|
|
5
|
-
declare const app: OpenAPIHono<
|
|
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
|
|
2
|
+
import * as hono1 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/manage/routes/conversations.d.ts
|
|
5
|
-
declare const app: OpenAPIHono<
|
|
5
|
+
declare const app: OpenAPIHono<hono1.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
|
|
2
|
+
import * as hono13 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/manage/routes/feedback.d.ts
|
|
5
|
-
declare const app: OpenAPIHono<
|
|
5
|
+
declare const app: OpenAPIHono<hono13.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
|
|
2
|
+
import * as hono18 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/manage/routes/index.d.ts
|
|
5
|
-
declare const app: OpenAPIHono<
|
|
5
|
+
declare const app: OpenAPIHono<hono18.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
|
|
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
|
-
},
|
|
8
|
+
}, hono_types9.BlankSchema, "/">;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { invitationsRoutes as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ManageAppVariables } from "../../../types/app.js";
|
|
2
2
|
import { Hono } from "hono";
|
|
3
|
-
import * as
|
|
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
|
-
},
|
|
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
|
|
3
|
+
import * as hono_types13 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
|
-
},
|
|
8
|
+
}, hono_types13.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
|
|
3
|
+
import * as hono_types10 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
|
-
},
|
|
8
|
+
}, hono_types10.BlankSchema, "/">;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { usersRoutes as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Hono } from "hono";
|
|
2
|
-
import * as
|
|
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<
|
|
5
|
+
declare const app: Hono<hono_types6.BlankEnv, hono_types6.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
|
|
5
|
+
import * as _inkeep_agents_core5 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:
|
|
53
|
+
result: _inkeep_agents_core5.Message | _inkeep_agents_core5.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
|
|
2
|
+
import * as hono20 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<
|
|
6
|
+
declare const app: OpenAPIHono<hono20.Env, {}, "/">;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { app as default, getAnonJwtSecret };
|
|
@@ -29,9 +29,9 @@ declare const ConversationHistorySummarySchema: z.ZodObject<{
|
|
|
29
29
|
tool_call_id: z.ZodString;
|
|
30
30
|
content_summary: z.ZodString;
|
|
31
31
|
relevance: z.ZodEnum<{
|
|
32
|
+
low: "low";
|
|
32
33
|
high: "high";
|
|
33
34
|
medium: "medium";
|
|
34
|
-
low: "low";
|
|
35
35
|
}>;
|
|
36
36
|
}, z.core.$strip>>>;
|
|
37
37
|
conversation_flow: z.ZodObject<{
|