@inkeep/agents-core 0.2.2 → 0.3.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-MXQKLGQK.js → chunk-LFWFXR4O.js} +123 -82
- package/dist/{chunk-KNC2AOJM.js → chunk-LPIKPCE5.js} +76 -29
- package/dist/{chunk-BAPMUHVN.js → chunk-XQRFKXVV.js} +20 -12
- package/dist/client-exports.cjs +195 -111
- package/dist/client-exports.js +4 -5
- package/dist/db/schema.cjs +121 -80
- package/dist/db/schema.js +1 -1
- package/dist/index.cjs +538 -612
- package/dist/index.js +327 -499
- package/dist/validation/index.cjs +213 -118
- package/dist/validation/index.js +2 -2
- package/package.json +1 -1
|
@@ -23,11 +23,44 @@ var projects = sqliteCore.sqliteTable(
|
|
|
23
23
|
},
|
|
24
24
|
(table) => [sqliteCore.primaryKey({ columns: [table.tenantId, table.id] })]
|
|
25
25
|
);
|
|
26
|
+
var agentGraph = sqliteCore.sqliteTable(
|
|
27
|
+
"agent_graph",
|
|
28
|
+
{
|
|
29
|
+
tenantId: sqliteCore.text("tenant_id").notNull(),
|
|
30
|
+
projectId: sqliteCore.text("project_id").notNull(),
|
|
31
|
+
id: sqliteCore.text("id").notNull(),
|
|
32
|
+
name: sqliteCore.text("name").notNull(),
|
|
33
|
+
description: sqliteCore.text("description"),
|
|
34
|
+
defaultAgentId: sqliteCore.text("default_agent_id"),
|
|
35
|
+
// Reference to shared context configuration for all agents in this graph
|
|
36
|
+
contextConfigId: sqliteCore.text("context_config_id"),
|
|
37
|
+
// add fk relationship
|
|
38
|
+
// Graph-level model settingsuration that can be inherited by agents
|
|
39
|
+
models: sqliteCore.text("models", { mode: "json" }).$type(),
|
|
40
|
+
// Status updates configuration for intelligent progress summaries
|
|
41
|
+
statusUpdates: sqliteCore.text("status_updates", { mode: "json" }).$type(),
|
|
42
|
+
// Graph-level prompt that can be used as additional context for agents
|
|
43
|
+
graphPrompt: sqliteCore.text("graph_prompt"),
|
|
44
|
+
// Graph-level stopWhen configuration that can be inherited by agents
|
|
45
|
+
stopWhen: sqliteCore.text("stop_when", { mode: "json" }).$type(),
|
|
46
|
+
createdAt: sqliteCore.text("created_at").notNull().default(drizzleOrm.sql`CURRENT_TIMESTAMP`),
|
|
47
|
+
updatedAt: sqliteCore.text("updated_at").notNull().default(drizzleOrm.sql`CURRENT_TIMESTAMP`)
|
|
48
|
+
},
|
|
49
|
+
(table) => [
|
|
50
|
+
sqliteCore.primaryKey({ columns: [table.tenantId, table.projectId, table.id] }),
|
|
51
|
+
sqliteCore.foreignKey({
|
|
52
|
+
columns: [table.tenantId, table.projectId],
|
|
53
|
+
foreignColumns: [projects.tenantId, projects.id],
|
|
54
|
+
name: "agent_graph_project_fk"
|
|
55
|
+
}).onDelete("cascade")
|
|
56
|
+
]
|
|
57
|
+
);
|
|
26
58
|
var contextConfigs = sqliteCore.sqliteTable(
|
|
27
59
|
"context_configs",
|
|
28
60
|
{
|
|
29
61
|
tenantId: sqliteCore.text("tenant_id").notNull(),
|
|
30
62
|
projectId: sqliteCore.text("project_id").notNull(),
|
|
63
|
+
// Add graph level scoping
|
|
31
64
|
id: sqliteCore.text("id").notNull(),
|
|
32
65
|
name: sqliteCore.text("name").notNull(),
|
|
33
66
|
description: sqliteCore.text("description").notNull(),
|
|
@@ -92,6 +125,7 @@ var agents = sqliteCore.sqliteTable(
|
|
|
92
125
|
{
|
|
93
126
|
tenantId: sqliteCore.text("tenant_id").notNull(),
|
|
94
127
|
projectId: sqliteCore.text("project_id").notNull(),
|
|
128
|
+
graphId: sqliteCore.text("graph_id").notNull(),
|
|
95
129
|
id: sqliteCore.text("id").notNull(),
|
|
96
130
|
name: sqliteCore.text("name").notNull(),
|
|
97
131
|
description: sqliteCore.text("description").notNull(),
|
|
@@ -106,11 +140,11 @@ var agents = sqliteCore.sqliteTable(
|
|
|
106
140
|
updatedAt: sqliteCore.text("updated_at").notNull().default(drizzleOrm.sql`CURRENT_TIMESTAMP`)
|
|
107
141
|
},
|
|
108
142
|
(table) => [
|
|
109
|
-
sqliteCore.primaryKey({ columns: [table.tenantId, table.projectId, table.id] }),
|
|
143
|
+
sqliteCore.primaryKey({ columns: [table.tenantId, table.projectId, table.graphId, table.id] }),
|
|
110
144
|
sqliteCore.foreignKey({
|
|
111
|
-
columns: [table.tenantId, table.projectId],
|
|
112
|
-
foreignColumns: [
|
|
113
|
-
name: "
|
|
145
|
+
columns: [table.tenantId, table.projectId, table.graphId],
|
|
146
|
+
foreignColumns: [agentGraph.tenantId, agentGraph.projectId, agentGraph.id],
|
|
147
|
+
name: "agents_graph_fk"
|
|
114
148
|
}).onDelete("cascade")
|
|
115
149
|
]
|
|
116
150
|
);
|
|
@@ -119,8 +153,8 @@ var agentRelations = sqliteCore.sqliteTable(
|
|
|
119
153
|
{
|
|
120
154
|
tenantId: sqliteCore.text("tenant_id").notNull(),
|
|
121
155
|
projectId: sqliteCore.text("project_id").notNull(),
|
|
122
|
-
id: sqliteCore.text("id").notNull(),
|
|
123
156
|
graphId: sqliteCore.text("graph_id").notNull(),
|
|
157
|
+
id: sqliteCore.text("id").notNull(),
|
|
124
158
|
sourceAgentId: sqliteCore.text("source_agent_id").notNull(),
|
|
125
159
|
// For internal relationships
|
|
126
160
|
targetAgentId: sqliteCore.text("target_agent_id"),
|
|
@@ -132,11 +166,11 @@ var agentRelations = sqliteCore.sqliteTable(
|
|
|
132
166
|
updatedAt: sqliteCore.text("updated_at").notNull().default(drizzleOrm.sql`CURRENT_TIMESTAMP`)
|
|
133
167
|
},
|
|
134
168
|
(table) => [
|
|
135
|
-
sqliteCore.primaryKey({ columns: [table.tenantId, table.projectId, table.id] }),
|
|
169
|
+
sqliteCore.primaryKey({ columns: [table.tenantId, table.projectId, table.graphId, table.id] }),
|
|
136
170
|
sqliteCore.foreignKey({
|
|
137
|
-
columns: [table.tenantId, table.projectId],
|
|
138
|
-
foreignColumns: [
|
|
139
|
-
name: "
|
|
171
|
+
columns: [table.tenantId, table.projectId, table.graphId],
|
|
172
|
+
foreignColumns: [agentGraph.tenantId, agentGraph.projectId, agentGraph.id],
|
|
173
|
+
name: "agent_relations_graph_fk"
|
|
140
174
|
}).onDelete("cascade")
|
|
141
175
|
]
|
|
142
176
|
);
|
|
@@ -145,6 +179,7 @@ var externalAgents = sqliteCore.sqliteTable(
|
|
|
145
179
|
{
|
|
146
180
|
tenantId: sqliteCore.text("tenant_id").notNull(),
|
|
147
181
|
projectId: sqliteCore.text("project_id").notNull(),
|
|
182
|
+
graphId: sqliteCore.text("graph_id").notNull(),
|
|
148
183
|
id: sqliteCore.text("id").notNull(),
|
|
149
184
|
name: sqliteCore.text("name").notNull(),
|
|
150
185
|
description: sqliteCore.text("description").notNull(),
|
|
@@ -156,11 +191,11 @@ var externalAgents = sqliteCore.sqliteTable(
|
|
|
156
191
|
updatedAt: sqliteCore.text("updated_at").notNull().default(drizzleOrm.sql`CURRENT_TIMESTAMP`)
|
|
157
192
|
},
|
|
158
193
|
(table) => [
|
|
159
|
-
sqliteCore.primaryKey({ columns: [table.tenantId, table.projectId, table.id] }),
|
|
194
|
+
sqliteCore.primaryKey({ columns: [table.tenantId, table.projectId, table.graphId, table.id] }),
|
|
160
195
|
sqliteCore.foreignKey({
|
|
161
|
-
columns: [table.tenantId, table.projectId],
|
|
162
|
-
foreignColumns: [
|
|
163
|
-
name: "
|
|
196
|
+
columns: [table.tenantId, table.projectId, table.graphId],
|
|
197
|
+
foreignColumns: [agentGraph.tenantId, agentGraph.projectId, agentGraph.id],
|
|
198
|
+
name: "external_agents_graph_fk"
|
|
164
199
|
}).onDelete("cascade"),
|
|
165
200
|
sqliteCore.foreignKey({
|
|
166
201
|
columns: [table.tenantId, table.projectId, table.credentialReferenceId],
|
|
@@ -173,37 +208,6 @@ var externalAgents = sqliteCore.sqliteTable(
|
|
|
173
208
|
}).onDelete("set null")
|
|
174
209
|
]
|
|
175
210
|
);
|
|
176
|
-
var agentGraph = sqliteCore.sqliteTable(
|
|
177
|
-
"agent_graph",
|
|
178
|
-
{
|
|
179
|
-
tenantId: sqliteCore.text("tenant_id").notNull(),
|
|
180
|
-
projectId: sqliteCore.text("project_id").notNull(),
|
|
181
|
-
id: sqliteCore.text("id").notNull(),
|
|
182
|
-
name: sqliteCore.text("name").notNull(),
|
|
183
|
-
description: sqliteCore.text("description"),
|
|
184
|
-
defaultAgentId: sqliteCore.text("default_agent_id").notNull(),
|
|
185
|
-
// Reference to shared context configuration for all agents in this graph
|
|
186
|
-
contextConfigId: sqliteCore.text("context_config_id"),
|
|
187
|
-
// Graph-level model settingsuration that can be inherited by agents
|
|
188
|
-
models: sqliteCore.text("models", { mode: "json" }).$type(),
|
|
189
|
-
// Status updates configuration for intelligent progress summaries
|
|
190
|
-
statusUpdates: sqliteCore.text("status_updates", { mode: "json" }).$type(),
|
|
191
|
-
// Graph-level prompt that can be used as additional context for agents
|
|
192
|
-
graphPrompt: sqliteCore.text("graph_prompt"),
|
|
193
|
-
// Graph-level stopWhen configuration that can be inherited by agents
|
|
194
|
-
stopWhen: sqliteCore.text("stop_when", { mode: "json" }).$type(),
|
|
195
|
-
createdAt: sqliteCore.text("created_at").notNull().default(drizzleOrm.sql`CURRENT_TIMESTAMP`),
|
|
196
|
-
updatedAt: sqliteCore.text("updated_at").notNull().default(drizzleOrm.sql`CURRENT_TIMESTAMP`)
|
|
197
|
-
},
|
|
198
|
-
(table) => [
|
|
199
|
-
sqliteCore.primaryKey({ columns: [table.tenantId, table.projectId, table.id] }),
|
|
200
|
-
sqliteCore.foreignKey({
|
|
201
|
-
columns: [table.tenantId, table.projectId],
|
|
202
|
-
foreignColumns: [projects.tenantId, projects.id],
|
|
203
|
-
name: "agent_graph_project_fk"
|
|
204
|
-
}).onDelete("cascade")
|
|
205
|
-
]
|
|
206
|
-
);
|
|
207
211
|
var tasks = sqliteCore.sqliteTable(
|
|
208
212
|
"tasks",
|
|
209
213
|
{
|
|
@@ -274,23 +278,18 @@ var agentDataComponents = sqliteCore.sqliteTable(
|
|
|
274
278
|
{
|
|
275
279
|
tenantId: sqliteCore.text("tenant_id").notNull(),
|
|
276
280
|
projectId: sqliteCore.text("project_id").notNull(),
|
|
277
|
-
|
|
281
|
+
graphId: sqliteCore.text("graph_id").notNull(),
|
|
278
282
|
agentId: sqliteCore.text("agent_id").notNull(),
|
|
283
|
+
id: sqliteCore.text("id").notNull(),
|
|
279
284
|
dataComponentId: sqliteCore.text("data_component_id").notNull(),
|
|
280
285
|
createdAt: sqliteCore.text("created_at").notNull().default(drizzleOrm.sql`CURRENT_TIMESTAMP`)
|
|
281
286
|
},
|
|
282
287
|
(table) => [
|
|
283
288
|
sqliteCore.primaryKey({ columns: [table.tenantId, table.projectId, table.id] }),
|
|
284
|
-
// Foreign key constraint to
|
|
285
|
-
sqliteCore.foreignKey({
|
|
286
|
-
columns: [table.tenantId, table.projectId],
|
|
287
|
-
foreignColumns: [projects.tenantId, projects.id],
|
|
288
|
-
name: "agent_data_components_project_fk"
|
|
289
|
-
}).onDelete("cascade"),
|
|
290
|
-
// Foreign key constraint to agents table
|
|
289
|
+
// Foreign key constraint to agents table (ensures graph and project exist via cascade)
|
|
291
290
|
sqliteCore.foreignKey({
|
|
292
|
-
columns: [table.tenantId, table.projectId, table.agentId],
|
|
293
|
-
foreignColumns: [agents.tenantId, agents.projectId, agents.id],
|
|
291
|
+
columns: [table.tenantId, table.projectId, table.graphId, table.agentId],
|
|
292
|
+
foreignColumns: [agents.tenantId, agents.projectId, agents.graphId, agents.id],
|
|
294
293
|
name: "agent_data_components_agent_fk"
|
|
295
294
|
}).onDelete("cascade"),
|
|
296
295
|
// Foreign key constraint to data_components table
|
|
@@ -328,23 +327,20 @@ var agentArtifactComponents = sqliteCore.sqliteTable(
|
|
|
328
327
|
{
|
|
329
328
|
tenantId: sqliteCore.text("tenant_id").notNull(),
|
|
330
329
|
projectId: sqliteCore.text("project_id").notNull(),
|
|
331
|
-
|
|
330
|
+
graphId: sqliteCore.text("graph_id").notNull(),
|
|
332
331
|
agentId: sqliteCore.text("agent_id").notNull(),
|
|
332
|
+
id: sqliteCore.text("id").notNull(),
|
|
333
333
|
artifactComponentId: sqliteCore.text("artifact_component_id").notNull(),
|
|
334
334
|
createdAt: sqliteCore.text("created_at").notNull().default(drizzleOrm.sql`CURRENT_TIMESTAMP`)
|
|
335
335
|
},
|
|
336
336
|
(table) => [
|
|
337
|
-
sqliteCore.primaryKey({
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
foreignColumns: [projects.tenantId, projects.id],
|
|
342
|
-
name: "agent_artifact_components_project_fk"
|
|
343
|
-
}).onDelete("cascade"),
|
|
344
|
-
// Foreign key constraint to agents table
|
|
337
|
+
sqliteCore.primaryKey({
|
|
338
|
+
columns: [table.tenantId, table.projectId, table.graphId, table.agentId, table.id]
|
|
339
|
+
}),
|
|
340
|
+
// Foreign key constraint to agents table (ensures graph and project exist via cascade)
|
|
345
341
|
sqliteCore.foreignKey({
|
|
346
|
-
columns: [table.tenantId, table.projectId, table.agentId],
|
|
347
|
-
foreignColumns: [agents.tenantId, agents.projectId, agents.id],
|
|
342
|
+
columns: [table.tenantId, table.projectId, table.graphId, table.agentId],
|
|
343
|
+
foreignColumns: [agents.tenantId, agents.projectId, agents.graphId, agents.id],
|
|
348
344
|
name: "agent_artifact_components_agent_fk"
|
|
349
345
|
}).onDelete("cascade"),
|
|
350
346
|
// Foreign key constraint to artifact_components table
|
|
@@ -398,25 +394,20 @@ var agentToolRelations = sqliteCore.sqliteTable(
|
|
|
398
394
|
{
|
|
399
395
|
tenantId: sqliteCore.text("tenant_id").notNull(),
|
|
400
396
|
projectId: sqliteCore.text("project_id").notNull(),
|
|
401
|
-
|
|
397
|
+
graphId: sqliteCore.text("graph_id").notNull(),
|
|
402
398
|
agentId: sqliteCore.text("agent_id").notNull(),
|
|
399
|
+
id: sqliteCore.text("id").notNull(),
|
|
403
400
|
toolId: sqliteCore.text("tool_id").notNull(),
|
|
404
401
|
selectedTools: sqliteCore.blob("selected_tools", { mode: "json" }).$type(),
|
|
405
402
|
createdAt: sqliteCore.text("created_at").notNull().default(drizzleOrm.sql`CURRENT_TIMESTAMP`),
|
|
406
403
|
updatedAt: sqliteCore.text("updated_at").notNull().default(drizzleOrm.sql`CURRENT_TIMESTAMP`)
|
|
407
404
|
},
|
|
408
405
|
(table) => [
|
|
409
|
-
sqliteCore.primaryKey({ columns: [table.tenantId, table.projectId, table.id] }),
|
|
410
|
-
// Foreign key constraint to
|
|
406
|
+
sqliteCore.primaryKey({ columns: [table.tenantId, table.projectId, table.graphId, table.id] }),
|
|
407
|
+
// Foreign key constraint to agents table (which includes project and graph scope)
|
|
411
408
|
sqliteCore.foreignKey({
|
|
412
|
-
columns: [table.tenantId, table.projectId],
|
|
413
|
-
foreignColumns: [
|
|
414
|
-
name: "agent_tool_relations_project_fk"
|
|
415
|
-
}).onDelete("cascade"),
|
|
416
|
-
// Foreign key constraint to agents table
|
|
417
|
-
sqliteCore.foreignKey({
|
|
418
|
-
columns: [table.tenantId, table.projectId, table.agentId],
|
|
419
|
-
foreignColumns: [agents.tenantId, agents.projectId, agents.id],
|
|
409
|
+
columns: [table.tenantId, table.projectId, table.graphId, table.agentId],
|
|
410
|
+
foreignColumns: [agents.tenantId, agents.projectId, agents.graphId, agents.id],
|
|
420
411
|
name: "agent_tool_relations_agent_fk"
|
|
421
412
|
}).onDelete("cascade"),
|
|
422
413
|
// Foreign key constraint to tools table
|
|
@@ -623,7 +614,9 @@ drizzleOrm.relations(tasks, ({ one, many }) => ({
|
|
|
623
614
|
references: [agents.id]
|
|
624
615
|
}),
|
|
625
616
|
// A task can have many messages associated with it
|
|
626
|
-
messages: many(messages)
|
|
617
|
+
messages: many(messages),
|
|
618
|
+
// A task can have many ledger artifacts
|
|
619
|
+
ledgerArtifacts: many(ledgerArtifacts)
|
|
627
620
|
}));
|
|
628
621
|
drizzleOrm.relations(projects, ({ many }) => ({
|
|
629
622
|
// A project can have many agents
|
|
@@ -639,7 +632,15 @@ drizzleOrm.relations(projects, ({ many }) => ({
|
|
|
639
632
|
// A project can have many conversations
|
|
640
633
|
conversations: many(conversations),
|
|
641
634
|
// A project can have many tasks
|
|
642
|
-
tasks: many(tasks)
|
|
635
|
+
tasks: many(tasks),
|
|
636
|
+
// A project can have many data components
|
|
637
|
+
dataComponents: many(dataComponents),
|
|
638
|
+
// A project can have many artifact components
|
|
639
|
+
artifactComponents: many(artifactComponents),
|
|
640
|
+
// A project can have many ledger artifacts
|
|
641
|
+
ledgerArtifacts: many(ledgerArtifacts),
|
|
642
|
+
// A project can have many credential references
|
|
643
|
+
credentialReferences: many(credentialReferences)
|
|
643
644
|
}));
|
|
644
645
|
drizzleOrm.relations(taskRelations, ({ one }) => ({
|
|
645
646
|
// Each relation has one parent task
|
|
@@ -701,7 +702,11 @@ drizzleOrm.relations(agents, ({ many, one }) => ({
|
|
|
701
702
|
associatedMessages: many(messages, {
|
|
702
703
|
relationName: "associatedAgent"
|
|
703
704
|
}),
|
|
704
|
-
toolRelations: many(agentToolRelations)
|
|
705
|
+
toolRelations: many(agentToolRelations),
|
|
706
|
+
// Data component relations
|
|
707
|
+
dataComponentRelations: many(agentDataComponents),
|
|
708
|
+
// Artifact component relations
|
|
709
|
+
artifactComponentRelations: many(agentArtifactComponents)
|
|
705
710
|
}));
|
|
706
711
|
drizzleOrm.relations(agentGraph, ({ one }) => ({
|
|
707
712
|
// An agent graph belongs to one project
|
|
@@ -709,7 +714,7 @@ drizzleOrm.relations(agentGraph, ({ one }) => ({
|
|
|
709
714
|
fields: [agentGraph.tenantId, agentGraph.projectId],
|
|
710
715
|
references: [projects.tenantId, projects.id]
|
|
711
716
|
}),
|
|
712
|
-
// An agent graph
|
|
717
|
+
// An agent graph may have one default agent (optional)
|
|
713
718
|
defaultAgent: one(agents, {
|
|
714
719
|
fields: [agentGraph.defaultAgentId],
|
|
715
720
|
references: [agents.id]
|
|
@@ -857,6 +862,39 @@ drizzleOrm.relations(agentArtifactComponents, ({ one }) => ({
|
|
|
857
862
|
references: [artifactComponents.id]
|
|
858
863
|
})
|
|
859
864
|
}));
|
|
865
|
+
drizzleOrm.relations(dataComponents, ({ many, one }) => ({
|
|
866
|
+
// A data component belongs to one project
|
|
867
|
+
project: one(projects, {
|
|
868
|
+
fields: [dataComponents.tenantId, dataComponents.projectId],
|
|
869
|
+
references: [projects.tenantId, projects.id]
|
|
870
|
+
}),
|
|
871
|
+
// A data component can be associated with many agents
|
|
872
|
+
agentRelations: many(agentDataComponents)
|
|
873
|
+
}));
|
|
874
|
+
drizzleOrm.relations(agentDataComponents, ({ one }) => ({
|
|
875
|
+
// An agent-data component relation belongs to one agent
|
|
876
|
+
agent: one(agents, {
|
|
877
|
+
fields: [agentDataComponents.agentId],
|
|
878
|
+
references: [agents.id]
|
|
879
|
+
}),
|
|
880
|
+
// An agent-data component relation belongs to one data component
|
|
881
|
+
dataComponent: one(dataComponents, {
|
|
882
|
+
fields: [agentDataComponents.dataComponentId],
|
|
883
|
+
references: [dataComponents.id]
|
|
884
|
+
})
|
|
885
|
+
}));
|
|
886
|
+
drizzleOrm.relations(ledgerArtifacts, ({ one }) => ({
|
|
887
|
+
// A ledger artifact belongs to one project
|
|
888
|
+
project: one(projects, {
|
|
889
|
+
fields: [ledgerArtifacts.tenantId, ledgerArtifacts.projectId],
|
|
890
|
+
references: [projects.tenantId, projects.id]
|
|
891
|
+
}),
|
|
892
|
+
// A ledger artifact may be associated with one task
|
|
893
|
+
task: one(tasks, {
|
|
894
|
+
fields: [ledgerArtifacts.taskId],
|
|
895
|
+
references: [tasks.id]
|
|
896
|
+
})
|
|
897
|
+
}));
|
|
860
898
|
drizzleOrm.relations(agentRelations, ({ one }) => ({
|
|
861
899
|
// An agent relation belongs to one graph
|
|
862
900
|
graph: one(agentGraph, {
|
|
@@ -938,15 +976,18 @@ var ProjectModelSchema = zodOpenapi.z.object({
|
|
|
938
976
|
var createApiSchema = (schema) => schema.omit({ tenantId: true, projectId: true });
|
|
939
977
|
var createApiInsertSchema = (schema) => schema.omit({ tenantId: true, projectId: true });
|
|
940
978
|
var createApiUpdateSchema = (schema) => schema.omit({ tenantId: true, projectId: true }).partial();
|
|
979
|
+
var createGraphScopedApiSchema = (schema) => schema.omit({ tenantId: true, projectId: true, graphId: true });
|
|
980
|
+
var createGraphScopedApiInsertSchema = (schema) => schema.omit({ tenantId: true, projectId: true, graphId: true });
|
|
981
|
+
var createGraphScopedApiUpdateSchema = (schema) => schema.omit({ tenantId: true, projectId: true, graphId: true }).partial();
|
|
941
982
|
var AgentSelectSchema = drizzleZod.createSelectSchema(agents);
|
|
942
983
|
var AgentInsertSchema = drizzleZod.createInsertSchema(agents).extend({
|
|
943
984
|
id: resourceIdSchema,
|
|
944
985
|
models: ModelSchema.optional()
|
|
945
986
|
});
|
|
946
987
|
var AgentUpdateSchema = AgentInsertSchema.partial();
|
|
947
|
-
var AgentApiSelectSchema =
|
|
948
|
-
var AgentApiInsertSchema =
|
|
949
|
-
var AgentApiUpdateSchema =
|
|
988
|
+
var AgentApiSelectSchema = createGraphScopedApiSchema(AgentSelectSchema);
|
|
989
|
+
var AgentApiInsertSchema = createGraphScopedApiInsertSchema(AgentInsertSchema);
|
|
990
|
+
var AgentApiUpdateSchema = createGraphScopedApiUpdateSchema(AgentUpdateSchema);
|
|
950
991
|
var AgentRelationSelectSchema = drizzleZod.createSelectSchema(agentRelations);
|
|
951
992
|
var AgentRelationInsertSchema = drizzleZod.createInsertSchema(agentRelations).extend({
|
|
952
993
|
id: resourceIdSchema,
|
|
@@ -956,8 +997,10 @@ var AgentRelationInsertSchema = drizzleZod.createInsertSchema(agentRelations).ex
|
|
|
956
997
|
externalAgentId: resourceIdSchema.optional()
|
|
957
998
|
});
|
|
958
999
|
var AgentRelationUpdateSchema = AgentRelationInsertSchema.partial();
|
|
959
|
-
var AgentRelationApiSelectSchema =
|
|
960
|
-
var AgentRelationApiInsertSchema =
|
|
1000
|
+
var AgentRelationApiSelectSchema = createGraphScopedApiSchema(AgentRelationSelectSchema);
|
|
1001
|
+
var AgentRelationApiInsertSchema = createGraphScopedApiInsertSchema(
|
|
1002
|
+
AgentRelationInsertSchema
|
|
1003
|
+
).extend({
|
|
961
1004
|
relationType: zodOpenapi.z.enum(VALID_RELATION_TYPES)
|
|
962
1005
|
}).refine(
|
|
963
1006
|
(data) => {
|
|
@@ -970,7 +1013,9 @@ var AgentRelationApiInsertSchema = createApiInsertSchema(AgentRelationInsertSche
|
|
|
970
1013
|
path: ["targetAgentId", "externalAgentId"]
|
|
971
1014
|
}
|
|
972
1015
|
);
|
|
973
|
-
var AgentRelationApiUpdateSchema =
|
|
1016
|
+
var AgentRelationApiUpdateSchema = createGraphScopedApiUpdateSchema(
|
|
1017
|
+
AgentRelationUpdateSchema
|
|
1018
|
+
).extend({
|
|
974
1019
|
relationType: zodOpenapi.z.enum(VALID_RELATION_TYPES).optional()
|
|
975
1020
|
}).refine(
|
|
976
1021
|
(data) => {
|
|
@@ -1007,7 +1052,7 @@ var AgentGraphInsertSchema = drizzleZod.createInsertSchema(agentGraph).extend({
|
|
|
1007
1052
|
var AgentGraphUpdateSchema = AgentGraphInsertSchema.partial();
|
|
1008
1053
|
var AgentGraphApiSelectSchema = createApiSchema(AgentGraphSelectSchema);
|
|
1009
1054
|
var AgentGraphApiInsertSchema = createApiInsertSchema(AgentGraphInsertSchema).extend({
|
|
1010
|
-
id: resourceIdSchema
|
|
1055
|
+
id: resourceIdSchema
|
|
1011
1056
|
});
|
|
1012
1057
|
var AgentGraphApiUpdateSchema = createApiUpdateSchema(AgentGraphUpdateSchema);
|
|
1013
1058
|
var TaskSelectSchema = drizzleZod.createSelectSchema(tasks);
|
|
@@ -1106,11 +1151,16 @@ var DataComponentApiUpdateSchema = createApiUpdateSchema(DataComponentUpdateSche
|
|
|
1106
1151
|
var AgentDataComponentSelectSchema = drizzleZod.createSelectSchema(agentDataComponents);
|
|
1107
1152
|
var AgentDataComponentInsertSchema = drizzleZod.createInsertSchema(agentDataComponents);
|
|
1108
1153
|
var AgentDataComponentUpdateSchema = AgentDataComponentInsertSchema.partial();
|
|
1109
|
-
var AgentDataComponentApiSelectSchema =
|
|
1110
|
-
|
|
1111
|
-
AgentDataComponentInsertSchema
|
|
1154
|
+
var AgentDataComponentApiSelectSchema = createGraphScopedApiSchema(
|
|
1155
|
+
AgentDataComponentSelectSchema
|
|
1112
1156
|
);
|
|
1113
|
-
var
|
|
1157
|
+
var AgentDataComponentApiInsertSchema = AgentDataComponentInsertSchema.omit({
|
|
1158
|
+
tenantId: true,
|
|
1159
|
+
projectId: true,
|
|
1160
|
+
id: true,
|
|
1161
|
+
createdAt: true
|
|
1162
|
+
});
|
|
1163
|
+
var AgentDataComponentApiUpdateSchema = createGraphScopedApiUpdateSchema(
|
|
1114
1164
|
AgentDataComponentUpdateSchema
|
|
1115
1165
|
);
|
|
1116
1166
|
var ArtifactComponentSelectSchema = drizzleZod.createSelectSchema(artifactComponents);
|
|
@@ -1139,7 +1189,7 @@ var AgentArtifactComponentInsertSchema = drizzleZod.createInsertSchema(
|
|
|
1139
1189
|
artifactComponentId: resourceIdSchema
|
|
1140
1190
|
});
|
|
1141
1191
|
var AgentArtifactComponentUpdateSchema = AgentArtifactComponentInsertSchema.partial();
|
|
1142
|
-
var AgentArtifactComponentApiSelectSchema =
|
|
1192
|
+
var AgentArtifactComponentApiSelectSchema = createGraphScopedApiSchema(
|
|
1143
1193
|
AgentArtifactComponentSelectSchema
|
|
1144
1194
|
);
|
|
1145
1195
|
var AgentArtifactComponentApiInsertSchema = AgentArtifactComponentInsertSchema.omit({
|
|
@@ -1148,7 +1198,7 @@ var AgentArtifactComponentApiInsertSchema = AgentArtifactComponentInsertSchema.o
|
|
|
1148
1198
|
id: true,
|
|
1149
1199
|
createdAt: true
|
|
1150
1200
|
});
|
|
1151
|
-
var AgentArtifactComponentApiUpdateSchema =
|
|
1201
|
+
var AgentArtifactComponentApiUpdateSchema = createGraphScopedApiUpdateSchema(
|
|
1152
1202
|
AgentArtifactComponentUpdateSchema
|
|
1153
1203
|
);
|
|
1154
1204
|
var ExternalAgentSelectSchema = drizzleZod.createSelectSchema(externalAgents).extend({
|
|
@@ -1159,9 +1209,9 @@ var ExternalAgentInsertSchema = drizzleZod.createInsertSchema(externalAgents).ex
|
|
|
1159
1209
|
id: resourceIdSchema
|
|
1160
1210
|
});
|
|
1161
1211
|
var ExternalAgentUpdateSchema = ExternalAgentInsertSchema.partial();
|
|
1162
|
-
var ExternalAgentApiSelectSchema =
|
|
1163
|
-
var ExternalAgentApiInsertSchema =
|
|
1164
|
-
var ExternalAgentApiUpdateSchema =
|
|
1212
|
+
var ExternalAgentApiSelectSchema = createGraphScopedApiSchema(ExternalAgentSelectSchema);
|
|
1213
|
+
var ExternalAgentApiInsertSchema = createGraphScopedApiInsertSchema(ExternalAgentInsertSchema);
|
|
1214
|
+
var ExternalAgentApiUpdateSchema = createGraphScopedApiUpdateSchema(ExternalAgentUpdateSchema);
|
|
1165
1215
|
var AllAgentSchema = zodOpenapi.z.discriminatedUnion("type", [
|
|
1166
1216
|
AgentApiSelectSchema.extend({ type: zodOpenapi.z.literal("internal") }),
|
|
1167
1217
|
ExternalAgentApiSelectSchema.extend({ type: zodOpenapi.z.literal("external") })
|
|
@@ -1217,10 +1267,8 @@ var CredentialReferenceSelectSchema = zodOpenapi.z.object({
|
|
|
1217
1267
|
createdAt: zodOpenapi.z.string(),
|
|
1218
1268
|
updatedAt: zodOpenapi.z.string()
|
|
1219
1269
|
});
|
|
1220
|
-
var CredentialReferenceInsertSchema =
|
|
1270
|
+
var CredentialReferenceInsertSchema = drizzleZod.createInsertSchema(credentialReferences).extend({
|
|
1221
1271
|
id: resourceIdSchema,
|
|
1222
|
-
tenantId: zodOpenapi.z.string(),
|
|
1223
|
-
projectId: zodOpenapi.z.string(),
|
|
1224
1272
|
type: zodOpenapi.z.string(),
|
|
1225
1273
|
credentialStoreId: resourceIdSchema,
|
|
1226
1274
|
retrievalParams: zodOpenapi.z.record(zodOpenapi.z.string(), zodOpenapi.z.unknown()).nullish()
|
|
@@ -1316,11 +1364,13 @@ var AgentToolRelationInsertSchema = drizzleZod.createInsertSchema(agentToolRelat
|
|
|
1316
1364
|
selectedTools: zodOpenapi.z.array(zodOpenapi.z.string()).nullish()
|
|
1317
1365
|
});
|
|
1318
1366
|
var AgentToolRelationUpdateSchema = AgentToolRelationInsertSchema.partial();
|
|
1319
|
-
var AgentToolRelationApiSelectSchema =
|
|
1320
|
-
|
|
1367
|
+
var AgentToolRelationApiSelectSchema = createGraphScopedApiSchema(
|
|
1368
|
+
AgentToolRelationSelectSchema
|
|
1369
|
+
);
|
|
1370
|
+
var AgentToolRelationApiInsertSchema = createGraphScopedApiInsertSchema(
|
|
1321
1371
|
AgentToolRelationInsertSchema
|
|
1322
1372
|
);
|
|
1323
|
-
var AgentToolRelationApiUpdateSchema =
|
|
1373
|
+
var AgentToolRelationApiUpdateSchema = createGraphScopedApiUpdateSchema(
|
|
1324
1374
|
AgentToolRelationUpdateSchema
|
|
1325
1375
|
);
|
|
1326
1376
|
var LedgerArtifactSelectSchema = drizzleZod.createSelectSchema(ledgerArtifacts);
|
|
@@ -1346,6 +1396,7 @@ var StatusUpdateSchema = zodOpenapi.z.object({
|
|
|
1346
1396
|
statusComponents: zodOpenapi.z.array(StatusComponentSchema).optional()
|
|
1347
1397
|
});
|
|
1348
1398
|
var FullGraphAgentInsertSchema = AgentApiInsertSchema.extend({
|
|
1399
|
+
type: zodOpenapi.z.literal("internal"),
|
|
1349
1400
|
tools: zodOpenapi.z.array(zodOpenapi.z.string()),
|
|
1350
1401
|
selectedTools: zodOpenapi.z.record(zodOpenapi.z.string(), zodOpenapi.z.array(zodOpenapi.z.string())).optional(),
|
|
1351
1402
|
dataComponents: zodOpenapi.z.array(zodOpenapi.z.string()).optional(),
|
|
@@ -1355,10 +1406,9 @@ var FullGraphAgentInsertSchema = AgentApiInsertSchema.extend({
|
|
|
1355
1406
|
});
|
|
1356
1407
|
var FullGraphDefinitionSchema = AgentGraphApiInsertSchema.extend({
|
|
1357
1408
|
agents: zodOpenapi.z.record(zodOpenapi.z.string(), zodOpenapi.z.union([FullGraphAgentInsertSchema, ExternalAgentApiInsertSchema])),
|
|
1358
|
-
|
|
1359
|
-
credentialReferences
|
|
1360
|
-
|
|
1361
|
-
artifactComponents: zodOpenapi.z.record(zodOpenapi.z.string(), ArtifactComponentApiInsertSchema).optional(),
|
|
1409
|
+
// Removed project-scoped resources - these are now managed at project level:
|
|
1410
|
+
// tools, credentialReferences, dataComponents, artifactComponents
|
|
1411
|
+
// Agent relationships to these resources are maintained via agent.tools, agent.dataComponents, etc.
|
|
1362
1412
|
contextConfig: zodOpenapi.z.optional(ContextConfigApiInsertSchema),
|
|
1363
1413
|
statusUpdates: zodOpenapi.z.optional(StatusUpdateSchema),
|
|
1364
1414
|
models: ModelSchema.optional(),
|
|
@@ -1366,7 +1416,13 @@ var FullGraphDefinitionSchema = AgentGraphApiInsertSchema.extend({
|
|
|
1366
1416
|
graphPrompt: zodOpenapi.z.string().max(5e3, "Graph prompt cannot exceed 5000 characters").optional()
|
|
1367
1417
|
});
|
|
1368
1418
|
var GraphWithinContextOfProjectSchema = AgentGraphApiInsertSchema.extend({
|
|
1369
|
-
agents: zodOpenapi.z.record(
|
|
1419
|
+
agents: zodOpenapi.z.record(
|
|
1420
|
+
zodOpenapi.z.string(),
|
|
1421
|
+
zodOpenapi.z.discriminatedUnion("type", [
|
|
1422
|
+
FullGraphAgentInsertSchema,
|
|
1423
|
+
ExternalAgentApiInsertSchema.extend({ type: zodOpenapi.z.literal("external") })
|
|
1424
|
+
])
|
|
1425
|
+
),
|
|
1370
1426
|
models: ModelSchema.optional(),
|
|
1371
1427
|
stopWhen: GraphStopWhenSchema.optional(),
|
|
1372
1428
|
graphPrompt: zodOpenapi.z.string().max(5e3, "Graph prompt cannot exceed 5000 characters").optional()
|
|
@@ -1449,6 +1505,35 @@ var TenantProjectParamsSchema = zodOpenapi.z.object({
|
|
|
1449
1505
|
example: "project_456"
|
|
1450
1506
|
})
|
|
1451
1507
|
}).openapi("TenantProjectParams");
|
|
1508
|
+
var TenantProjectGraphParamsSchema = zodOpenapi.z.object({
|
|
1509
|
+
tenantId: zodOpenapi.z.string().openapi({
|
|
1510
|
+
description: "Tenant identifier",
|
|
1511
|
+
example: "tenant_123"
|
|
1512
|
+
}),
|
|
1513
|
+
projectId: zodOpenapi.z.string().openapi({
|
|
1514
|
+
description: "Project identifier",
|
|
1515
|
+
example: "project_456"
|
|
1516
|
+
}),
|
|
1517
|
+
graphId: zodOpenapi.z.string().openapi({
|
|
1518
|
+
description: "Graph identifier",
|
|
1519
|
+
example: "graph_789"
|
|
1520
|
+
})
|
|
1521
|
+
}).openapi("TenantProjectGraphParams");
|
|
1522
|
+
var TenantProjectGraphIdParamsSchema = zodOpenapi.z.object({
|
|
1523
|
+
tenantId: zodOpenapi.z.string().openapi({
|
|
1524
|
+
description: "Tenant identifier",
|
|
1525
|
+
example: "tenant_123"
|
|
1526
|
+
}),
|
|
1527
|
+
projectId: zodOpenapi.z.string().openapi({
|
|
1528
|
+
description: "Project identifier",
|
|
1529
|
+
example: "project_456"
|
|
1530
|
+
}),
|
|
1531
|
+
graphId: zodOpenapi.z.string().openapi({
|
|
1532
|
+
description: "Graph identifier",
|
|
1533
|
+
example: "graph_789"
|
|
1534
|
+
}),
|
|
1535
|
+
id: resourceIdSchema
|
|
1536
|
+
}).openapi("TenantProjectGraphIdParams");
|
|
1452
1537
|
var TenantProjectIdParamsSchema = zodOpenapi.z.object({
|
|
1453
1538
|
tenantId: zodOpenapi.z.string().openapi({
|
|
1454
1539
|
description: "Tenant identifier",
|
|
@@ -1485,9 +1570,11 @@ function isExternalAgent(agent) {
|
|
|
1485
1570
|
function validateAndTypeGraphData(data) {
|
|
1486
1571
|
return FullGraphDefinitionSchema.parse(data);
|
|
1487
1572
|
}
|
|
1488
|
-
function validateToolReferences(graphData) {
|
|
1573
|
+
function validateToolReferences(graphData, availableToolIds) {
|
|
1574
|
+
if (!availableToolIds) {
|
|
1575
|
+
return;
|
|
1576
|
+
}
|
|
1489
1577
|
const errors = [];
|
|
1490
|
-
const availableToolIds = new Set(Object.keys(graphData.tools || {}));
|
|
1491
1578
|
for (const [agentId, agentData] of Object.entries(graphData.agents)) {
|
|
1492
1579
|
if (isInternalAgent(agentData) && agentData.tools && Array.isArray(agentData.tools)) {
|
|
1493
1580
|
for (const toolId of agentData.tools) {
|
|
@@ -1502,9 +1589,11 @@ function validateToolReferences(graphData) {
|
|
|
1502
1589
|
${errors.join("\n")}`);
|
|
1503
1590
|
}
|
|
1504
1591
|
}
|
|
1505
|
-
function validateDataComponentReferences(graphData) {
|
|
1592
|
+
function validateDataComponentReferences(graphData, availableDataComponentIds) {
|
|
1593
|
+
if (!availableDataComponentIds) {
|
|
1594
|
+
return;
|
|
1595
|
+
}
|
|
1506
1596
|
const errors = [];
|
|
1507
|
-
const availableDataComponentIds = new Set(Object.keys(graphData.dataComponents || {}));
|
|
1508
1597
|
for (const [agentId, agentData] of Object.entries(graphData.agents)) {
|
|
1509
1598
|
if (isInternalAgent(agentData) && agentData.dataComponents) {
|
|
1510
1599
|
for (const dataComponentId of agentData.dataComponents) {
|
|
@@ -1521,9 +1610,11 @@ function validateDataComponentReferences(graphData) {
|
|
|
1521
1610
|
${errors.join("\n")}`);
|
|
1522
1611
|
}
|
|
1523
1612
|
}
|
|
1524
|
-
function validateArtifactComponentReferences(graphData) {
|
|
1613
|
+
function validateArtifactComponentReferences(graphData, availableArtifactComponentIds) {
|
|
1614
|
+
if (!availableArtifactComponentIds) {
|
|
1615
|
+
return;
|
|
1616
|
+
}
|
|
1525
1617
|
const errors = [];
|
|
1526
|
-
const availableArtifactComponentIds = new Set(Object.keys(graphData.artifactComponents || {}));
|
|
1527
1618
|
for (const [agentId, agentData] of Object.entries(graphData.agents)) {
|
|
1528
1619
|
if (isInternalAgent(agentData) && agentData.artifactComponents) {
|
|
1529
1620
|
for (const artifactComponentId of agentData.artifactComponents) {
|
|
@@ -1570,13 +1661,15 @@ function validateAgentRelationships(graphData) {
|
|
|
1570
1661
|
${errors.join("\n")}`);
|
|
1571
1662
|
}
|
|
1572
1663
|
}
|
|
1573
|
-
function validateGraphStructure(graphData) {
|
|
1574
|
-
if (!graphData.agents[graphData.defaultAgentId]) {
|
|
1664
|
+
function validateGraphStructure(graphData, projectResources) {
|
|
1665
|
+
if (graphData.defaultAgentId && !graphData.agents[graphData.defaultAgentId]) {
|
|
1575
1666
|
throw new Error(`Default agent '${graphData.defaultAgentId}' does not exist in agents`);
|
|
1576
1667
|
}
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1668
|
+
if (projectResources) {
|
|
1669
|
+
validateToolReferences(graphData, projectResources.toolIds);
|
|
1670
|
+
validateDataComponentReferences(graphData, projectResources.dataComponentIds);
|
|
1671
|
+
validateArtifactComponentReferences(graphData, projectResources.artifactComponentIds);
|
|
1672
|
+
}
|
|
1580
1673
|
validateAgentRelationships(graphData);
|
|
1581
1674
|
}
|
|
1582
1675
|
|
|
@@ -1749,6 +1842,8 @@ exports.TaskSelectSchema = TaskSelectSchema;
|
|
|
1749
1842
|
exports.TaskUpdateSchema = TaskUpdateSchema;
|
|
1750
1843
|
exports.TenantIdParamsSchema = TenantIdParamsSchema;
|
|
1751
1844
|
exports.TenantParamsSchema = TenantParamsSchema;
|
|
1845
|
+
exports.TenantProjectGraphIdParamsSchema = TenantProjectGraphIdParamsSchema;
|
|
1846
|
+
exports.TenantProjectGraphParamsSchema = TenantProjectGraphParamsSchema;
|
|
1752
1847
|
exports.TenantProjectIdParamsSchema = TenantProjectIdParamsSchema;
|
|
1753
1848
|
exports.TenantProjectParamsSchema = TenantProjectParamsSchema;
|
|
1754
1849
|
exports.ToolApiInsertSchema = ToolApiInsertSchema;
|
package/dist/validation/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { generateIdFromName, isExternalAgent, isInternalAgent, isValidResourceId, validateAgentRelationships, validateAndTypeGraphData, validateArtifactComponentReferences, validateDataComponentReferences, validateGraphStructure, validateToolReferences } from '../chunk-
|
|
2
|
-
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, TenantProjectIdParamsSchema, TenantProjectParamsSchema, ToolApiInsertSchema, ToolApiSelectSchema, ToolApiUpdateSchema, ToolInsertSchema, ToolSelectSchema, ToolStatusSchema, ToolUpdateSchema, URL_SAFE_ID_PATTERN, resourceIdSchema } from '../chunk-
|
|
1
|
+
export { generateIdFromName, isExternalAgent, isInternalAgent, isValidResourceId, validateAgentRelationships, validateAndTypeGraphData, validateArtifactComponentReferences, validateDataComponentReferences, validateGraphStructure, validateToolReferences } from '../chunk-XQRFKXVV.js';
|
|
2
|
+
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 } from '../chunk-LPIKPCE5.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/agents-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Agents Core contains the database schema, types, and validation schemas for Inkeep Agent Framework, along with core components.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|