(taskId: string, limit = 50)
| 58 | } |
| 59 | |
| 60 | async listRuns(taskId: string, limit = 50): Promise<AgentTaskRun[]> { |
| 61 | const runs = await this.readJsonFile<AgentTaskRun[]>(this.filename(taskId), []); |
| 62 | return runs.slice(0, limit); |
| 63 | } |
| 64 | |
| 65 | async clearRuns(taskId: string): Promise<void> { |
| 66 | await this.deleteFile(this.filename(taskId)); |
no test coverage detected