@inkeep/agents-core 0.5.0 → 0.6.4
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-LPIKPCE5.js → chunk-7OCPFKGI.js} +7 -6
- package/dist/{chunk-XQRFKXVV.js → chunk-T5JVBY6K.js} +5 -5
- package/dist/{chunk-LFWFXR4O.js → chunk-TNFWLVL6.js} +1 -0
- package/dist/client-exports.cjs +9 -29
- package/dist/client-exports.js +5 -26
- package/dist/db/schema.cjs +1 -0
- package/dist/db/schema.js +1 -1
- package/dist/index.cjs +214 -141
- package/dist/index.js +209 -140
- package/dist/validation/index.cjs +11 -8
- package/dist/validation/index.js +2 -2
- package/package.json +18 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { agents, agentRelations, agentGraph, tasks, taskRelations, tools, conversations, messages, contextCache, dataComponents, agentDataComponents, artifactComponents, agentArtifactComponents, externalAgents, apiKeys, credentialReferences, contextConfigs, agentToolRelations, ledgerArtifacts, projects } from './chunk-TNFWLVL6.js';
|
|
1
2
|
import { VALID_RELATION_TYPES, MCPTransportType, TOOL_STATUS_VALUES, CredentialStoreType, MCPServerType } from './chunk-SVGQSPW4.js';
|
|
2
|
-
import { agents, agentRelations, agentGraph, tasks, taskRelations, tools, conversations, messages, contextCache, dataComponents, agentDataComponents, artifactComponents, agentArtifactComponents, externalAgents, apiKeys, credentialReferences, contextConfigs, agentToolRelations, ledgerArtifacts, projects } from './chunk-LFWFXR4O.js';
|
|
3
3
|
import { z } from '@hono/zod-openapi';
|
|
4
4
|
import { createSelectSchema, createInsertSchema } from 'drizzle-zod';
|
|
5
5
|
|
|
@@ -233,8 +233,6 @@ var ArtifactComponentApiInsertSchema = ArtifactComponentInsertSchema.omit({
|
|
|
233
233
|
projectId: true,
|
|
234
234
|
createdAt: true,
|
|
235
235
|
updatedAt: true
|
|
236
|
-
}).extend({
|
|
237
|
-
id: resourceIdSchema.optional()
|
|
238
236
|
});
|
|
239
237
|
var ArtifactComponentApiUpdateSchema = createApiUpdateSchema(
|
|
240
238
|
ArtifactComponentUpdateSchema
|
|
@@ -454,10 +452,13 @@ var StatusUpdateSchema = z.object({
|
|
|
454
452
|
prompt: z.string().max(2e3, "Custom prompt cannot exceed 2000 characters").optional(),
|
|
455
453
|
statusComponents: z.array(StatusComponentSchema).optional()
|
|
456
454
|
});
|
|
455
|
+
var CanUseItemSchema = z.object({
|
|
456
|
+
toolId: z.string(),
|
|
457
|
+
toolSelection: z.array(z.string()).nullable().optional()
|
|
458
|
+
});
|
|
457
459
|
var FullGraphAgentInsertSchema = AgentApiInsertSchema.extend({
|
|
458
460
|
type: z.literal("internal"),
|
|
459
|
-
|
|
460
|
-
selectedTools: z.record(z.string(), z.array(z.string())).optional(),
|
|
461
|
+
canUse: z.array(CanUseItemSchema),
|
|
461
462
|
dataComponents: z.array(z.string()).optional(),
|
|
462
463
|
artifactComponents: z.array(z.string()).optional(),
|
|
463
464
|
canTransferTo: z.array(z.string()).optional(),
|
|
@@ -619,4 +620,4 @@ var PaginationQueryParamsSchema = z.object({
|
|
|
619
620
|
limit: z.coerce.number().min(1).max(100).default(10)
|
|
620
621
|
});
|
|
621
622
|
|
|
622
|
-
export { AgentApiInsertSchema, AgentApiSelectSchema, AgentApiUpdateSchema, AgentArtifactComponentApiInsertSchema, AgentArtifactComponentApiSelectSchema, AgentArtifactComponentApiUpdateSchema, AgentArtifactComponentInsertSchema, AgentArtifactComponentSelectSchema, AgentArtifactComponentUpdateSchema, AgentDataComponentApiInsertSchema, AgentDataComponentApiSelectSchema, AgentDataComponentApiUpdateSchema, AgentDataComponentInsertSchema, AgentDataComponentSelectSchema, AgentDataComponentUpdateSchema, AgentGraphApiInsertSchema, AgentGraphApiSelectSchema, AgentGraphApiUpdateSchema, AgentGraphInsertSchema, AgentGraphSelectSchema, AgentGraphUpdateSchema, AgentInsertSchema, AgentRelationApiInsertSchema, AgentRelationApiSelectSchema, AgentRelationApiUpdateSchema, AgentRelationInsertSchema, AgentRelationQuerySchema, AgentRelationSelectSchema, AgentRelationUpdateSchema, AgentSelectSchema, AgentStopWhenSchema, AgentToolRelationApiInsertSchema, AgentToolRelationApiSelectSchema, AgentToolRelationApiUpdateSchema, AgentToolRelationInsertSchema, AgentToolRelationSelectSchema, AgentToolRelationUpdateSchema, AgentUpdateSchema, AllAgentSchema, ApiKeyApiCreationResponseSchema, ApiKeyApiInsertSchema, ApiKeyApiSelectSchema, ApiKeyApiUpdateSchema, ApiKeyInsertSchema, ApiKeySelectSchema, ApiKeyUpdateSchema, ArtifactComponentApiInsertSchema, ArtifactComponentApiSelectSchema, ArtifactComponentApiUpdateSchema, ArtifactComponentInsertSchema, ArtifactComponentSelectSchema, ArtifactComponentUpdateSchema, ContextCacheApiInsertSchema, ContextCacheApiSelectSchema, ContextCacheApiUpdateSchema, ContextCacheInsertSchema, ContextCacheSelectSchema, ContextCacheUpdateSchema, ContextConfigApiInsertSchema, ContextConfigApiSelectSchema, ContextConfigApiUpdateSchema, ContextConfigInsertSchema, ContextConfigSelectSchema, ContextConfigUpdateSchema, ConversationApiInsertSchema, ConversationApiSelectSchema, ConversationApiUpdateSchema, ConversationInsertSchema, ConversationSelectSchema, ConversationUpdateSchema, CredentialReferenceApiInsertSchema, CredentialReferenceApiSelectSchema, CredentialReferenceApiUpdateSchema, CredentialReferenceInsertSchema, CredentialReferenceSelectSchema, CredentialReferenceUpdateSchema, DataComponentApiInsertSchema, DataComponentApiSelectSchema, DataComponentApiUpdateSchema, DataComponentBaseSchema, DataComponentInsertSchema, DataComponentSelectSchema, DataComponentUpdateSchema, ErrorResponseSchema, ExistsResponseSchema, ExternalAgentApiInsertSchema, ExternalAgentApiSelectSchema, ExternalAgentApiUpdateSchema, ExternalAgentInsertSchema, ExternalAgentRelationApiInsertSchema, ExternalAgentRelationInsertSchema, ExternalAgentSelectSchema, ExternalAgentUpdateSchema, FetchConfigSchema, FetchDefinitionSchema, FullGraphAgentInsertSchema, FullGraphDefinitionSchema, FullProjectDefinitionSchema, GraphStopWhenSchema, GraphWithinContextOfProjectSchema, HeadersScopeSchema, IdParamsSchema, LedgerArtifactApiInsertSchema, LedgerArtifactApiSelectSchema, LedgerArtifactApiUpdateSchema, LedgerArtifactInsertSchema, LedgerArtifactSelectSchema, LedgerArtifactUpdateSchema, ListResponseSchema, MAX_ID_LENGTH, MCPToolConfigSchema, MIN_ID_LENGTH, McpToolDefinitionSchema, McpToolSchema, McpTransportConfigSchema, MessageApiInsertSchema, MessageApiSelectSchema, MessageApiUpdateSchema, MessageInsertSchema, MessageSelectSchema, MessageUpdateSchema, ModelSchema, ModelSettingsSchema, PaginationQueryParamsSchema, PaginationSchema, ProjectApiInsertSchema, ProjectApiSelectSchema, ProjectApiUpdateSchema, ProjectInsertSchema, ProjectModelSchema, ProjectSelectSchema, ProjectUpdateSchema, RemovedResponseSchema, SingleResponseSchema, StatusComponentSchema, StatusUpdateSchema, StopWhenSchema, TaskApiInsertSchema, TaskApiSelectSchema, TaskApiUpdateSchema, TaskInsertSchema, TaskRelationApiInsertSchema, TaskRelationApiSelectSchema, TaskRelationApiUpdateSchema, TaskRelationInsertSchema, TaskRelationSelectSchema, TaskRelationUpdateSchema, TaskSelectSchema, TaskUpdateSchema, TenantIdParamsSchema, TenantParamsSchema, TenantProjectGraphIdParamsSchema, TenantProjectGraphParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, ToolApiInsertSchema, ToolApiSelectSchema, ToolApiUpdateSchema, ToolInsertSchema, ToolSelectSchema, ToolStatusSchema, ToolUpdateSchema, URL_SAFE_ID_PATTERN, resourceIdSchema };
|
|
623
|
+
export { AgentApiInsertSchema, AgentApiSelectSchema, AgentApiUpdateSchema, AgentArtifactComponentApiInsertSchema, AgentArtifactComponentApiSelectSchema, AgentArtifactComponentApiUpdateSchema, AgentArtifactComponentInsertSchema, AgentArtifactComponentSelectSchema, AgentArtifactComponentUpdateSchema, AgentDataComponentApiInsertSchema, AgentDataComponentApiSelectSchema, AgentDataComponentApiUpdateSchema, AgentDataComponentInsertSchema, AgentDataComponentSelectSchema, AgentDataComponentUpdateSchema, AgentGraphApiInsertSchema, AgentGraphApiSelectSchema, AgentGraphApiUpdateSchema, AgentGraphInsertSchema, AgentGraphSelectSchema, AgentGraphUpdateSchema, AgentInsertSchema, AgentRelationApiInsertSchema, AgentRelationApiSelectSchema, AgentRelationApiUpdateSchema, AgentRelationInsertSchema, AgentRelationQuerySchema, AgentRelationSelectSchema, AgentRelationUpdateSchema, AgentSelectSchema, AgentStopWhenSchema, AgentToolRelationApiInsertSchema, AgentToolRelationApiSelectSchema, AgentToolRelationApiUpdateSchema, AgentToolRelationInsertSchema, AgentToolRelationSelectSchema, AgentToolRelationUpdateSchema, AgentUpdateSchema, AllAgentSchema, ApiKeyApiCreationResponseSchema, ApiKeyApiInsertSchema, ApiKeyApiSelectSchema, ApiKeyApiUpdateSchema, ApiKeyInsertSchema, ApiKeySelectSchema, ApiKeyUpdateSchema, ArtifactComponentApiInsertSchema, ArtifactComponentApiSelectSchema, ArtifactComponentApiUpdateSchema, ArtifactComponentInsertSchema, ArtifactComponentSelectSchema, ArtifactComponentUpdateSchema, CanUseItemSchema, ContextCacheApiInsertSchema, ContextCacheApiSelectSchema, ContextCacheApiUpdateSchema, ContextCacheInsertSchema, ContextCacheSelectSchema, ContextCacheUpdateSchema, ContextConfigApiInsertSchema, ContextConfigApiSelectSchema, ContextConfigApiUpdateSchema, ContextConfigInsertSchema, ContextConfigSelectSchema, ContextConfigUpdateSchema, ConversationApiInsertSchema, ConversationApiSelectSchema, ConversationApiUpdateSchema, ConversationInsertSchema, ConversationSelectSchema, ConversationUpdateSchema, CredentialReferenceApiInsertSchema, CredentialReferenceApiSelectSchema, CredentialReferenceApiUpdateSchema, CredentialReferenceInsertSchema, CredentialReferenceSelectSchema, CredentialReferenceUpdateSchema, DataComponentApiInsertSchema, DataComponentApiSelectSchema, DataComponentApiUpdateSchema, DataComponentBaseSchema, DataComponentInsertSchema, DataComponentSelectSchema, DataComponentUpdateSchema, ErrorResponseSchema, ExistsResponseSchema, ExternalAgentApiInsertSchema, ExternalAgentApiSelectSchema, ExternalAgentApiUpdateSchema, ExternalAgentInsertSchema, ExternalAgentRelationApiInsertSchema, ExternalAgentRelationInsertSchema, ExternalAgentSelectSchema, ExternalAgentUpdateSchema, FetchConfigSchema, FetchDefinitionSchema, FullGraphAgentInsertSchema, FullGraphDefinitionSchema, FullProjectDefinitionSchema, GraphStopWhenSchema, GraphWithinContextOfProjectSchema, HeadersScopeSchema, IdParamsSchema, LedgerArtifactApiInsertSchema, LedgerArtifactApiSelectSchema, LedgerArtifactApiUpdateSchema, LedgerArtifactInsertSchema, LedgerArtifactSelectSchema, LedgerArtifactUpdateSchema, ListResponseSchema, MAX_ID_LENGTH, MCPToolConfigSchema, MIN_ID_LENGTH, McpToolDefinitionSchema, McpToolSchema, McpTransportConfigSchema, MessageApiInsertSchema, MessageApiSelectSchema, MessageApiUpdateSchema, MessageInsertSchema, MessageSelectSchema, MessageUpdateSchema, ModelSchema, ModelSettingsSchema, PaginationQueryParamsSchema, PaginationSchema, ProjectApiInsertSchema, ProjectApiSelectSchema, ProjectApiUpdateSchema, ProjectInsertSchema, ProjectModelSchema, ProjectSelectSchema, ProjectUpdateSchema, RemovedResponseSchema, SingleResponseSchema, StatusComponentSchema, StatusUpdateSchema, StopWhenSchema, TaskApiInsertSchema, TaskApiSelectSchema, TaskApiUpdateSchema, TaskInsertSchema, TaskRelationApiInsertSchema, TaskRelationApiSelectSchema, TaskRelationApiUpdateSchema, TaskRelationInsertSchema, TaskRelationSelectSchema, TaskRelationUpdateSchema, TaskSelectSchema, TaskUpdateSchema, TenantIdParamsSchema, TenantParamsSchema, TenantProjectGraphIdParamsSchema, TenantProjectGraphParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, ToolApiInsertSchema, ToolApiSelectSchema, ToolApiUpdateSchema, ToolInsertSchema, ToolSelectSchema, ToolStatusSchema, ToolUpdateSchema, URL_SAFE_ID_PATTERN, resourceIdSchema };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FullGraphDefinitionSchema, resourceIdSchema, MAX_ID_LENGTH } from './chunk-
|
|
1
|
+
import { FullGraphDefinitionSchema, resourceIdSchema, MAX_ID_LENGTH } from './chunk-7OCPFKGI.js';
|
|
2
2
|
|
|
3
3
|
// src/validation/graphFull.ts
|
|
4
4
|
function isInternalAgent(agent) {
|
|
@@ -16,10 +16,10 @@ function validateToolReferences(graphData, availableToolIds) {
|
|
|
16
16
|
}
|
|
17
17
|
const errors = [];
|
|
18
18
|
for (const [agentId, agentData] of Object.entries(graphData.agents)) {
|
|
19
|
-
if (isInternalAgent(agentData) && agentData.
|
|
20
|
-
for (const
|
|
21
|
-
if (!availableToolIds.has(toolId)) {
|
|
22
|
-
errors.push(`Agent '${agentId}' references non-existent tool '${toolId}'`);
|
|
19
|
+
if (isInternalAgent(agentData) && agentData.canUse && Array.isArray(agentData.canUse)) {
|
|
20
|
+
for (const canUseItem of agentData.canUse) {
|
|
21
|
+
if (!availableToolIds.has(canUseItem.toolId)) {
|
|
22
|
+
errors.push(`Agent '${agentId}' references non-existent tool '${canUseItem.toolId}'`);
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -584,6 +584,7 @@ var apiKeys = sqliteTable(
|
|
|
584
584
|
// Hashed API key (never store plaintext)
|
|
585
585
|
keyPrefix: text("key_prefix").notNull(),
|
|
586
586
|
// First 8 chars for identification (e.g., "sk_live_abc...")
|
|
587
|
+
name: text("name"),
|
|
587
588
|
lastUsedAt: text("last_used_at"),
|
|
588
589
|
expiresAt: text("expires_at"),
|
|
589
590
|
createdAt: text("created_at").notNull().default(sql`CURRENT_TIMESTAMP`),
|
package/dist/client-exports.cjs
CHANGED
|
@@ -565,6 +565,7 @@ var apiKeys = sqliteCore.sqliteTable(
|
|
|
565
565
|
// Hashed API key (never store plaintext)
|
|
566
566
|
keyPrefix: sqliteCore.text("key_prefix").notNull(),
|
|
567
567
|
// First 8 chars for identification (e.g., "sk_live_abc...")
|
|
568
|
+
name: sqliteCore.text("name"),
|
|
568
569
|
lastUsedAt: sqliteCore.text("last_used_at"),
|
|
569
570
|
expiresAt: sqliteCore.text("expires_at"),
|
|
570
571
|
createdAt: sqliteCore.text("created_at").notNull().default(drizzleOrm.sql`CURRENT_TIMESTAMP`),
|
|
@@ -1175,8 +1176,6 @@ var ArtifactComponentApiInsertSchema = ArtifactComponentInsertSchema.omit({
|
|
|
1175
1176
|
projectId: true,
|
|
1176
1177
|
createdAt: true,
|
|
1177
1178
|
updatedAt: true
|
|
1178
|
-
}).extend({
|
|
1179
|
-
id: resourceIdSchema.optional()
|
|
1180
1179
|
});
|
|
1181
1180
|
createApiUpdateSchema(
|
|
1182
1181
|
ArtifactComponentUpdateSchema
|
|
@@ -1395,10 +1394,13 @@ var StatusUpdateSchema = zodOpenapi.z.object({
|
|
|
1395
1394
|
prompt: zodOpenapi.z.string().max(2e3, "Custom prompt cannot exceed 2000 characters").optional(),
|
|
1396
1395
|
statusComponents: zodOpenapi.z.array(StatusComponentSchema).optional()
|
|
1397
1396
|
});
|
|
1397
|
+
var CanUseItemSchema = zodOpenapi.z.object({
|
|
1398
|
+
toolId: zodOpenapi.z.string(),
|
|
1399
|
+
toolSelection: zodOpenapi.z.array(zodOpenapi.z.string()).nullable().optional()
|
|
1400
|
+
});
|
|
1398
1401
|
var FullGraphAgentInsertSchema = AgentApiInsertSchema.extend({
|
|
1399
1402
|
type: zodOpenapi.z.literal("internal"),
|
|
1400
|
-
|
|
1401
|
-
selectedTools: zodOpenapi.z.record(zodOpenapi.z.string(), zodOpenapi.z.array(zodOpenapi.z.string())).optional(),
|
|
1403
|
+
canUse: zodOpenapi.z.array(CanUseItemSchema),
|
|
1402
1404
|
dataComponents: zodOpenapi.z.array(zodOpenapi.z.string()).optional(),
|
|
1403
1405
|
artifactComponents: zodOpenapi.z.array(zodOpenapi.z.string()).optional(),
|
|
1404
1406
|
canTransferTo: zodOpenapi.z.array(zodOpenapi.z.string()).optional(),
|
|
@@ -1640,13 +1642,13 @@ var CredentialReferenceApiInsertSchema2 = zod.z.object({
|
|
|
1640
1642
|
retrievalParams: zod.z.record(zod.z.string(), zod.z.unknown()).nullish()
|
|
1641
1643
|
});
|
|
1642
1644
|
var DataComponentApiInsertSchema2 = zod.z.object({
|
|
1643
|
-
id: zod.z.string()
|
|
1645
|
+
id: zod.z.string(),
|
|
1644
1646
|
name: zod.z.string(),
|
|
1645
1647
|
description: zod.z.string().optional(),
|
|
1646
1648
|
props: zod.z.record(zod.z.string(), zod.z.unknown())
|
|
1647
1649
|
});
|
|
1648
1650
|
var ArtifactComponentApiInsertSchema2 = zod.z.object({
|
|
1649
|
-
id: zod.z.string()
|
|
1651
|
+
id: zod.z.string(),
|
|
1650
1652
|
name: zod.z.string(),
|
|
1651
1653
|
description: zod.z.string().optional(),
|
|
1652
1654
|
summaryProps: zod.z.record(zod.z.string(), zod.z.unknown()),
|
|
@@ -1676,29 +1678,7 @@ var FullGraphDefinitionSchema2 = AgentGraphApiInsertSchema2.extend({
|
|
|
1676
1678
|
agents: zod.z.record(
|
|
1677
1679
|
zod.z.string(),
|
|
1678
1680
|
zod.z.union([
|
|
1679
|
-
|
|
1680
|
-
id: zod.z.string(),
|
|
1681
|
-
tools: zod.z.array(zod.z.string()),
|
|
1682
|
-
dataComponents: zod.z.array(zod.z.string()).optional(),
|
|
1683
|
-
artifactComponents: zod.z.array(zod.z.string()).optional(),
|
|
1684
|
-
canTransferTo: zod.z.array(zod.z.string()).optional(),
|
|
1685
|
-
canDelegateTo: zod.z.array(zod.z.string()).optional(),
|
|
1686
|
-
type: zod.z.enum(["internal", "external"]).optional(),
|
|
1687
|
-
models: zod.z.object({
|
|
1688
|
-
base: zod.z.object({
|
|
1689
|
-
model: zod.z.string(),
|
|
1690
|
-
providerOptions: zod.z.record(zod.z.string(), zod.z.record(zod.z.string(), zod.z.unknown())).optional()
|
|
1691
|
-
}).optional(),
|
|
1692
|
-
structuredOutput: zod.z.object({
|
|
1693
|
-
model: zod.z.string(),
|
|
1694
|
-
providerOptions: zod.z.record(zod.z.string(), zod.z.record(zod.z.string(), zod.z.unknown())).optional()
|
|
1695
|
-
}).optional(),
|
|
1696
|
-
summarizer: zod.z.object({
|
|
1697
|
-
model: zod.z.string(),
|
|
1698
|
-
providerOptions: zod.z.record(zod.z.string(), zod.z.record(zod.z.string(), zod.z.unknown())).optional()
|
|
1699
|
-
}).optional()
|
|
1700
|
-
}).optional()
|
|
1701
|
-
}),
|
|
1681
|
+
FullGraphAgentInsertSchema,
|
|
1702
1682
|
ExternalAgentApiInsertSchema2.extend({
|
|
1703
1683
|
id: zod.z.string()
|
|
1704
1684
|
})
|
package/dist/client-exports.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { FullGraphAgentInsertSchema } from './chunk-7OCPFKGI.js';
|
|
2
|
+
export { AgentStopWhenSchema, GraphStopWhenSchema, StopWhenSchema } from './chunk-7OCPFKGI.js';
|
|
2
3
|
import { CredentialStoreType } from './chunk-SVGQSPW4.js';
|
|
3
4
|
export { CredentialStoreType, MCPTransportType } from './chunk-SVGQSPW4.js';
|
|
4
5
|
import { z } from 'zod';
|
|
@@ -89,13 +90,13 @@ var CredentialReferenceApiInsertSchema = z.object({
|
|
|
89
90
|
retrievalParams: z.record(z.string(), z.unknown()).nullish()
|
|
90
91
|
});
|
|
91
92
|
var DataComponentApiInsertSchema = z.object({
|
|
92
|
-
id: z.string()
|
|
93
|
+
id: z.string(),
|
|
93
94
|
name: z.string(),
|
|
94
95
|
description: z.string().optional(),
|
|
95
96
|
props: z.record(z.string(), z.unknown())
|
|
96
97
|
});
|
|
97
98
|
var ArtifactComponentApiInsertSchema = z.object({
|
|
98
|
-
id: z.string()
|
|
99
|
+
id: z.string(),
|
|
99
100
|
name: z.string(),
|
|
100
101
|
description: z.string().optional(),
|
|
101
102
|
summaryProps: z.record(z.string(), z.unknown()),
|
|
@@ -125,29 +126,7 @@ var FullGraphDefinitionSchema = AgentGraphApiInsertSchema.extend({
|
|
|
125
126
|
agents: z.record(
|
|
126
127
|
z.string(),
|
|
127
128
|
z.union([
|
|
128
|
-
|
|
129
|
-
id: z.string(),
|
|
130
|
-
tools: z.array(z.string()),
|
|
131
|
-
dataComponents: z.array(z.string()).optional(),
|
|
132
|
-
artifactComponents: z.array(z.string()).optional(),
|
|
133
|
-
canTransferTo: z.array(z.string()).optional(),
|
|
134
|
-
canDelegateTo: z.array(z.string()).optional(),
|
|
135
|
-
type: z.enum(["internal", "external"]).optional(),
|
|
136
|
-
models: z.object({
|
|
137
|
-
base: z.object({
|
|
138
|
-
model: z.string(),
|
|
139
|
-
providerOptions: z.record(z.string(), z.record(z.string(), z.unknown())).optional()
|
|
140
|
-
}).optional(),
|
|
141
|
-
structuredOutput: z.object({
|
|
142
|
-
model: z.string(),
|
|
143
|
-
providerOptions: z.record(z.string(), z.record(z.string(), z.unknown())).optional()
|
|
144
|
-
}).optional(),
|
|
145
|
-
summarizer: z.object({
|
|
146
|
-
model: z.string(),
|
|
147
|
-
providerOptions: z.record(z.string(), z.record(z.string(), z.unknown())).optional()
|
|
148
|
-
}).optional()
|
|
149
|
-
}).optional()
|
|
150
|
-
}),
|
|
129
|
+
FullGraphAgentInsertSchema,
|
|
151
130
|
ExternalAgentApiInsertSchema.extend({
|
|
152
131
|
id: z.string()
|
|
153
132
|
})
|
package/dist/db/schema.cjs
CHANGED
|
@@ -539,6 +539,7 @@ var apiKeys = sqliteCore.sqliteTable(
|
|
|
539
539
|
// Hashed API key (never store plaintext)
|
|
540
540
|
keyPrefix: sqliteCore.text("key_prefix").notNull(),
|
|
541
541
|
// First 8 chars for identification (e.g., "sk_live_abc...")
|
|
542
|
+
name: sqliteCore.text("name"),
|
|
542
543
|
lastUsedAt: sqliteCore.text("last_used_at"),
|
|
543
544
|
expiresAt: sqliteCore.text("expires_at"),
|
|
544
545
|
createdAt: sqliteCore.text("created_at").notNull().default(drizzleOrm.sql`CURRENT_TIMESTAMP`),
|
package/dist/db/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { agentArtifactComponents, agentArtifactComponentsRelations, agentDataComponents, agentDataComponentsRelations, agentGraph, agentGraphRelations, agentRelations, agentRelationsRelations, agentToolRelations, agentToolRelationsRelations, agents, agentsRelations, apiKeys, apiKeysRelations, artifactComponents, artifactComponentsRelations, contextCache, contextCacheRelations, contextConfigs, contextConfigsRelations, conversations, conversationsRelations, credentialReferences, credentialReferencesRelations, dataComponents, dataComponentsRelations, externalAgents, externalAgentsRelations, ledgerArtifacts, ledgerArtifactsContextIdIdx, ledgerArtifactsRelations, ledgerArtifactsTaskContextNameUnique, ledgerArtifactsTaskIdIdx, messages, messagesRelations, projects, projectsRelations, taskRelations, taskRelationsRelations, tasks, tasksRelations, tools, toolsRelations } from '../chunk-
|
|
1
|
+
export { agentArtifactComponents, agentArtifactComponentsRelations, agentDataComponents, agentDataComponentsRelations, agentGraph, agentGraphRelations, agentRelations, agentRelationsRelations, agentToolRelations, agentToolRelationsRelations, agents, agentsRelations, apiKeys, apiKeysRelations, artifactComponents, artifactComponentsRelations, contextCache, contextCacheRelations, contextConfigs, contextConfigsRelations, conversations, conversationsRelations, credentialReferences, credentialReferencesRelations, dataComponents, dataComponentsRelations, externalAgents, externalAgentsRelations, ledgerArtifacts, ledgerArtifactsContextIdIdx, ledgerArtifactsRelations, ledgerArtifactsTaskContextNameUnique, ledgerArtifactsTaskIdIdx, messages, messagesRelations, projects, projectsRelations, taskRelations, taskRelationsRelations, tasks, tasksRelations, tools, toolsRelations } from '../chunk-TNFWLVL6.js';
|