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

Method saveTasks

src/app/repo/agent_chat.ts:172–175  ·  view source on GitHub ↗
(conversationId: string, tasks: Task[])

Source from the content-addressed store, hash-verified

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> {

Callers 3

ChatAreaFunction · 0.80
clearMessagesFunction · 0.80

Calls 2

getChildDirMethod · 0.80
writeJsonFileMethod · 0.80

Tested by

no test coverage detected