@zonease/aiworker-cli 0.12.2 → 0.13.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 (117) hide show
  1. package/README.md +158 -350
  2. package/aiworker-bun.js +614 -694
  3. package/drizzle/worker/0000_polite_stellaris.sql +219 -0
  4. package/drizzle/worker/0001_red_lady_mastermind.sql +29 -0
  5. package/drizzle/worker/0002_concerned_slyde.sql +45 -0
  6. package/drizzle/worker/meta/0000_snapshot.json +1055 -194
  7. package/drizzle/worker/meta/0001_snapshot.json +1244 -222
  8. package/drizzle/worker/meta/0002_snapshot.json +1557 -273
  9. package/drizzle/worker/meta/_journal.json +6 -48
  10. package/official-apps/aiworker-hr/README.md +16 -0
  11. package/official-apps/aiworker-hr/capabilities/candidate-screen/prompt.md +3 -0
  12. package/official-apps/aiworker-hr/capabilities/candidate-screen/review.md +5 -0
  13. package/official-apps/aiworker-hr/capabilities/person-profile/prompt.md +3 -0
  14. package/official-apps/aiworker-hr/capabilities/person-profile/review.md +5 -0
  15. package/official-apps/aiworker-hr/dist/host-mounted.js +15677 -0
  16. package/official-apps/aiworker-hr/dist/index.js +15411 -0
  17. package/official-apps/aiworker-hr/dist/standalone.js +15451 -0
  18. package/official-apps/aiworker-hr/migrations/0001_hr.sql +2 -0
  19. package/official-apps/aiworker-hr/package.json +31 -0
  20. package/official-apps/aiworker-hr/packs/hr-recruiting/SOUL.md +7 -0
  21. package/official-apps/aiworker-hr/review/candidate-screen.md +5 -0
  22. package/official-apps/aiworker-hr/review/person-profile.md +5 -0
  23. package/official-apps/aiworker-hr/schemas/candidate-screen.schema.json +50 -0
  24. package/official-apps/aiworker-hr/schemas/person-profile.schema.json +50 -0
  25. package/official-apps/aiworker-hr/soul-app.manifest.json +374 -0
  26. package/official-apps/aiworker-hr/src/api.ts +1 -0
  27. package/official-apps/aiworker-hr/src/host-mounted.ts +308 -0
  28. package/official-apps/aiworker-hr/src/index.ts +152 -0
  29. package/official-apps/aiworker-hr/src/protocol/artifact.ts +2 -0
  30. package/official-apps/aiworker-hr/src/protocol/connectors.ts +2 -0
  31. package/official-apps/aiworker-hr/src/protocol/lifecycle.ts +2 -0
  32. package/official-apps/aiworker-hr/src/protocol/review.ts +2 -0
  33. package/official-apps/aiworker-hr/src/protocol/runtime.ts +2 -0
  34. package/official-apps/aiworker-hr/src/protocol/ui.ts +2 -0
  35. package/official-apps/aiworker-hr/src/standalone.ts +43 -0
  36. package/official-apps/aiworker-hr/src/ui/candidate-screen-preview.tsx +2 -0
  37. package/official-apps/aiworker-hr/src/ui/hr-route.tsx +1 -0
  38. package/official-apps/aiworker-hr/src/ui/people-widget.tsx +1 -0
  39. package/official-apps/aiworker-hr/src/ui/person-profile-preview.tsx +2 -0
  40. package/official-apps/aiworker-hr/src/ui/profile-panel.tsx +1 -0
  41. package/official-apps/aiworker-hr/src/ui/review-panel.tsx +1 -0
  42. package/official-apps/aiworker-hr/tsconfig.json +20 -0
  43. package/official-apps/aiworker-qa/README.md +14 -0
  44. package/official-apps/aiworker-qa/capabilities/regression-matrix/prompt.md +3 -0
  45. package/official-apps/aiworker-qa/capabilities/regression-matrix/review.md +5 -0
  46. package/official-apps/aiworker-qa/capabilities/release-gate/prompt.md +3 -0
  47. package/official-apps/aiworker-qa/capabilities/release-gate/review.md +5 -0
  48. package/official-apps/aiworker-qa/dist/host-mounted.js +15655 -0
  49. package/official-apps/aiworker-qa/dist/index.js +15395 -0
  50. package/official-apps/aiworker-qa/dist/standalone.js +15435 -0
  51. package/official-apps/aiworker-qa/migrations/0001_qa.sql +2 -0
  52. package/official-apps/aiworker-qa/package.json +31 -0
  53. package/official-apps/aiworker-qa/packs/qa-reviewer/SOUL.md +7 -0
  54. package/official-apps/aiworker-qa/review/regression-matrix.md +5 -0
  55. package/official-apps/aiworker-qa/review/release-gate.md +5 -0
  56. package/official-apps/aiworker-qa/schemas/regression-matrix.schema.json +50 -0
  57. package/official-apps/aiworker-qa/schemas/release-gate.schema.json +50 -0
  58. package/official-apps/aiworker-qa/soul-app.manifest.json +356 -0
  59. package/official-apps/aiworker-qa/src/api.ts +1 -0
  60. package/official-apps/aiworker-qa/src/host-mounted.ts +302 -0
  61. package/official-apps/aiworker-qa/src/index.ts +152 -0
  62. package/official-apps/aiworker-qa/src/protocol/artifact.ts +2 -0
  63. package/official-apps/aiworker-qa/src/protocol/connectors.ts +2 -0
  64. package/official-apps/aiworker-qa/src/protocol/lifecycle.ts +2 -0
  65. package/official-apps/aiworker-qa/src/protocol/review.ts +2 -0
  66. package/official-apps/aiworker-qa/src/protocol/runtime.ts +2 -0
  67. package/official-apps/aiworker-qa/src/protocol/ui.ts +2 -0
  68. package/official-apps/aiworker-qa/src/standalone.ts +43 -0
  69. package/official-apps/aiworker-qa/src/ui/qa-route.tsx +1 -0
  70. package/official-apps/aiworker-qa/src/ui/regression-matrix-preview.tsx +2 -0
  71. package/official-apps/aiworker-qa/src/ui/release-gate-preview.tsx +2 -0
  72. package/official-apps/aiworker-qa/src/ui/release-panel.tsx +1 -0
  73. package/official-apps/aiworker-qa/src/ui/release-review-panel.tsx +1 -0
  74. package/official-apps/aiworker-qa/src/ui/release-widget.tsx +1 -0
  75. package/official-apps/aiworker-qa/src/ui/review-panel.tsx +1 -0
  76. package/official-apps/aiworker-qa/tsconfig.json +20 -0
  77. package/package.json +5 -4
  78. package/web/worker/assets/index-K-y56wrL.css +2 -0
  79. package/web/worker/assets/index-YNnnk64n.js +18 -0
  80. package/web/worker/assets/markdown-preview-DFe-rfff.js +29 -0
  81. package/web/worker/assets/people-workbench-BzWwSc2I.js +1 -0
  82. package/web/worker/engine-icons/claude.svg +1 -0
  83. package/web/worker/engine-icons/cursor.svg +1 -0
  84. package/web/worker/engine-icons/gemini.svg +1 -0
  85. package/web/worker/engine-icons/hermesagent.svg +1 -0
  86. package/web/worker/engine-icons/openai.svg +1 -0
  87. package/web/worker/engine-icons/opencode.svg +1 -0
  88. package/web/worker/engine-icons/qwen.svg +1 -0
  89. package/web/worker/fonts/inter-latin-wght-normal.woff2 +0 -0
  90. package/web/worker/fonts/jetbrains-mono-latin-wght-normal.woff2 +0 -0
  91. package/web/worker/fonts/nunito-latin-wght-normal.woff2 +0 -0
  92. package/web/worker/index.html +8 -4
  93. package/web/worker/logo.svg +8 -0
  94. package/drizzle/fleet/0000_fine_havok.sql +0 -23
  95. package/drizzle/fleet/meta/0000_snapshot.json +0 -165
  96. package/drizzle/fleet/meta/_journal.json +0 -13
  97. package/drizzle/worker/0000_spooky_kat_farrell.sql +0 -112
  98. package/drizzle/worker/0001_secret_dagger.sql +0 -1
  99. package/drizzle/worker/0002_jazzy_moondragon.sql +0 -13
  100. package/drizzle/worker/0003_rare_cloak.sql +0 -7
  101. package/drizzle/worker/0004_daffy_thing.sql +0 -26
  102. package/drizzle/worker/0005_worthless_whiplash.sql +0 -20
  103. package/drizzle/worker/0006_fair_jetstream.sql +0 -34
  104. package/drizzle/worker/0007_solid_bromley.sql +0 -11
  105. package/drizzle/worker/0008_peaceful_titanium_man.sql +0 -14
  106. package/drizzle/worker/meta/0003_snapshot.json +0 -873
  107. package/drizzle/worker/meta/0004_snapshot.json +0 -1058
  108. package/drizzle/worker/meta/0005_snapshot.json +0 -1192
  109. package/drizzle/worker/meta/0006_snapshot.json +0 -1420
  110. package/drizzle/worker/meta/0007_snapshot.json +0 -1489
  111. package/drizzle/worker/meta/0008_snapshot.json +0 -1593
  112. package/web/fleet/assets/index-BTknRPEg.js +0 -1372
  113. package/web/fleet/assets/index-lu-9OhC0.css +0 -2
  114. package/web/fleet/favicon.svg +0 -4
  115. package/web/fleet/index.html +0 -14
  116. package/web/worker/assets/index-DuxsPbd7.js +0 -1382
  117. package/web/worker/assets/index-lu-9OhC0.css +0 -2
