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

Function journalResource

evals/src/core/sandbox.ts:49–52  ·  view source on GitHub ↗
(journal: Journal, journalPath: string, kind: string, id: string)

Source from the content-addressed store, hash-verified

47
48/** Records a suite resource in the journal and persists it. */
49export async function journalResource(journal: Journal, journalPath: string, kind: string, id: string): Promise<void> {
50 journal.resources[kind] = [...new Set([...journal.resources[kind] ?? [], id])];
51 await save(journalPath, journal);
52}
53
54const sandboxName = /^[A-Za-z0-9-]+\/run-[0-9a-f-]{36}$/;
55

Callers 2

seedSubscriptionsFunction · 0.85
cleanupFunction · 0.85

Calls 1

saveFunction · 0.85

Tested by

no test coverage detected