MCPcopy Create free account
hub / github.com/claude-code-best/claude-code / selectPersistedAutonomyFlows

Function selectPersistedAutonomyFlows

src/utils/autonomyFlows.ts:173–182  ·  view source on GitHub ↗
(
  flows: AutonomyFlowRecord[],
)

Source from the content-addressed store, hash-verified

171}
172
173function selectPersistedAutonomyFlows(
174 flows: AutonomyFlowRecord[],
175): AutonomyFlowRecord[] {
176 return retainActiveFirst(
177 flows.map(cloneFlowRecord),
178 flow => isManagedFlowStatusActive(flow.status),
179 flow => flow.updatedAt,
180 AUTONOMY_FLOWS_MAX,
181 )
182}
183
184function defaultFlowSource(params: {
185 trigger: AutonomyTriggerKind

Callers 1

writeAutonomyFlowsFunction · 0.85

Calls 2

retainActiveFirstFunction · 0.85

Tested by

no test coverage detected