MCPcopy Index your code
hub / github.com/coder/mux / getRuns

Method getRuns

src/node/services/devToolsService.ts:301–314  ·  view source on GitHub ↗
(workspaceId: string)

Source from the content-addressed store, hash-verified

299 }
300
301 async getRuns(workspaceId: string): Promise<DevToolsRunSummary[]> {
302 if (!this.enabled) {
303 return [];
304 }
305
306 assert(workspaceId.trim().length > 0, "DevToolsService.getRuns requires a workspaceId");
307
308 await this.ensureLoaded(workspaceId);
309 const data = this.getOrCreateWorkspaceData(workspaceId);
310
311 return Array.from(data.runs.keys())
312 .map((runId) => this.buildRunSummary(data, runId))
313 .sort((a, b) => b.startedAt.localeCompare(a.startedAt));
314 }
315
316 async getRunWithSteps(
317 workspaceId: string,

Callers 3

routerFunction · 0.80

Calls 4

ensureLoadedMethod · 0.95
buildRunSummaryMethod · 0.95
assertFunction · 0.50

Tested by

no test coverage detected