@zonease/aiworker-cli 0.2.0 → 0.2.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.
@@ -0,0 +1,814 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "04e965fd-7c52-418b-bbc2-112abee2aa22",
5
+ "prevId": "47185b92-db61-4024-92c8-2ca8997421bc",
6
+ "tables": {
7
+ "agent_tasks": {
8
+ "name": "agent_tasks",
9
+ "columns": {
10
+ "id": {
11
+ "name": "id",
12
+ "type": "text",
13
+ "primaryKey": true,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "prompt": {
18
+ "name": "prompt",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false
23
+ },
24
+ "status": {
25
+ "name": "status",
26
+ "type": "text",
27
+ "primaryKey": false,
28
+ "notNull": true,
29
+ "autoincrement": false
30
+ },
31
+ "conversation_id": {
32
+ "name": "conversation_id",
33
+ "type": "text",
34
+ "primaryKey": false,
35
+ "notNull": false,
36
+ "autoincrement": false
37
+ },
38
+ "created_at": {
39
+ "name": "created_at",
40
+ "type": "text",
41
+ "primaryKey": false,
42
+ "notNull": true,
43
+ "autoincrement": false
44
+ },
45
+ "finished_at": {
46
+ "name": "finished_at",
47
+ "type": "text",
48
+ "primaryKey": false,
49
+ "notNull": false,
50
+ "autoincrement": false
51
+ },
52
+ "result": {
53
+ "name": "result",
54
+ "type": "text",
55
+ "primaryKey": false,
56
+ "notNull": false,
57
+ "autoincrement": false
58
+ },
59
+ "error": {
60
+ "name": "error",
61
+ "type": "text",
62
+ "primaryKey": false,
63
+ "notNull": false,
64
+ "autoincrement": false
65
+ }
66
+ },
67
+ "indexes": {},
68
+ "foreignKeys": {},
69
+ "compositePrimaryKeys": {},
70
+ "uniqueConstraints": {},
71
+ "checkConstraints": {}
72
+ },
73
+ "conversations": {
74
+ "name": "conversations",
75
+ "columns": {
76
+ "id": {
77
+ "name": "id",
78
+ "type": "text",
79
+ "primaryKey": true,
80
+ "notNull": true,
81
+ "autoincrement": false
82
+ },
83
+ "task_id": {
84
+ "name": "task_id",
85
+ "type": "text",
86
+ "primaryKey": false,
87
+ "notNull": false,
88
+ "autoincrement": false
89
+ },
90
+ "channel": {
91
+ "name": "channel",
92
+ "type": "text",
93
+ "primaryKey": false,
94
+ "notNull": true,
95
+ "autoincrement": false
96
+ },
97
+ "chat_id": {
98
+ "name": "chat_id",
99
+ "type": "text",
100
+ "primaryKey": false,
101
+ "notNull": true,
102
+ "autoincrement": false
103
+ },
104
+ "thread_id": {
105
+ "name": "thread_id",
106
+ "type": "text",
107
+ "primaryKey": false,
108
+ "notNull": false,
109
+ "autoincrement": false
110
+ },
111
+ "status": {
112
+ "name": "status",
113
+ "type": "text",
114
+ "primaryKey": false,
115
+ "notNull": true,
116
+ "autoincrement": false,
117
+ "default": "'open'"
118
+ },
119
+ "summary": {
120
+ "name": "summary",
121
+ "type": "text",
122
+ "primaryKey": false,
123
+ "notNull": false,
124
+ "autoincrement": false
125
+ },
126
+ "started_at": {
127
+ "name": "started_at",
128
+ "type": "text",
129
+ "primaryKey": false,
130
+ "notNull": true,
131
+ "autoincrement": false
132
+ },
133
+ "last_active_at": {
134
+ "name": "last_active_at",
135
+ "type": "text",
136
+ "primaryKey": false,
137
+ "notNull": true,
138
+ "autoincrement": false
139
+ },
140
+ "closed_at": {
141
+ "name": "closed_at",
142
+ "type": "text",
143
+ "primaryKey": false,
144
+ "notNull": false,
145
+ "autoincrement": false
146
+ }
147
+ },
148
+ "indexes": {},
149
+ "foreignKeys": {
150
+ "conversations_task_id_agent_tasks_id_fk": {
151
+ "name": "conversations_task_id_agent_tasks_id_fk",
152
+ "tableFrom": "conversations",
153
+ "tableTo": "agent_tasks",
154
+ "columnsFrom": [
155
+ "task_id"
156
+ ],
157
+ "columnsTo": [
158
+ "id"
159
+ ],
160
+ "onDelete": "no action",
161
+ "onUpdate": "no action"
162
+ }
163
+ },
164
+ "compositePrimaryKeys": {},
165
+ "uniqueConstraints": {},
166
+ "checkConstraints": {}
167
+ },
168
+ "cron_jobs": {
169
+ "name": "cron_jobs",
170
+ "columns": {
171
+ "id": {
172
+ "name": "id",
173
+ "type": "text",
174
+ "primaryKey": true,
175
+ "notNull": true,
176
+ "autoincrement": false
177
+ },
178
+ "expression": {
179
+ "name": "expression",
180
+ "type": "text",
181
+ "primaryKey": false,
182
+ "notNull": true,
183
+ "autoincrement": false
184
+ },
185
+ "prompt": {
186
+ "name": "prompt",
187
+ "type": "text",
188
+ "primaryKey": false,
189
+ "notNull": true,
190
+ "autoincrement": false
191
+ },
192
+ "channel": {
193
+ "name": "channel",
194
+ "type": "text",
195
+ "primaryKey": false,
196
+ "notNull": true,
197
+ "autoincrement": false
198
+ },
199
+ "chat_id": {
200
+ "name": "chat_id",
201
+ "type": "text",
202
+ "primaryKey": false,
203
+ "notNull": true,
204
+ "autoincrement": false
205
+ },
206
+ "account_id": {
207
+ "name": "account_id",
208
+ "type": "text",
209
+ "primaryKey": false,
210
+ "notNull": true,
211
+ "autoincrement": false
212
+ },
213
+ "enabled": {
214
+ "name": "enabled",
215
+ "type": "integer",
216
+ "primaryKey": false,
217
+ "notNull": true,
218
+ "autoincrement": false,
219
+ "default": true
220
+ },
221
+ "last_run_at": {
222
+ "name": "last_run_at",
223
+ "type": "text",
224
+ "primaryKey": false,
225
+ "notNull": false,
226
+ "autoincrement": false
227
+ },
228
+ "next_run_at": {
229
+ "name": "next_run_at",
230
+ "type": "text",
231
+ "primaryKey": false,
232
+ "notNull": false,
233
+ "autoincrement": false
234
+ },
235
+ "created_at": {
236
+ "name": "created_at",
237
+ "type": "text",
238
+ "primaryKey": false,
239
+ "notNull": true,
240
+ "autoincrement": false
241
+ },
242
+ "updated_at": {
243
+ "name": "updated_at",
244
+ "type": "text",
245
+ "primaryKey": false,
246
+ "notNull": true,
247
+ "autoincrement": false
248
+ }
249
+ },
250
+ "indexes": {},
251
+ "foreignKeys": {},
252
+ "compositePrimaryKeys": {},
253
+ "uniqueConstraints": {},
254
+ "checkConstraints": {}
255
+ },
256
+ "evolution_observations": {
257
+ "name": "evolution_observations",
258
+ "columns": {
259
+ "id": {
260
+ "name": "id",
261
+ "type": "integer",
262
+ "primaryKey": true,
263
+ "notNull": true,
264
+ "autoincrement": true
265
+ },
266
+ "conversation_id": {
267
+ "name": "conversation_id",
268
+ "type": "text",
269
+ "primaryKey": false,
270
+ "notNull": false,
271
+ "autoincrement": false
272
+ },
273
+ "kind": {
274
+ "name": "kind",
275
+ "type": "text",
276
+ "primaryKey": false,
277
+ "notNull": true,
278
+ "autoincrement": false
279
+ },
280
+ "payload": {
281
+ "name": "payload",
282
+ "type": "text",
283
+ "primaryKey": false,
284
+ "notNull": true,
285
+ "autoincrement": false
286
+ },
287
+ "noticed_at": {
288
+ "name": "noticed_at",
289
+ "type": "text",
290
+ "primaryKey": false,
291
+ "notNull": true,
292
+ "autoincrement": false
293
+ }
294
+ },
295
+ "indexes": {},
296
+ "foreignKeys": {},
297
+ "compositePrimaryKeys": {},
298
+ "uniqueConstraints": {},
299
+ "checkConstraints": {}
300
+ },
301
+ "execution_logs": {
302
+ "name": "execution_logs",
303
+ "columns": {
304
+ "id": {
305
+ "name": "id",
306
+ "type": "integer",
307
+ "primaryKey": true,
308
+ "notNull": true,
309
+ "autoincrement": true
310
+ },
311
+ "conversation_id": {
312
+ "name": "conversation_id",
313
+ "type": "text",
314
+ "primaryKey": false,
315
+ "notNull": false,
316
+ "autoincrement": false
317
+ },
318
+ "tool_name": {
319
+ "name": "tool_name",
320
+ "type": "text",
321
+ "primaryKey": false,
322
+ "notNull": true,
323
+ "autoincrement": false
324
+ },
325
+ "params": {
326
+ "name": "params",
327
+ "type": "text",
328
+ "primaryKey": false,
329
+ "notNull": false,
330
+ "autoincrement": false
331
+ },
332
+ "result": {
333
+ "name": "result",
334
+ "type": "text",
335
+ "primaryKey": false,
336
+ "notNull": false,
337
+ "autoincrement": false
338
+ },
339
+ "duration": {
340
+ "name": "duration",
341
+ "type": "integer",
342
+ "primaryKey": false,
343
+ "notNull": false,
344
+ "autoincrement": false
345
+ },
346
+ "created_at": {
347
+ "name": "created_at",
348
+ "type": "text",
349
+ "primaryKey": false,
350
+ "notNull": true,
351
+ "autoincrement": false
352
+ }
353
+ },
354
+ "indexes": {},
355
+ "foreignKeys": {},
356
+ "compositePrimaryKeys": {},
357
+ "uniqueConstraints": {},
358
+ "checkConstraints": {}
359
+ },
360
+ "messages": {
361
+ "name": "messages",
362
+ "columns": {
363
+ "id": {
364
+ "name": "id",
365
+ "type": "integer",
366
+ "primaryKey": true,
367
+ "notNull": true,
368
+ "autoincrement": true
369
+ },
370
+ "conversation_id": {
371
+ "name": "conversation_id",
372
+ "type": "text",
373
+ "primaryKey": false,
374
+ "notNull": true,
375
+ "autoincrement": false
376
+ },
377
+ "role": {
378
+ "name": "role",
379
+ "type": "text",
380
+ "primaryKey": false,
381
+ "notNull": true,
382
+ "autoincrement": false
383
+ },
384
+ "content": {
385
+ "name": "content",
386
+ "type": "text",
387
+ "primaryKey": false,
388
+ "notNull": true,
389
+ "autoincrement": false
390
+ },
391
+ "tool_calls": {
392
+ "name": "tool_calls",
393
+ "type": "text",
394
+ "primaryKey": false,
395
+ "notNull": false,
396
+ "autoincrement": false
397
+ },
398
+ "tool_call_id": {
399
+ "name": "tool_call_id",
400
+ "type": "text",
401
+ "primaryKey": false,
402
+ "notNull": false,
403
+ "autoincrement": false
404
+ },
405
+ "tokens_in": {
406
+ "name": "tokens_in",
407
+ "type": "integer",
408
+ "primaryKey": false,
409
+ "notNull": false,
410
+ "autoincrement": false
411
+ },
412
+ "tokens_out": {
413
+ "name": "tokens_out",
414
+ "type": "integer",
415
+ "primaryKey": false,
416
+ "notNull": false,
417
+ "autoincrement": false
418
+ },
419
+ "rich_metadata": {
420
+ "name": "rich_metadata",
421
+ "type": "text",
422
+ "primaryKey": false,
423
+ "notNull": false,
424
+ "autoincrement": false
425
+ },
426
+ "created_at": {
427
+ "name": "created_at",
428
+ "type": "text",
429
+ "primaryKey": false,
430
+ "notNull": true,
431
+ "autoincrement": false
432
+ }
433
+ },
434
+ "indexes": {},
435
+ "foreignKeys": {
436
+ "messages_conversation_id_conversations_id_fk": {
437
+ "name": "messages_conversation_id_conversations_id_fk",
438
+ "tableFrom": "messages",
439
+ "tableTo": "conversations",
440
+ "columnsFrom": [
441
+ "conversation_id"
442
+ ],
443
+ "columnsTo": [
444
+ "id"
445
+ ],
446
+ "onDelete": "cascade",
447
+ "onUpdate": "no action"
448
+ }
449
+ },
450
+ "compositePrimaryKeys": {},
451
+ "uniqueConstraints": {},
452
+ "checkConstraints": {}
453
+ },
454
+ "skill_bindings": {
455
+ "name": "skill_bindings",
456
+ "columns": {
457
+ "id": {
458
+ "name": "id",
459
+ "type": "integer",
460
+ "primaryKey": true,
461
+ "notNull": true,
462
+ "autoincrement": true
463
+ },
464
+ "source": {
465
+ "name": "source",
466
+ "type": "text",
467
+ "primaryKey": false,
468
+ "notNull": true,
469
+ "autoincrement": false
470
+ },
471
+ "brain_name": {
472
+ "name": "brain_name",
473
+ "type": "text",
474
+ "primaryKey": false,
475
+ "notNull": false,
476
+ "autoincrement": false
477
+ },
478
+ "skill_name": {
479
+ "name": "skill_name",
480
+ "type": "text",
481
+ "primaryKey": false,
482
+ "notNull": true,
483
+ "autoincrement": false
484
+ },
485
+ "enabled": {
486
+ "name": "enabled",
487
+ "type": "integer",
488
+ "primaryKey": false,
489
+ "notNull": true,
490
+ "autoincrement": false,
491
+ "default": true
492
+ },
493
+ "priority": {
494
+ "name": "priority",
495
+ "type": "integer",
496
+ "primaryKey": false,
497
+ "notNull": true,
498
+ "autoincrement": false,
499
+ "default": 0
500
+ },
501
+ "config": {
502
+ "name": "config",
503
+ "type": "text",
504
+ "primaryKey": false,
505
+ "notNull": false,
506
+ "autoincrement": false
507
+ },
508
+ "created_at": {
509
+ "name": "created_at",
510
+ "type": "text",
511
+ "primaryKey": false,
512
+ "notNull": true,
513
+ "autoincrement": false
514
+ },
515
+ "updated_at": {
516
+ "name": "updated_at",
517
+ "type": "text",
518
+ "primaryKey": false,
519
+ "notNull": true,
520
+ "autoincrement": false
521
+ }
522
+ },
523
+ "indexes": {
524
+ "skill_bindings_source_brain_name_idx": {
525
+ "name": "skill_bindings_source_brain_name_idx",
526
+ "columns": [
527
+ "source",
528
+ "brain_name",
529
+ "skill_name"
530
+ ],
531
+ "isUnique": true
532
+ }
533
+ },
534
+ "foreignKeys": {},
535
+ "compositePrimaryKeys": {},
536
+ "uniqueConstraints": {},
537
+ "checkConstraints": {}
538
+ },
539
+ "skill_drafts": {
540
+ "name": "skill_drafts",
541
+ "columns": {
542
+ "id": {
543
+ "name": "id",
544
+ "type": "integer",
545
+ "primaryKey": true,
546
+ "notNull": true,
547
+ "autoincrement": true
548
+ },
549
+ "proposed_name": {
550
+ "name": "proposed_name",
551
+ "type": "text",
552
+ "primaryKey": false,
553
+ "notNull": true,
554
+ "autoincrement": false
555
+ },
556
+ "source": {
557
+ "name": "source",
558
+ "type": "text",
559
+ "primaryKey": false,
560
+ "notNull": true,
561
+ "autoincrement": false
562
+ },
563
+ "body_markdown": {
564
+ "name": "body_markdown",
565
+ "type": "text",
566
+ "primaryKey": false,
567
+ "notNull": true,
568
+ "autoincrement": false
569
+ },
570
+ "rationale": {
571
+ "name": "rationale",
572
+ "type": "text",
573
+ "primaryKey": false,
574
+ "notNull": true,
575
+ "autoincrement": false,
576
+ "default": "''"
577
+ },
578
+ "status": {
579
+ "name": "status",
580
+ "type": "text",
581
+ "primaryKey": false,
582
+ "notNull": true,
583
+ "autoincrement": false,
584
+ "default": "'pending'"
585
+ },
586
+ "created_at": {
587
+ "name": "created_at",
588
+ "type": "text",
589
+ "primaryKey": false,
590
+ "notNull": true,
591
+ "autoincrement": false
592
+ },
593
+ "decided_at": {
594
+ "name": "decided_at",
595
+ "type": "text",
596
+ "primaryKey": false,
597
+ "notNull": false,
598
+ "autoincrement": false
599
+ },
600
+ "decided_by": {
601
+ "name": "decided_by",
602
+ "type": "text",
603
+ "primaryKey": false,
604
+ "notNull": false,
605
+ "autoincrement": false
606
+ }
607
+ },
608
+ "indexes": {},
609
+ "foreignKeys": {},
610
+ "compositePrimaryKeys": {},
611
+ "uniqueConstraints": {},
612
+ "checkConstraints": {}
613
+ },
614
+ "worker_config": {
615
+ "name": "worker_config",
616
+ "columns": {
617
+ "pk": {
618
+ "name": "pk",
619
+ "type": "text",
620
+ "primaryKey": true,
621
+ "notNull": true,
622
+ "autoincrement": false,
623
+ "default": "'default'"
624
+ },
625
+ "config_json": {
626
+ "name": "config_json",
627
+ "type": "text",
628
+ "primaryKey": false,
629
+ "notNull": true,
630
+ "autoincrement": false
631
+ },
632
+ "version": {
633
+ "name": "version",
634
+ "type": "integer",
635
+ "primaryKey": false,
636
+ "notNull": true,
637
+ "autoincrement": false,
638
+ "default": 1
639
+ },
640
+ "updated_at": {
641
+ "name": "updated_at",
642
+ "type": "text",
643
+ "primaryKey": false,
644
+ "notNull": true,
645
+ "autoincrement": false
646
+ },
647
+ "updated_by": {
648
+ "name": "updated_by",
649
+ "type": "text",
650
+ "primaryKey": false,
651
+ "notNull": false,
652
+ "autoincrement": false
653
+ }
654
+ },
655
+ "indexes": {},
656
+ "foreignKeys": {},
657
+ "compositePrimaryKeys": {},
658
+ "uniqueConstraints": {},
659
+ "checkConstraints": {}
660
+ },
661
+ "worker_identity": {
662
+ "name": "worker_identity",
663
+ "columns": {
664
+ "pk": {
665
+ "name": "pk",
666
+ "type": "text",
667
+ "primaryKey": true,
668
+ "notNull": true,
669
+ "autoincrement": false,
670
+ "default": "'default'"
671
+ },
672
+ "worker_id": {
673
+ "name": "worker_id",
674
+ "type": "text",
675
+ "primaryKey": false,
676
+ "notNull": true,
677
+ "autoincrement": false
678
+ },
679
+ "api_token_enc": {
680
+ "name": "api_token_enc",
681
+ "type": "text",
682
+ "primaryKey": false,
683
+ "notNull": true,
684
+ "autoincrement": false
685
+ },
686
+ "nonce": {
687
+ "name": "nonce",
688
+ "type": "text",
689
+ "primaryKey": false,
690
+ "notNull": true,
691
+ "autoincrement": false
692
+ },
693
+ "auth_tag": {
694
+ "name": "auth_tag",
695
+ "type": "text",
696
+ "primaryKey": false,
697
+ "notNull": true,
698
+ "autoincrement": false
699
+ },
700
+ "bootstrap_shown_at": {
701
+ "name": "bootstrap_shown_at",
702
+ "type": "text",
703
+ "primaryKey": false,
704
+ "notNull": true,
705
+ "autoincrement": false
706
+ },
707
+ "created_at": {
708
+ "name": "created_at",
709
+ "type": "text",
710
+ "primaryKey": false,
711
+ "notNull": true,
712
+ "autoincrement": false
713
+ },
714
+ "rotated_at": {
715
+ "name": "rotated_at",
716
+ "type": "text",
717
+ "primaryKey": false,
718
+ "notNull": false,
719
+ "autoincrement": false
720
+ }
721
+ },
722
+ "indexes": {
723
+ "worker_identity_worker_id_unique": {
724
+ "name": "worker_identity_worker_id_unique",
725
+ "columns": [
726
+ "worker_id"
727
+ ],
728
+ "isUnique": true
729
+ }
730
+ },
731
+ "foreignKeys": {},
732
+ "compositePrimaryKeys": {},
733
+ "uniqueConstraints": {},
734
+ "checkConstraints": {}
735
+ },
736
+ "worker_secrets": {
737
+ "name": "worker_secrets",
738
+ "columns": {
739
+ "id": {
740
+ "name": "id",
741
+ "type": "integer",
742
+ "primaryKey": true,
743
+ "notNull": true,
744
+ "autoincrement": true
745
+ },
746
+ "key": {
747
+ "name": "key",
748
+ "type": "text",
749
+ "primaryKey": false,
750
+ "notNull": true,
751
+ "autoincrement": false
752
+ },
753
+ "value_enc": {
754
+ "name": "value_enc",
755
+ "type": "text",
756
+ "primaryKey": false,
757
+ "notNull": true,
758
+ "autoincrement": false
759
+ },
760
+ "nonce": {
761
+ "name": "nonce",
762
+ "type": "text",
763
+ "primaryKey": false,
764
+ "notNull": true,
765
+ "autoincrement": false
766
+ },
767
+ "auth_tag": {
768
+ "name": "auth_tag",
769
+ "type": "text",
770
+ "primaryKey": false,
771
+ "notNull": true,
772
+ "autoincrement": false
773
+ },
774
+ "created_at": {
775
+ "name": "created_at",
776
+ "type": "text",
777
+ "primaryKey": false,
778
+ "notNull": true,
779
+ "autoincrement": false
780
+ },
781
+ "updated_at": {
782
+ "name": "updated_at",
783
+ "type": "text",
784
+ "primaryKey": false,
785
+ "notNull": true,
786
+ "autoincrement": false
787
+ }
788
+ },
789
+ "indexes": {
790
+ "worker_secrets_key_unique": {
791
+ "name": "worker_secrets_key_unique",
792
+ "columns": [
793
+ "key"
794
+ ],
795
+ "isUnique": true
796
+ }
797
+ },
798
+ "foreignKeys": {},
799
+ "compositePrimaryKeys": {},
800
+ "uniqueConstraints": {},
801
+ "checkConstraints": {}
802
+ }
803
+ },
804
+ "views": {},
805
+ "enums": {},
806
+ "_meta": {
807
+ "schemas": {},
808
+ "tables": {},
809
+ "columns": {}
810
+ },
811
+ "internal": {
812
+ "indexes": {}
813
+ }
814
+ }