opencode-supertask 0.1.25 → 0.1.27

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.
@@ -0,0 +1,559 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "8191b4b6-0d86-410a-a34a-fa148a70b169",
5
+ "prevId": "ad7e4a09-7706-42fe-be2e-a2f1f91976fe",
6
+ "tables": {
7
+ "task_runs": {
8
+ "name": "task_runs",
9
+ "columns": {
10
+ "id": {
11
+ "name": "id",
12
+ "type": "integer",
13
+ "primaryKey": true,
14
+ "notNull": true,
15
+ "autoincrement": true
16
+ },
17
+ "task_id": {
18
+ "name": "task_id",
19
+ "type": "integer",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false
23
+ },
24
+ "session_id": {
25
+ "name": "session_id",
26
+ "type": "text",
27
+ "primaryKey": false,
28
+ "notNull": false,
29
+ "autoincrement": false
30
+ },
31
+ "model": {
32
+ "name": "model",
33
+ "type": "text",
34
+ "primaryKey": false,
35
+ "notNull": false,
36
+ "autoincrement": false
37
+ },
38
+ "status": {
39
+ "name": "status",
40
+ "type": "text",
41
+ "primaryKey": false,
42
+ "notNull": false,
43
+ "autoincrement": false,
44
+ "default": "'running'"
45
+ },
46
+ "started_at": {
47
+ "name": "started_at",
48
+ "type": "integer",
49
+ "primaryKey": false,
50
+ "notNull": false,
51
+ "autoincrement": false
52
+ },
53
+ "finished_at": {
54
+ "name": "finished_at",
55
+ "type": "integer",
56
+ "primaryKey": false,
57
+ "notNull": false,
58
+ "autoincrement": false
59
+ },
60
+ "log": {
61
+ "name": "log",
62
+ "type": "text",
63
+ "primaryKey": false,
64
+ "notNull": false,
65
+ "autoincrement": false
66
+ },
67
+ "locked_at": {
68
+ "name": "locked_at",
69
+ "type": "integer",
70
+ "primaryKey": false,
71
+ "notNull": false,
72
+ "autoincrement": false
73
+ },
74
+ "locked_by": {
75
+ "name": "locked_by",
76
+ "type": "text",
77
+ "primaryKey": false,
78
+ "notNull": false,
79
+ "autoincrement": false
80
+ },
81
+ "heartbeat_at": {
82
+ "name": "heartbeat_at",
83
+ "type": "integer",
84
+ "primaryKey": false,
85
+ "notNull": false,
86
+ "autoincrement": false
87
+ },
88
+ "worker_pid": {
89
+ "name": "worker_pid",
90
+ "type": "integer",
91
+ "primaryKey": false,
92
+ "notNull": false,
93
+ "autoincrement": false
94
+ },
95
+ "child_pid": {
96
+ "name": "child_pid",
97
+ "type": "integer",
98
+ "primaryKey": false,
99
+ "notNull": false,
100
+ "autoincrement": false
101
+ }
102
+ },
103
+ "indexes": {
104
+ "task_runs_task_started_idx": {
105
+ "name": "task_runs_task_started_idx",
106
+ "columns": [
107
+ "task_id",
108
+ "started_at",
109
+ "id"
110
+ ],
111
+ "isUnique": false
112
+ },
113
+ "task_runs_status_heartbeat_idx": {
114
+ "name": "task_runs_status_heartbeat_idx",
115
+ "columns": [
116
+ "status",
117
+ "heartbeat_at"
118
+ ],
119
+ "isUnique": false
120
+ }
121
+ },
122
+ "foreignKeys": {
123
+ "task_runs_task_id_tasks_id_fk": {
124
+ "name": "task_runs_task_id_tasks_id_fk",
125
+ "tableFrom": "task_runs",
126
+ "tableTo": "tasks",
127
+ "columnsFrom": [
128
+ "task_id"
129
+ ],
130
+ "columnsTo": [
131
+ "id"
132
+ ],
133
+ "onDelete": "cascade",
134
+ "onUpdate": "no action"
135
+ }
136
+ },
137
+ "compositePrimaryKeys": {},
138
+ "uniqueConstraints": {},
139
+ "checkConstraints": {}
140
+ },
141
+ "task_templates": {
142
+ "name": "task_templates",
143
+ "columns": {
144
+ "id": {
145
+ "name": "id",
146
+ "type": "integer",
147
+ "primaryKey": true,
148
+ "notNull": true,
149
+ "autoincrement": true
150
+ },
151
+ "name": {
152
+ "name": "name",
153
+ "type": "text",
154
+ "primaryKey": false,
155
+ "notNull": true,
156
+ "autoincrement": false
157
+ },
158
+ "agent": {
159
+ "name": "agent",
160
+ "type": "text",
161
+ "primaryKey": false,
162
+ "notNull": true,
163
+ "autoincrement": false
164
+ },
165
+ "model": {
166
+ "name": "model",
167
+ "type": "text",
168
+ "primaryKey": false,
169
+ "notNull": false,
170
+ "autoincrement": false,
171
+ "default": "'default'"
172
+ },
173
+ "prompt": {
174
+ "name": "prompt",
175
+ "type": "text",
176
+ "primaryKey": false,
177
+ "notNull": true,
178
+ "autoincrement": false
179
+ },
180
+ "cwd": {
181
+ "name": "cwd",
182
+ "type": "text",
183
+ "primaryKey": false,
184
+ "notNull": false,
185
+ "autoincrement": false
186
+ },
187
+ "category": {
188
+ "name": "category",
189
+ "type": "text",
190
+ "primaryKey": false,
191
+ "notNull": false,
192
+ "autoincrement": false,
193
+ "default": "'general'"
194
+ },
195
+ "importance": {
196
+ "name": "importance",
197
+ "type": "integer",
198
+ "primaryKey": false,
199
+ "notNull": false,
200
+ "autoincrement": false,
201
+ "default": 3
202
+ },
203
+ "urgency": {
204
+ "name": "urgency",
205
+ "type": "integer",
206
+ "primaryKey": false,
207
+ "notNull": false,
208
+ "autoincrement": false,
209
+ "default": 3
210
+ },
211
+ "batch_id": {
212
+ "name": "batch_id",
213
+ "type": "text",
214
+ "primaryKey": false,
215
+ "notNull": false,
216
+ "autoincrement": false
217
+ },
218
+ "schedule_type": {
219
+ "name": "schedule_type",
220
+ "type": "text",
221
+ "primaryKey": false,
222
+ "notNull": true,
223
+ "autoincrement": false
224
+ },
225
+ "cron_expr": {
226
+ "name": "cron_expr",
227
+ "type": "text",
228
+ "primaryKey": false,
229
+ "notNull": false,
230
+ "autoincrement": false
231
+ },
232
+ "interval_ms": {
233
+ "name": "interval_ms",
234
+ "type": "integer",
235
+ "primaryKey": false,
236
+ "notNull": false,
237
+ "autoincrement": false
238
+ },
239
+ "run_at": {
240
+ "name": "run_at",
241
+ "type": "integer",
242
+ "primaryKey": false,
243
+ "notNull": false,
244
+ "autoincrement": false
245
+ },
246
+ "max_instances": {
247
+ "name": "max_instances",
248
+ "type": "integer",
249
+ "primaryKey": false,
250
+ "notNull": false,
251
+ "autoincrement": false,
252
+ "default": 1
253
+ },
254
+ "max_retries": {
255
+ "name": "max_retries",
256
+ "type": "integer",
257
+ "primaryKey": false,
258
+ "notNull": false,
259
+ "autoincrement": false,
260
+ "default": 3
261
+ },
262
+ "retry_backoff_ms": {
263
+ "name": "retry_backoff_ms",
264
+ "type": "integer",
265
+ "primaryKey": false,
266
+ "notNull": false,
267
+ "autoincrement": false,
268
+ "default": 30000
269
+ },
270
+ "timeout_ms": {
271
+ "name": "timeout_ms",
272
+ "type": "integer",
273
+ "primaryKey": false,
274
+ "notNull": false,
275
+ "autoincrement": false
276
+ },
277
+ "last_run_at": {
278
+ "name": "last_run_at",
279
+ "type": "integer",
280
+ "primaryKey": false,
281
+ "notNull": false,
282
+ "autoincrement": false
283
+ },
284
+ "next_run_at": {
285
+ "name": "next_run_at",
286
+ "type": "integer",
287
+ "primaryKey": false,
288
+ "notNull": false,
289
+ "autoincrement": false
290
+ },
291
+ "enabled": {
292
+ "name": "enabled",
293
+ "type": "integer",
294
+ "primaryKey": false,
295
+ "notNull": false,
296
+ "autoincrement": false,
297
+ "default": true
298
+ },
299
+ "created_at": {
300
+ "name": "created_at",
301
+ "type": "integer",
302
+ "primaryKey": false,
303
+ "notNull": false,
304
+ "autoincrement": false,
305
+ "default": 0
306
+ },
307
+ "updated_at": {
308
+ "name": "updated_at",
309
+ "type": "integer",
310
+ "primaryKey": false,
311
+ "notNull": false,
312
+ "autoincrement": false,
313
+ "default": 0
314
+ }
315
+ },
316
+ "indexes": {
317
+ "task_templates_due_idx": {
318
+ "name": "task_templates_due_idx",
319
+ "columns": [
320
+ "enabled",
321
+ "next_run_at",
322
+ "id"
323
+ ],
324
+ "isUnique": false
325
+ }
326
+ },
327
+ "foreignKeys": {},
328
+ "compositePrimaryKeys": {},
329
+ "uniqueConstraints": {},
330
+ "checkConstraints": {}
331
+ },
332
+ "tasks": {
333
+ "name": "tasks",
334
+ "columns": {
335
+ "id": {
336
+ "name": "id",
337
+ "type": "integer",
338
+ "primaryKey": true,
339
+ "notNull": true,
340
+ "autoincrement": true
341
+ },
342
+ "name": {
343
+ "name": "name",
344
+ "type": "text",
345
+ "primaryKey": false,
346
+ "notNull": true,
347
+ "autoincrement": false
348
+ },
349
+ "agent": {
350
+ "name": "agent",
351
+ "type": "text",
352
+ "primaryKey": false,
353
+ "notNull": true,
354
+ "autoincrement": false
355
+ },
356
+ "model": {
357
+ "name": "model",
358
+ "type": "text",
359
+ "primaryKey": false,
360
+ "notNull": false,
361
+ "autoincrement": false,
362
+ "default": "'default'"
363
+ },
364
+ "prompt": {
365
+ "name": "prompt",
366
+ "type": "text",
367
+ "primaryKey": false,
368
+ "notNull": true,
369
+ "autoincrement": false
370
+ },
371
+ "cwd": {
372
+ "name": "cwd",
373
+ "type": "text",
374
+ "primaryKey": false,
375
+ "notNull": false,
376
+ "autoincrement": false
377
+ },
378
+ "category": {
379
+ "name": "category",
380
+ "type": "text",
381
+ "primaryKey": false,
382
+ "notNull": false,
383
+ "autoincrement": false,
384
+ "default": "'general'"
385
+ },
386
+ "importance": {
387
+ "name": "importance",
388
+ "type": "integer",
389
+ "primaryKey": false,
390
+ "notNull": false,
391
+ "autoincrement": false,
392
+ "default": 3
393
+ },
394
+ "urgency": {
395
+ "name": "urgency",
396
+ "type": "integer",
397
+ "primaryKey": false,
398
+ "notNull": false,
399
+ "autoincrement": false,
400
+ "default": 3
401
+ },
402
+ "batch_id": {
403
+ "name": "batch_id",
404
+ "type": "text",
405
+ "primaryKey": false,
406
+ "notNull": false,
407
+ "autoincrement": false
408
+ },
409
+ "depends_on": {
410
+ "name": "depends_on",
411
+ "type": "integer",
412
+ "primaryKey": false,
413
+ "notNull": false,
414
+ "autoincrement": false
415
+ },
416
+ "status": {
417
+ "name": "status",
418
+ "type": "text",
419
+ "primaryKey": false,
420
+ "notNull": false,
421
+ "autoincrement": false,
422
+ "default": "'pending'"
423
+ },
424
+ "created_at": {
425
+ "name": "created_at",
426
+ "type": "integer",
427
+ "primaryKey": false,
428
+ "notNull": false,
429
+ "autoincrement": false
430
+ },
431
+ "started_at": {
432
+ "name": "started_at",
433
+ "type": "integer",
434
+ "primaryKey": false,
435
+ "notNull": false,
436
+ "autoincrement": false
437
+ },
438
+ "finished_at": {
439
+ "name": "finished_at",
440
+ "type": "integer",
441
+ "primaryKey": false,
442
+ "notNull": false,
443
+ "autoincrement": false
444
+ },
445
+ "result_log": {
446
+ "name": "result_log",
447
+ "type": "text",
448
+ "primaryKey": false,
449
+ "notNull": false,
450
+ "autoincrement": false
451
+ },
452
+ "retry_count": {
453
+ "name": "retry_count",
454
+ "type": "integer",
455
+ "primaryKey": false,
456
+ "notNull": false,
457
+ "autoincrement": false,
458
+ "default": 0
459
+ },
460
+ "max_retries": {
461
+ "name": "max_retries",
462
+ "type": "integer",
463
+ "primaryKey": false,
464
+ "notNull": false,
465
+ "autoincrement": false,
466
+ "default": 3
467
+ },
468
+ "retry_backoff_ms": {
469
+ "name": "retry_backoff_ms",
470
+ "type": "integer",
471
+ "primaryKey": false,
472
+ "notNull": false,
473
+ "autoincrement": false,
474
+ "default": 30000
475
+ },
476
+ "retry_after": {
477
+ "name": "retry_after",
478
+ "type": "integer",
479
+ "primaryKey": false,
480
+ "notNull": false,
481
+ "autoincrement": false
482
+ },
483
+ "timeout_ms": {
484
+ "name": "timeout_ms",
485
+ "type": "integer",
486
+ "primaryKey": false,
487
+ "notNull": false,
488
+ "autoincrement": false
489
+ },
490
+ "template_id": {
491
+ "name": "template_id",
492
+ "type": "integer",
493
+ "primaryKey": false,
494
+ "notNull": false,
495
+ "autoincrement": false
496
+ },
497
+ "scheduled_at": {
498
+ "name": "scheduled_at",
499
+ "type": "integer",
500
+ "primaryKey": false,
501
+ "notNull": false,
502
+ "autoincrement": false
503
+ }
504
+ },
505
+ "indexes": {
506
+ "tasks_queue_idx": {
507
+ "name": "tasks_queue_idx",
508
+ "columns": [
509
+ "status",
510
+ "retry_after",
511
+ "urgency",
512
+ "importance",
513
+ "created_at",
514
+ "id"
515
+ ],
516
+ "isUnique": false
517
+ },
518
+ "tasks_batch_status_idx": {
519
+ "name": "tasks_batch_status_idx",
520
+ "columns": [
521
+ "batch_id",
522
+ "status"
523
+ ],
524
+ "isUnique": false
525
+ },
526
+ "tasks_template_status_idx": {
527
+ "name": "tasks_template_status_idx",
528
+ "columns": [
529
+ "template_id",
530
+ "status"
531
+ ],
532
+ "isUnique": false
533
+ },
534
+ "tasks_depends_on_status_idx": {
535
+ "name": "tasks_depends_on_status_idx",
536
+ "columns": [
537
+ "depends_on",
538
+ "status"
539
+ ],
540
+ "isUnique": false
541
+ }
542
+ },
543
+ "foreignKeys": {},
544
+ "compositePrimaryKeys": {},
545
+ "uniqueConstraints": {},
546
+ "checkConstraints": {}
547
+ }
548
+ },
549
+ "views": {},
550
+ "enums": {},
551
+ "_meta": {
552
+ "schemas": {},
553
+ "tables": {},
554
+ "columns": {}
555
+ },
556
+ "internal": {
557
+ "indexes": {}
558
+ }
559
+ }