@igorjpimenta/manifold 0.0.0-bootstrap.1

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 +1584 -0
  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 +51 -0
  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,763 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "c0104d99-7954-47d4-abbb-e7a8d3921257",
5
+ "prevId": "00000000-0000-0000-0000-000000000000",
6
+ "tables": {
7
+ "budget_alert_events": {
8
+ "name": "budget_alert_events",
9
+ "columns": {
10
+ "id": {
11
+ "name": "id",
12
+ "type": "text",
13
+ "primaryKey": true,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "threshold": {
18
+ "name": "threshold",
19
+ "type": "real",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false
23
+ },
24
+ "total_usd": {
25
+ "name": "total_usd",
26
+ "type": "real",
27
+ "primaryKey": false,
28
+ "notNull": true,
29
+ "autoincrement": false
30
+ },
31
+ "cap_usd": {
32
+ "name": "cap_usd",
33
+ "type": "real",
34
+ "primaryKey": false,
35
+ "notNull": true,
36
+ "autoincrement": false
37
+ },
38
+ "fired_at": {
39
+ "name": "fired_at",
40
+ "type": "integer",
41
+ "primaryKey": false,
42
+ "notNull": true,
43
+ "autoincrement": false
44
+ }
45
+ },
46
+ "indexes": {
47
+ "idx_bae_fired_at": {
48
+ "name": "idx_bae_fired_at",
49
+ "columns": [
50
+ "fired_at"
51
+ ],
52
+ "isUnique": false
53
+ }
54
+ },
55
+ "foreignKeys": {},
56
+ "compositePrimaryKeys": {},
57
+ "uniqueConstraints": {},
58
+ "checkConstraints": {}
59
+ },
60
+ "cap_versions": {
61
+ "name": "cap_versions",
62
+ "columns": {
63
+ "id": {
64
+ "name": "id",
65
+ "type": "text",
66
+ "primaryKey": true,
67
+ "notNull": true,
68
+ "autoincrement": false
69
+ },
70
+ "cap_usd": {
71
+ "name": "cap_usd",
72
+ "type": "real",
73
+ "primaryKey": false,
74
+ "notNull": true,
75
+ "autoincrement": false
76
+ },
77
+ "lock_threshold": {
78
+ "name": "lock_threshold",
79
+ "type": "real",
80
+ "primaryKey": false,
81
+ "notNull": true,
82
+ "autoincrement": false
83
+ },
84
+ "registered_at": {
85
+ "name": "registered_at",
86
+ "type": "integer",
87
+ "primaryKey": false,
88
+ "notNull": true,
89
+ "autoincrement": false
90
+ },
91
+ "retired_at": {
92
+ "name": "retired_at",
93
+ "type": "integer",
94
+ "primaryKey": false,
95
+ "notNull": false,
96
+ "autoincrement": false
97
+ }
98
+ },
99
+ "indexes": {
100
+ "idx_cv_lookup": {
101
+ "name": "idx_cv_lookup",
102
+ "columns": [
103
+ "registered_at"
104
+ ],
105
+ "isUnique": false
106
+ },
107
+ "idx_cv_active": {
108
+ "name": "idx_cv_active",
109
+ "columns": [
110
+ "(1)"
111
+ ],
112
+ "isUnique": true,
113
+ "where": "\"cap_versions\".\"retired_at\" IS NULL"
114
+ }
115
+ },
116
+ "foreignKeys": {},
117
+ "compositePrimaryKeys": {},
118
+ "uniqueConstraints": {},
119
+ "checkConstraints": {}
120
+ },
121
+ "cost_by_call": {
122
+ "name": "cost_by_call",
123
+ "columns": {
124
+ "session_id": {
125
+ "name": "session_id",
126
+ "type": "text",
127
+ "primaryKey": false,
128
+ "notNull": true,
129
+ "autoincrement": false
130
+ },
131
+ "msg_id": {
132
+ "name": "msg_id",
133
+ "type": "text",
134
+ "primaryKey": false,
135
+ "notNull": true,
136
+ "autoincrement": false
137
+ },
138
+ "ts": {
139
+ "name": "ts",
140
+ "type": "integer",
141
+ "primaryKey": false,
142
+ "notNull": true,
143
+ "autoincrement": false
144
+ },
145
+ "provider": {
146
+ "name": "provider",
147
+ "type": "text",
148
+ "primaryKey": false,
149
+ "notNull": false,
150
+ "autoincrement": false
151
+ },
152
+ "model": {
153
+ "name": "model",
154
+ "type": "text",
155
+ "primaryKey": false,
156
+ "notNull": false,
157
+ "autoincrement": false
158
+ },
159
+ "input_tokens": {
160
+ "name": "input_tokens",
161
+ "type": "integer",
162
+ "primaryKey": false,
163
+ "notNull": false,
164
+ "autoincrement": false
165
+ },
166
+ "output_tokens": {
167
+ "name": "output_tokens",
168
+ "type": "integer",
169
+ "primaryKey": false,
170
+ "notNull": false,
171
+ "autoincrement": false
172
+ },
173
+ "cache_read_tokens": {
174
+ "name": "cache_read_tokens",
175
+ "type": "integer",
176
+ "primaryKey": false,
177
+ "notNull": false,
178
+ "autoincrement": false
179
+ },
180
+ "cache_write_tokens": {
181
+ "name": "cache_write_tokens",
182
+ "type": "integer",
183
+ "primaryKey": false,
184
+ "notNull": false,
185
+ "autoincrement": false
186
+ },
187
+ "total_tokens": {
188
+ "name": "total_tokens",
189
+ "type": "integer",
190
+ "primaryKey": false,
191
+ "notNull": false,
192
+ "autoincrement": false
193
+ },
194
+ "cost_input": {
195
+ "name": "cost_input",
196
+ "type": "real",
197
+ "primaryKey": false,
198
+ "notNull": false,
199
+ "autoincrement": false
200
+ },
201
+ "cost_output": {
202
+ "name": "cost_output",
203
+ "type": "real",
204
+ "primaryKey": false,
205
+ "notNull": false,
206
+ "autoincrement": false
207
+ },
208
+ "cost_cache_read": {
209
+ "name": "cost_cache_read",
210
+ "type": "real",
211
+ "primaryKey": false,
212
+ "notNull": false,
213
+ "autoincrement": false
214
+ },
215
+ "cost_cache_write": {
216
+ "name": "cost_cache_write",
217
+ "type": "real",
218
+ "primaryKey": false,
219
+ "notNull": false,
220
+ "autoincrement": false
221
+ },
222
+ "cost_total": {
223
+ "name": "cost_total",
224
+ "type": "real",
225
+ "primaryKey": false,
226
+ "notNull": true,
227
+ "autoincrement": false
228
+ },
229
+ "session_key": {
230
+ "name": "session_key",
231
+ "type": "text",
232
+ "primaryKey": false,
233
+ "notNull": false,
234
+ "autoincrement": false
235
+ },
236
+ "agent_id": {
237
+ "name": "agent_id",
238
+ "type": "text",
239
+ "primaryKey": false,
240
+ "notNull": false,
241
+ "autoincrement": false
242
+ },
243
+ "root_session_key": {
244
+ "name": "root_session_key",
245
+ "type": "text",
246
+ "primaryKey": false,
247
+ "notNull": false,
248
+ "autoincrement": false
249
+ },
250
+ "root_kind": {
251
+ "name": "root_kind",
252
+ "type": "text",
253
+ "primaryKey": false,
254
+ "notNull": false,
255
+ "autoincrement": false
256
+ },
257
+ "root_label": {
258
+ "name": "root_label",
259
+ "type": "text",
260
+ "primaryKey": false,
261
+ "notNull": false,
262
+ "autoincrement": false
263
+ },
264
+ "pipeline_id": {
265
+ "name": "pipeline_id",
266
+ "type": "text",
267
+ "primaryKey": false,
268
+ "notNull": false,
269
+ "autoincrement": false
270
+ },
271
+ "flow_id": {
272
+ "name": "flow_id",
273
+ "type": "text",
274
+ "primaryKey": false,
275
+ "notNull": false,
276
+ "autoincrement": false
277
+ },
278
+ "node_id": {
279
+ "name": "node_id",
280
+ "type": "text",
281
+ "primaryKey": false,
282
+ "notNull": false,
283
+ "autoincrement": false
284
+ },
285
+ "item_key": {
286
+ "name": "item_key",
287
+ "type": "text",
288
+ "primaryKey": false,
289
+ "notNull": false,
290
+ "autoincrement": false
291
+ }
292
+ },
293
+ "indexes": {
294
+ "idx_cost_ts": {
295
+ "name": "idx_cost_ts",
296
+ "columns": [
297
+ "ts"
298
+ ],
299
+ "isUnique": false
300
+ },
301
+ "idx_cost_root_key": {
302
+ "name": "idx_cost_root_key",
303
+ "columns": [
304
+ "root_session_key"
305
+ ],
306
+ "isUnique": false
307
+ },
308
+ "idx_cost_root_kind_ts": {
309
+ "name": "idx_cost_root_kind_ts",
310
+ "columns": [
311
+ "root_kind",
312
+ "ts"
313
+ ],
314
+ "isUnique": false
315
+ },
316
+ "idx_cost_pipeline_ts": {
317
+ "name": "idx_cost_pipeline_ts",
318
+ "columns": [
319
+ "pipeline_id",
320
+ "ts"
321
+ ],
322
+ "isUnique": false
323
+ },
324
+ "idx_cost_flow_node": {
325
+ "name": "idx_cost_flow_node",
326
+ "columns": [
327
+ "flow_id",
328
+ "node_id"
329
+ ],
330
+ "isUnique": false
331
+ },
332
+ "idx_cost_model_ts": {
333
+ "name": "idx_cost_model_ts",
334
+ "columns": [
335
+ "model",
336
+ "ts"
337
+ ],
338
+ "isUnique": false
339
+ },
340
+ "idx_cost_session": {
341
+ "name": "idx_cost_session",
342
+ "columns": [
343
+ "session_id"
344
+ ],
345
+ "isUnique": false
346
+ }
347
+ },
348
+ "foreignKeys": {},
349
+ "compositePrimaryKeys": {
350
+ "cost_by_call_session_id_msg_id_pk": {
351
+ "columns": [
352
+ "session_id",
353
+ "msg_id"
354
+ ],
355
+ "name": "cost_by_call_session_id_msg_id_pk"
356
+ }
357
+ },
358
+ "uniqueConstraints": {},
359
+ "checkConstraints": {}
360
+ },
361
+ "gate_state": {
362
+ "name": "gate_state",
363
+ "columns": {
364
+ "id": {
365
+ "name": "id",
366
+ "type": "text",
367
+ "primaryKey": true,
368
+ "notNull": true,
369
+ "autoincrement": false,
370
+ "default": "'singleton'"
371
+ },
372
+ "locked": {
373
+ "name": "locked",
374
+ "type": "integer",
375
+ "primaryKey": false,
376
+ "notNull": true,
377
+ "autoincrement": false,
378
+ "default": 0
379
+ },
380
+ "day": {
381
+ "name": "day",
382
+ "type": "text",
383
+ "primaryKey": false,
384
+ "notNull": false,
385
+ "autoincrement": false
386
+ }
387
+ },
388
+ "indexes": {},
389
+ "foreignKeys": {},
390
+ "compositePrimaryKeys": {},
391
+ "uniqueConstraints": {},
392
+ "checkConstraints": {}
393
+ },
394
+ "queue_items": {
395
+ "name": "queue_items",
396
+ "columns": {
397
+ "id": {
398
+ "name": "id",
399
+ "type": "text",
400
+ "primaryKey": true,
401
+ "notNull": true,
402
+ "autoincrement": false
403
+ },
404
+ "label": {
405
+ "name": "label",
406
+ "type": "text",
407
+ "primaryKey": false,
408
+ "notNull": true,
409
+ "autoincrement": false
410
+ },
411
+ "agent": {
412
+ "name": "agent",
413
+ "type": "text",
414
+ "primaryKey": false,
415
+ "notNull": true,
416
+ "autoincrement": false
417
+ },
418
+ "agent_emoji": {
419
+ "name": "agent_emoji",
420
+ "type": "text",
421
+ "primaryKey": false,
422
+ "notNull": true,
423
+ "autoincrement": false,
424
+ "default": "'🤖'"
425
+ },
426
+ "trigger": {
427
+ "name": "trigger",
428
+ "type": "text",
429
+ "primaryKey": false,
430
+ "notNull": true,
431
+ "autoincrement": false,
432
+ "default": "'manual'"
433
+ },
434
+ "cost_low": {
435
+ "name": "cost_low",
436
+ "type": "real",
437
+ "primaryKey": false,
438
+ "notNull": true,
439
+ "autoincrement": false,
440
+ "default": 0
441
+ },
442
+ "cost_high": {
443
+ "name": "cost_high",
444
+ "type": "real",
445
+ "primaryKey": false,
446
+ "notNull": true,
447
+ "autoincrement": false,
448
+ "default": 0
449
+ },
450
+ "brief": {
451
+ "name": "brief",
452
+ "type": "text",
453
+ "primaryKey": false,
454
+ "notNull": false,
455
+ "autoincrement": false
456
+ },
457
+ "model_chain": {
458
+ "name": "model_chain",
459
+ "type": "text",
460
+ "primaryKey": false,
461
+ "notNull": false,
462
+ "autoincrement": false
463
+ },
464
+ "pipeline": {
465
+ "name": "pipeline",
466
+ "type": "text",
467
+ "primaryKey": false,
468
+ "notNull": false,
469
+ "autoincrement": false
470
+ },
471
+ "node": {
472
+ "name": "node",
473
+ "type": "text",
474
+ "primaryKey": false,
475
+ "notNull": false,
476
+ "autoincrement": false
477
+ },
478
+ "token_estimate": {
479
+ "name": "token_estimate",
480
+ "type": "integer",
481
+ "primaryKey": false,
482
+ "notNull": false,
483
+ "autoincrement": false
484
+ },
485
+ "status": {
486
+ "name": "status",
487
+ "type": "text",
488
+ "primaryKey": false,
489
+ "notNull": true,
490
+ "autoincrement": false,
491
+ "default": "'pending'"
492
+ },
493
+ "created_at": {
494
+ "name": "created_at",
495
+ "type": "integer",
496
+ "primaryKey": false,
497
+ "notNull": true,
498
+ "autoincrement": false
499
+ },
500
+ "expires_at": {
501
+ "name": "expires_at",
502
+ "type": "integer",
503
+ "primaryKey": false,
504
+ "notNull": false,
505
+ "autoincrement": false
506
+ },
507
+ "decided_at": {
508
+ "name": "decided_at",
509
+ "type": "integer",
510
+ "primaryKey": false,
511
+ "notNull": false,
512
+ "autoincrement": false
513
+ },
514
+ "decision": {
515
+ "name": "decision",
516
+ "type": "text",
517
+ "primaryKey": false,
518
+ "notNull": false,
519
+ "autoincrement": false
520
+ },
521
+ "pipeline_id": {
522
+ "name": "pipeline_id",
523
+ "type": "text",
524
+ "primaryKey": false,
525
+ "notNull": false,
526
+ "autoincrement": false
527
+ },
528
+ "pipeline_args": {
529
+ "name": "pipeline_args",
530
+ "type": "text",
531
+ "primaryKey": false,
532
+ "notNull": false,
533
+ "autoincrement": false
534
+ },
535
+ "flow_id": {
536
+ "name": "flow_id",
537
+ "type": "text",
538
+ "primaryKey": false,
539
+ "notNull": false,
540
+ "autoincrement": false
541
+ },
542
+ "enqueuer_session_key": {
543
+ "name": "enqueuer_session_key",
544
+ "type": "text",
545
+ "primaryKey": false,
546
+ "notNull": false,
547
+ "autoincrement": false
548
+ },
549
+ "kind": {
550
+ "name": "kind",
551
+ "type": "text",
552
+ "primaryKey": false,
553
+ "notNull": false,
554
+ "autoincrement": false
555
+ }
556
+ },
557
+ "indexes": {
558
+ "idx_status": {
559
+ "name": "idx_status",
560
+ "columns": [
561
+ "status"
562
+ ],
563
+ "isUnique": false
564
+ },
565
+ "idx_created_at": {
566
+ "name": "idx_created_at",
567
+ "columns": [
568
+ "\"created_at\" desc"
569
+ ],
570
+ "isUnique": false
571
+ },
572
+ "idx_flow_node": {
573
+ "name": "idx_flow_node",
574
+ "columns": [
575
+ "flow_id",
576
+ "node"
577
+ ],
578
+ "isUnique": false
579
+ }
580
+ },
581
+ "foreignKeys": {},
582
+ "compositePrimaryKeys": {},
583
+ "uniqueConstraints": {},
584
+ "checkConstraints": {}
585
+ },
586
+ "session_lineage": {
587
+ "name": "session_lineage",
588
+ "columns": {
589
+ "child_session_key": {
590
+ "name": "child_session_key",
591
+ "type": "text",
592
+ "primaryKey": true,
593
+ "notNull": true,
594
+ "autoincrement": false
595
+ },
596
+ "parent_session_key": {
597
+ "name": "parent_session_key",
598
+ "type": "text",
599
+ "primaryKey": false,
600
+ "notNull": false,
601
+ "autoincrement": false
602
+ },
603
+ "root_session_key": {
604
+ "name": "root_session_key",
605
+ "type": "text",
606
+ "primaryKey": false,
607
+ "notNull": true,
608
+ "autoincrement": false
609
+ },
610
+ "kind": {
611
+ "name": "kind",
612
+ "type": "text",
613
+ "primaryKey": false,
614
+ "notNull": true,
615
+ "autoincrement": false
616
+ },
617
+ "root_kind": {
618
+ "name": "root_kind",
619
+ "type": "text",
620
+ "primaryKey": false,
621
+ "notNull": true,
622
+ "autoincrement": false
623
+ },
624
+ "root_label": {
625
+ "name": "root_label",
626
+ "type": "text",
627
+ "primaryKey": false,
628
+ "notNull": false,
629
+ "autoincrement": false
630
+ },
631
+ "agent_id": {
632
+ "name": "agent_id",
633
+ "type": "text",
634
+ "primaryKey": false,
635
+ "notNull": false,
636
+ "autoincrement": false
637
+ },
638
+ "pipeline_id": {
639
+ "name": "pipeline_id",
640
+ "type": "text",
641
+ "primaryKey": false,
642
+ "notNull": false,
643
+ "autoincrement": false
644
+ },
645
+ "flow_id": {
646
+ "name": "flow_id",
647
+ "type": "text",
648
+ "primaryKey": false,
649
+ "notNull": false,
650
+ "autoincrement": false
651
+ },
652
+ "node_id": {
653
+ "name": "node_id",
654
+ "type": "text",
655
+ "primaryKey": false,
656
+ "notNull": false,
657
+ "autoincrement": false
658
+ },
659
+ "item_key": {
660
+ "name": "item_key",
661
+ "type": "text",
662
+ "primaryKey": false,
663
+ "notNull": false,
664
+ "autoincrement": false
665
+ },
666
+ "first_seen_at": {
667
+ "name": "first_seen_at",
668
+ "type": "integer",
669
+ "primaryKey": false,
670
+ "notNull": true,
671
+ "autoincrement": false
672
+ },
673
+ "source": {
674
+ "name": "source",
675
+ "type": "text",
676
+ "primaryKey": false,
677
+ "notNull": true,
678
+ "autoincrement": false
679
+ },
680
+ "run_id": {
681
+ "name": "run_id",
682
+ "type": "text",
683
+ "primaryKey": false,
684
+ "notNull": false,
685
+ "autoincrement": false
686
+ }
687
+ },
688
+ "indexes": {
689
+ "idx_lineage_root": {
690
+ "name": "idx_lineage_root",
691
+ "columns": [
692
+ "root_session_key"
693
+ ],
694
+ "isUnique": false
695
+ },
696
+ "idx_lineage_parent": {
697
+ "name": "idx_lineage_parent",
698
+ "columns": [
699
+ "parent_session_key"
700
+ ],
701
+ "isUnique": false
702
+ },
703
+ "idx_lineage_pipeline": {
704
+ "name": "idx_lineage_pipeline",
705
+ "columns": [
706
+ "pipeline_id"
707
+ ],
708
+ "isUnique": false
709
+ },
710
+ "idx_lineage_flow": {
711
+ "name": "idx_lineage_flow",
712
+ "columns": [
713
+ "flow_id"
714
+ ],
715
+ "isUnique": false
716
+ },
717
+ "idx_lineage_root_kind": {
718
+ "name": "idx_lineage_root_kind",
719
+ "columns": [
720
+ "root_kind"
721
+ ],
722
+ "isUnique": false
723
+ },
724
+ "idx_lineage_run": {
725
+ "name": "idx_lineage_run",
726
+ "columns": [
727
+ "run_id"
728
+ ],
729
+ "isUnique": false
730
+ }
731
+ },
732
+ "foreignKeys": {},
733
+ "compositePrimaryKeys": {},
734
+ "uniqueConstraints": {},
735
+ "checkConstraints": {}
736
+ }
737
+ },
738
+ "views": {},
739
+ "enums": {},
740
+ "_meta": {
741
+ "schemas": {},
742
+ "tables": {},
743
+ "columns": {}
744
+ },
745
+ "internal": {
746
+ "indexes": {
747
+ "idx_cv_active": {
748
+ "columns": {
749
+ "(1)": {
750
+ "isExpression": true
751
+ }
752
+ }
753
+ },
754
+ "idx_created_at": {
755
+ "columns": {
756
+ "\"created_at\" desc": {
757
+ "isExpression": true
758
+ }
759
+ }
760
+ }
761
+ }
762
+ }
763
+ }