@covro/covro 0.10.1-dev.1 → 0.10.1-dev.3

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 (105) hide show
  1. package/README.md +3 -3
  2. package/README.zh-CN.md +3 -3
  3. package/dist/drizzle/0010_background_tasks.sql +6 -0
  4. package/dist/drizzle/meta/0010_snapshot.json +736 -0
  5. package/dist/drizzle/meta/_journal.json +7 -0
  6. package/dist/server/background-tasks.js +29 -0
  7. package/dist/server/background-tasks.js.map +7 -0
  8. package/dist/server/clone-process.js +48 -0
  9. package/dist/server/clone-process.js.map +7 -0
  10. package/dist/server/db/schema.js +7 -0
  11. package/dist/server/db/schema.js.map +2 -2
  12. package/dist/server/http.js +2 -1
  13. package/dist/server/http.js.map +2 -2
  14. package/dist/server/project-clones.js +111 -42
  15. package/dist/server/project-clones.js.map +2 -2
  16. package/dist/server/service.js +7 -1
  17. package/dist/server/service.js.map +2 -2
  18. package/dist/web/assets/{abnfDiagram-WEYOIA3C-BtoI-9gF.js → abnfDiagram-WEYOIA3C-e7kRVr4-.js} +1 -1
  19. package/dist/web/assets/{arc-D0Ov16gw.js → arc-BDZ78VHF.js} +1 -1
  20. package/dist/web/assets/{architecture-WOLXFQ4H-DAilh04j.js → architecture-WOLXFQ4H-Cm4yvSgK.js} +1 -1
  21. package/dist/web/assets/{architectureDiagram-ZHVYKT53-Bs2myRrv.js → architectureDiagram-ZHVYKT53-DXnwawRl.js} +1 -1
  22. package/dist/web/assets/{blockDiagram-RJAE7QA3-B8ORXJWi.js → blockDiagram-RJAE7QA3-DLZdoi2e.js} +1 -1
  23. package/dist/web/assets/{c4Diagram-XDPPPE54-GTib62VK.js → c4Diagram-XDPPPE54-DYjuE6dN.js} +1 -1
  24. package/dist/web/assets/channel-BMMJ1GB4.js +1 -0
  25. package/dist/web/assets/{chunk-2E7WHVMD-Rf3Zy1kN.js → chunk-2E7WHVMD-Ctbi7I9t.js} +1 -1
  26. package/dist/web/assets/{chunk-4EMNKR2T-SxbrSudP.js → chunk-4EMNKR2T-BQ0WN53P.js} +1 -1
  27. package/dist/web/assets/{chunk-55XCU76K-Ber403ek.js → chunk-55XCU76K-CZl1JzE2.js} +1 -1
  28. package/dist/web/assets/{chunk-7S6XSTFO-Nq6xbvjW.js → chunk-7S6XSTFO-DsdaZns0.js} +1 -1
  29. package/dist/web/assets/{chunk-AQDTSKZB-DRQcKLqW.js → chunk-AQDTSKZB-B2468cWP.js} +1 -1
  30. package/dist/web/assets/{chunk-DSNLSHJZ-DdHAMeKa.js → chunk-DSNLSHJZ-BP1bV7oE.js} +1 -1
  31. package/dist/web/assets/{chunk-HAGFOTED-CJr4urQF.js → chunk-HAGFOTED-QTWKPmiS.js} +1 -1
  32. package/dist/web/assets/{chunk-HNE4Q36P-CcazDF-a.js → chunk-HNE4Q36P-Cv78_7q6.js} +1 -1
  33. package/dist/web/assets/{chunk-NQOKRVIF-GTW5hSpC.js → chunk-NQOKRVIF-DVLlYMhe.js} +1 -1
  34. package/dist/web/assets/{chunk-UHW7PFBP-DV0oojBr.js → chunk-UHW7PFBP-BDqKzVk7.js} +1 -1
  35. package/dist/web/assets/{chunk-VQ5W62QI-B7144nOi.js → chunk-VQ5W62QI-DsjW689U.js} +1 -1
  36. package/dist/web/assets/{chunk-WQQL4CDK-D6jvCTLF.js → chunk-WQQL4CDK-lADulM1V.js} +1 -1
  37. package/dist/web/assets/{chunk-XXDRQBXY-BQ7I9ztr.js → chunk-XXDRQBXY-CaOX9wPQ.js} +1 -1
  38. package/dist/web/assets/{chunk-YZO67HFG-BvYLoWHJ.js → chunk-YZO67HFG-CHnLwjlD.js} +1 -1
  39. package/dist/web/assets/{chunk-ZAUX2LTX-DRG2kwaP.js → chunk-ZAUX2LTX-CgniKV-u.js} +1 -1
  40. package/dist/web/assets/{chunk-ZCHMQSOR-TEyac5DV.js → chunk-ZCHMQSOR-CcBrDTPh.js} +1 -1
  41. package/dist/web/assets/{classDiagram-v2-4MYWR3UA-iRf7Jm9A.js → classDiagram-v2-4MYWR3UA-CjABK66T.js} +1 -1
  42. package/dist/web/assets/{cose-bilkent-JH36ORCC-DtxTubDz.js → cose-bilkent-JH36ORCC-DlhX0GIJ.js} +1 -1
  43. package/dist/web/assets/{cynefin-EF2NZ3EQ-Ct1ojMrE.js → cynefin-EF2NZ3EQ-D7_p42F4.js} +1 -1
  44. package/dist/web/assets/{cynefinDiagram-WF24UDRP-D-RNhnec.js → cynefinDiagram-WF24UDRP-CczlloUM.js} +1 -1
  45. package/dist/web/assets/{dagre-NK4GIZVX-DsjR2aZy.js → dagre-NK4GIZVX-BeQGSt4O.js} +1 -1
  46. package/dist/web/assets/{diagram-CBK3MWTC-DX-YhCYp.js → diagram-CBK3MWTC-B-XbcvNN.js} +1 -1
  47. package/dist/web/assets/{diagram-I5XIIV2D-DHMGUMaE.js → diagram-I5XIIV2D-Dm60qSu1.js} +1 -1
  48. package/dist/web/assets/{diagram-ODIL2UCW-B--KvOVO.js → diagram-ODIL2UCW-C0leOREM.js} +1 -1
  49. package/dist/web/assets/{diagram-PFBEJUXE-CVfRcb9a.js → diagram-PFBEJUXE-CO7fG0Bl.js} +1 -1
  50. package/dist/web/assets/{diagram-RJA3I4VV-Cpq9Av2e.js → diagram-RJA3I4VV-B2RbekXD.js} +1 -1
  51. package/dist/web/assets/{diagram-TYUNFSNR-Ds7Ckk09.js → diagram-TYUNFSNR-BmAAQ8NZ.js} +1 -1
  52. package/dist/web/assets/{dist-BQ3FwVu3.js → dist-C7HvQme3.js} +1 -1
  53. package/dist/web/assets/{ebnfDiagram-V4P3TTPT-DjhWEZzd.js → ebnfDiagram-V4P3TTPT-CRiVbr7i.js} +1 -1
  54. package/dist/web/assets/{elk-QONTBCTQ-Cq9Nyp0-.js → elk-QONTBCTQ-DRl77AFA.js} +1 -1
  55. package/dist/web/assets/{erDiagram-KYQIGQAA-DP104UZt.js → erDiagram-KYQIGQAA-Yc3_tle9.js} +1 -1
  56. package/dist/web/assets/{eventmodeling-K75KTNOO-LpZoORYt.js → eventmodeling-K75KTNOO-BcQ4jyF3.js} +1 -1
  57. package/dist/web/assets/flowDiagram-IUGLLWBU-H63VYyz4.js +1 -0
  58. package/dist/web/assets/{ganttDiagram-R7GPNTJY-AysQsMYO.js → ganttDiagram-R7GPNTJY-B26fLWwP.js} +1 -1
  59. package/dist/web/assets/{gitGraph-VSP46ZUC-NH9vs1XU.js → gitGraph-VSP46ZUC-MJXbxQXe.js} +1 -1
  60. package/dist/web/assets/{gitGraphDiagram-PDYL7XHY-Bo6KZB3k.js → gitGraphDiagram-PDYL7XHY-CEorARVy.js} +1 -1
  61. package/dist/web/assets/index-C-XSj1v6.js +166 -0
  62. package/dist/web/assets/index-CHnJTPrZ.css +1 -0
  63. package/dist/web/assets/{info-OHQRW6UA-ChWAmSx4.js → info-OHQRW6UA-pcGYAqaD.js} +1 -1
  64. package/dist/web/assets/{infoDiagram-MVDRKAX5-CyBQ6l_Z.js → infoDiagram-MVDRKAX5-DqVSAOAJ.js} +1 -1
  65. package/dist/web/assets/{ishikawaDiagram-HPEHV2GE-CDwDNs_J.js → ishikawaDiagram-HPEHV2GE-DdILVL8Y.js} +1 -1
  66. package/dist/web/assets/{journeyDiagram-BOSHW7O7-akRdRO9V.js → journeyDiagram-BOSHW7O7-CiGb1h2u.js} +1 -1
  67. package/dist/web/assets/{kanban-definition-FNSA4HC5-BSUiWgR3.js → kanban-definition-FNSA4HC5-0TFN_FUJ.js} +1 -1
  68. package/dist/web/assets/{line-BUjPUbxW.js → line-CTxYqWzR.js} +1 -1
  69. package/dist/web/assets/{linear-Dp46jfxV.js → linear-C4XZI280.js} +1 -1
  70. package/dist/web/assets/{mermaid-parser.core-BS69x3_t.js → mermaid-parser.core-CXiXLBuK.js} +3 -3
  71. package/dist/web/assets/{mermaid.core-DjWTO7iI.js → mermaid.core-BG2TeR0u.js} +4 -4
  72. package/dist/web/assets/{mindmap-definition-6OY57UG3-DoPfllb3.js → mindmap-definition-6OY57UG3-CVm1n6xu.js} +1 -1
  73. package/dist/web/assets/{packet-JDAUHWVQ-DlbUTdgN.js → packet-JDAUHWVQ-B1yQhsIx.js} +1 -1
  74. package/dist/web/assets/{pegDiagram-ECIUJNBX-CGyw70pt.js → pegDiagram-ECIUJNBX-O8xdobnG.js} +1 -1
  75. package/dist/web/assets/{pie-XZMESJXO-BD5aRdJp.js → pie-XZMESJXO-CralEUYi.js} +1 -1
  76. package/dist/web/assets/{pieDiagram-GNMPY74T-PdpMMmiS.js → pieDiagram-GNMPY74T-CRXVoFSm.js} +1 -1
  77. package/dist/web/assets/{quadrantDiagram-D57K4MC3-BzLTRV9y.js → quadrantDiagram-D57K4MC3-D1mt4bar.js} +1 -1
  78. package/dist/web/assets/{radar-ABXABTNO-CG8R-99Q.js → radar-ABXABTNO-D8yeVdOp.js} +1 -1
  79. package/dist/web/assets/{railroad-I3PHUGI6-CfQhcdr5.js → railroad-I3PHUGI6-FcyDmBuy.js} +1 -1
  80. package/dist/web/assets/{railroad-abnf-LNEFI6M7-09NRVgGK.js → railroad-abnf-LNEFI6M7-DIkUN4BN.js} +1 -1
  81. package/dist/web/assets/{railroad-ebnf-DWYD2UWJ-ClLw9pD1.js → railroad-ebnf-DWYD2UWJ-D3lzcEm2.js} +1 -1
  82. package/dist/web/assets/{railroad-peg-JR7BVNR7-Cqc2ZO5p.js → railroad-peg-JR7BVNR7-BAZyg-LW.js} +1 -1
  83. package/dist/web/assets/{railroadDiagram-Y72NRBL7-DWWl002t.js → railroadDiagram-Y72NRBL7-CwjSFHNI.js} +1 -1
  84. package/dist/web/assets/{requirementDiagram-EQYSW5RA-D9iem1Ze.js → requirementDiagram-EQYSW5RA-C7sPOJIX.js} +1 -1
  85. package/dist/web/assets/{sankeyDiagram-SY24JHO5-CCpulRJF.js → sankeyDiagram-SY24JHO5-DsUjwgzB.js} +1 -1
  86. package/dist/web/assets/{sequenceDiagram-BLEHNHQU-BGGO0hn1.js → sequenceDiagram-BLEHNHQU-DQZIs2-l.js} +1 -1
  87. package/dist/web/assets/{src-DIeVqKNW.js → src-CCCpzKlW.js} +1 -1
  88. package/dist/web/assets/{stateDiagram-v2-A6IESKWZ-HajZS3rG.js → stateDiagram-v2-A6IESKWZ-DsKT9coo.js} +1 -1
  89. package/dist/web/assets/{swimlanes-B3ENRKFQ-aj-aJh5D.js → swimlanes-B3ENRKFQ-Bhi-UL5q.js} +1 -1
  90. package/dist/web/assets/swimlanesDiagram-AYQRV4AK-Bjty8WEZ.js +8 -0
  91. package/dist/web/assets/{timeline-definition-JXYKGLGB-bMxlkP-R.js → timeline-definition-JXYKGLGB-C8mwQM1X.js} +1 -1
  92. package/dist/web/assets/{treeView-D4JQ5SDB-VAulWQBX.js → treeView-D4JQ5SDB-BVlVcQdx.js} +1 -1
  93. package/dist/web/assets/{treemap-SAJKECNS-D2st4xnf.js → treemap-SAJKECNS-D0pXPRK1.js} +1 -1
  94. package/dist/web/assets/{usecaseDiagram-WPOLBNNX-CLTf2z_8.js → usecaseDiagram-WPOLBNNX-BlKEAFpg.js} +1 -1
  95. package/dist/web/assets/{vennDiagram-Q3Y3IDCW-DmKo4Ava.js → vennDiagram-Q3Y3IDCW-DIj1j_-B.js} +1 -1
  96. package/dist/web/assets/{wardley-7MLQ67FV-kLaqBPw5.js → wardley-7MLQ67FV-Dpi6piae.js} +1 -1
  97. package/dist/web/assets/{wardleyDiagram-IVAIDKWA-nFmJYGio.js → wardleyDiagram-IVAIDKWA-DYYgjHt8.js} +1 -1
  98. package/dist/web/assets/{xychartDiagram-4URNHDU4-Cd9EEi--.js → xychartDiagram-4URNHDU4-BR6aEb1c.js} +1 -1
  99. package/dist/web/index.html +2 -2
  100. package/package.json +4 -4
  101. package/dist/web/assets/channel-uaZJgNMX.js +0 -1
  102. package/dist/web/assets/flowDiagram-IUGLLWBU-BmafgI6T.js +0 -1
  103. package/dist/web/assets/index-DcnXpHTD.css +0 -1
  104. package/dist/web/assets/index-tf2Iade9.js +0 -163
  105. package/dist/web/assets/swimlanesDiagram-AYQRV4AK-CwlO5iJL.js +0 -8
