@igorjpimenta/manifold 0.0.0-stage → 2026.11.22-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (210) hide show
  1. package/.migrations/ops/0000_futuristic_karma.sql +111 -0
  2. package/.migrations/ops/0001_low_maximus.sql +7 -0
  3. package/.migrations/ops/meta/0000_snapshot.json +763 -0
  4. package/.migrations/ops/meta/0001_snapshot.json +173 -0
  5. package/.migrations/ops/meta/_journal.json +20 -0
  6. package/.migrations/runtime/0000_real_boomer.sql +180 -0
  7. package/.migrations/runtime/0001_hot_dakota_north.sql +2 -0
  8. package/.migrations/runtime/0002_breezy_vertigo.sql +8 -0
  9. package/.migrations/runtime/0003_dashing_jack_flag.sql +5 -0
  10. package/.migrations/runtime/0004_panoramic_ego.sql +1 -0
  11. package/.migrations/runtime/0005_tidy_ben_grimm.sql +10 -0
  12. package/.migrations/runtime/0006_wet_nightmare.sql +57 -0
  13. package/.migrations/runtime/0007_ambiguous_chronomancer.sql +8 -0
  14. package/.migrations/runtime/0008_wealthy_thundra.sql +301 -0
  15. package/.migrations/runtime/0009_lying_shocker.sql +96 -0
  16. package/.migrations/runtime/0010_solid_phantom_reporter.sql +160 -0
  17. package/.migrations/runtime/0011_windy_demogoblin.sql +175 -0
  18. package/.migrations/runtime/0012_restore_harness_fks.sql +103 -0
  19. package/.migrations/runtime/meta/0000_snapshot.json +1181 -0
  20. package/.migrations/runtime/meta/0001_snapshot.json +1209 -0
  21. package/.migrations/runtime/meta/0002_snapshot.json +1261 -0
  22. package/.migrations/runtime/meta/0003_snapshot.json +1292 -0
  23. package/.migrations/runtime/meta/0004_snapshot.json +1240 -0
  24. package/.migrations/runtime/meta/0006_snapshot.json +1310 -0
  25. package/.migrations/runtime/meta/0007_snapshot.json +1362 -0
  26. package/.migrations/runtime/meta/0008_snapshot.json +1742 -0
  27. package/.migrations/runtime/meta/0009_snapshot.json +2413 -0
  28. package/.migrations/runtime/meta/0010_snapshot.json +2562 -0
  29. package/.migrations/runtime/meta/0011_snapshot.json +2812 -0
  30. package/.migrations/runtime/meta/0012_snapshot.json +2812 -0
  31. package/.migrations/runtime/meta/_journal.json +97 -0
  32. package/README.md +1583 -2
  33. package/RELEASING.md +89 -0
  34. package/agent/fleet.js +100 -0
  35. package/bin/cli.js +854 -0
  36. package/bin/manifold.js +4 -0
  37. package/boot/flow-revival.js +536 -0
  38. package/budget/index.js +495 -0
  39. package/budget/lib.js +59 -0
  40. package/dashboard/cost.js +528 -0
  41. package/dashboard/dist/assets/index-CUfp63sj.css +1 -0
  42. package/dashboard/dist/assets/index-Qy9JMpma.js +371 -0
  43. package/dashboard/dist/index.html +13 -0
  44. package/dashboard/event-log.js +267 -0
  45. package/dashboard/index.html +12 -0
  46. package/dashboard/package-lock.json +2877 -0
  47. package/dashboard/package.json +37 -0
  48. package/dashboard/pipeline-graph.js +131 -0
  49. package/dashboard/postcss.config.js +6 -0
  50. package/dashboard/search.js +183 -0
  51. package/dashboard/server.js +1015 -0
  52. package/dashboard/src/App.tsx +42 -0
  53. package/dashboard/src/api/client.ts +118 -0
  54. package/dashboard/src/api/types.ts +510 -0
  55. package/dashboard/src/api/ws.tsx +112 -0
  56. package/dashboard/src/components/CancelButton.tsx +63 -0
  57. package/dashboard/src/components/ClickToCopy.tsx +68 -0
  58. package/dashboard/src/components/CopyButton.tsx +61 -0
  59. package/dashboard/src/components/DailyCostTrend.tsx +85 -0
  60. package/dashboard/src/components/DailyTimeTrend.tsx +94 -0
  61. package/dashboard/src/components/Funnel.tsx +149 -0
  62. package/dashboard/src/components/GateForm.tsx +158 -0
  63. package/dashboard/src/components/GraphView.tsx +302 -0
  64. package/dashboard/src/components/GroupPathsSummary.tsx +47 -0
  65. package/dashboard/src/components/Histogram.tsx +292 -0
  66. package/dashboard/src/components/Layout.tsx +28 -0
  67. package/dashboard/src/components/NeedsAttention.tsx +98 -0
  68. package/dashboard/src/components/NodeContextCard.tsx +132 -0
  69. package/dashboard/src/components/PathTrail.tsx +35 -0
  70. package/dashboard/src/components/PipelineCostBreakdown.tsx +277 -0
  71. package/dashboard/src/components/RerunButton.tsx +46 -0
  72. package/dashboard/src/components/RunComparison.tsx +53 -0
  73. package/dashboard/src/components/Sparkline.tsx +94 -0
  74. package/dashboard/src/components/StatStrip.tsx +147 -0
  75. package/dashboard/src/components/StateTree.tsx +84 -0
  76. package/dashboard/src/components/StatusBadge.tsx +18 -0
  77. package/dashboard/src/components/SubflowPathPills.tsx +38 -0
  78. package/dashboard/src/components/SubflowSummary.tsx +24 -0
  79. package/dashboard/src/components/SubflowsCard.tsx +327 -0
  80. package/dashboard/src/components/TodayStrip.tsx +86 -0
  81. package/dashboard/src/components/TranscriptPane.tsx +99 -0
  82. package/dashboard/src/components/TranscriptRow.tsx +69 -0
  83. package/dashboard/src/components/ui/badge.tsx +38 -0
  84. package/dashboard/src/components/ui/button.tsx +28 -0
  85. package/dashboard/src/components/ui/card.tsx +42 -0
  86. package/dashboard/src/components/ui/skeleton.tsx +9 -0
  87. package/dashboard/src/components/ui/table.tsx +62 -0
  88. package/dashboard/src/index.css +26 -0
  89. package/dashboard/src/lib/anomaly.ts +42 -0
  90. package/dashboard/src/lib/format.ts +30 -0
  91. package/dashboard/src/lib/step-history.ts +13 -0
  92. package/dashboard/src/lib/subflow.ts +154 -0
  93. package/dashboard/src/lib/use-click-outside.ts +28 -0
  94. package/dashboard/src/lib/use-ignored-clusters.ts +67 -0
  95. package/dashboard/src/lib/utils.ts +6 -0
  96. package/dashboard/src/main.tsx +10 -0
  97. package/dashboard/src/types/shims.d.ts +4 -0
  98. package/dashboard/src/views/Home.tsx +478 -0
  99. package/dashboard/src/views/PipelineDetail.tsx +1185 -0
  100. package/dashboard/src/views/PipelinesList.tsx +111 -0
  101. package/dashboard/src/views/RunDetail.tsx +248 -0
  102. package/dashboard/src/views/Search.tsx +196 -0
  103. package/dashboard/stats.js +668 -0
  104. package/dashboard/tailwind.config.ts +43 -0
  105. package/dashboard/tree-stats.js +12 -0
  106. package/dashboard/tsconfig.json +25 -0
  107. package/dashboard/views.js +231 -0
  108. package/dashboard/vite.config.ts +34 -0
  109. package/drizzle.config.js +12 -0
  110. package/drizzle.config.ops.js +12 -0
  111. package/elevation.js +116 -0
  112. package/engine/admission-promotion-resume.js +127 -0
  113. package/engine/agent-dispatch.js +64 -0
  114. package/engine/child-resume-trigger.js +315 -0
  115. package/engine/executor-budget.js +87 -0
  116. package/engine/executor-cancel.js +83 -0
  117. package/engine/executor-errors.js +122 -0
  118. package/engine/executor-helpers.js +254 -0
  119. package/engine/executor-nodes.js +292 -0
  120. package/engine/executor-persist.js +212 -0
  121. package/engine/executor-subflow-children.js +275 -0
  122. package/engine/executor.js +1013 -0
  123. package/engine/global-concurrency.js +33 -0
  124. package/engine/loader.js +528 -0
  125. package/engine/needs-resolver.js +229 -0
  126. package/engine/pipelines-watcher.js +133 -0
  127. package/engine/result-replay.js +34 -0
  128. package/engine/revival-messages.js +11 -0
  129. package/engine/spawn-child.js +55 -0
  130. package/engine/wait-for-flow-settlement.js +109 -0
  131. package/events/catalog.js +26 -0
  132. package/events/emit.js +44 -0
  133. package/events/kinds.js +118 -0
  134. package/events/serve-ws.js +74 -0
  135. package/events/stream.js +35 -0
  136. package/events/ws-dialog.js +257 -0
  137. package/events/ws-frame.js +194 -0
  138. package/events/ws-run-events.js +70 -0
  139. package/events.js +32 -0
  140. package/gates/gate-resolver.js +576 -0
  141. package/gates/paused-flows.js +55 -0
  142. package/graphql/columns.js +67 -0
  143. package/graphql/schema.js +333 -0
  144. package/index.js +49 -0
  145. package/mcp/http.js +159 -0
  146. package/mcp/identity.js +94 -0
  147. package/mcp/stdio.js +80 -0
  148. package/mcp/tools.js +245 -0
  149. package/mcp/wire-ops.js +178 -0
  150. package/package.json +49 -4
  151. package/routes/bearer-auth.js +57 -0
  152. package/routes/discuss-audio.js +87 -0
  153. package/routes/discuss-component.js +39 -0
  154. package/routes/discuss-draft.js +159 -0
  155. package/routes/discuss-helpers.js +20 -0
  156. package/routes/discuss.js +848 -0
  157. package/routes/failures.js +104 -0
  158. package/routes/graphql.js +61 -0
  159. package/routes/health.js +54 -0
  160. package/routes/operator-discuss.js +193 -0
  161. package/routes/operator-resume.js +32 -0
  162. package/routes/operator-retry.js +301 -0
  163. package/routes/operator.js +539 -0
  164. package/routes/pipelines.js +118 -0
  165. package/routes/runs.js +1129 -0
  166. package/scripts/ci/import-check.mjs +50 -0
  167. package/scripts/link-core-self.mjs +31 -0
  168. package/scripts/with-guard.sh +24 -0
  169. package/server/app.js +503 -0
  170. package/server/registry.js +53 -0
  171. package/server/serve.js +163 -0
  172. package/state/admission-queue-store.js +325 -0
  173. package/state/attribution-registries.js +102 -0
  174. package/state/batch-writer.js +162 -0
  175. package/state/db-guard.js +63 -0
  176. package/state/db-health.js +27 -0
  177. package/state/db.js +122 -0
  178. package/state/discuss-store.js +299 -0
  179. package/state/failure-store.js +427 -0
  180. package/state/migrate.js +104 -0
  181. package/state/node-cost.js +67 -0
  182. package/state/node-executions.js +775 -0
  183. package/state/node-health-store.js +124 -0
  184. package/state/ops-merge.js +93 -0
  185. package/state/paths.js +146 -0
  186. package/state/pipeline-dirs.js +99 -0
  187. package/state/pipeline-registry.js +449 -0
  188. package/state/run-store.js +697 -0
  189. package/state/schema.js +438 -0
  190. package/state/schema.ops.js +44 -0
  191. package/state/session-index.js +177 -0
  192. package/state/session-keys.js +39 -0
  193. package/state/state-store.js +311 -0
  194. package/state/subflow-state.js +126 -0
  195. package/state/tool-handoff.js +169 -0
  196. package/telemetry/budget-alert.js +353 -0
  197. package/telemetry/cli.js +331 -0
  198. package/telemetry/grammar.js +119 -0
  199. package/telemetry/http-budget.js +132 -0
  200. package/telemetry/http-cost.js +670 -0
  201. package/telemetry/http-helpers.js +134 -0
  202. package/telemetry/http-tree.js +349 -0
  203. package/telemetry/http.js +44 -0
  204. package/telemetry/index.js +307 -0
  205. package/telemetry/ingest.js +134 -0
  206. package/telemetry/labels.js +115 -0
  207. package/telemetry/pricer.js +77 -0
  208. package/telemetry/resolver.js +314 -0
  209. package/telemetry/store.js +147 -0
  210. package/utils/run-patch.js +43 -0
