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

Function hasActiveAutonomyRunForSource

src/utils/autonomyRuns.ts:350–362  ·  view source on GitHub ↗
(params: {
  trigger: AutonomyTriggerKind
  sourceId: string
  rootDir?: string
  ownerKey?: string
})

Source from the content-addressed store, hash-verified

348}
349
350export async function hasActiveAutonomyRunForSource(params: {
351 trigger: AutonomyTriggerKind
352 sourceId: string
353 rootDir?: string
354 ownerKey?: string
355}): Promise<boolean> {
356 const runs = await listAutonomyRuns(params.rootDir)
357 return runs.some(
358 run =>
359 matchesActiveAutonomyRunSource(run, params) &&
360 !isStaleActiveAutonomyRun(run),
361 )
362}
363
364function buildAutonomyRunRecord(
365 params: CreateAutonomyRunParams,

Calls 3

listAutonomyRunsFunction · 0.85
isStaleActiveAutonomyRunFunction · 0.85

Tested by

no test coverage detected