MCPcopy Create free account
hub / github.com/cli/cli / resources

Method resources

evals/src/core/executor.ts:252–262  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

250 async agent() { await inner?.shutdown(); },
251 async observer() { if (listening) await observer.close(); },
252 async resources() {
253 let journal: Journal;
254 try { journal = parseJournal(JSON.parse(await readFile(journalPath, "utf8"))); }
255 catch (error) {
256 if (error instanceof Error && "code" in error && error.code === "ENOENT") return;
257 throw new Error(`Reading cleanup journal: ${String(error)}`, { cause: error });
258 }
259 progress("cleaning up live resources");
260 await cleanupSuite(suite, journal, journalPath, context);
261 progress("cleanup complete");
262 },
263 async local() { await rm(home, { recursive: true }); },
264 }, primary, journalPath);
265 }

Callers

nothing calls this directly

Calls 2

parseJournalFunction · 0.85
cleanupSuiteFunction · 0.85

Tested by

no test coverage detected