@agents-shire/cli-win32-x64 1.0.35 → 1.0.37

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,16 @@
1
+ CREATE VIRTUAL TABLE IF NOT EXISTS messages_fts USING fts5(
2
+ text,
3
+ content='',
4
+ contentless_delete=1
5
+ );--> statement-breakpoint
6
+ CREATE TRIGGER IF NOT EXISTS messages_ai AFTER INSERT ON messages
7
+ WHEN NEW.role IN ('user', 'agent', 'inter_agent') AND json_extract(NEW.content, '$.text') IS NOT NULL
8
+ BEGIN
9
+ INSERT INTO messages_fts(rowid, text)
10
+ VALUES(NEW.id, json_extract(NEW.content, '$.text'));
11
+ END;--> statement-breakpoint
12
+ CREATE TRIGGER IF NOT EXISTS messages_ad AFTER DELETE ON messages
13
+ WHEN OLD.role IN ('user', 'agent', 'inter_agent') AND json_extract(OLD.content, '$.text') IS NOT NULL
14
+ BEGIN
15
+ DELETE FROM messages_fts WHERE rowid = OLD.id;
16
+ END;
@@ -0,0 +1,469 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "fts5-msg-search-0006-0000-000000000000",
5
+ "prevId": "2f61f404-ad7a-4224-b6b5-2c19190d6ed3",
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": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))"
73
+ },
74
+ "updated_at": {
75
+ "name": "updated_at",
76
+ "type": "text",
77
+ "primaryKey": false,
78
+ "notNull": true,
79
+ "autoincrement": false,
80
+ "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', '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": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))"
158
+ },
159
+ "updated_at": {
160
+ "name": "updated_at",
161
+ "type": "text",
162
+ "primaryKey": false,
163
+ "notNull": true,
164
+ "autoincrement": false,
165
+ "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', '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": "(strftime('%Y-%m-%dT%H:%M:%fZ', '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": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))"
310
+ },
311
+ "updated_at": {
312
+ "name": "updated_at",
313
+ "type": "text",
314
+ "primaryKey": false,
315
+ "notNull": true,
316
+ "autoincrement": false,
317
+ "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', '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": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))"
415
+ },
416
+ "updated_at": {
417
+ "name": "updated_at",
418
+ "type": "text",
419
+ "primaryKey": false,
420
+ "notNull": true,
421
+ "autoincrement": false,
422
+ "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', '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
+ }
@@ -43,6 +43,13 @@
43
43
  "when": 1775989324106,
44
44
  "tag": "0005_handy_wild_child",
45
45
  "breakpoints": true
46
+ },
47
+ {
48
+ "idx": 6,
49
+ "version": "6",
50
+ "when": 1776172800000,
51
+ "tag": "0006_fts_messages",
52
+ "breakpoints": true
46
53
  }
47
54
  ]
48
55
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agents-shire/cli-win32-x64",
3
- "version": "1.0.35",
3
+ "version": "1.0.37",
4
4
  "description": "Shire CLI binary for Windows x64",
5
5
  "os": [
6
6
  "win32"
package/shire.exe CHANGED
Binary file