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

Function matchesActiveAutonomyRunSource

src/utils/autonomyRuns.ts:334–348  ·  view source on GitHub ↗
(
  run: AutonomyRunRecord,
  params: {
    trigger: AutonomyTriggerKind
    sourceId: string
    ownerKey?: string
  },
)

Source from the content-addressed store, hash-verified

332}
333
334function matchesActiveAutonomyRunSource(
335 run: AutonomyRunRecord,
336 params: {
337 trigger: AutonomyTriggerKind
338 sourceId: string
339 ownerKey?: string
340 },
341): boolean {
342 return (
343 run.trigger === params.trigger &&
344 run.sourceId === params.sourceId &&
345 (params.ownerKey === undefined || run.ownerKey === params.ownerKey) &&
346 isActiveAutonomyRunStatus(run.status)
347 )
348}
349
350export async function hasActiveAutonomyRunForSource(params: {
351 trigger: AutonomyTriggerKind

Callers 2

persistAutonomyRunRecordFunction · 0.85

Calls 1

Tested by

no test coverage detected