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

Function writeAutonomyFlows

src/utils/autonomyFlows.ts:421–438  ·  view source on GitHub ↗
(
  flows: AutonomyFlowRecord[],
  rootDir: string = getProjectRoot(),
)

Source from the content-addressed store, hash-verified

419}
420
421async function writeAutonomyFlows(
422 flows: AutonomyFlowRecord[],
423 rootDir: string = getProjectRoot(),
424): Promise<void> {
425 const path = resolveAutonomyFlowsPath(rootDir)
426 await mkdir(dirname(path), { recursive: true })
427 await writeFile(
428 path,
429 `${JSON.stringify(
430 {
431 flows: selectPersistedAutonomyFlows(flows),
432 } satisfies AutonomyFlowsFile,
433 null,
434 2,
435 )}\n`,
436 'utf-8',
437 )
438}
439
440async function updateAutonomyFlowById(
441 flowId: string,

Callers 3

updateAutonomyFlowByIdFunction · 0.85
startManagedAutonomyFlowFunction · 0.85

Calls 4

getProjectRootFunction · 0.85
resolveAutonomyFlowsPathFunction · 0.85
mkdirFunction · 0.85

Tested by

no test coverage detected