@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,2413 +0,0 @@
1
- {
2
- "version": "6",
3
- "dialect": "sqlite",
4
- "id": "9fd7e891-08e5-4218-88dc-5555c76aa36e",
5
- "prevId": "c25c6ff7-b185-437b-9063-8a8c510e0e4e",
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_pipeline_id_pipelines_id_fk": {
236
- "name": "cost_by_call_pipeline_id_pipelines_id_fk",
237
- "tableFrom": "cost_by_call",
238
- "tableTo": "pipelines",
239
- "columnsFrom": [
240
- "pipeline_id"
241
- ],
242
- "columnsTo": [
243
- "id"
244
- ],
245
- "onDelete": "set null",
246
- "onUpdate": "no action"
247
- },
248
- "cost_by_call_flow_id_flow_runs_flow_id_fk": {
249
- "name": "cost_by_call_flow_id_flow_runs_flow_id_fk",
250
- "tableFrom": "cost_by_call",
251
- "tableTo": "flow_runs",
252
- "columnsFrom": [
253
- "flow_id"
254
- ],
255
- "columnsTo": [
256
- "flow_id"
257
- ],
258
- "onDelete": "set null",
259
- "onUpdate": "no action"
260
- }
261
- },
262
- "compositePrimaryKeys": {
263
- "cost_by_call_session_id_msg_id_pk": {
264
- "columns": [
265
- "session_id",
266
- "msg_id"
267
- ],
268
- "name": "cost_by_call_session_id_msg_id_pk"
269
- }
270
- },
271
- "uniqueConstraints": {},
272
- "checkConstraints": {}
273
- },
274
- "discuss_state": {
275
- "name": "discuss_state",
276
- "columns": {
277
- "flow_id": {
278
- "name": "flow_id",
279
- "type": "text",
280
- "primaryKey": false,
281
- "notNull": true,
282
- "autoincrement": false
283
- },
284
- "item_id": {
285
- "name": "item_id",
286
- "type": "text",
287
- "primaryKey": false,
288
- "notNull": true,
289
- "autoincrement": false
290
- },
291
- "messages_json": {
292
- "name": "messages_json",
293
- "type": "text",
294
- "primaryKey": false,
295
- "notNull": true,
296
- "autoincrement": false,
297
- "default": "'[]'"
298
- },
299
- "turn_status": {
300
- "name": "turn_status",
301
- "type": "text",
302
- "primaryKey": false,
303
- "notNull": true,
304
- "autoincrement": false,
305
- "default": "'idle'"
306
- },
307
- "active_turn_id": {
308
- "name": "active_turn_id",
309
- "type": "text",
310
- "primaryKey": false,
311
- "notNull": false,
312
- "autoincrement": false
313
- },
314
- "pending_json": {
315
- "name": "pending_json",
316
- "type": "text",
317
- "primaryKey": false,
318
- "notNull": false,
319
- "autoincrement": false
320
- },
321
- "updated_at": {
322
- "name": "updated_at",
323
- "type": "integer",
324
- "primaryKey": false,
325
- "notNull": true,
326
- "autoincrement": false
327
- },
328
- "components_json": {
329
- "name": "components_json",
330
- "type": "text",
331
- "primaryKey": false,
332
- "notNull": true,
333
- "autoincrement": false,
334
- "default": "'[]'"
335
- }
336
- },
337
- "indexes": {
338
- "idx_discuss_updated": {
339
- "name": "idx_discuss_updated",
340
- "columns": [
341
- "updated_at"
342
- ],
343
- "isUnique": false
344
- },
345
- "idx_discuss_state_unique": {
346
- "name": "idx_discuss_state_unique",
347
- "columns": [
348
- "flow_id",
349
- "item_id"
350
- ],
351
- "isUnique": true
352
- }
353
- },
354
- "foreignKeys": {
355
- "discuss_state_flow_id_flow_runs_flow_id_fk": {
356
- "name": "discuss_state_flow_id_flow_runs_flow_id_fk",
357
- "tableFrom": "discuss_state",
358
- "tableTo": "flow_runs",
359
- "columnsFrom": [
360
- "flow_id"
361
- ],
362
- "columnsTo": [
363
- "flow_id"
364
- ],
365
- "onDelete": "cascade",
366
- "onUpdate": "no action"
367
- }
368
- },
369
- "compositePrimaryKeys": {},
370
- "uniqueConstraints": {},
371
- "checkConstraints": {}
372
- },
373
- "discuss_threads": {
374
- "name": "discuss_threads",
375
- "columns": {
376
- "flow_id": {
377
- "name": "flow_id",
378
- "type": "text",
379
- "primaryKey": false,
380
- "notNull": true,
381
- "autoincrement": false
382
- },
383
- "gate_node_id": {
384
- "name": "gate_node_id",
385
- "type": "text",
386
- "primaryKey": false,
387
- "notNull": true,
388
- "autoincrement": false
389
- },
390
- "item_id": {
391
- "name": "item_id",
392
- "type": "text",
393
- "primaryKey": false,
394
- "notNull": true,
395
- "autoincrement": false
396
- },
397
- "agent_id": {
398
- "name": "agent_id",
399
- "type": "text",
400
- "primaryKey": false,
401
- "notNull": false,
402
- "autoincrement": false
403
- },
404
- "session_key": {
405
- "name": "session_key",
406
- "type": "text",
407
- "primaryKey": false,
408
- "notNull": true,
409
- "autoincrement": false
410
- },
411
- "updated_at": {
412
- "name": "updated_at",
413
- "type": "integer",
414
- "primaryKey": false,
415
- "notNull": true,
416
- "autoincrement": false
417
- }
418
- },
419
- "indexes": {
420
- "idx_discuss_threads_unique": {
421
- "name": "idx_discuss_threads_unique",
422
- "columns": [
423
- "flow_id",
424
- "gate_node_id",
425
- "item_id"
426
- ],
427
- "isUnique": true
428
- }
429
- },
430
- "foreignKeys": {
431
- "discuss_threads_flow_id_flow_runs_flow_id_fk": {
432
- "name": "discuss_threads_flow_id_flow_runs_flow_id_fk",
433
- "tableFrom": "discuss_threads",
434
- "tableTo": "flow_runs",
435
- "columnsFrom": [
436
- "flow_id"
437
- ],
438
- "columnsTo": [
439
- "flow_id"
440
- ],
441
- "onDelete": "cascade",
442
- "onUpdate": "no action"
443
- }
444
- },
445
- "compositePrimaryKeys": {},
446
- "uniqueConstraints": {},
447
- "checkConstraints": {}
448
- },
449
- "failure_events": {
450
- "name": "failure_events",
451
- "columns": {
452
- "id": {
453
- "name": "id",
454
- "type": "text",
455
- "primaryKey": true,
456
- "notNull": true,
457
- "autoincrement": false
458
- },
459
- "flow_id": {
460
- "name": "flow_id",
461
- "type": "text",
462
- "primaryKey": false,
463
- "notNull": true,
464
- "autoincrement": false
465
- },
466
- "failed_at": {
467
- "name": "failed_at",
468
- "type": "integer",
469
- "primaryKey": false,
470
- "notNull": true,
471
- "autoincrement": false
472
- },
473
- "failure_summary": {
474
- "name": "failure_summary",
475
- "type": "text",
476
- "primaryKey": false,
477
- "notNull": true,
478
- "autoincrement": false
479
- },
480
- "invocation_id": {
481
- "name": "invocation_id",
482
- "type": "text",
483
- "primaryKey": false,
484
- "notNull": false,
485
- "autoincrement": false
486
- },
487
- "execution_id": {
488
- "name": "execution_id",
489
- "type": "text",
490
- "primaryKey": false,
491
- "notNull": false,
492
- "autoincrement": false
493
- },
494
- "error_type": {
495
- "name": "error_type",
496
- "type": "text",
497
- "primaryKey": false,
498
- "notNull": false,
499
- "autoincrement": false
500
- }
501
- },
502
- "indexes": {
503
- "idx_failures_flow": {
504
- "name": "idx_failures_flow",
505
- "columns": [
506
- "flow_id"
507
- ],
508
- "isUnique": false
509
- },
510
- "idx_failures_failed_at": {
511
- "name": "idx_failures_failed_at",
512
- "columns": [
513
- "\"failed_at\" desc"
514
- ],
515
- "isUnique": false
516
- },
517
- "idx_failures_invocation": {
518
- "name": "idx_failures_invocation",
519
- "columns": [
520
- "invocation_id"
521
- ],
522
- "isUnique": false
523
- },
524
- "idx_failures_execution": {
525
- "name": "idx_failures_execution",
526
- "columns": [
527
- "execution_id"
528
- ],
529
- "isUnique": true,
530
- "where": "\"failure_events\".\"execution_id\" IS NOT NULL"
531
- }
532
- },
533
- "foreignKeys": {
534
- "failure_events_flow_id_flow_runs_flow_id_fk": {
535
- "name": "failure_events_flow_id_flow_runs_flow_id_fk",
536
- "tableFrom": "failure_events",
537
- "tableTo": "flow_runs",
538
- "columnsFrom": [
539
- "flow_id"
540
- ],
541
- "columnsTo": [
542
- "flow_id"
543
- ],
544
- "onDelete": "cascade",
545
- "onUpdate": "no action"
546
- },
547
- "failure_events_invocation_id_flow_node_invocations_id_fk": {
548
- "name": "failure_events_invocation_id_flow_node_invocations_id_fk",
549
- "tableFrom": "failure_events",
550
- "tableTo": "flow_node_invocations",
551
- "columnsFrom": [
552
- "invocation_id"
553
- ],
554
- "columnsTo": [
555
- "id"
556
- ],
557
- "onDelete": "set null",
558
- "onUpdate": "no action"
559
- },
560
- "failure_events_execution_id_flow_node_executions_id_fk": {
561
- "name": "failure_events_execution_id_flow_node_executions_id_fk",
562
- "tableFrom": "failure_events",
563
- "tableTo": "flow_node_executions",
564
- "columnsFrom": [
565
- "execution_id"
566
- ],
567
- "columnsTo": [
568
- "id"
569
- ],
570
- "onDelete": "set null",
571
- "onUpdate": "no action"
572
- }
573
- },
574
- "compositePrimaryKeys": {},
575
- "uniqueConstraints": {},
576
- "checkConstraints": {}
577
- },
578
- "flow_admission_queue": {
579
- "name": "flow_admission_queue",
580
- "columns": {
581
- "id": {
582
- "name": "id",
583
- "type": "text",
584
- "primaryKey": true,
585
- "notNull": true,
586
- "autoincrement": false
587
- },
588
- "kind": {
589
- "name": "kind",
590
- "type": "text",
591
- "primaryKey": false,
592
- "notNull": true,
593
- "autoincrement": false
594
- },
595
- "flow_id": {
596
- "name": "flow_id",
597
- "type": "text",
598
- "primaryKey": false,
599
- "notNull": true,
600
- "autoincrement": false
601
- },
602
- "node_id": {
603
- "name": "node_id",
604
- "type": "text",
605
- "primaryKey": false,
606
- "notNull": false,
607
- "autoincrement": false
608
- },
609
- "status": {
610
- "name": "status",
611
- "type": "text",
612
- "primaryKey": false,
613
- "notNull": true,
614
- "autoincrement": false
615
- },
616
- "created_at": {
617
- "name": "created_at",
618
- "type": "integer",
619
- "primaryKey": false,
620
- "notNull": true,
621
- "autoincrement": false
622
- },
623
- "admitted_at": {
624
- "name": "admitted_at",
625
- "type": "integer",
626
- "primaryKey": false,
627
- "notNull": false,
628
- "autoincrement": false
629
- }
630
- },
631
- "indexes": {
632
- "idx_admission_status": {
633
- "name": "idx_admission_status",
634
- "columns": [
635
- "status"
636
- ],
637
- "isUnique": false
638
- },
639
- "idx_admission_flow": {
640
- "name": "idx_admission_flow",
641
- "columns": [
642
- "flow_id"
643
- ],
644
- "isUnique": false
645
- },
646
- "idx_admission_status_created": {
647
- "name": "idx_admission_status_created",
648
- "columns": [
649
- "status",
650
- "created_at"
651
- ],
652
- "isUnique": false
653
- }
654
- },
655
- "foreignKeys": {
656
- "flow_admission_queue_flow_id_flow_runs_flow_id_fk": {
657
- "name": "flow_admission_queue_flow_id_flow_runs_flow_id_fk",
658
- "tableFrom": "flow_admission_queue",
659
- "tableTo": "flow_runs",
660
- "columnsFrom": [
661
- "flow_id"
662
- ],
663
- "columnsTo": [
664
- "flow_id"
665
- ],
666
- "onDelete": "cascade",
667
- "onUpdate": "no action"
668
- }
669
- },
670
- "compositePrimaryKeys": {},
671
- "uniqueConstraints": {},
672
- "checkConstraints": {}
673
- },
674
- "flow_events": {
675
- "name": "flow_events",
676
- "columns": {
677
- "id": {
678
- "name": "id",
679
- "type": "text",
680
- "primaryKey": true,
681
- "notNull": true,
682
- "autoincrement": false
683
- },
684
- "flow_id": {
685
- "name": "flow_id",
686
- "type": "text",
687
- "primaryKey": false,
688
- "notNull": true,
689
- "autoincrement": false
690
- },
691
- "event_type": {
692
- "name": "event_type",
693
- "type": "text",
694
- "primaryKey": false,
695
- "notNull": true,
696
- "autoincrement": false
697
- },
698
- "prev_step": {
699
- "name": "prev_step",
700
- "type": "text",
701
- "primaryKey": false,
702
- "notNull": false,
703
- "autoincrement": false
704
- },
705
- "curr_step": {
706
- "name": "curr_step",
707
- "type": "text",
708
- "primaryKey": false,
709
- "notNull": false,
710
- "autoincrement": false
711
- },
712
- "prev_status": {
713
- "name": "prev_status",
714
- "type": "text",
715
- "primaryKey": false,
716
- "notNull": false,
717
- "autoincrement": false
718
- },
719
- "curr_status": {
720
- "name": "curr_status",
721
- "type": "text",
722
- "primaryKey": false,
723
- "notNull": false,
724
- "autoincrement": false
725
- },
726
- "wait_kind": {
727
- "name": "wait_kind",
728
- "type": "text",
729
- "primaryKey": false,
730
- "notNull": false,
731
- "autoincrement": false
732
- },
733
- "occurred_at": {
734
- "name": "occurred_at",
735
- "type": "integer",
736
- "primaryKey": false,
737
- "notNull": true,
738
- "autoincrement": false
739
- }
740
- },
741
- "indexes": {
742
- "idx_flow_events_flow_id": {
743
- "name": "idx_flow_events_flow_id",
744
- "columns": [
745
- "flow_id"
746
- ],
747
- "isUnique": false
748
- },
749
- "idx_flow_events_occurred_at": {
750
- "name": "idx_flow_events_occurred_at",
751
- "columns": [
752
- "occurred_at"
753
- ],
754
- "isUnique": false
755
- }
756
- },
757
- "foreignKeys": {
758
- "flow_events_flow_id_flow_runs_flow_id_fk": {
759
- "name": "flow_events_flow_id_flow_runs_flow_id_fk",
760
- "tableFrom": "flow_events",
761
- "tableTo": "flow_runs",
762
- "columnsFrom": [
763
- "flow_id"
764
- ],
765
- "columnsTo": [
766
- "flow_id"
767
- ],
768
- "onDelete": "cascade",
769
- "onUpdate": "no action"
770
- }
771
- },
772
- "compositePrimaryKeys": {},
773
- "uniqueConstraints": {},
774
- "checkConstraints": {}
775
- },
776
- "flow_node_executions": {
777
- "name": "flow_node_executions",
778
- "columns": {
779
- "id": {
780
- "name": "id",
781
- "type": "text",
782
- "primaryKey": true,
783
- "notNull": true,
784
- "autoincrement": false
785
- },
786
- "invocation_id": {
787
- "name": "invocation_id",
788
- "type": "text",
789
- "primaryKey": false,
790
- "notNull": true,
791
- "autoincrement": false
792
- },
793
- "entered_at": {
794
- "name": "entered_at",
795
- "type": "integer",
796
- "primaryKey": false,
797
- "notNull": true,
798
- "autoincrement": false
799
- },
800
- "exited_at": {
801
- "name": "exited_at",
802
- "type": "integer",
803
- "primaryKey": false,
804
- "notNull": true,
805
- "autoincrement": false
806
- },
807
- "kind": {
808
- "name": "kind",
809
- "type": "text",
810
- "primaryKey": false,
811
- "notNull": true,
812
- "autoincrement": false,
813
- "default": "'legacy'"
814
- }
815
- },
816
- "indexes": {
817
- "idx_fne_invocation": {
818
- "name": "idx_fne_invocation",
819
- "columns": [
820
- "invocation_id"
821
- ],
822
- "isUnique": false
823
- },
824
- "idx_fne_exited": {
825
- "name": "idx_fne_exited",
826
- "columns": [
827
- "exited_at"
828
- ],
829
- "isUnique": false
830
- }
831
- },
832
- "foreignKeys": {
833
- "flow_node_executions_invocation_id_flow_node_invocations_id_fk": {
834
- "name": "flow_node_executions_invocation_id_flow_node_invocations_id_fk",
835
- "tableFrom": "flow_node_executions",
836
- "tableTo": "flow_node_invocations",
837
- "columnsFrom": [
838
- "invocation_id"
839
- ],
840
- "columnsTo": [
841
- "id"
842
- ],
843
- "onDelete": "cascade",
844
- "onUpdate": "no action"
845
- }
846
- },
847
- "compositePrimaryKeys": {},
848
- "uniqueConstraints": {},
849
- "checkConstraints": {}
850
- },
851
- "flow_node_invocations": {
852
- "name": "flow_node_invocations",
853
- "columns": {
854
- "id": {
855
- "name": "id",
856
- "type": "text",
857
- "primaryKey": true,
858
- "notNull": true,
859
- "autoincrement": false
860
- },
861
- "flow_id": {
862
- "name": "flow_id",
863
- "type": "text",
864
- "primaryKey": false,
865
- "notNull": true,
866
- "autoincrement": false
867
- },
868
- "pipeline_id": {
869
- "name": "pipeline_id",
870
- "type": "text",
871
- "primaryKey": false,
872
- "notNull": false,
873
- "autoincrement": false
874
- },
875
- "node_id": {
876
- "name": "node_id",
877
- "type": "text",
878
- "primaryKey": false,
879
- "notNull": true,
880
- "autoincrement": false
881
- },
882
- "subflow_key": {
883
- "name": "subflow_key",
884
- "type": "text",
885
- "primaryKey": false,
886
- "notNull": false,
887
- "autoincrement": false
888
- },
889
- "visit_seq": {
890
- "name": "visit_seq",
891
- "type": "integer",
892
- "primaryKey": false,
893
- "notNull": true,
894
- "autoincrement": false,
895
- "default": 1
896
- },
897
- "invoked_at": {
898
- "name": "invoked_at",
899
- "type": "integer",
900
- "primaryKey": false,
901
- "notNull": true,
902
- "autoincrement": false
903
- },
904
- "result_json": {
905
- "name": "result_json",
906
- "type": "text",
907
- "primaryKey": false,
908
- "notNull": false,
909
- "autoincrement": false
910
- },
911
- "result_written_at": {
912
- "name": "result_written_at",
913
- "type": "integer",
914
- "primaryKey": false,
915
- "notNull": false,
916
- "autoincrement": false
917
- },
918
- "result_too_large_bytes": {
919
- "name": "result_too_large_bytes",
920
- "type": "integer",
921
- "primaryKey": false,
922
- "notNull": false,
923
- "autoincrement": false
924
- }
925
- },
926
- "indexes": {
927
- "idx_invocations_flow": {
928
- "name": "idx_invocations_flow",
929
- "columns": [
930
- "flow_id"
931
- ],
932
- "isUnique": false
933
- },
934
- "idx_invocations_node_subflow": {
935
- "name": "idx_invocations_node_subflow",
936
- "columns": [
937
- "node_id",
938
- "subflow_key"
939
- ],
940
- "isUnique": false
941
- },
942
- "idx_invocations_pipe_node": {
943
- "name": "idx_invocations_pipe_node",
944
- "columns": [
945
- "pipeline_id",
946
- "node_id"
947
- ],
948
- "isUnique": false
949
- }
950
- },
951
- "foreignKeys": {
952
- "flow_node_invocations_flow_id_flow_runs_flow_id_fk": {
953
- "name": "flow_node_invocations_flow_id_flow_runs_flow_id_fk",
954
- "tableFrom": "flow_node_invocations",
955
- "tableTo": "flow_runs",
956
- "columnsFrom": [
957
- "flow_id"
958
- ],
959
- "columnsTo": [
960
- "flow_id"
961
- ],
962
- "onDelete": "cascade",
963
- "onUpdate": "no action"
964
- }
965
- },
966
- "compositePrimaryKeys": {},
967
- "uniqueConstraints": {},
968
- "checkConstraints": {}
969
- },
970
- "flow_runs": {
971
- "name": "flow_runs",
972
- "columns": {
973
- "flow_id": {
974
- "name": "flow_id",
975
- "type": "text",
976
- "primaryKey": true,
977
- "notNull": true,
978
- "autoincrement": false
979
- },
980
- "owner_key": {
981
- "name": "owner_key",
982
- "type": "text",
983
- "primaryKey": false,
984
- "notNull": true,
985
- "autoincrement": false,
986
- "default": "''"
987
- },
988
- "revision": {
989
- "name": "revision",
990
- "type": "integer",
991
- "primaryKey": false,
992
- "notNull": true,
993
- "autoincrement": false,
994
- "default": 0
995
- },
996
- "status": {
997
- "name": "status",
998
- "type": "text",
999
- "primaryKey": false,
1000
- "notNull": true,
1001
- "autoincrement": false
1002
- },
1003
- "last_step": {
1004
- "name": "last_step",
1005
- "type": "text",
1006
- "primaryKey": false,
1007
- "notNull": false,
1008
- "autoincrement": false
1009
- },
1010
- "status_reason": {
1011
- "name": "status_reason",
1012
- "type": "text",
1013
- "primaryKey": false,
1014
- "notNull": false,
1015
- "autoincrement": false
1016
- },
1017
- "state_json": {
1018
- "name": "state_json",
1019
- "type": "text",
1020
- "primaryKey": false,
1021
- "notNull": true,
1022
- "autoincrement": false,
1023
- "default": "'{}'"
1024
- },
1025
- "wait_json": {
1026
- "name": "wait_json",
1027
- "type": "text",
1028
- "primaryKey": false,
1029
- "notNull": false,
1030
- "autoincrement": false
1031
- },
1032
- "cancel_requested_at": {
1033
- "name": "cancel_requested_at",
1034
- "type": "integer",
1035
- "primaryKey": false,
1036
- "notNull": false,
1037
- "autoincrement": false
1038
- },
1039
- "created_at": {
1040
- "name": "created_at",
1041
- "type": "integer",
1042
- "primaryKey": false,
1043
- "notNull": true,
1044
- "autoincrement": false
1045
- },
1046
- "updated_at": {
1047
- "name": "updated_at",
1048
- "type": "integer",
1049
- "primaryKey": false,
1050
- "notNull": true,
1051
- "autoincrement": false
1052
- },
1053
- "ended_at": {
1054
- "name": "ended_at",
1055
- "type": "integer",
1056
- "primaryKey": false,
1057
- "notNull": false,
1058
- "autoincrement": false
1059
- },
1060
- "parent_invocation_id": {
1061
- "name": "parent_invocation_id",
1062
- "type": "text",
1063
- "primaryKey": false,
1064
- "notNull": false,
1065
- "autoincrement": false
1066
- },
1067
- "pipeline_id": {
1068
- "name": "pipeline_id",
1069
- "type": "text",
1070
- "primaryKey": false,
1071
- "notNull": false,
1072
- "autoincrement": false
1073
- }
1074
- },
1075
- "indexes": {
1076
- "idx_pfr_status": {
1077
- "name": "idx_pfr_status",
1078
- "columns": [
1079
- "status"
1080
- ],
1081
- "isUnique": false,
1082
- "where": "\"flow_runs\".\"ended_at\" IS NULL"
1083
- },
1084
- "idx_pfr_updated": {
1085
- "name": "idx_pfr_updated",
1086
- "columns": [
1087
- "\"updated_at\" desc"
1088
- ],
1089
- "isUnique": false
1090
- },
1091
- "idx_pfr_created": {
1092
- "name": "idx_pfr_created",
1093
- "columns": [
1094
- "\"created_at\" desc"
1095
- ],
1096
- "isUnique": false
1097
- },
1098
- "idx_pfr_parent_invocation": {
1099
- "name": "idx_pfr_parent_invocation",
1100
- "columns": [
1101
- "parent_invocation_id"
1102
- ],
1103
- "isUnique": true,
1104
- "where": "\"flow_runs\".\"parent_invocation_id\" IS NOT NULL"
1105
- },
1106
- "idx_flow_runs_pipeline_id": {
1107
- "name": "idx_flow_runs_pipeline_id",
1108
- "columns": [
1109
- "pipeline_id"
1110
- ],
1111
- "isUnique": false
1112
- }
1113
- },
1114
- "foreignKeys": {
1115
- "flow_runs_parent_invocation_id_flow_node_invocations_id_fk": {
1116
- "name": "flow_runs_parent_invocation_id_flow_node_invocations_id_fk",
1117
- "tableFrom": "flow_runs",
1118
- "tableTo": "flow_node_invocations",
1119
- "columnsFrom": [
1120
- "parent_invocation_id"
1121
- ],
1122
- "columnsTo": [
1123
- "id"
1124
- ],
1125
- "onDelete": "set null",
1126
- "onUpdate": "no action"
1127
- },
1128
- "flow_runs_pipeline_id_pipelines_id_fk": {
1129
- "name": "flow_runs_pipeline_id_pipelines_id_fk",
1130
- "tableFrom": "flow_runs",
1131
- "tableTo": "pipelines",
1132
- "columnsFrom": [
1133
- "pipeline_id"
1134
- ],
1135
- "columnsTo": [
1136
- "id"
1137
- ],
1138
- "onDelete": "set null",
1139
- "onUpdate": "no action"
1140
- }
1141
- },
1142
- "compositePrimaryKeys": {},
1143
- "uniqueConstraints": {},
1144
- "checkConstraints": {}
1145
- },
1146
- "flow_sessions": {
1147
- "name": "flow_sessions",
1148
- "columns": {
1149
- "id": {
1150
- "name": "id",
1151
- "type": "text",
1152
- "primaryKey": true,
1153
- "notNull": true,
1154
- "autoincrement": false
1155
- },
1156
- "flow_id": {
1157
- "name": "flow_id",
1158
- "type": "text",
1159
- "primaryKey": false,
1160
- "notNull": true,
1161
- "autoincrement": false
1162
- },
1163
- "session_key": {
1164
- "name": "session_key",
1165
- "type": "text",
1166
- "primaryKey": false,
1167
- "notNull": true,
1168
- "autoincrement": false
1169
- },
1170
- "node_id": {
1171
- "name": "node_id",
1172
- "type": "text",
1173
- "primaryKey": false,
1174
- "notNull": false,
1175
- "autoincrement": false
1176
- },
1177
- "branch_item_id": {
1178
- "name": "branch_item_id",
1179
- "type": "text",
1180
- "primaryKey": false,
1181
- "notNull": false,
1182
- "autoincrement": false
1183
- },
1184
- "spawned_at": {
1185
- "name": "spawned_at",
1186
- "type": "integer",
1187
- "primaryKey": false,
1188
- "notNull": true,
1189
- "autoincrement": false
1190
- }
1191
- },
1192
- "indexes": {
1193
- "idx_flow_sessions_flow_id": {
1194
- "name": "idx_flow_sessions_flow_id",
1195
- "columns": [
1196
- "flow_id"
1197
- ],
1198
- "isUnique": false
1199
- },
1200
- "idx_flow_sessions_uniq": {
1201
- "name": "idx_flow_sessions_uniq",
1202
- "columns": [
1203
- "flow_id",
1204
- "session_key"
1205
- ],
1206
- "isUnique": true
1207
- }
1208
- },
1209
- "foreignKeys": {
1210
- "flow_sessions_flow_id_flow_runs_flow_id_fk": {
1211
- "name": "flow_sessions_flow_id_flow_runs_flow_id_fk",
1212
- "tableFrom": "flow_sessions",
1213
- "tableTo": "flow_runs",
1214
- "columnsFrom": [
1215
- "flow_id"
1216
- ],
1217
- "columnsTo": [
1218
- "flow_id"
1219
- ],
1220
- "onDelete": "cascade",
1221
- "onUpdate": "no action"
1222
- }
1223
- },
1224
- "compositePrimaryKeys": {},
1225
- "uniqueConstraints": {},
1226
- "checkConstraints": {}
1227
- },
1228
- "gate_records": {
1229
- "name": "gate_records",
1230
- "columns": {
1231
- "flow_id": {
1232
- "name": "flow_id",
1233
- "type": "text",
1234
- "primaryKey": false,
1235
- "notNull": true,
1236
- "autoincrement": false
1237
- },
1238
- "node_id": {
1239
- "name": "node_id",
1240
- "type": "text",
1241
- "primaryKey": false,
1242
- "notNull": true,
1243
- "autoincrement": false
1244
- },
1245
- "record_json": {
1246
- "name": "record_json",
1247
- "type": "text",
1248
- "primaryKey": false,
1249
- "notNull": true,
1250
- "autoincrement": false
1251
- },
1252
- "updated_at": {
1253
- "name": "updated_at",
1254
- "type": "integer",
1255
- "primaryKey": false,
1256
- "notNull": true,
1257
- "autoincrement": false
1258
- }
1259
- },
1260
- "indexes": {},
1261
- "foreignKeys": {
1262
- "gate_records_flow_id_flow_runs_flow_id_fk": {
1263
- "name": "gate_records_flow_id_flow_runs_flow_id_fk",
1264
- "tableFrom": "gate_records",
1265
- "tableTo": "flow_runs",
1266
- "columnsFrom": [
1267
- "flow_id"
1268
- ],
1269
- "columnsTo": [
1270
- "flow_id"
1271
- ],
1272
- "onDelete": "cascade",
1273
- "onUpdate": "no action"
1274
- }
1275
- },
1276
- "compositePrimaryKeys": {
1277
- "gate_records_flow_id_node_id_pk": {
1278
- "columns": [
1279
- "flow_id",
1280
- "node_id"
1281
- ],
1282
- "name": "gate_records_flow_id_node_id_pk"
1283
- }
1284
- },
1285
- "uniqueConstraints": {},
1286
- "checkConstraints": {}
1287
- },
1288
- "harnesses": {
1289
- "name": "harnesses",
1290
- "columns": {
1291
- "id": {
1292
- "name": "id",
1293
- "type": "text",
1294
- "primaryKey": true,
1295
- "notNull": true,
1296
- "autoincrement": false
1297
- },
1298
- "created_at": {
1299
- "name": "created_at",
1300
- "type": "integer",
1301
- "primaryKey": false,
1302
- "notNull": true,
1303
- "autoincrement": false
1304
- },
1305
- "updated_at": {
1306
- "name": "updated_at",
1307
- "type": "integer",
1308
- "primaryKey": false,
1309
- "notNull": true,
1310
- "autoincrement": false
1311
- }
1312
- },
1313
- "indexes": {},
1314
- "foreignKeys": {},
1315
- "compositePrimaryKeys": {},
1316
- "uniqueConstraints": {},
1317
- "checkConstraints": {}
1318
- },
1319
- "model_health": {
1320
- "name": "model_health",
1321
- "columns": {
1322
- "id": {
1323
- "name": "id",
1324
- "type": "text",
1325
- "primaryKey": true,
1326
- "notNull": true,
1327
- "autoincrement": false
1328
- },
1329
- "ref": {
1330
- "name": "ref",
1331
- "type": "text",
1332
- "primaryKey": false,
1333
- "notNull": true,
1334
- "autoincrement": false
1335
- },
1336
- "status": {
1337
- "name": "status",
1338
- "type": "text",
1339
- "primaryKey": false,
1340
- "notNull": true,
1341
- "autoincrement": false
1342
- },
1343
- "reason": {
1344
- "name": "reason",
1345
- "type": "text",
1346
- "primaryKey": false,
1347
- "notNull": true,
1348
- "autoincrement": false
1349
- },
1350
- "down_since": {
1351
- "name": "down_since",
1352
- "type": "integer",
1353
- "primaryKey": false,
1354
- "notNull": true,
1355
- "autoincrement": false
1356
- },
1357
- "until_ms": {
1358
- "name": "until_ms",
1359
- "type": "integer",
1360
- "primaryKey": false,
1361
- "notNull": false,
1362
- "autoincrement": false
1363
- },
1364
- "probing": {
1365
- "name": "probing",
1366
- "type": "integer",
1367
- "primaryKey": false,
1368
- "notNull": true,
1369
- "autoincrement": false,
1370
- "default": 0
1371
- },
1372
- "strike_level": {
1373
- "name": "strike_level",
1374
- "type": "integer",
1375
- "primaryKey": false,
1376
- "notNull": true,
1377
- "autoincrement": false,
1378
- "default": 0
1379
- },
1380
- "strike_ended_at": {
1381
- "name": "strike_ended_at",
1382
- "type": "integer",
1383
- "primaryKey": false,
1384
- "notNull": false,
1385
- "autoincrement": false
1386
- },
1387
- "created_at": {
1388
- "name": "created_at",
1389
- "type": "integer",
1390
- "primaryKey": false,
1391
- "notNull": true,
1392
- "autoincrement": false
1393
- },
1394
- "updated_at": {
1395
- "name": "updated_at",
1396
- "type": "integer",
1397
- "primaryKey": false,
1398
- "notNull": true,
1399
- "autoincrement": false
1400
- }
1401
- },
1402
- "indexes": {},
1403
- "foreignKeys": {},
1404
- "compositePrimaryKeys": {},
1405
- "uniqueConstraints": {},
1406
- "checkConstraints": {}
1407
- },
1408
- "node_health": {
1409
- "name": "node_health",
1410
- "columns": {
1411
- "id": {
1412
- "name": "id",
1413
- "type": "text",
1414
- "primaryKey": true,
1415
- "notNull": true,
1416
- "autoincrement": false
1417
- },
1418
- "pipeline_id": {
1419
- "name": "pipeline_id",
1420
- "type": "text",
1421
- "primaryKey": false,
1422
- "notNull": true,
1423
- "autoincrement": false
1424
- },
1425
- "node_id": {
1426
- "name": "node_id",
1427
- "type": "text",
1428
- "primaryKey": false,
1429
- "notNull": true,
1430
- "autoincrement": false
1431
- },
1432
- "status": {
1433
- "name": "status",
1434
- "type": "text",
1435
- "primaryKey": false,
1436
- "notNull": true,
1437
- "autoincrement": false
1438
- },
1439
- "reason": {
1440
- "name": "reason",
1441
- "type": "text",
1442
- "primaryKey": false,
1443
- "notNull": true,
1444
- "autoincrement": false
1445
- },
1446
- "blocked_by_flow_id": {
1447
- "name": "blocked_by_flow_id",
1448
- "type": "text",
1449
- "primaryKey": false,
1450
- "notNull": false,
1451
- "autoincrement": false
1452
- },
1453
- "resolved_via": {
1454
- "name": "resolved_via",
1455
- "type": "text",
1456
- "primaryKey": false,
1457
- "notNull": false,
1458
- "autoincrement": false
1459
- },
1460
- "created_at": {
1461
- "name": "created_at",
1462
- "type": "integer",
1463
- "primaryKey": false,
1464
- "notNull": true,
1465
- "autoincrement": false
1466
- },
1467
- "updated_at": {
1468
- "name": "updated_at",
1469
- "type": "integer",
1470
- "primaryKey": false,
1471
- "notNull": true,
1472
- "autoincrement": false
1473
- },
1474
- "ended_at": {
1475
- "name": "ended_at",
1476
- "type": "integer",
1477
- "primaryKey": false,
1478
- "notNull": false,
1479
- "autoincrement": false
1480
- }
1481
- },
1482
- "indexes": {
1483
- "idx_node_health_one_active": {
1484
- "name": "idx_node_health_one_active",
1485
- "columns": [
1486
- "pipeline_id",
1487
- "node_id"
1488
- ],
1489
- "isUnique": true,
1490
- "where": "\"node_health\".\"status\" = 'blocked'"
1491
- },
1492
- "idx_node_health_pipeline": {
1493
- "name": "idx_node_health_pipeline",
1494
- "columns": [
1495
- "pipeline_id",
1496
- "status"
1497
- ],
1498
- "isUnique": false
1499
- }
1500
- },
1501
- "foreignKeys": {
1502
- "node_health_pipeline_id_pipelines_id_fk": {
1503
- "name": "node_health_pipeline_id_pipelines_id_fk",
1504
- "tableFrom": "node_health",
1505
- "tableTo": "pipelines",
1506
- "columnsFrom": [
1507
- "pipeline_id"
1508
- ],
1509
- "columnsTo": [
1510
- "id"
1511
- ],
1512
- "onDelete": "restrict",
1513
- "onUpdate": "no action"
1514
- },
1515
- "node_health_blocked_by_flow_id_flow_runs_flow_id_fk": {
1516
- "name": "node_health_blocked_by_flow_id_flow_runs_flow_id_fk",
1517
- "tableFrom": "node_health",
1518
- "tableTo": "flow_runs",
1519
- "columnsFrom": [
1520
- "blocked_by_flow_id"
1521
- ],
1522
- "columnsTo": [
1523
- "flow_id"
1524
- ],
1525
- "onDelete": "set null",
1526
- "onUpdate": "no action"
1527
- }
1528
- },
1529
- "compositePrimaryKeys": {},
1530
- "uniqueConstraints": {},
1531
- "checkConstraints": {}
1532
- },
1533
- "pipeline_dirs": {
1534
- "name": "pipeline_dirs",
1535
- "columns": {
1536
- "harness": {
1537
- "name": "harness",
1538
- "type": "text",
1539
- "primaryKey": true,
1540
- "notNull": true,
1541
- "autoincrement": false
1542
- },
1543
- "path": {
1544
- "name": "path",
1545
- "type": "text",
1546
- "primaryKey": false,
1547
- "notNull": true,
1548
- "autoincrement": false
1549
- },
1550
- "created_at": {
1551
- "name": "created_at",
1552
- "type": "integer",
1553
- "primaryKey": false,
1554
- "notNull": true,
1555
- "autoincrement": false
1556
- }
1557
- },
1558
- "indexes": {},
1559
- "foreignKeys": {
1560
- "pipeline_dirs_harness_harnesses_id_fk": {
1561
- "name": "pipeline_dirs_harness_harnesses_id_fk",
1562
- "tableFrom": "pipeline_dirs",
1563
- "tableTo": "harnesses",
1564
- "columnsFrom": [
1565
- "harness"
1566
- ],
1567
- "columnsTo": [
1568
- "id"
1569
- ],
1570
- "onDelete": "cascade",
1571
- "onUpdate": "no action"
1572
- }
1573
- },
1574
- "compositePrimaryKeys": {},
1575
- "uniqueConstraints": {},
1576
- "checkConstraints": {}
1577
- },
1578
- "pipeline_node_versions": {
1579
- "name": "pipeline_node_versions",
1580
- "columns": {
1581
- "id": {
1582
- "name": "id",
1583
- "type": "text",
1584
- "primaryKey": true,
1585
- "notNull": true,
1586
- "autoincrement": false
1587
- },
1588
- "pipeline_version_id": {
1589
- "name": "pipeline_version_id",
1590
- "type": "text",
1591
- "primaryKey": false,
1592
- "notNull": true,
1593
- "autoincrement": false
1594
- },
1595
- "pipeline_id": {
1596
- "name": "pipeline_id",
1597
- "type": "text",
1598
- "primaryKey": false,
1599
- "notNull": true,
1600
- "autoincrement": false
1601
- },
1602
- "node_name": {
1603
- "name": "node_name",
1604
- "type": "text",
1605
- "primaryKey": false,
1606
- "notNull": true,
1607
- "autoincrement": false
1608
- },
1609
- "node_id": {
1610
- "name": "node_id",
1611
- "type": "text",
1612
- "primaryKey": false,
1613
- "notNull": false,
1614
- "autoincrement": false
1615
- },
1616
- "kind": {
1617
- "name": "kind",
1618
- "type": "text",
1619
- "primaryKey": false,
1620
- "notNull": true,
1621
- "autoincrement": false
1622
- },
1623
- "agent": {
1624
- "name": "agent",
1625
- "type": "text",
1626
- "primaryKey": false,
1627
- "notNull": false,
1628
- "autoincrement": false
1629
- },
1630
- "mode": {
1631
- "name": "mode",
1632
- "type": "text",
1633
- "primaryKey": false,
1634
- "notNull": false,
1635
- "autoincrement": false
1636
- },
1637
- "content_hash": {
1638
- "name": "content_hash",
1639
- "type": "text",
1640
- "primaryKey": false,
1641
- "notNull": true,
1642
- "autoincrement": false
1643
- },
1644
- "registered_at": {
1645
- "name": "registered_at",
1646
- "type": "integer",
1647
- "primaryKey": false,
1648
- "notNull": true,
1649
- "autoincrement": false
1650
- },
1651
- "retired_at": {
1652
- "name": "retired_at",
1653
- "type": "integer",
1654
- "primaryKey": false,
1655
- "notNull": false,
1656
- "autoincrement": false
1657
- }
1658
- },
1659
- "indexes": {
1660
- "idx_pnv_lookup": {
1661
- "name": "idx_pnv_lookup",
1662
- "columns": [
1663
- "pipeline_id",
1664
- "node_name",
1665
- "registered_at"
1666
- ],
1667
- "isUnique": false
1668
- },
1669
- "idx_pnv_active": {
1670
- "name": "idx_pnv_active",
1671
- "columns": [
1672
- "pipeline_id",
1673
- "node_name"
1674
- ],
1675
- "isUnique": true,
1676
- "where": "\"pipeline_node_versions\".\"retired_at\" IS NULL"
1677
- }
1678
- },
1679
- "foreignKeys": {
1680
- "pipeline_node_versions_pipeline_version_id_pipeline_versions_id_fk": {
1681
- "name": "pipeline_node_versions_pipeline_version_id_pipeline_versions_id_fk",
1682
- "tableFrom": "pipeline_node_versions",
1683
- "tableTo": "pipeline_versions",
1684
- "columnsFrom": [
1685
- "pipeline_version_id"
1686
- ],
1687
- "columnsTo": [
1688
- "id"
1689
- ],
1690
- "onDelete": "cascade",
1691
- "onUpdate": "no action"
1692
- },
1693
- "pipeline_node_versions_pipeline_id_pipelines_id_fk": {
1694
- "name": "pipeline_node_versions_pipeline_id_pipelines_id_fk",
1695
- "tableFrom": "pipeline_node_versions",
1696
- "tableTo": "pipelines",
1697
- "columnsFrom": [
1698
- "pipeline_id"
1699
- ],
1700
- "columnsTo": [
1701
- "id"
1702
- ],
1703
- "onDelete": "restrict",
1704
- "onUpdate": "no action"
1705
- }
1706
- },
1707
- "compositePrimaryKeys": {},
1708
- "uniqueConstraints": {},
1709
- "checkConstraints": {}
1710
- },
1711
- "pipeline_versions": {
1712
- "name": "pipeline_versions",
1713
- "columns": {
1714
- "id": {
1715
- "name": "id",
1716
- "type": "text",
1717
- "primaryKey": true,
1718
- "notNull": true,
1719
- "autoincrement": false
1720
- },
1721
- "pipeline_id": {
1722
- "name": "pipeline_id",
1723
- "type": "text",
1724
- "primaryKey": false,
1725
- "notNull": true,
1726
- "autoincrement": false
1727
- },
1728
- "kind": {
1729
- "name": "kind",
1730
- "type": "text",
1731
- "primaryKey": false,
1732
- "notNull": false,
1733
- "autoincrement": false
1734
- },
1735
- "allow_concurrent": {
1736
- "name": "allow_concurrent",
1737
- "type": "text",
1738
- "primaryKey": false,
1739
- "notNull": false,
1740
- "autoincrement": false
1741
- },
1742
- "is_synthetic": {
1743
- "name": "is_synthetic",
1744
- "type": "integer",
1745
- "primaryKey": false,
1746
- "notNull": true,
1747
- "autoincrement": false
1748
- },
1749
- "parent_pipeline_id": {
1750
- "name": "parent_pipeline_id",
1751
- "type": "text",
1752
- "primaryKey": false,
1753
- "notNull": false,
1754
- "autoincrement": false
1755
- },
1756
- "source_path": {
1757
- "name": "source_path",
1758
- "type": "text",
1759
- "primaryKey": false,
1760
- "notNull": false,
1761
- "autoincrement": false
1762
- },
1763
- "content_hash": {
1764
- "name": "content_hash",
1765
- "type": "text",
1766
- "primaryKey": false,
1767
- "notNull": true,
1768
- "autoincrement": false
1769
- },
1770
- "registered_at": {
1771
- "name": "registered_at",
1772
- "type": "integer",
1773
- "primaryKey": false,
1774
- "notNull": true,
1775
- "autoincrement": false
1776
- },
1777
- "retired_at": {
1778
- "name": "retired_at",
1779
- "type": "integer",
1780
- "primaryKey": false,
1781
- "notNull": false,
1782
- "autoincrement": false
1783
- }
1784
- },
1785
- "indexes": {
1786
- "idx_pv_lookup": {
1787
- "name": "idx_pv_lookup",
1788
- "columns": [
1789
- "pipeline_id",
1790
- "registered_at"
1791
- ],
1792
- "isUnique": false
1793
- },
1794
- "idx_pv_active": {
1795
- "name": "idx_pv_active",
1796
- "columns": [
1797
- "pipeline_id"
1798
- ],
1799
- "isUnique": true,
1800
- "where": "\"pipeline_versions\".\"retired_at\" IS NULL"
1801
- }
1802
- },
1803
- "foreignKeys": {
1804
- "pipeline_versions_pipeline_id_pipelines_id_fk": {
1805
- "name": "pipeline_versions_pipeline_id_pipelines_id_fk",
1806
- "tableFrom": "pipeline_versions",
1807
- "tableTo": "pipelines",
1808
- "columnsFrom": [
1809
- "pipeline_id"
1810
- ],
1811
- "columnsTo": [
1812
- "id"
1813
- ],
1814
- "onDelete": "restrict",
1815
- "onUpdate": "no action"
1816
- },
1817
- "pipeline_versions_parent_pipeline_id_pipelines_id_fk": {
1818
- "name": "pipeline_versions_parent_pipeline_id_pipelines_id_fk",
1819
- "tableFrom": "pipeline_versions",
1820
- "tableTo": "pipelines",
1821
- "columnsFrom": [
1822
- "parent_pipeline_id"
1823
- ],
1824
- "columnsTo": [
1825
- "id"
1826
- ],
1827
- "onDelete": "set null",
1828
- "onUpdate": "no action"
1829
- }
1830
- },
1831
- "compositePrimaryKeys": {},
1832
- "uniqueConstraints": {},
1833
- "checkConstraints": {}
1834
- },
1835
- "pipelines": {
1836
- "name": "pipelines",
1837
- "columns": {
1838
- "id": {
1839
- "name": "id",
1840
- "type": "text",
1841
- "primaryKey": true,
1842
- "notNull": true,
1843
- "autoincrement": false
1844
- },
1845
- "name": {
1846
- "name": "name",
1847
- "type": "text",
1848
- "primaryKey": false,
1849
- "notNull": true,
1850
- "autoincrement": false
1851
- },
1852
- "harness": {
1853
- "name": "harness",
1854
- "type": "text",
1855
- "primaryKey": false,
1856
- "notNull": false,
1857
- "autoincrement": false
1858
- },
1859
- "created_at": {
1860
- "name": "created_at",
1861
- "type": "integer",
1862
- "primaryKey": false,
1863
- "notNull": true,
1864
- "autoincrement": false
1865
- },
1866
- "updated_at": {
1867
- "name": "updated_at",
1868
- "type": "integer",
1869
- "primaryKey": false,
1870
- "notNull": true,
1871
- "autoincrement": false
1872
- },
1873
- "deleted_at": {
1874
- "name": "deleted_at",
1875
- "type": "integer",
1876
- "primaryKey": false,
1877
- "notNull": false,
1878
- "autoincrement": false
1879
- }
1880
- },
1881
- "indexes": {
1882
- "idx_pipelines_harness_name": {
1883
- "name": "idx_pipelines_harness_name",
1884
- "columns": [
1885
- "harness",
1886
- "name"
1887
- ],
1888
- "isUnique": false
1889
- }
1890
- },
1891
- "foreignKeys": {
1892
- "pipelines_harness_harnesses_id_fk": {
1893
- "name": "pipelines_harness_harnesses_id_fk",
1894
- "tableFrom": "pipelines",
1895
- "tableTo": "harnesses",
1896
- "columnsFrom": [
1897
- "harness"
1898
- ],
1899
- "columnsTo": [
1900
- "id"
1901
- ],
1902
- "onDelete": "set null",
1903
- "onUpdate": "no action"
1904
- }
1905
- },
1906
- "compositePrimaryKeys": {},
1907
- "uniqueConstraints": {},
1908
- "checkConstraints": {}
1909
- },
1910
- "queue_items": {
1911
- "name": "queue_items",
1912
- "columns": {
1913
- "id": {
1914
- "name": "id",
1915
- "type": "text",
1916
- "primaryKey": true,
1917
- "notNull": true,
1918
- "autoincrement": false
1919
- },
1920
- "label": {
1921
- "name": "label",
1922
- "type": "text",
1923
- "primaryKey": false,
1924
- "notNull": true,
1925
- "autoincrement": false
1926
- },
1927
- "agent": {
1928
- "name": "agent",
1929
- "type": "text",
1930
- "primaryKey": false,
1931
- "notNull": true,
1932
- "autoincrement": false
1933
- },
1934
- "agent_emoji": {
1935
- "name": "agent_emoji",
1936
- "type": "text",
1937
- "primaryKey": false,
1938
- "notNull": true,
1939
- "autoincrement": false,
1940
- "default": "'🤖'"
1941
- },
1942
- "trigger": {
1943
- "name": "trigger",
1944
- "type": "text",
1945
- "primaryKey": false,
1946
- "notNull": true,
1947
- "autoincrement": false,
1948
- "default": "'manual'"
1949
- },
1950
- "cost_low": {
1951
- "name": "cost_low",
1952
- "type": "real",
1953
- "primaryKey": false,
1954
- "notNull": true,
1955
- "autoincrement": false,
1956
- "default": 0
1957
- },
1958
- "cost_high": {
1959
- "name": "cost_high",
1960
- "type": "real",
1961
- "primaryKey": false,
1962
- "notNull": true,
1963
- "autoincrement": false,
1964
- "default": 0
1965
- },
1966
- "brief": {
1967
- "name": "brief",
1968
- "type": "text",
1969
- "primaryKey": false,
1970
- "notNull": false,
1971
- "autoincrement": false
1972
- },
1973
- "model_chain": {
1974
- "name": "model_chain",
1975
- "type": "text",
1976
- "primaryKey": false,
1977
- "notNull": false,
1978
- "autoincrement": false
1979
- },
1980
- "pipeline": {
1981
- "name": "pipeline",
1982
- "type": "text",
1983
- "primaryKey": false,
1984
- "notNull": false,
1985
- "autoincrement": false
1986
- },
1987
- "node": {
1988
- "name": "node",
1989
- "type": "text",
1990
- "primaryKey": false,
1991
- "notNull": false,
1992
- "autoincrement": false
1993
- },
1994
- "token_estimate": {
1995
- "name": "token_estimate",
1996
- "type": "integer",
1997
- "primaryKey": false,
1998
- "notNull": false,
1999
- "autoincrement": false
2000
- },
2001
- "status": {
2002
- "name": "status",
2003
- "type": "text",
2004
- "primaryKey": false,
2005
- "notNull": true,
2006
- "autoincrement": false,
2007
- "default": "'pending'"
2008
- },
2009
- "created_at": {
2010
- "name": "created_at",
2011
- "type": "integer",
2012
- "primaryKey": false,
2013
- "notNull": true,
2014
- "autoincrement": false
2015
- },
2016
- "expires_at": {
2017
- "name": "expires_at",
2018
- "type": "integer",
2019
- "primaryKey": false,
2020
- "notNull": false,
2021
- "autoincrement": false
2022
- },
2023
- "decided_at": {
2024
- "name": "decided_at",
2025
- "type": "integer",
2026
- "primaryKey": false,
2027
- "notNull": false,
2028
- "autoincrement": false
2029
- },
2030
- "decision": {
2031
- "name": "decision",
2032
- "type": "text",
2033
- "primaryKey": false,
2034
- "notNull": false,
2035
- "autoincrement": false
2036
- },
2037
- "pipeline_id": {
2038
- "name": "pipeline_id",
2039
- "type": "text",
2040
- "primaryKey": false,
2041
- "notNull": false,
2042
- "autoincrement": false
2043
- },
2044
- "pipeline_args": {
2045
- "name": "pipeline_args",
2046
- "type": "text",
2047
- "primaryKey": false,
2048
- "notNull": false,
2049
- "autoincrement": false
2050
- },
2051
- "flow_id": {
2052
- "name": "flow_id",
2053
- "type": "text",
2054
- "primaryKey": false,
2055
- "notNull": false,
2056
- "autoincrement": false
2057
- },
2058
- "enqueuer_session_key": {
2059
- "name": "enqueuer_session_key",
2060
- "type": "text",
2061
- "primaryKey": false,
2062
- "notNull": false,
2063
- "autoincrement": false
2064
- },
2065
- "kind": {
2066
- "name": "kind",
2067
- "type": "text",
2068
- "primaryKey": false,
2069
- "notNull": false,
2070
- "autoincrement": false
2071
- }
2072
- },
2073
- "indexes": {
2074
- "idx_status": {
2075
- "name": "idx_status",
2076
- "columns": [
2077
- "status"
2078
- ],
2079
- "isUnique": false
2080
- },
2081
- "idx_created_at": {
2082
- "name": "idx_created_at",
2083
- "columns": [
2084
- "\"created_at\" desc"
2085
- ],
2086
- "isUnique": false
2087
- },
2088
- "idx_flow_node": {
2089
- "name": "idx_flow_node",
2090
- "columns": [
2091
- "flow_id",
2092
- "node"
2093
- ],
2094
- "isUnique": false
2095
- }
2096
- },
2097
- "foreignKeys": {
2098
- "queue_items_pipeline_id_pipelines_id_fk": {
2099
- "name": "queue_items_pipeline_id_pipelines_id_fk",
2100
- "tableFrom": "queue_items",
2101
- "tableTo": "pipelines",
2102
- "columnsFrom": [
2103
- "pipeline_id"
2104
- ],
2105
- "columnsTo": [
2106
- "id"
2107
- ],
2108
- "onDelete": "set null",
2109
- "onUpdate": "no action"
2110
- },
2111
- "queue_items_flow_id_flow_runs_flow_id_fk": {
2112
- "name": "queue_items_flow_id_flow_runs_flow_id_fk",
2113
- "tableFrom": "queue_items",
2114
- "tableTo": "flow_runs",
2115
- "columnsFrom": [
2116
- "flow_id"
2117
- ],
2118
- "columnsTo": [
2119
- "flow_id"
2120
- ],
2121
- "onDelete": "set null",
2122
- "onUpdate": "no action"
2123
- }
2124
- },
2125
- "compositePrimaryKeys": {},
2126
- "uniqueConstraints": {},
2127
- "checkConstraints": {}
2128
- },
2129
- "session_lineage": {
2130
- "name": "session_lineage",
2131
- "columns": {
2132
- "child_session_key": {
2133
- "name": "child_session_key",
2134
- "type": "text",
2135
- "primaryKey": true,
2136
- "notNull": true,
2137
- "autoincrement": false
2138
- },
2139
- "parent_session_key": {
2140
- "name": "parent_session_key",
2141
- "type": "text",
2142
- "primaryKey": false,
2143
- "notNull": false,
2144
- "autoincrement": false
2145
- },
2146
- "root_session_key": {
2147
- "name": "root_session_key",
2148
- "type": "text",
2149
- "primaryKey": false,
2150
- "notNull": true,
2151
- "autoincrement": false
2152
- },
2153
- "kind": {
2154
- "name": "kind",
2155
- "type": "text",
2156
- "primaryKey": false,
2157
- "notNull": true,
2158
- "autoincrement": false
2159
- },
2160
- "root_kind": {
2161
- "name": "root_kind",
2162
- "type": "text",
2163
- "primaryKey": false,
2164
- "notNull": true,
2165
- "autoincrement": false
2166
- },
2167
- "root_label": {
2168
- "name": "root_label",
2169
- "type": "text",
2170
- "primaryKey": false,
2171
- "notNull": false,
2172
- "autoincrement": false
2173
- },
2174
- "agent_id": {
2175
- "name": "agent_id",
2176
- "type": "text",
2177
- "primaryKey": false,
2178
- "notNull": false,
2179
- "autoincrement": false
2180
- },
2181
- "pipeline_id": {
2182
- "name": "pipeline_id",
2183
- "type": "text",
2184
- "primaryKey": false,
2185
- "notNull": false,
2186
- "autoincrement": false
2187
- },
2188
- "flow_id": {
2189
- "name": "flow_id",
2190
- "type": "text",
2191
- "primaryKey": false,
2192
- "notNull": false,
2193
- "autoincrement": false
2194
- },
2195
- "node_id": {
2196
- "name": "node_id",
2197
- "type": "text",
2198
- "primaryKey": false,
2199
- "notNull": false,
2200
- "autoincrement": false
2201
- },
2202
- "item_key": {
2203
- "name": "item_key",
2204
- "type": "text",
2205
- "primaryKey": false,
2206
- "notNull": false,
2207
- "autoincrement": false
2208
- },
2209
- "first_seen_at": {
2210
- "name": "first_seen_at",
2211
- "type": "integer",
2212
- "primaryKey": false,
2213
- "notNull": true,
2214
- "autoincrement": false
2215
- },
2216
- "source": {
2217
- "name": "source",
2218
- "type": "text",
2219
- "primaryKey": false,
2220
- "notNull": true,
2221
- "autoincrement": false
2222
- },
2223
- "run_id": {
2224
- "name": "run_id",
2225
- "type": "text",
2226
- "primaryKey": false,
2227
- "notNull": false,
2228
- "autoincrement": false
2229
- }
2230
- },
2231
- "indexes": {
2232
- "idx_lineage_root": {
2233
- "name": "idx_lineage_root",
2234
- "columns": [
2235
- "root_session_key"
2236
- ],
2237
- "isUnique": false
2238
- },
2239
- "idx_lineage_parent": {
2240
- "name": "idx_lineage_parent",
2241
- "columns": [
2242
- "parent_session_key"
2243
- ],
2244
- "isUnique": false
2245
- },
2246
- "idx_lineage_pipeline": {
2247
- "name": "idx_lineage_pipeline",
2248
- "columns": [
2249
- "pipeline_id"
2250
- ],
2251
- "isUnique": false
2252
- },
2253
- "idx_lineage_flow": {
2254
- "name": "idx_lineage_flow",
2255
- "columns": [
2256
- "flow_id"
2257
- ],
2258
- "isUnique": false
2259
- },
2260
- "idx_lineage_root_kind": {
2261
- "name": "idx_lineage_root_kind",
2262
- "columns": [
2263
- "root_kind"
2264
- ],
2265
- "isUnique": false
2266
- },
2267
- "idx_lineage_run": {
2268
- "name": "idx_lineage_run",
2269
- "columns": [
2270
- "run_id"
2271
- ],
2272
- "isUnique": false
2273
- }
2274
- },
2275
- "foreignKeys": {
2276
- "session_lineage_pipeline_id_pipelines_id_fk": {
2277
- "name": "session_lineage_pipeline_id_pipelines_id_fk",
2278
- "tableFrom": "session_lineage",
2279
- "tableTo": "pipelines",
2280
- "columnsFrom": [
2281
- "pipeline_id"
2282
- ],
2283
- "columnsTo": [
2284
- "id"
2285
- ],
2286
- "onDelete": "set null",
2287
- "onUpdate": "no action"
2288
- },
2289
- "session_lineage_flow_id_flow_runs_flow_id_fk": {
2290
- "name": "session_lineage_flow_id_flow_runs_flow_id_fk",
2291
- "tableFrom": "session_lineage",
2292
- "tableTo": "flow_runs",
2293
- "columnsFrom": [
2294
- "flow_id"
2295
- ],
2296
- "columnsTo": [
2297
- "flow_id"
2298
- ],
2299
- "onDelete": "set null",
2300
- "onUpdate": "no action"
2301
- }
2302
- },
2303
- "compositePrimaryKeys": {},
2304
- "uniqueConstraints": {},
2305
- "checkConstraints": {}
2306
- },
2307
- "tool_results": {
2308
- "name": "tool_results",
2309
- "columns": {
2310
- "session_key": {
2311
- "name": "session_key",
2312
- "type": "text",
2313
- "primaryKey": true,
2314
- "notNull": true,
2315
- "autoincrement": false
2316
- },
2317
- "run_id": {
2318
- "name": "run_id",
2319
- "type": "text",
2320
- "primaryKey": false,
2321
- "notNull": false,
2322
- "autoincrement": false
2323
- },
2324
- "agent_id": {
2325
- "name": "agent_id",
2326
- "type": "text",
2327
- "primaryKey": false,
2328
- "notNull": false,
2329
- "autoincrement": false
2330
- },
2331
- "kind": {
2332
- "name": "kind",
2333
- "type": "text",
2334
- "primaryKey": false,
2335
- "notNull": false,
2336
- "autoincrement": false
2337
- },
2338
- "payload_json": {
2339
- "name": "payload_json",
2340
- "type": "text",
2341
- "primaryKey": false,
2342
- "notNull": true,
2343
- "autoincrement": false
2344
- },
2345
- "updated_at": {
2346
- "name": "updated_at",
2347
- "type": "integer",
2348
- "primaryKey": false,
2349
- "notNull": true,
2350
- "autoincrement": false
2351
- }
2352
- },
2353
- "indexes": {},
2354
- "foreignKeys": {
2355
- "tool_results_run_id_flow_runs_flow_id_fk": {
2356
- "name": "tool_results_run_id_flow_runs_flow_id_fk",
2357
- "tableFrom": "tool_results",
2358
- "tableTo": "flow_runs",
2359
- "columnsFrom": [
2360
- "run_id"
2361
- ],
2362
- "columnsTo": [
2363
- "flow_id"
2364
- ],
2365
- "onDelete": "set null",
2366
- "onUpdate": "no action"
2367
- }
2368
- },
2369
- "compositePrimaryKeys": {},
2370
- "uniqueConstraints": {},
2371
- "checkConstraints": {}
2372
- }
2373
- },
2374
- "views": {},
2375
- "enums": {},
2376
- "_meta": {
2377
- "schemas": {},
2378
- "tables": {},
2379
- "columns": {}
2380
- },
2381
- "internal": {
2382
- "indexes": {
2383
- "idx_failures_failed_at": {
2384
- "columns": {
2385
- "\"failed_at\" desc": {
2386
- "isExpression": true
2387
- }
2388
- }
2389
- },
2390
- "idx_pfr_updated": {
2391
- "columns": {
2392
- "\"updated_at\" desc": {
2393
- "isExpression": true
2394
- }
2395
- }
2396
- },
2397
- "idx_pfr_created": {
2398
- "columns": {
2399
- "\"created_at\" desc": {
2400
- "isExpression": true
2401
- }
2402
- }
2403
- },
2404
- "idx_created_at": {
2405
- "columns": {
2406
- "\"created_at\" desc": {
2407
- "isExpression": true
2408
- }
2409
- }
2410
- }
2411
- }
2412
- }
2413
- }