@inkeep/agents-core 0.33.2 → 0.34.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/{chunk-62UIQW4L.js → chunk-4VUM4EJL.js} +1 -1
- package/dist/{chunk-MQTANAMG.js → chunk-7CLFCY6J.js} +2 -0
- package/dist/{chunk-S75NGJ6E.js → chunk-EKV6C5GS.js} +1 -1
- package/dist/{chunk-6MC5N2NE.js → chunk-UMFCT6A6.js} +3 -2
- package/dist/client-exports.cjs +3 -2
- package/dist/client-exports.d.cts +5 -5
- package/dist/client-exports.d.ts +5 -5
- package/dist/client-exports.js +2 -2
- package/dist/constants/models.cjs +2 -0
- package/dist/constants/models.d.cts +2 -0
- package/dist/constants/models.d.ts +2 -0
- package/dist/constants/models.js +1 -1
- package/dist/db/schema.cjs +1 -1
- package/dist/db/schema.d.cts +2 -2
- package/dist/db/schema.d.ts +2 -2
- package/dist/db/schema.js +1 -1
- package/dist/index.cjs +42 -7
- package/dist/index.d.cts +251 -245
- package/dist/index.d.ts +251 -245
- package/dist/index.js +46 -14
- package/dist/{schema-DYCQuSqA.d.ts → schema-CaEvIRdT.d.cts} +2 -2
- package/dist/{schema-dODUpZEu.d.cts → schema-DvYv9PQ1.d.ts} +2 -2
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/{utility-B73oHEd8.d.cts → utility-htaewQEL.d.cts} +246 -242
- package/dist/{utility-B73oHEd8.d.ts → utility-htaewQEL.d.ts} +246 -242
- package/dist/validation/index.cjs +3 -2
- package/dist/validation/index.d.cts +2 -2
- package/dist/validation/index.d.ts +2 -2
- package/dist/validation/index.js +2 -2
- package/drizzle/meta/0000_snapshot.json +93 -459
- package/drizzle/meta/_journal.json +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AgentWithinContextOfProjectSchema, resourceIdSchema, MAX_ID_LENGTH } from './chunk-
|
|
1
|
+
import { AgentWithinContextOfProjectSchema, resourceIdSchema, MAX_ID_LENGTH } from './chunk-UMFCT6A6.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
// src/validation/cycleDetection.ts
|
|
@@ -12,6 +12,7 @@ var ANTHROPIC_MODELS = {
|
|
|
12
12
|
CLAUDE_3_5_HAIKU_20241022: "anthropic/claude-3-5-haiku-20241022"
|
|
13
13
|
};
|
|
14
14
|
var OPENAI_MODELS = {
|
|
15
|
+
GPT_5_1: "openai/gpt-5.1",
|
|
15
16
|
GPT_5: "openai/gpt-5",
|
|
16
17
|
GPT_5_20250807: "openai/gpt-5-2025-08-07",
|
|
17
18
|
GPT_5_MINI: "openai/gpt-5-mini",
|
|
@@ -26,6 +27,7 @@ var OPENAI_MODELS = {
|
|
|
26
27
|
GPT_4_1_NANO_20250414: "openai/gpt-4.1-nano-2025-04-14"
|
|
27
28
|
};
|
|
28
29
|
var GOOGLE_MODELS = {
|
|
30
|
+
GEMINI_3_PRO_PREVIEW: "google/gemini-3-pro-preview",
|
|
29
31
|
GEMINI_2_5_PRO: "google/gemini-2.5-pro",
|
|
30
32
|
GEMINI_2_5_FLASH: "google/gemini-2.5-flash",
|
|
31
33
|
GEMINI_2_5_FLASH_LITE: "google/gemini-2.5-flash-lite"
|
|
@@ -165,7 +165,7 @@ var subAgents = pgTable(
|
|
|
165
165
|
...agentScoped,
|
|
166
166
|
...uiProperties,
|
|
167
167
|
prompt: text("prompt").notNull(),
|
|
168
|
-
conversationHistoryConfig: jsonb("conversation_history_config").$type().
|
|
168
|
+
conversationHistoryConfig: jsonb("conversation_history_config").$type().default({
|
|
169
169
|
mode: "full",
|
|
170
170
|
limit: 50,
|
|
171
171
|
maxOutputTokens: 4e3,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { subAgents, subAgentRelations, agents, tasks, taskRelations, conversations, messages, contextCache, dataComponents, subAgentDataComponents, artifactComponents, subAgentArtifactComponents, externalAgents, apiKeys, credentialReferences, tools, functionTools, functions, contextConfigs, subAgentToolRelations, subAgentExternalAgentRelations, subAgentTeamAgentRelations, ledgerArtifacts, projects } from './chunk-EKV6C5GS.js';
|
|
1
2
|
import { VALID_RELATION_TYPES, MCPTransportType, TOOL_STATUS_VALUES, CredentialStoreType, MCPServerType } from './chunk-YFHT5M2R.js';
|
|
2
|
-
import { subAgents, subAgentRelations, agents, tasks, taskRelations, conversations, messages, contextCache, dataComponents, subAgentDataComponents, artifactComponents, subAgentArtifactComponents, externalAgents, apiKeys, credentialReferences, tools, functionTools, functions, contextConfigs, subAgentToolRelations, subAgentExternalAgentRelations, subAgentTeamAgentRelations, ledgerArtifacts, projects } from './chunk-S75NGJ6E.js';
|
|
3
3
|
import { z } from '@hono/zod-openapi';
|
|
4
4
|
import { createSelectSchema as createSelectSchema$1, createInsertSchema as createInsertSchema$1 } from 'drizzle-zod';
|
|
5
5
|
import Ajv from 'ajv';
|
|
@@ -621,7 +621,8 @@ var McpToolSchema = ToolInsertSchema.extend({
|
|
|
621
621
|
version: z.string().optional(),
|
|
622
622
|
createdAt: z.date(),
|
|
623
623
|
updatedAt: z.date(),
|
|
624
|
-
expiresAt: z.date().optional()
|
|
624
|
+
expiresAt: z.date().optional(),
|
|
625
|
+
relationshipId: z.string().optional()
|
|
625
626
|
}).openapi("McpTool");
|
|
626
627
|
var MCPToolConfigSchema = McpToolSchema.omit({
|
|
627
628
|
config: true,
|
package/dist/client-exports.cjs
CHANGED
|
@@ -171,7 +171,7 @@ var subAgents = pgCore.pgTable(
|
|
|
171
171
|
...agentScoped,
|
|
172
172
|
...uiProperties,
|
|
173
173
|
prompt: pgCore.text("prompt").notNull(),
|
|
174
|
-
conversationHistoryConfig: pgCore.jsonb("conversation_history_config").$type().
|
|
174
|
+
conversationHistoryConfig: pgCore.jsonb("conversation_history_config").$type().default({
|
|
175
175
|
mode: "full",
|
|
176
176
|
limit: 50,
|
|
177
177
|
maxOutputTokens: 4e3,
|
|
@@ -1582,7 +1582,8 @@ var McpToolSchema = ToolInsertSchema.extend({
|
|
|
1582
1582
|
version: zodOpenapi.z.string().optional(),
|
|
1583
1583
|
createdAt: zodOpenapi.z.date(),
|
|
1584
1584
|
updatedAt: zodOpenapi.z.date(),
|
|
1585
|
-
expiresAt: zodOpenapi.z.date().optional()
|
|
1585
|
+
expiresAt: zodOpenapi.z.date().optional(),
|
|
1586
|
+
relationshipId: zodOpenapi.z.string().optional()
|
|
1586
1587
|
}).openapi("McpTool");
|
|
1587
1588
|
McpToolSchema.omit({
|
|
1588
1589
|
config: true,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { i as ACTIVITY_NAMES, g as ACTIVITY_STATUS, f as ACTIVITY_TYPES, h as AGENT_IDS, p as AGGREGATE_OPERATORS, A as AI_OPERATIONS, j as AI_TOOL_TYPES, o as DATA_SOURCES, k as DATA_TYPES, D as DELEGATION_FROM_SUB_AGENT_ID, b as DELEGATION_ID, a as DELEGATION_TO_SUB_AGENT_ID, F as FIELD_TYPES, O as OPERATORS, m as ORDER_DIRECTIONS, P as PANEL_TYPES, q as QUERY_DEFAULTS, l as QUERY_EXPRESSIONS, Q as QUERY_FIELD_CONFIGS, n as QUERY_TYPES, R as REDUCE_OPERATIONS, e as SPAN_KEYS, S as SPAN_NAMES, T as TRANSFER_FROM_SUB_AGENT_ID, c as TRANSFER_TO_SUB_AGENT_ID, U as UNKNOWN_VALUE, d as detectAuthenticationRequired } from './auth-detection-CGqhPDnj.cjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { C as ConversationHistoryConfig, F as FunctionApiInsertSchema, A as ApiKeyApiUpdateSchema, a as FullAgentAgentInsertSchema } from './utility-
|
|
4
|
-
export { e as AgentStopWhen, b as AgentStopWhenSchema, h as CredentialStoreType, j as FunctionApiSelectSchema, k as FunctionApiUpdateSchema, i as MCPTransportType, g as ModelSettings, M as ModelSettingsSchema, d as StopWhen, S as StopWhenSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema } from './utility-
|
|
3
|
+
import { C as ConversationHistoryConfig, F as FunctionApiInsertSchema, A as ApiKeyApiUpdateSchema, a as FullAgentAgentInsertSchema } from './utility-htaewQEL.cjs';
|
|
4
|
+
export { e as AgentStopWhen, b as AgentStopWhenSchema, h as CredentialStoreType, j as FunctionApiSelectSchema, k as FunctionApiUpdateSchema, i as MCPTransportType, g as ModelSettings, M as ModelSettingsSchema, d as StopWhen, S as StopWhenSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema } from './utility-htaewQEL.cjs';
|
|
5
5
|
export { v as validatePropsAsJsonSchema } from './props-validation-BMR1qNiy.cjs';
|
|
6
6
|
import 'pino';
|
|
7
7
|
import 'drizzle-zod';
|
|
@@ -134,8 +134,8 @@ declare const DataComponentApiInsertSchema: z.ZodObject<{
|
|
|
134
134
|
}, z.core.$strip>>>;
|
|
135
135
|
}, z.core.$strip>;
|
|
136
136
|
declare const ArtifactComponentApiInsertSchema: z.ZodObject<{
|
|
137
|
-
name: z.ZodString;
|
|
138
137
|
id: z.ZodString;
|
|
138
|
+
name: z.ZodString;
|
|
139
139
|
description: z.ZodString;
|
|
140
140
|
props: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
|
|
141
141
|
}, {
|
|
@@ -170,8 +170,8 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
|
|
|
170
170
|
description: z.ZodOptional<z.ZodString>;
|
|
171
171
|
defaultSubAgentId: z.ZodOptional<z.ZodString>;
|
|
172
172
|
subAgents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
173
|
-
name: z.ZodString;
|
|
174
173
|
id: z.ZodString;
|
|
174
|
+
name: z.ZodString;
|
|
175
175
|
description: z.ZodString;
|
|
176
176
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
177
177
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
@@ -198,7 +198,7 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
|
|
|
198
198
|
}, {
|
|
199
199
|
stepCountIs?: number | undefined;
|
|
200
200
|
}>>>>;
|
|
201
|
-
conversationHistoryConfig: z.ZodOptional<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig
|
|
201
|
+
conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
|
|
202
202
|
type: z.ZodLiteral<"internal">;
|
|
203
203
|
canUse: z.ZodArray<z.ZodObject<{
|
|
204
204
|
agentToolRelationId: z.ZodOptional<z.ZodString>;
|
package/dist/client-exports.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { i as ACTIVITY_NAMES, g as ACTIVITY_STATUS, f as ACTIVITY_TYPES, h as AGENT_IDS, p as AGGREGATE_OPERATORS, A as AI_OPERATIONS, j as AI_TOOL_TYPES, o as DATA_SOURCES, k as DATA_TYPES, D as DELEGATION_FROM_SUB_AGENT_ID, b as DELEGATION_ID, a as DELEGATION_TO_SUB_AGENT_ID, F as FIELD_TYPES, O as OPERATORS, m as ORDER_DIRECTIONS, P as PANEL_TYPES, q as QUERY_DEFAULTS, l as QUERY_EXPRESSIONS, Q as QUERY_FIELD_CONFIGS, n as QUERY_TYPES, R as REDUCE_OPERATIONS, e as SPAN_KEYS, S as SPAN_NAMES, T as TRANSFER_FROM_SUB_AGENT_ID, c as TRANSFER_TO_SUB_AGENT_ID, U as UNKNOWN_VALUE, d as detectAuthenticationRequired } from './auth-detection-CGqhPDnj.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { C as ConversationHistoryConfig, F as FunctionApiInsertSchema, A as ApiKeyApiUpdateSchema, a as FullAgentAgentInsertSchema } from './utility-
|
|
4
|
-
export { e as AgentStopWhen, b as AgentStopWhenSchema, h as CredentialStoreType, j as FunctionApiSelectSchema, k as FunctionApiUpdateSchema, i as MCPTransportType, g as ModelSettings, M as ModelSettingsSchema, d as StopWhen, S as StopWhenSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema } from './utility-
|
|
3
|
+
import { C as ConversationHistoryConfig, F as FunctionApiInsertSchema, A as ApiKeyApiUpdateSchema, a as FullAgentAgentInsertSchema } from './utility-htaewQEL.js';
|
|
4
|
+
export { e as AgentStopWhen, b as AgentStopWhenSchema, h as CredentialStoreType, j as FunctionApiSelectSchema, k as FunctionApiUpdateSchema, i as MCPTransportType, g as ModelSettings, M as ModelSettingsSchema, d as StopWhen, S as StopWhenSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema } from './utility-htaewQEL.js';
|
|
5
5
|
export { v as validatePropsAsJsonSchema } from './props-validation-BMR1qNiy.js';
|
|
6
6
|
import 'pino';
|
|
7
7
|
import 'drizzle-zod';
|
|
@@ -134,8 +134,8 @@ declare const DataComponentApiInsertSchema: z.ZodObject<{
|
|
|
134
134
|
}, z.core.$strip>>>;
|
|
135
135
|
}, z.core.$strip>;
|
|
136
136
|
declare const ArtifactComponentApiInsertSchema: z.ZodObject<{
|
|
137
|
-
name: z.ZodString;
|
|
138
137
|
id: z.ZodString;
|
|
138
|
+
name: z.ZodString;
|
|
139
139
|
description: z.ZodString;
|
|
140
140
|
props: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
|
|
141
141
|
}, {
|
|
@@ -170,8 +170,8 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
|
|
|
170
170
|
description: z.ZodOptional<z.ZodString>;
|
|
171
171
|
defaultSubAgentId: z.ZodOptional<z.ZodString>;
|
|
172
172
|
subAgents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
173
|
-
name: z.ZodString;
|
|
174
173
|
id: z.ZodString;
|
|
174
|
+
name: z.ZodString;
|
|
175
175
|
description: z.ZodString;
|
|
176
176
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
177
177
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
@@ -198,7 +198,7 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
|
|
|
198
198
|
}, {
|
|
199
199
|
stepCountIs?: number | undefined;
|
|
200
200
|
}>>>>;
|
|
201
|
-
conversationHistoryConfig: z.ZodOptional<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig
|
|
201
|
+
conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
|
|
202
202
|
type: z.ZodLiteral<"internal">;
|
|
203
203
|
canUse: z.ZodArray<z.ZodObject<{
|
|
204
204
|
agentToolRelationId: z.ZodOptional<z.ZodString>;
|
package/dist/client-exports.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { ACTIVITY_NAMES, ACTIVITY_STATUS, ACTIVITY_TYPES, AGENT_IDS, AGGREGATE_OPERATORS, AI_OPERATIONS, AI_TOOL_TYPES, DATA_SOURCES, DATA_TYPES, DELEGATION_FROM_SUB_AGENT_ID, DELEGATION_ID, DELEGATION_TO_SUB_AGENT_ID, FIELD_TYPES, OPERATORS, ORDER_DIRECTIONS, PANEL_TYPES, QUERY_DEFAULTS, QUERY_EXPRESSIONS, QUERY_FIELD_CONFIGS, QUERY_TYPES, REDUCE_OPERATIONS, SPAN_KEYS, SPAN_NAMES, TRANSFER_FROM_SUB_AGENT_ID, TRANSFER_TO_SUB_AGENT_ID, UNKNOWN_VALUE, detectAuthenticationRequired } from './chunk-OP3KPT4T.js';
|
|
2
|
-
import { ModelSettingsSchema, schemaValidationDefaults, FullAgentAgentInsertSchema, ArtifactComponentApiInsertSchema } from './chunk-
|
|
3
|
-
export { AgentStopWhenSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, ModelSettingsSchema, StopWhenSchema, SubAgentStopWhenSchema, validatePropsAsJsonSchema } from './chunk-
|
|
2
|
+
import { ModelSettingsSchema, schemaValidationDefaults, FullAgentAgentInsertSchema, ArtifactComponentApiInsertSchema } from './chunk-UMFCT6A6.js';
|
|
3
|
+
export { AgentStopWhenSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, ModelSettingsSchema, StopWhenSchema, SubAgentStopWhenSchema, validatePropsAsJsonSchema } from './chunk-UMFCT6A6.js';
|
|
4
4
|
import { CredentialStoreType } from './chunk-YFHT5M2R.js';
|
|
5
5
|
export { CredentialStoreType, MCPTransportType } from './chunk-YFHT5M2R.js';
|
|
6
6
|
import { z } from 'zod';
|
|
@@ -14,6 +14,7 @@ var ANTHROPIC_MODELS = {
|
|
|
14
14
|
CLAUDE_3_5_HAIKU_20241022: "anthropic/claude-3-5-haiku-20241022"
|
|
15
15
|
};
|
|
16
16
|
var OPENAI_MODELS = {
|
|
17
|
+
GPT_5_1: "openai/gpt-5.1",
|
|
17
18
|
GPT_5: "openai/gpt-5",
|
|
18
19
|
GPT_5_20250807: "openai/gpt-5-2025-08-07",
|
|
19
20
|
GPT_5_MINI: "openai/gpt-5-mini",
|
|
@@ -28,6 +29,7 @@ var OPENAI_MODELS = {
|
|
|
28
29
|
GPT_4_1_NANO_20250414: "openai/gpt-4.1-nano-2025-04-14"
|
|
29
30
|
};
|
|
30
31
|
var GOOGLE_MODELS = {
|
|
32
|
+
GEMINI_3_PRO_PREVIEW: "google/gemini-3-pro-preview",
|
|
31
33
|
GEMINI_2_5_PRO: "google/gemini-2.5-pro",
|
|
32
34
|
GEMINI_2_5_FLASH: "google/gemini-2.5-flash",
|
|
33
35
|
GEMINI_2_5_FLASH_LITE: "google/gemini-2.5-flash-lite"
|
|
@@ -14,6 +14,7 @@ declare const ANTHROPIC_MODELS: {
|
|
|
14
14
|
readonly CLAUDE_3_5_HAIKU_20241022: "anthropic/claude-3-5-haiku-20241022";
|
|
15
15
|
};
|
|
16
16
|
declare const OPENAI_MODELS: {
|
|
17
|
+
readonly GPT_5_1: "openai/gpt-5.1";
|
|
17
18
|
readonly GPT_5: "openai/gpt-5";
|
|
18
19
|
readonly GPT_5_20250807: "openai/gpt-5-2025-08-07";
|
|
19
20
|
readonly GPT_5_MINI: "openai/gpt-5-mini";
|
|
@@ -28,6 +29,7 @@ declare const OPENAI_MODELS: {
|
|
|
28
29
|
readonly GPT_4_1_NANO_20250414: "openai/gpt-4.1-nano-2025-04-14";
|
|
29
30
|
};
|
|
30
31
|
declare const GOOGLE_MODELS: {
|
|
32
|
+
readonly GEMINI_3_PRO_PREVIEW: "google/gemini-3-pro-preview";
|
|
31
33
|
readonly GEMINI_2_5_PRO: "google/gemini-2.5-pro";
|
|
32
34
|
readonly GEMINI_2_5_FLASH: "google/gemini-2.5-flash";
|
|
33
35
|
readonly GEMINI_2_5_FLASH_LITE: "google/gemini-2.5-flash-lite";
|
|
@@ -14,6 +14,7 @@ declare const ANTHROPIC_MODELS: {
|
|
|
14
14
|
readonly CLAUDE_3_5_HAIKU_20241022: "anthropic/claude-3-5-haiku-20241022";
|
|
15
15
|
};
|
|
16
16
|
declare const OPENAI_MODELS: {
|
|
17
|
+
readonly GPT_5_1: "openai/gpt-5.1";
|
|
17
18
|
readonly GPT_5: "openai/gpt-5";
|
|
18
19
|
readonly GPT_5_20250807: "openai/gpt-5-2025-08-07";
|
|
19
20
|
readonly GPT_5_MINI: "openai/gpt-5-mini";
|
|
@@ -28,6 +29,7 @@ declare const OPENAI_MODELS: {
|
|
|
28
29
|
readonly GPT_4_1_NANO_20250414: "openai/gpt-4.1-nano-2025-04-14";
|
|
29
30
|
};
|
|
30
31
|
declare const GOOGLE_MODELS: {
|
|
32
|
+
readonly GEMINI_3_PRO_PREVIEW: "google/gemini-3-pro-preview";
|
|
31
33
|
readonly GEMINI_2_5_PRO: "google/gemini-2.5-pro";
|
|
32
34
|
readonly GEMINI_2_5_FLASH: "google/gemini-2.5-flash";
|
|
33
35
|
readonly GEMINI_2_5_FLASH_LITE: "google/gemini-2.5-flash-lite";
|
package/dist/constants/models.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ANTHROPIC_MODELS, GOOGLE_MODELS, OPENAI_MODELS } from '../chunk-
|
|
1
|
+
export { ANTHROPIC_MODELS, GOOGLE_MODELS, OPENAI_MODELS } from '../chunk-7CLFCY6J.js';
|
package/dist/db/schema.cjs
CHANGED
|
@@ -113,7 +113,7 @@ var subAgents = pgCore.pgTable(
|
|
|
113
113
|
...agentScoped,
|
|
114
114
|
...uiProperties,
|
|
115
115
|
prompt: pgCore.text("prompt").notNull(),
|
|
116
|
-
conversationHistoryConfig: pgCore.jsonb("conversation_history_config").$type().
|
|
116
|
+
conversationHistoryConfig: pgCore.jsonb("conversation_history_config").$type().default({
|
|
117
117
|
mode: "full",
|
|
118
118
|
limit: 50,
|
|
119
119
|
maxOutputTokens: 4e3,
|
package/dist/db/schema.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'drizzle-orm';
|
|
2
2
|
import 'drizzle-orm/pg-core';
|
|
3
|
-
import '../utility-
|
|
4
|
-
export { G as agentRelations, J as agentToolRelationsRelations, a as agents, y as apiKeys, I as apiKeysRelations, j as artifactComponents, O as artifactComponentsRelations, b as contextCache, E as contextCacheRelations, c as contextConfigs, D as contextConfigsRelations, v as conversations, M as conversationsRelations, z as credentialReferences, K as credentialReferencesRelations, h as dataComponents, Q as dataComponentsRelations, f as externalAgents, H as externalAgentsRelations, m as functionTools, V as functionToolsRelations, n as functions, T as functionsRelations, x as ledgerArtifacts, S as ledgerArtifactsRelations, w as messages, N as messagesRelations, p as projects, B as projectsRelations, k as subAgentArtifactComponents, P as subAgentArtifactComponentsRelations, i as subAgentDataComponents, R as subAgentDataComponentsRelations, q as subAgentExternalAgentRelations, X as subAgentExternalAgentRelationsRelations, u as subAgentFunctionToolRelations, W as subAgentFunctionToolRelationsRelations, e as subAgentRelations, U as subAgentRelationsRelations, r as subAgentTeamAgentRelations, Y as subAgentTeamAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, F as subAgentsRelations, g as taskRelations, C as taskRelationsRelations, t as tasks, A as tasksRelations, l as tools, L as toolsRelations } from '../schema-
|
|
3
|
+
import '../utility-htaewQEL.cjs';
|
|
4
|
+
export { G as agentRelations, J as agentToolRelationsRelations, a as agents, y as apiKeys, I as apiKeysRelations, j as artifactComponents, O as artifactComponentsRelations, b as contextCache, E as contextCacheRelations, c as contextConfigs, D as contextConfigsRelations, v as conversations, M as conversationsRelations, z as credentialReferences, K as credentialReferencesRelations, h as dataComponents, Q as dataComponentsRelations, f as externalAgents, H as externalAgentsRelations, m as functionTools, V as functionToolsRelations, n as functions, T as functionsRelations, x as ledgerArtifacts, S as ledgerArtifactsRelations, w as messages, N as messagesRelations, p as projects, B as projectsRelations, k as subAgentArtifactComponents, P as subAgentArtifactComponentsRelations, i as subAgentDataComponents, R as subAgentDataComponentsRelations, q as subAgentExternalAgentRelations, X as subAgentExternalAgentRelationsRelations, u as subAgentFunctionToolRelations, W as subAgentFunctionToolRelationsRelations, e as subAgentRelations, U as subAgentRelationsRelations, r as subAgentTeamAgentRelations, Y as subAgentTeamAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, F as subAgentsRelations, g as taskRelations, C as taskRelationsRelations, t as tasks, A as tasksRelations, l as tools, L as toolsRelations } from '../schema-CaEvIRdT.cjs';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import 'drizzle-zod';
|
|
7
7
|
import '@hono/zod-openapi';
|
package/dist/db/schema.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'drizzle-orm';
|
|
2
2
|
import 'drizzle-orm/pg-core';
|
|
3
|
-
import '../utility-
|
|
4
|
-
export { G as agentRelations, J as agentToolRelationsRelations, a as agents, y as apiKeys, I as apiKeysRelations, j as artifactComponents, O as artifactComponentsRelations, b as contextCache, E as contextCacheRelations, c as contextConfigs, D as contextConfigsRelations, v as conversations, M as conversationsRelations, z as credentialReferences, K as credentialReferencesRelations, h as dataComponents, Q as dataComponentsRelations, f as externalAgents, H as externalAgentsRelations, m as functionTools, V as functionToolsRelations, n as functions, T as functionsRelations, x as ledgerArtifacts, S as ledgerArtifactsRelations, w as messages, N as messagesRelations, p as projects, B as projectsRelations, k as subAgentArtifactComponents, P as subAgentArtifactComponentsRelations, i as subAgentDataComponents, R as subAgentDataComponentsRelations, q as subAgentExternalAgentRelations, X as subAgentExternalAgentRelationsRelations, u as subAgentFunctionToolRelations, W as subAgentFunctionToolRelationsRelations, e as subAgentRelations, U as subAgentRelationsRelations, r as subAgentTeamAgentRelations, Y as subAgentTeamAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, F as subAgentsRelations, g as taskRelations, C as taskRelationsRelations, t as tasks, A as tasksRelations, l as tools, L as toolsRelations } from '../schema-
|
|
3
|
+
import '../utility-htaewQEL.js';
|
|
4
|
+
export { G as agentRelations, J as agentToolRelationsRelations, a as agents, y as apiKeys, I as apiKeysRelations, j as artifactComponents, O as artifactComponentsRelations, b as contextCache, E as contextCacheRelations, c as contextConfigs, D as contextConfigsRelations, v as conversations, M as conversationsRelations, z as credentialReferences, K as credentialReferencesRelations, h as dataComponents, Q as dataComponentsRelations, f as externalAgents, H as externalAgentsRelations, m as functionTools, V as functionToolsRelations, n as functions, T as functionsRelations, x as ledgerArtifacts, S as ledgerArtifactsRelations, w as messages, N as messagesRelations, p as projects, B as projectsRelations, k as subAgentArtifactComponents, P as subAgentArtifactComponentsRelations, i as subAgentDataComponents, R as subAgentDataComponentsRelations, q as subAgentExternalAgentRelations, X as subAgentExternalAgentRelationsRelations, u as subAgentFunctionToolRelations, W as subAgentFunctionToolRelationsRelations, e as subAgentRelations, U as subAgentRelationsRelations, r as subAgentTeamAgentRelations, Y as subAgentTeamAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, F as subAgentsRelations, g as taskRelations, C as taskRelationsRelations, t as tasks, A as tasksRelations, l as tools, L as toolsRelations } from '../schema-DvYv9PQ1.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import 'drizzle-zod';
|
|
7
7
|
import '@hono/zod-openapi';
|
package/dist/db/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { agentRelations, agentToolRelationsRelations, agents, apiKeys, apiKeysRelations, artifactComponents, artifactComponentsRelations, contextCache, contextCacheRelations, contextConfigs, contextConfigsRelations, conversations, conversationsRelations, credentialReferences, credentialReferencesRelations, dataComponents, dataComponentsRelations, externalAgents, externalAgentsRelations, functionTools, functionToolsRelations, functions, functionsRelations, ledgerArtifacts, ledgerArtifactsRelations, messages, messagesRelations, projects, projectsRelations, subAgentArtifactComponents, subAgentArtifactComponentsRelations, subAgentDataComponents, subAgentDataComponentsRelations, subAgentExternalAgentRelations, subAgentExternalAgentRelationsRelations, subAgentFunctionToolRelations, subAgentFunctionToolRelationsRelations, subAgentRelations, subAgentRelationsRelations, subAgentTeamAgentRelations, subAgentTeamAgentRelationsRelations, subAgentToolRelations, subAgents, subAgentsRelations, taskRelations, taskRelationsRelations, tasks, tasksRelations, tools, toolsRelations } from '../chunk-
|
|
1
|
+
export { agentRelations, agentToolRelationsRelations, agents, apiKeys, apiKeysRelations, artifactComponents, artifactComponentsRelations, contextCache, contextCacheRelations, contextConfigs, contextConfigsRelations, conversations, conversationsRelations, credentialReferences, credentialReferencesRelations, dataComponents, dataComponentsRelations, externalAgents, externalAgentsRelations, functionTools, functionToolsRelations, functions, functionsRelations, ledgerArtifacts, ledgerArtifactsRelations, messages, messagesRelations, projects, projectsRelations, subAgentArtifactComponents, subAgentArtifactComponentsRelations, subAgentDataComponents, subAgentDataComponentsRelations, subAgentExternalAgentRelations, subAgentExternalAgentRelationsRelations, subAgentFunctionToolRelations, subAgentFunctionToolRelationsRelations, subAgentRelations, subAgentRelationsRelations, subAgentTeamAgentRelations, subAgentTeamAgentRelationsRelations, subAgentToolRelations, subAgents, subAgentsRelations, taskRelations, taskRelationsRelations, tasks, tasksRelations, tools, toolsRelations } from '../chunk-EKV6C5GS.js';
|
package/dist/index.cjs
CHANGED
|
@@ -213024,6 +213024,7 @@ var ANTHROPIC_MODELS = {
|
|
|
213024
213024
|
CLAUDE_3_5_HAIKU_20241022: "anthropic/claude-3-5-haiku-20241022"
|
|
213025
213025
|
};
|
|
213026
213026
|
var OPENAI_MODELS = {
|
|
213027
|
+
GPT_5_1: "openai/gpt-5.1",
|
|
213027
213028
|
GPT_5: "openai/gpt-5",
|
|
213028
213029
|
GPT_5_20250807: "openai/gpt-5-2025-08-07",
|
|
213029
213030
|
GPT_5_MINI: "openai/gpt-5-mini",
|
|
@@ -213038,6 +213039,7 @@ var OPENAI_MODELS = {
|
|
|
213038
213039
|
GPT_4_1_NANO_20250414: "openai/gpt-4.1-nano-2025-04-14"
|
|
213039
213040
|
};
|
|
213040
213041
|
var GOOGLE_MODELS = {
|
|
213042
|
+
GEMINI_3_PRO_PREVIEW: "google/gemini-3-pro-preview",
|
|
213041
213043
|
GEMINI_2_5_PRO: "google/gemini-2.5-pro",
|
|
213042
213044
|
GEMINI_2_5_FLASH: "google/gemini-2.5-flash",
|
|
213043
213045
|
GEMINI_2_5_FLASH_LITE: "google/gemini-2.5-flash-lite"
|
|
@@ -213770,7 +213772,7 @@ var subAgents = pgCore.pgTable(
|
|
|
213770
213772
|
...agentScoped,
|
|
213771
213773
|
...uiProperties,
|
|
213772
213774
|
prompt: pgCore.text("prompt").notNull(),
|
|
213773
|
-
conversationHistoryConfig: pgCore.jsonb("conversation_history_config").$type().
|
|
213775
|
+
conversationHistoryConfig: pgCore.jsonb("conversation_history_config").$type().default({
|
|
213774
213776
|
mode: "full",
|
|
213775
213777
|
limit: 50,
|
|
213776
213778
|
maxOutputTokens: 4e3,
|
|
@@ -215198,7 +215200,8 @@ var McpToolSchema = ToolInsertSchema.extend({
|
|
|
215198
215200
|
version: zodOpenapi.z.string().optional(),
|
|
215199
215201
|
createdAt: zodOpenapi.z.date(),
|
|
215200
215202
|
updatedAt: zodOpenapi.z.date(),
|
|
215201
|
-
expiresAt: zodOpenapi.z.date().optional()
|
|
215203
|
+
expiresAt: zodOpenapi.z.date().optional(),
|
|
215204
|
+
relationshipId: zodOpenapi.z.string().optional()
|
|
215202
215205
|
}).openapi("McpTool");
|
|
215203
215206
|
var MCPToolConfigSchema = McpToolSchema.omit({
|
|
215204
215207
|
config: true,
|
|
@@ -216025,6 +216028,29 @@ var _TemplateEngine = class _TemplateEngine {
|
|
|
216025
216028
|
throw error;
|
|
216026
216029
|
}
|
|
216027
216030
|
}
|
|
216031
|
+
/**
|
|
216032
|
+
* Normalize JMES path by wrapping property names with dashes in quotes
|
|
216033
|
+
* Example: headers.x-tenant-id -> headers."x-tenant-id"
|
|
216034
|
+
* Example: api-responses[0].response-code -> "api-responses"[0]."response-code"
|
|
216035
|
+
*/
|
|
216036
|
+
static normalizeJMESPath(path2) {
|
|
216037
|
+
const segments = path2.split(".");
|
|
216038
|
+
return segments.map((segment) => {
|
|
216039
|
+
if (!segment.includes("-")) {
|
|
216040
|
+
return segment;
|
|
216041
|
+
}
|
|
216042
|
+
if (segment.startsWith('"') && segment.includes('"')) {
|
|
216043
|
+
return segment;
|
|
216044
|
+
}
|
|
216045
|
+
const bracketIndex = segment.indexOf("[");
|
|
216046
|
+
if (bracketIndex !== -1) {
|
|
216047
|
+
const propertyName = segment.substring(0, bracketIndex);
|
|
216048
|
+
const arrayAccess = segment.substring(bracketIndex);
|
|
216049
|
+
return `"${propertyName}"${arrayAccess}`;
|
|
216050
|
+
}
|
|
216051
|
+
return `"${segment}"`;
|
|
216052
|
+
}).join(".");
|
|
216053
|
+
}
|
|
216028
216054
|
/**
|
|
216029
216055
|
* Process variable substitutions {{variable.path}} using JMESPath
|
|
216030
216056
|
*/
|
|
@@ -216035,7 +216061,8 @@ var _TemplateEngine = class _TemplateEngine {
|
|
|
216035
216061
|
if (trimmedPath.startsWith("$")) {
|
|
216036
216062
|
return _TemplateEngine.processBuiltinVariable(trimmedPath);
|
|
216037
216063
|
}
|
|
216038
|
-
const
|
|
216064
|
+
const normalizedPath = _TemplateEngine.normalizeJMESPath(trimmedPath);
|
|
216065
|
+
const result = jmespath__default.default.search(context, normalizedPath);
|
|
216039
216066
|
if (result === void 0 || result === null) {
|
|
216040
216067
|
if (options.strict) {
|
|
216041
216068
|
throw new Error(`Template variable '${trimmedPath}' not found in context`);
|
|
@@ -216047,6 +216074,7 @@ var _TemplateEngine = class _TemplateEngine {
|
|
|
216047
216074
|
logger3.warn(
|
|
216048
216075
|
{
|
|
216049
216076
|
variable: trimmedPath,
|
|
216077
|
+
normalizedPath,
|
|
216050
216078
|
availableKeys: Object.keys(context),
|
|
216051
216079
|
contextStructure: JSON.stringify(context, null, 2),
|
|
216052
216080
|
headersContent: context.headers ? JSON.stringify(context.headers, null, 2) : "undefined"
|
|
@@ -216057,6 +216085,7 @@ var _TemplateEngine = class _TemplateEngine {
|
|
|
216057
216085
|
logger3.warn(
|
|
216058
216086
|
{
|
|
216059
216087
|
variable: trimmedPath,
|
|
216088
|
+
normalizedPath,
|
|
216060
216089
|
availableKeys: Object.keys(context)
|
|
216061
216090
|
},
|
|
216062
216091
|
"Template variable not found in context"
|
|
@@ -216070,12 +216099,16 @@ var _TemplateEngine = class _TemplateEngine {
|
|
|
216070
216099
|
return String(result);
|
|
216071
216100
|
} catch (error) {
|
|
216072
216101
|
const errorMessage = error instanceof Error ? error.message : "Unknown error";
|
|
216102
|
+
const normalizedPath = _TemplateEngine.normalizeJMESPath(trimmedPath);
|
|
216073
216103
|
if (options.strict) {
|
|
216074
|
-
throw new Error(
|
|
216104
|
+
throw new Error(
|
|
216105
|
+
`Failed to resolve template variable '${trimmedPath}' (normalized: '${normalizedPath}'): ${errorMessage}`
|
|
216106
|
+
);
|
|
216075
216107
|
}
|
|
216076
216108
|
logger3.error(
|
|
216077
216109
|
{
|
|
216078
216110
|
variable: trimmedPath,
|
|
216111
|
+
normalizedPath,
|
|
216079
216112
|
error: errorMessage
|
|
216080
216113
|
},
|
|
216081
216114
|
"Failed to resolve template variable"
|
|
@@ -219549,7 +219582,7 @@ var discoverToolsFromServer = async (tool2, dbClient, credentialStoreRegistry) =
|
|
|
219549
219582
|
throw error;
|
|
219550
219583
|
}
|
|
219551
219584
|
};
|
|
219552
|
-
var dbResultToMcpTool = async (dbResult, dbClient, credentialStoreRegistry) => {
|
|
219585
|
+
var dbResultToMcpTool = async (dbResult, dbClient, credentialStoreRegistry, relationshipId) => {
|
|
219553
219586
|
const { headers: headers2, capabilities, credentialReferenceId, imageUrl, createdAt, ...rest } = dbResult;
|
|
219554
219587
|
if (dbResult.config.type !== "mcp") {
|
|
219555
219588
|
return {
|
|
@@ -219562,7 +219595,8 @@ var dbResultToMcpTool = async (dbResult, dbClient, credentialStoreRegistry) => {
|
|
|
219562
219595
|
updatedAt: new Date(normalizeDateString(dbResult.updatedAt)),
|
|
219563
219596
|
lastError: null,
|
|
219564
219597
|
headers: headers2 || void 0,
|
|
219565
|
-
imageUrl: imageUrl || void 0
|
|
219598
|
+
imageUrl: imageUrl || void 0,
|
|
219599
|
+
relationshipId
|
|
219566
219600
|
};
|
|
219567
219601
|
}
|
|
219568
219602
|
let availableTools = [];
|
|
@@ -219634,7 +219668,8 @@ var dbResultToMcpTool = async (dbResult, dbClient, credentialStoreRegistry) => {
|
|
|
219634
219668
|
expiresAt,
|
|
219635
219669
|
lastError: lastErrorComputed,
|
|
219636
219670
|
headers: headers2 || void 0,
|
|
219637
|
-
imageUrl: imageUrl || void 0
|
|
219671
|
+
imageUrl: imageUrl || void 0,
|
|
219672
|
+
relationshipId
|
|
219638
219673
|
};
|
|
219639
219674
|
};
|
|
219640
219675
|
var getToolById = (db) => async (params) => {
|