@agents-shire/cli-win32-x64 1.0.14 → 1.0.15

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.
@@ -0,0 +1,12 @@
1
+ CREATE TABLE `alert_channels` (
2
+ `id` text PRIMARY KEY NOT NULL,
3
+ `project_id` text NOT NULL,
4
+ `channel_type` text NOT NULL,
5
+ `config` text NOT NULL,
6
+ `enabled` integer DEFAULT true NOT NULL,
7
+ `created_at` text DEFAULT (datetime('now')) NOT NULL,
8
+ `updated_at` text DEFAULT (datetime('now')) NOT NULL,
9
+ FOREIGN KEY (`project_id`) REFERENCES `projects`(`id`) ON UPDATE no action ON DELETE cascade
10
+ );
11
+ --> statement-breakpoint
12
+ CREATE UNIQUE INDEX `alert_channels_project_id_unique` ON `alert_channels` (`project_id`);
@@ -0,0 +1,11 @@
1
+ UPDATE `projects` SET `created_at` = `created_at` || 'Z' WHERE `created_at` NOT LIKE '%Z';--> statement-breakpoint
2
+ UPDATE `projects` SET `updated_at` = `updated_at` || 'Z' WHERE `updated_at` NOT LIKE '%Z';--> statement-breakpoint
3
+ UPDATE `agents` SET `created_at` = `created_at` || 'Z' WHERE `created_at` NOT LIKE '%Z';--> statement-breakpoint
4
+ UPDATE `agents` SET `updated_at` = `updated_at` || 'Z' WHERE `updated_at` NOT LIKE '%Z';--> statement-breakpoint
5
+ UPDATE `messages` SET `created_at` = `created_at` || 'Z' WHERE `created_at` NOT LIKE '%Z';--> statement-breakpoint
6
+ UPDATE `alert_channels` SET `created_at` = `created_at` || 'Z' WHERE `created_at` NOT LIKE '%Z';--> statement-breakpoint
7
+ UPDATE `alert_channels` SET `updated_at` = `updated_at` || 'Z' WHERE `updated_at` NOT LIKE '%Z';--> statement-breakpoint
8
+ UPDATE `scheduled_tasks` SET `created_at` = `created_at` || 'Z' WHERE `created_at` NOT LIKE '%Z';--> statement-breakpoint
9
+ UPDATE `scheduled_tasks` SET `updated_at` = `updated_at` || 'Z' WHERE `updated_at` NOT LIKE '%Z';--> statement-breakpoint
10
+ UPDATE `scheduled_tasks` SET `last_run_at` = `last_run_at` || 'Z' WHERE `last_run_at` IS NOT NULL AND `last_run_at` NOT LIKE '%Z';--> statement-breakpoint
11
+ UPDATE `scheduled_tasks` SET `scheduled_at` = `scheduled_at` || 'Z' WHERE `scheduled_at` IS NOT NULL AND `scheduled_at` NOT LIKE '%Z';
@@ -0,0 +1,79 @@
1
+ CREATE TABLE `__new_agents` (
2
+ `id` text PRIMARY KEY NOT NULL,
3
+ `project_id` text NOT NULL,
4
+ `name` text NOT NULL,
5
+ `session_id` text,
6
+ `description` text,
7
+ `harness` text,
8
+ `model` text,
9
+ `system_prompt` text,
10
+ `created_at` text DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ', 'now')) NOT NULL,
11
+ `updated_at` text DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ', 'now')) NOT NULL,
12
+ FOREIGN KEY (`project_id`) REFERENCES `projects`(`id`) ON UPDATE no action ON DELETE cascade
13
+ );
14
+ --> statement-breakpoint
15
+ INSERT INTO `__new_agents`("id", "project_id", "name", "session_id", "description", "harness", "model", "system_prompt", "created_at", "updated_at") SELECT "id", "project_id", "name", "session_id", "description", "harness", "model", "system_prompt", "created_at", "updated_at" FROM `agents`;--> statement-breakpoint
16
+ DROP TABLE `agents`;--> statement-breakpoint
17
+ ALTER TABLE `__new_agents` RENAME TO `agents`;--> statement-breakpoint
18
+ CREATE UNIQUE INDEX `agents_project_name` ON `agents` (`project_id`,`name`);--> statement-breakpoint
19
+ CREATE TABLE `__new_alert_channels` (
20
+ `id` text PRIMARY KEY NOT NULL,
21
+ `project_id` text NOT NULL,
22
+ `channel_type` text NOT NULL,
23
+ `config` text NOT NULL,
24
+ `enabled` integer DEFAULT true NOT NULL,
25
+ `created_at` text DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ', 'now')) NOT NULL,
26
+ `updated_at` text DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ', 'now')) NOT NULL,
27
+ FOREIGN KEY (`project_id`) REFERENCES `projects`(`id`) ON UPDATE no action ON DELETE cascade
28
+ );
29
+ --> statement-breakpoint
30
+ INSERT INTO `__new_alert_channels`("id", "project_id", "channel_type", "config", "enabled", "created_at", "updated_at") SELECT "id", "project_id", "channel_type", "config", "enabled", "created_at", "updated_at" FROM `alert_channels`;--> statement-breakpoint
31
+ DROP TABLE `alert_channels`;--> statement-breakpoint
32
+ ALTER TABLE `__new_alert_channels` RENAME TO `alert_channels`;--> statement-breakpoint
33
+ CREATE UNIQUE INDEX `alert_channels_project_id_unique` ON `alert_channels` (`project_id`);--> statement-breakpoint
34
+ CREATE TABLE `__new_messages` (
35
+ `id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
36
+ `project_id` text NOT NULL,
37
+ `agent_id` text NOT NULL,
38
+ `role` text NOT NULL,
39
+ `content` text NOT NULL,
40
+ `created_at` text DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ', 'now')) NOT NULL,
41
+ FOREIGN KEY (`project_id`) REFERENCES `projects`(`id`) ON UPDATE no action ON DELETE cascade,
42
+ FOREIGN KEY (`agent_id`) REFERENCES `agents`(`id`) ON UPDATE no action ON DELETE cascade
43
+ );
44
+ --> statement-breakpoint
45
+ INSERT INTO `__new_messages`("id", "project_id", "agent_id", "role", "content", "created_at") SELECT "id", "project_id", "agent_id", "role", "content", "created_at" FROM `messages`;--> statement-breakpoint
46
+ DROP TABLE `messages`;--> statement-breakpoint
47
+ ALTER TABLE `__new_messages` RENAME TO `messages`;--> statement-breakpoint
48
+ CREATE INDEX `idx_messages_agent` ON `messages` (`project_id`,`agent_id`,`id`);--> statement-breakpoint
49
+ CREATE TABLE `__new_projects` (
50
+ `id` text PRIMARY KEY NOT NULL,
51
+ `name` text NOT NULL,
52
+ `created_at` text DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ', 'now')) NOT NULL,
53
+ `updated_at` text DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ', 'now')) NOT NULL
54
+ );
55
+ --> statement-breakpoint
56
+ INSERT INTO `__new_projects`("id", "name", "created_at", "updated_at") SELECT "id", "name", "created_at", "updated_at" FROM `projects`;--> statement-breakpoint
57
+ DROP TABLE `projects`;--> statement-breakpoint
58
+ ALTER TABLE `__new_projects` RENAME TO `projects`;--> statement-breakpoint
59
+ CREATE UNIQUE INDEX `projects_name_unique` ON `projects` (`name`);--> statement-breakpoint
60
+ CREATE TABLE `__new_scheduled_tasks` (
61
+ `id` text PRIMARY KEY NOT NULL,
62
+ `project_id` text NOT NULL,
63
+ `agent_id` text NOT NULL,
64
+ `label` text NOT NULL,
65
+ `message` text NOT NULL,
66
+ `schedule_type` text NOT NULL,
67
+ `cron_expression` text,
68
+ `scheduled_at` text,
69
+ `enabled` integer DEFAULT true NOT NULL,
70
+ `last_run_at` text,
71
+ `created_at` text DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ', 'now')) NOT NULL,
72
+ `updated_at` text DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ', 'now')) NOT NULL,
73
+ FOREIGN KEY (`project_id`) REFERENCES `projects`(`id`) ON UPDATE no action ON DELETE cascade,
74
+ FOREIGN KEY (`agent_id`) REFERENCES `agents`(`id`) ON UPDATE no action ON DELETE cascade
75
+ );
76
+ --> statement-breakpoint
77
+ INSERT INTO `__new_scheduled_tasks`("id", "project_id", "agent_id", "label", "message", "schedule_type", "cron_expression", "scheduled_at", "enabled", "last_run_at", "created_at", "updated_at") SELECT "id", "project_id", "agent_id", "label", "message", "schedule_type", "cron_expression", "scheduled_at", "enabled", "last_run_at", "created_at", "updated_at" FROM `scheduled_tasks`;--> statement-breakpoint
78
+ DROP TABLE `scheduled_tasks`;--> statement-breakpoint
79
+ ALTER TABLE `__new_scheduled_tasks` RENAME TO `scheduled_tasks`;
@@ -0,0 +1,469 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "4b189153-9f03-4bb8-8901-89b62d54efb9",
5
+ "prevId": "ec10d297-b37a-4716-92ac-3ef89d7fb821",
6
+ "tables": {
7
+ "agents": {
8
+ "name": "agents",
9
+ "columns": {
10
+ "id": {
11
+ "name": "id",
12
+ "type": "text",
13
+ "primaryKey": true,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "project_id": {
18
+ "name": "project_id",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false
23
+ },
24
+ "name": {
25
+ "name": "name",
26
+ "type": "text",
27
+ "primaryKey": false,
28
+ "notNull": true,
29
+ "autoincrement": false
30
+ },
31
+ "session_id": {
32
+ "name": "session_id",
33
+ "type": "text",
34
+ "primaryKey": false,
35
+ "notNull": false,
36
+ "autoincrement": false
37
+ },
38
+ "description": {
39
+ "name": "description",
40
+ "type": "text",
41
+ "primaryKey": false,
42
+ "notNull": false,
43
+ "autoincrement": false
44
+ },
45
+ "harness": {
46
+ "name": "harness",
47
+ "type": "text",
48
+ "primaryKey": false,
49
+ "notNull": false,
50
+ "autoincrement": false
51
+ },
52
+ "model": {
53
+ "name": "model",
54
+ "type": "text",
55
+ "primaryKey": false,
56
+ "notNull": false,
57
+ "autoincrement": false
58
+ },
59
+ "system_prompt": {
60
+ "name": "system_prompt",
61
+ "type": "text",
62
+ "primaryKey": false,
63
+ "notNull": false,
64
+ "autoincrement": false
65
+ },
66
+ "created_at": {
67
+ "name": "created_at",
68
+ "type": "text",
69
+ "primaryKey": false,
70
+ "notNull": true,
71
+ "autoincrement": false,
72
+ "default": "(datetime('now'))"
73
+ },
74
+ "updated_at": {
75
+ "name": "updated_at",
76
+ "type": "text",
77
+ "primaryKey": false,
78
+ "notNull": true,
79
+ "autoincrement": false,
80
+ "default": "(datetime('now'))"
81
+ }
82
+ },
83
+ "indexes": {
84
+ "agents_project_name": {
85
+ "name": "agents_project_name",
86
+ "columns": [
87
+ "project_id",
88
+ "name"
89
+ ],
90
+ "isUnique": true
91
+ }
92
+ },
93
+ "foreignKeys": {
94
+ "agents_project_id_projects_id_fk": {
95
+ "name": "agents_project_id_projects_id_fk",
96
+ "tableFrom": "agents",
97
+ "tableTo": "projects",
98
+ "columnsFrom": [
99
+ "project_id"
100
+ ],
101
+ "columnsTo": [
102
+ "id"
103
+ ],
104
+ "onDelete": "cascade",
105
+ "onUpdate": "no action"
106
+ }
107
+ },
108
+ "compositePrimaryKeys": {},
109
+ "uniqueConstraints": {},
110
+ "checkConstraints": {}
111
+ },
112
+ "alert_channels": {
113
+ "name": "alert_channels",
114
+ "columns": {
115
+ "id": {
116
+ "name": "id",
117
+ "type": "text",
118
+ "primaryKey": true,
119
+ "notNull": true,
120
+ "autoincrement": false
121
+ },
122
+ "project_id": {
123
+ "name": "project_id",
124
+ "type": "text",
125
+ "primaryKey": false,
126
+ "notNull": true,
127
+ "autoincrement": false
128
+ },
129
+ "channel_type": {
130
+ "name": "channel_type",
131
+ "type": "text",
132
+ "primaryKey": false,
133
+ "notNull": true,
134
+ "autoincrement": false
135
+ },
136
+ "config": {
137
+ "name": "config",
138
+ "type": "text",
139
+ "primaryKey": false,
140
+ "notNull": true,
141
+ "autoincrement": false
142
+ },
143
+ "enabled": {
144
+ "name": "enabled",
145
+ "type": "integer",
146
+ "primaryKey": false,
147
+ "notNull": true,
148
+ "autoincrement": false,
149
+ "default": true
150
+ },
151
+ "created_at": {
152
+ "name": "created_at",
153
+ "type": "text",
154
+ "primaryKey": false,
155
+ "notNull": true,
156
+ "autoincrement": false,
157
+ "default": "(datetime('now'))"
158
+ },
159
+ "updated_at": {
160
+ "name": "updated_at",
161
+ "type": "text",
162
+ "primaryKey": false,
163
+ "notNull": true,
164
+ "autoincrement": false,
165
+ "default": "(datetime('now'))"
166
+ }
167
+ },
168
+ "indexes": {
169
+ "alert_channels_project_id_unique": {
170
+ "name": "alert_channels_project_id_unique",
171
+ "columns": [
172
+ "project_id"
173
+ ],
174
+ "isUnique": true
175
+ }
176
+ },
177
+ "foreignKeys": {
178
+ "alert_channels_project_id_projects_id_fk": {
179
+ "name": "alert_channels_project_id_projects_id_fk",
180
+ "tableFrom": "alert_channels",
181
+ "tableTo": "projects",
182
+ "columnsFrom": [
183
+ "project_id"
184
+ ],
185
+ "columnsTo": [
186
+ "id"
187
+ ],
188
+ "onDelete": "cascade",
189
+ "onUpdate": "no action"
190
+ }
191
+ },
192
+ "compositePrimaryKeys": {},
193
+ "uniqueConstraints": {},
194
+ "checkConstraints": {}
195
+ },
196
+ "messages": {
197
+ "name": "messages",
198
+ "columns": {
199
+ "id": {
200
+ "name": "id",
201
+ "type": "integer",
202
+ "primaryKey": true,
203
+ "notNull": true,
204
+ "autoincrement": true
205
+ },
206
+ "project_id": {
207
+ "name": "project_id",
208
+ "type": "text",
209
+ "primaryKey": false,
210
+ "notNull": true,
211
+ "autoincrement": false
212
+ },
213
+ "agent_id": {
214
+ "name": "agent_id",
215
+ "type": "text",
216
+ "primaryKey": false,
217
+ "notNull": true,
218
+ "autoincrement": false
219
+ },
220
+ "role": {
221
+ "name": "role",
222
+ "type": "text",
223
+ "primaryKey": false,
224
+ "notNull": true,
225
+ "autoincrement": false
226
+ },
227
+ "content": {
228
+ "name": "content",
229
+ "type": "text",
230
+ "primaryKey": false,
231
+ "notNull": true,
232
+ "autoincrement": false
233
+ },
234
+ "created_at": {
235
+ "name": "created_at",
236
+ "type": "text",
237
+ "primaryKey": false,
238
+ "notNull": true,
239
+ "autoincrement": false,
240
+ "default": "(datetime('now'))"
241
+ }
242
+ },
243
+ "indexes": {
244
+ "idx_messages_agent": {
245
+ "name": "idx_messages_agent",
246
+ "columns": [
247
+ "project_id",
248
+ "agent_id",
249
+ "id"
250
+ ],
251
+ "isUnique": false
252
+ }
253
+ },
254
+ "foreignKeys": {
255
+ "messages_project_id_projects_id_fk": {
256
+ "name": "messages_project_id_projects_id_fk",
257
+ "tableFrom": "messages",
258
+ "tableTo": "projects",
259
+ "columnsFrom": [
260
+ "project_id"
261
+ ],
262
+ "columnsTo": [
263
+ "id"
264
+ ],
265
+ "onDelete": "cascade",
266
+ "onUpdate": "no action"
267
+ },
268
+ "messages_agent_id_agents_id_fk": {
269
+ "name": "messages_agent_id_agents_id_fk",
270
+ "tableFrom": "messages",
271
+ "tableTo": "agents",
272
+ "columnsFrom": [
273
+ "agent_id"
274
+ ],
275
+ "columnsTo": [
276
+ "id"
277
+ ],
278
+ "onDelete": "cascade",
279
+ "onUpdate": "no action"
280
+ }
281
+ },
282
+ "compositePrimaryKeys": {},
283
+ "uniqueConstraints": {},
284
+ "checkConstraints": {}
285
+ },
286
+ "projects": {
287
+ "name": "projects",
288
+ "columns": {
289
+ "id": {
290
+ "name": "id",
291
+ "type": "text",
292
+ "primaryKey": true,
293
+ "notNull": true,
294
+ "autoincrement": false
295
+ },
296
+ "name": {
297
+ "name": "name",
298
+ "type": "text",
299
+ "primaryKey": false,
300
+ "notNull": true,
301
+ "autoincrement": false
302
+ },
303
+ "created_at": {
304
+ "name": "created_at",
305
+ "type": "text",
306
+ "primaryKey": false,
307
+ "notNull": true,
308
+ "autoincrement": false,
309
+ "default": "(datetime('now'))"
310
+ },
311
+ "updated_at": {
312
+ "name": "updated_at",
313
+ "type": "text",
314
+ "primaryKey": false,
315
+ "notNull": true,
316
+ "autoincrement": false,
317
+ "default": "(datetime('now'))"
318
+ }
319
+ },
320
+ "indexes": {
321
+ "projects_name_unique": {
322
+ "name": "projects_name_unique",
323
+ "columns": [
324
+ "name"
325
+ ],
326
+ "isUnique": true
327
+ }
328
+ },
329
+ "foreignKeys": {},
330
+ "compositePrimaryKeys": {},
331
+ "uniqueConstraints": {},
332
+ "checkConstraints": {}
333
+ },
334
+ "scheduled_tasks": {
335
+ "name": "scheduled_tasks",
336
+ "columns": {
337
+ "id": {
338
+ "name": "id",
339
+ "type": "text",
340
+ "primaryKey": true,
341
+ "notNull": true,
342
+ "autoincrement": false
343
+ },
344
+ "project_id": {
345
+ "name": "project_id",
346
+ "type": "text",
347
+ "primaryKey": false,
348
+ "notNull": true,
349
+ "autoincrement": false
350
+ },
351
+ "agent_id": {
352
+ "name": "agent_id",
353
+ "type": "text",
354
+ "primaryKey": false,
355
+ "notNull": true,
356
+ "autoincrement": false
357
+ },
358
+ "label": {
359
+ "name": "label",
360
+ "type": "text",
361
+ "primaryKey": false,
362
+ "notNull": true,
363
+ "autoincrement": false
364
+ },
365
+ "message": {
366
+ "name": "message",
367
+ "type": "text",
368
+ "primaryKey": false,
369
+ "notNull": true,
370
+ "autoincrement": false
371
+ },
372
+ "schedule_type": {
373
+ "name": "schedule_type",
374
+ "type": "text",
375
+ "primaryKey": false,
376
+ "notNull": true,
377
+ "autoincrement": false
378
+ },
379
+ "cron_expression": {
380
+ "name": "cron_expression",
381
+ "type": "text",
382
+ "primaryKey": false,
383
+ "notNull": false,
384
+ "autoincrement": false
385
+ },
386
+ "scheduled_at": {
387
+ "name": "scheduled_at",
388
+ "type": "text",
389
+ "primaryKey": false,
390
+ "notNull": false,
391
+ "autoincrement": false
392
+ },
393
+ "enabled": {
394
+ "name": "enabled",
395
+ "type": "integer",
396
+ "primaryKey": false,
397
+ "notNull": true,
398
+ "autoincrement": false,
399
+ "default": true
400
+ },
401
+ "last_run_at": {
402
+ "name": "last_run_at",
403
+ "type": "text",
404
+ "primaryKey": false,
405
+ "notNull": false,
406
+ "autoincrement": false
407
+ },
408
+ "created_at": {
409
+ "name": "created_at",
410
+ "type": "text",
411
+ "primaryKey": false,
412
+ "notNull": true,
413
+ "autoincrement": false,
414
+ "default": "(datetime('now'))"
415
+ },
416
+ "updated_at": {
417
+ "name": "updated_at",
418
+ "type": "text",
419
+ "primaryKey": false,
420
+ "notNull": true,
421
+ "autoincrement": false,
422
+ "default": "(datetime('now'))"
423
+ }
424
+ },
425
+ "indexes": {},
426
+ "foreignKeys": {
427
+ "scheduled_tasks_project_id_projects_id_fk": {
428
+ "name": "scheduled_tasks_project_id_projects_id_fk",
429
+ "tableFrom": "scheduled_tasks",
430
+ "tableTo": "projects",
431
+ "columnsFrom": [
432
+ "project_id"
433
+ ],
434
+ "columnsTo": [
435
+ "id"
436
+ ],
437
+ "onDelete": "cascade",
438
+ "onUpdate": "no action"
439
+ },
440
+ "scheduled_tasks_agent_id_agents_id_fk": {
441
+ "name": "scheduled_tasks_agent_id_agents_id_fk",
442
+ "tableFrom": "scheduled_tasks",
443
+ "tableTo": "agents",
444
+ "columnsFrom": [
445
+ "agent_id"
446
+ ],
447
+ "columnsTo": [
448
+ "id"
449
+ ],
450
+ "onDelete": "cascade",
451
+ "onUpdate": "no action"
452
+ }
453
+ },
454
+ "compositePrimaryKeys": {},
455
+ "uniqueConstraints": {},
456
+ "checkConstraints": {}
457
+ }
458
+ },
459
+ "views": {},
460
+ "enums": {},
461
+ "_meta": {
462
+ "schemas": {},
463
+ "tables": {},
464
+ "columns": {}
465
+ },
466
+ "internal": {
467
+ "indexes": {}
468
+ }
469
+ }