loopable-cli 0.1.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.
Files changed (133) hide show
  1. package/.output/nitro.json +17 -0
  2. package/.output/public/apple-touch-icon.png +0 -0
  3. package/.output/public/assets/_connectorId-BWjYn5tm.js +1 -0
  4. package/.output/public/assets/_loopId-Ds4RkyEc.js +1 -0
  5. package/.output/public/assets/_taskId-BOzICXDf.js +1 -0
  6. package/.output/public/assets/alert-Bn9-Zm0l.js +1 -0
  7. package/.output/public/assets/arrow-left-BF9juV9T.js +1 -0
  8. package/.output/public/assets/arrow-right-CzqvnOY1.js +1 -0
  9. package/.output/public/assets/button-HCY6DCY-.js +1 -0
  10. package/.output/public/assets/connection-status-CYZB8kLy.js +1 -0
  11. package/.output/public/assets/connector-icon-BZ_MUJV_.js +1 -0
  12. package/.output/public/assets/connectors-BvzttfSu.js +1 -0
  13. package/.output/public/assets/connectors-DdJNwRN_.js +1 -0
  14. package/.output/public/assets/external-link-D46X-bXa.js +1 -0
  15. package/.output/public/assets/gaps-D-I6xiDc.js +1 -0
  16. package/.output/public/assets/geist-cyrillic-ext-wght-normal-DjL33-gN.woff2 +0 -0
  17. package/.output/public/assets/geist-cyrillic-wght-normal-BEAKL7Jp.woff2 +0 -0
  18. package/.output/public/assets/geist-latin-ext-wght-normal-DC-KSUi6.woff2 +0 -0
  19. package/.output/public/assets/geist-latin-wght-normal-BgDaEnEv.woff2 +0 -0
  20. package/.output/public/assets/geist-vietnamese-wght-normal-6IgcOCM7.woff2 +0 -0
  21. package/.output/public/assets/inbox-BUUu9xxE.js +1 -0
  22. package/.output/public/assets/index-ztzex0FN.js +10 -0
  23. package/.output/public/assets/loader-CcBl2u8m.js +1 -0
  24. package/.output/public/assets/loop-form-dB3CLcZb.js +1 -0
  25. package/.output/public/assets/loops-DRunQrxL.js +1 -0
  26. package/.output/public/assets/loops-oSdqMd29.js +1 -0
  27. package/.output/public/assets/manifests-DNMqf7Vi.js +7 -0
  28. package/.output/public/assets/new-uyFxVjuB.js +1 -0
  29. package/.output/public/assets/preload-helper-ORbuV86A.js +3 -0
  30. package/.output/public/assets/runners-DSU3r5Ww.js +1 -0
  31. package/.output/public/assets/setting-fields-ixkpdBb-.js +3 -0
  32. package/.output/public/assets/styles-DZL5V1o7.css +2 -0
  33. package/.output/public/assets/switch-d5ummmHY.js +1 -0
  34. package/.output/public/assets/task-list-BpOStt9v.js +1 -0
  35. package/.output/public/assets/tasks-B8MsKgic.js +1 -0
  36. package/.output/public/assets/trash-2-D6u6NpzO.js +1 -0
  37. package/.output/public/favicon.svg +9 -0
  38. package/.output/server/_chunks/ssr-renderer.mjs +26 -0
  39. package/.output/server/_connectorId-8nb5yOzG.mjs +421 -0
  40. package/.output/server/_libs/@base-ui/react+[...].mjs +12841 -0
  41. package/.output/server/_libs/@tanstack/react-router+[...].mjs +14349 -0
  42. package/.output/server/_libs/class-variance-authority+clsx.mjs +69 -0
  43. package/.output/server/_libs/dijkstrajs.mjs +118 -0
  44. package/.output/server/_libs/drizzle-orm.mjs +4349 -0
  45. package/.output/server/_libs/h3+rou3+srvx.mjs +1361 -0
  46. package/.output/server/_libs/lucide-react.mjs +911 -0
  47. package/.output/server/_libs/next-themes.mjs +53 -0
  48. package/.output/server/_libs/pngjs.mjs +1680 -0
  49. package/.output/server/_libs/qrcode.mjs +2583 -0
  50. package/.output/server/_libs/sonner.mjs +955 -0
  51. package/.output/server/_libs/tailwind-merge.mjs +3380 -0
  52. package/.output/server/_libs/tanstack__history.mjs +341 -0
  53. package/.output/server/_libs/ufo.mjs +64 -0
  54. package/.output/server/_loopId-BsUL1SeL.mjs +272 -0
  55. package/.output/server/_runtime.mjs +35 -0
  56. package/.output/server/_ssr/access-zIl15o8y.mjs +42 -0
  57. package/.output/server/_ssr/agents-Btql102J.mjs +657 -0
  58. package/.output/server/_ssr/agents-DAOZPgO2.mjs +76 -0
  59. package/.output/server/_ssr/alert-NEiOCTOl.mjs +37 -0
  60. package/.output/server/_ssr/callback-CUINvl7M.mjs +62 -0
  61. package/.output/server/_ssr/client-CKkOfh-s.mjs +335 -0
  62. package/.output/server/_ssr/connection-status-Bi5peUAk.mjs +31 -0
  63. package/.output/server/_ssr/connections-qnw2GVlP.mjs +2542 -0
  64. package/.output/server/_ssr/connector-icon-DZXQLLFo.mjs +37 -0
  65. package/.output/server/_ssr/connectors-BHNwuIMj.mjs +106 -0
  66. package/.output/server/_ssr/connectors-C28g0i4c.mjs +83 -0
  67. package/.output/server/_ssr/createServerRpc-DPDrnFdH.mjs +12 -0
  68. package/.output/server/_ssr/empty-plugin-adapters-BJ4m9L8g.mjs +5 -0
  69. package/.output/server/_ssr/gaps-RAFSXLZf.mjs +53 -0
  70. package/.output/server/_ssr/inbox-k5zHergU.mjs +35 -0
  71. package/.output/server/_ssr/loop-form-DlObSewZ.mjs +412 -0
  72. package/.output/server/_ssr/loops-APFcP0y6.mjs +311 -0
  73. package/.output/server/_ssr/loops-xt2Bn7_q.mjs +222 -0
  74. package/.output/server/_ssr/new-DfKyd2Wa.mjs +169 -0
  75. package/.output/server/_ssr/router-3WmpE5b_.mjs +1553 -0
  76. package/.output/server/_ssr/runners-By-mwc3F.mjs +32 -0
  77. package/.output/server/_ssr/runners-DI_NxpHC.mjs +116 -0
  78. package/.output/server/_ssr/runners-DtXs4Q8a.mjs +106 -0
  79. package/.output/server/_ssr/secrets-Hqti-niS.mjs +199 -0
  80. package/.output/server/_ssr/setting-fields-8vKFj4df.mjs +92 -0
  81. package/.output/server/_ssr/ssr.mjs +6605 -0
  82. package/.output/server/_ssr/start-Bdc2GJUI.mjs +51 -0
  83. package/.output/server/_ssr/switch-ReNglgH6.mjs +18 -0
  84. package/.output/server/_ssr/task-list-CUITIqkb.mjs +186 -0
  85. package/.output/server/_ssr/tasks-SAjNovX6.mjs +110 -0
  86. package/.output/server/_ssr/tasks-vcoodp_D.mjs +533 -0
  87. package/.output/server/_tanstack-start-manifest_v-C0cP5F0M.mjs +125 -0
  88. package/.output/server/_taskId-CXS3lod0.mjs +249 -0
  89. package/.output/server/index.mjs +541 -0
  90. package/README.md +81 -0
  91. package/dist/cli.mjs +165 -0
  92. package/dist/dispatcher.mjs +9871 -0
  93. package/dist/runner.mjs +657 -0
  94. package/drizzle/0000_cold_demogoblin.sql +29 -0
  95. package/drizzle/0001_fancy_blonde_phantom.sql +13 -0
  96. package/drizzle/0002_spooky_smiling_tiger.sql +16 -0
  97. package/drizzle/0003_small_golden_guardian.sql +25 -0
  98. package/drizzle/0004_wonderful_thunderbolts.sql +39 -0
  99. package/drizzle/0005_named_workflows.sql +7 -0
  100. package/drizzle/0006_signals.sql +18 -0
  101. package/drizzle/0007_review_comments.sql +1 -0
  102. package/drizzle/0008_held_signals.sql +1 -0
  103. package/drizzle/0009_work_item_ref.sql +58 -0
  104. package/drizzle/0010_signal_payload.sql +2 -0
  105. package/drizzle/0011_rule_poll_cursor.sql +1 -0
  106. package/drizzle/0012_loops.sql +63 -0
  107. package/drizzle/0013_loop_owns_action_and_prompt.sql +154 -0
  108. package/drizzle/0014_loop_poll_every.sql +4 -0
  109. package/drizzle/0015_machines.sql +10 -0
  110. package/drizzle/0016_task_machine.sql +1 -0
  111. package/drizzle/0017_loop_machine.sql +1 -0
  112. package/drizzle/0018_runners.sql +1 -0
  113. package/drizzle/0019_task_runner.sql +1 -0
  114. package/drizzle/0020_loop_runner.sql +1 -0
  115. package/drizzle/0021_drop_runner_kind.sql +1 -0
  116. package/drizzle/0022_drop_loop_runner.sql +1 -0
  117. package/drizzle/0023_shared_host.sql +6 -0
  118. package/drizzle/meta/0000_snapshot.json +206 -0
  119. package/drizzle/meta/0001_snapshot.json +284 -0
  120. package/drizzle/meta/0002_snapshot.json +390 -0
  121. package/drizzle/meta/0003_snapshot.json +566 -0
  122. package/drizzle/meta/0004_snapshot.json +633 -0
  123. package/drizzle/meta/0005_snapshot.json +626 -0
  124. package/drizzle/meta/0006_snapshot.json +752 -0
  125. package/drizzle/meta/0007_snapshot.json +759 -0
  126. package/drizzle/meta/0008_snapshot.json +766 -0
  127. package/drizzle/meta/0009_snapshot.json +752 -0
  128. package/drizzle/meta/0010_snapshot.json +766 -0
  129. package/drizzle/meta/0011_snapshot.json +773 -0
  130. package/drizzle/meta/0012_snapshot.json +773 -0
  131. package/drizzle/meta/0013_snapshot.json +817 -0
  132. package/drizzle/meta/_journal.json +174 -0
  133. package/package.json +88 -0
