diff --git a/app/Support/DetectsNonInteractiveEnvironments.php b/app/Support/DetectsNonInteractiveEnvironments.php index 7722d4e9..3afd2f06 100644 --- a/app/Support/DetectsNonInteractiveEnvironments.php +++ b/app/Support/DetectsNonInteractiveEnvironments.php @@ -2,20 +2,23 @@ namespace App\Support; +use AgentDetector\AgentDetector; + trait DetectsNonInteractiveEnvironments { protected function isNonInteractiveEnvironment(): bool { + if (AgentDetector::detect()->isAgent) { + return true; + } + $envs = [ 'CI', - 'CURSOR', 'GITHUB_ACTIONS', 'GITLAB_CI', 'JENKINS_URL', 'CIRCLECI', 'TRAVIS', - 'AGENT_MODE', - 'OPENCODE', ]; foreach ($envs as $env) {