@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.
- package/README.md +2 -1583
- package/package.json +4 -49
- package/.migrations/ops/0000_futuristic_karma.sql +0 -111
- package/.migrations/ops/0001_low_maximus.sql +0 -7
- package/.migrations/ops/meta/0000_snapshot.json +0 -763
- package/.migrations/ops/meta/0001_snapshot.json +0 -173
- package/.migrations/ops/meta/_journal.json +0 -20
- package/.migrations/runtime/0000_real_boomer.sql +0 -180
- package/.migrations/runtime/0001_hot_dakota_north.sql +0 -2
- package/.migrations/runtime/0002_breezy_vertigo.sql +0 -8
- package/.migrations/runtime/0003_dashing_jack_flag.sql +0 -5
- package/.migrations/runtime/0004_panoramic_ego.sql +0 -1
- package/.migrations/runtime/0005_tidy_ben_grimm.sql +0 -10
- package/.migrations/runtime/0006_wet_nightmare.sql +0 -57
- package/.migrations/runtime/0007_ambiguous_chronomancer.sql +0 -8
- package/.migrations/runtime/0008_wealthy_thundra.sql +0 -301
- package/.migrations/runtime/0009_lying_shocker.sql +0 -96
- package/.migrations/runtime/0010_solid_phantom_reporter.sql +0 -160
- package/.migrations/runtime/0011_windy_demogoblin.sql +0 -175
- package/.migrations/runtime/0012_restore_harness_fks.sql +0 -103
- package/.migrations/runtime/meta/0000_snapshot.json +0 -1181
- package/.migrations/runtime/meta/0001_snapshot.json +0 -1209
- package/.migrations/runtime/meta/0002_snapshot.json +0 -1261
- package/.migrations/runtime/meta/0003_snapshot.json +0 -1292
- package/.migrations/runtime/meta/0004_snapshot.json +0 -1240
- package/.migrations/runtime/meta/0006_snapshot.json +0 -1310
- package/.migrations/runtime/meta/0007_snapshot.json +0 -1362
- package/.migrations/runtime/meta/0008_snapshot.json +0 -1742
- package/.migrations/runtime/meta/0009_snapshot.json +0 -2413
- package/.migrations/runtime/meta/0010_snapshot.json +0 -2562
- package/.migrations/runtime/meta/0011_snapshot.json +0 -2812
- package/.migrations/runtime/meta/0012_snapshot.json +0 -2812
- package/.migrations/runtime/meta/_journal.json +0 -97
- package/RELEASING.md +0 -89
- package/agent/fleet.js +0 -100
- package/bin/cli.js +0 -854
- package/bin/manifold.js +0 -4
- package/boot/flow-revival.js +0 -536
- package/budget/index.js +0 -495
- package/budget/lib.js +0 -59
- package/dashboard/cost.js +0 -528
- package/dashboard/dist/assets/index-CUfp63sj.css +0 -1
- package/dashboard/dist/assets/index-Qy9JMpma.js +0 -371
- package/dashboard/dist/index.html +0 -13
- package/dashboard/event-log.js +0 -267
- package/dashboard/index.html +0 -12
- package/dashboard/package-lock.json +0 -2877
- package/dashboard/package.json +0 -37
- package/dashboard/pipeline-graph.js +0 -131
- package/dashboard/postcss.config.js +0 -6
- package/dashboard/search.js +0 -183
- package/dashboard/server.js +0 -1015
- package/dashboard/src/App.tsx +0 -42
- package/dashboard/src/api/client.ts +0 -118
- package/dashboard/src/api/types.ts +0 -510
- package/dashboard/src/api/ws.tsx +0 -112
- package/dashboard/src/components/CancelButton.tsx +0 -63
- package/dashboard/src/components/ClickToCopy.tsx +0 -68
- package/dashboard/src/components/CopyButton.tsx +0 -61
- package/dashboard/src/components/DailyCostTrend.tsx +0 -85
- package/dashboard/src/components/DailyTimeTrend.tsx +0 -94
- package/dashboard/src/components/Funnel.tsx +0 -149
- package/dashboard/src/components/GateForm.tsx +0 -158
- package/dashboard/src/components/GraphView.tsx +0 -302
- package/dashboard/src/components/GroupPathsSummary.tsx +0 -47
- package/dashboard/src/components/Histogram.tsx +0 -292
- package/dashboard/src/components/Layout.tsx +0 -28
- package/dashboard/src/components/NeedsAttention.tsx +0 -98
- package/dashboard/src/components/NodeContextCard.tsx +0 -132
- package/dashboard/src/components/PathTrail.tsx +0 -35
- package/dashboard/src/components/PipelineCostBreakdown.tsx +0 -277
- package/dashboard/src/components/RerunButton.tsx +0 -46
- package/dashboard/src/components/RunComparison.tsx +0 -53
- package/dashboard/src/components/Sparkline.tsx +0 -94
- package/dashboard/src/components/StatStrip.tsx +0 -147
- package/dashboard/src/components/StateTree.tsx +0 -84
- package/dashboard/src/components/StatusBadge.tsx +0 -18
- package/dashboard/src/components/SubflowPathPills.tsx +0 -38
- package/dashboard/src/components/SubflowSummary.tsx +0 -24
- package/dashboard/src/components/SubflowsCard.tsx +0 -327
- package/dashboard/src/components/TodayStrip.tsx +0 -86
- package/dashboard/src/components/TranscriptPane.tsx +0 -99
- package/dashboard/src/components/TranscriptRow.tsx +0 -69
- package/dashboard/src/components/ui/badge.tsx +0 -38
- package/dashboard/src/components/ui/button.tsx +0 -28
- package/dashboard/src/components/ui/card.tsx +0 -42
- package/dashboard/src/components/ui/skeleton.tsx +0 -9
- package/dashboard/src/components/ui/table.tsx +0 -62
- package/dashboard/src/index.css +0 -26
- package/dashboard/src/lib/anomaly.ts +0 -42
- package/dashboard/src/lib/format.ts +0 -30
- package/dashboard/src/lib/step-history.ts +0 -13
- package/dashboard/src/lib/subflow.ts +0 -154
- package/dashboard/src/lib/use-click-outside.ts +0 -28
- package/dashboard/src/lib/use-ignored-clusters.ts +0 -67
- package/dashboard/src/lib/utils.ts +0 -6
- package/dashboard/src/main.tsx +0 -10
- package/dashboard/src/types/shims.d.ts +0 -4
- package/dashboard/src/views/Home.tsx +0 -478
- package/dashboard/src/views/PipelineDetail.tsx +0 -1185
- package/dashboard/src/views/PipelinesList.tsx +0 -111
- package/dashboard/src/views/RunDetail.tsx +0 -248
- package/dashboard/src/views/Search.tsx +0 -196
- package/dashboard/stats.js +0 -668
- package/dashboard/tailwind.config.ts +0 -43
- package/dashboard/tree-stats.js +0 -12
- package/dashboard/tsconfig.json +0 -25
- package/dashboard/views.js +0 -231
- package/dashboard/vite.config.ts +0 -34
- package/drizzle.config.js +0 -12
- package/drizzle.config.ops.js +0 -12
- package/elevation.js +0 -116
- package/engine/admission-promotion-resume.js +0 -127
- package/engine/agent-dispatch.js +0 -64
- package/engine/child-resume-trigger.js +0 -315
- package/engine/executor-budget.js +0 -87
- package/engine/executor-cancel.js +0 -83
- package/engine/executor-errors.js +0 -122
- package/engine/executor-helpers.js +0 -254
- package/engine/executor-nodes.js +0 -292
- package/engine/executor-persist.js +0 -212
- package/engine/executor-subflow-children.js +0 -275
- package/engine/executor.js +0 -1013
- package/engine/global-concurrency.js +0 -33
- package/engine/loader.js +0 -528
- package/engine/needs-resolver.js +0 -229
- package/engine/pipelines-watcher.js +0 -133
- package/engine/result-replay.js +0 -34
- package/engine/revival-messages.js +0 -11
- package/engine/spawn-child.js +0 -55
- package/engine/wait-for-flow-settlement.js +0 -109
- package/events/catalog.js +0 -26
- package/events/emit.js +0 -44
- package/events/kinds.js +0 -118
- package/events/serve-ws.js +0 -74
- package/events/stream.js +0 -35
- package/events/ws-dialog.js +0 -257
- package/events/ws-frame.js +0 -194
- package/events/ws-run-events.js +0 -70
- package/events.js +0 -32
- package/gates/gate-resolver.js +0 -576
- package/gates/paused-flows.js +0 -55
- package/graphql/columns.js +0 -67
- package/graphql/schema.js +0 -333
- package/index.js +0 -49
- package/mcp/http.js +0 -159
- package/mcp/identity.js +0 -94
- package/mcp/stdio.js +0 -80
- package/mcp/tools.js +0 -245
- package/mcp/wire-ops.js +0 -178
- package/routes/bearer-auth.js +0 -57
- package/routes/discuss-audio.js +0 -87
- package/routes/discuss-component.js +0 -39
- package/routes/discuss-draft.js +0 -159
- package/routes/discuss-helpers.js +0 -20
- package/routes/discuss.js +0 -848
- package/routes/failures.js +0 -104
- package/routes/graphql.js +0 -61
- package/routes/health.js +0 -54
- package/routes/operator-discuss.js +0 -193
- package/routes/operator-resume.js +0 -32
- package/routes/operator-retry.js +0 -301
- package/routes/operator.js +0 -539
- package/routes/pipelines.js +0 -118
- package/routes/runs.js +0 -1129
- package/scripts/ci/import-check.mjs +0 -50
- package/scripts/link-core-self.mjs +0 -31
- package/scripts/with-guard.sh +0 -24
- package/server/app.js +0 -503
- package/server/registry.js +0 -53
- package/server/serve.js +0 -163
- package/state/admission-queue-store.js +0 -325
- package/state/attribution-registries.js +0 -102
- package/state/batch-writer.js +0 -162
- package/state/db-guard.js +0 -63
- package/state/db-health.js +0 -27
- package/state/db.js +0 -122
- package/state/discuss-store.js +0 -299
- package/state/failure-store.js +0 -427
- package/state/migrate.js +0 -104
- package/state/node-cost.js +0 -67
- package/state/node-executions.js +0 -775
- package/state/node-health-store.js +0 -124
- package/state/ops-merge.js +0 -93
- package/state/paths.js +0 -146
- package/state/pipeline-dirs.js +0 -99
- package/state/pipeline-registry.js +0 -449
- package/state/run-store.js +0 -697
- package/state/schema.js +0 -438
- package/state/schema.ops.js +0 -44
- package/state/session-index.js +0 -177
- package/state/session-keys.js +0 -39
- package/state/state-store.js +0 -311
- package/state/subflow-state.js +0 -126
- package/state/tool-handoff.js +0 -169
- package/telemetry/budget-alert.js +0 -353
- package/telemetry/cli.js +0 -331
- package/telemetry/grammar.js +0 -119
- package/telemetry/http-budget.js +0 -132
- package/telemetry/http-cost.js +0 -670
- package/telemetry/http-helpers.js +0 -134
- package/telemetry/http-tree.js +0 -349
- package/telemetry/http.js +0 -44
- package/telemetry/index.js +0 -307
- package/telemetry/ingest.js +0 -134
- package/telemetry/labels.js +0 -115
- package/telemetry/pricer.js +0 -77
- package/telemetry/resolver.js +0 -314
- package/telemetry/store.js +0 -147
- package/utils/run-patch.js +0 -43
|
@@ -1,763 +0,0 @@
|
|
|
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
|
-
}
|