@@ -1,1192 +0,0 @@
1
- {
2
- "version": "6",
3
- "dialect": "sqlite",
4
- "id": "a3122433-70ae-4b3a-81d6-c748204116f6",
5
- "prevId": "3ffa652c-299c-4bc0-af3d-dd940bd10b1a",
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
- "agent_tasks_created_at_idx": {
69
- "name": "agent_tasks_created_at_idx",
70
- "columns": [
71
- "created_at"
72
- ],
73
- "isUnique": false
74
- }
75
- },
76
- "foreignKeys": {},
77
- "compositePrimaryKeys": {},
78
- "uniqueConstraints": {},
79
- "checkConstraints": {}
80
- },
81
- "brain_artifacts": {
82
- "name": "brain_artifacts",
83
- "columns": {
84
- "id": {
85
- "name": "id",
86
- "type": "text",
87
- "primaryKey": true,
88
- "notNull": true,
89
- "autoincrement": false
90
- },
91
- "scope_id": {
92
- "name": "scope_id",
93
- "type": "text",
94
- "primaryKey": false,
95
- "notNull": false,
96
- "autoincrement": false
97
- },
98
- "type": {
99
- "name": "type",
100
- "type": "text",
101
- "primaryKey": false,
102
- "notNull": true,
103
- "autoincrement": false
104
- },
105
- "ref": {
106
- "name": "ref",
107
- "type": "text",
108
- "primaryKey": false,
109
- "notNull": true,
110
- "autoincrement": false
111
- },
112
- "hash": {
113
- "name": "hash",
114
- "type": "text",
115
- "primaryKey": false,
116
- "notNull": false,
117
- "autoincrement": false
118
- },
119
- "source": {
120
- "name": "source",
121
- "type": "text",
122
- "primaryKey": false,
123
- "notNull": true,
124
- "autoincrement": false
125
- },
126
- "sensitivity": {
127
- "name": "sensitivity",
128
- "type": "text",
129
- "primaryKey": false,
130
- "notNull": true,
131
- "autoincrement": false,
132
- "default": "'internal'"
133
- },
134
- "retention": {
135
- "name": "retention",
136
- "type": "text",
137
- "primaryKey": false,
138
- "notNull": false,
139
- "autoincrement": false
140
- },
141
- "status": {
142
- "name": "status",
143
- "type": "text",
144
- "primaryKey": false,
145
- "notNull": true,
146
- "autoincrement": false,
147
- "default": "'active'"
148
- },
149
- "summary": {
150
- "name": "summary",
151
- "type": "text",
152
- "primaryKey": false,
153
- "notNull": false,
154
- "autoincrement": false
155
- },
156
- "evidence_refs": {
157
- "name": "evidence_refs",
158
- "type": "text",
159
- "primaryKey": false,
160
- "notNull": true,
161
- "autoincrement": false
162
- },
163
- "metadata": {
164
- "name": "metadata",
165
- "type": "text",
166
- "primaryKey": false,
167
- "notNull": false,
168
- "autoincrement": false
169
- },
170
- "created_at": {
171
- "name": "created_at",
172
- "type": "text",
173
- "primaryKey": false,
174
- "notNull": true,
175
- "autoincrement": false
176
- },
177
- "updated_at": {
178
- "name": "updated_at",
179
- "type": "text",
180
- "primaryKey": false,
181
- "notNull": true,
182
- "autoincrement": false
183
- }
184
- },
185
- "indexes": {
186
- "brain_artifacts_scope_type_idx": {
187
- "name": "brain_artifacts_scope_type_idx",
188
- "columns": [
189
- "scope_id",
190
- "type"
191
- ],
192
- "isUnique": false
193
- },
194
- "brain_artifacts_status_type_idx": {
195
- "name": "brain_artifacts_status_type_idx",
196
- "columns": [
197
- "status",
198
- "type"
199
- ],
200
- "isUnique": false
201
- },
202
- "brain_artifacts_updated_at_idx": {
203
- "name": "brain_artifacts_updated_at_idx",
204
- "columns": [
205
- "updated_at"
206
- ],
207
- "isUnique": false
208
- }
209
- },
210
- "foreignKeys": {},
211
- "compositePrimaryKeys": {},
212
- "uniqueConstraints": {},
213
- "checkConstraints": {}
214
- },
215
- "conversations": {
216
- "name": "conversations",
217
- "columns": {
218
- "id": {
219
- "name": "id",
220
- "type": "text",
221
- "primaryKey": true,
222
- "notNull": true,
223
- "autoincrement": false
224
- },
225
- "task_id": {
226
- "name": "task_id",
227
- "type": "text",
228
- "primaryKey": false,
229
- "notNull": false,
230
- "autoincrement": false
231
- },
232
- "channel": {
233
- "name": "channel",
234
- "type": "text",
235
- "primaryKey": false,
236
- "notNull": true,
237
- "autoincrement": false
238
- },
239
- "chat_id": {
240
- "name": "chat_id",
241
- "type": "text",
242
- "primaryKey": false,
243
- "notNull": true,
244
- "autoincrement": false
245
- },
246
- "thread_id": {
247
- "name": "thread_id",
248
- "type": "text",
249
- "primaryKey": false,
250
- "notNull": false,
251
- "autoincrement": false
252
- },
253
- "status": {
254
- "name": "status",
255
- "type": "text",
256
- "primaryKey": false,
257
- "notNull": true,
258
- "autoincrement": false,
259
- "default": "'open'"
260
- },
261
- "summary": {
262
- "name": "summary",
263
- "type": "text",
264
- "primaryKey": false,
265
- "notNull": false,
266
- "autoincrement": false
267
- },
268
- "started_at": {
269
- "name": "started_at",
270
- "type": "text",
271
- "primaryKey": false,
272
- "notNull": true,
273
- "autoincrement": false
274
- },
275
- "last_active_at": {
276
- "name": "last_active_at",
277
- "type": "text",
278
- "primaryKey": false,
279
- "notNull": true,
280
- "autoincrement": false
281
- },
282
- "closed_at": {
283
- "name": "closed_at",
284
- "type": "text",
285
- "primaryKey": false,
286
- "notNull": false,
287
- "autoincrement": false
288
- }
289
- },
290
- "indexes": {
291
- "conversations_lookup_idx": {
292
- "name": "conversations_lookup_idx",
293
- "columns": [
294
- "channel",
295
- "chat_id",
296
- "thread_id",
297
- "status"
298
- ],
299
- "isUnique": false
300
- },
301
- "conversations_last_active_at_idx": {
302
- "name": "conversations_last_active_at_idx",
303
- "columns": [
304
- "last_active_at"
305
- ],
306
- "isUnique": false
307
- }
308
- },
309
- "foreignKeys": {
310
- "conversations_task_id_agent_tasks_id_fk": {
311
- "name": "conversations_task_id_agent_tasks_id_fk",
312
- "tableFrom": "conversations",
313
- "tableTo": "agent_tasks",
314
- "columnsFrom": [
315
- "task_id"
316
- ],
317
- "columnsTo": [
318
- "id"
319
- ],
320
- "onDelete": "no action",
321
- "onUpdate": "no action"
322
- }
323
- },
324
- "compositePrimaryKeys": {},
325
- "uniqueConstraints": {},
326
- "checkConstraints": {}
327
- },
328
- "cron_jobs": {
329
- "name": "cron_jobs",
330
- "columns": {
331
- "id": {
332
- "name": "id",
333
- "type": "text",
334
- "primaryKey": true,
335
- "notNull": true,
336
- "autoincrement": false
337
- },
338
- "expression": {
339
- "name": "expression",
340
- "type": "text",
341
- "primaryKey": false,
342
- "notNull": true,
343
- "autoincrement": false
344
- },
345
- "prompt": {
346
- "name": "prompt",
347
- "type": "text",
348
- "primaryKey": false,
349
- "notNull": true,
350
- "autoincrement": false
351
- },
352
- "channel": {
353
- "name": "channel",
354
- "type": "text",
355
- "primaryKey": false,
356
- "notNull": true,
357
- "autoincrement": false
358
- },
359
- "chat_id": {
360
- "name": "chat_id",
361
- "type": "text",
362
- "primaryKey": false,
363
- "notNull": true,
364
- "autoincrement": false
365
- },
366
- "account_id": {
367
- "name": "account_id",
368
- "type": "text",
369
- "primaryKey": false,
370
- "notNull": true,
371
- "autoincrement": false
372
- },
373
- "enabled": {
374
- "name": "enabled",
375
- "type": "integer",
376
- "primaryKey": false,
377
- "notNull": true,
378
- "autoincrement": false,
379
- "default": true
380
- },
381
- "last_run_at": {
382
- "name": "last_run_at",
383
- "type": "text",
384
- "primaryKey": false,
385
- "notNull": false,
386
- "autoincrement": false
387
- },
388
- "next_run_at": {
389
- "name": "next_run_at",
390
- "type": "text",
391
- "primaryKey": false,
392
- "notNull": false,
393
- "autoincrement": false
394
- },
395
- "created_at": {
396
- "name": "created_at",
397
- "type": "text",
398
- "primaryKey": false,
399
- "notNull": true,
400
- "autoincrement": false
401
- },
402
- "updated_at": {
403
- "name": "updated_at",
404
- "type": "text",
405
- "primaryKey": false,
406
- "notNull": true,
407
- "autoincrement": false
408
- }
409
- },
410
- "indexes": {
411
- "cron_jobs_due_idx": {
412
- "name": "cron_jobs_due_idx",
413
- "columns": [
414
- "enabled",
415
- "next_run_at"
416
- ],
417
- "isUnique": false
418
- }
419
- },
420
- "foreignKeys": {},
421
- "compositePrimaryKeys": {},
422
- "uniqueConstraints": {},
423
- "checkConstraints": {}
424
- },
425
- "evolution_observations": {
426
- "name": "evolution_observations",
427
- "columns": {
428
- "id": {
429
- "name": "id",
430
- "type": "integer",
431
- "primaryKey": true,
432
- "notNull": true,
433
- "autoincrement": true
434
- },
435
- "conversation_id": {
436
- "name": "conversation_id",
437
- "type": "text",
438
- "primaryKey": false,
439
- "notNull": false,
440
- "autoincrement": false
441
- },
442
- "kind": {
443
- "name": "kind",
444
- "type": "text",
445
- "primaryKey": false,
446
- "notNull": true,
447
- "autoincrement": false
448
- },
449
- "payload": {
450
- "name": "payload",
451
- "type": "text",
452
- "primaryKey": false,
453
- "notNull": true,
454
- "autoincrement": false
455
- },
456
- "noticed_at": {
457
- "name": "noticed_at",
458
- "type": "text",
459
- "primaryKey": false,
460
- "notNull": true,
461
- "autoincrement": false
462
- }
463
- },
464
- "indexes": {
465
- "evolution_observations_noticed_at_idx": {
466
- "name": "evolution_observations_noticed_at_idx",
467
- "columns": [
468
- "noticed_at"
469
- ],
470
- "isUnique": false
471
- }
472
- },
473
- "foreignKeys": {},
474
- "compositePrimaryKeys": {},
475
- "uniqueConstraints": {},
476
- "checkConstraints": {}
477
- },
478
- "execution_logs": {
479
- "name": "execution_logs",
480
- "columns": {
481
- "id": {
482
- "name": "id",
483
- "type": "integer",
484
- "primaryKey": true,
485
- "notNull": true,
486
- "autoincrement": true
487
- },
488
- "conversation_id": {
489
- "name": "conversation_id",
490
- "type": "text",
491
- "primaryKey": false,
492
- "notNull": false,
493
- "autoincrement": false
494
- },
495
- "tool_name": {
496
- "name": "tool_name",
497
- "type": "text",
498
- "primaryKey": false,
499
- "notNull": true,
500
- "autoincrement": false
501
- },
502
- "params": {
503
- "name": "params",
504
- "type": "text",
505
- "primaryKey": false,
506
- "notNull": false,
507
- "autoincrement": false
508
- },
509
- "result": {
510
- "name": "result",
511
- "type": "text",
512
- "primaryKey": false,
513
- "notNull": false,
514
- "autoincrement": false
515
- },
516
- "duration": {
517
- "name": "duration",
518
- "type": "integer",
519
- "primaryKey": false,
520
- "notNull": false,
521
- "autoincrement": false
522
- },
523
- "created_at": {
524
- "name": "created_at",
525
- "type": "text",
526
- "primaryKey": false,
527
- "notNull": true,
528
- "autoincrement": false
529
- }
530
- },
531
- "indexes": {
532
- "execution_logs_conversation_id_idx": {
533
- "name": "execution_logs_conversation_id_idx",
534
- "columns": [
535
- "conversation_id"
536
- ],
537
- "isUnique": false
538
- }
539
- },
540
- "foreignKeys": {},
541
- "compositePrimaryKeys": {},
542
- "uniqueConstraints": {},
543
- "checkConstraints": {}
544
- },
545
- "messages": {
546
- "name": "messages",
547
- "columns": {
548
- "id": {
549
- "name": "id",
550
- "type": "integer",
551
- "primaryKey": true,
552
- "notNull": true,
553
- "autoincrement": true
554
- },
555
- "conversation_id": {
556
- "name": "conversation_id",
557
- "type": "text",
558
- "primaryKey": false,
559
- "notNull": true,
560
- "autoincrement": false
561
- },
562
- "role": {
563
- "name": "role",
564
- "type": "text",
565
- "primaryKey": false,
566
- "notNull": true,
567
- "autoincrement": false
568
- },
569
- "content": {
570
- "name": "content",
571
- "type": "text",
572
- "primaryKey": false,
573
- "notNull": true,
574
- "autoincrement": false
575
- },
576
- "tool_calls": {
577
- "name": "tool_calls",
578
- "type": "text",
579
- "primaryKey": false,
580
- "notNull": false,
581
- "autoincrement": false
582
- },
583
- "tool_call_id": {
584
- "name": "tool_call_id",
585
- "type": "text",
586
- "primaryKey": false,
587
- "notNull": false,
588
- "autoincrement": false
589
- },
590
- "tokens_in": {
591
- "name": "tokens_in",
592
- "type": "integer",
593
- "primaryKey": false,
594
- "notNull": false,
595
- "autoincrement": false
596
- },
597
- "tokens_out": {
598
- "name": "tokens_out",
599
- "type": "integer",
600
- "primaryKey": false,
601
- "notNull": false,
602
- "autoincrement": false
603
- },
604
- "rich_metadata": {
605
- "name": "rich_metadata",
606
- "type": "text",
607
- "primaryKey": false,
608
- "notNull": false,
609
- "autoincrement": false
610
- },
611
- "created_at": {
612
- "name": "created_at",
613
- "type": "text",
614
- "primaryKey": false,
615
- "notNull": true,
616
- "autoincrement": false
617
- }
618
- },
619
- "indexes": {
620
- "messages_conversation_id_idx": {
621
- "name": "messages_conversation_id_idx",
622
- "columns": [
623
- "conversation_id"
624
- ],
625
- "isUnique": false
626
- }
627
- },
628
- "foreignKeys": {
629
- "messages_conversation_id_conversations_id_fk": {
630
- "name": "messages_conversation_id_conversations_id_fk",
631
- "tableFrom": "messages",
632
- "tableTo": "conversations",
633
- "columnsFrom": [
634
- "conversation_id"
635
- ],
636
- "columnsTo": [
637
- "id"
638
- ],
639
- "onDelete": "cascade",
640
- "onUpdate": "no action"
641
- }
642
- },
643
- "compositePrimaryKeys": {},
644
- "uniqueConstraints": {},
645
- "checkConstraints": {}
646
- },
647
- "session_entries": {
648
- "name": "session_entries",
649
- "columns": {
650
- "session_key": {
651
- "name": "session_key",
652
- "type": "text",
653
- "primaryKey": true,
654
- "notNull": true,
655
- "autoincrement": false
656
- },
657
- "current_conversation_id": {
658
- "name": "current_conversation_id",
659
- "type": "text",
660
- "primaryKey": false,
661
- "notNull": true,
662
- "autoincrement": false
663
- },
664
- "channel": {
665
- "name": "channel",
666
- "type": "text",
667
- "primaryKey": false,
668
- "notNull": true,
669
- "autoincrement": false
670
- },
671
- "chat_id": {
672
- "name": "chat_id",
673
- "type": "text",
674
- "primaryKey": false,
675
- "notNull": true,
676
- "autoincrement": false
677
- },
678
- "thread_id": {
679
- "name": "thread_id",
680
- "type": "text",
681
- "primaryKey": false,
682
- "notNull": false,
683
- "autoincrement": false
684
- },
685
- "account_id": {
686
- "name": "account_id",
687
- "type": "text",
688
- "primaryKey": false,
689
- "notNull": false,
690
- "autoincrement": false
691
- },
692
- "status": {
693
- "name": "status",
694
- "type": "text",
695
- "primaryKey": false,
696
- "notNull": true,
697
- "autoincrement": false,
698
- "default": "'active'"
699
- },
700
- "session_started_at": {
701
- "name": "session_started_at",
702
- "type": "text",
703
- "primaryKey": false,
704
- "notNull": true,
705
- "autoincrement": false
706
- },
707
- "last_interaction_at": {
708
- "name": "last_interaction_at",
709
- "type": "text",
710
- "primaryKey": false,
711
- "notNull": true,
712
- "autoincrement": false
713
- },
714
- "reset_at": {
715
- "name": "reset_at",
716
- "type": "text",
717
- "primaryKey": false,
718
- "notNull": false,
719
- "autoincrement": false
720
- },
721
- "reset_reason": {
722
- "name": "reset_reason",
723
- "type": "text",
724
- "primaryKey": false,
725
- "notNull": false,
726
- "autoincrement": false
727
- },
728
- "context_tokens": {
729
- "name": "context_tokens",
730
- "type": "integer",
731
- "primaryKey": false,
732
- "notNull": true,
733
- "autoincrement": false,
734
- "default": 0
735
- },
736
- "total_tokens": {
737
- "name": "total_tokens",
738
- "type": "integer",
739
- "primaryKey": false,
740
- "notNull": true,
741
- "autoincrement": false,
742
- "default": 0
743
- },
744
- "total_tokens_fresh": {
745
- "name": "total_tokens_fresh",
746
- "type": "integer",
747
- "primaryKey": false,
748
- "notNull": true,
749
- "autoincrement": false,
750
- "default": 0
751
- },
752
- "compaction_count": {
753
- "name": "compaction_count",
754
- "type": "integer",
755
- "primaryKey": false,
756
- "notNull": true,
757
- "autoincrement": false,
758
- "default": 0
759
- },
760
- "memory_flush_at": {
761
- "name": "memory_flush_at",
762
- "type": "text",
763
- "primaryKey": false,
764
- "notNull": false,
765
- "autoincrement": false
766
- },
767
- "memory_flush_compaction_count": {
768
- "name": "memory_flush_compaction_count",
769
- "type": "integer",
770
- "primaryKey": false,
771
- "notNull": true,
772
- "autoincrement": false,
773
- "default": 0
774
- },
775
- "engine_bindings": {
776
- "name": "engine_bindings",
777
- "type": "text",
778
- "primaryKey": false,
779
- "notNull": true,
780
- "autoincrement": false
781
- },
782
- "created_at": {
783
- "name": "created_at",
784
- "type": "text",
785
- "primaryKey": false,
786
- "notNull": true,
787
- "autoincrement": false
788
- },
789
- "updated_at": {
790
- "name": "updated_at",
791
- "type": "text",
792
- "primaryKey": false,
793
- "notNull": true,
794
- "autoincrement": false
795
- }
796
- },
797
- "indexes": {
798
- "session_entries_current_conversation_id_idx": {
799
- "name": "session_entries_current_conversation_id_idx",
800
- "columns": [
801
- "current_conversation_id"
802
- ],
803
- "isUnique": false
804
- },
805
- "session_entries_last_interaction_at_idx": {
806
- "name": "session_entries_last_interaction_at_idx",
807
- "columns": [
808
- "last_interaction_at"
809
- ],
810
- "isUnique": false
811
- }
812
- },
813
- "foreignKeys": {
814
- "session_entries_current_conversation_id_conversations_id_fk": {
815
- "name": "session_entries_current_conversation_id_conversations_id_fk",
816
- "tableFrom": "session_entries",
817
- "tableTo": "conversations",
818
- "columnsFrom": [
819
- "current_conversation_id"
820
- ],
821
- "columnsTo": [
822
- "id"
823
- ],
824
- "onDelete": "no action",
825
- "onUpdate": "no action"
826
- }
827
- },
828
- "compositePrimaryKeys": {},
829
- "uniqueConstraints": {},
830
- "checkConstraints": {}
831
- },
832
- "skill_bindings": {
833
- "name": "skill_bindings",
834
- "columns": {
835
- "id": {
836
- "name": "id",
837
- "type": "integer",
838
- "primaryKey": true,
839
- "notNull": true,
840
- "autoincrement": true
841
- },
842
- "source": {
843
- "name": "source",
844
- "type": "text",
845
- "primaryKey": false,
846
- "notNull": true,
847
- "autoincrement": false
848
- },
849
- "brain_name": {
850
- "name": "brain_name",
851
- "type": "text",
852
- "primaryKey": false,
853
- "notNull": false,
854
- "autoincrement": false
855
- },
856
- "skill_name": {
857
- "name": "skill_name",
858
- "type": "text",
859
- "primaryKey": false,
860
- "notNull": true,
861
- "autoincrement": false
862
- },
863
- "enabled": {
864
- "name": "enabled",
865
- "type": "integer",
866
- "primaryKey": false,
867
- "notNull": true,
868
- "autoincrement": false,
869
- "default": true
870
- },
871
- "priority": {
872
- "name": "priority",
873
- "type": "integer",
874
- "primaryKey": false,
875
- "notNull": true,
876
- "autoincrement": false,
877
- "default": 0
878
- },
879
- "config": {
880
- "name": "config",
881
- "type": "text",
882
- "primaryKey": false,
883
- "notNull": false,
884
- "autoincrement": false
885
- },
886
- "created_at": {
887
- "name": "created_at",
888
- "type": "text",
889
- "primaryKey": false,
890
- "notNull": true,
891
- "autoincrement": false
892
- },
893
- "updated_at": {
894
- "name": "updated_at",
895
- "type": "text",
896
- "primaryKey": false,
897
- "notNull": true,
898
- "autoincrement": false
899
- }
900
- },
901
- "indexes": {
902
- "skill_bindings_source_brain_name_idx": {
903
- "name": "skill_bindings_source_brain_name_idx",
904
- "columns": [
905
- "source",
906
- "brain_name",
907
- "skill_name"
908
- ],
909
- "isUnique": true
910
- }
911
- },
912
- "foreignKeys": {},
913
- "compositePrimaryKeys": {},
914
- "uniqueConstraints": {},
915
- "checkConstraints": {}
916
- },
917
- "skill_drafts": {
918
- "name": "skill_drafts",
919
- "columns": {
920
- "id": {
921
- "name": "id",
922
- "type": "integer",
923
- "primaryKey": true,
924
- "notNull": true,
925
- "autoincrement": true
926
- },
927
- "proposed_name": {
928
- "name": "proposed_name",
929
- "type": "text",
930
- "primaryKey": false,
931
- "notNull": true,
932
- "autoincrement": false
933
- },
934
- "source": {
935
- "name": "source",
936
- "type": "text",
937
- "primaryKey": false,
938
- "notNull": true,
939
- "autoincrement": false
940
- },
941
- "body_markdown": {
942
- "name": "body_markdown",
943
- "type": "text",
944
- "primaryKey": false,
945
- "notNull": true,
946
- "autoincrement": false
947
- },
948
- "rationale": {
949
- "name": "rationale",
950
- "type": "text",
951
- "primaryKey": false,
952
- "notNull": true,
953
- "autoincrement": false,
954
- "default": "''"
955
- },
956
- "status": {
957
- "name": "status",
958
- "type": "text",
959
- "primaryKey": false,
960
- "notNull": true,
961
- "autoincrement": false,
962
- "default": "'pending'"
963
- },
964
- "created_at": {
965
- "name": "created_at",
966
- "type": "text",
967
- "primaryKey": false,
968
- "notNull": true,
969
- "autoincrement": false
970
- },
971
- "decided_at": {
972
- "name": "decided_at",
973
- "type": "text",
974
- "primaryKey": false,
975
- "notNull": false,
976
- "autoincrement": false
977
- },
978
- "decided_by": {
979
- "name": "decided_by",
980
- "type": "text",
981
- "primaryKey": false,
982
- "notNull": false,
983
- "autoincrement": false
984
- }
985
- },
986
- "indexes": {},
987
- "foreignKeys": {},
988
- "compositePrimaryKeys": {},
989
- "uniqueConstraints": {},
990
- "checkConstraints": {}
991
- },
992
- "worker_config": {
993
- "name": "worker_config",
994
- "columns": {
995
- "pk": {
996
- "name": "pk",
997
- "type": "text",
998
- "primaryKey": true,
999
- "notNull": true,
1000
- "autoincrement": false,
1001
- "default": "'default'"
1002
- },
1003
- "config_json": {
1004
- "name": "config_json",
1005
- "type": "text",
1006
- "primaryKey": false,
1007
- "notNull": true,
1008
- "autoincrement": false
1009
- },
1010
- "version": {
1011
- "name": "version",
1012
- "type": "integer",
1013
- "primaryKey": false,
1014
- "notNull": true,
1015
- "autoincrement": false,
1016
- "default": 1
1017
- },
1018
- "updated_at": {
1019
- "name": "updated_at",
1020
- "type": "text",
1021
- "primaryKey": false,
1022
- "notNull": true,
1023
- "autoincrement": false
1024
- },
1025
- "updated_by": {
1026
- "name": "updated_by",
1027
- "type": "text",
1028
- "primaryKey": false,
1029
- "notNull": false,
1030
- "autoincrement": false
1031
- }
1032
- },
1033
- "indexes": {},
1034
- "foreignKeys": {},
1035
- "compositePrimaryKeys": {},
1036
- "uniqueConstraints": {},
1037
- "checkConstraints": {}
1038
- },
1039
- "worker_identity": {
1040
- "name": "worker_identity",
1041
- "columns": {
1042
- "pk": {
1043
- "name": "pk",
1044
- "type": "text",
1045
- "primaryKey": true,
1046
- "notNull": true,
1047
- "autoincrement": false,
1048
- "default": "'default'"
1049
- },
1050
- "worker_id": {
1051
- "name": "worker_id",
1052
- "type": "text",
1053
- "primaryKey": false,
1054
- "notNull": true,
1055
- "autoincrement": false
1056
- },
1057
- "api_token_enc": {
1058
- "name": "api_token_enc",
1059
- "type": "text",
1060
- "primaryKey": false,
1061
- "notNull": true,
1062
- "autoincrement": false
1063
- },
1064
- "nonce": {
1065
- "name": "nonce",
1066
- "type": "text",
1067
- "primaryKey": false,
1068
- "notNull": true,
1069
- "autoincrement": false
1070
- },
1071
- "auth_tag": {
1072
- "name": "auth_tag",
1073
- "type": "text",
1074
- "primaryKey": false,
1075
- "notNull": true,
1076
- "autoincrement": false
1077
- },
1078
- "bootstrap_shown_at": {
1079
- "name": "bootstrap_shown_at",
1080
- "type": "text",
1081
- "primaryKey": false,
1082
- "notNull": true,
1083
- "autoincrement": false
1084
- },
1085
- "created_at": {
1086
- "name": "created_at",
1087
- "type": "text",
1088
- "primaryKey": false,
1089
- "notNull": true,
1090
- "autoincrement": false
1091
- },
1092
- "rotated_at": {
1093
- "name": "rotated_at",
1094
- "type": "text",
1095
- "primaryKey": false,
1096
- "notNull": false,
1097
- "autoincrement": false
1098
- }
1099
- },
1100
- "indexes": {
1101
- "worker_identity_worker_id_unique": {
1102
- "name": "worker_identity_worker_id_unique",
1103
- "columns": [
1104
- "worker_id"
1105
- ],
1106
- "isUnique": true
1107
- }
1108
- },
1109
- "foreignKeys": {},
1110
- "compositePrimaryKeys": {},
1111
- "uniqueConstraints": {},
1112
- "checkConstraints": {}
1113
- },
1114
- "worker_secrets": {
1115
- "name": "worker_secrets",
1116
- "columns": {
1117
- "id": {
1118
- "name": "id",
1119
- "type": "integer",
1120
- "primaryKey": true,
1121
- "notNull": true,
1122
- "autoincrement": true
1123
- },
1124
- "key": {
1125
- "name": "key",
1126
- "type": "text",
1127
- "primaryKey": false,
1128
- "notNull": true,
1129
- "autoincrement": false
1130
- },
1131
- "value_enc": {
1132
- "name": "value_enc",
1133
- "type": "text",
1134
- "primaryKey": false,
1135
- "notNull": true,
1136
- "autoincrement": false
1137
- },
1138
- "nonce": {
1139
- "name": "nonce",
1140
- "type": "text",
1141
- "primaryKey": false,
1142
- "notNull": true,
1143
- "autoincrement": false
1144
- },
1145
- "auth_tag": {
1146
- "name": "auth_tag",
1147
- "type": "text",
1148
- "primaryKey": false,
1149
- "notNull": true,
1150
- "autoincrement": false
1151
- },
1152
- "created_at": {
1153
- "name": "created_at",
1154
- "type": "text",
1155
- "primaryKey": false,
1156
- "notNull": true,
1157
- "autoincrement": false
1158
- },
1159
- "updated_at": {
1160
- "name": "updated_at",
1161
- "type": "text",
1162
- "primaryKey": false,
1163
- "notNull": true,
1164
- "autoincrement": false
1165
- }
1166
- },
1167
- "indexes": {
1168
- "worker_secrets_key_unique": {
1169
- "name": "worker_secrets_key_unique",
1170
- "columns": [
1171
- "key"
1172
- ],
1173
- "isUnique": true
1174
- }
1175
- },
1176
- "foreignKeys": {},
1177
- "compositePrimaryKeys": {},
1178
- "uniqueConstraints": {},
1179
- "checkConstraints": {}
1180
- }
1181
- },
1182
- "views": {},
1183
- "enums": {},
1184
- "_meta": {
1185
- "schemas": {},
1186
- "tables": {},
1187
- "columns": {}
1188
- },
1189
- "internal": {
1190
- "indexes": {}
1191
- }
1192
- }