@inkeep/agents-core 0.29.0 → 0.29.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/client-exports.d.cts +6 -6
- package/dist/client-exports.d.ts +6 -6
- package/dist/db/schema.d.cts +2 -2
- package/dist/db/schema.d.ts +2 -2
- package/dist/index.cjs +16 -39
- package/dist/index.d.cts +322 -322
- package/dist/index.d.ts +322 -322
- package/dist/index.js +16 -39
- package/dist/{schema-BQf2wGSE.d.ts → schema-B7LgU7Uc.d.ts} +1 -1
- package/dist/{schema-C-rqra-r.d.cts → schema-BiOhaqXf.d.cts} +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/validation/index.d.cts +2 -2
- package/dist/validation/index.d.ts +2 -2
- package/package.json +1 -1
- package/dist/{utility-C5D70uSj.d.cts → utility-DhRaNM5g.d.cts} +264 -264
- package/dist/{utility-C5D70uSj.d.ts → utility-DhRaNM5g.d.ts} +264 -264
|
@@ -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-DN8jWUDE.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-DhRaNM5g.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-DhRaNM5g.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
|
-
id: z.ZodString;
|
|
138
137
|
name: z.ZodString;
|
|
138
|
+
id: 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,12 +170,11 @@ 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
|
-
id: z.ZodString;
|
|
174
173
|
name: z.ZodString;
|
|
175
|
-
|
|
176
|
-
prompt: z.ZodString;
|
|
174
|
+
id: z.ZodString;
|
|
177
175
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
178
176
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
177
|
+
description: z.ZodString;
|
|
179
178
|
models: z.ZodOptional<z.ZodObject<{
|
|
180
179
|
base: z.ZodOptional<z.ZodObject<{
|
|
181
180
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -199,6 +198,7 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
|
|
|
199
198
|
}, {
|
|
200
199
|
stepCountIs?: number | undefined;
|
|
201
200
|
}>>>>;
|
|
201
|
+
prompt: z.ZodString;
|
|
202
202
|
conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
|
|
203
203
|
type: z.ZodLiteral<"internal">;
|
|
204
204
|
canUse: z.ZodArray<z.ZodObject<{
|
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-DN8jWUDE.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-DhRaNM5g.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-DhRaNM5g.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
|
-
id: z.ZodString;
|
|
138
137
|
name: z.ZodString;
|
|
138
|
+
id: 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,12 +170,11 @@ 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
|
-
id: z.ZodString;
|
|
174
173
|
name: z.ZodString;
|
|
175
|
-
|
|
176
|
-
prompt: z.ZodString;
|
|
174
|
+
id: z.ZodString;
|
|
177
175
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
178
176
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
177
|
+
description: z.ZodString;
|
|
179
178
|
models: z.ZodOptional<z.ZodObject<{
|
|
180
179
|
base: z.ZodOptional<z.ZodObject<{
|
|
181
180
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -199,6 +198,7 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
|
|
|
199
198
|
}, {
|
|
200
199
|
stepCountIs?: number | undefined;
|
|
201
200
|
}>>>>;
|
|
201
|
+
prompt: z.ZodString;
|
|
202
202
|
conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
|
|
203
203
|
type: z.ZodLiteral<"internal">;
|
|
204
204
|
canUse: z.ZodArray<z.ZodObject<{
|
package/dist/db/schema.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'drizzle-orm';
|
|
2
2
|
import 'drizzle-orm/sqlite-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-DhRaNM5g.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-BiOhaqXf.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/sqlite-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-DhRaNM5g.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-B7LgU7Uc.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import 'drizzle-zod';
|
|
7
7
|
import '@hono/zod-openapi';
|
package/dist/index.cjs
CHANGED
|
@@ -215639,31 +215639,20 @@ var _TemplateEngine = class _TemplateEngine {
|
|
|
215639
215639
|
});
|
|
215640
215640
|
}
|
|
215641
215641
|
/**
|
|
215642
|
-
* Process built-in variables like $
|
|
215642
|
+
* Process built-in variables like $env, etc.
|
|
215643
215643
|
*/
|
|
215644
215644
|
static processBuiltinVariable(variable) {
|
|
215645
|
-
|
|
215646
|
-
|
|
215647
|
-
|
|
215648
|
-
case "$timestamp":
|
|
215649
|
-
return Date.now().toString();
|
|
215650
|
-
case "$date":
|
|
215651
|
-
return (/* @__PURE__ */ new Date()).toDateString();
|
|
215652
|
-
case "$time":
|
|
215653
|
-
return (/* @__PURE__ */ new Date()).toTimeString();
|
|
215654
|
-
default:
|
|
215655
|
-
if (variable.startsWith("$env.")) {
|
|
215656
|
-
const envVar = variable.substring(5);
|
|
215657
|
-
return process.env[envVar] || "";
|
|
215658
|
-
}
|
|
215659
|
-
logger3.warn(
|
|
215660
|
-
{
|
|
215661
|
-
variable
|
|
215662
|
-
},
|
|
215663
|
-
"Unknown built-in variable"
|
|
215664
|
-
);
|
|
215665
|
-
return "";
|
|
215645
|
+
if (variable.startsWith("$env.")) {
|
|
215646
|
+
const envVar = variable.substring(5);
|
|
215647
|
+
return process.env[envVar] || "";
|
|
215666
215648
|
}
|
|
215649
|
+
logger3.warn(
|
|
215650
|
+
{
|
|
215651
|
+
variable
|
|
215652
|
+
},
|
|
215653
|
+
"Unknown built-in variable"
|
|
215654
|
+
);
|
|
215655
|
+
return "";
|
|
215667
215656
|
}
|
|
215668
215657
|
/**
|
|
215669
215658
|
* Check if template contains template variables
|
|
@@ -215878,7 +215867,7 @@ var CredentialStuffer = class {
|
|
|
215878
215867
|
if (!contextConfigId || !conversationId || !this.contextResolver) {
|
|
215879
215868
|
return null;
|
|
215880
215869
|
}
|
|
215881
|
-
const
|
|
215870
|
+
const headersContext = await this.contextResolver.resolveHeaders(
|
|
215882
215871
|
conversationId,
|
|
215883
215872
|
contextConfigId
|
|
215884
215873
|
);
|
|
@@ -215886,7 +215875,7 @@ var CredentialStuffer = class {
|
|
|
215886
215875
|
for (const [key, value] of Object.entries(headers2)) {
|
|
215887
215876
|
resolvedHeaders[key] = TemplateEngine.render(
|
|
215888
215877
|
value,
|
|
215889
|
-
|
|
215878
|
+
{ headers: headersContext },
|
|
215890
215879
|
{ strict: true }
|
|
215891
215880
|
);
|
|
215892
215881
|
}
|
|
@@ -215935,24 +215924,13 @@ var CredentialStuffer = class {
|
|
|
215935
215924
|
headers: tool2.headers || {}
|
|
215936
215925
|
});
|
|
215937
215926
|
}
|
|
215938
|
-
|
|
215927
|
+
return {
|
|
215939
215928
|
type: tool2.transport?.type || MCPTransportType.streamableHttp,
|
|
215940
215929
|
url: tool2.serverUrl,
|
|
215941
215930
|
activeTools: tool2.activeTools,
|
|
215942
|
-
selectedTools
|
|
215931
|
+
selectedTools,
|
|
215932
|
+
headers: credentialHeaders
|
|
215943
215933
|
};
|
|
215944
|
-
if (baseConfig.type === MCPTransportType.streamableHttp || baseConfig.type === MCPTransportType.sse) {
|
|
215945
|
-
const httpConfig = {
|
|
215946
|
-
...baseConfig,
|
|
215947
|
-
url: tool2.serverUrl,
|
|
215948
|
-
headers: {
|
|
215949
|
-
...tool2.headers,
|
|
215950
|
-
...credentialHeaders
|
|
215951
|
-
}
|
|
215952
|
-
};
|
|
215953
|
-
return httpConfig;
|
|
215954
|
-
}
|
|
215955
|
-
return baseConfig;
|
|
215956
215934
|
}
|
|
215957
215935
|
};
|
|
215958
215936
|
function createDatabaseClient(config) {
|
|
@@ -225514,7 +225492,6 @@ async function handleContextResolution({
|
|
|
225514
225492
|
});
|
|
225515
225493
|
const resolvedContext = {
|
|
225516
225494
|
...contextResult.resolvedContext,
|
|
225517
|
-
$now: (/* @__PURE__ */ new Date()).toISOString(),
|
|
225518
225495
|
$env: process.env
|
|
225519
225496
|
};
|
|
225520
225497
|
await updateConversation(dbClient)({
|