@zonease/aiworker-cli 0.1.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,719 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "fa5efae7-f922-4a85-af18-3b705bb19e2f",
5
+ "prevId": "00000000-0000-0000-0000-000000000000",
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
+ "created_at": {
332
+ "name": "created_at",
333
+ "type": "text",
334
+ "primaryKey": false,
335
+ "notNull": true,
336
+ "autoincrement": false
337
+ }
338
+ },
339
+ "indexes": {},
340
+ "foreignKeys": {
341
+ "messages_conversation_id_conversations_id_fk": {
342
+ "name": "messages_conversation_id_conversations_id_fk",
343
+ "tableFrom": "messages",
344
+ "tableTo": "conversations",
345
+ "columnsFrom": [
346
+ "conversation_id"
347
+ ],
348
+ "columnsTo": [
349
+ "id"
350
+ ],
351
+ "onDelete": "cascade",
352
+ "onUpdate": "no action"
353
+ }
354
+ },
355
+ "compositePrimaryKeys": {},
356
+ "uniqueConstraints": {},
357
+ "checkConstraints": {}
358
+ },
359
+ "skill_bindings": {
360
+ "name": "skill_bindings",
361
+ "columns": {
362
+ "id": {
363
+ "name": "id",
364
+ "type": "integer",
365
+ "primaryKey": true,
366
+ "notNull": true,
367
+ "autoincrement": true
368
+ },
369
+ "source": {
370
+ "name": "source",
371
+ "type": "text",
372
+ "primaryKey": false,
373
+ "notNull": true,
374
+ "autoincrement": false
375
+ },
376
+ "brain_name": {
377
+ "name": "brain_name",
378
+ "type": "text",
379
+ "primaryKey": false,
380
+ "notNull": false,
381
+ "autoincrement": false
382
+ },
383
+ "skill_name": {
384
+ "name": "skill_name",
385
+ "type": "text",
386
+ "primaryKey": false,
387
+ "notNull": true,
388
+ "autoincrement": false
389
+ },
390
+ "enabled": {
391
+ "name": "enabled",
392
+ "type": "integer",
393
+ "primaryKey": false,
394
+ "notNull": true,
395
+ "autoincrement": false,
396
+ "default": true
397
+ },
398
+ "priority": {
399
+ "name": "priority",
400
+ "type": "integer",
401
+ "primaryKey": false,
402
+ "notNull": true,
403
+ "autoincrement": false,
404
+ "default": 0
405
+ },
406
+ "config": {
407
+ "name": "config",
408
+ "type": "text",
409
+ "primaryKey": false,
410
+ "notNull": false,
411
+ "autoincrement": false
412
+ },
413
+ "created_at": {
414
+ "name": "created_at",
415
+ "type": "text",
416
+ "primaryKey": false,
417
+ "notNull": true,
418
+ "autoincrement": false
419
+ },
420
+ "updated_at": {
421
+ "name": "updated_at",
422
+ "type": "text",
423
+ "primaryKey": false,
424
+ "notNull": true,
425
+ "autoincrement": false
426
+ }
427
+ },
428
+ "indexes": {
429
+ "skill_bindings_source_brain_name_idx": {
430
+ "name": "skill_bindings_source_brain_name_idx",
431
+ "columns": [
432
+ "source",
433
+ "brain_name",
434
+ "skill_name"
435
+ ],
436
+ "isUnique": true
437
+ }
438
+ },
439
+ "foreignKeys": {},
440
+ "compositePrimaryKeys": {},
441
+ "uniqueConstraints": {},
442
+ "checkConstraints": {}
443
+ },
444
+ "skill_drafts": {
445
+ "name": "skill_drafts",
446
+ "columns": {
447
+ "id": {
448
+ "name": "id",
449
+ "type": "integer",
450
+ "primaryKey": true,
451
+ "notNull": true,
452
+ "autoincrement": true
453
+ },
454
+ "proposed_name": {
455
+ "name": "proposed_name",
456
+ "type": "text",
457
+ "primaryKey": false,
458
+ "notNull": true,
459
+ "autoincrement": false
460
+ },
461
+ "source": {
462
+ "name": "source",
463
+ "type": "text",
464
+ "primaryKey": false,
465
+ "notNull": true,
466
+ "autoincrement": false
467
+ },
468
+ "body_markdown": {
469
+ "name": "body_markdown",
470
+ "type": "text",
471
+ "primaryKey": false,
472
+ "notNull": true,
473
+ "autoincrement": false
474
+ },
475
+ "rationale": {
476
+ "name": "rationale",
477
+ "type": "text",
478
+ "primaryKey": false,
479
+ "notNull": true,
480
+ "autoincrement": false,
481
+ "default": "''"
482
+ },
483
+ "status": {
484
+ "name": "status",
485
+ "type": "text",
486
+ "primaryKey": false,
487
+ "notNull": true,
488
+ "autoincrement": false,
489
+ "default": "'pending'"
490
+ },
491
+ "created_at": {
492
+ "name": "created_at",
493
+ "type": "text",
494
+ "primaryKey": false,
495
+ "notNull": true,
496
+ "autoincrement": false
497
+ },
498
+ "decided_at": {
499
+ "name": "decided_at",
500
+ "type": "text",
501
+ "primaryKey": false,
502
+ "notNull": false,
503
+ "autoincrement": false
504
+ },
505
+ "decided_by": {
506
+ "name": "decided_by",
507
+ "type": "text",
508
+ "primaryKey": false,
509
+ "notNull": false,
510
+ "autoincrement": false
511
+ }
512
+ },
513
+ "indexes": {},
514
+ "foreignKeys": {},
515
+ "compositePrimaryKeys": {},
516
+ "uniqueConstraints": {},
517
+ "checkConstraints": {}
518
+ },
519
+ "worker_config": {
520
+ "name": "worker_config",
521
+ "columns": {
522
+ "pk": {
523
+ "name": "pk",
524
+ "type": "text",
525
+ "primaryKey": true,
526
+ "notNull": true,
527
+ "autoincrement": false,
528
+ "default": "'default'"
529
+ },
530
+ "config_json": {
531
+ "name": "config_json",
532
+ "type": "text",
533
+ "primaryKey": false,
534
+ "notNull": true,
535
+ "autoincrement": false
536
+ },
537
+ "version": {
538
+ "name": "version",
539
+ "type": "integer",
540
+ "primaryKey": false,
541
+ "notNull": true,
542
+ "autoincrement": false,
543
+ "default": 1
544
+ },
545
+ "updated_at": {
546
+ "name": "updated_at",
547
+ "type": "text",
548
+ "primaryKey": false,
549
+ "notNull": true,
550
+ "autoincrement": false
551
+ },
552
+ "updated_by": {
553
+ "name": "updated_by",
554
+ "type": "text",
555
+ "primaryKey": false,
556
+ "notNull": false,
557
+ "autoincrement": false
558
+ }
559
+ },
560
+ "indexes": {},
561
+ "foreignKeys": {},
562
+ "compositePrimaryKeys": {},
563
+ "uniqueConstraints": {},
564
+ "checkConstraints": {}
565
+ },
566
+ "worker_identity": {
567
+ "name": "worker_identity",
568
+ "columns": {
569
+ "pk": {
570
+ "name": "pk",
571
+ "type": "text",
572
+ "primaryKey": true,
573
+ "notNull": true,
574
+ "autoincrement": false,
575
+ "default": "'default'"
576
+ },
577
+ "worker_id": {
578
+ "name": "worker_id",
579
+ "type": "text",
580
+ "primaryKey": false,
581
+ "notNull": true,
582
+ "autoincrement": false
583
+ },
584
+ "api_token_enc": {
585
+ "name": "api_token_enc",
586
+ "type": "text",
587
+ "primaryKey": false,
588
+ "notNull": true,
589
+ "autoincrement": false
590
+ },
591
+ "nonce": {
592
+ "name": "nonce",
593
+ "type": "text",
594
+ "primaryKey": false,
595
+ "notNull": true,
596
+ "autoincrement": false
597
+ },
598
+ "auth_tag": {
599
+ "name": "auth_tag",
600
+ "type": "text",
601
+ "primaryKey": false,
602
+ "notNull": true,
603
+ "autoincrement": false
604
+ },
605
+ "bootstrap_shown_at": {
606
+ "name": "bootstrap_shown_at",
607
+ "type": "text",
608
+ "primaryKey": false,
609
+ "notNull": true,
610
+ "autoincrement": false
611
+ },
612
+ "created_at": {
613
+ "name": "created_at",
614
+ "type": "text",
615
+ "primaryKey": false,
616
+ "notNull": true,
617
+ "autoincrement": false
618
+ },
619
+ "rotated_at": {
620
+ "name": "rotated_at",
621
+ "type": "text",
622
+ "primaryKey": false,
623
+ "notNull": false,
624
+ "autoincrement": false
625
+ }
626
+ },
627
+ "indexes": {
628
+ "worker_identity_worker_id_unique": {
629
+ "name": "worker_identity_worker_id_unique",
630
+ "columns": [
631
+ "worker_id"
632
+ ],
633
+ "isUnique": true
634
+ }
635
+ },
636
+ "foreignKeys": {},
637
+ "compositePrimaryKeys": {},
638
+ "uniqueConstraints": {},
639
+ "checkConstraints": {}
640
+ },
641
+ "worker_secrets": {
642
+ "name": "worker_secrets",
643
+ "columns": {
644
+ "id": {
645
+ "name": "id",
646
+ "type": "integer",
647
+ "primaryKey": true,
648
+ "notNull": true,
649
+ "autoincrement": true
650
+ },
651
+ "key": {
652
+ "name": "key",
653
+ "type": "text",
654
+ "primaryKey": false,
655
+ "notNull": true,
656
+ "autoincrement": false
657
+ },
658
+ "value_enc": {
659
+ "name": "value_enc",
660
+ "type": "text",
661
+ "primaryKey": false,
662
+ "notNull": true,
663
+ "autoincrement": false
664
+ },
665
+ "nonce": {
666
+ "name": "nonce",
667
+ "type": "text",
668
+ "primaryKey": false,
669
+ "notNull": true,
670
+ "autoincrement": false
671
+ },
672
+ "auth_tag": {
673
+ "name": "auth_tag",
674
+ "type": "text",
675
+ "primaryKey": false,
676
+ "notNull": true,
677
+ "autoincrement": false
678
+ },
679
+ "created_at": {
680
+ "name": "created_at",
681
+ "type": "text",
682
+ "primaryKey": false,
683
+ "notNull": true,
684
+ "autoincrement": false
685
+ },
686
+ "updated_at": {
687
+ "name": "updated_at",
688
+ "type": "text",
689
+ "primaryKey": false,
690
+ "notNull": true,
691
+ "autoincrement": false
692
+ }
693
+ },
694
+ "indexes": {
695
+ "worker_secrets_key_unique": {
696
+ "name": "worker_secrets_key_unique",
697
+ "columns": [
698
+ "key"
699
+ ],
700
+ "isUnique": true
701
+ }
702
+ },
703
+ "foreignKeys": {},
704
+ "compositePrimaryKeys": {},
705
+ "uniqueConstraints": {},
706
+ "checkConstraints": {}
707
+ }
708
+ },
709
+ "views": {},
710
+ "enums": {},
711
+ "_meta": {
712
+ "schemas": {},
713
+ "tables": {},
714
+ "columns": {}
715
+ },
716
+ "internal": {
717
+ "indexes": {}
718
+ }
719
+ }