(conversationId: string, tasks: Task[])
| 170 | |
| 171 | // 保存会话关联的任务列表 |
| 172 | async saveTasks(conversationId: string, tasks: Task[]): Promise<void> { |
| 173 | const tasksDir = await this.getChildDir(TASKS_DIR); |
| 174 | await this.writeJsonFile(`${conversationId}.json`, tasks, tasksDir); |
| 175 | } |
| 176 | |
| 177 | // 删除会话关联的任务 |
| 178 | async deleteTasks(conversationId: string): Promise<void> { |
no test coverage detected