@inkeep/agents-core 0.37.0 → 0.37.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/auth/auth-schema.js +1 -1
- package/dist/auth/auth-validation-schemas.js +18 -18
- package/dist/auth/auth.d.ts +3 -3
- package/dist/auth/auth.js +5 -4
- package/dist/{auth-detection-CGqhPDnj.d.ts → auth-detection-7G0Dxt55.d.ts} +11 -0
- package/dist/{chunk-SSRRHYU4.js → chunk-7GZHUB4J.js} +4 -5
- package/dist/chunk-CMNLBV2A.js +39 -0
- package/dist/{chunk-MB2ZIPZS.js → chunk-FOK3JSQN.js} +5 -5
- package/dist/{chunk-SG75RA63.js → chunk-I6IF7ZTL.js} +2 -2
- package/dist/{chunk-VQXQOGJU.js → chunk-K6GMXJPW.js} +313 -315
- package/dist/{chunk-Q5U2SVA6.js → chunk-LL6F3EAR.js} +11 -7
- package/dist/{chunk-TGESM3JG.js → chunk-MQMMFK2K.js} +14 -3
- package/dist/{chunk-NFYCSHD3.js → chunk-PVRIMF6N.js} +2 -1
- package/dist/{chunk-ICZLNCX7.js → chunk-ROXPFQAM.js} +367 -69
- package/dist/{chunk-32YRH2S7.js → chunk-W3QDM7WH.js} +63 -67
- package/dist/{chunk-SLQW43IV.js → chunk-ZEZCCHV7.js} +4 -5
- package/dist/{client-CnpNkGsH.d.ts → client-B_3j-V4-.d.ts} +1 -1
- package/dist/client-exports.d.ts +6 -3
- package/dist/client-exports.js +126 -127
- package/dist/constants/schema-validation/index.js +1 -1
- package/dist/credential-stores/index.d.ts +3 -3
- package/dist/credential-stores/index.js +1 -1
- package/dist/db/schema.d.ts +2 -2
- package/dist/db/schema.js +2 -2
- package/dist/db/test-client.d.ts +3 -3
- package/dist/db/test-client.js +1 -1
- package/dist/index.d.ts +126 -9
- package/dist/index.js +284 -73
- package/dist/{schema-Cgkp_geg.d.ts → schema-DKbG39on.d.ts} +24 -1
- package/dist/server-BXoUiBMg.d.ts +127 -0
- package/dist/types/index.d.ts +33 -113
- package/dist/types/index.js +1 -1
- package/dist/{utility-C_tTZ7-k.d.ts → utility-Lo5NoRHK.d.ts} +141 -11
- package/dist/utils/schema-conversion.js +1 -1
- package/dist/validation/index.d.ts +2 -2
- package/dist/validation/index.js +2 -2
- package/drizzle/{0001_fair_malice.sql → 0001_calm_sheva_callister.sql} +1 -16
- package/drizzle/meta/0001_snapshot.json +7 -1
- package/drizzle/meta/_journal.json +2 -2
- package/package.json +14 -4
- package/dist/chunk-CUM6BY2Y.js +0 -320
- package/dist/chunk-H2F72PDA.js +0 -15
- package/dist/chunk-OUXC23J7.js +0 -12534
- /package/dist/{chunk-NOPEANIU.js → chunk-NFTJ5JBY.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AgentWithinContextOfProjectSchema, resourceIdSchema, MAX_ID_LENGTH } from './chunk-
|
|
2
|
-
import {
|
|
1
|
+
import { AgentWithinContextOfProjectSchema, resourceIdSchema, MAX_ID_LENGTH } from './chunk-K6GMXJPW.js';
|
|
2
|
+
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
// src/validation/cycleDetection.ts
|
|
5
5
|
function detectDelegationCycles(agentData) {
|
|
@@ -181,44 +181,42 @@ function validateAgentStructure(agentData, projectResources) {
|
|
|
181
181
|
}
|
|
182
182
|
validateAgentRelationships(agentData);
|
|
183
183
|
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
reason: external_exports.string().optional().describe("Reason for the transfer"),
|
|
190
|
-
context: external_exports.any().optional().describe("Additional context data")
|
|
184
|
+
var TransferDataSchema = z.object({
|
|
185
|
+
fromSubAgent: z.string().describe("ID of the sub-agent transferring control"),
|
|
186
|
+
targetSubAgent: z.string().describe("ID of the sub-agent receiving control"),
|
|
187
|
+
reason: z.string().optional().describe("Reason for the transfer"),
|
|
188
|
+
context: z.any().optional().describe("Additional context data")
|
|
191
189
|
});
|
|
192
|
-
var DelegationSentDataSchema =
|
|
193
|
-
delegationId:
|
|
194
|
-
fromSubAgent:
|
|
195
|
-
targetSubAgent:
|
|
196
|
-
taskDescription:
|
|
197
|
-
context:
|
|
190
|
+
var DelegationSentDataSchema = z.object({
|
|
191
|
+
delegationId: z.string().describe("Unique identifier for this delegation"),
|
|
192
|
+
fromSubAgent: z.string().describe("ID of the delegating sub-agent"),
|
|
193
|
+
targetSubAgent: z.string().describe("ID of the sub-agent receiving the delegation"),
|
|
194
|
+
taskDescription: z.string().describe("Description of the delegated task"),
|
|
195
|
+
context: z.any().optional().describe("Additional context data")
|
|
198
196
|
});
|
|
199
|
-
var DelegationReturnedDataSchema =
|
|
200
|
-
delegationId:
|
|
201
|
-
fromSubAgent:
|
|
202
|
-
targetSubAgent:
|
|
203
|
-
result:
|
|
197
|
+
var DelegationReturnedDataSchema = z.object({
|
|
198
|
+
delegationId: z.string().describe("Unique identifier matching the original delegation"),
|
|
199
|
+
fromSubAgent: z.string().describe("ID of the sub-agent that completed the task"),
|
|
200
|
+
targetSubAgent: z.string().describe("ID of the sub-agent receiving the result"),
|
|
201
|
+
result: z.any().optional().describe("Result data from the delegated task")
|
|
204
202
|
});
|
|
205
|
-
var DataOperationDetailsSchema =
|
|
206
|
-
timestamp:
|
|
207
|
-
subAgentId:
|
|
208
|
-
data:
|
|
203
|
+
var DataOperationDetailsSchema = z.object({
|
|
204
|
+
timestamp: z.number().describe("Unix timestamp in milliseconds"),
|
|
205
|
+
subAgentId: z.string().describe("ID of the sub-agent that generated this data"),
|
|
206
|
+
data: z.any().describe("The actual data payload")
|
|
209
207
|
});
|
|
210
|
-
var DataOperationEventSchema =
|
|
211
|
-
type:
|
|
212
|
-
label:
|
|
208
|
+
var DataOperationEventSchema = z.object({
|
|
209
|
+
type: z.string().describe("Event type identifier"),
|
|
210
|
+
label: z.string().describe("Human-readable label for the event"),
|
|
213
211
|
details: DataOperationDetailsSchema
|
|
214
212
|
});
|
|
215
|
-
var A2AMessageMetadataSchema =
|
|
216
|
-
fromSubAgentId:
|
|
217
|
-
toSubAgentId:
|
|
218
|
-
fromExternalAgentId:
|
|
219
|
-
toExternalAgentId:
|
|
220
|
-
taskId:
|
|
221
|
-
a2aTaskId:
|
|
213
|
+
var A2AMessageMetadataSchema = z.object({
|
|
214
|
+
fromSubAgentId: z.string().optional().describe("ID of the sending sub-agent"),
|
|
215
|
+
toSubAgentId: z.string().optional().describe("ID of the receiving sub-agent"),
|
|
216
|
+
fromExternalAgentId: z.string().optional().describe("ID of the sending external agent"),
|
|
217
|
+
toExternalAgentId: z.string().optional().describe("ID of the receiving external agent"),
|
|
218
|
+
taskId: z.string().optional().describe("Associated task ID"),
|
|
219
|
+
a2aTaskId: z.string().optional().describe("A2A-specific task ID")
|
|
222
220
|
});
|
|
223
221
|
|
|
224
222
|
// src/validation/id-validation.ts
|
|
@@ -341,50 +339,48 @@ function validateRender(render) {
|
|
|
341
339
|
errors
|
|
342
340
|
};
|
|
343
341
|
}
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
type: external_exports.literal("text-start"),
|
|
348
|
-
id: external_exports.string()
|
|
342
|
+
var TextStartEventSchema = z.object({
|
|
343
|
+
type: z.literal("text-start"),
|
|
344
|
+
id: z.string()
|
|
349
345
|
});
|
|
350
|
-
var TextDeltaEventSchema =
|
|
351
|
-
type:
|
|
352
|
-
id:
|
|
353
|
-
delta:
|
|
346
|
+
var TextDeltaEventSchema = z.object({
|
|
347
|
+
type: z.literal("text-delta"),
|
|
348
|
+
id: z.string(),
|
|
349
|
+
delta: z.string()
|
|
354
350
|
});
|
|
355
|
-
var TextEndEventSchema =
|
|
356
|
-
type:
|
|
357
|
-
id:
|
|
351
|
+
var TextEndEventSchema = z.object({
|
|
352
|
+
type: z.literal("text-end"),
|
|
353
|
+
id: z.string()
|
|
358
354
|
});
|
|
359
|
-
var DataComponentStreamEventSchema =
|
|
360
|
-
type:
|
|
361
|
-
id:
|
|
362
|
-
data:
|
|
355
|
+
var DataComponentStreamEventSchema = z.object({
|
|
356
|
+
type: z.literal("data-component"),
|
|
357
|
+
id: z.string(),
|
|
358
|
+
data: z.any()
|
|
363
359
|
});
|
|
364
|
-
var DataOperationStreamEventSchema =
|
|
365
|
-
type:
|
|
366
|
-
data:
|
|
360
|
+
var DataOperationStreamEventSchema = z.object({
|
|
361
|
+
type: z.literal("data-operation"),
|
|
362
|
+
data: z.any()
|
|
367
363
|
// Contains OperationEvent types (AgentInitializingEvent, CompletionEvent, etc.)
|
|
368
364
|
});
|
|
369
|
-
var DataSummaryStreamEventSchema =
|
|
370
|
-
type:
|
|
371
|
-
data:
|
|
365
|
+
var DataSummaryStreamEventSchema = z.object({
|
|
366
|
+
type: z.literal("data-summary"),
|
|
367
|
+
data: z.any()
|
|
372
368
|
// Contains SummaryEvent from entities.ts
|
|
373
369
|
});
|
|
374
|
-
var StreamErrorEventSchema =
|
|
375
|
-
type:
|
|
376
|
-
error:
|
|
370
|
+
var StreamErrorEventSchema = z.object({
|
|
371
|
+
type: z.literal("error"),
|
|
372
|
+
error: z.string()
|
|
377
373
|
});
|
|
378
|
-
var StreamFinishEventSchema =
|
|
379
|
-
type:
|
|
380
|
-
finishReason:
|
|
381
|
-
usage:
|
|
382
|
-
promptTokens:
|
|
383
|
-
completionTokens:
|
|
384
|
-
totalTokens:
|
|
374
|
+
var StreamFinishEventSchema = z.object({
|
|
375
|
+
type: z.literal("finish"),
|
|
376
|
+
finishReason: z.string().optional(),
|
|
377
|
+
usage: z.object({
|
|
378
|
+
promptTokens: z.number().optional(),
|
|
379
|
+
completionTokens: z.number().optional(),
|
|
380
|
+
totalTokens: z.number().optional()
|
|
385
381
|
}).optional()
|
|
386
382
|
});
|
|
387
|
-
var StreamEventSchema =
|
|
383
|
+
var StreamEventSchema = z.discriminatedUnion("type", [
|
|
388
384
|
TextStartEventSchema,
|
|
389
385
|
TextDeltaEventSchema,
|
|
390
386
|
TextEndEventSchema,
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { schemaValidationDefaults } from './chunk-Z64UK4CA.js';
|
|
2
|
-
import { loadEnvironmentFiles } from './chunk-
|
|
3
|
-
import {
|
|
2
|
+
import { loadEnvironmentFiles } from './chunk-LL6F3EAR.js';
|
|
3
|
+
import { z } from 'zod';
|
|
4
4
|
|
|
5
|
-
// src/constants/schema-validation/index.ts
|
|
6
5
|
loadEnvironmentFiles();
|
|
7
|
-
var constantsSchema =
|
|
6
|
+
var constantsSchema = z.object(
|
|
8
7
|
Object.fromEntries(
|
|
9
8
|
Object.keys(schemaValidationDefaults).map((key) => [
|
|
10
9
|
`AGENTS_${key}`,
|
|
11
|
-
|
|
10
|
+
z.coerce.number().optional()
|
|
12
11
|
])
|
|
13
12
|
)
|
|
14
13
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NodePgDatabase } from 'drizzle-orm/node-postgres';
|
|
2
2
|
import { PgliteDatabase } from 'drizzle-orm/pglite';
|
|
3
|
-
import { s as schema } from './schema-
|
|
3
|
+
import { s as schema } from './schema-DKbG39on.js';
|
|
4
4
|
|
|
5
5
|
type DatabaseClient = NodePgDatabase<typeof schema> | PgliteDatabase<typeof schema>;
|
|
6
6
|
interface DatabaseConfig {
|
package/dist/client-exports.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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-
|
|
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-7G0Dxt55.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-Lo5NoRHK.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-Lo5NoRHK.js';
|
|
5
5
|
export { v as validatePropsAsJsonSchema } from './props-validation-BMR1qNiy.js';
|
|
6
6
|
import 'pino';
|
|
7
7
|
import 'drizzle-zod';
|
|
@@ -205,6 +205,9 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
|
|
|
205
205
|
toolId: z.ZodString;
|
|
206
206
|
toolSelection: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
207
207
|
headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
208
|
+
toolPolicies: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
209
|
+
needsApproval: z.ZodOptional<z.ZodBoolean>;
|
|
210
|
+
}, z.core.$strip>>>>;
|
|
208
211
|
}, z.core.$strip>>;
|
|
209
212
|
dataComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
210
213
|
artifactComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
package/dist/client-exports.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
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 } from './chunk-
|
|
2
|
-
import { ModelSettingsSchema, FullAgentAgentInsertSchema, ArtifactComponentApiInsertSchema } from './chunk-
|
|
3
|
-
export { AgentStopWhenSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, ModelSettingsSchema, StopWhenSchema, SubAgentStopWhenSchema, validatePropsAsJsonSchema } from './chunk-
|
|
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 } from './chunk-MQMMFK2K.js';
|
|
2
|
+
import { ModelSettingsSchema, FullAgentAgentInsertSchema, ArtifactComponentApiInsertSchema } from './chunk-K6GMXJPW.js';
|
|
3
|
+
export { AgentStopWhenSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, ModelSettingsSchema, StopWhenSchema, SubAgentStopWhenSchema, validatePropsAsJsonSchema } from './chunk-K6GMXJPW.js';
|
|
4
4
|
import { schemaValidationDefaults } from './chunk-Z64UK4CA.js';
|
|
5
5
|
export { detectAuthenticationRequired } from './chunk-4JZT4QEE.js';
|
|
6
6
|
import { CredentialStoreType } from './chunk-YFHT5M2R.js';
|
|
7
7
|
export { CredentialStoreType, MCPTransportType } from './chunk-YFHT5M2R.js';
|
|
8
|
-
import {
|
|
8
|
+
import { z } from 'zod';
|
|
9
9
|
|
|
10
|
-
// src/client-exports.ts
|
|
11
10
|
var {
|
|
12
11
|
AGENT_EXECUTION_TRANSFER_COUNT_MAX,
|
|
13
12
|
AGENT_EXECUTION_TRANSFER_COUNT_MIN,
|
|
@@ -16,153 +15,153 @@ var {
|
|
|
16
15
|
VALIDATION_AGENT_PROMPT_MAX_CHARS,
|
|
17
16
|
VALIDATION_SUB_AGENT_PROMPT_MAX_CHARS
|
|
18
17
|
} = schemaValidationDefaults;
|
|
19
|
-
var TenantParamsSchema =
|
|
20
|
-
tenantId:
|
|
18
|
+
var TenantParamsSchema = z.object({
|
|
19
|
+
tenantId: z.string()
|
|
21
20
|
});
|
|
22
21
|
var TenantProjectParamsSchema = TenantParamsSchema.extend({
|
|
23
|
-
projectId:
|
|
22
|
+
projectId: z.string()
|
|
24
23
|
});
|
|
25
24
|
var TenantProjectIdParamsSchema = TenantProjectParamsSchema.extend({
|
|
26
|
-
id:
|
|
25
|
+
id: z.string()
|
|
27
26
|
});
|
|
28
|
-
var IdParamsSchema =
|
|
29
|
-
id:
|
|
27
|
+
var IdParamsSchema = z.object({
|
|
28
|
+
id: z.string()
|
|
30
29
|
});
|
|
31
|
-
var PaginationSchema =
|
|
32
|
-
page:
|
|
33
|
-
limit:
|
|
34
|
-
total:
|
|
35
|
-
pages:
|
|
30
|
+
var PaginationSchema = z.object({
|
|
31
|
+
page: z.coerce.number().min(1).default(1),
|
|
32
|
+
limit: z.coerce.number().min(1).max(100).default(10),
|
|
33
|
+
total: z.number(),
|
|
34
|
+
pages: z.number()
|
|
36
35
|
});
|
|
37
|
-
var ListResponseSchema = (itemSchema) =>
|
|
38
|
-
data:
|
|
36
|
+
var ListResponseSchema = (itemSchema) => z.object({
|
|
37
|
+
data: z.array(itemSchema),
|
|
39
38
|
pagination: PaginationSchema
|
|
40
39
|
});
|
|
41
|
-
var SingleResponseSchema = (itemSchema) =>
|
|
40
|
+
var SingleResponseSchema = (itemSchema) => z.object({
|
|
42
41
|
data: itemSchema
|
|
43
42
|
});
|
|
44
|
-
var ErrorResponseSchema =
|
|
45
|
-
error:
|
|
46
|
-
message:
|
|
47
|
-
details:
|
|
43
|
+
var ErrorResponseSchema = z.object({
|
|
44
|
+
error: z.string(),
|
|
45
|
+
message: z.string().optional(),
|
|
46
|
+
details: z.unknown().optional()
|
|
48
47
|
});
|
|
49
|
-
var AgentApiInsertSchema =
|
|
50
|
-
id:
|
|
51
|
-
name:
|
|
52
|
-
description:
|
|
53
|
-
prompt:
|
|
48
|
+
var AgentApiInsertSchema = z.object({
|
|
49
|
+
id: z.string().optional(),
|
|
50
|
+
name: z.string(),
|
|
51
|
+
description: z.string().optional(),
|
|
52
|
+
prompt: z.string().optional(),
|
|
54
53
|
model: ModelSettingsSchema.optional(),
|
|
55
|
-
tools:
|
|
56
|
-
dataComponents:
|
|
57
|
-
artifactComponents:
|
|
58
|
-
canTransferTo:
|
|
59
|
-
canDelegateTo:
|
|
60
|
-
type:
|
|
61
|
-
});
|
|
62
|
-
var ToolApiInsertSchema =
|
|
63
|
-
id:
|
|
64
|
-
name:
|
|
65
|
-
description:
|
|
66
|
-
type:
|
|
67
|
-
config:
|
|
68
|
-
credentialReferenceId:
|
|
69
|
-
});
|
|
70
|
-
var ApiKeyApiSelectSchema =
|
|
71
|
-
id:
|
|
72
|
-
tenantId:
|
|
73
|
-
projectId:
|
|
74
|
-
agentId:
|
|
75
|
-
publicId:
|
|
76
|
-
keyHash:
|
|
77
|
-
keyPrefix:
|
|
78
|
-
name:
|
|
79
|
-
lastUsedAt:
|
|
80
|
-
expiresAt:
|
|
81
|
-
createdAt:
|
|
82
|
-
updatedAt:
|
|
83
|
-
});
|
|
84
|
-
var ApiKeyApiCreationResponseSchema =
|
|
85
|
-
data:
|
|
54
|
+
tools: z.array(z.string()).optional(),
|
|
55
|
+
dataComponents: z.array(z.string()).optional(),
|
|
56
|
+
artifactComponents: z.array(z.string()).optional(),
|
|
57
|
+
canTransferTo: z.array(z.string()).optional(),
|
|
58
|
+
canDelegateTo: z.array(z.string()).optional(),
|
|
59
|
+
type: z.enum(["internal", "external"]).optional()
|
|
60
|
+
});
|
|
61
|
+
var ToolApiInsertSchema = z.object({
|
|
62
|
+
id: z.string().optional(),
|
|
63
|
+
name: z.string(),
|
|
64
|
+
description: z.string().optional(),
|
|
65
|
+
type: z.enum(["mcp", "hosted"]),
|
|
66
|
+
config: z.record(z.string(), z.unknown()),
|
|
67
|
+
credentialReferenceId: z.string().optional()
|
|
68
|
+
});
|
|
69
|
+
var ApiKeyApiSelectSchema = z.object({
|
|
70
|
+
id: z.string(),
|
|
71
|
+
tenantId: z.string(),
|
|
72
|
+
projectId: z.string(),
|
|
73
|
+
agentId: z.string(),
|
|
74
|
+
publicId: z.string(),
|
|
75
|
+
keyHash: z.string(),
|
|
76
|
+
keyPrefix: z.string(),
|
|
77
|
+
name: z.string().optional(),
|
|
78
|
+
lastUsedAt: z.string().optional(),
|
|
79
|
+
expiresAt: z.string().optional(),
|
|
80
|
+
createdAt: z.string(),
|
|
81
|
+
updatedAt: z.string()
|
|
82
|
+
});
|
|
83
|
+
var ApiKeyApiCreationResponseSchema = z.object({
|
|
84
|
+
data: z.object({
|
|
86
85
|
apiKey: ApiKeyApiSelectSchema,
|
|
87
|
-
key:
|
|
86
|
+
key: z.string()
|
|
88
87
|
})
|
|
89
88
|
});
|
|
90
|
-
var CredentialReferenceApiInsertSchema =
|
|
91
|
-
id:
|
|
92
|
-
tenantId:
|
|
93
|
-
projectId:
|
|
94
|
-
name:
|
|
95
|
-
type:
|
|
96
|
-
credentialStoreId:
|
|
97
|
-
retrievalParams:
|
|
98
|
-
});
|
|
99
|
-
var DataComponentApiInsertSchema =
|
|
100
|
-
id:
|
|
101
|
-
name:
|
|
102
|
-
description:
|
|
103
|
-
props:
|
|
104
|
-
render:
|
|
105
|
-
component:
|
|
106
|
-
mockData:
|
|
89
|
+
var CredentialReferenceApiInsertSchema = z.object({
|
|
90
|
+
id: z.string(),
|
|
91
|
+
tenantId: z.string().optional(),
|
|
92
|
+
projectId: z.string().optional(),
|
|
93
|
+
name: z.string(),
|
|
94
|
+
type: z.enum(CredentialStoreType),
|
|
95
|
+
credentialStoreId: z.string(),
|
|
96
|
+
retrievalParams: z.record(z.string(), z.unknown()).nullish()
|
|
97
|
+
});
|
|
98
|
+
var DataComponentApiInsertSchema = z.object({
|
|
99
|
+
id: z.string(),
|
|
100
|
+
name: z.string(),
|
|
101
|
+
description: z.string().optional(),
|
|
102
|
+
props: z.record(z.string(), z.unknown()),
|
|
103
|
+
render: z.object({
|
|
104
|
+
component: z.string(),
|
|
105
|
+
mockData: z.record(z.string(), z.unknown())
|
|
107
106
|
}).nullable().optional()
|
|
108
107
|
});
|
|
109
108
|
var ArtifactComponentApiInsertSchema2 = ArtifactComponentApiInsertSchema;
|
|
110
|
-
var ContextConfigApiInsertSchema =
|
|
111
|
-
id:
|
|
112
|
-
name:
|
|
113
|
-
description:
|
|
114
|
-
type:
|
|
115
|
-
config:
|
|
116
|
-
});
|
|
117
|
-
var ExternalAgentApiInsertSchema =
|
|
118
|
-
id:
|
|
119
|
-
name:
|
|
120
|
-
description:
|
|
121
|
-
baseUrl:
|
|
122
|
-
headers:
|
|
123
|
-
credentialReferenceId:
|
|
124
|
-
type:
|
|
125
|
-
});
|
|
126
|
-
var AgentAgentApiInsertSchema =
|
|
127
|
-
id:
|
|
128
|
-
name:
|
|
129
|
-
description:
|
|
130
|
-
defaultSubAgentId:
|
|
109
|
+
var ContextConfigApiInsertSchema = z.object({
|
|
110
|
+
id: z.string().optional(),
|
|
111
|
+
name: z.string().optional(),
|
|
112
|
+
description: z.string().optional(),
|
|
113
|
+
type: z.string().optional(),
|
|
114
|
+
config: z.record(z.string(), z.unknown()).optional()
|
|
115
|
+
});
|
|
116
|
+
var ExternalAgentApiInsertSchema = z.object({
|
|
117
|
+
id: z.string().optional(),
|
|
118
|
+
name: z.string(),
|
|
119
|
+
description: z.string().optional(),
|
|
120
|
+
baseUrl: z.string(),
|
|
121
|
+
headers: z.record(z.string(), z.string()).nullable().optional(),
|
|
122
|
+
credentialReferenceId: z.string().nullable().optional(),
|
|
123
|
+
type: z.literal("external").optional()
|
|
124
|
+
});
|
|
125
|
+
var AgentAgentApiInsertSchema = z.object({
|
|
126
|
+
id: z.string().optional(),
|
|
127
|
+
name: z.string(),
|
|
128
|
+
description: z.string().optional(),
|
|
129
|
+
defaultSubAgentId: z.string().optional()
|
|
131
130
|
});
|
|
132
131
|
var FullAgentDefinitionSchema = AgentAgentApiInsertSchema.extend({
|
|
133
|
-
subAgents:
|
|
134
|
-
contextConfig:
|
|
135
|
-
models:
|
|
136
|
-
base:
|
|
137
|
-
model:
|
|
138
|
-
providerOptions:
|
|
132
|
+
subAgents: z.record(z.string(), z.union([FullAgentAgentInsertSchema])),
|
|
133
|
+
contextConfig: z.optional(ContextConfigApiInsertSchema),
|
|
134
|
+
models: z.object({
|
|
135
|
+
base: z.object({
|
|
136
|
+
model: z.string(),
|
|
137
|
+
providerOptions: z.record(z.string(), z.record(z.string(), z.unknown())).optional()
|
|
139
138
|
}).optional(),
|
|
140
|
-
structuredOutput:
|
|
141
|
-
model:
|
|
142
|
-
providerOptions:
|
|
139
|
+
structuredOutput: z.object({
|
|
140
|
+
model: z.string(),
|
|
141
|
+
providerOptions: z.record(z.string(), z.record(z.string(), z.unknown())).optional()
|
|
143
142
|
}).optional(),
|
|
144
|
-
summarizer:
|
|
145
|
-
model:
|
|
146
|
-
providerOptions:
|
|
143
|
+
summarizer: z.object({
|
|
144
|
+
model: z.string(),
|
|
145
|
+
providerOptions: z.record(z.string(), z.record(z.string(), z.unknown())).optional()
|
|
147
146
|
}).optional()
|
|
148
147
|
}).optional(),
|
|
149
|
-
stopWhen:
|
|
150
|
-
transferCountIs:
|
|
148
|
+
stopWhen: z.object({
|
|
149
|
+
transferCountIs: z.number().min(AGENT_EXECUTION_TRANSFER_COUNT_MIN).max(AGENT_EXECUTION_TRANSFER_COUNT_MAX).optional()
|
|
151
150
|
}).optional(),
|
|
152
|
-
prompt:
|
|
153
|
-
statusUpdates:
|
|
154
|
-
enabled:
|
|
155
|
-
numEvents:
|
|
156
|
-
timeInSeconds:
|
|
157
|
-
prompt:
|
|
158
|
-
statusComponents:
|
|
159
|
-
|
|
160
|
-
type:
|
|
161
|
-
description:
|
|
162
|
-
detailsSchema:
|
|
163
|
-
type:
|
|
164
|
-
properties:
|
|
165
|
-
required:
|
|
151
|
+
prompt: z.string().max(VALIDATION_AGENT_PROMPT_MAX_CHARS).optional(),
|
|
152
|
+
statusUpdates: z.object({
|
|
153
|
+
enabled: z.boolean().optional(),
|
|
154
|
+
numEvents: z.number().min(1).max(STATUS_UPDATE_MAX_NUM_EVENTS).optional(),
|
|
155
|
+
timeInSeconds: z.number().min(1).max(STATUS_UPDATE_MAX_INTERVAL_SECONDS).optional(),
|
|
156
|
+
prompt: z.string().max(VALIDATION_SUB_AGENT_PROMPT_MAX_CHARS).optional(),
|
|
157
|
+
statusComponents: z.array(
|
|
158
|
+
z.object({
|
|
159
|
+
type: z.string(),
|
|
160
|
+
description: z.string().optional(),
|
|
161
|
+
detailsSchema: z.object({
|
|
162
|
+
type: z.literal("object"),
|
|
163
|
+
properties: z.record(z.string(), z.any()),
|
|
164
|
+
required: z.array(z.string()).optional()
|
|
166
165
|
}).optional()
|
|
167
166
|
})
|
|
168
167
|
).optional()
|
|
@@ -171,7 +170,7 @@ var FullAgentDefinitionSchema = AgentAgentApiInsertSchema.extend({
|
|
|
171
170
|
var MIN_ID_LENGTH = 1;
|
|
172
171
|
var MAX_ID_LENGTH = 255;
|
|
173
172
|
var URL_SAFE_ID_PATTERN = /^[a-zA-Z0-9\-_.]+$/;
|
|
174
|
-
var resourceIdSchema =
|
|
173
|
+
var resourceIdSchema = z.string().min(MIN_ID_LENGTH).max(MAX_ID_LENGTH).regex(URL_SAFE_ID_PATTERN, {
|
|
175
174
|
message: "ID must contain only letters, numbers, hyphens, underscores, and dots"
|
|
176
175
|
});
|
|
177
176
|
function generateIdFromName(name) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { AGENT_EXECUTION_TRANSFER_COUNT_DEFAULT, AGENT_EXECUTION_TRANSFER_COUNT_MAX, AGENT_EXECUTION_TRANSFER_COUNT_MIN, CONTEXT_FETCHER_HTTP_TIMEOUT_MS_DEFAULT, STATUS_UPDATE_MAX_INTERVAL_SECONDS, STATUS_UPDATE_MAX_NUM_EVENTS, SUB_AGENT_TURN_GENERATION_STEPS_DEFAULT, SUB_AGENT_TURN_GENERATION_STEPS_MAX, SUB_AGENT_TURN_GENERATION_STEPS_MIN, VALIDATION_AGENT_PROMPT_MAX_CHARS, VALIDATION_SUB_AGENT_PROMPT_MAX_CHARS } from '../../chunk-
|
|
1
|
+
export { AGENT_EXECUTION_TRANSFER_COUNT_DEFAULT, AGENT_EXECUTION_TRANSFER_COUNT_MAX, AGENT_EXECUTION_TRANSFER_COUNT_MIN, CONTEXT_FETCHER_HTTP_TIMEOUT_MS_DEFAULT, STATUS_UPDATE_MAX_INTERVAL_SECONDS, STATUS_UPDATE_MAX_NUM_EVENTS, SUB_AGENT_TURN_GENERATION_STEPS_DEFAULT, SUB_AGENT_TURN_GENERATION_STEPS_MAX, SUB_AGENT_TURN_GENERATION_STEPS_MIN, VALIDATION_AGENT_PROMPT_MAX_CHARS, VALIDATION_SUB_AGENT_PROMPT_MAX_CHARS } from '../../chunk-ZEZCCHV7.js';
|
|
2
2
|
export { schemaValidationDefaults } from '../../chunk-Z64UK4CA.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { CredentialStore } from '../
|
|
2
|
-
import '
|
|
1
|
+
import { C as CredentialStore } from '../server-BXoUiBMg.js';
|
|
2
|
+
import 'hono';
|
|
3
|
+
import '../utility-Lo5NoRHK.js';
|
|
3
4
|
import 'zod';
|
|
4
5
|
import 'drizzle-zod';
|
|
5
6
|
import 'drizzle-orm/pg-core';
|
|
6
7
|
import '@hono/zod-openapi';
|
|
7
|
-
import 'hono';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Registry for managing credential stores in the application context
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { CredentialStoreRegistry, InMemoryCredentialStore, KeyChainStore, NangoCredentialStore, createDefaultCredentialStores, createKeyChainStore, createNangoCredentialStore } from '../chunk-
|
|
1
|
+
export { CredentialStoreRegistry, InMemoryCredentialStore, KeyChainStore, NangoCredentialStore, createDefaultCredentialStores, createKeyChainStore, createNangoCredentialStore } from '../chunk-FOK3JSQN.js';
|
package/dist/db/schema.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import 'drizzle-orm';
|
|
2
2
|
import 'drizzle-orm/pg-core';
|
|
3
|
-
import '../utility-
|
|
3
|
+
import '../utility-Lo5NoRHK.js';
|
|
4
4
|
export { account, invitation, member, organization, session, ssoProvider, user, verification } from '../auth/auth-schema.js';
|
|
5
|
-
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-
|
|
5
|
+
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-DKbG39on.js';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import 'drizzle-zod';
|
|
8
8
|
import '@hono/zod-openapi';
|
package/dist/db/schema.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
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-
|
|
2
|
-
export { account, invitation, member, organization, session, ssoProvider, user, verification } 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-PVRIMF6N.js';
|
|
2
|
+
export { account, invitation, member, organization, session, ssoProvider, user, verification } from '../chunk-NFTJ5JBY.js';
|
package/dist/db/test-client.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { D as DatabaseClient } from '../client-
|
|
1
|
+
import { D as DatabaseClient } from '../client-B_3j-V4-.js';
|
|
2
2
|
import 'drizzle-orm/node-postgres';
|
|
3
3
|
import 'drizzle-orm/pglite';
|
|
4
|
-
import '../schema-
|
|
4
|
+
import '../schema-DKbG39on.js';
|
|
5
5
|
import 'drizzle-orm';
|
|
6
6
|
import 'drizzle-orm/pg-core';
|
|
7
|
-
import '../utility-
|
|
7
|
+
import '../utility-Lo5NoRHK.js';
|
|
8
8
|
import 'zod';
|
|
9
9
|
import 'drizzle-zod';
|
|
10
10
|
import '@hono/zod-openapi';
|
package/dist/db/test-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { cleanupTestDatabase, closeTestDatabase, createTestDatabaseClient, createTestOrganization, createTestProject } from '../chunk-
|
|
1
|
+
export { cleanupTestDatabase, closeTestDatabase, createTestDatabaseClient, createTestOrganization, createTestProject } from '../chunk-I6IF7ZTL.js';
|