@zonease/aiworker-cli 0.12.2 → 0.13.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.
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-ByOwFiyz.js +18 -0
  79. package/web/worker/assets/index-K-y56wrL.css +2 -0
  80. package/web/worker/assets/markdown-preview-DFe-rfff.js +29 -0
  81. package/web/worker/assets/people-workbench-V1Ajqfzv.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,1420 +0,0 @@
1
- {
2
- "version": "6",
3
- "dialect": "sqlite",
4
- "id": "6ef2c3cd-82a6-4558-9c28-2d4dd697f8a1",
5
- "prevId": "a3122433-70ae-4b3a-81d6-c748204116f6",
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_admission_decisions": {
82
- "name": "brain_admission_decisions",
83
- "columns": {
84
- "id": {
85
- "name": "id",
86
- "type": "integer",
87
- "primaryKey": true,
88
- "notNull": true,
89
- "autoincrement": true
90
- },
91
- "proposal_id": {
92
- "name": "proposal_id",
93
- "type": "text",
94
- "primaryKey": false,
95
- "notNull": true,
96
- "autoincrement": false
97
- },
98
- "decision": {
99
- "name": "decision",
100
- "type": "text",
101
- "primaryKey": false,
102
- "notNull": true,
103
- "autoincrement": false
104
- },
105
- "decided_by": {
106
- "name": "decided_by",
107
- "type": "text",
108
- "primaryKey": false,
109
- "notNull": true,
110
- "autoincrement": false
111
- },
112
- "decided_at": {
113
- "name": "decided_at",
114
- "type": "text",
115
- "primaryKey": false,
116
- "notNull": true,
117
- "autoincrement": false
118
- },
119
- "reason": {
120
- "name": "reason",
121
- "type": "text",
122
- "primaryKey": false,
123
- "notNull": false,
124
- "autoincrement": false
125
- },
126
- "applied_at": {
127
- "name": "applied_at",
128
- "type": "text",
129
- "primaryKey": false,
130
- "notNull": false,
131
- "autoincrement": false
132
- },
133
- "failure_reason": {
134
- "name": "failure_reason",
135
- "type": "text",
136
- "primaryKey": false,
137
- "notNull": false,
138
- "autoincrement": false
139
- }
140
- },
141
- "indexes": {
142
- "brain_admission_decisions_proposal_id_idx": {
143
- "name": "brain_admission_decisions_proposal_id_idx",
144
- "columns": [
145
- "proposal_id"
146
- ],
147
- "isUnique": false
148
- },
149
- "brain_admission_decisions_decided_at_idx": {
150
- "name": "brain_admission_decisions_decided_at_idx",
151
- "columns": [
152
- "decided_at"
153
- ],
154
- "isUnique": false
155
- }
156
- },
157
- "foreignKeys": {
158
- "brain_admission_decisions_proposal_id_brain_admission_proposals_id_fk": {
159
- "name": "brain_admission_decisions_proposal_id_brain_admission_proposals_id_fk",
160
- "tableFrom": "brain_admission_decisions",
161
- "tableTo": "brain_admission_proposals",
162
- "columnsFrom": [
163
- "proposal_id"
164
- ],
165
- "columnsTo": [
166
- "id"
167
- ],
168
- "onDelete": "cascade",
169
- "onUpdate": "no action"
170
- }
171
- },
172
- "compositePrimaryKeys": {},
173
- "uniqueConstraints": {},
174
- "checkConstraints": {}
175
- },
176
- "brain_admission_proposals": {
177
- "name": "brain_admission_proposals",
178
- "columns": {
179
- "id": {
180
- "name": "id",
181
- "type": "text",
182
- "primaryKey": true,
183
- "notNull": true,
184
- "autoincrement": false
185
- },
186
- "scope_id": {
187
- "name": "scope_id",
188
- "type": "text",
189
- "primaryKey": false,
190
- "notNull": false,
191
- "autoincrement": false
192
- },
193
- "soul_id": {
194
- "name": "soul_id",
195
- "type": "text",
196
- "primaryKey": false,
197
- "notNull": true,
198
- "autoincrement": false
199
- },
200
- "kind": {
201
- "name": "kind",
202
- "type": "text",
203
- "primaryKey": false,
204
- "notNull": true,
205
- "autoincrement": false
206
- },
207
- "target": {
208
- "name": "target",
209
- "type": "text",
210
- "primaryKey": false,
211
- "notNull": true,
212
- "autoincrement": false
213
- },
214
- "summary": {
215
- "name": "summary",
216
- "type": "text",
217
- "primaryKey": false,
218
- "notNull": true,
219
- "autoincrement": false
220
- },
221
- "evidence": {
222
- "name": "evidence",
223
- "type": "text",
224
- "primaryKey": false,
225
- "notNull": true,
226
- "autoincrement": false
227
- },
228
- "risk": {
229
- "name": "risk",
230
- "type": "text",
231
- "primaryKey": false,
232
- "notNull": true,
233
- "autoincrement": false,
234
- "default": "'high'"
235
- },
236
- "confidence": {
237
- "name": "confidence",
238
- "type": "real",
239
- "primaryKey": false,
240
- "notNull": true,
241
- "autoincrement": false
242
- },
243
- "rollback": {
244
- "name": "rollback",
245
- "type": "text",
246
- "primaryKey": false,
247
- "notNull": true,
248
- "autoincrement": false
249
- },
250
- "payload": {
251
- "name": "payload",
252
- "type": "text",
253
- "primaryKey": false,
254
- "notNull": false,
255
- "autoincrement": false
256
- },
257
- "status": {
258
- "name": "status",
259
- "type": "text",
260
- "primaryKey": false,
261
- "notNull": true,
262
- "autoincrement": false,
263
- "default": "'pending'"
264
- },
265
- "created_at": {
266
- "name": "created_at",
267
- "type": "text",
268
- "primaryKey": false,
269
- "notNull": true,
270
- "autoincrement": false
271
- },
272
- "updated_at": {
273
- "name": "updated_at",
274
- "type": "text",
275
- "primaryKey": false,
276
- "notNull": true,
277
- "autoincrement": false
278
- }
279
- },
280
- "indexes": {
281
- "brain_admission_proposals_status_kind_idx": {
282
- "name": "brain_admission_proposals_status_kind_idx",
283
- "columns": [
284
- "status",
285
- "kind"
286
- ],
287
- "isUnique": false
288
- },
289
- "brain_admission_proposals_scope_id_idx": {
290
- "name": "brain_admission_proposals_scope_id_idx",
291
- "columns": [
292
- "scope_id"
293
- ],
294
- "isUnique": false
295
- },
296
- "brain_admission_proposals_created_at_idx": {
297
- "name": "brain_admission_proposals_created_at_idx",
298
- "columns": [
299
- "created_at"
300
- ],
301
- "isUnique": false
302
- }
303
- },
304
- "foreignKeys": {},
305
- "compositePrimaryKeys": {},
306
- "uniqueConstraints": {},
307
- "checkConstraints": {}
308
- },
309
- "brain_artifacts": {
310
- "name": "brain_artifacts",
311
- "columns": {
312
- "id": {
313
- "name": "id",
314
- "type": "text",
315
- "primaryKey": true,
316
- "notNull": true,
317
- "autoincrement": false
318
- },
319
- "scope_id": {
320
- "name": "scope_id",
321
- "type": "text",
322
- "primaryKey": false,
323
- "notNull": false,
324
- "autoincrement": false
325
- },
326
- "type": {
327
- "name": "type",
328
- "type": "text",
329
- "primaryKey": false,
330
- "notNull": true,
331
- "autoincrement": false
332
- },
333
- "ref": {
334
- "name": "ref",
335
- "type": "text",
336
- "primaryKey": false,
337
- "notNull": true,
338
- "autoincrement": false
339
- },
340
- "hash": {
341
- "name": "hash",
342
- "type": "text",
343
- "primaryKey": false,
344
- "notNull": false,
345
- "autoincrement": false
346
- },
347
- "source": {
348
- "name": "source",
349
- "type": "text",
350
- "primaryKey": false,
351
- "notNull": true,
352
- "autoincrement": false
353
- },
354
- "sensitivity": {
355
- "name": "sensitivity",
356
- "type": "text",
357
- "primaryKey": false,
358
- "notNull": true,
359
- "autoincrement": false,
360
- "default": "'internal'"
361
- },
362
- "retention": {
363
- "name": "retention",
364
- "type": "text",
365
- "primaryKey": false,
366
- "notNull": false,
367
- "autoincrement": false
368
- },
369
- "status": {
370
- "name": "status",
371
- "type": "text",
372
- "primaryKey": false,
373
- "notNull": true,
374
- "autoincrement": false,
375
- "default": "'active'"
376
- },
377
- "summary": {
378
- "name": "summary",
379
- "type": "text",
380
- "primaryKey": false,
381
- "notNull": false,
382
- "autoincrement": false
383
- },
384
- "evidence_refs": {
385
- "name": "evidence_refs",
386
- "type": "text",
387
- "primaryKey": false,
388
- "notNull": true,
389
- "autoincrement": false
390
- },
391
- "metadata": {
392
- "name": "metadata",
393
- "type": "text",
394
- "primaryKey": false,
395
- "notNull": false,
396
- "autoincrement": false
397
- },
398
- "created_at": {
399
- "name": "created_at",
400
- "type": "text",
401
- "primaryKey": false,
402
- "notNull": true,
403
- "autoincrement": false
404
- },
405
- "updated_at": {
406
- "name": "updated_at",
407
- "type": "text",
408
- "primaryKey": false,
409
- "notNull": true,
410
- "autoincrement": false
411
- }
412
- },
413
- "indexes": {
414
- "brain_artifacts_scope_type_idx": {
415
- "name": "brain_artifacts_scope_type_idx",
416
- "columns": [
417
- "scope_id",
418
- "type"
419
- ],
420
- "isUnique": false
421
- },
422
- "brain_artifacts_status_type_idx": {
423
- "name": "brain_artifacts_status_type_idx",
424
- "columns": [
425
- "status",
426
- "type"
427
- ],
428
- "isUnique": false
429
- },
430
- "brain_artifacts_updated_at_idx": {
431
- "name": "brain_artifacts_updated_at_idx",
432
- "columns": [
433
- "updated_at"
434
- ],
435
- "isUnique": false
436
- }
437
- },
438
- "foreignKeys": {},
439
- "compositePrimaryKeys": {},
440
- "uniqueConstraints": {},
441
- "checkConstraints": {}
442
- },
443
- "conversations": {
444
- "name": "conversations",
445
- "columns": {
446
- "id": {
447
- "name": "id",
448
- "type": "text",
449
- "primaryKey": true,
450
- "notNull": true,
451
- "autoincrement": false
452
- },
453
- "task_id": {
454
- "name": "task_id",
455
- "type": "text",
456
- "primaryKey": false,
457
- "notNull": false,
458
- "autoincrement": false
459
- },
460
- "channel": {
461
- "name": "channel",
462
- "type": "text",
463
- "primaryKey": false,
464
- "notNull": true,
465
- "autoincrement": false
466
- },
467
- "chat_id": {
468
- "name": "chat_id",
469
- "type": "text",
470
- "primaryKey": false,
471
- "notNull": true,
472
- "autoincrement": false
473
- },
474
- "thread_id": {
475
- "name": "thread_id",
476
- "type": "text",
477
- "primaryKey": false,
478
- "notNull": false,
479
- "autoincrement": false
480
- },
481
- "status": {
482
- "name": "status",
483
- "type": "text",
484
- "primaryKey": false,
485
- "notNull": true,
486
- "autoincrement": false,
487
- "default": "'open'"
488
- },
489
- "summary": {
490
- "name": "summary",
491
- "type": "text",
492
- "primaryKey": false,
493
- "notNull": false,
494
- "autoincrement": false
495
- },
496
- "started_at": {
497
- "name": "started_at",
498
- "type": "text",
499
- "primaryKey": false,
500
- "notNull": true,
501
- "autoincrement": false
502
- },
503
- "last_active_at": {
504
- "name": "last_active_at",
505
- "type": "text",
506
- "primaryKey": false,
507
- "notNull": true,
508
- "autoincrement": false
509
- },
510
- "closed_at": {
511
- "name": "closed_at",
512
- "type": "text",
513
- "primaryKey": false,
514
- "notNull": false,
515
- "autoincrement": false
516
- }
517
- },
518
- "indexes": {
519
- "conversations_lookup_idx": {
520
- "name": "conversations_lookup_idx",
521
- "columns": [
522
- "channel",
523
- "chat_id",
524
- "thread_id",
525
- "status"
526
- ],
527
- "isUnique": false
528
- },
529
- "conversations_last_active_at_idx": {
530
- "name": "conversations_last_active_at_idx",
531
- "columns": [
532
- "last_active_at"
533
- ],
534
- "isUnique": false
535
- }
536
- },
537
- "foreignKeys": {
538
- "conversations_task_id_agent_tasks_id_fk": {
539
- "name": "conversations_task_id_agent_tasks_id_fk",
540
- "tableFrom": "conversations",
541
- "tableTo": "agent_tasks",
542
- "columnsFrom": [
543
- "task_id"
544
- ],
545
- "columnsTo": [
546
- "id"
547
- ],
548
- "onDelete": "no action",
549
- "onUpdate": "no action"
550
- }
551
- },
552
- "compositePrimaryKeys": {},
553
- "uniqueConstraints": {},
554
- "checkConstraints": {}
555
- },
556
- "cron_jobs": {
557
- "name": "cron_jobs",
558
- "columns": {
559
- "id": {
560
- "name": "id",
561
- "type": "text",
562
- "primaryKey": true,
563
- "notNull": true,
564
- "autoincrement": false
565
- },
566
- "expression": {
567
- "name": "expression",
568
- "type": "text",
569
- "primaryKey": false,
570
- "notNull": true,
571
- "autoincrement": false
572
- },
573
- "prompt": {
574
- "name": "prompt",
575
- "type": "text",
576
- "primaryKey": false,
577
- "notNull": true,
578
- "autoincrement": false
579
- },
580
- "channel": {
581
- "name": "channel",
582
- "type": "text",
583
- "primaryKey": false,
584
- "notNull": true,
585
- "autoincrement": false
586
- },
587
- "chat_id": {
588
- "name": "chat_id",
589
- "type": "text",
590
- "primaryKey": false,
591
- "notNull": true,
592
- "autoincrement": false
593
- },
594
- "account_id": {
595
- "name": "account_id",
596
- "type": "text",
597
- "primaryKey": false,
598
- "notNull": true,
599
- "autoincrement": false
600
- },
601
- "enabled": {
602
- "name": "enabled",
603
- "type": "integer",
604
- "primaryKey": false,
605
- "notNull": true,
606
- "autoincrement": false,
607
- "default": true
608
- },
609
- "last_run_at": {
610
- "name": "last_run_at",
611
- "type": "text",
612
- "primaryKey": false,
613
- "notNull": false,
614
- "autoincrement": false
615
- },
616
- "next_run_at": {
617
- "name": "next_run_at",
618
- "type": "text",
619
- "primaryKey": false,
620
- "notNull": false,
621
- "autoincrement": false
622
- },
623
- "created_at": {
624
- "name": "created_at",
625
- "type": "text",
626
- "primaryKey": false,
627
- "notNull": true,
628
- "autoincrement": false
629
- },
630
- "updated_at": {
631
- "name": "updated_at",
632
- "type": "text",
633
- "primaryKey": false,
634
- "notNull": true,
635
- "autoincrement": false
636
- }
637
- },
638
- "indexes": {
639
- "cron_jobs_due_idx": {
640
- "name": "cron_jobs_due_idx",
641
- "columns": [
642
- "enabled",
643
- "next_run_at"
644
- ],
645
- "isUnique": false
646
- }
647
- },
648
- "foreignKeys": {},
649
- "compositePrimaryKeys": {},
650
- "uniqueConstraints": {},
651
- "checkConstraints": {}
652
- },
653
- "evolution_observations": {
654
- "name": "evolution_observations",
655
- "columns": {
656
- "id": {
657
- "name": "id",
658
- "type": "integer",
659
- "primaryKey": true,
660
- "notNull": true,
661
- "autoincrement": true
662
- },
663
- "conversation_id": {
664
- "name": "conversation_id",
665
- "type": "text",
666
- "primaryKey": false,
667
- "notNull": false,
668
- "autoincrement": false
669
- },
670
- "kind": {
671
- "name": "kind",
672
- "type": "text",
673
- "primaryKey": false,
674
- "notNull": true,
675
- "autoincrement": false
676
- },
677
- "payload": {
678
- "name": "payload",
679
- "type": "text",
680
- "primaryKey": false,
681
- "notNull": true,
682
- "autoincrement": false
683
- },
684
- "noticed_at": {
685
- "name": "noticed_at",
686
- "type": "text",
687
- "primaryKey": false,
688
- "notNull": true,
689
- "autoincrement": false
690
- }
691
- },
692
- "indexes": {
693
- "evolution_observations_noticed_at_idx": {
694
- "name": "evolution_observations_noticed_at_idx",
695
- "columns": [
696
- "noticed_at"
697
- ],
698
- "isUnique": false
699
- }
700
- },
701
- "foreignKeys": {},
702
- "compositePrimaryKeys": {},
703
- "uniqueConstraints": {},
704
- "checkConstraints": {}
705
- },
706
- "execution_logs": {
707
- "name": "execution_logs",
708
- "columns": {
709
- "id": {
710
- "name": "id",
711
- "type": "integer",
712
- "primaryKey": true,
713
- "notNull": true,
714
- "autoincrement": true
715
- },
716
- "conversation_id": {
717
- "name": "conversation_id",
718
- "type": "text",
719
- "primaryKey": false,
720
- "notNull": false,
721
- "autoincrement": false
722
- },
723
- "tool_name": {
724
- "name": "tool_name",
725
- "type": "text",
726
- "primaryKey": false,
727
- "notNull": true,
728
- "autoincrement": false
729
- },
730
- "params": {
731
- "name": "params",
732
- "type": "text",
733
- "primaryKey": false,
734
- "notNull": false,
735
- "autoincrement": false
736
- },
737
- "result": {
738
- "name": "result",
739
- "type": "text",
740
- "primaryKey": false,
741
- "notNull": false,
742
- "autoincrement": false
743
- },
744
- "duration": {
745
- "name": "duration",
746
- "type": "integer",
747
- "primaryKey": false,
748
- "notNull": false,
749
- "autoincrement": false
750
- },
751
- "created_at": {
752
- "name": "created_at",
753
- "type": "text",
754
- "primaryKey": false,
755
- "notNull": true,
756
- "autoincrement": false
757
- }
758
- },
759
- "indexes": {
760
- "execution_logs_conversation_id_idx": {
761
- "name": "execution_logs_conversation_id_idx",
762
- "columns": [
763
- "conversation_id"
764
- ],
765
- "isUnique": false
766
- }
767
- },
768
- "foreignKeys": {},
769
- "compositePrimaryKeys": {},
770
- "uniqueConstraints": {},
771
- "checkConstraints": {}
772
- },
773
- "messages": {
774
- "name": "messages",
775
- "columns": {
776
- "id": {
777
- "name": "id",
778
- "type": "integer",
779
- "primaryKey": true,
780
- "notNull": true,
781
- "autoincrement": true
782
- },
783
- "conversation_id": {
784
- "name": "conversation_id",
785
- "type": "text",
786
- "primaryKey": false,
787
- "notNull": true,
788
- "autoincrement": false
789
- },
790
- "role": {
791
- "name": "role",
792
- "type": "text",
793
- "primaryKey": false,
794
- "notNull": true,
795
- "autoincrement": false
796
- },
797
- "content": {
798
- "name": "content",
799
- "type": "text",
800
- "primaryKey": false,
801
- "notNull": true,
802
- "autoincrement": false
803
- },
804
- "tool_calls": {
805
- "name": "tool_calls",
806
- "type": "text",
807
- "primaryKey": false,
808
- "notNull": false,
809
- "autoincrement": false
810
- },
811
- "tool_call_id": {
812
- "name": "tool_call_id",
813
- "type": "text",
814
- "primaryKey": false,
815
- "notNull": false,
816
- "autoincrement": false
817
- },
818
- "tokens_in": {
819
- "name": "tokens_in",
820
- "type": "integer",
821
- "primaryKey": false,
822
- "notNull": false,
823
- "autoincrement": false
824
- },
825
- "tokens_out": {
826
- "name": "tokens_out",
827
- "type": "integer",
828
- "primaryKey": false,
829
- "notNull": false,
830
- "autoincrement": false
831
- },
832
- "rich_metadata": {
833
- "name": "rich_metadata",
834
- "type": "text",
835
- "primaryKey": false,
836
- "notNull": false,
837
- "autoincrement": false
838
- },
839
- "created_at": {
840
- "name": "created_at",
841
- "type": "text",
842
- "primaryKey": false,
843
- "notNull": true,
844
- "autoincrement": false
845
- }
846
- },
847
- "indexes": {
848
- "messages_conversation_id_idx": {
849
- "name": "messages_conversation_id_idx",
850
- "columns": [
851
- "conversation_id"
852
- ],
853
- "isUnique": false
854
- }
855
- },
856
- "foreignKeys": {
857
- "messages_conversation_id_conversations_id_fk": {
858
- "name": "messages_conversation_id_conversations_id_fk",
859
- "tableFrom": "messages",
860
- "tableTo": "conversations",
861
- "columnsFrom": [
862
- "conversation_id"
863
- ],
864
- "columnsTo": [
865
- "id"
866
- ],
867
- "onDelete": "cascade",
868
- "onUpdate": "no action"
869
- }
870
- },
871
- "compositePrimaryKeys": {},
872
- "uniqueConstraints": {},
873
- "checkConstraints": {}
874
- },
875
- "session_entries": {
876
- "name": "session_entries",
877
- "columns": {
878
- "session_key": {
879
- "name": "session_key",
880
- "type": "text",
881
- "primaryKey": true,
882
- "notNull": true,
883
- "autoincrement": false
884
- },
885
- "current_conversation_id": {
886
- "name": "current_conversation_id",
887
- "type": "text",
888
- "primaryKey": false,
889
- "notNull": true,
890
- "autoincrement": false
891
- },
892
- "channel": {
893
- "name": "channel",
894
- "type": "text",
895
- "primaryKey": false,
896
- "notNull": true,
897
- "autoincrement": false
898
- },
899
- "chat_id": {
900
- "name": "chat_id",
901
- "type": "text",
902
- "primaryKey": false,
903
- "notNull": true,
904
- "autoincrement": false
905
- },
906
- "thread_id": {
907
- "name": "thread_id",
908
- "type": "text",
909
- "primaryKey": false,
910
- "notNull": false,
911
- "autoincrement": false
912
- },
913
- "account_id": {
914
- "name": "account_id",
915
- "type": "text",
916
- "primaryKey": false,
917
- "notNull": false,
918
- "autoincrement": false
919
- },
920
- "status": {
921
- "name": "status",
922
- "type": "text",
923
- "primaryKey": false,
924
- "notNull": true,
925
- "autoincrement": false,
926
- "default": "'active'"
927
- },
928
- "session_started_at": {
929
- "name": "session_started_at",
930
- "type": "text",
931
- "primaryKey": false,
932
- "notNull": true,
933
- "autoincrement": false
934
- },
935
- "last_interaction_at": {
936
- "name": "last_interaction_at",
937
- "type": "text",
938
- "primaryKey": false,
939
- "notNull": true,
940
- "autoincrement": false
941
- },
942
- "reset_at": {
943
- "name": "reset_at",
944
- "type": "text",
945
- "primaryKey": false,
946
- "notNull": false,
947
- "autoincrement": false
948
- },
949
- "reset_reason": {
950
- "name": "reset_reason",
951
- "type": "text",
952
- "primaryKey": false,
953
- "notNull": false,
954
- "autoincrement": false
955
- },
956
- "context_tokens": {
957
- "name": "context_tokens",
958
- "type": "integer",
959
- "primaryKey": false,
960
- "notNull": true,
961
- "autoincrement": false,
962
- "default": 0
963
- },
964
- "total_tokens": {
965
- "name": "total_tokens",
966
- "type": "integer",
967
- "primaryKey": false,
968
- "notNull": true,
969
- "autoincrement": false,
970
- "default": 0
971
- },
972
- "total_tokens_fresh": {
973
- "name": "total_tokens_fresh",
974
- "type": "integer",
975
- "primaryKey": false,
976
- "notNull": true,
977
- "autoincrement": false,
978
- "default": 0
979
- },
980
- "compaction_count": {
981
- "name": "compaction_count",
982
- "type": "integer",
983
- "primaryKey": false,
984
- "notNull": true,
985
- "autoincrement": false,
986
- "default": 0
987
- },
988
- "memory_flush_at": {
989
- "name": "memory_flush_at",
990
- "type": "text",
991
- "primaryKey": false,
992
- "notNull": false,
993
- "autoincrement": false
994
- },
995
- "memory_flush_compaction_count": {
996
- "name": "memory_flush_compaction_count",
997
- "type": "integer",
998
- "primaryKey": false,
999
- "notNull": true,
1000
- "autoincrement": false,
1001
- "default": 0
1002
- },
1003
- "engine_bindings": {
1004
- "name": "engine_bindings",
1005
- "type": "text",
1006
- "primaryKey": false,
1007
- "notNull": true,
1008
- "autoincrement": false
1009
- },
1010
- "created_at": {
1011
- "name": "created_at",
1012
- "type": "text",
1013
- "primaryKey": false,
1014
- "notNull": true,
1015
- "autoincrement": false
1016
- },
1017
- "updated_at": {
1018
- "name": "updated_at",
1019
- "type": "text",
1020
- "primaryKey": false,
1021
- "notNull": true,
1022
- "autoincrement": false
1023
- }
1024
- },
1025
- "indexes": {
1026
- "session_entries_current_conversation_id_idx": {
1027
- "name": "session_entries_current_conversation_id_idx",
1028
- "columns": [
1029
- "current_conversation_id"
1030
- ],
1031
- "isUnique": false
1032
- },
1033
- "session_entries_last_interaction_at_idx": {
1034
- "name": "session_entries_last_interaction_at_idx",
1035
- "columns": [
1036
- "last_interaction_at"
1037
- ],
1038
- "isUnique": false
1039
- }
1040
- },
1041
- "foreignKeys": {
1042
- "session_entries_current_conversation_id_conversations_id_fk": {
1043
- "name": "session_entries_current_conversation_id_conversations_id_fk",
1044
- "tableFrom": "session_entries",
1045
- "tableTo": "conversations",
1046
- "columnsFrom": [
1047
- "current_conversation_id"
1048
- ],
1049
- "columnsTo": [
1050
- "id"
1051
- ],
1052
- "onDelete": "no action",
1053
- "onUpdate": "no action"
1054
- }
1055
- },
1056
- "compositePrimaryKeys": {},
1057
- "uniqueConstraints": {},
1058
- "checkConstraints": {}
1059
- },
1060
- "skill_bindings": {
1061
- "name": "skill_bindings",
1062
- "columns": {
1063
- "id": {
1064
- "name": "id",
1065
- "type": "integer",
1066
- "primaryKey": true,
1067
- "notNull": true,
1068
- "autoincrement": true
1069
- },
1070
- "source": {
1071
- "name": "source",
1072
- "type": "text",
1073
- "primaryKey": false,
1074
- "notNull": true,
1075
- "autoincrement": false
1076
- },
1077
- "brain_name": {
1078
- "name": "brain_name",
1079
- "type": "text",
1080
- "primaryKey": false,
1081
- "notNull": false,
1082
- "autoincrement": false
1083
- },
1084
- "skill_name": {
1085
- "name": "skill_name",
1086
- "type": "text",
1087
- "primaryKey": false,
1088
- "notNull": true,
1089
- "autoincrement": false
1090
- },
1091
- "enabled": {
1092
- "name": "enabled",
1093
- "type": "integer",
1094
- "primaryKey": false,
1095
- "notNull": true,
1096
- "autoincrement": false,
1097
- "default": true
1098
- },
1099
- "priority": {
1100
- "name": "priority",
1101
- "type": "integer",
1102
- "primaryKey": false,
1103
- "notNull": true,
1104
- "autoincrement": false,
1105
- "default": 0
1106
- },
1107
- "config": {
1108
- "name": "config",
1109
- "type": "text",
1110
- "primaryKey": false,
1111
- "notNull": false,
1112
- "autoincrement": false
1113
- },
1114
- "created_at": {
1115
- "name": "created_at",
1116
- "type": "text",
1117
- "primaryKey": false,
1118
- "notNull": true,
1119
- "autoincrement": false
1120
- },
1121
- "updated_at": {
1122
- "name": "updated_at",
1123
- "type": "text",
1124
- "primaryKey": false,
1125
- "notNull": true,
1126
- "autoincrement": false
1127
- }
1128
- },
1129
- "indexes": {
1130
- "skill_bindings_source_brain_name_idx": {
1131
- "name": "skill_bindings_source_brain_name_idx",
1132
- "columns": [
1133
- "source",
1134
- "brain_name",
1135
- "skill_name"
1136
- ],
1137
- "isUnique": true
1138
- }
1139
- },
1140
- "foreignKeys": {},
1141
- "compositePrimaryKeys": {},
1142
- "uniqueConstraints": {},
1143
- "checkConstraints": {}
1144
- },
1145
- "skill_drafts": {
1146
- "name": "skill_drafts",
1147
- "columns": {
1148
- "id": {
1149
- "name": "id",
1150
- "type": "integer",
1151
- "primaryKey": true,
1152
- "notNull": true,
1153
- "autoincrement": true
1154
- },
1155
- "proposed_name": {
1156
- "name": "proposed_name",
1157
- "type": "text",
1158
- "primaryKey": false,
1159
- "notNull": true,
1160
- "autoincrement": false
1161
- },
1162
- "source": {
1163
- "name": "source",
1164
- "type": "text",
1165
- "primaryKey": false,
1166
- "notNull": true,
1167
- "autoincrement": false
1168
- },
1169
- "body_markdown": {
1170
- "name": "body_markdown",
1171
- "type": "text",
1172
- "primaryKey": false,
1173
- "notNull": true,
1174
- "autoincrement": false
1175
- },
1176
- "rationale": {
1177
- "name": "rationale",
1178
- "type": "text",
1179
- "primaryKey": false,
1180
- "notNull": true,
1181
- "autoincrement": false,
1182
- "default": "''"
1183
- },
1184
- "status": {
1185
- "name": "status",
1186
- "type": "text",
1187
- "primaryKey": false,
1188
- "notNull": true,
1189
- "autoincrement": false,
1190
- "default": "'pending'"
1191
- },
1192
- "created_at": {
1193
- "name": "created_at",
1194
- "type": "text",
1195
- "primaryKey": false,
1196
- "notNull": true,
1197
- "autoincrement": false
1198
- },
1199
- "decided_at": {
1200
- "name": "decided_at",
1201
- "type": "text",
1202
- "primaryKey": false,
1203
- "notNull": false,
1204
- "autoincrement": false
1205
- },
1206
- "decided_by": {
1207
- "name": "decided_by",
1208
- "type": "text",
1209
- "primaryKey": false,
1210
- "notNull": false,
1211
- "autoincrement": false
1212
- }
1213
- },
1214
- "indexes": {},
1215
- "foreignKeys": {},
1216
- "compositePrimaryKeys": {},
1217
- "uniqueConstraints": {},
1218
- "checkConstraints": {}
1219
- },
1220
- "worker_config": {
1221
- "name": "worker_config",
1222
- "columns": {
1223
- "pk": {
1224
- "name": "pk",
1225
- "type": "text",
1226
- "primaryKey": true,
1227
- "notNull": true,
1228
- "autoincrement": false,
1229
- "default": "'default'"
1230
- },
1231
- "config_json": {
1232
- "name": "config_json",
1233
- "type": "text",
1234
- "primaryKey": false,
1235
- "notNull": true,
1236
- "autoincrement": false
1237
- },
1238
- "version": {
1239
- "name": "version",
1240
- "type": "integer",
1241
- "primaryKey": false,
1242
- "notNull": true,
1243
- "autoincrement": false,
1244
- "default": 1
1245
- },
1246
- "updated_at": {
1247
- "name": "updated_at",
1248
- "type": "text",
1249
- "primaryKey": false,
1250
- "notNull": true,
1251
- "autoincrement": false
1252
- },
1253
- "updated_by": {
1254
- "name": "updated_by",
1255
- "type": "text",
1256
- "primaryKey": false,
1257
- "notNull": false,
1258
- "autoincrement": false
1259
- }
1260
- },
1261
- "indexes": {},
1262
- "foreignKeys": {},
1263
- "compositePrimaryKeys": {},
1264
- "uniqueConstraints": {},
1265
- "checkConstraints": {}
1266
- },
1267
- "worker_identity": {
1268
- "name": "worker_identity",
1269
- "columns": {
1270
- "pk": {
1271
- "name": "pk",
1272
- "type": "text",
1273
- "primaryKey": true,
1274
- "notNull": true,
1275
- "autoincrement": false,
1276
- "default": "'default'"
1277
- },
1278
- "worker_id": {
1279
- "name": "worker_id",
1280
- "type": "text",
1281
- "primaryKey": false,
1282
- "notNull": true,
1283
- "autoincrement": false
1284
- },
1285
- "api_token_enc": {
1286
- "name": "api_token_enc",
1287
- "type": "text",
1288
- "primaryKey": false,
1289
- "notNull": true,
1290
- "autoincrement": false
1291
- },
1292
- "nonce": {
1293
- "name": "nonce",
1294
- "type": "text",
1295
- "primaryKey": false,
1296
- "notNull": true,
1297
- "autoincrement": false
1298
- },
1299
- "auth_tag": {
1300
- "name": "auth_tag",
1301
- "type": "text",
1302
- "primaryKey": false,
1303
- "notNull": true,
1304
- "autoincrement": false
1305
- },
1306
- "bootstrap_shown_at": {
1307
- "name": "bootstrap_shown_at",
1308
- "type": "text",
1309
- "primaryKey": false,
1310
- "notNull": true,
1311
- "autoincrement": false
1312
- },
1313
- "created_at": {
1314
- "name": "created_at",
1315
- "type": "text",
1316
- "primaryKey": false,
1317
- "notNull": true,
1318
- "autoincrement": false
1319
- },
1320
- "rotated_at": {
1321
- "name": "rotated_at",
1322
- "type": "text",
1323
- "primaryKey": false,
1324
- "notNull": false,
1325
- "autoincrement": false
1326
- }
1327
- },
1328
- "indexes": {
1329
- "worker_identity_worker_id_unique": {
1330
- "name": "worker_identity_worker_id_unique",
1331
- "columns": [
1332
- "worker_id"
1333
- ],
1334
- "isUnique": true
1335
- }
1336
- },
1337
- "foreignKeys": {},
1338
- "compositePrimaryKeys": {},
1339
- "uniqueConstraints": {},
1340
- "checkConstraints": {}
1341
- },
1342
- "worker_secrets": {
1343
- "name": "worker_secrets",
1344
- "columns": {
1345
- "id": {
1346
- "name": "id",
1347
- "type": "integer",
1348
- "primaryKey": true,
1349
- "notNull": true,
1350
- "autoincrement": true
1351
- },
1352
- "key": {
1353
- "name": "key",
1354
- "type": "text",
1355
- "primaryKey": false,
1356
- "notNull": true,
1357
- "autoincrement": false
1358
- },
1359
- "value_enc": {
1360
- "name": "value_enc",
1361
- "type": "text",
1362
- "primaryKey": false,
1363
- "notNull": true,
1364
- "autoincrement": false
1365
- },
1366
- "nonce": {
1367
- "name": "nonce",
1368
- "type": "text",
1369
- "primaryKey": false,
1370
- "notNull": true,
1371
- "autoincrement": false
1372
- },
1373
- "auth_tag": {
1374
- "name": "auth_tag",
1375
- "type": "text",
1376
- "primaryKey": false,
1377
- "notNull": true,
1378
- "autoincrement": false
1379
- },
1380
- "created_at": {
1381
- "name": "created_at",
1382
- "type": "text",
1383
- "primaryKey": false,
1384
- "notNull": true,
1385
- "autoincrement": false
1386
- },
1387
- "updated_at": {
1388
- "name": "updated_at",
1389
- "type": "text",
1390
- "primaryKey": false,
1391
- "notNull": true,
1392
- "autoincrement": false
1393
- }
1394
- },
1395
- "indexes": {
1396
- "worker_secrets_key_unique": {
1397
- "name": "worker_secrets_key_unique",
1398
- "columns": [
1399
- "key"
1400
- ],
1401
- "isUnique": true
1402
- }
1403
- },
1404
- "foreignKeys": {},
1405
- "compositePrimaryKeys": {},
1406
- "uniqueConstraints": {},
1407
- "checkConstraints": {}
1408
- }
1409
- },
1410
- "views": {},
1411
- "enums": {},
1412
- "_meta": {
1413
- "schemas": {},
1414
- "tables": {},
1415
- "columns": {}
1416
- },
1417
- "internal": {
1418
- "indexes": {}
1419
- }
1420
- }