opencode-supertask 0.1.10 → 0.1.11

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.
@@ -26739,8 +26739,6 @@ var tasks = sqliteTable("tasks", {
26739
26739
  // 任务分组与依赖
26740
26740
  batchId: text("batch_id"),
26741
26741
  dependsOn: integer2("depends_on"),
26742
- // OpenCode Session
26743
- sessionId: text("session_id"),
26744
26742
  // 状态
26745
26743
  status: text("status").default("pending"),
26746
26744
  // 时间戳(老字段保持秒级 timestamp)
@@ -27483,11 +27481,9 @@ var SuperTaskPlugin = async () => {
27483
27481
  "(\u5DF2\u5E9F\u5F03) \u5DE5\u4F5C\u76EE\u5F55\u3002\u7CFB\u7EDF\u4F1A\u81EA\u52A8\u8BB0\u5F55\u63D0\u4EA4\u4EFB\u52A1\u65F6\u7684 opencode run \u542F\u52A8\u76EE\u5F55\u3002"
27484
27482
  )
27485
27483
  },
27486
- async execute(args, ctx) {
27484
+ async execute(args) {
27487
27485
  try {
27488
27486
  const submitCwd = process.cwd();
27489
- console.log("[supertask] ctx keys:", Object.keys(ctx ?? {}));
27490
- console.log("[supertask] sessionID:", ctx?.sessionID);
27491
27487
  const task = await TaskService.add({
27492
27488
  name: args.name,
27493
27489
  agent: args.agent,
@@ -27498,8 +27494,7 @@ var SuperTaskPlugin = async () => {
27498
27494
  urgency: args.urgency ?? 3,
27499
27495
  batchId: args.batchId,
27500
27496
  dependsOn: args.dependsOn,
27501
- cwd: submitCwd,
27502
- sessionId: ctx.sessionID
27497
+ cwd: submitCwd
27503
27498
  });
27504
27499
  return JSON.stringify({ id: task.id, status: "created" });
27505
27500
  } catch (error45) {