(conversationId: string)
| 176 | |
| 177 | // 删除会话关联的任务 |
| 178 | async deleteTasks(conversationId: string): Promise<void> { |
| 179 | const tasksDir = await this.getChildDir(TASKS_DIR); |
| 180 | await this.deleteFile(`${conversationId}.json`, tasksDir); |
| 181 | } |
| 182 | } |
| 183 | |
| 184 | // 模块级单例:AgentChatRepo 是 OPFS 的无状态薄包装,无需每处 new。 |
no test coverage detected