Pistachios have surged over the past decade to become California’s sixth-largest agricultural commodity in value ahead of longtime crops such as strawberries and tomatoes. In a sprawling plant in the heart of California’s farmland, millions of shells rush down a metallic chute and onto a conveyor belt where they are inspected, roasted, packaged and shipped off to groceries around the world.