@inkeep/agents-core 0.27.0 → 0.29.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-QPOB7LI5.js → chunk-C2QU7WTO.js} +2 -1
- package/dist/{chunk-TE25X6YU.js → chunk-OSAGBXSF.js} +25 -31
- package/dist/{chunk-YD4OSCYB.js → chunk-T5TTDZ6L.js} +2 -1
- package/dist/client-exports.cjs +9 -2
- package/dist/client-exports.d.cts +7 -2
- package/dist/client-exports.d.ts +7 -2
- package/dist/client-exports.js +8 -3
- package/dist/db/schema.cjs +2 -1
- package/dist/db/schema.d.cts +2 -2
- package/dist/db/schema.d.ts +2 -2
- package/dist/db/schema.js +1 -1
- package/dist/index.cjs +100 -151
- package/dist/index.d.cts +12 -14
- package/dist/index.d.ts +12 -14
- package/dist/index.js +79 -126
- package/dist/{schema-Y8eFxpzw.d.ts → schema-BQf2wGSE.d.ts} +26 -7
- package/dist/{schema-D_tjHvOp.d.cts → schema-C-rqra-r.d.cts} +26 -7
- package/dist/types/index.d.cts +3 -3
- package/dist/types/index.d.ts +3 -3
- package/dist/{utility-ne-rF1pW.d.cts → utility-C5D70uSj.d.cts} +98 -87
- package/dist/{utility-ne-rF1pW.d.ts → utility-C5D70uSj.d.ts} +98 -87
- package/dist/validation/index.cjs +107 -111
- package/dist/validation/index.d.cts +10 -10
- package/dist/validation/index.d.ts +10 -10
- package/dist/validation/index.js +2 -2
- package/drizzle/0013_shocking_blur.sql +19 -0
- package/drizzle/0014_broad_hellfire_club.sql +29 -0
- package/drizzle/meta/0013_snapshot.json +2988 -0
- package/drizzle/meta/0014_snapshot.json +2992 -0
- package/drizzle/meta/_journal.json +14 -0
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { subAgents, subAgentRelations, agents, tasks, taskRelations, tools, conversations, messages, contextCache, dataComponents, subAgentDataComponents, artifactComponents, subAgentArtifactComponents, externalAgents, apiKeys, credentialReferences, functionTools, functions, contextConfigs, subAgentToolRelations, subAgentExternalAgentRelations, subAgentTeamAgentRelations, ledgerArtifacts, projects } from './chunk-
|
|
1
|
+
import { subAgents, subAgentRelations, agents, tasks, taskRelations, tools, conversations, messages, contextCache, dataComponents, subAgentDataComponents, artifactComponents, subAgentArtifactComponents, externalAgents, apiKeys, credentialReferences, functionTools, functions, contextConfigs, subAgentToolRelations, subAgentExternalAgentRelations, subAgentTeamAgentRelations, ledgerArtifacts, projects } from './chunk-T5TTDZ6L.js';
|
|
2
2
|
import { VALID_RELATION_TYPES, MCPTransportType, TOOL_STATUS_VALUES, CredentialStoreType, MCPServerType } from './chunk-YFHT5M2R.js';
|
|
3
3
|
import { z } from '@hono/zod-openapi';
|
|
4
4
|
import { createSelectSchema, createInsertSchema } from 'drizzle-zod';
|
|
@@ -361,6 +361,7 @@ var CredentialReferenceSelectSchema = z.object({
|
|
|
361
361
|
id: z.string(),
|
|
362
362
|
tenantId: z.string(),
|
|
363
363
|
projectId: z.string(),
|
|
364
|
+
name: z.string(),
|
|
364
365
|
type: z.string(),
|
|
365
366
|
credentialStoreId: z.string(),
|
|
366
367
|
retrievalParams: z.record(z.string(), z.unknown()).nullish(),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AgentWithinContextOfProjectSchema, resourceIdSchema, MAX_ID_LENGTH } from './chunk-
|
|
1
|
+
import { AgentWithinContextOfProjectSchema, resourceIdSchema, MAX_ID_LENGTH } from './chunk-C2QU7WTO.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
// src/validation/agentFull.ts
|
|
@@ -188,7 +188,7 @@ function generateIdFromName(name) {
|
|
|
188
188
|
return truncatedId;
|
|
189
189
|
}
|
|
190
190
|
|
|
191
|
-
// src/validation/
|
|
191
|
+
// src/validation/render-validation.ts
|
|
192
192
|
var MAX_CODE_SIZE = 5e4;
|
|
193
193
|
var MAX_DATA_SIZE = 1e4;
|
|
194
194
|
var DANGEROUS_PATTERNS = [
|
|
@@ -226,75 +226,69 @@ var DANGEROUS_PATTERNS = [
|
|
|
226
226
|
}
|
|
227
227
|
];
|
|
228
228
|
var ALLOWED_IMPORTS = ["lucide-react"];
|
|
229
|
-
function
|
|
229
|
+
function validateRender(render) {
|
|
230
230
|
const errors = [];
|
|
231
|
-
if (!
|
|
231
|
+
if (!render.component || typeof render.component !== "string") {
|
|
232
232
|
return {
|
|
233
233
|
isValid: false,
|
|
234
|
-
errors: [{ field: "
|
|
234
|
+
errors: [{ field: "render.component", message: "Component must be a non-empty string" }]
|
|
235
235
|
};
|
|
236
236
|
}
|
|
237
|
-
if (!
|
|
237
|
+
if (!render.mockData || typeof render.mockData !== "object") {
|
|
238
238
|
return {
|
|
239
239
|
isValid: false,
|
|
240
|
-
errors: [{ field: "
|
|
240
|
+
errors: [{ field: "render.mockData", message: "MockData must be an object" }]
|
|
241
241
|
};
|
|
242
242
|
}
|
|
243
|
-
if (
|
|
243
|
+
if (render.component.length > MAX_CODE_SIZE) {
|
|
244
244
|
errors.push({
|
|
245
|
-
field: "
|
|
246
|
-
message: `
|
|
245
|
+
field: "render.component",
|
|
246
|
+
message: `Component size exceeds maximum allowed (${MAX_CODE_SIZE} characters)`
|
|
247
247
|
});
|
|
248
248
|
}
|
|
249
|
-
const dataString = JSON.stringify(
|
|
249
|
+
const dataString = JSON.stringify(render.mockData);
|
|
250
250
|
if (dataString.length > MAX_DATA_SIZE) {
|
|
251
251
|
errors.push({
|
|
252
|
-
field: "
|
|
253
|
-
message: `
|
|
252
|
+
field: "render.mockData",
|
|
253
|
+
message: `MockData size exceeds maximum allowed (${MAX_DATA_SIZE} characters)`
|
|
254
254
|
});
|
|
255
255
|
}
|
|
256
256
|
for (const { pattern, message } of DANGEROUS_PATTERNS) {
|
|
257
|
-
if (pattern.test(
|
|
257
|
+
if (pattern.test(render.component)) {
|
|
258
258
|
errors.push({
|
|
259
|
-
field: "
|
|
260
|
-
message: `
|
|
259
|
+
field: "render.component",
|
|
260
|
+
message: `Component contains potentially dangerous pattern: ${message}`
|
|
261
261
|
});
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
|
-
const importMatches =
|
|
264
|
+
const importMatches = render.component.matchAll(/import\s+.*?\s+from\s+['"]([^'"]+)['"]/g);
|
|
265
265
|
for (const match of importMatches) {
|
|
266
266
|
const importPath = match[1];
|
|
267
|
-
if (!ALLOWED_IMPORTS.includes(importPath)) {
|
|
267
|
+
if (!ALLOWED_IMPORTS.includes(importPath) && !importPath.startsWith(".")) {
|
|
268
268
|
errors.push({
|
|
269
|
-
field: "
|
|
269
|
+
field: "render.component",
|
|
270
270
|
message: `Import from "${importPath}" is not allowed. Only imports from ${ALLOWED_IMPORTS.join(", ")} are permitted`
|
|
271
271
|
});
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
|
-
const hasFunctionDeclaration = /function\s+\w+\s*\(/.test(
|
|
274
|
+
const hasFunctionDeclaration = /function\s+\w+\s*\(/.test(render.component);
|
|
275
275
|
if (!hasFunctionDeclaration) {
|
|
276
276
|
errors.push({
|
|
277
|
-
field: "
|
|
278
|
-
message: "
|
|
277
|
+
field: "render.component",
|
|
278
|
+
message: "Component must contain a function declaration"
|
|
279
279
|
});
|
|
280
280
|
}
|
|
281
|
-
const hasReturn = /return\s*\(?\s*</.test(
|
|
281
|
+
const hasReturn = /return\s*\(?\s*</.test(render.component);
|
|
282
282
|
if (!hasReturn) {
|
|
283
283
|
errors.push({
|
|
284
|
-
field: "
|
|
284
|
+
field: "render.component",
|
|
285
285
|
message: "Component function must have a return statement with JSX"
|
|
286
286
|
});
|
|
287
287
|
}
|
|
288
|
-
if (/\bexport\s+(default\s+)?/i.test(preview.code)) {
|
|
289
|
-
errors.push({
|
|
290
|
-
field: "preview.code",
|
|
291
|
-
message: "Code should not contain export statements"
|
|
292
|
-
});
|
|
293
|
-
}
|
|
294
288
|
return {
|
|
295
289
|
isValid: errors.length === 0,
|
|
296
290
|
errors
|
|
297
291
|
};
|
|
298
292
|
}
|
|
299
293
|
|
|
300
|
-
export { A2AMessageMetadataSchema, DataOperationDetailsSchema, DataOperationEventSchema, DelegationReturnedDataSchema, DelegationSentDataSchema, TransferDataSchema, generateIdFromName, isValidResourceId, validateAgentRelationships, validateAgentStructure, validateAndTypeAgentData, validateArtifactComponentReferences, validateDataComponentReferences,
|
|
294
|
+
export { A2AMessageMetadataSchema, DataOperationDetailsSchema, DataOperationEventSchema, DelegationReturnedDataSchema, DelegationSentDataSchema, TransferDataSchema, generateIdFromName, isValidResourceId, validateAgentRelationships, validateAgentStructure, validateAndTypeAgentData, validateArtifactComponentReferences, validateDataComponentReferences, validateRender, validateSubAgentExternalAgentRelations, validateToolReferences };
|
|
@@ -268,7 +268,7 @@ var dataComponents = sqliteTable(
|
|
|
268
268
|
...projectScoped,
|
|
269
269
|
...uiProperties,
|
|
270
270
|
props: blob("props", { mode: "json" }).$type(),
|
|
271
|
-
|
|
271
|
+
render: blob("render", { mode: "json" }).$type(),
|
|
272
272
|
...timestamps
|
|
273
273
|
},
|
|
274
274
|
(table) => [
|
|
@@ -621,6 +621,7 @@ var credentialReferences = sqliteTable(
|
|
|
621
621
|
"credential_references",
|
|
622
622
|
{
|
|
623
623
|
...projectScoped,
|
|
624
|
+
name: text("name").notNull(),
|
|
624
625
|
type: text("type").notNull(),
|
|
625
626
|
credentialStoreId: text("credential_store_id").notNull(),
|
|
626
627
|
retrievalParams: blob("retrieval_params", { mode: "json" }).$type(),
|
package/dist/client-exports.cjs
CHANGED
|
@@ -242,7 +242,7 @@ var dataComponents = sqliteCore.sqliteTable(
|
|
|
242
242
|
...projectScoped,
|
|
243
243
|
...uiProperties,
|
|
244
244
|
props: sqliteCore.blob("props", { mode: "json" }).$type(),
|
|
245
|
-
|
|
245
|
+
render: sqliteCore.blob("render", { mode: "json" }).$type(),
|
|
246
246
|
...timestamps
|
|
247
247
|
},
|
|
248
248
|
(table) => [
|
|
@@ -595,6 +595,7 @@ var credentialReferences = sqliteCore.sqliteTable(
|
|
|
595
595
|
"credential_references",
|
|
596
596
|
{
|
|
597
597
|
...projectScoped,
|
|
598
|
+
name: sqliteCore.text("name").notNull(),
|
|
598
599
|
type: sqliteCore.text("type").notNull(),
|
|
599
600
|
credentialStoreId: sqliteCore.text("credential_store_id").notNull(),
|
|
600
601
|
retrievalParams: sqliteCore.blob("retrieval_params", { mode: "json" }).$type(),
|
|
@@ -1318,6 +1319,7 @@ var CredentialReferenceSelectSchema = zodOpenapi.z.object({
|
|
|
1318
1319
|
id: zodOpenapi.z.string(),
|
|
1319
1320
|
tenantId: zodOpenapi.z.string(),
|
|
1320
1321
|
projectId: zodOpenapi.z.string(),
|
|
1322
|
+
name: zodOpenapi.z.string(),
|
|
1321
1323
|
type: zodOpenapi.z.string(),
|
|
1322
1324
|
credentialStoreId: zodOpenapi.z.string(),
|
|
1323
1325
|
retrievalParams: zodOpenapi.z.record(zodOpenapi.z.string(), zodOpenapi.z.unknown()).nullish(),
|
|
@@ -2303,6 +2305,7 @@ var CredentialReferenceApiInsertSchema2 = zod.z.object({
|
|
|
2303
2305
|
id: zod.z.string(),
|
|
2304
2306
|
tenantId: zod.z.string().optional(),
|
|
2305
2307
|
projectId: zod.z.string().optional(),
|
|
2308
|
+
name: zod.z.string(),
|
|
2306
2309
|
type: zod.z.enum(CredentialStoreType),
|
|
2307
2310
|
credentialStoreId: zod.z.string(),
|
|
2308
2311
|
retrievalParams: zod.z.record(zod.z.string(), zod.z.unknown()).nullish()
|
|
@@ -2311,7 +2314,11 @@ var DataComponentApiInsertSchema2 = zod.z.object({
|
|
|
2311
2314
|
id: zod.z.string(),
|
|
2312
2315
|
name: zod.z.string(),
|
|
2313
2316
|
description: zod.z.string().optional(),
|
|
2314
|
-
props: zod.z.record(zod.z.string(), zod.z.unknown())
|
|
2317
|
+
props: zod.z.record(zod.z.string(), zod.z.unknown()),
|
|
2318
|
+
render: zod.z.object({
|
|
2319
|
+
component: zod.z.string(),
|
|
2320
|
+
mockData: zod.z.record(zod.z.string(), zod.z.unknown())
|
|
2321
|
+
}).nullable().optional()
|
|
2315
2322
|
});
|
|
2316
2323
|
var ArtifactComponentApiInsertSchema2 = ArtifactComponentApiInsertSchema;
|
|
2317
2324
|
var ContextConfigApiInsertSchema2 = zod.z.object({
|
|
@@ -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';
|
|
@@ -114,6 +114,7 @@ declare const CredentialReferenceApiInsertSchema: z.ZodObject<{
|
|
|
114
114
|
id: z.ZodString;
|
|
115
115
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
116
116
|
projectId: z.ZodOptional<z.ZodString>;
|
|
117
|
+
name: z.ZodString;
|
|
117
118
|
type: z.ZodEnum<{
|
|
118
119
|
readonly memory: "memory";
|
|
119
120
|
readonly keychain: "keychain";
|
|
@@ -127,6 +128,10 @@ declare const DataComponentApiInsertSchema: z.ZodObject<{
|
|
|
127
128
|
name: z.ZodString;
|
|
128
129
|
description: z.ZodOptional<z.ZodString>;
|
|
129
130
|
props: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
131
|
+
render: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
132
|
+
component: z.ZodString;
|
|
133
|
+
mockData: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
134
|
+
}, z.core.$strip>>>;
|
|
130
135
|
}, z.core.$strip>;
|
|
131
136
|
declare const ArtifactComponentApiInsertSchema: z.ZodObject<{
|
|
132
137
|
id: z.ZodString;
|
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';
|
|
@@ -114,6 +114,7 @@ declare const CredentialReferenceApiInsertSchema: z.ZodObject<{
|
|
|
114
114
|
id: z.ZodString;
|
|
115
115
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
116
116
|
projectId: z.ZodOptional<z.ZodString>;
|
|
117
|
+
name: z.ZodString;
|
|
117
118
|
type: z.ZodEnum<{
|
|
118
119
|
readonly memory: "memory";
|
|
119
120
|
readonly keychain: "keychain";
|
|
@@ -127,6 +128,10 @@ declare const DataComponentApiInsertSchema: z.ZodObject<{
|
|
|
127
128
|
name: z.ZodString;
|
|
128
129
|
description: z.ZodOptional<z.ZodString>;
|
|
129
130
|
props: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
131
|
+
render: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
132
|
+
component: z.ZodString;
|
|
133
|
+
mockData: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
134
|
+
}, z.core.$strip>>>;
|
|
130
135
|
}, z.core.$strip>;
|
|
131
136
|
declare const ArtifactComponentApiInsertSchema: z.ZodObject<{
|
|
132
137
|
id: z.ZodString;
|
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-C2QU7WTO.js';
|
|
3
|
+
export { AgentStopWhenSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, ModelSettingsSchema, StopWhenSchema, SubAgentStopWhenSchema, validatePropsAsJsonSchema } from './chunk-C2QU7WTO.js';
|
|
4
4
|
import { CredentialStoreType } from './chunk-YFHT5M2R.js';
|
|
5
5
|
export { CredentialStoreType, MCPTransportType } from './chunk-YFHT5M2R.js';
|
|
6
6
|
import { z } from 'zod';
|
|
@@ -80,6 +80,7 @@ var CredentialReferenceApiInsertSchema = z.object({
|
|
|
80
80
|
id: z.string(),
|
|
81
81
|
tenantId: z.string().optional(),
|
|
82
82
|
projectId: z.string().optional(),
|
|
83
|
+
name: z.string(),
|
|
83
84
|
type: z.enum(CredentialStoreType),
|
|
84
85
|
credentialStoreId: z.string(),
|
|
85
86
|
retrievalParams: z.record(z.string(), z.unknown()).nullish()
|
|
@@ -88,7 +89,11 @@ var DataComponentApiInsertSchema = z.object({
|
|
|
88
89
|
id: z.string(),
|
|
89
90
|
name: z.string(),
|
|
90
91
|
description: z.string().optional(),
|
|
91
|
-
props: z.record(z.string(), z.unknown())
|
|
92
|
+
props: z.record(z.string(), z.unknown()),
|
|
93
|
+
render: z.object({
|
|
94
|
+
component: z.string(),
|
|
95
|
+
mockData: z.record(z.string(), z.unknown())
|
|
96
|
+
}).nullable().optional()
|
|
92
97
|
});
|
|
93
98
|
var ArtifactComponentApiInsertSchema2 = ArtifactComponentApiInsertSchema;
|
|
94
99
|
var ContextConfigApiInsertSchema = z.object({
|
package/dist/db/schema.cjs
CHANGED
|
@@ -216,7 +216,7 @@ var dataComponents = sqliteCore.sqliteTable(
|
|
|
216
216
|
...projectScoped,
|
|
217
217
|
...uiProperties,
|
|
218
218
|
props: sqliteCore.blob("props", { mode: "json" }).$type(),
|
|
219
|
-
|
|
219
|
+
render: sqliteCore.blob("render", { mode: "json" }).$type(),
|
|
220
220
|
...timestamps
|
|
221
221
|
},
|
|
222
222
|
(table) => [
|
|
@@ -569,6 +569,7 @@ var credentialReferences = sqliteCore.sqliteTable(
|
|
|
569
569
|
"credential_references",
|
|
570
570
|
{
|
|
571
571
|
...projectScoped,
|
|
572
|
+
name: sqliteCore.text("name").notNull(),
|
|
572
573
|
type: sqliteCore.text("type").notNull(),
|
|
573
574
|
credentialStoreId: sqliteCore.text("credential_store_id").notNull(),
|
|
574
575
|
retrievalParams: sqliteCore.blob("retrieval_params", { mode: "json" }).$type(),
|
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/db/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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-
|
|
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-T5TTDZ6L.js';
|