@inkeep/agents-api 0.0.0-dev-20260210192856 → 0.0.0-dev-20260211021500
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.debug.json +14 -14
- 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/domains/evals/routes/datasetTriggers.d.ts +2 -2
- package/dist/domains/evals/routes/index.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/mcp.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.js +3 -1
- package/dist/domains/run/agents/relationTools.d.ts +2 -2
- package/dist/domains/run/utils/SchemaProcessor.d.ts +7 -0
- package/dist/domains/run/utils/SchemaProcessor.js +19 -0
- package/dist/domains/run/utils/artifact-component-schema.js +4 -2
- package/dist/env.d.ts +2 -2
- package/dist/factory.d.ts +263 -263
- package/dist/index.d.ts +262 -262
- package/dist/middleware/evalsAuth.d.ts +2 -2
- package/dist/middleware/manageAuth.d.ts +2 -2
- package/dist/middleware/projectAccess.d.ts +2 -2
- 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
|
@@ -11,20 +11,6 @@
|
|
|
11
11
|
"stepId": "__builtin_response_text"
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
|
-
"src/domains/evals/workflow/functions/runDatasetItem.ts": {
|
|
15
|
-
"callChatApiStep": {
|
|
16
|
-
"stepId": "step//src/domains/evals/workflow/functions/runDatasetItem.ts//callChatApiStep"
|
|
17
|
-
},
|
|
18
|
-
"createRelationStep": {
|
|
19
|
-
"stepId": "step//src/domains/evals/workflow/functions/runDatasetItem.ts//createRelationStep"
|
|
20
|
-
},
|
|
21
|
-
"executeEvaluatorStep": {
|
|
22
|
-
"stepId": "step//src/domains/evals/workflow/functions/runDatasetItem.ts//executeEvaluatorStep"
|
|
23
|
-
},
|
|
24
|
-
"logStep": {
|
|
25
|
-
"stepId": "step//src/domains/evals/workflow/functions/runDatasetItem.ts//logStep"
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
14
|
"src/domains/evals/workflow/functions/evaluateConversation.ts": {
|
|
29
15
|
"executeEvaluatorStep": {
|
|
30
16
|
"stepId": "step//src/domains/evals/workflow/functions/evaluateConversation.ts//executeEvaluatorStep"
|
|
@@ -38,6 +24,20 @@
|
|
|
38
24
|
"logStep": {
|
|
39
25
|
"stepId": "step//src/domains/evals/workflow/functions/evaluateConversation.ts//logStep"
|
|
40
26
|
}
|
|
27
|
+
},
|
|
28
|
+
"src/domains/evals/workflow/functions/runDatasetItem.ts": {
|
|
29
|
+
"callChatApiStep": {
|
|
30
|
+
"stepId": "step//src/domains/evals/workflow/functions/runDatasetItem.ts//callChatApiStep"
|
|
31
|
+
},
|
|
32
|
+
"createRelationStep": {
|
|
33
|
+
"stepId": "step//src/domains/evals/workflow/functions/runDatasetItem.ts//createRelationStep"
|
|
34
|
+
},
|
|
35
|
+
"executeEvaluatorStep": {
|
|
36
|
+
"stepId": "step//src/domains/evals/workflow/functions/runDatasetItem.ts//executeEvaluatorStep"
|
|
37
|
+
},
|
|
38
|
+
"logStep": {
|
|
39
|
+
"stepId": "step//src/domains/evals/workflow/functions/runDatasetItem.ts//logStep"
|
|
40
|
+
}
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
43
|
"workflows": {
|
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_types8 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_types8.BlankEnv, hono_types8.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,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/evals/routes/datasetTriggers.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 hono14 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/evals/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,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/manage/routes/availableAgents.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 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 hono17 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/manage/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,10 +1,10 @@
|
|
|
1
1
|
import { ManageAppVariables } from "../../../types/app.js";
|
|
2
2
|
import { Hono } from "hono";
|
|
3
|
-
import * as
|
|
3
|
+
import * as hono_types12 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_types12.BlankSchema, "/">;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { invitationsRoutes as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Hono } from "hono";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono_types10 from "hono/types";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/manage/routes/mcp.d.ts
|
|
5
|
-
declare const app: Hono<
|
|
5
|
+
declare const app: Hono<hono_types10.BlankEnv, hono_types10.BlankSchema, "/">;
|
|
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/passwordResetLinks.d.ts
|
|
6
6
|
declare const passwordResetLinksRoutes: Hono<{
|
|
7
7
|
Variables: ManageAppVariables;
|
|
8
|
-
},
|
|
8
|
+
}, hono_types1.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_types2 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_types2.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_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 };
|
|
@@ -18,6 +18,7 @@ import { MidGenerationCompressor } from "../services/MidGenerationCompressor.js"
|
|
|
18
18
|
import { pendingToolApprovalManager } from "../services/PendingToolApprovalManager.js";
|
|
19
19
|
import { ResponseFormatter } from "../services/ResponseFormatter.js";
|
|
20
20
|
import { toolApprovalUiBus } from "../services/ToolApprovalUiBus.js";
|
|
21
|
+
import { SchemaProcessor } from "../utils/SchemaProcessor.js";
|
|
21
22
|
import { ArtifactCreateSchema, ArtifactReferenceSchema } from "../utils/artifact-component-schema.js";
|
|
22
23
|
import { withJsonPostProcessing } from "../utils/json-postprocessor.js";
|
|
23
24
|
import { calculateBreakdownTotal, estimateTokens } from "../utils/token-estimator.js";
|
|
@@ -2034,7 +2035,8 @@ ${typeof cleanResult === "string" ? cleanResult : JSON.stringify(cleanResult, nu
|
|
|
2034
2035
|
buildDataComponentsSchema() {
|
|
2035
2036
|
const componentSchemas = [];
|
|
2036
2037
|
this.config.dataComponents?.forEach((dc) => {
|
|
2037
|
-
const
|
|
2038
|
+
const normalizedProps = dc.props ? SchemaProcessor.makeAllPropertiesRequired(dc.props) : null;
|
|
2039
|
+
const propsSchema = normalizedProps ? z.fromJSONSchema(normalizedProps) : z.string();
|
|
2038
2040
|
componentSchemas.push(z.object({
|
|
2039
2041
|
id: z.string(),
|
|
2040
2042
|
name: z.literal(dc.name),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AgentConfig, DelegateRelation } from "./Agent.js";
|
|
2
2
|
import { InternalRelation } from "../utils/project.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _inkeep_agents_core2 from "@inkeep/agents-core";
|
|
4
4
|
import { CredentialStoreRegistry, FullExecutionContext } from "@inkeep/agents-core";
|
|
5
5
|
import * as ai0 from "ai";
|
|
6
6
|
|
|
@@ -44,7 +44,7 @@ declare function createDelegateToAgentTool({
|
|
|
44
44
|
message: string;
|
|
45
45
|
}, {
|
|
46
46
|
toolCallId: any;
|
|
47
|
-
result:
|
|
47
|
+
result: _inkeep_agents_core2.Message | _inkeep_agents_core2.Task;
|
|
48
48
|
}>;
|
|
49
49
|
/**
|
|
50
50
|
* Parameters for building a transfer relation config
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { JSONSchema } from "zod/v4/core";
|
|
2
|
+
|
|
1
3
|
//#region src/domains/run/utils/SchemaProcessor.d.ts
|
|
2
4
|
interface SchemaValidationResult {
|
|
3
5
|
isValid: boolean;
|
|
@@ -42,6 +44,11 @@ declare class SchemaProcessor {
|
|
|
42
44
|
* Extract property value with proper type conversion and validation
|
|
43
45
|
*/
|
|
44
46
|
static extractPropertyValue(data: any, _propName: string, selector: string, expectedType?: string): any;
|
|
47
|
+
/**
|
|
48
|
+
* Makes all properties required recursively throughout the schema.
|
|
49
|
+
* This ensures compatibility across all LLM providers (OpenAI/Azure require it, Anthropic accepts it).
|
|
50
|
+
*/
|
|
51
|
+
static makeAllPropertiesRequired(schema: JSONSchema.BaseSchema | Record<string, unknown> | null | undefined): JSONSchema.BaseSchema | Record<string, unknown> | null | undefined;
|
|
45
52
|
/**
|
|
46
53
|
* Enhance schema with JMESPath guidance for artifact component schemas
|
|
47
54
|
* Transforms all schema types to string selectors with helpful descriptions
|
|
@@ -126,6 +126,25 @@ var SchemaProcessor = class SchemaProcessor {
|
|
|
126
126
|
return value;
|
|
127
127
|
}
|
|
128
128
|
/**
|
|
129
|
+
* Makes all properties required recursively throughout the schema.
|
|
130
|
+
* This ensures compatibility across all LLM providers (OpenAI/Azure require it, Anthropic accepts it).
|
|
131
|
+
*/
|
|
132
|
+
static makeAllPropertiesRequired(schema) {
|
|
133
|
+
if (!schema || typeof schema !== "object") return schema;
|
|
134
|
+
const normalized = { ...schema };
|
|
135
|
+
if (normalized.properties && typeof normalized.properties === "object") {
|
|
136
|
+
normalized.required = Object.keys(normalized.properties);
|
|
137
|
+
const normalizedProperties = {};
|
|
138
|
+
for (const [key, value] of Object.entries(normalized.properties)) normalizedProperties[key] = SchemaProcessor.makeAllPropertiesRequired(value);
|
|
139
|
+
normalized.properties = normalizedProperties;
|
|
140
|
+
}
|
|
141
|
+
if (normalized.items) normalized.items = SchemaProcessor.makeAllPropertiesRequired(normalized.items);
|
|
142
|
+
if (Array.isArray(normalized.anyOf)) normalized.anyOf = normalized.anyOf.map((s) => SchemaProcessor.makeAllPropertiesRequired(s));
|
|
143
|
+
if (Array.isArray(normalized.oneOf)) normalized.oneOf = normalized.oneOf.map((s) => SchemaProcessor.makeAllPropertiesRequired(s));
|
|
144
|
+
if (Array.isArray(normalized.allOf)) normalized.allOf = normalized.allOf.map((s) => SchemaProcessor.makeAllPropertiesRequired(s));
|
|
145
|
+
return normalized;
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
129
148
|
* Enhance schema with JMESPath guidance for artifact component schemas
|
|
130
149
|
* Transforms all schema types to string selectors with helpful descriptions
|
|
131
150
|
*/
|
|
@@ -88,10 +88,11 @@ var ArtifactCreateSchema = class {
|
|
|
88
88
|
"base_selector"
|
|
89
89
|
]
|
|
90
90
|
};
|
|
91
|
+
const normalizedPropsSchema = SchemaProcessor.makeAllPropertiesRequired(propsSchema);
|
|
91
92
|
return z.object({
|
|
92
93
|
id: z.string(),
|
|
93
94
|
name: z.literal(`ArtifactCreate_${component.name}`),
|
|
94
|
-
props: z.fromJSONSchema(
|
|
95
|
+
props: z.fromJSONSchema(normalizedPropsSchema)
|
|
95
96
|
});
|
|
96
97
|
});
|
|
97
98
|
}
|
|
@@ -135,13 +136,14 @@ var ArtifactCreateSchema = class {
|
|
|
135
136
|
"base_selector"
|
|
136
137
|
]
|
|
137
138
|
};
|
|
139
|
+
const normalizedPropsSchema = SchemaProcessor.makeAllPropertiesRequired(propsSchema);
|
|
138
140
|
return {
|
|
139
141
|
id: `artifact-create-${component.name.toLowerCase().replace(/\s+/g, "-")}`,
|
|
140
142
|
tenantId,
|
|
141
143
|
projectId,
|
|
142
144
|
name: `ArtifactCreate_${component.name}`,
|
|
143
145
|
description: `Create ${component.name} artifacts from tool results by extracting structured data using selectors.`,
|
|
144
|
-
props:
|
|
146
|
+
props: normalizedPropsSchema
|
|
145
147
|
};
|
|
146
148
|
});
|
|
147
149
|
}
|
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;
|
|
@@ -59,7 +59,7 @@ declare const envSchema: z.ZodObject<{
|
|
|
59
59
|
declare const env: {
|
|
60
60
|
NODE_ENV: "development" | "production" | "test";
|
|
61
61
|
ENVIRONMENT: "development" | "production" | "test" | "pentest";
|
|
62
|
-
LOG_LEVEL: "
|
|
62
|
+
LOG_LEVEL: "trace" | "debug" | "info" | "warn" | "error";
|
|
63
63
|
INKEEP_AGENTS_MANAGE_DATABASE_URL: string;
|
|
64
64
|
INKEEP_AGENTS_RUN_DATABASE_URL: string;
|
|
65
65
|
INKEEP_AGENTS_API_URL: string;
|