opensentinel 2.1.1

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.
Files changed (83) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +283 -0
  3. package/dist/bot-KJ26BG56.js +15 -0
  4. package/dist/bot-KJ26BG56.js.map +1 -0
  5. package/dist/charts-MMXM6BWW.js +241 -0
  6. package/dist/charts-MMXM6BWW.js.map +1 -0
  7. package/dist/chunk-4LVWXUNC.js +1079 -0
  8. package/dist/chunk-4LVWXUNC.js.map +1 -0
  9. package/dist/chunk-4TG2IG5K.js +5249 -0
  10. package/dist/chunk-4TG2IG5K.js.map +1 -0
  11. package/dist/chunk-6DRDKB45.js +251 -0
  12. package/dist/chunk-6DRDKB45.js.map +1 -0
  13. package/dist/chunk-6SNHU3CY.js +123 -0
  14. package/dist/chunk-6SNHU3CY.js.map +1 -0
  15. package/dist/chunk-CI6Q63MM.js +1613 -0
  16. package/dist/chunk-CI6Q63MM.js.map +1 -0
  17. package/dist/chunk-CQ4JURG7.js +57 -0
  18. package/dist/chunk-CQ4JURG7.js.map +1 -0
  19. package/dist/chunk-F6QUZQGI.js +51 -0
  20. package/dist/chunk-F6QUZQGI.js.map +1 -0
  21. package/dist/chunk-GK3E2I7A.js +216 -0
  22. package/dist/chunk-GK3E2I7A.js.map +1 -0
  23. package/dist/chunk-GUBEEYDW.js +211 -0
  24. package/dist/chunk-GUBEEYDW.js.map +1 -0
  25. package/dist/chunk-GVJVEWHI.js +29 -0
  26. package/dist/chunk-GVJVEWHI.js.map +1 -0
  27. package/dist/chunk-HH2HBTQM.js +806 -0
  28. package/dist/chunk-HH2HBTQM.js.map +1 -0
  29. package/dist/chunk-JXUP2X7V.js +129 -0
  30. package/dist/chunk-JXUP2X7V.js.map +1 -0
  31. package/dist/chunk-KHNYJY2Z.js +178 -0
  32. package/dist/chunk-KHNYJY2Z.js.map +1 -0
  33. package/dist/chunk-L3F43VPB.js +652 -0
  34. package/dist/chunk-L3F43VPB.js.map +1 -0
  35. package/dist/chunk-L3PDU3XN.js +803 -0
  36. package/dist/chunk-L3PDU3XN.js.map +1 -0
  37. package/dist/chunk-NSBPE2FW.js +17 -0
  38. package/dist/chunk-NSBPE2FW.js.map +1 -0
  39. package/dist/cli.d.ts +1 -0
  40. package/dist/cli.js +52 -0
  41. package/dist/cli.js.map +1 -0
  42. package/dist/commands/setup.d.ts +9 -0
  43. package/dist/commands/setup.js +374 -0
  44. package/dist/commands/setup.js.map +1 -0
  45. package/dist/commands/start.d.ts +8 -0
  46. package/dist/commands/start.js +27 -0
  47. package/dist/commands/start.js.map +1 -0
  48. package/dist/commands/status.d.ts +8 -0
  49. package/dist/commands/status.js +57 -0
  50. package/dist/commands/status.js.map +1 -0
  51. package/dist/commands/stop.d.ts +8 -0
  52. package/dist/commands/stop.js +37 -0
  53. package/dist/commands/stop.js.map +1 -0
  54. package/dist/commands/utils.d.ts +50 -0
  55. package/dist/commands/utils.js +36 -0
  56. package/dist/commands/utils.js.map +1 -0
  57. package/dist/discord-ZOJFTVTB.js +49 -0
  58. package/dist/discord-ZOJFTVTB.js.map +1 -0
  59. package/dist/imessage-JFRB6EJ7.js +14 -0
  60. package/dist/imessage-JFRB6EJ7.js.map +1 -0
  61. package/dist/lib.d.ts +855 -0
  62. package/dist/lib.js +274 -0
  63. package/dist/lib.js.map +1 -0
  64. package/dist/mcp-LS7Q3Z5W.js +30 -0
  65. package/dist/mcp-LS7Q3Z5W.js.map +1 -0
  66. package/dist/scheduler-EZ7CZMCS.js +42 -0
  67. package/dist/scheduler-EZ7CZMCS.js.map +1 -0
  68. package/dist/signal-T3MCSULM.js +14 -0
  69. package/dist/signal-T3MCSULM.js.map +1 -0
  70. package/dist/slack-N2M4FHAJ.js +54 -0
  71. package/dist/slack-N2M4FHAJ.js.map +1 -0
  72. package/dist/src-K7GASHRH.js +430 -0
  73. package/dist/src-K7GASHRH.js.map +1 -0
  74. package/dist/tools-24GZHYRF.js +16 -0
  75. package/dist/tools-24GZHYRF.js.map +1 -0
  76. package/dist/whatsapp-VCRUPAO5.js +14 -0
  77. package/dist/whatsapp-VCRUPAO5.js.map +1 -0
  78. package/drizzle/0000_chilly_shinobi_shaw.sql +75 -0
  79. package/drizzle/0001_freezing_shape.sql +274 -0
  80. package/drizzle/meta/0000_snapshot.json +529 -0
  81. package/drizzle/meta/0001_snapshot.json +2576 -0
  82. package/drizzle/meta/_journal.json +20 -0
  83. package/package.json +98 -0
