@inkeep/agents-core 0.64.2 → 0.64.7
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 +108 -108
- package/dist/auth/auth-validation-schemas.d.ts +154 -154
- package/dist/auth/init.js +2 -2
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/constants/otel-attributes.d.ts +5 -0
- package/dist/constants/otel-attributes.js +7 -2
- package/dist/constants/signoz-queries.d.ts +1 -0
- package/dist/constants/signoz-queries.js +2 -1
- package/dist/data-access/index.d.ts +2 -1
- package/dist/data-access/index.js +2 -1
- package/dist/data-access/manage/agents.d.ts +11 -11
- package/dist/data-access/manage/artifactComponents.d.ts +2 -2
- package/dist/data-access/manage/functionTools.d.ts +4 -4
- package/dist/data-access/manage/skills.d.ts +7 -7
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgents.d.ts +9 -9
- package/dist/data-access/manage/tools.d.ts +18 -18
- package/dist/data-access/manage/tools.js +1 -1
- package/dist/data-access/manage/triggers.d.ts +2 -2
- package/dist/data-access/runtime/apiKeys.d.ts +4 -4
- package/dist/data-access/runtime/apps.d.ts +4 -4
- package/dist/data-access/runtime/conversations.d.ts +16 -16
- package/dist/data-access/runtime/messages.d.ts +9 -9
- package/dist/data-access/runtime/streamChunks.d.ts +29 -0
- package/dist/data-access/runtime/streamChunks.js +65 -0
- package/dist/data-access/runtime/tasks.d.ts +4 -4
- package/dist/db/manage/dolt-safe-jsonb.d.ts +12 -0
- package/dist/db/manage/dolt-safe-jsonb.js +61 -0
- package/dist/db/manage/manage-schema.d.ts +487 -487
- package/dist/db/manage/manage-schema.js +40 -39
- package/dist/db/runtime/runtime-schema.d.ts +508 -376
- package/dist/db/runtime/runtime-schema.js +20 -1
- package/dist/dolt/ref-helpers.js +15 -1
- package/dist/dolt/ref-scope.js +29 -1
- package/dist/index.d.ts +5 -4
- package/dist/index.js +5 -4
- package/dist/setup/setup.d.ts +3 -1
- package/dist/setup/setup.js +14 -10
- package/dist/utils/index.d.ts +3 -3
- package/dist/utils/index.js +3 -3
- package/dist/utils/jwt-helpers.d.ts +2 -3
- package/dist/utils/jwt-helpers.js +2 -3
- package/dist/utils/retry-client.d.ts +8 -0
- package/dist/utils/retry-client.js +29 -0
- package/dist/utils/service-token-auth.d.ts +3 -0
- package/dist/utils/service-token-auth.js +5 -2
- package/dist/utils/temp-jwt.d.ts +1 -6
- package/dist/utils/temp-jwt.js +1 -12
- package/dist/utils/work-app-mcp.js +1 -2
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas/skills.d.ts +35 -35
- package/dist/validation/schemas.d.ts +2012 -2012
- package/drizzle/runtime/0031_fantastic_gorilla_man.sql +13 -0
- package/drizzle/runtime/meta/0031_snapshot.json +4872 -0
- package/drizzle/runtime/meta/_journal.json +7 -0
- package/package.json +6 -2
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { __exportAll } from "../../_virtual/rolldown_runtime.js";
|
|
2
|
+
import { jsonb as jsonb$1 } from "./dolt-safe-jsonb.js";
|
|
2
3
|
import { relations } from "drizzle-orm";
|
|
3
|
-
import { boolean, doublePrecision, foreignKey, index,
|
|
4
|
+
import { boolean, doublePrecision, foreignKey, index, numeric, pgTable, primaryKey, text, timestamp, unique, varchar } from "drizzle-orm/pg-core";
|
|
4
5
|
|
|
5
6
|
//#region src/db/manage/manage-schema.ts
|
|
6
7
|
var manage_schema_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -90,8 +91,8 @@ const timestamps = {
|
|
|
90
91
|
const projects = pgTable("projects", {
|
|
91
92
|
...tenantScoped,
|
|
92
93
|
...uiProperties,
|
|
93
|
-
models: jsonb("models").$type(),
|
|
94
|
-
stopWhen: jsonb("stop_when").$type(),
|
|
94
|
+
models: jsonb$1("models").$type(),
|
|
95
|
+
stopWhen: jsonb$1("stop_when").$type(),
|
|
95
96
|
...timestamps
|
|
96
97
|
}, (table) => [primaryKey({ columns: [table.tenantId, table.id] })]);
|
|
97
98
|
const agents = pgTable("agent", {
|
|
@@ -99,10 +100,10 @@ const agents = pgTable("agent", {
|
|
|
99
100
|
...uiProperties,
|
|
100
101
|
defaultSubAgentId: varchar("default_sub_agent_id", { length: 256 }),
|
|
101
102
|
contextConfigId: varchar("context_config_id", { length: 256 }),
|
|
102
|
-
models: jsonb("models").$type(),
|
|
103
|
-
statusUpdates: jsonb("status_updates").$type(),
|
|
103
|
+
models: jsonb$1("models").$type(),
|
|
104
|
+
statusUpdates: jsonb$1("status_updates").$type(),
|
|
104
105
|
prompt: text("prompt"),
|
|
105
|
-
stopWhen: jsonb("stop_when").$type(),
|
|
106
|
+
stopWhen: jsonb$1("stop_when").$type(),
|
|
106
107
|
executionMode: varchar("execution_mode", { length: 50 }).$type().notNull().default("classic"),
|
|
107
108
|
...timestamps
|
|
108
109
|
}, (table) => [primaryKey({ columns: [
|
|
@@ -116,8 +117,8 @@ const agents = pgTable("agent", {
|
|
|
116
117
|
}).onDelete("cascade")]);
|
|
117
118
|
const contextConfigs = pgTable("context_configs", {
|
|
118
119
|
...agentScoped,
|
|
119
|
-
headersSchema: jsonb("headers_schema").$type(),
|
|
120
|
-
contextVariables: jsonb("context_variables").$type(),
|
|
120
|
+
headersSchema: jsonb$1("headers_schema").$type(),
|
|
121
|
+
contextVariables: jsonb$1("context_variables").$type(),
|
|
121
122
|
...timestamps
|
|
122
123
|
}, (table) => [primaryKey({ columns: [
|
|
123
124
|
table.tenantId,
|
|
@@ -141,12 +142,12 @@ const triggers = pgTable("triggers", {
|
|
|
141
142
|
...agentScoped,
|
|
142
143
|
...uiProperties,
|
|
143
144
|
enabled: boolean("enabled").notNull().default(true),
|
|
144
|
-
inputSchema: jsonb("input_schema").$type(),
|
|
145
|
-
outputTransform: jsonb("output_transform").$type(),
|
|
145
|
+
inputSchema: jsonb$1("input_schema").$type(),
|
|
146
|
+
outputTransform: jsonb$1("output_transform").$type(),
|
|
146
147
|
messageTemplate: text("message_template"),
|
|
147
|
-
authentication: jsonb("authentication").$type(),
|
|
148
|
+
authentication: jsonb$1("authentication").$type(),
|
|
148
149
|
signingSecretCredentialReferenceId: varchar("signing_secret_credential_reference_id", { length: 256 }),
|
|
149
|
-
signatureVerification: jsonb("signature_verification").$type().default(null),
|
|
150
|
+
signatureVerification: jsonb$1("signature_verification").$type().default(null),
|
|
150
151
|
runAsUserId: varchar("run_as_user_id", { length: 256 }),
|
|
151
152
|
createdBy: varchar("created_by", { length: 256 }),
|
|
152
153
|
...timestamps
|
|
@@ -180,15 +181,15 @@ const subAgents = pgTable("sub_agents", {
|
|
|
180
181
|
...agentScoped,
|
|
181
182
|
...uiProperties,
|
|
182
183
|
prompt: text("prompt"),
|
|
183
|
-
conversationHistoryConfig: jsonb("conversation_history_config").$type().default({
|
|
184
|
+
conversationHistoryConfig: jsonb$1("conversation_history_config").$type().default({
|
|
184
185
|
mode: "full",
|
|
185
186
|
limit: 50,
|
|
186
187
|
maxOutputTokens: 4e3,
|
|
187
188
|
includeInternal: false,
|
|
188
189
|
messageTypes: ["chat", "tool-result"]
|
|
189
190
|
}),
|
|
190
|
-
models: jsonb("models").$type(),
|
|
191
|
-
stopWhen: jsonb("stop_when").$type(),
|
|
191
|
+
models: jsonb$1("models").$type(),
|
|
192
|
+
stopWhen: jsonb$1("stop_when").$type(),
|
|
192
193
|
...timestamps
|
|
193
194
|
}, (table) => [primaryKey({ columns: [
|
|
194
195
|
table.tenantId,
|
|
@@ -214,7 +215,7 @@ const skills = pgTable("skills", {
|
|
|
214
215
|
name: varchar("name", { length: 64 }).notNull(),
|
|
215
216
|
description: text("description").notNull(),
|
|
216
217
|
content: text("content").notNull(),
|
|
217
|
-
metadata: jsonb("metadata").$type(),
|
|
218
|
+
metadata: jsonb$1("metadata").$type(),
|
|
218
219
|
...timestamps
|
|
219
220
|
}, (table) => [primaryKey({ columns: [
|
|
220
221
|
table.tenantId,
|
|
@@ -347,8 +348,8 @@ const externalAgents = pgTable("external_agents", {
|
|
|
347
348
|
const dataComponents = pgTable("data_components", {
|
|
348
349
|
...projectScoped,
|
|
349
350
|
...uiProperties,
|
|
350
|
-
props: jsonb("props").$type().notNull(),
|
|
351
|
-
render: jsonb("render").$type(),
|
|
351
|
+
props: jsonb$1("props").$type().notNull(),
|
|
352
|
+
render: jsonb$1("render").$type(),
|
|
352
353
|
...timestamps
|
|
353
354
|
}, (table) => [primaryKey({ columns: [
|
|
354
355
|
table.tenantId,
|
|
@@ -401,8 +402,8 @@ const subAgentDataComponents = pgTable("sub_agent_data_components", {
|
|
|
401
402
|
const artifactComponents = pgTable("artifact_components", {
|
|
402
403
|
...projectScoped,
|
|
403
404
|
...uiProperties,
|
|
404
|
-
props: jsonb("props").$type(),
|
|
405
|
-
render: jsonb("render").$type(),
|
|
405
|
+
props: jsonb$1("props").$type(),
|
|
406
|
+
render: jsonb$1("render").$type(),
|
|
406
407
|
...timestamps
|
|
407
408
|
}, (table) => [primaryKey({ columns: [
|
|
408
409
|
table.tenantId,
|
|
@@ -460,12 +461,12 @@ const subAgentArtifactComponents = pgTable("sub_agent_artifact_components", {
|
|
|
460
461
|
const tools = pgTable("tools", {
|
|
461
462
|
...projectScoped,
|
|
462
463
|
...uiProperties,
|
|
463
|
-
config: jsonb("config").$type().notNull(),
|
|
464
|
+
config: jsonb$1("config").$type().notNull(),
|
|
464
465
|
credentialReferenceId: varchar("credential_reference_id", { length: 256 }),
|
|
465
466
|
credentialScope: varchar("credential_scope", { length: 50 }).notNull().default("project"),
|
|
466
|
-
headers: jsonb("headers").$type(),
|
|
467
|
+
headers: jsonb$1("headers").$type(),
|
|
467
468
|
imageUrl: text("image_url"),
|
|
468
|
-
capabilities: jsonb("capabilities").$type(),
|
|
469
|
+
capabilities: jsonb$1("capabilities").$type(),
|
|
469
470
|
lastError: text("last_error"),
|
|
470
471
|
isWorkApp: boolean("is_work_app").notNull().default(false),
|
|
471
472
|
...timestamps
|
|
@@ -527,9 +528,9 @@ const functionTools = pgTable("function_tools", {
|
|
|
527
528
|
]);
|
|
528
529
|
const functions = pgTable("functions", {
|
|
529
530
|
...projectScoped,
|
|
530
|
-
inputSchema: jsonb("input_schema").$type(),
|
|
531
|
+
inputSchema: jsonb$1("input_schema").$type(),
|
|
531
532
|
executeCode: text("execute_code").notNull(),
|
|
532
|
-
dependencies: jsonb("dependencies").$type(),
|
|
533
|
+
dependencies: jsonb$1("dependencies").$type(),
|
|
533
534
|
...timestamps
|
|
534
535
|
}, (table) => [primaryKey({ columns: [
|
|
535
536
|
table.tenantId,
|
|
@@ -543,9 +544,9 @@ const functions = pgTable("functions", {
|
|
|
543
544
|
const subAgentToolRelations = pgTable("sub_agent_tool_relations", {
|
|
544
545
|
...subAgentScoped,
|
|
545
546
|
toolId: varchar("tool_id", { length: 256 }).notNull(),
|
|
546
|
-
selectedTools: jsonb("selected_tools").$type(),
|
|
547
|
-
headers: jsonb("headers").$type(),
|
|
548
|
-
toolPolicies: jsonb("tool_policies").$type(),
|
|
547
|
+
selectedTools: jsonb$1("selected_tools").$type(),
|
|
548
|
+
headers: jsonb$1("headers").$type(),
|
|
549
|
+
toolPolicies: jsonb$1("tool_policies").$type(),
|
|
549
550
|
...timestamps
|
|
550
551
|
}, (table) => [
|
|
551
552
|
primaryKey({ columns: [
|
|
@@ -586,7 +587,7 @@ const subAgentToolRelations = pgTable("sub_agent_tool_relations", {
|
|
|
586
587
|
const subAgentExternalAgentRelations = pgTable("sub_agent_external_agent_relations", {
|
|
587
588
|
...subAgentScoped,
|
|
588
589
|
externalAgentId: varchar("external_agent_id", { length: 256 }).notNull(),
|
|
589
|
-
headers: jsonb("headers").$type(),
|
|
590
|
+
headers: jsonb$1("headers").$type(),
|
|
590
591
|
...timestamps
|
|
591
592
|
}, (table) => [
|
|
592
593
|
primaryKey({
|
|
@@ -630,7 +631,7 @@ const subAgentExternalAgentRelations = pgTable("sub_agent_external_agent_relatio
|
|
|
630
631
|
const subAgentTeamAgentRelations = pgTable("sub_agent_team_agent_relations", {
|
|
631
632
|
...subAgentScoped,
|
|
632
633
|
targetAgentId: varchar("target_agent_id", { length: 256 }).notNull(),
|
|
633
|
-
headers: jsonb("headers").$type(),
|
|
634
|
+
headers: jsonb$1("headers").$type(),
|
|
634
635
|
...timestamps
|
|
635
636
|
}, (table) => [
|
|
636
637
|
primaryKey({
|
|
@@ -674,7 +675,7 @@ const subAgentTeamAgentRelations = pgTable("sub_agent_team_agent_relations", {
|
|
|
674
675
|
const subAgentFunctionToolRelations = pgTable("sub_agent_function_tool_relations", {
|
|
675
676
|
...subAgentScoped,
|
|
676
677
|
functionToolId: varchar("function_tool_id", { length: 256 }).notNull(),
|
|
677
|
-
toolPolicies: jsonb("tool_policies").$type(),
|
|
678
|
+
toolPolicies: jsonb$1("tool_policies").$type(),
|
|
678
679
|
...timestamps
|
|
679
680
|
}, (table) => [
|
|
680
681
|
primaryKey({
|
|
@@ -722,7 +723,7 @@ const credentialReferences = pgTable("credential_references", {
|
|
|
722
723
|
name: uiProperties.name,
|
|
723
724
|
type: varchar("type", { length: 256 }).notNull(),
|
|
724
725
|
credentialStoreId: varchar("credential_store_id", { length: 256 }).notNull(),
|
|
725
|
-
retrievalParams: jsonb("retrieval_params").$type(),
|
|
726
|
+
retrievalParams: jsonb$1("retrieval_params").$type(),
|
|
726
727
|
toolId: varchar("tool_id", { length: 256 }),
|
|
727
728
|
userId: varchar("user_id", { length: 256 }),
|
|
728
729
|
createdBy: varchar("created_by", { length: 256 }),
|
|
@@ -775,8 +776,8 @@ const dataset = pgTable("dataset", {
|
|
|
775
776
|
const datasetItem = pgTable("dataset_item", {
|
|
776
777
|
...projectScoped,
|
|
777
778
|
datasetId: varchar("dataset_id", { length: 256 }).notNull(),
|
|
778
|
-
input: jsonb("input").$type().notNull(),
|
|
779
|
-
expectedOutput: jsonb("expected_output").$type(),
|
|
779
|
+
input: jsonb$1("input").$type().notNull(),
|
|
780
|
+
expectedOutput: jsonb$1("expected_output").$type(),
|
|
780
781
|
...timestamps
|
|
781
782
|
}, (table) => [primaryKey({ columns: [
|
|
782
783
|
table.tenantId,
|
|
@@ -799,9 +800,9 @@ const evaluator = pgTable("evaluator", {
|
|
|
799
800
|
...projectScoped,
|
|
800
801
|
...uiProperties,
|
|
801
802
|
prompt: text("prompt").notNull(),
|
|
802
|
-
schema: jsonb("schema").$type().notNull(),
|
|
803
|
-
model: jsonb("model").$type().notNull(),
|
|
804
|
-
passCriteria: jsonb("pass_criteria").$type(),
|
|
803
|
+
schema: jsonb$1("schema").$type().notNull(),
|
|
804
|
+
model: jsonb$1("model").$type().notNull(),
|
|
805
|
+
passCriteria: jsonb$1("pass_criteria").$type(),
|
|
805
806
|
...timestamps
|
|
806
807
|
}, (table) => [primaryKey({ columns: [
|
|
807
808
|
table.tenantId,
|
|
@@ -859,7 +860,7 @@ const datasetRunConfig = pgTable("dataset_run_config", {
|
|
|
859
860
|
*/
|
|
860
861
|
const evaluationSuiteConfig = pgTable("evaluation_suite_config", {
|
|
861
862
|
...projectScoped,
|
|
862
|
-
filters: jsonb("filters").$type(),
|
|
863
|
+
filters: jsonb$1("filters").$type(),
|
|
863
864
|
sampleRate: doublePrecision("sample_rate"),
|
|
864
865
|
...timestamps
|
|
865
866
|
}, (table) => [primaryKey({ columns: [
|
|
@@ -1010,7 +1011,7 @@ const evaluationRunConfig = pgTable("evaluation_run_config", {
|
|
|
1010
1011
|
*/
|
|
1011
1012
|
const evaluationJobConfig = pgTable("evaluation_job_config", {
|
|
1012
1013
|
...projectScoped,
|
|
1013
|
-
jobFilters: jsonb("job_filters").$type(),
|
|
1014
|
+
jobFilters: jsonb$1("job_filters").$type(),
|
|
1014
1015
|
...timestamps
|
|
1015
1016
|
}, (table) => [primaryKey({ columns: [
|
|
1016
1017
|
table.tenantId,
|