@inkeep/agents-core 0.37.0 → 0.37.2
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.d.ts +47 -1
- package/dist/auth/auth-schema.js +1 -1
- package/dist/auth/auth-validation-schemas.d.ts +35 -1
- package/dist/auth/auth-validation-schemas.js +18 -18
- package/dist/auth/auth.d.ts +23 -23
- package/dist/auth/auth.js +13 -5
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/auth/permissions.js +1 -1
- package/dist/{auth-detection-CGqhPDnj.d.ts → auth-detection-7G0Dxt55.d.ts} +11 -0
- package/dist/{chunk-ICZLNCX7.js → chunk-3HACEHXF.js} +370 -71
- package/dist/{chunk-32YRH2S7.js → chunk-5QZSNATS.js} +63 -67
- package/dist/{chunk-SSRRHYU4.js → chunk-6CYQZ5KX.js} +4 -5
- package/dist/{chunk-SLQW43IV.js → chunk-BJLC7EI4.js} +4 -5
- package/dist/chunk-CMNLBV2A.js +39 -0
- package/dist/{chunk-NFYCSHD3.js → chunk-DEYPSEXR.js} +2 -1
- package/dist/chunk-GENLXHZ4.js +159 -0
- package/dist/{chunk-VMSYBWFH.js → chunk-JNBVHWXX.js} +7 -4
- package/dist/{chunk-TGESM3JG.js → chunk-MQMMFK2K.js} +14 -3
- package/dist/{chunk-Q5U2SVA6.js → chunk-RUTYLJB7.js} +11 -7
- package/dist/{chunk-VQXQOGJU.js → chunk-XHODTX4H.js} +313 -315
- package/dist/{chunk-MB2ZIPZS.js → chunk-YSFXXC6K.js} +5 -5
- package/dist/{chunk-SG75RA63.js → chunk-ZSYMSL55.js} +2 -2
- package/dist/{client-CnpNkGsH.d.ts → client-B3nwdklT.d.ts} +1 -1
- package/dist/client-exports.d.ts +10 -8
- package/dist/client-exports.js +126 -127
- package/dist/constants/schema-validation/index.js +1 -1
- package/dist/credential-stores/index.d.ts +4 -5
- package/dist/credential-stores/index.js +1 -1
- package/dist/db/schema.d.ts +3 -4
- package/dist/db/schema.js +2 -2
- package/dist/db/test-client.d.ts +4 -5
- package/dist/db/test-client.js +1 -1
- package/dist/index.d.ts +675 -558
- package/dist/index.js +297 -76
- package/dist/{schema-Cgkp_geg.d.ts → schema-BhYTubhP.d.ts} +24 -1
- package/dist/server-CHLmv-Jb.d.ts +127 -0
- package/dist/types/index.d.ts +34 -115
- package/dist/types/index.js +1 -1
- package/dist/{utility-C_tTZ7-k.d.ts → utility-5USfJ5Xd.d.ts} +588 -459
- package/dist/utils/schema-conversion.d.ts +1 -1
- package/dist/utils/schema-conversion.js +1 -1
- package/dist/validation/index.d.ts +131 -132
- package/dist/validation/index.js +2 -2
- package/drizzle/{0001_fair_malice.sql → 0001_calm_sheva_callister.sql} +1 -16
- package/drizzle/0002_puzzling_goblin_queen.sql +8 -0
- package/drizzle/0003_sweet_human_robot.sql +8 -0
- package/drizzle/meta/0001_snapshot.json +7 -1
- package/drizzle/meta/0002_snapshot.json +3637 -0
- package/drizzle/meta/0003_snapshot.json +3643 -0
- package/drizzle/meta/_journal.json +16 -2
- package/package.json +11 -3
- package/dist/chunk-CUM6BY2Y.js +0 -320
- package/dist/chunk-H2F72PDA.js +0 -15
- package/dist/chunk-NOPEANIU.js +0 -82
- package/dist/chunk-OUXC23J7.js +0 -12534
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getLogger } from './chunk-DN4B564Y.js';
|
|
2
2
|
import { CredentialStoreType } from './chunk-YFHT5M2R.js';
|
|
3
|
-
import { external_exports } from './chunk-OUXC23J7.js';
|
|
4
3
|
import { Nango } from '@nangohq/node';
|
|
4
|
+
import { z } from '@hono/zod-openapi';
|
|
5
5
|
|
|
6
6
|
// src/credential-stores/CredentialStoreRegistry.ts
|
|
7
7
|
var CredentialStoreRegistry = class {
|
|
@@ -349,10 +349,10 @@ var InMemoryCredentialStore = class {
|
|
|
349
349
|
}
|
|
350
350
|
};
|
|
351
351
|
var logger = getLogger("nango-credential-store");
|
|
352
|
-
var CredentialKeySchema =
|
|
353
|
-
connectionId:
|
|
354
|
-
providerConfigKey:
|
|
355
|
-
integrationDisplayName:
|
|
352
|
+
var CredentialKeySchema = z.object({
|
|
353
|
+
connectionId: z.string().min(1, "connectionId must be a non-empty string"),
|
|
354
|
+
providerConfigKey: z.string().min(1, "providerConfigKey must be a non-empty string"),
|
|
355
|
+
integrationDisplayName: z.string().nullish()
|
|
356
356
|
});
|
|
357
357
|
function parseCredentialKey(key) {
|
|
358
358
|
try {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { schema_exports, projects } from './chunk-
|
|
2
|
-
import { organization } from './chunk-
|
|
1
|
+
import { schema_exports, projects } from './chunk-DEYPSEXR.js';
|
|
2
|
+
import { organization } from './chunk-GENLXHZ4.js';
|
|
3
3
|
import { dirname, join } from 'path';
|
|
4
4
|
import { fileURLToPath } from 'url';
|
|
5
5
|
import { PGlite } from '@electric-sql/pglite';
|
|
@@ -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-BhYTubhP.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,12 +1,11 @@
|
|
|
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-
|
|
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-
|
|
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
|
+
import { z } from '@hono/zod-openapi';
|
|
3
|
+
import { C as ConversationHistoryConfig, F as FunctionApiInsertSchema, A as ApiKeyApiUpdateSchema, a as FullAgentAgentInsertSchema } from './utility-5USfJ5Xd.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-5USfJ5Xd.js';
|
|
5
5
|
export { v as validatePropsAsJsonSchema } from './props-validation-BMR1qNiy.js';
|
|
6
6
|
import 'pino';
|
|
7
7
|
import 'drizzle-zod';
|
|
8
8
|
import 'drizzle-orm/pg-core';
|
|
9
|
-
import '@hono/zod-openapi';
|
|
10
9
|
|
|
11
10
|
declare const TenantParamsSchema: z.ZodObject<{
|
|
12
11
|
tenantId: z.ZodString;
|
|
@@ -134,8 +133,8 @@ declare const DataComponentApiInsertSchema: z.ZodObject<{
|
|
|
134
133
|
}, z.core.$strip>>>;
|
|
135
134
|
}, z.core.$strip>;
|
|
136
135
|
declare const ArtifactComponentApiInsertSchema: z.ZodObject<{
|
|
137
|
-
id: z.ZodString;
|
|
138
136
|
name: z.ZodString;
|
|
137
|
+
id: z.ZodString;
|
|
139
138
|
description: z.ZodString;
|
|
140
139
|
props: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
|
|
141
140
|
}, {
|
|
@@ -170,11 +169,11 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
|
|
|
170
169
|
description: z.ZodOptional<z.ZodString>;
|
|
171
170
|
defaultSubAgentId: z.ZodOptional<z.ZodString>;
|
|
172
171
|
subAgents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
173
|
-
id: z.ZodString;
|
|
174
172
|
name: z.ZodString;
|
|
175
|
-
|
|
173
|
+
id: z.ZodString;
|
|
176
174
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
177
175
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
176
|
+
description: z.ZodString;
|
|
178
177
|
models: z.ZodOptional<z.ZodObject<{
|
|
179
178
|
base: z.ZodOptional<z.ZodObject<{
|
|
180
179
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -205,6 +204,9 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
|
|
|
205
204
|
toolId: z.ZodString;
|
|
206
205
|
toolSelection: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
207
206
|
headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
207
|
+
toolPolicies: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
208
|
+
needsApproval: z.ZodOptional<z.ZodBoolean>;
|
|
209
|
+
}, z.core.$strip>>>>;
|
|
208
210
|
}, z.core.$strip>>;
|
|
209
211
|
dataComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
210
212
|
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-XHODTX4H.js';
|
|
3
|
+
export { AgentStopWhenSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, ModelSettingsSchema, StopWhenSchema, SubAgentStopWhenSchema, validatePropsAsJsonSchema } from './chunk-XHODTX4H.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 '@hono/zod-openapi';
|
|
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-BJLC7EI4.js';
|
|
2
2
|
export { schemaValidationDefaults } from '../../chunk-Z64UK4CA.js';
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { CredentialStore } from '../
|
|
2
|
-
import '
|
|
3
|
-
import '
|
|
1
|
+
import { C as CredentialStore } from '../server-CHLmv-Jb.js';
|
|
2
|
+
import 'hono';
|
|
3
|
+
import '../utility-5USfJ5Xd.js';
|
|
4
|
+
import '@hono/zod-openapi';
|
|
4
5
|
import 'drizzle-zod';
|
|
5
6
|
import 'drizzle-orm/pg-core';
|
|
6
|
-
import '@hono/zod-openapi';
|
|
7
|
-
import 'hono';
|
|
8
7
|
|
|
9
8
|
/**
|
|
10
9
|
* 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-YSFXXC6K.js';
|
package/dist/db/schema.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import 'drizzle-orm';
|
|
2
2
|
import 'drizzle-orm/pg-core';
|
|
3
|
-
import '../utility-
|
|
3
|
+
import '../utility-5USfJ5Xd.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-
|
|
6
|
-
import 'zod';
|
|
7
|
-
import 'drizzle-zod';
|
|
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-BhYTubhP.js';
|
|
8
6
|
import '@hono/zod-openapi';
|
|
7
|
+
import 'drizzle-zod';
|
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-DEYPSEXR.js';
|
|
2
|
+
export { account, invitation, member, organization, session, ssoProvider, user, verification } from '../chunk-GENLXHZ4.js';
|
package/dist/db/test-client.d.ts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { D as DatabaseClient } from '../client-
|
|
1
|
+
import { D as DatabaseClient } from '../client-B3nwdklT.js';
|
|
2
2
|
import 'drizzle-orm/node-postgres';
|
|
3
3
|
import 'drizzle-orm/pglite';
|
|
4
|
-
import '../schema-
|
|
4
|
+
import '../schema-BhYTubhP.js';
|
|
5
5
|
import 'drizzle-orm';
|
|
6
6
|
import 'drizzle-orm/pg-core';
|
|
7
|
-
import '../utility-
|
|
8
|
-
import 'zod';
|
|
9
|
-
import 'drizzle-zod';
|
|
7
|
+
import '../utility-5USfJ5Xd.js';
|
|
10
8
|
import '@hono/zod-openapi';
|
|
9
|
+
import 'drizzle-zod';
|
|
11
10
|
import '../auth/auth-schema.js';
|
|
12
11
|
|
|
13
12
|
/**
|
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-ZSYMSL55.js';
|