MCPcopy Create free account
hub / github.com/scriptscat/scriptcat / deleteTasks

Method deleteTasks

src/app/repo/agent_chat.ts:178–181  ·  view source on GitHub ↗
(conversationId: string)

Source from the content-addressed store, hash-verified

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。

Callers 1

deleteConversationMethod · 0.95

Calls 2

getChildDirMethod · 0.80
deleteFileMethod · 0.80

Tested by

no test coverage detected