@covro/covro 0.8.1-dev.3 → 0.8.1-dev.5

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 (121) hide show
  1. package/README.md +2 -2
  2. package/README.zh-CN.md +2 -2
  3. package/dist/codex/adapter.js +7 -19
  4. package/dist/codex/adapter.js.map +2 -2
  5. package/dist/codex/mapping.js +1 -0
  6. package/dist/codex/mapping.js.map +2 -2
  7. package/dist/drizzle/0008_pending_user_messages.sql +12 -0
  8. package/dist/drizzle/0009_question_tracking.sql +15 -0
  9. package/dist/drizzle/meta/0008_snapshot.json +606 -0
  10. package/dist/drizzle/meta/0009_snapshot.json +698 -0
  11. package/dist/drizzle/meta/_journal.json +14 -0
  12. package/dist/server/db/operations.js +34 -3
  13. package/dist/server/db/operations.js.map +2 -2
  14. package/dist/server/db/question-tracking.js +83 -0
  15. package/dist/server/db/question-tracking.js.map +7 -0
  16. package/dist/server/db/schema.js +41 -0
  17. package/dist/server/db/schema.js.map +2 -2
  18. package/dist/server/http.js +7 -0
  19. package/dist/server/http.js.map +2 -2
  20. package/dist/server/projection.js +4 -1
  21. package/dist/server/projection.js.map +2 -2
  22. package/dist/server/service.js +156 -29
  23. package/dist/server/service.js.map +3 -3
  24. package/dist/server/snapshot.js +4 -0
  25. package/dist/server/snapshot.js.map +2 -2
  26. package/dist/shared/question-resolution.js +27 -0
  27. package/dist/shared/question-resolution.js.map +7 -0
  28. package/dist/shared/thread-attention.js +1 -1
  29. package/dist/shared/thread-attention.js.map +2 -2
  30. package/dist/shared/user-message.js +26 -0
  31. package/dist/shared/user-message.js.map +7 -0
  32. package/dist/shared/validation.js +8 -1
  33. package/dist/shared/validation.js.map +2 -2
  34. package/dist/web/assets/{abnfDiagram-WEYOIA3C-C0QnyqNd.js → abnfDiagram-WEYOIA3C-BO_RQeXN.js} +1 -1
  35. package/dist/web/assets/{arc-DlK1TXAl.js → arc-BrbjGKnJ.js} +1 -1
  36. package/dist/web/assets/{architecture-WOLXFQ4H-D-JMMs4D.js → architecture-WOLXFQ4H-CO5JiNWc.js} +1 -1
  37. package/dist/web/assets/{architectureDiagram-ZHVYKT53-DSI-eU_c.js → architectureDiagram-ZHVYKT53-VZ--7mt8.js} +1 -1
  38. package/dist/web/assets/{blockDiagram-RJAE7QA3-D3apsE0y.js → blockDiagram-RJAE7QA3-CFd3y32z.js} +1 -1
  39. package/dist/web/assets/{c4Diagram-XDPPPE54-CV9lupsD.js → c4Diagram-XDPPPE54-DAavEe0D.js} +1 -1
  40. package/dist/web/assets/channel-B6wPa8oJ.js +1 -0
  41. package/dist/web/assets/{chunk-2E7WHVMD-CndbUrrs.js → chunk-2E7WHVMD-DmIDdy_2.js} +1 -1
  42. package/dist/web/assets/{chunk-4EMNKR2T-dVEHP-LN.js → chunk-4EMNKR2T-Co0NPOlt.js} +1 -1
  43. package/dist/web/assets/{chunk-55XCU76K-CS7wNOAm.js → chunk-55XCU76K-Z9vyXWlz.js} +1 -1
  44. package/dist/web/assets/{chunk-7S6XSTFO-Bl2P04ut.js → chunk-7S6XSTFO-FtT06ZAY.js} +1 -1
  45. package/dist/web/assets/{chunk-AQDTSKZB-BPPo5iEd.js → chunk-AQDTSKZB-6ECeFeD7.js} +1 -1
  46. package/dist/web/assets/{chunk-DSNLSHJZ-YdcvH1wD.js → chunk-DSNLSHJZ-BwB4BSUm.js} +1 -1
  47. package/dist/web/assets/{chunk-HAGFOTED-zn-sYBst.js → chunk-HAGFOTED-DuK_RKqo.js} +1 -1
  48. package/dist/web/assets/{chunk-HNE4Q36P-CbN9Pv2N.js → chunk-HNE4Q36P-BGD3LccE.js} +1 -1
  49. package/dist/web/assets/{chunk-NQOKRVIF-Bkq32pDl.js → chunk-NQOKRVIF-d9_InO8B.js} +1 -1
  50. package/dist/web/assets/{chunk-UHW7PFBP-qVGiYjS0.js → chunk-UHW7PFBP-oyw-rnut.js} +1 -1
  51. package/dist/web/assets/{chunk-VQ5W62QI-DU7piROS.js → chunk-VQ5W62QI-CBtXwUMd.js} +1 -1
  52. package/dist/web/assets/{chunk-WQQL4CDK-WvwPd1wY.js → chunk-WQQL4CDK-C0yGAD8U.js} +1 -1
  53. package/dist/web/assets/{chunk-XXDRQBXY-CuDPEdzV.js → chunk-XXDRQBXY-CJoPDXBk.js} +1 -1
  54. package/dist/web/assets/{chunk-YZO67HFG-48QFsgYH.js → chunk-YZO67HFG-ClQ0H3pB.js} +1 -1
  55. package/dist/web/assets/{chunk-ZAUX2LTX-BO1ig1OF.js → chunk-ZAUX2LTX-Djwp7USo.js} +1 -1
  56. package/dist/web/assets/{chunk-ZCHMQSOR-DVZeqmws.js → chunk-ZCHMQSOR-B_XXu_RK.js} +1 -1
  57. package/dist/web/assets/{classDiagram-v2-4MYWR3UA-D7BkhGkQ.js → classDiagram-v2-4MYWR3UA-DTykvZXI.js} +1 -1
  58. package/dist/web/assets/{cose-bilkent-JH36ORCC-DXRdUuBj.js → cose-bilkent-JH36ORCC-C3noGEk8.js} +1 -1
  59. package/dist/web/assets/{cynefin-EF2NZ3EQ-BBnNE97R.js → cynefin-EF2NZ3EQ-Cu3p3KzN.js} +1 -1
  60. package/dist/web/assets/{cynefinDiagram-WF24UDRP-wgr6aImm.js → cynefinDiagram-WF24UDRP-CMJtiF5O.js} +1 -1
  61. package/dist/web/assets/{dagre-NK4GIZVX-CsybgXX3.js → dagre-NK4GIZVX-_gQW4c3R.js} +1 -1
  62. package/dist/web/assets/{diagram-CBK3MWTC-vA79ZB5L.js → diagram-CBK3MWTC-DQMdH7AV.js} +1 -1
  63. package/dist/web/assets/{diagram-I5XIIV2D-CbLbBDPI.js → diagram-I5XIIV2D-YBBLWFnG.js} +1 -1
  64. package/dist/web/assets/{diagram-ODIL2UCW-BRaufBHD.js → diagram-ODIL2UCW-CHXIVRf1.js} +1 -1
  65. package/dist/web/assets/{diagram-PFBEJUXE-D_wZutyI.js → diagram-PFBEJUXE-DDrYQuSn.js} +1 -1
  66. package/dist/web/assets/{diagram-RJA3I4VV-oCF08BO6.js → diagram-RJA3I4VV-T_QHVlBo.js} +1 -1
  67. package/dist/web/assets/{diagram-TYUNFSNR-CPTZQzbX.js → diagram-TYUNFSNR-CrttYzid.js} +1 -1
  68. package/dist/web/assets/{dist-maLQ4i5Q.js → dist-sxTkLBEW.js} +1 -1
  69. package/dist/web/assets/{ebnfDiagram-V4P3TTPT-XUuFYmm-.js → ebnfDiagram-V4P3TTPT-D5socIPN.js} +1 -1
  70. package/dist/web/assets/{elk-QONTBCTQ-DxYOwm6S.js → elk-QONTBCTQ-BnCDU5t4.js} +1 -1
  71. package/dist/web/assets/{erDiagram-KYQIGQAA-u2IbcKAR.js → erDiagram-KYQIGQAA-BneSJl0f.js} +1 -1
  72. package/dist/web/assets/{eventmodeling-K75KTNOO-CN9QS6Td.js → eventmodeling-K75KTNOO-DAa58bfp.js} +1 -1
  73. package/dist/web/assets/flowDiagram-IUGLLWBU-D5Kfq1wD.js +1 -0
  74. package/dist/web/assets/{ganttDiagram-R7GPNTJY-I0UVqGJv.js → ganttDiagram-R7GPNTJY-CbT7Vvh8.js} +1 -1
  75. package/dist/web/assets/{gitGraph-VSP46ZUC-CC-C8YfY.js → gitGraph-VSP46ZUC-DImhgnA-.js} +1 -1
  76. package/dist/web/assets/{gitGraphDiagram-PDYL7XHY-CfPpPR4y.js → gitGraphDiagram-PDYL7XHY-BCIhQSnt.js} +1 -1
  77. package/dist/web/assets/index-B5qrF3YQ.js +164 -0
  78. package/dist/web/assets/index-CJhiAWU_.css +1 -0
  79. package/dist/web/assets/{info-OHQRW6UA-DfEihEbe.js → info-OHQRW6UA-Ca1dcpLj.js} +1 -1
  80. package/dist/web/assets/{infoDiagram-MVDRKAX5-jsk2r5_p.js → infoDiagram-MVDRKAX5-CZwqwKIn.js} +1 -1
  81. package/dist/web/assets/{ishikawaDiagram-HPEHV2GE-Br5cNkrb.js → ishikawaDiagram-HPEHV2GE-K78USkcr.js} +1 -1
  82. package/dist/web/assets/{journeyDiagram-BOSHW7O7-BUHxmePY.js → journeyDiagram-BOSHW7O7-CInG1mSi.js} +1 -1
  83. package/dist/web/assets/{kanban-definition-FNSA4HC5-Drcedx-U.js → kanban-definition-FNSA4HC5-BnUr2xEF.js} +1 -1
  84. package/dist/web/assets/{line-Ctz7g8Ql.js → line-DzMtguNw.js} +1 -1
  85. package/dist/web/assets/{linear-P2wI5bXo.js → linear-CNySZw0C.js} +1 -1
  86. package/dist/web/assets/{mermaid-parser.core-BCm_6Ljg.js → mermaid-parser.core-BjNrmgSz.js} +3 -3
  87. package/dist/web/assets/{mermaid.core-7v3EUews.js → mermaid.core-opaDzh2t.js} +4 -4
  88. package/dist/web/assets/{mindmap-definition-6OY57UG3-CMv8VCIr.js → mindmap-definition-6OY57UG3-BfQCchDX.js} +1 -1
  89. package/dist/web/assets/{packet-JDAUHWVQ-3Pb0j6W3.js → packet-JDAUHWVQ-d61w6Aq3.js} +1 -1
  90. package/dist/web/assets/{pegDiagram-ECIUJNBX-zKTfibQY.js → pegDiagram-ECIUJNBX-C4qbCufd.js} +1 -1
  91. package/dist/web/assets/{pie-XZMESJXO-DMDT5UNv.js → pie-XZMESJXO-Bwb-SDtc.js} +1 -1
  92. package/dist/web/assets/{pieDiagram-GNMPY74T-B6yI6f_E.js → pieDiagram-GNMPY74T-DGajqL2R.js} +1 -1
  93. package/dist/web/assets/{quadrantDiagram-D57K4MC3-SO17XMVr.js → quadrantDiagram-D57K4MC3-DwCmnGz-.js} +1 -1
  94. package/dist/web/assets/{radar-ABXABTNO-YvpOzBAA.js → radar-ABXABTNO-CSV3Ys_t.js} +1 -1
  95. package/dist/web/assets/{railroad-I3PHUGI6-BPg1dOeA.js → railroad-I3PHUGI6-B53NZiRX.js} +1 -1
  96. package/dist/web/assets/{railroad-abnf-LNEFI6M7-BKGbo9CR.js → railroad-abnf-LNEFI6M7-AZHHU_Eu.js} +1 -1
  97. package/dist/web/assets/{railroad-ebnf-DWYD2UWJ-D5_PLI-N.js → railroad-ebnf-DWYD2UWJ-CfHUzG_e.js} +1 -1
  98. package/dist/web/assets/{railroad-peg-JR7BVNR7-CEFJd3SP.js → railroad-peg-JR7BVNR7-BFMwCv49.js} +1 -1
  99. package/dist/web/assets/{railroadDiagram-Y72NRBL7-BYh_5uw6.js → railroadDiagram-Y72NRBL7-JGBjh6gS.js} +1 -1
  100. package/dist/web/assets/{requirementDiagram-EQYSW5RA-DGYSElHG.js → requirementDiagram-EQYSW5RA-H89IE7Aj.js} +1 -1
  101. package/dist/web/assets/{sankeyDiagram-SY24JHO5-BeKh2o8l.js → sankeyDiagram-SY24JHO5-BW1h5GMG.js} +1 -1
  102. package/dist/web/assets/{sequenceDiagram-BLEHNHQU-CNyioWa2.js → sequenceDiagram-BLEHNHQU-DW1LCcm2.js} +1 -1
  103. package/dist/web/assets/{src-BLsnTRZ-.js → src-qKGv1ENI.js} +1 -1
  104. package/dist/web/assets/{stateDiagram-v2-A6IESKWZ-CKe1jjE0.js → stateDiagram-v2-A6IESKWZ-B1LYrPov.js} +1 -1
  105. package/dist/web/assets/{swimlanes-B3ENRKFQ-BdrScdIT.js → swimlanes-B3ENRKFQ-DTZ07PM6.js} +1 -1
  106. package/dist/web/assets/swimlanesDiagram-AYQRV4AK-CmXIvE2p.js +8 -0
  107. package/dist/web/assets/{timeline-definition-JXYKGLGB-CvaDxCqJ.js → timeline-definition-JXYKGLGB-BE1obc2i.js} +1 -1
  108. package/dist/web/assets/{treeView-D4JQ5SDB-DBJ9ILwb.js → treeView-D4JQ5SDB-B5wK9RCF.js} +1 -1
  109. package/dist/web/assets/{treemap-SAJKECNS-BZrygZQO.js → treemap-SAJKECNS-Cfy-_3AL.js} +1 -1
  110. package/dist/web/assets/{usecaseDiagram-WPOLBNNX-A0NUZ93A.js → usecaseDiagram-WPOLBNNX-xz4Our_C.js} +1 -1
  111. package/dist/web/assets/{vennDiagram-Q3Y3IDCW-dbdcosPe.js → vennDiagram-Q3Y3IDCW-DPiMvNxK.js} +1 -1
  112. package/dist/web/assets/{wardley-7MLQ67FV-B8pRUZnO.js → wardley-7MLQ67FV-By9tOblG.js} +1 -1
  113. package/dist/web/assets/{wardleyDiagram-IVAIDKWA-CzqNzRpd.js → wardleyDiagram-IVAIDKWA-CEXsZftZ.js} +1 -1
  114. package/dist/web/assets/{xychartDiagram-4URNHDU4-KcmVWSns.js → xychartDiagram-4URNHDU4-CpvteEDM.js} +1 -1
  115. package/dist/web/index.html +2 -2
  116. package/package.json +4 -4
  117. package/dist/web/assets/channel-hujhhrJ-.js +0 -1
  118. package/dist/web/assets/flowDiagram-IUGLLWBU-CSuZYZyu.js +0 -1
  119. package/dist/web/assets/index-DNGcj3B0.js +0 -158
  120. package/dist/web/assets/index-DZeeR_n0.css +0 -1
  121. package/dist/web/assets/swimlanesDiagram-AYQRV4AK-BLlQg197.js +0 -8
