debutly 0.0.0-stage → 0.2.0
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/LICENSE +662 -0
- package/README.md +192 -2
- package/bin/debutly.mjs +8 -0
- package/drizzle/0000_init.sql +107 -0
- package/drizzle/0001_predictions.sql +14 -0
- package/drizzle/0002_dashboard.sql +15 -0
- package/drizzle/meta/0000_snapshot.json +722 -0
- package/drizzle/meta/0001_snapshot.json +821 -0
- package/drizzle/meta/0002_snapshot.json +942 -0
- package/drizzle/meta/_journal.json +27 -0
- package/package.json +83 -4
- package/src/agent/describe.ts +29 -0
- package/src/agent/effect.ts +94 -0
- package/src/agent/give-up.ts +42 -0
- package/src/agent/label.ts +19 -0
- package/src/agent/loop.ts +302 -0
- package/src/agent/parse-reply.ts +127 -0
- package/src/agent/prompt.ts +85 -0
- package/src/agent/run-agent.ts +68 -0
- package/src/artifacts/db.ts +55 -0
- package/src/artifacts/s3.ts +36 -0
- package/src/artifacts/store.ts +26 -0
- package/src/bin.ts +140 -0
- package/src/browser/ax.ts +77 -0
- package/src/browser/execute.ts +401 -0
- package/src/browser/observe.ts +62 -0
- package/src/browser/reflow.ts +73 -0
- package/src/browser/samples.ts +119 -0
- package/src/browser/scan-script.ts +108 -0
- package/src/browser/settle.ts +32 -0
- package/src/browser/signals.ts +73 -0
- package/src/cancel.ts +20 -0
- package/src/cli.ts +281 -0
- package/src/config.ts +62 -0
- package/src/cost/estimate.ts +32 -0
- package/src/cost/prices.ts +32 -0
- package/src/cost/tiers.ts +27 -0
- package/src/costs.ts +96 -0
- package/src/crew/run-unit.ts +62 -0
- package/src/detect/findings.ts +649 -0
- package/src/detect/wcag.ts +38 -0
- package/src/doctor.ts +145 -0
- package/src/hear-cli.ts +137 -0
- package/src/hear.ts +309 -0
- package/src/import.ts +108 -0
- package/src/inbox/mailpit.ts +46 -0
- package/src/inbox/types.ts +10 -0
- package/src/init.ts +184 -0
- package/src/llm/anthropic.ts +41 -0
- package/src/llm/credits.ts +35 -0
- package/src/llm/factory.ts +65 -0
- package/src/llm/meter.ts +39 -0
- package/src/llm/openai-compatible.ts +90 -0
- package/src/llm/openrouter.ts +9 -0
- package/src/llm/scripted.ts +18 -0
- package/src/llm/types.ts +36 -0
- package/src/perceive.ts +150 -0
- package/src/perception/aggregate.ts +111 -0
- package/src/perception/compare.ts +77 -0
- package/src/perception/evaluate.ts +83 -0
- package/src/perception/exhibits.ts +146 -0
- package/src/perception/market-context.ts +50 -0
- package/src/perception/run-perception.ts +178 -0
- package/src/persona/generate.ts +92 -0
- package/src/persona/inclusion.ts +53 -0
- package/src/persona/language.ts +59 -0
- package/src/persona/people.ts +32 -0
- package/src/predictions.ts +33 -0
- package/src/queue/dispatch.ts +18 -0
- package/src/queue/jobs.ts +28 -0
- package/src/queue/processor.ts +42 -0
- package/src/report/fix-first.ts +121 -0
- package/src/report/launch-readiness.ts +106 -0
- package/src/report/markdown.ts +202 -0
- package/src/run.ts +141 -0
- package/src/sandbox/outbox.ts +65 -0
- package/src/store/db.ts +40 -0
- package/src/store/import-run.ts +116 -0
- package/src/store/pg-run-store.ts +163 -0
- package/src/store/predictions.ts +70 -0
- package/src/store/run-store.ts +78 -0
- package/src/store/schema.ts +193 -0
- package/src/store/url.ts +15 -0
- package/src/types.ts +201 -0
- package/src/util/chromium.ts +20 -0
- package/src/util/json.ts +7 -0
- package/src/util/key-defaults.ts +34 -0
- package/src/util/legacy-env.ts +14 -0
- package/src/util/load-env.ts +28 -0
- package/src/util/pool.ts +12 -0
- package/src/util/run-origin.ts +27 -0
- package/src/worker.ts +53 -0
- package/tsconfig.json +13 -0
|
@@ -0,0 +1,722 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "fbf0d3b9-644f-4b50-9876-2f4ca53abad9",
|
|
3
|
+
"prevId": "00000000-0000-0000-0000-000000000000",
|
|
4
|
+
"version": "7",
|
|
5
|
+
"dialect": "postgresql",
|
|
6
|
+
"tables": {
|
|
7
|
+
"public.agents": {
|
|
8
|
+
"name": "agents",
|
|
9
|
+
"schema": "",
|
|
10
|
+
"columns": {
|
|
11
|
+
"run_id": {
|
|
12
|
+
"name": "run_id",
|
|
13
|
+
"type": "uuid",
|
|
14
|
+
"primaryKey": false,
|
|
15
|
+
"notNull": true
|
|
16
|
+
},
|
|
17
|
+
"id": {
|
|
18
|
+
"name": "id",
|
|
19
|
+
"type": "text",
|
|
20
|
+
"primaryKey": false,
|
|
21
|
+
"notNull": true
|
|
22
|
+
},
|
|
23
|
+
"unit_id": {
|
|
24
|
+
"name": "unit_id",
|
|
25
|
+
"type": "text",
|
|
26
|
+
"primaryKey": false,
|
|
27
|
+
"notNull": true
|
|
28
|
+
},
|
|
29
|
+
"name": {
|
|
30
|
+
"name": "name",
|
|
31
|
+
"type": "text",
|
|
32
|
+
"primaryKey": false,
|
|
33
|
+
"notNull": true
|
|
34
|
+
},
|
|
35
|
+
"role": {
|
|
36
|
+
"name": "role",
|
|
37
|
+
"type": "text",
|
|
38
|
+
"primaryKey": false,
|
|
39
|
+
"notNull": false
|
|
40
|
+
},
|
|
41
|
+
"inclusion": {
|
|
42
|
+
"name": "inclusion",
|
|
43
|
+
"type": "text",
|
|
44
|
+
"primaryKey": false,
|
|
45
|
+
"notNull": false
|
|
46
|
+
},
|
|
47
|
+
"persona": {
|
|
48
|
+
"name": "persona",
|
|
49
|
+
"type": "jsonb",
|
|
50
|
+
"primaryKey": false,
|
|
51
|
+
"notNull": true
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"indexes": {},
|
|
55
|
+
"foreignKeys": {
|
|
56
|
+
"agents_run_id_runs_id_fk": {
|
|
57
|
+
"name": "agents_run_id_runs_id_fk",
|
|
58
|
+
"tableFrom": "agents",
|
|
59
|
+
"tableTo": "runs",
|
|
60
|
+
"columnsFrom": [
|
|
61
|
+
"run_id"
|
|
62
|
+
],
|
|
63
|
+
"columnsTo": [
|
|
64
|
+
"id"
|
|
65
|
+
],
|
|
66
|
+
"onDelete": "cascade",
|
|
67
|
+
"onUpdate": "no action"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"compositePrimaryKeys": {
|
|
71
|
+
"agents_run_id_id_pk": {
|
|
72
|
+
"name": "agents_run_id_id_pk",
|
|
73
|
+
"columns": [
|
|
74
|
+
"run_id",
|
|
75
|
+
"id"
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"uniqueConstraints": {},
|
|
80
|
+
"policies": {},
|
|
81
|
+
"checkConstraints": {},
|
|
82
|
+
"isRLSEnabled": false
|
|
83
|
+
},
|
|
84
|
+
"public.customer_units": {
|
|
85
|
+
"name": "customer_units",
|
|
86
|
+
"schema": "",
|
|
87
|
+
"columns": {
|
|
88
|
+
"run_id": {
|
|
89
|
+
"name": "run_id",
|
|
90
|
+
"type": "uuid",
|
|
91
|
+
"primaryKey": false,
|
|
92
|
+
"notNull": true
|
|
93
|
+
},
|
|
94
|
+
"id": {
|
|
95
|
+
"name": "id",
|
|
96
|
+
"type": "text",
|
|
97
|
+
"primaryKey": false,
|
|
98
|
+
"notNull": true
|
|
99
|
+
},
|
|
100
|
+
"kind": {
|
|
101
|
+
"name": "kind",
|
|
102
|
+
"type": "text",
|
|
103
|
+
"primaryKey": false,
|
|
104
|
+
"notNull": true
|
|
105
|
+
},
|
|
106
|
+
"business": {
|
|
107
|
+
"name": "business",
|
|
108
|
+
"type": "jsonb",
|
|
109
|
+
"primaryKey": false,
|
|
110
|
+
"notNull": false
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"indexes": {},
|
|
114
|
+
"foreignKeys": {
|
|
115
|
+
"customer_units_run_id_runs_id_fk": {
|
|
116
|
+
"name": "customer_units_run_id_runs_id_fk",
|
|
117
|
+
"tableFrom": "customer_units",
|
|
118
|
+
"tableTo": "runs",
|
|
119
|
+
"columnsFrom": [
|
|
120
|
+
"run_id"
|
|
121
|
+
],
|
|
122
|
+
"columnsTo": [
|
|
123
|
+
"id"
|
|
124
|
+
],
|
|
125
|
+
"onDelete": "cascade",
|
|
126
|
+
"onUpdate": "no action"
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"compositePrimaryKeys": {
|
|
130
|
+
"customer_units_run_id_id_pk": {
|
|
131
|
+
"name": "customer_units_run_id_id_pk",
|
|
132
|
+
"columns": [
|
|
133
|
+
"run_id",
|
|
134
|
+
"id"
|
|
135
|
+
]
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
"uniqueConstraints": {},
|
|
139
|
+
"policies": {},
|
|
140
|
+
"checkConstraints": {},
|
|
141
|
+
"isRLSEnabled": false
|
|
142
|
+
},
|
|
143
|
+
"public.findings": {
|
|
144
|
+
"name": "findings",
|
|
145
|
+
"schema": "",
|
|
146
|
+
"columns": {
|
|
147
|
+
"run_id": {
|
|
148
|
+
"name": "run_id",
|
|
149
|
+
"type": "uuid",
|
|
150
|
+
"primaryKey": false,
|
|
151
|
+
"notNull": true
|
|
152
|
+
},
|
|
153
|
+
"signature": {
|
|
154
|
+
"name": "signature",
|
|
155
|
+
"type": "text",
|
|
156
|
+
"primaryKey": false,
|
|
157
|
+
"notNull": true
|
|
158
|
+
},
|
|
159
|
+
"kind": {
|
|
160
|
+
"name": "kind",
|
|
161
|
+
"type": "text",
|
|
162
|
+
"primaryKey": false,
|
|
163
|
+
"notNull": true
|
|
164
|
+
},
|
|
165
|
+
"severity": {
|
|
166
|
+
"name": "severity",
|
|
167
|
+
"type": "text",
|
|
168
|
+
"primaryKey": false,
|
|
169
|
+
"notNull": true
|
|
170
|
+
},
|
|
171
|
+
"confidence": {
|
|
172
|
+
"name": "confidence",
|
|
173
|
+
"type": "text",
|
|
174
|
+
"primaryKey": false,
|
|
175
|
+
"notNull": true
|
|
176
|
+
},
|
|
177
|
+
"title": {
|
|
178
|
+
"name": "title",
|
|
179
|
+
"type": "text",
|
|
180
|
+
"primaryKey": false,
|
|
181
|
+
"notNull": true
|
|
182
|
+
},
|
|
183
|
+
"detail": {
|
|
184
|
+
"name": "detail",
|
|
185
|
+
"type": "text",
|
|
186
|
+
"primaryKey": false,
|
|
187
|
+
"notNull": true
|
|
188
|
+
},
|
|
189
|
+
"page_path": {
|
|
190
|
+
"name": "page_path",
|
|
191
|
+
"type": "text",
|
|
192
|
+
"primaryKey": false,
|
|
193
|
+
"notNull": true
|
|
194
|
+
},
|
|
195
|
+
"hit_by": {
|
|
196
|
+
"name": "hit_by",
|
|
197
|
+
"type": "text[]",
|
|
198
|
+
"primaryKey": false,
|
|
199
|
+
"notNull": true
|
|
200
|
+
},
|
|
201
|
+
"visitors": {
|
|
202
|
+
"name": "visitors",
|
|
203
|
+
"type": "integer",
|
|
204
|
+
"primaryKey": false,
|
|
205
|
+
"notNull": true
|
|
206
|
+
},
|
|
207
|
+
"evidence": {
|
|
208
|
+
"name": "evidence",
|
|
209
|
+
"type": "jsonb",
|
|
210
|
+
"primaryKey": false,
|
|
211
|
+
"notNull": true
|
|
212
|
+
},
|
|
213
|
+
"sandbox_cause": {
|
|
214
|
+
"name": "sandbox_cause",
|
|
215
|
+
"type": "text[]",
|
|
216
|
+
"primaryKey": false,
|
|
217
|
+
"notNull": false
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
"indexes": {},
|
|
221
|
+
"foreignKeys": {
|
|
222
|
+
"findings_run_id_runs_id_fk": {
|
|
223
|
+
"name": "findings_run_id_runs_id_fk",
|
|
224
|
+
"tableFrom": "findings",
|
|
225
|
+
"tableTo": "runs",
|
|
226
|
+
"columnsFrom": [
|
|
227
|
+
"run_id"
|
|
228
|
+
],
|
|
229
|
+
"columnsTo": [
|
|
230
|
+
"id"
|
|
231
|
+
],
|
|
232
|
+
"onDelete": "cascade",
|
|
233
|
+
"onUpdate": "no action"
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
"compositePrimaryKeys": {
|
|
237
|
+
"findings_run_id_signature_pk": {
|
|
238
|
+
"name": "findings_run_id_signature_pk",
|
|
239
|
+
"columns": [
|
|
240
|
+
"run_id",
|
|
241
|
+
"signature"
|
|
242
|
+
]
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
"uniqueConstraints": {},
|
|
246
|
+
"policies": {},
|
|
247
|
+
"checkConstraints": {},
|
|
248
|
+
"isRLSEnabled": false
|
|
249
|
+
},
|
|
250
|
+
"public.runs": {
|
|
251
|
+
"name": "runs",
|
|
252
|
+
"schema": "",
|
|
253
|
+
"columns": {
|
|
254
|
+
"id": {
|
|
255
|
+
"name": "id",
|
|
256
|
+
"type": "uuid",
|
|
257
|
+
"primaryKey": true,
|
|
258
|
+
"notNull": true,
|
|
259
|
+
"default": "gen_random_uuid()"
|
|
260
|
+
},
|
|
261
|
+
"target_url": {
|
|
262
|
+
"name": "target_url",
|
|
263
|
+
"type": "text",
|
|
264
|
+
"primaryKey": false,
|
|
265
|
+
"notNull": true
|
|
266
|
+
},
|
|
267
|
+
"goal": {
|
|
268
|
+
"name": "goal",
|
|
269
|
+
"type": "text",
|
|
270
|
+
"primaryKey": false,
|
|
271
|
+
"notNull": true
|
|
272
|
+
},
|
|
273
|
+
"icp": {
|
|
274
|
+
"name": "icp",
|
|
275
|
+
"type": "text",
|
|
276
|
+
"primaryKey": false,
|
|
277
|
+
"notNull": false
|
|
278
|
+
},
|
|
279
|
+
"tier": {
|
|
280
|
+
"name": "tier",
|
|
281
|
+
"type": "text",
|
|
282
|
+
"primaryKey": false,
|
|
283
|
+
"notNull": false
|
|
284
|
+
},
|
|
285
|
+
"unit_kind": {
|
|
286
|
+
"name": "unit_kind",
|
|
287
|
+
"type": "text",
|
|
288
|
+
"primaryKey": false,
|
|
289
|
+
"notNull": false
|
|
290
|
+
},
|
|
291
|
+
"status": {
|
|
292
|
+
"name": "status",
|
|
293
|
+
"type": "text",
|
|
294
|
+
"primaryKey": false,
|
|
295
|
+
"notNull": true,
|
|
296
|
+
"default": "'queued'"
|
|
297
|
+
},
|
|
298
|
+
"model": {
|
|
299
|
+
"name": "model",
|
|
300
|
+
"type": "text",
|
|
301
|
+
"primaryKey": false,
|
|
302
|
+
"notNull": false
|
|
303
|
+
},
|
|
304
|
+
"estimate_low_usd": {
|
|
305
|
+
"name": "estimate_low_usd",
|
|
306
|
+
"type": "double precision",
|
|
307
|
+
"primaryKey": false,
|
|
308
|
+
"notNull": false
|
|
309
|
+
},
|
|
310
|
+
"estimate_high_usd": {
|
|
311
|
+
"name": "estimate_high_usd",
|
|
312
|
+
"type": "double precision",
|
|
313
|
+
"primaryKey": false,
|
|
314
|
+
"notNull": false
|
|
315
|
+
},
|
|
316
|
+
"cost_usd": {
|
|
317
|
+
"name": "cost_usd",
|
|
318
|
+
"type": "double precision",
|
|
319
|
+
"primaryKey": false,
|
|
320
|
+
"notNull": false
|
|
321
|
+
},
|
|
322
|
+
"input_tokens": {
|
|
323
|
+
"name": "input_tokens",
|
|
324
|
+
"type": "integer",
|
|
325
|
+
"primaryKey": false,
|
|
326
|
+
"notNull": false
|
|
327
|
+
},
|
|
328
|
+
"output_tokens": {
|
|
329
|
+
"name": "output_tokens",
|
|
330
|
+
"type": "integer",
|
|
331
|
+
"primaryKey": false,
|
|
332
|
+
"notNull": false
|
|
333
|
+
},
|
|
334
|
+
"report_md": {
|
|
335
|
+
"name": "report_md",
|
|
336
|
+
"type": "text",
|
|
337
|
+
"primaryKey": false,
|
|
338
|
+
"notNull": false
|
|
339
|
+
},
|
|
340
|
+
"created_at": {
|
|
341
|
+
"name": "created_at",
|
|
342
|
+
"type": "timestamp with time zone",
|
|
343
|
+
"primaryKey": false,
|
|
344
|
+
"notNull": true,
|
|
345
|
+
"default": "now()"
|
|
346
|
+
},
|
|
347
|
+
"started_at": {
|
|
348
|
+
"name": "started_at",
|
|
349
|
+
"type": "timestamp with time zone",
|
|
350
|
+
"primaryKey": false,
|
|
351
|
+
"notNull": false
|
|
352
|
+
},
|
|
353
|
+
"finished_at": {
|
|
354
|
+
"name": "finished_at",
|
|
355
|
+
"type": "timestamp with time zone",
|
|
356
|
+
"primaryKey": false,
|
|
357
|
+
"notNull": false
|
|
358
|
+
}
|
|
359
|
+
},
|
|
360
|
+
"indexes": {
|
|
361
|
+
"runs_created_at_idx": {
|
|
362
|
+
"name": "runs_created_at_idx",
|
|
363
|
+
"columns": [
|
|
364
|
+
{
|
|
365
|
+
"expression": "created_at",
|
|
366
|
+
"isExpression": false,
|
|
367
|
+
"asc": false,
|
|
368
|
+
"nulls": "last"
|
|
369
|
+
}
|
|
370
|
+
],
|
|
371
|
+
"isUnique": false,
|
|
372
|
+
"concurrently": false,
|
|
373
|
+
"method": "btree",
|
|
374
|
+
"with": {}
|
|
375
|
+
}
|
|
376
|
+
},
|
|
377
|
+
"foreignKeys": {},
|
|
378
|
+
"compositePrimaryKeys": {},
|
|
379
|
+
"uniqueConstraints": {},
|
|
380
|
+
"policies": {},
|
|
381
|
+
"checkConstraints": {},
|
|
382
|
+
"isRLSEnabled": false
|
|
383
|
+
},
|
|
384
|
+
"public.sessions": {
|
|
385
|
+
"name": "sessions",
|
|
386
|
+
"schema": "",
|
|
387
|
+
"columns": {
|
|
388
|
+
"run_id": {
|
|
389
|
+
"name": "run_id",
|
|
390
|
+
"type": "uuid",
|
|
391
|
+
"primaryKey": false,
|
|
392
|
+
"notNull": true
|
|
393
|
+
},
|
|
394
|
+
"agent_id": {
|
|
395
|
+
"name": "agent_id",
|
|
396
|
+
"type": "text",
|
|
397
|
+
"primaryKey": false,
|
|
398
|
+
"notNull": true
|
|
399
|
+
},
|
|
400
|
+
"goal": {
|
|
401
|
+
"name": "goal",
|
|
402
|
+
"type": "text",
|
|
403
|
+
"primaryKey": false,
|
|
404
|
+
"notNull": true
|
|
405
|
+
},
|
|
406
|
+
"outcome": {
|
|
407
|
+
"name": "outcome",
|
|
408
|
+
"type": "text",
|
|
409
|
+
"primaryKey": false,
|
|
410
|
+
"notNull": false
|
|
411
|
+
},
|
|
412
|
+
"outcome_note": {
|
|
413
|
+
"name": "outcome_note",
|
|
414
|
+
"type": "text",
|
|
415
|
+
"primaryKey": false,
|
|
416
|
+
"notNull": false
|
|
417
|
+
},
|
|
418
|
+
"input_tokens": {
|
|
419
|
+
"name": "input_tokens",
|
|
420
|
+
"type": "integer",
|
|
421
|
+
"primaryKey": false,
|
|
422
|
+
"notNull": false
|
|
423
|
+
},
|
|
424
|
+
"output_tokens": {
|
|
425
|
+
"name": "output_tokens",
|
|
426
|
+
"type": "integer",
|
|
427
|
+
"primaryKey": false,
|
|
428
|
+
"notNull": false
|
|
429
|
+
},
|
|
430
|
+
"cost_usd": {
|
|
431
|
+
"name": "cost_usd",
|
|
432
|
+
"type": "double precision",
|
|
433
|
+
"primaryKey": false,
|
|
434
|
+
"notNull": false
|
|
435
|
+
},
|
|
436
|
+
"started_at": {
|
|
437
|
+
"name": "started_at",
|
|
438
|
+
"type": "timestamp with time zone",
|
|
439
|
+
"primaryKey": false,
|
|
440
|
+
"notNull": true,
|
|
441
|
+
"default": "now()"
|
|
442
|
+
},
|
|
443
|
+
"finished_at": {
|
|
444
|
+
"name": "finished_at",
|
|
445
|
+
"type": "timestamp with time zone",
|
|
446
|
+
"primaryKey": false,
|
|
447
|
+
"notNull": false
|
|
448
|
+
}
|
|
449
|
+
},
|
|
450
|
+
"indexes": {},
|
|
451
|
+
"foreignKeys": {
|
|
452
|
+
"sessions_run_id_runs_id_fk": {
|
|
453
|
+
"name": "sessions_run_id_runs_id_fk",
|
|
454
|
+
"tableFrom": "sessions",
|
|
455
|
+
"tableTo": "runs",
|
|
456
|
+
"columnsFrom": [
|
|
457
|
+
"run_id"
|
|
458
|
+
],
|
|
459
|
+
"columnsTo": [
|
|
460
|
+
"id"
|
|
461
|
+
],
|
|
462
|
+
"onDelete": "cascade",
|
|
463
|
+
"onUpdate": "no action"
|
|
464
|
+
}
|
|
465
|
+
},
|
|
466
|
+
"compositePrimaryKeys": {
|
|
467
|
+
"sessions_run_id_agent_id_pk": {
|
|
468
|
+
"name": "sessions_run_id_agent_id_pk",
|
|
469
|
+
"columns": [
|
|
470
|
+
"run_id",
|
|
471
|
+
"agent_id"
|
|
472
|
+
]
|
|
473
|
+
}
|
|
474
|
+
},
|
|
475
|
+
"uniqueConstraints": {},
|
|
476
|
+
"policies": {},
|
|
477
|
+
"checkConstraints": {},
|
|
478
|
+
"isRLSEnabled": false
|
|
479
|
+
},
|
|
480
|
+
"public.side_effects": {
|
|
481
|
+
"name": "side_effects",
|
|
482
|
+
"schema": "",
|
|
483
|
+
"columns": {
|
|
484
|
+
"id": {
|
|
485
|
+
"name": "id",
|
|
486
|
+
"type": "integer",
|
|
487
|
+
"primaryKey": true,
|
|
488
|
+
"notNull": true,
|
|
489
|
+
"identity": {
|
|
490
|
+
"type": "always",
|
|
491
|
+
"name": "side_effects_id_seq",
|
|
492
|
+
"schema": "public",
|
|
493
|
+
"increment": "1",
|
|
494
|
+
"startWith": "1",
|
|
495
|
+
"minValue": "1",
|
|
496
|
+
"maxValue": "2147483647",
|
|
497
|
+
"cache": "1",
|
|
498
|
+
"cycle": false
|
|
499
|
+
}
|
|
500
|
+
},
|
|
501
|
+
"run_id": {
|
|
502
|
+
"name": "run_id",
|
|
503
|
+
"type": "uuid",
|
|
504
|
+
"primaryKey": false,
|
|
505
|
+
"notNull": true
|
|
506
|
+
},
|
|
507
|
+
"outcome": {
|
|
508
|
+
"name": "outcome",
|
|
509
|
+
"type": "text",
|
|
510
|
+
"primaryKey": false,
|
|
511
|
+
"notNull": true
|
|
512
|
+
},
|
|
513
|
+
"rule": {
|
|
514
|
+
"name": "rule",
|
|
515
|
+
"type": "text",
|
|
516
|
+
"primaryKey": false,
|
|
517
|
+
"notNull": false
|
|
518
|
+
},
|
|
519
|
+
"channel": {
|
|
520
|
+
"name": "channel",
|
|
521
|
+
"type": "text",
|
|
522
|
+
"primaryKey": false,
|
|
523
|
+
"notNull": true
|
|
524
|
+
},
|
|
525
|
+
"host": {
|
|
526
|
+
"name": "host",
|
|
527
|
+
"type": "text",
|
|
528
|
+
"primaryKey": false,
|
|
529
|
+
"notNull": true
|
|
530
|
+
},
|
|
531
|
+
"url": {
|
|
532
|
+
"name": "url",
|
|
533
|
+
"type": "text",
|
|
534
|
+
"primaryKey": false,
|
|
535
|
+
"notNull": true
|
|
536
|
+
},
|
|
537
|
+
"recipient": {
|
|
538
|
+
"name": "recipient",
|
|
539
|
+
"type": "text",
|
|
540
|
+
"primaryKey": false,
|
|
541
|
+
"notNull": false
|
|
542
|
+
},
|
|
543
|
+
"summary": {
|
|
544
|
+
"name": "summary",
|
|
545
|
+
"type": "text",
|
|
546
|
+
"primaryKey": false,
|
|
547
|
+
"notNull": false
|
|
548
|
+
},
|
|
549
|
+
"at": {
|
|
550
|
+
"name": "at",
|
|
551
|
+
"type": "timestamp with time zone",
|
|
552
|
+
"primaryKey": false,
|
|
553
|
+
"notNull": true,
|
|
554
|
+
"default": "now()"
|
|
555
|
+
}
|
|
556
|
+
},
|
|
557
|
+
"indexes": {
|
|
558
|
+
"side_effects_run_idx": {
|
|
559
|
+
"name": "side_effects_run_idx",
|
|
560
|
+
"columns": [
|
|
561
|
+
{
|
|
562
|
+
"expression": "run_id",
|
|
563
|
+
"isExpression": false,
|
|
564
|
+
"asc": true,
|
|
565
|
+
"nulls": "last"
|
|
566
|
+
}
|
|
567
|
+
],
|
|
568
|
+
"isUnique": false,
|
|
569
|
+
"concurrently": false,
|
|
570
|
+
"method": "btree",
|
|
571
|
+
"with": {}
|
|
572
|
+
}
|
|
573
|
+
},
|
|
574
|
+
"foreignKeys": {
|
|
575
|
+
"side_effects_run_id_runs_id_fk": {
|
|
576
|
+
"name": "side_effects_run_id_runs_id_fk",
|
|
577
|
+
"tableFrom": "side_effects",
|
|
578
|
+
"tableTo": "runs",
|
|
579
|
+
"columnsFrom": [
|
|
580
|
+
"run_id"
|
|
581
|
+
],
|
|
582
|
+
"columnsTo": [
|
|
583
|
+
"id"
|
|
584
|
+
],
|
|
585
|
+
"onDelete": "cascade",
|
|
586
|
+
"onUpdate": "no action"
|
|
587
|
+
}
|
|
588
|
+
},
|
|
589
|
+
"compositePrimaryKeys": {},
|
|
590
|
+
"uniqueConstraints": {},
|
|
591
|
+
"policies": {},
|
|
592
|
+
"checkConstraints": {},
|
|
593
|
+
"isRLSEnabled": false
|
|
594
|
+
},
|
|
595
|
+
"public.steps": {
|
|
596
|
+
"name": "steps",
|
|
597
|
+
"schema": "",
|
|
598
|
+
"columns": {
|
|
599
|
+
"run_id": {
|
|
600
|
+
"name": "run_id",
|
|
601
|
+
"type": "uuid",
|
|
602
|
+
"primaryKey": false,
|
|
603
|
+
"notNull": true
|
|
604
|
+
},
|
|
605
|
+
"agent_id": {
|
|
606
|
+
"name": "agent_id",
|
|
607
|
+
"type": "text",
|
|
608
|
+
"primaryKey": false,
|
|
609
|
+
"notNull": true
|
|
610
|
+
},
|
|
611
|
+
"index": {
|
|
612
|
+
"name": "index",
|
|
613
|
+
"type": "integer",
|
|
614
|
+
"primaryKey": false,
|
|
615
|
+
"notNull": true
|
|
616
|
+
},
|
|
617
|
+
"url": {
|
|
618
|
+
"name": "url",
|
|
619
|
+
"type": "text",
|
|
620
|
+
"primaryKey": false,
|
|
621
|
+
"notNull": true
|
|
622
|
+
},
|
|
623
|
+
"title": {
|
|
624
|
+
"name": "title",
|
|
625
|
+
"type": "text",
|
|
626
|
+
"primaryKey": false,
|
|
627
|
+
"notNull": false
|
|
628
|
+
},
|
|
629
|
+
"action": {
|
|
630
|
+
"name": "action",
|
|
631
|
+
"type": "jsonb",
|
|
632
|
+
"primaryKey": false,
|
|
633
|
+
"notNull": true
|
|
634
|
+
},
|
|
635
|
+
"reasoning": {
|
|
636
|
+
"name": "reasoning",
|
|
637
|
+
"type": "text",
|
|
638
|
+
"primaryKey": false,
|
|
639
|
+
"notNull": false
|
|
640
|
+
},
|
|
641
|
+
"observation": {
|
|
642
|
+
"name": "observation",
|
|
643
|
+
"type": "jsonb",
|
|
644
|
+
"primaryKey": false,
|
|
645
|
+
"notNull": true
|
|
646
|
+
},
|
|
647
|
+
"signals": {
|
|
648
|
+
"name": "signals",
|
|
649
|
+
"type": "jsonb",
|
|
650
|
+
"primaryKey": false,
|
|
651
|
+
"notNull": true
|
|
652
|
+
},
|
|
653
|
+
"error": {
|
|
654
|
+
"name": "error",
|
|
655
|
+
"type": "text",
|
|
656
|
+
"primaryKey": false,
|
|
657
|
+
"notNull": false
|
|
658
|
+
},
|
|
659
|
+
"blocked": {
|
|
660
|
+
"name": "blocked",
|
|
661
|
+
"type": "text",
|
|
662
|
+
"primaryKey": false,
|
|
663
|
+
"notNull": false
|
|
664
|
+
},
|
|
665
|
+
"screenshot_url": {
|
|
666
|
+
"name": "screenshot_url",
|
|
667
|
+
"type": "text",
|
|
668
|
+
"primaryKey": false,
|
|
669
|
+
"notNull": false
|
|
670
|
+
},
|
|
671
|
+
"created_at": {
|
|
672
|
+
"name": "created_at",
|
|
673
|
+
"type": "timestamp with time zone",
|
|
674
|
+
"primaryKey": false,
|
|
675
|
+
"notNull": true,
|
|
676
|
+
"default": "now()"
|
|
677
|
+
}
|
|
678
|
+
},
|
|
679
|
+
"indexes": {},
|
|
680
|
+
"foreignKeys": {
|
|
681
|
+
"steps_run_id_runs_id_fk": {
|
|
682
|
+
"name": "steps_run_id_runs_id_fk",
|
|
683
|
+
"tableFrom": "steps",
|
|
684
|
+
"tableTo": "runs",
|
|
685
|
+
"columnsFrom": [
|
|
686
|
+
"run_id"
|
|
687
|
+
],
|
|
688
|
+
"columnsTo": [
|
|
689
|
+
"id"
|
|
690
|
+
],
|
|
691
|
+
"onDelete": "cascade",
|
|
692
|
+
"onUpdate": "no action"
|
|
693
|
+
}
|
|
694
|
+
},
|
|
695
|
+
"compositePrimaryKeys": {
|
|
696
|
+
"steps_run_id_agent_id_index_pk": {
|
|
697
|
+
"name": "steps_run_id_agent_id_index_pk",
|
|
698
|
+
"columns": [
|
|
699
|
+
"run_id",
|
|
700
|
+
"agent_id",
|
|
701
|
+
"index"
|
|
702
|
+
]
|
|
703
|
+
}
|
|
704
|
+
},
|
|
705
|
+
"uniqueConstraints": {},
|
|
706
|
+
"policies": {},
|
|
707
|
+
"checkConstraints": {},
|
|
708
|
+
"isRLSEnabled": false
|
|
709
|
+
}
|
|
710
|
+
},
|
|
711
|
+
"enums": {},
|
|
712
|
+
"schemas": {},
|
|
713
|
+
"sequences": {},
|
|
714
|
+
"roles": {},
|
|
715
|
+
"policies": {},
|
|
716
|
+
"views": {},
|
|
717
|
+
"_meta": {
|
|
718
|
+
"columns": {},
|
|
719
|
+
"schemas": {},
|
|
720
|
+
"tables": {}
|
|
721
|
+
}
|
|
722
|
+
}
|