@inkeep/agents-api 0.0.0-dev-20260305162109 → 0.0.0-dev-20260305190124
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 +23 -23
- 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/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/agent-types.d.ts +1 -1
- package/dist/domains/run/agents/agent-types.js +3 -1
- package/dist/domains/run/agents/relationTools.d.ts +2 -2
- package/dist/domains/run/agents/tools/mcp-tools.js +3 -2
- package/dist/domains/run/utils/token-estimator.d.ts +2 -2
- package/dist/domains/run/workflow/steps/scheduledTriggerSteps.d.ts +5 -5
- package/dist/env.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/requirePermission.d.ts +2 -2
- 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
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "1.0.0",
|
|
3
3
|
"steps": {
|
|
4
|
+
"node_modules/.pnpm/workflow@4.1.0-beta.54_@aws-sdk+client-sts@3.970.0_@nestjs+common@11.1.13_reflect-metad_f85281f2580d7065fc514e637f5f5e1f/node_modules/workflow/dist/stdlib.js": {
|
|
5
|
+
"fetch": {
|
|
6
|
+
"stepId": "step//workflow@4.1.0-beta.54//fetch"
|
|
7
|
+
}
|
|
8
|
+
},
|
|
4
9
|
"node_modules/.pnpm/workflow@4.1.0-beta.54_@aws-sdk+client-sts@3.970.0_@nestjs+common@11.1.13_reflect-metad_f85281f2580d7065fc514e637f5f5e1f/node_modules/workflow/dist/internal/builtins.js": {
|
|
5
10
|
"__builtin_response_array_buffer": {
|
|
6
11
|
"stepId": "__builtin_response_array_buffer"
|
|
@@ -12,9 +17,18 @@
|
|
|
12
17
|
"stepId": "__builtin_response_text"
|
|
13
18
|
}
|
|
14
19
|
},
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"stepId": "step
|
|
20
|
+
"src/domains/evals/workflow/functions/evaluateConversation.ts": {
|
|
21
|
+
"executeEvaluatorStep": {
|
|
22
|
+
"stepId": "step//./src/domains/evals/workflow/functions/evaluateConversation//executeEvaluatorStep"
|
|
23
|
+
},
|
|
24
|
+
"getConversationStep": {
|
|
25
|
+
"stepId": "step//./src/domains/evals/workflow/functions/evaluateConversation//getConversationStep"
|
|
26
|
+
},
|
|
27
|
+
"getEvaluatorsStep": {
|
|
28
|
+
"stepId": "step//./src/domains/evals/workflow/functions/evaluateConversation//getEvaluatorsStep"
|
|
29
|
+
},
|
|
30
|
+
"logStep": {
|
|
31
|
+
"stepId": "step//./src/domains/evals/workflow/functions/evaluateConversation//logStep"
|
|
18
32
|
}
|
|
19
33
|
},
|
|
20
34
|
"src/domains/evals/workflow/functions/runDatasetItem.ts": {
|
|
@@ -31,20 +45,6 @@
|
|
|
31
45
|
"stepId": "step//./src/domains/evals/workflow/functions/runDatasetItem//logStep"
|
|
32
46
|
}
|
|
33
47
|
},
|
|
34
|
-
"src/domains/evals/workflow/functions/evaluateConversation.ts": {
|
|
35
|
-
"executeEvaluatorStep": {
|
|
36
|
-
"stepId": "step//./src/domains/evals/workflow/functions/evaluateConversation//executeEvaluatorStep"
|
|
37
|
-
},
|
|
38
|
-
"getConversationStep": {
|
|
39
|
-
"stepId": "step//./src/domains/evals/workflow/functions/evaluateConversation//getConversationStep"
|
|
40
|
-
},
|
|
41
|
-
"getEvaluatorsStep": {
|
|
42
|
-
"stepId": "step//./src/domains/evals/workflow/functions/evaluateConversation//getEvaluatorsStep"
|
|
43
|
-
},
|
|
44
|
-
"logStep": {
|
|
45
|
-
"stepId": "step//./src/domains/evals/workflow/functions/evaluateConversation//logStep"
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
48
|
"src/domains/run/workflow/steps/scheduledTriggerSteps.ts": {
|
|
49
49
|
"addConversationIdStep": {
|
|
50
50
|
"stepId": "step//./src/domains/run/workflow/steps/scheduledTriggerSteps//addConversationIdStep"
|
|
@@ -91,18 +91,18 @@
|
|
|
91
91
|
}
|
|
92
92
|
},
|
|
93
93
|
"workflows": {
|
|
94
|
-
"src/domains/evals/workflow/functions/
|
|
95
|
-
"
|
|
96
|
-
"workflowId": "workflow//./src/domains/evals/workflow/functions/
|
|
94
|
+
"src/domains/evals/workflow/functions/evaluateConversation.ts": {
|
|
95
|
+
"_evaluateConversationWorkflow": {
|
|
96
|
+
"workflowId": "workflow//./src/domains/evals/workflow/functions/evaluateConversation//_evaluateConversationWorkflow",
|
|
97
97
|
"graph": {
|
|
98
98
|
"nodes": [],
|
|
99
99
|
"edges": []
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
},
|
|
103
|
-
"src/domains/evals/workflow/functions/
|
|
104
|
-
"
|
|
105
|
-
"workflowId": "workflow//./src/domains/evals/workflow/functions/
|
|
103
|
+
"src/domains/evals/workflow/functions/runDatasetItem.ts": {
|
|
104
|
+
"_runDatasetItemWorkflow": {
|
|
105
|
+
"workflowId": "workflow//./src/domains/evals/workflow/functions/runDatasetItem//_runDatasetItemWorkflow",
|
|
106
106
|
"graph": {
|
|
107
107
|
"nodes": [],
|
|
108
108
|
"edges": []
|
|
@@ -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/evals/routes/datasetTriggers.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 hono17 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/evals/routes/index.d.ts
|
|
5
|
-
declare const app: OpenAPIHono<
|
|
5
|
+
declare const app: OpenAPIHono<hono17.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_types9 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_types9.BlankEnv, hono_types9.BlankSchema, "/">;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { workflowRoutes };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OpenAPIHono } from "@hono/zod-openapi";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono14 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/manage/routes/availableAgents.d.ts
|
|
5
|
-
declare const app: OpenAPIHono<
|
|
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
|
|
2
|
+
import * as hono16 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/manage/routes/conversations.d.ts
|
|
5
|
-
declare const app: OpenAPIHono<
|
|
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
|
|
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_types3 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_types3.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_types8 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_types8.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_types7 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_types7.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_types1 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_types1.BlankEnv, hono_types1.BlankSchema, "/">;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { app as default };
|
|
@@ -140,7 +140,7 @@ type DelegateRelation = {
|
|
|
140
140
|
type ToolType = 'transfer' | 'delegation' | 'mcp' | 'tool';
|
|
141
141
|
declare function isValidTool(tool: unknown): tool is {
|
|
142
142
|
description: string;
|
|
143
|
-
inputSchema:
|
|
143
|
+
inputSchema: NonNullable<ToolSet[string]['inputSchema']>;
|
|
144
144
|
execute: (args: unknown, context?: unknown) => Promise<unknown>;
|
|
145
145
|
};
|
|
146
146
|
type AiSdkToolDefinition = {
|
|
@@ -49,7 +49,9 @@ function validateModel(modelString, modelType) {
|
|
|
49
49
|
return modelString.trim();
|
|
50
50
|
}
|
|
51
51
|
function isValidTool(tool) {
|
|
52
|
-
|
|
52
|
+
if (!tool || typeof tool !== "object") return false;
|
|
53
|
+
const t = tool;
|
|
54
|
+
return typeof t.description === "string" && t.inputSchema != null && typeof t.execute === "function";
|
|
53
55
|
}
|
|
54
56
|
|
|
55
57
|
//#endregion
|
|
@@ -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_core1 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_core1.Message | _inkeep_agents_core1.Task;
|
|
49
49
|
}>;
|
|
50
50
|
/**
|
|
51
51
|
* Parameters for building a transfer relation config
|
|
@@ -62,8 +62,9 @@ async function getMcpTools(ctx, sessionId, streamRequestId) {
|
|
|
62
62
|
}, "MCP Tool Called");
|
|
63
63
|
try {
|
|
64
64
|
const rawResult = await originalTool.execute(finalArgs, { toolCallId });
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
const result = rawResult;
|
|
66
|
+
if (result.isError) {
|
|
67
|
+
const errorMessage = result.content?.[0]?.text || "MCP tool returned an error";
|
|
67
68
|
logger.error({
|
|
68
69
|
toolName,
|
|
69
70
|
toolCallId,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _inkeep_agents_core3 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_core3.ContextBreakdown;
|
|
21
21
|
}
|
|
22
22
|
//#endregion
|
|
23
23
|
export { AssembleResult, type BreakdownComponentDef, type ContextBreakdown, calculateBreakdownTotal, createEmptyBreakdown, estimateTokens };
|
|
@@ -107,7 +107,7 @@ declare function createInvocationIdempotentStep(params: {
|
|
|
107
107
|
projectId: string;
|
|
108
108
|
tenantId: string;
|
|
109
109
|
id: string;
|
|
110
|
-
status: "pending" | "
|
|
110
|
+
status: "pending" | "failed" | "running" | "completed" | "cancelled";
|
|
111
111
|
resolvedPayload?: Record<string, unknown> | null | undefined;
|
|
112
112
|
};
|
|
113
113
|
alreadyExists: boolean;
|
|
@@ -147,7 +147,7 @@ declare function markRunningStep(params: {
|
|
|
147
147
|
projectId: string;
|
|
148
148
|
tenantId: string;
|
|
149
149
|
id: string;
|
|
150
|
-
status: "pending" | "
|
|
150
|
+
status: "pending" | "failed" | "running" | "completed" | "cancelled";
|
|
151
151
|
resolvedPayload?: Record<string, unknown> | null | undefined;
|
|
152
152
|
}>;
|
|
153
153
|
/**
|
|
@@ -174,7 +174,7 @@ declare function addConversationIdStep(params: {
|
|
|
174
174
|
projectId: string;
|
|
175
175
|
tenantId: string;
|
|
176
176
|
id: string;
|
|
177
|
-
status: "pending" | "
|
|
177
|
+
status: "pending" | "failed" | "running" | "completed" | "cancelled";
|
|
178
178
|
resolvedPayload?: Record<string, unknown> | null | undefined;
|
|
179
179
|
} | undefined>;
|
|
180
180
|
/**
|
|
@@ -199,7 +199,7 @@ declare function markCompletedStep(params: {
|
|
|
199
199
|
projectId: string;
|
|
200
200
|
tenantId: string;
|
|
201
201
|
id: string;
|
|
202
|
-
status: "pending" | "
|
|
202
|
+
status: "pending" | "failed" | "running" | "completed" | "cancelled";
|
|
203
203
|
resolvedPayload?: Record<string, unknown> | null | undefined;
|
|
204
204
|
} | undefined>;
|
|
205
205
|
/**
|
|
@@ -224,7 +224,7 @@ declare function markFailedStep(params: {
|
|
|
224
224
|
projectId: string;
|
|
225
225
|
tenantId: string;
|
|
226
226
|
id: string;
|
|
227
|
-
status: "pending" | "
|
|
227
|
+
status: "pending" | "failed" | "running" | "completed" | "cancelled";
|
|
228
228
|
resolvedPayload?: Record<string, unknown> | null | undefined;
|
|
229
229
|
} | undefined>;
|
|
230
230
|
/**
|
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
|
-
trace: "trace";
|
|
19
17
|
debug: "debug";
|
|
18
|
+
error: "error";
|
|
20
19
|
info: "info";
|
|
21
20
|
warn: "warn";
|
|
21
|
+
trace: "trace";
|
|
22
22
|
}>>;
|
|
23
23
|
INKEEP_AGENTS_MANAGE_DATABASE_URL: z.ZodString;
|
|
24
24
|
INKEEP_AGENTS_RUN_DATABASE_URL: z.ZodString;
|
|
@@ -72,7 +72,7 @@ declare const envSchema: z.ZodObject<{
|
|
|
72
72
|
declare const env: {
|
|
73
73
|
NODE_ENV: "development" | "production" | "test";
|
|
74
74
|
ENVIRONMENT: "development" | "production" | "test" | "pentest";
|
|
75
|
-
LOG_LEVEL: "
|
|
75
|
+
LOG_LEVEL: "debug" | "error" | "info" | "warn" | "trace";
|
|
76
76
|
INKEEP_AGENTS_MANAGE_DATABASE_URL: string;
|
|
77
77
|
INKEEP_AGENTS_RUN_DATABASE_URL: string;
|
|
78
78
|
INKEEP_AGENTS_API_URL: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { SSOProviderConfig, UserAuthConfig, createAgentsApp } from "./factory.js
|
|
|
7
7
|
import "./sentry.js";
|
|
8
8
|
import { Hono } from "hono";
|
|
9
9
|
import * as zod344 from "zod";
|
|
10
|
-
import * as
|
|
10
|
+
import * as hono_types4 from "hono/types";
|
|
11
11
|
import * as better_auth99 from "better-auth";
|
|
12
12
|
import * as better_auth_plugins35 from "better-auth/plugins";
|
|
13
13
|
import * as _better_auth_sso11 from "@better-auth/sso";
|
|
@@ -1627,6 +1627,6 @@ declare const auth: better_auth99.Auth<{
|
|
|
1627
1627
|
}>;
|
|
1628
1628
|
}];
|
|
1629
1629
|
}>;
|
|
1630
|
-
declare const app: Hono<
|
|
1630
|
+
declare const app: Hono<hono_types4.BlankEnv, hono_types4.BlankSchema, "/">;
|
|
1631
1631
|
//#endregion
|
|
1632
1632
|
export { type AppConfig, type AppVariables, Hono, type NativeSandboxConfig, type SSOProviderConfig, type SandboxConfig, type UserAuthConfig, type VercelSandboxConfig, auth, createAgentsApp, createAgentsHono, createAuth0Provider, createOIDCProvider, app as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseExecutionContext } from "@inkeep/agents-core";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono0 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/middleware/evalsAuth.d.ts
|
|
5
5
|
|
|
@@ -7,7 +7,7 @@ import * as hono18 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: () => 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
|
|
2
|
+
import * as hono3 from "hono";
|
|
3
3
|
import { createAuth } from "@inkeep/agents-core/auth";
|
|
4
4
|
|
|
5
5
|
//#region src/middleware/manageAuth.d.ts
|
|
@@ -15,7 +15,7 @@ import { createAuth } from "@inkeep/agents-core/auth";
|
|
|
15
15
|
* NOTE: Database API keys are intentionally NOT accepted on manage endpoints.
|
|
16
16
|
* API keys are restricted to the run domain only (chat, agent execution).
|
|
17
17
|
*/
|
|
18
|
-
declare const manageBearerAuth: () =>
|
|
18
|
+
declare const manageBearerAuth: () => hono3.MiddlewareHandler<{
|
|
19
19
|
Variables: {
|
|
20
20
|
executionContext: BaseExecutionContext;
|
|
21
21
|
userId?: string;
|
|
@@ -29,6 +29,6 @@ declare const manageBearerAuth: () => hono16.MiddlewareHandler<{
|
|
|
29
29
|
* Uses Bearer token → manage bearer auth (bypass secret, session, Slack JWT, internal service),
|
|
30
30
|
* otherwise falls back to session auth.
|
|
31
31
|
*/
|
|
32
|
-
declare const manageBearerOrSessionAuth: () =>
|
|
32
|
+
declare const manageBearerOrSessionAuth: () => hono3.MiddlewareHandler<any, string, {}, Response>;
|
|
33
33
|
//#endregion
|
|
34
34
|
export { manageBearerAuth, manageBearerOrSessionAuth };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ManageAppVariables } from "../types/app.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono5 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) => hono5.MiddlewareHandler<Env$1, string, {}, Response>;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { requirePermission };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as hono9 from "hono";
|
|
2
2
|
|
|
3
3
|
//#region src/middleware/sessionAuth.d.ts
|
|
4
4
|
|
|
@@ -7,11 +7,11 @@ import * as hono11 from "hono";
|
|
|
7
7
|
* Requires that a user has already been authenticated via Better Auth session.
|
|
8
8
|
* Used primarily for manage routes that require an active user session.
|
|
9
9
|
*/
|
|
10
|
-
declare const sessionAuth: () =>
|
|
10
|
+
declare const sessionAuth: () => hono9.MiddlewareHandler<any, string, {}, Response>;
|
|
11
11
|
/**
|
|
12
12
|
* Global session middleware - sets user and session in context for all routes
|
|
13
13
|
* Used for all routes that require an active user session.
|
|
14
14
|
*/
|
|
15
|
-
declare const sessionContext: () =>
|
|
15
|
+
declare const sessionContext: () => hono9.MiddlewareHandler<any, string, {}, Response>;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { sessionAuth, sessionContext };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as hono11 from "hono";
|
|
2
2
|
|
|
3
3
|
//#region src/middleware/tenantAccess.d.ts
|
|
4
4
|
|
|
@@ -12,7 +12,7 @@ import * as hono5 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: () => hono11.MiddlewareHandler<{
|
|
16
16
|
Variables: {
|
|
17
17
|
userId: string;
|
|
18
18
|
tenantId: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as hono12 from "hono";
|
|
2
2
|
|
|
3
3
|
//#region src/middleware/tracing.d.ts
|
|
4
|
-
declare const otelBaggageMiddleware: () =>
|
|
5
|
-
declare const executionBaggageMiddleware: () =>
|
|
4
|
+
declare const otelBaggageMiddleware: () => hono12.MiddlewareHandler<any, string, {}, Response>;
|
|
5
|
+
declare const executionBaggageMiddleware: () => hono12.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-20260305190124",
|
|
4
4
|
"description": "Unified Inkeep Agents API - combines management, runtime, and evaluation capabilities",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -70,10 +70,10 @@
|
|
|
70
70
|
"openid-client": "^6.8.1",
|
|
71
71
|
"pg": "^8.16.3",
|
|
72
72
|
"workflow": "^4.1.0-beta.54",
|
|
73
|
-
"@inkeep/agents-core": "^0.0.0-dev-
|
|
74
|
-
"@inkeep/agents-mcp": "^0.0.0-dev-
|
|
75
|
-
"@inkeep/agents-work-apps": "^0.0.0-dev-
|
|
76
|
-
"@inkeep/agents-email": "^0.0.0-dev-
|
|
73
|
+
"@inkeep/agents-core": "^0.0.0-dev-20260305190124",
|
|
74
|
+
"@inkeep/agents-mcp": "^0.0.0-dev-20260305190124",
|
|
75
|
+
"@inkeep/agents-work-apps": "^0.0.0-dev-20260305190124",
|
|
76
|
+
"@inkeep/agents-email": "^0.0.0-dev-20260305190124"
|
|
77
77
|
},
|
|
78
78
|
"peerDependencies": {
|
|
79
79
|
"@hono/zod-openapi": "^1.1.5",
|