@igorjpimenta/manifold 0.0.0-bootstrap.1 → 0.0.0-stage

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 (210) hide show
  1. package/README.md +2 -1583
  2. package/package.json +4 -49
  3. package/.migrations/ops/0000_futuristic_karma.sql +0 -111
  4. package/.migrations/ops/0001_low_maximus.sql +0 -7
  5. package/.migrations/ops/meta/0000_snapshot.json +0 -763
  6. package/.migrations/ops/meta/0001_snapshot.json +0 -173
  7. package/.migrations/ops/meta/_journal.json +0 -20
  8. package/.migrations/runtime/0000_real_boomer.sql +0 -180
  9. package/.migrations/runtime/0001_hot_dakota_north.sql +0 -2
  10. package/.migrations/runtime/0002_breezy_vertigo.sql +0 -8
  11. package/.migrations/runtime/0003_dashing_jack_flag.sql +0 -5
  12. package/.migrations/runtime/0004_panoramic_ego.sql +0 -1
  13. package/.migrations/runtime/0005_tidy_ben_grimm.sql +0 -10
  14. package/.migrations/runtime/0006_wet_nightmare.sql +0 -57
  15. package/.migrations/runtime/0007_ambiguous_chronomancer.sql +0 -8
  16. package/.migrations/runtime/0008_wealthy_thundra.sql +0 -301
  17. package/.migrations/runtime/0009_lying_shocker.sql +0 -96
  18. package/.migrations/runtime/0010_solid_phantom_reporter.sql +0 -160
  19. package/.migrations/runtime/0011_windy_demogoblin.sql +0 -175
  20. package/.migrations/runtime/0012_restore_harness_fks.sql +0 -103
  21. package/.migrations/runtime/meta/0000_snapshot.json +0 -1181
  22. package/.migrations/runtime/meta/0001_snapshot.json +0 -1209
  23. package/.migrations/runtime/meta/0002_snapshot.json +0 -1261
  24. package/.migrations/runtime/meta/0003_snapshot.json +0 -1292
  25. package/.migrations/runtime/meta/0004_snapshot.json +0 -1240
  26. package/.migrations/runtime/meta/0006_snapshot.json +0 -1310
  27. package/.migrations/runtime/meta/0007_snapshot.json +0 -1362
  28. package/.migrations/runtime/meta/0008_snapshot.json +0 -1742
  29. package/.migrations/runtime/meta/0009_snapshot.json +0 -2413
  30. package/.migrations/runtime/meta/0010_snapshot.json +0 -2562
  31. package/.migrations/runtime/meta/0011_snapshot.json +0 -2812
  32. package/.migrations/runtime/meta/0012_snapshot.json +0 -2812
  33. package/.migrations/runtime/meta/_journal.json +0 -97
  34. package/RELEASING.md +0 -89
  35. package/agent/fleet.js +0 -100
  36. package/bin/cli.js +0 -854
  37. package/bin/manifold.js +0 -4
  38. package/boot/flow-revival.js +0 -536
  39. package/budget/index.js +0 -495
  40. package/budget/lib.js +0 -59
  41. package/dashboard/cost.js +0 -528
  42. package/dashboard/dist/assets/index-CUfp63sj.css +0 -1
  43. package/dashboard/dist/assets/index-Qy9JMpma.js +0 -371
  44. package/dashboard/dist/index.html +0 -13
  45. package/dashboard/event-log.js +0 -267
  46. package/dashboard/index.html +0 -12
  47. package/dashboard/package-lock.json +0 -2877
  48. package/dashboard/package.json +0 -37
  49. package/dashboard/pipeline-graph.js +0 -131
  50. package/dashboard/postcss.config.js +0 -6
  51. package/dashboard/search.js +0 -183
  52. package/dashboard/server.js +0 -1015
  53. package/dashboard/src/App.tsx +0 -42
  54. package/dashboard/src/api/client.ts +0 -118
  55. package/dashboard/src/api/types.ts +0 -510
  56. package/dashboard/src/api/ws.tsx +0 -112
  57. package/dashboard/src/components/CancelButton.tsx +0 -63
  58. package/dashboard/src/components/ClickToCopy.tsx +0 -68
  59. package/dashboard/src/components/CopyButton.tsx +0 -61
  60. package/dashboard/src/components/DailyCostTrend.tsx +0 -85
  61. package/dashboard/src/components/DailyTimeTrend.tsx +0 -94
  62. package/dashboard/src/components/Funnel.tsx +0 -149
  63. package/dashboard/src/components/GateForm.tsx +0 -158
  64. package/dashboard/src/components/GraphView.tsx +0 -302
  65. package/dashboard/src/components/GroupPathsSummary.tsx +0 -47
  66. package/dashboard/src/components/Histogram.tsx +0 -292
  67. package/dashboard/src/components/Layout.tsx +0 -28
  68. package/dashboard/src/components/NeedsAttention.tsx +0 -98
  69. package/dashboard/src/components/NodeContextCard.tsx +0 -132
  70. package/dashboard/src/components/PathTrail.tsx +0 -35
  71. package/dashboard/src/components/PipelineCostBreakdown.tsx +0 -277
  72. package/dashboard/src/components/RerunButton.tsx +0 -46
  73. package/dashboard/src/components/RunComparison.tsx +0 -53
  74. package/dashboard/src/components/Sparkline.tsx +0 -94
  75. package/dashboard/src/components/StatStrip.tsx +0 -147
  76. package/dashboard/src/components/StateTree.tsx +0 -84
  77. package/dashboard/src/components/StatusBadge.tsx +0 -18
  78. package/dashboard/src/components/SubflowPathPills.tsx +0 -38
  79. package/dashboard/src/components/SubflowSummary.tsx +0 -24
  80. package/dashboard/src/components/SubflowsCard.tsx +0 -327
  81. package/dashboard/src/components/TodayStrip.tsx +0 -86
  82. package/dashboard/src/components/TranscriptPane.tsx +0 -99
  83. package/dashboard/src/components/TranscriptRow.tsx +0 -69
  84. package/dashboard/src/components/ui/badge.tsx +0 -38
  85. package/dashboard/src/components/ui/button.tsx +0 -28
  86. package/dashboard/src/components/ui/card.tsx +0 -42
  87. package/dashboard/src/components/ui/skeleton.tsx +0 -9
  88. package/dashboard/src/components/ui/table.tsx +0 -62
  89. package/dashboard/src/index.css +0 -26
  90. package/dashboard/src/lib/anomaly.ts +0 -42
  91. package/dashboard/src/lib/format.ts +0 -30
  92. package/dashboard/src/lib/step-history.ts +0 -13
  93. package/dashboard/src/lib/subflow.ts +0 -154
  94. package/dashboard/src/lib/use-click-outside.ts +0 -28
  95. package/dashboard/src/lib/use-ignored-clusters.ts +0 -67
  96. package/dashboard/src/lib/utils.ts +0 -6
  97. package/dashboard/src/main.tsx +0 -10
  98. package/dashboard/src/types/shims.d.ts +0 -4
  99. package/dashboard/src/views/Home.tsx +0 -478
  100. package/dashboard/src/views/PipelineDetail.tsx +0 -1185
  101. package/dashboard/src/views/PipelinesList.tsx +0 -111
  102. package/dashboard/src/views/RunDetail.tsx +0 -248
  103. package/dashboard/src/views/Search.tsx +0 -196
  104. package/dashboard/stats.js +0 -668
  105. package/dashboard/tailwind.config.ts +0 -43
  106. package/dashboard/tree-stats.js +0 -12
  107. package/dashboard/tsconfig.json +0 -25
  108. package/dashboard/views.js +0 -231
  109. package/dashboard/vite.config.ts +0 -34
  110. package/drizzle.config.js +0 -12
  111. package/drizzle.config.ops.js +0 -12
  112. package/elevation.js +0 -116
  113. package/engine/admission-promotion-resume.js +0 -127
  114. package/engine/agent-dispatch.js +0 -64
  115. package/engine/child-resume-trigger.js +0 -315
  116. package/engine/executor-budget.js +0 -87
  117. package/engine/executor-cancel.js +0 -83
  118. package/engine/executor-errors.js +0 -122
  119. package/engine/executor-helpers.js +0 -254
  120. package/engine/executor-nodes.js +0 -292
  121. package/engine/executor-persist.js +0 -212
  122. package/engine/executor-subflow-children.js +0 -275
  123. package/engine/executor.js +0 -1013
  124. package/engine/global-concurrency.js +0 -33
  125. package/engine/loader.js +0 -528
  126. package/engine/needs-resolver.js +0 -229
  127. package/engine/pipelines-watcher.js +0 -133
  128. package/engine/result-replay.js +0 -34
  129. package/engine/revival-messages.js +0 -11
  130. package/engine/spawn-child.js +0 -55
  131. package/engine/wait-for-flow-settlement.js +0 -109
  132. package/events/catalog.js +0 -26
  133. package/events/emit.js +0 -44
  134. package/events/kinds.js +0 -118
  135. package/events/serve-ws.js +0 -74
  136. package/events/stream.js +0 -35
  137. package/events/ws-dialog.js +0 -257
  138. package/events/ws-frame.js +0 -194
  139. package/events/ws-run-events.js +0 -70
  140. package/events.js +0 -32
  141. package/gates/gate-resolver.js +0 -576
  142. package/gates/paused-flows.js +0 -55
  143. package/graphql/columns.js +0 -67
  144. package/graphql/schema.js +0 -333
  145. package/index.js +0 -49
  146. package/mcp/http.js +0 -159
  147. package/mcp/identity.js +0 -94
  148. package/mcp/stdio.js +0 -80
  149. package/mcp/tools.js +0 -245
  150. package/mcp/wire-ops.js +0 -178
  151. package/routes/bearer-auth.js +0 -57
  152. package/routes/discuss-audio.js +0 -87
  153. package/routes/discuss-component.js +0 -39
  154. package/routes/discuss-draft.js +0 -159
  155. package/routes/discuss-helpers.js +0 -20
  156. package/routes/discuss.js +0 -848
  157. package/routes/failures.js +0 -104
  158. package/routes/graphql.js +0 -61
  159. package/routes/health.js +0 -54
  160. package/routes/operator-discuss.js +0 -193
  161. package/routes/operator-resume.js +0 -32
  162. package/routes/operator-retry.js +0 -301
  163. package/routes/operator.js +0 -539
  164. package/routes/pipelines.js +0 -118
  165. package/routes/runs.js +0 -1129
  166. package/scripts/ci/import-check.mjs +0 -50
  167. package/scripts/link-core-self.mjs +0 -31
  168. package/scripts/with-guard.sh +0 -24
  169. package/server/app.js +0 -503
  170. package/server/registry.js +0 -53
  171. package/server/serve.js +0 -163
  172. package/state/admission-queue-store.js +0 -325
  173. package/state/attribution-registries.js +0 -102
  174. package/state/batch-writer.js +0 -162
  175. package/state/db-guard.js +0 -63
  176. package/state/db-health.js +0 -27
  177. package/state/db.js +0 -122
  178. package/state/discuss-store.js +0 -299
  179. package/state/failure-store.js +0 -427
  180. package/state/migrate.js +0 -104
  181. package/state/node-cost.js +0 -67
  182. package/state/node-executions.js +0 -775
  183. package/state/node-health-store.js +0 -124
  184. package/state/ops-merge.js +0 -93
  185. package/state/paths.js +0 -146
  186. package/state/pipeline-dirs.js +0 -99
  187. package/state/pipeline-registry.js +0 -449
  188. package/state/run-store.js +0 -697
  189. package/state/schema.js +0 -438
  190. package/state/schema.ops.js +0 -44
  191. package/state/session-index.js +0 -177
  192. package/state/session-keys.js +0 -39
  193. package/state/state-store.js +0 -311
  194. package/state/subflow-state.js +0 -126
  195. package/state/tool-handoff.js +0 -169
  196. package/telemetry/budget-alert.js +0 -353
  197. package/telemetry/cli.js +0 -331
  198. package/telemetry/grammar.js +0 -119
  199. package/telemetry/http-budget.js +0 -132
  200. package/telemetry/http-cost.js +0 -670
  201. package/telemetry/http-helpers.js +0 -134
  202. package/telemetry/http-tree.js +0 -349
  203. package/telemetry/http.js +0 -44
  204. package/telemetry/index.js +0 -307
  205. package/telemetry/ingest.js +0 -134
  206. package/telemetry/labels.js +0 -115
  207. package/telemetry/pricer.js +0 -77
  208. package/telemetry/resolver.js +0 -314
  209. package/telemetry/store.js +0 -147
  210. package/utils/run-patch.js +0 -43
