opencode-supertask 0.1.8 → 0.1.10

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,30 @@
1
+ PRAGMA foreign_keys=OFF;--> statement-breakpoint
2
+ CREATE TABLE `__new_task_templates` (
3
+ `id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
4
+ `name` text NOT NULL,
5
+ `agent` text NOT NULL,
6
+ `model` text DEFAULT 'default',
7
+ `prompt` text NOT NULL,
8
+ `cwd` text,
9
+ `category` text DEFAULT 'general',
10
+ `importance` integer DEFAULT 3,
11
+ `urgency` integer DEFAULT 3,
12
+ `schedule_type` text NOT NULL,
13
+ `cron_expr` text,
14
+ `interval_ms` integer,
15
+ `run_at` integer,
16
+ `max_instances` integer DEFAULT 1,
17
+ `max_retries` integer DEFAULT 3,
18
+ `retry_backoff_ms` integer DEFAULT 30000,
19
+ `last_run_at` integer,
20
+ `next_run_at` integer,
21
+ `enabled` integer DEFAULT true,
22
+ `created_at` integer DEFAULT 0,
23
+ `updated_at` integer DEFAULT 0
24
+ );
25
+ --> statement-breakpoint
26
+ INSERT INTO `__new_task_templates`("id", "name", "agent", "model", "prompt", "cwd", "category", "importance", "urgency", "schedule_type", "cron_expr", "interval_ms", "run_at", "max_instances", "max_retries", "retry_backoff_ms", "last_run_at", "next_run_at", "enabled", "created_at", "updated_at") SELECT "id", "name", "agent", "model", "prompt", "cwd", "category", "importance", "urgency", "schedule_type", "cron_expr", "interval_ms", "run_at", "max_instances", "max_retries", "retry_backoff_ms", "last_run_at", "next_run_at", "enabled", "created_at", "updated_at" FROM `task_templates`;--> statement-breakpoint
27
+ DROP TABLE `task_templates`;--> statement-breakpoint
28
+ ALTER TABLE `__new_task_templates` RENAME TO `task_templates`;--> statement-breakpoint
29
+ PRAGMA foreign_keys=ON;--> statement-breakpoint
30
+ ALTER TABLE `tasks` ADD `session_id` text;
@@ -0,0 +1,479 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "f9e6bdaa-5d53-428f-ba2a-6d1d2deee5b3",
5
+ "prevId": "9138ed98-286a-46b2-bcc0-fd905755e789",
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
+ "foreignKeys": {
105
+ "task_runs_task_id_tasks_id_fk": {
106
+ "name": "task_runs_task_id_tasks_id_fk",
107
+ "tableFrom": "task_runs",
108
+ "tableTo": "tasks",
109
+ "columnsFrom": [
110
+ "task_id"
111
+ ],
112
+ "columnsTo": [
113
+ "id"
114
+ ],
115
+ "onDelete": "no action",
116
+ "onUpdate": "no action"
117
+ }
118
+ },
119
+ "compositePrimaryKeys": {},
120
+ "uniqueConstraints": {},
121
+ "checkConstraints": {}
122
+ },
123
+ "task_templates": {
124
+ "name": "task_templates",
125
+ "columns": {
126
+ "id": {
127
+ "name": "id",
128
+ "type": "integer",
129
+ "primaryKey": true,
130
+ "notNull": true,
131
+ "autoincrement": true
132
+ },
133
+ "name": {
134
+ "name": "name",
135
+ "type": "text",
136
+ "primaryKey": false,
137
+ "notNull": true,
138
+ "autoincrement": false
139
+ },
140
+ "agent": {
141
+ "name": "agent",
142
+ "type": "text",
143
+ "primaryKey": false,
144
+ "notNull": true,
145
+ "autoincrement": false
146
+ },
147
+ "model": {
148
+ "name": "model",
149
+ "type": "text",
150
+ "primaryKey": false,
151
+ "notNull": false,
152
+ "autoincrement": false,
153
+ "default": "'default'"
154
+ },
155
+ "prompt": {
156
+ "name": "prompt",
157
+ "type": "text",
158
+ "primaryKey": false,
159
+ "notNull": true,
160
+ "autoincrement": false
161
+ },
162
+ "cwd": {
163
+ "name": "cwd",
164
+ "type": "text",
165
+ "primaryKey": false,
166
+ "notNull": false,
167
+ "autoincrement": false
168
+ },
169
+ "category": {
170
+ "name": "category",
171
+ "type": "text",
172
+ "primaryKey": false,
173
+ "notNull": false,
174
+ "autoincrement": false,
175
+ "default": "'general'"
176
+ },
177
+ "importance": {
178
+ "name": "importance",
179
+ "type": "integer",
180
+ "primaryKey": false,
181
+ "notNull": false,
182
+ "autoincrement": false,
183
+ "default": 3
184
+ },
185
+ "urgency": {
186
+ "name": "urgency",
187
+ "type": "integer",
188
+ "primaryKey": false,
189
+ "notNull": false,
190
+ "autoincrement": false,
191
+ "default": 3
192
+ },
193
+ "schedule_type": {
194
+ "name": "schedule_type",
195
+ "type": "text",
196
+ "primaryKey": false,
197
+ "notNull": true,
198
+ "autoincrement": false
199
+ },
200
+ "cron_expr": {
201
+ "name": "cron_expr",
202
+ "type": "text",
203
+ "primaryKey": false,
204
+ "notNull": false,
205
+ "autoincrement": false
206
+ },
207
+ "interval_ms": {
208
+ "name": "interval_ms",
209
+ "type": "integer",
210
+ "primaryKey": false,
211
+ "notNull": false,
212
+ "autoincrement": false
213
+ },
214
+ "run_at": {
215
+ "name": "run_at",
216
+ "type": "integer",
217
+ "primaryKey": false,
218
+ "notNull": false,
219
+ "autoincrement": false
220
+ },
221
+ "max_instances": {
222
+ "name": "max_instances",
223
+ "type": "integer",
224
+ "primaryKey": false,
225
+ "notNull": false,
226
+ "autoincrement": false,
227
+ "default": 1
228
+ },
229
+ "max_retries": {
230
+ "name": "max_retries",
231
+ "type": "integer",
232
+ "primaryKey": false,
233
+ "notNull": false,
234
+ "autoincrement": false,
235
+ "default": 3
236
+ },
237
+ "retry_backoff_ms": {
238
+ "name": "retry_backoff_ms",
239
+ "type": "integer",
240
+ "primaryKey": false,
241
+ "notNull": false,
242
+ "autoincrement": false,
243
+ "default": 30000
244
+ },
245
+ "last_run_at": {
246
+ "name": "last_run_at",
247
+ "type": "integer",
248
+ "primaryKey": false,
249
+ "notNull": false,
250
+ "autoincrement": false
251
+ },
252
+ "next_run_at": {
253
+ "name": "next_run_at",
254
+ "type": "integer",
255
+ "primaryKey": false,
256
+ "notNull": false,
257
+ "autoincrement": false
258
+ },
259
+ "enabled": {
260
+ "name": "enabled",
261
+ "type": "integer",
262
+ "primaryKey": false,
263
+ "notNull": false,
264
+ "autoincrement": false,
265
+ "default": true
266
+ },
267
+ "created_at": {
268
+ "name": "created_at",
269
+ "type": "integer",
270
+ "primaryKey": false,
271
+ "notNull": false,
272
+ "autoincrement": false,
273
+ "default": 0
274
+ },
275
+ "updated_at": {
276
+ "name": "updated_at",
277
+ "type": "integer",
278
+ "primaryKey": false,
279
+ "notNull": false,
280
+ "autoincrement": false,
281
+ "default": 0
282
+ }
283
+ },
284
+ "indexes": {},
285
+ "foreignKeys": {},
286
+ "compositePrimaryKeys": {},
287
+ "uniqueConstraints": {},
288
+ "checkConstraints": {}
289
+ },
290
+ "tasks": {
291
+ "name": "tasks",
292
+ "columns": {
293
+ "id": {
294
+ "name": "id",
295
+ "type": "integer",
296
+ "primaryKey": true,
297
+ "notNull": true,
298
+ "autoincrement": true
299
+ },
300
+ "name": {
301
+ "name": "name",
302
+ "type": "text",
303
+ "primaryKey": false,
304
+ "notNull": true,
305
+ "autoincrement": false
306
+ },
307
+ "agent": {
308
+ "name": "agent",
309
+ "type": "text",
310
+ "primaryKey": false,
311
+ "notNull": true,
312
+ "autoincrement": false
313
+ },
314
+ "model": {
315
+ "name": "model",
316
+ "type": "text",
317
+ "primaryKey": false,
318
+ "notNull": false,
319
+ "autoincrement": false,
320
+ "default": "'default'"
321
+ },
322
+ "prompt": {
323
+ "name": "prompt",
324
+ "type": "text",
325
+ "primaryKey": false,
326
+ "notNull": true,
327
+ "autoincrement": false
328
+ },
329
+ "cwd": {
330
+ "name": "cwd",
331
+ "type": "text",
332
+ "primaryKey": false,
333
+ "notNull": false,
334
+ "autoincrement": false
335
+ },
336
+ "category": {
337
+ "name": "category",
338
+ "type": "text",
339
+ "primaryKey": false,
340
+ "notNull": false,
341
+ "autoincrement": false,
342
+ "default": "'general'"
343
+ },
344
+ "importance": {
345
+ "name": "importance",
346
+ "type": "integer",
347
+ "primaryKey": false,
348
+ "notNull": false,
349
+ "autoincrement": false,
350
+ "default": 3
351
+ },
352
+ "urgency": {
353
+ "name": "urgency",
354
+ "type": "integer",
355
+ "primaryKey": false,
356
+ "notNull": false,
357
+ "autoincrement": false,
358
+ "default": 3
359
+ },
360
+ "batch_id": {
361
+ "name": "batch_id",
362
+ "type": "text",
363
+ "primaryKey": false,
364
+ "notNull": false,
365
+ "autoincrement": false
366
+ },
367
+ "depends_on": {
368
+ "name": "depends_on",
369
+ "type": "integer",
370
+ "primaryKey": false,
371
+ "notNull": false,
372
+ "autoincrement": false
373
+ },
374
+ "session_id": {
375
+ "name": "session_id",
376
+ "type": "text",
377
+ "primaryKey": false,
378
+ "notNull": false,
379
+ "autoincrement": false
380
+ },
381
+ "status": {
382
+ "name": "status",
383
+ "type": "text",
384
+ "primaryKey": false,
385
+ "notNull": false,
386
+ "autoincrement": false,
387
+ "default": "'pending'"
388
+ },
389
+ "created_at": {
390
+ "name": "created_at",
391
+ "type": "integer",
392
+ "primaryKey": false,
393
+ "notNull": false,
394
+ "autoincrement": false
395
+ },
396
+ "started_at": {
397
+ "name": "started_at",
398
+ "type": "integer",
399
+ "primaryKey": false,
400
+ "notNull": false,
401
+ "autoincrement": false
402
+ },
403
+ "finished_at": {
404
+ "name": "finished_at",
405
+ "type": "integer",
406
+ "primaryKey": false,
407
+ "notNull": false,
408
+ "autoincrement": false
409
+ },
410
+ "result_log": {
411
+ "name": "result_log",
412
+ "type": "text",
413
+ "primaryKey": false,
414
+ "notNull": false,
415
+ "autoincrement": false
416
+ },
417
+ "retry_count": {
418
+ "name": "retry_count",
419
+ "type": "integer",
420
+ "primaryKey": false,
421
+ "notNull": false,
422
+ "autoincrement": false,
423
+ "default": 0
424
+ },
425
+ "max_retries": {
426
+ "name": "max_retries",
427
+ "type": "integer",
428
+ "primaryKey": false,
429
+ "notNull": false,
430
+ "autoincrement": false,
431
+ "default": 3
432
+ },
433
+ "retry_after": {
434
+ "name": "retry_after",
435
+ "type": "integer",
436
+ "primaryKey": false,
437
+ "notNull": false,
438
+ "autoincrement": false
439
+ },
440
+ "timeout_ms": {
441
+ "name": "timeout_ms",
442
+ "type": "integer",
443
+ "primaryKey": false,
444
+ "notNull": false,
445
+ "autoincrement": false
446
+ },
447
+ "template_id": {
448
+ "name": "template_id",
449
+ "type": "integer",
450
+ "primaryKey": false,
451
+ "notNull": false,
452
+ "autoincrement": false
453
+ },
454
+ "scheduled_at": {
455
+ "name": "scheduled_at",
456
+ "type": "integer",
457
+ "primaryKey": false,
458
+ "notNull": false,
459
+ "autoincrement": false
460
+ }
461
+ },
462
+ "indexes": {},
463
+ "foreignKeys": {},
464
+ "compositePrimaryKeys": {},
465
+ "uniqueConstraints": {},
466
+ "checkConstraints": {}
467
+ }
468
+ },
469
+ "views": {},
470
+ "enums": {},
471
+ "_meta": {
472
+ "schemas": {},
473
+ "tables": {},
474
+ "columns": {}
475
+ },
476
+ "internal": {
477
+ "indexes": {}
478
+ }
479
+ }
@@ -29,6 +29,13 @@
29
29
  "when": 1778052887048,
30
30
  "tag": "0003_giant_polaris",
31
31
  "breakpoints": true
32
+ },
33
+ {
34
+ "idx": 4,
35
+ "version": "6",
36
+ "when": 1778121464675,
37
+ "tag": "0004_tiny_the_watchers",
38
+ "breakpoints": true
32
39
  }
33
40
  ]
34
41
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-supertask",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
4
4
  "description": "AI Agent 任务调度系统 — OpenCode 插件 + CLI + Gateway 常驻进程",
5
5
  "type": "module",
6
6
  "main": "dist/plugin/supertask.js",