跳转到主要内容

附录 C:task.json Schema 参考

对齐 .trellis/scripts/common/task_store.pytask.py create 当前写出的结构:
字段顺序与 .trellis/scripts/common/task_store.pytask_data 一致——task.py 就按这个顺序写入。
worktree_path / commit / pr_url 是 schema 占位字段,创建时写 null 之后没有 Trellis 脚本再动它们。想记 commit hash 或 PR URL 请用 meta: {} 自定义键,或写个 after_archive hook 自己回写。
早期版本创建的老任务可能少某些新字段(如 package 支持前的任务没有 "package" 键),task.py 把缺失字段按 null 处理,不会出错。

父子关系 vs subtasks——别混