@@ -0,0 +1,736 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "77bd151d-e8e2-4765-aafc-bbc9d6a0f6f9",
5
+ "prevId": "592b8664-80ad-4f32-9a90-7f8610b96292",
6
+ "tables": {
7
+ "background_tasks": {
8
+ "name": "background_tasks",
9
+ "columns": {
10
+ "id": {
11
+ "name": "id",
12
+ "type": "text",
13
+ "primaryKey": true,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "kind": {
18
+ "name": "kind",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false
23
+ },
24
+ "fingerprint": {
25
+ "name": "fingerprint",
26
+ "type": "text",
27
+ "primaryKey": false,
28
+ "notNull": true,
29
+ "autoincrement": false
30
+ },
31
+ "snapshot": {
32
+ "name": "snapshot",
33
+ "type": "text",
34
+ "primaryKey": false,
35
+ "notNull": false,
36
+ "autoincrement": false
37
+ }
38
+ },
39
+ "indexes": {},
40
+ "foreignKeys": {},
41
+ "compositePrimaryKeys": {},
42
+ "uniqueConstraints": {},
43
+ "checkConstraints": {}
44
+ },
45
+ "execution_markers": {
46
+ "name": "execution_markers",
47
+ "columns": {
48
+ "operation_id": {
49
+ "name": "operation_id",
50
+ "type": "text",
51
+ "primaryKey": true,
52
+ "notNull": true,
53
+ "autoincrement": false
54
+ },
55
+ "thread_id": {
56
+ "name": "thread_id",
57
+ "type": "text",
58
+ "primaryKey": false,
59
+ "notNull": true,
60
+ "autoincrement": false
61
+ },
62
+ "turn_id": {
63
+ "name": "turn_id",
64
+ "type": "text",
65
+ "primaryKey": false,
66
+ "notNull": false,
67
+ "autoincrement": false
68
+ },
69
+ "workspace_key": {
70
+ "name": "workspace_key",
71
+ "type": "text",
72
+ "primaryKey": false,
73
+ "notNull": true,
74
+ "autoincrement": false
75
+ },
76
+ "codex_epoch": {
77
+ "name": "codex_epoch",
78
+ "type": "text",
79
+ "primaryKey": false,
80
+ "notNull": true,
81
+ "autoincrement": false
82
+ },
83
+ "state": {
84
+ "name": "state",
85
+ "type": "text",
86
+ "primaryKey": false,
87
+ "notNull": true,
88
+ "autoincrement": false
89
+ },
90
+ "created_at": {
91
+ "name": "created_at",
92
+ "type": "integer",
93
+ "primaryKey": false,
94
+ "notNull": true,
95
+ "autoincrement": false
96
+ },
97
+ "ended_at": {
98
+ "name": "ended_at",
99
+ "type": "integer",
100
+ "primaryKey": false,
101
+ "notNull": false,
102
+ "autoincrement": false
103
+ },
104
+ "reconciled_at": {
105
+ "name": "reconciled_at",
106
+ "type": "integer",
107
+ "primaryKey": false,
108
+ "notNull": false,
109
+ "autoincrement": false
110
+ },
111
+ "reconciliation_operation_id": {
112
+ "name": "reconciliation_operation_id",
113
+ "type": "text",
114
+ "primaryKey": false,
115
+ "notNull": false,
116
+ "autoincrement": false
117
+ }
118
+ },
119
+ "indexes": {
120
+ "execution_markers_active_thread": {
121
+ "name": "execution_markers_active_thread",
122
+ "columns": [
123
+ "thread_id"
124
+ ],
125
+ "isUnique": true,
126
+ "where": "\"execution_markers\".\"ended_at\" is null"
127
+ }
128
+ },
129
+ "foreignKeys": {
130
+ "execution_markers_operation_id_operations_client_operation_id_fk": {
131
+ "name": "execution_markers_operation_id_operations_client_operation_id_fk",
132
+ "tableFrom": "execution_markers",
133
+ "tableTo": "operations",
134
+ "columnsFrom": [
135
+ "operation_id"
136
+ ],
137
+ "columnsTo": [
138
+ "client_operation_id"
139
+ ],
140
+ "onDelete": "no action",
141
+ "onUpdate": "no action"
142
+ },
143
+ "execution_markers_reconciliation_operation_id_operations_client_operation_id_fk": {
144
+ "name": "execution_markers_reconciliation_operation_id_operations_client_operation_id_fk",
145
+ "tableFrom": "execution_markers",
146
+ "tableTo": "operations",
147
+ "columnsFrom": [
148
+ "reconciliation_operation_id"
149
+ ],
150
+ "columnsTo": [
151
+ "client_operation_id"
152
+ ],
153
+ "onDelete": "no action",
154
+ "onUpdate": "no action"
155
+ }
156
+ },
157
+ "compositePrimaryKeys": {},
158
+ "uniqueConstraints": {},
159
+ "checkConstraints": {
160
+ "execution_markers_state_check": {
161
+ "name": "execution_markers_state_check",
162
+ "value": "\"execution_markers\".\"state\" in ('active', 'unknown', 'terminal', 'reconciled')"
163
+ }
164
+ }
165
+ },
166
+ "operations": {
167
+ "name": "operations",
168
+ "columns": {
169
+ "client_operation_id": {
170
+ "name": "client_operation_id",
171
+ "type": "text",
172
+ "primaryKey": true,
173
+ "notNull": true,
174
+ "autoincrement": false
175
+ },
176
+ "kind": {
177
+ "name": "kind",
178
+ "type": "text",
179
+ "primaryKey": false,
180
+ "notNull": true,
181
+ "autoincrement": false
182
+ },
183
+ "target": {
184
+ "name": "target",
185
+ "type": "text",
186
+ "primaryKey": false,
187
+ "notNull": true,
188
+ "autoincrement": false
189
+ },
190
+ "project_id": {
191
+ "name": "project_id",
192
+ "type": "text",
193
+ "primaryKey": false,
194
+ "notNull": false,
195
+ "autoincrement": false
196
+ },
197
+ "request_digest": {
198
+ "name": "request_digest",
199
+ "type": "text",
200
+ "primaryKey": false,
201
+ "notNull": true,
202
+ "autoincrement": false
203
+ },
204
+ "state": {
205
+ "name": "state",
206
+ "type": "text",
207
+ "primaryKey": false,
208
+ "notNull": true,
209
+ "autoincrement": false
210
+ },
211
+ "result": {
212
+ "name": "result",
213
+ "type": "text",
214
+ "primaryKey": false,
215
+ "notNull": false,
216
+ "autoincrement": false
217
+ },
218
+ "error": {
219
+ "name": "error",
220
+ "type": "text",
221
+ "primaryKey": false,
222
+ "notNull": false,
223
+ "autoincrement": false
224
+ },
225
+ "created_at": {
226
+ "name": "created_at",
227
+ "type": "integer",
228
+ "primaryKey": false,
229
+ "notNull": true,
230
+ "autoincrement": false
231
+ },
232
+ "updated_at": {
233
+ "name": "updated_at",
234
+ "type": "integer",
235
+ "primaryKey": false,
236
+ "notNull": true,
237
+ "autoincrement": false
238
+ },
239
+ "reconciled_at": {
240
+ "name": "reconciled_at",
241
+ "type": "integer",
242
+ "primaryKey": false,
243
+ "notNull": false,
244
+ "autoincrement": false
245
+ },
246
+ "reconciliation_decision": {
247
+ "name": "reconciliation_decision",
248
+ "type": "text",
249
+ "primaryKey": false,
250
+ "notNull": false,
251
+ "autoincrement": false
252
+ }
253
+ },
254
+ "indexes": {
255
+ "operations_state_idx": {
256
+ "name": "operations_state_idx",
257
+ "columns": [
258
+ "state"
259
+ ],
260
+ "isUnique": false
261
+ }
262
+ },
263
+ "foreignKeys": {},
264
+ "compositePrimaryKeys": {},
265
+ "uniqueConstraints": {},
266
+ "checkConstraints": {
267
+ "operations_state_check": {
268
+ "name": "operations_state_check",
269
+ "value": "\"operations\".\"state\" in ('accepted', 'dispatching', 'acknowledged', 'failed', 'unknown')"
270
+ }
271
+ }
272
+ },
273
+ "pending_user_messages": {
274
+ "name": "pending_user_messages",
275
+ "columns": {
276
+ "id": {
277
+ "name": "id",
278
+ "type": "text",
279
+ "primaryKey": true,
280
+ "notNull": true,
281
+ "autoincrement": false
282
+ },
283
+ "thread_id": {
284
+ "name": "thread_id",
285
+ "type": "text",
286
+ "primaryKey": false,
287
+ "notNull": true,
288
+ "autoincrement": false
289
+ },
290
+ "turn_id": {
291
+ "name": "turn_id",
292
+ "type": "text",
293
+ "primaryKey": false,
294
+ "notNull": false,
295
+ "autoincrement": false
296
+ },
297
+ "item": {
298
+ "name": "item",
299
+ "type": "text",
300
+ "primaryKey": false,
301
+ "notNull": true,
302
+ "autoincrement": false
303
+ },
304
+ "status": {
305
+ "name": "status",
306
+ "type": "text",
307
+ "primaryKey": false,
308
+ "notNull": true,
309
+ "autoincrement": false
310
+ },
311
+ "created_at": {
312
+ "name": "created_at",
313
+ "type": "integer",
314
+ "primaryKey": false,
315
+ "notNull": true,
316
+ "autoincrement": false
317
+ }
318
+ },
319
+ "indexes": {
320
+ "pending_user_messages_thread_idx": {
321
+ "name": "pending_user_messages_thread_idx",
322
+ "columns": [
323
+ "thread_id"
324
+ ],
325
+ "isUnique": false
326
+ }
327
+ },
328
+ "foreignKeys": {
329
+ "pending_user_messages_id_operations_client_operation_id_fk": {
330
+ "name": "pending_user_messages_id_operations_client_operation_id_fk",
331
+ "tableFrom": "pending_user_messages",
332
+ "tableTo": "operations",
333
+ "columnsFrom": [
334
+ "id"
335
+ ],
336
+ "columnsTo": [
337
+ "client_operation_id"
338
+ ],
339
+ "onDelete": "no action",
340
+ "onUpdate": "no action"
341
+ }
342
+ },
343
+ "compositePrimaryKeys": {},
344
+ "uniqueConstraints": {},
345
+ "checkConstraints": {
346
+ "pending_user_messages_status_check": {
347
+ "name": "pending_user_messages_status_check",
348
+ "value": "\"pending_user_messages\".\"status\" in ('submitting', 'submitted', 'unknown', 'failed')"
349
+ }
350
+ }
351
+ },
352
+ "preferences": {
353
+ "name": "preferences",
354
+ "columns": {
355
+ "key": {
356
+ "name": "key",
357
+ "type": "text",
358
+ "primaryKey": true,
359
+ "notNull": true,
360
+ "autoincrement": false
361
+ },
362
+ "value": {
363
+ "name": "value",
364
+ "type": "text",
365
+ "primaryKey": false,
366
+ "notNull": true,
367
+ "autoincrement": false
368
+ }
369
+ },
370
+ "indexes": {},
371
+ "foreignKeys": {},
372
+ "compositePrimaryKeys": {},
373
+ "uniqueConstraints": {},
374
+ "checkConstraints": {}
375
+ },
376
+ "project_registrations": {
377
+ "name": "project_registrations",
378
+ "columns": {
379
+ "id": {
380
+ "name": "id",
381
+ "type": "text",
382
+ "primaryKey": true,
383
+ "notNull": true,
384
+ "autoincrement": false
385
+ },
386
+ "name": {
387
+ "name": "name",
388
+ "type": "text",
389
+ "primaryKey": false,
390
+ "notNull": true,
391
+ "autoincrement": false
392
+ },
393
+ "path": {
394
+ "name": "path",
395
+ "type": "text",
396
+ "primaryKey": false,
397
+ "notNull": true,
398
+ "autoincrement": false
399
+ },
400
+ "canonical_root": {
401
+ "name": "canonical_root",
402
+ "type": "text",
403
+ "primaryKey": false,
404
+ "notNull": false,
405
+ "autoincrement": false
406
+ },
407
+ "removed_at": {
408
+ "name": "removed_at",
409
+ "type": "integer",
410
+ "primaryKey": false,
411
+ "notNull": false,
412
+ "autoincrement": false
413
+ },
414
+ "sort_order": {
415
+ "name": "sort_order",
416
+ "type": "integer",
417
+ "primaryKey": false,
418
+ "notNull": true,
419
+ "autoincrement": false,
420
+ "default": 0
421
+ },
422
+ "created_at": {
423
+ "name": "created_at",
424
+ "type": "integer",
425
+ "primaryKey": false,
426
+ "notNull": true,
427
+ "autoincrement": false
428
+ },
429
+ "updated_at": {
430
+ "name": "updated_at",
431
+ "type": "integer",
432
+ "primaryKey": false,
433
+ "notNull": true,
434
+ "autoincrement": false
435
+ }
436
+ },
437
+ "indexes": {},
438
+ "foreignKeys": {},
439
+ "compositePrimaryKeys": {},
440
+ "uniqueConstraints": {},
441
+ "checkConstraints": {}
442
+ },
443
+ "question_action_history": {
444
+ "name": "question_action_history",
445
+ "columns": {
446
+ "action_id": {
447
+ "name": "action_id",
448
+ "type": "text",
449
+ "primaryKey": true,
450
+ "notNull": true,
451
+ "autoincrement": false
452
+ },
453
+ "thread_id": {
454
+ "name": "thread_id",
455
+ "type": "text",
456
+ "primaryKey": false,
457
+ "notNull": true,
458
+ "autoincrement": false
459
+ },
460
+ "action": {
461
+ "name": "action",
462
+ "type": "text",
463
+ "primaryKey": false,
464
+ "notNull": true,
465
+ "autoincrement": false
466
+ }
467
+ },
468
+ "indexes": {
469
+ "question_action_history_thread": {
470
+ "name": "question_action_history_thread",
471
+ "columns": [
472
+ "thread_id"
473
+ ],
474
+ "isUnique": false
475
+ }
476
+ },
477
+ "foreignKeys": {},
478
+ "compositePrimaryKeys": {},
479
+ "uniqueConstraints": {},
480
+ "checkConstraints": {}
481
+ },
482
+ "question_tracking": {
483
+ "name": "question_tracking",
484
+ "columns": {
485
+ "thread_id": {
486
+ "name": "thread_id",
487
+ "type": "text",
488
+ "primaryKey": false,
489
+ "notNull": true,
490
+ "autoincrement": false
491
+ },
492
+ "question_id": {
493
+ "name": "question_id",
494
+ "type": "text",
495
+ "primaryKey": false,
496
+ "notNull": true,
497
+ "autoincrement": false
498
+ },
499
+ "state": {
500
+ "name": "state",
501
+ "type": "text",
502
+ "primaryKey": false,
503
+ "notNull": true,
504
+ "autoincrement": false
505
+ },
506
+ "operation_id": {
507
+ "name": "operation_id",
508
+ "type": "text",
509
+ "primaryKey": false,
510
+ "notNull": true,
511
+ "autoincrement": false
512
+ },
513
+ "updated_at": {
514
+ "name": "updated_at",
515
+ "type": "integer",
516
+ "primaryKey": false,
517
+ "notNull": true,
518
+ "autoincrement": false
519
+ }
520
+ },
521
+ "indexes": {},
522
+ "foreignKeys": {},
523
+ "compositePrimaryKeys": {
524
+ "question_tracking_thread_id_question_id_pk": {
525
+ "columns": [
526
+ "thread_id",
527
+ "question_id"
528
+ ],
529
+ "name": "question_tracking_thread_id_question_id_pk"
530
+ }
531
+ },
532
+ "uniqueConstraints": {},
533
+ "checkConstraints": {}
534
+ },
535
+ "session_workspaces": {
536
+ "name": "session_workspaces",
537
+ "columns": {
538
+ "operation_id": {
539
+ "name": "operation_id",
540
+ "type": "text",
541
+ "primaryKey": true,
542
+ "notNull": true,
543
+ "autoincrement": false
544
+ },
545
+ "thread_id": {
546
+ "name": "thread_id",
547
+ "type": "text",
548
+ "primaryKey": false,
549
+ "notNull": false,
550
+ "autoincrement": false
551
+ },
552
+ "root_path": {
553
+ "name": "root_path",
554
+ "type": "text",
555
+ "primaryKey": false,
556
+ "notNull": true,
557
+ "autoincrement": false
558
+ },
559
+ "canonical_root": {
560
+ "name": "canonical_root",
561
+ "type": "text",
562
+ "primaryKey": false,
563
+ "notNull": true,
564
+ "autoincrement": false
565
+ },
566
+ "created_at": {
567
+ "name": "created_at",
568
+ "type": "integer",
569
+ "primaryKey": false,
570
+ "notNull": true,
571
+ "autoincrement": false
572
+ }
573
+ },
574
+ "indexes": {
575
+ "session_workspaces_thread_id_unique": {
576
+ "name": "session_workspaces_thread_id_unique",
577
+ "columns": [
578
+ "thread_id"
579
+ ],
580
+ "isUnique": true
581
+ },
582
+ "session_workspaces_canonical_root_unique": {
583
+ "name": "session_workspaces_canonical_root_unique",
584
+ "columns": [
585
+ "canonical_root"
586
+ ],
587
+ "isUnique": true
588
+ }
589
+ },
590
+ "foreignKeys": {},
591
+ "compositePrimaryKeys": {},
592
+ "uniqueConstraints": {},
593
+ "checkConstraints": {}
594
+ },
595
+ "thread_links": {
596
+ "name": "thread_links",
597
+ "columns": {
598
+ "thread_id": {
599
+ "name": "thread_id",
600
+ "type": "text",
601
+ "primaryKey": true,
602
+ "notNull": true,
603
+ "autoincrement": false
604
+ },
605
+ "project_id": {
606
+ "name": "project_id",
607
+ "type": "text",
608
+ "primaryKey": false,
609
+ "notNull": false,
610
+ "autoincrement": false
611
+ },
612
+ "cwd": {
613
+ "name": "cwd",
614
+ "type": "text",
615
+ "primaryKey": false,
616
+ "notNull": true,
617
+ "autoincrement": false
618
+ },
619
+ "source": {
620
+ "name": "source",
621
+ "type": "text",
622
+ "primaryKey": false,
623
+ "notNull": true,
624
+ "autoincrement": false
625
+ },
626
+ "managed_epoch": {
627
+ "name": "managed_epoch",
628
+ "type": "text",
629
+ "primaryKey": false,
630
+ "notNull": false,
631
+ "autoincrement": false
632
+ },
633
+ "updated_at": {
634
+ "name": "updated_at",
635
+ "type": "integer",
636
+ "primaryKey": false,
637
+ "notNull": true,
638
+ "autoincrement": false
639
+ }
640
+ },
641
+ "indexes": {},
642
+ "foreignKeys": {},
643
+ "compositePrimaryKeys": {},
644
+ "uniqueConstraints": {},
645
+ "checkConstraints": {}
646
+ },
647
+ "turn_token_totals": {
648
+ "name": "turn_token_totals",
649
+ "columns": {
650
+ "thread_id": {
651
+ "name": "thread_id",
652
+ "type": "text",
653
+ "primaryKey": false,
654
+ "notNull": true,
655
+ "autoincrement": false
656
+ },
657
+ "turn_id": {
658
+ "name": "turn_id",
659
+ "type": "text",
660
+ "primaryKey": false,
661
+ "notNull": true,
662
+ "autoincrement": false
663
+ },
664
+ "total_tokens": {
665
+ "name": "total_tokens",
666
+ "type": "integer",
667
+ "primaryKey": false,
668
+ "notNull": true,
669
+ "autoincrement": false
670
+ }
671
+ },
672
+ "indexes": {},
673
+ "foreignKeys": {},
674
+ "compositePrimaryKeys": {
675
+ "turn_token_totals_thread_id_turn_id_pk": {
676
+ "columns": [
677
+ "thread_id",
678
+ "turn_id"
679
+ ],
680
+ "name": "turn_token_totals_thread_id_turn_id_pk"
681
+ }
682
+ },
683
+ "uniqueConstraints": {},
684
+ "checkConstraints": {}
685
+ },
686
+ "turn_usage": {
687
+ "name": "turn_usage",
688
+ "columns": {
689
+ "thread_id": {
690
+ "name": "thread_id",
691
+ "type": "text",
692
+ "primaryKey": false,
693
+ "notNull": true,
694
+ "autoincrement": false
695
+ },
696
+ "turn_id": {
697
+ "name": "turn_id",
698
+ "type": "text",
699
+ "primaryKey": false,
700
+ "notNull": true,
701
+ "autoincrement": false
702
+ },
703
+ "output_tokens": {
704
+ "name": "output_tokens",
705
+ "type": "integer",
706
+ "primaryKey": false,
707
+ "notNull": true,
708
+ "autoincrement": false
709
+ }
710
+ },
711
+ "indexes": {},
712
+ "foreignKeys": {},
713
+ "compositePrimaryKeys": {
714
+ "turn_usage_thread_id_turn_id_pk": {
715
+ "columns": [
716
+ "thread_id",
717
+ "turn_id"
718
+ ],
719
+ "name": "turn_usage_thread_id_turn_id_pk"
720
+ }
721
+ },
722
+ "uniqueConstraints": {},
723
+ "checkConstraints": {}
724
+ }
725
+ },
726
+ "views": {},
727
+ "enums": {},
728
+ "_meta": {
729
+ "schemas": {},
730
+ "tables": {},
731
+ "columns": {}
732
+ },
733
+ "internal": {
734
+ "indexes": {}
735
+ }
736
+ }