@inkeep/agents-core 0.0.0-dev-20251008200151 → 0.0.0-dev-20251009005405
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-BNXFEUNP.js → chunk-HZZTBK7Y.js} +61 -7
- package/dist/{chunk-PR7XWHED.js → chunk-MLKHAZVU.js} +1 -1
- package/dist/{chunk-5ZHSPLXI.js → chunk-TN5JDW2L.js} +41 -3
- package/dist/client-exports.cjs +101 -7
- package/dist/client-exports.d.cts +8 -7
- package/dist/client-exports.d.ts +8 -7
- package/dist/client-exports.js +2 -2
- package/dist/db/schema.cjs +40 -2
- 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 +2818 -2506
- package/dist/index.d.cts +326 -244
- package/dist/index.d.ts +326 -244
- package/dist/index.js +2458 -2254
- package/dist/{schema-Cn2ZkYOh.d.cts → schema-DKTW_XSC.d.cts} +249 -3
- package/dist/{schema-BYR5XAeI.d.ts → schema-DfH0zjbm.d.ts} +249 -3
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/{utility-6UlHR5nQ.d.cts → utility-BHDxGp6I.d.cts} +827 -237
- package/dist/{utility-6UlHR5nQ.d.ts → utility-BHDxGp6I.d.ts} +827 -237
- package/dist/validation/index.cjs +105 -7
- package/dist/validation/index.d.cts +2 -2
- package/dist/validation/index.d.ts +2 -2
- package/dist/validation/index.js +2 -2
- package/drizzle/0002_brown_marvel_apes.sql +16 -0
- package/drizzle/0003_gifted_doctor_spectrum.sql +343 -0
- package/drizzle/meta/{0001_snapshot.json → 0003_snapshot.json} +135 -11
- package/drizzle/meta/_journal.json +9 -2
- package/package.json +1 -1
- package/drizzle/meta/0000_snapshot.json +0 -2425
|
@@ -0,0 +1,343 @@
|
|
|
1
|
+
CREATE TABLE `agent_artifact_components` (
|
|
2
|
+
`tenant_id` text NOT NULL,
|
|
3
|
+
`id` text NOT NULL,
|
|
4
|
+
`project_id` text NOT NULL,
|
|
5
|
+
`graph_id` text NOT NULL,
|
|
6
|
+
`agent_id` text NOT NULL,
|
|
7
|
+
`artifact_component_id` text NOT NULL,
|
|
8
|
+
`created_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
|
9
|
+
PRIMARY KEY(`tenant_id`, `project_id`, `graph_id`, `agent_id`, `id`),
|
|
10
|
+
FOREIGN KEY (`tenant_id`,`project_id`,`graph_id`,`agent_id`) REFERENCES `agents`(`tenant_id`,`project_id`,`graph_id`,`id`) ON UPDATE no action ON DELETE cascade,
|
|
11
|
+
FOREIGN KEY (`tenant_id`,`project_id`,`artifact_component_id`) REFERENCES `artifact_components`(`tenant_id`,`project_id`,`id`) ON UPDATE no action ON DELETE cascade
|
|
12
|
+
);
|
|
13
|
+
--> statement-breakpoint
|
|
14
|
+
CREATE TABLE `agent_data_components` (
|
|
15
|
+
`tenant_id` text NOT NULL,
|
|
16
|
+
`id` text NOT NULL,
|
|
17
|
+
`project_id` text NOT NULL,
|
|
18
|
+
`graph_id` text NOT NULL,
|
|
19
|
+
`agent_id` text NOT NULL,
|
|
20
|
+
`data_component_id` text NOT NULL,
|
|
21
|
+
`created_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
|
22
|
+
PRIMARY KEY(`tenant_id`, `project_id`, `id`),
|
|
23
|
+
FOREIGN KEY (`tenant_id`,`project_id`,`graph_id`,`agent_id`) REFERENCES `agents`(`tenant_id`,`project_id`,`graph_id`,`id`) ON UPDATE no action ON DELETE cascade,
|
|
24
|
+
FOREIGN KEY (`tenant_id`,`project_id`,`data_component_id`) REFERENCES `data_components`(`tenant_id`,`project_id`,`id`) ON UPDATE no action ON DELETE cascade
|
|
25
|
+
);
|
|
26
|
+
--> statement-breakpoint
|
|
27
|
+
CREATE TABLE `agent_graph` (
|
|
28
|
+
`tenant_id` text NOT NULL,
|
|
29
|
+
`id` text NOT NULL,
|
|
30
|
+
`project_id` text NOT NULL,
|
|
31
|
+
`name` text NOT NULL,
|
|
32
|
+
`description` text,
|
|
33
|
+
`default_agent_id` text,
|
|
34
|
+
`context_config_id` text,
|
|
35
|
+
`models` text,
|
|
36
|
+
`status_updates` text,
|
|
37
|
+
`graph_prompt` text,
|
|
38
|
+
`stop_when` text,
|
|
39
|
+
`created_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
|
40
|
+
`updated_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
|
41
|
+
PRIMARY KEY(`tenant_id`, `project_id`, `id`),
|
|
42
|
+
FOREIGN KEY (`tenant_id`,`project_id`) REFERENCES `projects`(`tenant_id`,`id`) ON UPDATE no action ON DELETE cascade
|
|
43
|
+
);
|
|
44
|
+
--> statement-breakpoint
|
|
45
|
+
CREATE TABLE `agent_relations` (
|
|
46
|
+
`tenant_id` text NOT NULL,
|
|
47
|
+
`id` text NOT NULL,
|
|
48
|
+
`project_id` text NOT NULL,
|
|
49
|
+
`graph_id` text NOT NULL,
|
|
50
|
+
`source_agent_id` text NOT NULL,
|
|
51
|
+
`target_agent_id` text,
|
|
52
|
+
`external_agent_id` text,
|
|
53
|
+
`relation_type` text,
|
|
54
|
+
`created_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
|
55
|
+
`updated_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
|
56
|
+
PRIMARY KEY(`tenant_id`, `project_id`, `graph_id`, `id`),
|
|
57
|
+
FOREIGN KEY (`tenant_id`,`project_id`,`graph_id`) REFERENCES `agent_graph`(`tenant_id`,`project_id`,`id`) ON UPDATE no action ON DELETE cascade
|
|
58
|
+
);
|
|
59
|
+
--> statement-breakpoint
|
|
60
|
+
CREATE TABLE `agent_tool_relations` (
|
|
61
|
+
`tenant_id` text NOT NULL,
|
|
62
|
+
`id` text NOT NULL,
|
|
63
|
+
`project_id` text NOT NULL,
|
|
64
|
+
`graph_id` text NOT NULL,
|
|
65
|
+
`agent_id` text NOT NULL,
|
|
66
|
+
`tool_id` text NOT NULL,
|
|
67
|
+
`selected_tools` blob,
|
|
68
|
+
`headers` blob,
|
|
69
|
+
`created_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
|
70
|
+
`updated_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
|
71
|
+
PRIMARY KEY(`tenant_id`, `project_id`, `graph_id`, `id`),
|
|
72
|
+
FOREIGN KEY (`tenant_id`,`project_id`,`graph_id`,`agent_id`) REFERENCES `agents`(`tenant_id`,`project_id`,`graph_id`,`id`) ON UPDATE no action ON DELETE cascade,
|
|
73
|
+
FOREIGN KEY (`tenant_id`,`project_id`,`tool_id`) REFERENCES `tools`(`tenant_id`,`project_id`,`id`) ON UPDATE no action ON DELETE cascade
|
|
74
|
+
);
|
|
75
|
+
--> statement-breakpoint
|
|
76
|
+
CREATE TABLE `agents` (
|
|
77
|
+
`tenant_id` text NOT NULL,
|
|
78
|
+
`id` text NOT NULL,
|
|
79
|
+
`project_id` text NOT NULL,
|
|
80
|
+
`graph_id` text NOT NULL,
|
|
81
|
+
`name` text NOT NULL,
|
|
82
|
+
`description` text NOT NULL,
|
|
83
|
+
`prompt` text NOT NULL,
|
|
84
|
+
`conversation_history_config` text,
|
|
85
|
+
`models` text,
|
|
86
|
+
`stop_when` text,
|
|
87
|
+
`created_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
|
88
|
+
`updated_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
|
89
|
+
PRIMARY KEY(`tenant_id`, `project_id`, `graph_id`, `id`),
|
|
90
|
+
FOREIGN KEY (`tenant_id`,`project_id`,`graph_id`) REFERENCES `agent_graph`(`tenant_id`,`project_id`,`id`) ON UPDATE no action ON DELETE cascade
|
|
91
|
+
);
|
|
92
|
+
--> statement-breakpoint
|
|
93
|
+
CREATE TABLE `api_keys` (
|
|
94
|
+
`tenant_id` text NOT NULL,
|
|
95
|
+
`id` text NOT NULL,
|
|
96
|
+
`project_id` text NOT NULL,
|
|
97
|
+
`graph_id` text NOT NULL,
|
|
98
|
+
`public_id` text NOT NULL,
|
|
99
|
+
`key_hash` text NOT NULL,
|
|
100
|
+
`key_prefix` text NOT NULL,
|
|
101
|
+
`name` text,
|
|
102
|
+
`last_used_at` text,
|
|
103
|
+
`expires_at` text,
|
|
104
|
+
`created_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
|
105
|
+
`updated_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
|
106
|
+
FOREIGN KEY (`tenant_id`,`project_id`) REFERENCES `projects`(`tenant_id`,`id`) ON UPDATE no action ON DELETE cascade,
|
|
107
|
+
FOREIGN KEY (`tenant_id`,`project_id`,`graph_id`) REFERENCES `agent_graph`(`tenant_id`,`project_id`,`id`) ON UPDATE no action ON DELETE cascade
|
|
108
|
+
);
|
|
109
|
+
--> statement-breakpoint
|
|
110
|
+
CREATE UNIQUE INDEX `api_keys_public_id_unique` ON `api_keys` (`public_id`);--> statement-breakpoint
|
|
111
|
+
CREATE INDEX `api_keys_tenant_graph_idx` ON `api_keys` (`tenant_id`,`graph_id`);--> statement-breakpoint
|
|
112
|
+
CREATE INDEX `api_keys_prefix_idx` ON `api_keys` (`key_prefix`);--> statement-breakpoint
|
|
113
|
+
CREATE INDEX `api_keys_public_id_idx` ON `api_keys` (`public_id`);--> statement-breakpoint
|
|
114
|
+
CREATE TABLE `artifact_components` (
|
|
115
|
+
`tenant_id` text NOT NULL,
|
|
116
|
+
`id` text NOT NULL,
|
|
117
|
+
`project_id` text NOT NULL,
|
|
118
|
+
`name` text NOT NULL,
|
|
119
|
+
`description` text NOT NULL,
|
|
120
|
+
`props` blob,
|
|
121
|
+
`created_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
|
122
|
+
`updated_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
|
123
|
+
PRIMARY KEY(`tenant_id`, `project_id`, `id`),
|
|
124
|
+
FOREIGN KEY (`tenant_id`,`project_id`) REFERENCES `projects`(`tenant_id`,`id`) ON UPDATE no action ON DELETE cascade
|
|
125
|
+
);
|
|
126
|
+
--> statement-breakpoint
|
|
127
|
+
CREATE TABLE `context_cache` (
|
|
128
|
+
`tenant_id` text NOT NULL,
|
|
129
|
+
`id` text NOT NULL,
|
|
130
|
+
`project_id` text NOT NULL,
|
|
131
|
+
`conversation_id` text NOT NULL,
|
|
132
|
+
`context_config_id` text NOT NULL,
|
|
133
|
+
`context_variable_key` text NOT NULL,
|
|
134
|
+
`value` blob NOT NULL,
|
|
135
|
+
`request_hash` text,
|
|
136
|
+
`fetched_at` text NOT NULL,
|
|
137
|
+
`fetch_source` text,
|
|
138
|
+
`fetch_duration_ms` integer,
|
|
139
|
+
`created_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
|
140
|
+
`updated_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
|
141
|
+
PRIMARY KEY(`tenant_id`, `project_id`, `id`),
|
|
142
|
+
FOREIGN KEY (`tenant_id`,`project_id`) REFERENCES `projects`(`tenant_id`,`id`) ON UPDATE no action ON DELETE cascade
|
|
143
|
+
);
|
|
144
|
+
--> statement-breakpoint
|
|
145
|
+
CREATE INDEX `context_cache_lookup_idx` ON `context_cache` (`conversation_id`,`context_config_id`,`context_variable_key`);--> statement-breakpoint
|
|
146
|
+
CREATE TABLE `context_configs` (
|
|
147
|
+
`tenant_id` text NOT NULL,
|
|
148
|
+
`id` text NOT NULL,
|
|
149
|
+
`project_id` text NOT NULL,
|
|
150
|
+
`graph_id` text NOT NULL,
|
|
151
|
+
`name` text NOT NULL,
|
|
152
|
+
`description` text NOT NULL,
|
|
153
|
+
`request_context_schema` blob,
|
|
154
|
+
`context_variables` blob,
|
|
155
|
+
`created_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
|
156
|
+
`updated_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
|
157
|
+
PRIMARY KEY(`tenant_id`, `project_id`, `graph_id`, `id`),
|
|
158
|
+
FOREIGN KEY (`tenant_id`,`project_id`,`graph_id`) REFERENCES `agent_graph`(`tenant_id`,`project_id`,`id`) ON UPDATE no action ON DELETE cascade
|
|
159
|
+
);
|
|
160
|
+
--> statement-breakpoint
|
|
161
|
+
CREATE TABLE `conversations` (
|
|
162
|
+
`tenant_id` text NOT NULL,
|
|
163
|
+
`id` text NOT NULL,
|
|
164
|
+
`project_id` text NOT NULL,
|
|
165
|
+
`user_id` text,
|
|
166
|
+
`active_agent_id` text NOT NULL,
|
|
167
|
+
`title` text,
|
|
168
|
+
`last_context_resolution` text,
|
|
169
|
+
`metadata` blob,
|
|
170
|
+
`created_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
|
171
|
+
`updated_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
|
172
|
+
PRIMARY KEY(`tenant_id`, `project_id`, `id`),
|
|
173
|
+
FOREIGN KEY (`tenant_id`,`project_id`) REFERENCES `projects`(`tenant_id`,`id`) ON UPDATE no action ON DELETE cascade
|
|
174
|
+
);
|
|
175
|
+
--> statement-breakpoint
|
|
176
|
+
CREATE TABLE `credential_references` (
|
|
177
|
+
`tenant_id` text NOT NULL,
|
|
178
|
+
`id` text NOT NULL,
|
|
179
|
+
`project_id` text NOT NULL,
|
|
180
|
+
`type` text NOT NULL,
|
|
181
|
+
`credential_store_id` text NOT NULL,
|
|
182
|
+
`retrieval_params` blob,
|
|
183
|
+
`created_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
|
184
|
+
`updated_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
|
185
|
+
PRIMARY KEY(`tenant_id`, `project_id`, `id`),
|
|
186
|
+
FOREIGN KEY (`tenant_id`,`project_id`) REFERENCES `projects`(`tenant_id`,`id`) ON UPDATE no action ON DELETE cascade
|
|
187
|
+
);
|
|
188
|
+
--> statement-breakpoint
|
|
189
|
+
CREATE TABLE `data_components` (
|
|
190
|
+
`tenant_id` text NOT NULL,
|
|
191
|
+
`id` text NOT NULL,
|
|
192
|
+
`project_id` text NOT NULL,
|
|
193
|
+
`name` text NOT NULL,
|
|
194
|
+
`description` text NOT NULL,
|
|
195
|
+
`props` blob,
|
|
196
|
+
`created_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
|
197
|
+
`updated_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
|
198
|
+
PRIMARY KEY(`tenant_id`, `project_id`, `id`),
|
|
199
|
+
FOREIGN KEY (`tenant_id`,`project_id`) REFERENCES `projects`(`tenant_id`,`id`) ON UPDATE no action ON DELETE cascade
|
|
200
|
+
);
|
|
201
|
+
--> statement-breakpoint
|
|
202
|
+
CREATE TABLE `external_agents` (
|
|
203
|
+
`tenant_id` text NOT NULL,
|
|
204
|
+
`id` text NOT NULL,
|
|
205
|
+
`project_id` text NOT NULL,
|
|
206
|
+
`graph_id` text NOT NULL,
|
|
207
|
+
`name` text NOT NULL,
|
|
208
|
+
`description` text NOT NULL,
|
|
209
|
+
`base_url` text NOT NULL,
|
|
210
|
+
`credential_reference_id` text,
|
|
211
|
+
`headers` blob,
|
|
212
|
+
`created_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
|
213
|
+
`updated_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
|
214
|
+
PRIMARY KEY(`tenant_id`, `project_id`, `graph_id`, `id`),
|
|
215
|
+
FOREIGN KEY (`tenant_id`,`project_id`,`graph_id`) REFERENCES `agent_graph`(`tenant_id`,`project_id`,`id`) ON UPDATE no action ON DELETE cascade,
|
|
216
|
+
FOREIGN KEY (`tenant_id`,`project_id`,`credential_reference_id`) REFERENCES `credential_references`(`tenant_id`,`project_id`,`id`) ON UPDATE no action ON DELETE set null
|
|
217
|
+
);
|
|
218
|
+
--> statement-breakpoint
|
|
219
|
+
CREATE TABLE `functions` (
|
|
220
|
+
`tenant_id` text NOT NULL,
|
|
221
|
+
`id` text NOT NULL,
|
|
222
|
+
`project_id` text NOT NULL,
|
|
223
|
+
`input_schema` blob,
|
|
224
|
+
`execute_code` text NOT NULL,
|
|
225
|
+
`dependencies` blob,
|
|
226
|
+
`created_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
|
227
|
+
`updated_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
|
228
|
+
PRIMARY KEY(`tenant_id`, `project_id`, `id`),
|
|
229
|
+
FOREIGN KEY (`tenant_id`,`project_id`) REFERENCES `projects`(`tenant_id`,`id`) ON UPDATE no action ON DELETE cascade
|
|
230
|
+
);
|
|
231
|
+
--> statement-breakpoint
|
|
232
|
+
CREATE TABLE `ledger_artifacts` (
|
|
233
|
+
`tenant_id` text NOT NULL,
|
|
234
|
+
`id` text NOT NULL,
|
|
235
|
+
`project_id` text NOT NULL,
|
|
236
|
+
`task_id` text NOT NULL,
|
|
237
|
+
`tool_call_id` text,
|
|
238
|
+
`context_id` text NOT NULL,
|
|
239
|
+
`type` text DEFAULT 'source' NOT NULL,
|
|
240
|
+
`name` text,
|
|
241
|
+
`description` text,
|
|
242
|
+
`parts` blob,
|
|
243
|
+
`metadata` blob,
|
|
244
|
+
`summary` text,
|
|
245
|
+
`mime` blob,
|
|
246
|
+
`visibility` text DEFAULT 'context',
|
|
247
|
+
`allowed_agents` blob,
|
|
248
|
+
`derived_from` text,
|
|
249
|
+
`created_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
|
250
|
+
`updated_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
|
251
|
+
PRIMARY KEY(`tenant_id`, `project_id`, `id`, `task_id`),
|
|
252
|
+
FOREIGN KEY (`tenant_id`,`project_id`) REFERENCES `projects`(`tenant_id`,`id`) ON UPDATE no action ON DELETE cascade
|
|
253
|
+
);
|
|
254
|
+
--> statement-breakpoint
|
|
255
|
+
CREATE INDEX `ledger_artifacts_task_id_idx` ON `ledger_artifacts` (`task_id`);--> statement-breakpoint
|
|
256
|
+
CREATE INDEX `ledger_artifacts_tool_call_id_idx` ON `ledger_artifacts` (`tool_call_id`);--> statement-breakpoint
|
|
257
|
+
CREATE INDEX `ledger_artifacts_context_id_idx` ON `ledger_artifacts` (`context_id`);--> statement-breakpoint
|
|
258
|
+
CREATE UNIQUE INDEX `ledger_artifacts_task_context_name_unique` ON `ledger_artifacts` (`task_id`,`context_id`,`name`);--> statement-breakpoint
|
|
259
|
+
CREATE TABLE `messages` (
|
|
260
|
+
`tenant_id` text NOT NULL,
|
|
261
|
+
`id` text NOT NULL,
|
|
262
|
+
`project_id` text NOT NULL,
|
|
263
|
+
`conversation_id` text NOT NULL,
|
|
264
|
+
`role` text NOT NULL,
|
|
265
|
+
`from_agent_id` text,
|
|
266
|
+
`to_agent_id` text,
|
|
267
|
+
`from_external_agent_id` text,
|
|
268
|
+
`to_external_agent_id` text,
|
|
269
|
+
`content` blob NOT NULL,
|
|
270
|
+
`visibility` text DEFAULT 'user-facing' NOT NULL,
|
|
271
|
+
`message_type` text DEFAULT 'chat' NOT NULL,
|
|
272
|
+
`agent_id` text,
|
|
273
|
+
`task_id` text,
|
|
274
|
+
`parent_message_id` text,
|
|
275
|
+
`a2a_task_id` text,
|
|
276
|
+
`a2a_session_id` text,
|
|
277
|
+
`metadata` blob,
|
|
278
|
+
`created_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
|
279
|
+
`updated_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
|
280
|
+
PRIMARY KEY(`tenant_id`, `project_id`, `id`),
|
|
281
|
+
FOREIGN KEY (`tenant_id`,`project_id`) REFERENCES `projects`(`tenant_id`,`id`) ON UPDATE no action ON DELETE cascade
|
|
282
|
+
);
|
|
283
|
+
--> statement-breakpoint
|
|
284
|
+
CREATE TABLE `projects` (
|
|
285
|
+
`tenant_id` text NOT NULL,
|
|
286
|
+
`id` text NOT NULL,
|
|
287
|
+
`name` text NOT NULL,
|
|
288
|
+
`description` text NOT NULL,
|
|
289
|
+
`models` text,
|
|
290
|
+
`stop_when` text,
|
|
291
|
+
`sandbox_config` text,
|
|
292
|
+
`created_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
|
293
|
+
`updated_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
|
294
|
+
PRIMARY KEY(`tenant_id`, `id`)
|
|
295
|
+
);
|
|
296
|
+
--> statement-breakpoint
|
|
297
|
+
CREATE TABLE `task_relations` (
|
|
298
|
+
`tenant_id` text NOT NULL,
|
|
299
|
+
`id` text NOT NULL,
|
|
300
|
+
`project_id` text NOT NULL,
|
|
301
|
+
`parent_task_id` text NOT NULL,
|
|
302
|
+
`child_task_id` text NOT NULL,
|
|
303
|
+
`relation_type` text DEFAULT 'parent_child',
|
|
304
|
+
`created_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
|
305
|
+
`updated_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
|
306
|
+
PRIMARY KEY(`tenant_id`, `project_id`, `id`),
|
|
307
|
+
FOREIGN KEY (`tenant_id`,`project_id`) REFERENCES `projects`(`tenant_id`,`id`) ON UPDATE no action ON DELETE cascade
|
|
308
|
+
);
|
|
309
|
+
--> statement-breakpoint
|
|
310
|
+
CREATE TABLE `tasks` (
|
|
311
|
+
`tenant_id` text NOT NULL,
|
|
312
|
+
`id` text NOT NULL,
|
|
313
|
+
`project_id` text NOT NULL,
|
|
314
|
+
`graph_id` text NOT NULL,
|
|
315
|
+
`agent_id` text NOT NULL,
|
|
316
|
+
`context_id` text NOT NULL,
|
|
317
|
+
`status` text NOT NULL,
|
|
318
|
+
`metadata` blob,
|
|
319
|
+
`created_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
|
320
|
+
`updated_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
|
321
|
+
PRIMARY KEY(`tenant_id`, `project_id`, `id`),
|
|
322
|
+
FOREIGN KEY (`tenant_id`,`project_id`,`graph_id`,`agent_id`) REFERENCES `agents`(`tenant_id`,`project_id`,`graph_id`,`id`) ON UPDATE no action ON DELETE cascade
|
|
323
|
+
);
|
|
324
|
+
--> statement-breakpoint
|
|
325
|
+
CREATE TABLE `tools` (
|
|
326
|
+
`tenant_id` text NOT NULL,
|
|
327
|
+
`id` text NOT NULL,
|
|
328
|
+
`project_id` text NOT NULL,
|
|
329
|
+
`name` text NOT NULL,
|
|
330
|
+
`description` text,
|
|
331
|
+
`config` blob NOT NULL,
|
|
332
|
+
`function_id` text,
|
|
333
|
+
`credential_reference_id` text,
|
|
334
|
+
`headers` blob,
|
|
335
|
+
`image_url` text,
|
|
336
|
+
`capabilities` blob,
|
|
337
|
+
`last_error` text,
|
|
338
|
+
`created_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
|
339
|
+
`updated_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
|
340
|
+
PRIMARY KEY(`tenant_id`, `project_id`, `id`),
|
|
341
|
+
FOREIGN KEY (`tenant_id`,`project_id`) REFERENCES `projects`(`tenant_id`,`id`) ON UPDATE no action ON DELETE cascade,
|
|
342
|
+
FOREIGN KEY (`tenant_id`,`project_id`,`function_id`) REFERENCES `functions`(`tenant_id`,`project_id`,`id`) ON UPDATE no action ON DELETE cascade
|
|
343
|
+
);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "6",
|
|
3
3
|
"dialect": "sqlite",
|
|
4
|
-
"id": "
|
|
5
|
-
"prevId": "
|
|
4
|
+
"id": "303a7585-92fa-49e5-a3d3-2e72214aab3a",
|
|
5
|
+
"prevId": "00000000-0000-0000-0000-000000000000",
|
|
6
6
|
"tables": {
|
|
7
7
|
"agent_artifact_components": {
|
|
8
8
|
"name": "agent_artifact_components",
|
|
@@ -906,15 +906,8 @@
|
|
|
906
906
|
"notNull": true,
|
|
907
907
|
"autoincrement": false
|
|
908
908
|
},
|
|
909
|
-
"
|
|
910
|
-
"name": "
|
|
911
|
-
"type": "blob",
|
|
912
|
-
"primaryKey": false,
|
|
913
|
-
"notNull": false,
|
|
914
|
-
"autoincrement": false
|
|
915
|
-
},
|
|
916
|
-
"full_props": {
|
|
917
|
-
"name": "full_props",
|
|
909
|
+
"props": {
|
|
910
|
+
"name": "props",
|
|
918
911
|
"type": "blob",
|
|
919
912
|
"primaryKey": false,
|
|
920
913
|
"notNull": false,
|
|
@@ -1643,6 +1636,99 @@
|
|
|
1643
1636
|
"uniqueConstraints": {},
|
|
1644
1637
|
"checkConstraints": {}
|
|
1645
1638
|
},
|
|
1639
|
+
"functions": {
|
|
1640
|
+
"name": "functions",
|
|
1641
|
+
"columns": {
|
|
1642
|
+
"tenant_id": {
|
|
1643
|
+
"name": "tenant_id",
|
|
1644
|
+
"type": "text",
|
|
1645
|
+
"primaryKey": false,
|
|
1646
|
+
"notNull": true,
|
|
1647
|
+
"autoincrement": false
|
|
1648
|
+
},
|
|
1649
|
+
"id": {
|
|
1650
|
+
"name": "id",
|
|
1651
|
+
"type": "text",
|
|
1652
|
+
"primaryKey": false,
|
|
1653
|
+
"notNull": true,
|
|
1654
|
+
"autoincrement": false
|
|
1655
|
+
},
|
|
1656
|
+
"project_id": {
|
|
1657
|
+
"name": "project_id",
|
|
1658
|
+
"type": "text",
|
|
1659
|
+
"primaryKey": false,
|
|
1660
|
+
"notNull": true,
|
|
1661
|
+
"autoincrement": false
|
|
1662
|
+
},
|
|
1663
|
+
"input_schema": {
|
|
1664
|
+
"name": "input_schema",
|
|
1665
|
+
"type": "blob",
|
|
1666
|
+
"primaryKey": false,
|
|
1667
|
+
"notNull": false,
|
|
1668
|
+
"autoincrement": false
|
|
1669
|
+
},
|
|
1670
|
+
"execute_code": {
|
|
1671
|
+
"name": "execute_code",
|
|
1672
|
+
"type": "text",
|
|
1673
|
+
"primaryKey": false,
|
|
1674
|
+
"notNull": true,
|
|
1675
|
+
"autoincrement": false
|
|
1676
|
+
},
|
|
1677
|
+
"dependencies": {
|
|
1678
|
+
"name": "dependencies",
|
|
1679
|
+
"type": "blob",
|
|
1680
|
+
"primaryKey": false,
|
|
1681
|
+
"notNull": false,
|
|
1682
|
+
"autoincrement": false
|
|
1683
|
+
},
|
|
1684
|
+
"created_at": {
|
|
1685
|
+
"name": "created_at",
|
|
1686
|
+
"type": "text",
|
|
1687
|
+
"primaryKey": false,
|
|
1688
|
+
"notNull": true,
|
|
1689
|
+
"autoincrement": false,
|
|
1690
|
+
"default": "CURRENT_TIMESTAMP"
|
|
1691
|
+
},
|
|
1692
|
+
"updated_at": {
|
|
1693
|
+
"name": "updated_at",
|
|
1694
|
+
"type": "text",
|
|
1695
|
+
"primaryKey": false,
|
|
1696
|
+
"notNull": true,
|
|
1697
|
+
"autoincrement": false,
|
|
1698
|
+
"default": "CURRENT_TIMESTAMP"
|
|
1699
|
+
}
|
|
1700
|
+
},
|
|
1701
|
+
"indexes": {},
|
|
1702
|
+
"foreignKeys": {
|
|
1703
|
+
"functions_project_fk": {
|
|
1704
|
+
"name": "functions_project_fk",
|
|
1705
|
+
"tableFrom": "functions",
|
|
1706
|
+
"tableTo": "projects",
|
|
1707
|
+
"columnsFrom": [
|
|
1708
|
+
"tenant_id",
|
|
1709
|
+
"project_id"
|
|
1710
|
+
],
|
|
1711
|
+
"columnsTo": [
|
|
1712
|
+
"tenant_id",
|
|
1713
|
+
"id"
|
|
1714
|
+
],
|
|
1715
|
+
"onDelete": "cascade",
|
|
1716
|
+
"onUpdate": "no action"
|
|
1717
|
+
}
|
|
1718
|
+
},
|
|
1719
|
+
"compositePrimaryKeys": {
|
|
1720
|
+
"functions_tenant_id_project_id_id_pk": {
|
|
1721
|
+
"columns": [
|
|
1722
|
+
"tenant_id",
|
|
1723
|
+
"project_id",
|
|
1724
|
+
"id"
|
|
1725
|
+
],
|
|
1726
|
+
"name": "functions_tenant_id_project_id_id_pk"
|
|
1727
|
+
}
|
|
1728
|
+
},
|
|
1729
|
+
"uniqueConstraints": {},
|
|
1730
|
+
"checkConstraints": {}
|
|
1731
|
+
},
|
|
1646
1732
|
"ledger_artifacts": {
|
|
1647
1733
|
"name": "ledger_artifacts",
|
|
1648
1734
|
"columns": {
|
|
@@ -2064,6 +2150,13 @@
|
|
|
2064
2150
|
"notNull": false,
|
|
2065
2151
|
"autoincrement": false
|
|
2066
2152
|
},
|
|
2153
|
+
"sandbox_config": {
|
|
2154
|
+
"name": "sandbox_config",
|
|
2155
|
+
"type": "text",
|
|
2156
|
+
"primaryKey": false,
|
|
2157
|
+
"notNull": false,
|
|
2158
|
+
"autoincrement": false
|
|
2159
|
+
},
|
|
2067
2160
|
"created_at": {
|
|
2068
2161
|
"name": "created_at",
|
|
2069
2162
|
"type": "text",
|
|
@@ -2331,6 +2424,13 @@
|
|
|
2331
2424
|
"notNull": true,
|
|
2332
2425
|
"autoincrement": false
|
|
2333
2426
|
},
|
|
2427
|
+
"description": {
|
|
2428
|
+
"name": "description",
|
|
2429
|
+
"type": "text",
|
|
2430
|
+
"primaryKey": false,
|
|
2431
|
+
"notNull": false,
|
|
2432
|
+
"autoincrement": false
|
|
2433
|
+
},
|
|
2334
2434
|
"config": {
|
|
2335
2435
|
"name": "config",
|
|
2336
2436
|
"type": "blob",
|
|
@@ -2338,6 +2438,13 @@
|
|
|
2338
2438
|
"notNull": true,
|
|
2339
2439
|
"autoincrement": false
|
|
2340
2440
|
},
|
|
2441
|
+
"function_id": {
|
|
2442
|
+
"name": "function_id",
|
|
2443
|
+
"type": "text",
|
|
2444
|
+
"primaryKey": false,
|
|
2445
|
+
"notNull": false,
|
|
2446
|
+
"autoincrement": false
|
|
2447
|
+
},
|
|
2341
2448
|
"credential_reference_id": {
|
|
2342
2449
|
"name": "credential_reference_id",
|
|
2343
2450
|
"type": "text",
|
|
@@ -2406,6 +2513,23 @@
|
|
|
2406
2513
|
],
|
|
2407
2514
|
"onDelete": "cascade",
|
|
2408
2515
|
"onUpdate": "no action"
|
|
2516
|
+
},
|
|
2517
|
+
"tools_function_fk": {
|
|
2518
|
+
"name": "tools_function_fk",
|
|
2519
|
+
"tableFrom": "tools",
|
|
2520
|
+
"tableTo": "functions",
|
|
2521
|
+
"columnsFrom": [
|
|
2522
|
+
"tenant_id",
|
|
2523
|
+
"project_id",
|
|
2524
|
+
"function_id"
|
|
2525
|
+
],
|
|
2526
|
+
"columnsTo": [
|
|
2527
|
+
"tenant_id",
|
|
2528
|
+
"project_id",
|
|
2529
|
+
"id"
|
|
2530
|
+
],
|
|
2531
|
+
"onDelete": "cascade",
|
|
2532
|
+
"onUpdate": "no action"
|
|
2409
2533
|
}
|
|
2410
2534
|
},
|
|
2411
2535
|
"compositePrimaryKeys": {
|
|
@@ -19,8 +19,15 @@
|
|
|
19
19
|
{
|
|
20
20
|
"idx": 2,
|
|
21
21
|
"version": "6",
|
|
22
|
-
"when":
|
|
23
|
-
"tag": "
|
|
22
|
+
"when": 1759879314304,
|
|
23
|
+
"tag": "0002_brown_marvel_apes",
|
|
24
|
+
"breakpoints": true
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"idx": 3,
|
|
28
|
+
"version": "6",
|
|
29
|
+
"when": 1759958155048,
|
|
30
|
+
"tag": "0003_gifted_doctor_spectrum",
|
|
24
31
|
"breakpoints": true
|
|
25
32
|
}
|
|
26
33
|
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/agents-core",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20251009005405",
|
|
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",
|