@@ -1,2812 +0,0 @@
1
- {
2
- "version": "6",
3
- "dialect": "sqlite",
4
- "id": "785b4882-4300-48e1-a9b3-72aadeab76f4",
5
- "prevId": "a6437b43-b81c-4122-ad03-c466fef8b846",
6
- "tables": {
7
- "cost_by_call": {
8
- "name": "cost_by_call",
9
- "columns": {
10
- "session_id": {
11
- "name": "session_id",
12
- "type": "text",
13
- "primaryKey": false,
14
- "notNull": true,
15
- "autoincrement": false
16
- },
17
- "msg_id": {
18
- "name": "msg_id",
19
- "type": "text",
20
- "primaryKey": false,
21
- "notNull": true,
22
- "autoincrement": false
23
- },
24
- "ts": {
25
- "name": "ts",
26
- "type": "integer",
27
- "primaryKey": false,
28
- "notNull": true,
29
- "autoincrement": false
30
- },
31
- "provider": {
32
- "name": "provider",
33
- "type": "text",
34
- "primaryKey": false,
35
- "notNull": false,
36
- "autoincrement": false
37
- },
38
- "model": {
39
- "name": "model",
40
- "type": "text",
41
- "primaryKey": false,
42
- "notNull": false,
43
- "autoincrement": false
44
- },
45
- "input_tokens": {
46
- "name": "input_tokens",
47
- "type": "integer",
48
- "primaryKey": false,
49
- "notNull": false,
50
- "autoincrement": false
51
- },
52
- "output_tokens": {
53
- "name": "output_tokens",
54
- "type": "integer",
55
- "primaryKey": false,
56
- "notNull": false,
57
- "autoincrement": false
58
- },
59
- "cache_read_tokens": {
60
- "name": "cache_read_tokens",
61
- "type": "integer",
62
- "primaryKey": false,
63
- "notNull": false,
64
- "autoincrement": false
65
- },
66
- "cache_write_tokens": {
67
- "name": "cache_write_tokens",
68
- "type": "integer",
69
- "primaryKey": false,
70
- "notNull": false,
71
- "autoincrement": false
72
- },
73
- "total_tokens": {
74
- "name": "total_tokens",
75
- "type": "integer",
76
- "primaryKey": false,
77
- "notNull": false,
78
- "autoincrement": false
79
- },
80
- "cost_input": {
81
- "name": "cost_input",
82
- "type": "real",
83
- "primaryKey": false,
84
- "notNull": false,
85
- "autoincrement": false
86
- },
87
- "cost_output": {
88
- "name": "cost_output",
89
- "type": "real",
90
- "primaryKey": false,
91
- "notNull": false,
92
- "autoincrement": false
93
- },
94
- "cost_cache_read": {
95
- "name": "cost_cache_read",
96
- "type": "real",
97
- "primaryKey": false,
98
- "notNull": false,
99
- "autoincrement": false
100
- },
101
- "cost_cache_write": {
102
- "name": "cost_cache_write",
103
- "type": "real",
104
- "primaryKey": false,
105
- "notNull": false,
106
- "autoincrement": false
107
- },
108
- "cost_total": {
109
- "name": "cost_total",
110
- "type": "real",
111
- "primaryKey": false,
112
- "notNull": true,
113
- "autoincrement": false
114
- },
115
- "session_key": {
116
- "name": "session_key",
117
- "type": "text",
118
- "primaryKey": false,
119
- "notNull": false,
120
- "autoincrement": false
121
- },
122
- "agent_id": {
123
- "name": "agent_id",
124
- "type": "text",
125
- "primaryKey": false,
126
- "notNull": false,
127
- "autoincrement": false
128
- },
129
- "root_session_key": {
130
- "name": "root_session_key",
131
- "type": "text",
132
- "primaryKey": false,
133
- "notNull": false,
134
- "autoincrement": false
135
- },
136
- "root_kind": {
137
- "name": "root_kind",
138
- "type": "text",
139
- "primaryKey": false,
140
- "notNull": false,
141
- "autoincrement": false
142
- },
143
- "root_label": {
144
- "name": "root_label",
145
- "type": "text",
146
- "primaryKey": false,
147
- "notNull": false,
148
- "autoincrement": false
149
- },
150
- "pipeline_id": {
151
- "name": "pipeline_id",
152
- "type": "text",
153
- "primaryKey": false,
154
- "notNull": false,
155
- "autoincrement": false
156
- },
157
- "flow_id": {
158
- "name": "flow_id",
159
- "type": "text",
160
- "primaryKey": false,
161
- "notNull": false,
162
- "autoincrement": false
163
- },
164
- "node_id": {
165
- "name": "node_id",
166
- "type": "text",
167
- "primaryKey": false,
168
- "notNull": false,
169
- "autoincrement": false
170
- },
171
- "item_key": {
172
- "name": "item_key",
173
- "type": "text",
174
- "primaryKey": false,
175
- "notNull": false,
176
- "autoincrement": false
177
- }
178
- },
179
- "indexes": {
180
- "idx_cost_ts": {
181
- "name": "idx_cost_ts",
182
- "columns": [
183
- "ts"
184
- ],
185
- "isUnique": false
186
- },
187
- "idx_cost_root_key": {
188
- "name": "idx_cost_root_key",
189
- "columns": [
190
- "root_session_key"
191
- ],
192
- "isUnique": false
193
- },
194
- "idx_cost_root_kind_ts": {
195
- "name": "idx_cost_root_kind_ts",
196
- "columns": [
197
- "root_kind",
198
- "ts"
199
- ],
200
- "isUnique": false
201
- },
202
- "idx_cost_pipeline_ts": {
203
- "name": "idx_cost_pipeline_ts",
204
- "columns": [
205
- "pipeline_id",
206
- "ts"
207
- ],
208
- "isUnique": false
209
- },
210
- "idx_cost_flow_node": {
211
- "name": "idx_cost_flow_node",
212
- "columns": [
213
- "flow_id",
214
- "node_id"
215
- ],
216
- "isUnique": false
217
- },
218
- "idx_cost_model_ts": {
219
- "name": "idx_cost_model_ts",
220
- "columns": [
221
- "model",
222
- "ts"
223
- ],
224
- "isUnique": false
225
- },
226
- "idx_cost_session": {
227
- "name": "idx_cost_session",
228
- "columns": [
229
- "session_id"
230
- ],
231
- "isUnique": false
232
- }
233
- },
234
- "foreignKeys": {
235
- "cost_by_call_session_key_sessions_session_key_fk": {
236
- "name": "cost_by_call_session_key_sessions_session_key_fk",
237
- "tableFrom": "cost_by_call",
238
- "tableTo": "sessions",
239
- "columnsFrom": [
240
- "session_key"
241
- ],
242
- "columnsTo": [
243
- "session_key"
244
- ],
245
- "onDelete": "set null",
246
- "onUpdate": "no action"
247
- },
248
- "cost_by_call_root_session_key_sessions_session_key_fk": {
249
- "name": "cost_by_call_root_session_key_sessions_session_key_fk",
250
- "tableFrom": "cost_by_call",
251
- "tableTo": "sessions",
252
- "columnsFrom": [
253
- "root_session_key"
254
- ],
255
- "columnsTo": [
256
- "session_key"
257
- ],
258
- "onDelete": "set null",
259
- "onUpdate": "no action"
260
- },
261
- "cost_by_call_pipeline_id_pipelines_id_fk": {
262
- "name": "cost_by_call_pipeline_id_pipelines_id_fk",
263
- "tableFrom": "cost_by_call",
264
- "tableTo": "pipelines",
265
- "columnsFrom": [
266
- "pipeline_id"
267
- ],
268
- "columnsTo": [
269
- "id"
270
- ],
271
- "onDelete": "set null",
272
- "onUpdate": "no action"
273
- },
274
- "cost_by_call_flow_id_flow_runs_flow_id_fk": {
275
- "name": "cost_by_call_flow_id_flow_runs_flow_id_fk",
276
- "tableFrom": "cost_by_call",
277
- "tableTo": "flow_runs",
278
- "columnsFrom": [
279
- "flow_id"
280
- ],
281
- "columnsTo": [
282
- "flow_id"
283
- ],
284
- "onDelete": "set null",
285
- "onUpdate": "no action"
286
- },
287
- "cost_by_call_pipeline_id_node_id_pipeline_nodes_pipeline_id_node_name_fk": {
288
- "name": "cost_by_call_pipeline_id_node_id_pipeline_nodes_pipeline_id_node_name_fk",
289
- "tableFrom": "cost_by_call",
290
- "tableTo": "pipeline_nodes",
291
- "columnsFrom": [
292
- "pipeline_id",
293
- "node_id"
294
- ],
295
- "columnsTo": [
296
- "pipeline_id",
297
- "node_name"
298
- ],
299
- "onDelete": "no action",
300
- "onUpdate": "no action"
301
- },
302
- "cost_by_call_flow_id_item_key_flow_items_flow_id_item_key_fk": {
303
- "name": "cost_by_call_flow_id_item_key_flow_items_flow_id_item_key_fk",
304
- "tableFrom": "cost_by_call",
305
- "tableTo": "flow_items",
306
- "columnsFrom": [
307
- "flow_id",
308
- "item_key"
309
- ],
310
- "columnsTo": [
311
- "flow_id",
312
- "item_key"
313
- ],
314
- "onDelete": "no action",
315
- "onUpdate": "no action"
316
- }
317
- },
318
- "compositePrimaryKeys": {
319
- "cost_by_call_session_id_msg_id_pk": {
320
- "columns": [
321
- "session_id",
322
- "msg_id"
323
- ],
324
- "name": "cost_by_call_session_id_msg_id_pk"
325
- }
326
- },
327
- "uniqueConstraints": {},
328
- "checkConstraints": {}
329
- },
330
- "discuss_state": {
331
- "name": "discuss_state",
332
- "columns": {
333
- "flow_id": {
334
- "name": "flow_id",
335
- "type": "text",
336
- "primaryKey": false,
337
- "notNull": true,
338
- "autoincrement": false
339
- },
340
- "item_id": {
341
- "name": "item_id",
342
- "type": "text",
343
- "primaryKey": false,
344
- "notNull": true,
345
- "autoincrement": false
346
- },
347
- "messages_json": {
348
- "name": "messages_json",
349
- "type": "text",
350
- "primaryKey": false,
351
- "notNull": true,
352
- "autoincrement": false,
353
- "default": "'[]'"
354
- },
355
- "turn_status": {
356
- "name": "turn_status",
357
- "type": "text",
358
- "primaryKey": false,
359
- "notNull": true,
360
- "autoincrement": false,
361
- "default": "'idle'"
362
- },
363
- "active_turn_id": {
364
- "name": "active_turn_id",
365
- "type": "text",
366
- "primaryKey": false,
367
- "notNull": false,
368
- "autoincrement": false
369
- },
370
- "pending_json": {
371
- "name": "pending_json",
372
- "type": "text",
373
- "primaryKey": false,
374
- "notNull": false,
375
- "autoincrement": false
376
- },
377
- "updated_at": {
378
- "name": "updated_at",
379
- "type": "integer",
380
- "primaryKey": false,
381
- "notNull": true,
382
- "autoincrement": false
383
- },
384
- "components_json": {
385
- "name": "components_json",
386
- "type": "text",
387
- "primaryKey": false,
388
- "notNull": true,
389
- "autoincrement": false,
390
- "default": "'[]'"
391
- }
392
- },
393
- "indexes": {
394
- "idx_discuss_updated": {
395
- "name": "idx_discuss_updated",
396
- "columns": [
397
- "updated_at"
398
- ],
399
- "isUnique": false
400
- },
401
- "idx_discuss_state_unique": {
402
- "name": "idx_discuss_state_unique",
403
- "columns": [
404
- "flow_id",
405
- "item_id"
406
- ],
407
- "isUnique": true
408
- }
409
- },
410
- "foreignKeys": {
411
- "discuss_state_flow_id_flow_runs_flow_id_fk": {
412
- "name": "discuss_state_flow_id_flow_runs_flow_id_fk",
413
- "tableFrom": "discuss_state",
414
- "tableTo": "flow_runs",
415
- "columnsFrom": [
416
- "flow_id"
417
- ],
418
- "columnsTo": [
419
- "flow_id"
420
- ],
421
- "onDelete": "cascade",
422
- "onUpdate": "no action"
423
- }
424
- },
425
- "compositePrimaryKeys": {},
426
- "uniqueConstraints": {},
427
- "checkConstraints": {}
428
- },
429
- "discuss_threads": {
430
- "name": "discuss_threads",
431
- "columns": {
432
- "flow_id": {
433
- "name": "flow_id",
434
- "type": "text",
435
- "primaryKey": false,
436
- "notNull": true,
437
- "autoincrement": false
438
- },
439
- "gate_node_id": {
440
- "name": "gate_node_id",
441
- "type": "text",
442
- "primaryKey": false,
443
- "notNull": true,
444
- "autoincrement": false
445
- },
446
- "item_id": {
447
- "name": "item_id",
448
- "type": "text",
449
- "primaryKey": false,
450
- "notNull": true,
451
- "autoincrement": false
452
- },
453
- "agent_id": {
454
- "name": "agent_id",
455
- "type": "text",
456
- "primaryKey": false,
457
- "notNull": false,
458
- "autoincrement": false
459
- },
460
- "session_key": {
461
- "name": "session_key",
462
- "type": "text",
463
- "primaryKey": false,
464
- "notNull": true,
465
- "autoincrement": false
466
- },
467
- "updated_at": {
468
- "name": "updated_at",
469
- "type": "integer",
470
- "primaryKey": false,
471
- "notNull": true,
472
- "autoincrement": false
473
- }
474
- },
475
- "indexes": {
476
- "idx_discuss_threads_unique": {
477
- "name": "idx_discuss_threads_unique",
478
- "columns": [
479
- "flow_id",
480
- "gate_node_id",
481
- "item_id"
482
- ],
483
- "isUnique": true
484
- }
485
- },
486
- "foreignKeys": {
487
- "discuss_threads_flow_id_flow_runs_flow_id_fk": {
488
- "name": "discuss_threads_flow_id_flow_runs_flow_id_fk",
489
- "tableFrom": "discuss_threads",
490
- "tableTo": "flow_runs",
491
- "columnsFrom": [
492
- "flow_id"
493
- ],
494
- "columnsTo": [
495
- "flow_id"
496
- ],
497
- "onDelete": "cascade",
498
- "onUpdate": "no action"
499
- },
500
- "discuss_threads_session_key_sessions_session_key_fk": {
501
- "name": "discuss_threads_session_key_sessions_session_key_fk",
502
- "tableFrom": "discuss_threads",
503
- "tableTo": "sessions",
504
- "columnsFrom": [
505
- "session_key"
506
- ],
507
- "columnsTo": [
508
- "session_key"
509
- ],
510
- "onDelete": "no action",
511
- "onUpdate": "no action"
512
- }
513
- },
514
- "compositePrimaryKeys": {},
515
- "uniqueConstraints": {},
516
- "checkConstraints": {}
517
- },
518
- "failure_events": {
519
- "name": "failure_events",
520
- "columns": {
521
- "id": {
522
- "name": "id",
523
- "type": "text",
524
- "primaryKey": true,
525
- "notNull": true,
526
- "autoincrement": false
527
- },
528
- "flow_id": {
529
- "name": "flow_id",
530
- "type": "text",
531
- "primaryKey": false,
532
- "notNull": true,
533
- "autoincrement": false
534
- },
535
- "failed_at": {
536
- "name": "failed_at",
537
- "type": "integer",
538
- "primaryKey": false,
539
- "notNull": true,
540
- "autoincrement": false
541
- },
542
- "failure_summary": {
543
- "name": "failure_summary",
544
- "type": "text",
545
- "primaryKey": false,
546
- "notNull": true,
547
- "autoincrement": false
548
- },
549
- "invocation_id": {
550
- "name": "invocation_id",
551
- "type": "text",
552
- "primaryKey": false,
553
- "notNull": false,
554
- "autoincrement": false
555
- },
556
- "execution_id": {
557
- "name": "execution_id",
558
- "type": "text",
559
- "primaryKey": false,
560
- "notNull": false,
561
- "autoincrement": false
562
- },
563
- "error_type": {
564
- "name": "error_type",
565
- "type": "text",
566
- "primaryKey": false,
567
- "notNull": false,
568
- "autoincrement": false
569
- }
570
- },
571
- "indexes": {
572
- "idx_failures_flow": {
573
- "name": "idx_failures_flow",
574
- "columns": [
575
- "flow_id"
576
- ],
577
- "isUnique": false
578
- },
579
- "idx_failures_failed_at": {
580
- "name": "idx_failures_failed_at",
581
- "columns": [
582
- "\"failed_at\" desc"
583
- ],
584
- "isUnique": false
585
- },
586
- "idx_failures_invocation": {
587
- "name": "idx_failures_invocation",
588
- "columns": [
589
- "invocation_id"
590
- ],
591
- "isUnique": false
592
- },
593
- "idx_failures_execution": {
594
- "name": "idx_failures_execution",
595
- "columns": [
596
- "execution_id"
597
- ],
598
- "isUnique": true,
599
- "where": "\"failure_events\".\"execution_id\" IS NOT NULL"
600
- }
601
- },
602
- "foreignKeys": {
603
- "failure_events_flow_id_flow_runs_flow_id_fk": {
604
- "name": "failure_events_flow_id_flow_runs_flow_id_fk",
605
- "tableFrom": "failure_events",
606
- "tableTo": "flow_runs",
607
- "columnsFrom": [
608
- "flow_id"
609
- ],
610
- "columnsTo": [
611
- "flow_id"
612
- ],
613
- "onDelete": "cascade",
614
- "onUpdate": "no action"
615
- },
616
- "failure_events_invocation_id_flow_node_invocations_id_fk": {
617
- "name": "failure_events_invocation_id_flow_node_invocations_id_fk",
618
- "tableFrom": "failure_events",
619
- "tableTo": "flow_node_invocations",
620
- "columnsFrom": [
621
- "invocation_id"
622
- ],
623
- "columnsTo": [
624
- "id"
625
- ],
626
- "onDelete": "set null",
627
- "onUpdate": "no action"
628
- },
629
- "failure_events_execution_id_flow_node_executions_id_fk": {
630
- "name": "failure_events_execution_id_flow_node_executions_id_fk",
631
- "tableFrom": "failure_events",
632
- "tableTo": "flow_node_executions",
633
- "columnsFrom": [
634
- "execution_id"
635
- ],
636
- "columnsTo": [
637
- "id"
638
- ],
639
- "onDelete": "set null",
640
- "onUpdate": "no action"
641
- }
642
- },
643
- "compositePrimaryKeys": {},
644
- "uniqueConstraints": {},
645
- "checkConstraints": {}
646
- },
647
- "flow_admission_queue": {
648
- "name": "flow_admission_queue",
649
- "columns": {
650
- "id": {
651
- "name": "id",
652
- "type": "text",
653
- "primaryKey": true,
654
- "notNull": true,
655
- "autoincrement": false
656
- },
657
- "kind": {
658
- "name": "kind",
659
- "type": "text",
660
- "primaryKey": false,
661
- "notNull": true,
662
- "autoincrement": false
663
- },
664
- "flow_id": {
665
- "name": "flow_id",
666
- "type": "text",
667
- "primaryKey": false,
668
- "notNull": true,
669
- "autoincrement": false
670
- },
671
- "node_id": {
672
- "name": "node_id",
673
- "type": "text",
674
- "primaryKey": false,
675
- "notNull": false,
676
- "autoincrement": false
677
- },
678
- "status": {
679
- "name": "status",
680
- "type": "text",
681
- "primaryKey": false,
682
- "notNull": true,
683
- "autoincrement": false
684
- },
685
- "created_at": {
686
- "name": "created_at",
687
- "type": "integer",
688
- "primaryKey": false,
689
- "notNull": true,
690
- "autoincrement": false
691
- },
692
- "admitted_at": {
693
- "name": "admitted_at",
694
- "type": "integer",
695
- "primaryKey": false,
696
- "notNull": false,
697
- "autoincrement": false
698
- }
699
- },
700
- "indexes": {
701
- "idx_admission_status": {
702
- "name": "idx_admission_status",
703
- "columns": [
704
- "status"
705
- ],
706
- "isUnique": false
707
- },
708
- "idx_admission_flow": {
709
- "name": "idx_admission_flow",
710
- "columns": [
711
- "flow_id"
712
- ],
713
- "isUnique": false
714
- },
715
- "idx_admission_status_created": {
716
- "name": "idx_admission_status_created",
717
- "columns": [
718
- "status",
719
- "created_at"
720
- ],
721
- "isUnique": false
722
- }
723
- },
724
- "foreignKeys": {
725
- "flow_admission_queue_flow_id_flow_runs_flow_id_fk": {
726
- "name": "flow_admission_queue_flow_id_flow_runs_flow_id_fk",
727
- "tableFrom": "flow_admission_queue",
728
- "tableTo": "flow_runs",
729
- "columnsFrom": [
730
- "flow_id"
731
- ],
732
- "columnsTo": [
733
- "flow_id"
734
- ],
735
- "onDelete": "cascade",
736
- "onUpdate": "no action"
737
- }
738
- },
739
- "compositePrimaryKeys": {},
740
- "uniqueConstraints": {},
741
- "checkConstraints": {}
742
- },
743
- "flow_events": {
744
- "name": "flow_events",
745
- "columns": {
746
- "id": {
747
- "name": "id",
748
- "type": "text",
749
- "primaryKey": true,
750
- "notNull": true,
751
- "autoincrement": false
752
- },
753
- "flow_id": {
754
- "name": "flow_id",
755
- "type": "text",
756
- "primaryKey": false,
757
- "notNull": true,
758
- "autoincrement": false
759
- },
760
- "event_type": {
761
- "name": "event_type",
762
- "type": "text",
763
- "primaryKey": false,
764
- "notNull": true,
765
- "autoincrement": false
766
- },
767
- "prev_step": {
768
- "name": "prev_step",
769
- "type": "text",
770
- "primaryKey": false,
771
- "notNull": false,
772
- "autoincrement": false
773
- },
774
- "curr_step": {
775
- "name": "curr_step",
776
- "type": "text",
777
- "primaryKey": false,
778
- "notNull": false,
779
- "autoincrement": false
780
- },
781
- "prev_status": {
782
- "name": "prev_status",
783
- "type": "text",
784
- "primaryKey": false,
785
- "notNull": false,
786
- "autoincrement": false
787
- },
788
- "curr_status": {
789
- "name": "curr_status",
790
- "type": "text",
791
- "primaryKey": false,
792
- "notNull": false,
793
- "autoincrement": false
794
- },
795
- "wait_kind": {
796
- "name": "wait_kind",
797
- "type": "text",
798
- "primaryKey": false,
799
- "notNull": false,
800
- "autoincrement": false
801
- },
802
- "occurred_at": {
803
- "name": "occurred_at",
804
- "type": "integer",
805
- "primaryKey": false,
806
- "notNull": true,
807
- "autoincrement": false
808
- }
809
- },
810
- "indexes": {
811
- "idx_flow_events_flow_id": {
812
- "name": "idx_flow_events_flow_id",
813
- "columns": [
814
- "flow_id"
815
- ],
816
- "isUnique": false
817
- },
818
- "idx_flow_events_occurred_at": {
819
- "name": "idx_flow_events_occurred_at",
820
- "columns": [
821
- "occurred_at"
822
- ],
823
- "isUnique": false
824
- }
825
- },
826
- "foreignKeys": {
827
- "flow_events_flow_id_flow_runs_flow_id_fk": {
828
- "name": "flow_events_flow_id_flow_runs_flow_id_fk",
829
- "tableFrom": "flow_events",
830
- "tableTo": "flow_runs",
831
- "columnsFrom": [
832
- "flow_id"
833
- ],
834
- "columnsTo": [
835
- "flow_id"
836
- ],
837
- "onDelete": "cascade",
838
- "onUpdate": "no action"
839
- }
840
- },
841
- "compositePrimaryKeys": {},
842
- "uniqueConstraints": {},
843
- "checkConstraints": {}
844
- },
845
- "flow_items": {
846
- "name": "flow_items",
847
- "columns": {
848
- "flow_id": {
849
- "name": "flow_id",
850
- "type": "text",
851
- "primaryKey": false,
852
- "notNull": true,
853
- "autoincrement": false
854
- },
855
- "item_key": {
856
- "name": "item_key",
857
- "type": "text",
858
- "primaryKey": false,
859
- "notNull": true,
860
- "autoincrement": false
861
- },
862
- "first_seen_at": {
863
- "name": "first_seen_at",
864
- "type": "integer",
865
- "primaryKey": false,
866
- "notNull": true,
867
- "autoincrement": false
868
- }
869
- },
870
- "indexes": {
871
- "idx_flow_items_key": {
872
- "name": "idx_flow_items_key",
873
- "columns": [
874
- "item_key"
875
- ],
876
- "isUnique": false
877
- }
878
- },
879
- "foreignKeys": {},
880
- "compositePrimaryKeys": {
881
- "flow_items_flow_id_item_key_pk": {
882
- "columns": [
883
- "flow_id",
884
- "item_key"
885
- ],
886
- "name": "flow_items_flow_id_item_key_pk"
887
- }
888
- },
889
- "uniqueConstraints": {},
890
- "checkConstraints": {}
891
- },
892
- "flow_node_executions": {
893
- "name": "flow_node_executions",
894
- "columns": {
895
- "id": {
896
- "name": "id",
897
- "type": "text",
898
- "primaryKey": true,
899
- "notNull": true,
900
- "autoincrement": false
901
- },
902
- "invocation_id": {
903
- "name": "invocation_id",
904
- "type": "text",
905
- "primaryKey": false,
906
- "notNull": true,
907
- "autoincrement": false
908
- },
909
- "entered_at": {
910
- "name": "entered_at",
911
- "type": "integer",
912
- "primaryKey": false,
913
- "notNull": true,
914
- "autoincrement": false
915
- },
916
- "exited_at": {
917
- "name": "exited_at",
918
- "type": "integer",
919
- "primaryKey": false,
920
- "notNull": true,
921
- "autoincrement": false
922
- },
923
- "kind": {
924
- "name": "kind",
925
- "type": "text",
926
- "primaryKey": false,
927
- "notNull": true,
928
- "autoincrement": false,
929
- "default": "'legacy'"
930
- }
931
- },
932
- "indexes": {
933
- "idx_fne_invocation": {
934
- "name": "idx_fne_invocation",
935
- "columns": [
936
- "invocation_id"
937
- ],
938
- "isUnique": false
939
- },
940
- "idx_fne_exited": {
941
- "name": "idx_fne_exited",
942
- "columns": [
943
- "exited_at"
944
- ],
945
- "isUnique": false
946
- }
947
- },
948
- "foreignKeys": {
949
- "flow_node_executions_invocation_id_flow_node_invocations_id_fk": {
950
- "name": "flow_node_executions_invocation_id_flow_node_invocations_id_fk",
951
- "tableFrom": "flow_node_executions",
952
- "tableTo": "flow_node_invocations",
953
- "columnsFrom": [
954
- "invocation_id"
955
- ],
956
- "columnsTo": [
957
- "id"
958
- ],
959
- "onDelete": "cascade",
960
- "onUpdate": "no action"
961
- }
962
- },
963
- "compositePrimaryKeys": {},
964
- "uniqueConstraints": {},
965
- "checkConstraints": {}
966
- },
967
- "flow_node_invocations": {
968
- "name": "flow_node_invocations",
969
- "columns": {
970
- "id": {
971
- "name": "id",
972
- "type": "text",
973
- "primaryKey": true,
974
- "notNull": true,
975
- "autoincrement": false
976
- },
977
- "flow_id": {
978
- "name": "flow_id",
979
- "type": "text",
980
- "primaryKey": false,
981
- "notNull": true,
982
- "autoincrement": false
983
- },
984
- "pipeline_id": {
985
- "name": "pipeline_id",
986
- "type": "text",
987
- "primaryKey": false,
988
- "notNull": false,
989
- "autoincrement": false
990
- },
991
- "node_id": {
992
- "name": "node_id",
993
- "type": "text",
994
- "primaryKey": false,
995
- "notNull": true,
996
- "autoincrement": false
997
- },
998
- "subflow_key": {
999
- "name": "subflow_key",
1000
- "type": "text",
1001
- "primaryKey": false,
1002
- "notNull": false,
1003
- "autoincrement": false
1004
- },
1005
- "visit_seq": {
1006
- "name": "visit_seq",
1007
- "type": "integer",
1008
- "primaryKey": false,
1009
- "notNull": true,
1010
- "autoincrement": false,
1011
- "default": 1
1012
- },
1013
- "invoked_at": {
1014
- "name": "invoked_at",
1015
- "type": "integer",
1016
- "primaryKey": false,
1017
- "notNull": true,
1018
- "autoincrement": false
1019
- },
1020
- "result_json": {
1021
- "name": "result_json",
1022
- "type": "text",
1023
- "primaryKey": false,
1024
- "notNull": false,
1025
- "autoincrement": false
1026
- },
1027
- "result_written_at": {
1028
- "name": "result_written_at",
1029
- "type": "integer",
1030
- "primaryKey": false,
1031
- "notNull": false,
1032
- "autoincrement": false
1033
- },
1034
- "result_too_large_bytes": {
1035
- "name": "result_too_large_bytes",
1036
- "type": "integer",
1037
- "primaryKey": false,
1038
- "notNull": false,
1039
- "autoincrement": false
1040
- }
1041
- },
1042
- "indexes": {
1043
- "idx_invocations_flow": {
1044
- "name": "idx_invocations_flow",
1045
- "columns": [
1046
- "flow_id"
1047
- ],
1048
- "isUnique": false
1049
- },
1050
- "idx_invocations_node_subflow": {
1051
- "name": "idx_invocations_node_subflow",
1052
- "columns": [
1053
- "node_id",
1054
- "subflow_key"
1055
- ],
1056
- "isUnique": false
1057
- },
1058
- "idx_invocations_pipe_node": {
1059
- "name": "idx_invocations_pipe_node",
1060
- "columns": [
1061
- "pipeline_id",
1062
- "node_id"
1063
- ],
1064
- "isUnique": false
1065
- }
1066
- },
1067
- "foreignKeys": {
1068
- "flow_node_invocations_flow_id_flow_runs_flow_id_fk": {
1069
- "name": "flow_node_invocations_flow_id_flow_runs_flow_id_fk",
1070
- "tableFrom": "flow_node_invocations",
1071
- "tableTo": "flow_runs",
1072
- "columnsFrom": [
1073
- "flow_id"
1074
- ],
1075
- "columnsTo": [
1076
- "flow_id"
1077
- ],
1078
- "onDelete": "cascade",
1079
- "onUpdate": "no action"
1080
- }
1081
- },
1082
- "compositePrimaryKeys": {},
1083
- "uniqueConstraints": {},
1084
- "checkConstraints": {}
1085
- },
1086
- "flow_runs": {
1087
- "name": "flow_runs",
1088
- "columns": {
1089
- "flow_id": {
1090
- "name": "flow_id",
1091
- "type": "text",
1092
- "primaryKey": true,
1093
- "notNull": true,
1094
- "autoincrement": false
1095
- },
1096
- "owner_key": {
1097
- "name": "owner_key",
1098
- "type": "text",
1099
- "primaryKey": false,
1100
- "notNull": true,
1101
- "autoincrement": false,
1102
- "default": "''"
1103
- },
1104
- "revision": {
1105
- "name": "revision",
1106
- "type": "integer",
1107
- "primaryKey": false,
1108
- "notNull": true,
1109
- "autoincrement": false,
1110
- "default": 0
1111
- },
1112
- "status": {
1113
- "name": "status",
1114
- "type": "text",
1115
- "primaryKey": false,
1116
- "notNull": true,
1117
- "autoincrement": false
1118
- },
1119
- "last_step": {
1120
- "name": "last_step",
1121
- "type": "text",
1122
- "primaryKey": false,
1123
- "notNull": false,
1124
- "autoincrement": false
1125
- },
1126
- "status_reason": {
1127
- "name": "status_reason",
1128
- "type": "text",
1129
- "primaryKey": false,
1130
- "notNull": false,
1131
- "autoincrement": false
1132
- },
1133
- "state_json": {
1134
- "name": "state_json",
1135
- "type": "text",
1136
- "primaryKey": false,
1137
- "notNull": true,
1138
- "autoincrement": false,
1139
- "default": "'{}'"
1140
- },
1141
- "wait_json": {
1142
- "name": "wait_json",
1143
- "type": "text",
1144
- "primaryKey": false,
1145
- "notNull": false,
1146
- "autoincrement": false
1147
- },
1148
- "cancel_requested_at": {
1149
- "name": "cancel_requested_at",
1150
- "type": "integer",
1151
- "primaryKey": false,
1152
- "notNull": false,
1153
- "autoincrement": false
1154
- },
1155
- "created_at": {
1156
- "name": "created_at",
1157
- "type": "integer",
1158
- "primaryKey": false,
1159
- "notNull": true,
1160
- "autoincrement": false
1161
- },
1162
- "updated_at": {
1163
- "name": "updated_at",
1164
- "type": "integer",
1165
- "primaryKey": false,
1166
- "notNull": true,
1167
- "autoincrement": false
1168
- },
1169
- "ended_at": {
1170
- "name": "ended_at",
1171
- "type": "integer",
1172
- "primaryKey": false,
1173
- "notNull": false,
1174
- "autoincrement": false
1175
- },
1176
- "parent_invocation_id": {
1177
- "name": "parent_invocation_id",
1178
- "type": "text",
1179
- "primaryKey": false,
1180
- "notNull": false,
1181
- "autoincrement": false
1182
- },
1183
- "pipeline_id": {
1184
- "name": "pipeline_id",
1185
- "type": "text",
1186
- "primaryKey": false,
1187
- "notNull": false,
1188
- "autoincrement": false
1189
- }
1190
- },
1191
- "indexes": {
1192
- "idx_pfr_status": {
1193
- "name": "idx_pfr_status",
1194
- "columns": [
1195
- "status"
1196
- ],
1197
- "isUnique": false,
1198
- "where": "\"flow_runs\".\"ended_at\" IS NULL"
1199
- },
1200
- "idx_pfr_updated": {
1201
- "name": "idx_pfr_updated",
1202
- "columns": [
1203
- "\"updated_at\" desc"
1204
- ],
1205
- "isUnique": false
1206
- },
1207
- "idx_pfr_created": {
1208
- "name": "idx_pfr_created",
1209
- "columns": [
1210
- "\"created_at\" desc"
1211
- ],
1212
- "isUnique": false
1213
- },
1214
- "idx_pfr_parent_invocation": {
1215
- "name": "idx_pfr_parent_invocation",
1216
- "columns": [
1217
- "parent_invocation_id"
1218
- ],
1219
- "isUnique": true,
1220
- "where": "\"flow_runs\".\"parent_invocation_id\" IS NOT NULL"
1221
- },
1222
- "idx_flow_runs_pipeline_id": {
1223
- "name": "idx_flow_runs_pipeline_id",
1224
- "columns": [
1225
- "pipeline_id"
1226
- ],
1227
- "isUnique": false
1228
- }
1229
- },
1230
- "foreignKeys": {
1231
- "flow_runs_parent_invocation_id_flow_node_invocations_id_fk": {
1232
- "name": "flow_runs_parent_invocation_id_flow_node_invocations_id_fk",
1233
- "tableFrom": "flow_runs",
1234
- "tableTo": "flow_node_invocations",
1235
- "columnsFrom": [
1236
- "parent_invocation_id"
1237
- ],
1238
- "columnsTo": [
1239
- "id"
1240
- ],
1241
- "onDelete": "set null",
1242
- "onUpdate": "no action"
1243
- },
1244
- "flow_runs_pipeline_id_pipelines_id_fk": {
1245
- "name": "flow_runs_pipeline_id_pipelines_id_fk",
1246
- "tableFrom": "flow_runs",
1247
- "tableTo": "pipelines",
1248
- "columnsFrom": [
1249
- "pipeline_id"
1250
- ],
1251
- "columnsTo": [
1252
- "id"
1253
- ],
1254
- "onDelete": "set null",
1255
- "onUpdate": "no action"
1256
- }
1257
- },
1258
- "compositePrimaryKeys": {},
1259
- "uniqueConstraints": {},
1260
- "checkConstraints": {}
1261
- },
1262
- "flow_sessions": {
1263
- "name": "flow_sessions",
1264
- "columns": {
1265
- "id": {
1266
- "name": "id",
1267
- "type": "text",
1268
- "primaryKey": true,
1269
- "notNull": true,
1270
- "autoincrement": false
1271
- },
1272
- "flow_id": {
1273
- "name": "flow_id",
1274
- "type": "text",
1275
- "primaryKey": false,
1276
- "notNull": true,
1277
- "autoincrement": false
1278
- },
1279
- "session_key": {
1280
- "name": "session_key",
1281
- "type": "text",
1282
- "primaryKey": false,
1283
- "notNull": true,
1284
- "autoincrement": false
1285
- },
1286
- "node_id": {
1287
- "name": "node_id",
1288
- "type": "text",
1289
- "primaryKey": false,
1290
- "notNull": false,
1291
- "autoincrement": false
1292
- },
1293
- "branch_item_id": {
1294
- "name": "branch_item_id",
1295
- "type": "text",
1296
- "primaryKey": false,
1297
- "notNull": false,
1298
- "autoincrement": false
1299
- },
1300
- "spawned_at": {
1301
- "name": "spawned_at",
1302
- "type": "integer",
1303
- "primaryKey": false,
1304
- "notNull": true,
1305
- "autoincrement": false
1306
- }
1307
- },
1308
- "indexes": {
1309
- "idx_flow_sessions_flow_id": {
1310
- "name": "idx_flow_sessions_flow_id",
1311
- "columns": [
1312
- "flow_id"
1313
- ],
1314
- "isUnique": false
1315
- },
1316
- "idx_flow_sessions_uniq": {
1317
- "name": "idx_flow_sessions_uniq",
1318
- "columns": [
1319
- "flow_id",
1320
- "session_key"
1321
- ],
1322
- "isUnique": true
1323
- }
1324
- },
1325
- "foreignKeys": {
1326
- "flow_sessions_flow_id_flow_runs_flow_id_fk": {
1327
- "name": "flow_sessions_flow_id_flow_runs_flow_id_fk",
1328
- "tableFrom": "flow_sessions",
1329
- "tableTo": "flow_runs",
1330
- "columnsFrom": [
1331
- "flow_id"
1332
- ],
1333
- "columnsTo": [
1334
- "flow_id"
1335
- ],
1336
- "onDelete": "cascade",
1337
- "onUpdate": "no action"
1338
- },
1339
- "flow_sessions_session_key_sessions_session_key_fk": {
1340
- "name": "flow_sessions_session_key_sessions_session_key_fk",
1341
- "tableFrom": "flow_sessions",
1342
- "tableTo": "sessions",
1343
- "columnsFrom": [
1344
- "session_key"
1345
- ],
1346
- "columnsTo": [
1347
- "session_key"
1348
- ],
1349
- "onDelete": "no action",
1350
- "onUpdate": "no action"
1351
- },
1352
- "flow_sessions_flow_id_branch_item_id_flow_items_flow_id_item_key_fk": {
1353
- "name": "flow_sessions_flow_id_branch_item_id_flow_items_flow_id_item_key_fk",
1354
- "tableFrom": "flow_sessions",
1355
- "tableTo": "flow_items",
1356
- "columnsFrom": [
1357
- "flow_id",
1358
- "branch_item_id"
1359
- ],
1360
- "columnsTo": [
1361
- "flow_id",
1362
- "item_key"
1363
- ],
1364
- "onDelete": "no action",
1365
- "onUpdate": "no action"
1366
- }
1367
- },
1368
- "compositePrimaryKeys": {},
1369
- "uniqueConstraints": {},
1370
- "checkConstraints": {}
1371
- },
1372
- "gate_records": {
1373
- "name": "gate_records",
1374
- "columns": {
1375
- "flow_id": {
1376
- "name": "flow_id",
1377
- "type": "text",
1378
- "primaryKey": false,
1379
- "notNull": true,
1380
- "autoincrement": false
1381
- },
1382
- "node_id": {
1383
- "name": "node_id",
1384
- "type": "text",
1385
- "primaryKey": false,
1386
- "notNull": true,
1387
- "autoincrement": false
1388
- },
1389
- "record_json": {
1390
- "name": "record_json",
1391
- "type": "text",
1392
- "primaryKey": false,
1393
- "notNull": true,
1394
- "autoincrement": false
1395
- },
1396
- "updated_at": {
1397
- "name": "updated_at",
1398
- "type": "integer",
1399
- "primaryKey": false,
1400
- "notNull": true,
1401
- "autoincrement": false
1402
- }
1403
- },
1404
- "indexes": {},
1405
- "foreignKeys": {
1406
- "gate_records_flow_id_flow_runs_flow_id_fk": {
1407
- "name": "gate_records_flow_id_flow_runs_flow_id_fk",
1408
- "tableFrom": "gate_records",
1409
- "tableTo": "flow_runs",
1410
- "columnsFrom": [
1411
- "flow_id"
1412
- ],
1413
- "columnsTo": [
1414
- "flow_id"
1415
- ],
1416
- "onDelete": "cascade",
1417
- "onUpdate": "no action"
1418
- }
1419
- },
1420
- "compositePrimaryKeys": {
1421
- "gate_records_flow_id_node_id_pk": {
1422
- "columns": [
1423
- "flow_id",
1424
- "node_id"
1425
- ],
1426
- "name": "gate_records_flow_id_node_id_pk"
1427
- }
1428
- },
1429
- "uniqueConstraints": {},
1430
- "checkConstraints": {}
1431
- },
1432
- "harnesses": {
1433
- "name": "harnesses",
1434
- "columns": {
1435
- "id": {
1436
- "name": "id",
1437
- "type": "text",
1438
- "primaryKey": true,
1439
- "notNull": true,
1440
- "autoincrement": false
1441
- },
1442
- "created_at": {
1443
- "name": "created_at",
1444
- "type": "integer",
1445
- "primaryKey": false,
1446
- "notNull": true,
1447
- "autoincrement": false
1448
- },
1449
- "updated_at": {
1450
- "name": "updated_at",
1451
- "type": "integer",
1452
- "primaryKey": false,
1453
- "notNull": true,
1454
- "autoincrement": false
1455
- }
1456
- },
1457
- "indexes": {},
1458
- "foreignKeys": {},
1459
- "compositePrimaryKeys": {},
1460
- "uniqueConstraints": {},
1461
- "checkConstraints": {}
1462
- },
1463
- "model_health": {
1464
- "name": "model_health",
1465
- "columns": {
1466
- "id": {
1467
- "name": "id",
1468
- "type": "text",
1469
- "primaryKey": true,
1470
- "notNull": true,
1471
- "autoincrement": false
1472
- },
1473
- "ref": {
1474
- "name": "ref",
1475
- "type": "text",
1476
- "primaryKey": false,
1477
- "notNull": true,
1478
- "autoincrement": false
1479
- },
1480
- "status": {
1481
- "name": "status",
1482
- "type": "text",
1483
- "primaryKey": false,
1484
- "notNull": true,
1485
- "autoincrement": false
1486
- },
1487
- "reason": {
1488
- "name": "reason",
1489
- "type": "text",
1490
- "primaryKey": false,
1491
- "notNull": true,
1492
- "autoincrement": false
1493
- },
1494
- "down_since": {
1495
- "name": "down_since",
1496
- "type": "integer",
1497
- "primaryKey": false,
1498
- "notNull": true,
1499
- "autoincrement": false
1500
- },
1501
- "until_ms": {
1502
- "name": "until_ms",
1503
- "type": "integer",
1504
- "primaryKey": false,
1505
- "notNull": false,
1506
- "autoincrement": false
1507
- },
1508
- "probing": {
1509
- "name": "probing",
1510
- "type": "integer",
1511
- "primaryKey": false,
1512
- "notNull": true,
1513
- "autoincrement": false,
1514
- "default": 0
1515
- },
1516
- "strike_level": {
1517
- "name": "strike_level",
1518
- "type": "integer",
1519
- "primaryKey": false,
1520
- "notNull": true,
1521
- "autoincrement": false,
1522
- "default": 0
1523
- },
1524
- "strike_ended_at": {
1525
- "name": "strike_ended_at",
1526
- "type": "integer",
1527
- "primaryKey": false,
1528
- "notNull": false,
1529
- "autoincrement": false
1530
- },
1531
- "created_at": {
1532
- "name": "created_at",
1533
- "type": "integer",
1534
- "primaryKey": false,
1535
- "notNull": true,
1536
- "autoincrement": false
1537
- },
1538
- "updated_at": {
1539
- "name": "updated_at",
1540
- "type": "integer",
1541
- "primaryKey": false,
1542
- "notNull": true,
1543
- "autoincrement": false
1544
- }
1545
- },
1546
- "indexes": {},
1547
- "foreignKeys": {},
1548
- "compositePrimaryKeys": {},
1549
- "uniqueConstraints": {},
1550
- "checkConstraints": {}
1551
- },
1552
- "node_health": {
1553
- "name": "node_health",
1554
- "columns": {
1555
- "id": {
1556
- "name": "id",
1557
- "type": "text",
1558
- "primaryKey": true,
1559
- "notNull": true,
1560
- "autoincrement": false
1561
- },
1562
- "pipeline_id": {
1563
- "name": "pipeline_id",
1564
- "type": "text",
1565
- "primaryKey": false,
1566
- "notNull": true,
1567
- "autoincrement": false
1568
- },
1569
- "node_id": {
1570
- "name": "node_id",
1571
- "type": "text",
1572
- "primaryKey": false,
1573
- "notNull": true,
1574
- "autoincrement": false
1575
- },
1576
- "status": {
1577
- "name": "status",
1578
- "type": "text",
1579
- "primaryKey": false,
1580
- "notNull": true,
1581
- "autoincrement": false
1582
- },
1583
- "reason": {
1584
- "name": "reason",
1585
- "type": "text",
1586
- "primaryKey": false,
1587
- "notNull": true,
1588
- "autoincrement": false
1589
- },
1590
- "blocked_by_flow_id": {
1591
- "name": "blocked_by_flow_id",
1592
- "type": "text",
1593
- "primaryKey": false,
1594
- "notNull": false,
1595
- "autoincrement": false
1596
- },
1597
- "resolved_via": {
1598
- "name": "resolved_via",
1599
- "type": "text",
1600
- "primaryKey": false,
1601
- "notNull": false,
1602
- "autoincrement": false
1603
- },
1604
- "created_at": {
1605
- "name": "created_at",
1606
- "type": "integer",
1607
- "primaryKey": false,
1608
- "notNull": true,
1609
- "autoincrement": false
1610
- },
1611
- "updated_at": {
1612
- "name": "updated_at",
1613
- "type": "integer",
1614
- "primaryKey": false,
1615
- "notNull": true,
1616
- "autoincrement": false
1617
- },
1618
- "ended_at": {
1619
- "name": "ended_at",
1620
- "type": "integer",
1621
- "primaryKey": false,
1622
- "notNull": false,
1623
- "autoincrement": false
1624
- }
1625
- },
1626
- "indexes": {
1627
- "idx_node_health_one_active": {
1628
- "name": "idx_node_health_one_active",
1629
- "columns": [
1630
- "pipeline_id",
1631
- "node_id"
1632
- ],
1633
- "isUnique": true,
1634
- "where": "\"node_health\".\"status\" = 'blocked'"
1635
- },
1636
- "idx_node_health_pipeline": {
1637
- "name": "idx_node_health_pipeline",
1638
- "columns": [
1639
- "pipeline_id",
1640
- "status"
1641
- ],
1642
- "isUnique": false
1643
- }
1644
- },
1645
- "foreignKeys": {
1646
- "node_health_pipeline_id_pipelines_id_fk": {
1647
- "name": "node_health_pipeline_id_pipelines_id_fk",
1648
- "tableFrom": "node_health",
1649
- "tableTo": "pipelines",
1650
- "columnsFrom": [
1651
- "pipeline_id"
1652
- ],
1653
- "columnsTo": [
1654
- "id"
1655
- ],
1656
- "onDelete": "restrict",
1657
- "onUpdate": "no action"
1658
- },
1659
- "node_health_blocked_by_flow_id_flow_runs_flow_id_fk": {
1660
- "name": "node_health_blocked_by_flow_id_flow_runs_flow_id_fk",
1661
- "tableFrom": "node_health",
1662
- "tableTo": "flow_runs",
1663
- "columnsFrom": [
1664
- "blocked_by_flow_id"
1665
- ],
1666
- "columnsTo": [
1667
- "flow_id"
1668
- ],
1669
- "onDelete": "set null",
1670
- "onUpdate": "no action"
1671
- },
1672
- "node_health_pipeline_id_node_id_pipeline_nodes_pipeline_id_node_name_fk": {
1673
- "name": "node_health_pipeline_id_node_id_pipeline_nodes_pipeline_id_node_name_fk",
1674
- "tableFrom": "node_health",
1675
- "tableTo": "pipeline_nodes",
1676
- "columnsFrom": [
1677
- "pipeline_id",
1678
- "node_id"
1679
- ],
1680
- "columnsTo": [
1681
- "pipeline_id",
1682
- "node_name"
1683
- ],
1684
- "onDelete": "no action",
1685
- "onUpdate": "no action"
1686
- }
1687
- },
1688
- "compositePrimaryKeys": {},
1689
- "uniqueConstraints": {},
1690
- "checkConstraints": {}
1691
- },
1692
- "pipeline_dirs": {
1693
- "name": "pipeline_dirs",
1694
- "columns": {
1695
- "harness": {
1696
- "name": "harness",
1697
- "type": "text",
1698
- "primaryKey": true,
1699
- "notNull": true,
1700
- "autoincrement": false
1701
- },
1702
- "path": {
1703
- "name": "path",
1704
- "type": "text",
1705
- "primaryKey": false,
1706
- "notNull": true,
1707
- "autoincrement": false
1708
- },
1709
- "created_at": {
1710
- "name": "created_at",
1711
- "type": "integer",
1712
- "primaryKey": false,
1713
- "notNull": true,
1714
- "autoincrement": false
1715
- }
1716
- },
1717
- "indexes": {},
1718
- "foreignKeys": {
1719
- "pipeline_dirs_harness_harnesses_id_fk": {
1720
- "name": "pipeline_dirs_harness_harnesses_id_fk",
1721
- "tableFrom": "pipeline_dirs",
1722
- "tableTo": "harnesses",
1723
- "columnsFrom": [
1724
- "harness"
1725
- ],
1726
- "columnsTo": [
1727
- "id"
1728
- ],
1729
- "onDelete": "cascade",
1730
- "onUpdate": "no action"
1731
- }
1732
- },
1733
- "compositePrimaryKeys": {},
1734
- "uniqueConstraints": {},
1735
- "checkConstraints": {}
1736
- },
1737
- "pipeline_node_versions": {
1738
- "name": "pipeline_node_versions",
1739
- "columns": {
1740
- "id": {
1741
- "name": "id",
1742
- "type": "text",
1743
- "primaryKey": true,
1744
- "notNull": true,
1745
- "autoincrement": false
1746
- },
1747
- "pipeline_version_id": {
1748
- "name": "pipeline_version_id",
1749
- "type": "text",
1750
- "primaryKey": false,
1751
- "notNull": true,
1752
- "autoincrement": false
1753
- },
1754
- "pipeline_id": {
1755
- "name": "pipeline_id",
1756
- "type": "text",
1757
- "primaryKey": false,
1758
- "notNull": true,
1759
- "autoincrement": false
1760
- },
1761
- "node_name": {
1762
- "name": "node_name",
1763
- "type": "text",
1764
- "primaryKey": false,
1765
- "notNull": true,
1766
- "autoincrement": false
1767
- },
1768
- "node_id": {
1769
- "name": "node_id",
1770
- "type": "text",
1771
- "primaryKey": false,
1772
- "notNull": false,
1773
- "autoincrement": false
1774
- },
1775
- "kind": {
1776
- "name": "kind",
1777
- "type": "text",
1778
- "primaryKey": false,
1779
- "notNull": true,
1780
- "autoincrement": false
1781
- },
1782
- "agent": {
1783
- "name": "agent",
1784
- "type": "text",
1785
- "primaryKey": false,
1786
- "notNull": false,
1787
- "autoincrement": false
1788
- },
1789
- "mode": {
1790
- "name": "mode",
1791
- "type": "text",
1792
- "primaryKey": false,
1793
- "notNull": false,
1794
- "autoincrement": false
1795
- },
1796
- "content_hash": {
1797
- "name": "content_hash",
1798
- "type": "text",
1799
- "primaryKey": false,
1800
- "notNull": true,
1801
- "autoincrement": false
1802
- },
1803
- "registered_at": {
1804
- "name": "registered_at",
1805
- "type": "integer",
1806
- "primaryKey": false,
1807
- "notNull": true,
1808
- "autoincrement": false
1809
- },
1810
- "retired_at": {
1811
- "name": "retired_at",
1812
- "type": "integer",
1813
- "primaryKey": false,
1814
- "notNull": false,
1815
- "autoincrement": false
1816
- }
1817
- },
1818
- "indexes": {
1819
- "idx_pnv_lookup": {
1820
- "name": "idx_pnv_lookup",
1821
- "columns": [
1822
- "pipeline_id",
1823
- "node_name",
1824
- "registered_at"
1825
- ],
1826
- "isUnique": false
1827
- },
1828
- "idx_pnv_active": {
1829
- "name": "idx_pnv_active",
1830
- "columns": [
1831
- "pipeline_id",
1832
- "node_name"
1833
- ],
1834
- "isUnique": true,
1835
- "where": "\"pipeline_node_versions\".\"retired_at\" IS NULL"
1836
- }
1837
- },
1838
- "foreignKeys": {
1839
- "pipeline_node_versions_pipeline_version_id_pipeline_versions_id_fk": {
1840
- "name": "pipeline_node_versions_pipeline_version_id_pipeline_versions_id_fk",
1841
- "tableFrom": "pipeline_node_versions",
1842
- "tableTo": "pipeline_versions",
1843
- "columnsFrom": [
1844
- "pipeline_version_id"
1845
- ],
1846
- "columnsTo": [
1847
- "id"
1848
- ],
1849
- "onDelete": "cascade",
1850
- "onUpdate": "no action"
1851
- },
1852
- "pipeline_node_versions_pipeline_id_pipelines_id_fk": {
1853
- "name": "pipeline_node_versions_pipeline_id_pipelines_id_fk",
1854
- "tableFrom": "pipeline_node_versions",
1855
- "tableTo": "pipelines",
1856
- "columnsFrom": [
1857
- "pipeline_id"
1858
- ],
1859
- "columnsTo": [
1860
- "id"
1861
- ],
1862
- "onDelete": "restrict",
1863
- "onUpdate": "no action"
1864
- }
1865
- },
1866
- "compositePrimaryKeys": {},
1867
- "uniqueConstraints": {},
1868
- "checkConstraints": {}
1869
- },
1870
- "pipeline_nodes": {
1871
- "name": "pipeline_nodes",
1872
- "columns": {
1873
- "pipeline_id": {
1874
- "name": "pipeline_id",
1875
- "type": "text",
1876
- "primaryKey": false,
1877
- "notNull": true,
1878
- "autoincrement": false
1879
- },
1880
- "node_name": {
1881
- "name": "node_name",
1882
- "type": "text",
1883
- "primaryKey": false,
1884
- "notNull": true,
1885
- "autoincrement": false
1886
- },
1887
- "first_seen_at": {
1888
- "name": "first_seen_at",
1889
- "type": "integer",
1890
- "primaryKey": false,
1891
- "notNull": true,
1892
- "autoincrement": false
1893
- }
1894
- },
1895
- "indexes": {
1896
- "idx_pipeline_nodes_name": {
1897
- "name": "idx_pipeline_nodes_name",
1898
- "columns": [
1899
- "node_name"
1900
- ],
1901
- "isUnique": false
1902
- }
1903
- },
1904
- "foreignKeys": {
1905
- "pipeline_nodes_pipeline_id_pipelines_id_fk": {
1906
- "name": "pipeline_nodes_pipeline_id_pipelines_id_fk",
1907
- "tableFrom": "pipeline_nodes",
1908
- "tableTo": "pipelines",
1909
- "columnsFrom": [
1910
- "pipeline_id"
1911
- ],
1912
- "columnsTo": [
1913
- "id"
1914
- ],
1915
- "onDelete": "cascade",
1916
- "onUpdate": "no action"
1917
- }
1918
- },
1919
- "compositePrimaryKeys": {
1920
- "pipeline_nodes_pipeline_id_node_name_pk": {
1921
- "columns": [
1922
- "pipeline_id",
1923
- "node_name"
1924
- ],
1925
- "name": "pipeline_nodes_pipeline_id_node_name_pk"
1926
- }
1927
- },
1928
- "uniqueConstraints": {},
1929
- "checkConstraints": {}
1930
- },
1931
- "pipeline_versions": {
1932
- "name": "pipeline_versions",
1933
- "columns": {
1934
- "id": {
1935
- "name": "id",
1936
- "type": "text",
1937
- "primaryKey": true,
1938
- "notNull": true,
1939
- "autoincrement": false
1940
- },
1941
- "pipeline_id": {
1942
- "name": "pipeline_id",
1943
- "type": "text",
1944
- "primaryKey": false,
1945
- "notNull": true,
1946
- "autoincrement": false
1947
- },
1948
- "kind": {
1949
- "name": "kind",
1950
- "type": "text",
1951
- "primaryKey": false,
1952
- "notNull": false,
1953
- "autoincrement": false
1954
- },
1955
- "allow_concurrent": {
1956
- "name": "allow_concurrent",
1957
- "type": "text",
1958
- "primaryKey": false,
1959
- "notNull": false,
1960
- "autoincrement": false
1961
- },
1962
- "is_synthetic": {
1963
- "name": "is_synthetic",
1964
- "type": "integer",
1965
- "primaryKey": false,
1966
- "notNull": true,
1967
- "autoincrement": false
1968
- },
1969
- "parent_pipeline_id": {
1970
- "name": "parent_pipeline_id",
1971
- "type": "text",
1972
- "primaryKey": false,
1973
- "notNull": false,
1974
- "autoincrement": false
1975
- },
1976
- "source_path": {
1977
- "name": "source_path",
1978
- "type": "text",
1979
- "primaryKey": false,
1980
- "notNull": false,
1981
- "autoincrement": false
1982
- },
1983
- "content_hash": {
1984
- "name": "content_hash",
1985
- "type": "text",
1986
- "primaryKey": false,
1987
- "notNull": true,
1988
- "autoincrement": false
1989
- },
1990
- "registered_at": {
1991
- "name": "registered_at",
1992
- "type": "integer",
1993
- "primaryKey": false,
1994
- "notNull": true,
1995
- "autoincrement": false
1996
- },
1997
- "retired_at": {
1998
- "name": "retired_at",
1999
- "type": "integer",
2000
- "primaryKey": false,
2001
- "notNull": false,
2002
- "autoincrement": false
2003
- }
2004
- },
2005
- "indexes": {
2006
- "idx_pv_lookup": {
2007
- "name": "idx_pv_lookup",
2008
- "columns": [
2009
- "pipeline_id",
2010
- "registered_at"
2011
- ],
2012
- "isUnique": false
2013
- },
2014
- "idx_pv_active": {
2015
- "name": "idx_pv_active",
2016
- "columns": [
2017
- "pipeline_id"
2018
- ],
2019
- "isUnique": true,
2020
- "where": "\"pipeline_versions\".\"retired_at\" IS NULL"
2021
- }
2022
- },
2023
- "foreignKeys": {
2024
- "pipeline_versions_pipeline_id_pipelines_id_fk": {
2025
- "name": "pipeline_versions_pipeline_id_pipelines_id_fk",
2026
- "tableFrom": "pipeline_versions",
2027
- "tableTo": "pipelines",
2028
- "columnsFrom": [
2029
- "pipeline_id"
2030
- ],
2031
- "columnsTo": [
2032
- "id"
2033
- ],
2034
- "onDelete": "restrict",
2035
- "onUpdate": "no action"
2036
- },
2037
- "pipeline_versions_parent_pipeline_id_pipelines_id_fk": {
2038
- "name": "pipeline_versions_parent_pipeline_id_pipelines_id_fk",
2039
- "tableFrom": "pipeline_versions",
2040
- "tableTo": "pipelines",
2041
- "columnsFrom": [
2042
- "parent_pipeline_id"
2043
- ],
2044
- "columnsTo": [
2045
- "id"
2046
- ],
2047
- "onDelete": "set null",
2048
- "onUpdate": "no action"
2049
- }
2050
- },
2051
- "compositePrimaryKeys": {},
2052
- "uniqueConstraints": {},
2053
- "checkConstraints": {}
2054
- },
2055
- "pipelines": {
2056
- "name": "pipelines",
2057
- "columns": {
2058
- "id": {
2059
- "name": "id",
2060
- "type": "text",
2061
- "primaryKey": true,
2062
- "notNull": true,
2063
- "autoincrement": false
2064
- },
2065
- "name": {
2066
- "name": "name",
2067
- "type": "text",
2068
- "primaryKey": false,
2069
- "notNull": true,
2070
- "autoincrement": false
2071
- },
2072
- "harness": {
2073
- "name": "harness",
2074
- "type": "text",
2075
- "primaryKey": false,
2076
- "notNull": false,
2077
- "autoincrement": false
2078
- },
2079
- "created_at": {
2080
- "name": "created_at",
2081
- "type": "integer",
2082
- "primaryKey": false,
2083
- "notNull": true,
2084
- "autoincrement": false
2085
- },
2086
- "updated_at": {
2087
- "name": "updated_at",
2088
- "type": "integer",
2089
- "primaryKey": false,
2090
- "notNull": true,
2091
- "autoincrement": false
2092
- },
2093
- "deleted_at": {
2094
- "name": "deleted_at",
2095
- "type": "integer",
2096
- "primaryKey": false,
2097
- "notNull": false,
2098
- "autoincrement": false
2099
- }
2100
- },
2101
- "indexes": {
2102
- "idx_pipelines_harness_name": {
2103
- "name": "idx_pipelines_harness_name",
2104
- "columns": [
2105
- "harness",
2106
- "name"
2107
- ],
2108
- "isUnique": false
2109
- }
2110
- },
2111
- "foreignKeys": {
2112
- "pipelines_harness_harnesses_id_fk": {
2113
- "name": "pipelines_harness_harnesses_id_fk",
2114
- "tableFrom": "pipelines",
2115
- "tableTo": "harnesses",
2116
- "columnsFrom": [
2117
- "harness"
2118
- ],
2119
- "columnsTo": [
2120
- "id"
2121
- ],
2122
- "onDelete": "set null",
2123
- "onUpdate": "no action"
2124
- }
2125
- },
2126
- "compositePrimaryKeys": {},
2127
- "uniqueConstraints": {},
2128
- "checkConstraints": {}
2129
- },
2130
- "queue_items": {
2131
- "name": "queue_items",
2132
- "columns": {
2133
- "id": {
2134
- "name": "id",
2135
- "type": "text",
2136
- "primaryKey": true,
2137
- "notNull": true,
2138
- "autoincrement": false
2139
- },
2140
- "label": {
2141
- "name": "label",
2142
- "type": "text",
2143
- "primaryKey": false,
2144
- "notNull": true,
2145
- "autoincrement": false
2146
- },
2147
- "agent": {
2148
- "name": "agent",
2149
- "type": "text",
2150
- "primaryKey": false,
2151
- "notNull": true,
2152
- "autoincrement": false
2153
- },
2154
- "agent_emoji": {
2155
- "name": "agent_emoji",
2156
- "type": "text",
2157
- "primaryKey": false,
2158
- "notNull": true,
2159
- "autoincrement": false,
2160
- "default": "'🤖'"
2161
- },
2162
- "trigger": {
2163
- "name": "trigger",
2164
- "type": "text",
2165
- "primaryKey": false,
2166
- "notNull": true,
2167
- "autoincrement": false,
2168
- "default": "'manual'"
2169
- },
2170
- "cost_low": {
2171
- "name": "cost_low",
2172
- "type": "real",
2173
- "primaryKey": false,
2174
- "notNull": true,
2175
- "autoincrement": false,
2176
- "default": 0
2177
- },
2178
- "cost_high": {
2179
- "name": "cost_high",
2180
- "type": "real",
2181
- "primaryKey": false,
2182
- "notNull": true,
2183
- "autoincrement": false,
2184
- "default": 0
2185
- },
2186
- "brief": {
2187
- "name": "brief",
2188
- "type": "text",
2189
- "primaryKey": false,
2190
- "notNull": false,
2191
- "autoincrement": false
2192
- },
2193
- "model_chain": {
2194
- "name": "model_chain",
2195
- "type": "text",
2196
- "primaryKey": false,
2197
- "notNull": false,
2198
- "autoincrement": false
2199
- },
2200
- "pipeline": {
2201
- "name": "pipeline",
2202
- "type": "text",
2203
- "primaryKey": false,
2204
- "notNull": false,
2205
- "autoincrement": false
2206
- },
2207
- "node": {
2208
- "name": "node",
2209
- "type": "text",
2210
- "primaryKey": false,
2211
- "notNull": false,
2212
- "autoincrement": false
2213
- },
2214
- "token_estimate": {
2215
- "name": "token_estimate",
2216
- "type": "integer",
2217
- "primaryKey": false,
2218
- "notNull": false,
2219
- "autoincrement": false
2220
- },
2221
- "status": {
2222
- "name": "status",
2223
- "type": "text",
2224
- "primaryKey": false,
2225
- "notNull": true,
2226
- "autoincrement": false,
2227
- "default": "'pending'"
2228
- },
2229
- "created_at": {
2230
- "name": "created_at",
2231
- "type": "integer",
2232
- "primaryKey": false,
2233
- "notNull": true,
2234
- "autoincrement": false
2235
- },
2236
- "expires_at": {
2237
- "name": "expires_at",
2238
- "type": "integer",
2239
- "primaryKey": false,
2240
- "notNull": false,
2241
- "autoincrement": false
2242
- },
2243
- "decided_at": {
2244
- "name": "decided_at",
2245
- "type": "integer",
2246
- "primaryKey": false,
2247
- "notNull": false,
2248
- "autoincrement": false
2249
- },
2250
- "decision": {
2251
- "name": "decision",
2252
- "type": "text",
2253
- "primaryKey": false,
2254
- "notNull": false,
2255
- "autoincrement": false
2256
- },
2257
- "pipeline_id": {
2258
- "name": "pipeline_id",
2259
- "type": "text",
2260
- "primaryKey": false,
2261
- "notNull": false,
2262
- "autoincrement": false
2263
- },
2264
- "pipeline_args": {
2265
- "name": "pipeline_args",
2266
- "type": "text",
2267
- "primaryKey": false,
2268
- "notNull": false,
2269
- "autoincrement": false
2270
- },
2271
- "flow_id": {
2272
- "name": "flow_id",
2273
- "type": "text",
2274
- "primaryKey": false,
2275
- "notNull": false,
2276
- "autoincrement": false
2277
- },
2278
- "enqueuer_session_key": {
2279
- "name": "enqueuer_session_key",
2280
- "type": "text",
2281
- "primaryKey": false,
2282
- "notNull": false,
2283
- "autoincrement": false
2284
- },
2285
- "kind": {
2286
- "name": "kind",
2287
- "type": "text",
2288
- "primaryKey": false,
2289
- "notNull": false,
2290
- "autoincrement": false
2291
- }
2292
- },
2293
- "indexes": {
2294
- "idx_status": {
2295
- "name": "idx_status",
2296
- "columns": [
2297
- "status"
2298
- ],
2299
- "isUnique": false
2300
- },
2301
- "idx_created_at": {
2302
- "name": "idx_created_at",
2303
- "columns": [
2304
- "\"created_at\" desc"
2305
- ],
2306
- "isUnique": false
2307
- },
2308
- "idx_flow_node": {
2309
- "name": "idx_flow_node",
2310
- "columns": [
2311
- "flow_id",
2312
- "node"
2313
- ],
2314
- "isUnique": false
2315
- }
2316
- },
2317
- "foreignKeys": {
2318
- "queue_items_pipeline_id_pipelines_id_fk": {
2319
- "name": "queue_items_pipeline_id_pipelines_id_fk",
2320
- "tableFrom": "queue_items",
2321
- "tableTo": "pipelines",
2322
- "columnsFrom": [
2323
- "pipeline_id"
2324
- ],
2325
- "columnsTo": [
2326
- "id"
2327
- ],
2328
- "onDelete": "set null",
2329
- "onUpdate": "no action"
2330
- },
2331
- "queue_items_flow_id_flow_runs_flow_id_fk": {
2332
- "name": "queue_items_flow_id_flow_runs_flow_id_fk",
2333
- "tableFrom": "queue_items",
2334
- "tableTo": "flow_runs",
2335
- "columnsFrom": [
2336
- "flow_id"
2337
- ],
2338
- "columnsTo": [
2339
- "flow_id"
2340
- ],
2341
- "onDelete": "set null",
2342
- "onUpdate": "no action"
2343
- },
2344
- "queue_items_enqueuer_session_key_sessions_session_key_fk": {
2345
- "name": "queue_items_enqueuer_session_key_sessions_session_key_fk",
2346
- "tableFrom": "queue_items",
2347
- "tableTo": "sessions",
2348
- "columnsFrom": [
2349
- "enqueuer_session_key"
2350
- ],
2351
- "columnsTo": [
2352
- "session_key"
2353
- ],
2354
- "onDelete": "set null",
2355
- "onUpdate": "no action"
2356
- },
2357
- "queue_items_pipeline_id_node_pipeline_nodes_pipeline_id_node_name_fk": {
2358
- "name": "queue_items_pipeline_id_node_pipeline_nodes_pipeline_id_node_name_fk",
2359
- "tableFrom": "queue_items",
2360
- "tableTo": "pipeline_nodes",
2361
- "columnsFrom": [
2362
- "pipeline_id",
2363
- "node"
2364
- ],
2365
- "columnsTo": [
2366
- "pipeline_id",
2367
- "node_name"
2368
- ],
2369
- "onDelete": "no action",
2370
- "onUpdate": "no action"
2371
- }
2372
- },
2373
- "compositePrimaryKeys": {},
2374
- "uniqueConstraints": {},
2375
- "checkConstraints": {}
2376
- },
2377
- "session_lineage": {
2378
- "name": "session_lineage",
2379
- "columns": {
2380
- "child_session_key": {
2381
- "name": "child_session_key",
2382
- "type": "text",
2383
- "primaryKey": true,
2384
- "notNull": true,
2385
- "autoincrement": false
2386
- },
2387
- "parent_session_key": {
2388
- "name": "parent_session_key",
2389
- "type": "text",
2390
- "primaryKey": false,
2391
- "notNull": false,
2392
- "autoincrement": false
2393
- },
2394
- "root_session_key": {
2395
- "name": "root_session_key",
2396
- "type": "text",
2397
- "primaryKey": false,
2398
- "notNull": true,
2399
- "autoincrement": false
2400
- },
2401
- "kind": {
2402
- "name": "kind",
2403
- "type": "text",
2404
- "primaryKey": false,
2405
- "notNull": true,
2406
- "autoincrement": false
2407
- },
2408
- "root_kind": {
2409
- "name": "root_kind",
2410
- "type": "text",
2411
- "primaryKey": false,
2412
- "notNull": true,
2413
- "autoincrement": false
2414
- },
2415
- "root_label": {
2416
- "name": "root_label",
2417
- "type": "text",
2418
- "primaryKey": false,
2419
- "notNull": false,
2420
- "autoincrement": false
2421
- },
2422
- "agent_id": {
2423
- "name": "agent_id",
2424
- "type": "text",
2425
- "primaryKey": false,
2426
- "notNull": false,
2427
- "autoincrement": false
2428
- },
2429
- "pipeline_id": {
2430
- "name": "pipeline_id",
2431
- "type": "text",
2432
- "primaryKey": false,
2433
- "notNull": false,
2434
- "autoincrement": false
2435
- },
2436
- "flow_id": {
2437
- "name": "flow_id",
2438
- "type": "text",
2439
- "primaryKey": false,
2440
- "notNull": false,
2441
- "autoincrement": false
2442
- },
2443
- "node_id": {
2444
- "name": "node_id",
2445
- "type": "text",
2446
- "primaryKey": false,
2447
- "notNull": false,
2448
- "autoincrement": false
2449
- },
2450
- "item_key": {
2451
- "name": "item_key",
2452
- "type": "text",
2453
- "primaryKey": false,
2454
- "notNull": false,
2455
- "autoincrement": false
2456
- },
2457
- "first_seen_at": {
2458
- "name": "first_seen_at",
2459
- "type": "integer",
2460
- "primaryKey": false,
2461
- "notNull": true,
2462
- "autoincrement": false
2463
- },
2464
- "source": {
2465
- "name": "source",
2466
- "type": "text",
2467
- "primaryKey": false,
2468
- "notNull": true,
2469
- "autoincrement": false
2470
- },
2471
- "run_id": {
2472
- "name": "run_id",
2473
- "type": "text",
2474
- "primaryKey": false,
2475
- "notNull": false,
2476
- "autoincrement": false
2477
- }
2478
- },
2479
- "indexes": {
2480
- "idx_lineage_root": {
2481
- "name": "idx_lineage_root",
2482
- "columns": [
2483
- "root_session_key"
2484
- ],
2485
- "isUnique": false
2486
- },
2487
- "idx_lineage_parent": {
2488
- "name": "idx_lineage_parent",
2489
- "columns": [
2490
- "parent_session_key"
2491
- ],
2492
- "isUnique": false
2493
- },
2494
- "idx_lineage_pipeline": {
2495
- "name": "idx_lineage_pipeline",
2496
- "columns": [
2497
- "pipeline_id"
2498
- ],
2499
- "isUnique": false
2500
- },
2501
- "idx_lineage_flow": {
2502
- "name": "idx_lineage_flow",
2503
- "columns": [
2504
- "flow_id"
2505
- ],
2506
- "isUnique": false
2507
- },
2508
- "idx_lineage_root_kind": {
2509
- "name": "idx_lineage_root_kind",
2510
- "columns": [
2511
- "root_kind"
2512
- ],
2513
- "isUnique": false
2514
- },
2515
- "idx_lineage_run": {
2516
- "name": "idx_lineage_run",
2517
- "columns": [
2518
- "run_id"
2519
- ],
2520
- "isUnique": false
2521
- }
2522
- },
2523
- "foreignKeys": {
2524
- "session_lineage_child_session_key_sessions_session_key_fk": {
2525
- "name": "session_lineage_child_session_key_sessions_session_key_fk",
2526
- "tableFrom": "session_lineage",
2527
- "tableTo": "sessions",
2528
- "columnsFrom": [
2529
- "child_session_key"
2530
- ],
2531
- "columnsTo": [
2532
- "session_key"
2533
- ],
2534
- "onDelete": "no action",
2535
- "onUpdate": "no action"
2536
- },
2537
- "session_lineage_parent_session_key_sessions_session_key_fk": {
2538
- "name": "session_lineage_parent_session_key_sessions_session_key_fk",
2539
- "tableFrom": "session_lineage",
2540
- "tableTo": "sessions",
2541
- "columnsFrom": [
2542
- "parent_session_key"
2543
- ],
2544
- "columnsTo": [
2545
- "session_key"
2546
- ],
2547
- "onDelete": "set null",
2548
- "onUpdate": "no action"
2549
- },
2550
- "session_lineage_root_session_key_sessions_session_key_fk": {
2551
- "name": "session_lineage_root_session_key_sessions_session_key_fk",
2552
- "tableFrom": "session_lineage",
2553
- "tableTo": "sessions",
2554
- "columnsFrom": [
2555
- "root_session_key"
2556
- ],
2557
- "columnsTo": [
2558
- "session_key"
2559
- ],
2560
- "onDelete": "no action",
2561
- "onUpdate": "no action"
2562
- },
2563
- "session_lineage_pipeline_id_pipelines_id_fk": {
2564
- "name": "session_lineage_pipeline_id_pipelines_id_fk",
2565
- "tableFrom": "session_lineage",
2566
- "tableTo": "pipelines",
2567
- "columnsFrom": [
2568
- "pipeline_id"
2569
- ],
2570
- "columnsTo": [
2571
- "id"
2572
- ],
2573
- "onDelete": "set null",
2574
- "onUpdate": "no action"
2575
- },
2576
- "session_lineage_flow_id_flow_runs_flow_id_fk": {
2577
- "name": "session_lineage_flow_id_flow_runs_flow_id_fk",
2578
- "tableFrom": "session_lineage",
2579
- "tableTo": "flow_runs",
2580
- "columnsFrom": [
2581
- "flow_id"
2582
- ],
2583
- "columnsTo": [
2584
- "flow_id"
2585
- ],
2586
- "onDelete": "set null",
2587
- "onUpdate": "no action"
2588
- },
2589
- "session_lineage_run_id_turn_runs_run_id_fk": {
2590
- "name": "session_lineage_run_id_turn_runs_run_id_fk",
2591
- "tableFrom": "session_lineage",
2592
- "tableTo": "turn_runs",
2593
- "columnsFrom": [
2594
- "run_id"
2595
- ],
2596
- "columnsTo": [
2597
- "run_id"
2598
- ],
2599
- "onDelete": "set null",
2600
- "onUpdate": "no action"
2601
- },
2602
- "session_lineage_pipeline_id_node_id_pipeline_nodes_pipeline_id_node_name_fk": {
2603
- "name": "session_lineage_pipeline_id_node_id_pipeline_nodes_pipeline_id_node_name_fk",
2604
- "tableFrom": "session_lineage",
2605
- "tableTo": "pipeline_nodes",
2606
- "columnsFrom": [
2607
- "pipeline_id",
2608
- "node_id"
2609
- ],
2610
- "columnsTo": [
2611
- "pipeline_id",
2612
- "node_name"
2613
- ],
2614
- "onDelete": "no action",
2615
- "onUpdate": "no action"
2616
- },
2617
- "session_lineage_flow_id_item_key_flow_items_flow_id_item_key_fk": {
2618
- "name": "session_lineage_flow_id_item_key_flow_items_flow_id_item_key_fk",
2619
- "tableFrom": "session_lineage",
2620
- "tableTo": "flow_items",
2621
- "columnsFrom": [
2622
- "flow_id",
2623
- "item_key"
2624
- ],
2625
- "columnsTo": [
2626
- "flow_id",
2627
- "item_key"
2628
- ],
2629
- "onDelete": "no action",
2630
- "onUpdate": "no action"
2631
- }
2632
- },
2633
- "compositePrimaryKeys": {},
2634
- "uniqueConstraints": {},
2635
- "checkConstraints": {}
2636
- },
2637
- "sessions": {
2638
- "name": "sessions",
2639
- "columns": {
2640
- "session_key": {
2641
- "name": "session_key",
2642
- "type": "text",
2643
- "primaryKey": true,
2644
- "notNull": true,
2645
- "autoincrement": false
2646
- },
2647
- "first_seen_at": {
2648
- "name": "first_seen_at",
2649
- "type": "integer",
2650
- "primaryKey": false,
2651
- "notNull": true,
2652
- "autoincrement": false
2653
- }
2654
- },
2655
- "indexes": {
2656
- "idx_sessions_first_seen": {
2657
- "name": "idx_sessions_first_seen",
2658
- "columns": [
2659
- "first_seen_at"
2660
- ],
2661
- "isUnique": false
2662
- }
2663
- },
2664
- "foreignKeys": {},
2665
- "compositePrimaryKeys": {},
2666
- "uniqueConstraints": {},
2667
- "checkConstraints": {}
2668
- },
2669
- "tool_results": {
2670
- "name": "tool_results",
2671
- "columns": {
2672
- "session_key": {
2673
- "name": "session_key",
2674
- "type": "text",
2675
- "primaryKey": true,
2676
- "notNull": true,
2677
- "autoincrement": false
2678
- },
2679
- "run_id": {
2680
- "name": "run_id",
2681
- "type": "text",
2682
- "primaryKey": false,
2683
- "notNull": false,
2684
- "autoincrement": false
2685
- },
2686
- "agent_id": {
2687
- "name": "agent_id",
2688
- "type": "text",
2689
- "primaryKey": false,
2690
- "notNull": false,
2691
- "autoincrement": false
2692
- },
2693
- "kind": {
2694
- "name": "kind",
2695
- "type": "text",
2696
- "primaryKey": false,
2697
- "notNull": false,
2698
- "autoincrement": false
2699
- },
2700
- "payload_json": {
2701
- "name": "payload_json",
2702
- "type": "text",
2703
- "primaryKey": false,
2704
- "notNull": true,
2705
- "autoincrement": false
2706
- },
2707
- "updated_at": {
2708
- "name": "updated_at",
2709
- "type": "integer",
2710
- "primaryKey": false,
2711
- "notNull": true,
2712
- "autoincrement": false
2713
- }
2714
- },
2715
- "indexes": {},
2716
- "foreignKeys": {
2717
- "tool_results_session_key_sessions_session_key_fk": {
2718
- "name": "tool_results_session_key_sessions_session_key_fk",
2719
- "tableFrom": "tool_results",
2720
- "tableTo": "sessions",
2721
- "columnsFrom": [
2722
- "session_key"
2723
- ],
2724
- "columnsTo": [
2725
- "session_key"
2726
- ],
2727
- "onDelete": "no action",
2728
- "onUpdate": "no action"
2729
- },
2730
- "tool_results_run_id_flow_runs_flow_id_fk": {
2731
- "name": "tool_results_run_id_flow_runs_flow_id_fk",
2732
- "tableFrom": "tool_results",
2733
- "tableTo": "flow_runs",
2734
- "columnsFrom": [
2735
- "run_id"
2736
- ],
2737
- "columnsTo": [
2738
- "flow_id"
2739
- ],
2740
- "onDelete": "set null",
2741
- "onUpdate": "no action"
2742
- }
2743
- },
2744
- "compositePrimaryKeys": {},
2745
- "uniqueConstraints": {},
2746
- "checkConstraints": {}
2747
- },
2748
- "turn_runs": {
2749
- "name": "turn_runs",
2750
- "columns": {
2751
- "run_id": {
2752
- "name": "run_id",
2753
- "type": "text",
2754
- "primaryKey": true,
2755
- "notNull": true,
2756
- "autoincrement": false
2757
- },
2758
- "first_seen_at": {
2759
- "name": "first_seen_at",
2760
- "type": "integer",
2761
- "primaryKey": false,
2762
- "notNull": true,
2763
- "autoincrement": false
2764
- }
2765
- },
2766
- "indexes": {},
2767
- "foreignKeys": {},
2768
- "compositePrimaryKeys": {},
2769
- "uniqueConstraints": {},
2770
- "checkConstraints": {}
2771
- }
2772
- },
2773
- "views": {},
2774
- "enums": {},
2775
- "_meta": {
2776
- "schemas": {},
2777
- "tables": {},
2778
- "columns": {}
2779
- },
2780
- "internal": {
2781
- "indexes": {
2782
- "idx_failures_failed_at": {
2783
- "columns": {
2784
- "\"failed_at\" desc": {
2785
- "isExpression": true
2786
- }
2787
- }
2788
- },
2789
- "idx_pfr_updated": {
2790
- "columns": {
2791
- "\"updated_at\" desc": {
2792
- "isExpression": true
2793
- }
2794
- }
2795
- },
2796
- "idx_pfr_created": {
2797
- "columns": {
2798
- "\"created_at\" desc": {
2799
- "isExpression": true
2800
- }
2801
- }
2802
- },
2803
- "idx_created_at": {
2804
- "columns": {
2805
- "\"created_at\" desc": {
2806
- "isExpression": true
2807
- }
2808
- }
2809
- }
2810
- }
2811
- }
2812
- }