Automation::factory(), 'status' => Status::Pending, 'is_manual' => false, 'is_dry_run' => false, 'context' => [], ]; } public function running(string $nodeId = 'node_1'): static { return $this->state(fn () => [ 'status' => Status::Running, 'current_node_id' => $nodeId, 'started_at' => now(), ]); } public function waiting(\DateTimeInterface $until): static { return $this->state(fn () => [ 'status' => Status::Waiting, 'next_action_at' => $until, ]); } public function completed(): static { return $this->state(fn () => [ 'status' => Status::Completed, 'finished_at' => now(), ]); } }