@@ -0,0 +1,1742 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "c25c6ff7-b185-437b-9063-8a8c510e0e4e",
5
+ "prevId": "4a5f1bfe-4899-4c1b-b2f4-24fc63416ef6",
6
+ "tables": {
7
+ "discuss_state": {
8
+ "name": "discuss_state",
9
+ "columns": {
10
+ "flow_id": {
11
+ "name": "flow_id",
12
+ "type": "text",
13
+ "primaryKey": false,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "item_id": {
18
+ "name": "item_id",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false
23
+ },
24
+ "messages_json": {
25
+ "name": "messages_json",
26
+ "type": "text",
27
+ "primaryKey": false,
28
+ "notNull": true,
29
+ "autoincrement": false,
30
+ "default": "'[]'"
31
+ },
32
+ "turn_status": {
33
+ "name": "turn_status",
34
+ "type": "text",
35
+ "primaryKey": false,
36
+ "notNull": true,
37
+ "autoincrement": false,
38
+ "default": "'idle'"
39
+ },
40
+ "active_turn_id": {
41
+ "name": "active_turn_id",
42
+ "type": "text",
43
+ "primaryKey": false,
44
+ "notNull": false,
45
+ "autoincrement": false
46
+ },
47
+ "pending_json": {
48
+ "name": "pending_json",
49
+ "type": "text",
50
+ "primaryKey": false,
51
+ "notNull": false,
52
+ "autoincrement": false
53
+ },
54
+ "updated_at": {
55
+ "name": "updated_at",
56
+ "type": "integer",
57
+ "primaryKey": false,
58
+ "notNull": true,
59
+ "autoincrement": false
60
+ },
61
+ "components_json": {
62
+ "name": "components_json",
63
+ "type": "text",
64
+ "primaryKey": false,
65
+ "notNull": true,
66
+ "autoincrement": false,
67
+ "default": "'[]'"
68
+ }
69
+ },
70
+ "indexes": {
71
+ "idx_discuss_updated": {
72
+ "name": "idx_discuss_updated",
73
+ "columns": [
74
+ "updated_at"
75
+ ],
76
+ "isUnique": false
77
+ },
78
+ "idx_discuss_state_unique": {
79
+ "name": "idx_discuss_state_unique",
80
+ "columns": [
81
+ "flow_id",
82
+ "item_id"
83
+ ],
84
+ "isUnique": true
85
+ }
86
+ },
87
+ "foreignKeys": {
88
+ "discuss_state_flow_id_flow_runs_flow_id_fk": {
89
+ "name": "discuss_state_flow_id_flow_runs_flow_id_fk",
90
+ "tableFrom": "discuss_state",
91
+ "tableTo": "flow_runs",
92
+ "columnsFrom": [
93
+ "flow_id"
94
+ ],
95
+ "columnsTo": [
96
+ "flow_id"
97
+ ],
98
+ "onDelete": "cascade",
99
+ "onUpdate": "no action"
100
+ }
101
+ },
102
+ "compositePrimaryKeys": {},
103
+ "uniqueConstraints": {},
104
+ "checkConstraints": {}
105
+ },
106
+ "discuss_threads": {
107
+ "name": "discuss_threads",
108
+ "columns": {
109
+ "flow_id": {
110
+ "name": "flow_id",
111
+ "type": "text",
112
+ "primaryKey": false,
113
+ "notNull": true,
114
+ "autoincrement": false
115
+ },
116
+ "gate_node_id": {
117
+ "name": "gate_node_id",
118
+ "type": "text",
119
+ "primaryKey": false,
120
+ "notNull": true,
121
+ "autoincrement": false
122
+ },
123
+ "item_id": {
124
+ "name": "item_id",
125
+ "type": "text",
126
+ "primaryKey": false,
127
+ "notNull": true,
128
+ "autoincrement": false
129
+ },
130
+ "agent_id": {
131
+ "name": "agent_id",
132
+ "type": "text",
133
+ "primaryKey": false,
134
+ "notNull": false,
135
+ "autoincrement": false
136
+ },
137
+ "session_key": {
138
+ "name": "session_key",
139
+ "type": "text",
140
+ "primaryKey": false,
141
+ "notNull": true,
142
+ "autoincrement": false
143
+ },
144
+ "updated_at": {
145
+ "name": "updated_at",
146
+ "type": "integer",
147
+ "primaryKey": false,
148
+ "notNull": true,
149
+ "autoincrement": false
150
+ }
151
+ },
152
+ "indexes": {
153
+ "idx_discuss_threads_unique": {
154
+ "name": "idx_discuss_threads_unique",
155
+ "columns": [
156
+ "flow_id",
157
+ "gate_node_id",
158
+ "item_id"
159
+ ],
160
+ "isUnique": true
161
+ }
162
+ },
163
+ "foreignKeys": {
164
+ "discuss_threads_flow_id_flow_runs_flow_id_fk": {
165
+ "name": "discuss_threads_flow_id_flow_runs_flow_id_fk",
166
+ "tableFrom": "discuss_threads",
167
+ "tableTo": "flow_runs",
168
+ "columnsFrom": [
169
+ "flow_id"
170
+ ],
171
+ "columnsTo": [
172
+ "flow_id"
173
+ ],
174
+ "onDelete": "cascade",
175
+ "onUpdate": "no action"
176
+ }
177
+ },
178
+ "compositePrimaryKeys": {},
179
+ "uniqueConstraints": {},
180
+ "checkConstraints": {}
181
+ },
182
+ "failure_events": {
183
+ "name": "failure_events",
184
+ "columns": {
185
+ "id": {
186
+ "name": "id",
187
+ "type": "text",
188
+ "primaryKey": true,
189
+ "notNull": true,
190
+ "autoincrement": false
191
+ },
192
+ "flow_id": {
193
+ "name": "flow_id",
194
+ "type": "text",
195
+ "primaryKey": false,
196
+ "notNull": true,
197
+ "autoincrement": false
198
+ },
199
+ "failed_at": {
200
+ "name": "failed_at",
201
+ "type": "integer",
202
+ "primaryKey": false,
203
+ "notNull": true,
204
+ "autoincrement": false
205
+ },
206
+ "failure_summary": {
207
+ "name": "failure_summary",
208
+ "type": "text",
209
+ "primaryKey": false,
210
+ "notNull": true,
211
+ "autoincrement": false
212
+ },
213
+ "invocation_id": {
214
+ "name": "invocation_id",
215
+ "type": "text",
216
+ "primaryKey": false,
217
+ "notNull": false,
218
+ "autoincrement": false
219
+ },
220
+ "execution_id": {
221
+ "name": "execution_id",
222
+ "type": "text",
223
+ "primaryKey": false,
224
+ "notNull": false,
225
+ "autoincrement": false
226
+ },
227
+ "error_type": {
228
+ "name": "error_type",
229
+ "type": "text",
230
+ "primaryKey": false,
231
+ "notNull": false,
232
+ "autoincrement": false
233
+ }
234
+ },
235
+ "indexes": {
236
+ "idx_failures_flow": {
237
+ "name": "idx_failures_flow",
238
+ "columns": [
239
+ "flow_id"
240
+ ],
241
+ "isUnique": false
242
+ },
243
+ "idx_failures_failed_at": {
244
+ "name": "idx_failures_failed_at",
245
+ "columns": [
246
+ "\"failed_at\" desc"
247
+ ],
248
+ "isUnique": false
249
+ },
250
+ "idx_failures_invocation": {
251
+ "name": "idx_failures_invocation",
252
+ "columns": [
253
+ "invocation_id"
254
+ ],
255
+ "isUnique": false
256
+ },
257
+ "idx_failures_execution": {
258
+ "name": "idx_failures_execution",
259
+ "columns": [
260
+ "execution_id"
261
+ ],
262
+ "isUnique": true,
263
+ "where": "\"failure_events\".\"execution_id\" IS NOT NULL"
264
+ }
265
+ },
266
+ "foreignKeys": {
267
+ "failure_events_flow_id_flow_runs_flow_id_fk": {
268
+ "name": "failure_events_flow_id_flow_runs_flow_id_fk",
269
+ "tableFrom": "failure_events",
270
+ "tableTo": "flow_runs",
271
+ "columnsFrom": [
272
+ "flow_id"
273
+ ],
274
+ "columnsTo": [
275
+ "flow_id"
276
+ ],
277
+ "onDelete": "cascade",
278
+ "onUpdate": "no action"
279
+ },
280
+ "failure_events_invocation_id_flow_node_invocations_id_fk": {
281
+ "name": "failure_events_invocation_id_flow_node_invocations_id_fk",
282
+ "tableFrom": "failure_events",
283
+ "tableTo": "flow_node_invocations",
284
+ "columnsFrom": [
285
+ "invocation_id"
286
+ ],
287
+ "columnsTo": [
288
+ "id"
289
+ ],
290
+ "onDelete": "set null",
291
+ "onUpdate": "no action"
292
+ },
293
+ "failure_events_execution_id_flow_node_executions_id_fk": {
294
+ "name": "failure_events_execution_id_flow_node_executions_id_fk",
295
+ "tableFrom": "failure_events",
296
+ "tableTo": "flow_node_executions",
297
+ "columnsFrom": [
298
+ "execution_id"
299
+ ],
300
+ "columnsTo": [
301
+ "id"
302
+ ],
303
+ "onDelete": "set null",
304
+ "onUpdate": "no action"
305
+ }
306
+ },
307
+ "compositePrimaryKeys": {},
308
+ "uniqueConstraints": {},
309
+ "checkConstraints": {}
310
+ },
311
+ "flow_admission_queue": {
312
+ "name": "flow_admission_queue",
313
+ "columns": {
314
+ "id": {
315
+ "name": "id",
316
+ "type": "text",
317
+ "primaryKey": true,
318
+ "notNull": true,
319
+ "autoincrement": false
320
+ },
321
+ "kind": {
322
+ "name": "kind",
323
+ "type": "text",
324
+ "primaryKey": false,
325
+ "notNull": true,
326
+ "autoincrement": false
327
+ },
328
+ "flow_id": {
329
+ "name": "flow_id",
330
+ "type": "text",
331
+ "primaryKey": false,
332
+ "notNull": true,
333
+ "autoincrement": false
334
+ },
335
+ "node_id": {
336
+ "name": "node_id",
337
+ "type": "text",
338
+ "primaryKey": false,
339
+ "notNull": false,
340
+ "autoincrement": false
341
+ },
342
+ "status": {
343
+ "name": "status",
344
+ "type": "text",
345
+ "primaryKey": false,
346
+ "notNull": true,
347
+ "autoincrement": false
348
+ },
349
+ "created_at": {
350
+ "name": "created_at",
351
+ "type": "integer",
352
+ "primaryKey": false,
353
+ "notNull": true,
354
+ "autoincrement": false
355
+ },
356
+ "admitted_at": {
357
+ "name": "admitted_at",
358
+ "type": "integer",
359
+ "primaryKey": false,
360
+ "notNull": false,
361
+ "autoincrement": false
362
+ }
363
+ },
364
+ "indexes": {
365
+ "idx_admission_status": {
366
+ "name": "idx_admission_status",
367
+ "columns": [
368
+ "status"
369
+ ],
370
+ "isUnique": false
371
+ },
372
+ "idx_admission_flow": {
373
+ "name": "idx_admission_flow",
374
+ "columns": [
375
+ "flow_id"
376
+ ],
377
+ "isUnique": false
378
+ },
379
+ "idx_admission_status_created": {
380
+ "name": "idx_admission_status_created",
381
+ "columns": [
382
+ "status",
383
+ "created_at"
384
+ ],
385
+ "isUnique": false
386
+ }
387
+ },
388
+ "foreignKeys": {
389
+ "flow_admission_queue_flow_id_flow_runs_flow_id_fk": {
390
+ "name": "flow_admission_queue_flow_id_flow_runs_flow_id_fk",
391
+ "tableFrom": "flow_admission_queue",
392
+ "tableTo": "flow_runs",
393
+ "columnsFrom": [
394
+ "flow_id"
395
+ ],
396
+ "columnsTo": [
397
+ "flow_id"
398
+ ],
399
+ "onDelete": "cascade",
400
+ "onUpdate": "no action"
401
+ }
402
+ },
403
+ "compositePrimaryKeys": {},
404
+ "uniqueConstraints": {},
405
+ "checkConstraints": {}
406
+ },
407
+ "flow_events": {
408
+ "name": "flow_events",
409
+ "columns": {
410
+ "id": {
411
+ "name": "id",
412
+ "type": "text",
413
+ "primaryKey": true,
414
+ "notNull": true,
415
+ "autoincrement": false
416
+ },
417
+ "flow_id": {
418
+ "name": "flow_id",
419
+ "type": "text",
420
+ "primaryKey": false,
421
+ "notNull": true,
422
+ "autoincrement": false
423
+ },
424
+ "event_type": {
425
+ "name": "event_type",
426
+ "type": "text",
427
+ "primaryKey": false,
428
+ "notNull": true,
429
+ "autoincrement": false
430
+ },
431
+ "prev_step": {
432
+ "name": "prev_step",
433
+ "type": "text",
434
+ "primaryKey": false,
435
+ "notNull": false,
436
+ "autoincrement": false
437
+ },
438
+ "curr_step": {
439
+ "name": "curr_step",
440
+ "type": "text",
441
+ "primaryKey": false,
442
+ "notNull": false,
443
+ "autoincrement": false
444
+ },
445
+ "prev_status": {
446
+ "name": "prev_status",
447
+ "type": "text",
448
+ "primaryKey": false,
449
+ "notNull": false,
450
+ "autoincrement": false
451
+ },
452
+ "curr_status": {
453
+ "name": "curr_status",
454
+ "type": "text",
455
+ "primaryKey": false,
456
+ "notNull": false,
457
+ "autoincrement": false
458
+ },
459
+ "wait_kind": {
460
+ "name": "wait_kind",
461
+ "type": "text",
462
+ "primaryKey": false,
463
+ "notNull": false,
464
+ "autoincrement": false
465
+ },
466
+ "occurred_at": {
467
+ "name": "occurred_at",
468
+ "type": "integer",
469
+ "primaryKey": false,
470
+ "notNull": true,
471
+ "autoincrement": false
472
+ }
473
+ },
474
+ "indexes": {
475
+ "idx_flow_events_flow_id": {
476
+ "name": "idx_flow_events_flow_id",
477
+ "columns": [
478
+ "flow_id"
479
+ ],
480
+ "isUnique": false
481
+ },
482
+ "idx_flow_events_occurred_at": {
483
+ "name": "idx_flow_events_occurred_at",
484
+ "columns": [
485
+ "occurred_at"
486
+ ],
487
+ "isUnique": false
488
+ }
489
+ },
490
+ "foreignKeys": {
491
+ "flow_events_flow_id_flow_runs_flow_id_fk": {
492
+ "name": "flow_events_flow_id_flow_runs_flow_id_fk",
493
+ "tableFrom": "flow_events",
494
+ "tableTo": "flow_runs",
495
+ "columnsFrom": [
496
+ "flow_id"
497
+ ],
498
+ "columnsTo": [
499
+ "flow_id"
500
+ ],
501
+ "onDelete": "cascade",
502
+ "onUpdate": "no action"
503
+ }
504
+ },
505
+ "compositePrimaryKeys": {},
506
+ "uniqueConstraints": {},
507
+ "checkConstraints": {}
508
+ },
509
+ "flow_node_executions": {
510
+ "name": "flow_node_executions",
511
+ "columns": {
512
+ "id": {
513
+ "name": "id",
514
+ "type": "text",
515
+ "primaryKey": true,
516
+ "notNull": true,
517
+ "autoincrement": false
518
+ },
519
+ "invocation_id": {
520
+ "name": "invocation_id",
521
+ "type": "text",
522
+ "primaryKey": false,
523
+ "notNull": true,
524
+ "autoincrement": false
525
+ },
526
+ "entered_at": {
527
+ "name": "entered_at",
528
+ "type": "integer",
529
+ "primaryKey": false,
530
+ "notNull": true,
531
+ "autoincrement": false
532
+ },
533
+ "exited_at": {
534
+ "name": "exited_at",
535
+ "type": "integer",
536
+ "primaryKey": false,
537
+ "notNull": true,
538
+ "autoincrement": false
539
+ },
540
+ "kind": {
541
+ "name": "kind",
542
+ "type": "text",
543
+ "primaryKey": false,
544
+ "notNull": true,
545
+ "autoincrement": false,
546
+ "default": "'legacy'"
547
+ }
548
+ },
549
+ "indexes": {
550
+ "idx_fne_invocation": {
551
+ "name": "idx_fne_invocation",
552
+ "columns": [
553
+ "invocation_id"
554
+ ],
555
+ "isUnique": false
556
+ },
557
+ "idx_fne_exited": {
558
+ "name": "idx_fne_exited",
559
+ "columns": [
560
+ "exited_at"
561
+ ],
562
+ "isUnique": false
563
+ }
564
+ },
565
+ "foreignKeys": {
566
+ "flow_node_executions_invocation_id_flow_node_invocations_id_fk": {
567
+ "name": "flow_node_executions_invocation_id_flow_node_invocations_id_fk",
568
+ "tableFrom": "flow_node_executions",
569
+ "tableTo": "flow_node_invocations",
570
+ "columnsFrom": [
571
+ "invocation_id"
572
+ ],
573
+ "columnsTo": [
574
+ "id"
575
+ ],
576
+ "onDelete": "cascade",
577
+ "onUpdate": "no action"
578
+ }
579
+ },
580
+ "compositePrimaryKeys": {},
581
+ "uniqueConstraints": {},
582
+ "checkConstraints": {}
583
+ },
584
+ "flow_node_invocations": {
585
+ "name": "flow_node_invocations",
586
+ "columns": {
587
+ "id": {
588
+ "name": "id",
589
+ "type": "text",
590
+ "primaryKey": true,
591
+ "notNull": true,
592
+ "autoincrement": false
593
+ },
594
+ "flow_id": {
595
+ "name": "flow_id",
596
+ "type": "text",
597
+ "primaryKey": false,
598
+ "notNull": true,
599
+ "autoincrement": false
600
+ },
601
+ "pipeline_id": {
602
+ "name": "pipeline_id",
603
+ "type": "text",
604
+ "primaryKey": false,
605
+ "notNull": false,
606
+ "autoincrement": false
607
+ },
608
+ "node_id": {
609
+ "name": "node_id",
610
+ "type": "text",
611
+ "primaryKey": false,
612
+ "notNull": true,
613
+ "autoincrement": false
614
+ },
615
+ "subflow_key": {
616
+ "name": "subflow_key",
617
+ "type": "text",
618
+ "primaryKey": false,
619
+ "notNull": false,
620
+ "autoincrement": false
621
+ },
622
+ "visit_seq": {
623
+ "name": "visit_seq",
624
+ "type": "integer",
625
+ "primaryKey": false,
626
+ "notNull": true,
627
+ "autoincrement": false,
628
+ "default": 1
629
+ },
630
+ "invoked_at": {
631
+ "name": "invoked_at",
632
+ "type": "integer",
633
+ "primaryKey": false,
634
+ "notNull": true,
635
+ "autoincrement": false
636
+ },
637
+ "result_json": {
638
+ "name": "result_json",
639
+ "type": "text",
640
+ "primaryKey": false,
641
+ "notNull": false,
642
+ "autoincrement": false
643
+ },
644
+ "result_written_at": {
645
+ "name": "result_written_at",
646
+ "type": "integer",
647
+ "primaryKey": false,
648
+ "notNull": false,
649
+ "autoincrement": false
650
+ },
651
+ "result_too_large_bytes": {
652
+ "name": "result_too_large_bytes",
653
+ "type": "integer",
654
+ "primaryKey": false,
655
+ "notNull": false,
656
+ "autoincrement": false
657
+ }
658
+ },
659
+ "indexes": {
660
+ "idx_invocations_flow": {
661
+ "name": "idx_invocations_flow",
662
+ "columns": [
663
+ "flow_id"
664
+ ],
665
+ "isUnique": false
666
+ },
667
+ "idx_invocations_node_subflow": {
668
+ "name": "idx_invocations_node_subflow",
669
+ "columns": [
670
+ "node_id",
671
+ "subflow_key"
672
+ ],
673
+ "isUnique": false
674
+ },
675
+ "idx_invocations_pipe_node": {
676
+ "name": "idx_invocations_pipe_node",
677
+ "columns": [
678
+ "pipeline_id",
679
+ "node_id"
680
+ ],
681
+ "isUnique": false
682
+ }
683
+ },
684
+ "foreignKeys": {
685
+ "flow_node_invocations_flow_id_flow_runs_flow_id_fk": {
686
+ "name": "flow_node_invocations_flow_id_flow_runs_flow_id_fk",
687
+ "tableFrom": "flow_node_invocations",
688
+ "tableTo": "flow_runs",
689
+ "columnsFrom": [
690
+ "flow_id"
691
+ ],
692
+ "columnsTo": [
693
+ "flow_id"
694
+ ],
695
+ "onDelete": "cascade",
696
+ "onUpdate": "no action"
697
+ }
698
+ },
699
+ "compositePrimaryKeys": {},
700
+ "uniqueConstraints": {},
701
+ "checkConstraints": {}
702
+ },
703
+ "flow_runs": {
704
+ "name": "flow_runs",
705
+ "columns": {
706
+ "flow_id": {
707
+ "name": "flow_id",
708
+ "type": "text",
709
+ "primaryKey": true,
710
+ "notNull": true,
711
+ "autoincrement": false
712
+ },
713
+ "owner_key": {
714
+ "name": "owner_key",
715
+ "type": "text",
716
+ "primaryKey": false,
717
+ "notNull": true,
718
+ "autoincrement": false,
719
+ "default": "''"
720
+ },
721
+ "revision": {
722
+ "name": "revision",
723
+ "type": "integer",
724
+ "primaryKey": false,
725
+ "notNull": true,
726
+ "autoincrement": false,
727
+ "default": 0
728
+ },
729
+ "status": {
730
+ "name": "status",
731
+ "type": "text",
732
+ "primaryKey": false,
733
+ "notNull": true,
734
+ "autoincrement": false
735
+ },
736
+ "last_step": {
737
+ "name": "last_step",
738
+ "type": "text",
739
+ "primaryKey": false,
740
+ "notNull": false,
741
+ "autoincrement": false
742
+ },
743
+ "status_reason": {
744
+ "name": "status_reason",
745
+ "type": "text",
746
+ "primaryKey": false,
747
+ "notNull": false,
748
+ "autoincrement": false
749
+ },
750
+ "state_json": {
751
+ "name": "state_json",
752
+ "type": "text",
753
+ "primaryKey": false,
754
+ "notNull": true,
755
+ "autoincrement": false,
756
+ "default": "'{}'"
757
+ },
758
+ "wait_json": {
759
+ "name": "wait_json",
760
+ "type": "text",
761
+ "primaryKey": false,
762
+ "notNull": false,
763
+ "autoincrement": false
764
+ },
765
+ "cancel_requested_at": {
766
+ "name": "cancel_requested_at",
767
+ "type": "integer",
768
+ "primaryKey": false,
769
+ "notNull": false,
770
+ "autoincrement": false
771
+ },
772
+ "created_at": {
773
+ "name": "created_at",
774
+ "type": "integer",
775
+ "primaryKey": false,
776
+ "notNull": true,
777
+ "autoincrement": false
778
+ },
779
+ "updated_at": {
780
+ "name": "updated_at",
781
+ "type": "integer",
782
+ "primaryKey": false,
783
+ "notNull": true,
784
+ "autoincrement": false
785
+ },
786
+ "ended_at": {
787
+ "name": "ended_at",
788
+ "type": "integer",
789
+ "primaryKey": false,
790
+ "notNull": false,
791
+ "autoincrement": false
792
+ },
793
+ "parent_invocation_id": {
794
+ "name": "parent_invocation_id",
795
+ "type": "text",
796
+ "primaryKey": false,
797
+ "notNull": false,
798
+ "autoincrement": false
799
+ },
800
+ "pipeline_id": {
801
+ "name": "pipeline_id",
802
+ "type": "text",
803
+ "primaryKey": false,
804
+ "notNull": false,
805
+ "autoincrement": false
806
+ }
807
+ },
808
+ "indexes": {
809
+ "idx_pfr_status": {
810
+ "name": "idx_pfr_status",
811
+ "columns": [
812
+ "status"
813
+ ],
814
+ "isUnique": false,
815
+ "where": "\"flow_runs\".\"ended_at\" IS NULL"
816
+ },
817
+ "idx_pfr_updated": {
818
+ "name": "idx_pfr_updated",
819
+ "columns": [
820
+ "\"updated_at\" desc"
821
+ ],
822
+ "isUnique": false
823
+ },
824
+ "idx_pfr_created": {
825
+ "name": "idx_pfr_created",
826
+ "columns": [
827
+ "\"created_at\" desc"
828
+ ],
829
+ "isUnique": false
830
+ },
831
+ "idx_pfr_parent_invocation": {
832
+ "name": "idx_pfr_parent_invocation",
833
+ "columns": [
834
+ "parent_invocation_id"
835
+ ],
836
+ "isUnique": true,
837
+ "where": "\"flow_runs\".\"parent_invocation_id\" IS NOT NULL"
838
+ },
839
+ "idx_flow_runs_pipeline_id": {
840
+ "name": "idx_flow_runs_pipeline_id",
841
+ "columns": [
842
+ "pipeline_id"
843
+ ],
844
+ "isUnique": false
845
+ }
846
+ },
847
+ "foreignKeys": {
848
+ "flow_runs_parent_invocation_id_flow_node_invocations_id_fk": {
849
+ "name": "flow_runs_parent_invocation_id_flow_node_invocations_id_fk",
850
+ "tableFrom": "flow_runs",
851
+ "tableTo": "flow_node_invocations",
852
+ "columnsFrom": [
853
+ "parent_invocation_id"
854
+ ],
855
+ "columnsTo": [
856
+ "id"
857
+ ],
858
+ "onDelete": "set null",
859
+ "onUpdate": "no action"
860
+ },
861
+ "flow_runs_pipeline_id_pipelines_id_fk": {
862
+ "name": "flow_runs_pipeline_id_pipelines_id_fk",
863
+ "tableFrom": "flow_runs",
864
+ "tableTo": "pipelines",
865
+ "columnsFrom": [
866
+ "pipeline_id"
867
+ ],
868
+ "columnsTo": [
869
+ "id"
870
+ ],
871
+ "onDelete": "set null",
872
+ "onUpdate": "no action"
873
+ }
874
+ },
875
+ "compositePrimaryKeys": {},
876
+ "uniqueConstraints": {},
877
+ "checkConstraints": {}
878
+ },
879
+ "flow_sessions": {
880
+ "name": "flow_sessions",
881
+ "columns": {
882
+ "id": {
883
+ "name": "id",
884
+ "type": "text",
885
+ "primaryKey": true,
886
+ "notNull": true,
887
+ "autoincrement": false
888
+ },
889
+ "flow_id": {
890
+ "name": "flow_id",
891
+ "type": "text",
892
+ "primaryKey": false,
893
+ "notNull": true,
894
+ "autoincrement": false
895
+ },
896
+ "session_key": {
897
+ "name": "session_key",
898
+ "type": "text",
899
+ "primaryKey": false,
900
+ "notNull": true,
901
+ "autoincrement": false
902
+ },
903
+ "node_id": {
904
+ "name": "node_id",
905
+ "type": "text",
906
+ "primaryKey": false,
907
+ "notNull": false,
908
+ "autoincrement": false
909
+ },
910
+ "branch_item_id": {
911
+ "name": "branch_item_id",
912
+ "type": "text",
913
+ "primaryKey": false,
914
+ "notNull": false,
915
+ "autoincrement": false
916
+ },
917
+ "spawned_at": {
918
+ "name": "spawned_at",
919
+ "type": "integer",
920
+ "primaryKey": false,
921
+ "notNull": true,
922
+ "autoincrement": false
923
+ }
924
+ },
925
+ "indexes": {
926
+ "idx_flow_sessions_flow_id": {
927
+ "name": "idx_flow_sessions_flow_id",
928
+ "columns": [
929
+ "flow_id"
930
+ ],
931
+ "isUnique": false
932
+ },
933
+ "idx_flow_sessions_uniq": {
934
+ "name": "idx_flow_sessions_uniq",
935
+ "columns": [
936
+ "flow_id",
937
+ "session_key"
938
+ ],
939
+ "isUnique": true
940
+ }
941
+ },
942
+ "foreignKeys": {
943
+ "flow_sessions_flow_id_flow_runs_flow_id_fk": {
944
+ "name": "flow_sessions_flow_id_flow_runs_flow_id_fk",
945
+ "tableFrom": "flow_sessions",
946
+ "tableTo": "flow_runs",
947
+ "columnsFrom": [
948
+ "flow_id"
949
+ ],
950
+ "columnsTo": [
951
+ "flow_id"
952
+ ],
953
+ "onDelete": "cascade",
954
+ "onUpdate": "no action"
955
+ }
956
+ },
957
+ "compositePrimaryKeys": {},
958
+ "uniqueConstraints": {},
959
+ "checkConstraints": {}
960
+ },
961
+ "gate_records": {
962
+ "name": "gate_records",
963
+ "columns": {
964
+ "flow_id": {
965
+ "name": "flow_id",
966
+ "type": "text",
967
+ "primaryKey": false,
968
+ "notNull": true,
969
+ "autoincrement": false
970
+ },
971
+ "node_id": {
972
+ "name": "node_id",
973
+ "type": "text",
974
+ "primaryKey": false,
975
+ "notNull": true,
976
+ "autoincrement": false
977
+ },
978
+ "record_json": {
979
+ "name": "record_json",
980
+ "type": "text",
981
+ "primaryKey": false,
982
+ "notNull": true,
983
+ "autoincrement": false
984
+ },
985
+ "updated_at": {
986
+ "name": "updated_at",
987
+ "type": "integer",
988
+ "primaryKey": false,
989
+ "notNull": true,
990
+ "autoincrement": false
991
+ }
992
+ },
993
+ "indexes": {},
994
+ "foreignKeys": {
995
+ "gate_records_flow_id_flow_runs_flow_id_fk": {
996
+ "name": "gate_records_flow_id_flow_runs_flow_id_fk",
997
+ "tableFrom": "gate_records",
998
+ "tableTo": "flow_runs",
999
+ "columnsFrom": [
1000
+ "flow_id"
1001
+ ],
1002
+ "columnsTo": [
1003
+ "flow_id"
1004
+ ],
1005
+ "onDelete": "cascade",
1006
+ "onUpdate": "no action"
1007
+ }
1008
+ },
1009
+ "compositePrimaryKeys": {
1010
+ "gate_records_flow_id_node_id_pk": {
1011
+ "columns": [
1012
+ "flow_id",
1013
+ "node_id"
1014
+ ],
1015
+ "name": "gate_records_flow_id_node_id_pk"
1016
+ }
1017
+ },
1018
+ "uniqueConstraints": {},
1019
+ "checkConstraints": {}
1020
+ },
1021
+ "model_health": {
1022
+ "name": "model_health",
1023
+ "columns": {
1024
+ "id": {
1025
+ "name": "id",
1026
+ "type": "text",
1027
+ "primaryKey": true,
1028
+ "notNull": true,
1029
+ "autoincrement": false
1030
+ },
1031
+ "ref": {
1032
+ "name": "ref",
1033
+ "type": "text",
1034
+ "primaryKey": false,
1035
+ "notNull": true,
1036
+ "autoincrement": false
1037
+ },
1038
+ "status": {
1039
+ "name": "status",
1040
+ "type": "text",
1041
+ "primaryKey": false,
1042
+ "notNull": true,
1043
+ "autoincrement": false
1044
+ },
1045
+ "reason": {
1046
+ "name": "reason",
1047
+ "type": "text",
1048
+ "primaryKey": false,
1049
+ "notNull": true,
1050
+ "autoincrement": false
1051
+ },
1052
+ "down_since": {
1053
+ "name": "down_since",
1054
+ "type": "integer",
1055
+ "primaryKey": false,
1056
+ "notNull": true,
1057
+ "autoincrement": false
1058
+ },
1059
+ "until_ms": {
1060
+ "name": "until_ms",
1061
+ "type": "integer",
1062
+ "primaryKey": false,
1063
+ "notNull": false,
1064
+ "autoincrement": false
1065
+ },
1066
+ "probing": {
1067
+ "name": "probing",
1068
+ "type": "integer",
1069
+ "primaryKey": false,
1070
+ "notNull": true,
1071
+ "autoincrement": false,
1072
+ "default": 0
1073
+ },
1074
+ "strike_level": {
1075
+ "name": "strike_level",
1076
+ "type": "integer",
1077
+ "primaryKey": false,
1078
+ "notNull": true,
1079
+ "autoincrement": false,
1080
+ "default": 0
1081
+ },
1082
+ "strike_ended_at": {
1083
+ "name": "strike_ended_at",
1084
+ "type": "integer",
1085
+ "primaryKey": false,
1086
+ "notNull": false,
1087
+ "autoincrement": false
1088
+ },
1089
+ "created_at": {
1090
+ "name": "created_at",
1091
+ "type": "integer",
1092
+ "primaryKey": false,
1093
+ "notNull": true,
1094
+ "autoincrement": false
1095
+ },
1096
+ "updated_at": {
1097
+ "name": "updated_at",
1098
+ "type": "integer",
1099
+ "primaryKey": false,
1100
+ "notNull": true,
1101
+ "autoincrement": false
1102
+ }
1103
+ },
1104
+ "indexes": {},
1105
+ "foreignKeys": {},
1106
+ "compositePrimaryKeys": {},
1107
+ "uniqueConstraints": {},
1108
+ "checkConstraints": {}
1109
+ },
1110
+ "node_health": {
1111
+ "name": "node_health",
1112
+ "columns": {
1113
+ "id": {
1114
+ "name": "id",
1115
+ "type": "text",
1116
+ "primaryKey": true,
1117
+ "notNull": true,
1118
+ "autoincrement": false
1119
+ },
1120
+ "pipeline_id": {
1121
+ "name": "pipeline_id",
1122
+ "type": "text",
1123
+ "primaryKey": false,
1124
+ "notNull": true,
1125
+ "autoincrement": false
1126
+ },
1127
+ "node_id": {
1128
+ "name": "node_id",
1129
+ "type": "text",
1130
+ "primaryKey": false,
1131
+ "notNull": true,
1132
+ "autoincrement": false
1133
+ },
1134
+ "status": {
1135
+ "name": "status",
1136
+ "type": "text",
1137
+ "primaryKey": false,
1138
+ "notNull": true,
1139
+ "autoincrement": false
1140
+ },
1141
+ "reason": {
1142
+ "name": "reason",
1143
+ "type": "text",
1144
+ "primaryKey": false,
1145
+ "notNull": true,
1146
+ "autoincrement": false
1147
+ },
1148
+ "blocked_by_flow_id": {
1149
+ "name": "blocked_by_flow_id",
1150
+ "type": "text",
1151
+ "primaryKey": false,
1152
+ "notNull": false,
1153
+ "autoincrement": false
1154
+ },
1155
+ "resolved_via": {
1156
+ "name": "resolved_via",
1157
+ "type": "text",
1158
+ "primaryKey": false,
1159
+ "notNull": false,
1160
+ "autoincrement": false
1161
+ },
1162
+ "created_at": {
1163
+ "name": "created_at",
1164
+ "type": "integer",
1165
+ "primaryKey": false,
1166
+ "notNull": true,
1167
+ "autoincrement": false
1168
+ },
1169
+ "updated_at": {
1170
+ "name": "updated_at",
1171
+ "type": "integer",
1172
+ "primaryKey": false,
1173
+ "notNull": true,
1174
+ "autoincrement": false
1175
+ },
1176
+ "ended_at": {
1177
+ "name": "ended_at",
1178
+ "type": "integer",
1179
+ "primaryKey": false,
1180
+ "notNull": false,
1181
+ "autoincrement": false
1182
+ }
1183
+ },
1184
+ "indexes": {
1185
+ "idx_node_health_one_active": {
1186
+ "name": "idx_node_health_one_active",
1187
+ "columns": [
1188
+ "pipeline_id",
1189
+ "node_id"
1190
+ ],
1191
+ "isUnique": true,
1192
+ "where": "\"node_health\".\"status\" = 'blocked'"
1193
+ },
1194
+ "idx_node_health_pipeline": {
1195
+ "name": "idx_node_health_pipeline",
1196
+ "columns": [
1197
+ "pipeline_id",
1198
+ "status"
1199
+ ],
1200
+ "isUnique": false
1201
+ }
1202
+ },
1203
+ "foreignKeys": {
1204
+ "node_health_pipeline_id_pipelines_id_fk": {
1205
+ "name": "node_health_pipeline_id_pipelines_id_fk",
1206
+ "tableFrom": "node_health",
1207
+ "tableTo": "pipelines",
1208
+ "columnsFrom": [
1209
+ "pipeline_id"
1210
+ ],
1211
+ "columnsTo": [
1212
+ "id"
1213
+ ],
1214
+ "onDelete": "restrict",
1215
+ "onUpdate": "no action"
1216
+ },
1217
+ "node_health_blocked_by_flow_id_flow_runs_flow_id_fk": {
1218
+ "name": "node_health_blocked_by_flow_id_flow_runs_flow_id_fk",
1219
+ "tableFrom": "node_health",
1220
+ "tableTo": "flow_runs",
1221
+ "columnsFrom": [
1222
+ "blocked_by_flow_id"
1223
+ ],
1224
+ "columnsTo": [
1225
+ "flow_id"
1226
+ ],
1227
+ "onDelete": "set null",
1228
+ "onUpdate": "no action"
1229
+ }
1230
+ },
1231
+ "compositePrimaryKeys": {},
1232
+ "uniqueConstraints": {},
1233
+ "checkConstraints": {}
1234
+ },
1235
+ "pipeline_dirs": {
1236
+ "name": "pipeline_dirs",
1237
+ "columns": {
1238
+ "harness": {
1239
+ "name": "harness",
1240
+ "type": "text",
1241
+ "primaryKey": true,
1242
+ "notNull": true,
1243
+ "autoincrement": false
1244
+ },
1245
+ "path": {
1246
+ "name": "path",
1247
+ "type": "text",
1248
+ "primaryKey": false,
1249
+ "notNull": true,
1250
+ "autoincrement": false
1251
+ },
1252
+ "created_at": {
1253
+ "name": "created_at",
1254
+ "type": "integer",
1255
+ "primaryKey": false,
1256
+ "notNull": true,
1257
+ "autoincrement": false
1258
+ }
1259
+ },
1260
+ "indexes": {},
1261
+ "foreignKeys": {
1262
+ "pipeline_dirs_harness_harnesses_id_fk": {
1263
+ "name": "pipeline_dirs_harness_harnesses_id_fk",
1264
+ "tableFrom": "pipeline_dirs",
1265
+ "tableTo": "harnesses",
1266
+ "columnsFrom": [
1267
+ "harness"
1268
+ ],
1269
+ "columnsTo": [
1270
+ "id"
1271
+ ],
1272
+ "onDelete": "cascade",
1273
+ "onUpdate": "no action"
1274
+ }
1275
+ },
1276
+ "compositePrimaryKeys": {},
1277
+ "uniqueConstraints": {},
1278
+ "checkConstraints": {}
1279
+ },
1280
+ "pipeline_node_versions": {
1281
+ "name": "pipeline_node_versions",
1282
+ "columns": {
1283
+ "id": {
1284
+ "name": "id",
1285
+ "type": "text",
1286
+ "primaryKey": true,
1287
+ "notNull": true,
1288
+ "autoincrement": false
1289
+ },
1290
+ "pipeline_version_id": {
1291
+ "name": "pipeline_version_id",
1292
+ "type": "text",
1293
+ "primaryKey": false,
1294
+ "notNull": true,
1295
+ "autoincrement": false
1296
+ },
1297
+ "pipeline_id": {
1298
+ "name": "pipeline_id",
1299
+ "type": "text",
1300
+ "primaryKey": false,
1301
+ "notNull": true,
1302
+ "autoincrement": false
1303
+ },
1304
+ "node_name": {
1305
+ "name": "node_name",
1306
+ "type": "text",
1307
+ "primaryKey": false,
1308
+ "notNull": true,
1309
+ "autoincrement": false
1310
+ },
1311
+ "node_id": {
1312
+ "name": "node_id",
1313
+ "type": "text",
1314
+ "primaryKey": false,
1315
+ "notNull": false,
1316
+ "autoincrement": false
1317
+ },
1318
+ "kind": {
1319
+ "name": "kind",
1320
+ "type": "text",
1321
+ "primaryKey": false,
1322
+ "notNull": true,
1323
+ "autoincrement": false
1324
+ },
1325
+ "agent": {
1326
+ "name": "agent",
1327
+ "type": "text",
1328
+ "primaryKey": false,
1329
+ "notNull": false,
1330
+ "autoincrement": false
1331
+ },
1332
+ "mode": {
1333
+ "name": "mode",
1334
+ "type": "text",
1335
+ "primaryKey": false,
1336
+ "notNull": false,
1337
+ "autoincrement": false
1338
+ },
1339
+ "content_hash": {
1340
+ "name": "content_hash",
1341
+ "type": "text",
1342
+ "primaryKey": false,
1343
+ "notNull": true,
1344
+ "autoincrement": false
1345
+ },
1346
+ "registered_at": {
1347
+ "name": "registered_at",
1348
+ "type": "integer",
1349
+ "primaryKey": false,
1350
+ "notNull": true,
1351
+ "autoincrement": false
1352
+ },
1353
+ "retired_at": {
1354
+ "name": "retired_at",
1355
+ "type": "integer",
1356
+ "primaryKey": false,
1357
+ "notNull": false,
1358
+ "autoincrement": false
1359
+ }
1360
+ },
1361
+ "indexes": {
1362
+ "idx_pnv_lookup": {
1363
+ "name": "idx_pnv_lookup",
1364
+ "columns": [
1365
+ "pipeline_id",
1366
+ "node_name",
1367
+ "registered_at"
1368
+ ],
1369
+ "isUnique": false
1370
+ },
1371
+ "idx_pnv_active": {
1372
+ "name": "idx_pnv_active",
1373
+ "columns": [
1374
+ "pipeline_id",
1375
+ "node_name"
1376
+ ],
1377
+ "isUnique": true,
1378
+ "where": "\"pipeline_node_versions\".\"retired_at\" IS NULL"
1379
+ }
1380
+ },
1381
+ "foreignKeys": {
1382
+ "pipeline_node_versions_pipeline_version_id_pipeline_versions_id_fk": {
1383
+ "name": "pipeline_node_versions_pipeline_version_id_pipeline_versions_id_fk",
1384
+ "tableFrom": "pipeline_node_versions",
1385
+ "tableTo": "pipeline_versions",
1386
+ "columnsFrom": [
1387
+ "pipeline_version_id"
1388
+ ],
1389
+ "columnsTo": [
1390
+ "id"
1391
+ ],
1392
+ "onDelete": "cascade",
1393
+ "onUpdate": "no action"
1394
+ },
1395
+ "pipeline_node_versions_pipeline_id_pipelines_id_fk": {
1396
+ "name": "pipeline_node_versions_pipeline_id_pipelines_id_fk",
1397
+ "tableFrom": "pipeline_node_versions",
1398
+ "tableTo": "pipelines",
1399
+ "columnsFrom": [
1400
+ "pipeline_id"
1401
+ ],
1402
+ "columnsTo": [
1403
+ "id"
1404
+ ],
1405
+ "onDelete": "restrict",
1406
+ "onUpdate": "no action"
1407
+ }
1408
+ },
1409
+ "compositePrimaryKeys": {},
1410
+ "uniqueConstraints": {},
1411
+ "checkConstraints": {}
1412
+ },
1413
+ "pipeline_versions": {
1414
+ "name": "pipeline_versions",
1415
+ "columns": {
1416
+ "id": {
1417
+ "name": "id",
1418
+ "type": "text",
1419
+ "primaryKey": true,
1420
+ "notNull": true,
1421
+ "autoincrement": false
1422
+ },
1423
+ "pipeline_id": {
1424
+ "name": "pipeline_id",
1425
+ "type": "text",
1426
+ "primaryKey": false,
1427
+ "notNull": true,
1428
+ "autoincrement": false
1429
+ },
1430
+ "kind": {
1431
+ "name": "kind",
1432
+ "type": "text",
1433
+ "primaryKey": false,
1434
+ "notNull": false,
1435
+ "autoincrement": false
1436
+ },
1437
+ "allow_concurrent": {
1438
+ "name": "allow_concurrent",
1439
+ "type": "text",
1440
+ "primaryKey": false,
1441
+ "notNull": false,
1442
+ "autoincrement": false
1443
+ },
1444
+ "is_synthetic": {
1445
+ "name": "is_synthetic",
1446
+ "type": "integer",
1447
+ "primaryKey": false,
1448
+ "notNull": true,
1449
+ "autoincrement": false
1450
+ },
1451
+ "parent_pipeline_id": {
1452
+ "name": "parent_pipeline_id",
1453
+ "type": "text",
1454
+ "primaryKey": false,
1455
+ "notNull": false,
1456
+ "autoincrement": false
1457
+ },
1458
+ "source_path": {
1459
+ "name": "source_path",
1460
+ "type": "text",
1461
+ "primaryKey": false,
1462
+ "notNull": false,
1463
+ "autoincrement": false
1464
+ },
1465
+ "content_hash": {
1466
+ "name": "content_hash",
1467
+ "type": "text",
1468
+ "primaryKey": false,
1469
+ "notNull": true,
1470
+ "autoincrement": false
1471
+ },
1472
+ "registered_at": {
1473
+ "name": "registered_at",
1474
+ "type": "integer",
1475
+ "primaryKey": false,
1476
+ "notNull": true,
1477
+ "autoincrement": false
1478
+ },
1479
+ "retired_at": {
1480
+ "name": "retired_at",
1481
+ "type": "integer",
1482
+ "primaryKey": false,
1483
+ "notNull": false,
1484
+ "autoincrement": false
1485
+ }
1486
+ },
1487
+ "indexes": {
1488
+ "idx_pv_lookup": {
1489
+ "name": "idx_pv_lookup",
1490
+ "columns": [
1491
+ "pipeline_id",
1492
+ "registered_at"
1493
+ ],
1494
+ "isUnique": false
1495
+ },
1496
+ "idx_pv_active": {
1497
+ "name": "idx_pv_active",
1498
+ "columns": [
1499
+ "pipeline_id"
1500
+ ],
1501
+ "isUnique": true,
1502
+ "where": "\"pipeline_versions\".\"retired_at\" IS NULL"
1503
+ }
1504
+ },
1505
+ "foreignKeys": {
1506
+ "pipeline_versions_pipeline_id_pipelines_id_fk": {
1507
+ "name": "pipeline_versions_pipeline_id_pipelines_id_fk",
1508
+ "tableFrom": "pipeline_versions",
1509
+ "tableTo": "pipelines",
1510
+ "columnsFrom": [
1511
+ "pipeline_id"
1512
+ ],
1513
+ "columnsTo": [
1514
+ "id"
1515
+ ],
1516
+ "onDelete": "restrict",
1517
+ "onUpdate": "no action"
1518
+ },
1519
+ "pipeline_versions_parent_pipeline_id_pipelines_id_fk": {
1520
+ "name": "pipeline_versions_parent_pipeline_id_pipelines_id_fk",
1521
+ "tableFrom": "pipeline_versions",
1522
+ "tableTo": "pipelines",
1523
+ "columnsFrom": [
1524
+ "parent_pipeline_id"
1525
+ ],
1526
+ "columnsTo": [
1527
+ "id"
1528
+ ],
1529
+ "onDelete": "set null",
1530
+ "onUpdate": "no action"
1531
+ }
1532
+ },
1533
+ "compositePrimaryKeys": {},
1534
+ "uniqueConstraints": {},
1535
+ "checkConstraints": {}
1536
+ },
1537
+ "harnesses": {
1538
+ "name": "harnesses",
1539
+ "columns": {
1540
+ "id": {
1541
+ "name": "id",
1542
+ "type": "text",
1543
+ "primaryKey": true,
1544
+ "notNull": true,
1545
+ "autoincrement": false
1546
+ },
1547
+ "created_at": {
1548
+ "name": "created_at",
1549
+ "type": "integer",
1550
+ "primaryKey": false,
1551
+ "notNull": true,
1552
+ "autoincrement": false
1553
+ },
1554
+ "updated_at": {
1555
+ "name": "updated_at",
1556
+ "type": "integer",
1557
+ "primaryKey": false,
1558
+ "notNull": true,
1559
+ "autoincrement": false
1560
+ }
1561
+ },
1562
+ "indexes": {},
1563
+ "foreignKeys": {},
1564
+ "compositePrimaryKeys": {},
1565
+ "uniqueConstraints": {},
1566
+ "checkConstraints": {}
1567
+ },
1568
+ "pipelines": {
1569
+ "name": "pipelines",
1570
+ "columns": {
1571
+ "id": {
1572
+ "name": "id",
1573
+ "type": "text",
1574
+ "primaryKey": true,
1575
+ "notNull": true,
1576
+ "autoincrement": false
1577
+ },
1578
+ "name": {
1579
+ "name": "name",
1580
+ "type": "text",
1581
+ "primaryKey": false,
1582
+ "notNull": true,
1583
+ "autoincrement": false
1584
+ },
1585
+ "harness": {
1586
+ "name": "harness",
1587
+ "type": "text",
1588
+ "primaryKey": false,
1589
+ "notNull": false,
1590
+ "autoincrement": false
1591
+ },
1592
+ "created_at": {
1593
+ "name": "created_at",
1594
+ "type": "integer",
1595
+ "primaryKey": false,
1596
+ "notNull": true,
1597
+ "autoincrement": false
1598
+ },
1599
+ "updated_at": {
1600
+ "name": "updated_at",
1601
+ "type": "integer",
1602
+ "primaryKey": false,
1603
+ "notNull": true,
1604
+ "autoincrement": false
1605
+ },
1606
+ "deleted_at": {
1607
+ "name": "deleted_at",
1608
+ "type": "integer",
1609
+ "primaryKey": false,
1610
+ "notNull": false,
1611
+ "autoincrement": false
1612
+ }
1613
+ },
1614
+ "indexes": {
1615
+ "idx_pipelines_harness_name": {
1616
+ "name": "idx_pipelines_harness_name",
1617
+ "columns": [
1618
+ "harness",
1619
+ "name"
1620
+ ],
1621
+ "isUnique": false
1622
+ }
1623
+ },
1624
+ "foreignKeys": {
1625
+ "pipelines_harness_harnesses_id_fk": {
1626
+ "name": "pipelines_harness_harnesses_id_fk",
1627
+ "tableFrom": "pipelines",
1628
+ "tableTo": "harnesses",
1629
+ "columnsFrom": [
1630
+ "harness"
1631
+ ],
1632
+ "columnsTo": [
1633
+ "id"
1634
+ ],
1635
+ "onDelete": "set null",
1636
+ "onUpdate": "no action"
1637
+ }
1638
+ },
1639
+ "compositePrimaryKeys": {},
1640
+ "uniqueConstraints": {},
1641
+ "checkConstraints": {}
1642
+ },
1643
+ "tool_results": {
1644
+ "name": "tool_results",
1645
+ "columns": {
1646
+ "session_key": {
1647
+ "name": "session_key",
1648
+ "type": "text",
1649
+ "primaryKey": true,
1650
+ "notNull": true,
1651
+ "autoincrement": false
1652
+ },
1653
+ "run_id": {
1654
+ "name": "run_id",
1655
+ "type": "text",
1656
+ "primaryKey": false,
1657
+ "notNull": false,
1658
+ "autoincrement": false
1659
+ },
1660
+ "agent_id": {
1661
+ "name": "agent_id",
1662
+ "type": "text",
1663
+ "primaryKey": false,
1664
+ "notNull": false,
1665
+ "autoincrement": false
1666
+ },
1667
+ "kind": {
1668
+ "name": "kind",
1669
+ "type": "text",
1670
+ "primaryKey": false,
1671
+ "notNull": false,
1672
+ "autoincrement": false
1673
+ },
1674
+ "payload_json": {
1675
+ "name": "payload_json",
1676
+ "type": "text",
1677
+ "primaryKey": false,
1678
+ "notNull": true,
1679
+ "autoincrement": false
1680
+ },
1681
+ "updated_at": {
1682
+ "name": "updated_at",
1683
+ "type": "integer",
1684
+ "primaryKey": false,
1685
+ "notNull": true,
1686
+ "autoincrement": false
1687
+ }
1688
+ },
1689
+ "indexes": {},
1690
+ "foreignKeys": {
1691
+ "tool_results_run_id_flow_runs_flow_id_fk": {
1692
+ "name": "tool_results_run_id_flow_runs_flow_id_fk",
1693
+ "tableFrom": "tool_results",
1694
+ "tableTo": "flow_runs",
1695
+ "columnsFrom": [
1696
+ "run_id"
1697
+ ],
1698
+ "columnsTo": [
1699
+ "flow_id"
1700
+ ],
1701
+ "onDelete": "set null",
1702
+ "onUpdate": "no action"
1703
+ }
1704
+ },
1705
+ "compositePrimaryKeys": {},
1706
+ "uniqueConstraints": {},
1707
+ "checkConstraints": {}
1708
+ }
1709
+ },
1710
+ "views": {},
1711
+ "enums": {},
1712
+ "_meta": {
1713
+ "schemas": {},
1714
+ "tables": {},
1715
+ "columns": {}
1716
+ },
1717
+ "internal": {
1718
+ "indexes": {
1719
+ "idx_failures_failed_at": {
1720
+ "columns": {
1721
+ "\"failed_at\" desc": {
1722
+ "isExpression": true
1723
+ }
1724
+ }
1725
+ },
1726
+ "idx_pfr_updated": {
1727
+ "columns": {
1728
+ "\"updated_at\" desc": {
1729
+ "isExpression": true
1730
+ }
1731
+ }
1732
+ },
1733
+ "idx_pfr_created": {
1734
+ "columns": {
1735
+ "\"created_at\" desc": {
1736
+ "isExpression": true
1737
+ }
1738
+ }
1739
+ }
1740
+ }
1741
+ }
1742
+ }