@inkeep/agents-api 0.0.0-dev-20260403054327 → 0.0.0-dev-20260403190627
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 +70 -70
- 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/context-configs.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/evals/workflow/routes.d.ts +2 -2
- 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/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/services/blob-storage/resolve-blob-uris.js +10 -10
- package/dist/domains/run/tools/distill-conversation-history-tool.d.ts +1 -1
- package/dist/domains/run/types/chat.d.ts +16 -16
- package/dist/domains/run/workflow/steps/scheduledTriggerSteps.d.ts +6 -6
- package/dist/env.d.ts +2 -2
- package/dist/factory.d.ts +80 -80
- package/dist/index.d.ts +80 -80
- package/dist/middleware/evalsAuth.d.ts +2 -2
- 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,9 +12,18 @@
|
|
|
12
12
|
"stepId": "__builtin_response_text"
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"stepId": "step
|
|
15
|
+
"src/domains/evals/workflow/functions/evaluateConversation.ts": {
|
|
16
|
+
"executeEvaluatorStep": {
|
|
17
|
+
"stepId": "step//./src/domains/evals/workflow/functions/evaluateConversation//executeEvaluatorStep"
|
|
18
|
+
},
|
|
19
|
+
"getConversationStep": {
|
|
20
|
+
"stepId": "step//./src/domains/evals/workflow/functions/evaluateConversation//getConversationStep"
|
|
21
|
+
},
|
|
22
|
+
"getEvaluatorsStep": {
|
|
23
|
+
"stepId": "step//./src/domains/evals/workflow/functions/evaluateConversation//getEvaluatorsStep"
|
|
24
|
+
},
|
|
25
|
+
"logStep": {
|
|
26
|
+
"stepId": "step//./src/domains/evals/workflow/functions/evaluateConversation//logStep"
|
|
18
27
|
}
|
|
19
28
|
},
|
|
20
29
|
"src/domains/run/workflow/steps/schedulerSteps.ts": {
|
|
@@ -31,18 +40,35 @@
|
|
|
31
40
|
"stepId": "step//./src/domains/run/workflow/steps/schedulerSteps//registerSchedulerStep"
|
|
32
41
|
}
|
|
33
42
|
},
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"stepId": "step
|
|
43
|
+
"node_modules/.pnpm/workflow@4.2.0-beta.67_@nestjs+common@11.1.13_reflect-metadata@0.2.2_rxjs@7.8.2__@nestj_ae349ba339a6edc79d2e07638ba82f4b/node_modules/workflow/dist/stdlib.js": {
|
|
44
|
+
"fetch": {
|
|
45
|
+
"stepId": "step//workflow@4.2.0-beta.67//fetch"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"src/domains/evals/workflow/functions/runDatasetItem.ts": {
|
|
49
|
+
"executeDatasetItemStep": {
|
|
50
|
+
"stepId": "step//./src/domains/evals/workflow/functions/runDatasetItem//executeDatasetItemStep"
|
|
37
51
|
},
|
|
38
|
-
"
|
|
39
|
-
"stepId": "step//./src/domains/evals/workflow/functions/
|
|
52
|
+
"executeEvaluatorStep": {
|
|
53
|
+
"stepId": "step//./src/domains/evals/workflow/functions/runDatasetItem//executeEvaluatorStep"
|
|
40
54
|
},
|
|
41
|
-
"
|
|
42
|
-
"stepId": "step//./src/domains/evals/workflow/functions/
|
|
55
|
+
"filterEvaluatorsByAgentStep": {
|
|
56
|
+
"stepId": "step//./src/domains/evals/workflow/functions/runDatasetItem//filterEvaluatorsByAgentStep"
|
|
43
57
|
},
|
|
44
58
|
"logStep": {
|
|
45
|
-
"stepId": "step//./src/domains/evals/workflow/functions/
|
|
59
|
+
"stepId": "step//./src/domains/evals/workflow/functions/runDatasetItem//logStep"
|
|
60
|
+
},
|
|
61
|
+
"markCompletedStep": {
|
|
62
|
+
"stepId": "step//./src/domains/evals/workflow/functions/runDatasetItem//markCompletedStep"
|
|
63
|
+
},
|
|
64
|
+
"markFailedStep": {
|
|
65
|
+
"stepId": "step//./src/domains/evals/workflow/functions/runDatasetItem//markFailedStep"
|
|
66
|
+
},
|
|
67
|
+
"markRunningStep": {
|
|
68
|
+
"stepId": "step//./src/domains/evals/workflow/functions/runDatasetItem//markRunningStep"
|
|
69
|
+
},
|
|
70
|
+
"recordConversationStep": {
|
|
71
|
+
"stepId": "step//./src/domains/evals/workflow/functions/runDatasetItem//recordConversationStep"
|
|
46
72
|
}
|
|
47
73
|
},
|
|
48
74
|
"src/domains/run/workflow/steps/scheduledTriggerSteps.ts": {
|
|
@@ -83,32 +109,6 @@
|
|
|
83
109
|
"stepId": "step//./src/domains/run/workflow/steps/scheduledTriggerSteps//resetInvocationToPendingStep"
|
|
84
110
|
}
|
|
85
111
|
},
|
|
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"
|
|
@@ -279,39 +279,6 @@
|
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
281
|
},
|
|
282
|
-
"src/domains/run/workflow/functions/agentExecution.ts": {
|
|
283
|
-
"_agentExecutionWorkflow": {
|
|
284
|
-
"workflowId": "workflow//./src/domains/run/workflow/functions/agentExecution//_agentExecutionWorkflow",
|
|
285
|
-
"graph": {
|
|
286
|
-
"nodes": [
|
|
287
|
-
{
|
|
288
|
-
"id": "start",
|
|
289
|
-
"type": "workflowStart",
|
|
290
|
-
"data": {
|
|
291
|
-
"label": "Start: _agentExecutionWorkflow",
|
|
292
|
-
"nodeKind": "workflow_start"
|
|
293
|
-
}
|
|
294
|
-
},
|
|
295
|
-
{
|
|
296
|
-
"id": "end",
|
|
297
|
-
"type": "workflowEnd",
|
|
298
|
-
"data": {
|
|
299
|
-
"label": "Return",
|
|
300
|
-
"nodeKind": "workflow_end"
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
],
|
|
304
|
-
"edges": [
|
|
305
|
-
{
|
|
306
|
-
"id": "e_start_end",
|
|
307
|
-
"source": "start",
|
|
308
|
-
"target": "end",
|
|
309
|
-
"type": "default"
|
|
310
|
-
}
|
|
311
|
-
]
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
},
|
|
315
282
|
"src/domains/run/workflow/functions/schedulerWorkflow.ts": {
|
|
316
283
|
"_schedulerWorkflow": {
|
|
317
284
|
"workflowId": "workflow//./src/domains/run/workflow/functions/schedulerWorkflow//_schedulerWorkflow",
|
|
@@ -367,6 +334,39 @@
|
|
|
367
334
|
]
|
|
368
335
|
}
|
|
369
336
|
}
|
|
337
|
+
},
|
|
338
|
+
"src/domains/run/workflow/functions/agentExecution.ts": {
|
|
339
|
+
"_agentExecutionWorkflow": {
|
|
340
|
+
"workflowId": "workflow//./src/domains/run/workflow/functions/agentExecution//_agentExecutionWorkflow",
|
|
341
|
+
"graph": {
|
|
342
|
+
"nodes": [
|
|
343
|
+
{
|
|
344
|
+
"id": "start",
|
|
345
|
+
"type": "workflowStart",
|
|
346
|
+
"data": {
|
|
347
|
+
"label": "Start: _agentExecutionWorkflow",
|
|
348
|
+
"nodeKind": "workflow_start"
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"id": "end",
|
|
353
|
+
"type": "workflowEnd",
|
|
354
|
+
"data": {
|
|
355
|
+
"label": "Return",
|
|
356
|
+
"nodeKind": "workflow_end"
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
],
|
|
360
|
+
"edges": [
|
|
361
|
+
{
|
|
362
|
+
"id": "e_start_end",
|
|
363
|
+
"source": "start",
|
|
364
|
+
"target": "end",
|
|
365
|
+
"type": "default"
|
|
366
|
+
}
|
|
367
|
+
]
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
370
|
}
|
|
371
371
|
},
|
|
372
372
|
"classes": {}
|
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_core0 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_core0.AgentsManageDatabaseClient;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { manageDbClient 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/db/runDbClient.d.ts
|
|
4
|
-
declare const runDbClient:
|
|
4
|
+
declare const runDbClient: _inkeep_agents_core0.AgentsRunDatabaseClient;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { runDbClient as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _inkeep_agents_core1 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_core1.EntityEffectHandlers<"agent">;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { agentHandlers };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _inkeep_agents_core2 from "@inkeep/agents-core";
|
|
2
2
|
|
|
3
3
|
//#region src/data-reconciliation/handlers/context-configs.d.ts
|
|
4
|
-
declare const contextConfigsHandlers:
|
|
4
|
+
declare const contextConfigsHandlers: _inkeep_agents_core2.EntityEffectHandlers<"context_configs">;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { contextConfigsHandlers };
|
|
@@ -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/sub-agents.d.ts
|
|
4
|
-
declare const subAgentsHandlers:
|
|
4
|
+
declare const subAgentsHandlers: _inkeep_agents_core3.EntityEffectHandlers<"sub_agents">;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { subAgentsHandlers };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _inkeep_agents_core4 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_core4.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 hono2 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/evals/routes/index.d.ts
|
|
5
|
-
declare const app: OpenAPIHono<
|
|
5
|
+
declare const app: OpenAPIHono<hono2.Env, {}, "/">;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { app as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Hono } from "hono";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono_types3 from "hono/types";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/evals/workflow/routes.d.ts
|
|
5
|
-
declare const workflowRoutes: Hono<
|
|
5
|
+
declare const workflowRoutes: Hono<hono_types3.BlankEnv, hono_types3.BlankSchema, "/">;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { workflowRoutes };
|
|
@@ -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_types7 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_types7.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 hono3 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/manage/routes/availableAgents.d.ts
|
|
5
|
-
declare const app: OpenAPIHono<
|
|
5
|
+
declare const app: OpenAPIHono<hono3.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 hono4 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/manage/routes/conversations.d.ts
|
|
5
|
-
declare const app: OpenAPIHono<
|
|
5
|
+
declare const app: OpenAPIHono<hono4.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 hono6 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/manage/routes/index.d.ts
|
|
5
|
-
declare const app: OpenAPIHono<
|
|
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
|
|
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_types10 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_types10.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_types11 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_types11.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_types8 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_types8.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_types5 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_types5.BlankEnv, hono_types5.BlankSchema, "/">;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { app as default };
|
|
@@ -2,7 +2,7 @@ import { AgentConfig, 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
|
|
|
@@ -48,7 +48,7 @@ declare function createDelegateToAgentTool({
|
|
|
48
48
|
message: string;
|
|
49
49
|
}, {
|
|
50
50
|
toolCallId: any;
|
|
51
|
-
result:
|
|
51
|
+
result: _inkeep_agents_core5.Message | _inkeep_agents_core5.Task;
|
|
52
52
|
}>;
|
|
53
53
|
/**
|
|
54
54
|
* 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 hono5 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<hono5.Env, {}, "/">;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { app as default, getAnonJwtSecret };
|
|
@@ -12,6 +12,11 @@ async function resolveMessageBlobUris(content, baseUrl, provider) {
|
|
|
12
12
|
const resolvedParts = await Promise.all(content.parts.map(async (part) => {
|
|
13
13
|
if (part.kind === "file" && typeof part.data === "string" && isBlobUri(part.data)) {
|
|
14
14
|
const key = fromBlobUri(part.data);
|
|
15
|
+
const parsed = parseMediaStorageKey(key);
|
|
16
|
+
if (!parsed) {
|
|
17
|
+
logger.warn({ key }, "Malformed blob storage key, filtering part out");
|
|
18
|
+
return null;
|
|
19
|
+
}
|
|
15
20
|
if (resolvedProvider.getPresignedUrl) try {
|
|
16
21
|
const presignedUrl = await resolvedProvider.getPresignedUrl(key);
|
|
17
22
|
return {
|
|
@@ -24,16 +29,11 @@ async function resolveMessageBlobUris(content, baseUrl, provider) {
|
|
|
24
29
|
error
|
|
25
30
|
}, "Presigned URL generation failed, falling back to proxy URL");
|
|
26
31
|
}
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
data: proxyUrl
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
logger.warn({ key }, "Malformed blob storage key, filtering part out");
|
|
36
|
-
return null;
|
|
32
|
+
const proxyUrl = `${apiBaseUrl}/manage/tenants/${parsed.tenantId}/projects/${parsed.projectId}/conversations/${parsed.conversationId}/media/${encodeURIComponent(parsed.tail)}`;
|
|
33
|
+
return {
|
|
34
|
+
...part,
|
|
35
|
+
data: proxyUrl
|
|
36
|
+
};
|
|
37
37
|
}
|
|
38
38
|
return part;
|
|
39
39
|
}));
|
|
@@ -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<{
|
|
@@ -7,9 +7,9 @@ declare const InlineDocumentDataSchema: z.ZodUnion<readonly [z.ZodUnion<readonly
|
|
|
7
7
|
/** OpenAI-specific image detail level. Has no effect on other providers. */
|
|
8
8
|
declare const ImageDetailEnum: readonly ["auto", "low", "high"];
|
|
9
9
|
declare const ImageDetailSchema: z.ZodEnum<{
|
|
10
|
-
high: "high";
|
|
11
|
-
low: "low";
|
|
12
10
|
auto: "auto";
|
|
11
|
+
low: "low";
|
|
12
|
+
high: "high";
|
|
13
13
|
}>;
|
|
14
14
|
type ImageDetail = z.infer<typeof ImageDetailSchema>;
|
|
15
15
|
declare const ImageContentItemSchema: z.ZodObject<{
|
|
@@ -17,9 +17,9 @@ declare const ImageContentItemSchema: z.ZodObject<{
|
|
|
17
17
|
image_url: z.ZodObject<{
|
|
18
18
|
url: z.ZodUnion<readonly [z.ZodURL, z.ZodString]>;
|
|
19
19
|
detail: z.ZodOptional<z.ZodEnum<{
|
|
20
|
-
high: "high";
|
|
21
|
-
low: "low";
|
|
22
20
|
auto: "auto";
|
|
21
|
+
low: "low";
|
|
22
|
+
high: "high";
|
|
23
23
|
}>>;
|
|
24
24
|
}, z.core.$strip>;
|
|
25
25
|
}, z.core.$strip>;
|
|
@@ -102,10 +102,10 @@ declare const VercelMessagePartSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
102
102
|
declare const VercelMessageSchema: z.ZodObject<{
|
|
103
103
|
role: z.ZodEnum<{
|
|
104
104
|
function: "function";
|
|
105
|
-
system: "system";
|
|
106
105
|
user: "user";
|
|
107
|
-
assistant: "assistant";
|
|
108
106
|
tool: "tool";
|
|
107
|
+
system: "system";
|
|
108
|
+
assistant: "assistant";
|
|
109
109
|
}>;
|
|
110
110
|
content: z.ZodAny;
|
|
111
111
|
parts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -160,9 +160,9 @@ declare const ContentItemSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
160
160
|
image_url: z.ZodObject<{
|
|
161
161
|
url: z.ZodUnion<readonly [z.ZodURL, z.ZodString]>;
|
|
162
162
|
detail: z.ZodOptional<z.ZodEnum<{
|
|
163
|
-
high: "high";
|
|
164
|
-
low: "low";
|
|
165
163
|
auto: "auto";
|
|
164
|
+
low: "low";
|
|
165
|
+
high: "high";
|
|
166
166
|
}>>;
|
|
167
167
|
}, z.core.$strip>;
|
|
168
168
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -177,10 +177,10 @@ type ContentItem = z.infer<typeof ContentItemSchema>;
|
|
|
177
177
|
declare const MessageSchema: z.ZodObject<{
|
|
178
178
|
role: z.ZodEnum<{
|
|
179
179
|
function: "function";
|
|
180
|
-
system: "system";
|
|
181
180
|
user: "user";
|
|
182
|
-
assistant: "assistant";
|
|
183
181
|
tool: "tool";
|
|
182
|
+
system: "system";
|
|
183
|
+
assistant: "assistant";
|
|
184
184
|
}>;
|
|
185
185
|
content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
186
186
|
type: z.ZodLiteral<"text">;
|
|
@@ -190,9 +190,9 @@ declare const MessageSchema: z.ZodObject<{
|
|
|
190
190
|
image_url: z.ZodObject<{
|
|
191
191
|
url: z.ZodUnion<readonly [z.ZodURL, z.ZodString]>;
|
|
192
192
|
detail: z.ZodOptional<z.ZodEnum<{
|
|
193
|
-
high: "high";
|
|
194
|
-
low: "low";
|
|
195
193
|
auto: "auto";
|
|
194
|
+
low: "low";
|
|
195
|
+
high: "high";
|
|
196
196
|
}>>;
|
|
197
197
|
}, z.core.$strip>;
|
|
198
198
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -210,10 +210,10 @@ declare const ChatCompletionRequestSchema: z.ZodObject<{
|
|
|
210
210
|
messages: z.ZodArray<z.ZodObject<{
|
|
211
211
|
role: z.ZodEnum<{
|
|
212
212
|
function: "function";
|
|
213
|
-
system: "system";
|
|
214
213
|
user: "user";
|
|
215
|
-
assistant: "assistant";
|
|
216
214
|
tool: "tool";
|
|
215
|
+
system: "system";
|
|
216
|
+
assistant: "assistant";
|
|
217
217
|
}>;
|
|
218
218
|
content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
219
219
|
type: z.ZodLiteral<"text">;
|
|
@@ -223,9 +223,9 @@ declare const ChatCompletionRequestSchema: z.ZodObject<{
|
|
|
223
223
|
image_url: z.ZodObject<{
|
|
224
224
|
url: z.ZodUnion<readonly [z.ZodURL, z.ZodString]>;
|
|
225
225
|
detail: z.ZodOptional<z.ZodEnum<{
|
|
226
|
-
high: "high";
|
|
227
|
-
low: "low";
|
|
228
226
|
auto: "auto";
|
|
227
|
+
low: "low";
|
|
228
|
+
high: "high";
|
|
229
229
|
}>>;
|
|
230
230
|
}, z.core.$strip>;
|
|
231
231
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -71,7 +71,7 @@ declare function createInvocationIdempotentStep(params: {
|
|
|
71
71
|
projectId: string;
|
|
72
72
|
tenantId: string;
|
|
73
73
|
id: string;
|
|
74
|
-
status: "completed" | "pending" | "
|
|
74
|
+
status: "completed" | "pending" | "running" | "failed" | "cancelled";
|
|
75
75
|
ref?: {
|
|
76
76
|
type: "commit" | "tag" | "branch";
|
|
77
77
|
name: string;
|
|
@@ -116,7 +116,7 @@ declare function markRunningStep(params: {
|
|
|
116
116
|
projectId: string;
|
|
117
117
|
tenantId: string;
|
|
118
118
|
id: string;
|
|
119
|
-
status: "completed" | "pending" | "
|
|
119
|
+
status: "completed" | "pending" | "running" | "failed" | "cancelled";
|
|
120
120
|
ref?: {
|
|
121
121
|
type: "commit" | "tag" | "branch";
|
|
122
122
|
name: string;
|
|
@@ -148,7 +148,7 @@ declare function addConversationIdStep(params: {
|
|
|
148
148
|
projectId: string;
|
|
149
149
|
tenantId: string;
|
|
150
150
|
id: string;
|
|
151
|
-
status: "completed" | "pending" | "
|
|
151
|
+
status: "completed" | "pending" | "running" | "failed" | "cancelled";
|
|
152
152
|
ref?: {
|
|
153
153
|
type: "commit" | "tag" | "branch";
|
|
154
154
|
name: string;
|
|
@@ -178,7 +178,7 @@ declare function markCompletedStep(params: {
|
|
|
178
178
|
projectId: string;
|
|
179
179
|
tenantId: string;
|
|
180
180
|
id: string;
|
|
181
|
-
status: "completed" | "pending" | "
|
|
181
|
+
status: "completed" | "pending" | "running" | "failed" | "cancelled";
|
|
182
182
|
ref?: {
|
|
183
183
|
type: "commit" | "tag" | "branch";
|
|
184
184
|
name: string;
|
|
@@ -208,7 +208,7 @@ declare function markFailedStep(params: {
|
|
|
208
208
|
projectId: string;
|
|
209
209
|
tenantId: string;
|
|
210
210
|
id: string;
|
|
211
|
-
status: "completed" | "pending" | "
|
|
211
|
+
status: "completed" | "pending" | "running" | "failed" | "cancelled";
|
|
212
212
|
ref?: {
|
|
213
213
|
type: "commit" | "tag" | "branch";
|
|
214
214
|
name: string;
|
|
@@ -257,7 +257,7 @@ declare function resetInvocationToPendingStep(params: {
|
|
|
257
257
|
projectId: string;
|
|
258
258
|
tenantId: string;
|
|
259
259
|
id: string;
|
|
260
|
-
status: "completed" | "pending" | "
|
|
260
|
+
status: "completed" | "pending" | "running" | "failed" | "cancelled";
|
|
261
261
|
ref?: {
|
|
262
262
|
type: "commit" | "tag" | "branch";
|
|
263
263
|
name: string;
|
package/dist/env.d.ts
CHANGED
|
@@ -14,11 +14,11 @@ declare const envSchema: z.ZodObject<{
|
|
|
14
14
|
pentest: "pentest";
|
|
15
15
|
}>>;
|
|
16
16
|
LOG_LEVEL: z.ZodDefault<z.ZodEnum<{
|
|
17
|
-
error: "error";
|
|
18
17
|
trace: "trace";
|
|
19
18
|
debug: "debug";
|
|
20
19
|
info: "info";
|
|
21
20
|
warn: "warn";
|
|
21
|
+
error: "error";
|
|
22
22
|
}>>;
|
|
23
23
|
INKEEP_AGENTS_MANAGE_DATABASE_URL: z.ZodString;
|
|
24
24
|
INKEEP_AGENTS_RUN_DATABASE_URL: z.ZodString;
|
|
@@ -77,7 +77,7 @@ declare const envSchema: z.ZodObject<{
|
|
|
77
77
|
declare const env: {
|
|
78
78
|
NODE_ENV: "development" | "production" | "test";
|
|
79
79
|
ENVIRONMENT: "development" | "production" | "test" | "pentest";
|
|
80
|
-
LOG_LEVEL: "
|
|
80
|
+
LOG_LEVEL: "trace" | "debug" | "info" | "warn" | "error";
|
|
81
81
|
INKEEP_AGENTS_MANAGE_DATABASE_URL: string;
|
|
82
82
|
INKEEP_AGENTS_RUN_DATABASE_URL: string;
|
|
83
83
|
INKEEP_AGENTS_API_URL: string;
|