GET /api/dev/tasks/:taskId/status

合并接口(推荐)。查询任务实时状态,包含进度、步骤详情、队列位置和当前活跃任务信息。建议每 3-5 秒轮询一次。

请求示例:

curl http://127.0.0.1:9527/api/dev/tasks/task_xxx/status \
  -H "X-API-Key: dk_your_key_here"

排队中响应:

{
  "ok": true,
  "data": {
    "taskId": "task_xxx",
    "status": "queued",
    "progress": 0,
    "currentStep": 0,
    "steps": [
      { "step": 1, "name": "步骤 1", "status": "pending" },
      { "step": 2, "name": "步骤 2", "status": "pending" },
      { "step": 3, "name": "步骤 3", "status": "pending" },
      { "step": 4, "name": "步骤 4", "status": "pending" },
      { "step": 5, "name": "步骤 5", "status": "pending" },
      { "step": 6, "name": "步骤 6", "status": "pending" },
      { "step": 7, "name": "步骤 7", "status": "pending" },
      { "step": 8, "name": "步骤 8", "status": "pending" }
    ],
    "queue": { "position": 2, "totalWaiting": 3 },
    "activeTask": null
  }
}

已完成响应包含 exportPath 字段指向导出的视频文件路径。