@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,1058 +0,0 @@
1
- {
2
- "version": "6",
3
- "dialect": "sqlite",
4
- "id": "3ffa652c-299c-4bc0-af3d-dd940bd10b1a",
5
- "prevId": "443428fd-77b8-41e0-807b-8eb63208b773",
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
- "conversations": {
82
- "name": "conversations",
83
- "columns": {
84
- "id": {
85
- "name": "id",
86
- "type": "text",
87
- "primaryKey": true,
88
- "notNull": true,
89
- "autoincrement": false
90
- },
91
- "task_id": {
92
- "name": "task_id",
93
- "type": "text",
94
- "primaryKey": false,
95
- "notNull": false,
96
- "autoincrement": false
97
- },
98
- "channel": {
99
- "name": "channel",
100
- "type": "text",
101
- "primaryKey": false,
102
- "notNull": true,
103
- "autoincrement": false
104
- },
105
- "chat_id": {
106
- "name": "chat_id",
107
- "type": "text",
108
- "primaryKey": false,
109
- "notNull": true,
110
- "autoincrement": false
111
- },
112
- "thread_id": {
113
- "name": "thread_id",
114
- "type": "text",
115
- "primaryKey": false,
116
- "notNull": false,
117
- "autoincrement": false
118
- },
119
- "status": {
120
- "name": "status",
121
- "type": "text",
122
- "primaryKey": false,
123
- "notNull": true,
124
- "autoincrement": false,
125
- "default": "'open'"
126
- },
127
- "summary": {
128
- "name": "summary",
129
- "type": "text",
130
- "primaryKey": false,
131
- "notNull": false,
132
- "autoincrement": false
133
- },
134
- "started_at": {
135
- "name": "started_at",
136
- "type": "text",
137
- "primaryKey": false,
138
- "notNull": true,
139
- "autoincrement": false
140
- },
141
- "last_active_at": {
142
- "name": "last_active_at",
143
- "type": "text",
144
- "primaryKey": false,
145
- "notNull": true,
146
- "autoincrement": false
147
- },
148
- "closed_at": {
149
- "name": "closed_at",
150
- "type": "text",
151
- "primaryKey": false,
152
- "notNull": false,
153
- "autoincrement": false
154
- }
155
- },
156
- "indexes": {
157
- "conversations_lookup_idx": {
158
- "name": "conversations_lookup_idx",
159
- "columns": [
160
- "channel",
161
- "chat_id",
162
- "thread_id",
163
- "status"
164
- ],
165
- "isUnique": false
166
- },
167
- "conversations_last_active_at_idx": {
168
- "name": "conversations_last_active_at_idx",
169
- "columns": [
170
- "last_active_at"
171
- ],
172
- "isUnique": false
173
- }
174
- },
175
- "foreignKeys": {
176
- "conversations_task_id_agent_tasks_id_fk": {
177
- "name": "conversations_task_id_agent_tasks_id_fk",
178
- "tableFrom": "conversations",
179
- "tableTo": "agent_tasks",
180
- "columnsFrom": [
181
- "task_id"
182
- ],
183
- "columnsTo": [
184
- "id"
185
- ],
186
- "onDelete": "no action",
187
- "onUpdate": "no action"
188
- }
189
- },
190
- "compositePrimaryKeys": {},
191
- "uniqueConstraints": {},
192
- "checkConstraints": {}
193
- },
194
- "cron_jobs": {
195
- "name": "cron_jobs",
196
- "columns": {
197
- "id": {
198
- "name": "id",
199
- "type": "text",
200
- "primaryKey": true,
201
- "notNull": true,
202
- "autoincrement": false
203
- },
204
- "expression": {
205
- "name": "expression",
206
- "type": "text",
207
- "primaryKey": false,
208
- "notNull": true,
209
- "autoincrement": false
210
- },
211
- "prompt": {
212
- "name": "prompt",
213
- "type": "text",
214
- "primaryKey": false,
215
- "notNull": true,
216
- "autoincrement": false
217
- },
218
- "channel": {
219
- "name": "channel",
220
- "type": "text",
221
- "primaryKey": false,
222
- "notNull": true,
223
- "autoincrement": false
224
- },
225
- "chat_id": {
226
- "name": "chat_id",
227
- "type": "text",
228
- "primaryKey": false,
229
- "notNull": true,
230
- "autoincrement": false
231
- },
232
- "account_id": {
233
- "name": "account_id",
234
- "type": "text",
235
- "primaryKey": false,
236
- "notNull": true,
237
- "autoincrement": false
238
- },
239
- "enabled": {
240
- "name": "enabled",
241
- "type": "integer",
242
- "primaryKey": false,
243
- "notNull": true,
244
- "autoincrement": false,
245
- "default": true
246
- },
247
- "last_run_at": {
248
- "name": "last_run_at",
249
- "type": "text",
250
- "primaryKey": false,
251
- "notNull": false,
252
- "autoincrement": false
253
- },
254
- "next_run_at": {
255
- "name": "next_run_at",
256
- "type": "text",
257
- "primaryKey": false,
258
- "notNull": false,
259
- "autoincrement": false
260
- },
261
- "created_at": {
262
- "name": "created_at",
263
- "type": "text",
264
- "primaryKey": false,
265
- "notNull": true,
266
- "autoincrement": false
267
- },
268
- "updated_at": {
269
- "name": "updated_at",
270
- "type": "text",
271
- "primaryKey": false,
272
- "notNull": true,
273
- "autoincrement": false
274
- }
275
- },
276
- "indexes": {
277
- "cron_jobs_due_idx": {
278
- "name": "cron_jobs_due_idx",
279
- "columns": [
280
- "enabled",
281
- "next_run_at"
282
- ],
283
- "isUnique": false
284
- }
285
- },
286
- "foreignKeys": {},
287
- "compositePrimaryKeys": {},
288
- "uniqueConstraints": {},
289
- "checkConstraints": {}
290
- },
291
- "evolution_observations": {
292
- "name": "evolution_observations",
293
- "columns": {
294
- "id": {
295
- "name": "id",
296
- "type": "integer",
297
- "primaryKey": true,
298
- "notNull": true,
299
- "autoincrement": true
300
- },
301
- "conversation_id": {
302
- "name": "conversation_id",
303
- "type": "text",
304
- "primaryKey": false,
305
- "notNull": false,
306
- "autoincrement": false
307
- },
308
- "kind": {
309
- "name": "kind",
310
- "type": "text",
311
- "primaryKey": false,
312
- "notNull": true,
313
- "autoincrement": false
314
- },
315
- "payload": {
316
- "name": "payload",
317
- "type": "text",
318
- "primaryKey": false,
319
- "notNull": true,
320
- "autoincrement": false
321
- },
322
- "noticed_at": {
323
- "name": "noticed_at",
324
- "type": "text",
325
- "primaryKey": false,
326
- "notNull": true,
327
- "autoincrement": false
328
- }
329
- },
330
- "indexes": {
331
- "evolution_observations_noticed_at_idx": {
332
- "name": "evolution_observations_noticed_at_idx",
333
- "columns": [
334
- "noticed_at"
335
- ],
336
- "isUnique": false
337
- }
338
- },
339
- "foreignKeys": {},
340
- "compositePrimaryKeys": {},
341
- "uniqueConstraints": {},
342
- "checkConstraints": {}
343
- },
344
- "execution_logs": {
345
- "name": "execution_logs",
346
- "columns": {
347
- "id": {
348
- "name": "id",
349
- "type": "integer",
350
- "primaryKey": true,
351
- "notNull": true,
352
- "autoincrement": true
353
- },
354
- "conversation_id": {
355
- "name": "conversation_id",
356
- "type": "text",
357
- "primaryKey": false,
358
- "notNull": false,
359
- "autoincrement": false
360
- },
361
- "tool_name": {
362
- "name": "tool_name",
363
- "type": "text",
364
- "primaryKey": false,
365
- "notNull": true,
366
- "autoincrement": false
367
- },
368
- "params": {
369
- "name": "params",
370
- "type": "text",
371
- "primaryKey": false,
372
- "notNull": false,
373
- "autoincrement": false
374
- },
375
- "result": {
376
- "name": "result",
377
- "type": "text",
378
- "primaryKey": false,
379
- "notNull": false,
380
- "autoincrement": false
381
- },
382
- "duration": {
383
- "name": "duration",
384
- "type": "integer",
385
- "primaryKey": false,
386
- "notNull": false,
387
- "autoincrement": false
388
- },
389
- "created_at": {
390
- "name": "created_at",
391
- "type": "text",
392
- "primaryKey": false,
393
- "notNull": true,
394
- "autoincrement": false
395
- }
396
- },
397
- "indexes": {
398
- "execution_logs_conversation_id_idx": {
399
- "name": "execution_logs_conversation_id_idx",
400
- "columns": [
401
- "conversation_id"
402
- ],
403
- "isUnique": false
404
- }
405
- },
406
- "foreignKeys": {},
407
- "compositePrimaryKeys": {},
408
- "uniqueConstraints": {},
409
- "checkConstraints": {}
410
- },
411
- "messages": {
412
- "name": "messages",
413
- "columns": {
414
- "id": {
415
- "name": "id",
416
- "type": "integer",
417
- "primaryKey": true,
418
- "notNull": true,
419
- "autoincrement": true
420
- },
421
- "conversation_id": {
422
- "name": "conversation_id",
423
- "type": "text",
424
- "primaryKey": false,
425
- "notNull": true,
426
- "autoincrement": false
427
- },
428
- "role": {
429
- "name": "role",
430
- "type": "text",
431
- "primaryKey": false,
432
- "notNull": true,
433
- "autoincrement": false
434
- },
435
- "content": {
436
- "name": "content",
437
- "type": "text",
438
- "primaryKey": false,
439
- "notNull": true,
440
- "autoincrement": false
441
- },
442
- "tool_calls": {
443
- "name": "tool_calls",
444
- "type": "text",
445
- "primaryKey": false,
446
- "notNull": false,
447
- "autoincrement": false
448
- },
449
- "tool_call_id": {
450
- "name": "tool_call_id",
451
- "type": "text",
452
- "primaryKey": false,
453
- "notNull": false,
454
- "autoincrement": false
455
- },
456
- "tokens_in": {
457
- "name": "tokens_in",
458
- "type": "integer",
459
- "primaryKey": false,
460
- "notNull": false,
461
- "autoincrement": false
462
- },
463
- "tokens_out": {
464
- "name": "tokens_out",
465
- "type": "integer",
466
- "primaryKey": false,
467
- "notNull": false,
468
- "autoincrement": false
469
- },
470
- "rich_metadata": {
471
- "name": "rich_metadata",
472
- "type": "text",
473
- "primaryKey": false,
474
- "notNull": false,
475
- "autoincrement": false
476
- },
477
- "created_at": {
478
- "name": "created_at",
479
- "type": "text",
480
- "primaryKey": false,
481
- "notNull": true,
482
- "autoincrement": false
483
- }
484
- },
485
- "indexes": {
486
- "messages_conversation_id_idx": {
487
- "name": "messages_conversation_id_idx",
488
- "columns": [
489
- "conversation_id"
490
- ],
491
- "isUnique": false
492
- }
493
- },
494
- "foreignKeys": {
495
- "messages_conversation_id_conversations_id_fk": {
496
- "name": "messages_conversation_id_conversations_id_fk",
497
- "tableFrom": "messages",
498
- "tableTo": "conversations",
499
- "columnsFrom": [
500
- "conversation_id"
501
- ],
502
- "columnsTo": [
503
- "id"
504
- ],
505
- "onDelete": "cascade",
506
- "onUpdate": "no action"
507
- }
508
- },
509
- "compositePrimaryKeys": {},
510
- "uniqueConstraints": {},
511
- "checkConstraints": {}
512
- },
513
- "session_entries": {
514
- "name": "session_entries",
515
- "columns": {
516
- "session_key": {
517
- "name": "session_key",
518
- "type": "text",
519
- "primaryKey": true,
520
- "notNull": true,
521
- "autoincrement": false
522
- },
523
- "current_conversation_id": {
524
- "name": "current_conversation_id",
525
- "type": "text",
526
- "primaryKey": false,
527
- "notNull": true,
528
- "autoincrement": false
529
- },
530
- "channel": {
531
- "name": "channel",
532
- "type": "text",
533
- "primaryKey": false,
534
- "notNull": true,
535
- "autoincrement": false
536
- },
537
- "chat_id": {
538
- "name": "chat_id",
539
- "type": "text",
540
- "primaryKey": false,
541
- "notNull": true,
542
- "autoincrement": false
543
- },
544
- "thread_id": {
545
- "name": "thread_id",
546
- "type": "text",
547
- "primaryKey": false,
548
- "notNull": false,
549
- "autoincrement": false
550
- },
551
- "account_id": {
552
- "name": "account_id",
553
- "type": "text",
554
- "primaryKey": false,
555
- "notNull": false,
556
- "autoincrement": false
557
- },
558
- "status": {
559
- "name": "status",
560
- "type": "text",
561
- "primaryKey": false,
562
- "notNull": true,
563
- "autoincrement": false,
564
- "default": "'active'"
565
- },
566
- "session_started_at": {
567
- "name": "session_started_at",
568
- "type": "text",
569
- "primaryKey": false,
570
- "notNull": true,
571
- "autoincrement": false
572
- },
573
- "last_interaction_at": {
574
- "name": "last_interaction_at",
575
- "type": "text",
576
- "primaryKey": false,
577
- "notNull": true,
578
- "autoincrement": false
579
- },
580
- "reset_at": {
581
- "name": "reset_at",
582
- "type": "text",
583
- "primaryKey": false,
584
- "notNull": false,
585
- "autoincrement": false
586
- },
587
- "reset_reason": {
588
- "name": "reset_reason",
589
- "type": "text",
590
- "primaryKey": false,
591
- "notNull": false,
592
- "autoincrement": false
593
- },
594
- "context_tokens": {
595
- "name": "context_tokens",
596
- "type": "integer",
597
- "primaryKey": false,
598
- "notNull": true,
599
- "autoincrement": false,
600
- "default": 0
601
- },
602
- "total_tokens": {
603
- "name": "total_tokens",
604
- "type": "integer",
605
- "primaryKey": false,
606
- "notNull": true,
607
- "autoincrement": false,
608
- "default": 0
609
- },
610
- "total_tokens_fresh": {
611
- "name": "total_tokens_fresh",
612
- "type": "integer",
613
- "primaryKey": false,
614
- "notNull": true,
615
- "autoincrement": false,
616
- "default": 0
617
- },
618
- "compaction_count": {
619
- "name": "compaction_count",
620
- "type": "integer",
621
- "primaryKey": false,
622
- "notNull": true,
623
- "autoincrement": false,
624
- "default": 0
625
- },
626
- "memory_flush_at": {
627
- "name": "memory_flush_at",
628
- "type": "text",
629
- "primaryKey": false,
630
- "notNull": false,
631
- "autoincrement": false
632
- },
633
- "memory_flush_compaction_count": {
634
- "name": "memory_flush_compaction_count",
635
- "type": "integer",
636
- "primaryKey": false,
637
- "notNull": true,
638
- "autoincrement": false,
639
- "default": 0
640
- },
641
- "engine_bindings": {
642
- "name": "engine_bindings",
643
- "type": "text",
644
- "primaryKey": false,
645
- "notNull": true,
646
- "autoincrement": false
647
- },
648
- "created_at": {
649
- "name": "created_at",
650
- "type": "text",
651
- "primaryKey": false,
652
- "notNull": true,
653
- "autoincrement": false
654
- },
655
- "updated_at": {
656
- "name": "updated_at",
657
- "type": "text",
658
- "primaryKey": false,
659
- "notNull": true,
660
- "autoincrement": false
661
- }
662
- },
663
- "indexes": {
664
- "session_entries_current_conversation_id_idx": {
665
- "name": "session_entries_current_conversation_id_idx",
666
- "columns": [
667
- "current_conversation_id"
668
- ],
669
- "isUnique": false
670
- },
671
- "session_entries_last_interaction_at_idx": {
672
- "name": "session_entries_last_interaction_at_idx",
673
- "columns": [
674
- "last_interaction_at"
675
- ],
676
- "isUnique": false
677
- }
678
- },
679
- "foreignKeys": {
680
- "session_entries_current_conversation_id_conversations_id_fk": {
681
- "name": "session_entries_current_conversation_id_conversations_id_fk",
682
- "tableFrom": "session_entries",
683
- "tableTo": "conversations",
684
- "columnsFrom": [
685
- "current_conversation_id"
686
- ],
687
- "columnsTo": [
688
- "id"
689
- ],
690
- "onDelete": "no action",
691
- "onUpdate": "no action"
692
- }
693
- },
694
- "compositePrimaryKeys": {},
695
- "uniqueConstraints": {},
696
- "checkConstraints": {}
697
- },
698
- "skill_bindings": {
699
- "name": "skill_bindings",
700
- "columns": {
701
- "id": {
702
- "name": "id",
703
- "type": "integer",
704
- "primaryKey": true,
705
- "notNull": true,
706
- "autoincrement": true
707
- },
708
- "source": {
709
- "name": "source",
710
- "type": "text",
711
- "primaryKey": false,
712
- "notNull": true,
713
- "autoincrement": false
714
- },
715
- "brain_name": {
716
- "name": "brain_name",
717
- "type": "text",
718
- "primaryKey": false,
719
- "notNull": false,
720
- "autoincrement": false
721
- },
722
- "skill_name": {
723
- "name": "skill_name",
724
- "type": "text",
725
- "primaryKey": false,
726
- "notNull": true,
727
- "autoincrement": false
728
- },
729
- "enabled": {
730
- "name": "enabled",
731
- "type": "integer",
732
- "primaryKey": false,
733
- "notNull": true,
734
- "autoincrement": false,
735
- "default": true
736
- },
737
- "priority": {
738
- "name": "priority",
739
- "type": "integer",
740
- "primaryKey": false,
741
- "notNull": true,
742
- "autoincrement": false,
743
- "default": 0
744
- },
745
- "config": {
746
- "name": "config",
747
- "type": "text",
748
- "primaryKey": false,
749
- "notNull": false,
750
- "autoincrement": false
751
- },
752
- "created_at": {
753
- "name": "created_at",
754
- "type": "text",
755
- "primaryKey": false,
756
- "notNull": true,
757
- "autoincrement": false
758
- },
759
- "updated_at": {
760
- "name": "updated_at",
761
- "type": "text",
762
- "primaryKey": false,
763
- "notNull": true,
764
- "autoincrement": false
765
- }
766
- },
767
- "indexes": {
768
- "skill_bindings_source_brain_name_idx": {
769
- "name": "skill_bindings_source_brain_name_idx",
770
- "columns": [
771
- "source",
772
- "brain_name",
773
- "skill_name"
774
- ],
775
- "isUnique": true
776
- }
777
- },
778
- "foreignKeys": {},
779
- "compositePrimaryKeys": {},
780
- "uniqueConstraints": {},
781
- "checkConstraints": {}
782
- },
783
- "skill_drafts": {
784
- "name": "skill_drafts",
785
- "columns": {
786
- "id": {
787
- "name": "id",
788
- "type": "integer",
789
- "primaryKey": true,
790
- "notNull": true,
791
- "autoincrement": true
792
- },
793
- "proposed_name": {
794
- "name": "proposed_name",
795
- "type": "text",
796
- "primaryKey": false,
797
- "notNull": true,
798
- "autoincrement": false
799
- },
800
- "source": {
801
- "name": "source",
802
- "type": "text",
803
- "primaryKey": false,
804
- "notNull": true,
805
- "autoincrement": false
806
- },
807
- "body_markdown": {
808
- "name": "body_markdown",
809
- "type": "text",
810
- "primaryKey": false,
811
- "notNull": true,
812
- "autoincrement": false
813
- },
814
- "rationale": {
815
- "name": "rationale",
816
- "type": "text",
817
- "primaryKey": false,
818
- "notNull": true,
819
- "autoincrement": false,
820
- "default": "''"
821
- },
822
- "status": {
823
- "name": "status",
824
- "type": "text",
825
- "primaryKey": false,
826
- "notNull": true,
827
- "autoincrement": false,
828
- "default": "'pending'"
829
- },
830
- "created_at": {
831
- "name": "created_at",
832
- "type": "text",
833
- "primaryKey": false,
834
- "notNull": true,
835
- "autoincrement": false
836
- },
837
- "decided_at": {
838
- "name": "decided_at",
839
- "type": "text",
840
- "primaryKey": false,
841
- "notNull": false,
842
- "autoincrement": false
843
- },
844
- "decided_by": {
845
- "name": "decided_by",
846
- "type": "text",
847
- "primaryKey": false,
848
- "notNull": false,
849
- "autoincrement": false
850
- }
851
- },
852
- "indexes": {},
853
- "foreignKeys": {},
854
- "compositePrimaryKeys": {},
855
- "uniqueConstraints": {},
856
- "checkConstraints": {}
857
- },
858
- "worker_config": {
859
- "name": "worker_config",
860
- "columns": {
861
- "pk": {
862
- "name": "pk",
863
- "type": "text",
864
- "primaryKey": true,
865
- "notNull": true,
866
- "autoincrement": false,
867
- "default": "'default'"
868
- },
869
- "config_json": {
870
- "name": "config_json",
871
- "type": "text",
872
- "primaryKey": false,
873
- "notNull": true,
874
- "autoincrement": false
875
- },
876
- "version": {
877
- "name": "version",
878
- "type": "integer",
879
- "primaryKey": false,
880
- "notNull": true,
881
- "autoincrement": false,
882
- "default": 1
883
- },
884
- "updated_at": {
885
- "name": "updated_at",
886
- "type": "text",
887
- "primaryKey": false,
888
- "notNull": true,
889
- "autoincrement": false
890
- },
891
- "updated_by": {
892
- "name": "updated_by",
893
- "type": "text",
894
- "primaryKey": false,
895
- "notNull": false,
896
- "autoincrement": false
897
- }
898
- },
899
- "indexes": {},
900
- "foreignKeys": {},
901
- "compositePrimaryKeys": {},
902
- "uniqueConstraints": {},
903
- "checkConstraints": {}
904
- },
905
- "worker_identity": {
906
- "name": "worker_identity",
907
- "columns": {
908
- "pk": {
909
- "name": "pk",
910
- "type": "text",
911
- "primaryKey": true,
912
- "notNull": true,
913
- "autoincrement": false,
914
- "default": "'default'"
915
- },
916
- "worker_id": {
917
- "name": "worker_id",
918
- "type": "text",
919
- "primaryKey": false,
920
- "notNull": true,
921
- "autoincrement": false
922
- },
923
- "api_token_enc": {
924
- "name": "api_token_enc",
925
- "type": "text",
926
- "primaryKey": false,
927
- "notNull": true,
928
- "autoincrement": false
929
- },
930
- "nonce": {
931
- "name": "nonce",
932
- "type": "text",
933
- "primaryKey": false,
934
- "notNull": true,
935
- "autoincrement": false
936
- },
937
- "auth_tag": {
938
- "name": "auth_tag",
939
- "type": "text",
940
- "primaryKey": false,
941
- "notNull": true,
942
- "autoincrement": false
943
- },
944
- "bootstrap_shown_at": {
945
- "name": "bootstrap_shown_at",
946
- "type": "text",
947
- "primaryKey": false,
948
- "notNull": true,
949
- "autoincrement": false
950
- },
951
- "created_at": {
952
- "name": "created_at",
953
- "type": "text",
954
- "primaryKey": false,
955
- "notNull": true,
956
- "autoincrement": false
957
- },
958
- "rotated_at": {
959
- "name": "rotated_at",
960
- "type": "text",
961
- "primaryKey": false,
962
- "notNull": false,
963
- "autoincrement": false
964
- }
965
- },
966
- "indexes": {
967
- "worker_identity_worker_id_unique": {
968
- "name": "worker_identity_worker_id_unique",
969
- "columns": [
970
- "worker_id"
971
- ],
972
- "isUnique": true
973
- }
974
- },
975
- "foreignKeys": {},
976
- "compositePrimaryKeys": {},
977
- "uniqueConstraints": {},
978
- "checkConstraints": {}
979
- },
980
- "worker_secrets": {
981
- "name": "worker_secrets",
982
- "columns": {
983
- "id": {
984
- "name": "id",
985
- "type": "integer",
986
- "primaryKey": true,
987
- "notNull": true,
988
- "autoincrement": true
989
- },
990
- "key": {
991
- "name": "key",
992
- "type": "text",
993
- "primaryKey": false,
994
- "notNull": true,
995
- "autoincrement": false
996
- },
997
- "value_enc": {
998
- "name": "value_enc",
999
- "type": "text",
1000
- "primaryKey": false,
1001
- "notNull": true,
1002
- "autoincrement": false
1003
- },
1004
- "nonce": {
1005
- "name": "nonce",
1006
- "type": "text",
1007
- "primaryKey": false,
1008
- "notNull": true,
1009
- "autoincrement": false
1010
- },
1011
- "auth_tag": {
1012
- "name": "auth_tag",
1013
- "type": "text",
1014
- "primaryKey": false,
1015
- "notNull": true,
1016
- "autoincrement": false
1017
- },
1018
- "created_at": {
1019
- "name": "created_at",
1020
- "type": "text",
1021
- "primaryKey": false,
1022
- "notNull": true,
1023
- "autoincrement": false
1024
- },
1025
- "updated_at": {
1026
- "name": "updated_at",
1027
- "type": "text",
1028
- "primaryKey": false,
1029
- "notNull": true,
1030
- "autoincrement": false
1031
- }
1032
- },
1033
- "indexes": {
1034
- "worker_secrets_key_unique": {
1035
- "name": "worker_secrets_key_unique",
1036
- "columns": [
1037
- "key"
1038
- ],
1039
- "isUnique": true
1040
- }
1041
- },
1042
- "foreignKeys": {},
1043
- "compositePrimaryKeys": {},
1044
- "uniqueConstraints": {},
1045
- "checkConstraints": {}
1046
- }
1047
- },
1048
- "views": {},
1049
- "enums": {},
1050
- "_meta": {
1051
- "schemas": {},
1052
- "tables": {},
1053
- "columns": {}
1054
- },
1055
- "internal": {
1056
- "indexes": {}
1057
- }
1058
- }