@zonease/aiworker-cli 0.2.0 → 0.3.0

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,726 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "47185b92-db61-4024-92c8-2ca8997421bc",
5
+ "prevId": "fa5efae7-f922-4a85-af18-3b705bb19e2f",
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
+ "evolution_observations": {
169
+ "name": "evolution_observations",
170
+ "columns": {
171
+ "id": {
172
+ "name": "id",
173
+ "type": "integer",
174
+ "primaryKey": true,
175
+ "notNull": true,
176
+ "autoincrement": true
177
+ },
178
+ "conversation_id": {
179
+ "name": "conversation_id",
180
+ "type": "text",
181
+ "primaryKey": false,
182
+ "notNull": false,
183
+ "autoincrement": false
184
+ },
185
+ "kind": {
186
+ "name": "kind",
187
+ "type": "text",
188
+ "primaryKey": false,
189
+ "notNull": true,
190
+ "autoincrement": false
191
+ },
192
+ "payload": {
193
+ "name": "payload",
194
+ "type": "text",
195
+ "primaryKey": false,
196
+ "notNull": true,
197
+ "autoincrement": false
198
+ },
199
+ "noticed_at": {
200
+ "name": "noticed_at",
201
+ "type": "text",
202
+ "primaryKey": false,
203
+ "notNull": true,
204
+ "autoincrement": false
205
+ }
206
+ },
207
+ "indexes": {},
208
+ "foreignKeys": {},
209
+ "compositePrimaryKeys": {},
210
+ "uniqueConstraints": {},
211
+ "checkConstraints": {}
212
+ },
213
+ "execution_logs": {
214
+ "name": "execution_logs",
215
+ "columns": {
216
+ "id": {
217
+ "name": "id",
218
+ "type": "integer",
219
+ "primaryKey": true,
220
+ "notNull": true,
221
+ "autoincrement": true
222
+ },
223
+ "conversation_id": {
224
+ "name": "conversation_id",
225
+ "type": "text",
226
+ "primaryKey": false,
227
+ "notNull": false,
228
+ "autoincrement": false
229
+ },
230
+ "tool_name": {
231
+ "name": "tool_name",
232
+ "type": "text",
233
+ "primaryKey": false,
234
+ "notNull": true,
235
+ "autoincrement": false
236
+ },
237
+ "params": {
238
+ "name": "params",
239
+ "type": "text",
240
+ "primaryKey": false,
241
+ "notNull": false,
242
+ "autoincrement": false
243
+ },
244
+ "result": {
245
+ "name": "result",
246
+ "type": "text",
247
+ "primaryKey": false,
248
+ "notNull": false,
249
+ "autoincrement": false
250
+ },
251
+ "duration": {
252
+ "name": "duration",
253
+ "type": "integer",
254
+ "primaryKey": false,
255
+ "notNull": false,
256
+ "autoincrement": false
257
+ },
258
+ "created_at": {
259
+ "name": "created_at",
260
+ "type": "text",
261
+ "primaryKey": false,
262
+ "notNull": true,
263
+ "autoincrement": false
264
+ }
265
+ },
266
+ "indexes": {},
267
+ "foreignKeys": {},
268
+ "compositePrimaryKeys": {},
269
+ "uniqueConstraints": {},
270
+ "checkConstraints": {}
271
+ },
272
+ "messages": {
273
+ "name": "messages",
274
+ "columns": {
275
+ "id": {
276
+ "name": "id",
277
+ "type": "integer",
278
+ "primaryKey": true,
279
+ "notNull": true,
280
+ "autoincrement": true
281
+ },
282
+ "conversation_id": {
283
+ "name": "conversation_id",
284
+ "type": "text",
285
+ "primaryKey": false,
286
+ "notNull": true,
287
+ "autoincrement": false
288
+ },
289
+ "role": {
290
+ "name": "role",
291
+ "type": "text",
292
+ "primaryKey": false,
293
+ "notNull": true,
294
+ "autoincrement": false
295
+ },
296
+ "content": {
297
+ "name": "content",
298
+ "type": "text",
299
+ "primaryKey": false,
300
+ "notNull": true,
301
+ "autoincrement": false
302
+ },
303
+ "tool_calls": {
304
+ "name": "tool_calls",
305
+ "type": "text",
306
+ "primaryKey": false,
307
+ "notNull": false,
308
+ "autoincrement": false
309
+ },
310
+ "tool_call_id": {
311
+ "name": "tool_call_id",
312
+ "type": "text",
313
+ "primaryKey": false,
314
+ "notNull": false,
315
+ "autoincrement": false
316
+ },
317
+ "tokens_in": {
318
+ "name": "tokens_in",
319
+ "type": "integer",
320
+ "primaryKey": false,
321
+ "notNull": false,
322
+ "autoincrement": false
323
+ },
324
+ "tokens_out": {
325
+ "name": "tokens_out",
326
+ "type": "integer",
327
+ "primaryKey": false,
328
+ "notNull": false,
329
+ "autoincrement": false
330
+ },
331
+ "rich_metadata": {
332
+ "name": "rich_metadata",
333
+ "type": "text",
334
+ "primaryKey": false,
335
+ "notNull": false,
336
+ "autoincrement": false
337
+ },
338
+ "created_at": {
339
+ "name": "created_at",
340
+ "type": "text",
341
+ "primaryKey": false,
342
+ "notNull": true,
343
+ "autoincrement": false
344
+ }
345
+ },
346
+ "indexes": {},
347
+ "foreignKeys": {
348
+ "messages_conversation_id_conversations_id_fk": {
349
+ "name": "messages_conversation_id_conversations_id_fk",
350
+ "tableFrom": "messages",
351
+ "tableTo": "conversations",
352
+ "columnsFrom": [
353
+ "conversation_id"
354
+ ],
355
+ "columnsTo": [
356
+ "id"
357
+ ],
358
+ "onDelete": "cascade",
359
+ "onUpdate": "no action"
360
+ }
361
+ },
362
+ "compositePrimaryKeys": {},
363
+ "uniqueConstraints": {},
364
+ "checkConstraints": {}
365
+ },
366
+ "skill_bindings": {
367
+ "name": "skill_bindings",
368
+ "columns": {
369
+ "id": {
370
+ "name": "id",
371
+ "type": "integer",
372
+ "primaryKey": true,
373
+ "notNull": true,
374
+ "autoincrement": true
375
+ },
376
+ "source": {
377
+ "name": "source",
378
+ "type": "text",
379
+ "primaryKey": false,
380
+ "notNull": true,
381
+ "autoincrement": false
382
+ },
383
+ "brain_name": {
384
+ "name": "brain_name",
385
+ "type": "text",
386
+ "primaryKey": false,
387
+ "notNull": false,
388
+ "autoincrement": false
389
+ },
390
+ "skill_name": {
391
+ "name": "skill_name",
392
+ "type": "text",
393
+ "primaryKey": false,
394
+ "notNull": true,
395
+ "autoincrement": false
396
+ },
397
+ "enabled": {
398
+ "name": "enabled",
399
+ "type": "integer",
400
+ "primaryKey": false,
401
+ "notNull": true,
402
+ "autoincrement": false,
403
+ "default": true
404
+ },
405
+ "priority": {
406
+ "name": "priority",
407
+ "type": "integer",
408
+ "primaryKey": false,
409
+ "notNull": true,
410
+ "autoincrement": false,
411
+ "default": 0
412
+ },
413
+ "config": {
414
+ "name": "config",
415
+ "type": "text",
416
+ "primaryKey": false,
417
+ "notNull": false,
418
+ "autoincrement": false
419
+ },
420
+ "created_at": {
421
+ "name": "created_at",
422
+ "type": "text",
423
+ "primaryKey": false,
424
+ "notNull": true,
425
+ "autoincrement": false
426
+ },
427
+ "updated_at": {
428
+ "name": "updated_at",
429
+ "type": "text",
430
+ "primaryKey": false,
431
+ "notNull": true,
432
+ "autoincrement": false
433
+ }
434
+ },
435
+ "indexes": {
436
+ "skill_bindings_source_brain_name_idx": {
437
+ "name": "skill_bindings_source_brain_name_idx",
438
+ "columns": [
439
+ "source",
440
+ "brain_name",
441
+ "skill_name"
442
+ ],
443
+ "isUnique": true
444
+ }
445
+ },
446
+ "foreignKeys": {},
447
+ "compositePrimaryKeys": {},
448
+ "uniqueConstraints": {},
449
+ "checkConstraints": {}
450
+ },
451
+ "skill_drafts": {
452
+ "name": "skill_drafts",
453
+ "columns": {
454
+ "id": {
455
+ "name": "id",
456
+ "type": "integer",
457
+ "primaryKey": true,
458
+ "notNull": true,
459
+ "autoincrement": true
460
+ },
461
+ "proposed_name": {
462
+ "name": "proposed_name",
463
+ "type": "text",
464
+ "primaryKey": false,
465
+ "notNull": true,
466
+ "autoincrement": false
467
+ },
468
+ "source": {
469
+ "name": "source",
470
+ "type": "text",
471
+ "primaryKey": false,
472
+ "notNull": true,
473
+ "autoincrement": false
474
+ },
475
+ "body_markdown": {
476
+ "name": "body_markdown",
477
+ "type": "text",
478
+ "primaryKey": false,
479
+ "notNull": true,
480
+ "autoincrement": false
481
+ },
482
+ "rationale": {
483
+ "name": "rationale",
484
+ "type": "text",
485
+ "primaryKey": false,
486
+ "notNull": true,
487
+ "autoincrement": false,
488
+ "default": "''"
489
+ },
490
+ "status": {
491
+ "name": "status",
492
+ "type": "text",
493
+ "primaryKey": false,
494
+ "notNull": true,
495
+ "autoincrement": false,
496
+ "default": "'pending'"
497
+ },
498
+ "created_at": {
499
+ "name": "created_at",
500
+ "type": "text",
501
+ "primaryKey": false,
502
+ "notNull": true,
503
+ "autoincrement": false
504
+ },
505
+ "decided_at": {
506
+ "name": "decided_at",
507
+ "type": "text",
508
+ "primaryKey": false,
509
+ "notNull": false,
510
+ "autoincrement": false
511
+ },
512
+ "decided_by": {
513
+ "name": "decided_by",
514
+ "type": "text",
515
+ "primaryKey": false,
516
+ "notNull": false,
517
+ "autoincrement": false
518
+ }
519
+ },
520
+ "indexes": {},
521
+ "foreignKeys": {},
522
+ "compositePrimaryKeys": {},
523
+ "uniqueConstraints": {},
524
+ "checkConstraints": {}
525
+ },
526
+ "worker_config": {
527
+ "name": "worker_config",
528
+ "columns": {
529
+ "pk": {
530
+ "name": "pk",
531
+ "type": "text",
532
+ "primaryKey": true,
533
+ "notNull": true,
534
+ "autoincrement": false,
535
+ "default": "'default'"
536
+ },
537
+ "config_json": {
538
+ "name": "config_json",
539
+ "type": "text",
540
+ "primaryKey": false,
541
+ "notNull": true,
542
+ "autoincrement": false
543
+ },
544
+ "version": {
545
+ "name": "version",
546
+ "type": "integer",
547
+ "primaryKey": false,
548
+ "notNull": true,
549
+ "autoincrement": false,
550
+ "default": 1
551
+ },
552
+ "updated_at": {
553
+ "name": "updated_at",
554
+ "type": "text",
555
+ "primaryKey": false,
556
+ "notNull": true,
557
+ "autoincrement": false
558
+ },
559
+ "updated_by": {
560
+ "name": "updated_by",
561
+ "type": "text",
562
+ "primaryKey": false,
563
+ "notNull": false,
564
+ "autoincrement": false
565
+ }
566
+ },
567
+ "indexes": {},
568
+ "foreignKeys": {},
569
+ "compositePrimaryKeys": {},
570
+ "uniqueConstraints": {},
571
+ "checkConstraints": {}
572
+ },
573
+ "worker_identity": {
574
+ "name": "worker_identity",
575
+ "columns": {
576
+ "pk": {
577
+ "name": "pk",
578
+ "type": "text",
579
+ "primaryKey": true,
580
+ "notNull": true,
581
+ "autoincrement": false,
582
+ "default": "'default'"
583
+ },
584
+ "worker_id": {
585
+ "name": "worker_id",
586
+ "type": "text",
587
+ "primaryKey": false,
588
+ "notNull": true,
589
+ "autoincrement": false
590
+ },
591
+ "api_token_enc": {
592
+ "name": "api_token_enc",
593
+ "type": "text",
594
+ "primaryKey": false,
595
+ "notNull": true,
596
+ "autoincrement": false
597
+ },
598
+ "nonce": {
599
+ "name": "nonce",
600
+ "type": "text",
601
+ "primaryKey": false,
602
+ "notNull": true,
603
+ "autoincrement": false
604
+ },
605
+ "auth_tag": {
606
+ "name": "auth_tag",
607
+ "type": "text",
608
+ "primaryKey": false,
609
+ "notNull": true,
610
+ "autoincrement": false
611
+ },
612
+ "bootstrap_shown_at": {
613
+ "name": "bootstrap_shown_at",
614
+ "type": "text",
615
+ "primaryKey": false,
616
+ "notNull": true,
617
+ "autoincrement": false
618
+ },
619
+ "created_at": {
620
+ "name": "created_at",
621
+ "type": "text",
622
+ "primaryKey": false,
623
+ "notNull": true,
624
+ "autoincrement": false
625
+ },
626
+ "rotated_at": {
627
+ "name": "rotated_at",
628
+ "type": "text",
629
+ "primaryKey": false,
630
+ "notNull": false,
631
+ "autoincrement": false
632
+ }
633
+ },
634
+ "indexes": {
635
+ "worker_identity_worker_id_unique": {
636
+ "name": "worker_identity_worker_id_unique",
637
+ "columns": [
638
+ "worker_id"
639
+ ],
640
+ "isUnique": true
641
+ }
642
+ },
643
+ "foreignKeys": {},
644
+ "compositePrimaryKeys": {},
645
+ "uniqueConstraints": {},
646
+ "checkConstraints": {}
647
+ },
648
+ "worker_secrets": {
649
+ "name": "worker_secrets",
650
+ "columns": {
651
+ "id": {
652
+ "name": "id",
653
+ "type": "integer",
654
+ "primaryKey": true,
655
+ "notNull": true,
656
+ "autoincrement": true
657
+ },
658
+ "key": {
659
+ "name": "key",
660
+ "type": "text",
661
+ "primaryKey": false,
662
+ "notNull": true,
663
+ "autoincrement": false
664
+ },
665
+ "value_enc": {
666
+ "name": "value_enc",
667
+ "type": "text",
668
+ "primaryKey": false,
669
+ "notNull": true,
670
+ "autoincrement": false
671
+ },
672
+ "nonce": {
673
+ "name": "nonce",
674
+ "type": "text",
675
+ "primaryKey": false,
676
+ "notNull": true,
677
+ "autoincrement": false
678
+ },
679
+ "auth_tag": {
680
+ "name": "auth_tag",
681
+ "type": "text",
682
+ "primaryKey": false,
683
+ "notNull": true,
684
+ "autoincrement": false
685
+ },
686
+ "created_at": {
687
+ "name": "created_at",
688
+ "type": "text",
689
+ "primaryKey": false,
690
+ "notNull": true,
691
+ "autoincrement": false
692
+ },
693
+ "updated_at": {
694
+ "name": "updated_at",
695
+ "type": "text",
696
+ "primaryKey": false,
697
+ "notNull": true,
698
+ "autoincrement": false
699
+ }
700
+ },
701
+ "indexes": {
702
+ "worker_secrets_key_unique": {
703
+ "name": "worker_secrets_key_unique",
704
+ "columns": [
705
+ "key"
706
+ ],
707
+ "isUnique": true
708
+ }
709
+ },
710
+ "foreignKeys": {},
711
+ "compositePrimaryKeys": {},
712
+ "uniqueConstraints": {},
713
+ "checkConstraints": {}
714
+ }
715
+ },
716
+ "views": {},
717
+ "enums": {},
718
+ "_meta": {
719
+ "schemas": {},
720
+ "tables": {},
721
+ "columns": {}
722
+ },
723
+ "internal": {
724
+ "indexes": {}
725
+ }
726
+ }