MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / writeAutonomyRuns

Function writeAutonomyRuns

src/utils/autonomyRuns.ts:216–233  ·  view source on GitHub ↗
(
  runs: AutonomyRunRecord[],
  rootDir: string = getProjectRoot(),
)

Source from the content-addressed store, hash-verified

214}
215
216async function writeAutonomyRuns(
217 runs: AutonomyRunRecord[],
218 rootDir: string = getProjectRoot(),
219): Promise<void> {
220 const path = resolveAutonomyRunsPath(rootDir)
221 await mkdir(dirname(path), { recursive: true })
222 await writeFile(
223 path,
224 `${JSON.stringify(
225 {
226 runs: selectPersistedAutonomyRuns(runs),
227 } satisfies AutonomyRunsFile,
228 null,
229 2,
230 )}\n`,
231 'utf-8',
232 )
233}
234
235async function updateAutonomyRun(
236 runId: string,

Callers 2

updateAutonomyRunFunction · 0.85
persistAutonomyRunRecordFunction · 0.85

Calls 4

getProjectRootFunction · 0.85
resolveAutonomyRunsPathFunction · 0.85
mkdirFunction · 0.85

Tested by

no test coverage detected