@@ -0,0 +1,817 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "8abbead9-f6a7-47c9-a35f-86b24848c2df",
5
+ "prevId": "e86186a6-81e6-44f0-8d22-af9f26c04370",
6
+ "tables": {
7
+ "agent_settings": {
8
+ "name": "agent_settings",
9
+ "columns": {
10
+ "agent_id": {
11
+ "name": "agent_id",
12
+ "type": "text",
13
+ "primaryKey": true,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "permission_mode": {
18
+ "name": "permission_mode",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false
23
+ },
24
+ "model": {
25
+ "name": "model",
26
+ "type": "text",
27
+ "primaryKey": false,
28
+ "notNull": false,
29
+ "autoincrement": false
30
+ },
31
+ "timeout_ms": {
32
+ "name": "timeout_ms",
33
+ "type": "integer",
34
+ "primaryKey": false,
35
+ "notNull": true,
36
+ "autoincrement": false
37
+ },
38
+ "updated_at": {
39
+ "name": "updated_at",
40
+ "type": "integer",
41
+ "primaryKey": false,
42
+ "notNull": true,
43
+ "autoincrement": false,
44
+ "default": "(unixepoch() * 1000)"
45
+ }
46
+ },
47
+ "indexes": {},
48
+ "foreignKeys": {},
49
+ "compositePrimaryKeys": {},
50
+ "uniqueConstraints": {},
51
+ "checkConstraints": {}
52
+ },
53
+ "app_settings": {
54
+ "name": "app_settings",
55
+ "columns": {
56
+ "key": {
57
+ "name": "key",
58
+ "type": "text",
59
+ "primaryKey": true,
60
+ "notNull": true,
61
+ "autoincrement": false
62
+ },
63
+ "value": {
64
+ "name": "value",
65
+ "type": "text",
66
+ "primaryKey": false,
67
+ "notNull": true,
68
+ "autoincrement": false
69
+ },
70
+ "updated_at": {
71
+ "name": "updated_at",
72
+ "type": "integer",
73
+ "primaryKey": false,
74
+ "notNull": true,
75
+ "autoincrement": false,
76
+ "default": "(unixepoch() * 1000)"
77
+ }
78
+ },
79
+ "indexes": {},
80
+ "foreignKeys": {},
81
+ "compositePrimaryKeys": {},
82
+ "uniqueConstraints": {},
83
+ "checkConstraints": {}
84
+ },
85
+ "auth_attempts": {
86
+ "name": "auth_attempts",
87
+ "columns": {
88
+ "state": {
89
+ "name": "state",
90
+ "type": "text",
91
+ "primaryKey": true,
92
+ "notNull": true,
93
+ "autoincrement": false
94
+ },
95
+ "connector_id": {
96
+ "name": "connector_id",
97
+ "type": "text",
98
+ "primaryKey": false,
99
+ "notNull": true,
100
+ "autoincrement": false
101
+ },
102
+ "verifier": {
103
+ "name": "verifier",
104
+ "type": "text",
105
+ "primaryKey": false,
106
+ "notNull": true,
107
+ "autoincrement": false
108
+ },
109
+ "redirect_uri": {
110
+ "name": "redirect_uri",
111
+ "type": "text",
112
+ "primaryKey": false,
113
+ "notNull": true,
114
+ "autoincrement": false
115
+ },
116
+ "return_to": {
117
+ "name": "return_to",
118
+ "type": "text",
119
+ "primaryKey": false,
120
+ "notNull": false,
121
+ "autoincrement": false
122
+ },
123
+ "expires_at": {
124
+ "name": "expires_at",
125
+ "type": "integer",
126
+ "primaryKey": false,
127
+ "notNull": true,
128
+ "autoincrement": false
129
+ },
130
+ "created_at": {
131
+ "name": "created_at",
132
+ "type": "integer",
133
+ "primaryKey": false,
134
+ "notNull": true,
135
+ "autoincrement": false,
136
+ "default": "(unixepoch() * 1000)"
137
+ }
138
+ },
139
+ "indexes": {},
140
+ "foreignKeys": {},
141
+ "compositePrimaryKeys": {},
142
+ "uniqueConstraints": {},
143
+ "checkConstraints": {}
144
+ },
145
+ "connections": {
146
+ "name": "connections",
147
+ "columns": {
148
+ "id": {
149
+ "name": "id",
150
+ "type": "text",
151
+ "primaryKey": true,
152
+ "notNull": true,
153
+ "autoincrement": false
154
+ },
155
+ "connector_id": {
156
+ "name": "connector_id",
157
+ "type": "text",
158
+ "primaryKey": false,
159
+ "notNull": true,
160
+ "autoincrement": false
161
+ },
162
+ "status": {
163
+ "name": "status",
164
+ "type": "text",
165
+ "primaryKey": false,
166
+ "notNull": true,
167
+ "autoincrement": false,
168
+ "default": "'connected'"
169
+ },
170
+ "account_id": {
171
+ "name": "account_id",
172
+ "type": "text",
173
+ "primaryKey": false,
174
+ "notNull": true,
175
+ "autoincrement": false
176
+ },
177
+ "account_label": {
178
+ "name": "account_label",
179
+ "type": "text",
180
+ "primaryKey": false,
181
+ "notNull": true,
182
+ "autoincrement": false
183
+ },
184
+ "account_url": {
185
+ "name": "account_url",
186
+ "type": "text",
187
+ "primaryKey": false,
188
+ "notNull": false,
189
+ "autoincrement": false
190
+ },
191
+ "avatar_url": {
192
+ "name": "avatar_url",
193
+ "type": "text",
194
+ "primaryKey": false,
195
+ "notNull": false,
196
+ "autoincrement": false
197
+ },
198
+ "scopes": {
199
+ "name": "scopes",
200
+ "type": "text",
201
+ "primaryKey": false,
202
+ "notNull": false,
203
+ "autoincrement": false
204
+ },
205
+ "settings": {
206
+ "name": "settings",
207
+ "type": "text",
208
+ "primaryKey": false,
209
+ "notNull": true,
210
+ "autoincrement": false,
211
+ "default": "'{}'"
212
+ },
213
+ "cursor": {
214
+ "name": "cursor",
215
+ "type": "text",
216
+ "primaryKey": false,
217
+ "notNull": false,
218
+ "autoincrement": false
219
+ },
220
+ "last_synced_at": {
221
+ "name": "last_synced_at",
222
+ "type": "integer",
223
+ "primaryKey": false,
224
+ "notNull": false,
225
+ "autoincrement": false
226
+ },
227
+ "last_error": {
228
+ "name": "last_error",
229
+ "type": "text",
230
+ "primaryKey": false,
231
+ "notNull": false,
232
+ "autoincrement": false
233
+ },
234
+ "created_at": {
235
+ "name": "created_at",
236
+ "type": "integer",
237
+ "primaryKey": false,
238
+ "notNull": true,
239
+ "autoincrement": false,
240
+ "default": "(unixepoch() * 1000)"
241
+ },
242
+ "updated_at": {
243
+ "name": "updated_at",
244
+ "type": "integer",
245
+ "primaryKey": false,
246
+ "notNull": true,
247
+ "autoincrement": false,
248
+ "default": "(unixepoch() * 1000)"
249
+ }
250
+ },
251
+ "indexes": {
252
+ "connections_account_unique": {
253
+ "name": "connections_account_unique",
254
+ "columns": [
255
+ "connector_id",
256
+ "account_id"
257
+ ],
258
+ "isUnique": true
259
+ },
260
+ "connections_connector_idx": {
261
+ "name": "connections_connector_idx",
262
+ "columns": [
263
+ "connector_id"
264
+ ],
265
+ "isUnique": false
266
+ }
267
+ },
268
+ "foreignKeys": {},
269
+ "compositePrimaryKeys": {},
270
+ "uniqueConstraints": {},
271
+ "checkConstraints": {}
272
+ },
273
+ "loops": {
274
+ "name": "loops",
275
+ "columns": {
276
+ "id": {
277
+ "name": "id",
278
+ "type": "text",
279
+ "primaryKey": true,
280
+ "notNull": true,
281
+ "autoincrement": false
282
+ },
283
+ "name": {
284
+ "name": "name",
285
+ "type": "text",
286
+ "primaryKey": false,
287
+ "notNull": true,
288
+ "autoincrement": false
289
+ },
290
+ "enabled": {
291
+ "name": "enabled",
292
+ "type": "integer",
293
+ "primaryKey": false,
294
+ "notNull": true,
295
+ "autoincrement": false,
296
+ "default": true
297
+ },
298
+ "priority": {
299
+ "name": "priority",
300
+ "type": "integer",
301
+ "primaryKey": false,
302
+ "notNull": true,
303
+ "autoincrement": false
304
+ },
305
+ "connector_id": {
306
+ "name": "connector_id",
307
+ "type": "text",
308
+ "primaryKey": false,
309
+ "notNull": true,
310
+ "autoincrement": false
311
+ },
312
+ "workflow_id": {
313
+ "name": "workflow_id",
314
+ "type": "text",
315
+ "primaryKey": false,
316
+ "notNull": true,
317
+ "autoincrement": false
318
+ },
319
+ "settings": {
320
+ "name": "settings",
321
+ "type": "text",
322
+ "primaryKey": false,
323
+ "notNull": true,
324
+ "autoincrement": false,
325
+ "default": "'{}'"
326
+ },
327
+ "prompt": {
328
+ "name": "prompt",
329
+ "type": "text",
330
+ "primaryKey": false,
331
+ "notNull": true,
332
+ "autoincrement": false
333
+ },
334
+ "guidance": {
335
+ "name": "guidance",
336
+ "type": "text",
337
+ "primaryKey": false,
338
+ "notNull": false,
339
+ "autoincrement": false
340
+ },
341
+ "agent_id": {
342
+ "name": "agent_id",
343
+ "type": "text",
344
+ "primaryKey": false,
345
+ "notNull": false,
346
+ "autoincrement": false
347
+ },
348
+ "action_connector_id": {
349
+ "name": "action_connector_id",
350
+ "type": "text",
351
+ "primaryKey": false,
352
+ "notNull": true,
353
+ "autoincrement": false
354
+ },
355
+ "action_id": {
356
+ "name": "action_id",
357
+ "type": "text",
358
+ "primaryKey": false,
359
+ "notNull": true,
360
+ "autoincrement": false
361
+ },
362
+ "action_target": {
363
+ "name": "action_target",
364
+ "type": "text",
365
+ "primaryKey": false,
366
+ "notNull": true,
367
+ "autoincrement": false,
368
+ "default": "'{}'"
369
+ },
370
+ "polled_at": {
371
+ "name": "polled_at",
372
+ "type": "integer",
373
+ "primaryKey": false,
374
+ "notNull": false,
375
+ "autoincrement": false
376
+ },
377
+ "poll_error": {
378
+ "name": "poll_error",
379
+ "type": "text",
380
+ "primaryKey": false,
381
+ "notNull": false,
382
+ "autoincrement": false
383
+ },
384
+ "poll_cursor": {
385
+ "name": "poll_cursor",
386
+ "type": "text",
387
+ "primaryKey": false,
388
+ "notNull": false,
389
+ "autoincrement": false
390
+ },
391
+ "created_at": {
392
+ "name": "created_at",
393
+ "type": "integer",
394
+ "primaryKey": false,
395
+ "notNull": true,
396
+ "autoincrement": false,
397
+ "default": "(unixepoch() * 1000)"
398
+ },
399
+ "updated_at": {
400
+ "name": "updated_at",
401
+ "type": "integer",
402
+ "primaryKey": false,
403
+ "notNull": true,
404
+ "autoincrement": false,
405
+ "default": "(unixepoch() * 1000)"
406
+ }
407
+ },
408
+ "indexes": {
409
+ "loops_priority_idx": {
410
+ "name": "loops_priority_idx",
411
+ "columns": [
412
+ "priority"
413
+ ],
414
+ "isUnique": false
415
+ }
416
+ },
417
+ "foreignKeys": {},
418
+ "compositePrimaryKeys": {},
419
+ "uniqueConstraints": {},
420
+ "checkConstraints": {}
421
+ },
422
+ "signals": {
423
+ "name": "signals",
424
+ "columns": {
425
+ "loop_id": {
426
+ "name": "loop_id",
427
+ "type": "text",
428
+ "primaryKey": false,
429
+ "notNull": true,
430
+ "autoincrement": false
431
+ },
432
+ "key": {
433
+ "name": "key",
434
+ "type": "text",
435
+ "primaryKey": false,
436
+ "notNull": true,
437
+ "autoincrement": false
438
+ },
439
+ "outcome": {
440
+ "name": "outcome",
441
+ "type": "text",
442
+ "primaryKey": false,
443
+ "notNull": true,
444
+ "autoincrement": false
445
+ },
446
+ "source_kind": {
447
+ "name": "source_kind",
448
+ "type": "text",
449
+ "primaryKey": false,
450
+ "notNull": true,
451
+ "autoincrement": false
452
+ },
453
+ "source_ref": {
454
+ "name": "source_ref",
455
+ "type": "text",
456
+ "primaryKey": false,
457
+ "notNull": true,
458
+ "autoincrement": false
459
+ },
460
+ "source_payload": {
461
+ "name": "source_payload",
462
+ "type": "text",
463
+ "primaryKey": false,
464
+ "notNull": false,
465
+ "autoincrement": false
466
+ },
467
+ "source_title": {
468
+ "name": "source_title",
469
+ "type": "text",
470
+ "primaryKey": false,
471
+ "notNull": true,
472
+ "autoincrement": false
473
+ },
474
+ "source_url": {
475
+ "name": "source_url",
476
+ "type": "text",
477
+ "primaryKey": false,
478
+ "notNull": true,
479
+ "autoincrement": false
480
+ },
481
+ "hold": {
482
+ "name": "hold",
483
+ "type": "text",
484
+ "primaryKey": false,
485
+ "notNull": false,
486
+ "autoincrement": false
487
+ },
488
+ "task_id": {
489
+ "name": "task_id",
490
+ "type": "text",
491
+ "primaryKey": false,
492
+ "notNull": false,
493
+ "autoincrement": false
494
+ },
495
+ "seen_at": {
496
+ "name": "seen_at",
497
+ "type": "integer",
498
+ "primaryKey": false,
499
+ "notNull": true,
500
+ "autoincrement": false,
501
+ "default": "(unixepoch() * 1000)"
502
+ }
503
+ },
504
+ "indexes": {
505
+ "signals_outcome_idx": {
506
+ "name": "signals_outcome_idx",
507
+ "columns": [
508
+ "loop_id",
509
+ "outcome"
510
+ ],
511
+ "isUnique": false
512
+ }
513
+ },
514
+ "foreignKeys": {
515
+ "signals_loop_id_loops_id_fk": {
516
+ "name": "signals_loop_id_loops_id_fk",
517
+ "tableFrom": "signals",
518
+ "tableTo": "loops",
519
+ "columnsFrom": [
520
+ "loop_id"
521
+ ],
522
+ "columnsTo": [
523
+ "id"
524
+ ],
525
+ "onDelete": "cascade",
526
+ "onUpdate": "no action"
527
+ }
528
+ },
529
+ "compositePrimaryKeys": {
530
+ "signals_loop_id_key_pk": {
531
+ "columns": [
532
+ "loop_id",
533
+ "key"
534
+ ],
535
+ "name": "signals_loop_id_key_pk"
536
+ }
537
+ },
538
+ "uniqueConstraints": {},
539
+ "checkConstraints": {}
540
+ },
541
+ "tasks": {
542
+ "name": "tasks",
543
+ "columns": {
544
+ "id": {
545
+ "name": "id",
546
+ "type": "text",
547
+ "primaryKey": true,
548
+ "notNull": true,
549
+ "autoincrement": false
550
+ },
551
+ "loop_id": {
552
+ "name": "loop_id",
553
+ "type": "text",
554
+ "primaryKey": false,
555
+ "notNull": true,
556
+ "autoincrement": false
557
+ },
558
+ "connector_id": {
559
+ "name": "connector_id",
560
+ "type": "text",
561
+ "primaryKey": false,
562
+ "notNull": true,
563
+ "autoincrement": false
564
+ },
565
+ "state": {
566
+ "name": "state",
567
+ "type": "text",
568
+ "primaryKey": false,
569
+ "notNull": true,
570
+ "autoincrement": false,
571
+ "default": "'queued'"
572
+ },
573
+ "source_url": {
574
+ "name": "source_url",
575
+ "type": "text",
576
+ "primaryKey": false,
577
+ "notNull": true,
578
+ "autoincrement": false
579
+ },
580
+ "source_kind": {
581
+ "name": "source_kind",
582
+ "type": "text",
583
+ "primaryKey": false,
584
+ "notNull": true,
585
+ "autoincrement": false
586
+ },
587
+ "source_ref": {
588
+ "name": "source_ref",
589
+ "type": "text",
590
+ "primaryKey": false,
591
+ "notNull": true,
592
+ "autoincrement": false
593
+ },
594
+ "source_payload": {
595
+ "name": "source_payload",
596
+ "type": "text",
597
+ "primaryKey": false,
598
+ "notNull": false,
599
+ "autoincrement": false
600
+ },
601
+ "source_title": {
602
+ "name": "source_title",
603
+ "type": "text",
604
+ "primaryKey": false,
605
+ "notNull": false,
606
+ "autoincrement": false
607
+ },
608
+ "dry_run": {
609
+ "name": "dry_run",
610
+ "type": "integer",
611
+ "primaryKey": false,
612
+ "notNull": true,
613
+ "autoincrement": false,
614
+ "default": false
615
+ },
616
+ "agent_id": {
617
+ "name": "agent_id",
618
+ "type": "text",
619
+ "primaryKey": false,
620
+ "notNull": false,
621
+ "autoincrement": false
622
+ },
623
+ "agent_command": {
624
+ "name": "agent_command",
625
+ "type": "text",
626
+ "primaryKey": false,
627
+ "notNull": false,
628
+ "autoincrement": false
629
+ },
630
+ "output": {
631
+ "name": "output",
632
+ "type": "text",
633
+ "primaryKey": false,
634
+ "notNull": false,
635
+ "autoincrement": false
636
+ },
637
+ "comments": {
638
+ "name": "comments",
639
+ "type": "text",
640
+ "primaryKey": false,
641
+ "notNull": false,
642
+ "autoincrement": false
643
+ },
644
+ "action_connector_id": {
645
+ "name": "action_connector_id",
646
+ "type": "text",
647
+ "primaryKey": false,
648
+ "notNull": true,
649
+ "autoincrement": false
650
+ },
651
+ "action_id": {
652
+ "name": "action_id",
653
+ "type": "text",
654
+ "primaryKey": false,
655
+ "notNull": true,
656
+ "autoincrement": false
657
+ },
658
+ "action_target": {
659
+ "name": "action_target",
660
+ "type": "text",
661
+ "primaryKey": false,
662
+ "notNull": true,
663
+ "autoincrement": false,
664
+ "default": "'{}'"
665
+ },
666
+ "result_url": {
667
+ "name": "result_url",
668
+ "type": "text",
669
+ "primaryKey": false,
670
+ "notNull": false,
671
+ "autoincrement": false
672
+ },
673
+ "error": {
674
+ "name": "error",
675
+ "type": "text",
676
+ "primaryKey": false,
677
+ "notNull": false,
678
+ "autoincrement": false
679
+ },
680
+ "log_path": {
681
+ "name": "log_path",
682
+ "type": "text",
683
+ "primaryKey": false,
684
+ "notNull": false,
685
+ "autoincrement": false
686
+ },
687
+ "attempts": {
688
+ "name": "attempts",
689
+ "type": "integer",
690
+ "primaryKey": false,
691
+ "notNull": true,
692
+ "autoincrement": false,
693
+ "default": 0
694
+ },
695
+ "run_after": {
696
+ "name": "run_after",
697
+ "type": "integer",
698
+ "primaryKey": false,
699
+ "notNull": true,
700
+ "autoincrement": false,
701
+ "default": "(unixepoch() * 1000)"
702
+ },
703
+ "lease_until": {
704
+ "name": "lease_until",
705
+ "type": "integer",
706
+ "primaryKey": false,
707
+ "notNull": false,
708
+ "autoincrement": false
709
+ },
710
+ "cancel_requested": {
711
+ "name": "cancel_requested",
712
+ "type": "integer",
713
+ "primaryKey": false,
714
+ "notNull": true,
715
+ "autoincrement": false,
716
+ "default": false
717
+ },
718
+ "dedupe_key": {
719
+ "name": "dedupe_key",
720
+ "type": "text",
721
+ "primaryKey": false,
722
+ "notNull": false,
723
+ "autoincrement": false
724
+ },
725
+ "duration_ms": {
726
+ "name": "duration_ms",
727
+ "type": "integer",
728
+ "primaryKey": false,
729
+ "notNull": false,
730
+ "autoincrement": false
731
+ },
732
+ "created_at": {
733
+ "name": "created_at",
734
+ "type": "integer",
735
+ "primaryKey": false,
736
+ "notNull": true,
737
+ "autoincrement": false,
738
+ "default": "(unixepoch() * 1000)"
739
+ },
740
+ "started_at": {
741
+ "name": "started_at",
742
+ "type": "integer",
743
+ "primaryKey": false,
744
+ "notNull": false,
745
+ "autoincrement": false
746
+ },
747
+ "updated_at": {
748
+ "name": "updated_at",
749
+ "type": "integer",
750
+ "primaryKey": false,
751
+ "notNull": true,
752
+ "autoincrement": false,
753
+ "default": "(unixepoch() * 1000)"
754
+ }
755
+ },
756
+ "indexes": {
757
+ "tasks_loop_idx": {
758
+ "name": "tasks_loop_idx",
759
+ "columns": [
760
+ "loop_id"
761
+ ],
762
+ "isUnique": false
763
+ },
764
+ "tasks_created_idx": {
765
+ "name": "tasks_created_idx",
766
+ "columns": [
767
+ "created_at"
768
+ ],
769
+ "isUnique": false
770
+ },
771
+ "tasks_claim_idx": {
772
+ "name": "tasks_claim_idx",
773
+ "columns": [
774
+ "state",
775
+ "run_after"
776
+ ],
777
+ "isUnique": false
778
+ },
779
+ "tasks_dedupe_idx": {
780
+ "name": "tasks_dedupe_idx",
781
+ "columns": [
782
+ "dedupe_key"
783
+ ],
784
+ "isUnique": true
785
+ }
786
+ },
787
+ "foreignKeys": {
788
+ "tasks_loop_id_loops_id_fk": {
789
+ "name": "tasks_loop_id_loops_id_fk",
790
+ "tableFrom": "tasks",
791
+ "tableTo": "loops",
792
+ "columnsFrom": [
793
+ "loop_id"
794
+ ],
795
+ "columnsTo": [
796
+ "id"
797
+ ],
798
+ "onDelete": "cascade",
799
+ "onUpdate": "no action"
800
+ }
801
+ },
802
+ "compositePrimaryKeys": {},
803
+ "uniqueConstraints": {},
804
+ "checkConstraints": {}
805
+ }
806
+ },
807
+ "views": {},
808
+ "enums": {},
809
+ "_meta": {
810
+ "schemas": {},
811
+ "tables": {},
812
+ "columns": {}
813
+ },
814
+ "internal": {
815
+ "indexes": {}
816
+ }
817
+ }