@inkeep/agents-api 0.80.5 → 0.80.7
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/flow.cjs +60091 -51241
- package/dist/.well-known/workflow/v1/flow.cjs.debug.json +3 -1
- package/dist/.well-known/workflow/v1/manifest.json +1402 -267
- package/dist/.well-known/workflow/v1/step.cjs +2 -2
- package/dist/.well-known/workflow/v1/step.cjs.debug.json +4 -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/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/feedback.d.ts +2 -2
- package/dist/domains/manage/routes/index.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/generation/ai-sdk-callbacks.js +5 -2
- package/dist/domains/run/agents/relationTools.d.ts +2 -2
- package/dist/domains/run/types/chat.d.ts +3 -3
- package/dist/domains/run/workflow/steps/scheduledTriggerSteps.d.ts +6 -6
- 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 +10 -10
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
[diffend] Oversized file quarantined before diffing.
|
|
2
2
|
name: package/dist/.well-known/workflow/v1/step.cjs
|
|
3
|
-
size:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 108836994 bytes
|
|
4
|
+
sha256: 5a72611658acf5c5a1aa9716cf5146d210494996d89817e27605beed8491041a
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"/home/runner/work/agents/agents/agents-api/src/domains/run/workflow/steps/scheduledTriggerSteps.ts",
|
|
8
8
|
"/home/runner/work/agents/agents/agents-api/src/domains/run/workflow/steps/schedulerSteps.ts",
|
|
9
9
|
"/home/runner/work/agents/agents/agents-api/src/domains/run/workflow/steps/webhookDeliverySteps.ts",
|
|
10
|
-
"/home/runner/work/agents/agents/node_modules/.pnpm/workflow@4.
|
|
10
|
+
"/home/runner/work/agents/agents/node_modules/.pnpm/workflow@4.6.0_@nestjs+common@11.1.13_reflect-metadata@0.2.2_rxjs@7.8.2_supports-color@_d15b02856e611d27d37d0fb70cbc8b4f/node_modules/workflow/dist/stdlib.js"
|
|
11
11
|
],
|
|
12
12
|
"workflowFiles": [
|
|
13
13
|
"/home/runner/work/agents/agents/agents-api/src/domains/evals/workflow/functions/evaluateConversation.ts",
|
|
@@ -18,5 +18,7 @@
|
|
|
18
18
|
"/home/runner/work/agents/agents/agents-api/src/domains/run/workflow/functions/schedulerWorkflow.ts",
|
|
19
19
|
"/home/runner/work/agents/agents/agents-api/src/domains/run/workflow/functions/webhookDelivery.ts"
|
|
20
20
|
],
|
|
21
|
-
"serdeOnlyFiles": [
|
|
21
|
+
"serdeOnlyFiles": [
|
|
22
|
+
"/home/runner/work/agents/agents/node_modules/.pnpm/@workflow+builders@4.1.1_@opentelemetry+api@1.9.1_supports-color@8.1.1/node_modules/@workflow/builders/dist/serde-checker.js"
|
|
23
|
+
]
|
|
22
24
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _inkeep_agents_core1 from "@inkeep/agents-core";
|
|
2
2
|
|
|
3
3
|
//#region src/data/db/manageDbClient.d.ts
|
|
4
|
-
declare const manageDbClient:
|
|
4
|
+
declare const manageDbClient: _inkeep_agents_core1.AgentsManageDatabaseClient;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { manageDbClient as default };
|
|
@@ -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/runDbClient.d.ts
|
|
4
|
-
declare const runDbClient:
|
|
4
|
+
declare const runDbClient: _inkeep_agents_core2.AgentsRunDatabaseClient;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { runDbClient as default };
|
|
@@ -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/agent.d.ts
|
|
4
|
-
declare const agentHandlers:
|
|
4
|
+
declare const agentHandlers: _inkeep_agents_core3.EntityEffectHandlers<"agent">;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { agentHandlers };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _inkeep_agents_core6 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_core6.EntityEffectHandlers<"context_configs">;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { contextConfigsHandlers };
|
|
@@ -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 hono16 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/evals/routes/index.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 { Hono } from "hono";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono_types5 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_types5.BlankEnv, hono_types5.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 hono12 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/manage/routes/availableAgents.d.ts
|
|
5
|
-
declare const app: OpenAPIHono<
|
|
5
|
+
declare const app: OpenAPIHono<hono12.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/conversations.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 hono11 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/manage/routes/feedback.d.ts
|
|
5
|
-
declare const app: OpenAPIHono<
|
|
5
|
+
declare const app: OpenAPIHono<hono11.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 hono14 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/manage/routes/index.d.ts
|
|
5
|
-
declare const app: OpenAPIHono<
|
|
5
|
+
declare const app: OpenAPIHono<hono14.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_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,6 +1,6 @@
|
|
|
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/signoz.d.ts
|
|
6
6
|
declare class FetchResponseError extends Error {
|
|
@@ -22,6 +22,6 @@ declare function queryWithRetry(signoz: SignozConfig, payload: any): Promise<{
|
|
|
22
22
|
}>;
|
|
23
23
|
declare const app: Hono<{
|
|
24
24
|
Variables: ManageAppVariables;
|
|
25
|
-
},
|
|
25
|
+
}, hono_types10.BlankSchema, "/">;
|
|
26
26
|
//#endregion
|
|
27
27
|
export { FetchResponseError, app as default, effectiveRetryCap, getMissingKeys, queryReferencesKeys, queryWithRetry, stripSelectFields };
|
|
@@ -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/users.d.ts
|
|
6
6
|
declare const usersRoutes: Hono<{
|
|
7
7
|
Variables: ManageAppVariables;
|
|
8
|
-
},
|
|
8
|
+
}, hono_types11.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_types12 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_types12.BlankEnv, hono_types12.BlankSchema, "/">;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { app as default };
|
|
@@ -72,9 +72,12 @@ async function handlePrepareStepCompression(stepMessages, steps, compressor, ori
|
|
|
72
72
|
const hasReliableUsage = actualInputTokens != null && actualInputTokens > 0;
|
|
73
73
|
let usageSource;
|
|
74
74
|
if (hasReliableUsage) {
|
|
75
|
-
|
|
75
|
+
const previousStepTokens = actualInputTokens + (actualOutputTokens ?? 0);
|
|
76
|
+
const allMessages = [...originalMessages, ...generatedMessages];
|
|
77
|
+
const estimatedCurrentTokens = compressor.calculateContextSize(allMessages);
|
|
78
|
+
totalTokens = Math.max(previousStepTokens, estimatedCurrentTokens);
|
|
76
79
|
compressionNeeded = compressor.isCompressionNeededFromActualUsage(totalTokens);
|
|
77
|
-
usageSource = "actual_sdk_usage";
|
|
80
|
+
usageSource = estimatedCurrentTokens > previousStepTokens ? "estimated" : "actual_sdk_usage";
|
|
78
81
|
} else {
|
|
79
82
|
logger.warn({
|
|
80
83
|
stepCount: steps.length,
|
|
@@ -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_core0 from "@inkeep/agents-core";
|
|
6
6
|
import { CredentialStoreRegistry, FullExecutionContext } from "@inkeep/agents-core";
|
|
7
7
|
import * as ai0 from "ai";
|
|
8
8
|
|
|
@@ -50,7 +50,7 @@ declare function createDelegateToAgentTool({
|
|
|
50
50
|
message: string;
|
|
51
51
|
}, {
|
|
52
52
|
toolCallId: any;
|
|
53
|
-
result:
|
|
53
|
+
result: _inkeep_agents_core0.Message | _inkeep_agents_core0.Task;
|
|
54
54
|
}>;
|
|
55
55
|
/**
|
|
56
56
|
* Parameters for building a transfer relation config
|
|
@@ -104,10 +104,10 @@ declare const VercelMessageSchema: z.ZodObject<{
|
|
|
104
104
|
id: z.ZodOptional<z.ZodString>;
|
|
105
105
|
role: z.ZodEnum<{
|
|
106
106
|
function: "function";
|
|
107
|
+
tool: "tool";
|
|
107
108
|
user: "user";
|
|
108
109
|
system: "system";
|
|
109
110
|
assistant: "assistant";
|
|
110
|
-
tool: "tool";
|
|
111
111
|
}>;
|
|
112
112
|
content: z.ZodAny;
|
|
113
113
|
parts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -179,10 +179,10 @@ type ContentItem = z.infer<typeof ContentItemSchema>;
|
|
|
179
179
|
declare const MessageSchema: z.ZodObject<{
|
|
180
180
|
role: z.ZodEnum<{
|
|
181
181
|
function: "function";
|
|
182
|
+
tool: "tool";
|
|
182
183
|
user: "user";
|
|
183
184
|
system: "system";
|
|
184
185
|
assistant: "assistant";
|
|
185
|
-
tool: "tool";
|
|
186
186
|
}>;
|
|
187
187
|
content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
188
188
|
type: z.ZodLiteral<"text">;
|
|
@@ -212,10 +212,10 @@ declare const ChatCompletionRequestSchema: z.ZodObject<{
|
|
|
212
212
|
messages: z.ZodArray<z.ZodObject<{
|
|
213
213
|
role: z.ZodEnum<{
|
|
214
214
|
function: "function";
|
|
215
|
+
tool: "tool";
|
|
215
216
|
user: "user";
|
|
216
217
|
system: "system";
|
|
217
218
|
assistant: "assistant";
|
|
218
|
-
tool: "tool";
|
|
219
219
|
}>;
|
|
220
220
|
content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
221
221
|
type: z.ZodLiteral<"text">;
|
|
@@ -75,7 +75,7 @@ declare function createInvocationIdempotentStep(params: {
|
|
|
75
75
|
projectId: string;
|
|
76
76
|
tenantId: string;
|
|
77
77
|
id: string;
|
|
78
|
-
status: "pending" | "
|
|
78
|
+
status: "pending" | "failed" | "running" | "completed" | "cancelled";
|
|
79
79
|
ref?: {
|
|
80
80
|
type: "commit" | "tag" | "branch";
|
|
81
81
|
name: string;
|
|
@@ -121,7 +121,7 @@ declare function markRunningStep(params: {
|
|
|
121
121
|
projectId: string;
|
|
122
122
|
tenantId: string;
|
|
123
123
|
id: string;
|
|
124
|
-
status: "pending" | "
|
|
124
|
+
status: "pending" | "failed" | "running" | "completed" | "cancelled";
|
|
125
125
|
ref?: {
|
|
126
126
|
type: "commit" | "tag" | "branch";
|
|
127
127
|
name: string;
|
|
@@ -154,7 +154,7 @@ declare function addConversationIdStep(params: {
|
|
|
154
154
|
projectId: string;
|
|
155
155
|
tenantId: string;
|
|
156
156
|
id: string;
|
|
157
|
-
status: "pending" | "
|
|
157
|
+
status: "pending" | "failed" | "running" | "completed" | "cancelled";
|
|
158
158
|
ref?: {
|
|
159
159
|
type: "commit" | "tag" | "branch";
|
|
160
160
|
name: string;
|
|
@@ -185,7 +185,7 @@ declare function markCompletedStep(params: {
|
|
|
185
185
|
projectId: string;
|
|
186
186
|
tenantId: string;
|
|
187
187
|
id: string;
|
|
188
|
-
status: "pending" | "
|
|
188
|
+
status: "pending" | "failed" | "running" | "completed" | "cancelled";
|
|
189
189
|
ref?: {
|
|
190
190
|
type: "commit" | "tag" | "branch";
|
|
191
191
|
name: string;
|
|
@@ -216,7 +216,7 @@ declare function markFailedStep(params: {
|
|
|
216
216
|
projectId: string;
|
|
217
217
|
tenantId: string;
|
|
218
218
|
id: string;
|
|
219
|
-
status: "pending" | "
|
|
219
|
+
status: "pending" | "failed" | "running" | "completed" | "cancelled";
|
|
220
220
|
ref?: {
|
|
221
221
|
type: "commit" | "tag" | "branch";
|
|
222
222
|
name: string;
|
|
@@ -266,7 +266,7 @@ declare function resetInvocationToPendingStep(params: {
|
|
|
266
266
|
projectId: string;
|
|
267
267
|
tenantId: string;
|
|
268
268
|
id: string;
|
|
269
|
-
status: "pending" | "
|
|
269
|
+
status: "pending" | "failed" | "running" | "completed" | "cancelled";
|
|
270
270
|
ref?: {
|
|
271
271
|
type: "commit" | "tag" | "branch";
|
|
272
272
|
name: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseExecutionContext } from "@inkeep/agents-core";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono19 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/middleware/evalsAuth.d.ts
|
|
5
5
|
|
|
@@ -7,7 +7,7 @@ import * as hono2 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: () => hono19.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 hono0 from "hono";
|
|
3
3
|
import { createAuth } from "@inkeep/agents-core/auth";
|
|
4
4
|
|
|
5
5
|
//#region src/middleware/manageAuth.d.ts
|
|
@@ -18,7 +18,7 @@ import { createAuth } from "@inkeep/agents-core/auth";
|
|
|
18
18
|
* the narrow legacy exceptions enumerated in `LEGACY_API_KEY_ALLOWED_ROUTES`. API keys
|
|
19
19
|
* are otherwise restricted to the run domain only.
|
|
20
20
|
*/
|
|
21
|
-
declare const manageBearerAuth: () =>
|
|
21
|
+
declare const manageBearerAuth: () => hono0.MiddlewareHandler<{
|
|
22
22
|
Variables: {
|
|
23
23
|
executionContext: BaseExecutionContext;
|
|
24
24
|
userId?: string;
|
|
@@ -33,6 +33,6 @@ declare const manageBearerAuth: () => hono3.MiddlewareHandler<{
|
|
|
33
33
|
* Uses Bearer token → manage bearer auth (bypass secret, session, Slack JWT, internal service),
|
|
34
34
|
* otherwise falls back to session auth.
|
|
35
35
|
*/
|
|
36
|
-
declare const manageBearerOrSessionAuth: () =>
|
|
36
|
+
declare const manageBearerOrSessionAuth: () => hono0.MiddlewareHandler<any, string, {}, Response>;
|
|
37
37
|
//#endregion
|
|
38
38
|
export { manageBearerAuth, manageBearerOrSessionAuth };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { BaseExecutionContext, ResolvedRef } from "@inkeep/agents-core";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono17 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: hono17.MiddlewareHandler<{
|
|
9
9
|
Variables: {
|
|
10
10
|
executionContext: BaseExecutionContext;
|
|
11
11
|
resolvedRef: ResolvedRef;
|
|
@@ -15,7 +15,7 @@ declare const projectConfigMiddleware: hono5.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) => hono17.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 hono2 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/middleware/requireEntitlement.d.ts
|
|
5
5
|
type EntitlementConfig = {
|
|
@@ -11,6 +11,6 @@ declare const requireEntitlement: <Env$1 extends {
|
|
|
11
11
|
Variables: ManageAppVariables;
|
|
12
12
|
} = {
|
|
13
13
|
Variables: ManageAppVariables;
|
|
14
|
-
}>(config: EntitlementConfig) =>
|
|
14
|
+
}>(config: EntitlementConfig) => hono2.MiddlewareHandler<Env$1, string, {}, Response>;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { requireEntitlement };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ManageAppVariables } from "../types/app.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono15 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) => hono15.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 hono6 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/middleware/runAuth.d.ts
|
|
5
|
-
declare const runApiKeyAuth: () =>
|
|
5
|
+
declare const runApiKeyAuth: () => hono6.MiddlewareHandler<{
|
|
6
6
|
Variables: {
|
|
7
7
|
executionContext: BaseExecutionContext;
|
|
8
8
|
};
|
|
@@ -11,7 +11,7 @@ declare const runApiKeyAuth: () => hono8.MiddlewareHandler<{
|
|
|
11
11
|
* Creates a middleware that applies API key authentication except for specified route patterns
|
|
12
12
|
* @param skipRouteCheck - Function that returns true if the route should skip authentication
|
|
13
13
|
*/
|
|
14
|
-
declare const runApiKeyAuthExcept: (skipRouteCheck: (path: string) => boolean) =>
|
|
14
|
+
declare const runApiKeyAuthExcept: (skipRouteCheck: (path: string) => boolean) => hono6.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: () => hono6.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 hono4 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/middleware/sessionAuth.d.ts
|
|
5
5
|
|
|
@@ -8,12 +8,12 @@ import * as hono11 from "hono";
|
|
|
8
8
|
* Requires that a user has already been authenticated via Better Auth session.
|
|
9
9
|
* Used primarily for manage routes that require an active user session.
|
|
10
10
|
*/
|
|
11
|
-
declare const sessionAuth: () =>
|
|
11
|
+
declare const sessionAuth: () => hono4.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: () => hono4.MiddlewareHandler<{
|
|
17
17
|
Variables: AppVariables;
|
|
18
18
|
}, string, {}, Response>;
|
|
19
19
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as hono3 from "hono";
|
|
2
2
|
|
|
3
3
|
//#region src/middleware/tenantAccess.d.ts
|
|
4
4
|
|
|
@@ -12,7 +12,7 @@ import * as hono13 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: () => hono3.MiddlewareHandler<{
|
|
16
16
|
Variables: {
|
|
17
17
|
userId: string;
|
|
18
18
|
tenantId: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as hono9 from "hono";
|
|
2
2
|
|
|
3
3
|
//#region src/middleware/tracing.d.ts
|
|
4
|
-
declare const otelBaggageMiddleware: () =>
|
|
5
|
-
declare const executionBaggageMiddleware: () =>
|
|
4
|
+
declare const otelBaggageMiddleware: () => hono9.MiddlewareHandler<any, string, {}, Response>;
|
|
5
|
+
declare const executionBaggageMiddleware: () => hono9.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.80.
|
|
3
|
+
"version": "0.80.7",
|
|
4
4
|
"description": "Unified Inkeep Agents API - combines management, runtime, and evaluation capabilities",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -39,6 +39,10 @@
|
|
|
39
39
|
"@hono/mcp": "^0.1.5",
|
|
40
40
|
"@hono/swagger-ui": "^0.5.1",
|
|
41
41
|
"@hono/zod-openapi": "^1.1.5",
|
|
42
|
+
"@inkeep/agents-core": "^0.80.7",
|
|
43
|
+
"@inkeep/agents-email": "^0.80.7",
|
|
44
|
+
"@inkeep/agents-mcp": "^0.80.7",
|
|
45
|
+
"@inkeep/agents-work-apps": "^0.80.7",
|
|
42
46
|
"@modelcontextprotocol/sdk": "^1.26.0",
|
|
43
47
|
"@opentelemetry/api": "^1.9.0",
|
|
44
48
|
"@opentelemetry/auto-instrumentations-node": "^0.75.0",
|
|
@@ -55,10 +59,10 @@
|
|
|
55
59
|
"@vercel/functions": "^3.5.1",
|
|
56
60
|
"@vercel/queue": "^0.1.6",
|
|
57
61
|
"@vercel/sandbox": "^0.0.24",
|
|
58
|
-
"@workflow/builders": "^4.
|
|
59
|
-
"@workflow/world-local": "^4.1
|
|
60
|
-
"@workflow/world-postgres": "^4.
|
|
61
|
-
"@workflow/world-vercel": "^4.
|
|
62
|
+
"@workflow/builders": "^4.1.1",
|
|
63
|
+
"@workflow/world-local": "^4.2.1",
|
|
64
|
+
"@workflow/world-postgres": "^4.3.0",
|
|
65
|
+
"@workflow/world-vercel": "^4.5.0",
|
|
62
66
|
"ai": "6.0.191",
|
|
63
67
|
"ajv": "^8.18.0",
|
|
64
68
|
"cron-parser": "^5.5.0",
|
|
@@ -70,11 +74,7 @@
|
|
|
70
74
|
"jose": "^6.1.0",
|
|
71
75
|
"llm-info": "^1.0.69",
|
|
72
76
|
"pg": "^8.16.3",
|
|
73
|
-
"workflow": "4.
|
|
74
|
-
"@inkeep/agents-core": "^0.80.5",
|
|
75
|
-
"@inkeep/agents-mcp": "^0.80.5",
|
|
76
|
-
"@inkeep/agents-work-apps": "^0.80.5",
|
|
77
|
-
"@inkeep/agents-email": "^0.80.5"
|
|
77
|
+
"workflow": "4.6.0"
|
|
78
78
|
},
|
|
79
79
|
"peerDependencies": {
|
|
80
80
|
"@hono/zod-openapi": "^1.1.5",
|