@@ -0,0 +1,529 @@
1
+ {
2
+ "id": "ea8f1d9a-a216-483c-ba97-26a84023aff6",
3
+ "prevId": "00000000-0000-0000-0000-000000000000",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.conversations": {
8
+ "name": "conversations",
9
+ "schema": "",
10
+ "columns": {
11
+ "id": {
12
+ "name": "id",
13
+ "type": "uuid",
14
+ "primaryKey": true,
15
+ "notNull": true,
16
+ "default": "gen_random_uuid()"
17
+ },
18
+ "user_id": {
19
+ "name": "user_id",
20
+ "type": "uuid",
21
+ "primaryKey": false,
22
+ "notNull": false
23
+ },
24
+ "title": {
25
+ "name": "title",
26
+ "type": "text",
27
+ "primaryKey": false,
28
+ "notNull": false
29
+ },
30
+ "source": {
31
+ "name": "source",
32
+ "type": "text",
33
+ "primaryKey": false,
34
+ "notNull": true,
35
+ "default": "'telegram'"
36
+ },
37
+ "metadata": {
38
+ "name": "metadata",
39
+ "type": "jsonb",
40
+ "primaryKey": false,
41
+ "notNull": false
42
+ },
43
+ "created_at": {
44
+ "name": "created_at",
45
+ "type": "timestamp",
46
+ "primaryKey": false,
47
+ "notNull": true,
48
+ "default": "now()"
49
+ },
50
+ "updated_at": {
51
+ "name": "updated_at",
52
+ "type": "timestamp",
53
+ "primaryKey": false,
54
+ "notNull": true,
55
+ "default": "now()"
56
+ }
57
+ },
58
+ "indexes": {},
59
+ "foreignKeys": {
60
+ "conversations_user_id_users_id_fk": {
61
+ "name": "conversations_user_id_users_id_fk",
62
+ "tableFrom": "conversations",
63
+ "tableTo": "users",
64
+ "columnsFrom": [
65
+ "user_id"
66
+ ],
67
+ "columnsTo": [
68
+ "id"
69
+ ],
70
+ "onDelete": "no action",
71
+ "onUpdate": "no action"
72
+ }
73
+ },
74
+ "compositePrimaryKeys": {},
75
+ "uniqueConstraints": {},
76
+ "policies": {},
77
+ "checkConstraints": {},
78
+ "isRLSEnabled": false
79
+ },
80
+ "public.memories": {
81
+ "name": "memories",
82
+ "schema": "",
83
+ "columns": {
84
+ "id": {
85
+ "name": "id",
86
+ "type": "uuid",
87
+ "primaryKey": true,
88
+ "notNull": true,
89
+ "default": "gen_random_uuid()"
90
+ },
91
+ "user_id": {
92
+ "name": "user_id",
93
+ "type": "uuid",
94
+ "primaryKey": false,
95
+ "notNull": false
96
+ },
97
+ "type": {
98
+ "name": "type",
99
+ "type": "text",
100
+ "primaryKey": false,
101
+ "notNull": true
102
+ },
103
+ "content": {
104
+ "name": "content",
105
+ "type": "text",
106
+ "primaryKey": false,
107
+ "notNull": true
108
+ },
109
+ "embedding": {
110
+ "name": "embedding",
111
+ "type": "vector(1536)",
112
+ "primaryKey": false,
113
+ "notNull": false
114
+ },
115
+ "importance": {
116
+ "name": "importance",
117
+ "type": "integer",
118
+ "primaryKey": false,
119
+ "notNull": false,
120
+ "default": 5
121
+ },
122
+ "source": {
123
+ "name": "source",
124
+ "type": "text",
125
+ "primaryKey": false,
126
+ "notNull": false
127
+ },
128
+ "metadata": {
129
+ "name": "metadata",
130
+ "type": "jsonb",
131
+ "primaryKey": false,
132
+ "notNull": false
133
+ },
134
+ "last_accessed": {
135
+ "name": "last_accessed",
136
+ "type": "timestamp",
137
+ "primaryKey": false,
138
+ "notNull": false,
139
+ "default": "now()"
140
+ },
141
+ "created_at": {
142
+ "name": "created_at",
143
+ "type": "timestamp",
144
+ "primaryKey": false,
145
+ "notNull": true,
146
+ "default": "now()"
147
+ }
148
+ },
149
+ "indexes": {
150
+ "memories_user_idx": {
151
+ "name": "memories_user_idx",
152
+ "columns": [
153
+ {
154
+ "expression": "user_id",
155
+ "isExpression": false,
156
+ "asc": true,
157
+ "nulls": "last"
158
+ }
159
+ ],
160
+ "isUnique": false,
161
+ "concurrently": false,
162
+ "method": "btree",
163
+ "with": {}
164
+ }
165
+ },
166
+ "foreignKeys": {
167
+ "memories_user_id_users_id_fk": {
168
+ "name": "memories_user_id_users_id_fk",
169
+ "tableFrom": "memories",
170
+ "tableTo": "users",
171
+ "columnsFrom": [
172
+ "user_id"
173
+ ],
174
+ "columnsTo": [
175
+ "id"
176
+ ],
177
+ "onDelete": "no action",
178
+ "onUpdate": "no action"
179
+ }
180
+ },
181
+ "compositePrimaryKeys": {},
182
+ "uniqueConstraints": {},
183
+ "policies": {},
184
+ "checkConstraints": {},
185
+ "isRLSEnabled": false
186
+ },
187
+ "public.messages": {
188
+ "name": "messages",
189
+ "schema": "",
190
+ "columns": {
191
+ "id": {
192
+ "name": "id",
193
+ "type": "uuid",
194
+ "primaryKey": true,
195
+ "notNull": true,
196
+ "default": "gen_random_uuid()"
197
+ },
198
+ "conversation_id": {
199
+ "name": "conversation_id",
200
+ "type": "uuid",
201
+ "primaryKey": false,
202
+ "notNull": true
203
+ },
204
+ "role": {
205
+ "name": "role",
206
+ "type": "text",
207
+ "primaryKey": false,
208
+ "notNull": true
209
+ },
210
+ "content": {
211
+ "name": "content",
212
+ "type": "text",
213
+ "primaryKey": false,
214
+ "notNull": true
215
+ },
216
+ "token_count": {
217
+ "name": "token_count",
218
+ "type": "integer",
219
+ "primaryKey": false,
220
+ "notNull": false
221
+ },
222
+ "metadata": {
223
+ "name": "metadata",
224
+ "type": "jsonb",
225
+ "primaryKey": false,
226
+ "notNull": false
227
+ },
228
+ "created_at": {
229
+ "name": "created_at",
230
+ "type": "timestamp",
231
+ "primaryKey": false,
232
+ "notNull": true,
233
+ "default": "now()"
234
+ }
235
+ },
236
+ "indexes": {
237
+ "messages_conversation_idx": {
238
+ "name": "messages_conversation_idx",
239
+ "columns": [
240
+ {
241
+ "expression": "conversation_id",
242
+ "isExpression": false,
243
+ "asc": true,
244
+ "nulls": "last"
245
+ }
246
+ ],
247
+ "isUnique": false,
248
+ "concurrently": false,
249
+ "method": "btree",
250
+ "with": {}
251
+ }
252
+ },
253
+ "foreignKeys": {
254
+ "messages_conversation_id_conversations_id_fk": {
255
+ "name": "messages_conversation_id_conversations_id_fk",
256
+ "tableFrom": "messages",
257
+ "tableTo": "conversations",
258
+ "columnsFrom": [
259
+ "conversation_id"
260
+ ],
261
+ "columnsTo": [
262
+ "id"
263
+ ],
264
+ "onDelete": "no action",
265
+ "onUpdate": "no action"
266
+ }
267
+ },
268
+ "compositePrimaryKeys": {},
269
+ "uniqueConstraints": {},
270
+ "policies": {},
271
+ "checkConstraints": {},
272
+ "isRLSEnabled": false
273
+ },
274
+ "public.scheduled_tasks": {
275
+ "name": "scheduled_tasks",
276
+ "schema": "",
277
+ "columns": {
278
+ "id": {
279
+ "name": "id",
280
+ "type": "uuid",
281
+ "primaryKey": true,
282
+ "notNull": true,
283
+ "default": "gen_random_uuid()"
284
+ },
285
+ "user_id": {
286
+ "name": "user_id",
287
+ "type": "uuid",
288
+ "primaryKey": false,
289
+ "notNull": false
290
+ },
291
+ "name": {
292
+ "name": "name",
293
+ "type": "text",
294
+ "primaryKey": false,
295
+ "notNull": true
296
+ },
297
+ "description": {
298
+ "name": "description",
299
+ "type": "text",
300
+ "primaryKey": false,
301
+ "notNull": false
302
+ },
303
+ "cron_expression": {
304
+ "name": "cron_expression",
305
+ "type": "text",
306
+ "primaryKey": false,
307
+ "notNull": false
308
+ },
309
+ "next_run_at": {
310
+ "name": "next_run_at",
311
+ "type": "timestamp",
312
+ "primaryKey": false,
313
+ "notNull": false
314
+ },
315
+ "last_run_at": {
316
+ "name": "last_run_at",
317
+ "type": "timestamp",
318
+ "primaryKey": false,
319
+ "notNull": false
320
+ },
321
+ "enabled": {
322
+ "name": "enabled",
323
+ "type": "boolean",
324
+ "primaryKey": false,
325
+ "notNull": false,
326
+ "default": true
327
+ },
328
+ "action": {
329
+ "name": "action",
330
+ "type": "jsonb",
331
+ "primaryKey": false,
332
+ "notNull": false
333
+ },
334
+ "created_at": {
335
+ "name": "created_at",
336
+ "type": "timestamp",
337
+ "primaryKey": false,
338
+ "notNull": true,
339
+ "default": "now()"
340
+ }
341
+ },
342
+ "indexes": {},
343
+ "foreignKeys": {
344
+ "scheduled_tasks_user_id_users_id_fk": {
345
+ "name": "scheduled_tasks_user_id_users_id_fk",
346
+ "tableFrom": "scheduled_tasks",
347
+ "tableTo": "users",
348
+ "columnsFrom": [
349
+ "user_id"
350
+ ],
351
+ "columnsTo": [
352
+ "id"
353
+ ],
354
+ "onDelete": "no action",
355
+ "onUpdate": "no action"
356
+ }
357
+ },
358
+ "compositePrimaryKeys": {},
359
+ "uniqueConstraints": {},
360
+ "policies": {},
361
+ "checkConstraints": {},
362
+ "isRLSEnabled": false
363
+ },
364
+ "public.tool_logs": {
365
+ "name": "tool_logs",
366
+ "schema": "",
367
+ "columns": {
368
+ "id": {
369
+ "name": "id",
370
+ "type": "uuid",
371
+ "primaryKey": true,
372
+ "notNull": true,
373
+ "default": "gen_random_uuid()"
374
+ },
375
+ "conversation_id": {
376
+ "name": "conversation_id",
377
+ "type": "uuid",
378
+ "primaryKey": false,
379
+ "notNull": false
380
+ },
381
+ "tool_name": {
382
+ "name": "tool_name",
383
+ "type": "text",
384
+ "primaryKey": false,
385
+ "notNull": true
386
+ },
387
+ "input": {
388
+ "name": "input",
389
+ "type": "jsonb",
390
+ "primaryKey": false,
391
+ "notNull": false
392
+ },
393
+ "output": {
394
+ "name": "output",
395
+ "type": "jsonb",
396
+ "primaryKey": false,
397
+ "notNull": false
398
+ },
399
+ "success": {
400
+ "name": "success",
401
+ "type": "boolean",
402
+ "primaryKey": false,
403
+ "notNull": true
404
+ },
405
+ "duration_ms": {
406
+ "name": "duration_ms",
407
+ "type": "integer",
408
+ "primaryKey": false,
409
+ "notNull": false
410
+ },
411
+ "created_at": {
412
+ "name": "created_at",
413
+ "type": "timestamp",
414
+ "primaryKey": false,
415
+ "notNull": true,
416
+ "default": "now()"
417
+ }
418
+ },
419
+ "indexes": {
420
+ "tool_logs_conversation_idx": {
421
+ "name": "tool_logs_conversation_idx",
422
+ "columns": [
423
+ {
424
+ "expression": "conversation_id",
425
+ "isExpression": false,
426
+ "asc": true,
427
+ "nulls": "last"
428
+ }
429
+ ],
430
+ "isUnique": false,
431
+ "concurrently": false,
432
+ "method": "btree",
433
+ "with": {}
434
+ }
435
+ },
436
+ "foreignKeys": {
437
+ "tool_logs_conversation_id_conversations_id_fk": {
438
+ "name": "tool_logs_conversation_id_conversations_id_fk",
439
+ "tableFrom": "tool_logs",
440
+ "tableTo": "conversations",
441
+ "columnsFrom": [
442
+ "conversation_id"
443
+ ],
444
+ "columnsTo": [
445
+ "id"
446
+ ],
447
+ "onDelete": "no action",
448
+ "onUpdate": "no action"
449
+ }
450
+ },
451
+ "compositePrimaryKeys": {},
452
+ "uniqueConstraints": {},
453
+ "policies": {},
454
+ "checkConstraints": {},
455
+ "isRLSEnabled": false
456
+ },
457
+ "public.users": {
458
+ "name": "users",
459
+ "schema": "",
460
+ "columns": {
461
+ "id": {
462
+ "name": "id",
463
+ "type": "uuid",
464
+ "primaryKey": true,
465
+ "notNull": true,
466
+ "default": "gen_random_uuid()"
467
+ },
468
+ "telegram_id": {
469
+ "name": "telegram_id",
470
+ "type": "text",
471
+ "primaryKey": false,
472
+ "notNull": false
473
+ },
474
+ "name": {
475
+ "name": "name",
476
+ "type": "text",
477
+ "primaryKey": false,
478
+ "notNull": false
479
+ },
480
+ "preferences": {
481
+ "name": "preferences",
482
+ "type": "jsonb",
483
+ "primaryKey": false,
484
+ "notNull": false
485
+ },
486
+ "created_at": {
487
+ "name": "created_at",
488
+ "type": "timestamp",
489
+ "primaryKey": false,
490
+ "notNull": true,
491
+ "default": "now()"
492
+ },
493
+ "updated_at": {
494
+ "name": "updated_at",
495
+ "type": "timestamp",
496
+ "primaryKey": false,
497
+ "notNull": true,
498
+ "default": "now()"
499
+ }
500
+ },
501
+ "indexes": {},
502
+ "foreignKeys": {},
503
+ "compositePrimaryKeys": {},
504
+ "uniqueConstraints": {
505
+ "users_telegram_id_unique": {
506
+ "name": "users_telegram_id_unique",
507
+ "nullsNotDistinct": false,
508
+ "columns": [
509
+ "telegram_id"
510
+ ]
511
+ }
512
+ },
513
+ "policies": {},
514
+ "checkConstraints": {},
515
+ "isRLSEnabled": false
516
+ }
517
+ },
518
+ "enums": {},
519
+ "schemas": {},
520
+ "sequences": {},
521
+ "roles": {},
522
+ "policies": {},
523
+ "views": {},
524
+ "_meta": {
525
+ "columns": {},
526
+ "schemas": {},
527
+ "tables": {}
528
+ }
529
+ }