@inkeep/agents-core 0.0.0-dev-20260106221934 → 0.0.0-dev-20260106222359
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 +104 -104
- package/dist/auth/auth-validation-schemas.d.ts +129 -129
- package/dist/auth/auth.d.ts +39 -39
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/constants/otel-attributes.d.ts +1 -3
- package/dist/constants/otel-attributes.js +2 -4
- package/dist/constants/signoz-queries.d.ts +0 -1
- package/dist/constants/signoz-queries.js +0 -1
- package/dist/data-access/messages.d.ts +9 -9
- package/dist/data-access/tasks.d.ts +1 -1
- package/dist/db/schema.d.ts +405 -405
- package/dist/validation/schemas.d.ts +25 -25
- package/package.json +1 -1
package/dist/auth/auth.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { DatabaseClient } from "../db/client.js";
|
|
|
2
2
|
import * as _better_auth_sso0 from "@better-auth/sso";
|
|
3
3
|
import * as better_auth0 from "better-auth";
|
|
4
4
|
import { BetterAuthAdvancedOptions } from "better-auth";
|
|
5
|
-
import * as
|
|
5
|
+
import * as better_auth_plugins20 from "better-auth/plugins";
|
|
6
6
|
import * as zod0 from "zod";
|
|
7
7
|
import { GoogleOptions } from "better-auth/social-providers";
|
|
8
8
|
|
|
@@ -185,7 +185,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
185
185
|
handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
|
|
186
186
|
}[];
|
|
187
187
|
};
|
|
188
|
-
options:
|
|
188
|
+
options: better_auth_plugins20.BearerOptions | undefined;
|
|
189
189
|
}, {
|
|
190
190
|
id: "sso";
|
|
191
191
|
endpoints: {
|
|
@@ -813,30 +813,30 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
813
813
|
};
|
|
814
814
|
}, {
|
|
815
815
|
id: "organization";
|
|
816
|
-
endpoints:
|
|
816
|
+
endpoints: better_auth_plugins20.OrganizationEndpoints<{
|
|
817
817
|
allowUserToCreateOrganization: true;
|
|
818
|
-
ac:
|
|
818
|
+
ac: better_auth_plugins20.AccessControl;
|
|
819
819
|
roles: {
|
|
820
820
|
member: {
|
|
821
|
-
authorize<K_1 extends "function" | "organization" | "agent" | "
|
|
822
|
-
actions:
|
|
821
|
+
authorize<K_1 extends "function" | "organization" | "agent" | "project" | "invitation" | "member" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"function" | "organization" | "agent" | "project" | "invitation" | "member" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
|
|
822
|
+
actions: better_auth_plugins20.Subset<"function" | "organization" | "agent" | "project" | "invitation" | "member" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key];
|
|
823
823
|
connector: "OR" | "AND";
|
|
824
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
825
|
-
statements:
|
|
824
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
825
|
+
statements: better_auth_plugins20.Subset<"function" | "organization" | "agent" | "project" | "invitation" | "member" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>;
|
|
826
826
|
};
|
|
827
827
|
admin: {
|
|
828
|
-
authorize<K_1 extends "function" | "organization" | "agent" | "
|
|
829
|
-
actions:
|
|
828
|
+
authorize<K_1 extends "function" | "organization" | "agent" | "project" | "invitation" | "member" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"function" | "organization" | "agent" | "project" | "invitation" | "member" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
|
|
829
|
+
actions: better_auth_plugins20.Subset<"function" | "organization" | "agent" | "project" | "invitation" | "member" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key];
|
|
830
830
|
connector: "OR" | "AND";
|
|
831
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
832
|
-
statements:
|
|
831
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
832
|
+
statements: better_auth_plugins20.Subset<"function" | "organization" | "agent" | "project" | "invitation" | "member" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>;
|
|
833
833
|
};
|
|
834
834
|
owner: {
|
|
835
|
-
authorize<K_1 extends "function" | "organization" | "agent" | "
|
|
836
|
-
actions:
|
|
835
|
+
authorize<K_1 extends "function" | "organization" | "agent" | "project" | "invitation" | "member" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"function" | "organization" | "agent" | "project" | "invitation" | "member" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
|
|
836
|
+
actions: better_auth_plugins20.Subset<"function" | "organization" | "agent" | "project" | "invitation" | "member" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key];
|
|
837
837
|
connector: "OR" | "AND";
|
|
838
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
839
|
-
statements:
|
|
838
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
839
|
+
statements: better_auth_plugins20.Subset<"function" | "organization" | "agent" | "project" | "invitation" | "member" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>;
|
|
840
840
|
};
|
|
841
841
|
};
|
|
842
842
|
membershipLimit: number;
|
|
@@ -846,9 +846,9 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
846
846
|
id: string;
|
|
847
847
|
role: string;
|
|
848
848
|
email: string;
|
|
849
|
-
organization:
|
|
850
|
-
invitation:
|
|
851
|
-
inviter:
|
|
849
|
+
organization: better_auth_plugins20.Organization;
|
|
850
|
+
invitation: better_auth_plugins20.Invitation;
|
|
851
|
+
inviter: better_auth_plugins20.Member & {
|
|
852
852
|
user: better_auth0.User;
|
|
853
853
|
};
|
|
854
854
|
}): Promise<void>;
|
|
@@ -981,7 +981,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
981
981
|
organizationId: string;
|
|
982
982
|
email: string;
|
|
983
983
|
role: "member" | "admin" | "owner";
|
|
984
|
-
status:
|
|
984
|
+
status: better_auth_plugins20.InvitationStatus;
|
|
985
985
|
inviterId: string;
|
|
986
986
|
expiresAt: Date;
|
|
987
987
|
createdAt: Date;
|
|
@@ -1020,7 +1020,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1020
1020
|
organizationId: string;
|
|
1021
1021
|
email: string;
|
|
1022
1022
|
role: "member" | "admin" | "owner";
|
|
1023
|
-
status:
|
|
1023
|
+
status: better_auth_plugins20.InvitationStatus;
|
|
1024
1024
|
inviterId: string;
|
|
1025
1025
|
expiresAt: Date;
|
|
1026
1026
|
createdAt: Date;
|
|
@@ -1094,28 +1094,28 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1094
1094
|
};
|
|
1095
1095
|
options: NoInfer<{
|
|
1096
1096
|
allowUserToCreateOrganization: true;
|
|
1097
|
-
ac:
|
|
1097
|
+
ac: better_auth_plugins20.AccessControl;
|
|
1098
1098
|
roles: {
|
|
1099
1099
|
member: {
|
|
1100
|
-
authorize<K_1 extends "function" | "organization" | "agent" | "
|
|
1101
|
-
actions:
|
|
1100
|
+
authorize<K_1 extends "function" | "organization" | "agent" | "project" | "invitation" | "member" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"function" | "organization" | "agent" | "project" | "invitation" | "member" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
|
|
1101
|
+
actions: better_auth_plugins20.Subset<"function" | "organization" | "agent" | "project" | "invitation" | "member" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key];
|
|
1102
1102
|
connector: "OR" | "AND";
|
|
1103
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1104
|
-
statements:
|
|
1103
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
1104
|
+
statements: better_auth_plugins20.Subset<"function" | "organization" | "agent" | "project" | "invitation" | "member" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>;
|
|
1105
1105
|
};
|
|
1106
1106
|
admin: {
|
|
1107
|
-
authorize<K_1 extends "function" | "organization" | "agent" | "
|
|
1108
|
-
actions:
|
|
1107
|
+
authorize<K_1 extends "function" | "organization" | "agent" | "project" | "invitation" | "member" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"function" | "organization" | "agent" | "project" | "invitation" | "member" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
|
|
1108
|
+
actions: better_auth_plugins20.Subset<"function" | "organization" | "agent" | "project" | "invitation" | "member" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key];
|
|
1109
1109
|
connector: "OR" | "AND";
|
|
1110
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1111
|
-
statements:
|
|
1110
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
1111
|
+
statements: better_auth_plugins20.Subset<"function" | "organization" | "agent" | "project" | "invitation" | "member" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>;
|
|
1112
1112
|
};
|
|
1113
1113
|
owner: {
|
|
1114
|
-
authorize<K_1 extends "function" | "organization" | "agent" | "
|
|
1115
|
-
actions:
|
|
1114
|
+
authorize<K_1 extends "function" | "organization" | "agent" | "project" | "invitation" | "member" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"function" | "organization" | "agent" | "project" | "invitation" | "member" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
|
|
1115
|
+
actions: better_auth_plugins20.Subset<"function" | "organization" | "agent" | "project" | "invitation" | "member" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key];
|
|
1116
1116
|
connector: "OR" | "AND";
|
|
1117
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1118
|
-
statements:
|
|
1117
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
1118
|
+
statements: better_auth_plugins20.Subset<"function" | "organization" | "agent" | "project" | "invitation" | "member" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>;
|
|
1119
1119
|
};
|
|
1120
1120
|
};
|
|
1121
1121
|
membershipLimit: number;
|
|
@@ -1125,9 +1125,9 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1125
1125
|
id: string;
|
|
1126
1126
|
role: string;
|
|
1127
1127
|
email: string;
|
|
1128
|
-
organization:
|
|
1129
|
-
invitation:
|
|
1130
|
-
inviter:
|
|
1128
|
+
organization: better_auth_plugins20.Organization;
|
|
1129
|
+
invitation: better_auth_plugins20.Invitation;
|
|
1130
|
+
inviter: better_auth_plugins20.Member & {
|
|
1131
1131
|
user: better_auth0.User;
|
|
1132
1132
|
};
|
|
1133
1133
|
}): Promise<void>;
|
|
@@ -1465,8 +1465,8 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1465
1465
|
readonly AUTHENTICATION_REQUIRED: "Authentication required";
|
|
1466
1466
|
};
|
|
1467
1467
|
options: Partial<{
|
|
1468
|
-
expiresIn:
|
|
1469
|
-
interval:
|
|
1468
|
+
expiresIn: better_auth_plugins20.TimeString;
|
|
1469
|
+
interval: better_auth_plugins20.TimeString;
|
|
1470
1470
|
deviceCodeLength: number;
|
|
1471
1471
|
userCodeLength: number;
|
|
1472
1472
|
schema: {
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as better_auth_plugins0 from "better-auth/plugins";
|
|
2
2
|
import { AccessControl } from "better-auth/plugins/access";
|
|
3
3
|
import { organizationClient } from "better-auth/client/plugins";
|
|
4
4
|
|
|
5
5
|
//#region src/auth/permissions.d.ts
|
|
6
6
|
declare const ac: AccessControl;
|
|
7
7
|
declare const memberRole: {
|
|
8
|
-
authorize<K_1 extends "function" | "organization" | "agent" | "
|
|
9
|
-
actions:
|
|
8
|
+
authorize<K_1 extends "function" | "organization" | "agent" | "project" | "invitation" | "member" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "invitation" | "member" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
|
|
9
|
+
actions: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "invitation" | "member" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins0.Statements>[key];
|
|
10
10
|
connector: "OR" | "AND";
|
|
11
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
12
|
-
statements:
|
|
11
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
12
|
+
statements: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "invitation" | "member" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins0.Statements>;
|
|
13
13
|
};
|
|
14
14
|
declare const adminRole: {
|
|
15
|
-
authorize<K_1 extends "function" | "organization" | "agent" | "
|
|
16
|
-
actions:
|
|
15
|
+
authorize<K_1 extends "function" | "organization" | "agent" | "project" | "invitation" | "member" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "invitation" | "member" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
|
|
16
|
+
actions: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "invitation" | "member" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins0.Statements>[key];
|
|
17
17
|
connector: "OR" | "AND";
|
|
18
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
19
|
-
statements:
|
|
18
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
19
|
+
statements: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "invitation" | "member" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins0.Statements>;
|
|
20
20
|
};
|
|
21
21
|
declare const ownerRole: {
|
|
22
|
-
authorize<K_1 extends "function" | "organization" | "agent" | "
|
|
23
|
-
actions:
|
|
22
|
+
authorize<K_1 extends "function" | "organization" | "agent" | "project" | "invitation" | "member" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "invitation" | "member" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
|
|
23
|
+
actions: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "invitation" | "member" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins0.Statements>[key];
|
|
24
24
|
connector: "OR" | "AND";
|
|
25
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
26
|
-
statements:
|
|
25
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
26
|
+
statements: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "invitation" | "member" | "tool" | "sub_agent" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins0.Statements>;
|
|
27
27
|
};
|
|
28
28
|
//#endregion
|
|
29
29
|
export { ac, adminRole, memberRole, organizationClient, ownerRole };
|
|
@@ -19,7 +19,6 @@ declare const SPAN_NAMES: {
|
|
|
19
19
|
declare const AI_OPERATIONS: {
|
|
20
20
|
readonly GENERATE_TEXT: "ai.generateText.doGenerate";
|
|
21
21
|
readonly STREAM_TEXT: "ai.streamText.doStream";
|
|
22
|
-
readonly STREAM_OBJECT: "ai.streamObject.doStream";
|
|
23
22
|
};
|
|
24
23
|
/** OpenTelemetry span attribute keys used for tracing */
|
|
25
24
|
declare const SPAN_KEYS: {
|
|
@@ -49,6 +48,7 @@ declare const SPAN_KEYS: {
|
|
|
49
48
|
readonly AI_TELEMETRY_FUNCTION_ID: "ai.telemetry.functionId";
|
|
50
49
|
readonly AI_TELEMETRY_SUB_AGENT_ID: "ai.telemetry.metadata.subAgentId";
|
|
51
50
|
readonly AI_TELEMETRY_SUB_AGENT_NAME: "ai.telemetry.metadata.subAgentName";
|
|
51
|
+
readonly AI_TELEMETRY_METADATA_PHASE: "ai.telemetry.metadata.phase";
|
|
52
52
|
readonly AI_MODEL_ID: "ai.model.id";
|
|
53
53
|
readonly AI_TOOL_CALL_NAME: "ai.toolCall.name";
|
|
54
54
|
readonly AI_TOOL_CALL_RESULT: "ai.toolCall.result";
|
|
@@ -110,7 +110,6 @@ declare const ACTIVITY_TYPES: {
|
|
|
110
110
|
readonly USER_MESSAGE: "user_message";
|
|
111
111
|
readonly AI_ASSISTANT_MESSAGE: "ai_assistant_message";
|
|
112
112
|
readonly AI_MODEL_STREAMED_TEXT: "ai_model_streamed_text";
|
|
113
|
-
readonly AI_MODEL_STREAMED_OBJECT: "ai_model_streamed_object";
|
|
114
113
|
readonly TOOL_APPROVAL_REQUESTED: "tool_approval_requested";
|
|
115
114
|
readonly TOOL_APPROVAL_APPROVED: "tool_approval_approved";
|
|
116
115
|
readonly TOOL_APPROVAL_DENIED: "tool_approval_denied";
|
|
@@ -135,7 +134,6 @@ declare const ACTIVITY_NAMES: {
|
|
|
135
134
|
readonly AI_ASSISTANT_MESSAGE: "AI Assistant Message";
|
|
136
135
|
readonly AI_TEXT_GENERATION: "AI Text Generation";
|
|
137
136
|
readonly AI_STREAMING_TEXT: "AI Streaming Text";
|
|
138
|
-
readonly AI_STREAMING_OBJECT: "AI Streaming Object";
|
|
139
137
|
readonly UNKNOWN_AGENT: "Unknown Agent";
|
|
140
138
|
readonly USER: "User";
|
|
141
139
|
};
|
|
@@ -18,8 +18,7 @@ const SPAN_NAMES = {
|
|
|
18
18
|
};
|
|
19
19
|
const AI_OPERATIONS = {
|
|
20
20
|
GENERATE_TEXT: "ai.generateText.doGenerate",
|
|
21
|
-
STREAM_TEXT: "ai.streamText.doStream"
|
|
22
|
-
STREAM_OBJECT: "ai.streamObject.doStream"
|
|
21
|
+
STREAM_TEXT: "ai.streamText.doStream"
|
|
23
22
|
};
|
|
24
23
|
/** OpenTelemetry span attribute keys used for tracing */
|
|
25
24
|
const SPAN_KEYS = {
|
|
@@ -49,6 +48,7 @@ const SPAN_KEYS = {
|
|
|
49
48
|
AI_TELEMETRY_FUNCTION_ID: "ai.telemetry.functionId",
|
|
50
49
|
AI_TELEMETRY_SUB_AGENT_ID: "ai.telemetry.metadata.subAgentId",
|
|
51
50
|
AI_TELEMETRY_SUB_AGENT_NAME: "ai.telemetry.metadata.subAgentName",
|
|
51
|
+
AI_TELEMETRY_METADATA_PHASE: "ai.telemetry.metadata.phase",
|
|
52
52
|
AI_MODEL_ID: "ai.model.id",
|
|
53
53
|
AI_TOOL_CALL_NAME: "ai.toolCall.name",
|
|
54
54
|
AI_TOOL_CALL_RESULT: "ai.toolCall.result",
|
|
@@ -110,7 +110,6 @@ const ACTIVITY_TYPES = {
|
|
|
110
110
|
USER_MESSAGE: "user_message",
|
|
111
111
|
AI_ASSISTANT_MESSAGE: "ai_assistant_message",
|
|
112
112
|
AI_MODEL_STREAMED_TEXT: "ai_model_streamed_text",
|
|
113
|
-
AI_MODEL_STREAMED_OBJECT: "ai_model_streamed_object",
|
|
114
113
|
TOOL_APPROVAL_REQUESTED: "tool_approval_requested",
|
|
115
114
|
TOOL_APPROVAL_APPROVED: "tool_approval_approved",
|
|
116
115
|
TOOL_APPROVAL_DENIED: "tool_approval_denied",
|
|
@@ -135,7 +134,6 @@ const ACTIVITY_NAMES = {
|
|
|
135
134
|
AI_ASSISTANT_MESSAGE: "AI Assistant Message",
|
|
136
135
|
AI_TEXT_GENERATION: "AI Text Generation",
|
|
137
136
|
AI_STREAMING_TEXT: "AI Streaming Text",
|
|
138
|
-
AI_STREAMING_OBJECT: "AI Streaming Object",
|
|
139
137
|
UNKNOWN_AGENT: "Unknown Agent",
|
|
140
138
|
USER: "User"
|
|
141
139
|
};
|
|
@@ -94,7 +94,6 @@ declare const QUERY_EXPRESSIONS: {
|
|
|
94
94
|
readonly AI_ASSISTANT_MESSAGES: "aiAssistantMessages";
|
|
95
95
|
readonly AI_GENERATIONS: "aiGenerations";
|
|
96
96
|
readonly AI_STREAMING_TEXT: "aiStreamingText";
|
|
97
|
-
readonly AI_STREAMING_OBJECT: "aiStreamingObject";
|
|
98
97
|
readonly CONTEXT_FETCHERS: "contextFetchers";
|
|
99
98
|
readonly DURATION_SPANS: "durationSpans";
|
|
100
99
|
readonly AGENT_GENERATIONS: "agentGenerations";
|
|
@@ -94,7 +94,6 @@ const QUERY_EXPRESSIONS = {
|
|
|
94
94
|
AI_ASSISTANT_MESSAGES: "aiAssistantMessages",
|
|
95
95
|
AI_GENERATIONS: "aiGenerations",
|
|
96
96
|
AI_STREAMING_TEXT: "aiStreamingText",
|
|
97
|
-
AI_STREAMING_OBJECT: "aiStreamingObject",
|
|
98
97
|
CONTEXT_FETCHERS: "contextFetchers",
|
|
99
98
|
DURATION_SPANS: "durationSpans",
|
|
100
99
|
AGENT_GENERATIONS: "agentGenerations",
|
|
@@ -17,18 +17,18 @@ declare const getMessageById: (db: DatabaseClient) => (params: {
|
|
|
17
17
|
metadata: MessageMetadata | null;
|
|
18
18
|
content: MessageContent;
|
|
19
19
|
role: string;
|
|
20
|
+
conversationId: string;
|
|
20
21
|
fromSubAgentId: string | null;
|
|
21
22
|
toSubAgentId: string | null;
|
|
22
23
|
fromExternalAgentId: string | null;
|
|
23
24
|
toExternalAgentId: string | null;
|
|
24
|
-
taskId: string | null;
|
|
25
|
-
a2aTaskId: string | null;
|
|
26
|
-
conversationId: string;
|
|
27
25
|
fromTeamAgentId: string | null;
|
|
28
26
|
toTeamAgentId: string | null;
|
|
29
27
|
visibility: string;
|
|
30
28
|
messageType: string;
|
|
29
|
+
taskId: string | null;
|
|
31
30
|
parentMessageId: string | null;
|
|
31
|
+
a2aTaskId: string | null;
|
|
32
32
|
a2aSessionId: string | null;
|
|
33
33
|
} | undefined>;
|
|
34
34
|
declare const listMessages: (db: DatabaseClient) => (params: {
|
|
@@ -148,18 +148,18 @@ declare const createMessage: (db: DatabaseClient) => (params: MessageInsert) =>
|
|
|
148
148
|
metadata: MessageMetadata | null;
|
|
149
149
|
content: MessageContent;
|
|
150
150
|
role: string;
|
|
151
|
+
conversationId: string;
|
|
151
152
|
fromSubAgentId: string | null;
|
|
152
153
|
toSubAgentId: string | null;
|
|
153
154
|
fromExternalAgentId: string | null;
|
|
154
155
|
toExternalAgentId: string | null;
|
|
155
|
-
taskId: string | null;
|
|
156
|
-
a2aTaskId: string | null;
|
|
157
|
-
conversationId: string;
|
|
158
156
|
fromTeamAgentId: string | null;
|
|
159
157
|
toTeamAgentId: string | null;
|
|
160
158
|
visibility: string;
|
|
161
159
|
messageType: string;
|
|
160
|
+
taskId: string | null;
|
|
162
161
|
parentMessageId: string | null;
|
|
162
|
+
a2aTaskId: string | null;
|
|
163
163
|
a2aSessionId: string | null;
|
|
164
164
|
}>;
|
|
165
165
|
declare const updateMessage: (db: DatabaseClient) => (params: {
|
|
@@ -201,18 +201,18 @@ declare const deleteMessage: (db: DatabaseClient) => (params: {
|
|
|
201
201
|
metadata: MessageMetadata | null;
|
|
202
202
|
content: MessageContent;
|
|
203
203
|
role: string;
|
|
204
|
+
conversationId: string;
|
|
204
205
|
fromSubAgentId: string | null;
|
|
205
206
|
toSubAgentId: string | null;
|
|
206
207
|
fromExternalAgentId: string | null;
|
|
207
208
|
toExternalAgentId: string | null;
|
|
208
|
-
taskId: string | null;
|
|
209
|
-
a2aTaskId: string | null;
|
|
210
|
-
conversationId: string;
|
|
211
209
|
fromTeamAgentId: string | null;
|
|
212
210
|
toTeamAgentId: string | null;
|
|
213
211
|
visibility: string;
|
|
214
212
|
messageType: string;
|
|
213
|
+
taskId: string | null;
|
|
215
214
|
parentMessageId: string | null;
|
|
215
|
+
a2aTaskId: string | null;
|
|
216
216
|
a2aSessionId: string | null;
|
|
217
217
|
}>;
|
|
218
218
|
declare const countMessagesByConversation: (db: DatabaseClient) => (params: {
|
|
@@ -14,8 +14,8 @@ declare const createTask: (db: DatabaseClient) => (params: TaskInsert) => Promis
|
|
|
14
14
|
updatedAt: string;
|
|
15
15
|
metadata: TaskMetadataConfig | null;
|
|
16
16
|
status: string;
|
|
17
|
-
subAgentId: string;
|
|
18
17
|
contextId: string;
|
|
18
|
+
subAgentId: string;
|
|
19
19
|
}>;
|
|
20
20
|
declare const getTask: (db: DatabaseClient) => (params: {
|
|
21
21
|
id: string;
|