@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,11 +1,11 @@
1
1
  {
2
2
  "version": "6",
3
3
  "dialect": "sqlite",
4
- "id": "47185b92-db61-4024-92c8-2ca8997421bc",
5
- "prevId": "fa5efae7-f922-4a85-af18-3b705bb19e2f",
4
+ "id": "f9522fbc-d212-4ada-b64f-556c361b389b",
5
+ "prevId": "980f0ad5-8c76-43b5-b981-7773c4963cdc",
6
6
  "tables": {
7
- "agent_tasks": {
8
- "name": "agent_tasks",
7
+ "artifacts": {
8
+ "name": "artifacts",
9
9
  "columns": {
10
10
  "id": {
11
11
  "name": "id",
@@ -14,64 +14,172 @@
14
14
  "notNull": true,
15
15
  "autoincrement": false
16
16
  },
17
- "prompt": {
18
- "name": "prompt",
17
+ "workspace_id": {
18
+ "name": "workspace_id",
19
19
  "type": "text",
20
20
  "primaryKey": false,
21
21
  "notNull": true,
22
22
  "autoincrement": false
23
23
  },
24
- "status": {
25
- "name": "status",
24
+ "session_id": {
25
+ "name": "session_id",
26
26
  "type": "text",
27
27
  "primaryKey": false,
28
- "notNull": true,
28
+ "notNull": false,
29
29
  "autoincrement": false
30
30
  },
31
- "conversation_id": {
32
- "name": "conversation_id",
31
+ "turn_id": {
32
+ "name": "turn_id",
33
33
  "type": "text",
34
34
  "primaryKey": false,
35
35
  "notNull": false,
36
36
  "autoincrement": false
37
37
  },
38
- "created_at": {
39
- "name": "created_at",
38
+ "invocation_id": {
39
+ "name": "invocation_id",
40
+ "type": "text",
41
+ "primaryKey": false,
42
+ "notNull": false,
43
+ "autoincrement": false
44
+ },
45
+ "path": {
46
+ "name": "path",
40
47
  "type": "text",
41
48
  "primaryKey": false,
42
49
  "notNull": true,
43
50
  "autoincrement": false
44
51
  },
45
- "finished_at": {
46
- "name": "finished_at",
52
+ "kind": {
53
+ "name": "kind",
47
54
  "type": "text",
48
55
  "primaryKey": false,
49
- "notNull": false,
56
+ "notNull": true,
57
+ "autoincrement": false,
58
+ "default": "'file'"
59
+ },
60
+ "title": {
61
+ "name": "title",
62
+ "type": "text",
63
+ "primaryKey": false,
64
+ "notNull": true,
50
65
  "autoincrement": false
51
66
  },
52
- "result": {
53
- "name": "result",
67
+ "status": {
68
+ "name": "status",
54
69
  "type": "text",
55
70
  "primaryKey": false,
56
- "notNull": false,
71
+ "notNull": true,
72
+ "autoincrement": false,
73
+ "default": "'available'"
74
+ },
75
+ "metadata_json": {
76
+ "name": "metadata_json",
77
+ "type": "text",
78
+ "primaryKey": false,
79
+ "notNull": true,
57
80
  "autoincrement": false
58
81
  },
59
- "error": {
60
- "name": "error",
82
+ "created_at": {
83
+ "name": "created_at",
61
84
  "type": "text",
62
85
  "primaryKey": false,
63
- "notNull": false,
86
+ "notNull": true,
87
+ "autoincrement": false
88
+ },
89
+ "updated_at": {
90
+ "name": "updated_at",
91
+ "type": "text",
92
+ "primaryKey": false,
93
+ "notNull": true,
64
94
  "autoincrement": false
65
95
  }
66
96
  },
67
- "indexes": {},
68
- "foreignKeys": {},
97
+ "indexes": {
98
+ "artifacts_session_updated_at_idx": {
99
+ "name": "artifacts_session_updated_at_idx",
100
+ "columns": [
101
+ "session_id",
102
+ "updated_at"
103
+ ],
104
+ "isUnique": false
105
+ },
106
+ "artifacts_status_updated_at_idx": {
107
+ "name": "artifacts_status_updated_at_idx",
108
+ "columns": [
109
+ "status",
110
+ "updated_at"
111
+ ],
112
+ "isUnique": false
113
+ },
114
+ "artifacts_workspace_updated_at_idx": {
115
+ "name": "artifacts_workspace_updated_at_idx",
116
+ "columns": [
117
+ "workspace_id",
118
+ "updated_at"
119
+ ],
120
+ "isUnique": false
121
+ }
122
+ },
123
+ "foreignKeys": {
124
+ "artifacts_workspace_id_workspaces_id_fk": {
125
+ "name": "artifacts_workspace_id_workspaces_id_fk",
126
+ "tableFrom": "artifacts",
127
+ "tableTo": "workspaces",
128
+ "columnsFrom": [
129
+ "workspace_id"
130
+ ],
131
+ "columnsTo": [
132
+ "id"
133
+ ],
134
+ "onDelete": "cascade",
135
+ "onUpdate": "no action"
136
+ },
137
+ "artifacts_session_id_sessions_id_fk": {
138
+ "name": "artifacts_session_id_sessions_id_fk",
139
+ "tableFrom": "artifacts",
140
+ "tableTo": "sessions",
141
+ "columnsFrom": [
142
+ "session_id"
143
+ ],
144
+ "columnsTo": [
145
+ "id"
146
+ ],
147
+ "onDelete": "set null",
148
+ "onUpdate": "no action"
149
+ },
150
+ "artifacts_turn_id_turns_id_fk": {
151
+ "name": "artifacts_turn_id_turns_id_fk",
152
+ "tableFrom": "artifacts",
153
+ "tableTo": "turns",
154
+ "columnsFrom": [
155
+ "turn_id"
156
+ ],
157
+ "columnsTo": [
158
+ "id"
159
+ ],
160
+ "onDelete": "set null",
161
+ "onUpdate": "no action"
162
+ },
163
+ "artifacts_invocation_id_engine_invocations_id_fk": {
164
+ "name": "artifacts_invocation_id_engine_invocations_id_fk",
165
+ "tableFrom": "artifacts",
166
+ "tableTo": "engine_invocations",
167
+ "columnsFrom": [
168
+ "invocation_id"
169
+ ],
170
+ "columnsTo": [
171
+ "id"
172
+ ],
173
+ "onDelete": "set null",
174
+ "onUpdate": "no action"
175
+ }
176
+ },
69
177
  "compositePrimaryKeys": {},
70
178
  "uniqueConstraints": {},
71
179
  "checkConstraints": {}
72
180
  },
73
- "conversations": {
74
- "name": "conversations",
181
+ "engine_invocations": {
182
+ "name": "engine_invocations",
75
183
  "columns": {
76
184
  "id": {
77
185
  "name": "id",
@@ -80,29 +188,36 @@
80
188
  "notNull": true,
81
189
  "autoincrement": false
82
190
  },
83
- "task_id": {
84
- "name": "task_id",
191
+ "session_id": {
192
+ "name": "session_id",
85
193
  "type": "text",
86
194
  "primaryKey": false,
87
- "notNull": false,
195
+ "notNull": true,
88
196
  "autoincrement": false
89
197
  },
90
- "channel": {
91
- "name": "channel",
198
+ "turn_id": {
199
+ "name": "turn_id",
92
200
  "type": "text",
93
201
  "primaryKey": false,
94
202
  "notNull": true,
95
203
  "autoincrement": false
96
204
  },
97
- "chat_id": {
98
- "name": "chat_id",
205
+ "seq": {
206
+ "name": "seq",
207
+ "type": "integer",
208
+ "primaryKey": false,
209
+ "notNull": true,
210
+ "autoincrement": false
211
+ },
212
+ "engine_id": {
213
+ "name": "engine_id",
99
214
  "type": "text",
100
215
  "primaryKey": false,
101
216
  "notNull": true,
102
217
  "autoincrement": false
103
218
  },
104
- "thread_id": {
105
- "name": "thread_id",
219
+ "engine_command": {
220
+ "name": "engine_command",
106
221
  "type": "text",
107
222
  "primaryKey": false,
108
223
  "notNull": false,
@@ -114,7 +229,14 @@
114
229
  "primaryKey": false,
115
230
  "notNull": true,
116
231
  "autoincrement": false,
117
- "default": "'open'"
232
+ "default": "'queued'"
233
+ },
234
+ "prompt": {
235
+ "name": "prompt",
236
+ "type": "text",
237
+ "primaryKey": false,
238
+ "notNull": true,
239
+ "autoincrement": false
118
240
  },
119
241
  "summary": {
120
242
  "name": "summary",
@@ -123,41 +245,107 @@
123
245
  "notNull": false,
124
246
  "autoincrement": false
125
247
  },
248
+ "error": {
249
+ "name": "error",
250
+ "type": "text",
251
+ "primaryKey": false,
252
+ "notNull": false,
253
+ "autoincrement": false
254
+ },
255
+ "metadata_json": {
256
+ "name": "metadata_json",
257
+ "type": "text",
258
+ "primaryKey": false,
259
+ "notNull": true,
260
+ "autoincrement": false
261
+ },
126
262
  "started_at": {
127
263
  "name": "started_at",
128
264
  "type": "text",
129
265
  "primaryKey": false,
130
- "notNull": true,
266
+ "notNull": false,
267
+ "autoincrement": false
268
+ },
269
+ "finished_at": {
270
+ "name": "finished_at",
271
+ "type": "text",
272
+ "primaryKey": false,
273
+ "notNull": false,
131
274
  "autoincrement": false
132
275
  },
133
- "last_active_at": {
134
- "name": "last_active_at",
276
+ "created_at": {
277
+ "name": "created_at",
135
278
  "type": "text",
136
279
  "primaryKey": false,
137
280
  "notNull": true,
138
281
  "autoincrement": false
139
282
  },
140
- "closed_at": {
141
- "name": "closed_at",
283
+ "updated_at": {
284
+ "name": "updated_at",
142
285
  "type": "text",
143
286
  "primaryKey": false,
144
- "notNull": false,
287
+ "notNull": true,
145
288
  "autoincrement": false
146
289
  }
147
290
  },
148
- "indexes": {},
291
+ "indexes": {
292
+ "engine_invocations_engine_updated_at_idx": {
293
+ "name": "engine_invocations_engine_updated_at_idx",
294
+ "columns": [
295
+ "engine_id",
296
+ "updated_at"
297
+ ],
298
+ "isUnique": false
299
+ },
300
+ "engine_invocations_session_seq_idx": {
301
+ "name": "engine_invocations_session_seq_idx",
302
+ "columns": [
303
+ "session_id",
304
+ "seq"
305
+ ],
306
+ "isUnique": false
307
+ },
308
+ "engine_invocations_status_updated_at_idx": {
309
+ "name": "engine_invocations_status_updated_at_idx",
310
+ "columns": [
311
+ "status",
312
+ "updated_at"
313
+ ],
314
+ "isUnique": false
315
+ },
316
+ "engine_invocations_turn_idx": {
317
+ "name": "engine_invocations_turn_idx",
318
+ "columns": [
319
+ "turn_id"
320
+ ],
321
+ "isUnique": false
322
+ }
323
+ },
149
324
  "foreignKeys": {
150
- "conversations_task_id_agent_tasks_id_fk": {
151
- "name": "conversations_task_id_agent_tasks_id_fk",
152
- "tableFrom": "conversations",
153
- "tableTo": "agent_tasks",
325
+ "engine_invocations_session_id_sessions_id_fk": {
326
+ "name": "engine_invocations_session_id_sessions_id_fk",
327
+ "tableFrom": "engine_invocations",
328
+ "tableTo": "sessions",
329
+ "columnsFrom": [
330
+ "session_id"
331
+ ],
332
+ "columnsTo": [
333
+ "id"
334
+ ],
335
+ "onDelete": "cascade",
336
+ "onUpdate": "no action"
337
+ },
338
+ "engine_invocations_turn_id_turns_id_fk": {
339
+ "name": "engine_invocations_turn_id_turns_id_fk",
340
+ "tableFrom": "engine_invocations",
341
+ "tableTo": "turns",
154
342
  "columnsFrom": [
155
- "task_id"
343
+ "turn_id"
156
344
  ],
157
345
  "columnsTo": [
158
346
  "id"
159
347
  ],
160
- "onDelete": "no action",
348
+ "onDelete": "cascade",
161
349
  "onUpdate": "no action"
162
350
  }
163
351
  },
@@ -165,253 +353,826 @@
165
353
  "uniqueConstraints": {},
166
354
  "checkConstraints": {}
167
355
  },
168
- "evolution_observations": {
169
- "name": "evolution_observations",
356
+ "files": {
357
+ "name": "files",
170
358
  "columns": {
171
359
  "id": {
172
360
  "name": "id",
173
- "type": "integer",
361
+ "type": "text",
174
362
  "primaryKey": true,
175
363
  "notNull": true,
176
- "autoincrement": true
177
- },
178
- "conversation_id": {
179
- "name": "conversation_id",
180
- "type": "text",
181
- "primaryKey": false,
182
- "notNull": false,
183
364
  "autoincrement": false
184
365
  },
185
- "kind": {
186
- "name": "kind",
366
+ "workspace_id": {
367
+ "name": "workspace_id",
187
368
  "type": "text",
188
369
  "primaryKey": false,
189
370
  "notNull": true,
190
371
  "autoincrement": false
191
372
  },
192
- "payload": {
193
- "name": "payload",
373
+ "path": {
374
+ "name": "path",
194
375
  "type": "text",
195
376
  "primaryKey": false,
196
377
  "notNull": true,
197
378
  "autoincrement": false
198
379
  },
199
- "noticed_at": {
200
- "name": "noticed_at",
380
+ "kind": {
381
+ "name": "kind",
201
382
  "type": "text",
202
383
  "primaryKey": false,
203
384
  "notNull": true,
204
- "autoincrement": false
205
- }
206
- },
207
- "indexes": {},
208
- "foreignKeys": {},
209
- "compositePrimaryKeys": {},
210
- "uniqueConstraints": {},
211
- "checkConstraints": {}
212
- },
213
- "execution_logs": {
214
- "name": "execution_logs",
215
- "columns": {
216
- "id": {
217
- "name": "id",
218
- "type": "integer",
219
- "primaryKey": true,
220
- "notNull": true,
221
- "autoincrement": true
385
+ "autoincrement": false,
386
+ "default": "'file'"
222
387
  },
223
- "conversation_id": {
224
- "name": "conversation_id",
225
- "type": "text",
388
+ "size": {
389
+ "name": "size",
390
+ "type": "integer",
226
391
  "primaryKey": false,
227
392
  "notNull": false,
228
393
  "autoincrement": false
229
394
  },
230
- "tool_name": {
231
- "name": "tool_name",
232
- "type": "text",
395
+ "mtime": {
396
+ "name": "mtime",
397
+ "type": "integer",
233
398
  "primaryKey": false,
234
- "notNull": true,
399
+ "notNull": false,
235
400
  "autoincrement": false
236
401
  },
237
- "params": {
238
- "name": "params",
402
+ "hash": {
403
+ "name": "hash",
239
404
  "type": "text",
240
405
  "primaryKey": false,
241
406
  "notNull": false,
242
407
  "autoincrement": false
243
408
  },
244
- "result": {
245
- "name": "result",
409
+ "source": {
410
+ "name": "source",
246
411
  "type": "text",
247
412
  "primaryKey": false,
248
- "notNull": false,
249
- "autoincrement": false
413
+ "notNull": true,
414
+ "autoincrement": false,
415
+ "default": "'user'"
250
416
  },
251
- "duration": {
252
- "name": "duration",
253
- "type": "integer",
417
+ "created_at": {
418
+ "name": "created_at",
419
+ "type": "text",
254
420
  "primaryKey": false,
255
- "notNull": false,
421
+ "notNull": true,
256
422
  "autoincrement": false
257
423
  },
258
- "created_at": {
259
- "name": "created_at",
424
+ "updated_at": {
425
+ "name": "updated_at",
260
426
  "type": "text",
261
427
  "primaryKey": false,
262
428
  "notNull": true,
263
429
  "autoincrement": false
264
430
  }
265
431
  },
266
- "indexes": {},
267
- "foreignKeys": {},
432
+ "indexes": {
433
+ "files_kind_idx": {
434
+ "name": "files_kind_idx",
435
+ "columns": [
436
+ "kind"
437
+ ],
438
+ "isUnique": false
439
+ },
440
+ "files_workspace_path_idx": {
441
+ "name": "files_workspace_path_idx",
442
+ "columns": [
443
+ "workspace_id",
444
+ "path"
445
+ ],
446
+ "isUnique": true
447
+ },
448
+ "files_workspace_updated_at_idx": {
449
+ "name": "files_workspace_updated_at_idx",
450
+ "columns": [
451
+ "workspace_id",
452
+ "updated_at"
453
+ ],
454
+ "isUnique": false
455
+ }
456
+ },
457
+ "foreignKeys": {
458
+ "files_workspace_id_workspaces_id_fk": {
459
+ "name": "files_workspace_id_workspaces_id_fk",
460
+ "tableFrom": "files",
461
+ "tableTo": "workspaces",
462
+ "columnsFrom": [
463
+ "workspace_id"
464
+ ],
465
+ "columnsTo": [
466
+ "id"
467
+ ],
468
+ "onDelete": "cascade",
469
+ "onUpdate": "no action"
470
+ }
471
+ },
268
472
  "compositePrimaryKeys": {},
269
473
  "uniqueConstraints": {},
270
474
  "checkConstraints": {}
271
475
  },
272
- "messages": {
273
- "name": "messages",
476
+ "lessons": {
477
+ "name": "lessons",
274
478
  "columns": {
275
479
  "id": {
276
480
  "name": "id",
277
- "type": "integer",
481
+ "type": "text",
278
482
  "primaryKey": true,
279
483
  "notNull": true,
280
- "autoincrement": true
484
+ "autoincrement": false
281
485
  },
282
- "conversation_id": {
283
- "name": "conversation_id",
486
+ "workspace_id": {
487
+ "name": "workspace_id",
284
488
  "type": "text",
285
489
  "primaryKey": false,
286
490
  "notNull": true,
287
491
  "autoincrement": false
288
492
  },
289
- "role": {
290
- "name": "role",
493
+ "source_review_id": {
494
+ "name": "source_review_id",
291
495
  "type": "text",
292
496
  "primaryKey": false,
293
- "notNull": true,
497
+ "notNull": false,
294
498
  "autoincrement": false
295
499
  },
296
- "content": {
297
- "name": "content",
500
+ "statement": {
501
+ "name": "statement",
298
502
  "type": "text",
299
503
  "primaryKey": false,
300
504
  "notNull": true,
301
505
  "autoincrement": false
302
506
  },
303
- "tool_calls": {
304
- "name": "tool_calls",
507
+ "evidence_json": {
508
+ "name": "evidence_json",
305
509
  "type": "text",
306
510
  "primaryKey": false,
307
- "notNull": false,
511
+ "notNull": true,
308
512
  "autoincrement": false
309
513
  },
310
- "tool_call_id": {
311
- "name": "tool_call_id",
514
+ "status": {
515
+ "name": "status",
312
516
  "type": "text",
313
517
  "primaryKey": false,
314
- "notNull": false,
315
- "autoincrement": false
316
- },
317
- "tokens_in": {
318
- "name": "tokens_in",
319
- "type": "integer",
320
- "primaryKey": false,
321
- "notNull": false,
322
- "autoincrement": false
518
+ "notNull": true,
519
+ "autoincrement": false,
520
+ "default": "'proposed'"
323
521
  },
324
- "tokens_out": {
325
- "name": "tokens_out",
326
- "type": "integer",
522
+ "created_at": {
523
+ "name": "created_at",
524
+ "type": "text",
327
525
  "primaryKey": false,
328
- "notNull": false,
526
+ "notNull": true,
329
527
  "autoincrement": false
330
528
  },
331
- "rich_metadata": {
332
- "name": "rich_metadata",
529
+ "updated_at": {
530
+ "name": "updated_at",
531
+ "type": "text",
532
+ "primaryKey": false,
533
+ "notNull": true,
534
+ "autoincrement": false
535
+ }
536
+ },
537
+ "indexes": {
538
+ "lessons_status_updated_at_idx": {
539
+ "name": "lessons_status_updated_at_idx",
540
+ "columns": [
541
+ "status",
542
+ "updated_at"
543
+ ],
544
+ "isUnique": false
545
+ },
546
+ "lessons_workspace_updated_at_idx": {
547
+ "name": "lessons_workspace_updated_at_idx",
548
+ "columns": [
549
+ "workspace_id",
550
+ "updated_at"
551
+ ],
552
+ "isUnique": false
553
+ }
554
+ },
555
+ "foreignKeys": {
556
+ "lessons_workspace_id_workspaces_id_fk": {
557
+ "name": "lessons_workspace_id_workspaces_id_fk",
558
+ "tableFrom": "lessons",
559
+ "tableTo": "workspaces",
560
+ "columnsFrom": [
561
+ "workspace_id"
562
+ ],
563
+ "columnsTo": [
564
+ "id"
565
+ ],
566
+ "onDelete": "cascade",
567
+ "onUpdate": "no action"
568
+ },
569
+ "lessons_source_review_id_reviews_id_fk": {
570
+ "name": "lessons_source_review_id_reviews_id_fk",
571
+ "tableFrom": "lessons",
572
+ "tableTo": "reviews",
573
+ "columnsFrom": [
574
+ "source_review_id"
575
+ ],
576
+ "columnsTo": [
577
+ "id"
578
+ ],
579
+ "onDelete": "set null",
580
+ "onUpdate": "no action"
581
+ }
582
+ },
583
+ "compositePrimaryKeys": {},
584
+ "uniqueConstraints": {},
585
+ "checkConstraints": {}
586
+ },
587
+ "reviews": {
588
+ "name": "reviews",
589
+ "columns": {
590
+ "id": {
591
+ "name": "id",
592
+ "type": "text",
593
+ "primaryKey": true,
594
+ "notNull": true,
595
+ "autoincrement": false
596
+ },
597
+ "workspace_id": {
598
+ "name": "workspace_id",
599
+ "type": "text",
600
+ "primaryKey": false,
601
+ "notNull": true,
602
+ "autoincrement": false
603
+ },
604
+ "session_id": {
605
+ "name": "session_id",
606
+ "type": "text",
607
+ "primaryKey": false,
608
+ "notNull": false,
609
+ "autoincrement": false
610
+ },
611
+ "turn_id": {
612
+ "name": "turn_id",
613
+ "type": "text",
614
+ "primaryKey": false,
615
+ "notNull": false,
616
+ "autoincrement": false
617
+ },
618
+ "artifact_id": {
619
+ "name": "artifact_id",
620
+ "type": "text",
621
+ "primaryKey": false,
622
+ "notNull": false,
623
+ "autoincrement": false
624
+ },
625
+ "verdict": {
626
+ "name": "verdict",
627
+ "type": "text",
628
+ "primaryKey": false,
629
+ "notNull": true,
630
+ "autoincrement": false,
631
+ "default": "'needs_review'"
632
+ },
633
+ "findings_json": {
634
+ "name": "findings_json",
635
+ "type": "text",
636
+ "primaryKey": false,
637
+ "notNull": true,
638
+ "autoincrement": false
639
+ },
640
+ "risks_json": {
641
+ "name": "risks_json",
642
+ "type": "text",
643
+ "primaryKey": false,
644
+ "notNull": true,
645
+ "autoincrement": false
646
+ },
647
+ "created_at": {
648
+ "name": "created_at",
649
+ "type": "text",
650
+ "primaryKey": false,
651
+ "notNull": true,
652
+ "autoincrement": false
653
+ }
654
+ },
655
+ "indexes": {
656
+ "reviews_artifact_created_at_idx": {
657
+ "name": "reviews_artifact_created_at_idx",
658
+ "columns": [
659
+ "artifact_id",
660
+ "created_at"
661
+ ],
662
+ "isUnique": false
663
+ },
664
+ "reviews_session_created_at_idx": {
665
+ "name": "reviews_session_created_at_idx",
666
+ "columns": [
667
+ "session_id",
668
+ "created_at"
669
+ ],
670
+ "isUnique": false
671
+ },
672
+ "reviews_workspace_created_at_idx": {
673
+ "name": "reviews_workspace_created_at_idx",
674
+ "columns": [
675
+ "workspace_id",
676
+ "created_at"
677
+ ],
678
+ "isUnique": false
679
+ }
680
+ },
681
+ "foreignKeys": {
682
+ "reviews_workspace_id_workspaces_id_fk": {
683
+ "name": "reviews_workspace_id_workspaces_id_fk",
684
+ "tableFrom": "reviews",
685
+ "tableTo": "workspaces",
686
+ "columnsFrom": [
687
+ "workspace_id"
688
+ ],
689
+ "columnsTo": [
690
+ "id"
691
+ ],
692
+ "onDelete": "cascade",
693
+ "onUpdate": "no action"
694
+ },
695
+ "reviews_session_id_sessions_id_fk": {
696
+ "name": "reviews_session_id_sessions_id_fk",
697
+ "tableFrom": "reviews",
698
+ "tableTo": "sessions",
699
+ "columnsFrom": [
700
+ "session_id"
701
+ ],
702
+ "columnsTo": [
703
+ "id"
704
+ ],
705
+ "onDelete": "set null",
706
+ "onUpdate": "no action"
707
+ },
708
+ "reviews_turn_id_turns_id_fk": {
709
+ "name": "reviews_turn_id_turns_id_fk",
710
+ "tableFrom": "reviews",
711
+ "tableTo": "turns",
712
+ "columnsFrom": [
713
+ "turn_id"
714
+ ],
715
+ "columnsTo": [
716
+ "id"
717
+ ],
718
+ "onDelete": "set null",
719
+ "onUpdate": "no action"
720
+ },
721
+ "reviews_artifact_id_artifacts_id_fk": {
722
+ "name": "reviews_artifact_id_artifacts_id_fk",
723
+ "tableFrom": "reviews",
724
+ "tableTo": "artifacts",
725
+ "columnsFrom": [
726
+ "artifact_id"
727
+ ],
728
+ "columnsTo": [
729
+ "id"
730
+ ],
731
+ "onDelete": "set null",
732
+ "onUpdate": "no action"
733
+ }
734
+ },
735
+ "compositePrimaryKeys": {},
736
+ "uniqueConstraints": {},
737
+ "checkConstraints": {}
738
+ },
739
+ "session_events": {
740
+ "name": "session_events",
741
+ "columns": {
742
+ "id": {
743
+ "name": "id",
744
+ "type": "integer",
745
+ "primaryKey": true,
746
+ "notNull": true,
747
+ "autoincrement": true
748
+ },
749
+ "session_id": {
750
+ "name": "session_id",
751
+ "type": "text",
752
+ "primaryKey": false,
753
+ "notNull": true,
754
+ "autoincrement": false
755
+ },
756
+ "turn_id": {
757
+ "name": "turn_id",
758
+ "type": "text",
759
+ "primaryKey": false,
760
+ "notNull": false,
761
+ "autoincrement": false
762
+ },
763
+ "invocation_id": {
764
+ "name": "invocation_id",
765
+ "type": "text",
766
+ "primaryKey": false,
767
+ "notNull": false,
768
+ "autoincrement": false
769
+ },
770
+ "seq": {
771
+ "name": "seq",
772
+ "type": "integer",
773
+ "primaryKey": false,
774
+ "notNull": true,
775
+ "autoincrement": false
776
+ },
777
+ "type": {
778
+ "name": "type",
779
+ "type": "text",
780
+ "primaryKey": false,
781
+ "notNull": true,
782
+ "autoincrement": false
783
+ },
784
+ "payload_json": {
785
+ "name": "payload_json",
786
+ "type": "text",
787
+ "primaryKey": false,
788
+ "notNull": true,
789
+ "autoincrement": false
790
+ },
791
+ "created_at": {
792
+ "name": "created_at",
793
+ "type": "text",
794
+ "primaryKey": false,
795
+ "notNull": true,
796
+ "autoincrement": false
797
+ }
798
+ },
799
+ "indexes": {
800
+ "session_events_session_created_at_idx": {
801
+ "name": "session_events_session_created_at_idx",
802
+ "columns": [
803
+ "session_id",
804
+ "created_at"
805
+ ],
806
+ "isUnique": false
807
+ },
808
+ "session_events_session_seq_idx": {
809
+ "name": "session_events_session_seq_idx",
810
+ "columns": [
811
+ "session_id",
812
+ "seq"
813
+ ],
814
+ "isUnique": false
815
+ },
816
+ "session_events_session_seq_unique_idx": {
817
+ "name": "session_events_session_seq_unique_idx",
818
+ "columns": [
819
+ "session_id",
820
+ "seq"
821
+ ],
822
+ "isUnique": true
823
+ }
824
+ },
825
+ "foreignKeys": {
826
+ "session_events_session_id_sessions_id_fk": {
827
+ "name": "session_events_session_id_sessions_id_fk",
828
+ "tableFrom": "session_events",
829
+ "tableTo": "sessions",
830
+ "columnsFrom": [
831
+ "session_id"
832
+ ],
833
+ "columnsTo": [
834
+ "id"
835
+ ],
836
+ "onDelete": "cascade",
837
+ "onUpdate": "no action"
838
+ },
839
+ "session_events_turn_id_turns_id_fk": {
840
+ "name": "session_events_turn_id_turns_id_fk",
841
+ "tableFrom": "session_events",
842
+ "tableTo": "turns",
843
+ "columnsFrom": [
844
+ "turn_id"
845
+ ],
846
+ "columnsTo": [
847
+ "id"
848
+ ],
849
+ "onDelete": "set null",
850
+ "onUpdate": "no action"
851
+ },
852
+ "session_events_invocation_id_engine_invocations_id_fk": {
853
+ "name": "session_events_invocation_id_engine_invocations_id_fk",
854
+ "tableFrom": "session_events",
855
+ "tableTo": "engine_invocations",
856
+ "columnsFrom": [
857
+ "invocation_id"
858
+ ],
859
+ "columnsTo": [
860
+ "id"
861
+ ],
862
+ "onDelete": "set null",
863
+ "onUpdate": "no action"
864
+ }
865
+ },
866
+ "compositePrimaryKeys": {},
867
+ "uniqueConstraints": {},
868
+ "checkConstraints": {}
869
+ },
870
+ "sessions": {
871
+ "name": "sessions",
872
+ "columns": {
873
+ "id": {
874
+ "name": "id",
875
+ "type": "text",
876
+ "primaryKey": true,
877
+ "notNull": true,
878
+ "autoincrement": false
879
+ },
880
+ "worker_id": {
881
+ "name": "worker_id",
882
+ "type": "text",
883
+ "primaryKey": false,
884
+ "notNull": true,
885
+ "autoincrement": false
886
+ },
887
+ "workspace_id": {
888
+ "name": "workspace_id",
889
+ "type": "text",
890
+ "primaryKey": false,
891
+ "notNull": true,
892
+ "autoincrement": false
893
+ },
894
+ "capability_template_id": {
895
+ "name": "capability_template_id",
896
+ "type": "text",
897
+ "primaryKey": false,
898
+ "notNull": true,
899
+ "autoincrement": false
900
+ },
901
+ "title": {
902
+ "name": "title",
903
+ "type": "text",
904
+ "primaryKey": false,
905
+ "notNull": true,
906
+ "autoincrement": false
907
+ },
908
+ "context": {
909
+ "name": "context",
910
+ "type": "text",
911
+ "primaryKey": false,
912
+ "notNull": true,
913
+ "autoincrement": false,
914
+ "default": "''"
915
+ },
916
+ "status": {
917
+ "name": "status",
918
+ "type": "text",
919
+ "primaryKey": false,
920
+ "notNull": true,
921
+ "autoincrement": false,
922
+ "default": "'active'"
923
+ },
924
+ "metadata_json": {
925
+ "name": "metadata_json",
926
+ "type": "text",
927
+ "primaryKey": false,
928
+ "notNull": true,
929
+ "autoincrement": false
930
+ },
931
+ "started_at": {
932
+ "name": "started_at",
333
933
  "type": "text",
334
934
  "primaryKey": false,
335
935
  "notNull": false,
336
936
  "autoincrement": false
337
937
  },
338
- "created_at": {
339
- "name": "created_at",
938
+ "ended_at": {
939
+ "name": "ended_at",
940
+ "type": "text",
941
+ "primaryKey": false,
942
+ "notNull": false,
943
+ "autoincrement": false
944
+ },
945
+ "created_at": {
946
+ "name": "created_at",
947
+ "type": "text",
948
+ "primaryKey": false,
949
+ "notNull": true,
950
+ "autoincrement": false
951
+ },
952
+ "updated_at": {
953
+ "name": "updated_at",
954
+ "type": "text",
955
+ "primaryKey": false,
956
+ "notNull": true,
957
+ "autoincrement": false
958
+ }
959
+ },
960
+ "indexes": {
961
+ "sessions_capability_updated_at_idx": {
962
+ "name": "sessions_capability_updated_at_idx",
963
+ "columns": [
964
+ "capability_template_id",
965
+ "updated_at"
966
+ ],
967
+ "isUnique": false
968
+ },
969
+ "sessions_status_updated_at_idx": {
970
+ "name": "sessions_status_updated_at_idx",
971
+ "columns": [
972
+ "status",
973
+ "updated_at"
974
+ ],
975
+ "isUnique": false
976
+ },
977
+ "sessions_worker_updated_at_idx": {
978
+ "name": "sessions_worker_updated_at_idx",
979
+ "columns": [
980
+ "worker_id",
981
+ "updated_at"
982
+ ],
983
+ "isUnique": false
984
+ },
985
+ "sessions_workspace_updated_at_idx": {
986
+ "name": "sessions_workspace_updated_at_idx",
987
+ "columns": [
988
+ "workspace_id",
989
+ "updated_at"
990
+ ],
991
+ "isUnique": false
992
+ }
993
+ },
994
+ "foreignKeys": {
995
+ "sessions_worker_id_workers_id_fk": {
996
+ "name": "sessions_worker_id_workers_id_fk",
997
+ "tableFrom": "sessions",
998
+ "tableTo": "workers",
999
+ "columnsFrom": [
1000
+ "worker_id"
1001
+ ],
1002
+ "columnsTo": [
1003
+ "id"
1004
+ ],
1005
+ "onDelete": "cascade",
1006
+ "onUpdate": "no action"
1007
+ },
1008
+ "sessions_workspace_id_workspaces_id_fk": {
1009
+ "name": "sessions_workspace_id_workspaces_id_fk",
1010
+ "tableFrom": "sessions",
1011
+ "tableTo": "workspaces",
1012
+ "columnsFrom": [
1013
+ "workspace_id"
1014
+ ],
1015
+ "columnsTo": [
1016
+ "id"
1017
+ ],
1018
+ "onDelete": "cascade",
1019
+ "onUpdate": "no action"
1020
+ }
1021
+ },
1022
+ "compositePrimaryKeys": {},
1023
+ "uniqueConstraints": {},
1024
+ "checkConstraints": {}
1025
+ },
1026
+ "settings": {
1027
+ "name": "settings",
1028
+ "columns": {
1029
+ "key": {
1030
+ "name": "key",
1031
+ "type": "text",
1032
+ "primaryKey": true,
1033
+ "notNull": true,
1034
+ "autoincrement": false
1035
+ },
1036
+ "value_json": {
1037
+ "name": "value_json",
1038
+ "type": "text",
1039
+ "primaryKey": false,
1040
+ "notNull": true,
1041
+ "autoincrement": false
1042
+ },
1043
+ "updated_at": {
1044
+ "name": "updated_at",
1045
+ "type": "text",
1046
+ "primaryKey": false,
1047
+ "notNull": true,
1048
+ "autoincrement": false
1049
+ }
1050
+ },
1051
+ "indexes": {},
1052
+ "foreignKeys": {},
1053
+ "compositePrimaryKeys": {},
1054
+ "uniqueConstraints": {},
1055
+ "checkConstraints": {}
1056
+ },
1057
+ "soul_apps": {
1058
+ "name": "soul_apps",
1059
+ "columns": {
1060
+ "id": {
1061
+ "name": "id",
1062
+ "type": "text",
1063
+ "primaryKey": true,
1064
+ "notNull": true,
1065
+ "autoincrement": false
1066
+ },
1067
+ "name": {
1068
+ "name": "name",
1069
+ "type": "text",
1070
+ "primaryKey": false,
1071
+ "notNull": true,
1072
+ "autoincrement": false
1073
+ },
1074
+ "version": {
1075
+ "name": "version",
1076
+ "type": "text",
1077
+ "primaryKey": false,
1078
+ "notNull": true,
1079
+ "autoincrement": false
1080
+ },
1081
+ "protocol": {
1082
+ "name": "protocol",
1083
+ "type": "text",
1084
+ "primaryKey": false,
1085
+ "notNull": true,
1086
+ "autoincrement": false
1087
+ },
1088
+ "soul_id": {
1089
+ "name": "soul_id",
1090
+ "type": "text",
1091
+ "primaryKey": false,
1092
+ "notNull": true,
1093
+ "autoincrement": false
1094
+ },
1095
+ "status": {
1096
+ "name": "status",
1097
+ "type": "text",
1098
+ "primaryKey": false,
1099
+ "notNull": true,
1100
+ "autoincrement": false,
1101
+ "default": "'installed'"
1102
+ },
1103
+ "source_kind": {
1104
+ "name": "source_kind",
1105
+ "type": "text",
1106
+ "primaryKey": false,
1107
+ "notNull": true,
1108
+ "autoincrement": false
1109
+ },
1110
+ "source_ref": {
1111
+ "name": "source_ref",
1112
+ "type": "text",
1113
+ "primaryKey": false,
1114
+ "notNull": true,
1115
+ "autoincrement": false
1116
+ },
1117
+ "manifest_digest": {
1118
+ "name": "manifest_digest",
1119
+ "type": "text",
1120
+ "primaryKey": false,
1121
+ "notNull": true,
1122
+ "autoincrement": false
1123
+ },
1124
+ "manifest_json": {
1125
+ "name": "manifest_json",
1126
+ "type": "text",
1127
+ "primaryKey": false,
1128
+ "notNull": true,
1129
+ "autoincrement": false
1130
+ },
1131
+ "validation_issues_json": {
1132
+ "name": "validation_issues_json",
340
1133
  "type": "text",
341
1134
  "primaryKey": false,
342
1135
  "notNull": true,
343
1136
  "autoincrement": false
344
- }
345
- },
346
- "indexes": {},
347
- "foreignKeys": {
348
- "messages_conversation_id_conversations_id_fk": {
349
- "name": "messages_conversation_id_conversations_id_fk",
350
- "tableFrom": "messages",
351
- "tableTo": "conversations",
352
- "columnsFrom": [
353
- "conversation_id"
354
- ],
355
- "columnsTo": [
356
- "id"
357
- ],
358
- "onDelete": "cascade",
359
- "onUpdate": "no action"
360
- }
361
- },
362
- "compositePrimaryKeys": {},
363
- "uniqueConstraints": {},
364
- "checkConstraints": {}
365
- },
366
- "skill_bindings": {
367
- "name": "skill_bindings",
368
- "columns": {
369
- "id": {
370
- "name": "id",
371
- "type": "integer",
372
- "primaryKey": true,
373
- "notNull": true,
374
- "autoincrement": true
375
1137
  },
376
- "source": {
377
- "name": "source",
1138
+ "health_status": {
1139
+ "name": "health_status",
378
1140
  "type": "text",
379
1141
  "primaryKey": false,
380
1142
  "notNull": true,
381
- "autoincrement": false
1143
+ "autoincrement": false,
1144
+ "default": "'unknown'"
382
1145
  },
383
- "brain_name": {
384
- "name": "brain_name",
1146
+ "health_message": {
1147
+ "name": "health_message",
385
1148
  "type": "text",
386
1149
  "primaryKey": false,
387
1150
  "notNull": false,
388
1151
  "autoincrement": false
389
1152
  },
390
- "skill_name": {
391
- "name": "skill_name",
1153
+ "installed_at": {
1154
+ "name": "installed_at",
392
1155
  "type": "text",
393
1156
  "primaryKey": false,
394
1157
  "notNull": true,
395
1158
  "autoincrement": false
396
1159
  },
397
- "enabled": {
398
- "name": "enabled",
399
- "type": "integer",
1160
+ "enabled_at": {
1161
+ "name": "enabled_at",
1162
+ "type": "text",
400
1163
  "primaryKey": false,
401
- "notNull": true,
402
- "autoincrement": false,
403
- "default": true
1164
+ "notNull": false,
1165
+ "autoincrement": false
404
1166
  },
405
- "priority": {
406
- "name": "priority",
407
- "type": "integer",
1167
+ "disabled_at": {
1168
+ "name": "disabled_at",
1169
+ "type": "text",
408
1170
  "primaryKey": false,
409
- "notNull": true,
410
- "autoincrement": false,
411
- "default": 0
1171
+ "notNull": false,
1172
+ "autoincrement": false
412
1173
  },
413
- "config": {
414
- "name": "config",
1174
+ "last_healthcheck_at": {
1175
+ "name": "last_healthcheck_at",
415
1176
  "type": "text",
416
1177
  "primaryKey": false,
417
1178
  "notNull": false,
@@ -433,14 +1194,27 @@
433
1194
  }
434
1195
  },
435
1196
  "indexes": {
436
- "skill_bindings_source_brain_name_idx": {
437
- "name": "skill_bindings_source_brain_name_idx",
1197
+ "soul_apps_manifest_digest_idx": {
1198
+ "name": "soul_apps_manifest_digest_idx",
438
1199
  "columns": [
439
- "source",
440
- "brain_name",
441
- "skill_name"
1200
+ "manifest_digest"
442
1201
  ],
443
- "isUnique": true
1202
+ "isUnique": false
1203
+ },
1204
+ "soul_apps_soul_idx": {
1205
+ "name": "soul_apps_soul_idx",
1206
+ "columns": [
1207
+ "soul_id"
1208
+ ],
1209
+ "isUnique": false
1210
+ },
1211
+ "soul_apps_status_updated_at_idx": {
1212
+ "name": "soul_apps_status_updated_at_idx",
1213
+ "columns": [
1214
+ "status",
1215
+ "updated_at"
1216
+ ],
1217
+ "isUnique": false
444
1218
  }
445
1219
  },
446
1220
  "foreignKeys": {},
@@ -448,44 +1222,43 @@
448
1222
  "uniqueConstraints": {},
449
1223
  "checkConstraints": {}
450
1224
  },
451
- "skill_drafts": {
452
- "name": "skill_drafts",
1225
+ "turns": {
1226
+ "name": "turns",
453
1227
  "columns": {
454
1228
  "id": {
455
1229
  "name": "id",
456
- "type": "integer",
1230
+ "type": "text",
457
1231
  "primaryKey": true,
458
1232
  "notNull": true,
459
- "autoincrement": true
1233
+ "autoincrement": false
460
1234
  },
461
- "proposed_name": {
462
- "name": "proposed_name",
1235
+ "session_id": {
1236
+ "name": "session_id",
463
1237
  "type": "text",
464
1238
  "primaryKey": false,
465
1239
  "notNull": true,
466
1240
  "autoincrement": false
467
1241
  },
468
- "source": {
469
- "name": "source",
470
- "type": "text",
1242
+ "seq": {
1243
+ "name": "seq",
1244
+ "type": "integer",
471
1245
  "primaryKey": false,
472
1246
  "notNull": true,
473
1247
  "autoincrement": false
474
1248
  },
475
- "body_markdown": {
476
- "name": "body_markdown",
1249
+ "input": {
1250
+ "name": "input",
477
1251
  "type": "text",
478
1252
  "primaryKey": false,
479
1253
  "notNull": true,
480
1254
  "autoincrement": false
481
1255
  },
482
- "rationale": {
483
- "name": "rationale",
1256
+ "response": {
1257
+ "name": "response",
484
1258
  "type": "text",
485
1259
  "primaryKey": false,
486
- "notNull": true,
487
- "autoincrement": false,
488
- "default": "''"
1260
+ "notNull": false,
1261
+ "autoincrement": false
489
1262
  },
490
1263
  "status": {
491
1264
  "name": "status",
@@ -493,32 +1266,78 @@
493
1266
  "primaryKey": false,
494
1267
  "notNull": true,
495
1268
  "autoincrement": false,
496
- "default": "'pending'"
1269
+ "default": "'queued'"
497
1270
  },
498
- "created_at": {
499
- "name": "created_at",
1271
+ "error": {
1272
+ "name": "error",
1273
+ "type": "text",
1274
+ "primaryKey": false,
1275
+ "notNull": false,
1276
+ "autoincrement": false
1277
+ },
1278
+ "metadata_json": {
1279
+ "name": "metadata_json",
500
1280
  "type": "text",
501
1281
  "primaryKey": false,
502
1282
  "notNull": true,
503
1283
  "autoincrement": false
504
1284
  },
505
- "decided_at": {
506
- "name": "decided_at",
1285
+ "created_at": {
1286
+ "name": "created_at",
507
1287
  "type": "text",
508
1288
  "primaryKey": false,
509
- "notNull": false,
1289
+ "notNull": true,
510
1290
  "autoincrement": false
511
1291
  },
512
- "decided_by": {
513
- "name": "decided_by",
1292
+ "updated_at": {
1293
+ "name": "updated_at",
514
1294
  "type": "text",
515
1295
  "primaryKey": false,
516
- "notNull": false,
1296
+ "notNull": true,
517
1297
  "autoincrement": false
518
1298
  }
519
1299
  },
520
- "indexes": {},
521
- "foreignKeys": {},
1300
+ "indexes": {
1301
+ "turns_session_seq_idx": {
1302
+ "name": "turns_session_seq_idx",
1303
+ "columns": [
1304
+ "session_id",
1305
+ "seq"
1306
+ ],
1307
+ "isUnique": false
1308
+ },
1309
+ "turns_session_seq_unique_idx": {
1310
+ "name": "turns_session_seq_unique_idx",
1311
+ "columns": [
1312
+ "session_id",
1313
+ "seq"
1314
+ ],
1315
+ "isUnique": true
1316
+ },
1317
+ "turns_status_updated_at_idx": {
1318
+ "name": "turns_status_updated_at_idx",
1319
+ "columns": [
1320
+ "status",
1321
+ "updated_at"
1322
+ ],
1323
+ "isUnique": false
1324
+ }
1325
+ },
1326
+ "foreignKeys": {
1327
+ "turns_session_id_sessions_id_fk": {
1328
+ "name": "turns_session_id_sessions_id_fk",
1329
+ "tableFrom": "turns",
1330
+ "tableTo": "sessions",
1331
+ "columnsFrom": [
1332
+ "session_id"
1333
+ ],
1334
+ "columnsTo": [
1335
+ "id"
1336
+ ],
1337
+ "onDelete": "cascade",
1338
+ "onUpdate": "no action"
1339
+ }
1340
+ },
522
1341
  "compositePrimaryKeys": {},
523
1342
  "uniqueConstraints": {},
524
1343
  "checkConstraints": {}
@@ -711,6 +1530,209 @@
711
1530
  "compositePrimaryKeys": {},
712
1531
  "uniqueConstraints": {},
713
1532
  "checkConstraints": {}
1533
+ },
1534
+ "workers": {
1535
+ "name": "workers",
1536
+ "columns": {
1537
+ "id": {
1538
+ "name": "id",
1539
+ "type": "text",
1540
+ "primaryKey": true,
1541
+ "notNull": true,
1542
+ "autoincrement": false
1543
+ },
1544
+ "soul_id": {
1545
+ "name": "soul_id",
1546
+ "type": "text",
1547
+ "primaryKey": false,
1548
+ "notNull": true,
1549
+ "autoincrement": false
1550
+ },
1551
+ "name": {
1552
+ "name": "name",
1553
+ "type": "text",
1554
+ "primaryKey": false,
1555
+ "notNull": true,
1556
+ "autoincrement": false
1557
+ },
1558
+ "status": {
1559
+ "name": "status",
1560
+ "type": "text",
1561
+ "primaryKey": false,
1562
+ "notNull": true,
1563
+ "autoincrement": false,
1564
+ "default": "'active'"
1565
+ },
1566
+ "default_engine_id": {
1567
+ "name": "default_engine_id",
1568
+ "type": "text",
1569
+ "primaryKey": false,
1570
+ "notNull": false,
1571
+ "autoincrement": false
1572
+ },
1573
+ "metadata_json": {
1574
+ "name": "metadata_json",
1575
+ "type": "text",
1576
+ "primaryKey": false,
1577
+ "notNull": true,
1578
+ "autoincrement": false
1579
+ },
1580
+ "created_at": {
1581
+ "name": "created_at",
1582
+ "type": "text",
1583
+ "primaryKey": false,
1584
+ "notNull": true,
1585
+ "autoincrement": false
1586
+ },
1587
+ "updated_at": {
1588
+ "name": "updated_at",
1589
+ "type": "text",
1590
+ "primaryKey": false,
1591
+ "notNull": true,
1592
+ "autoincrement": false
1593
+ }
1594
+ },
1595
+ "indexes": {
1596
+ "workers_soul_idx": {
1597
+ "name": "workers_soul_idx",
1598
+ "columns": [
1599
+ "soul_id"
1600
+ ],
1601
+ "isUnique": false
1602
+ },
1603
+ "workers_status_updated_at_idx": {
1604
+ "name": "workers_status_updated_at_idx",
1605
+ "columns": [
1606
+ "status",
1607
+ "updated_at"
1608
+ ],
1609
+ "isUnique": false
1610
+ }
1611
+ },
1612
+ "foreignKeys": {},
1613
+ "compositePrimaryKeys": {},
1614
+ "uniqueConstraints": {},
1615
+ "checkConstraints": {}
1616
+ },
1617
+ "workspaces": {
1618
+ "name": "workspaces",
1619
+ "columns": {
1620
+ "id": {
1621
+ "name": "id",
1622
+ "type": "text",
1623
+ "primaryKey": true,
1624
+ "notNull": true,
1625
+ "autoincrement": false
1626
+ },
1627
+ "worker_id": {
1628
+ "name": "worker_id",
1629
+ "type": "text",
1630
+ "primaryKey": false,
1631
+ "notNull": true,
1632
+ "autoincrement": false
1633
+ },
1634
+ "name": {
1635
+ "name": "name",
1636
+ "type": "text",
1637
+ "primaryKey": false,
1638
+ "notNull": true,
1639
+ "autoincrement": false
1640
+ },
1641
+ "root_path": {
1642
+ "name": "root_path",
1643
+ "type": "text",
1644
+ "primaryKey": false,
1645
+ "notNull": true,
1646
+ "autoincrement": false
1647
+ },
1648
+ "type": {
1649
+ "name": "type",
1650
+ "type": "text",
1651
+ "primaryKey": false,
1652
+ "notNull": true,
1653
+ "autoincrement": false,
1654
+ "default": "'workspace'"
1655
+ },
1656
+ "status": {
1657
+ "name": "status",
1658
+ "type": "text",
1659
+ "primaryKey": false,
1660
+ "notNull": true,
1661
+ "autoincrement": false,
1662
+ "default": "'active'"
1663
+ },
1664
+ "source_pointers_json": {
1665
+ "name": "source_pointers_json",
1666
+ "type": "text",
1667
+ "primaryKey": false,
1668
+ "notNull": true,
1669
+ "autoincrement": false
1670
+ },
1671
+ "metadata_json": {
1672
+ "name": "metadata_json",
1673
+ "type": "text",
1674
+ "primaryKey": false,
1675
+ "notNull": true,
1676
+ "autoincrement": false
1677
+ },
1678
+ "created_at": {
1679
+ "name": "created_at",
1680
+ "type": "text",
1681
+ "primaryKey": false,
1682
+ "notNull": true,
1683
+ "autoincrement": false
1684
+ },
1685
+ "updated_at": {
1686
+ "name": "updated_at",
1687
+ "type": "text",
1688
+ "primaryKey": false,
1689
+ "notNull": true,
1690
+ "autoincrement": false
1691
+ }
1692
+ },
1693
+ "indexes": {
1694
+ "workspaces_root_path_idx": {
1695
+ "name": "workspaces_root_path_idx",
1696
+ "columns": [
1697
+ "root_path"
1698
+ ],
1699
+ "isUnique": true
1700
+ },
1701
+ "workspaces_status_updated_at_idx": {
1702
+ "name": "workspaces_status_updated_at_idx",
1703
+ "columns": [
1704
+ "status",
1705
+ "updated_at"
1706
+ ],
1707
+ "isUnique": false
1708
+ },
1709
+ "workspaces_worker_updated_at_idx": {
1710
+ "name": "workspaces_worker_updated_at_idx",
1711
+ "columns": [
1712
+ "worker_id",
1713
+ "updated_at"
1714
+ ],
1715
+ "isUnique": false
1716
+ }
1717
+ },
1718
+ "foreignKeys": {
1719
+ "workspaces_worker_id_workers_id_fk": {
1720
+ "name": "workspaces_worker_id_workers_id_fk",
1721
+ "tableFrom": "workspaces",
1722
+ "tableTo": "workers",
1723
+ "columnsFrom": [
1724
+ "worker_id"
1725
+ ],
1726
+ "columnsTo": [
1727
+ "id"
1728
+ ],
1729
+ "onDelete": "cascade",
1730
+ "onUpdate": "no action"
1731
+ }
1732
+ },
1733
+ "compositePrimaryKeys": {},
1734
+ "uniqueConstraints": {},
1735
+ "checkConstraints": {}
714
1736
  }
715
1737
  },
716
1738
  "views": {},