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

Method listRuns

src/app/repo/agent_task.ts:60–63  ·  view source on GitHub ↗
(taskId: string, limit = 50)

Source from the content-addressed store, hash-verified

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));

Callers 4

RunHistoryDrawerFunction · 0.80
handleAgentTaskMethod · 0.80
agent_task.test.tsFile · 0.80

Calls 2

filenameMethod · 0.95
sliceMethod · 0.45

Tested by

no test coverage detected