@inkeep/agents-core 0.29.11 → 0.30.0
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-C2QU7WTO.js → chunk-37BY2EHU.js} +1 -0
- package/dist/{chunk-QEY2ACBE.js → chunk-4FQG5A4Z.js} +1 -1
- package/dist/client-exports.cjs +1 -0
- package/dist/client-exports.d.cts +6 -6
- package/dist/client-exports.d.ts +6 -6
- package/dist/client-exports.js +2 -2
- package/dist/db/schema.d.cts +2 -2
- package/dist/db/schema.d.ts +2 -2
- package/dist/index.cjs +53 -14
- package/dist/index.d.cts +323 -323
- package/dist/index.d.ts +323 -323
- package/dist/index.js +57 -21
- package/dist/{schema-B7LgU7Uc.d.ts → schema-DfnCgRwo.d.ts} +1 -1
- package/dist/{schema-BiOhaqXf.d.cts → schema-DgEdaA4i.d.cts} +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/{utility-DhRaNM5g.d.cts → utility-eADYCyd-.d.cts} +272 -264
- package/dist/{utility-DhRaNM5g.d.ts → utility-eADYCyd-.d.ts} +272 -264
- package/dist/validation/index.cjs +1 -0
- package/dist/validation/index.d.cts +2 -2
- package/dist/validation/index.d.ts +2 -2
- package/dist/validation/index.js +2 -2
- package/package.json +1 -1
|
@@ -675,6 +675,7 @@ var ProjectApiUpdateSchema = ProjectUpdateSchema.omit({ tenantId: true }).openap
|
|
|
675
675
|
var FullProjectDefinitionSchema = ProjectApiInsertSchema.extend({
|
|
676
676
|
agents: z.record(z.string(), AgentWithinContextOfProjectSchema),
|
|
677
677
|
tools: z.record(z.string(), ToolApiInsertSchema),
|
|
678
|
+
functionTools: z.record(z.string(), FunctionToolApiInsertSchema).optional(),
|
|
678
679
|
functions: z.record(z.string(), FunctionApiInsertSchema).optional(),
|
|
679
680
|
dataComponents: z.record(z.string(), DataComponentApiInsertSchema).optional(),
|
|
680
681
|
artifactComponents: z.record(z.string(), ArtifactComponentApiInsertSchema).optional(),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AgentWithinContextOfProjectSchema, resourceIdSchema, MAX_ID_LENGTH } from './chunk-
|
|
1
|
+
import { AgentWithinContextOfProjectSchema, resourceIdSchema, MAX_ID_LENGTH } from './chunk-37BY2EHU.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
// src/validation/agentFull.ts
|
package/dist/client-exports.cjs
CHANGED
|
@@ -1626,6 +1626,7 @@ ProjectUpdateSchema.omit({ tenantId: true }).openapi(
|
|
|
1626
1626
|
ProjectApiInsertSchema.extend({
|
|
1627
1627
|
agents: zodOpenapi.z.record(zodOpenapi.z.string(), AgentWithinContextOfProjectSchema),
|
|
1628
1628
|
tools: zodOpenapi.z.record(zodOpenapi.z.string(), ToolApiInsertSchema),
|
|
1629
|
+
functionTools: zodOpenapi.z.record(zodOpenapi.z.string(), FunctionToolApiInsertSchema).optional(),
|
|
1629
1630
|
functions: zodOpenapi.z.record(zodOpenapi.z.string(), FunctionApiInsertSchema).optional(),
|
|
1630
1631
|
dataComponents: zodOpenapi.z.record(zodOpenapi.z.string(), DataComponentApiInsertSchema).optional(),
|
|
1631
1632
|
artifactComponents: zodOpenapi.z.record(zodOpenapi.z.string(), ArtifactComponentApiInsertSchema).optional(),
|
|
@@ -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-DtO-n2WD.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-eADYCyd-.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-eADYCyd-.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,11 +170,12 @@ 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
|
+
description: z.ZodString;
|
|
176
|
+
prompt: z.ZodString;
|
|
175
177
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
176
178
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
177
|
-
description: z.ZodString;
|
|
178
179
|
models: z.ZodOptional<z.ZodObject<{
|
|
179
180
|
base: z.ZodOptional<z.ZodObject<{
|
|
180
181
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -198,7 +199,6 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
|
|
|
198
199
|
}, {
|
|
199
200
|
stepCountIs?: number | undefined;
|
|
200
201
|
}>>>>;
|
|
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-DtO-n2WD.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-eADYCyd-.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-eADYCyd-.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,11 +170,12 @@ 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
|
+
description: z.ZodString;
|
|
176
|
+
prompt: z.ZodString;
|
|
175
177
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
176
178
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
177
|
-
description: z.ZodString;
|
|
178
179
|
models: z.ZodOptional<z.ZodObject<{
|
|
179
180
|
base: z.ZodOptional<z.ZodObject<{
|
|
180
181
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -198,7 +199,6 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
|
|
|
198
199
|
}, {
|
|
199
200
|
stepCountIs?: number | undefined;
|
|
200
201
|
}>>>>;
|
|
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.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-FGRAVXBC.js';
|
|
2
|
-
import { ModelSettingsSchema, FullAgentAgentInsertSchema, ArtifactComponentApiInsertSchema } from './chunk-
|
|
3
|
-
export { AgentStopWhenSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, ModelSettingsSchema, StopWhenSchema, SubAgentStopWhenSchema, validatePropsAsJsonSchema } from './chunk-
|
|
2
|
+
import { ModelSettingsSchema, FullAgentAgentInsertSchema, ArtifactComponentApiInsertSchema } from './chunk-37BY2EHU.js';
|
|
3
|
+
export { AgentStopWhenSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, ModelSettingsSchema, StopWhenSchema, SubAgentStopWhenSchema, validatePropsAsJsonSchema } from './chunk-37BY2EHU.js';
|
|
4
4
|
import { CredentialStoreType } from './chunk-YFHT5M2R.js';
|
|
5
5
|
export { CredentialStoreType, MCPTransportType } from './chunk-YFHT5M2R.js';
|
|
6
6
|
import { z } from 'zod';
|
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-eADYCyd-.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-DgEdaA4i.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-eADYCyd-.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-DfnCgRwo.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import 'drizzle-zod';
|
|
7
7
|
import '@hono/zod-openapi';
|
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var zod = require('zod');
|
|
4
|
-
var nanoid = require('nanoid');
|
|
5
4
|
var pino = require('pino');
|
|
6
5
|
var pinoPretty = require('pino-pretty');
|
|
7
6
|
var zodOpenapi = require('@hono/zod-openapi');
|
|
@@ -11,6 +10,7 @@ var sqliteCore = require('drizzle-orm/sqlite-core');
|
|
|
11
10
|
var jmespath = require('jmespath');
|
|
12
11
|
var client = require('@libsql/client');
|
|
13
12
|
var libsql = require('drizzle-orm/libsql');
|
|
13
|
+
var nanoid = require('nanoid');
|
|
14
14
|
var crypto = require('crypto');
|
|
15
15
|
var util = require('util');
|
|
16
16
|
var auth_js = require('@modelcontextprotocol/sdk/client/auth.js');
|
|
@@ -2520,7 +2520,7 @@ var require_typescript = __commonJS({
|
|
|
2520
2520
|
affectsEmitOptionDeclarations: () => affectsEmitOptionDeclarations,
|
|
2521
2521
|
allKeysStartWithDot: () => allKeysStartWithDot,
|
|
2522
2522
|
altDirectorySeparator: () => altDirectorySeparator,
|
|
2523
|
-
and: () =>
|
|
2523
|
+
and: () => and23,
|
|
2524
2524
|
append: () => append,
|
|
2525
2525
|
appendIfUnique: () => appendIfUnique,
|
|
2526
2526
|
arrayFrom: () => arrayFrom,
|
|
@@ -5971,7 +5971,7 @@ var require_typescript = __commonJS({
|
|
|
5971
5971
|
function isPatternMatch({ prefix, suffix }, candidate) {
|
|
5972
5972
|
return candidate.length >= prefix.length + suffix.length && startsWith(candidate, prefix) && endsWith(candidate, suffix);
|
|
5973
5973
|
}
|
|
5974
|
-
function
|
|
5974
|
+
function and23(f, g) {
|
|
5975
5975
|
return (arg) => f(arg) && g(arg);
|
|
5976
5976
|
}
|
|
5977
5977
|
function or(...fs2) {
|
|
@@ -56966,7 +56966,7 @@ ${lanes.join("\n")}
|
|
|
56966
56966
|
SignatureCheckMode3[SignatureCheckMode3["Callback"] = 3] = "Callback";
|
|
56967
56967
|
return SignatureCheckMode3;
|
|
56968
56968
|
})(SignatureCheckMode || {});
|
|
56969
|
-
var isNotOverloadAndNotAccessor =
|
|
56969
|
+
var isNotOverloadAndNotAccessor = and23(isNotOverload, isNotAccessor);
|
|
56970
56970
|
var intrinsicTypeKinds = new Map(Object.entries({
|
|
56971
56971
|
Uppercase: 0,
|
|
56972
56972
|
Lowercase: 1,
|
|
@@ -99777,7 +99777,7 @@ ${lanes.join("\n")}
|
|
|
99777
99777
|
if (flags & (1920 | 384)) {
|
|
99778
99778
|
return;
|
|
99779
99779
|
}
|
|
99780
|
-
const exportedDeclarationsCount = countWhere(declarations,
|
|
99780
|
+
const exportedDeclarationsCount = countWhere(declarations, and23(isNotOverloadAndNotAccessor, not2(isInterfaceDeclaration)));
|
|
99781
99781
|
if (flags & 524288 && exportedDeclarationsCount <= 2) {
|
|
99782
99782
|
return;
|
|
99783
99783
|
}
|
|
@@ -170565,7 +170565,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
170565
170565
|
const maybeHeritageClauseSymbol = getHeritageClauseSymbolTable(classDeclaration, checker);
|
|
170566
170566
|
const implementedType = checker.getTypeAtLocation(implementedTypeNode);
|
|
170567
170567
|
const implementedTypeSymbols = checker.getPropertiesOfType(implementedType);
|
|
170568
|
-
const nonPrivateAndNotExistedInHeritageClauseMembers = implementedTypeSymbols.filter(
|
|
170568
|
+
const nonPrivateAndNotExistedInHeritageClauseMembers = implementedTypeSymbols.filter(and23(symbolPointsToNonPrivateMember, (symbol) => !maybeHeritageClauseSymbol.has(symbol.escapedName)));
|
|
170569
170569
|
const classType = checker.getTypeAtLocation(classDeclaration);
|
|
170570
170570
|
const constructor = find(classDeclaration.members, (m) => isConstructorDeclaration(m));
|
|
170571
170571
|
if (!classType.getNumberIndexType()) {
|
|
@@ -185222,8 +185222,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
185222
185222
|
function isAmbientModuleDeclaration(node) {
|
|
185223
185223
|
return node.kind === 268 && node.name.kind === 11;
|
|
185224
185224
|
}
|
|
185225
|
-
function isExternalModuleImportEquals(
|
|
185226
|
-
return
|
|
185225
|
+
function isExternalModuleImportEquals(eq23) {
|
|
185226
|
+
return eq23.moduleReference.kind === 284 && eq23.moduleReference.expression.kind === 11;
|
|
185227
185227
|
}
|
|
185228
185228
|
var DefinitionKind = /* @__PURE__ */ ((DefinitionKind2) => {
|
|
185229
185229
|
DefinitionKind2[DefinitionKind2["Symbol"] = 0] = "Symbol";
|
|
@@ -197855,7 +197855,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
197855
197855
|
affectsEmitOptionDeclarations: () => affectsEmitOptionDeclarations,
|
|
197856
197856
|
allKeysStartWithDot: () => allKeysStartWithDot,
|
|
197857
197857
|
altDirectorySeparator: () => altDirectorySeparator,
|
|
197858
|
-
and: () =>
|
|
197858
|
+
and: () => and23,
|
|
197859
197859
|
append: () => append,
|
|
197860
197860
|
appendIfUnique: () => appendIfUnique,
|
|
197861
197861
|
arrayFrom: () => arrayFrom,
|
|
@@ -213211,10 +213211,6 @@ var QUERY_DEFAULTS = {
|
|
|
213211
213211
|
LIMIT_UNLIMITED: 1e10,
|
|
213212
213212
|
EMPTY_GROUP_BY: []
|
|
213213
213213
|
};
|
|
213214
|
-
var generateId = nanoid.customAlphabet("abcdefghijklmnopqrstuvwxyz0123456789", 21);
|
|
213215
|
-
function getConversationId() {
|
|
213216
|
-
return generateId();
|
|
213217
|
-
}
|
|
213218
213214
|
var PinoLogger = class {
|
|
213219
213215
|
constructor(name, config = {}) {
|
|
213220
213216
|
this.name = name;
|
|
@@ -215104,6 +215100,7 @@ var ProjectApiUpdateSchema = ProjectUpdateSchema.omit({ tenantId: true }).openap
|
|
|
215104
215100
|
var FullProjectDefinitionSchema = ProjectApiInsertSchema.extend({
|
|
215105
215101
|
agents: zodOpenapi.z.record(zodOpenapi.z.string(), AgentWithinContextOfProjectSchema),
|
|
215106
215102
|
tools: zodOpenapi.z.record(zodOpenapi.z.string(), ToolApiInsertSchema),
|
|
215103
|
+
functionTools: zodOpenapi.z.record(zodOpenapi.z.string(), FunctionToolApiInsertSchema).optional(),
|
|
215107
215104
|
functions: zodOpenapi.z.record(zodOpenapi.z.string(), FunctionApiInsertSchema).optional(),
|
|
215108
215105
|
dataComponents: zodOpenapi.z.record(zodOpenapi.z.string(), DataComponentApiInsertSchema).optional(),
|
|
215109
215106
|
artifactComponents: zodOpenapi.z.record(zodOpenapi.z.string(), ArtifactComponentApiInsertSchema).optional(),
|
|
@@ -215322,8 +215319,11 @@ var ContextConfigBuilder = class {
|
|
|
215322
215319
|
);
|
|
215323
215320
|
}
|
|
215324
215321
|
}
|
|
215322
|
+
if (!options.id) {
|
|
215323
|
+
throw new Error("contextConfig requires an explicit id field");
|
|
215324
|
+
}
|
|
215325
215325
|
this.config = {
|
|
215326
|
-
id: options.id
|
|
215326
|
+
id: options.id,
|
|
215327
215327
|
tenantId: this.tenantId,
|
|
215328
215328
|
projectId: this.projectId,
|
|
215329
215329
|
headersSchema: headers2,
|
|
@@ -215945,6 +215945,10 @@ function createInMemoryDatabaseClient() {
|
|
|
215945
215945
|
const db = createDatabaseClient({ url: ":memory:" });
|
|
215946
215946
|
return db;
|
|
215947
215947
|
}
|
|
215948
|
+
var generateId = nanoid.customAlphabet("abcdefghijklmnopqrstuvwxyz0123456789", 21);
|
|
215949
|
+
function getConversationId() {
|
|
215950
|
+
return generateId();
|
|
215951
|
+
}
|
|
215948
215952
|
|
|
215949
215953
|
// src/validation/agentFull.ts
|
|
215950
215954
|
function validateAndTypeAgentData(data) {
|
|
@@ -223945,6 +223949,7 @@ var getFullProject = (db, logger15 = defaultLogger2) => async (params) => {
|
|
|
223945
223949
|
for (const credential of credentialReferencesList) {
|
|
223946
223950
|
projectCredentialReferences[credential.id] = {
|
|
223947
223951
|
id: credential.id,
|
|
223952
|
+
name: credential.name,
|
|
223948
223953
|
type: credential.type,
|
|
223949
223954
|
credentialStoreId: credential.credentialStoreId,
|
|
223950
223955
|
retrievalParams: credential.retrievalParams
|
|
@@ -223960,6 +223965,39 @@ var getFullProject = (db, logger15 = defaultLogger2) => async (params) => {
|
|
|
223960
223965
|
"Failed to retrieve credentialReferences for project"
|
|
223961
223966
|
);
|
|
223962
223967
|
}
|
|
223968
|
+
const projectFunctions = {};
|
|
223969
|
+
try {
|
|
223970
|
+
const functionToolsWithFunctions = await db.select({
|
|
223971
|
+
functionToolId: functionTools.id,
|
|
223972
|
+
functionToolName: functionTools.name,
|
|
223973
|
+
functionToolDescription: functionTools.description,
|
|
223974
|
+
functionId: functions.id,
|
|
223975
|
+
inputSchema: functions.inputSchema,
|
|
223976
|
+
executeCode: functions.executeCode,
|
|
223977
|
+
dependencies: functions.dependencies
|
|
223978
|
+
}).from(functionTools).innerJoin(functions, drizzleOrm.eq(functionTools.functionId, functions.id)).where(
|
|
223979
|
+
drizzleOrm.and(
|
|
223980
|
+
drizzleOrm.eq(functionTools.tenantId, tenantId),
|
|
223981
|
+
drizzleOrm.eq(functionTools.projectId, projectId)
|
|
223982
|
+
)
|
|
223983
|
+
);
|
|
223984
|
+
for (const item of functionToolsWithFunctions) {
|
|
223985
|
+
projectFunctions[item.functionToolId] = {
|
|
223986
|
+
id: item.functionId,
|
|
223987
|
+
name: item.functionToolName,
|
|
223988
|
+
description: item.functionToolDescription,
|
|
223989
|
+
inputSchema: item.inputSchema,
|
|
223990
|
+
executeCode: item.executeCode,
|
|
223991
|
+
dependencies: item.dependencies
|
|
223992
|
+
};
|
|
223993
|
+
}
|
|
223994
|
+
logger15.info(
|
|
223995
|
+
{ tenantId, projectId, functionCount: Object.keys(projectFunctions).length },
|
|
223996
|
+
"Function tools with function data retrieved for project"
|
|
223997
|
+
);
|
|
223998
|
+
} catch (error) {
|
|
223999
|
+
logger15.warn({ tenantId, projectId, error }, "Failed to retrieve function tools for project");
|
|
224000
|
+
}
|
|
223963
224001
|
const agents2 = {};
|
|
223964
224002
|
if (agentList.length > 0) {
|
|
223965
224003
|
const agentPromises = agentList.map(async (agent) => {
|
|
@@ -224002,6 +224040,7 @@ var getFullProject = (db, logger15 = defaultLogger2) => async (params) => {
|
|
|
224002
224040
|
stopWhen: project.stopWhen || void 0,
|
|
224003
224041
|
agents: agents2,
|
|
224004
224042
|
tools: projectTools,
|
|
224043
|
+
functions: projectFunctions,
|
|
224005
224044
|
externalAgents: projectExternalAgents,
|
|
224006
224045
|
dataComponents: projectDataComponents,
|
|
224007
224046
|
artifactComponents: projectArtifactComponents,
|