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,759 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "59162dc1-98da-4d20-ba77-8f2047d6ef25",
5
+ "prevId": "1b8d5947-50b7-4d45-af94-c720b431ffcd",
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
+ "rules": {
274
+ "name": "rules",
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
+ "guidance": {
328
+ "name": "guidance",
329
+ "type": "text",
330
+ "primaryKey": false,
331
+ "notNull": false,
332
+ "autoincrement": false
333
+ },
334
+ "agent_id": {
335
+ "name": "agent_id",
336
+ "type": "text",
337
+ "primaryKey": false,
338
+ "notNull": false,
339
+ "autoincrement": false
340
+ },
341
+ "polled_at": {
342
+ "name": "polled_at",
343
+ "type": "integer",
344
+ "primaryKey": false,
345
+ "notNull": false,
346
+ "autoincrement": false
347
+ },
348
+ "poll_error": {
349
+ "name": "poll_error",
350
+ "type": "text",
351
+ "primaryKey": false,
352
+ "notNull": false,
353
+ "autoincrement": false
354
+ },
355
+ "created_at": {
356
+ "name": "created_at",
357
+ "type": "integer",
358
+ "primaryKey": false,
359
+ "notNull": true,
360
+ "autoincrement": false,
361
+ "default": "(unixepoch() * 1000)"
362
+ },
363
+ "updated_at": {
364
+ "name": "updated_at",
365
+ "type": "integer",
366
+ "primaryKey": false,
367
+ "notNull": true,
368
+ "autoincrement": false,
369
+ "default": "(unixepoch() * 1000)"
370
+ }
371
+ },
372
+ "indexes": {
373
+ "rules_priority_idx": {
374
+ "name": "rules_priority_idx",
375
+ "columns": [
376
+ "priority"
377
+ ],
378
+ "isUnique": false
379
+ }
380
+ },
381
+ "foreignKeys": {},
382
+ "compositePrimaryKeys": {},
383
+ "uniqueConstraints": {},
384
+ "checkConstraints": {}
385
+ },
386
+ "tasks": {
387
+ "name": "tasks",
388
+ "columns": {
389
+ "id": {
390
+ "name": "id",
391
+ "type": "text",
392
+ "primaryKey": true,
393
+ "notNull": true,
394
+ "autoincrement": false
395
+ },
396
+ "rule_id": {
397
+ "name": "rule_id",
398
+ "type": "text",
399
+ "primaryKey": false,
400
+ "notNull": true,
401
+ "autoincrement": false
402
+ },
403
+ "connector_id": {
404
+ "name": "connector_id",
405
+ "type": "text",
406
+ "primaryKey": false,
407
+ "notNull": true,
408
+ "autoincrement": false
409
+ },
410
+ "state": {
411
+ "name": "state",
412
+ "type": "text",
413
+ "primaryKey": false,
414
+ "notNull": true,
415
+ "autoincrement": false,
416
+ "default": "'queued'"
417
+ },
418
+ "source_url": {
419
+ "name": "source_url",
420
+ "type": "text",
421
+ "primaryKey": false,
422
+ "notNull": true,
423
+ "autoincrement": false
424
+ },
425
+ "source_kind": {
426
+ "name": "source_kind",
427
+ "type": "text",
428
+ "primaryKey": false,
429
+ "notNull": true,
430
+ "autoincrement": false
431
+ },
432
+ "source_repo": {
433
+ "name": "source_repo",
434
+ "type": "text",
435
+ "primaryKey": false,
436
+ "notNull": true,
437
+ "autoincrement": false
438
+ },
439
+ "source_number": {
440
+ "name": "source_number",
441
+ "type": "integer",
442
+ "primaryKey": false,
443
+ "notNull": true,
444
+ "autoincrement": false
445
+ },
446
+ "source_title": {
447
+ "name": "source_title",
448
+ "type": "text",
449
+ "primaryKey": false,
450
+ "notNull": false,
451
+ "autoincrement": false
452
+ },
453
+ "dry_run": {
454
+ "name": "dry_run",
455
+ "type": "integer",
456
+ "primaryKey": false,
457
+ "notNull": true,
458
+ "autoincrement": false,
459
+ "default": false
460
+ },
461
+ "agent_id": {
462
+ "name": "agent_id",
463
+ "type": "text",
464
+ "primaryKey": false,
465
+ "notNull": false,
466
+ "autoincrement": false
467
+ },
468
+ "agent_command": {
469
+ "name": "agent_command",
470
+ "type": "text",
471
+ "primaryKey": false,
472
+ "notNull": false,
473
+ "autoincrement": false
474
+ },
475
+ "output": {
476
+ "name": "output",
477
+ "type": "text",
478
+ "primaryKey": false,
479
+ "notNull": false,
480
+ "autoincrement": false
481
+ },
482
+ "comments": {
483
+ "name": "comments",
484
+ "type": "text",
485
+ "primaryKey": false,
486
+ "notNull": false,
487
+ "autoincrement": false
488
+ },
489
+ "action_id": {
490
+ "name": "action_id",
491
+ "type": "text",
492
+ "primaryKey": false,
493
+ "notNull": true,
494
+ "autoincrement": false
495
+ },
496
+ "result_url": {
497
+ "name": "result_url",
498
+ "type": "text",
499
+ "primaryKey": false,
500
+ "notNull": false,
501
+ "autoincrement": false
502
+ },
503
+ "error": {
504
+ "name": "error",
505
+ "type": "text",
506
+ "primaryKey": false,
507
+ "notNull": false,
508
+ "autoincrement": false
509
+ },
510
+ "log_path": {
511
+ "name": "log_path",
512
+ "type": "text",
513
+ "primaryKey": false,
514
+ "notNull": false,
515
+ "autoincrement": false
516
+ },
517
+ "attempts": {
518
+ "name": "attempts",
519
+ "type": "integer",
520
+ "primaryKey": false,
521
+ "notNull": true,
522
+ "autoincrement": false,
523
+ "default": 0
524
+ },
525
+ "run_after": {
526
+ "name": "run_after",
527
+ "type": "integer",
528
+ "primaryKey": false,
529
+ "notNull": true,
530
+ "autoincrement": false,
531
+ "default": "(unixepoch() * 1000)"
532
+ },
533
+ "lease_until": {
534
+ "name": "lease_until",
535
+ "type": "integer",
536
+ "primaryKey": false,
537
+ "notNull": false,
538
+ "autoincrement": false
539
+ },
540
+ "cancel_requested": {
541
+ "name": "cancel_requested",
542
+ "type": "integer",
543
+ "primaryKey": false,
544
+ "notNull": true,
545
+ "autoincrement": false,
546
+ "default": false
547
+ },
548
+ "dedupe_key": {
549
+ "name": "dedupe_key",
550
+ "type": "text",
551
+ "primaryKey": false,
552
+ "notNull": false,
553
+ "autoincrement": false
554
+ },
555
+ "duration_ms": {
556
+ "name": "duration_ms",
557
+ "type": "integer",
558
+ "primaryKey": false,
559
+ "notNull": false,
560
+ "autoincrement": false
561
+ },
562
+ "created_at": {
563
+ "name": "created_at",
564
+ "type": "integer",
565
+ "primaryKey": false,
566
+ "notNull": true,
567
+ "autoincrement": false,
568
+ "default": "(unixepoch() * 1000)"
569
+ },
570
+ "started_at": {
571
+ "name": "started_at",
572
+ "type": "integer",
573
+ "primaryKey": false,
574
+ "notNull": false,
575
+ "autoincrement": false
576
+ },
577
+ "updated_at": {
578
+ "name": "updated_at",
579
+ "type": "integer",
580
+ "primaryKey": false,
581
+ "notNull": true,
582
+ "autoincrement": false,
583
+ "default": "(unixepoch() * 1000)"
584
+ }
585
+ },
586
+ "indexes": {
587
+ "tasks_rule_idx": {
588
+ "name": "tasks_rule_idx",
589
+ "columns": [
590
+ "rule_id"
591
+ ],
592
+ "isUnique": false
593
+ },
594
+ "tasks_created_idx": {
595
+ "name": "tasks_created_idx",
596
+ "columns": [
597
+ "created_at"
598
+ ],
599
+ "isUnique": false
600
+ },
601
+ "tasks_claim_idx": {
602
+ "name": "tasks_claim_idx",
603
+ "columns": [
604
+ "state",
605
+ "run_after"
606
+ ],
607
+ "isUnique": false
608
+ },
609
+ "tasks_dedupe_idx": {
610
+ "name": "tasks_dedupe_idx",
611
+ "columns": [
612
+ "dedupe_key"
613
+ ],
614
+ "isUnique": true
615
+ }
616
+ },
617
+ "foreignKeys": {
618
+ "tasks_rule_id_rules_id_fk": {
619
+ "name": "tasks_rule_id_rules_id_fk",
620
+ "tableFrom": "tasks",
621
+ "tableTo": "rules",
622
+ "columnsFrom": [
623
+ "rule_id"
624
+ ],
625
+ "columnsTo": [
626
+ "id"
627
+ ],
628
+ "onDelete": "cascade",
629
+ "onUpdate": "no action"
630
+ }
631
+ },
632
+ "compositePrimaryKeys": {},
633
+ "uniqueConstraints": {},
634
+ "checkConstraints": {}
635
+ },
636
+ "signals": {
637
+ "name": "signals",
638
+ "columns": {
639
+ "rule_id": {
640
+ "name": "rule_id",
641
+ "type": "text",
642
+ "primaryKey": false,
643
+ "notNull": true,
644
+ "autoincrement": false
645
+ },
646
+ "key": {
647
+ "name": "key",
648
+ "type": "text",
649
+ "primaryKey": false,
650
+ "notNull": true,
651
+ "autoincrement": false
652
+ },
653
+ "outcome": {
654
+ "name": "outcome",
655
+ "type": "text",
656
+ "primaryKey": false,
657
+ "notNull": true,
658
+ "autoincrement": false
659
+ },
660
+ "source_kind": {
661
+ "name": "source_kind",
662
+ "type": "text",
663
+ "primaryKey": false,
664
+ "notNull": true,
665
+ "autoincrement": false
666
+ },
667
+ "source_repo": {
668
+ "name": "source_repo",
669
+ "type": "text",
670
+ "primaryKey": false,
671
+ "notNull": true,
672
+ "autoincrement": false
673
+ },
674
+ "source_number": {
675
+ "name": "source_number",
676
+ "type": "integer",
677
+ "primaryKey": false,
678
+ "notNull": true,
679
+ "autoincrement": false
680
+ },
681
+ "source_title": {
682
+ "name": "source_title",
683
+ "type": "text",
684
+ "primaryKey": false,
685
+ "notNull": true,
686
+ "autoincrement": false
687
+ },
688
+ "source_url": {
689
+ "name": "source_url",
690
+ "type": "text",
691
+ "primaryKey": false,
692
+ "notNull": true,
693
+ "autoincrement": false
694
+ },
695
+ "task_id": {
696
+ "name": "task_id",
697
+ "type": "text",
698
+ "primaryKey": false,
699
+ "notNull": false,
700
+ "autoincrement": false
701
+ },
702
+ "seen_at": {
703
+ "name": "seen_at",
704
+ "type": "integer",
705
+ "primaryKey": false,
706
+ "notNull": true,
707
+ "autoincrement": false,
708
+ "default": "(unixepoch() * 1000)"
709
+ }
710
+ },
711
+ "indexes": {
712
+ "signals_outcome_idx": {
713
+ "name": "signals_outcome_idx",
714
+ "columns": [
715
+ "rule_id",
716
+ "outcome"
717
+ ],
718
+ "isUnique": false
719
+ }
720
+ },
721
+ "foreignKeys": {
722
+ "signals_rule_id_rules_id_fk": {
723
+ "name": "signals_rule_id_rules_id_fk",
724
+ "tableFrom": "signals",
725
+ "tableTo": "rules",
726
+ "columnsFrom": [
727
+ "rule_id"
728
+ ],
729
+ "columnsTo": [
730
+ "id"
731
+ ],
732
+ "onDelete": "cascade",
733
+ "onUpdate": "no action"
734
+ }
735
+ },
736
+ "compositePrimaryKeys": {
737
+ "signals_rule_id_key_pk": {
738
+ "columns": [
739
+ "rule_id",
740
+ "key"
741
+ ],
742
+ "name": "signals_rule_id_key_pk"
743
+ }
744
+ },
745
+ "uniqueConstraints": {},
746
+ "checkConstraints": {}
747
+ }
748
+ },
749
+ "views": {},
750
+ "enums": {},
751
+ "_meta": {
752
+ "schemas": {},
753
+ "tables": {},
754
+ "columns": {}
755
+ },
756
+ "internal": {
757
+ "indexes": {}
758
+ }
759
+ }