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

Function defaultFlowSource

src/utils/autonomyFlows.ts:184–202  ·  view source on GitHub ↗
(params: {
  trigger: AutonomyTriggerKind
  sourceId?: string
  sourceLabel?: string
})

Source from the content-addressed store, hash-verified

182}
183
184function defaultFlowSource(params: {
185 trigger: AutonomyTriggerKind
186 sourceId?: string
187 sourceLabel?: string
188}): { sourceId?: string; sourceLabel?: string } {
189 if (params.sourceId || params.sourceLabel) {
190 return {
191 ...(params.sourceId ? { sourceId: params.sourceId } : {}),
192 ...(params.sourceLabel ? { sourceLabel: params.sourceLabel } : {}),
193 }
194 }
195 if (params.trigger === 'proactive-tick') {
196 return {
197 sourceId: 'heartbeat-loop',
198 sourceLabel: 'heartbeat-loop',
199 }
200 }
201 return {}
202}
203
204function normalizeManagedState(
205 value: unknown,

Callers 3

normalizeFlowRecordFunction · 0.85
startManagedAutonomyFlowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected