@inkeep/agents-api 0.0.0-dev-20260203195644 → 0.0.0-dev-20260204002120
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 +44 -44
- package/dist/.well-known/workflow/v1/flow.cjs.debug.json +2 -2
- package/dist/.well-known/workflow/v1/step.cjs +130 -130
- package/dist/.well-known/workflow/v1/step.cjs.debug.json +2 -2
- package/dist/createApp.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/branches.js +9 -0
- package/dist/domains/manage/routes/conversations.d.ts +2 -2
- package/dist/domains/manage/routes/evals/datasetItems.js +13 -0
- package/dist/domains/manage/routes/evals/datasets.js +9 -0
- package/dist/domains/manage/routes/evals/evaluationJobConfigEvaluatorRelations.js +5 -0
- package/dist/domains/manage/routes/evals/evaluationJobConfigs.js +9 -0
- package/dist/domains/manage/routes/evals/evaluationResults.d.ts +4 -2
- package/dist/domains/manage/routes/evals/evaluationResults.js +9 -0
- package/dist/domains/manage/routes/evals/evaluationRunConfigs.js +9 -0
- package/dist/domains/manage/routes/evals/evaluationSuiteConfigEvaluatorRelations.js +5 -0
- package/dist/domains/manage/routes/evals/evaluationSuiteConfigs.js +9 -0
- package/dist/domains/manage/routes/evals/evaluators.js +9 -0
- 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/signoz.d.ts +2 -2
- package/dist/domains/manage/routes/userOrganizations.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/utils/token-estimator.d.ts +2 -2
- package/dist/factory.d.ts +262 -262
- package/dist/index.d.ts +259 -259
- 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
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
import { getLogger as getLogger$1 } from "../../../../logger.js";
|
|
2
2
|
import runDbClient_default from "../../../../data/db/runDbClient.js";
|
|
3
3
|
import { queueEvaluationJobConversations } from "../../../evals/services/evaluationJob.js";
|
|
4
|
+
import { requireProjectPermission } from "../../../../middleware/projectAccess.js";
|
|
4
5
|
import { OpenAPIHono, createRoute, z } from "@hono/zod-openapi";
|
|
5
6
|
import { EvaluationJobConfigApiInsertSchema, EvaluationJobConfigApiSelectSchema, EvaluationResultApiSelectSchema, ListResponseSchema, SingleResponseSchema, TenantProjectParamsSchema, commonGetErrorResponses, createApiError, createEvaluationJobConfig, createEvaluationJobConfigEvaluatorRelation, deleteEvaluationJobConfig, generateId, getConversation, getEvaluationJobConfigById, getMessagesByConversation, listEvaluationJobConfigs, listEvaluationResultsByRun, listEvaluationRuns } from "@inkeep/agents-core";
|
|
6
7
|
|
|
7
8
|
//#region src/domains/manage/routes/evals/evaluationJobConfigs.ts
|
|
8
9
|
const app = new OpenAPIHono();
|
|
9
10
|
const logger = getLogger$1("evaluationJobConfigs");
|
|
11
|
+
app.use("/", async (c, next) => {
|
|
12
|
+
if (c.req.method === "POST") return requireProjectPermission("edit")(c, next);
|
|
13
|
+
return next();
|
|
14
|
+
});
|
|
15
|
+
app.use("/:configId", async (c, next) => {
|
|
16
|
+
if (c.req.method === "DELETE") return requireProjectPermission("edit")(c, next);
|
|
17
|
+
return next();
|
|
18
|
+
});
|
|
10
19
|
/**
|
|
11
20
|
* Extract plain filter criteria from a potential Filter wrapper.
|
|
12
21
|
* Returns null if the filter is a complex and/or combinator.
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { ManageAppVariables } from "../../../../types/app.js";
|
|
1
2
|
import { OpenAPIHono } from "@hono/zod-openapi";
|
|
2
|
-
import * as hono18 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/manage/routes/evals/evaluationResults.d.ts
|
|
5
|
-
declare const app: OpenAPIHono<
|
|
5
|
+
declare const app: OpenAPIHono<{
|
|
6
|
+
Variables: ManageAppVariables;
|
|
7
|
+
}, {}, "/">;
|
|
6
8
|
//#endregion
|
|
7
9
|
export { app as default };
|
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
import { getLogger as getLogger$1 } from "../../../../logger.js";
|
|
2
2
|
import runDbClient_default from "../../../../data/db/runDbClient.js";
|
|
3
|
+
import { requireProjectPermission } from "../../../../middleware/projectAccess.js";
|
|
3
4
|
import { OpenAPIHono, createRoute, z } from "@hono/zod-openapi";
|
|
4
5
|
import { EvaluationResultApiInsertSchema, EvaluationResultApiSelectSchema, EvaluationResultApiUpdateSchema, SingleResponseSchema, TenantProjectParamsSchema, commonGetErrorResponses, createApiError, createEvaluationResult, deleteEvaluationResult, generateId, getEvaluationResultById, updateEvaluationResult } from "@inkeep/agents-core";
|
|
5
6
|
|
|
6
7
|
//#region src/domains/manage/routes/evals/evaluationResults.ts
|
|
7
8
|
const app = new OpenAPIHono();
|
|
8
9
|
const logger = getLogger$1("evaluationResults");
|
|
10
|
+
app.use("/", async (c, next) => {
|
|
11
|
+
if (c.req.method === "POST") return requireProjectPermission("edit")(c, next);
|
|
12
|
+
return next();
|
|
13
|
+
});
|
|
14
|
+
app.use("/:resultId", async (c, next) => {
|
|
15
|
+
if (["PATCH", "DELETE"].includes(c.req.method)) return requireProjectPermission("edit")(c, next);
|
|
16
|
+
return next();
|
|
17
|
+
});
|
|
9
18
|
app.openapi(createRoute({
|
|
10
19
|
method: "get",
|
|
11
20
|
path: "/{resultId}",
|
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
import { getLogger as getLogger$1 } from "../../../../logger.js";
|
|
2
2
|
import runDbClient_default from "../../../../data/db/runDbClient.js";
|
|
3
|
+
import { requireProjectPermission } from "../../../../middleware/projectAccess.js";
|
|
3
4
|
import { OpenAPIHono, createRoute, z } from "@hono/zod-openapi";
|
|
4
5
|
import { EvaluationResultApiSelectSchema, EvaluationRunConfigApiInsertSchema, EvaluationRunConfigApiUpdateSchema, EvaluationRunConfigWithSuiteConfigsApiSelectSchema, ListResponseSchema, SingleResponseSchema, TenantProjectParamsSchema, commonGetErrorResponses, createApiError, createEvaluationRunConfig, createEvaluationRunConfigEvaluationSuiteConfigRelation, deleteEvaluationRunConfig, deleteEvaluationRunConfigEvaluationSuiteConfigRelation, generateId, getConversation, getEvaluationRunConfigById, getEvaluationRunConfigEvaluationSuiteConfigRelations, getMessagesByConversation, listEvaluationResultsByRun, listEvaluationRunConfigsWithSuiteConfigs, listEvaluationRuns, updateEvaluationRunConfig } from "@inkeep/agents-core";
|
|
5
6
|
|
|
6
7
|
//#region src/domains/manage/routes/evals/evaluationRunConfigs.ts
|
|
7
8
|
const app = new OpenAPIHono();
|
|
8
9
|
const logger = getLogger$1("evaluationRunConfigs");
|
|
10
|
+
app.use("/", async (c, next) => {
|
|
11
|
+
if (c.req.method === "POST") return requireProjectPermission("edit")(c, next);
|
|
12
|
+
return next();
|
|
13
|
+
});
|
|
14
|
+
app.use("/:configId", async (c, next) => {
|
|
15
|
+
if (["PATCH", "DELETE"].includes(c.req.method)) return requireProjectPermission("edit")(c, next);
|
|
16
|
+
return next();
|
|
17
|
+
});
|
|
9
18
|
app.openapi(createRoute({
|
|
10
19
|
method: "get",
|
|
11
20
|
path: "/",
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { getLogger as getLogger$1 } from "../../../../logger.js";
|
|
2
|
+
import { requireProjectPermission } from "../../../../middleware/projectAccess.js";
|
|
2
3
|
import { OpenAPIHono, createRoute, z } from "@hono/zod-openapi";
|
|
3
4
|
import { TenantProjectParamsSchema, commonGetErrorResponses, createApiError, createEvaluationSuiteConfigEvaluatorRelation, deleteEvaluationSuiteConfigEvaluatorRelation, generateId, getEvaluationSuiteConfigEvaluatorRelations } from "@inkeep/agents-core";
|
|
4
5
|
|
|
5
6
|
//#region src/domains/manage/routes/evals/evaluationSuiteConfigEvaluatorRelations.ts
|
|
6
7
|
const app = new OpenAPIHono();
|
|
7
8
|
const logger = getLogger$1("evaluationSuiteConfigEvaluatorRelations");
|
|
9
|
+
app.use("/:configId/evaluators/:evaluatorId", async (c, next) => {
|
|
10
|
+
if (["POST", "DELETE"].includes(c.req.method)) return requireProjectPermission("edit")(c, next);
|
|
11
|
+
return next();
|
|
12
|
+
});
|
|
8
13
|
app.openapi(createRoute({
|
|
9
14
|
method: "get",
|
|
10
15
|
path: "/{configId}/evaluators",
|
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
import { getLogger as getLogger$1 } from "../../../../logger.js";
|
|
2
|
+
import { requireProjectPermission } from "../../../../middleware/projectAccess.js";
|
|
2
3
|
import { OpenAPIHono, createRoute, z } from "@hono/zod-openapi";
|
|
3
4
|
import { EvaluationSuiteConfigApiInsertSchema, EvaluationSuiteConfigApiSelectSchema, EvaluationSuiteConfigApiUpdateSchema, ListResponseSchema, SingleResponseSchema, TenantProjectParamsSchema, commonGetErrorResponses, createApiError, createEvaluationSuiteConfig, createEvaluationSuiteConfigEvaluatorRelation, deleteEvaluationSuiteConfig, generateId, getEvaluationSuiteConfigById, listEvaluationSuiteConfigs, updateEvaluationSuiteConfig } from "@inkeep/agents-core";
|
|
4
5
|
|
|
5
6
|
//#region src/domains/manage/routes/evals/evaluationSuiteConfigs.ts
|
|
6
7
|
const app = new OpenAPIHono();
|
|
7
8
|
const logger = getLogger$1("evaluationSuiteConfigs");
|
|
9
|
+
app.use("/", async (c, next) => {
|
|
10
|
+
if (c.req.method === "POST") return requireProjectPermission("edit")(c, next);
|
|
11
|
+
return next();
|
|
12
|
+
});
|
|
13
|
+
app.use("/:configId", async (c, next) => {
|
|
14
|
+
if (["PATCH", "DELETE"].includes(c.req.method)) return requireProjectPermission("edit")(c, next);
|
|
15
|
+
return next();
|
|
16
|
+
});
|
|
8
17
|
app.openapi(createRoute({
|
|
9
18
|
method: "get",
|
|
10
19
|
path: "/",
|
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
import { getLogger as getLogger$1 } from "../../../../logger.js";
|
|
2
|
+
import { requireProjectPermission } from "../../../../middleware/projectAccess.js";
|
|
2
3
|
import { OpenAPIHono, createRoute, z } from "@hono/zod-openapi";
|
|
3
4
|
import { EvaluatorApiInsertSchema, EvaluatorApiSelectSchema, EvaluatorApiUpdateSchema, ListResponseSchema, SingleResponseSchema, TenantProjectParamsSchema, commonGetErrorResponses, createApiError, createEvaluator, deleteEvaluator, generateId, getEvaluatorById, getEvaluatorsByIds, listEvaluators, updateEvaluator } from "@inkeep/agents-core";
|
|
4
5
|
|
|
5
6
|
//#region src/domains/manage/routes/evals/evaluators.ts
|
|
6
7
|
const app = new OpenAPIHono();
|
|
7
8
|
const logger = getLogger$1("evaluators");
|
|
9
|
+
app.use("/", async (c, next) => {
|
|
10
|
+
if (c.req.method === "POST") return requireProjectPermission("edit")(c, next);
|
|
11
|
+
return next();
|
|
12
|
+
});
|
|
13
|
+
app.use("/:evaluatorId", async (c, next) => {
|
|
14
|
+
if (["PATCH", "DELETE"].includes(c.req.method)) return requireProjectPermission("edit")(c, next);
|
|
15
|
+
return next();
|
|
16
|
+
});
|
|
8
17
|
app.openapi(createRoute({
|
|
9
18
|
method: "get",
|
|
10
19
|
path: "/",
|
|
@@ -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/index.d.ts
|
|
5
|
-
declare const app: OpenAPIHono<
|
|
5
|
+
declare const app: OpenAPIHono<hono15.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_types5 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_types5.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_types6 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_types6.BlankEnv, hono_types6.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_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_types9 from "hono/types";
|
|
4
4
|
|
|
5
5
|
//#region src/domains/manage/routes/userOrganizations.d.ts
|
|
6
6
|
declare const userOrganizationsRoutes: Hono<{
|
|
7
7
|
Variables: ManageAppVariables;
|
|
8
|
-
},
|
|
8
|
+
}, hono_types9.BlankSchema, "/">;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { userOrganizationsRoutes as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Hono } from "hono";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono_types3 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_types3.BlankEnv, hono_types3.BlankSchema, "/">;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { app as default };
|
|
@@ -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_core1 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_core1.Message | _inkeep_agents_core1.Task;
|
|
48
48
|
}>;
|
|
49
49
|
/**
|
|
50
50
|
* Parameters for building a transfer relation config
|
|
@@ -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 };
|