@inkeep/agents-run-api 0.41.1 → 0.41.2
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/a2a/handlers.js +0 -4
- package/dist/create-app.d.ts +2 -2
- package/dist/env.d.ts +2 -2
- package/dist/index.d.ts +3 -3
- package/package.json +2 -2
package/dist/a2a/handlers.js
CHANGED
|
@@ -52,11 +52,9 @@ async function handleMessageSend(c, agent, request) {
|
|
|
52
52
|
const { agentId } = getRequestExecutionContext(c);
|
|
53
53
|
const forwardedHeaders = {};
|
|
54
54
|
const xForwardedCookie = c.req.header("x-forwarded-cookie");
|
|
55
|
-
const authorization = c.req.header("authorization");
|
|
56
55
|
const cookie = c.req.header("cookie");
|
|
57
56
|
if (xForwardedCookie) forwardedHeaders["x-forwarded-cookie"] = xForwardedCookie;
|
|
58
57
|
else if (cookie) forwardedHeaders["x-forwarded-cookie"] = cookie;
|
|
59
|
-
if (authorization) forwardedHeaders.authorization = authorization;
|
|
60
58
|
const task = {
|
|
61
59
|
id: generateId(),
|
|
62
60
|
input: { parts: params.message.parts.map((part) => ({
|
|
@@ -307,11 +305,9 @@ async function handleMessageStream(c, agent, request) {
|
|
|
307
305
|
});
|
|
308
306
|
const forwardedHeaders = {};
|
|
309
307
|
const xForwardedCookie = c.req.header("x-forwarded-cookie");
|
|
310
|
-
const authorization = c.req.header("authorization");
|
|
311
308
|
const cookie = c.req.header("cookie");
|
|
312
309
|
if (xForwardedCookie) forwardedHeaders["x-forwarded-cookie"] = xForwardedCookie;
|
|
313
310
|
else if (cookie) forwardedHeaders["x-forwarded-cookie"] = cookie;
|
|
314
|
-
if (authorization) forwardedHeaders.authorization = authorization;
|
|
315
311
|
const task = {
|
|
316
312
|
id: generateId(),
|
|
317
313
|
input: { parts: params.message.parts.map((part) => ({
|
package/dist/create-app.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { SandboxConfig } from "./types/execution-context.js";
|
|
2
2
|
import { CredentialStoreRegistry, ServerConfig } from "@inkeep/agents-core";
|
|
3
3
|
import { Hono } from "hono";
|
|
4
|
-
import * as
|
|
4
|
+
import * as hono_types0 from "hono/types";
|
|
5
5
|
|
|
6
6
|
//#region src/create-app.d.ts
|
|
7
|
-
declare function createExecutionHono(serverConfig: ServerConfig, credentialStores: CredentialStoreRegistry, sandboxConfig?: SandboxConfig): Hono<
|
|
7
|
+
declare function createExecutionHono(serverConfig: ServerConfig, credentialStores: CredentialStoreRegistry, sandboxConfig?: SandboxConfig): Hono<hono_types0.BlankEnv, hono_types0.BlankSchema, "/">;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { createExecutionHono };
|
package/dist/env.d.ts
CHANGED
|
@@ -17,11 +17,11 @@ declare const envSchema: z.ZodObject<{
|
|
|
17
17
|
INKEEP_AGENTS_RUN_API_URL: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
18
18
|
AGENTS_MANAGE_UI_URL: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
19
19
|
LOG_LEVEL: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
20
|
-
error: "error";
|
|
21
20
|
trace: "trace";
|
|
22
21
|
debug: "debug";
|
|
23
22
|
info: "info";
|
|
24
23
|
warn: "warn";
|
|
24
|
+
error: "error";
|
|
25
25
|
}>>>;
|
|
26
26
|
NANGO_SERVER_URL: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
27
27
|
NANGO_SECRET_KEY: z.ZodOptional<z.ZodString>;
|
|
@@ -38,7 +38,7 @@ declare const env: {
|
|
|
38
38
|
ENVIRONMENT: "development" | "production" | "test" | "pentest";
|
|
39
39
|
INKEEP_AGENTS_RUN_API_URL: string;
|
|
40
40
|
AGENTS_MANAGE_UI_URL: string;
|
|
41
|
-
LOG_LEVEL: "
|
|
41
|
+
LOG_LEVEL: "trace" | "debug" | "info" | "warn" | "error";
|
|
42
42
|
NANGO_SERVER_URL: string;
|
|
43
43
|
ANTHROPIC_API_KEY: string;
|
|
44
44
|
OTEL_BSP_SCHEDULE_DELAY: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -3,14 +3,14 @@ import { createExecutionHono } from "./create-app.js";
|
|
|
3
3
|
import "./env.js";
|
|
4
4
|
import { CredentialStore, ServerConfig } from "@inkeep/agents-core";
|
|
5
5
|
import { Hono } from "hono";
|
|
6
|
-
import * as
|
|
6
|
+
import * as hono_types1 from "hono/types";
|
|
7
7
|
|
|
8
8
|
//#region src/index.d.ts
|
|
9
|
-
declare const app: Hono<
|
|
9
|
+
declare const app: Hono<hono_types1.BlankEnv, hono_types1.BlankSchema, "/">;
|
|
10
10
|
declare function createExecutionApp(config?: {
|
|
11
11
|
serverConfig?: ServerConfig;
|
|
12
12
|
credentialStores?: CredentialStore[];
|
|
13
13
|
sandboxConfig?: SandboxConfig;
|
|
14
|
-
}): Hono<
|
|
14
|
+
}): Hono<hono_types1.BlankEnv, hono_types1.BlankSchema, "/">;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { Hono, type NativeSandboxConfig, type SandboxConfig, type VercelSandboxConfig, createExecutionApp, createExecutionHono, app as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/agents-run-api",
|
|
3
|
-
"version": "0.41.
|
|
3
|
+
"version": "0.41.2",
|
|
4
4
|
"description": "Agents Run API for Inkeep Agent Framework - handles chat, agent execution, and streaming",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"hono": "^4.10.4",
|
|
42
42
|
"jmespath": "^0.16.0",
|
|
43
43
|
"llm-info": "^1.0.69",
|
|
44
|
-
"@inkeep/agents-core": "^0.41.
|
|
44
|
+
"@inkeep/agents-core": "^0.41.2"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@hono/zod-openapi": "^1.1.5",
|