@inkeep/agents-core 0.29.1 → 0.29.3
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-OSAGBXSF.js → chunk-GETGG5J2.js} +1 -1
- 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 +19 -7
- package/dist/index.d.cts +321 -321
- package/dist/index.d.ts +321 -321
- package/dist/index.js +25 -13
- package/dist/{schema-B7LgU7Uc.d.ts → schema-BQf2wGSE.d.ts} +1 -1
- package/dist/{schema-BiOhaqXf.d.cts → schema-C-rqra-r.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/dist/validation/index.js +2 -2
- package/package.json +1 -1
- package/dist/{chunk-C2QU7WTO.js → chunk-ETTYVCQO.js} +1 -1
- package/dist/{utility-DhRaNM5g.d.cts → utility-C5D70uSj.d.cts} +264 -264
- package/dist/{utility-DhRaNM5g.d.ts → utility-C5D70uSj.d.ts} +264 -264
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AgentWithinContextOfProjectSchema, resourceIdSchema, MAX_ID_LENGTH } from './chunk-
|
|
1
|
+
import { AgentWithinContextOfProjectSchema, resourceIdSchema, MAX_ID_LENGTH } from './chunk-ETTYVCQO.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
// src/validation/agentFull.ts
|
|
@@ -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-C5D70uSj.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-C5D70uSj.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-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-C5D70uSj.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-C5D70uSj.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-CK2M5I4Q.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-ETTYVCQO.js';
|
|
3
|
+
export { AgentStopWhenSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, ModelSettingsSchema, StopWhenSchema, SubAgentStopWhenSchema, validatePropsAsJsonSchema } from './chunk-ETTYVCQO.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-C5D70uSj.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-C-rqra-r.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-C5D70uSj.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-BQf2wGSE.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import 'drizzle-zod';
|
|
7
7
|
import '@hono/zod-openapi';
|
package/dist/index.cjs
CHANGED
|
@@ -221461,18 +221461,22 @@ var updateFullAgentServerSide = (db, logger15 = defaultLogger) => async (scopes,
|
|
|
221461
221461
|
"Deleted orphaned sub-agents from agent"
|
|
221462
221462
|
);
|
|
221463
221463
|
}
|
|
221464
|
-
const incomingExternalAgentRelationIds = /* @__PURE__ */ new
|
|
221465
|
-
const incomingTeamAgentRelationIds = /* @__PURE__ */ new
|
|
221466
|
-
for (const [
|
|
221464
|
+
const incomingExternalAgentRelationIds = /* @__PURE__ */ new Map();
|
|
221465
|
+
const incomingTeamAgentRelationIds = /* @__PURE__ */ new Map();
|
|
221466
|
+
for (const [subAgentId, agentData2] of Object.entries(typedAgentDefinition.subAgents)) {
|
|
221467
221467
|
if (agentData2.canDelegateTo && Array.isArray(agentData2.canDelegateTo)) {
|
|
221468
221468
|
for (const delegateItem of agentData2.canDelegateTo) {
|
|
221469
221469
|
if (typeof delegateItem === "object") {
|
|
221470
221470
|
if ("externalAgentId" in delegateItem) {
|
|
221471
|
-
incomingExternalAgentRelationIds.
|
|
221471
|
+
incomingExternalAgentRelationIds.set(
|
|
221472
|
+
subAgentId,
|
|
221472
221473
|
delegateItem.subAgentExternalAgentRelationId ?? ""
|
|
221473
221474
|
);
|
|
221474
221475
|
} else if ("agentId" in delegateItem) {
|
|
221475
|
-
incomingTeamAgentRelationIds.
|
|
221476
|
+
incomingTeamAgentRelationIds.set(
|
|
221477
|
+
subAgentId,
|
|
221478
|
+
delegateItem.subAgentTeamAgentRelationId ?? ""
|
|
221479
|
+
);
|
|
221476
221480
|
}
|
|
221477
221481
|
}
|
|
221478
221482
|
}
|
|
@@ -221483,7 +221487,7 @@ var updateFullAgentServerSide = (db, logger15 = defaultLogger) => async (scopes,
|
|
|
221483
221487
|
});
|
|
221484
221488
|
let deletedExternalAgentRelationCount = 0;
|
|
221485
221489
|
for (const relation of existingExternalAgentRelations) {
|
|
221486
|
-
if (!incomingExternalAgentRelationIds.
|
|
221490
|
+
if (!incomingExternalAgentRelationIds.get(relation.subAgentId)?.includes(relation.id)) {
|
|
221487
221491
|
try {
|
|
221488
221492
|
await deleteSubAgentExternalAgentRelation(db)({
|
|
221489
221493
|
scopes: {
|
|
@@ -221514,7 +221518,7 @@ var updateFullAgentServerSide = (db, logger15 = defaultLogger) => async (scopes,
|
|
|
221514
221518
|
scopes: { tenantId, projectId, agentId: finalAgentId }
|
|
221515
221519
|
});
|
|
221516
221520
|
for (const relation of existingTeamAgentRelations) {
|
|
221517
|
-
if (!incomingTeamAgentRelationIds.
|
|
221521
|
+
if (!incomingTeamAgentRelationIds.get(relation.subAgentId)?.includes(relation.id)) {
|
|
221518
221522
|
try {
|
|
221519
221523
|
await deleteSubAgentTeamAgentRelation(db)({
|
|
221520
221524
|
scopes: {
|
|
@@ -221817,6 +221821,7 @@ var updateFullAgentServerSide = (db, logger15 = defaultLogger) => async (scopes,
|
|
|
221817
221821
|
})()
|
|
221818
221822
|
);
|
|
221819
221823
|
} else if ("agentId" in targetItem) {
|
|
221824
|
+
logger15.info({ subAgentId, targetItem }, "Processing team agent delegation");
|
|
221820
221825
|
subAgentTeamAgentRelationPromises.push(
|
|
221821
221826
|
(async () => {
|
|
221822
221827
|
try {
|
|
@@ -221856,6 +221861,13 @@ var updateFullAgentServerSide = (db, logger15 = defaultLogger) => async (scopes,
|
|
|
221856
221861
|
},
|
|
221857
221862
|
"All sub-agent external agent relations updated"
|
|
221858
221863
|
);
|
|
221864
|
+
await Promise.all(subAgentTeamAgentRelationPromises);
|
|
221865
|
+
logger15.info(
|
|
221866
|
+
{
|
|
221867
|
+
subAgentTeamAgentRelationPromisesCount: subAgentTeamAgentRelationPromises.length
|
|
221868
|
+
},
|
|
221869
|
+
"All sub-agent team agent relations updated"
|
|
221870
|
+
);
|
|
221859
221871
|
const updatedAgent = await getFullAgentDefinition(db)({
|
|
221860
221872
|
scopes: { tenantId, projectId, agentId: typedAgentDefinition.id }
|
|
221861
221873
|
});
|