@suluk/agents - v0.1.6
    Preparing search index...

    Function findCycle

    • Detect a cycle in the agent graph reachable from root, following by-name sub-agent refs. Returns the cycle path (keys) if one exists, else null. JSON-Schema cannot express acyclicity — this is the author/install lint the C027 gate requires. (Same shape as the shipped builder/compose cycle detection, C021.)

      Parameters

      • map: Record<string, SulukAgent>
      • root: string

      Returns string[] | null