tc_import
Import a handoff package to resume work in another directory or machine, validating the task ID and workspace path and rolling back files if validation fails.
Instructions
导入 tc_export 生成的交接包,在另一个目录或机器上接续任务。会校验任务 id 与工作区路径,拒绝重复任务、.. 穿越与符号链接目标;失败时撤销已写入的文件。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | Yes | 工作区根目录 | |
| package | Yes | 交接包目录,即 tc_export 返回的 path |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | 导入后的任务 id |