@@ -0,0 +1,606 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "c531f24a-7fdc-4fab-a2bb-ff560659f239",
5
+ "prevId": "9ddfabdf-9818-4451-ab12-9acc142e2952",
6
+ "tables": {
7
+ "execution_markers": {
8
+ "name": "execution_markers",
9
+ "columns": {
10
+ "operation_id": {
11
+ "name": "operation_id",
12
+ "type": "text",
13
+ "primaryKey": true,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "thread_id": {
18
+ "name": "thread_id",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false
23
+ },
24
+ "turn_id": {
25
+ "name": "turn_id",
26
+ "type": "text",
27
+ "primaryKey": false,
28
+ "notNull": false,
29
+ "autoincrement": false
30
+ },
31
+ "workspace_key": {
32
+ "name": "workspace_key",
33
+ "type": "text",
34
+ "primaryKey": false,
35
+ "notNull": true,
36
+ "autoincrement": false
37
+ },
38
+ "codex_epoch": {
39
+ "name": "codex_epoch",
40
+ "type": "text",
41
+ "primaryKey": false,
42
+ "notNull": true,
43
+ "autoincrement": false
44
+ },
45
+ "state": {
46
+ "name": "state",
47
+ "type": "text",
48
+ "primaryKey": false,
49
+ "notNull": true,
50
+ "autoincrement": false
51
+ },
52
+ "created_at": {
53
+ "name": "created_at",
54
+ "type": "integer",
55
+ "primaryKey": false,
56
+ "notNull": true,
57
+ "autoincrement": false
58
+ },
59
+ "ended_at": {
60
+ "name": "ended_at",
61
+ "type": "integer",
62
+ "primaryKey": false,
63
+ "notNull": false,
64
+ "autoincrement": false
65
+ },
66
+ "reconciled_at": {
67
+ "name": "reconciled_at",
68
+ "type": "integer",
69
+ "primaryKey": false,
70
+ "notNull": false,
71
+ "autoincrement": false
72
+ },
73
+ "reconciliation_operation_id": {
74
+ "name": "reconciliation_operation_id",
75
+ "type": "text",
76
+ "primaryKey": false,
77
+ "notNull": false,
78
+ "autoincrement": false
79
+ }
80
+ },
81
+ "indexes": {
82
+ "execution_markers_active_thread": {
83
+ "name": "execution_markers_active_thread",
84
+ "columns": [
85
+ "thread_id"
86
+ ],
87
+ "isUnique": true,
88
+ "where": "\"execution_markers\".\"ended_at\" is null"
89
+ }
90
+ },
91
+ "foreignKeys": {
92
+ "execution_markers_operation_id_operations_client_operation_id_fk": {
93
+ "name": "execution_markers_operation_id_operations_client_operation_id_fk",
94
+ "tableFrom": "execution_markers",
95
+ "tableTo": "operations",
96
+ "columnsFrom": [
97
+ "operation_id"
98
+ ],
99
+ "columnsTo": [
100
+ "client_operation_id"
101
+ ],
102
+ "onDelete": "no action",
103
+ "onUpdate": "no action"
104
+ },
105
+ "execution_markers_reconciliation_operation_id_operations_client_operation_id_fk": {
106
+ "name": "execution_markers_reconciliation_operation_id_operations_client_operation_id_fk",
107
+ "tableFrom": "execution_markers",
108
+ "tableTo": "operations",
109
+ "columnsFrom": [
110
+ "reconciliation_operation_id"
111
+ ],
112
+ "columnsTo": [
113
+ "client_operation_id"
114
+ ],
115
+ "onDelete": "no action",
116
+ "onUpdate": "no action"
117
+ }
118
+ },
119
+ "compositePrimaryKeys": {},
120
+ "uniqueConstraints": {},
121
+ "checkConstraints": {
122
+ "execution_markers_state_check": {
123
+ "name": "execution_markers_state_check",
124
+ "value": "\"execution_markers\".\"state\" in ('active', 'unknown', 'terminal', 'reconciled')"
125
+ }
126
+ }
127
+ },
128
+ "operations": {
129
+ "name": "operations",
130
+ "columns": {
131
+ "client_operation_id": {
132
+ "name": "client_operation_id",
133
+ "type": "text",
134
+ "primaryKey": true,
135
+ "notNull": true,
136
+ "autoincrement": false
137
+ },
138
+ "kind": {
139
+ "name": "kind",
140
+ "type": "text",
141
+ "primaryKey": false,
142
+ "notNull": true,
143
+ "autoincrement": false
144
+ },
145
+ "target": {
146
+ "name": "target",
147
+ "type": "text",
148
+ "primaryKey": false,
149
+ "notNull": true,
150
+ "autoincrement": false
151
+ },
152
+ "project_id": {
153
+ "name": "project_id",
154
+ "type": "text",
155
+ "primaryKey": false,
156
+ "notNull": false,
157
+ "autoincrement": false
158
+ },
159
+ "request_digest": {
160
+ "name": "request_digest",
161
+ "type": "text",
162
+ "primaryKey": false,
163
+ "notNull": true,
164
+ "autoincrement": false
165
+ },
166
+ "state": {
167
+ "name": "state",
168
+ "type": "text",
169
+ "primaryKey": false,
170
+ "notNull": true,
171
+ "autoincrement": false
172
+ },
173
+ "result": {
174
+ "name": "result",
175
+ "type": "text",
176
+ "primaryKey": false,
177
+ "notNull": false,
178
+ "autoincrement": false
179
+ },
180
+ "error": {
181
+ "name": "error",
182
+ "type": "text",
183
+ "primaryKey": false,
184
+ "notNull": false,
185
+ "autoincrement": false
186
+ },
187
+ "created_at": {
188
+ "name": "created_at",
189
+ "type": "integer",
190
+ "primaryKey": false,
191
+ "notNull": true,
192
+ "autoincrement": false
193
+ },
194
+ "updated_at": {
195
+ "name": "updated_at",
196
+ "type": "integer",
197
+ "primaryKey": false,
198
+ "notNull": true,
199
+ "autoincrement": false
200
+ },
201
+ "reconciled_at": {
202
+ "name": "reconciled_at",
203
+ "type": "integer",
204
+ "primaryKey": false,
205
+ "notNull": false,
206
+ "autoincrement": false
207
+ },
208
+ "reconciliation_decision": {
209
+ "name": "reconciliation_decision",
210
+ "type": "text",
211
+ "primaryKey": false,
212
+ "notNull": false,
213
+ "autoincrement": false
214
+ }
215
+ },
216
+ "indexes": {
217
+ "operations_state_idx": {
218
+ "name": "operations_state_idx",
219
+ "columns": [
220
+ "state"
221
+ ],
222
+ "isUnique": false
223
+ }
224
+ },
225
+ "foreignKeys": {},
226
+ "compositePrimaryKeys": {},
227
+ "uniqueConstraints": {},
228
+ "checkConstraints": {
229
+ "operations_state_check": {
230
+ "name": "operations_state_check",
231
+ "value": "\"operations\".\"state\" in ('accepted', 'dispatching', 'acknowledged', 'failed', 'unknown')"
232
+ }
233
+ }
234
+ },
235
+ "pending_user_messages": {
236
+ "name": "pending_user_messages",
237
+ "columns": {
238
+ "id": {
239
+ "name": "id",
240
+ "type": "text",
241
+ "primaryKey": true,
242
+ "notNull": true,
243
+ "autoincrement": false
244
+ },
245
+ "thread_id": {
246
+ "name": "thread_id",
247
+ "type": "text",
248
+ "primaryKey": false,
249
+ "notNull": true,
250
+ "autoincrement": false
251
+ },
252
+ "turn_id": {
253
+ "name": "turn_id",
254
+ "type": "text",
255
+ "primaryKey": false,
256
+ "notNull": false,
257
+ "autoincrement": false
258
+ },
259
+ "item": {
260
+ "name": "item",
261
+ "type": "text",
262
+ "primaryKey": false,
263
+ "notNull": true,
264
+ "autoincrement": false
265
+ },
266
+ "status": {
267
+ "name": "status",
268
+ "type": "text",
269
+ "primaryKey": false,
270
+ "notNull": true,
271
+ "autoincrement": false
272
+ },
273
+ "created_at": {
274
+ "name": "created_at",
275
+ "type": "integer",
276
+ "primaryKey": false,
277
+ "notNull": true,
278
+ "autoincrement": false
279
+ }
280
+ },
281
+ "indexes": {
282
+ "pending_user_messages_thread_idx": {
283
+ "name": "pending_user_messages_thread_idx",
284
+ "columns": [
285
+ "thread_id"
286
+ ],
287
+ "isUnique": false
288
+ }
289
+ },
290
+ "foreignKeys": {
291
+ "pending_user_messages_id_operations_client_operation_id_fk": {
292
+ "name": "pending_user_messages_id_operations_client_operation_id_fk",
293
+ "tableFrom": "pending_user_messages",
294
+ "tableTo": "operations",
295
+ "columnsFrom": [
296
+ "id"
297
+ ],
298
+ "columnsTo": [
299
+ "client_operation_id"
300
+ ],
301
+ "onDelete": "no action",
302
+ "onUpdate": "no action"
303
+ }
304
+ },
305
+ "compositePrimaryKeys": {},
306
+ "uniqueConstraints": {},
307
+ "checkConstraints": {
308
+ "pending_user_messages_status_check": {
309
+ "name": "pending_user_messages_status_check",
310
+ "value": "\"pending_user_messages\".\"status\" in ('submitting', 'submitted', 'unknown', 'failed')"
311
+ }
312
+ }
313
+ },
314
+ "preferences": {
315
+ "name": "preferences",
316
+ "columns": {
317
+ "key": {
318
+ "name": "key",
319
+ "type": "text",
320
+ "primaryKey": true,
321
+ "notNull": true,
322
+ "autoincrement": false
323
+ },
324
+ "value": {
325
+ "name": "value",
326
+ "type": "text",
327
+ "primaryKey": false,
328
+ "notNull": true,
329
+ "autoincrement": false
330
+ }
331
+ },
332
+ "indexes": {},
333
+ "foreignKeys": {},
334
+ "compositePrimaryKeys": {},
335
+ "uniqueConstraints": {},
336
+ "checkConstraints": {}
337
+ },
338
+ "project_registrations": {
339
+ "name": "project_registrations",
340
+ "columns": {
341
+ "id": {
342
+ "name": "id",
343
+ "type": "text",
344
+ "primaryKey": true,
345
+ "notNull": true,
346
+ "autoincrement": false
347
+ },
348
+ "name": {
349
+ "name": "name",
350
+ "type": "text",
351
+ "primaryKey": false,
352
+ "notNull": true,
353
+ "autoincrement": false
354
+ },
355
+ "path": {
356
+ "name": "path",
357
+ "type": "text",
358
+ "primaryKey": false,
359
+ "notNull": true,
360
+ "autoincrement": false
361
+ },
362
+ "canonical_root": {
363
+ "name": "canonical_root",
364
+ "type": "text",
365
+ "primaryKey": false,
366
+ "notNull": false,
367
+ "autoincrement": false
368
+ },
369
+ "removed_at": {
370
+ "name": "removed_at",
371
+ "type": "integer",
372
+ "primaryKey": false,
373
+ "notNull": false,
374
+ "autoincrement": false
375
+ },
376
+ "sort_order": {
377
+ "name": "sort_order",
378
+ "type": "integer",
379
+ "primaryKey": false,
380
+ "notNull": true,
381
+ "autoincrement": false,
382
+ "default": 0
383
+ },
384
+ "created_at": {
385
+ "name": "created_at",
386
+ "type": "integer",
387
+ "primaryKey": false,
388
+ "notNull": true,
389
+ "autoincrement": false
390
+ },
391
+ "updated_at": {
392
+ "name": "updated_at",
393
+ "type": "integer",
394
+ "primaryKey": false,
395
+ "notNull": true,
396
+ "autoincrement": false
397
+ }
398
+ },
399
+ "indexes": {},
400
+ "foreignKeys": {},
401
+ "compositePrimaryKeys": {},
402
+ "uniqueConstraints": {},
403
+ "checkConstraints": {}
404
+ },
405
+ "session_workspaces": {
406
+ "name": "session_workspaces",
407
+ "columns": {
408
+ "operation_id": {
409
+ "name": "operation_id",
410
+ "type": "text",
411
+ "primaryKey": true,
412
+ "notNull": true,
413
+ "autoincrement": false
414
+ },
415
+ "thread_id": {
416
+ "name": "thread_id",
417
+ "type": "text",
418
+ "primaryKey": false,
419
+ "notNull": false,
420
+ "autoincrement": false
421
+ },
422
+ "root_path": {
423
+ "name": "root_path",
424
+ "type": "text",
425
+ "primaryKey": false,
426
+ "notNull": true,
427
+ "autoincrement": false
428
+ },
429
+ "canonical_root": {
430
+ "name": "canonical_root",
431
+ "type": "text",
432
+ "primaryKey": false,
433
+ "notNull": true,
434
+ "autoincrement": false
435
+ },
436
+ "created_at": {
437
+ "name": "created_at",
438
+ "type": "integer",
439
+ "primaryKey": false,
440
+ "notNull": true,
441
+ "autoincrement": false
442
+ }
443
+ },
444
+ "indexes": {
445
+ "session_workspaces_thread_id_unique": {
446
+ "name": "session_workspaces_thread_id_unique",
447
+ "columns": [
448
+ "thread_id"
449
+ ],
450
+ "isUnique": true
451
+ },
452
+ "session_workspaces_canonical_root_unique": {
453
+ "name": "session_workspaces_canonical_root_unique",
454
+ "columns": [
455
+ "canonical_root"
456
+ ],
457
+ "isUnique": true
458
+ }
459
+ },
460
+ "foreignKeys": {},
461
+ "compositePrimaryKeys": {},
462
+ "uniqueConstraints": {},
463
+ "checkConstraints": {}
464
+ },
465
+ "thread_links": {
466
+ "name": "thread_links",
467
+ "columns": {
468
+ "thread_id": {
469
+ "name": "thread_id",
470
+ "type": "text",
471
+ "primaryKey": true,
472
+ "notNull": true,
473
+ "autoincrement": false
474
+ },
475
+ "project_id": {
476
+ "name": "project_id",
477
+ "type": "text",
478
+ "primaryKey": false,
479
+ "notNull": false,
480
+ "autoincrement": false
481
+ },
482
+ "cwd": {
483
+ "name": "cwd",
484
+ "type": "text",
485
+ "primaryKey": false,
486
+ "notNull": true,
487
+ "autoincrement": false
488
+ },
489
+ "source": {
490
+ "name": "source",
491
+ "type": "text",
492
+ "primaryKey": false,
493
+ "notNull": true,
494
+ "autoincrement": false
495
+ },
496
+ "managed_epoch": {
497
+ "name": "managed_epoch",
498
+ "type": "text",
499
+ "primaryKey": false,
500
+ "notNull": false,
501
+ "autoincrement": false
502
+ },
503
+ "updated_at": {
504
+ "name": "updated_at",
505
+ "type": "integer",
506
+ "primaryKey": false,
507
+ "notNull": true,
508
+ "autoincrement": false
509
+ }
510
+ },
511
+ "indexes": {},
512
+ "foreignKeys": {},
513
+ "compositePrimaryKeys": {},
514
+ "uniqueConstraints": {},
515
+ "checkConstraints": {}
516
+ },
517
+ "turn_token_totals": {
518
+ "name": "turn_token_totals",
519
+ "columns": {
520
+ "thread_id": {
521
+ "name": "thread_id",
522
+ "type": "text",
523
+ "primaryKey": false,
524
+ "notNull": true,
525
+ "autoincrement": false
526
+ },
527
+ "turn_id": {
528
+ "name": "turn_id",
529
+ "type": "text",
530
+ "primaryKey": false,
531
+ "notNull": true,
532
+ "autoincrement": false
533
+ },
534
+ "total_tokens": {
535
+ "name": "total_tokens",
536
+ "type": "integer",
537
+ "primaryKey": false,
538
+ "notNull": true,
539
+ "autoincrement": false
540
+ }
541
+ },
542
+ "indexes": {},
543
+ "foreignKeys": {},
544
+ "compositePrimaryKeys": {
545
+ "turn_token_totals_thread_id_turn_id_pk": {
546
+ "columns": [
547
+ "thread_id",
548
+ "turn_id"
549
+ ],
550
+ "name": "turn_token_totals_thread_id_turn_id_pk"
551
+ }
552
+ },
553
+ "uniqueConstraints": {},
554
+ "checkConstraints": {}
555
+ },
556
+ "turn_usage": {
557
+ "name": "turn_usage",
558
+ "columns": {
559
+ "thread_id": {
560
+ "name": "thread_id",
561
+ "type": "text",
562
+ "primaryKey": false,
563
+ "notNull": true,
564
+ "autoincrement": false
565
+ },
566
+ "turn_id": {
567
+ "name": "turn_id",
568
+ "type": "text",
569
+ "primaryKey": false,
570
+ "notNull": true,
571
+ "autoincrement": false
572
+ },
573
+ "output_tokens": {
574
+ "name": "output_tokens",
575
+ "type": "integer",
576
+ "primaryKey": false,
577
+ "notNull": true,
578
+ "autoincrement": false
579
+ }
580
+ },
581
+ "indexes": {},
582
+ "foreignKeys": {},
583
+ "compositePrimaryKeys": {
584
+ "turn_usage_thread_id_turn_id_pk": {
585
+ "columns": [
586
+ "thread_id",
587
+ "turn_id"
588
+ ],
589
+ "name": "turn_usage_thread_id_turn_id_pk"
590
+ }
591
+ },
592
+ "uniqueConstraints": {},
593
+ "checkConstraints": {}
594
+ }
595
+ },
596
+ "views": {},
597
+ "enums": {},
598
+ "_meta": {
599
+ "schemas": {},
600
+ "tables": {},
601
+ "columns": {}
602
+ },
603
+ "internal": {
604
+ "indexes": {}
605
+ }
606
+ }