@inkeep/agents-core 0.54.0 → 0.55.1
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/auth/auth-schema.d.ts +85 -85
- package/dist/auth/auth-validation-schemas.d.ts +135 -135
- package/dist/data-access/manage/agents.d.ts +42 -42
- package/dist/data-access/manage/artifactComponents.d.ts +12 -12
- package/dist/data-access/manage/contextConfigs.d.ts +12 -12
- package/dist/data-access/manage/dataComponents.d.ts +6 -6
- package/dist/data-access/manage/functionTools.d.ts +18 -18
- package/dist/data-access/manage/skills.d.ts +14 -14
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgentRelations.d.ts +28 -28
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgents.d.ts +18 -18
- package/dist/data-access/manage/tools.d.ts +24 -24
- package/dist/data-access/manage/tools.js +23 -11
- package/dist/data-access/manage/triggers.d.ts +1 -1
- package/dist/data-access/runtime/apiKeys.d.ts +12 -12
- package/dist/data-access/runtime/conversations.d.ts +20 -20
- package/dist/data-access/runtime/messages.d.ts +9 -9
- package/dist/data-access/runtime/tasks.d.ts +4 -4
- package/dist/db/manage/manage-schema.d.ts +2 -2
- package/dist/middleware/inherited-auth.d.ts +2 -2
- package/dist/middleware/inherited-auth.js +3 -3
- package/dist/middleware/no-auth.d.ts +2 -2
- package/dist/types/utility.d.ts +1 -0
- package/dist/utils/mcp-client.d.ts +1 -0
- package/dist/utils/mcp-client.js +3 -0
- package/dist/validation/schemas.d.ts +263 -263
- package/package.json +1 -1
|
@@ -11,13 +11,13 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
11
11
|
messageId: string;
|
|
12
12
|
}) => Promise<{
|
|
13
13
|
id: string;
|
|
14
|
-
tenantId: string;
|
|
15
|
-
projectId: string;
|
|
16
14
|
createdAt: string;
|
|
17
15
|
updatedAt: string;
|
|
18
16
|
metadata: MessageMetadata | null;
|
|
19
|
-
content: MessageContent;
|
|
20
17
|
role: string;
|
|
18
|
+
projectId: string;
|
|
19
|
+
tenantId: string;
|
|
20
|
+
content: MessageContent;
|
|
21
21
|
conversationId: string;
|
|
22
22
|
fromSubAgentId: string | null;
|
|
23
23
|
toSubAgentId: string | null;
|
|
@@ -142,13 +142,13 @@ declare const getVisibleMessages: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
142
142
|
}[]>;
|
|
143
143
|
declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageInsert) => Promise<{
|
|
144
144
|
id: string;
|
|
145
|
-
tenantId: string;
|
|
146
|
-
projectId: string;
|
|
147
145
|
createdAt: string;
|
|
148
146
|
updatedAt: string;
|
|
149
147
|
metadata: MessageMetadata | null;
|
|
150
|
-
content: MessageContent;
|
|
151
148
|
role: string;
|
|
149
|
+
projectId: string;
|
|
150
|
+
tenantId: string;
|
|
151
|
+
content: MessageContent;
|
|
152
152
|
conversationId: string;
|
|
153
153
|
fromSubAgentId: string | null;
|
|
154
154
|
toSubAgentId: string | null;
|
|
@@ -195,13 +195,13 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
195
195
|
messageId: string;
|
|
196
196
|
}) => Promise<{
|
|
197
197
|
id: string;
|
|
198
|
-
tenantId: string;
|
|
199
|
-
projectId: string;
|
|
200
198
|
createdAt: string;
|
|
201
199
|
updatedAt: string;
|
|
202
200
|
metadata: MessageMetadata | null;
|
|
203
|
-
content: MessageContent;
|
|
204
201
|
role: string;
|
|
202
|
+
projectId: string;
|
|
203
|
+
tenantId: string;
|
|
204
|
+
content: MessageContent;
|
|
205
205
|
conversationId: string;
|
|
206
206
|
fromSubAgentId: string | null;
|
|
207
207
|
toSubAgentId: string | null;
|
|
@@ -7,18 +7,18 @@ import { TaskInsert, TaskSelect } from "../../types/entities.js";
|
|
|
7
7
|
//#region src/data-access/runtime/tasks.d.ts
|
|
8
8
|
declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert) => Promise<{
|
|
9
9
|
id: string;
|
|
10
|
-
tenantId: string;
|
|
11
|
-
projectId: string;
|
|
12
|
-
agentId: string;
|
|
13
10
|
createdAt: string;
|
|
14
11
|
updatedAt: string;
|
|
15
|
-
metadata: TaskMetadataConfig | null;
|
|
16
12
|
ref: {
|
|
17
13
|
type: "tag" | "commit" | "branch";
|
|
18
14
|
name: string;
|
|
19
15
|
hash: string;
|
|
20
16
|
} | null;
|
|
17
|
+
metadata: TaskMetadataConfig | null;
|
|
21
18
|
status: string;
|
|
19
|
+
agentId: string;
|
|
20
|
+
projectId: string;
|
|
21
|
+
tenantId: string;
|
|
22
22
|
subAgentId: string;
|
|
23
23
|
contextId: string;
|
|
24
24
|
}>;
|
|
@@ -820,7 +820,7 @@ declare const triggers: drizzle_orm_pg_core1547.PgTableWithColumns<{
|
|
|
820
820
|
regex?: string | undefined;
|
|
821
821
|
};
|
|
822
822
|
signedComponents: {
|
|
823
|
-
source: "
|
|
823
|
+
source: "body" | "header" | "literal";
|
|
824
824
|
required: boolean;
|
|
825
825
|
key?: string | undefined;
|
|
826
826
|
value?: string | undefined;
|
|
@@ -857,7 +857,7 @@ declare const triggers: drizzle_orm_pg_core1547.PgTableWithColumns<{
|
|
|
857
857
|
regex?: string | undefined;
|
|
858
858
|
};
|
|
859
859
|
signedComponents: {
|
|
860
|
-
source: "
|
|
860
|
+
source: "body" | "header" | "literal";
|
|
861
861
|
required: boolean;
|
|
862
862
|
key?: string | undefined;
|
|
863
863
|
value?: string | undefined;
|
|
@@ -11,7 +11,7 @@ import * as hono0 from "hono";
|
|
|
11
11
|
* auth requirement.
|
|
12
12
|
*
|
|
13
13
|
* Use this when the route lives under a path that already has
|
|
14
|
-
* middleware applied (e.g. `/manage/tenants/*` has `
|
|
14
|
+
* middleware applied (e.g. `/manage/tenants/*` has `manageBearerOrSessionAuth`).
|
|
15
15
|
*/
|
|
16
16
|
declare const inheritedAuth: (meta: {
|
|
17
17
|
resource?: string;
|
|
@@ -20,7 +20,7 @@ declare const inheritedAuth: (meta: {
|
|
|
20
20
|
}) => hono0.MiddlewareHandler<any, string, {}, Response>;
|
|
21
21
|
/**
|
|
22
22
|
* Marker for routes under `/manage/tenants/*` whose auth is handled
|
|
23
|
-
* by `
|
|
23
|
+
* by `manageBearerOrSessionAuth()` in createApp.ts.
|
|
24
24
|
*
|
|
25
25
|
* No auth check runs at the route level — this is purely for OpenAPI documentation.
|
|
26
26
|
*/
|
|
@@ -11,7 +11,7 @@ import { createMiddleware } from "hono/factory";
|
|
|
11
11
|
* auth requirement.
|
|
12
12
|
*
|
|
13
13
|
* Use this when the route lives under a path that already has
|
|
14
|
-
* middleware applied (e.g. `/manage/tenants/*` has `
|
|
14
|
+
* middleware applied (e.g. `/manage/tenants/*` has `manageBearerOrSessionAuth`).
|
|
15
15
|
*/
|
|
16
16
|
const inheritedAuth = (meta) => {
|
|
17
17
|
const mw = createMiddleware(async (_c, next) => {
|
|
@@ -22,14 +22,14 @@ const inheritedAuth = (meta) => {
|
|
|
22
22
|
};
|
|
23
23
|
/**
|
|
24
24
|
* Marker for routes under `/manage/tenants/*` whose auth is handled
|
|
25
|
-
* by `
|
|
25
|
+
* by `manageBearerOrSessionAuth()` in createApp.ts.
|
|
26
26
|
*
|
|
27
27
|
* No auth check runs at the route level — this is purely for OpenAPI documentation.
|
|
28
28
|
*/
|
|
29
29
|
const inheritedManageTenantAuth = () => inheritedAuth({
|
|
30
30
|
resource: "organization",
|
|
31
31
|
permission: "member",
|
|
32
|
-
description: "Requires organization membership. Auth is enforced by the
|
|
32
|
+
description: "Requires organization membership. Auth is enforced by the manageBearerOrSessionAuth middleware in createApp.ts."
|
|
33
33
|
});
|
|
34
34
|
/**
|
|
35
35
|
* Marker for routes under `/run/*` whose auth is handled
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as hono3 from "hono";
|
|
2
2
|
|
|
3
3
|
//#region src/middleware/no-auth.d.ts
|
|
4
|
-
declare const noAuth: () =>
|
|
4
|
+
declare const noAuth: () => hono3.MiddlewareHandler<any, string, {}, Response>;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { noAuth };
|
package/dist/types/utility.d.ts
CHANGED
package/dist/utils/mcp-client.js
CHANGED
|
@@ -44,6 +44,9 @@ var McpClient = class {
|
|
|
44
44
|
isConnected() {
|
|
45
45
|
return this.connected;
|
|
46
46
|
}
|
|
47
|
+
getInstructions() {
|
|
48
|
+
return this.client.getInstructions();
|
|
49
|
+
}
|
|
47
50
|
async connect() {
|
|
48
51
|
if (this.connected) return;
|
|
49
52
|
await match(this.serverConfig).with({ type: MCPTransportType.streamableHttp }, (config) => this.connectHttp(config)).with({ type: MCPTransportType.sse }, (config) => this.connectSSE(config)).exhaustive();
|