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,585 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "47ce89a9-1834-4e73-acbd-1109d32ec358",
5
+ "prevId": "1195c6ce-ca97-44dd-9985-4a158ea8ab95",
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
+ "launch_protocol": {
103
+ "name": "launch_protocol",
104
+ "type": "text",
105
+ "primaryKey": false,
106
+ "notNull": false,
107
+ "autoincrement": false
108
+ }
109
+ },
110
+ "indexes": {
111
+ "task_runs_task_started_idx": {
112
+ "name": "task_runs_task_started_idx",
113
+ "columns": [
114
+ "task_id",
115
+ "started_at",
116
+ "id"
117
+ ],
118
+ "isUnique": false
119
+ },
120
+ "task_runs_status_heartbeat_idx": {
121
+ "name": "task_runs_status_heartbeat_idx",
122
+ "columns": [
123
+ "status",
124
+ "heartbeat_at"
125
+ ],
126
+ "isUnique": false
127
+ }
128
+ },
129
+ "foreignKeys": {
130
+ "task_runs_task_id_tasks_id_fk": {
131
+ "name": "task_runs_task_id_tasks_id_fk",
132
+ "tableFrom": "task_runs",
133
+ "tableTo": "tasks",
134
+ "columnsFrom": [
135
+ "task_id"
136
+ ],
137
+ "columnsTo": [
138
+ "id"
139
+ ],
140
+ "onDelete": "cascade",
141
+ "onUpdate": "no action"
142
+ }
143
+ },
144
+ "compositePrimaryKeys": {},
145
+ "uniqueConstraints": {},
146
+ "checkConstraints": {}
147
+ },
148
+ "task_templates": {
149
+ "name": "task_templates",
150
+ "columns": {
151
+ "id": {
152
+ "name": "id",
153
+ "type": "integer",
154
+ "primaryKey": true,
155
+ "notNull": true,
156
+ "autoincrement": true
157
+ },
158
+ "name": {
159
+ "name": "name",
160
+ "type": "text",
161
+ "primaryKey": false,
162
+ "notNull": true,
163
+ "autoincrement": false
164
+ },
165
+ "agent": {
166
+ "name": "agent",
167
+ "type": "text",
168
+ "primaryKey": false,
169
+ "notNull": true,
170
+ "autoincrement": false
171
+ },
172
+ "model": {
173
+ "name": "model",
174
+ "type": "text",
175
+ "primaryKey": false,
176
+ "notNull": false,
177
+ "autoincrement": false,
178
+ "default": "'default'"
179
+ },
180
+ "prompt": {
181
+ "name": "prompt",
182
+ "type": "text",
183
+ "primaryKey": false,
184
+ "notNull": true,
185
+ "autoincrement": false
186
+ },
187
+ "cwd": {
188
+ "name": "cwd",
189
+ "type": "text",
190
+ "primaryKey": false,
191
+ "notNull": false,
192
+ "autoincrement": false
193
+ },
194
+ "category": {
195
+ "name": "category",
196
+ "type": "text",
197
+ "primaryKey": false,
198
+ "notNull": false,
199
+ "autoincrement": false,
200
+ "default": "'general'"
201
+ },
202
+ "importance": {
203
+ "name": "importance",
204
+ "type": "integer",
205
+ "primaryKey": false,
206
+ "notNull": false,
207
+ "autoincrement": false,
208
+ "default": 3
209
+ },
210
+ "urgency": {
211
+ "name": "urgency",
212
+ "type": "integer",
213
+ "primaryKey": false,
214
+ "notNull": false,
215
+ "autoincrement": false,
216
+ "default": 3
217
+ },
218
+ "batch_id": {
219
+ "name": "batch_id",
220
+ "type": "text",
221
+ "primaryKey": false,
222
+ "notNull": false,
223
+ "autoincrement": false
224
+ },
225
+ "schedule_type": {
226
+ "name": "schedule_type",
227
+ "type": "text",
228
+ "primaryKey": false,
229
+ "notNull": true,
230
+ "autoincrement": false
231
+ },
232
+ "cron_expr": {
233
+ "name": "cron_expr",
234
+ "type": "text",
235
+ "primaryKey": false,
236
+ "notNull": false,
237
+ "autoincrement": false
238
+ },
239
+ "interval_ms": {
240
+ "name": "interval_ms",
241
+ "type": "integer",
242
+ "primaryKey": false,
243
+ "notNull": false,
244
+ "autoincrement": false
245
+ },
246
+ "run_at": {
247
+ "name": "run_at",
248
+ "type": "integer",
249
+ "primaryKey": false,
250
+ "notNull": false,
251
+ "autoincrement": false
252
+ },
253
+ "max_instances": {
254
+ "name": "max_instances",
255
+ "type": "integer",
256
+ "primaryKey": false,
257
+ "notNull": false,
258
+ "autoincrement": false,
259
+ "default": 1
260
+ },
261
+ "max_retries": {
262
+ "name": "max_retries",
263
+ "type": "integer",
264
+ "primaryKey": false,
265
+ "notNull": false,
266
+ "autoincrement": false,
267
+ "default": 3
268
+ },
269
+ "retry_backoff_ms": {
270
+ "name": "retry_backoff_ms",
271
+ "type": "integer",
272
+ "primaryKey": false,
273
+ "notNull": false,
274
+ "autoincrement": false,
275
+ "default": 30000
276
+ },
277
+ "timeout_ms": {
278
+ "name": "timeout_ms",
279
+ "type": "integer",
280
+ "primaryKey": false,
281
+ "notNull": false,
282
+ "autoincrement": false
283
+ },
284
+ "last_run_at": {
285
+ "name": "last_run_at",
286
+ "type": "integer",
287
+ "primaryKey": false,
288
+ "notNull": false,
289
+ "autoincrement": false
290
+ },
291
+ "next_run_at": {
292
+ "name": "next_run_at",
293
+ "type": "integer",
294
+ "primaryKey": false,
295
+ "notNull": false,
296
+ "autoincrement": false
297
+ },
298
+ "enabled": {
299
+ "name": "enabled",
300
+ "type": "integer",
301
+ "primaryKey": false,
302
+ "notNull": false,
303
+ "autoincrement": false,
304
+ "default": true
305
+ },
306
+ "created_at": {
307
+ "name": "created_at",
308
+ "type": "integer",
309
+ "primaryKey": false,
310
+ "notNull": false,
311
+ "autoincrement": false,
312
+ "default": 0
313
+ },
314
+ "updated_at": {
315
+ "name": "updated_at",
316
+ "type": "integer",
317
+ "primaryKey": false,
318
+ "notNull": false,
319
+ "autoincrement": false,
320
+ "default": 0
321
+ }
322
+ },
323
+ "indexes": {
324
+ "task_templates_due_idx": {
325
+ "name": "task_templates_due_idx",
326
+ "columns": [
327
+ "enabled",
328
+ "next_run_at",
329
+ "id"
330
+ ],
331
+ "isUnique": false
332
+ },
333
+ "task_templates_retention_idx": {
334
+ "name": "task_templates_retention_idx",
335
+ "columns": [
336
+ "schedule_type",
337
+ "enabled",
338
+ "last_run_at",
339
+ "id"
340
+ ],
341
+ "isUnique": false
342
+ }
343
+ },
344
+ "foreignKeys": {},
345
+ "compositePrimaryKeys": {},
346
+ "uniqueConstraints": {},
347
+ "checkConstraints": {}
348
+ },
349
+ "tasks": {
350
+ "name": "tasks",
351
+ "columns": {
352
+ "id": {
353
+ "name": "id",
354
+ "type": "integer",
355
+ "primaryKey": true,
356
+ "notNull": true,
357
+ "autoincrement": true
358
+ },
359
+ "name": {
360
+ "name": "name",
361
+ "type": "text",
362
+ "primaryKey": false,
363
+ "notNull": true,
364
+ "autoincrement": false
365
+ },
366
+ "agent": {
367
+ "name": "agent",
368
+ "type": "text",
369
+ "primaryKey": false,
370
+ "notNull": true,
371
+ "autoincrement": false
372
+ },
373
+ "model": {
374
+ "name": "model",
375
+ "type": "text",
376
+ "primaryKey": false,
377
+ "notNull": false,
378
+ "autoincrement": false,
379
+ "default": "'default'"
380
+ },
381
+ "prompt": {
382
+ "name": "prompt",
383
+ "type": "text",
384
+ "primaryKey": false,
385
+ "notNull": true,
386
+ "autoincrement": false
387
+ },
388
+ "cwd": {
389
+ "name": "cwd",
390
+ "type": "text",
391
+ "primaryKey": false,
392
+ "notNull": false,
393
+ "autoincrement": false
394
+ },
395
+ "category": {
396
+ "name": "category",
397
+ "type": "text",
398
+ "primaryKey": false,
399
+ "notNull": false,
400
+ "autoincrement": false,
401
+ "default": "'general'"
402
+ },
403
+ "importance": {
404
+ "name": "importance",
405
+ "type": "integer",
406
+ "primaryKey": false,
407
+ "notNull": false,
408
+ "autoincrement": false,
409
+ "default": 3
410
+ },
411
+ "urgency": {
412
+ "name": "urgency",
413
+ "type": "integer",
414
+ "primaryKey": false,
415
+ "notNull": false,
416
+ "autoincrement": false,
417
+ "default": 3
418
+ },
419
+ "batch_id": {
420
+ "name": "batch_id",
421
+ "type": "text",
422
+ "primaryKey": false,
423
+ "notNull": false,
424
+ "autoincrement": false
425
+ },
426
+ "depends_on": {
427
+ "name": "depends_on",
428
+ "type": "integer",
429
+ "primaryKey": false,
430
+ "notNull": false,
431
+ "autoincrement": false
432
+ },
433
+ "status": {
434
+ "name": "status",
435
+ "type": "text",
436
+ "primaryKey": false,
437
+ "notNull": false,
438
+ "autoincrement": false,
439
+ "default": "'pending'"
440
+ },
441
+ "created_at": {
442
+ "name": "created_at",
443
+ "type": "integer",
444
+ "primaryKey": false,
445
+ "notNull": false,
446
+ "autoincrement": false
447
+ },
448
+ "started_at": {
449
+ "name": "started_at",
450
+ "type": "integer",
451
+ "primaryKey": false,
452
+ "notNull": false,
453
+ "autoincrement": false
454
+ },
455
+ "finished_at": {
456
+ "name": "finished_at",
457
+ "type": "integer",
458
+ "primaryKey": false,
459
+ "notNull": false,
460
+ "autoincrement": false
461
+ },
462
+ "result_log": {
463
+ "name": "result_log",
464
+ "type": "text",
465
+ "primaryKey": false,
466
+ "notNull": false,
467
+ "autoincrement": false
468
+ },
469
+ "retry_count": {
470
+ "name": "retry_count",
471
+ "type": "integer",
472
+ "primaryKey": false,
473
+ "notNull": false,
474
+ "autoincrement": false,
475
+ "default": 0
476
+ },
477
+ "max_retries": {
478
+ "name": "max_retries",
479
+ "type": "integer",
480
+ "primaryKey": false,
481
+ "notNull": false,
482
+ "autoincrement": false,
483
+ "default": 3
484
+ },
485
+ "retry_backoff_ms": {
486
+ "name": "retry_backoff_ms",
487
+ "type": "integer",
488
+ "primaryKey": false,
489
+ "notNull": false,
490
+ "autoincrement": false,
491
+ "default": 30000
492
+ },
493
+ "retry_after": {
494
+ "name": "retry_after",
495
+ "type": "integer",
496
+ "primaryKey": false,
497
+ "notNull": false,
498
+ "autoincrement": false
499
+ },
500
+ "timeout_ms": {
501
+ "name": "timeout_ms",
502
+ "type": "integer",
503
+ "primaryKey": false,
504
+ "notNull": false,
505
+ "autoincrement": false
506
+ },
507
+ "template_id": {
508
+ "name": "template_id",
509
+ "type": "integer",
510
+ "primaryKey": false,
511
+ "notNull": false,
512
+ "autoincrement": false
513
+ },
514
+ "scheduled_at": {
515
+ "name": "scheduled_at",
516
+ "type": "integer",
517
+ "primaryKey": false,
518
+ "notNull": false,
519
+ "autoincrement": false
520
+ }
521
+ },
522
+ "indexes": {
523
+ "tasks_queue_idx": {
524
+ "name": "tasks_queue_idx",
525
+ "columns": [
526
+ "status",
527
+ "retry_after",
528
+ "urgency",
529
+ "importance",
530
+ "created_at",
531
+ "id"
532
+ ],
533
+ "isUnique": false
534
+ },
535
+ "tasks_batch_status_idx": {
536
+ "name": "tasks_batch_status_idx",
537
+ "columns": [
538
+ "batch_id",
539
+ "status"
540
+ ],
541
+ "isUnique": false
542
+ },
543
+ "tasks_template_status_idx": {
544
+ "name": "tasks_template_status_idx",
545
+ "columns": [
546
+ "template_id",
547
+ "status"
548
+ ],
549
+ "isUnique": false
550
+ },
551
+ "tasks_depends_on_status_idx": {
552
+ "name": "tasks_depends_on_status_idx",
553
+ "columns": [
554
+ "depends_on",
555
+ "status"
556
+ ],
557
+ "isUnique": false
558
+ },
559
+ "tasks_cleanup_idx": {
560
+ "name": "tasks_cleanup_idx",
561
+ "columns": [
562
+ "finished_at",
563
+ "id",
564
+ "status"
565
+ ],
566
+ "isUnique": false
567
+ }
568
+ },
569
+ "foreignKeys": {},
570
+ "compositePrimaryKeys": {},
571
+ "uniqueConstraints": {},
572
+ "checkConstraints": {}
573
+ }
574
+ },
575
+ "views": {},
576
+ "enums": {},
577
+ "_meta": {
578
+ "schemas": {},
579
+ "tables": {},
580
+ "columns": {}
581
+ },
582
+ "internal": {
583
+ "indexes": {}
584
+ }
585
+ }
@@ -36,6 +36,27 @@
36
36
  "when": 1784101521330,
37
37
  "tag": "0004_reliability_fields",
38
38
  "breakpoints": true
39
+ },
40
+ {
41
+ "idx": 5,
42
+ "version": "6",
43
+ "when": 1784209076833,
44
+ "tag": "0005_natural_ma_gnuci",
45
+ "breakpoints": true
46
+ },
47
+ {
48
+ "idx": 6,
49
+ "version": "6",
50
+ "when": 1784212715859,
51
+ "tag": "0006_worried_agent_zero",
52
+ "breakpoints": true
53
+ },
54
+ {
55
+ "idx": 7,
56
+ "version": "6",
57
+ "when": 1784221308281,
58
+ "tag": "0007_lean_titanium_man",
59
+ "breakpoints": true
39
60
  }
40
61
  ]
41
62
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-supertask",
3
- "version": "0.1.25",
3
+ "version": "0.1.27",
4
4
  "description": "AI Agent 任务调度系统 — OpenCode 插件 + CLI + Gateway 常驻进程",
5
5
  "type": "module",
6
6
  "main": "dist/plugin/supertask.js",