@inkeep/agents-api 0.0.0-dev-20260320171843 → 0.0.0-dev-20260320191205
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 +27 -27
- package/dist/createApp.d.ts +2 -2
- package/dist/data/db/manageDbClient.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/scheduled-triggers.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/datasetTriggers.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/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 +4 -4
- package/dist/domains/run/utils/token-estimator.d.ts +2 -2
- package/dist/domains/run/workflow/steps/scheduledTriggerSteps.d.ts +12 -12
- package/dist/factory.d.ts +3 -3
- package/dist/index.d.ts +2 -2
- 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/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,18 +12,18 @@
|
|
|
12
12
|
"stepId": "__builtin_response_text"
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
|
-
"src/domains/evals/workflow/functions/
|
|
16
|
-
"
|
|
17
|
-
"stepId": "step//./src/domains/evals/workflow/functions/
|
|
15
|
+
"src/domains/evals/workflow/functions/runDatasetItem.ts": {
|
|
16
|
+
"callChatApiStep": {
|
|
17
|
+
"stepId": "step//./src/domains/evals/workflow/functions/runDatasetItem//callChatApiStep"
|
|
18
18
|
},
|
|
19
|
-
"
|
|
20
|
-
"stepId": "step//./src/domains/evals/workflow/functions/
|
|
19
|
+
"createRelationStep": {
|
|
20
|
+
"stepId": "step//./src/domains/evals/workflow/functions/runDatasetItem//createRelationStep"
|
|
21
21
|
},
|
|
22
|
-
"
|
|
23
|
-
"stepId": "step//./src/domains/evals/workflow/functions/
|
|
22
|
+
"executeEvaluatorStep": {
|
|
23
|
+
"stepId": "step//./src/domains/evals/workflow/functions/runDatasetItem//executeEvaluatorStep"
|
|
24
24
|
},
|
|
25
25
|
"logStep": {
|
|
26
|
-
"stepId": "step//./src/domains/evals/workflow/functions/
|
|
26
|
+
"stepId": "step//./src/domains/evals/workflow/functions/runDatasetItem//logStep"
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
"node_modules/.pnpm/workflow@4.2.0-beta.68_@nestjs+common@11.1.13_reflect-metadata@0.2.2_rxjs@7.8.2__@nestj_9ec7abb8bcd1459c2bab463fccef5dfb/node_modules/workflow/dist/stdlib.js": {
|
|
@@ -31,18 +31,23 @@
|
|
|
31
31
|
"stepId": "step//workflow@4.2.0-beta.68//fetch"
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
|
-
"src/domains/evals/workflow/functions/
|
|
35
|
-
"
|
|
36
|
-
"stepId": "step//./src/domains/evals/workflow/functions/
|
|
34
|
+
"src/domains/evals/workflow/functions/evaluateConversation.ts": {
|
|
35
|
+
"executeEvaluatorStep": {
|
|
36
|
+
"stepId": "step//./src/domains/evals/workflow/functions/evaluateConversation//executeEvaluatorStep"
|
|
37
37
|
},
|
|
38
|
-
"
|
|
39
|
-
"stepId": "step//./src/domains/evals/workflow/functions/
|
|
38
|
+
"getConversationStep": {
|
|
39
|
+
"stepId": "step//./src/domains/evals/workflow/functions/evaluateConversation//getConversationStep"
|
|
40
40
|
},
|
|
41
|
-
"
|
|
42
|
-
"stepId": "step//./src/domains/evals/workflow/functions/
|
|
41
|
+
"getEvaluatorsStep": {
|
|
42
|
+
"stepId": "step//./src/domains/evals/workflow/functions/evaluateConversation//getEvaluatorsStep"
|
|
43
43
|
},
|
|
44
44
|
"logStep": {
|
|
45
|
-
"stepId": "step//./src/domains/evals/workflow/functions/
|
|
45
|
+
"stepId": "step//./src/domains/evals/workflow/functions/evaluateConversation//logStep"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"src/domains/run/workflow/functions/scheduledTriggerRunner.ts": {
|
|
49
|
+
"startNextIterationStep": {
|
|
50
|
+
"stepId": "step//./src/domains/run/workflow/functions/scheduledTriggerRunner//startNextIterationStep"
|
|
46
51
|
}
|
|
47
52
|
},
|
|
48
53
|
"src/domains/run/workflow/steps/scheduledTriggerSteps.ts": {
|
|
@@ -91,26 +96,21 @@
|
|
|
91
96
|
"resetInvocationToPendingStep": {
|
|
92
97
|
"stepId": "step//./src/domains/run/workflow/steps/scheduledTriggerSteps//resetInvocationToPendingStep"
|
|
93
98
|
}
|
|
94
|
-
},
|
|
95
|
-
"src/domains/run/workflow/functions/scheduledTriggerRunner.ts": {
|
|
96
|
-
"startNextIterationStep": {
|
|
97
|
-
"stepId": "step//./src/domains/run/workflow/functions/scheduledTriggerRunner//startNextIterationStep"
|
|
98
|
-
}
|
|
99
99
|
}
|
|
100
100
|
},
|
|
101
101
|
"workflows": {
|
|
102
|
-
"src/domains/evals/workflow/functions/
|
|
103
|
-
"
|
|
104
|
-
"workflowId": "workflow//./src/domains/evals/workflow/functions/
|
|
102
|
+
"src/domains/evals/workflow/functions/runDatasetItem.ts": {
|
|
103
|
+
"_runDatasetItemWorkflow": {
|
|
104
|
+
"workflowId": "workflow//./src/domains/evals/workflow/functions/runDatasetItem//_runDatasetItemWorkflow",
|
|
105
105
|
"graph": {
|
|
106
106
|
"nodes": [],
|
|
107
107
|
"edges": []
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
},
|
|
111
|
-
"src/domains/evals/workflow/functions/
|
|
112
|
-
"
|
|
113
|
-
"workflowId": "workflow//./src/domains/evals/workflow/functions/
|
|
111
|
+
"src/domains/evals/workflow/functions/evaluateConversation.ts": {
|
|
112
|
+
"_evaluateConversationWorkflow": {
|
|
113
|
+
"workflowId": "workflow//./src/domains/evals/workflow/functions/evaluateConversation//_evaluateConversationWorkflow",
|
|
114
114
|
"graph": {
|
|
115
115
|
"nodes": [],
|
|
116
116
|
"edges": []
|
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_types10 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_types10.BlankEnv, hono_types10.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_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/scheduled-triggers.d.ts
|
|
4
|
-
declare const scheduledTriggersHandlers:
|
|
4
|
+
declare const scheduledTriggersHandlers: _inkeep_agents_core3.EntityEffectHandlers<"scheduled_triggers">;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { scheduledTriggersHandlers };
|
|
@@ -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/sub-agents.d.ts
|
|
4
|
-
declare const subAgentsHandlers:
|
|
4
|
+
declare const subAgentsHandlers: _inkeep_agents_core4.EntityEffectHandlers<"sub_agents">;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { subAgentsHandlers };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
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:
|
|
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
|
|
2
|
+
import * as hono1 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/evals/routes/datasetTriggers.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 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_types2 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_types2.BlankEnv, hono_types2.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_types0 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_types0.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 hono5 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/manage/routes/availableAgents.d.ts
|
|
5
|
-
declare const app: OpenAPIHono<
|
|
5
|
+
declare const app: OpenAPIHono<hono5.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 hono3 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/manage/routes/conversations.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/index.d.ts
|
|
5
|
-
declare const app: OpenAPIHono<
|
|
5
|
+
declare const app: OpenAPIHono<hono4.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_types1 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_types1.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_types6 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_types6.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_types0 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_types0.BlankSchema, "/">;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { app as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Hono } from "hono";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono_types4 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_types4.BlankEnv, hono_types4.BlankSchema, "/">;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { app as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AgentConfig, DelegateRelation } from "./agent-types.js";
|
|
2
2
|
import "./Agent.js";
|
|
3
3
|
import { InternalRelation } from "../utils/project.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as _inkeep_agents_core6 from "@inkeep/agents-core";
|
|
5
5
|
import { CredentialStoreRegistry, FullExecutionContext } from "@inkeep/agents-core";
|
|
6
6
|
import * as ai0 from "ai";
|
|
7
7
|
|
|
@@ -45,7 +45,7 @@ declare function createDelegateToAgentTool({
|
|
|
45
45
|
message: string;
|
|
46
46
|
}, {
|
|
47
47
|
toolCallId: any;
|
|
48
|
-
result:
|
|
48
|
+
result: _inkeep_agents_core6.Message | _inkeep_agents_core6.Task;
|
|
49
49
|
}>;
|
|
50
50
|
/**
|
|
51
51
|
* 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 hono6 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<hono6.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<{
|
|
@@ -9,9 +9,9 @@ declare const ImageUrlSchema: z.ZodUnion<readonly [z.ZodURL, z.ZodString]>;
|
|
|
9
9
|
/** OpenAI-specific image detail level. Has no effect on other providers. */
|
|
10
10
|
declare const ImageDetailEnum: readonly ["auto", "low", "high"];
|
|
11
11
|
declare const ImageDetailSchema: z.ZodEnum<{
|
|
12
|
-
high: "high";
|
|
13
|
-
low: "low";
|
|
14
12
|
auto: "auto";
|
|
13
|
+
low: "low";
|
|
14
|
+
high: "high";
|
|
15
15
|
}>;
|
|
16
16
|
type ImageDetail = z.infer<typeof ImageDetailSchema>;
|
|
17
17
|
declare const ImageContentItemSchema: z.ZodObject<{
|
|
@@ -19,9 +19,9 @@ declare const ImageContentItemSchema: z.ZodObject<{
|
|
|
19
19
|
image_url: z.ZodObject<{
|
|
20
20
|
url: z.ZodUnion<readonly [z.ZodURL, z.ZodString]>;
|
|
21
21
|
detail: z.ZodOptional<z.ZodEnum<{
|
|
22
|
-
high: "high";
|
|
23
|
-
low: "low";
|
|
24
22
|
auto: "auto";
|
|
23
|
+
low: "low";
|
|
24
|
+
high: "high";
|
|
25
25
|
}>>;
|
|
26
26
|
}, z.core.$strip>;
|
|
27
27
|
}, z.core.$strip>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _inkeep_agents_core8 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:
|
|
20
|
+
breakdown: _inkeep_agents_core8.ContextBreakdown;
|
|
21
21
|
}
|
|
22
22
|
//#endregion
|
|
23
23
|
export { AssembleResult, type BreakdownComponentDef, type ContextBreakdown, calculateBreakdownTotal, createEmptyBreakdown, estimateTokens };
|
|
@@ -108,9 +108,9 @@ declare function createInvocationIdempotentStep(params: {
|
|
|
108
108
|
projectId: string;
|
|
109
109
|
tenantId: string;
|
|
110
110
|
id: string;
|
|
111
|
-
status: "
|
|
111
|
+
status: "pending" | "failed" | "running" | "completed" | "cancelled";
|
|
112
112
|
ref?: {
|
|
113
|
-
type: "
|
|
113
|
+
type: "commit" | "tag" | "branch";
|
|
114
114
|
name: string;
|
|
115
115
|
hash: string;
|
|
116
116
|
} | null | undefined;
|
|
@@ -153,9 +153,9 @@ declare function markRunningStep(params: {
|
|
|
153
153
|
projectId: string;
|
|
154
154
|
tenantId: string;
|
|
155
155
|
id: string;
|
|
156
|
-
status: "
|
|
156
|
+
status: "pending" | "failed" | "running" | "completed" | "cancelled";
|
|
157
157
|
ref?: {
|
|
158
|
-
type: "
|
|
158
|
+
type: "commit" | "tag" | "branch";
|
|
159
159
|
name: string;
|
|
160
160
|
hash: string;
|
|
161
161
|
} | null | undefined;
|
|
@@ -185,9 +185,9 @@ declare function addConversationIdStep(params: {
|
|
|
185
185
|
projectId: string;
|
|
186
186
|
tenantId: string;
|
|
187
187
|
id: string;
|
|
188
|
-
status: "
|
|
188
|
+
status: "pending" | "failed" | "running" | "completed" | "cancelled";
|
|
189
189
|
ref?: {
|
|
190
|
-
type: "
|
|
190
|
+
type: "commit" | "tag" | "branch";
|
|
191
191
|
name: string;
|
|
192
192
|
hash: string;
|
|
193
193
|
} | null | undefined;
|
|
@@ -215,9 +215,9 @@ declare function markCompletedStep(params: {
|
|
|
215
215
|
projectId: string;
|
|
216
216
|
tenantId: string;
|
|
217
217
|
id: string;
|
|
218
|
-
status: "
|
|
218
|
+
status: "pending" | "failed" | "running" | "completed" | "cancelled";
|
|
219
219
|
ref?: {
|
|
220
|
-
type: "
|
|
220
|
+
type: "commit" | "tag" | "branch";
|
|
221
221
|
name: string;
|
|
222
222
|
hash: string;
|
|
223
223
|
} | null | undefined;
|
|
@@ -245,9 +245,9 @@ declare function markFailedStep(params: {
|
|
|
245
245
|
projectId: string;
|
|
246
246
|
tenantId: string;
|
|
247
247
|
id: string;
|
|
248
|
-
status: "
|
|
248
|
+
status: "pending" | "failed" | "running" | "completed" | "cancelled";
|
|
249
249
|
ref?: {
|
|
250
|
-
type: "
|
|
250
|
+
type: "commit" | "tag" | "branch";
|
|
251
251
|
name: string;
|
|
252
252
|
hash: string;
|
|
253
253
|
} | null | undefined;
|
|
@@ -288,9 +288,9 @@ declare function resetInvocationToPendingStep(params: {
|
|
|
288
288
|
projectId: string;
|
|
289
289
|
tenantId: string;
|
|
290
290
|
id: string;
|
|
291
|
-
status: "
|
|
291
|
+
status: "pending" | "failed" | "running" | "completed" | "cancelled";
|
|
292
292
|
ref?: {
|
|
293
|
-
type: "
|
|
293
|
+
type: "commit" | "tag" | "branch";
|
|
294
294
|
name: string;
|
|
295
295
|
hash: string;
|
|
296
296
|
} | null | undefined;
|
package/dist/factory.d.ts
CHANGED
|
@@ -2,10 +2,10 @@ import { SandboxConfig } from "./types/app.js";
|
|
|
2
2
|
import "./types/index.js";
|
|
3
3
|
import { createAgentsHono } from "./createApp.js";
|
|
4
4
|
import { CredentialStore, ServerConfig } from "@inkeep/agents-core";
|
|
5
|
-
import * as
|
|
5
|
+
import * as hono8 from "hono";
|
|
6
6
|
import * as zod32 from "zod";
|
|
7
7
|
import { EmailServiceConfig, SSOProviderConfig, UserAuthConfig } from "@inkeep/agents-core/auth";
|
|
8
|
-
import * as
|
|
8
|
+
import * as hono_types12 from "hono/types";
|
|
9
9
|
import * as better_auth43 from "better-auth";
|
|
10
10
|
import * as better_auth_plugins4 from "better-auth/plugins";
|
|
11
11
|
|
|
@@ -479,6 +479,6 @@ declare function createAgentsApp(config?: {
|
|
|
479
479
|
auth?: UserAuthConfig;
|
|
480
480
|
sandboxConfig?: SandboxConfig;
|
|
481
481
|
emailService?: EmailServiceConfig;
|
|
482
|
-
}):
|
|
482
|
+
}): hono8.Hono<hono_types12.BlankEnv, hono_types12.BlankSchema, "/">;
|
|
483
483
|
//#endregion
|
|
484
484
|
export { type SSOProviderConfig, type UserAuthConfig, createAgentsApp, createAgentsAuth, createAgentsHono };
|
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { SSOProviderConfig, UserAuthConfig, createAgentsApp } from "./factory.js
|
|
|
6
6
|
import "./sentry.js";
|
|
7
7
|
import { Hono } from "hono";
|
|
8
8
|
import * as zod0 from "zod";
|
|
9
|
-
import * as
|
|
9
|
+
import * as hono_types8 from "hono/types";
|
|
10
10
|
import * as better_auth0 from "better-auth";
|
|
11
11
|
import * as better_auth_plugins0 from "better-auth/plugins";
|
|
12
12
|
|
|
@@ -474,6 +474,6 @@ declare const auth: better_auth0.Auth<{
|
|
|
474
474
|
}>;
|
|
475
475
|
}];
|
|
476
476
|
}>;
|
|
477
|
-
declare const app: Hono<
|
|
477
|
+
declare const app: Hono<hono_types8.BlankEnv, hono_types8.BlankSchema, "/">;
|
|
478
478
|
//#endregion
|
|
479
479
|
export { type AppConfig, type AppVariables, Hono, type NativeSandboxConfig, type SSOProviderConfig, type SandboxConfig, type UserAuthConfig, type VercelSandboxConfig, auth, createAgentsApp, createAgentsHono, app as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseExecutionContext } from "@inkeep/agents-core";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono7 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/middleware/evalsAuth.d.ts
|
|
5
5
|
|
|
@@ -7,7 +7,7 @@ import * as hono15 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: () =>
|
|
10
|
+
declare const evalApiKeyAuth: () => hono7.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
|
|
2
|
+
import * as hono9 from "hono";
|
|
3
3
|
import { createAuth } from "@inkeep/agents-core/auth";
|
|
4
4
|
|
|
5
5
|
//#region src/middleware/manageAuth.d.ts
|
|
@@ -16,7 +16,7 @@ import { createAuth } from "@inkeep/agents-core/auth";
|
|
|
16
16
|
* EXCEPT for the legacy exception on GET /manage/tenants/:t/projects/:p/conversations/:id
|
|
17
17
|
* (see isLegacyApiKeyAllowedRoute). API keys are otherwise restricted to the run domain only.
|
|
18
18
|
*/
|
|
19
|
-
declare const manageBearerAuth: () =>
|
|
19
|
+
declare const manageBearerAuth: () => hono9.MiddlewareHandler<{
|
|
20
20
|
Variables: {
|
|
21
21
|
executionContext: BaseExecutionContext;
|
|
22
22
|
userId?: string;
|
|
@@ -30,6 +30,6 @@ declare const manageBearerAuth: () => hono13.MiddlewareHandler<{
|
|
|
30
30
|
* Uses Bearer token → manage bearer auth (bypass secret, session, Slack JWT, internal service),
|
|
31
31
|
* otherwise falls back to session auth.
|
|
32
32
|
*/
|
|
33
|
-
declare const manageBearerOrSessionAuth: () =>
|
|
33
|
+
declare const manageBearerOrSessionAuth: () => hono9.MiddlewareHandler<any, string, {}, Response>;
|
|
34
34
|
//#endregion
|
|
35
35
|
export { manageBearerAuth, manageBearerOrSessionAuth };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { BaseExecutionContext, ResolvedRef } from "@inkeep/agents-core";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono15 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:
|
|
8
|
+
declare const projectConfigMiddleware: hono15.MiddlewareHandler<{
|
|
9
9
|
Variables: {
|
|
10
10
|
executionContext: BaseExecutionContext;
|
|
11
11
|
resolvedRef: ResolvedRef;
|
|
@@ -15,7 +15,7 @@ declare const projectConfigMiddleware: hono4.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) =>
|
|
18
|
+
declare const projectConfigMiddlewareExcept: (skipRouteCheck: (path: string) => boolean) => hono15.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
|
|
2
|
+
import * as hono11 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) =>
|
|
12
|
+
}>(permissions: Permission) => hono11.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
|
|
2
|
+
import * as hono17 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/middleware/runAuth.d.ts
|
|
5
|
-
declare const runApiKeyAuth: () =>
|
|
5
|
+
declare const runApiKeyAuth: () => hono17.MiddlewareHandler<{
|
|
6
6
|
Variables: {
|
|
7
7
|
executionContext: BaseExecutionContext;
|
|
8
8
|
};
|
|
@@ -11,7 +11,7 @@ declare const runApiKeyAuth: () => hono16.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) =>
|
|
14
|
+
declare const runApiKeyAuthExcept: (skipRouteCheck: (path: string) => boolean) => hono17.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: () =>
|
|
23
|
+
declare const runOptionalAuth: () => hono17.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
|
|
2
|
+
import * as hono12 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/middleware/sessionAuth.d.ts
|
|
5
5
|
|
|
@@ -8,12 +8,12 @@ import * as hono0 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: () =>
|
|
11
|
+
declare const sessionAuth: () => hono12.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: () =>
|
|
16
|
+
declare const sessionContext: () => hono12.MiddlewareHandler<{
|
|
17
17
|
Variables: AppVariables;
|
|
18
18
|
}, string, {}, Response>;
|
|
19
19
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as hono14 from "hono";
|
|
2
2
|
|
|
3
3
|
//#region src/middleware/tenantAccess.d.ts
|
|
4
4
|
|
|
@@ -12,7 +12,7 @@ import * as hono1 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: () =>
|
|
15
|
+
declare const requireTenantAccess: () => hono14.MiddlewareHandler<{
|
|
16
16
|
Variables: {
|
|
17
17
|
userId: string;
|
|
18
18
|
tenantId: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as hono0 from "hono";
|
|
2
2
|
|
|
3
3
|
//#region src/middleware/tracing.d.ts
|
|
4
|
-
declare const otelBaggageMiddleware: () =>
|
|
5
|
-
declare const executionBaggageMiddleware: () =>
|
|
4
|
+
declare const otelBaggageMiddleware: () => hono0.MiddlewareHandler<any, string, {}, Response>;
|
|
5
|
+
declare const executionBaggageMiddleware: () => hono0.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-
|
|
3
|
+
"version": "0.0.0-dev-20260320191205",
|
|
4
4
|
"description": "Unified Inkeep Agents API - combines management, runtime, and evaluation capabilities",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -73,10 +73,10 @@
|
|
|
73
73
|
"pg": "^8.16.3",
|
|
74
74
|
"undici": "^7.22.0",
|
|
75
75
|
"workflow": "^4.2.0-beta.64",
|
|
76
|
-
"@inkeep/agents-core": "^0.0.0-dev-
|
|
77
|
-
"@inkeep/agents-email": "^0.0.0-dev-
|
|
78
|
-
"@inkeep/agents-mcp": "^0.0.0-dev-
|
|
79
|
-
"@inkeep/agents-work-apps": "^0.0.0-dev-
|
|
76
|
+
"@inkeep/agents-core": "^0.0.0-dev-20260320191205",
|
|
77
|
+
"@inkeep/agents-email": "^0.0.0-dev-20260320191205",
|
|
78
|
+
"@inkeep/agents-mcp": "^0.0.0-dev-20260320191205",
|
|
79
|
+
"@inkeep/agents-work-apps": "^0.0.0-dev-20260320191205"
|
|
80
80
|
},
|
|
81
81
|
"peerDependencies": {
|
|
82
82
|
"@hono/zod-openapi": "^1.1.5",
|